/linux-master/crypto/ |
H A D | ghash-generic.c | 85 if (dctx->bytes) { 86 int n = min(srclen, dctx->bytes); 87 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); 89 dctx->bytes -= n; 95 if (!dctx->bytes) 107 dctx->bytes = GHASH_BLOCK_SIZE - srclen; 119 if (dctx->bytes) { 120 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); 122 while (dctx->bytes--) 128 dctx->bytes [all...] |
/linux-master/lib/raid6/ |
H A D | recov_ssse3.c | 16 static void raid6_2data_recov_ssse3(int disks, size_t bytes, int faila, argument 39 raid6_call.gen_syndrome(disks, bytes, ptrs); 63 while (bytes) { 132 bytes -= 32; 179 bytes -= 16; 191 static void raid6_datap_recov_ssse3(int disks, size_t bytes, int faila, argument 209 raid6_call.gen_syndrome(disks, bytes, ptrs); 222 while (bytes) { 277 bytes -= 32; 308 bytes [all...] |
H A D | recov_neon_inner.c | 28 void __raid6_2data_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t *dp, argument 39 * while ( bytes-- ) { 50 while (bytes) { 70 bytes -= 16; 78 void __raid6_datap_recov_neon(int bytes, uint8_t *p, uint8_t *q, uint8_t *dq, argument 86 * while (bytes--) { 92 while (bytes) { 106 bytes -= 16;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_noinline.c | 17 __u64 bytes; member in struct:vip_stats 29 __u64 bytes = 0, pkts = 0; local 67 bytes += stats[i].bytes; 70 ASSERT_EQ(bytes, MAGIC_BYTES * NUM_ITER * 2, "stats bytes");
|
H A D | task_fd_query_tp.c | 8 int err, bytes, efd, prog_fd, pmu_fd; local 30 bytes = read(efd, buf, sizeof(buf)); 32 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), "read", 33 "bytes %d errno %d\n", bytes, errno))
|
H A D | l4lb_all.c | 15 __u64 bytes; member in struct:vip_stats 27 __u64 bytes = 0, pkts = 0; local 80 bytes += stats[i].bytes; 83 if (CHECK_FAIL(bytes != MAGIC_BYTES * NUM_ITER * 2 || 85 printf("test_l4lb:FAIL:stats %lld %lld\n", bytes, pkts);
|
/linux-master/arch/x86/include/asm/ |
H A D | insn.h | 19 insn_byte_t bytes[4]; member in union:insn_field::__anon14 36 p->bytes[n] = v; 45 insn_byte_t bytes[4]; member in union:insn_field::__anon15 63 p->bytes[n] = v; 71 * prefixes.bytes[3]: last prefix 76 * opcode.bytes[0]: opcode1 77 * opcode.bytes[1]: opcode2 78 * opcode.bytes[2]: opcode3 185 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ 187 else if (insn->vex_prefix.nbytes == 3) /* 3 bytes VE [all...] |
/linux-master/tools/arch/x86/include/asm/ |
H A D | insn.h | 19 insn_byte_t bytes[4]; member in union:insn_field::__anon489 36 p->bytes[n] = v; 45 insn_byte_t bytes[4]; member in union:insn_field::__anon490 63 p->bytes[n] = v; 71 * prefixes.bytes[3]: last prefix 76 * opcode.bytes[0]: opcode1 77 * opcode.bytes[1]: opcode2 78 * opcode.bytes[2]: opcode3 185 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ 187 else if (insn->vex_prefix.nbytes == 3) /* 3 bytes VE [all...] |
/linux-master/net/netfilter/ |
H A D | nft_counter.c | 20 s64 bytes; member in struct:nft_counter 43 this_cpu->bytes += pkt->skb->len; 76 this_cpu->bytes = 114 this_cpu->bytes -= total->bytes; 123 u64 bytes, packets; local 133 bytes = this_cpu->bytes; 137 total->bytes += bytes; [all...] |
/linux-master/drivers/nvmem/ |
H A D | stm32-romem.c | 44 size_t bytes) 50 for (i = offset; i < offset + bytes; i++) 75 size_t bytes) 86 rbytes = roundup(bytes + skip_bytes, 4); 107 /* skip first bytes in case of unaligned read */ 109 size = min(bytes, (size_t)(4 - skip_bytes)); 111 size = min(bytes, (size_t)4); 113 bytes -= size; 122 size_t bytes) 130 if ((bytes 43 stm32_romem_read(void *context, unsigned int offset, void *buf, size_t bytes) argument 74 stm32_bsec_read(void *context, unsigned int offset, void *buf, size_t bytes) argument 121 stm32_bsec_write(void *context, unsigned int offset, void *buf, size_t bytes) argument 148 stm32_bsec_pta_read(void *context, unsigned int offset, void *buf, size_t bytes) argument 156 stm32_bsec_pta_write(void *context, unsigned int offset, void *buf, size_t bytes) argument [all...] |
H A D | sunxi_sid.c | 40 void *val, size_t bytes) 46 __ioread32_copy(val, sid->base + sid->value_offset + offset, bytes / 4); 48 val += round_down(bytes, 4); 49 offset += round_down(bytes, 4); 50 bytes = bytes % 4; 52 if (!bytes) 55 /* Handle any trailing bytes */ 57 memcpy(val, &word, bytes); 94 void *val, size_t bytes) 39 sunxi_sid_read(void *context, unsigned int offset, void *val, size_t bytes) argument 93 sun8i_sid_read_by_reg(void *context, unsigned int offset, void *val, size_t bytes) argument [all...] |
H A D | u-boot-env.c | 51 size_t bytes) 58 err = mtd_read(priv->mtd, offset, bytes, &bytes_read, val); 64 if (bytes_read != bytes) { 65 dev_err(dev, "Failed to read %zu bytes\n", bytes); 73 unsigned int offset, void *buf, size_t bytes) 77 if (bytes != 3 * ETH_ALEN - 1) 114 info.bytes = strlen(value); 118 info.bytes = ETH_ALEN; 142 int bytes; local 50 u_boot_env_read(void *context, unsigned int offset, void *val, size_t bytes) argument 72 u_boot_env_read_post_process_ethaddr(void *context, const char *id, int index, unsigned int offset, void *buf, size_t bytes) argument [all...] |
H A D | zynqmp_nvmem.c | 60 void *val, size_t bytes, enum efuse_access flag, 67 size_t words = bytes / WORD_INBYTES; 72 if (bytes % WORD_INBYTES != 0) { 83 memcpy(&value, val, bytes); 87 dev_err(dev, "Only lower 4 bytes are allowed to be programmed in P_USER_0 & P_USER_64\n"); 103 data = dma_alloc_coherent(dev, sizeof(bytes), 111 memcpy(data, val, bytes); 135 memcpy(val, data, bytes); 137 dma_free_coherent(dev, sizeof(bytes), 146 static int zynqmp_nvmem_read(void *context, unsigned int offset, void *val, size_t bytes) argument 59 zynqmp_efuse_access(void *context, unsigned int offset, void *val, size_t bytes, enum efuse_access flag, unsigned int pufflag) argument 185 zynqmp_nvmem_write(void *context, unsigned int offset, void *val, size_t bytes) argument [all...] |
/linux-master/fs/btrfs/ |
H A D | free-space-cache.c | 41 u64 bytes; member in struct:btrfs_trim_range 51 u64 *bytes, bool for_alloc); 56 u64 bytes, bool update_stats); 580 static int io_ctl_add_entry(struct btrfs_io_ctl *io_ctl, u64 offset, u64 bytes, argument 590 put_unaligned_le64(bytes, &entry->bytes); 664 entry->bytes = get_unaligned_le64(&e->bytes); 727 * bytes we can have, or whatever is less than that. 828 if (!e->bytes) { 911 const u64 bytes = info->bytes; local 920 u64 bytes = ctl->unit; local 1567 bytes_to_bits(u64 bytes, u32 unit) argument 1878 bitmap_clear_bits(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, u64 offset, u64 bytes, bool update_stat) argument 1914 bitmap_set_bits(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, u64 offset, u64 bytes) argument 1955 search_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *bitmap_info, u64 *offset, u64 *bytes, bool for_alloc) argument 2011 find_free_space(struct btrfs_free_space_ctl *ctl, u64 *offset, u64 *bytes, unsigned long align, u64 *max_extent_size, bool use_bytes_index) argument 2151 remove_from_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *bitmap_info, u64 *offset, u64 *bytes) argument 2228 add_bytes_to_bitmap(struct btrfs_free_space_ctl *ctl, struct btrfs_free_space *info, u64 offset, u64 bytes, enum btrfs_trim_state trim_state) argument 2318 u64 bytes, offset, bytes_added; local 2457 u64 bytes = info->bytes; local 2507 u64 bytes; local 2541 u64 bytes; local 2622 __btrfs_add_free_space(struct btrfs_block_group *block_group, u64 offset, u64 bytes, enum btrfs_trim_state trim_state) argument 2795 btrfs_remove_free_space(struct btrfs_block_group *block_group, u64 offset, u64 bytes) argument 2908 btrfs_dump_free_space(struct btrfs_block_group *block_group, u64 bytes) argument 3080 btrfs_find_space_for_alloc(struct btrfs_block_group *block_group, u64 offset, u64 bytes, u64 empty_size, u64 *max_extent_size) argument 3184 btrfs_alloc_from_bitmap(struct btrfs_block_group *block_group, struct btrfs_free_cluster *cluster, struct btrfs_free_space *entry, u64 bytes, u64 min_start, u64 *max_extent_size) argument 3217 btrfs_alloc_from_cluster(struct btrfs_block_group *block_group, struct btrfs_free_cluster *cluster, u64 bytes, u64 min_start, u64 *max_extent_size) argument 3316 btrfs_bitmap_cluster(struct btrfs_block_group *block_group, struct btrfs_free_space *entry, struct btrfs_free_cluster *cluster, u64 offset, u64 bytes, u64 cont1_bytes, u64 min_bytes) argument 3410 setup_cluster_no_bitmap(struct btrfs_block_group *block_group, struct btrfs_free_cluster *cluster, struct list_head *bitmaps, u64 offset, u64 bytes, u64 cont1_bytes, u64 min_bytes) argument 3503 setup_cluster_bitmap(struct btrfs_block_group *block_group, struct btrfs_free_cluster *cluster, struct list_head *bitmaps, u64 offset, u64 bytes, u64 cont1_bytes, u64 min_bytes) argument 3553 btrfs_find_space_cluster(struct btrfs_block_group *block_group, struct btrfs_free_cluster *cluster, u64 offset, u64 bytes, u64 empty_size) argument 3645 do_trimming(struct btrfs_block_group *block_group, u64 *total_trimmed, u64 start, u64 bytes, u64 reserved_start, u64 reserved_bytes, enum btrfs_trim_state reserved_trim_state, struct btrfs_trim_range *trim_entry) argument 3719 u64 bytes; local 3882 u64 bytes; local 4185 test_add_free_space_entry(struct btrfs_block_group *cache, u64 offset, u64 bytes, bool bitmap) argument 4255 test_check_exists(struct btrfs_block_group *cache, u64 offset, u64 bytes) argument [all...] |
/linux-master/block/ |
H A D | blk-map.c | 167 unsigned int bytes = PAGE_SIZE; local 169 bytes -= offset; 171 if (bytes > len) 172 bytes = len; 192 if (bio_add_pc_page(rq->q, bio, page, bytes, offset) < bytes) { 198 len -= bytes; 297 ssize_t bytes; local 304 bytes = iov_iter_extract_pages(iter, &pages, LONG_MAX, 306 if (unlikely(bytes < 413 unsigned int bytes = PAGE_SIZE - offset; local 498 unsigned int bytes = PAGE_SIZE; local 569 unsigned int nsegs = 0, bytes = 0; local [all...] |
/linux-master/drivers/gpu/drm/i915/gvt/ |
H A D | edid.c | 139 unsigned int offset, void *p_data, unsigned int bytes) 144 memcpy(&vgpu_vreg(vgpu, offset), p_data, bytes); local 179 void *p_data, unsigned int bytes) 280 void *p_data, unsigned int bytes) 289 void *p_data, unsigned int bytes) 302 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); 314 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); 335 memcpy(p_data, &vgpu_vreg(vgpu, offset), bytes); 342 void *p_data, unsigned int bytes) 348 memcpy(p_data, (void *)&value, bytes); 138 gmbus0_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, void *p_data, unsigned int bytes) argument 178 gmbus1_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, void *p_data, unsigned int bytes) argument 279 gmbus3_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, void *p_data, unsigned int bytes) argument 288 gmbus3_mmio_read(struct intel_vgpu *vgpu, unsigned int offset, void *p_data, unsigned int bytes) argument 341 gmbus2_mmio_read(struct intel_vgpu *vgpu, unsigned int offset, void *p_data, unsigned int bytes) argument 352 gmbus2_mmio_write(struct intel_vgpu *vgpu, unsigned int offset, void *p_data, unsigned int bytes) argument 376 intel_gvt_i2c_handle_gmbus_read(struct intel_vgpu *vgpu, unsigned int offset, void *p_data, unsigned int bytes) argument 406 intel_gvt_i2c_handle_gmbus_write(struct intel_vgpu *vgpu, unsigned int offset, void *p_data, unsigned int bytes) argument [all...] |
/linux-master/drivers/iommu/ |
H A D | omap-iommu-debug.c | 32 ssize_t bytes; \ 37 bytes = scnprintf(p, maxcol, str, __stringify(name), \ 39 p += bytes; \ 40 len -= bytes; \ 69 ssize_t bytes) 76 bytes = omap2_iommu_dump_ctx(obj, buf, bytes); 80 return bytes; 88 ssize_t bytes; local 100 bytes 68 omap_iommu_dump_ctx(struct omap_iommu *obj, char *buf, ssize_t bytes) argument [all...] |
/linux-master/arch/x86/crypto/ |
H A D | poly1305_glue.c | 107 const size_t bytes = min_t(size_t, len, SZ_4K); local 111 poly1305_blocks_avx512(ctx, inp, bytes, padbit); 113 poly1305_blocks_avx2(ctx, inp, bytes, padbit); 115 poly1305_blocks_avx(ctx, inp, bytes, padbit); 118 len -= bytes; 119 inp += bytes; 171 unsigned int bytes, used; local 174 bytes = min(srclen, POLY1305_BLOCK_SIZE - dctx->buflen); 175 memcpy(dctx->buf + dctx->buflen, src, bytes); 176 src += bytes; [all...] |
/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe_mr.c | 250 unsigned int bytes; local 259 bytes = min_t(unsigned int, length, 263 memcpy(addr, va + page_offset, bytes); 265 memcpy(va + page_offset, addr, bytes); 269 addr += bytes; 270 length -= bytes; 281 unsigned int bytes; local 287 bytes = min_t(unsigned int, length, 292 memcpy(va + page_offset, addr, bytes); 294 memcpy(addr, va + page_offset, bytes); 340 int bytes; local 429 unsigned int bytes; local 590 unsigned int bytes; local [all...] |
/linux-master/samples/seccomp/ |
H A D | bpf-fancy.c | 85 ssize_t bytes; local 98 bytes = syscall(__NR_read, STDIN_FILENO, buf, sizeof(buf)-1); 99 bytes = (bytes > 0 ? bytes : 0); 101 syscall(__NR_write, STDERR_FILENO, buf, bytes);
|
/linux-master/drivers/ps3/ |
H A D | ps3-vuart.c | 352 const void *buf, unsigned int bytes, u64 *bytes_written) 358 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_written); 369 *bytes_written, bytes, priv->stats.bytes_written); 382 unsigned int bytes, u64 *bytes_read) 387 dev_dbg(&dev->core, "%s:%d: %xh\n", __func__, __LINE__, bytes); 390 ps3_mm_phys_to_lpar(__pa(buf)), bytes, bytes_read); 401 *bytes_read, bytes, priv->stats.bytes_read); 407 * ps3_vuart_clear_rx_bytes - Discard bytes received. 409 * @bytes: Max byte count to discard, zero = all pending. 415 unsigned int bytes) 351 ps3_vuart_raw_write(struct ps3_system_bus_device *dev, const void *buf, unsigned int bytes, u64 *bytes_written) argument 381 ps3_vuart_raw_read(struct ps3_system_bus_device *dev, void *buf, unsigned int bytes, u64 *bytes_read) argument 414 ps3_vuart_clear_rx_bytes(struct ps3_system_bus_device *dev, unsigned int bytes) argument 474 ps3_vuart_write(struct ps3_system_bus_device *dev, const void *buf, unsigned int bytes) argument 550 u64 bytes; local 598 ps3_vuart_read(struct ps3_system_bus_device *dev, void *buf, unsigned int bytes) argument 672 ps3_vuart_read_async(struct ps3_system_bus_device *dev, unsigned int bytes) argument 783 u64 bytes; local [all...] |
/linux-master/lib/zstd/compress/ |
H A D | zstd_cwksp.h | 36 /* Set our tables and aligneds to align by 64 bytes */ 125 * buffers are each aligned to 64 bytes. 201 * Returns an adjusted alloc size that is the nearest larger multiple of 64 bytes. 202 * Used to determine the number of bytes required for a given "aligned". 213 /* For alignment, the wksp will always allocate an additional n_1=[1, 64] bytes 214 * to align the beginning of tables section, as well as another n_2=[0, 63] bytes 217 * n_1 + n_2 == 64 bytes if the cwksp is freshly allocated, due to tables and 218 * aligneds being sized in multiples of 64 bytes. 226 * Return the number of additional bytes required to align a pointer to the given number of bytes 231 size_t const bytes = (alignBytes - ((size_t)ptr & (alignBytesMask))) & alignBytesMask; local 245 ZSTD_cwksp_reserve_internal_buffer_space(ZSTD_cwksp* ws, size_t const bytes) argument 324 ZSTD_cwksp_reserve_internal(ZSTD_cwksp* ws, size_t bytes, ZSTD_cwksp_alloc_phase_e phase) argument 341 ZSTD_cwksp_reserve_buffer(ZSTD_cwksp* ws, size_t bytes) argument 349 ZSTD_cwksp_reserve_aligned(ZSTD_cwksp* ws, size_t bytes) argument 362 ZSTD_cwksp_reserve_table(ZSTD_cwksp* ws, size_t bytes) argument 398 ZSTD_cwksp_reserve_object(ZSTD_cwksp* ws, size_t bytes) argument [all...] |
/linux-master/drivers/md/bcache/ |
H A D | debug.c | 162 size_t bytes; member in struct:dump_iterator 181 unsigned int bytes = min(i->bytes, size); local 183 if (copy_to_user(buf, i->buf, bytes)) 186 ret += bytes; 187 buf += bytes; 188 size -= bytes; 189 i->bytes -= bytes; 190 memmove(i->buf, i->buf + bytes, [all...] |
/linux-master/drivers/media/usb/hdpvr/ |
H A D | hdpvr-core.c | 69 static void challenge(u8 *bytes) argument 78 bytes[(idx >> 3) + 3] = bytes[(idx >> 2) & 0x3]; 82 bytes[2] += bytes[3] * 4 + bytes[4] + bytes[5]; 83 bytes[4] += bytes[(idx & 0x1) * 2] * 9 + 9; 86 bytes[ [all...] |
/linux-master/sound/i2c/ |
H A D | tea6330t.c | 98 unsigned char bytes[3]; local 109 bytes[count++] = TEA6330T_SADDR_VOLUME_LEFT; 110 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT] = tea->mleft; 114 bytes[count++] = TEA6330T_SADDR_VOLUME_RIGHT; 115 bytes[count++] = tea->regs[TEA6330T_SADDR_VOLUME_RIGHT] = tea->mright; 118 err = snd_i2c_sendbytes(tea->device, bytes, count); 150 unsigned char bytes[3]; local 161 bytes[0] = TEA6330T_SADDR_VOLUME_LEFT; 162 bytes[1] = tea->regs[TEA6330T_SADDR_VOLUME_LEFT]; 163 bytes[ 202 unsigned char bytes[2]; local 250 unsigned char bytes[2]; local 289 unsigned char bytes[7]; local [all...] |