Home
last modified time | relevance | path

Searched refs:nr_bytes (Results 1 – 25 of 33) 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_64/
H A Dnx_huge_pages_test.c
H A Dprivate_mem_conversions_test.c
/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-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 …]
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.c197 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/tools/testing/selftests/kvm/
H A Dmax_guest_memory_test.c
H A Dmmu_stress_test.c209 uint64_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/block/
H A Dt10-pi.c176 static void t10_pi_type1_complete(struct request *rq, unsigned int nr_bytes) in t10_pi_type1_complete() argument
179 unsigned intervals = nr_bytes >> bi->interval_exp; in t10_pi_type1_complete()
339 static void ext_pi_type1_complete(struct request *rq, unsigned int nr_bytes) in ext_pi_type1_complete() argument
342 unsigned intervals = nr_bytes >> bi->interval_exp; in ext_pi_type1_complete()
462 void blk_integrity_complete(struct request *rq, unsigned int nr_bytes) in blk_integrity_complete() argument
470 ext_pi_type1_complete(rq, nr_bytes); in blk_integrity_complete()
472 t10_pi_type1_complete(rq, nr_bytes); in blk_integrity_complete()
/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/mm/
H A Dmemcontrol.c138 unsigned int nr_bytes; in obj_cgroup_release() local
162 nr_bytes = atomic_read(&objcg->nr_charged_bytes); in obj_cgroup_release()
163 WARN_ON_ONCE(nr_bytes & (PAGE_SIZE - 1)); in obj_cgroup_release()
164 nr_pages = nr_bytes >> PAGE_SHIFT; in obj_cgroup_release()
1748 unsigned int nr_bytes; member
2722 stock->nr_bytes = atomic_read(&objcg->nr_charged_bytes) in mod_objcg_state()
2768 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in consume_obj_stock() argument
2777 if (objcg == READ_ONCE(stock->cached_objcg) && stock->nr_bytes >= nr_bytes) { in consume_obj_stock()
2778 stock->nr_bytes -= nr_bytes; in consume_obj_stock()
2794 if (stock->nr_bytes) { in drain_obj_stock()
[all …]
/linux/net/rds/
H A Drdma.c618 unsigned int nr_bytes; in rds_cmsg_rdma_args() local
703 nr_bytes = 0; in rds_cmsg_rdma_args()
762 nr_bytes, nr, iov->bytes, iov->addr); in rds_cmsg_rdma_args()
764 nr_bytes += iov->bytes; in rds_cmsg_rdma_args()
786 if (nr_bytes > args->remote_vec.bytes) { in rds_cmsg_rdma_args()
788 nr_bytes, in rds_cmsg_rdma_args()
793 op->op_bytes = nr_bytes; in rds_cmsg_rdma_args()
/linux/fs/proc/
H A Dvmcore.c163 ssize_t nr_bytes; in read_from_oldmem() local
176 nr_bytes = PAGE_SIZE - offset; in read_from_oldmem()
178 nr_bytes = count; in read_from_oldmem()
182 tmp = iov_iter_zero(nr_bytes, iter); in read_from_oldmem()
186 nr_bytes, in read_from_oldmem()
189 tmp = copy_oldmem_page(iter, pfn, nr_bytes, in read_from_oldmem()
192 if (tmp < nr_bytes) { in read_from_oldmem()
197 *ppos += nr_bytes; in read_from_oldmem()
198 count -= nr_bytes; in read_from_oldmem()
199 read += nr_bytes; in read_from_oldmem()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_fwlog.c36 int i, nr_bytes; in ice_fwlog_alloc_ring_buffs() local
39 nr_bytes = rings->size * ICE_AQ_MAX_BUF_LEN; in ice_fwlog_alloc_ring_buffs()
40 mem = vzalloc(nr_bytes); in ice_fwlog_alloc_ring_buffs()
/linux/drivers/iio/humidity/
H A Dam2315.c76 static u16 am2315_crc(u8 *data, u8 nr_bytes) in am2315_crc() argument
81 while (nr_bytes--) { in am2315_crc()
/linux/fs/xfs/scrub/
H A 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()
493 trace_xfarray_sort(si, nr_bytes); in xfarray_sortinfo_alloc()
/linux/tools/lib/bpf/
H A Dbtf_dump.c1832 int nr_bytes; in btf_dump_base_type_check_zero() local
1838 nr_bytes = d->ptr_sz; in btf_dump_base_type_check_zero()
1840 nr_bytes = t->size; in btf_dump_base_type_check_zero()
1842 if (nr_bytes < 1 || nr_bytes > 16) { in btf_dump_base_type_check_zero()
1843 pr_warn("unexpected size %d for id [%u]\n", nr_bytes, id); in btf_dump_base_type_check_zero()
1847 if (memcmp(data, bytecmp, nr_bytes) == 0) in btf_dump_base_type_check_zero()
2268 __u8 nr_bytes = (bits_offset + bit_sz + 7) / 8; in btf_dump_type_data_check_overflow() local
2276 return data + nr_bytes > d->typed_dump->data_end ? -E2BIG : nr_bytes; in btf_dump_type_data_check_overflow()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A 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/kernel/bpf/
H A Dhelpers.c2936 u32 nr_bytes = nr_words * sizeof(u64); in bpf_iter_bits_new() local
2937 u32 nr_bits = BYTES_TO_BITS(nr_bytes); in bpf_iter_bits_new()
2955 err = bpf_probe_read_kernel_common(&kit->bits_copy, nr_bytes, unsafe_ptr__ign); in bpf_iter_bits_new()
2965 if (bpf_mem_alloc_check_size(false, nr_bytes)) in bpf_iter_bits_new()
2969 kit->bits = bpf_mem_alloc(&bpf_global_ma, nr_bytes); in bpf_iter_bits_new()
2973 err = bpf_probe_read_kernel_common(kit->bits, nr_bytes, unsafe_ptr__ign); in bpf_iter_bits_new()

12