| /linux/drivers/power/supply/ |
| H A D | max1720x_battery.c | 154 { .name = "nXTable0", .offset = 0, .bytes = 2, }, 155 { .name = "nXTable1", .offset = 2, .bytes = 2, }, 156 { .name = "nXTable2", .offset = 4, .bytes = 2, }, 157 { .name = "nXTable3", .offset = 6, .bytes = 2, }, 158 { .name = "nXTable4", .offset = 8, .bytes = 2, }, 159 { .name = "nXTable5", .offset = 10, .bytes = 2, }, 160 { .name = "nXTable6", .offset = 12, .bytes = 2, }, 161 { .name = "nXTable7", .offset = 14, .bytes = 2, }, 162 { .name = "nXTable8", .offset = 16, .bytes = 2, }, 163 { .name = "nXTable9", .offset = 18, .bytes = 2, }, [all …]
|
| /linux/lib/crypto/x86/ |
| H A D | chacha.h | 53 unsigned int bytes, int nrounds) in chacha_dosimd() argument 56 while (bytes >= CHACHA_BLOCK_SIZE * 8) { in chacha_dosimd() 57 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd() 59 bytes -= CHACHA_BLOCK_SIZE * 8; in chacha_dosimd() 64 if (bytes > CHACHA_BLOCK_SIZE * 4) { in chacha_dosimd() 65 chacha_8block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd() 67 state->x[12] += chacha_advance(bytes, 8); in chacha_dosimd() 70 if (bytes > CHACHA_BLOCK_SIZE * 2) { in chacha_dosimd() 71 chacha_4block_xor_avx512vl(state, dst, src, bytes, in chacha_dosimd() 73 state->x[12] += chacha_advance(bytes, 4); in chacha_dosimd() [all …]
|
| /linux/include/sound/ |
| H A 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/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_offset) { in dm_bvec_iter_rewind() 20 iter->bi_offset -= bytes; in dm_bvec_iter_rewind() 24 bytes -= iter->bi_offset; 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_offset = bv[idx].bv_len - bytes; in dm_bvec_iter_rewind() [all …]
|
| /linux/rust/zerocopy/src/ |
| H A D | deprecated.rs | 26 pub fn new(bytes: B) -> Option<Ref<B, T>> { in new() 27 Self::from_bytes(bytes).ok() in new() 40 pub fn new_from_prefix(bytes: B) -> Option<(Ref<B, T>, B)> { in new_from_prefix() 41 Self::from_prefix(bytes).ok() in new_from_prefix() 54 pub fn new_from_suffix(bytes: B) -> Option<(B, Ref<B, T>)> { in new_from_suffix() 55 Self::from_suffix(bytes).ok() in new_from_suffix() 71 pub fn new_unaligned(bytes: B) -> Option<Ref<B, T>> { in new_unaligned() 72 Self::from_bytes(bytes).ok() in new_unaligned() 88 pub fn new_unaligned_from_prefix(bytes: B) -> Option<(Ref<B, T>, B)> { in new_unaligned_from_prefix() 89 Self::from_prefix(bytes).ok() in new_unaligned_from_prefix() [all …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_cmd.c | 187 static bool vmw_fifo_is_full(struct vmw_private *dev_priv, uint32_t bytes) in vmw_fifo_is_full() argument 194 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full() 198 uint32_t bytes, bool interruptible, in vmw_fifo_wait_noirq() argument 211 if (!vmw_fifo_is_full(dev_priv, bytes)) in vmw_fifo_wait_noirq() 231 uint32_t bytes, bool interruptible, in vmw_fifo_wait() argument 236 if (likely(!vmw_fifo_is_full(dev_priv, bytes))) in vmw_fifo_wait() 241 return vmw_fifo_wait_noirq(dev_priv, bytes, in vmw_fifo_wait() 250 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait() 254 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait() 278 uint32_t bytes) in vmw_local_fifo_reserve() argument [all …]
|
| /linux/include/linux/ |
| H A D | uio.h | 185 void iov_iter_advance(struct iov_iter *i, size_t bytes); 186 void iov_iter_revert(struct iov_iter *i, size_t bytes); 187 size_t fault_in_iov_iter_readable(const struct iov_iter *i, size_t bytes); 188 size_t fault_in_iov_iter_writeable(const struct iov_iter *i, size_t bytes); 190 size_t copy_page_to_iter(struct page *page, size_t offset, size_t bytes, 192 size_t copy_page_from_iter(struct page *page, size_t offset, size_t bytes, 195 size_t bytes, struct iov_iter *i); 197 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i); 198 size_t _copy_from_iter(void *addr, size_t bytes, struct iov_iter *i); 199 size_t _copy_from_iter_nocache(void *addr, size_t bytes, struct iov_iter *i); [all …]
|
| H A D | task_io_accounting_ops.h | 11 static inline void task_io_account_read(size_t bytes) in task_io_account_read() argument 13 current->ioac.read_bytes += bytes; in task_io_account_read() 25 static inline void task_io_account_write(size_t bytes) in task_io_account_write() argument 27 current->ioac.write_bytes += bytes; in task_io_account_write() 39 static inline void task_io_account_cancelled_write(size_t bytes) in task_io_account_cancelled_write() argument 41 current->ioac.cancelled_write_bytes += bytes; in task_io_account_cancelled_write() 59 static inline void task_io_account_read(size_t bytes) in task_io_account_read() argument 68 static inline void task_io_account_write(size_t bytes) in task_io_account_write() argument 77 static inline void task_io_account_cancelled_write(size_t bytes) in task_io_account_cancelled_write() argument
|
| /linux/lib/crypto/arm/ |
| H A D | chacha.h | 27 asmlinkage void chacha_doarm(u8 *dst, const u8 *src, unsigned int bytes, 38 unsigned int bytes, int nrounds) in chacha_doneon() argument 42 while (bytes > CHACHA_BLOCK_SIZE) { in chacha_doneon() 43 unsigned int l = min(bytes, CHACHA_BLOCK_SIZE * 4U); in chacha_doneon() 46 bytes -= l; in chacha_doneon() 51 if (bytes) { in chacha_doneon() 55 if (bytes != CHACHA_BLOCK_SIZE) in chacha_doneon() 56 s = d = memcpy(buf, src, bytes); in chacha_doneon() 59 memcpy(dst, buf, bytes); in chacha_doneon() 76 const u8 *src, unsigned int bytes, int nrounds) in chacha_crypt_arch() argument [all …]
|
| /linux/tools/include/linux/ |
| H A D | overflow.h | 83 size_t bytes; in size_mul() local 85 if (check_mul_overflow(factor1, factor2, &bytes)) in size_mul() 88 return bytes; in size_mul() 104 size_t bytes; in array_size() local 106 if (check_mul_overflow(a, b, &bytes)) in array_size() 109 return bytes; in array_size() 126 size_t bytes; in array3_size() local 128 if (check_mul_overflow(a, b, &bytes)) in array3_size() 130 if (check_mul_overflow(bytes, c, &bytes)) in array3_size() 133 return bytes; in array3_size() [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) 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/tools/testing/selftests/bpf/progs/ |
| H A D | test_sockmap_kern.h | 180 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; in bpf_prog3() 183 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_prog3() 184 if (bytes) in bpf_prog3() 185 bpf_msg_apply_bytes(msg, *bytes); in bpf_prog3() 186 bytes = bpf_map_lookup_elem(&sock_cork_bytes, &zero); 187 if (bytes) 188 bpf_msg_cork_bytes(msg, *bytes); in bpf_sockmap() 211 int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; in bpf_sockmap() 215 bytes = bpf_map_lookup_elem(&sock_apply_bytes, &zero); in bpf_sockmap() 216 if (bytes) in bpf_sockmap() 236 int *bytes, zero = 0, one = 1, two = 2, three = 3, four = 4, five = 5; bpf_prog4() local 267 int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; bpf_prog6() local 313 int ret = 0, *bytes, zero = 0; bpf_prog8() local 335 int ret = 0, *bytes, zero = 0; bpf_prog9() local 351 int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop; bpf_prog10() local [all...] |
| /linux/drivers/misc/mei/ |
| H A D | mei_lb.c | 171 static bool mei_lb_check_response_v1(const struct device *dev, ssize_t bytes, in mei_lb_check_response_v1() argument 180 if (bytes < sizeof(rsp->header)) { in mei_lb_check_response_v1() 182 bytes, sizeof(rsp->header)); in mei_lb_check_response_v1() 199 if (bytes < sizeof(*rsp)) { in mei_lb_check_response_v1() 201 bytes, sizeof(*rsp)); in mei_lb_check_response_v1() 214 ssize_t bytes; in mei_lb_push_payload_v1() local 239 bytes = mei_cldev_send_timeout(cldev, (u8 *)req, req_size, in mei_lb_push_payload_v1() 241 if (bytes < 0) { in mei_lb_push_payload_v1() 242 dev_err(dev, "Failed to send late binding request to firmware. %zd\n", bytes); in mei_lb_push_payload_v1() 243 ret = bytes; in mei_lb_push_payload_v1() [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 69 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids() 72 bytes += sprintf(buf + bytes, in dpaa_eth_show_fqids() 91 bytes += sprintf(buf + bytes, "%s: %d\n", prevstr, in dpaa_eth_show_fqids() 94 bytes += sprintf(buf + bytes, "%s: %d - %d\n", prevstr, in dpaa_eth_show_fqids() 98 return bytes; in dpaa_eth_show_fqids() 105 ssize_t bytes = 0; in dpaa_eth_show_bpids() local 107 bytes += snprintf(buf + bytes, PAGE_SIZE - bytes, "%u\n", in dpaa_eth_show_bpids() 110 return bytes; in dpaa_eth_show_bpids()
|
| /linux/fs/btrfs/ |
| H A 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() 826 if (!e->bytes) { in __load_free_space_cache() 909 const u64 bytes = info->bytes; in copy_free_space_cache() local 914 ret = btrfs_add_free_space(ctl->block_group, offset, bytes); in copy_free_space_cache() 918 u64 bytes = ctl->block_group->fs_info->sectorsize; in copy_free_space_cache() local [all …]
|
| /linux/lib/crypto/powerpc/ |
| H A D | chacha.h | 33 unsigned int bytes, int nrounds) in chacha_p10_do_8x() argument 35 unsigned int l = bytes & ~0x0FF; in chacha_p10_do_8x() 39 bytes -= l; in chacha_p10_do_8x() 45 if (bytes > 0) in chacha_p10_do_8x() 46 chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_p10_do_8x() 52 const u8 *src, unsigned int bytes, int nrounds) in chacha_crypt_arch() argument 54 if (!static_branch_likely(&have_p10) || bytes <= CHACHA_BLOCK_SIZE || in chacha_crypt_arch() 56 return chacha_crypt_generic(state, dst, src, bytes, nrounds); in chacha_crypt_arch() 59 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); in chacha_crypt_arch() 65 bytes -= todo; in chacha_crypt_arch() [all …]
|
| /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/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 108 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); 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 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/drivers/media/pci/cobalt/ |
| H A 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/drivers/nvmem/ |
| H A D | qnap-mcu-eeprom.c | 23 void *val, size_t bytes) in qnap_mcu_eeprom_read_block() argument 25 const u8 cmd[] = { 0xf7, 0xa1, offset, bytes }; in qnap_mcu_eeprom_read_block() 29 reply = kzalloc(bytes + sizeof(cmd), GFP_KERNEL); in qnap_mcu_eeprom_read_block() 33 ret = qnap_mcu_exec(mcu, cmd, sizeof(cmd), reply, bytes + sizeof(cmd)); in qnap_mcu_eeprom_read_block() 43 memcpy(val, reply + sizeof(cmd), bytes); in qnap_mcu_eeprom_read_block() 50 static int qnap_mcu_eeprom_read(void *priv, unsigned int offset, void *val, size_t bytes) in qnap_mcu_eeprom_read() argument 56 if (unlikely(!bytes)) in qnap_mcu_eeprom_read() 59 while (bytes > 0) { in qnap_mcu_eeprom_read() 60 size_t to_read = (bytes > QNAP_MCU_EEPROM_BLOCK_SIZE) ? in qnap_mcu_eeprom_read() 61 QNAP_MCU_EEPROM_BLOCK_SIZE : bytes; in qnap_mcu_eeprom_read() [all …]
|
| /linux/lib/raid/raid6/riscv/ |
| H A D | recov_rvv.c | 13 static void __raid6_2data_recov_rvv(int bytes, u8 *p, u8 *q, u8 *dp, in __raid6_2data_recov_rvv() argument 36 while (bytes) { in __raid6_2data_recov_rvv() 84 bytes -= 16; in __raid6_2data_recov_rvv() 92 static void __raid6_datap_recov_rvv(int bytes, u8 *p, u8 *q, in __raid6_datap_recov_rvv() argument 109 while (bytes) { in __raid6_datap_recov_rvv() 141 bytes -= 16; in __raid6_datap_recov_rvv() 148 static void raid6_2data_recov_rvv(int disks, size_t bytes, int faila, in raid6_2data_recov_rvv() argument 170 raid6_gen_syndrome(disks, bytes, ptrs); in raid6_2data_recov_rvv() 184 __raid6_2data_recov_rvv(bytes, p, q, dp, dq, pbmul, qmul); in raid6_2data_recov_rvv() 188 static void raid6_datap_recov_rvv(int disks, size_t bytes, int faila, in raid6_datap_recov_rvv() argument [all …]
|
| /linux/drivers/ps3/ |
| H A 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 …]
|
| /linux/drivers/scsi/lpfc/ |
| H A 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()
|
| /linux/lib/ |
| H A 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()
|