Home
last modified time | relevance | path

Searched refs:bytes (Results 1526 - 1550 of 5650) sorted by relevance

1...<<61626364656667686970>>...226

/kernel/linux/linux-5.10/drivers/md/
H A Ddm-stripe.c326 void *addr, size_t bytes, struct iov_iter *i) in stripe_dax_copy_from_iter()
339 if (bdev_dax_pgoff(bdev, dev_sector, ALIGN(bytes, PAGE_SIZE), &pgoff)) in stripe_dax_copy_from_iter()
341 return dax_copy_from_iter(dax_dev, pgoff, addr, bytes, i); in stripe_dax_copy_from_iter()
345 void *addr, size_t bytes, struct iov_iter *i) in stripe_dax_copy_to_iter()
358 if (bdev_dax_pgoff(bdev, dev_sector, ALIGN(bytes, PAGE_SIZE), &pgoff)) in stripe_dax_copy_to_iter()
360 return dax_copy_to_iter(dax_dev, pgoff, addr, bytes, i); in stripe_dax_copy_to_iter()
325 stripe_dax_copy_from_iter(struct dm_target *ti, pgoff_t pgoff, void *addr, size_t bytes, struct iov_iter *i) stripe_dax_copy_from_iter() argument
344 stripe_dax_copy_to_iter(struct dm_target *ti, pgoff_t pgoff, void *addr, size_t bytes, struct iov_iter *i) stripe_dax_copy_to_iter() argument
/kernel/linux/linux-5.10/sound/core/seq/
H A Dseq_midi_event.c173 * return true if MIDI bytes are encoded to an event
287 * decode from a sequencer event to midi bytes
434 unsigned char bytes[4]; in extra_decode_xrpn() local
442 bytes[0] = (ev->data.control.param & 0x3f80) >> 7; in extra_decode_xrpn()
443 bytes[1] = ev->data.control.param & 0x007f; in extra_decode_xrpn()
444 bytes[2] = (ev->data.control.value & 0x3f80) >> 7; in extra_decode_xrpn()
445 bytes[3] = ev->data.control.value & 0x007f; in extra_decode_xrpn()
456 buf[idx++] = bytes[i]; in extra_decode_xrpn()
/kernel/linux/linux-5.10/tools/perf/arch/x86/tests/
H A Dintel-pt-pkt-decoder-test.c13 * @len: number of bytes to decode
14 * @bytes: bytes to decode
22 u8 bytes[INTEL_PT_PKT_MAX_SZ]; member
173 static int dump_packet(struct intel_pt_pkt *packet, u8 *bytes, int len) in dump_packet() argument
179 pr_debug(" %02x", bytes[i]); in dump_packet()
197 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed()
254 ret = intel_pt_get_packet(d->bytes, d->len, &packet, &ctx); in test_one()
283 ret = dump_packet(&d->packet, d->bytes, d->len); in test_one()
/kernel/linux/linux-5.10/fs/nfs/
H A Dread.c161 unsigned long bytes = 0; in nfs_read_completion() local
176 if (bytes > hdr->good_bytes) { in nfs_read_completion()
181 } else if (hdr->good_bytes - bytes < req->wb_bytes) { in nfs_read_completion()
182 /* part of this request has good bytes, but in nfs_read_completion()
183 * not all. zero the bad bytes */ in nfs_read_completion()
184 start += hdr->good_bytes - bytes; in nfs_read_completion()
190 bytes += req->wb_bytes; in nfs_read_completion()
192 if (bytes <= hdr->good_bytes) in nfs_read_completion()
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_sysfs.c354 int bytes; in reserve_grant_head_show() local
357 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
358 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
368 int bytes; in write_grant_head_show() local
371 xlog_crack_grant_head(&log->l_write_head.grant, &cycle, &bytes); in write_grant_head_show()
372 return snprintf(buf, PAGE_SIZE, "%d:%d\n", cycle, bytes); in write_grant_head_show()
/kernel/linux/linux-5.10/fs/pstore/
H A Dblk.c288 static ssize_t psblk_generic_blk_read(char *buf, size_t bytes, loff_t pos) in psblk_generic_blk_read() argument
294 struct kvec iov = {.iov_base = buf, .iov_len = bytes}; in psblk_generic_blk_read()
307 iov_iter_kvec(&iter, READ, &iov, 1, bytes); in psblk_generic_blk_read()
312 static ssize_t psblk_generic_blk_write(const char *buf, size_t bytes, in psblk_generic_blk_write() argument
320 struct kvec iov = {.iov_base = (void *)buf, .iov_len = bytes}; in psblk_generic_blk_write()
336 iov_iter_kvec(&iter, WRITE, &iov, 1, bytes); in psblk_generic_blk_write()
/kernel/linux/linux-5.10/fs/ocfs2/
H A Dslot_map.c207 * Calculate how many bytes are needed by the slot map. Returns
212 unsigned long long *bytes) in ocfs2_slot_map_physical_size()
229 *bytes = bytes_needed; in ocfs2_slot_map_physical_size()
342 unsigned long long blocks, bytes = 0; in ocfs2_map_slot_buffers() local
346 status = ocfs2_slot_map_physical_size(osb, si->si_inode, &bytes); in ocfs2_map_slot_buffers()
350 blocks = ocfs2_blocks_for_bytes(si->si_inode->i_sb, bytes); in ocfs2_map_slot_buffers()
366 trace_ocfs2_map_slot_buffers(bytes, si->si_blocks); in ocfs2_map_slot_buffers()
210 ocfs2_slot_map_physical_size(struct ocfs2_super *osb, struct inode *inode, unsigned long long *bytes) ocfs2_slot_map_physical_size() argument
/kernel/linux/linux-5.10/fs/reiserfs/
H A Ditem_ops.c161 int bytes; in direct_check_left() local
163 bytes = free - free % 8; in direct_check_left()
164 return bytes ? : -1; in direct_check_left()
299 int bytes; in indirect_check_left() local
301 bytes = free - free % UNFM_P_SIZE; in indirect_check_left()
302 return bytes ? : -1; in indirect_check_left()
311 * return size in bytes of 'units' units. If first == 0 - calculate
352 "bytes number is asked for direntry"); in direntry_bytes_number()
/kernel/linux/linux-5.10/drivers/rtc/
H A Drtc-ds1553.c225 size_t bytes) in ds1553_nvram_read()
232 for (; bytes; bytes--) in ds1553_nvram_read()
238 size_t bytes) in ds1553_nvram_write()
245 for (; bytes; bytes--) in ds1553_nvram_write()
224 ds1553_nvram_read(void *priv, unsigned int pos, void *val, size_t bytes) ds1553_nvram_read() argument
237 ds1553_nvram_write(void *priv, unsigned int pos, void *val, size_t bytes) ds1553_nvram_write() argument
H A Drtc-isl12026.c279 void *val, size_t bytes) in isl12026_nvm_read()
298 * offset and bytes checked and limited by nvmem core, so in isl12026_nvm_read()
305 /* 2 bytes of address, most significant first */ in isl12026_nvm_read()
308 msgs[1].len = bytes; in isl12026_nvm_read()
323 void *val, size_t bytes) in isl12026_nvm_write()
329 u8 payload[ISL12026_PAGESIZE + 2]; /* page + 2 address bytes */ in isl12026_nvm_write()
339 * offset and bytes checked and limited by nvmem core, so in isl12026_nvm_write()
347 while (bytes) { in isl12026_nvm_write()
350 chunk_size = min(bytes, chunk_size); in isl12026_nvm_write()
352 * 2 bytes o in isl12026_nvm_write()
278 isl12026_nvm_read(void *p, unsigned int offset, void *val, size_t bytes) isl12026_nvm_read() argument
322 isl12026_nvm_write(void *p, unsigned int offset, void *val, size_t bytes) isl12026_nvm_write() argument
[all...]
H A Drtc-stk17ta8.c234 size_t bytes) in stk17ta8_nvram_read()
240 for (; bytes; bytes--) in stk17ta8_nvram_read()
246 size_t bytes) in stk17ta8_nvram_write()
252 for (; bytes; bytes--) in stk17ta8_nvram_write()
233 stk17ta8_nvram_read(void *priv, unsigned int pos, void *val, size_t bytes) stk17ta8_nvram_read() argument
245 stk17ta8_nvram_write(void *priv, unsigned int pos, void *val, size_t bytes) stk17ta8_nvram_write() argument
H A Drtc-pcf85363.c299 size_t bytes) in pcf85363_nvram_read()
304 val, bytes); in pcf85363_nvram_read()
308 size_t bytes) in pcf85363_nvram_write()
313 val, bytes); in pcf85363_nvram_write()
317 size_t bytes) in pcf85x63_nvram_read()
330 size_t bytes) in pcf85x63_nvram_write()
298 pcf85363_nvram_read(void *priv, unsigned int offset, void *val, size_t bytes) pcf85363_nvram_read() argument
307 pcf85363_nvram_write(void *priv, unsigned int offset, void *val, size_t bytes) pcf85363_nvram_write() argument
316 pcf85x63_nvram_read(void *priv, unsigned int offset, void *val, size_t bytes) pcf85x63_nvram_read() argument
329 pcf85x63_nvram_write(void *priv, unsigned int offset, void *val, size_t bytes) pcf85x63_nvram_write() argument
/kernel/linux/linux-6.6/fs/nfs/
H A Dread.c142 unsigned long bytes = 0; in nfs_read_completion() local
157 if (bytes > hdr->good_bytes) { in nfs_read_completion()
162 } else if (hdr->good_bytes - bytes < req->wb_bytes) { in nfs_read_completion()
163 /* part of this request has good bytes, but in nfs_read_completion()
164 * not all. zero the bad bytes */ in nfs_read_completion()
165 start += hdr->good_bytes - bytes; in nfs_read_completion()
171 bytes += req->wb_bytes; in nfs_read_completion()
173 if (bytes <= hdr->good_bytes) in nfs_read_completion()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dlzo.c30 * Fixed size. LZO_LEN (4) bytes long, LE32.
41 * Fixed size. LZO_LEN (4) bytes long, LE32.
127 * If not, we will pad at most (LZO_LEN (4)) - 1 bytes of zeros.
437 unsigned long bytes; in lzo_decompress() local
472 bytes = min_t(unsigned long, destlen, out_len - start_byte); in lzo_decompress()
475 memcpy(kaddr, workspace->buf + start_byte, bytes); in lzo_decompress()
482 if (bytes < destlen) in lzo_decompress()
483 memset(kaddr+bytes, 0, destlen-bytes); in lzo_decompress()
/kernel/linux/linux-6.6/fs/ocfs2/
H A Dslot_map.c205 * Calculate how many bytes are needed by the slot map. Returns
210 unsigned long long *bytes) in ocfs2_slot_map_physical_size()
227 *bytes = bytes_needed; in ocfs2_slot_map_physical_size()
340 unsigned long long blocks, bytes = 0; in ocfs2_map_slot_buffers() local
344 status = ocfs2_slot_map_physical_size(osb, si->si_inode, &bytes); in ocfs2_map_slot_buffers()
348 blocks = ocfs2_blocks_for_bytes(si->si_inode->i_sb, bytes); in ocfs2_map_slot_buffers()
364 trace_ocfs2_map_slot_buffers(bytes, si->si_blocks); in ocfs2_map_slot_buffers()
208 ocfs2_slot_map_physical_size(struct ocfs2_super *osb, struct inode *inode, unsigned long long *bytes) ocfs2_slot_map_physical_size() argument
/kernel/linux/linux-6.6/fs/reiserfs/
H A Ditem_ops.c161 int bytes; in direct_check_left() local
163 bytes = free - free % 8; in direct_check_left()
164 return bytes ? : -1; in direct_check_left()
299 int bytes; in indirect_check_left() local
301 bytes = free - free % UNFM_P_SIZE; in indirect_check_left()
302 return bytes ? : -1; in indirect_check_left()
311 * return size in bytes of 'units' units. If first == 0 - calculate
352 "bytes number is asked for direntry"); in direntry_bytes_number()
/kernel/linux/linux-6.6/include/net/
H A Dfq_impl.h17 unsigned int bytes, unsigned int truesize) in __fq_adjust_removal()
22 tin->backlog_bytes -= bytes; in __fq_adjust_removal()
24 flow->backlog -= bytes; in __fq_adjust_removal()
66 unsigned int packets = 0, bytes = 0, truesize = 0; in fq_flow_drop() local
80 bytes += skb->len; in fq_flow_drop()
85 __fq_adjust_removal(fq, flow, packets, bytes, truesize); in fq_flow_drop()
16 __fq_adjust_removal(struct fq *fq, struct fq_flow *flow, unsigned int packets, unsigned int bytes, unsigned int truesize) __fq_adjust_removal() argument
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_sysfs.c382 int bytes; in reserve_grant_head_show() local
385 xlog_crack_grant_head(&log->l_reserve_head.grant, &cycle, &bytes); in reserve_grant_head_show()
386 return sysfs_emit(buf, "%d:%d\n", cycle, bytes); in reserve_grant_head_show()
396 int bytes; in write_grant_head_show() local
399 xlog_crack_grant_head(&log->l_write_head.grant, &cycle, &bytes); in write_grant_head_show()
400 return sysfs_emit(buf, "%d:%d\n", cycle, bytes); in write_grant_head_show()
/kernel/linux/linux-6.6/drivers/rtc/
H A Drtc-ds1553.c225 size_t bytes) in ds1553_nvram_read()
232 for (; bytes; bytes--) in ds1553_nvram_read()
238 size_t bytes) in ds1553_nvram_write()
245 for (; bytes; bytes--) in ds1553_nvram_write()
224 ds1553_nvram_read(void *priv, unsigned int pos, void *val, size_t bytes) ds1553_nvram_read() argument
237 ds1553_nvram_write(void *priv, unsigned int pos, void *val, size_t bytes) ds1553_nvram_write() argument
H A Drtc-isl12026.c278 void *val, size_t bytes) in isl12026_nvm_read()
297 * offset and bytes checked and limited by nvmem core, so in isl12026_nvm_read()
304 /* 2 bytes of address, most significant first */ in isl12026_nvm_read()
307 msgs[1].len = bytes; in isl12026_nvm_read()
322 void *val, size_t bytes) in isl12026_nvm_write()
328 u8 payload[ISL12026_PAGESIZE + 2]; /* page + 2 address bytes */ in isl12026_nvm_write()
338 * offset and bytes checked and limited by nvmem core, so in isl12026_nvm_write()
346 while (bytes) { in isl12026_nvm_write()
349 chunk_size = min(bytes, chunk_size); in isl12026_nvm_write()
351 * 2 bytes o in isl12026_nvm_write()
277 isl12026_nvm_read(void *p, unsigned int offset, void *val, size_t bytes) isl12026_nvm_read() argument
321 isl12026_nvm_write(void *p, unsigned int offset, void *val, size_t bytes) isl12026_nvm_write() argument
[all...]
H A Drtc-pcf85363.c323 size_t bytes) in pcf85363_nvram_read()
328 val, bytes); in pcf85363_nvram_read()
332 size_t bytes) in pcf85363_nvram_write()
337 val, bytes); in pcf85363_nvram_write()
341 size_t bytes) in pcf85x63_nvram_read()
354 size_t bytes) in pcf85x63_nvram_write()
322 pcf85363_nvram_read(void *priv, unsigned int offset, void *val, size_t bytes) pcf85363_nvram_read() argument
331 pcf85363_nvram_write(void *priv, unsigned int offset, void *val, size_t bytes) pcf85363_nvram_write() argument
340 pcf85x63_nvram_read(void *priv, unsigned int offset, void *val, size_t bytes) pcf85x63_nvram_read() argument
353 pcf85x63_nvram_write(void *priv, unsigned int offset, void *val, size_t bytes) pcf85x63_nvram_write() argument
H A Drtc-stk17ta8.c234 size_t bytes) in stk17ta8_nvram_read()
240 for (; bytes; bytes--) in stk17ta8_nvram_read()
246 size_t bytes) in stk17ta8_nvram_write()
252 for (; bytes; bytes--) in stk17ta8_nvram_write()
233 stk17ta8_nvram_read(void *priv, unsigned int pos, void *val, size_t bytes) stk17ta8_nvram_read() argument
245 stk17ta8_nvram_write(void *priv, unsigned int pos, void *val, size_t bytes) stk17ta8_nvram_write() argument
/kernel/linux/linux-6.6/arch/x86/crypto/
H A Dcrc32c-pcl-intel-asm_64.S64 # efficient "by-1" code. This "by-1" code only handles up to 255 bytes, so
123 #### Calculate CRC of unaligned bytes of the buffer (if any)
140 ## compute num of bytes to be processed
141 movq len, tmp # save num bytes in tmp
155 ## eax contains floor(bytes / 24) = num 24-byte chunks to do
264 ## 6) LESS THAN 256-bytes REMAIN AT THIS POINT (8-bits of len are full)
291 crc32l (bufptmp), crc_init_dw # CRC of 4 bytes
298 crc32w (bufptmp), crc_init_dw # CRC of 2 bytes
317 ## jump table Table is 129 entries x 2 bytes each
332 ## Table is 128 entries x 2 words (8 bytes) eac
[all...]
/kernel/linux/linux-6.6/arch/x86/kernel/kprobes/
H A Dopt.c58 * If the kprobe can be optimized, original bytes which can be in __recover_optprobed_insn()
60 * bytes must be recovered from op->optinsn.copied_insn buffer. in __recover_optprobed_insn()
231 return ((insn->opcode.bytes[0] == 0xff && in insn_is_indirect_jump()
233 insn->opcode.bytes[0] == 0xea); /* Segment based jump */ in insn_is_indirect_jump()
241 switch (insn->opcode.bytes[0]) { in insn_jump_into_range()
250 if ((insn->opcode.bytes[1] & 0xf0) == 0x80) /* jcc near */ in insn_jump_into_range()
254 if ((insn->opcode.bytes[0] & 0xf0) == 0x70) /* jcc short */ in insn_jump_into_range()
310 if (insn.opcode.bytes[0] == INT3_INSN_OPCODE && in can_optimize()
471 * the 4 bytes after the INT3 are unused and can now be overwritten.
500 * After that, we can restore the 4 bytes afte
[all...]
/kernel/linux/linux-6.6/tools/perf/arch/x86/tests/
H A Dintel-pt-test.c18 * @len: number of bytes to decode
19 * @bytes: bytes to decode
27 u8 bytes[INTEL_PT_PKT_MAX_SZ]; member
189 static int dump_packet(const struct intel_pt_pkt *packet, const u8 *bytes, int len) in dump_packet() argument
195 pr_debug(" %02x", bytes[i]); in dump_packet()
213 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed()
270 ret = intel_pt_get_packet(d->bytes, d->len, &packet, &ctx); in test_one()
299 ret = dump_packet(&d->packet, d->bytes, d->len); in test_one()

Completed in 21 milliseconds

1...<<61626364656667686970>>...226