Home
last modified time | relevance | path

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

12

/linux/arch/x86/kernel/
H A Dldt.c502 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 …]
/linux/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()
/linux/lib/crypto/
H A Dsha1.c166 ctx->bytecount = 0; in sha1_init()
172 size_t partial = ctx->bytecount % SHA1_BLOCK_SIZE; in sha1_update()
174 ctx->bytecount += len; in sha1_update()
205 u64 bitcount = ctx->bytecount << 3; in __sha1_final()
206 size_t partial = ctx->bytecount % SHA1_BLOCK_SIZE; in __sha1_final()
278 ctx->sha_ctx.bytecount = SHA1_BLOCK_SIZE; in hmac_sha1_init()
288 ctx->sha_ctx.bytecount = SHA1_BLOCK_SIZE; in hmac_sha1_init_usingrawkey()
H A Dsha256.c37 .bytecount = 0,
170 ctx->bytecount = initial_bytecount; in __sha256_init()
187 size_t partial = ctx->bytecount % SHA256_BLOCK_SIZE; in __sha256_update()
189 ctx->bytecount += len; in __sha256_update()
221 u64 bitcount = ctx->bytecount << 3; in __sha256_final()
222 size_t partial = ctx->bytecount % SHA256_BLOCK_SIZE; in __sha256_final()
390 ctx->ctx.sha_ctx.bytecount = SHA256_BLOCK_SIZE; in hmac_sha224_init_usingrawkey()
399 ctx->ctx.sha_ctx.bytecount = SHA256_BLOCK_SIZE; in hmac_sha256_init_usingrawkey()
H A Dmd5.c140 ctx->bytecount = 0; in md5_init()
146 size_t partial = ctx->bytecount % MD5_BLOCK_SIZE; in md5_update()
148 ctx->bytecount += len; in md5_update()
179 u64 bitcount = ctx->bytecount << 3; in __md5_final()
180 size_t partial = ctx->bytecount % MD5_BLOCK_SIZE; in __md5_final()
251 ctx->hash_ctx.bytecount = MD5_BLOCK_SIZE; in hmac_md5_init()
261 ctx->hash_ctx.bytecount = MD5_BLOCK_SIZE; in hmac_md5_init_usingrawkey()
/linux/crypto/
H A Dmd5.c22 static_assert(offsetof(struct md5_ctx, bytecount) == offsetof(struct md5_state, byte_count));
31 partial = ctx.bytecount % MD5_BLOCK_SIZE; in __crypto_md5_export()
32 ctx.bytecount -= partial; in __crypto_md5_export()
45 ctx->bytecount += *p; in __crypto_md5_import()
H A Dsha1.c25 static_assert(offsetof(struct sha1_ctx, bytecount) == offsetof(struct sha1_state, count));
34 partial = ctx.bytecount % SHA1_BLOCK_SIZE; in __crypto_sha1_export()
35 ctx.bytecount -= partial; in __crypto_sha1_export()
48 ctx->bytecount += *p; in __crypto_sha1_import()
H A Dsha256.c25 static_assert(offsetof(struct __sha256_ctx, bytecount) == 32);
35 partial = ctx.bytecount % SHA256_BLOCK_SIZE; in __crypto_sha256_export()
36 ctx.bytecount -= partial; in __crypto_sha256_export()
49 ctx->bytecount += *p; in __crypto_sha256_import()
/linux/drivers/usb/dwc2/
H A Dhcd_queue.c645 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split() local
770 if (first_data_bytes > bytecount) in dwc2_uframe_schedule_split()
771 first_data_bytes = bytecount; in dwc2_uframe_schedule_split()
772 other_data_bytes = bytecount - first_data_bytes; in dwc2_uframe_schedule_split()
790 (first_data_bytes != min_t(int, 188, bytecount))) { in dwc2_uframe_schedule_split()
793 qh, first_data_bytes, bytecount); in dwc2_uframe_schedule_split()
821 middle_count = bytecount; in dwc2_uframe_schedule_split()
822 end_count = bytecount; in dwc2_uframe_schedule_split()
855 middle_count = min_t(int, 188, bytecount); in dwc2_uframe_schedule_split()
1456 int bytecount = maxp_mult * maxp; in dwc2_qh_init() local
[all …]
/linux/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()
/linux/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()
/linux/include/crypto/
H A Dmd5.h44 u64 bytecount; member
H A Dsha1.h52 u64 bytecount; member
H A Dsha2.h129 u64 bytecount; member
/linux/lib/crypto/x86/
H A Dsha256.h41 static_assert(offsetof(struct __sha256_ctx, bytecount) == 32);
/linux/lib/crypto/arm64/
H A Dsha256.h46 static_assert(offsetof(struct __sha256_ctx, bytecount) == 32);
/linux/include/linux/usb/
H A Dhcd.h638 #define BitTime(bytecount) (7 * 8 * bytecount / 6) /* with integer truncation */ argument
673 int isoc, int bytecount);
/linux/drivers/net/ethernet/intel/igc/
H A Digc_tsn.c39 buffer->bytecount = skb->len; in igc_fpe_init_smd_frame()
67 buffer->bytecount; in igc_fpe_init_tx_descriptor()
69 olinfo_status |= FIELD_PREP(IGC_ADVTXD_PAYLEN_MASK, buffer->bytecount); in igc_fpe_init_tx_descriptor()
/linux/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()
/linux/drivers/usb/core/
H A Dhcd.c1071 long usb_calc_bus_time (int speed, int is_input, int isoc, int bytecount) in usb_calc_bus_time() argument
1078 tmp = (67667L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1081 tmp = (66700L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1086 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1089 tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L; in usb_calc_bus_time()
1095 tmp = HS_NSECS_ISO (bytecount); in usb_calc_bus_time()
1097 tmp = HS_NSECS (bytecount); in usb_calc_bus_time()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_xsk.c417 tx_bi->bytecount = desc.len; in ixgbe_xmit_zc()
475 total_bytes += tx_bi->bytecount; in ixgbe_clean_xdp_tx_irq()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_txrx.h178 unsigned int bytecount; member
H A Diavf_txrx.c266 total_bytes += tx_buf->bytecount; in iavf_clean_tx_irq()
1824 first->bytecount += (first->gso_segs - 1) * *hdr_len; in iavf_tso()
2232 netdev_tx_sent_queue(txring_txq(tx_ring), first->bytecount); in iavf_tx_map()
2333 first->bytecount = skb->len; in iavf_xmit_frame_ring()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_txrx.h270 unsigned int bytecount; member
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dixgbevf.h37 unsigned int bytecount; member

12