Home
last modified time | relevance | path

Searched refs:nr_bytes (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/net/wireless/broadcom/b43legacy/
H A Dmain.h25 #define P4D_BYT3S(magic, nr_bytes) u8 __p4dding##magic[nr_bytes] argument
26 #define P4D_BYTES(line, nr_bytes) P4D_BYT3S(line, nr_bytes) argument
28 #define PAD_BYTES(nr_bytes) P4D_BYTES(__LINE__ , (nr_bytes)) argument
/linux/drivers/net/wireless/broadcom/b43/
H A Dmain.h23 #define P4D_BYT3S(magic, nr_bytes) u8 __p4dding##magic[nr_bytes] argument
24 #define P4D_BYTES(line, nr_bytes) P4D_BYT3S(line, nr_bytes) argument
26 #define PAD_BYTES(nr_bytes) P4D_BYTES( __LINE__ , (nr_bytes)) argument
/linux/tools/testing/selftests/kvm/x86/
H A Dnx_huge_pages_test.c110 u64 nr_bytes; in run_test() local
133 nr_bytes = HPAGE_SLOT_NPAGES * vm->page_size; in run_test()
145 virt_map_level(vm, HPAGE_GVA, HPAGE_GPA, nr_bytes, PG_LEVEL_4K); in run_test()
147 virt_map_level(vm, HPAGE_GVA, HPAGE_GPA, nr_bytes, PG_LEVEL_2M); in run_test()
150 memset(hva, RETURN_OPCODE, nr_bytes); in run_test()
H A Dprivate_mem_conversions_test.c349 size_t nr_bytes = min_t(size_t, vm->page_size, size - i); in __test_mem_conversions() local
353 memcmp_h(hva, gpa + i, uc.args[3], nr_bytes); in __test_mem_conversions()
357 memset(hva, uc.args[4], nr_bytes); in __test_mem_conversions()
/linux/drivers/md/
H A Ddm-ps-service-time.c277 static struct dm_path *st_select_path(struct path_selector *ps, size_t nr_bytes) in st_select_path() argument
289 if (!best || (st_compare_load(pi, best, nr_bytes) < 0)) in st_select_path()
305 size_t nr_bytes) in st_start_io() argument
309 atomic_add(nr_bytes, &pi->in_flight_size); in st_start_io()
315 size_t nr_bytes, u64 start_time) in st_end_io() argument
319 atomic_sub(nr_bytes, &pi->in_flight_size); in st_end_io()
H A Ddm-path-selector.h70 struct dm_path *(*select_path)(struct path_selector *ps, size_t nr_bytes);
90 size_t nr_bytes);
92 size_t nr_bytes, u64 start_time);
H A Ddm-ps-queue-length.c191 static struct dm_path *ql_select_path(struct path_selector *ps, size_t nr_bytes) in ql_select_path() argument
224 size_t nr_bytes) in ql_start_io() argument
234 size_t nr_bytes, u64 start_time) in ql_end_io() argument
H A Ddm-ps-historical-service-time.c431 size_t nr_bytes) in hst_select_path() argument
462 size_t nr_bytes) in hst_start_io() argument
493 size_t nr_bytes, u64 start_time) in hst_end_io() argument
H A Ddm-ps-round-robin.c189 static struct dm_path *rr_select_path(struct path_selector *ps, size_t nr_bytes) in rr_select_path() argument
H A Ddm-ps-io-affinity.c196 size_t nr_bytes) in ioa_select_path() argument
/linux/drivers/acpi/
H A Dnvs.c103 unsigned int nr_bytes; in suspend_nvs_register() local
111 nr_bytes = PAGE_SIZE - (start & ~PAGE_MASK); in suspend_nvs_register()
112 entry->size = (size < nr_bytes) ? size : nr_bytes; in suspend_nvs_register()
/linux/drivers/platform/olpc/
H A Dolpc-xo175-ec.c479 size_t nr_bytes; in olpc_xo175_ec_cmd() local
507 nr_bytes = resp_len; in olpc_xo175_ec_cmd()
509 nr_bytes = (size_t)ret; in olpc_xo175_ec_cmd()
512 resp_len = min(resp_len, nr_bytes); in olpc_xo175_ec_cmd()
525 priv->expected_resp_len = nr_bytes; in olpc_xo175_ec_cmd()
552 } else if (priv->resp_len != nr_bytes) { in olpc_xo175_ec_cmd()
554 cmd, priv->resp_len, nr_bytes); in olpc_xo175_ec_cmd()
/linux/tools/testing/selftests/kvm/
H A Dmmu_stress_test.c209 gpa_t gpa, nr_bytes; in spawn_workers() local
219 nr_bytes = ((end_gpa - start_gpa) / nr_vcpus) & in spawn_workers()
221 TEST_ASSERT(nr_bytes, "C'mon, no way you have %d CPUs", nr_vcpus); in spawn_workers()
223 for (i = 0, gpa = start_gpa; i < nr_vcpus; i++, gpa += nr_bytes) { in spawn_workers()
226 info[i].end_gpa = gpa + nr_bytes; in spawn_workers()
/linux/include/trace/events/
H A Dblock.h120 TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes),
122 TP_ARGS(rq, error, nr_bytes),
137 __entry->nr_sector = nr_bytes >> 9;
169 TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes),
171 TP_ARGS(rq, error, nr_bytes)
185 TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes),
187 TP_ARGS(rq, error, nr_bytes)
/linux/net/rds/
H A Drdma.c612 unsigned int nr_bytes; in rds_cmsg_rdma_args()
697 nr_bytes = 0; in rds_cmsg_rdma_args()
754 rdsdebug("RDS: nr_bytes %u nr %u iov->bytes %llu iov->addr %llx\n", in rds_cmsg_rdma_args()
755 nr_bytes, nr, iov->bytes, iov->addr); in rds_cmsg_rdma_args()
757 nr_bytes += iov->bytes; in rds_cmsg_rdma_args()
779 if (nr_bytes > args->remote_vec.bytes) { in rds_cmsg_rdma_args()
780 rdsdebug("RDS nr_bytes %u remote_bytes %u do not match\n", in rds_cmsg_rdma_args()
781 nr_bytes, in rds_cmsg_rdma_args()
786 op->op_bytes = nr_bytes; in rds_cmsg_rdma_args()
616 unsigned int nr_bytes; rds_cmsg_rdma_args() local
/linux/drivers/net/ethernet/intel/libie/
H A Dfwlog.c90 int i, nr_bytes; in libie_fwlog_alloc_ring_buffs() local
93 nr_bytes = rings->size * LIBIE_AQ_MAX_BUF_LEN; in libie_fwlog_alloc_ring_buffs()
94 mem = vzalloc(nr_bytes); in libie_fwlog_alloc_ring_buffs()
/linux/tools/testing/selftests/kvm/lib/x86/
H A Dprocessor.c324 u64 nr_bytes, int level) in virt_map_level() argument
327 u64 nr_pages = nr_bytes / pg_size; in virt_map_level()
330 TEST_ASSERT(nr_bytes % pg_size == 0, in virt_map_level()
332 nr_bytes, pg_size); in virt_map_level()
337 nr_bytes / PAGE_SIZE); in virt_map_level()
/linux/drivers/block/
H A Dswim3.c256 static bool swim3_end_request(struct floppy_state *fs, blk_status_t err, unsigned int nr_bytes) in swim3_end_request() argument
261 err, nr_bytes, req); in swim3_end_request()
264 nr_bytes = blk_rq_cur_bytes(req); in swim3_end_request()
265 if (blk_update_request(req, err, nr_bytes)) in swim3_end_request()
/linux/fs/fuse/
H A Dfile.c875 unsigned int nr_bytes; member
896 if (ia && fuse_folios_need_send(fc, pos, len, &ia->ap, data->nr_bytes, in fuse_handle_readahead()
898 fuse_send_readpages(ia, data->file, data->nr_bytes, in fuse_handle_readahead()
900 data->nr_bytes = 0; in fuse_handle_readahead()
924 data->nr_bytes += len; in fuse_handle_readahead()
962 fuse_send_readpages(data->ia, data->file, data->nr_bytes, in fuse_iomap_submit_read()
2126 unsigned int nr_bytes; member
2221 data->nr_bytes, true); in fuse_iomap_writeback_range()
2235 data->nr_bytes = 0; in fuse_iomap_writeback_range()
2250 data->nr_bytes += len; in fuse_iomap_writeback_range()
/linux/fs/ntfs/
H A Dcompress.c327 int nr_bytes = do_sb_end - *dest_ofs; in ntfs_decompress() local
331 memset(dp_addr, 0, nr_bytes); in ntfs_decompress()
332 *dest_ofs += nr_bytes; in ntfs_decompress()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_fs.c582 u8 hdr, key, nr_bytes, bit_offset; in npc_scan_ldata() local
588 nr_bytes = FIELD_GET(NPC_CN20K_BYTESM, cfg) + 1; in npc_scan_ldata()
590 nr_bytes = FIELD_GET(NPC_BYTESM, cfg) + 1; in npc_scan_ldata()
612 ((hstart) + (hlen)) <= (hdr + nr_bytes)) { \ in npc_scan_ldata()
613 bit_offset = (hdr + nr_bytes - (hstart) - (hlen)) * 8; \ in npc_scan_ldata()
/linux/kernel/trace/
H A Dblktrace.c1022 unsigned int nr_bytes, u64 what, u64 cgid) in blk_add_trace_rq() argument
1038 __blk_add_trace(bt, blk_rq_trace_sector(rq), nr_bytes, rq->cmd_flags, in blk_add_trace_rq()
1068 blk_status_t error, unsigned int nr_bytes) in blk_add_trace_rq_complete() argument
1070 blk_add_trace_rq(rq, error, nr_bytes, BLK_TA_COMPLETE, in blk_add_trace_rq_complete()
/linux/kernel/bpf/
H A Dhelpers.c3426 u32 nr_bytes = nr_words * sizeof(u64); in bpf_iter_bits_new() local
3427 u32 nr_bits = BYTES_TO_BITS(nr_bytes); in bpf_iter_bits_new()
3445 err = bpf_probe_read_kernel_common(&kit->bits_copy, nr_bytes, unsafe_ptr__ign); in bpf_iter_bits_new()
3455 if (bpf_mem_alloc_check_size(false, nr_bytes)) in bpf_iter_bits_new()
3459 kit->bits = bpf_mem_alloc(&bpf_global_ma, nr_bytes); in bpf_iter_bits_new()
3463 err = bpf_probe_read_kernel_common(kit->bits, nr_bytes, unsafe_ptr__ign); in bpf_iter_bits_new()
/linux/tools/bpf/resolve_btfids/
H A Dmain.c371 static void bswap_32_data(void *data, u32 nr_bytes) in bswap_32_data() argument
376 cnt = nr_bytes / sizeof(u32); in bswap_32_data()
/linux/block/
H A Dblk.h723 void blk_integrity_complete(struct request *rq, unsigned int nr_bytes);

12