/linux-master/tools/net/ynl/samples/ |
H A D | page-pool.c | 18 size_t refs, bytes; member in struct:stat::__anon3332 54 s->live[l].bytes += pp->inflight_mem; 126 printf("\t\trefs: %zu bytes: %zu (refs: %zu bytes: %zu)\n", 127 s->live[1].refs, s->live[1].bytes, 128 s->live[0].refs, s->live[0].bytes);
|
/linux-master/drivers/net/ethernet/8390/ |
H A D | xsurf100.c | 66 static void z_memcpy_fromio32(void *dst, const void __iomem *src, size_t bytes) argument 68 while (bytes > 32) { 75 bytes -= 32; 77 while (bytes) { 81 bytes -= 4; 85 static void z_memcpy_toio32(void __iomem *dst, const void *src, size_t bytes) argument 87 while (bytes) { 91 bytes -= 4;
|
/linux-master/samples/bpf/ |
H A D | sockex3_user.c | 22 __u64 bytes; member in struct:pair 84 printf("IP src.port -> dst.port bytes packets\n"); 92 value.bytes, value.packets);
|
/linux-master/drivers/nvmem/ |
H A D | rmem.c | 21 void *val, size_t bytes) 45 count = memory_read_from_buffer(val, bytes, &off, addr, available); 20 rmem_read(void *context, unsigned int offset, void *val, size_t bytes) argument
|
H A D | lpc18xx_otp.c | 41 void *val, size_t bytes) 44 unsigned int count = bytes >> 2; 40 lpc18xx_otp_read(void *context, unsigned int offset, void *val, size_t bytes) argument
|
H A D | rockchip-efuse.c | 56 void *val, size_t bytes) 70 while (bytes--) { 96 void *val, size_t bytes) 113 addr_end = roundup(offset + bytes, RK3399_NBYTES) / RK3399_NBYTES; 141 memcpy(val, buf + addr_offset, bytes); 151 void *val, size_t bytes) 166 addr_end = roundup(offset + bytes, RK3399_NBYTES) / RK3399_NBYTES; 197 memcpy(val, buf + addr_offset, bytes); 55 rockchip_rk3288_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) argument 95 rockchip_rk3328_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) argument 150 rockchip_rk3399_efuse_read(void *context, unsigned int offset, void *val, size_t bytes) argument
|
H A D | sec-qfprom.c | 23 static int sec_qfprom_reg_read(void *context, unsigned int reg, void *_val, size_t bytes) argument 31 for (i = 0; i < bytes; i++, reg++) {
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | hv_vhca.c | 322 int bytes = min_t(int, (int)sizeof(data_block->data), len); local 326 memcpy(data_block->data, src, bytes); 328 return bytes; 346 int bytes; local 348 bytes = mlx5_hv_vhca_data_block_prepare(agent, &data_block, 351 if (!bytes) 359 total += bytes; 360 len -= bytes;
|
/linux-master/drivers/soc/atmel/ |
H A D | sfr.c | 24 void *buf, size_t bytes) 29 buf, bytes / 4); 23 atmel_sfr_read(void *context, unsigned int offset, void *buf, size_t bytes) argument
|
/linux-master/drivers/gpu/drm/i915/gvt/ |
H A D | page_track.c | 154 * @bytes: the length of this write 160 void *data, unsigned int bytes) 173 ret = page_track->handler(page_track, gpa, data, bytes); 159 intel_vgpu_page_track_handler(struct intel_vgpu *vgpu, u64 gpa, void *data, unsigned int bytes) argument
|
/linux-master/drivers/rtc/ |
H A D | rtc-rp5c01.c | 164 size_t bytes) 171 for (; bytes; bytes--) { 192 size_t bytes) 199 for (; bytes; bytes--) { 163 rp5c01_nvram_read(void *_priv, unsigned int pos, void *val, size_t bytes) argument 191 rp5c01_nvram_write(void *_priv, unsigned int pos, void *val, size_t bytes) argument
|
H A D | rtc-ds1742.c | 118 size_t bytes) 124 for (; bytes; bytes--) 130 size_t bytes) 136 for (; bytes; bytes--) 117 ds1742_nvram_read(void *priv, unsigned int pos, void *val, size_t bytes) argument 129 ds1742_nvram_write(void *priv, unsigned int pos, void *val, size_t bytes) argument
|
/linux-master/include/linux/ |
H A D | thread_info.h | 237 check_copy_size(const void *addr, size_t bytes, bool is_source) argument 240 if (unlikely(sz >= 0 && sz < bytes)) { 241 if (!__builtin_constant_p(bytes)) 242 copy_overflow(sz, bytes); 249 if (WARN_ON_ONCE(bytes > INT_MAX)) 251 check_object_size(addr, bytes, is_source);
|
/linux-master/drivers/mfd/ |
H A D | max8925-i2c.c | 19 int reg, int bytes, void *dest) 23 if (bytes > 1) 24 ret = i2c_smbus_read_i2c_block_data(i2c, reg, bytes, dest); 35 int reg, int bytes, void *src) 41 memcpy(&buf[1], src, bytes); 43 ret = i2c_master_send(i2c, buf, bytes + 1); 18 max8925_read_device(struct i2c_client *i2c, int reg, int bytes, void *dest) argument 34 max8925_write_device(struct i2c_client *i2c, int reg, int bytes, void *src) argument
|
H A D | rsmu_i2c.c | 57 static int rsmu_read_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u16 bytes) argument 70 msg[1].len = bytes; 87 static int rsmu_write_device(struct rsmu_ddata *rsmu, u8 reg, u8 *buf, u16 bytes) argument 93 if (bytes > RSMU_MAX_WRITE_COUNT) 97 memcpy(&msg[1], buf, bytes); 99 cnt = i2c_master_send(client, msg, bytes + 1);
|
H A D | twl4030-irq.c | 75 /* + 2 bytes padding */ 482 u8 bytes[4]; member in union:__anon345 490 status = twl_i2c_write(sih->module, imr.bytes, 500 u8 bytes[6]; local 511 status = twl_i2c_read(sih->module, bytes, 526 bytes[byte] &= ~(0x03 << off); 530 bytes[byte] |= BIT(off + 1); 532 bytes[byte] |= BIT(off + 0); 538 status = twl_i2c_write(sih->module, bytes, 564 u8 bytes[ member in union:__anon346 [all...] |
/linux-master/arch/s390/lib/ |
H A D | mem.S | 160 .macro __MEMSET bits,bytes,insn 164 cghi %r4,\bytes 166 aghi %r4,-(\bytes+1) 173 mvc \bytes(256-\bytes,%r1),0(%r1) 186 mvc \bytes(1,%r1),0(%r1)
|
/linux-master/arch/alpha/lib/ |
H A D | ev6-clear_user.S | 9 * right "bytes left to zero" value (and that it is updated only _after_ 57 and $1, 7, $2 # .. .. E .. : number of misaligned bytes in tail 64 * Head is not aligned. Write (8 - $4) bytes to head of destination 74 addq $0, $4, $0 # .. E .. .. : bytes left -= 8 - misalignment 82 * $2 is number of trailing bytes (0..7) ($2 never used...) 116 * $0 is the number of bytes left 171 # zero to 16 quadwords left to store, plus any trailing bytes 177 beq $1, $trailbytes # U .. .. .. : U L U L : Only 0..7 bytes to go 190 # We have an unknown number of bytes left to go. 197 # $0 contains the number of bytes lef [all...] |
/linux-master/mm/ |
H A D | process_vm_access.c | 22 * @len: number of bytes to copy 98 size_t bytes; local 114 bytes = pinned_pages * PAGE_SIZE - start_offset; 115 if (bytes > len) 116 bytes = len; 119 start_offset, bytes, iter, 121 len -= bytes; 147 * Returns the number of bytes read/written or error code. May 148 * return less bytes than expected if an error occurs during the copying 224 we return the number of bytes copie [all...] |
/linux-master/arch/x86/kernel/kprobes/ |
H A D | core.c | 151 return test_bit(insn->opcode.bytes[1], 166 opcode = insn->opcode.bytes[0]; 186 return X86_MODRM_REG(insn->modrm.bytes[0]) != 0b110; 189 return X86_MODRM_REG(insn->modrm.bytes[0]) != 0b001; 192 return X86_MODRM_REG(insn->modrm.bytes[0]) == 0b000 || 193 X86_MODRM_REG(insn->modrm.bytes[0]) == 0b001; 196 return X86_MODRM_REG(insn->modrm.bytes[0]) == 0b000 || 197 X86_MODRM_REG(insn->modrm.bytes[0]) == 0b001 || 198 X86_MODRM_REG(insn->modrm.bytes[0]) == 0b100; 270 if (insn->opcode.bytes[ [all...] |
/linux-master/arch/x86/lib/ |
H A D | insn-eval.c | 44 switch (insn->opcode.bytes[0]) { 649 * Segment descriptors have a size of 8 bytes. Thus, the index is 742 * In protected mode, the limit of the segment descriptor in bytes. 787 * descriptor. In virtual-8086 mode, the default is always two bytes for both 982 /* Ignore bytes that are outside the address size. */ 1223 * address referred by the instruction's ModRM and displacement bytes. Also, the 1284 * @insn: Instruction with ModRM, SIB bytes and displacement 1289 * displacement bytes and segment base address, as applicable. If in protected 1373 * @insn: Instruction struct with ModRM and SIB bytes and displacement 1378 * displacement bytes an 1600 insn_decode_mmio(struct insn *insn, int *bytes) argument [all...] |
/linux-master/drivers/android/ |
H A D | binder_alloc.c | 757 size_t bytes = binder_alloc_buffer_size(alloc, buffer); local 760 while (bytes) { 767 size = min_t(size_t, bytes, PAGE_SIZE - pgoff); 769 bytes -= size; 1187 * @bytes: bytes to access from offset 1189 * Check that the @offset/@bytes are within the size of the given 1203 binder_size_t offset, size_t bytes) 1207 return buffer_size >= bytes && 1208 offset <= buffer_size - bytes 1201 check_buffer(struct binder_alloc *alloc, struct binder_buffer *buffer, binder_size_t offset, size_t bytes) argument 1227 binder_alloc_copy_user_to_buffer(struct binder_alloc *alloc, struct binder_buffer *buffer, binder_size_t buffer_offset, const void __user *from, size_t bytes) argument 1258 binder_alloc_do_buffer_copy(struct binder_alloc *alloc, bool to_buffer, struct binder_buffer *buffer, binder_size_t buffer_offset, void *ptr, size_t bytes) argument 1289 binder_alloc_copy_to_buffer(struct binder_alloc *alloc, struct binder_buffer *buffer, binder_size_t buffer_offset, void *src, size_t bytes) argument 1299 binder_alloc_copy_from_buffer(struct binder_alloc *alloc, void *dest, struct binder_buffer *buffer, binder_size_t buffer_offset, size_t bytes) argument [all...] |
/linux-master/sound/usb/ |
H A D | pcm.c | 1270 unsigned int stride, frames, bytes, oldptr; local 1288 bytes = urb->iso_frame_desc[i].actual_length; 1290 unsigned int adj = min(subs->stream_offset_adj, bytes); 1292 bytes -= adj; 1295 frames = bytes / stride; 1297 bytes = frames * stride; 1298 if (bytes % (runtime->sample_bits >> 3) != 0) { 1299 int oldbytes = bytes; 1300 bytes = frames * stride; 1303 oldbytes, bytes); 1337 urb_ctx_queue_advance(struct snd_usb_substream *subs, struct urb *urb, unsigned int bytes) argument 1349 fill_playback_urb_dsd_dop(struct snd_usb_substream *subs, struct urb *urb, unsigned int bytes) argument 1406 fill_playback_urb_dsd_bitrev(struct snd_usb_substream *subs, struct urb *urb, unsigned int bytes) argument 1423 copy_to_urb(struct snd_usb_substream *subs, struct urb *urb, int offset, int stride, unsigned int bytes) argument 1444 copy_to_urb_quirk(struct snd_usb_substream *subs, struct urb *urb, int stride, unsigned int bytes) argument 1477 unsigned int frames, bytes; local [all...] |
/linux-master/drivers/net/ |
H A D | ifb.c | 43 u64 bytes; member in struct:ifb_q_stats 72 { "bytes", IFB_Q_STAT(bytes) }, 85 stats->bytes += len; 160 u64 packets, bytes; local 167 bytes = txp->rx_stats.bytes; 170 stats->rx_bytes += bytes; 175 bytes = txp->tx_stats.bytes; [all...] |
/linux-master/sound/soc/uniphier/ |
H A D | aio-compress.c | 185 int bytes = runtime->fragment_size; local 196 bytes); 225 int bytes = runtime->fragment_size, ret = 0; local 231 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); 258 int bytes = runtime->fragment_size; local 264 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); 334 int bytes = runtime->fragment_size; local 365 sub->threshold = 2 * bytes; 366 aiodma_rb_set_threshold(sub, sub->compr_bytes, 2 * bytes); 377 aiodma_rb_sync(sub, sub->compr_addr, sub->compr_bytes, bytes); [all...] |