/linux-master/lib/raid6/ |
H A D | avx512.c | 44 static void raid6_avx5121_gen_syndrome(int disks, size_t bytes, void **ptrs) argument 61 for (d = 0; d < bytes; d += 64) { 102 size_t bytes, void **ptrs) 117 for (d = 0 ; d < bytes ; d += 64) { 171 static void raid6_avx5122_gen_syndrome(int disks, size_t bytes, void **ptrs) argument 188 /* We uniformly assume a single prefetch covers at least 64 bytes */ 189 for (d = 0; d < bytes; d += 128) { 234 size_t bytes, void **ptrs) 249 for (d = 0 ; d < bytes ; d += 128) { 330 static void raid6_avx5124_gen_syndrome(int disks, size_t bytes, voi argument 101 raid6_avx5121_xor_syndrome(int disks, int start, int stop, size_t bytes, void **ptrs) argument 233 raid6_avx5122_xor_syndrome(int disks, int start, int stop, size_t bytes, void **ptrs) argument 423 raid6_avx5124_xor_syndrome(int disks, int start, int stop, size_t bytes, void **ptrs) argument [all...] |
/linux-master/drivers/nvmem/ |
H A D | apple-efuses.c | 19 size_t bytes) 24 while (bytes >= sizeof(u32)) { 26 bytes -= sizeof(u32); 18 apple_efuses_read(void *context, unsigned int offset, void *val, size_t bytes) argument
|
H A D | stm32-bsec-optee-ta.c | 140 void *buf, size_t bytes) 163 num_bytes = round_up(offset + bytes - start, 4); 192 memcpy(buf, &shm_buf[offset % 4], bytes); 206 unsigned int offset, void *buf, size_t bytes) 219 if ((bytes % 4) || (offset % 4)) 233 shm = tee_shm_alloc_kernel_buf(ctx, bytes); 241 param[1].u.memref.size = bytes; 252 memcpy(shm_buf, buf, bytes); 260 pr_debug("Write OTPs %d to %zu, ret=%d\n", offset / 4, (offset + bytes) / 4, ret); 263 if (!ret && ((offset + bytes) > 139 stm32_bsec_optee_ta_read(struct tee_context *ctx, unsigned int offset, void *buf, size_t bytes) argument 205 stm32_bsec_optee_ta_write(struct tee_context *ctx, unsigned int lower, unsigned int offset, void *buf, size_t bytes) argument [all...] |
/linux-master/drivers/iommu/ |
H A D | omap-iommu.h | 211 #define iopgsz_max(bytes) \ 212 (((bytes) >= SZ_16M) ? SZ_16M : \ 213 ((bytes) >= SZ_1M) ? SZ_1M : \ 214 ((bytes) >= SZ_64K) ? SZ_64K : \ 215 ((bytes) >= SZ_4K) ? SZ_4K : 0) 217 #define bytes_to_iopgsz(bytes) \ 218 (((bytes) == SZ_16M) ? MMU_CAM_PGSZ_16M : \ 219 ((bytes) == SZ_1M) ? MMU_CAM_PGSZ_1M : \ 220 ((bytes) == SZ_64K) ? MMU_CAM_PGSZ_64K : \ 221 ((bytes) [all...] |
/linux-master/drivers/vdpa/vdpa_sim/ |
H A D | vdpa_sim_blk.c | 116 ssize_t bytes; local 146 bytes = vringh_iov_pull_iotlb(&vq->vring, &vq->out_iov, &hdr, 148 if (bytes != sizeof(hdr)) { 153 to_pull -= bytes; 179 bytes = vringh_iov_push_iotlb(&vq->vring, &vq->in_iov, 182 if (bytes < 0) { 185 bytes, offset, to_push); 190 pushed += bytes; 202 bytes = vringh_iov_pull_iotlb(&vq->vring, &vq->out_iov, 205 if (bytes < [all...] |
/linux-master/drivers/vfio/pci/ |
H A D | vfio_pci_igd.c | 36 * @off: Offset to user buffer ptr. Increased by bytes on return. 38 * @pos: Increased by bytes on return. 39 * @remaining: Decreased by bytes on return. 40 * @bytes: Bytes to copy and adjust off, pos and remaining. 52 size_t bytes) 54 if (copy_to_user(dst + (*off), src, bytes)) 57 *off += bytes; 58 *pos += bytes; 59 *remaining -= bytes; 81 size_t bytes local 47 igd_opregion_shift_copy(char __user *dst, loff_t *off, void *src, loff_t *pos, size_t *remaining, size_t bytes) argument 91 size_t bytes = min_t(size_t, remaining, local 109 size_t bytes = min_t(size_t, remaining, OPREGION_RVDA - pos); local 119 size_t bytes = min_t(size_t, remaining, local 132 size_t bytes = min_t(size_t, remaining, OPREGION_SIZE - pos); local [all...] |
/linux-master/samples/pidfd/ |
H A D | pidfd-metadata.c | 90 ssize_t bytes; local 110 bytes = read(statusfd, buf, sizeof(buf)); 111 if (bytes > 0) 112 bytes = write(STDOUT_FILENO, buf, bytes);
|
/linux-master/drivers/scsi/aic7xxx/ |
H A D | aiclib.h | 130 scsi_4btoul(uint8_t *bytes) argument 134 rv = (bytes[0] << 24) | 135 (bytes[1] << 16) | 136 (bytes[2] << 8) | 137 bytes[3];
|
/linux-master/sound/usb/ |
H A D | helper.c | 14 * combine bytes and get an integer value 16 unsigned int snd_usb_combine_bytes(unsigned char *bytes, int size) argument 19 case 1: return *bytes; 20 case 2: return combine_word(bytes); 21 case 3: return combine_triple(bytes); 22 case 4: return combine_quad(bytes);
|
/linux-master/fs/squashfs/ |
H A D | file_direct.c | 33 int i, n, pages, bytes, res = -ENOMEM; local 87 /* Last page (if present) may have trailing bytes not filled */ 88 bytes = res % PAGE_SIZE; 89 if (page[pages - 1]->index == end_index && bytes) { 91 memset(pageaddr + bytes, 0, PAGE_SIZE - bytes);
|
/linux-master/arch/arm64/crypto/ |
H A D | chacha-neon-glue.c | 37 int nrounds, int bytes); 43 int bytes, int nrounds) 45 while (bytes > 0) { 46 int l = min(bytes, CHACHA_BLOCK_SIZE * 5); 58 bytes -= l; 83 void chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, argument 86 if (!static_branch_likely(&have_neon) || bytes <= CHACHA_BLOCK_SIZE || 88 return chacha_crypt_generic(state, dst, src, bytes, nrounds); 91 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); 97 bytes 42 chacha_doneon(u32 *state, u8 *dst, const u8 *src, int bytes, int nrounds) argument [all...] |
/linux-master/sound/pci/echoaudio/ |
H A D | midi.c | 60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) argument 62 if (snd_BUG_ON(bytes <= 0 || bytes >= MIDI_OUT_BUFFER_SIZE)) 72 chip->comm_page->midi_output[0] = bytes; 73 memcpy(&chip->comm_page->midi_output[1], data, bytes); 77 dev_dbg(chip->card->dev, "write_midi: %d\n", bytes); 78 return bytes; 89 real MIDI bytes, the following logic is needed to skip them. */ 115 from the DSP's buffer. It returns the number of bytes received. */ 133 consists of MIDI bytes an 205 int bytes, sent, time; local [all...] |
/linux-master/arch/powerpc/crypto/ |
H A D | chacha-p10-glue.c | 38 unsigned int bytes, int nrounds) 40 unsigned int l = bytes & ~0x0FF; 44 bytes -= l; 50 if (bytes > 0) 51 chacha_crypt_generic(state, dst, src, bytes, nrounds); 66 void chacha_crypt_arch(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, argument 69 if (!static_branch_likely(&have_p10) || bytes <= CHACHA_BLOCK_SIZE || 71 return chacha_crypt_generic(state, dst, src, bytes, nrounds); 74 unsigned int todo = min_t(unsigned int, bytes, SZ_4K); 80 bytes 37 chacha_p10_do_8x(u32 *state, u8 *dst, const u8 *src, unsigned int bytes, int nrounds) argument [all...] |
H A D | sha1-spe-glue.c | 22 * MAX_BYTES defines the number of bytes that are allowed to be processed 24 * operations per 64 bytes. e500 cores can issue two arithmetic instructions 65 unsigned int bytes; local 88 bytes = (len > MAX_BYTES) ? MAX_BYTES : len; 89 bytes = bytes & ~0x3f; 92 ppc_spe_sha1_transform(sctx->state, src, bytes >> 6); 95 src += bytes; 96 len -= bytes;
|
/linux-master/drivers/mfd/ |
H A D | rsmu_spi.c | 25 static int rsmu_read_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u16 bytes) argument 34 if (bytes > RSMU_MAX_READ_COUNT) 39 xfer.len = bytes + 1; 66 static int rsmu_write_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u16 bytes) argument 73 if (bytes > RSMU_MAX_WRITE_COUNT) 77 memcpy(&cmd[1], buf, bytes); 79 xfer.len = bytes + 1; 98 u16 bytes; local 113 bytes = 4; 123 bytes [all...] |
/linux-master/tools/testing/selftests/net/tcp_ao/ |
H A D | seq-ext.c | 3 * 1. SEQ-extension has upper bytes set 72 ssize_t bytes; local 92 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); 93 if (bytes != quota) { 94 if (bytes > 0) 95 test_fail("server served: %zd", bytes); 97 test_fail("server returned: %zd", bytes); 120 bytes = test_server_run(sk, quota, TEST_TIMEOUT_SEC); 121 if (bytes != quota) { 122 if (bytes > [all...] |
/linux-master/include/linux/ |
H A D | bvec.h | 22 * @bv_len: Number of bytes in the address range. 84 unsigned int bi_bvec_done; /* number of bytes completed in 141 struct bvec_iter *iter, unsigned bytes) 145 if (WARN_ONCE(bytes > iter->bi_size, 151 iter->bi_size -= bytes; 152 bytes += iter->bi_bvec_done; 154 while (bytes && bytes >= bv[idx].bv_len) { 155 bytes -= bv[idx].bv_len; 160 iter->bi_bvec_done = bytes; 140 bvec_iter_advance(const struct bio_vec *bv, struct bvec_iter *iter, unsigned bytes) argument 168 bvec_iter_advance_single(const struct bio_vec *bv, struct bvec_iter *iter, unsigned int bytes) argument [all...] |
/linux-master/fs/btrfs/ |
H A D | free-space-cache.h | 40 u64 bytes; member in struct:btrfs_free_space 141 u64 offset, u64 bytes, u64 empty_size, 144 u64 bytes); 147 u64 offset, u64 bytes, u64 empty_size); 150 struct btrfs_free_cluster *cluster, u64 bytes, 169 u64 offset, u64 bytes, bool bitmap); 170 int test_check_exists(struct btrfs_block_group *cache, u64 offset, u64 bytes);
|
/linux-master/sound/soc/uniphier/ |
H A D | aio-dma.c | 31 int bytes = runtime->period_size * local 37 sub->threshold + bytes); 39 sub->threshold += bytes; 41 aiodma_rb_sync(sub, runtime->dma_addr, runtime->dma_bytes, bytes); 51 int bytes = runtime->fragment_size; local 56 sub->threshold + bytes); 58 sub->threshold += bytes; 60 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); 114 int bytes = runtime->period_size * local 126 bytes); 142 int bytes = runtime->period_size * local 177 int bytes = runtime->period_size * local [all...] |
/linux-master/drivers/scsi/ |
H A D | mac_scsi.c | 99 * specify the number of bytes between the delays expected from a SCSI target. 105 * If a MOVE.B instruction faults, we assume that zero bytes were transferred 289 int bytes; local 295 bytes = mac_pdma_recv(s, d, min(hostdata->pdma_residual, 512)); 297 if (bytes > 0) { 298 d += bytes; 299 hostdata->pdma_residual -= bytes; 313 if (bytes == 0) 316 if (bytes >= 0) 348 int bytes; local [all...] |
/linux-master/sound/soc/intel/atom/sst/ |
H A D | sst_stream.c | 171 struct snd_sst_bytes_v2 *bytes) 176 u8 bytes_block = bytes->block; 180 bytes->type, bytes->ipc_msg, bytes_block, bytes->task_id, 181 bytes->pipe_id, bytes->len); 187 sst_fill_header_mrfld(&msg->mrfld_header, bytes->ipc_msg, 188 bytes->task_id, 1, pvt_id); 190 length = bytes 170 sst_send_byte_stream_mrfld(struct intel_sst_drv *sst_drv_ctx, struct snd_sst_bytes_v2 *bytes) argument [all...] |
/linux-master/drivers/most/ |
H A D | most_snd.c | 57 void (*copy_fn)(void *alsa, void *most, unsigned int bytes); 77 static void swap_copy16(u16 *dest, const u16 *source, unsigned int bytes) argument 81 while (i < (bytes / 2)) { 87 static void swap_copy24(u8 *dest, const u8 *source, unsigned int bytes) argument 91 if (bytes < 2) 93 while (i < bytes - 2) { 101 static void swap_copy32(u32 *dest, const u32 *source, unsigned int bytes) argument 105 while (i < bytes / 4) { 111 static void alsa_to_most_memcpy(void *alsa, void *most, unsigned int bytes) argument 113 memcpy(most, alsa, bytes); 116 alsa_to_most_copy16(void *alsa, void *most, unsigned int bytes) argument 121 alsa_to_most_copy24(void *alsa, void *most, unsigned int bytes) argument 126 alsa_to_most_copy32(void *alsa, void *most, unsigned int bytes) argument 131 most_to_alsa_memcpy(void *alsa, void *most, unsigned int bytes) argument 136 most_to_alsa_copy16(void *alsa, void *most, unsigned int bytes) argument 141 most_to_alsa_copy24(void *alsa, void *most, unsigned int bytes) argument 146 most_to_alsa_copy32(void *alsa, void *most, unsigned int bytes) argument 439 int bytes; member in struct:sample_resolution_info [all...] |
/linux-master/block/ |
H A D | bio-integrity.c | 110 size_t bytes = bip->bip_iter.bi_size; local 114 iov_iter_bvec(&iter, ITER_DEST, copy, nr_vecs, bytes); 115 ret = copy_to_iter(bvec_virt(bip->bip_vec), bytes, &iter); 116 WARN_ON_ONCE(ret != bytes); 161 * @len: number of bytes of integrity metadata in page 282 int nr_vecs, ssize_t bytes, ssize_t offset) 288 size_t size = min_t(size_t, bytes, PAGE_SIZE - offset); 291 bytes -= size; 293 size_t next = min_t(size_t, PAGE_SIZE, bytes); 300 bytes 281 bvec_from_pages(struct bio_vec *bvec, struct page **pages, int nr_vecs, ssize_t bytes, ssize_t offset) argument 311 bio_integrity_map_user(struct bio *bio, void __user *ubuf, ssize_t bytes, u32 seed) argument 434 unsigned int bytes, offset, i; local 586 unsigned bytes = bio_integrity_bytes(bi, bytes_done >> 9); local [all...] |
/linux-master/arch/sparc/lib/ |
H A D | M7memset.S | 32 * For small 6 or fewer bytes stores, bytes will be stored. 34 * For less than 32 bytes stores, align the address on 4 byte boundary. 35 * Then store as many 4-byte chunks, followed by trailing bytes. 37 * For sizes greater than 32 bytes, align the address on 8 byte boundary. 39 * store 8-bytes chunks to align the address on 64 byte boundary 47 * ST_CHUNK cache lines (64 bytes each) before the main 51 * setting the other seven long words (56 bytes) of each 52 * cache line until fewer than ST_CHUNK*64 bytes remain. 57 * 64 bytes remai [all...] |
/linux-master/fs/crypto/ |
H A D | fname.c | 22 * The minimum message length (input and output length), in bytes, for all 37 * bytes), so we also need to use a strong hash to abbreviate long names. 50 * didn't provide one; up to 149 bytes of the ciphertext name; and for 51 * ciphertexts longer than 149 bytes, also the SHA-256 of the remaining bytes. 60 u8 bytes[149]; member in struct:fscrypt_nokey_name 62 }; /* 189 bytes => 252 bytes base64url-encoded, which is <= NAME_MAX (255) */ 105 * pad it with the needed number of NUL bytes. 193 * @srclen: the length of @src in bytes [all...] |