/linux-master/arch/arm/crypto/ |
H A D | aes-neonbs-glue.c | 248 int bytes = walk.nbytes; local 250 if (unlikely(bytes < AES_BLOCK_SIZE)) 251 src = dst = memcpy(buf + sizeof(buf) - bytes, 252 src, bytes); 254 bytes &= ~(8 * AES_BLOCK_SIZE - 1); 257 aesbs_ctr_encrypt(dst, src, ctx->rk, ctx->rounds, bytes, walk.iv); 260 if (unlikely(bytes < AES_BLOCK_SIZE)) 262 buf + sizeof(buf) - bytes, bytes); 264 err = skcipher_walk_done(&walk, walk.nbytes - bytes); [all...] |
/linux-master/drivers/net/ethernet/microchip/vcap/ |
H A D | vcap_api_debugfs.c | 30 int idx, bytes; local 105 bytes = DIV_ROUND_UP(keyfield[key].width, BITS_PER_BYTE); 107 for (idx = 0; idx < bytes; ++idx) 108 out->prf(out->dst, "%02x", value[bytes - idx - 1]); 110 for (idx = 0; idx < bytes; ++idx) 111 out->prf(out->dst, "%02x", mask[bytes - idx - 1]); 124 int idx, bytes; local 150 bytes = DIV_ROUND_UP(actionfield[action].width, BITS_PER_BYTE); 152 for (idx = 0; idx < bytes; ++idx) 153 out->prf(out->dst, "%02x", value[bytes [all...] |
/linux-master/fs/squashfs/ |
H A D | file.c | 384 int bytes, int offset) 397 for (i = start_index; i <= end_index && bytes > 0; i++, 398 bytes -= PAGE_SIZE, offset += PAGE_SIZE) { 400 int avail = buffer ? min_t(int, bytes, PAGE_SIZE) : 0; 402 TRACE("bytes %d, i %d, available_bytes %d\n", bytes, i, avail); 605 int bytes; local 607 /* Last page (if present) may have trailing bytes not filled */ 608 bytes = res % PAGE_SIZE; 609 if (index == file_end && bytes 383 squashfs_copy_cache(struct page *page, struct squashfs_cache_entry *buffer, int bytes, int offset) argument [all...] |
/linux-master/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_log.c | 66 log->sizes[i].bytes = sections[i].default_val; 69 if (log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes >= SZ_1M && 71 log->sizes[GUC_LOG_SECTIONS_CRASH].bytes = SZ_1M; 76 if ((log->sizes[i].bytes % SZ_1M) == 0) { 84 if (!IS_ALIGNED(log->sizes[i].bytes, log->sizes[i].units)) 86 sections[i].name, log->sizes[i].bytes, log->sizes[i].units); 87 log->sizes[i].count = log->sizes[i].bytes / log->sizes[i].units; 127 return log->sizes[GUC_LOG_SECTIONS_CRASH].bytes; 134 return log->sizes[GUC_LOG_SECTIONS_DEBUG].bytes; 141 return log->sizes[GUC_LOG_SECTIONS_CAPTURE].bytes; [all...] |
/linux-master/lib/842/ |
H A D | 842_decompress.c | 96 /* split this up if reading > 8 bytes, or if we're at the end of 266 * to the output buffer @out, using no more than @olen bytes. 274 * will contain the number of output bytes written on success, or 282 u64 op, rep, tmp, bytes, total; local 309 if (p.out == out) /* no previous bytes */ 341 ret = next_bits(&p, &bytes, SHORT_DATA_BITS); 345 if (!bytes || bytes > SHORT_DATA_BITS_MAX) 348 while (bytes-- > 0) {
|
/linux-master/drivers/gpu/drm/ttm/ |
H A D | ttm_bo_vm.c | 382 unsigned long bytes = min(bytes_left, PAGE_SIZE - offset); local 394 memcpy(ptr, buf, bytes); 396 memcpy(buf, ptr, bytes); 400 buf += bytes; 401 bytes_left -= bytes;
|
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_repr.c | 145 * (and vice versa), TX and RX bytes/packets are effectively swapped on port 156 u64 pkts, bytes; local 161 &pkts, &bytes); 163 stats->rx_bytes = bytes; 168 &pkts, &bytes); 170 stats->tx_bytes = bytes;
|
/linux-master/drivers/mfd/ |
H A D | twl6030-irq.c | 164 u8 bytes[4]; member in union:__anon358 171 ret = twl_i2c_read(TWL_MODULE_PIH, sts.bytes, REG_INT_STS_A, 3); 177 sts.bytes[3] = 0; /* Only 24 bits are valid*/ 183 if (sts.bytes[2] & 0x10) 184 sts.bytes[2] |= 0x08;
|
/linux-master/sound/virtio/ |
H A D | virtio_pcm_msg.c | 15 * @length: Data length in bytes. 124 * @period_bytes: Current period size in bytes. 189 * @bytes: number of bytes that has been updated 193 * virtqueue. For this, the function uses offset and bytes to calculate the 201 unsigned long bytes) 213 end = (offset + bytes - 1) / period_bytes; 225 if (n > bytes) 226 n = bytes; 251 bytes 200 virtsnd_pcm_msg_send(struct virtio_pcm_substream *vss, unsigned long offset, unsigned long bytes) argument [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | udpgso_bench_rx.c | 53 static unsigned long packets, bytes; variable 164 /* Flush all outstanding bytes for the tcp receive queue */ 170 /* MSG_TRUNC flushes up to len bytes */ 182 bytes += ret; 247 /* Flush all outstanding datagrams. Verify first few bytes of each. */ 279 bytes += ret; 383 bytes >> 20, packets); 384 bytes = packets = 0;
|
/linux-master/arch/x86/kernel/apic/ |
H A D | x2apic_uv_x.c | 580 int bytes, i, sid, lsid = -1, indx = 0, lindx = -1; local 585 bytes = _gr_table_len * sizeof(struct uv_gam_range_s); 586 grt = kzalloc(bytes, GFP_KERNEL); 650 bytes = i * sizeof(struct uv_gam_range_s); 651 ret = krealloc(_gr_table, bytes, GFP_KERNEL); 828 unsigned long bytes, paddr; local 831 bytes = (1UL << bshift) * (max_pnode + 1); 837 init_extra_mapping_uc(paddr, bytes); 839 init_extra_mapping_wb(paddr, bytes); 842 id, paddr, paddr + bytes, m 1443 size_t bytes; local 1650 int bytes, cpu, nodeid, bid; local [all...] |
/linux-master/drivers/mtd/nand/raw/ |
H A D | omap2.c | 202 * @u32_count: number of bytes to be transferred 217 /* Set the amount of bytes to be prefetched */ 272 /* read 32-bit words using prefetch and remaining bytes normally */ 292 /* fetch any remaining bytes */ 366 * @len: number of data bytes to be transferred 490 u32 bytes; local 492 bytes = readl(info->reg.gpmc_prefetch_status); 493 bytes = PREFETCH_STATUS_FIFO_CNT(bytes); 494 bytes [all...] |
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_txrx.c | 415 stats->bytes += len; 647 stats->bytes += len; 901 u64 pkts, bytes; local 912 bytes = lif->txqstats[qi].bytes; 916 bytes = lif->rxqstats[qi].bytes; 920 bytes = lif->txqstats[qi].bytes + lif->rxqstats[qi].bytes; 1215 unsigned int bytes = 0; local 1249 unsigned int bytes = 0; local 1290 int bytes = 0; local [all...] |
/linux-master/drivers/misc/sgi-gru/ |
H A D | grukservices.c | 99 /* GRU cacheline size is always 64 bytes - even on arches with 128 byte lines */ 285 * dsr_bytes - number of DSR bytes needed 546 void *p, unsigned int bytes, int nasid, int vector, int apicid) 551 qlines = bytes / GRU_CACHE_LINE_BYTES - 2; 552 memset(mq, 0, bytes); 794 * bytes message size (<= 2 CL) 797 unsigned int bytes) 805 BUG_ON(bytes < sizeof(int) || bytes > 2 * GRU_CACHE_LINE_BYTES); 807 clines = DIV_ROUND_UP(bytes, GRU_CACHE_LINE_BYTE 545 gru_create_message_queue(struct gru_message_queue_desc *mqd, void *p, unsigned int bytes, int nasid, int vector, int apicid) argument 796 gru_send_message_gpa(struct gru_message_queue_desc *mqd, void *mesg, unsigned int bytes) argument 928 gru_copy_gpa(unsigned long dest_gpa, unsigned long src_gpa, unsigned int bytes) argument 1052 int i, k, istatus, bytes; local [all...] |
/linux-master/tools/perf/bench/ |
H A D | numa.c | 427 ssize_t bytes; local 442 bytes = bytes0 + HPSIZE; 444 buf = (void *)mmap(0, bytes, PROT_READ|PROT_WRITE, MAP_ANON|map_flags, -1, 0); 449 ret = madvise(buf, bytes, MADV_HUGEPAGE); 456 ret = madvise(buf, bytes, MADV_NOHUGEPAGE); 465 bzero(buf, bytes); 473 for (i = 0; i < bytes/8; i++) 491 static void free_data(void *data, ssize_t bytes) argument 498 ret = munmap(data, bytes); 505 static void * zalloc_shared_data(ssize_t bytes) argument 513 setup_shared_data(ssize_t bytes) argument 522 setup_private_data(ssize_t bytes) argument 819 do_work(u8 *__data, long bytes, int nr, int nr_max, int loop, u64 val) argument 1573 double bytes; local [all...] |
/linux-master/drivers/media/i2c/ |
H A D | tvaudio.c | 69 int count; /* # of bytes to send */ 70 unsigned char bytes[MAXREGS+1]; /* addr, data, data, ... */ member in struct:AUDIOCMD 163 chip->shadow.bytes[1] = val; 173 if (subaddr + 1 >= ARRAY_SIZE(chip->shadow.bytes)) { 182 chip->shadow.bytes[subaddr+1] = val; 204 val = (chip->shadow.bytes[1] & ~mask) | (val & mask); 206 if (subaddr + 1 >= ARRAY_SIZE(chip->shadow.bytes)) { 213 val = (chip->shadow.bytes[subaddr+1] & ~mask) | (val & mask); 281 if (cmd->count + cmd->bytes[0] - 1 >= ARRAY_SIZE(chip->shadow.bytes)) { [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_port.c | 154 unsigned long packets, bytes; local 161 bytes = 0; 166 bytes += READ_ONCE(ring->bytes); 169 dev->stats.rx_bytes = bytes; 172 bytes = 0; 177 bytes += READ_ONCE(ring->bytes); 180 dev->stats.tx_bytes = bytes;
|
/linux-master/include/linux/ |
H A D | bio.h | 99 struct bvec_iter *iter, unsigned int bytes) 101 iter->bi_sector += bytes >> 9; 104 iter->bi_size -= bytes; 106 bvec_iter_advance(bio->bi_io_vec, iter, bytes); 110 /* @bytes should be less or equal to bvec[i->bi_idx].bv_len */ 113 unsigned int bytes) 115 iter->bi_sector += bytes >> 9; 118 iter->bi_size -= bytes; 120 bvec_iter_advance_single(bio->bi_io_vec, iter, bytes); 123 void __bio_advance(struct bio *, unsigned bytes); 98 bio_advance_iter(const struct bio *bio, struct bvec_iter *iter, unsigned int bytes) argument 111 bio_advance_iter_single(const struct bio *bio, struct bvec_iter *iter, unsigned int bytes) argument [all...] |
/linux-master/arch/x86/lib/ |
H A D | insn.c | 36 /* Verify next sizeof(t) bytes can be on the same instruction */ 64 * Instructions longer than MAX_INSN_SIZE (15 bytes) are invalid 113 * insn_get_prefixes - scan x86 instruction prefix bytes 143 if (prefixes->bytes[i] == b) 148 prefixes->bytes[nb++] = b; 167 if (lb && lb != insn->prefixes.bytes[3]) { 168 if (unlikely(insn->prefixes.bytes[3])) { 170 b = insn->prefixes.bytes[3]; 172 if (prefixes->bytes[i] == lb) 254 * If necessary, first collects any preceding (prefix) bytes [all...] |
/linux-master/tools/arch/x86/lib/ |
H A D | insn.c | 36 /* Verify next sizeof(t) bytes can be on the same instruction */ 64 * Instructions longer than MAX_INSN_SIZE (15 bytes) are invalid 113 * insn_get_prefixes - scan x86 instruction prefix bytes 143 if (prefixes->bytes[i] == b) 148 prefixes->bytes[nb++] = b; 167 if (lb && lb != insn->prefixes.bytes[3]) { 168 if (unlikely(insn->prefixes.bytes[3])) { 170 b = insn->prefixes.bytes[3]; 172 if (prefixes->bytes[i] == lb) 254 * If necessary, first collects any preceding (prefix) bytes [all...] |
/linux-master/tools/objtool/arch/x86/ |
H A D | decode.c | 140 if (insn->prefixes.bytes[i] == 0x3e) 180 prefix = ins.prefixes.bytes[0]; 182 op1 = ins.opcode.bytes[0]; 183 op2 = ins.opcode.bytes[1]; 184 op3 = ins.opcode.bytes[2]; 187 rex = ins.rex_prefix.bytes[0]; 195 modrm = ins.modrm.bytes[0]; 202 sib = ins.sib.bytes[0]; 554 ins.prefixes.bytes[0] == 0xf2) {
|
/linux-master/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_mmu.c | 84 size_t bytes = sg_dma_len(sg) + sg->offset; local 86 VERB("map[%d]: %08x %pap(%zx)", i, iova, &pa, bytes); 88 ret = etnaviv_context_map(context, da, pa, bytes, prot); 92 da += bytes; 112 size_t bytes = sg_dma_len(sg) + sg->offset; local 114 etnaviv_context_unmap(context, da, bytes); 116 VERB("unmap[%d]: %08x(%zx)", i, iova, bytes); 118 BUG_ON(!PAGE_ALIGNED(bytes)); 120 da += bytes;
|
/linux-master/fs/ntfs3/ |
H A D | ntfs_fs.h | 127 u32 bytes; member in struct:ntfs_buffers 216 u32 cluster_size; // bytes per cluster 237 u16 attr_size_tr; // Attribute size threshold (320 bytes). 276 u64 size; // In bytes. 323 /* One MFT record(usually 1024 bytes), consists of attributes. */ 370 * Not empty when primary MFT record (usually 1024 bytes) can't save all attributes 452 int attr_collapse_range(struct ntfs_inode *ni, u64 vbo, u64 bytes); 453 int attr_insert_range(struct ntfs_inode *ni, u64 vbo, u64 bytes); 454 int attr_punch_hole(struct ntfs_inode *ni, u64 vbo, u64 bytes, u32 *frame_size); 589 bool check_index_header(const struct INDEX_HDR *hdr, size_t bytes); [all...] |
/linux-master/arch/sh/lib/ |
H A D | checksum.S | 54 bt 21f ! Jump if alignment is boundary of 2bytes. 73 add #-2, r5 ! Alignment uses up two bytes. 75 bt/s 1f ! Jump if we had at least two bytes. 122 ! 4 bytes or more remaining 136 ! 3 bytes or less remaining 209 add #-2,r6 ! Alignment uses up two bytes. 210 cmp/pz r6 ! Jump if we had at least two bytes. 256 ! Handle first two bytes as a special case
|
/linux-master/drivers/rtc/ |
H A D | rtc-ds1553.c | 225 size_t bytes) 232 for (; bytes; bytes--) 238 size_t bytes) 245 for (; bytes; bytes--) 224 ds1553_nvram_read(void *priv, unsigned int pos, void *val, size_t bytes) argument 237 ds1553_nvram_write(void *priv, unsigned int pos, void *val, size_t bytes) argument
|