| /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/drivers/md/ |
| 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-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-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 | 113 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 419 pgpath = choose_path_in_pg(m, pg, nr_bytes); in choose_pgpath() 434 pgpath = choose_path_in_pg(m, pg, nr_bytes); in choose_pgpath() 449 pgpath = choose_path_in_pg(m, pg, nr_bytes); in choose_pgpath() 511 size_t nr_bytes = blk_rq_bytes(rq); in multipath_clone_and_map() local 521 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-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
|
| H A D | dm-ps-io-affinity.c | 196 size_t nr_bytes) in ioa_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/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()
|
| H A D | blk-mq.c | 936 * @nr_bytes: number of bytes to complete for @req 943 * Passing the result of blk_rq_bytes() as @nr_bytes guarantees 955 unsigned int nr_bytes) in blk_update_request() argument 961 trace_block_rq_complete(req, error, nr_bytes); in blk_update_request() 968 blk_integrity_complete(req, nr_bytes); in blk_update_request() 974 if (blk_crypto_rq_has_keyslot(req) && nr_bytes >= blk_rq_bytes(req)) in blk_update_request() 980 trace_block_rq_error(req, error, nr_bytes); in blk_update_request() 983 blk_account_io_completion(req, nr_bytes); in blk_update_request() 988 unsigned bio_bytes = min(bio->bi_iter.bi_size, nr_bytes); in blk_update_request() 1020 nr_bytes in blk_update_request() [all...] |
| /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/tools/testing/selftests/kvm/ |
| H A D | mmu_stress_test.c | 209 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/include/trace/events/ |
| H A D | block.h | 120 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/mm/ |
| H A D | memcontrol.c | 143 unsigned int nr_bytes; in obj_cgroup_release() local 160 * 92 bytes are added to stock->nr_bytes in obj_cgroup_release() 167 nr_bytes = atomic_read(&objcg->nr_charged_bytes); in obj_cgroup_release() 168 WARN_ON_ONCE(nr_bytes & (PAGE_SIZE - 1)); in obj_cgroup_release() 169 nr_pages = nr_bytes >> PAGE_SHIFT; in obj_cgroup_release() 1810 unsigned int nr_bytes; member 2978 static bool consume_obj_stock(struct obj_cgroup *objcg, unsigned int nr_bytes, in consume_obj_stock() argument 2988 if (objcg == READ_ONCE(stock->cached_objcg) && stock->nr_bytes >= nr_bytes) { in consume_obj_stock() 2989 stock->nr_bytes in consume_obj_stock() 3010 unsigned int nr_bytes = stock->nr_bytes & (PAGE_SIZE - 1); drain_obj_stock() local 3080 refill_obj_stock(struct obj_cgroup * objcg,unsigned int nr_bytes,bool allow_uncharge,int nr_acct,struct pglist_data * pgdat,enum node_stat_item idx) refill_obj_stock() argument 3125 unsigned int nr_pages, nr_bytes; obj_cgroup_charge_account() local [all...] |
| /linux/net/rds/ |
| H A D | rdma.c | 616 unsigned int nr_bytes; in rds_cmsg_rdma_args() local 701 nr_bytes = 0; in rds_cmsg_rdma_args() 758 rdsdebug("RDS: nr_bytes %u nr %u iov->bytes %llu iov->addr %llx\n", 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() 784 rdsdebug("RDS nr_bytes %u remote_bytes %u do not match\n", 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/fs/proc/ |
| H A D | vmcore.c | 163 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/tools/testing/selftests/kvm/x86/ |
| 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/fs/fuse/ |
| H A D | dev.c | 1806 unsigned int nr_bytes; in fuse_notify_store() local 1815 nr_bytes = min(num, folio_size(folio) - folio_offset); in fuse_notify_store() 1816 nr_pages = (offset + nr_bytes + PAGE_SIZE - 1) >> PAGE_SHIFT; in fuse_notify_store() 1818 err = fuse_copy_folio(cs, &folio, folio_offset, nr_bytes, 0); in fuse_notify_store() 1820 (nr_bytes == folio_size(folio) || file_size == end)) { in fuse_notify_store() 1821 folio_zero_segment(folio, nr_bytes, folio_size(folio)); in fuse_notify_store() 1830 num -= nr_bytes; in fuse_notify_store() 1911 unsigned int nr_bytes; in fuse_retrieve() local 1919 nr_bytes = min(folio_size(folio) - folio_offset, num); in fuse_retrieve() 1920 nr_pages = (offset + nr_bytes in fuse_retrieve() [all...] |
| H A D | file.c | 869 unsigned int nr_bytes; member 890 if (ia && fuse_folios_need_send(fc, pos, len, &ia->ap, data->nr_bytes, in fuse_handle_readahead() 892 fuse_send_readpages(ia, data->file, data->nr_bytes, in fuse_handle_readahead() 894 data->nr_bytes = 0; in fuse_handle_readahead() 918 data->nr_bytes += len; in fuse_handle_readahead() 955 fuse_send_readpages(data->ia, data->file, data->nr_bytes, in fuse_iomap_read_submit() 2117 * nr_bytes won't overflow since fuse_folios_need_send() caps 2121 unsigned int nr_bytes; member 2213 data->nr_bytes, true); in fuse_iomap_writeback_range() 2227 data->nr_bytes in fuse_iomap_writeback_range() [all...] |
| /linux/tools/testing/selftests/kvm/lib/x86/ |
| H A D | processor.c | 321 uint64_t nr_bytes, int level) in __vm_get_page_table_entry() 324 uint64_t nr_pages = nr_bytes / pg_size; in __vm_get_page_table_entry() 327 TEST_ASSERT(nr_bytes % pg_size == 0, in __vm_get_page_table_entry() 328 "Region size not aligned: nr_bytes: 0x%lx, page size: 0x%lx", in __vm_get_page_table_entry() 329 nr_bytes, pg_size); in __vm_get_page_table_entry() 334 nr_bytes / PAGE_SIZE); in __vm_get_page_table_entry() 277 virt_map_level(struct kvm_vm * vm,uint64_t vaddr,uint64_t paddr,uint64_t nr_bytes,int level) virt_map_level() argument
|
| /linux/drivers/net/ethernet/intel/libie/ |
| H A D | fwlog.c | 90 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/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/kernel/trace/ |
| H A D | blktrace.c | 1014 * @nr_bytes: number of completed bytes 1023 unsigned int nr_bytes, u64 what, u64 cgid) in blk_add_trace_rq() argument 1039 __blk_add_trace(bt, blk_rq_trace_sector(rq), nr_bytes, rq->cmd_flags, in blk_add_trace_rq() 1069 blk_status_t error, unsigned int nr_bytes) in blk_add_trace_rq_complete() argument 1071 blk_add_trace_rq(rq, error, nr_bytes, BLK_TA_COMPLETE, in blk_add_trace_rq_complete()
|