Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/arch/x86/um/
H A 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()
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()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dldt.c494 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()
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
541 if (bytecount > size) in read_default_ldt()
[all …]
/OK3568_Linux_fs/u-boot/drivers/fpga/
H A DstratixII.c75 int bytecount; in StratixII_ps_fpp_load() local
125 bytecount = 0; in StratixII_ps_fpp_load()
129 while (bytecount < bsize) { in StratixII_ps_fpp_load()
134 __FUNCTION__, __LINE__, bytecount); in StratixII_ps_fpp_load()
140 uint8_t data = buff[bytecount++]; in StratixII_ps_fpp_load()
151 fns->data (buff[bytecount++], 1, cookie); in StratixII_ps_fpp_load()
165 if ((bytecount % (bsize / 100)) == 0) { in StratixII_ps_fpp_load()
166 printf ("\b\b\b%02d\%", bytecount * 100 / bsize); in StratixII_ps_fpp_load()
H A Dspartan2.c109 size_t bytecount = 0; in spartan2_sp_load() local
171 while (bytecount < bsize) { in spartan2_sp_load()
175 (*fn->wdata) (data[bytecount++], true, cookie); /* write the data */ in spartan2_sp_load()
201 if (bytecount % (bsize / 40) == 0) in spartan2_sp_load()
259 size_t bytecount = 0; in spartan2_sp_dump() local
268 while (bytecount < bsize) { in spartan2_sp_dump()
273 (*fn->rdata) (&(data[bytecount++]), cookie); /* read the data */ in spartan2_sp_dump()
275 if (bytecount % (bsize / 40) == 0) in spartan2_sp_dump()
311 size_t bytecount = 0; in spartan2_ss_load() local
365 while (bytecount < bsize) { in spartan2_ss_load()
[all …]
H A Dspartan3.c113 size_t bytecount = 0; in spartan3_sp_load() local
175 while (bytecount < bsize) { in spartan3_sp_load()
179 (*fn->wdata) (data[bytecount++], true, cookie); /* write the data */ in spartan3_sp_load()
205 if (bytecount % (bsize / 40) == 0) in spartan3_sp_load()
265 size_t bytecount = 0; in spartan3_sp_dump() local
274 while (bytecount < bsize) { in spartan3_sp_dump()
279 (*fn->rdata) (&(data[bytecount++]), cookie); /* read the data */ in spartan3_sp_dump()
281 if (bytecount % (bsize / 40) == 0) in spartan3_sp_dump()
317 size_t bytecount = 0; in spartan3_ss_load() local
378 while (bytecount < bsize) { in spartan3_ss_load()
[all …]
H A Dvirtex2.c167 size_t bytecount = 0; in virtex2_ssm_load() local
249 while (bytecount < bsize) { in virtex2_ssm_load()
259 __FUNCTION__, __LINE__, bytecount); in virtex2_ssm_load()
268 bytecount, bsize); in virtex2_ssm_load()
274 (*fn->wdata) (data[bytecount++], true, cookie); in virtex2_ssm_load()
298 if (bytecount % (bsize / 40) == 0) in virtex2_ssm_load()
364 size_t bytecount = 0; in virtex2_ssm_dump() local
372 while (bytecount < bsize) { in virtex2_ssm_dump()
384 (*fn->rdata) (&(data[bytecount++]), cookie); in virtex2_ssm_dump()
386 if (bytecount % (bsize / 40) == 0) in virtex2_ssm_dump()
H A DACEX1K.c100 size_t bytecount = 0; in ACEX1K_ps_load() local
158 while (bytecount < bsize) { in ACEX1K_ps_load()
175 val = data [bytecount ++ ]; in ACEX1K_ps_load()
192 if (bytecount % (bsize / 40) == 0) in ACEX1K_ps_load()
/OK3568_Linux_fs/u-boot/board/astro/mcf5373l/
H A Dfpga.c106 size_t bytecount = 0; in altera_write_fn() local
113 while (bytecount < len) { in altera_write_fn()
114 val = data[bytecount++]; in altera_write_fn()
127 if (bytecount % len_40 == 0) { in altera_write_fn()
328 size_t bytecount = 0; in xilinx_fastwr_config_fn() local
335 for (bytecount = 0; bytecount < len; bytecount++) { in xilinx_fastwr_config_fn()
346 if (bytecount % len_40 == 0) { in xilinx_fastwr_config_fn()
/OK3568_Linux_fs/kernel/net/x25/
H A Dx25_facilities.c235 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()
/OK3568_Linux_fs/u-boot/drivers/net/
H A Dxilinx_emaclite.c99 static void xemaclite_alignedread(u32 *srcptr, void *destptr, u32 bytecount) in xemaclite_alignedread() argument
112 while (bytecount > 3) { in xemaclite_alignedread()
114 bytecount -= 4; in xemaclite_alignedread()
121 for (i = 0; i < bytecount; i++) in xemaclite_alignedread()
125 static void xemaclite_alignedwrite(void *srcptr, u32 *destptr, u32 bytecount) in xemaclite_alignedwrite() argument
135 while (bytecount > 3) { in xemaclite_alignedwrite()
138 bytecount -= 4; in xemaclite_alignedwrite()
145 for (i = 0; i < bytecount; i++) in xemaclite_alignedwrite()
/OK3568_Linux_fs/kernel/drivers/usb/dwc2/
H A Dhcd_queue.c711 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split() local
842 if (first_data_bytes > bytecount) in dwc2_uframe_schedule_split()
843 first_data_bytes = bytecount; in dwc2_uframe_schedule_split()
844 other_data_bytes = bytecount - first_data_bytes; in dwc2_uframe_schedule_split()
862 (first_data_bytes != min_t(int, 188, bytecount))) { in dwc2_uframe_schedule_split()
865 qh, first_data_bytes, bytecount); in dwc2_uframe_schedule_split()
893 middle_count = bytecount; in dwc2_uframe_schedule_split()
894 end_count = bytecount; in dwc2_uframe_schedule_split()
927 middle_count = min_t(int, 188, bytecount); in dwc2_uframe_schedule_split()
1528 int bytecount = maxp_mult * maxp; in dwc2_qh_init() local
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/
H A DBusLogic.h1233 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()
/OK3568_Linux_fs/kernel/drivers/input/rmi4/
H A Drmi_smbus.c80 u16 rmiaddr, int bytecount, bool isread, u8 *commandcode) in rmi_smb_get_command_code() argument
95 if (entry->readcount == bytecount) in rmi_smb_get_command_code()
111 new_map.readcount = bytecount; in rmi_smb_get_command_code()
/OK3568_Linux_fs/kernel/drivers/watchdog/
H A 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()
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Datmel_usba_udc.c95 unsigned int bytecount, nr_busy; in receive_data() local
111 bytecount = USBA_BFEXT(BYTE_COUNT, status); in receive_data()
115 if (req->req.actual + bytecount >= req->req.length) { in receive_data()
117 bytecount = req->req.length - req->req.actual; in receive_data()
120 memcpy(req->req.buf + req->req.actual, ep->fifo, bytecount); in receive_data()
121 req->req.actual += bytecount; in receive_data()
/OK3568_Linux_fs/kernel/include/linux/usb/
H A Dhcd.h634 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */ argument
669 int isoc, int bytecount);
/OK3568_Linux_fs/kernel/drivers/ide/
H A Dide-iops.c70 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()
/OK3568_Linux_fs/kernel/drivers/usb/core/
H A Dhcd.c1093 long usb_calc_bus_time (int speed, int is_input, int isoc, int bytecount) in usb_calc_bus_time() argument
1100 tmp = (67667L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1103 tmp = (66700L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1108 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1111 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1117 tmp = HS_NSECS_ISO (bytecount); in usb_calc_bus_time()
1119 tmp = HS_NSECS (bytecount); in usb_calc_bus_time()
/OK3568_Linux_fs/kernel/drivers/video/fbdev/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_xsk.c409 tx_bi->bytecount = desc.len; in ixgbe_xmit_zc()
465 total_bytes += tx_bi->bytecount; in ixgbe_clean_xdp_tx_irq()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/i40e/
H A Di40e_xsk.c473 tx_bi->bytecount = desc.len; in i40e_xmit_zc()
483 total_bytes += tx_bi->bytecount; in i40e_xmit_zc()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/ice/
H A Dice_txrx_lib.c225 tx_buf->bytecount = size; in ice_xmit_xdp_ring()
H A Dice_txrx.h147 unsigned int bytecount; member
/OK3568_Linux_fs/kernel/tools/testing/selftests/x86/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c778 first->bytecount += (first->gso_segs - 1) * hdrlen; in fm10k_tso()
1012 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in fm10k_tx_map()
1085 first->bytecount = max_t(unsigned int, skb->len, ETH_ZLEN); in fm10k_xmit_frame_ring()
1219 total_bytes += tx_buffer->bytecount; in fm10k_clean_tx_irq()

12