Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/net/wireless/broadcom/b43legacy/
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-6.6.21/drivers/net/wireless/broadcom/b43/
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-6.6.21/tools/testing/selftests/kvm/x86_64/
Dnx_huge_pages_test.c113 uint64_t nr_bytes; in run_test() local
136 nr_bytes = HPAGE_SLOT_NPAGES * vm->page_size; in run_test()
148 virt_map_level(vm, HPAGE_GVA, HPAGE_GPA, nr_bytes, PG_LEVEL_4K); in run_test()
150 virt_map_level(vm, HPAGE_GVA, HPAGE_GPA, nr_bytes, PG_LEVEL_2M); in run_test()
153 memset(hva, RETURN_OPCODE, nr_bytes); in run_test()
/linux-6.6.21/drivers/md/
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);
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()
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
Ddm-mpath.c110 size_t nr_bytes; member
303 mpio->nr_bytes = bio->bi_iter.bi_size; in multipath_init_per_bio_data()
379 size_t nr_bytes) in choose_path_in_pg() argument
385 path = pg->ps.type->select_path(&pg->ps, nr_bytes); in choose_path_in_pg()
402 static struct pgpath *choose_pgpath(struct multipath *m, size_t nr_bytes) in choose_pgpath() argument
426 pgpath = choose_path_in_pg(m, pg, nr_bytes); in choose_pgpath()
435 pgpath = choose_path_in_pg(m, pg, nr_bytes); in choose_pgpath()
450 pgpath = choose_path_in_pg(m, pg, nr_bytes); in choose_pgpath()
512 size_t nr_bytes = blk_rq_bytes(rq); in multipath_clone_and_map() local
522 pgpath = choose_pgpath(m, nr_bytes); in multipath_clone_and_map()
[all …]
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
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
Ddm-rq.c83 unsigned int nr_bytes = info->orig->bi_iter.bi_size; in end_clone_bio() local
110 tio->completed += nr_bytes; in end_clone_bio()
Ddm-ps-io-affinity.c197 size_t nr_bytes) in ioa_select_path() argument
/linux-6.6.21/drivers/acpi/
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-6.6.21/tools/testing/selftests/kvm/
Dmax_guest_memory_test.c96 uint64_t gpa, nr_bytes; in spawn_workers() local
106 nr_bytes = ((end_gpa - start_gpa) / nr_vcpus) & in spawn_workers()
108 TEST_ASSERT(nr_bytes, "C'mon, no way you have %d CPUs", nr_vcpus); in spawn_workers()
110 for (i = 0, gpa = start_gpa; i < nr_vcpus; i++, gpa += nr_bytes) { in spawn_workers()
113 info[i].end_gpa = gpa + nr_bytes; in spawn_workers()
/linux-6.6.21/include/trace/events/
Dblock.h107 TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes),
109 TP_ARGS(rq, error, nr_bytes),
123 __entry->nr_sector = nr_bytes >> 9;
151 TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes),
153 TP_ARGS(rq, error, nr_bytes)
167 TP_PROTO(struct request *rq, blk_status_t error, unsigned int nr_bytes),
169 TP_ARGS(rq, error, nr_bytes)
/linux-6.6.21/drivers/platform/olpc/
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-6.6.21/block/
Dt10-pi.c184 static void t10_pi_type1_complete(struct request *rq, unsigned int nr_bytes) in t10_pi_type1_complete() argument
186 unsigned intervals = nr_bytes >> rq->q->integrity.interval_exp; in t10_pi_type1_complete()
243 static void t10_pi_type3_complete(struct request *rq, unsigned int nr_bytes) in t10_pi_type3_complete() argument
412 static void ext_pi_type1_complete(struct request *rq, unsigned int nr_bytes) in ext_pi_type1_complete() argument
414 unsigned intervals = nr_bytes >> rq->q->integrity.interval_exp; in ext_pi_type1_complete()
/linux-6.6.21/fs/proc/
Dvmcore.c135 ssize_t nr_bytes; in read_from_oldmem() local
148 nr_bytes = PAGE_SIZE - offset; in read_from_oldmem()
150 nr_bytes = count; in read_from_oldmem()
154 tmp = iov_iter_zero(nr_bytes, iter); in read_from_oldmem()
158 nr_bytes, in read_from_oldmem()
161 tmp = copy_oldmem_page(iter, pfn, nr_bytes, in read_from_oldmem()
164 if (tmp < nr_bytes) { in read_from_oldmem()
169 *ppos += nr_bytes; in read_from_oldmem()
170 count -= nr_bytes; in read_from_oldmem()
171 read += nr_bytes; in read_from_oldmem()
/linux-6.6.21/net/rds/
Drdma.c615 unsigned int nr_bytes; in rds_cmsg_rdma_args() local
700 nr_bytes = 0; in rds_cmsg_rdma_args()
759 nr_bytes, nr, iov->bytes, iov->addr); in rds_cmsg_rdma_args()
761 nr_bytes += iov->bytes; in rds_cmsg_rdma_args()
783 if (nr_bytes > args->remote_vec.bytes) { in rds_cmsg_rdma_args()
785 nr_bytes, in rds_cmsg_rdma_args()
790 op->op_bytes = nr_bytes; in rds_cmsg_rdma_args()
/linux-6.6.21/drivers/iio/humidity/
Dam2315.c76 static u16 am2315_crc(u8 *data, u8 nr_bytes) in am2315_crc() argument
81 while (nr_bytes--) { in am2315_crc()
/linux-6.6.21/fs/xfs/scrub/
Dxfarray.c447 size_t nr_bytes = sizeof(struct xfarray_sortinfo); in xfarray_sortinfo_alloc() local
470 nr_bytes += max_stack_depth * sizeof(xfarray_idx_t) * 2; in xfarray_sortinfo_alloc()
473 nr_bytes += max_t(size_t, in xfarray_sortinfo_alloc()
477 si = kvzalloc(nr_bytes, XCHK_GFP_FLAGS); in xfarray_sortinfo_alloc()
490 trace_xfarray_sort(si, nr_bytes); in xfarray_sortinfo_alloc()
/linux-6.6.21/mm/
Dmemcontrol.c266 unsigned int nr_bytes; in obj_cgroup_release() local
290 nr_bytes = atomic_read(&objcg->nr_charged_bytes); in obj_cgroup_release()
291 WARN_ON_ONCE(nr_bytes & (PAGE_SIZE - 1)); in obj_cgroup_release()
292 nr_pages = nr_bytes >> PAGE_SHIFT; in obj_cgroup_release()
2187 unsigned int nr_bytes; member
3182 stock->nr_bytes = atomic_read(&objcg->nr_charged_bytes) in mod_objcg_state()
3229 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in consume_obj_stock() argument
3238 if (objcg == READ_ONCE(stock->cached_objcg) && stock->nr_bytes >= nr_bytes) { in consume_obj_stock()
3239 stock->nr_bytes -= nr_bytes; in consume_obj_stock()
3255 if (stock->nr_bytes) { in drain_obj_stock()
[all …]
/linux-6.6.21/tools/lib/bpf/
Dbtf_dump.c1829 int nr_bytes; in btf_dump_base_type_check_zero() local
1835 nr_bytes = d->ptr_sz; in btf_dump_base_type_check_zero()
1837 nr_bytes = t->size; in btf_dump_base_type_check_zero()
1839 if (nr_bytes < 1 || nr_bytes > 16) { in btf_dump_base_type_check_zero()
1840 pr_warn("unexpected size %d for id [%u]\n", nr_bytes, id); in btf_dump_base_type_check_zero()
1844 if (memcmp(data, bytecmp, nr_bytes) == 0) in btf_dump_base_type_check_zero()
2260 __u8 nr_bytes = (bits_offset + bit_sz + 7) / 8; in btf_dump_type_data_check_overflow() local
2268 return data + nr_bytes > d->typed_dump->data_end ? -E2BIG : nr_bytes; in btf_dump_type_data_check_overflow()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_tx.c505 bytes += ring->tx_info[ring_index].nr_bytes; in mlx4_en_process_tx_cq()
1055 tx_info->nr_bytes = skb->len + (i - 1) * lso_header_size; in mlx4_en_xmit()
1062 tx_info->nr_bytes = max_t(unsigned int, skb->len, ETH_ZLEN); in mlx4_en_xmit()
1065 ring->bytes += tx_info->nr_bytes; in mlx4_en_xmit()
1104 tx_info->nr_bytes, in mlx4_en_xmit()
1202 tx_info->nr_bytes = max_t(unsigned int, length, ETH_ZLEN); in mlx4_en_xmit_frame()
/linux-6.6.21/fs/ntfs/
Dcompress.c309 int nr_bytes = do_sb_end - *dest_ofs; in ntfs_decompress() local
314 memset(dp_addr, 0, nr_bytes); in ntfs_decompress()
315 *dest_ofs += nr_bytes; in ntfs_decompress()
/linux-6.6.21/drivers/block/
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()

12