Home
last modified time | relevance | path

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

12

/Linux-v4.19/arch/x86/um/
Dldt.c16 static inline int modify_ldt (int func, void *ptr, unsigned long bytecount) in modify_ldt() argument
18 return syscall(__NR_modify_ldt, func, ptr, bytecount); in modify_ldt()
54 static int read_ldt(void __user * ptr, unsigned long bytecount) in read_ldt() argument
62 if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) in read_ldt()
63 bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES; in read_ldt()
64 err = bytecount; in read_ldt()
69 if (size > bytecount) in read_ldt()
70 size = bytecount; in read_ldt()
73 bytecount -= size; in read_ldt()
77 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; in read_ldt()
[all …]
/Linux-v4.19/arch/x86/kernel/
Dldt.c394 static int read_ldt(void __user *ptr, unsigned long bytecount) in read_ldt() argument
407 if (bytecount > LDT_ENTRY_SIZE * LDT_ENTRIES) in read_ldt()
408 bytecount = LDT_ENTRY_SIZE * LDT_ENTRIES; in read_ldt()
411 if (entries_size > bytecount) in read_ldt()
412 entries_size = bytecount; in read_ldt()
419 if (entries_size != bytecount) { in read_ldt()
421 if (clear_user(ptr + entries_size, bytecount - entries_size)) { in read_ldt()
426 retval = bytecount; in read_ldt()
433 static int read_default_ldt(void __user *ptr, unsigned long bytecount) in read_default_ldt() argument
441 if (bytecount > size) in read_default_ldt()
[all …]
/Linux-v4.19/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-v4.19/drivers/usb/dwc2/
Dhcd_queue.c711 int bytecount = dwc2_hb_mult(qh->maxp) * dwc2_max_packet(qh->maxp); in dwc2_uframe_schedule_split() local
836 if (first_data_bytes > bytecount) in dwc2_uframe_schedule_split()
837 first_data_bytes = bytecount; in dwc2_uframe_schedule_split()
838 other_data_bytes = bytecount - first_data_bytes; in dwc2_uframe_schedule_split()
856 (first_data_bytes != min_t(int, 188, bytecount))) { in dwc2_uframe_schedule_split()
859 qh, first_data_bytes, bytecount); in dwc2_uframe_schedule_split()
887 middle_count = bytecount; in dwc2_uframe_schedule_split()
888 end_count = bytecount; in dwc2_uframe_schedule_split()
921 middle_count = min_t(int, 188, bytecount); in dwc2_uframe_schedule_split()
1518 int bytecount = dwc2_hb_mult(maxp) * dwc2_max_packet(maxp); in dwc2_qh_init() local
[all …]
/Linux-v4.19/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-v4.19/drivers/input/rmi4/
Drmi_smbus.c83 u16 rmiaddr, int bytecount, bool isread, u8 *commandcode) in rmi_smb_get_command_code() argument
98 if (entry->readcount == bytecount) in rmi_smb_get_command_code()
114 new_map.readcount = bytecount; in rmi_smb_get_command_code()
/Linux-v4.19/drivers/watchdog/
Dmei_wdt.c118 u8 bytecount; member
174 req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand); in mei_wdt_ping()
202 req.hdr.bytecount = req_len - offsetof(struct mei_mc_hdr, subcommand); in mei_wdt_stop()
/Linux-v4.19/include/linux/usb/
Dhcd.h602 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */ argument
637 int isoc, int bytecount);
/Linux-v4.19/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-v4.19/drivers/net/ethernet/intel/ice/
Dice_txrx.h40 unsigned int bytecount; member
Dice_txrx.c136 total_bytes += tx_buf->bytecount; in ice_clean_tx_irq()
1263 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in ice_tx_map()
1522 first->bytecount = (first->gso_segs - 1) * off->header_len; in ice_tso()
1718 first->bytecount = max_t(unsigned int, skb->len, ETH_ZLEN); in ice_xmit_frame_ring()
/Linux-v4.19/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-v4.19/drivers/usb/core/
Dhcd.c1182 long usb_calc_bus_time (int speed, int is_input, int isoc, int bytecount) in usb_calc_bus_time() argument
1189 tmp = (67667L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1192 tmp = (66700L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1197 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1200 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1206 tmp = HS_NSECS_ISO (bytecount); in usb_calc_bus_time()
1208 tmp = HS_NSECS (bytecount); in usb_calc_bus_time()
/Linux-v4.19/tools/testing/selftests/x86/
Dldt_gdt.c224 unsigned long bytecount) in safe_modify_ldt() argument
226 int ret = syscall(SYS_modify_ldt, 0x11, ptr, bytecount); in safe_modify_ldt()
/Linux-v4.19/drivers/net/ethernet/intel/e1000/
De1000.h133 unsigned int bytecount; member
/Linux-v4.19/drivers/usb/gadget/udc/
Datmel_usba_udc.c473 unsigned int bytecount, nr_busy; in receive_data() local
489 bytecount = USBA_BFEXT(BYTE_COUNT, status); in receive_data()
493 if (req->req.actual + bytecount >= req->req.length) { in receive_data()
495 bytecount = req->req.length - req->req.actual; in receive_data()
499 ep->fifo, bytecount); in receive_data()
500 req->req.actual += bytecount; in receive_data()
/Linux-v4.19/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c781 first->bytecount += (first->gso_segs - 1) * hdrlen; in fm10k_tso()
1015 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in fm10k_tx_map()
1090 first->bytecount = max_t(unsigned int, skb->len, ETH_ZLEN); in fm10k_xmit_frame_ring()
1224 total_bytes += tx_buffer->bytecount; in fm10k_clean_tx_irq()
Dfm10k.h65 unsigned int bytecount; member
/Linux-v4.19/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.h267 unsigned int bytecount; member
Di40e_txrx.c224 total_bytes += tx_buf->bytecount; in i40e_clean_tx_irq()
1923 first->bytecount += (first->gso_segs - 1) * *hdr_len; in i40e_tso()
2332 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in i40evf_tx_map()
2436 first->bytecount = skb->len; in i40e_xmit_frame_ring()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_txrx.h289 unsigned int bytecount; member
Di40e_txrx.c815 total_bytes += tx_buf->bytecount; in i40e_clean_tx_irq()
2969 first->bytecount += (first->gso_segs - 1) * *hdr_len; in i40e_tso()
3427 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in i40e_tx_map()
3520 tx_bi->bytecount = size; in i40e_xmit_xdp_ring()
3599 first->bytecount = skb->len; in i40e_xmit_frame_ring()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf.h36 unsigned int bytecount; member
/Linux-v4.19/drivers/net/ethernet/intel/e1000e/
De1000.h138 unsigned int bytecount; member
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb.h204 unsigned int bytecount; member

12