/Linux-v4.19/include/sound/ |
D | pcm-indirect.h | 41 struct snd_pcm_indirect *rec, size_t bytes); 68 unsigned int bytes = qsize - rec->hw_ready; in snd_pcm_indirect_playback_transfer() local 69 if (rec->sw_ready < (int)bytes) in snd_pcm_indirect_playback_transfer() 70 bytes = rec->sw_ready; in snd_pcm_indirect_playback_transfer() 71 if (hw_to_end < bytes) in snd_pcm_indirect_playback_transfer() 72 bytes = hw_to_end; in snd_pcm_indirect_playback_transfer() 73 if (sw_to_end < bytes) in snd_pcm_indirect_playback_transfer() 74 bytes = sw_to_end; in snd_pcm_indirect_playback_transfer() 75 if (! bytes) in snd_pcm_indirect_playback_transfer() 77 copy(substream, rec, bytes); in snd_pcm_indirect_playback_transfer() [all …]
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_sockmap_kern.h | 184 int *bytes, zero = 0, one = 1; in bpf_prog4() local 187 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog4() 188 if (bytes) in bpf_prog4() 189 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog4() 190 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); in bpf_prog4() 191 if (bytes) in bpf_prog4() 192 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4() 204 int *bytes, *start, *end, len1, len2; in bpf_prog5() local 206 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog5() 207 if (bytes) in bpf_prog5() [all …]
|
/Linux-v4.19/include/linux/ |
D | uio.h | 84 struct iov_iter *i, unsigned long offset, size_t bytes); 85 void iov_iter_advance(struct iov_iter *i, size_t bytes); 86 void iov_iter_revert(struct iov_iter *i, size_t bytes); 87 int iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes); 89 size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes, 91 size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes, 94 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i); 95 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i); 96 bool _copy_from_iter_full(void *addr, size_t bytes, struct iov_iter *i); 97 size_t _copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i); [all …]
|
/Linux-v4.19/sound/drivers/ |
D | pcm-indirect2.c | 139 unsigned int bytes) in snd_pcm_indirect2_increase_min_periods() argument 143 rec->sw_io += bytes; in snd_pcm_indirect2_increase_min_periods() 195 if (bytes >= diff) in snd_pcm_indirect2_increase_min_periods() 198 rec->sw_io += bytes; in snd_pcm_indirect2_increase_min_periods() 205 rec->min_period_count += bytes; in snd_pcm_indirect2_increase_min_periods() 274 unsigned int bytes; in snd_pcm_indirect2_playback_transfer() local 295 bytes = zero(substream, rec); in snd_pcm_indirect2_playback_transfer() 298 rec->zeros2hw += bytes; in snd_pcm_indirect2_playback_transfer() 299 if (bytes < 64) in snd_pcm_indirect2_playback_transfer() 300 rec->zero_sizes[bytes]++; in snd_pcm_indirect2_playback_transfer() [all …]
|
/Linux-v4.19/drivers/gpu/drm/i915/gvt/ |
D | mmio.c | 60 void *p_data, unsigned int bytes, bool read) in failsafe_emulate_mmio_rw() argument 75 bytes); in failsafe_emulate_mmio_rw() 78 bytes); in failsafe_emulate_mmio_rw() 83 memcpy(p_data, pt, bytes); in failsafe_emulate_mmio_rw() 85 memcpy(pt, p_data, bytes); in failsafe_emulate_mmio_rw() 102 void *p_data, unsigned int bytes) in intel_vgpu_emulate_mmio_read() argument 109 failsafe_emulate_mmio_rw(vgpu, pa, p_data, bytes, true); in intel_vgpu_emulate_mmio_read() 116 if (WARN_ON(bytes > 8)) in intel_vgpu_emulate_mmio_read() 122 if (WARN_ON(bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read() 124 if (WARN_ON(!reg_is_gtt(gvt, offset + bytes - 1))) in intel_vgpu_emulate_mmio_read() [all …]
|
D | cfg_space.c | 65 u8 *src, unsigned int bytes) in vgpu_pci_cfg_mem_write() argument 71 for (; i < bytes && (off + i < sizeof(pci_cfg_space_rw_bmp)); i++) { in vgpu_pci_cfg_mem_write() 88 if (i < bytes) in vgpu_pci_cfg_mem_write() 89 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write() 99 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_read() argument 101 if (WARN_ON(bytes > 4)) in intel_vgpu_emulate_cfg_read() 104 if (WARN_ON(offset + bytes > vgpu->gvt->device_info.cfg_space_size)) in intel_vgpu_emulate_cfg_read() 107 memcpy(p_data, vgpu_cfg_space(vgpu) + offset, bytes); in intel_vgpu_emulate_cfg_read() 168 unsigned int offset, void *p_data, unsigned int bytes) in emulate_pci_command_write() argument 175 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_command_write() [all …]
|
D | edid.c | 120 unsigned int offset, void *p_data, unsigned int bytes) in gmbus0_mmio_write() argument 125 memcpy(&vgpu_vreg(vgpu, offset), p_data, bytes); in gmbus0_mmio_write() 158 void *p_data, unsigned int bytes) in gmbus1_mmio_write() argument 259 void *p_data, unsigned int bytes) in gmbus3_mmio_write() argument 266 void *p_data, unsigned int bytes) in gmbus3_mmio_read() argument 279 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read() 291 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read() 312 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); in gmbus3_mmio_read() 319 void *p_data, unsigned int bytes) in gmbus2_mmio_read() argument 325 memcpy(p_data, (void *)&value, bytes); in gmbus2_mmio_read() [all …]
|
/Linux-v4.19/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_fifo.c | 206 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument 214 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full() 218 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument 231 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq() 251 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument 256 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait() 261 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait() 270 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait() 274 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait() 298 uint32_t bytes) in vmw_local_fifo_reserve() argument [all …]
|
/Linux-v4.19/arch/arm/include/asm/ |
D | xor.h | 50 xor_arm4regs_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_arm4regs_2() argument 52 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_2() 70 xor_arm4regs_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_3() argument 73 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_3() 92 xor_arm4regs_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_4() argument 95 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_4() 111 xor_arm4regs_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_arm4regs_5() argument 114 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_5() 152 xor_neon_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_neon_2() argument 155 xor_arm4regs_2(bytes, p1, p2); in xor_neon_2() [all …]
|
/Linux-v4.19/arch/hexagon/mm/ |
D | copy_user_template.S | 32 p0 = cmp.gtu(bytes,#0) 38 p1 = cmp.gtu(bytes,#15) 45 loopcount = lsr(bytes,#3) 59 bytes -= asl(loopcount,#3) 71 p1 = cmp.gtu(bytes,#7) 76 loopcount = lsr(bytes,#2) 89 bytes -= asl(loopcount,#2) 97 p1 = cmp.gtu(bytes,#3) 102 loopcount = lsr(bytes,#1) 115 bytes -= asl(loopcount,#1) [all …]
|
/Linux-v4.19/fs/btrfs/ |
D | free-space-cache.c | 26 u64 bytes; member 500 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, in io_ctl_add_entry() argument 510 entry->bytes = cpu_to_le64(bytes); in io_ctl_add_entry() 584 entry->bytes = le64_to_cpu(e->bytes); in io_ctl_read_entry() 634 if (prev->offset + prev->bytes == e->offset) { in merge_space_tree() 637 prev->bytes += e->bytes; in merge_space_tree() 740 if (!e->bytes) { in __load_free_space_cache() 917 ret = io_ctl_add_entry(io_ctl, e->offset, e->bytes, in write_cache_extent_entries() 947 trim_entry->bytes, NULL); in write_cache_extent_entries() 1397 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) in bytes_to_bits() argument [all …]
|
/Linux-v4.19/drivers/rtc/ |
D | rtc-dm355evm.c | 33 u8 bytes[4]; member 52 if (tries && time.bytes[0] == status) in dm355evm_rtc_read_time() 54 time.bytes[0] = status; in dm355evm_rtc_read_time() 59 if (tries && time.bytes[1] == status) in dm355evm_rtc_read_time() 61 time.bytes[1] = status; in dm355evm_rtc_read_time() 66 if (tries && time.bytes[2] == status) in dm355evm_rtc_read_time() 68 time.bytes[2] = status; in dm355evm_rtc_read_time() 73 if (tries && time.bytes[3] == status) in dm355evm_rtc_read_time() 75 time.bytes[3] = status; in dm355evm_rtc_read_time() 100 status = dm355evm_msp_write(time.bytes[0], DM355EVM_MSP_RTC_0); in dm355evm_rtc_set_time() [all …]
|
/Linux-v4.19/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 137 bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n", in dpaa_eth_show_bpids() 140 return bytes; in dpaa_eth_show_bpids()
|
/Linux-v4.19/lib/ |
D | iov_iter.c | 151 static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, in copy_page_to_iter_iovec() argument 159 if (unlikely(bytes > i->count)) in copy_page_to_iter_iovec() 160 bytes = i->count; in copy_page_to_iter_iovec() 162 if (unlikely(!bytes)) in copy_page_to_iter_iovec() 166 wanted = bytes; in copy_page_to_iter_iovec() 170 copy = min(bytes, iov->iov_len - skip); in copy_page_to_iter_iovec() 181 bytes -= copy; in copy_page_to_iter_iovec() 183 while (unlikely(!left && bytes)) { in copy_page_to_iter_iovec() 186 copy = min(bytes, iov->iov_len); in copy_page_to_iter_iovec() 191 bytes -= copy; in copy_page_to_iter_iovec() [all …]
|
D | memweight.c | 11 size_t memweight(const void *ptr, size_t bytes) in memweight() argument 17 for (; bytes > 0 && ((unsigned long)bitmap) % sizeof(long); in memweight() 18 bytes--, bitmap++) in memweight() 21 longs = bytes / sizeof(long); in memweight() 26 bytes -= longs * sizeof(long); in memweight() 34 for (; bytes > 0; bytes--, bitmap++) in memweight()
|
/Linux-v4.19/sound/i2c/other/ |
D | pt2258.c | 48 unsigned char bytes[2]; in snd_pt2258_reset() local 52 bytes[0] = PT2258_CMD_RESET; in snd_pt2258_reset() 54 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset() 60 bytes[0] = PT2258_CMD_MUTE; in snd_pt2258_reset() 62 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset() 69 bytes[0] = 0xd0; in snd_pt2258_reset() 70 bytes[1] = 0xe0; in snd_pt2258_reset() 72 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset() 111 unsigned char bytes[2]; in pt2258_stereo_volume_put() local 122 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); in pt2258_stereo_volume_put() [all …]
|
/Linux-v4.19/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-v4.19/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-v4.19/arch/s390/lib/ |
D | xor.c | 13 static void xor_xc_2(unsigned long bytes, unsigned long *p1, unsigned long *p2) in xor_xc_2() argument 30 : : "d" (bytes), "a" (p1), "a" (p2) in xor_xc_2() 34 static void xor_xc_3(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_xc_3() argument 56 : "+d" (bytes), "+a" (p1), "+a" (p2), "+a" (p3) in xor_xc_3() 60 static void xor_xc_4(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_xc_4() argument 86 : "+d" (bytes), "+a" (p1), "+a" (p2), "+a" (p3), "+a" (p4) in xor_xc_4() 90 static void xor_xc_5(unsigned long bytes, unsigned long *p1, unsigned long *p2, in xor_xc_5() argument 123 : "+d" (bytes), "+a" (p1), "+a" (p2), "+a" (p3), "+a" (p4), in xor_xc_5()
|
/Linux-v4.19/arch/s390/include/asm/ |
D | alternative-asm.h | 39 .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-v4.19/arch/powerpc/lib/ |
D | xor_vmx_glue.c | 19 void xor_altivec_2(unsigned long bytes, unsigned long *v1_in, in xor_altivec_2() argument 24 __xor_altivec_2(bytes, v1_in, v2_in); in xor_altivec_2() 30 void xor_altivec_3(unsigned long bytes, unsigned long *v1_in, in xor_altivec_3() argument 35 __xor_altivec_3(bytes, v1_in, v2_in, v3_in); in xor_altivec_3() 41 void xor_altivec_4(unsigned long bytes, unsigned long *v1_in, in xor_altivec_4() argument 47 __xor_altivec_4(bytes, v1_in, v2_in, v3_in, v4_in); in xor_altivec_4() 53 void xor_altivec_5(unsigned long bytes, unsigned long *v1_in, in xor_altivec_5() argument 59 __xor_altivec_5(bytes, v1_in, v2_in, v3_in, v4_in, v5_in); in xor_altivec_5()
|
/Linux-v4.19/drivers/ps3/ |
D | ps3-vuart.c | 364 const void *buf, unsigned int bytes, u64 *bytes_written) in ps3_vuart_raw_write() argument 370 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_written); in ps3_vuart_raw_write() 381 *bytes_written, bytes, priv->stats.bytes_written); in ps3_vuart_raw_write() 394 unsigned int bytes, u64 *bytes_read) in ps3_vuart_raw_read() argument 399 dev_dbg(&dev->core, "%s:%d: %xh\n", __func__, __LINE__, bytes); in ps3_vuart_raw_read() 402 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); in ps3_vuart_raw_read() 413 *bytes_read, bytes, priv->stats.bytes_read); in ps3_vuart_raw_read() 427 unsigned int bytes) in ps3_vuart_clear_rx_bytes() argument 438 bytes = bytes ? min(bytes, (unsigned int)bytes_waiting) : bytes_waiting; in ps3_vuart_clear_rx_bytes() 440 dev_dbg(&dev->core, "%s:%d: %u\n", __func__, __LINE__, bytes); in ps3_vuart_clear_rx_bytes() [all …]
|
/Linux-v4.19/drivers/media/usb/hdpvr/ |
D | hdpvr-core.c | 73 static void challenge(u8 *bytes) in challenge() argument 82 bytes[(idx >> 3) + 3] = bytes[(idx >> 2) & 0x3]; in challenge() 86 bytes[2] += bytes[3] * 4 + bytes[4] + bytes[5]; in challenge() 87 bytes[4] += bytes[(idx & 0x1) * 2] * 9 + 9; in challenge() 90 bytes[0] *= 8; in challenge() 91 bytes[0] += 7*idx + 4; in challenge() 92 bytes[6] += bytes[3] * 3; in challenge() 95 bytes[3 - (idx >> 3)] = bytes[idx >> 2]; in challenge() 96 bytes[5] += bytes[6] * 3; in challenge() 98 bytes[3] *= bytes[3] + 1; in challenge() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | xt_connbytes.c | 27 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-v4.19/drivers/scsi/lpfc/ |
D | lpfc_compat.h | 40 lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes) in lpfc_memcpy_to_slim() argument 51 for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) { in lpfc_memcpy_to_slim() 62 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) in lpfc_memcpy_from_slim() argument 73 for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) { in lpfc_memcpy_from_slim() 85 lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes) in lpfc_memcpy_to_slim() argument 88 __iowrite32_copy(dest, src, bytes / sizeof(uint32_t)); in lpfc_memcpy_to_slim() 92 lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes) in lpfc_memcpy_from_slim() argument 95 memcpy_fromio( dest, src, bytes); in lpfc_memcpy_from_slim()
|