Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 1843) sorted by relevance

12345678910>>...74

/linux/drivers/power/supply/
H A Dmax1720x_battery.c154 { .name = "nXTable0", .offset = 0, .bytes = 2, },
155 { .name = "nXTable1", .offset = 2, .bytes = 2, },
156 { .name = "nXTable2", .offset = 4, .bytes = 2, },
157 { .name = "nXTable3", .offset = 6, .bytes = 2, },
158 { .name = "nXTable4", .offset = 8, .bytes = 2, },
159 { .name = "nXTable5", .offset = 10, .bytes = 2, },
160 { .name = "nXTable6", .offset = 12, .bytes = 2, },
161 { .name = "nXTable7", .offset = 14, .bytes = 2, },
162 { .name = "nXTable8", .offset = 16, .bytes = 2, },
163 { .name = "nXTable9", .offset = 18, .bytes = 2, },
[all …]
/linux/lib/crypto/x86/
H A Dchacha.h53 unsigned int bytes, int nrounds) in chacha_dosimd() argument
56 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd()
57 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
59 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd()
64 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd()
65 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
67 state->x[12] += chacha_advance(bytes, 8); in chacha_dosimd()
70 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd()
71 chacha_4block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
73 state->x[12] += chacha_advance(bytes, 4); in chacha_dosimd()
[all …]
/linux/include/sound/
H A Dpcm-indirect.h28 struct snd_pcm_indirect *rec, size_t bytes);
55 unsigned int bytes = qsize - rec->hw_ready; in snd_pcm_indirect_playback_transfer() local
56 if (rec->sw_ready < (int)bytes) in snd_pcm_indirect_playback_transfer()
57 bytes = rec->sw_ready; in snd_pcm_indirect_playback_transfer()
58 if (hw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
59 bytes = hw_to_end; in snd_pcm_indirect_playback_transfer()
60 if (sw_to_end < bytes) in snd_pcm_indirect_playback_transfer()
61 bytes = sw_to_end; in snd_pcm_indirect_playback_transfer()
62 if (! bytes) in snd_pcm_indirect_playback_transfer()
64 copy(substream, rec, bytes); in snd_pcm_indirect_playback_transfer()
[all …]
/linux/drivers/md/
H A Ddm-io-rewind.c14 unsigned int bytes) in dm_bvec_iter_rewind() argument
18 iter->bi_size += bytes; in dm_bvec_iter_rewind()
19 if (bytes <= iter->bi_bvec_done) { in dm_bvec_iter_rewind()
20 iter->bi_bvec_done -= bytes; in dm_bvec_iter_rewind()
24 bytes -= iter->bi_bvec_done; in dm_bvec_iter_rewind()
27 while (idx >= 0 && bytes && bytes > bv[idx].bv_len) { in dm_bvec_iter_rewind()
28 bytes -= bv[idx].bv_len; in dm_bvec_iter_rewind()
32 if (WARN_ONCE(idx < 0 && bytes, in dm_bvec_iter_rewind()
34 iter->bi_size -= bytes; in dm_bvec_iter_rewind()
41 iter->bi_bvec_done = bv[idx].bv_len - bytes; in dm_bvec_iter_rewind()
[all …]
/linux/lib/crypto/arm/
H A Dchacha.h27 asmlinkage void chacha_doarm(u8 *dst, const u8 *src, unsigned int bytes,
38 unsigned int bytes, int nrounds) in chacha_doneon() argument
42 while (bytes > CHACHA_BLOCK_SIZE) { in chacha_doneon()
43 unsigned int l = min(bytes, CHACHA_BLOCK_SIZE * 4U); in chacha_doneon()
46 bytes -= l; in chacha_doneon()
51 if (bytes) { in chacha_doneon()
55 if (bytes != CHACHA_BLOCK_SIZE) in chacha_doneon()
56 s = d = memcpy(buf, src, bytes); in chacha_doneon()
59 memcpy(dst, buf, bytes); in chacha_doneon()
76 const u8 *src, unsigned int bytes, int nrounds) in chacha_crypt_arch() argument
[all …]
/linux/arch/arm/include/asm/
H A Dxor.h47 xor_arm4regs_2(unsigned long bytes, unsigned long * __restrict p1, in xor_arm4regs_2() argument
50 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_2()
68 xor_arm4regs_3(unsigned long bytes, unsigned long * __restrict p1, in xor_arm4regs_3() argument
72 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_3()
91 xor_arm4regs_4(unsigned long bytes, unsigned long * __restrict p1, in xor_arm4regs_4() argument
96 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_4()
112 xor_arm4regs_5(unsigned long bytes, unsigned long * __restrict p1, in xor_arm4regs_5() argument
118 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_5()
156 xor_neon_2(unsigned long bytes, unsigned long * __restrict p1, in xor_neon_2() argument
160 xor_arm4regs_2(bytes, p1, p2); in xor_neon_2()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sockmap_kern.h236 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; in bpf_prog4() local
239 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog4()
240 if (bytes) in bpf_prog4()
241 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4()
242 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); in bpf_prog4()
243 if (bytes) in bpf_prog4()
244 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4()
267 int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; in bpf_prog6() local
271 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog6()
272 if (bytes) in bpf_prog6()
[all …]
/linux/arch/hexagon/mm/
H A Dcopy_user_template.S19 p0 = cmp.gtu(bytes,#0)
25 p1 = cmp.gtu(bytes,#15)
32 loopcount = lsr(bytes,#3)
46 bytes -= asl(loopcount,#3)
58 p1 = cmp.gtu(bytes,#7)
63 loopcount = lsr(bytes,#2)
76 bytes -= asl(loopcount,#2)
84 p1 = cmp.gtu(bytes,#3)
89 loopcount = lsr(bytes,#1)
102 bytes -= asl(loopcount,#1)
[all …]
/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth_sysfs.c36 ssize_t bytes = 0; in dpaa_eth_show_fqids() local
69 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids()
72 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids()
91 bytes += sprintf(buf + bytes, "%s: %d\n", prevstr, in dpaa_eth_show_fqids()
94 bytes += sprintf(buf + bytes, "%s: %d - %d\n", prevstr, in dpaa_eth_show_fqids()
98 return bytes; in dpaa_eth_show_fqids()
105 ssize_t bytes = 0; in dpaa_eth_show_bpids() local
107 bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n", in dpaa_eth_show_bpids()
110 return bytes; in dpaa_eth_show_bpids()
/linux/arch/powerpc/include/asm/
H A Dcacheflush.h73 unsigned long bytes = l1_dcache_bytes(); in flush_dcache_range() local
74 void *addr = (void *)(start & ~(bytes - 1)); in flush_dcache_range()
75 unsigned long size = stop - (unsigned long)addr + (bytes - 1); in flush_dcache_range()
81 for (i = 0; i < size >> shift; i++, addr += bytes) in flush_dcache_range()
95 unsigned long bytes = l1_dcache_bytes(); in clean_dcache_range() local
96 void *addr = (void *)(start & ~(bytes - 1)); in clean_dcache_range()
97 unsigned long size = stop - (unsigned long)addr + (bytes - 1); in clean_dcache_range()
100 for (i = 0; i < size >> shift; i++, addr += bytes) in clean_dcache_range()
114 unsigned long bytes = l1_dcache_bytes(); in invalidate_dcache_range() local
115 void *addr = (void *)(start & ~(bytes - 1)); in invalidate_dcache_range()
[all …]
/linux/lib/crypto/powerpc/
H A Dchacha.h33 unsigned int bytes, int nrounds) in chacha_p10_do_8x() argument
35 unsigned int l = bytes & ~0x0FF; in chacha_p10_do_8x()
39 bytes -= l; in chacha_p10_do_8x()
45 if (bytes > 0) in chacha_p10_do_8x()
46 chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_p10_do_8x()
52 const u8 *src, unsigned int bytes, int nrounds) in chacha_crypt_arch() argument
54 if (!static_branch_likely(&have_p10) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch()
56 return chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt_arch()
59 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch()
65 bytes -= todo; in chacha_crypt_arch()
[all …]
/linux/lib/raid6/
H A Dneon.h3 void raid6_neon1_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs);
5 unsigned long bytes, void **ptrs);
6 void raid6_neon2_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs);
8 unsigned long bytes, void **ptrs);
9 void raid6_neon4_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs);
11 unsigned long bytes, void **ptrs);
12 void raid6_neon8_gen_syndrome_real(int disks, unsigned long bytes, void **ptrs);
14 unsigned long bytes, void **ptrs);
15 void __raid6_2data_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t *dp,
19 void __raid6_datap_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t *dq,
H A Drecov_loongarch_simd.c29 static void raid6_2data_recov_lsx(int disks, size_t bytes, int faila, in raid6_2data_recov_lsx() argument
51 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_lsx()
74 while (bytes) { in raid6_2data_recov_lsx()
176 bytes -= 64; in raid6_2data_recov_lsx()
186 static void raid6_datap_recov_lsx(int disks, size_t bytes, int faila, in raid6_datap_recov_lsx() argument
203 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_datap_recov_lsx()
218 while (bytes) { in raid6_datap_recov_lsx()
279 bytes -= 64; in raid6_datap_recov_lsx()
303 static void raid6_2data_recov_lasx(int disks, size_t bytes, int faila, in raid6_2data_recov_lasx() argument
325 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_lasx()
[all …]
H A Drecov_rvv.c10 static void __raid6_2data_recov_rvv(int bytes, u8 *p, u8 *q, u8 *dp, in __raid6_2data_recov_rvv() argument
33 while (bytes) { in __raid6_2data_recov_rvv()
81 bytes -= 16; in __raid6_2data_recov_rvv()
89 static void __raid6_datap_recov_rvv(int bytes, u8 *p, u8 *q, in __raid6_datap_recov_rvv() argument
106 while (bytes) { in __raid6_datap_recov_rvv()
138 bytes -= 16; in __raid6_datap_recov_rvv()
145 static void raid6_2data_recov_rvv(int disks, size_t bytes, int faila, in raid6_2data_recov_rvv() argument
167 raid6_call.gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_rvv()
181 __raid6_2data_recov_rvv(bytes, p, q, dp, dq, pbmul, qmul); in raid6_2data_recov_rvv()
185 static void raid6_datap_recov_rvv(int disks, size_t bytes, int faila, in raid6_datap_recov_rvv() argument
[all …]
/linux/tools/include/linux/
H A Doverflow.h84 size_t bytes; in array_size() local
86 if (check_mul_overflow(a, b, &bytes)) in array_size()
89 return bytes; in array_size()
106 size_t bytes; in array3_size() local
108 if (check_mul_overflow(a, b, &bytes)) in array3_size()
110 if (check_mul_overflow(bytes, c, &bytes)) in array3_size()
113 return bytes; in array3_size()
118 size_t bytes; in __ab_c_size() local
120 if (check_mul_overflow(n, size, &bytes)) in __ab_c_size()
122 if (check_add_overflow(bytes, c, &bytes)) in __ab_c_size()
[all …]
/linux/sound/i2c/other/
H A Dpt2258.c34 unsigned char bytes[2]; in snd_pt2258_reset() local
38 bytes[0] = PT2258_CMD_RESET; in snd_pt2258_reset()
40 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
46 bytes[0] = PT2258_CMD_MUTE; in snd_pt2258_reset()
48 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
55 bytes[0] = 0xd0; in snd_pt2258_reset()
56 bytes[1] = 0xe0; in snd_pt2258_reset()
58 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset()
97 unsigned char bytes[2]; in pt2258_stereo_volume_put() local
108 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); in pt2258_stereo_volume_put()
[all …]
/linux/arch/alpha/lib/
H A Dev6-memcpy.S68 ldq $1, 0($17) # L : get 8 bytes
85 wh64 ($7) # L1 : memory subsystem hint: 64 bytes at
87 ldq $6, 0($17) # L0 : bytes 0..7
91 ldq $4, 8($17) # L : bytes 8..15
92 ldq $5, 16($17) # L : bytes 16..23
96 ldq $3, 24($17) # L : bytes 24..31
101 addq $17, 32, $17 # E : src += 32 bytes
102 stq $6, 0($16) # L : bytes 0..7
106 stq $4, 8($16) # L : bytes 8..15
107 stq $5, 16($16) # L : bytes 16..23
[all …]
/linux/drivers/media/pci/cobalt/
H A Dcobalt-omnitek.c172 unsigned bytes; in descriptor_list_create() local
193 bytes = min(sg_dma_len(scatter_list) - offset, in descriptor_list_create()
203 d->bytes = (bytes / 2) & ~3; in descriptor_list_create()
205 size -= d->bytes; in descriptor_list_create()
206 copied += d->bytes; in descriptor_list_create()
207 offset += d->bytes; in descriptor_list_create()
208 addr += d->bytes; in descriptor_list_create()
213 bytes -= d->bytes; in descriptor_list_create()
228 d->bytes = bytes; in descriptor_list_create()
230 size -= bytes; in descriptor_list_create()
[all …]
/linux/lib/crypto/arm64/
H A Dchacha.h32 int nrounds, int bytes);
39 int bytes, int nrounds) in chacha_doneon() argument
41 while (bytes > 0) { in chacha_doneon()
42 int l = min(bytes, CHACHA_BLOCK_SIZE * 5); in chacha_doneon()
54 bytes -= l; in chacha_doneon()
73 const u8 *src, unsigned int bytes, int nrounds) in chacha_crypt_arch() argument
75 if (!static_branch_likely(&have_neon) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch()
77 return chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt_arch()
80 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch()
85 bytes -= todo; in chacha_crypt_arch()
[all …]
/linux/drivers/nvmem/
H A Dqnap-mcu-eeprom.c23 void *val, size_t bytes) in qnap_mcu_eeprom_read_block() argument
25 const u8 cmd[] = { 0xf7, 0xa1, offset, bytes }; in qnap_mcu_eeprom_read_block()
29 reply = kzalloc(bytes + sizeof(cmd), GFP_KERNEL); in qnap_mcu_eeprom_read_block()
33 ret = qnap_mcu_exec(mcu, cmd, sizeof(cmd), reply, bytes + sizeof(cmd)); in qnap_mcu_eeprom_read_block()
43 memcpy(val, reply + sizeof(cmd), bytes); in qnap_mcu_eeprom_read_block()
50 static int qnap_mcu_eeprom_read(void *priv, unsigned int offset, void *val, size_t bytes) in qnap_mcu_eeprom_read() argument
56 if (unlikely(!bytes)) in qnap_mcu_eeprom_read()
59 while (bytes > 0) { in qnap_mcu_eeprom_read()
60 size_t to_read = (bytes > QNAP_MCU_EEPROM_BLOCK_SIZE) ? in qnap_mcu_eeprom_read()
61 QNAP_MCU_EEPROM_BLOCK_SIZE : bytes; in qnap_mcu_eeprom_read()
[all …]
/linux/net/netfilter/
H A Dxt_connbytes.c27 u_int64_t bytes = 0; in connbytes_mt() local
59 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
62 what = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
65 what = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
66 what += atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
73 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes); in connbytes_mt()
77 bytes = atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
81 bytes = atomic64_read(&counters[IP_CT_DIR_ORIGINAL].bytes) + in connbytes_mt()
82 atomic64_read(&counters[IP_CT_DIR_REPLY].bytes); in connbytes_mt()
88 what = div64_u64(bytes, pkts); in connbytes_mt()
/linux/drivers/media/usb/hdpvr/
H A Dhdpvr-core.c69 static void challenge(u8 *bytes) in challenge() argument
78 bytes[(idx >> 3) + 3] = bytes[(idx >> 2) & 0x3]; in challenge()
82 bytes[2] += bytes[3] * 4 + bytes[4] + bytes[5]; in challenge()
83 bytes[4] += bytes[(idx & 0x1) * 2] * 9 + 9; in challenge()
86 bytes[0] *= 8; in challenge()
87 bytes[0] += 7*idx + 4; in challenge()
88 bytes[6] += bytes[3] * 3; in challenge()
91 bytes[3 - (idx >> 3)] = bytes[idx >> 2]; in challenge()
92 bytes[5] += bytes[6] * 3; in challenge()
94 bytes[3] *= bytes[3] + 1; in challenge()
[all …]
/linux/sound/i2c/
H A Dtea6330t.c95 unsigned char bytes[3]; in snd_tea6330t_put_master_volume() local
106 bytes[count++] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_volume()
107 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = tea->mleft; in snd_tea6330t_put_master_volume()
111 bytes[count++] = TEA6330T_SADDR_VOLUME_RIGHT; in snd_tea6330t_put_master_volume()
112 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] = tea->mright; in snd_tea6330t_put_master_volume()
115 err = snd_i2c_sendbytes(tea->device, bytes, count); in snd_tea6330t_put_master_volume()
147 unsigned char bytes[3]; in snd_tea6330t_put_master_switch() local
158 bytes[0] = TEA6330T_SADDR_VOLUME_LEFT; in snd_tea6330t_put_master_switch()
159 bytes[1] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT]; in snd_tea6330t_put_master_switch()
160 bytes[2] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT]; in snd_tea6330t_put_master_switch()
[all …]
/linux/drivers/misc/mei/
H A Dmei_lb.c100 static bool mei_lb_check_response(const struct device *dev, ssize_t bytes, in mei_lb_check_response() argument
109 if (bytes < sizeof(rsp->header)) { in mei_lb_check_response()
111 bytes, sizeof(rsp->header)); in mei_lb_check_response()
128 if (bytes < sizeof(*rsp)) { in mei_lb_check_response()
130 bytes, sizeof(*rsp)); in mei_lb_check_response()
144 ssize_t bytes; in mei_lb_push_payload() local
177 bytes = mei_cldev_send_timeout(cldev, (u8 *)req, req_size, in mei_lb_push_payload()
179 if (bytes < 0) { in mei_lb_push_payload()
180 dev_err(dev, "Failed to send late binding request to firmware. %zd\n", bytes); in mei_lb_push_payload()
181 ret = bytes; in mei_lb_push_payload()
[all …]
/linux/lib/zstd/compress/
H A Dzstd_cwksp.h249 size_t const bytes = (alignBytes - ((size_t)ptr & (alignBytesMask))) & alignBytesMask; in ZSTD_cwksp_bytes_to_align_ptr() local
251 assert(bytes < alignBytes); in ZSTD_cwksp_bytes_to_align_ptr()
252 return bytes; in ZSTD_cwksp_bytes_to_align_ptr()
275 ZSTD_cwksp_reserve_internal_buffer_space(ZSTD_cwksp* ws, size_t const bytes) in ZSTD_cwksp_reserve_internal_buffer_space() argument
277 void* const alloc = (BYTE*)ws->allocStart - bytes; in ZSTD_cwksp_reserve_internal_buffer_space()
280 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_internal_buffer_space()
345 ZSTD_cwksp_reserve_internal(ZSTD_cwksp* ws, size_t bytes, ZSTD_cwksp_alloc_phase_e phase) in ZSTD_cwksp_reserve_internal() argument
348 if (ZSTD_isError(ZSTD_cwksp_internal_advance_phase(ws, phase)) || bytes == 0) { in ZSTD_cwksp_reserve_internal()
353 alloc = ZSTD_cwksp_reserve_internal_buffer_space(ws, bytes); in ZSTD_cwksp_reserve_internal()
362 MEM_STATIC BYTE* ZSTD_cwksp_reserve_buffer(ZSTD_cwksp* ws, size_t bytes) in ZSTD_cwksp_reserve_buffer() argument
[all …]

12345678910>>...74