Home
last modified time | relevance | path

Searched refs:bytecount (Results 1 – 28 of 28) sorted by relevance

/linux-4.1.27/arch/x86/kernel/
Dldt.c153 static int read_ldt(void __user *ptr, unsigned long bytecount) in read_ldt() argument
166 if (bytecount > LDT_ENTRY_SIZE * LDT_ENTRIES) in read_ldt()
167 bytecount = LDT_ENTRY_SIZE * LDT_ENTRIES; in read_ldt()
170 if (size > bytecount) in read_ldt()
171 size = bytecount; in read_ldt()
178 if (size != bytecount) { in read_ldt()
180 if (clear_user(ptr + size, bytecount - size)) { in read_ldt()
185 retval = bytecount; in read_ldt()
192 static int read_default_ldt(void __user *ptr, unsigned long bytecount) in read_default_ldt() argument
200 if (bytecount > size) in read_default_ldt()
[all …]
/linux-4.1.27/arch/x86/um/
Dldt.c14 extern int modify_ldt(int func, void *ptr, unsigned long bytecount);
49 static int read_ldt(void __user * ptr, unsigned long bytecount) in read_ldt() argument
57 if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) in read_ldt()
58 bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES; in read_ldt()
59 err = bytecount; in read_ldt()
64 if (size > bytecount) in read_ldt()
65 size = bytecount; in read_ldt()
68 bytecount -= size; in read_ldt()
72 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; in read_ldt()
75 if (size > bytecount) in read_ldt()
[all …]
/linux-4.1.27/net/x25/
Dx25_facilities.c240 unsigned int bytecount = (dte_facs->calling_len + 1) >> 1; in x25_create_facilities() local
242 *p++ = 1 + bytecount; in x25_create_facilities()
244 memcpy(p, dte_facs->calling_ae, bytecount); in x25_create_facilities()
245 p += bytecount; in x25_create_facilities()
249 unsigned int bytecount = (dte_facs->called_len % 2) ? in x25_create_facilities() local
253 *p++ = 1 + bytecount; in x25_create_facilities()
255 memcpy(p, dte_facs->called_ae, bytecount); in x25_create_facilities()
256 p+=bytecount; in x25_create_facilities()
/linux-4.1.27/drivers/scsi/
DBusLogic.h1240 static inline void blogic_addcount(struct blogic_byte_count *bytecount, in blogic_addcount() argument
1243 bytecount->units += amount; in blogic_addcount()
1244 if (bytecount->units > 999999999) { in blogic_addcount()
1245 bytecount->units -= 1000000000; in blogic_addcount()
1246 bytecount->billions++; in blogic_addcount()
/linux-4.1.27/include/linux/usb/
Dhcd.h576 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */ argument
611 int isoc, int bytecount);
/linux-4.1.27/drivers/ide/
Dide-iops.c69 void ide_fixstring(u8 *s, const int bytecount, const int byteswap) in ide_fixstring() argument
71 u8 *p, *end = &s[bytecount & ~1]; /* bytecount must be even */ in ide_fixstring()
/linux-4.1.27/drivers/video/fbdev/
Dbroadsheetfb.c679 const u8 *wfm, int bytecount, int flash_type) in broadsheet_write_spiflash() argument
698 while (bytecount) { in broadsheet_write_spiflash()
701 writecount = min(bytecount, maxlen); in broadsheet_write_spiflash()
709 bytecount -= writecount; in broadsheet_write_spiflash()
/linux-4.1.27/drivers/usb/core/
Dhcd.c1115 long usb_calc_bus_time (int speed, int is_input, int isoc, int bytecount) in usb_calc_bus_time() argument
1122 tmp = (67667L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1125 tmp = (66700L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1130 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1133 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1139 tmp = HS_NSECS_ISO (bytecount); in usb_calc_bus_time()
1141 tmp = HS_NSECS (bytecount); in usb_calc_bus_time()
/linux-4.1.27/drivers/usb/dwc2/
Dhcd_queue.c102 int bytecount = in dwc2_qh_init() local
108 bytecount)); in dwc2_qh_init()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.h153 unsigned int bytecount; member
Di40e_txrx.c244 total_bytes += tx_buf->bytecount; in i40e_clean_tx_irq()
1710 first->bytecount = skb->len - hdr_len + (gso_segs * hdr_len); in i40e_tx_map()
1790 first->bytecount); in i40e_tx_map()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000.h159 unsigned int bytecount; member
De1000_main.c2844 unsigned int f, bytecount, segs; in e1000_tx_map() local
2955 bytecount = ((segs - 1) * skb_headlen(skb)) + skb->len; in e1000_tx_map()
2959 tx_ring->buffer_info[i].bytecount = bytecount; in e1000_tx_map()
3867 total_tx_bytes += buffer_info->bytecount; in e1000_clean_tx_irq()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h154 unsigned int bytecount; member
Di40e_txrx.c725 total_bytes += tx_buf->bytecount; in i40e_clean_tx_irq()
2507 first->bytecount = skb->len - hdr_len + (gso_segs * hdr_len); in i40e_tx_map()
2586 first->bytecount); in i40e_tx_map()
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c823 first->bytecount += (first->gso_segs - 1) * hdrlen; in fm10k_tso()
1052 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in fm10k_tx_map()
1132 first->bytecount = max_t(unsigned int, skb->len, ETH_ZLEN); in fm10k_xmit_frame_ring()
1252 total_bytes += tx_buffer->bytecount; in fm10k_clean_tx_irq()
Dfm10k.h81 unsigned int bytecount; member
/linux-4.1.27/drivers/usb/gadget/udc/
Datmel_usba_udc.c439 unsigned int bytecount, nr_busy; in receive_data() local
455 bytecount = USBA_BFEXT(BYTE_COUNT, status); in receive_data()
459 if (req->req.actual + bytecount >= req->req.length) { in receive_data()
461 bytecount = req->req.length - req->req.actual; in receive_data()
465 ep->fifo, bytecount); in receive_data()
466 req->req.actual += bytecount; in receive_data()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf.h59 unsigned int bytecount; member
Dixgbevf_main.c325 total_bytes += tx_buffer->bytecount; in ixgbevf_clean_tx_irq()
3318 first->bytecount += (first->gso_segs - 1) * *hdr_len; in ixgbevf_tso()
3641 first->bytecount = skb->len; in ixgbevf_xmit_frame()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb.h194 unsigned int bytecount; member
Digb_main.c4696 first->bytecount += (first->gso_segs - 1) * *hdr_len; in igb_tso()
4945 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in igb_tx_map()
5031 first->bytecount = skb->len; in igb_xmit_frame_ring()
6438 total_bytes += tx_buffer->bytecount; in igb_clean_tx_irq()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
De1000.h157 unsigned int bytecount; member
Dnetdev.c1243 total_tx_bytes += buffer_info->bytecount; in e1000_clean_tx_irq()
5320 unsigned int f, bytecount, segs; in e1000_tx_map() local
5382 bytecount = ((segs - 1) * skb_headlen(skb)) + skb->len; in e1000_tx_map()
5386 tx_ring->buffer_info[i].bytecount = bytecount; in e1000_tx_map()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe.h179 unsigned int bytecount; member
Dixgbe_fcoe.c594 first->bytecount += (first->gso_segs - 1) * *hdr_len; in ixgbe_fso()
Dixgbe_main.c1113 total_bytes += tx_buffer->bytecount; in ixgbe_clean_tx_irq()
6827 first->bytecount += (first->gso_segs - 1) * *hdr_len; in ixgbe_tso()
7096 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in ixgbe_tx_map()
7311 first->bytecount = skb->len; in ixgbe_xmit_frame_ring()
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Dnetdev.c826 unsigned int segs, bytecount; in igbvf_clean_tx_irq() local
831 bytecount = ((segs - 1) * skb_headlen(skb)) + in igbvf_clean_tx_irq()
834 total_bytes += bytecount; in igbvf_clean_tx_irq()