/openbmc/linux/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() [all …]
|
/openbmc/linux/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() 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 549 if (bytecount > size) in read_default_ldt() [all …]
|
/openbmc/u-boot/drivers/fpga/ |
H A D | stratixII.c | 74 int bytecount; in StratixII_ps_fpp_load() local 124 bytecount = 0; in StratixII_ps_fpp_load() 128 while (bytecount < bsize) { in StratixII_ps_fpp_load() 133 __FUNCTION__, __LINE__, bytecount); in StratixII_ps_fpp_load() 139 uint8_t data = buff[bytecount++]; in StratixII_ps_fpp_load() 150 fns->data (buff[bytecount++], 1, cookie); in StratixII_ps_fpp_load() 164 if ((bytecount % (bsize / 100)) == 0) { in StratixII_ps_fpp_load() 165 printf ("\b\b\b%02d\%", bytecount * 100 / bsize); in StratixII_ps_fpp_load()
|
H A D | spartan2.c | 108 size_t bytecount = 0; in spartan2_sp_load() local 170 while (bytecount < bsize) { in spartan2_sp_load() 174 (*fn->wdata) (data[bytecount++], true, cookie); /* write the data */ in spartan2_sp_load() 200 if (bytecount % (bsize / 40) == 0) in spartan2_sp_load() 258 size_t bytecount = 0; in spartan2_sp_dump() local 267 while (bytecount < bsize) { in spartan2_sp_dump() 272 (*fn->rdata) (&(data[bytecount++]), cookie); /* read the data */ in spartan2_sp_dump() 274 if (bytecount % (bsize / 40) == 0) in spartan2_sp_dump() 310 size_t bytecount = 0; in spartan2_ss_load() local 364 while (bytecount < bsize) { in spartan2_ss_load() [all …]
|
H A D | spartan3.c | 112 size_t bytecount = 0; in spartan3_sp_load() local 174 while (bytecount < bsize) { in spartan3_sp_load() 178 (*fn->wdata) (data[bytecount++], true, cookie); /* write the data */ in spartan3_sp_load() 204 if (bytecount % (bsize / 40) == 0) in spartan3_sp_load() 264 size_t bytecount = 0; in spartan3_sp_dump() local 273 while (bytecount < bsize) { in spartan3_sp_dump() 278 (*fn->rdata) (&(data[bytecount++]), cookie); /* read the data */ in spartan3_sp_dump() 280 if (bytecount % (bsize / 40) == 0) in spartan3_sp_dump() 316 size_t bytecount = 0; in spartan3_ss_load() local 377 while (bytecount < bsize) { in spartan3_ss_load() [all …]
|
H A D | virtex2.c | 166 size_t bytecount = 0; in virtex2_ssm_load() local 248 while (bytecount < bsize) { in virtex2_ssm_load() 258 __FUNCTION__, __LINE__, bytecount); in virtex2_ssm_load() 267 bytecount, bsize); in virtex2_ssm_load() 273 (*fn->wdata) (data[bytecount++], true, cookie); in virtex2_ssm_load() 297 if (bytecount % (bsize / 40) == 0) in virtex2_ssm_load() 363 size_t bytecount = 0; in virtex2_ssm_dump() local 371 while (bytecount < bsize) { in virtex2_ssm_dump() 383 (*fn->rdata) (&(data[bytecount++]), cookie); in virtex2_ssm_dump() 385 if (bytecount % (bsize / 40) == 0) in virtex2_ssm_dump()
|
H A D | ACEX1K.c | 99 size_t bytecount = 0; in ACEX1K_ps_load() local 157 while (bytecount < bsize) { in ACEX1K_ps_load() 174 val = data [bytecount ++ ]; in ACEX1K_ps_load() 191 if (bytecount % (bsize / 40) == 0) in ACEX1K_ps_load()
|
/openbmc/libmctp/ |
H A D | i2c.c | 109 size_t bytecount = mctp_pktbuf_size(pkt) - in mctp_binding_i2c_tx() local 110 (offsetof(struct mctp_i2c_hdr, bytecount) + 1); in mctp_binding_i2c_tx() 111 if (bytecount > 0xff) { in mctp_binding_i2c_tx() 114 i2c_hdr->bytecount = bytecount; in mctp_binding_i2c_tx() 213 if (hdr->bytecount != len - 3) { in mctp_i2c_rx() 250 uint8_t *dest_addr, uint8_t *bytecount) in mctp_i2c_parse_hdr() argument 269 if (bytecount) { in mctp_i2c_parse_hdr() 270 *bytecount = hdr->bytecount; in mctp_i2c_parse_hdr()
|
H A D | i2c-internal.h | 18 uint8_t bytecount; member
|
H A D | libmctp-i2c.h | 23 uint8_t *dest_addr, uint8_t *bytecount);
|
/openbmc/u-boot/board/astro/mcf5373l/ |
H A D | fpga.c | 103 size_t bytecount = 0; in altera_write_fn() local 110 while (bytecount < len) { in altera_write_fn() 111 val = data[bytecount++]; in altera_write_fn() 124 if (bytecount % len_40 == 0) { in altera_write_fn() 325 size_t bytecount = 0; in xilinx_fastwr_config_fn() local 332 for (bytecount = 0; bytecount < len; bytecount++) { in xilinx_fastwr_config_fn() 343 if (bytecount % len_40 == 0) { in xilinx_fastwr_config_fn()
|
/openbmc/linux/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()
|
/openbmc/u-boot/drivers/net/ |
H A D | xilinx_emaclite.c | 98 static void xemaclite_alignedread(u32 *srcptr, void *destptr, u32 bytecount) in xemaclite_alignedread() argument 111 while (bytecount > 3) { in xemaclite_alignedread() 113 bytecount -= 4; in xemaclite_alignedread() 120 for (i = 0; i < bytecount; i++) in xemaclite_alignedread() 124 static void xemaclite_alignedwrite(void *srcptr, u32 *destptr, u32 bytecount) in xemaclite_alignedwrite() argument 134 while (bytecount > 3) { in xemaclite_alignedwrite() 137 bytecount -= 4; in xemaclite_alignedwrite() 144 for (i = 0; i < bytecount; i++) in xemaclite_alignedwrite()
|
/openbmc/linux/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 = maxp_mult * maxp; in dwc2_qh_init() local [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/input/rmi4/ |
H A D | rmi_smbus.c | 80 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()
|
/openbmc/linux/drivers/watchdog/ |
H A D | mei_wdt.c | 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()
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | atmel_usba_udc.c | 94 unsigned int bytecount, nr_busy; in receive_data() local 110 bytecount = USBA_BFEXT(BYTE_COUNT, status); in receive_data() 114 if (req->req.actual + bytecount >= req->req.length) { in receive_data() 116 bytecount = req->req.length - req->req.actual; in receive_data() 119 memcpy(req->req.buf + req->req.actual, ep->fifo, bytecount); in receive_data() 120 req->req.actual += bytecount; in receive_data()
|
/openbmc/linux/include/linux/usb/ |
H A D | hcd.h | 621 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */ argument 656 int isoc, int bytecount);
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | trace.h | 832 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), 833 TP_ARGS(xf, pos, bytecount), 839 __field(unsigned long long, bytecount) 855 __entry->bytecount = bytecount; 861 __entry->bytecount, 866 TP_PROTO(struct xfile *xf, loff_t pos, unsigned long long bytecount), \ 867 TP_ARGS(xf, pos, bytecount))
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_txrx_lib.c | 288 total_bytes += tx_buf->bytecount; in ice_clean_xdp_irq() 399 tx_head->bytecount = xdp_get_buff_len(xdp); in __ice_xmit_xdp_ring()
|
/openbmc/linux/drivers/video/fbdev/ |
H A 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()
|
/openbmc/linux/drivers/usb/core/ |
H A D | hcd.c | 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()
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 773 first->bytecount += (first->gso_segs - 1) * hdrlen; in fm10k_tso() 1007 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in fm10k_tx_map() 1080 first->bytecount = max_t(unsigned int, skb->len, ETH_ZLEN); in fm10k_xmit_frame_ring() 1214 total_bytes += tx_buffer->bytecount; in fm10k_clean_tx_irq()
|