/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | main.h | 25 #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 D | main.h | 23 #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 D | nx_huge_pages_test.c | 110 uint64_t 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 D | private_mem_conversions_test.c | 349 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 D | dm-path-selector.h | 70 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 D | dm-ps-service-time.c | 277 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 D | dm-ps-queue-length.c | 191 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 D | dm-mpath.c | 110 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 D | dm-ps-historical-service-time.c | 431 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 D | dm-rq.c | 83 unsigned int nr_bytes = info->orig->bi_iter.bi_size; in end_clone_bio() local 110 tio->completed += nr_bytes; in end_clone_bio()
|
H A D | dm-ps-round-robin.c | 189 static struct dm_path *rr_select_path(struct path_selector *ps, size_t nr_bytes) in rr_select_path() argument
|
/linux/drivers/acpi/ |
H A D | nvs.c | 103 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 D | max_guest_memory_test.c | 91 uint64_t gpa, nr_bytes; in spawn_workers() local 101 nr_bytes = ((end_gpa - start_gpa) / nr_vcpus) & in spawn_workers() 103 TEST_ASSERT(nr_bytes, "C'mon, no way you have %d CPUs", nr_vcpus); in spawn_workers() 105 for (i = 0, gpa = start_gpa; i < nr_vcpus; i++, gpa += nr_bytes) { in spawn_workers() 108 info[i].end_gpa = gpa + nr_bytes; in spawn_workers()
|
/linux/block/ |
H A D | t10-pi.c | 176 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 D | olpc-xo175-ec.c | 479 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 D | memcontrol.c | 138 unsigned int nr_bytes; in obj_cgroup_release() 155 * 92 bytes are added to stock->nr_bytes in obj_cgroup_release() 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() 1731 unsigned int nr_bytes; 2723 stock->nr_bytes = atomic_read(&objcg->nr_charged_bytes) in mod_objcg_state() 2769 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes) in drain_obj_stock() 2778 if (objcg == READ_ONCE(stock->cached_objcg) && stock->nr_bytes >= nr_bytes) { in drain_obj_stock() local 133 unsigned int nr_bytes; obj_cgroup_release() local 1704 unsigned int nr_bytes; global() member 2750 consume_obj_stock(struct obj_cgroup * objcg,unsigned int nr_bytes) consume_obj_stock() argument 2848 refill_obj_stock(struct obj_cgroup * objcg,unsigned int nr_bytes,bool allow_uncharge) refill_obj_stock() argument 2883 unsigned int nr_pages, nr_bytes; obj_cgroup_charge() local [all...] |
/linux/fs/proc/ |
H A D | vmcore.c | 135 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/net/rds/ |
H A D | rdma.c | 618 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/drivers/net/ethernet/intel/ice/ |
H A D | ice_fwlog.c | 36 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 D | am2315.c | 76 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 D | xfarray.c | 447 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 D | btf_dump.c | 1832 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 D | en_tx.c | 505 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/drivers/block/ |
H A D | swim3.c | 256 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/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | processor.c | 248 uint64_t nr_bytes, int level) in virt_map_level() argument 251 uint64_t nr_pages = nr_bytes / pg_size; in virt_map_level() 254 TEST_ASSERT(nr_bytes % pg_size == 0, in virt_map_level() 255 "Region size not aligned: nr_bytes: 0x%lx, page size: 0x%lx", in virt_map_level() 256 nr_bytes, pg_size); in virt_map_level()
|