Home
last modified time | relevance | path

Searched refs:nr_elements (Results 1 – 18 of 18) sorted by relevance

/linux/lib/
H A Dlru_cache.c30 BUG_ON(!lc->nr_elements); \
43 BUG_ON(i >= lc_->nr_elements); \
116 lc->nr_elements = e_count; in lc_create()
169 for (i = 0; i < lc->nr_elements; i++) in lc_destroy()
199 memset(lc->lc_slot, 0, sizeof(struct hlist_head) * lc->nr_elements); in lc_reset()
201 for (i = 0; i < lc->nr_elements; i++) { in lc_reset()
229 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats()
235 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
245 BUG_ON(!lc->nr_elements); in __lc_find()
571 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
[all …]
/linux/fs/bcachefs/
H A Dbuckets_waiting_for_journal.c96 size_t i, size, new_bits, nr_elements = 1, nr_rehashes = 0, nr_rehashes_this_size = 0; in bch2_set_bucket_needs_journal_commit() local
107 nr_elements += t->d[i].journal_seq > flushed_seq; in bch2_set_bucket_needs_journal_commit()
109 new_bits = ilog2(roundup_pow_of_two(nr_elements * 3)); in bch2_set_bucket_needs_journal_commit()
146 nr_rehashes, nr_elements, 1UL << b->t->bits); in bch2_set_bucket_needs_journal_commit()
/linux/drivers/net/wireless/broadcom/b43/
H A Dtables_phy_lcn.h18 unsigned int nr_elements, void *_data);
21 unsigned int nr_elements, const void *_data);
H A Dtables_phy_ht.h16 unsigned int nr_elements, void *_data);
20 unsigned int nr_elements, const void *_data);
H A Dtables_phy_ht.c638 unsigned int nr_elements, void *_data) in b43_httab_read_bulk() argument
650 for (i = 0; i < nr_elements; i++) { in b43_httab_read_bulk()
748 unsigned int nr_elements, const void *_data) in b43_httab_write_bulk() argument
760 for (i = 0; i < nr_elements; i++) { in b43_httab_write_bulk()
H A Dtables_lpphy.h25 unsigned int nr_elements, void *data);
27 unsigned int nr_elements, const void *data);
H A Dtables_phy_lcn.c488 unsigned int nr_elements, void *_data) in b43_lcntab_read_bulk() argument
500 for (i = 0; i < nr_elements; i++) { in b43_lcntab_read_bulk()
556 unsigned int nr_elements, const void *_data) in b43_lcntab_write_bulk() argument
568 for (i = 0; i < nr_elements; i++) { in b43_lcntab_write_bulk()
H A Dtables_nphy.h186 unsigned int nr_elements, void *_data);
189 unsigned int nr_elements, const void *_data);
H A Dtables_nphy.c3341 unsigned int nr_elements, void *_data) in b43_ntab_read_bulk() argument
3353 for (i = 0; i < nr_elements; i++) { in b43_ntab_read_bulk()
3416 unsigned int nr_elements, const void *_data) in b43_ntab_write_bulk() argument
3428 for (i = 0; i < nr_elements; i++) { in b43_ntab_write_bulk()
H A Dtables_lpphy.c613 unsigned int nr_elements, void *_data) in b43_lptab_read_bulk() argument
625 for (i = 0; i < nr_elements; i++) { in b43_lptab_read_bulk()
677 unsigned int nr_elements, const void *_data) in b43_lptab_write_bulk() argument
689 for (i = 0; i < nr_elements; i++) { in b43_lptab_write_bulk()
/linux/drivers/block/drbd/
H A Ddrbd_actlog.c359 buffer->context_size = cpu_to_be16(device->act_log->nr_elements); in __al_write_transaction()
363 device->act_log->nr_elements - device->al_tr_cycle); in __al_write_transaction()
373 if (device->al_tr_cycle >= device->act_log->nr_elements) in __al_write_transaction()
498 available_update_slots = min(al->nr_elements - al->used, in drbd_al_begin_io_nonblock()
598 for (i = 0; i < device->act_log->nr_elements; i++) { in drbd_al_shrink()
732 device->resync->nr_elements, in update_rs_extent()
912 if (device->resync_locked > device->resync->nr_elements/2) { in _bme_get()
1086 if (device->resync_locked > device->resync->nr_elements-3) in drbd_try_rs_begin_io()
1210 for (i = 0; i < device->resync->nr_elements; i++) { in drbd_rs_del_all()
H A Ddrbd_nl.c1156 device->act_log->nr_elements == dc->al_extents) in drbd_check_al_size()
1170 for (i = 0; i < t->nr_elements; i++) { in drbd_check_al_size()
1475 device->act_log->nr_elements == dc->al_extents) in disk_opts_check_al_size()
H A Ddrbd_main.c3005 buffer->al_nr_extents = cpu_to_be32(device->act_log->nr_elements); in drbd_md_write()
/linux/drivers/pinctrl/
H A Ddevicetree.c321 int *nr_elements) in pinctrl_get_list_and_count() argument
326 *nr_elements = 0; in pinctrl_get_list_and_count()
337 *nr_elements = (size / sizeof(**list)) / (*cells_size + 1); in pinctrl_get_list_and_count()
/linux/tools/perf/util/
H A Ddata-convert-bt.c450 unsigned int nr_elements = raw_size / sizeof(u32); in add_bpf_output_values() local
454 if (nr_elements * sizeof(u32) != raw_size) in add_bpf_output_values()
456 raw_size, nr_elements * sizeof(u32) - raw_size); in add_bpf_output_values()
466 ret = bt_ctf_field_unsigned_integer_set_value(len_field, nr_elements); in add_bpf_output_values()
491 for (i = 0; i < nr_elements; i++) { in add_bpf_output_values()
527 unsigned int nr_elements = callchain->nr; in add_callchain_output_values() local
540 ret = bt_ctf_field_unsigned_integer_set_value(len_field, nr_elements); in add_callchain_output_values()
566 for (i = 0; i < nr_elements; i++) { in add_callchain_output_values()
/linux/include/linux/
H A Dlru_cache.h180 unsigned int nr_elements; member
/linux/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c2183 size_t nr_elements = min_t(ssize_t, desc->size, max_elements); in read_stat_data()
2184 size_t size = nr_elements * sizeof(*data); in read_stat_data()
2181 size_t nr_elements = min_t(ssize_t, desc->size, max_elements); read_stat_data() local
/linux/tools/lib/bpf/
H A Dlibbpf.c10225 __u32 nr_elements; in map_btf_datasec_resize() local
10268 nr_elements = (size - var->offset) / element_sz; in map_btf_datasec_resize()
10269 new_array_id = btf__add_array(btf, array->index_type, array->type, nr_elements); in map_btf_datasec_resize()