/kernel/linux/linux-5.10/arch/x86/um/ |
H A D | ldt.c | 16 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() 56 static int read_ldt(void __user * ptr, unsigned long bytecount) in read_ldt() argument 64 if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) in read_ldt() 65 bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES; in read_ldt() 66 err = bytecount; in read_ldt() 71 if (size > bytecount) in read_ldt() 72 size = bytecount; in read_ldt() 75 bytecount -= size; in read_ldt() 79 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; in read_ldt() 104 read_default_ldt(void __user * ptr, unsigned long bytecount) read_default_ldt() argument 123 write_ldt(void __user * ptr, unsigned long bytecount, int func) write_ldt() argument 209 do_modify_ldt_skas(int func, void __user *ptr, unsigned long bytecount) do_modify_ldt_skas() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/um/ |
H A D | ldt.c | 16 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() 56 static int read_ldt(void __user * ptr, unsigned long bytecount) in read_ldt() argument 64 if (bytecount > LDT_ENTRY_SIZE*LDT_ENTRIES) in read_ldt() 65 bytecount = LDT_ENTRY_SIZE*LDT_ENTRIES; in read_ldt() 66 err = bytecount; in read_ldt() 71 if (size > bytecount) in read_ldt() 72 size = bytecount; in read_ldt() 75 bytecount -= size; in read_ldt() 79 for (i=0; i<ldt->entry_count/LDT_ENTRIES_PER_PAGE && bytecount; in read_ldt() 104 read_default_ldt(void __user * ptr, unsigned long bytecount) read_default_ldt() argument 123 write_ldt(void __user * ptr, unsigned long bytecount, int func) write_ldt() argument 209 do_modify_ldt_skas(int func, void __user *ptr, unsigned long bytecount) do_modify_ldt_skas() argument [all...] |
/kernel/linux/linux-5.10/arch/x86/kernel/ |
H A D | ldt.c | 494 static int read_ldt(void __user *ptr, unsigned long bytecount) in read_ldt() argument 507 if (bytecount > LDT_ENTRY_SIZE * LDT_ENTRIES) in read_ldt() 508 bytecount = LDT_ENTRY_SIZE * LDT_ENTRIES; in read_ldt() 511 if (entries_size > bytecount) in read_ldt() 512 entries_size = bytecount; in read_ldt() 519 if (entries_size != bytecount) { in read_ldt() 520 /* Zero-fill the rest and pretend we read bytecount bytes. */ in read_ldt() 521 if (clear_user(ptr + entries_size, bytecount - entries_size)) { in read_ldt() 526 retval = bytecount; in read_ldt() 533 static int read_default_ldt(void __user *ptr, unsigned long bytecount) in read_default_ldt() argument 570 write_ldt(void __user *ptr, unsigned long bytecount, int oldmode) write_ldt() argument [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | ldt.c | 502 static int read_ldt(void __user *ptr, unsigned long bytecount) in read_ldt() argument 515 if (bytecount > LDT_ENTRY_SIZE * LDT_ENTRIES) in read_ldt() 516 bytecount = LDT_ENTRY_SIZE * LDT_ENTRIES; in read_ldt() 519 if (entries_size > bytecount) in read_ldt() 520 entries_size = bytecount; in read_ldt() 527 if (entries_size != bytecount) { in read_ldt() 528 /* Zero-fill the rest and pretend we read bytecount bytes. */ in read_ldt() 529 if (clear_user(ptr + entries_size, bytecount - entries_size)) { in read_ldt() 534 retval = bytecount; in read_ldt() 541 static int read_default_ldt(void __user *ptr, unsigned long bytecount) in read_default_ldt() argument 578 write_ldt(void __user *ptr, unsigned long bytecount, int oldmode) write_ldt() argument [all...] |
/kernel/linux/linux-5.10/net/x25/ |
H A D | x25_facilities.c | 235 unsigned int bytecount = (dte_facs->calling_len + 1) >> 1; in x25_create_facilities() local 237 *p++ = 1 + bytecount; in x25_create_facilities() 239 memcpy(p, dte_facs->calling_ae, bytecount); in x25_create_facilities() 240 p += bytecount; in x25_create_facilities() 244 unsigned int bytecount = (dte_facs->called_len % 2) ? in x25_create_facilities() local 248 *p++ = 1 + bytecount; in x25_create_facilities() 250 memcpy(p, dte_facs->called_ae, bytecount); in x25_create_facilities() 251 p+=bytecount; in x25_create_facilities()
|
/kernel/linux/linux-6.6/net/x25/ |
H A D | x25_facilities.c | 235 unsigned int bytecount = (dte_facs->calling_len + 1) >> 1; in x25_create_facilities() local 237 *p++ = 1 + bytecount; in x25_create_facilities() 239 memcpy(p, dte_facs->calling_ae, bytecount); in x25_create_facilities() 240 p += bytecount; in x25_create_facilities() 244 unsigned int bytecount = (dte_facs->called_len % 2) ? in x25_create_facilities() local 248 *p++ = 1 + bytecount; in x25_create_facilities() 250 memcpy(p, dte_facs->called_ae, bytecount); in x25_create_facilities() 251 p+=bytecount; in x25_create_facilities()
|
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
H A D | hcd_queue.c | 711 int bytecount = qh->maxp_mult * 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() 1522 int bytecount in dwc2_qh_init() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/dwc2/ |
H A D | hcd_queue.c | 681 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split() local 806 if (first_data_bytes > bytecount) in dwc2_uframe_schedule_split() 807 first_data_bytes = bytecount; in dwc2_uframe_schedule_split() 808 other_data_bytes = bytecount - first_data_bytes; in dwc2_uframe_schedule_split() 826 (first_data_bytes != min_t(int, 188, bytecount))) { in dwc2_uframe_schedule_split() 829 qh, first_data_bytes, bytecount); in dwc2_uframe_schedule_split() 857 middle_count = bytecount; in dwc2_uframe_schedule_split() 858 end_count = bytecount; in dwc2_uframe_schedule_split() 891 middle_count = min_t(int, 188, bytecount); in dwc2_uframe_schedule_split() 1492 int bytecount in dwc2_qh_init() local [all...] |
/kernel/linux/linux-6.6/drivers/input/rmi4/ |
H A D | rmi_smbus.c | 80 u16 rmiaddr, int bytecount, bool isread, u8 *commandcode) in rmi_smb_get_command_code() 95 if (entry->readcount == bytecount) in rmi_smb_get_command_code() 111 new_map.readcount = bytecount; in rmi_smb_get_command_code() 79 rmi_smb_get_command_code(struct rmi_transport_dev *xport, u16 rmiaddr, int bytecount, bool isread, u8 *commandcode) rmi_smb_get_command_code() argument
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | BusLogic.h | 1233 static inline void blogic_addcount(struct blogic_byte_count *bytecount, in blogic_addcount() argument 1236 bytecount->units += amount; in blogic_addcount() 1237 if (bytecount->units > 999999999) { in blogic_addcount() 1238 bytecount->units -= 1000000000; in blogic_addcount() 1239 bytecount->billions++; in blogic_addcount()
|
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | BusLogic.h | 1222 static inline void blogic_addcount(struct blogic_byte_count *bytecount, in blogic_addcount() argument 1225 bytecount->units += amount; in blogic_addcount() 1226 if (bytecount->units > 999999999) { in blogic_addcount() 1227 bytecount->units -= 1000000000; in blogic_addcount() 1228 bytecount->billions++; in blogic_addcount()
|
/kernel/linux/linux-5.10/drivers/input/rmi4/ |
H A D | rmi_smbus.c | 80 u16 rmiaddr, int bytecount, bool isread, u8 *commandcode) in rmi_smb_get_command_code() 95 if (entry->readcount == bytecount) in rmi_smb_get_command_code() 111 new_map.readcount = bytecount; in rmi_smb_get_command_code() 79 rmi_smb_get_command_code(struct rmi_transport_dev *xport, u16 rmiaddr, int bytecount, bool isread, u8 *commandcode) rmi_smb_get_command_code() argument
|
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | mei_wdt.c | 112 * @bytecount: Number of bytes in the message beyond this byte 118 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()
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | mei_wdt.c | 112 * @bytecount: Number of bytes in the message beyond this byte 118 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()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx_lib.c | 287 /* bytecount holds size of head + frags */ in ice_clean_xdp_irq() 288 total_bytes += tx_buf->bytecount; in ice_clean_xdp_irq() 398 /* store info about bytecount and frag count in first desc */ in __ice_xmit_xdp_ring() 399 tx_head->bytecount = xdp_get_buff_len(xdp); in __ice_xmit_xdp_ring()
|
/kernel/linux/linux-5.10/include/linux/usb/ |
H A D | hcd.h | 625 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */ 627 * of (7/6 * 8 * bytecount) = 9.33 * bytecount */ 628 /* bytecount = data payload byte count */ 660 int isoc, int bytecount);
|
/kernel/linux/linux-6.6/include/linux/usb/ |
H A D | hcd.h | 620 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */ 622 * of (7/6 * 8 * bytecount) = 9.33 * bytecount */ 623 /* bytecount = data payload byte count */ 655 int isoc, int bytecount);
|
/kernel/linux/linux-6.6/fs/xfs/scrub/ |
H A D | trace.h | 834 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), 835 TP_ARGS(xf, pos, bytecount), 841 __field(unsigned long long, bytecount) 857 __entry->bytecount = bytecount; 859 TP_printk("xfino 0x%lx mem_bytes 0x%llx pos 0x%llx bytecount 0x%llx isize 0x%llx", 863 __entry->bytecount, 868 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), \ 869 TP_ARGS(xf, pos, bytecount))
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
H A D | hcd.c | 1089 * @bytecount: how many bytes in the transaction. 1097 long usb_calc_bus_time (int speed, int is_input, int isoc, int bytecount) in usb_calc_bus_time() argument 1104 tmp = (67667L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time() 1107 tmp = (66700L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time() 1112 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time() 1115 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time() 1121 tmp = HS_NSECS_ISO (bytecount); in usb_calc_bus_time() 1123 tmp = HS_NSECS (bytecount); in usb_calc_bus_time()
|
/kernel/linux/linux-6.6/drivers/usb/core/ |
H A D | hcd.c | 1065 * @bytecount: how many bytes in the transaction. 1073 long usb_calc_bus_time (int speed, int is_input, int isoc, int bytecount) in usb_calc_bus_time() argument 1080 tmp = (67667L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time() 1083 tmp = (66700L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time() 1088 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time() 1091 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time() 1097 tmp = HS_NSECS_ISO (bytecount); in usb_calc_bus_time() 1099 tmp = HS_NSECS (bytecount); in usb_calc_bus_time()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_xsk.c | 409 tx_bi->bytecount = desc.len; in ixgbe_xmit_zc() 465 total_bytes += tx_bi->bytecount; in ixgbe_clean_xdp_tx_irq()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_xsk.c | 473 tx_bi->bytecount = desc.len; in i40e_xmit_zc() 483 total_bytes += tx_bi->bytecount; in i40e_xmit_zc()
|
/kernel/linux/linux-5.10/drivers/ide/ |
H A D | ide-iops.c | 70 void ide_fixstring(u8 *s, const int bytecount, const int byteswap) in ide_fixstring() argument 72 u8 *p, *end = &s[bytecount & ~1]; /* bytecount must be even */ in ide_fixstring()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_xsk.c | 422 tx_bi->bytecount = desc.len; in ixgbe_xmit_zc() 478 total_bytes += tx_bi->bytecount; in ixgbe_clean_xdp_tx_irq()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx.h | 147 unsigned int bytecount; member
|