Home
last modified time | relevance | path

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

/Linux-v4.19/lib/
Dlru_cache.c42 BUG_ON(!lc->nr_elements); \
55 BUG_ON(i >= lc_->nr_elements); \
138 lc->nr_elements = e_count; in lc_create()
191 for (i = 0; i < lc->nr_elements; i++) in lc_destroy()
221 memset(lc->lc_slot, 0, sizeof(struct hlist_head) * lc->nr_elements); in lc_reset()
223 for (i = 0; i < lc->nr_elements; i++) { in lc_reset()
251 lc->name, lc->used, lc->nr_elements, in lc_seq_printf_stats()
257 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
267 BUG_ON(!lc->nr_elements); in __lc_find()
593 BUG_ON(i >= lc->nr_elements); in lc_element_by_index()
[all …]
Dflex_array.c269 unsigned int nr_elements, gfp_t flags) in flex_array_prealloc() argument
277 if (!start && !nr_elements) in flex_array_prealloc()
281 if (!nr_elements) in flex_array_prealloc()
284 end = start + nr_elements - 1; in flex_array_prealloc()
/Linux-v4.19/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.c651 unsigned int nr_elements, void *_data) in b43_httab_read_bulk() argument
663 for (i = 0; i < nr_elements; i++) { in b43_httab_read_bulk()
761 unsigned int nr_elements, const void *_data) in b43_httab_write_bulk() argument
773 for (i = 0; i < nr_elements; i++) { in b43_httab_write_bulk()
Dtables_phy_lcn.c501 unsigned int nr_elements, void *_data) in b43_lcntab_read_bulk() argument
513 for (i = 0; i < nr_elements; i++) { in b43_lcntab_read_bulk()
569 unsigned int nr_elements, const void *_data) in b43_lcntab_write_bulk() argument
581 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.c3354 unsigned int nr_elements, void *_data) in b43_ntab_read_bulk() argument
3366 for (i = 0; i < nr_elements; i++) { in b43_ntab_read_bulk()
3429 unsigned int nr_elements, const void *_data) in b43_ntab_write_bulk() argument
3441 for (i = 0; i < nr_elements; i++) { in b43_ntab_write_bulk()
Dtables_lpphy.c626 unsigned int nr_elements, void *_data) in b43_lptab_read_bulk() argument
638 for (i = 0; i < nr_elements; i++) { in b43_lptab_read_bulk()
690 unsigned int nr_elements, const void *_data) in b43_lptab_write_bulk() argument
702 for (i = 0; i < nr_elements; i++) { in b43_lptab_write_bulk()
/Linux-v4.19/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-v4.19/drivers/block/drbd/
Ddrbd_actlog.c371 buffer->context_size = cpu_to_be16(device->act_log->nr_elements); in __al_write_transaction()
375 device->act_log->nr_elements - device->al_tr_cycle); in __al_write_transaction()
385 if (device->al_tr_cycle >= device->act_log->nr_elements) in __al_write_transaction()
510 available_update_slots = min(al->nr_elements - al->used, in drbd_al_begin_io_nonblock()
610 for (i = 0; i < device->act_log->nr_elements; i++) { in drbd_al_shrink()
744 device->resync->nr_elements, in update_rs_extent()
922 if (device->resync_locked > device->resync->nr_elements/2) { in _bme_get()
1091 if (device->resync_locked > device->resync->nr_elements-3) in drbd_try_rs_begin_io()
1215 for (i = 0; i < device->resync->nr_elements; i++) { in drbd_rs_del_all()
Ddrbd_nl.c1139 device->act_log->nr_elements == dc->al_extents) in drbd_check_al_size()
1153 for (i = 0; i < t->nr_elements; i++) { in drbd_check_al_size()
Ddrbd_main.c3107 buffer->al_nr_extents = cpu_to_be32(device->act_log->nr_elements); in drbd_md_write()
/Linux-v4.19/include/linux/
Dflex_array.h86 unsigned int nr_elements, gfp_t flags);
Dlru_cache.h192 unsigned int nr_elements; member
/Linux-v4.19/arch/s390/pci/
Dpci_dma.c487 int nr_elements, enum dma_data_direction dir, in s390_dma_map_sg() argument
496 for (i = 1; i < nr_elements; i++) { in s390_dma_map_sg()
534 int nr_elements, enum dma_data_direction dir, in s390_dma_unmap_sg() argument
540 for_each_sg(sg, s, nr_elements, i) { in s390_dma_unmap_sg()
/Linux-v4.19/tools/perf/util/
Ddata-convert-bt.c441 unsigned int nr_elements = raw_size / sizeof(u32); in add_bpf_output_values() local
445 if (nr_elements * sizeof(u32) != raw_size) in add_bpf_output_values()
447 raw_size, nr_elements * sizeof(u32) - raw_size); in add_bpf_output_values()
457 ret = bt_ctf_field_unsigned_integer_set_value(len_field, nr_elements); in add_bpf_output_values()
482 for (i = 0; i < nr_elements; i++) { in add_bpf_output_values()
518 unsigned int nr_elements = callchain->nr; in add_callchain_output_values() local
531 ret = bt_ctf_field_unsigned_integer_set_value(len_field, nr_elements); in add_callchain_output_values()
557 for (i = 0; i < nr_elements; i++) { in add_callchain_output_values()
/Linux-v4.19/Documentation/core-api/
Dflexible-arrays.rst71 unsigned int nr_elements, gfp_t flags);
74 defined by ``start`` and ``nr_elements`` has been allocated. Thereafter, a
/Linux-v4.19/Documentation/
Dflexible-arrays.txt72 unsigned int nr_elements, gfp_t flags);
75 defined by start and nr_elements has been allocated. Thereafter, a