| /drivers/s390/scsi/ |
| A D | zfcp_reqlist.h | 26 struct list_head buckets[ZFCP_REQ_LIST_BUCKETS]; member 52 INIT_LIST_HEAD(&rl->buckets[i]); in zfcp_reqlist_alloc() 68 if (!list_empty(&rl->buckets[i])) in zfcp_reqlist_isempty() 92 list_for_each_entry(req, &rl->buckets[i], list) in _zfcp_reqlist_find() 165 list_add_tail(&req->list, &rl->buckets[i]); in zfcp_reqlist_add() 182 list_splice_init(&rl->buckets[i], list); in zfcp_reqlist_move() 209 list_for_each_entry(req, &rl->buckets[i], list) in zfcp_reqlist_apply_for_all()
|
| /drivers/md/dm-vdo/ |
| A D | priority-table.c | 44 struct bucket buckets[]; member 69 struct bucket *bucket = &table->buckets[priority]; in vdo_make_priority_table() 116 list_del_init(&table->buckets[priority].queue); in vdo_reset_priority_table() 134 list_move_tail(entry, &table->buckets[priority].queue); in vdo_priority_table_enqueue() 173 bucket = &table->buckets[top_priority]; in vdo_priority_table_dequeue()
|
| A D | int-map.c | 102 struct bucket *buckets; member 168 "struct int_map buckets", &map->buckets); in allocate_buckets() 220 vdo_free(vdo_forget(map->buckets)); in vdo_int_map_free() 307 return &map->buckets[(hash * map->capacity) >> 32]; in select_bucket() 391 struct bucket *entry = &old_map.buckets[i]; in resize_buckets() 399 vdo_free(vdo_forget(map->buckets)); in resize_buckets() 406 vdo_free(vdo_forget(old_map.buckets)); in resize_buckets() 429 ptrdiff_t remaining = &map->buckets[map->bucket_count] - bucket; in find_empty_bucket()
|
| /drivers/md/ |
| A D | dm-region-hash.c | 73 struct list_head *buckets; member 209 rh->buckets = vmalloc(array_size(nr_buckets, sizeof(*rh->buckets))); in dm_region_hash_create() 210 if (!rh->buckets) { in dm_region_hash_create() 217 INIT_LIST_HEAD(rh->buckets + i); in dm_region_hash_create() 231 vfree(rh->buckets); in dm_region_hash_create() 247 list_for_each_entry_safe(reg, nreg, rh->buckets + h, in dm_region_hash_destroy() 258 vfree(rh->buckets); in dm_region_hash_destroy() 277 struct list_head *bucket = rh->buckets + rh_hash(rh, region); in __rh_lookup() 288 list_add(®->hash_list, rh->buckets + rh_hash(rh, reg->key)); in __rh_insert()
|
| A D | dm-cache-policy-smq.c | 578 unsigned int *buckets; member 593 ht->buckets = vmalloc(array_size(nr_buckets, sizeof(*ht->buckets))); in h_init() 594 if (!ht->buckets) in h_init() 598 ht->buckets[i] = INDEXER_NULL; in h_init() 605 vfree(ht->buckets); in h_exit() 610 return to_entry(ht->es, ht->buckets[bucket]); in h_head() 620 e->hash_next = ht->buckets[bucket]; in __h_insert() 621 ht->buckets[bucket] = to_index(ht->es, e); in __h_insert() 653 ht->buckets[h] = e->hash_next; in __h_unlink()
|
| /drivers/md/persistent-data/ |
| A D | dm-transaction-manager.c | 99 struct rb_root buckets[DM_HASH_SIZE]; member 113 node = &tm->buckets[bucket].rb_node; in is_shadow() 147 node = &tm->buckets[bucket].rb_node; in insert_shadow() 159 rb_insert_color(&si->node, &tm->buckets[bucket]); in insert_shadow() 170 while (!RB_EMPTY_ROOT(&tm->buckets[i])) { in wipe_shadow_table() 172 rb_entry(tm->buckets[i].rb_node, struct shadow_info, node); in wipe_shadow_table() 173 rb_erase(&si->node, &tm->buckets[i]); in wipe_shadow_table() 199 tm->buckets[i] = RB_ROOT; in dm_tm_create()
|
| /drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
| A D | ipoib_vlan.c | 45 struct hlist_head buckets[1 << MLX5I_MAX_LOG_PKEY_SUP]; member 71 static struct qpn_to_netdev *mlx5i_find_qpn_to_netdev_node(struct hlist_head *buckets, in mlx5i_find_qpn_to_netdev_node() argument 74 struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)]; in mlx5i_find_qpn_to_netdev_node() 99 hlist_add_head(&new_node->hlist, &ht->buckets[key]); in mlx5i_pkey_add_qpn() 112 node = mlx5i_find_qpn_to_netdev_node(ht->buckets, qpn); in mlx5i_pkey_del_qpn() 131 node = mlx5i_find_qpn_to_netdev_node(ipriv->qpn_htbl->buckets, qpn); in mlx5i_pkey_get_netdev()
|
| /drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| A D | port_sel.c | 54 ft_attr.max_fte = ldev->ports * ldev->buckets; in mlx5_lag_create_port_sel_table() 81 for (j = 0; j < ldev->buckets; j++) { in mlx5_lag_create_port_sel_table() 84 idx = i * ldev->buckets + j; in mlx5_lag_create_port_sel_table() 96 idx = k * ldev->buckets + j; in mlx5_lag_create_port_sel_table() 99 j = ldev->buckets; in mlx5_lag_create_port_sel_table() 361 for (j = 0; j < ldev->buckets; j++) { in mlx5_lag_destroy_definer() 362 idx = i * ldev->buckets + j; in mlx5_lag_destroy_definer() 592 for (j = 0; j < ldev->buckets; j++) { in __mlx5_lag_modify_definers_destinations() 593 idx = i * ldev->buckets + j; in __mlx5_lag_modify_definers_destinations()
|
| A D | lag.c | 214 for (j = 0; j < ldev->buckets; j++) { in mlx5_lag_print_mapping() 215 idx = i * ldev->buckets + j; in mlx5_lag_print_mapping() 286 ldev->buckets = 1; in mlx5_lag_dev_alloc() 363 u8 buckets, in mlx5_infer_tx_affinity_mapping() argument 387 for (j = 0; j < buckets; j++) { in mlx5_infer_tx_affinity_mapping() 388 idx = i * buckets + j; in mlx5_infer_tx_affinity_mapping() 400 for (j = 0; j < buckets; j++) { in mlx5_infer_tx_affinity_mapping() 552 for (j = 0; j < ldev->buckets; j++) { in mlx5_modify_lag() 553 idx = i * ldev->buckets + j; in mlx5_modify_lag() 609 ldev->buckets = MLX5_LAG_MAX_HASH_BUCKETS; in mlx5_lag_set_port_sel_mode() [all …]
|
| A D | lag.h | 61 u8 buckets; member
|
| /drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| A D | pno.c | 298 struct brcmf_gscan_bucket_config **buckets, in brcmf_pno_prep_fwconfig() argument 323 *buckets = NULL; in brcmf_pno_prep_fwconfig() 355 *buckets = fw_buckets; in brcmf_pno_prep_fwconfig() 396 struct brcmf_gscan_bucket_config *buckets; in brcmf_pno_config_sched_scans() local 403 n_buckets = brcmf_pno_prep_fwconfig(pi, &pno_cfg, &buckets, in brcmf_pno_config_sched_scans() 437 memcpy(gscan_cfg->bucket, buckets, in brcmf_pno_config_sched_scans() 438 array_size(n_buckets, sizeof(*buckets))); in brcmf_pno_config_sched_scans() 463 kfree(buckets); in brcmf_pno_config_sched_scans()
|
| /drivers/md/bcache/ |
| A D | alloc.c | 143 trace_bcache_invalidate(ca, b - ca->buckets); in __bch_invalidate_one_bucket() 155 fifo_push(&ca->free_inc, b - ca->buckets); in bch_invalidate_one_bucket() 224 b = ca->buckets + ca->fifo_last_bucket++; in invalidate_buckets_fifo() 250 b = ca->buckets + n; in invalidate_buckets_random() 442 b = ca->buckets + r; in bch_bucket_alloc() 504 k->ptr[0] = MAKE_PTR(ca->buckets[b].gen, in __bch_bucket_alloc_set()
|
| A D | bcache.h | 459 struct bucket *buckets; member 824 return c->cache->buckets + PTR_BUCKET_NR(c, k, ptr); in PTR_BUCKET() 892 for (b = (ca)->buckets + (ca)->sb.first_bucket; \ 893 b < (ca)->buckets + (ca)->sb.nbuckets; b++)
|
| A D | super.c | 648 for (b = ca->buckets + i * prios_per_bucket(ca); in bch_prio_write() 649 b < ca->buckets + ca->sb.nbuckets && d < end; in bch_prio_write() 667 atomic_dec_bug(&ca->buckets[bucket].pin); in bch_prio_write() 684 &ca->buckets[ca->prio_last_buckets[i]]); in bch_prio_write() 699 for (b = ca->buckets; in prio_read() 700 b < ca->buckets + ca->sb.nbuckets; in prio_read() 2210 vfree(ca->buckets); in bch_cache_release() 2322 ca->buckets = vzalloc(array_size(sizeof(struct bucket), in cache_alloc() 2324 if (!ca->buckets) { in cache_alloc() 2352 vfree(ca->buckets); in cache_alloc()
|
| A D | btree.c | 1802 SET_GC_MARK(ca->buckets + *k, GC_MARK_METADATA); in bch_btree_gc_finish() 1806 SET_GC_MARK(ca->buckets + *k, GC_MARK_METADATA); in bch_btree_gc_finish() 2152 b - ca->buckets)) in bch_initial_gc_finish() 2154 b - ca->buckets); in bch_initial_gc_finish()
|
| A D | sysfs.c | 1082 p[i] = ca->buckets[i].prio; in SHOW()
|
| /drivers/infiniband/ulp/ipoib/ |
| A D | ipoib_main.c | 1401 struct ipoib_neigh __rcu **np = &htbl->buckets[i]; in __ipoib_reap_neigh() 1508 rcu_assign_pointer(htbl->buckets[hash_val], neigh); in ipoib_neigh_alloc() 1565 np = &htbl->buckets[hash_val]; in ipoib_neigh_free() 1590 struct ipoib_neigh __rcu **buckets; in ipoib_neigh_hash_init() local 1599 buckets = kvcalloc(size, sizeof(*buckets), GFP_KERNEL); in ipoib_neigh_hash_init() 1600 if (!buckets) { in ipoib_neigh_hash_init() 1606 htbl->buckets = buckets; in ipoib_neigh_hash_init() 1623 struct ipoib_neigh __rcu **buckets = htbl->buckets; in neigh_hash_free_rcu() local 1626 kvfree(buckets); in neigh_hash_free_rcu() 1650 struct ipoib_neigh __rcu **np = &htbl->buckets[i]; in ipoib_del_neighs_by_gid() [all …]
|
| A D | ipoib.h | 298 struct ipoib_neigh __rcu **buckets; member
|
| /drivers/message/fusion/ |
| A D | mptlan.c | 1151 u32 curr, buckets, count, max; in mpt_lan_post_receive_buckets() local 1157 buckets = (priv->max_buckets_out - curr); in mpt_lan_post_receive_buckets() 1161 __func__, buckets, curr)); in mpt_lan_post_receive_buckets() 1166 while (buckets) { in mpt_lan_post_receive_buckets() 1172 __func__, buckets)); in mpt_lan_post_receive_buckets() 1179 count = buckets; in mpt_lan_post_receive_buckets() 1277 buckets -= i; in mpt_lan_post_receive_buckets() 1283 __func__, buckets, atomic_read(&priv->buckets_out))); in mpt_lan_post_receive_buckets()
|
| /drivers/net/ppp/ |
| A D | Kconfig | 145 bool "1 bit (2 buckets)" 148 bool "2 bits (4 buckets)" 151 bool "4 bits (16 buckets)" 154 bool "8 bits (256 buckets)"
|
| /drivers/gpu/drm/radeon/ |
| A D | radeon_cs.c | 84 struct radeon_cs_buckets buckets; in radeon_cs_parser_relocs() local 102 radeon_cs_buckets_init(&buckets); in radeon_cs_parser_relocs() 186 radeon_cs_buckets_add(&buckets, &p->relocs[i].list, priority); in radeon_cs_parser_relocs() 189 radeon_cs_buckets_get_list(&buckets, &p->validated); in radeon_cs_parser_relocs()
|
| /drivers/media/v4l2-core/ |
| A D | v4l2-ctrls-core.c | 1625 hdl->buckets = kvcalloc(hdl->nr_of_buckets, sizeof(hdl->buckets[0]), in v4l2_ctrl_handler_init_class() 1627 hdl->error = hdl->buckets ? 0 : -ENOMEM; in v4l2_ctrl_handler_init_class() 1643 if (!hdl->buckets) in v4l2_ctrl_handler_free() 1664 kvfree(hdl->buckets); in v4l2_ctrl_handler_free() 1665 hdl->buckets = NULL; in v4l2_ctrl_handler_free() 1719 ref = hdl->buckets ? hdl->buckets[bucket] : NULL; in find_ref() 1816 new_ref->next = hdl->buckets[bucket]; in handler_new_ref() 1817 hdl->buckets[bucket] = new_ref; in handler_new_ref()
|
| /drivers/gpu/drm/i915/gem/ |
| A D | i915_gem_execbuffer.c | 310 struct hlist_head *buckets; /** ht for relocation handles */ member 360 eb->buckets = kzalloc(sizeof(struct hlist_head) << size, in eb_create() 362 if (eb->buckets) in eb_create() 576 &eb->buckets[hash_32(entry->handle, in eb_add_vma() 1073 head = &eb->buckets[hash_32(handle, eb->lut_size)]; in eb_get_vma() 1107 kfree(eb->buckets); in eb_destroy()
|
| /drivers/net/ |
| A D | amt.c | 418 int i, buckets; in amt_group_work() local 420 buckets = amt->hash_buckets; in amt_group_work() 430 for (i = 0; i < buckets; i++) { in amt_group_work()
|