Home
last modified time | relevance | path

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

/linux-6.1.9/lib/
Dlru_cache.c30 BUG_ON(!lc->nr_elements); \
43 BUG_ON(i >= lc_->nr_elements); \
127 lc->nr_elements = e_count; in lc_create()
180 for (i = 0; i < lc->nr_elements; i++) in lc_destroy()
210 memset(lc->lc_slot, 0, sizeof(struct hlist_head) * lc->nr_elements); in lc_reset()
212 for (i = 0; i < lc->nr_elements; i++) { in lc_reset()
240 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats()
246 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
256 BUG_ON(!lc->nr_elements); in __lc_find()
582 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
[all …]
/linux-6.1.9/drivers/net/wireless/broadcom/b43/
Dtables_phy_lcn.h18 unsigned int nr_elements, void *_data);
21 unsigned int nr_elements, const void *_data);
Dtables_phy_ht.h16 unsigned int nr_elements, void *_data);
20 unsigned int nr_elements, const void *_data);
Dtables_lpphy.h25 unsigned int nr_elements, void *data);
27 unsigned int nr_elements, const void *data);
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()
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()
Dtables_nphy.h186 unsigned int nr_elements, void *_data);
189 unsigned int nr_elements, const void *_data);
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()
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-6.1.9/drivers/block/drbd/
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()
910 if (device->resync_locked > device->resync->nr_elements/2) { in _bme_get()
1079 if (device->resync_locked > device->resync->nr_elements-3) in drbd_try_rs_begin_io()
1203 for (i = 0; i < device->resync->nr_elements; i++) { in drbd_rs_del_all()
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()
1469 device->act_log->nr_elements == dc->al_extents) in disk_opts_check_al_size()
Ddrbd_main.c3000 buffer->al_nr_extents = cpu_to_be32(device->act_log->nr_elements); in drbd_md_write()
/linux-6.1.9/drivers/pinctrl/
Ddevicetree.c319 int *nr_elements) in pinctrl_get_list_and_count() argument
324 *nr_elements = 0; in pinctrl_get_list_and_count()
335 *nr_elements = (size / sizeof(**list)) / (*cells_size + 1); in pinctrl_get_list_and_count()
/linux-6.1.9/tools/perf/util/
Ddata-convert-bt.c446 unsigned int nr_elements = raw_size / sizeof(u32); in add_bpf_output_values() local
450 if (nr_elements * sizeof(u32) != raw_size) in add_bpf_output_values()
452 raw_size, nr_elements * sizeof(u32) - raw_size); in add_bpf_output_values()
462 ret = bt_ctf_field_unsigned_integer_set_value(len_field, nr_elements); in add_bpf_output_values()
487 for (i = 0; i < nr_elements; i++) { in add_bpf_output_values()
523 unsigned int nr_elements = callchain->nr; in add_callchain_output_values() local
536 ret = bt_ctf_field_unsigned_integer_set_value(len_field, nr_elements); in add_callchain_output_values()
562 for (i = 0; i < nr_elements; i++) { in add_callchain_output_values()
/linux-6.1.9/arch/s390/pci/
Dpci_dma.c485 int nr_elements, enum dma_data_direction dir, in s390_dma_map_sg() argument
494 for (i = 1; i < nr_elements; i++) { in s390_dma_map_sg()
533 int nr_elements, enum dma_data_direction dir, in s390_dma_unmap_sg() argument
539 for_each_sg(sg, s, nr_elements, i) { in s390_dma_unmap_sg()
/linux-6.1.9/include/linux/
Dlru_cache.h180 unsigned int nr_elements; member
/linux-6.1.9/tools/testing/selftests/kvm/lib/
Dkvm_util.c1966 size_t nr_elements = min_t(ssize_t, desc->size, max_elements); in read_stat_data() local
1967 size_t size = nr_elements * sizeof(*data); in read_stat_data()