/linux-master/drivers/nvmem/ |
H A D | qoriq-efuse.c | 18 size_t bytes) 23 __ioread32_copy(val, priv->base + offset, bytes / 4); 25 /* Ignore trailing bytes (there shouldn't be any) */ 17 qoriq_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) argument
|
H A D | uniphier-efuse.c | 20 unsigned int reg, void *_val, size_t bytes) 26 for (offs = 0; offs < bytes; offs += sizeof(u8)) 19 uniphier_reg_read(void *context, unsigned int reg, void *_val, size_t bytes) argument
|
H A D | brcm_nvram.c | 50 size_t bytes) 55 if (offset + bytes > priv->data_len) 58 to_copy = bytes; 62 memset((uint8_t *)val + to_copy, priv->padding_byte, bytes - to_copy); 99 unsigned int offset, void *buf, size_t bytes) 103 if (bytes != 3 * ETH_ALEN - 1) 161 priv->cells[idx].bytes = strlen(value); 167 priv->cells[idx].bytes = ETH_ALEN; 49 brcm_nvram_read(void *context, unsigned int offset, void *val, size_t bytes) argument 98 brcm_nvram_read_post_process_macaddr(void *context, const char *id, int index, unsigned int offset, void *buf, size_t bytes) argument
|
/linux-master/arch/x86/kernel/ |
H A D | msr.c | 13 * and then read/write in chunks of 8 bytes. A larger size means multiple 60 ssize_t bytes = 0; local 74 bytes += 8; 77 return bytes ? bytes : err; 116 ssize_t bytes = 0; local 142 bytes += 8; 145 return bytes ? bytes : err;
|
/linux-master/lib/raid6/ |
H A D | loongarch_simd.c | 33 static void raid6_lsx_gen_syndrome(int disks, size_t bytes, void **ptrs) argument 52 for (d = 0; d < bytes; d += NSIZE*4) { 115 size_t bytes, void **ptrs) 134 for (d = 0; d < bytes; d += NSIZE*4) { 264 static void raid6_lasx_gen_syndrome(int disks, size_t bytes, void **ptrs) argument 283 for (d = 0; d < bytes; d += NSIZE*2) { 324 size_t bytes, void **ptrs) 343 for (d = 0; d < bytes; d += NSIZE*2) { 114 raid6_lsx_xor_syndrome(int disks, int start, int stop, size_t bytes, void **ptrs) argument 323 raid6_lasx_xor_syndrome(int disks, int start, int stop, size_t bytes, void **ptrs) argument
|
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_txrx_common.h | 51 u64 bytes); 54 u64 bytes);
|
/linux-master/drivers/net/ |
H A D | loopback.c | 95 void dev_lstats_read(struct net_device *dev, u64 *packets, u64 *bytes) argument 100 *bytes = 0; 111 tbytes = u64_stats_read(&lb_stats->bytes); 113 *bytes += tbytes; 122 u64 packets, bytes; local 124 dev_lstats_read(dev, &packets, &bytes); 128 stats->rx_bytes = bytes; 129 stats->tx_bytes = bytes;
|
/linux-master/arch/arm64/lib/ |
H A D | xor-neon.c | 13 static void xor_arm64_neon_2(unsigned long bytes, unsigned long * __restrict p1, argument 20 long lines = bytes / (sizeof(uint64x2_t) * 4); 40 static void xor_arm64_neon_3(unsigned long bytes, unsigned long * __restrict p1, argument 49 long lines = bytes / (sizeof(uint64x2_t) * 4); 76 static void xor_arm64_neon_4(unsigned long bytes, unsigned long * __restrict p1, argument 87 long lines = bytes / (sizeof(uint64x2_t) * 4); 121 static void xor_arm64_neon_5(unsigned long bytes, unsigned long * __restrict p1, argument 134 long lines = bytes / (sizeof(uint64x2_t) * 4); 194 static void xor_arm64_eor3_3(unsigned long bytes, argument 204 long lines = bytes / (sizeo 229 xor_arm64_eor3_4(unsigned long bytes, unsigned long * __restrict p1, const unsigned long * __restrict p2, const unsigned long * __restrict p3, const unsigned long * __restrict p4) argument 273 xor_arm64_eor3_5(unsigned long bytes, unsigned long * __restrict p1, const unsigned long * __restrict p2, const unsigned long * __restrict p3, const unsigned long * __restrict p4, const unsigned long * __restrict p5) argument [all...] |
/linux-master/sound/core/ |
H A D | ump_convert.c | 173 unsigned char bytes; local 179 bytes = ump_sysex_message_length(*data); 180 if (bytes > 6) 191 for (; bytes; bytes--, size++) { 214 * Convert from a UMP packet @data to MIDI 1.0 bytes at @buf. 217 * The function returns the number of bytes of MIDI 1.0 stream. 315 u32 *data, unsigned char bytes) 330 if (bytes > 2) 426 /* bytes fo 312 cvt_legacy_cmd_to_ump(struct ump_cvt_to_ump *cvt, unsigned char group, unsigned int protocol, u32 *data, unsigned char bytes) argument 434 unsigned char bytes; local [all...] |
/linux-master/drivers/gpu/drm/tests/ |
H A D | drm_dp_mst_helper_test.c | 304 .desc = "DP_REMOTE_DPCD_READ with max number of bytes", 329 .u.dpcd_write.bytes = data, 353 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7f, 355 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7e, 357 { .bytes = data, .num_bytes = ARRAY_SIZE(data), .i2c_dev_id = 0x7d, 381 .u.i2c_write.bytes = data, 464 if (memcmp(txin->bytes, txout->bytes, 480 return memcmp(IN.bytes, OUT.bytes, I [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | sbi.c | 577 int sbi_debug_console_write(const char *bytes, unsigned int num_bytes) argument 585 if (is_vmalloc_addr(bytes)) 586 base_addr = page_to_phys(vmalloc_to_page(bytes)) + 587 offset_in_page(bytes); 589 base_addr = __pa(bytes); 590 if (PAGE_SIZE < (offset_in_page(bytes) + num_bytes)) 591 num_bytes = PAGE_SIZE - offset_in_page(bytes); 606 int sbi_debug_console_read(char *bytes, unsigned int num_bytes) argument 614 if (is_vmalloc_addr(bytes)) 615 base_addr = page_to_phys(vmalloc_to_page(bytes)) [all...] |
/linux-master/include/linux/ |
H A D | slab.h | 369 * Page size is normally 2^12 bytes and, in this case, if we want to use 463 * 1 = 65 .. 96 bytes 464 * 2 = 129 .. 192 bytes 567 * @size: how many bytes of memory are required. 574 * bytes. For @size of power of two bytes, the alignment is also guaranteed 659 size_t bytes; local 661 if (unlikely(check_mul_overflow(n, size, &bytes))) 664 return kmalloc(bytes, flags); 665 return __kmalloc(bytes, flag 680 size_t bytes; local 720 size_t bytes; local 779 size_t bytes; local [all...] |
/linux-master/net/rds/ |
H A D | info.c | 116 unsigned long bytes) 120 while (bytes) { 124 this = min(bytes, PAGE_SIZE - iter->offset); 127 "bytes %lu\n", *iter->pages, iter->addr, 128 iter->offset, this, data, bytes); 133 bytes -= this; 151 * on output is the size of the requested snapshot in bytes. 155 * On success it returns the positive number of bytes of each array element 115 rds_info_copy(struct rds_info_iterator *iter, void *data, unsigned long bytes) argument
|
/linux-master/crypto/ |
H A D | xor.c | 27 xor_blocks(unsigned int src_count, unsigned int bytes, void *dest, void **srcs) argument 33 active_template->do_2(bytes, dest, p1); 39 active_template->do_3(bytes, dest, p1, p2); 45 active_template->do_4(bytes, dest, p1, p2, p3); 50 active_template->do_5(bytes, dest, p1, p2, p3, p4); 109 // bytes/ns == GB/s, multiply by 1000 to get MB/s [not MiB/s]
|
H A D | aegis128-core.c | 95 crypto_xor(state->blocks[0].bytes, msg, AEGIS_BLOCK_SIZE); 106 crypto_xor(key_iv.bytes, iv, AEGIS_BLOCK_SIZE); 185 crypto_xor(tmp.bytes, src, AEGIS_BLOCK_SIZE); 189 memcpy(dst, tmp.bytes, AEGIS_BLOCK_SIZE); 199 memcpy(msg.bytes, src, size); 210 memcpy(dst, msg.bytes, size); 246 crypto_xor(tmp.bytes, src, AEGIS_BLOCK_SIZE); 250 memcpy(dst, tmp.bytes, AEGIS_BLOCK_SIZE); 260 memcpy(msg.bytes, src, size); 268 memset(msg.bytes [all...] |
/linux-master/tools/testing/selftests/bpf/ |
H A D | get_cgroup_id_user.c | 52 int err, bytes, efd, prog_fd, pmu_fd; local 99 bytes = read(efd, buf, sizeof(buf)); 101 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), "read", 102 "bytes %d errno %d\n", bytes, errno))
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | tp_attach_query.c | 7 int i, j, bytes, efd, err, prog_fd[num_progs], pmu_fd[num_progs]; local 29 bytes = read(efd, buf, sizeof(buf)); 31 if (CHECK(bytes <= 0 || bytes >= sizeof(buf), 32 "read", "bytes %d errno %d\n", bytes, errno))
|
/linux-master/sound/soc/sof/ |
H A D | sof-client-probes-ipc3.c | 108 size_t bytes; local 128 bytes = sizeof(reply->dma[0]); 130 bytes = sizeof(reply->desc[0]); 131 bytes *= reply->num_elems; 132 *params = kmemdup(&reply->dma[0], bytes, GFP_KERNEL);
|
/linux-master/fs/bcachefs/ |
H A D | siphash.c | 99 ctx->bytes = 0; 111 used = ctx->bytes % sizeof(ctx->buf); 112 ctx->bytes += len; 152 used = ctx->bytes % sizeof(ctx->buf); 155 ctx->buf[7] = ctx->bytes;
|
/linux-master/sound/firewire/tascam/ |
H A D | tascam-transaction.c | 67 /* The first byte is used for label, the rest for MIDI bytes. */ 92 /* We need to fill whole 3 bytes. Go to next change. */ 111 /* Calculate consume bytes. */ 118 /* Enough MIDI bytes were not retrieved. */ 127 /* Enough MIDI bytes were not retrieved. */ 257 int bytes; local 272 bytes = calculate_message_bytes(b[1]); 274 if (bytes <= 0) { 276 for (bytes = 1; bytes < [all...] |
/linux-master/sound/i2c/ |
H A D | i2c.c | 22 unsigned char *bytes, int count); 24 unsigned char *bytes, int count); 132 int snd_i2c_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) argument 134 return device->bus->ops->sendbytes(device, bytes, count); 139 int snd_i2c_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) argument 141 return device->bus->ops->readbytes(device, bytes, count); 262 unsigned char *bytes, int count) 276 err = snd_i2c_bit_sendbyte(bus, *bytes++); 288 unsigned char *bytes, int count) 307 *bytes 261 snd_i2c_bit_sendbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) argument 287 snd_i2c_bit_readbytes(struct snd_i2c_device *device, unsigned char *bytes, int count) argument [all...] |
/linux-master/arch/arm/crypto/ |
H A D | poly1305-glue.c | 89 u32 bytes = min(len, POLY1305_BLOCK_SIZE - dctx->buflen); local 91 memcpy(dctx->buf + dctx->buflen, src, bytes); 92 src += bytes; 93 len -= bytes; 94 dctx->buflen += bytes; 146 u32 bytes = min(nbytes, POLY1305_BLOCK_SIZE - dctx->buflen); local 148 memcpy(dctx->buf + dctx->buflen, src, bytes); 149 src += bytes; 150 nbytes -= bytes; 151 dctx->buflen += bytes; [all...] |
/linux-master/fs/btrfs/tests/ |
H A D | free-space-tests.c | 842 u64 offset, max_extent_size, bytes; local 845 test_msg("running bytes index tests"); 850 bytes = (i + 1) * SZ_1M; 851 ret = test_add_free_space_entry(cache, offset, bytes, 0); 856 offset += bytes + sectorsize; 862 bytes = (i + 1) * SZ_1M; 863 if (entry->bytes != bytes) { 864 test_err("invalid bytes index order, found %llu expected %llu", 865 entry->bytes, byte [all...] |
/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | sock.c | 508 ssize_t bytes, sent; local 515 bytes = recv(sk, buf, sizeof(buf), 0); 517 if (bytes < 0) 518 test_error("recv(): %zd", bytes); 519 if (bytes == 0) 526 sent = send(sk, buf, bytes, 0); 529 if (sent != bytes) 531 total += bytes; 548 size_t sent, bytes = min(msg_len, buf_sz - i); local 555 sent = send(sk, buf + i, bytes, [all...] |
/linux-master/tools/testing/selftests/net/tcp_ao/ |
H A D | icmps-accept.c | 59 ssize_t bytes; local 66 bytes = test_server_run(sk, test_quota, 0); 85 if (bytes < 0) 86 test_icmps_fail("Server failed with %zd: %s", bytes, strerrordesc_np(-bytes)); 88 test_icmps_ok("Server survived %zd bytes of traffic", test_quota); 194 ssize_t bytes; local 220 bytes = sendto(sk, &packet, sizeof(packet), 0, 222 if (bytes != sizeof(packet)) 223 test_error("send(): %zd", bytes); 309 ssize_t bytes; local [all...] |