Searched refs:bytecount (Results 1 - 39 of 39) sorted by relevance

/linux-4.1.27/arch/x86/um/
H A Dldt.c14 extern int modify_ldt(int func, void *ptr, unsigned long bytecount);
49 static int read_ldt(void __user * ptr, unsigned long bytecount) read_ldt() argument
57 if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) read_ldt()
58 bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES; read_ldt()
59 err = bytecount; read_ldt()
64 if (size > bytecount) read_ldt()
65 size = bytecount; read_ldt()
68 bytecount -= size; read_ldt()
72 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; read_ldt()
75 if (size > bytecount) read_ldt()
76 size = bytecount; read_ldt()
81 bytecount -= size; read_ldt()
87 if (bytecount == 0 || err == -EFAULT) read_ldt()
90 if (clear_user(ptr, bytecount)) read_ldt()
97 static int read_default_ldt(void __user * ptr, unsigned long bytecount) read_default_ldt() argument
101 if (bytecount > 5*LDT_ENTRY_SIZE) read_default_ldt()
102 bytecount = 5*LDT_ENTRY_SIZE; read_default_ldt()
104 err = bytecount; read_default_ldt()
110 if (clear_user(ptr, bytecount)) read_default_ldt()
116 static int write_ldt(void __user * ptr, unsigned long bytecount, int func) write_ldt() argument
126 if (bytecount != sizeof(ldt_info)) write_ldt()
203 unsigned long bytecount) do_modify_ldt_skas()
209 ret = read_ldt(ptr, bytecount); do_modify_ldt_skas()
213 ret = write_ldt(ptr, bytecount, func); do_modify_ldt_skas()
216 ret = read_default_ldt(ptr, bytecount); do_modify_ldt_skas()
368 int sys_modify_ldt(int func, void __user *ptr, unsigned long bytecount) sys_modify_ldt() argument
370 return do_modify_ldt_skas(func, ptr, bytecount); sys_modify_ldt()
202 do_modify_ldt_skas(int func, void __user *ptr, unsigned long bytecount) do_modify_ldt_skas() argument
/linux-4.1.27/arch/x86/kernel/
H A Dldt.c153 static int read_ldt(void __user *ptr, unsigned long bytecount) read_ldt() argument
166 if (bytecount > LDT_ENTRY_SIZE * LDT_ENTRIES) read_ldt()
167 bytecount = LDT_ENTRY_SIZE * LDT_ENTRIES; read_ldt()
170 if (size > bytecount) read_ldt()
171 size = bytecount; read_ldt()
178 if (size != bytecount) { read_ldt()
179 /* Zero-fill the rest and pretend we read bytecount bytes. */ read_ldt()
180 if (clear_user(ptr + size, bytecount - size)) { read_ldt()
185 retval = bytecount; read_ldt()
192 static int read_default_ldt(void __user *ptr, unsigned long bytecount) read_default_ldt() argument
200 if (bytecount > size) read_default_ldt()
201 bytecount = size; read_default_ldt()
202 if (clear_user(ptr, bytecount)) read_default_ldt()
204 return bytecount; read_default_ldt()
207 static int write_ldt(void __user *ptr, unsigned long bytecount, int oldmode) write_ldt() argument
217 if (bytecount != sizeof(ldt_info)) write_ldt()
275 unsigned long bytecount) sys_modify_ldt()
281 ret = read_ldt(ptr, bytecount); sys_modify_ldt()
284 ret = write_ldt(ptr, bytecount, 1); sys_modify_ldt()
287 ret = read_default_ldt(ptr, bytecount); sys_modify_ldt()
290 ret = write_ldt(ptr, bytecount, 0); sys_modify_ldt()
274 sys_modify_ldt(int func, void __user *ptr, unsigned long bytecount) sys_modify_ldt() argument
/linux-4.1.27/net/x25/
H A Dx25_facilities.c240 unsigned int bytecount = (dte_facs->calling_len + 1) >> 1; x25_create_facilities() local
242 *p++ = 1 + bytecount; x25_create_facilities()
244 memcpy(p, dte_facs->calling_ae, bytecount); x25_create_facilities()
245 p += bytecount; x25_create_facilities()
249 unsigned int bytecount = (dte_facs->called_len % 2) ? x25_create_facilities() local
253 *p++ = 1 + bytecount; x25_create_facilities()
255 memcpy(p, dte_facs->called_ae, bytecount); x25_create_facilities()
256 p+=bytecount; x25_create_facilities()
/linux-4.1.27/drivers/ide/
H A Dide-iops.c69 void ide_fixstring(u8 *s, const int bytecount, const int byteswap) ide_fixstring() argument
71 u8 *p, *end = &s[bytecount & ~1]; /* bytecount must be even */ ide_fixstring()
/linux-4.1.27/drivers/usb/gadget/udc/
H A Domap_udc.h40 #define UDC_RXFSTAT (UDC_BASE + 0x14) /* OUT bytecount */
H A Datmel_usba_udc.c439 unsigned int bytecount, nr_busy; receive_data() local
455 bytecount = USBA_BFEXT(BYTE_COUNT, status); receive_data()
459 if (req->req.actual + bytecount >= req->req.length) { receive_data()
461 bytecount = req->req.length - req->req.actual; receive_data()
465 ep->fifo, bytecount); receive_data()
466 req->req.actual += bytecount; receive_data()
H A Dat91_udc.c434 * recover when the actual bytecount matters (e.g. for USB Test write_fifo()
750 * of data tx then stall. note that the fifo rx bytecount isn't at91_ep_set_halt()
751 * completely accurate as a tx bytecount. at91_ep_set_halt()
H A Domap_udc.c480 * the last transfer's bytecount by more than a FIFO's worth. dma_src_len()
/linux-4.1.27/include/linux/usb/
H A Dhcd.h576 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */
578 * of (7/6 * 8 * bytecount) = 9.33 * bytecount */
579 /* bytecount = data payload byte count */
611 int isoc, int bytecount);
/linux-4.1.27/drivers/scsi/
H A DBusLogic.h1240 static inline void blogic_addcount(struct blogic_byte_count *bytecount, blogic_addcount() argument
1243 bytecount->units += amount; blogic_addcount()
1244 if (bytecount->units > 999999999) { blogic_addcount()
1245 bytecount->units -= 1000000000; blogic_addcount()
1246 bytecount->billions++; blogic_addcount()
H A Dncr53c8xx.h1057 ** COPY (bytecount)
/linux-4.1.27/sound/pci/asihpi/
H A Dhpicmn.c263 "adap %d bytecount %d != cache size %d\n", control_cache_alloc_check()
268 "adap %d cache good, bytecount == cache size = %d\n", control_cache_alloc_check()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.h154 unsigned int bytecount; member in struct:i40e_tx_buffer
H A Di40e_txrx.c725 total_bytes += tx_buf->bytecount; i40e_clean_tx_irq()
2507 first->bytecount = skb->len - hdr_len + (gso_segs * hdr_len); i40e_tx_map()
2586 first->bytecount); i40e_tx_map()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
H A Di40e_txrx.h153 unsigned int bytecount; member in struct:i40e_tx_buffer
H A Di40e_txrx.c244 total_bytes += tx_buf->bytecount; i40e_clean_tx_irq()
1710 first->bytecount = skb->len - hdr_len + (gso_segs * hdr_len); i40e_tx_map()
1790 first->bytecount); i40e_tx_map()
/linux-4.1.27/drivers/dma/ppc4xx/
H A Dadma.h131 * @unmap_len: transaction bytecount
/linux-4.1.27/drivers/video/fbdev/
H A Dbroadsheetfb.c679 const u8 *wfm, int bytecount, int flash_type) broadsheet_write_spiflash()
698 while (bytecount) { broadsheet_write_spiflash()
701 writecount = min(bytecount, maxlen); broadsheet_write_spiflash()
709 bytecount -= writecount; broadsheet_write_spiflash()
678 broadsheet_write_spiflash(struct broadsheetfb_par *par, u32 wfm_addr, const u8 *wfm, int bytecount, int flash_type) broadsheet_write_spiflash() argument
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c821 /* update gso size and bytecount with header size */ fm10k_tso()
823 first->bytecount += (first->gso_segs - 1) * hdrlen; fm10k_tso()
1051 /* record bytecount for BQL */ fm10k_tx_map()
1052 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); fm10k_tx_map()
1132 first->bytecount = max_t(unsigned int, skb->len, ETH_ZLEN); fm10k_xmit_frame_ring()
1252 total_bytes += tx_buffer->bytecount; fm10k_clean_tx_irq()
H A Dfm10k.h81 unsigned int bytecount; member in struct:fm10k_tx_buffer
/linux-4.1.27/drivers/isdn/i4l/
H A Disdn_v110.c187 is the bytecount of the decoded data.
320 /* EncodeMatrix takes input data in buf, len is the bytecount.
/linux-4.1.27/drivers/usb/core/
H A Dhcd.c1107 * @bytecount: how many bytes in the transaction.
1115 long usb_calc_bus_time (int speed, int is_input, int isoc, int bytecount) usb_calc_bus_time() argument
1122 tmp = (67667L * (31L + 10L * BitTime (bytecount))) / 1000L; usb_calc_bus_time()
1125 tmp = (66700L * (31L + 10L * BitTime (bytecount))) / 1000L; usb_calc_bus_time()
1130 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; usb_calc_bus_time()
1133 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; usb_calc_bus_time()
1139 tmp = HS_NSECS_ISO (bytecount); usb_calc_bus_time()
1141 tmp = HS_NSECS (bytecount); usb_calc_bus_time()
/linux-4.1.27/drivers/usb/dwc2/
H A Dhcd_queue.c102 int bytecount = dwc2_qh_init() local
108 bytecount)); dwc2_qh_init()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
H A De1000.h159 unsigned int bytecount; member in struct:e1000_tx_buffer
H A De1000_main.c2844 unsigned int f, bytecount, segs; e1000_tx_map() local
2955 bytecount = ((segs - 1) * skb_headlen(skb)) + skb->len; e1000_tx_map()
2959 tx_ring->buffer_info[i].bytecount = bytecount; e1000_tx_map()
3867 total_tx_bytes += buffer_info->bytecount; e1000_clean_tx_irq()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
H A De1000.h157 unsigned int bytecount; member in struct:e1000_buffer::__anon6559::__anon6560
H A Dnetdev.c1243 total_tx_bytes += buffer_info->bytecount; e1000_clean_tx_irq()
5320 unsigned int f, bytecount, segs; e1000_tx_map() local
5382 bytecount = ((segs - 1) * skb_headlen(skb)) + skb->len; e1000_tx_map()
5386 tx_ring->buffer_info[i].bytecount = bytecount; e1000_tx_map()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
H A Digb.h194 unsigned int bytecount; member in struct:igb_tx_buffer
H A Digb_main.c4694 /* update gso size and bytecount with header size */ igb_tso()
4696 first->bytecount += (first->gso_segs - 1) * *hdr_len; igb_tso()
4945 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); igb_tx_map()
5031 first->bytecount = skb->len; igb_xmit_frame_ring()
6438 total_bytes += tx_buffer->bytecount; igb_clean_tx_irq()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf.h59 unsigned int bytecount; member in struct:ixgbevf_tx_buffer
H A Dixgbevf_main.c325 total_bytes += tx_buffer->bytecount; ixgbevf_clean_tx_irq()
3316 /* update GSO size and bytecount with header size */ ixgbevf_tso()
3318 first->bytecount += (first->gso_segs - 1) * *hdr_len; ixgbevf_tso()
3641 first->bytecount = skb->len; ixgbevf_xmit_frame()
/linux-4.1.27/arch/mips/include/asm/sgi/
H A Dhpc3.h28 #define HPCDMA_EIPC 0x00ff0000 /* SEEQ ethernet special xternal bytecount */
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.c591 /* update gso_segs and bytecount */ ixgbe_fso()
594 first->bytecount += (first->gso_segs - 1) * *hdr_len; ixgbe_fso()
H A Dixgbe.h179 unsigned int bytecount; member in struct:ixgbe_tx_buffer
H A Dixgbe_main.c1113 total_bytes += tx_buffer->bytecount; ixgbe_clean_tx_irq()
6825 /* update gso size and bytecount with header size */ ixgbe_tso()
6827 first->bytecount += (first->gso_segs - 1) * *hdr_len; ixgbe_tso()
7096 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); ixgbe_tx_map()
7311 first->bytecount = skb->len; ixgbe_xmit_frame_ring()
/linux-4.1.27/drivers/scsi/sym53c8xx_2/
H A Dsym_defs.h538 * COPY (bytecount)
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
H A Dnetdev.c826 unsigned int segs, bytecount; igbvf_clean_tx_irq() local
831 bytecount = ((segs - 1) * skb_headlen(skb)) + igbvf_clean_tx_irq()
834 total_bytes += bytecount; igbvf_clean_tx_irq()
/linux-4.1.27/include/linux/
H A Dusb.h1725 * The status and bytecount values are valid only after usb_sg_wait()
1726 * returns. If the status is zero, then the bytecount matches the total
/linux-4.1.27/drivers/ata/
H A Dsata_mv.c1862 * (bytecount under/over flow). So only allow DMA for

Completed in 1437 milliseconds