/linux/fs/bcachefs/ |
H A D | varint.c | 26 if (likely(bytes < 9)) { in bch2_varint_encode() 27 v <<= bytes; in bch2_varint_encode() 33 bytes = 9; in bch2_varint_encode() 37 return bytes; in bch2_varint_encode() 63 v >>= bytes; in bch2_varint_decode() 69 return bytes; in bch2_varint_decode() 87 v <<= bytes; in bch2_varint_encode_fast() 91 bytes = 9; in bch2_varint_encode_fast() 95 return bytes; in bch2_varint_encode_fast() 121 v >>= bytes; in bch2_varint_decode_fast() [all …]
|
/linux/include/sound/ |
H A D | pcm-indirect.h | 58 if (hw_to_end < bytes) in snd_pcm_indirect_playback_transfer() 59 bytes = hw_to_end; 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() 88 if (bytes < 0) in snd_pcm_indirect_playback_pointer() 92 rec->sw_io += bytes; in snd_pcm_indirect_playback_pointer() 132 bytes = hw_to_end; in snd_pcm_indirect_capture_transfer() 134 bytes = sw_to_end; in snd_pcm_indirect_capture_transfer() 135 if (! bytes) in snd_pcm_indirect_capture_transfer() 162 if (bytes < 0) in snd_pcm_indirect_capture_pointer() [all …]
|
/linux/drivers/md/ |
H A 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() 113 iter->bi_sector -= bytes >> 9; in dm_bio_rewind_iter() [all …]
|
/linux/arch/x86/crypto/ |
H A D | chacha_glue.c | 49 unsigned int bytes, int nrounds) in chacha_dosimd() argument 56 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 73 if (bytes) { in chacha_dosimd() 84 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 99 if (bytes > CHACHA_BLOCK_SIZE) { in chacha_dosimd() 108 bytes -= CHACHA_BLOCK_SIZE * 4; in chacha_dosimd() 113 if (bytes > CHACHA_BLOCK_SIZE) { in chacha_dosimd() 118 if (bytes) { in chacha_dosimd() 146 bytes <= CHACHA_BLOCK_SIZE) in chacha_crypt_arch() 156 bytes -= todo; in chacha_crypt_arch() [all …]
|
/linux/drivers/staging/media/atomisp/pci/hmm/ |
H A D | hmm.c | 292 while (bytes) { in load_and_flush_by_kmap() 300 bytes -= len; in load_and_flush_by_kmap() 302 len = bytes; in load_and_flush_by_kmap() 303 bytes = 0; in load_and_flush_by_kmap() 424 while (bytes) { in hmm_store() 441 bytes -= len; in hmm_store() 443 len = bytes; in hmm_store() 444 bytes = 0; in hmm_store() 495 while (bytes) { in hmm_set() 505 len = bytes; in hmm_set() [all …]
|
/linux/include/linux/ |
H A D | uio.h | 162 size_t bytes, struct iov_iter *i); 178 size_t bytes, struct iov_iter *i) in copy_folio_to_iter() argument 190 size_t bytes, struct iov_iter *i); 195 if (check_copy_size(addr, bytes, true)) in copy_to_iter() 196 return _copy_to_iter(addr, bytes, i); in copy_to_iter() 203 if (check_copy_size(addr, bytes, false)) in copy_from_iter() 204 return _copy_from_iter(addr, bytes, i); in copy_from_iter() 212 if (likely(copied == bytes)) in copy_to_iter_full() 222 if (likely(copied == bytes)) in copy_from_iter_full() 231 if (check_copy_size(addr, bytes, false)) in copy_from_iter_nocache() [all …]
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_cmd.c | 278 uint32_t bytes) in vmw_local_fifo_reserve() argument 299 fifo_state->reserved_size = bytes; in vmw_local_fifo_reserve() 338 bytes); in vmw_local_fifo_reserve() 396 if (bytes < chunk_size) in vmw_fifo_res_copy() 397 chunk_size = bytes; in vmw_fifo_res_copy() 402 rest = bytes - chunk_size; in vmw_fifo_res_copy() 415 while (bytes > 0) { in vmw_fifo_slow_copy() 423 bytes -= sizeof(uint32_t); in vmw_fifo_slow_copy() 435 BUG_ON((bytes & 3) != 0); in vmw_local_fifo_commit() 443 next_cmd, max, min, bytes); in vmw_local_fifo_commit() [all …]
|
/linux/drivers/gpu/drm/i915/gvt/ |
H A D | mmio.c | 82 bytes); in failsafe_emulate_mmio_rw() 85 bytes); in failsafe_emulate_mmio_rw() 90 memcpy(p_data, pt, bytes); in failsafe_emulate_mmio_rw() 92 memcpy(pt, p_data, bytes); in failsafe_emulate_mmio_rw() 109 void *p_data, unsigned int bytes) in intel_vgpu_emulate_mmio_read() argument 131 if (drm_WARN_ON(&i915->drm, bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_read() 138 p_data, bytes); in intel_vgpu_emulate_mmio_read() 167 offset, bytes); in intel_vgpu_emulate_mmio_read() 207 if (drm_WARN_ON(&i915->drm, bytes != 4 && bytes != 8)) in intel_vgpu_emulate_mmio_write() 214 p_data, bytes); in intel_vgpu_emulate_mmio_write() [all …]
|
H A D | cfg_space.c | 70 u8 *src, unsigned int bytes) in vgpu_pci_cfg_mem_write() argument 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() 129 memcpy(p_data, vgpu_cfg_space(vgpu) + offset, bytes); in intel_vgpu_emulate_cfg_read() 152 vgpu_pci_cfg_mem_write(vgpu, offset, p_data, bytes); in emulate_pci_command_write() 182 void *p_data, unsigned int bytes) in emulate_pci_bar_write() argument 257 void *p_data, unsigned int bytes) in intel_vgpu_emulate_cfg_write() argument 262 if (drm_WARN_ON(&i915->drm, bytes > 4)) in intel_vgpu_emulate_cfg_write() [all …]
|
/linux/drivers/soc/tegra/fuse/ |
H A D | fuse-tegra30.c | 140 .bytes = 4, 146 .bytes = 4, 152 .bytes = 4, 158 .bytes = 4, 164 .bytes = 4, 170 .bytes = 4, 176 .bytes = 4, 182 .bytes = 4, 188 .bytes = 4, 194 .bytes = 4, [all …]
|
/linux/arch/arm/include/asm/ |
H A D | xor.h | 50 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_2() 72 unsigned int lines = bytes / sizeof(unsigned long) / 4; in xor_arm4regs_3() 96 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_4() 118 unsigned int lines = bytes / sizeof(unsigned long) / 2; in xor_arm4regs_5() 160 xor_arm4regs_2(bytes, p1, p2); in xor_neon_2() 163 xor_block_neon_inner.do_2(bytes, p1, p2); in xor_neon_2() 174 xor_arm4regs_3(bytes, p1, p2, p3); in xor_neon_3() 177 xor_block_neon_inner.do_3(bytes, p1, p2, p3); in xor_neon_3() 189 xor_arm4regs_4(bytes, p1, p2, p3, p4); in xor_neon_4() 192 xor_block_neon_inner.do_4(bytes, p1, p2, p3, p4); in xor_neon_4() [all …]
|
/linux/arch/hexagon/mm/ |
H A D | copy_user_template.S | 19 p0 = cmp.gtu(bytes,#0) 25 p1 = cmp.gtu(bytes,#15) 32 loopcount = lsr(bytes,#3) 58 p1 = cmp.gtu(bytes,#7) 63 loopcount = lsr(bytes,#2) 84 p1 = cmp.gtu(bytes,#3) 107 p3=sp1loop0(.Loop1,bytes) 125 p0 = cmp.gtu(bytes,#0) 144 if (p0) bytes = add(bytes,#-1) 156 if (p0) bytes = add(bytes,#-2) [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sockmap_kern.h | 243 if (bytes) in bpf_prog4() 246 if (bytes) in bpf_prog4() 247 bpf_msg_cork_bytes(msg, *bytes); in bpf_prog4() 275 if (bytes) in bpf_prog6() 278 if (bytes) in bpf_prog6() 316 int ret = 0, *bytes, zero = 0; in bpf_prog8() local 319 if (bytes) { in bpf_prog8() 337 int ret = 0, *bytes, zero = 0; in bpf_prog9() local 340 if (bytes) { in bpf_prog9() 357 if (bytes) in bpf_prog10() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa/ |
H A 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/fs/btrfs/ |
H A D | free-space-cache.c | 1892 info->bytes -= bytes; in bitmap_clear_bits() 1933 info->bytes += bytes; in btrfs_bitmap_set_bits() 2322 bytes = info->bytes; in insert_into_bitmap() 2457 u64 bytes = info->bytes; in try_merge_free_space() local 2518 info->bytes += bytes; in steal_from_bitmap_to_end() 2572 info->bytes += bytes; in steal_from_bitmap_to_front() 2639 info->bytes = bytes; in __btrfs_add_free_space() 3243 if (entry->bytes < bytes) in btrfs_alloc_from_cluster() 3275 entry->bytes -= bytes; in btrfs_alloc_from_cluster() 3753 bytes = entry->bytes; in trim_no_bitmap() [all …]
|
/linux/lib/raid6/ |
H A 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/arch/powerpc/include/asm/ |
H A 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/tools/include/linux/ |
H A 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/drivers/accessibility/speakup/ |
H A D | devsynth.c | 19 size_t bytes; in speakup_file_write() local 26 bytes = min(count, sizeof(buf)); in speakup_file_write() 29 count -= bytes; in speakup_file_write() 30 ptr += bytes; in speakup_file_write() 32 synth_write(buf, bytes); in speakup_file_write() 44 size_t bytes; in speakup_file_writeu() local 56 bytes = min(count, sizeof(buf)); in speakup_file_writeu() 68 if (want > bytes - in) in speakup_file_writeu() 72 bytes = in; in speakup_file_writeu() 81 count -= bytes; in speakup_file_writeu() [all …]
|
/linux/lib/ |
H A D | memcpy_kunit.c | 332 for (int bytes = 1; bytes <= ARRAY_SIZE(large_src); bytes++) { in copy_large_test() local 335 int right_zero_pos = offset + bytes; in copy_large_test() 411 bytes, s_off, d_off); in inner_loop() 418 right_zero_pos = d_off + bytes; in inner_loop() 428 right_zero_pos = s_off + bytes; in inner_loop() 431 src_pos = d_off + bytes; in inner_loop() 440 bytes, s_off, d_off); in inner_loop() 446 bytes, s_off, d_off); in inner_loop() 451 bytes, s_off, d_off); in inner_loop() 477 for (int bytes = bytes_start; bytes < bytes_end; in memmove_overlap_test() local [all …]
|
/linux/sound/i2c/other/ |
H A 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 111 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put() [all …]
|
/linux/arch/alpha/lib/ |
H A D | ev6-memcpy.S | 68 ldq $1, 0($17) # L : get 8 bytes 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 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 116 ldq $6, 0($17) # L : bytes 0..7 117 ldq $4, 8($17) # L : bytes 8..15 [all …]
|
/linux/drivers/media/pci/cobalt/ |
H A D | cobalt-omnitek.c | 172 unsigned bytes; in descriptor_list_create() local 203 d->bytes = (bytes / 2) & ~3; 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() 231 copied += bytes; in descriptor_list_create() 232 offset += bytes; in descriptor_list_create() 238 copied += bytes; in descriptor_list_create() 239 offset += bytes; in descriptor_list_create() 240 size -= bytes; in descriptor_list_create() [all …]
|
/linux/arch/powerpc/crypto/ |
H A D | ghash.c | 43 int bytes; member 50 dctx->bytes = 0; in p8_ghash_init() 124 if (dctx->bytes) { 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() 138 dctx->bytes = 0; in p8_ghash_update() 148 dctx->bytes = srclen; in p8_ghash_update() 159 if (dctx->bytes) { in p8_ghash_final() [all …]
|
/linux/crypto/ |
H A D | nhpoly1305.c | 97 unsigned int bytes; in nhpoly1305_units() local 111 bytes = min(srclen, state->nh_remaining); 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 166 state->buflen += bytes; in crypto_nhpoly1305_update_helper() 172 src += bytes; in crypto_nhpoly1305_update_helper() 173 srclen -= bytes; in crypto_nhpoly1305_update_helper() 179 src += bytes; in crypto_nhpoly1305_update_helper() [all …]
|