/linux-4.1.27/arch/x86/kernel/ |
D | ldt.c | 153 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/ |
D | ldt.c | 14 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/ |
D | x25_facilities.c | 240 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/ |
D | BusLogic.h | 1240 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/ |
D | hcd.h | 576 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */ argument 611 int isoc, int bytecount);
|
/linux-4.1.27/drivers/ide/ |
D | ide-iops.c | 69 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/ |
D | broadsheetfb.c | 679 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/ |
D | hcd.c | 1115 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/ |
D | hcd_queue.c | 102 int bytecount = in dwc2_qh_init() local 108 bytecount)); in dwc2_qh_init()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/ |
D | i40e_txrx.h | 153 unsigned int bytecount; member
|
D | i40e_txrx.c | 244 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/ |
D | e1000.h | 159 unsigned int bytecount; member
|
D | e1000_main.c | 2844 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/ |
D | i40e_txrx.h | 154 unsigned int bytecount; member
|
D | i40e_txrx.c | 725 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/ |
D | fm10k_main.c | 823 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()
|
D | fm10k.h | 81 unsigned int bytecount; member
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
D | atmel_usba_udc.c | 439 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/ |
D | ixgbevf.h | 59 unsigned int bytecount; member
|
D | ixgbevf_main.c | 325 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/ |
D | igb.h | 194 unsigned int bytecount; member
|
D | igb_main.c | 4696 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/ |
D | e1000.h | 157 unsigned int bytecount; member
|
D | netdev.c | 1243 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/ |
D | ixgbe.h | 179 unsigned int bytecount; member
|
D | ixgbe_fcoe.c | 594 first->bytecount += (first->gso_segs - 1) * *hdr_len; in ixgbe_fso()
|
D | ixgbe_main.c | 1113 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/ |
D | netdev.c | 826 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()
|