/linux-6.6.21/include/sound/ |
D | pcm-indirect.h | 28 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-6.6.21/drivers/md/ |
D | dm-io-rewind.c | 14 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-6.6.21/arch/x86/crypto/ |
D | chacha_glue.c | 49 unsigned int bytes, int nrounds) in chacha_dosimd() argument 53 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd() 54 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd() 56 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 61 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd() 62 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd() 64 state[12] += chacha_advance(bytes, 8); in chacha_dosimd() 67 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd() 68 chacha_4block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd() 70 state[12] += chacha_advance(bytes, 4); in chacha_dosimd() [all …]
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/hmm/ |
D | hmm.c | 169 static ia_css_ptr __hmm_alloc(size_t bytes, enum hmm_bo_type type, in __hmm_alloc() argument 184 pgnr = size_to_pgnr_ceil(bytes); in __hmm_alloc() 208 bo->start, bytes, type, vmalloc); in __hmm_alloc() 220 ia_css_ptr hmm_alloc(size_t bytes) in hmm_alloc() argument 222 return __hmm_alloc(bytes, HMM_BO_PRIVATE, NULL); in hmm_alloc() 225 ia_css_ptr hmm_create_from_vmalloc_buf(size_t bytes, void *vmalloc_addr) in hmm_create_from_vmalloc_buf() argument 227 return __hmm_alloc(bytes, HMM_BO_VMALLOC, vmalloc_addr); in hmm_create_from_vmalloc_buf() 279 unsigned int bytes) in load_and_flush_by_kmap() argument 292 while (bytes) { in load_and_flush_by_kmap() 298 if ((bytes + offset) >= PAGE_SIZE) { in load_and_flush_by_kmap() [all …]
|
/linux-6.6.21/include/linux/ |
D | uio.h | 167 size_t bytes, struct iov_iter *i); 168 void iov_iter_advance(struct iov_iter *i, size_t bytes); 169 void iov_iter_revert(struct iov_iter *i, size_t bytes); 170 size_t fault_in_iov_iter_readable(const struct iov_iter *i, size_t bytes); 171 size_t fault_in_iov_iter_writeable(const struct iov_iter *i, size_t bytes); 173 size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes, 175 size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes, 178 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i); 179 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i); 180 size_t _copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i); [all …]
|
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cmd.c | 186 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument 193 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full() 197 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument 210 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq() 230 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument 235 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait() 240 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait() 249 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait() 253 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait() 277 uint32_t bytes) in vmw_local_fifo_reserve() argument [all …]
|
/linux-6.6.21/drivers/gpu/drm/i915/gvt/ |
D | mmio.c | 65 void *p_data, unsigned int bytes, bool read) in failsafe_emulate_mmio_rw() argument 80 bytes); in failsafe_emulate_mmio_rw() 83 bytes); in failsafe_emulate_mmio_rw() 88 memcpy(p_data, pt, bytes); in failsafe_emulate_mmio_rw() 90 memcpy(pt, p_data, bytes); in failsafe_emulate_mmio_rw() 107 void *p_data, unsigned int bytes) in intel_vgpu_emulate_mmio_read() argument 115 failsafe_emulate_mmio_rw(vgpu, pa, p_data, bytes, true); in intel_vgpu_emulate_mmio_read() 122 if (drm_WARN_ON(&i915->drm, bytes > 8)) in intel_vgpu_emulate_mmio_read() 129 if (drm_WARN_ON(&i915->drm, bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read() 132 !reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read() [all …]
|
D | cfg_space.c | 70 u8 *src, unsigned int bytes) in vgpu_pci_cfg_mem_write() argument 77 for (; i < bytes && (off + i < sizeof(pci_cfg_space_rw_bmp)); i++) { in vgpu_pci_cfg_mem_write() 94 if (i < bytes) in vgpu_pci_cfg_mem_write() 95 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write() 118 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_read() argument 122 if (drm_WARN_ON(&i915->drm, bytes > 4)) in intel_vgpu_emulate_cfg_read() 126 offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_read() 129 memcpy(p_data, vgpu_cfg_space(vgpu) + offset, bytes); in intel_vgpu_emulate_cfg_read() 146 unsigned int offset, void *p_data, unsigned int bytes) in emulate_pci_command_write() argument 152 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_command_write() [all …]
|
/linux-6.6.21/drivers/soc/tegra/fuse/ |
D | fuse-tegra30.c | 139 .bytes = 4, 145 .bytes = 4, 151 .bytes = 4, 157 .bytes = 4, 163 .bytes = 4, 169 .bytes = 4, 175 .bytes = 4, 181 .bytes = 4, 187 .bytes = 4, 193 .bytes = 4, [all …]
|
/linux-6.6.21/arch/arm/include/asm/ |
D | xor.h | 47 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-6.6.21/arch/hexagon/mm/ |
D | copy_user_template.S | 19 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-6.6.21/tools/testing/selftests/bpf/progs/ |
D | test_sockmap_kern.h | 239 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; in bpf_prog4() local 242 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog4() 243 if (bytes) in bpf_prog4() 244 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4() 245 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); in bpf_prog4() 246 if (bytes) in bpf_prog4() 247 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4() 270 int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; in bpf_prog6() local 274 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog6() 275 if (bytes) in bpf_prog6() [all …]
|
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_eth_sysfs.c | 36 ssize_t bytes = 0; in dpaa_eth_show_fqids() local 70 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids() 73 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids() 93 bytes += sprintf(buf + bytes, "%s: %d\n", prevstr, in dpaa_eth_show_fqids() 96 bytes += sprintf(buf + bytes, "%s: %d - %d\n", prevstr, in dpaa_eth_show_fqids() 100 return bytes; in dpaa_eth_show_fqids() 107 ssize_t bytes = 0; in dpaa_eth_show_bpids() local 109 bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n", in dpaa_eth_show_bpids() 112 return bytes; in dpaa_eth_show_bpids()
|
/linux-6.6.21/fs/btrfs/ |
D | free-space-cache.c | 43 u64 bytes; member 53 u64 *bytes, bool for_alloc); 58 u64 bytes, bool update_stats); 577 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry() argument 587 put_unaligned_le64(bytes, &entry->bytes); in io_ctl_add_entry() 661 entry->bytes = get_unaligned_le64(&e->bytes); in io_ctl_read_entry() 825 if (!e->bytes) { in __load_free_space_cache() 908 const u64 bytes = info->bytes; in copy_free_space_cache() local 913 ret = btrfs_add_free_space(block_group, offset, bytes); in copy_free_space_cache() 917 u64 bytes = ctl->unit; in copy_free_space_cache() local [all …]
|
D | space-info.h | 161 u64 bytes; member 182 s64 bytes) \ 184 const u64 abs_bytes = (bytes < 0) ? -bytes : bytes; \ 186 trace_update_##name(fs_info, sinfo, sinfo->name, bytes); \ 189 bytes > 0); \ 190 if (bytes < 0 && sinfo->name < -bytes) { \ 195 sinfo->name += bytes; \ 212 struct btrfs_space_info *info, u64 bytes, 221 struct btrfs_space_info *space_info, u64 bytes, 234 int btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes,
|
/linux-6.6.21/lib/raid6/ |
D | neon.h | 3 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,
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | cacheflush.h | 73 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-6.6.21/tools/include/linux/ |
D | overflow.h | 84 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-6.6.21/sound/i2c/other/ |
D | pt2258.c | 34 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-6.6.21/arch/alpha/lib/ |
D | ev6-memcpy.S | 68 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-6.6.21/drivers/media/pci/cobalt/ |
D | cobalt-omnitek.c | 172 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-6.6.21/drivers/crypto/vmx/ |
D | ghash.c | 43 int bytes; member 50 dctx->bytes = 0; in p8_ghash_init() 124 if (dctx->bytes) { in p8_ghash_update() 125 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update() 126 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update() 128 dctx->bytes += srclen; in p8_ghash_update() 131 memcpy(dctx->buffer + dctx->bytes, src, in p8_ghash_update() 132 GHASH_DIGEST_SIZE - dctx->bytes); in p8_ghash_update() 136 src += GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update() 137 srclen -= GHASH_DIGEST_SIZE - dctx->bytes; in p8_ghash_update() [all …]
|
/linux-6.6.21/crypto/ |
D | nhpoly1305.c | 97 unsigned int bytes; in nhpoly1305_units() local 101 bytes = min_t(unsigned int, srclen, NH_MESSAGE_BYTES); in nhpoly1305_units() 102 nh_fn(key->nh_key, src, bytes, state->nh_hash); in nhpoly1305_units() 103 state->nh_remaining = NH_MESSAGE_BYTES - bytes; in nhpoly1305_units() 111 bytes = min(srclen, state->nh_remaining); in nhpoly1305_units() 112 nh_fn(&key->nh_key[pos / 4], src, bytes, tmp_hash); in nhpoly1305_units() 116 state->nh_remaining -= bytes; in nhpoly1305_units() 120 src += bytes; in nhpoly1305_units() 121 srclen -= bytes; in nhpoly1305_units() 161 unsigned int bytes; in crypto_nhpoly1305_update_helper() local [all …]
|
/linux-6.6.21/lib/ |
D | memcpy_kunit.c | 335 for (int bytes = 1; bytes <= ARRAY_SIZE(large_src); bytes++) { in copy_large_test() local 338 int right_zero_pos = offset + bytes; in copy_large_test() 343 memmove(large_dst + offset, large_src, bytes); in copy_large_test() 345 memcpy(large_dst + offset, large_src, bytes); in copy_large_test() 350 "with size %d at offset %d", bytes, offset); in copy_large_test() 354 "with size %d at offset %d", bytes, offset); in copy_large_test() 358 memcmp(large_dst + offset, large_src, bytes), 0, in copy_large_test() 359 "with size %d at offset %d", bytes, offset); in copy_large_test() 362 memset(large_dst + offset, 0, bytes); in copy_large_test() 398 static void inner_loop(struct kunit *test, int bytes, int d_off, int s_off) in inner_loop() argument [all …]
|
/linux-6.6.21/drivers/ps3/ |
D | ps3-vuart.c | 352 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 …]
|