| /Linux-v5.15/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-v5.15/include/linux/ |
| D | uio.h | 133 size_t bytes, struct iov_iter *i); 134 void iov_iter_advance(struct iov_iter *i, size_t bytes); 135 void iov_iter_revert(struct iov_iter *i, size_t bytes); 136 int iov_iter_fault_in_readable(const struct iov_iter *i, size_t bytes); 138 size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes, 140 size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes, 143 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i); 144 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i); 145 size_t _copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i); 148 size_t copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i) in copy_to_iter() argument [all …]
|
| D | overflow.h | 133 size_t bytes; in array_size() local 135 if (check_mul_overflow(a, b, &bytes)) in array_size() 138 return bytes; in array_size() 155 size_t bytes; in array3_size() local 157 if (check_mul_overflow(a, b, &bytes)) in array3_size() 159 if (check_mul_overflow(bytes, c, &bytes)) in array3_size() 162 return bytes; in array3_size() 171 size_t bytes; in __ab_c_size() local 173 if (check_mul_overflow(a, b, &bytes)) in __ab_c_size() 175 if (check_add_overflow(bytes, c, &bytes)) in __ab_c_size() [all …]
|
| /Linux-v5.15/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-v5.15/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_cmd.c | 179 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument 186 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full() 190 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument 203 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq() 223 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument 228 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait() 233 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait() 242 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait() 246 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait() 270 uint32_t bytes) in vmw_local_fifo_reserve() argument [all …]
|
| /Linux-v5.15/drivers/gpu/drm/i915/gvt/ |
| D | mmio.c | 61 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 111 failsafe_emulate_mmio_rw(vgpu, pa, p_data, bytes, true); in intel_vgpu_emulate_mmio_read() 118 if (drm_WARN_ON(&i915->drm, bytes > 8)) in intel_vgpu_emulate_mmio_read() 125 if (drm_WARN_ON(&i915->drm, bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read() 128 !reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read() [all …]
|
| /Linux-v5.15/fs/btrfs/ |
| D | free-space-cache.c | 32 u64 bytes; member 42 u64 *bytes, bool for_alloc); 47 u64 bytes); 551 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry() argument 561 put_unaligned_le64(bytes, &entry->bytes); in io_ctl_add_entry() 635 entry->bytes = get_unaligned_le64(&e->bytes); in io_ctl_read_entry() 793 if (!e->bytes) { in __load_free_space_cache() 873 info->bytes); in copy_free_space_cache() 877 u64 bytes = ctl->unit; in copy_free_space_cache() local 879 while (search_bitmap(ctl, info, &offset, &bytes, in copy_free_space_cache() [all …]
|
| D | space-info.h | 73 u64 bytes; member 94 s64 bytes) \ 96 const u64 abs_bytes = (bytes < 0) ? -bytes : bytes; \ 98 trace_update_##name(fs_info, sinfo, sinfo->name, bytes); \ 101 bytes > 0); \ 102 if (bytes < 0 && sinfo->name < -bytes) { \ 107 sinfo->name += bytes; \ 124 struct btrfs_space_info *info, u64 bytes, 133 struct btrfs_space_info *space_info, u64 bytes, 146 int btrfs_reserve_data_bytes(struct btrfs_fs_info *fs_info, u64 bytes,
|
| /Linux-v5.15/arch/arm/include/asm/ |
| D | xor.h | 47 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.15/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-v5.15/tools/testing/selftests/bpf/progs/ |
| D | test_sockmap_kern.h | 237 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; in bpf_prog4() local 240 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog4() 241 if (bytes) in bpf_prog4() 242 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4() 243 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); in bpf_prog4() 244 if (bytes) in bpf_prog4() 245 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4() 265 int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; in bpf_prog6() local 268 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog6() 269 if (bytes) in bpf_prog6() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/freescale/dpaa/ |
| D | dpaa_eth_sysfs.c | 62 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 135 bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n", in dpaa_eth_show_bpids() 138 return bytes; in dpaa_eth_show_bpids()
|
| /Linux-v5.15/arch/powerpc/include/asm/ |
| D | cacheflush.h | 67 unsigned long bytes = l1_dcache_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() 75 for (i = 0; i < size >> shift; i++, addr += bytes) in flush_dcache_range() 89 unsigned long bytes = l1_dcache_bytes(); in clean_dcache_range() local 90 void *addr = (void *)(start & ~(bytes - 1)); in clean_dcache_range() 91 unsigned long size = stop - (unsigned long)addr + (bytes - 1); in clean_dcache_range() 94 for (i = 0; i < size >> shift; i++, addr += bytes) in clean_dcache_range() 108 unsigned long bytes = l1_dcache_bytes(); in invalidate_dcache_range() local 109 void *addr = (void *)(start & ~(bytes - 1)); in invalidate_dcache_range() [all …]
|
| /Linux-v5.15/drivers/rtc/ |
| D | rtc-dm355evm.c | 29 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.15/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-v5.15/drivers/staging/media/atomisp/pci/hmm/ |
| D | hmm.c | 224 ia_css_ptr hmm_alloc(size_t bytes, enum hmm_bo_type type, in hmm_alloc() argument 243 pgnr = size_to_pgnr_ceil(bytes); in hmm_alloc() 269 hmm_set(bo->start, 0, bytes); in hmm_alloc() 273 __func__, bo->start, bytes, type, from_highmem, userptr, cached); in hmm_alloc() 335 unsigned int bytes) in load_and_flush_by_kmap() argument 348 while (bytes) { in load_and_flush_by_kmap() 354 if ((bytes + offset) >= PAGE_SIZE) { in load_and_flush_by_kmap() 356 bytes -= len; in load_and_flush_by_kmap() 358 len = bytes; in load_and_flush_by_kmap() 359 bytes = 0; in load_and_flush_by_kmap() [all …]
|
| /Linux-v5.15/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-v5.15/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-v5.15/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-v5.15/lib/ |
| D | iov_iter.c | 173 static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_iovec() argument 181 if (unlikely(bytes > i->count)) in copy_page_to_iter_iovec() 182 bytes = i->count; in copy_page_to_iter_iovec() 184 if (unlikely(!bytes)) in copy_page_to_iter_iovec() 188 wanted = bytes; in copy_page_to_iter_iovec() 192 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec() 203 bytes -= copy; in copy_page_to_iter_iovec() 205 while (unlikely(!left && bytes)) { in copy_page_to_iter_iovec() 208 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec() 213 bytes -= copy; in copy_page_to_iter_iovec() [all …]
|
| /Linux-v5.15/drivers/crypto/vmx/ |
| D | ghash.c | 42 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.15/block/ |
| D | blk-map.c | 165 unsigned int bytes = PAGE_SIZE; in bio_copy_user_iov() local 167 bytes -= offset; in bio_copy_user_iov() 169 if (bytes > len) in bio_copy_user_iov() 170 bytes = len; in bio_copy_user_iov() 190 if (bio_add_pc_page(rq->q, bio, page, bytes, offset) < bytes) { in bio_copy_user_iov() 196 len -= bytes; in bio_copy_user_iov() 251 ssize_t bytes; in bio_map_user_iov() local 255 bytes = iov_iter_get_pages_alloc(iter, &pages, LONG_MAX, &offs); in bio_map_user_iov() 256 if (unlikely(bytes <= 0)) { in bio_map_user_iov() 257 ret = bytes ? bytes : -EFAULT; in bio_map_user_iov() [all …]
|
| /Linux-v5.15/arch/s390/lib/ |
| D | xor.c | 14 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 121 : "+d" (bytes), "+a" (p1), "+a" (p2), "+a" (p3), "+a" (p4), in xor_xc_5()
|
| /Linux-v5.15/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-v5.15/include/trace/events/ |
| D | random.h | 12 TP_PROTO(int bytes, unsigned long IP), 14 TP_ARGS(bytes, IP), 17 __field( int, bytes ) 22 __entry->bytes = bytes; 27 __entry->bytes, (void *)__entry->IP) 31 TP_PROTO(const char *pool_name, int bytes, unsigned long IP), 33 TP_ARGS(pool_name, bytes, IP), 37 __field( int, bytes ) 43 __entry->bytes = bytes; 48 __entry->pool_name, __entry->bytes, (void *)__entry->IP) [all …]
|