Home
last modified time | relevance | path

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

12345678910>>...66

/Linux-v5.4/include/sound/
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-v5.4/include/linux/
Duio.h116 struct iov_iter *i, unsigned long offset, size_t bytes);
117 void iov_iter_advance(struct iov_iter *i, size_t bytes);
118 void iov_iter_revert(struct iov_iter *i, size_t bytes);
119 int iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes);
121 size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes,
123 size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes,
126 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i);
127 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i);
128 bool _copy_from_iter_full(void *addr, size_t bytes, struct iov_iter *i);
129 size_t _copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i);
[all …]
/Linux-v5.4/sound/drivers/
Dpcm-indirect2.c126 unsigned int bytes) in snd_pcm_indirect2_increase_min_periods() argument
130 rec->sw_io += bytes; in snd_pcm_indirect2_increase_min_periods()
182 if (bytes >= diff) in snd_pcm_indirect2_increase_min_periods()
185 rec->sw_io += bytes; in snd_pcm_indirect2_increase_min_periods()
192 rec->min_period_count += bytes; in snd_pcm_indirect2_increase_min_periods()
261 unsigned int bytes; in snd_pcm_indirect2_playback_transfer() local
282 bytes = zero(substream, rec); in snd_pcm_indirect2_playback_transfer()
285 rec->zeros2hw += bytes; in snd_pcm_indirect2_playback_transfer()
286 if (bytes < 64) in snd_pcm_indirect2_playback_transfer()
287 rec->zero_sizes[bytes]++; in snd_pcm_indirect2_playback_transfer()
[all …]
/Linux-v5.4/arch/x86/crypto/
Dchacha_glue.c50 unsigned int bytes, int nrounds) in chacha_dosimd() argument
55 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd()
56 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
58 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd()
63 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd()
64 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
66 state[12] += chacha_advance(bytes, 8); in chacha_dosimd()
69 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd()
70 chacha_4block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd()
72 state[12] += chacha_advance(bytes, 4); in chacha_dosimd()
[all …]
/Linux-v5.4/drivers/gpu/drm/i915/gvt/
Dmmio.c61 void *p_data, unsigned int bytes, bool read) in failsafe_emulate_mmio_rw() argument
76 bytes); in failsafe_emulate_mmio_rw()
79 bytes); in failsafe_emulate_mmio_rw()
84 memcpy(p_data, pt, bytes); in failsafe_emulate_mmio_rw()
86 memcpy(pt, p_data, bytes); in failsafe_emulate_mmio_rw()
103 void *p_data, unsigned int bytes) in intel_vgpu_emulate_mmio_read() argument
110 failsafe_emulate_mmio_rw(vgpu, pa, p_data, bytes, true); in intel_vgpu_emulate_mmio_read()
117 if (WARN_ON(bytes > 8)) in intel_vgpu_emulate_mmio_read()
123 if (WARN_ON(bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read()
125 if (WARN_ON(!reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read()
[all …]
Dcfg_space.c69 u8 *src, unsigned int bytes) in vgpu_pci_cfg_mem_write() argument
75 for (; i < bytes && (off + i < sizeof(pci_cfg_space_rw_bmp)); i++) { in vgpu_pci_cfg_mem_write()
92 if (i < bytes) in vgpu_pci_cfg_mem_write()
93 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write()
107 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_read() argument
109 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_read()
112 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_read()
115 memcpy(p_data, vgpu_cfg_space(vgpu) + offset, bytes); in intel_vgpu_emulate_cfg_read()
176 unsigned int offset, void *p_data, unsigned int bytes) in emulate_pci_command_write() argument
183 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_command_write()
[all …]
Dedid.c136 unsigned int offset, void *p_data, unsigned int bytes) in gmbus0_mmio_write() argument
141 memcpy(&vgpu_vreg(vgpu, offset), p_data, bytes); in gmbus0_mmio_write()
176 void *p_data, unsigned int bytes) in gmbus1_mmio_write() argument
277 void *p_data, unsigned int bytes) in gmbus3_mmio_write() argument
284 void *p_data, unsigned int bytes) in gmbus3_mmio_read() argument
297 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read()
309 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read()
330 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read()
337 void *p_data, unsigned int bytes) in gmbus2_mmio_read() argument
343 memcpy(p_data, (void *)&value, bytes); in gmbus2_mmio_read()
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/
Dtest_sockmap_kern.h177 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; in bpf_prog4() local
180 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog4()
181 if (bytes) in bpf_prog4()
182 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4()
183 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); in bpf_prog4()
184 if (bytes) in bpf_prog4()
185 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4()
206 int *bytes, len1, len2 = 0, len3, len4; in bpf_prog5() local
209 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog5()
210 if (bytes) in bpf_prog5()
[all …]
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fifo.c208 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument
216 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full()
220 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument
233 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq()
253 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument
258 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait()
263 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait()
272 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
276 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
300 uint32_t bytes) in vmw_local_fifo_reserve() argument
[all …]
/Linux-v5.4/arch/arm/include/asm/
Dxor.h47 xor_arm4regs_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_arm4regs_2() argument
49 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_2()
67 xor_arm4regs_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_3() argument
70 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_3()
89 xor_arm4regs_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_4() argument
92 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_4()
108 xor_arm4regs_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_5() argument
111 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_5()
149 xor_neon_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_neon_2() argument
152 xor_arm4regs_2(bytes, p1, p2); in xor_neon_2()
[all …]
/Linux-v5.4/arch/hexagon/mm/
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-v5.4/drivers/rtc/
Drtc-dm355evm.c29 u8 bytes[4]; member
48 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time()
50 time.bytes[0] = status; in dm355evm_rtc_read_time()
55 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time()
57 time.bytes[1] = status; in dm355evm_rtc_read_time()
62 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time()
64 time.bytes[2] = status; in dm355evm_rtc_read_time()
69 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time()
71 time.bytes[3] = status; in dm355evm_rtc_read_time()
96 status = dm355evm_msp_write(time.bytes[0], DM355EVM_MSP_RTC_0); in dm355evm_rtc_set_time()
[all …]
/Linux-v5.4/fs/btrfs/
Dfree-space-cache.c30 u64 bytes; member
510 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry() argument
520 entry->bytes = cpu_to_le64(bytes); in io_ctl_add_entry()
594 entry->bytes = le64_to_cpu(e->bytes); in io_ctl_read_entry()
644 if (prev->offset + prev->bytes == e->offset) { in merge_space_tree()
647 prev->bytes += e->bytes; in merge_space_tree()
750 if (!e->bytes) { in __load_free_space_cache()
947 ret = io_ctl_add_entry(io_ctl, e->offset, e->bytes, in write_cache_extent_entries()
977 trim_entry->bytes, NULL); in write_cache_extent_entries()
1423 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) in bytes_to_bits() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa/
Ddpaa_eth_sysfs.c62 ssize_t bytes = 0; in dpaa_eth_show_fqids() local
96 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids()
99 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids()
119 bytes += sprintf(buf + bytes, "%s: %d\n", prevstr, in dpaa_eth_show_fqids()
122 bytes += sprintf(buf + bytes, "%s: %d - %d\n", prevstr, in dpaa_eth_show_fqids()
126 return bytes; in dpaa_eth_show_fqids()
133 ssize_t bytes = 0; in dpaa_eth_show_bpids() local
137 bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n", in dpaa_eth_show_bpids()
140 return bytes; in dpaa_eth_show_bpids()
/Linux-v5.4/lib/
Diov_iter.c156 static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_iovec() argument
164 if (unlikely(bytes > i->count)) in copy_page_to_iter_iovec()
165 bytes = i->count; in copy_page_to_iter_iovec()
167 if (unlikely(!bytes)) in copy_page_to_iter_iovec()
171 wanted = bytes; in copy_page_to_iter_iovec()
175 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec()
186 bytes -= copy; in copy_page_to_iter_iovec()
188 while (unlikely(!left && bytes)) { in copy_page_to_iter_iovec()
191 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec()
196 bytes -= copy; in copy_page_to_iter_iovec()
[all …]
/Linux-v5.4/arch/powerpc/include/asm/
Dcacheflush.h67 unsigned long bytes = l1_cache_bytes(); in flush_dcache_range() local
68 void *addr = (void *)(start & ~(bytes - 1)); in flush_dcache_range()
69 unsigned long size = stop - (unsigned long)addr + (bytes - 1); in flush_dcache_range()
77 for (i = 0; i < size >> shift; i++, addr += bytes) in flush_dcache_range()
93 unsigned long bytes = l1_cache_bytes(); in clean_dcache_range() local
94 void *addr = (void *)(start & ~(bytes - 1)); in clean_dcache_range()
95 unsigned long size = stop - (unsigned long)addr + (bytes - 1); in clean_dcache_range()
98 for (i = 0; i < size >> shift; i++, addr += bytes) in clean_dcache_range()
112 unsigned long bytes = l1_cache_bytes(); in invalidate_dcache_range() local
113 void *addr = (void *)(start & ~(bytes - 1)); in invalidate_dcache_range()
[all …]
/Linux-v5.4/sound/i2c/other/
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-v5.4/arch/alpha/lib/
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-v5.4/drivers/media/pci/cobalt/
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-v5.4/drivers/crypto/vmx/
Dghash.c42 int bytes; member
49 dctx->bytes = 0; in p8_ghash_init()
123 if (dctx->bytes) { in p8_ghash_update()
124 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update()
125 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
127 dctx->bytes += srclen; in p8_ghash_update()
130 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update()
131 GHASH_DIGEST_SIZE - dctx->bytes); in p8_ghash_update()
135 src += GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
136 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update()
[all …]
/Linux-v5.4/arch/s390/lib/
Dxor.c14 static void xor_xc_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_xc_2() argument
31 : : "d" (bytes), "a" (p1), "a" (p2) in xor_xc_2()
35 static void xor_xc_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_xc_3() argument
57 : "+d" (bytes), "+a" (p1), "+a" (p2), "+a" (p3) in xor_xc_3()
61 static void xor_xc_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_xc_4() argument
87 : "+d" (bytes), "+a" (p1), "+a" (p2), "+a" (p3), "+a" (p4) in xor_xc_4()
91 static void xor_xc_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_xc_5() argument
124 : "+d" (bytes), "+a" (p1), "+a" (p2), "+a" (p3), "+a" (p4), in xor_xc_5()
/Linux-v5.4/crypto/
Dnhpoly1305.c96 unsigned int bytes; in nhpoly1305_units() local
100 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units()
101 nh_fn(key->nh_key, src, bytes, state->nh_hash); in nhpoly1305_units()
102 state->nh_remaining = NH_MESSAGE_BYTES - bytes; in nhpoly1305_units()
110 bytes = min(srclen, state->nh_remaining); in nhpoly1305_units()
111 nh_fn(&key->nh_key[pos / 4], src, bytes, tmp_hash); in nhpoly1305_units()
115 state->nh_remaining -= bytes; in nhpoly1305_units()
119 src += bytes; in nhpoly1305_units()
120 srclen -= bytes; in nhpoly1305_units()
160 unsigned int bytes; in crypto_nhpoly1305_update_helper() local
[all …]
/Linux-v5.4/arch/s390/include/asm/
Dalternative-asm.h39 .macro alt_pad_fill bytes
40 .fill ( \bytes ) / 6, 6, 0xc0040000
41 .fill ( \bytes ) % 6 / 4, 4, 0x47000000
42 .fill ( \bytes ) % 6 % 4 / 2, 2, 0x0700
50 .macro alt_pad bytes
51 .if ( \bytes > 0 )
52 .if ( \bytes > 6 )
53 jg . + \bytes
54 alt_pad_fill \bytes - 6
56 alt_pad_fill \bytes
/Linux-v5.4/arch/powerpc/lib/
Dxor_vmx_glue.c15 void xor_altivec_2(unsigned long bytes, unsigned long *v1_in, in xor_altivec_2() argument
20 __xor_altivec_2(bytes, v1_in, v2_in); in xor_altivec_2()
26 void xor_altivec_3(unsigned long bytes, unsigned long *v1_in, in xor_altivec_3() argument
31 __xor_altivec_3(bytes, v1_in, v2_in, v3_in); in xor_altivec_3()
37 void xor_altivec_4(unsigned long bytes, unsigned long *v1_in, in xor_altivec_4() argument
43 __xor_altivec_4(bytes, v1_in, v2_in, v3_in, v4_in); in xor_altivec_4()
49 void xor_altivec_5(unsigned long bytes, unsigned long *v1_in, in xor_altivec_5() argument
55 __xor_altivec_5(bytes, v1_in, v2_in, v3_in, v4_in, v5_in); in xor_altivec_5()
/Linux-v5.4/drivers/ps3/
Dps3-vuart.c352 const void *buf, unsigned int bytes, u64 *bytes_written) in ps3_vuart_raw_write() argument
358 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_written); in ps3_vuart_raw_write()
369 *bytes_written, bytes, priv->stats.bytes_written); in ps3_vuart_raw_write()
382 unsigned int bytes, u64 *bytes_read) in ps3_vuart_raw_read() argument
387 dev_dbg(&dev->core, "%s:%d: %xh\n", __func__, __LINE__, bytes); in ps3_vuart_raw_read()
390 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); in ps3_vuart_raw_read()
401 *bytes_read, bytes, priv->stats.bytes_read); in ps3_vuart_raw_read()
415 unsigned int bytes) in ps3_vuart_clear_rx_bytes() argument
426 bytes = bytes ? min(bytes, (unsigned int)bytes_waiting) : bytes_waiting; in ps3_vuart_clear_rx_bytes()
428 dev_dbg(&dev->core, "%s:%d: %u\n", __func__, __LINE__, bytes); in ps3_vuart_clear_rx_bytes()
[all …]

12345678910>>...66