Home
last modified time | relevance | path

Searched refs:chain (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_api_cmd.c49 #define MASKED_IDX(chain, idx) ((idx) & ((chain)->num_cells - 1)) argument
89 static void set_prod_idx(struct hinic_api_cmd_chain *chain) in set_prod_idx() argument
91 enum hinic_api_cmd_chain_type chain_type = chain->chain_type; in set_prod_idx()
92 struct hinic_hwif *hwif = chain->hwif; in set_prod_idx()
100 prod_idx |= HINIC_API_CMD_PI_SET(chain->prod_idx, IDX); in set_prod_idx()
105 static u32 get_hw_cons_idx(struct hinic_api_cmd_chain *chain) in get_hw_cons_idx() argument
109 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in get_hw_cons_idx()
110 val = hinic_hwif_read_reg(chain->hwif, addr); in get_hw_cons_idx()
115 static void dump_api_chain_reg(struct hinic_api_cmd_chain *chain) in dump_api_chain_reg() argument
119 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in dump_api_chain_reg()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_chain.c10 static void qed_chain_init(struct qed_chain *chain, in qed_chain_init() argument
14 memset(chain, 0, sizeof(*chain)); in qed_chain_init()
16 chain->elem_size = params->elem_size; in qed_chain_init()
17 chain->intended_use = params->intended_use; in qed_chain_init()
18 chain->mode = params->mode; in qed_chain_init()
19 chain->cnt_type = params->cnt_type; in qed_chain_init()
21 chain->elem_per_page = ELEMS_PER_PAGE(params->elem_size, in qed_chain_init()
23 chain->usable_per_page = USABLE_ELEMS_PER_PAGE(params->elem_size, in qed_chain_init()
26 chain->elem_unusable = UNUSABLE_ELEMS_PER_PAGE(params->elem_size, in qed_chain_init()
29 chain->elem_per_page_mask = chain->elem_per_page - 1; in qed_chain_init()
[all …]
/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-fence-chain.c21 static struct dma_fence *dma_fence_chain_get_prev(struct dma_fence_chain *chain) in dma_fence_chain_get_prev() argument
26 prev = dma_fence_get_rcu_safe(&chain->prev); in dma_fence_chain_get_prev()
41 struct dma_fence_chain *chain, *prev_chain; in dma_fence_chain_walk() local
44 chain = to_dma_fence_chain(fence); in dma_fence_chain_walk()
45 if (!chain) { in dma_fence_chain_walk()
50 while ((prev = dma_fence_chain_get_prev(chain))) { in dma_fence_chain_walk()
65 tmp = cmpxchg((struct dma_fence __force **)&chain->prev, in dma_fence_chain_walk()
92 struct dma_fence_chain *chain; in dma_fence_chain_find_seqno() local
97 chain = to_dma_fence_chain(*pfence); in dma_fence_chain_find_seqno()
98 if (!chain || chain->base.seqno < seqno) in dma_fence_chain_find_seqno()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/
Dar9003_rtt.c72 static void ar9003_hw_rtt_load_hist_entry(struct ath_hw *ah, u8 chain, in ar9003_hw_rtt_load_hist_entry() argument
78 REG_WRITE(ah, AR_PHY_RTT_TABLE_SW_INTF_1_B(chain), val); in ar9003_hw_rtt_load_hist_entry()
83 REG_WRITE(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), val); in ar9003_hw_rtt_load_hist_entry()
87 REG_WRITE(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), val); in ar9003_hw_rtt_load_hist_entry()
90 if (!ath9k_hw_wait(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), in ar9003_hw_rtt_load_hist_entry()
96 REG_WRITE(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), val); in ar9003_hw_rtt_load_hist_entry()
99 ath9k_hw_wait(ah, AR_PHY_RTT_TABLE_SW_INTF_B(chain), in ar9003_hw_rtt_load_hist_entry()
106 int chain, i; in ar9003_hw_rtt_load_hist() local
108 for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { in ar9003_hw_rtt_load_hist()
109 if (!(ah->caps.rx_chainmask & (1 << chain))) in ar9003_hw_rtt_load_hist()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_chains.c63 u32 chain; member
75 u32 chain; member
88 struct fs_chain *chain; member
97 .key_offset = offsetof(struct fs_chain, chain),
98 .key_len = sizeof_field(struct fs_chain, chain),
220 u32 chain, u32 prio, u32 level) in mlx5_chains_create_table() argument
231 sz = (chain == mlx5_chains_get_nf_ft_chain(chains)) ? in mlx5_chains_create_table()
250 (chain == 0 && prio == 1 && level == 0)) { in mlx5_chains_create_table()
254 mlx5_get_fdb_sub_ns(chains->dev, chain) : in mlx5_chains_create_table()
275 (int)PTR_ERR(ft), chain, prio, level, sz); in mlx5_chains_create_table()
[all …]
/kernel/linux/linux-5.10/drivers/s390/cio/
Dvfio_ccw_cp.c316 struct ccwchain *chain; in ccwchain_alloc() local
321 size = ((sizeof(*chain) + 7L) & -8L) + in ccwchain_alloc()
322 sizeof(*chain->ch_ccw) * len + in ccwchain_alloc()
323 sizeof(*chain->ch_pa) * len; in ccwchain_alloc()
324 chain = kzalloc(size, GFP_DMA | GFP_KERNEL); in ccwchain_alloc()
325 if (!chain) in ccwchain_alloc()
328 data = (u8 *)chain + ((sizeof(*chain) + 7L) & -8L); in ccwchain_alloc()
329 chain->ch_ccw = (struct ccw1 *)data; in ccwchain_alloc()
331 data = (u8 *)(chain->ch_ccw) + sizeof(*chain->ch_ccw) * len; in ccwchain_alloc()
332 chain->ch_pa = (struct pfn_array *)data; in ccwchain_alloc()
[all …]
Dcrw.c67 unsigned int chain; in crw_collect_info() local
74 chain = 0; in crw_collect_info()
78 if (unlikely(chain > 1)) { in crw_collect_info()
91 "chain\n", __func__, chain); in crw_collect_info()
94 chain = tmp_crw.chn ? chain + 1 : 0; in crw_collect_info()
97 ccode = stcrw(&crw[chain]); in crw_collect_info()
102 crw[chain].slct, crw[chain].oflw, crw[chain].chn, in crw_collect_info()
103 crw[chain].rsc, crw[chain].anc, crw[chain].erc, in crw_collect_info()
104 crw[chain].rsid); in crw_collect_info()
106 if (crw[chain].oflw) { in crw_collect_info()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/
Dtdma.c51 writel_relaxed(dreq->chain.first->cur_dma, in mv_cesa_dma_step()
62 for (tdma = dreq->chain.first; tdma;) { in mv_cesa_dma_cleanup()
75 dreq->chain.first = NULL; in mv_cesa_dma_cleanup()
76 dreq->chain.last = NULL; in mv_cesa_dma_cleanup()
84 for (tdma = dreq->chain.first; tdma; tdma = tdma->next) { in mv_cesa_dma_prepare()
99 if (engine->chain.first == NULL && engine->chain.last == NULL) { in mv_cesa_tdma_chain()
100 engine->chain.first = dreq->chain.first; in mv_cesa_tdma_chain()
101 engine->chain.last = dreq->chain.last; in mv_cesa_tdma_chain()
105 last = engine->chain.last; in mv_cesa_tdma_chain()
106 last->next = dreq->chain.first; in mv_cesa_tdma_chain()
[all …]
/kernel/linux/linux-5.10/net/batman-adv/
Dfragmentation.c64 struct batadv_frag_table_entry *chain; in batadv_frag_purge_orig() local
68 chain = &orig_node->fragments[i]; in batadv_frag_purge_orig()
69 spin_lock_bh(&chain->lock); in batadv_frag_purge_orig()
71 if (!check_cb || check_cb(chain)) { in batadv_frag_purge_orig()
72 batadv_frag_clear_chain(&chain->fragment_list, true); in batadv_frag_purge_orig()
73 chain->size = 0; in batadv_frag_purge_orig()
76 spin_unlock_bh(&chain->lock); in batadv_frag_purge_orig()
108 static bool batadv_frag_init_chain(struct batadv_frag_table_entry *chain, in batadv_frag_init_chain() argument
111 lockdep_assert_held(&chain->lock); in batadv_frag_init_chain()
113 if (chain->seqno == seqno) in batadv_frag_init_chain()
[all …]
/kernel/linux/linux-5.10/net/sched/
Dcls_api.c54 return jhash_3words(tp->chain->index, tp->prio, in destroy_obj_hashfn()
58 static void tcf_proto_signal_destroying(struct tcf_chain *chain, in tcf_proto_signal_destroying() argument
61 struct tcf_block *block = chain->block; in tcf_proto_signal_destroying()
72 return tp1->chain->index == tp2->chain->index && in tcf_proto_cmp()
77 static bool tcf_proto_exists_destroying(struct tcf_chain *chain, in tcf_proto_exists_destroying() argument
85 hash_for_each_possible_rcu(chain->block->proto_destroy_ht, iter, in tcf_proto_exists_destroying()
98 tcf_proto_signal_destroyed(struct tcf_chain *chain, struct tcf_proto *tp) in tcf_proto_signal_destroyed() argument
100 struct tcf_block *block = chain->block; in tcf_proto_signal_destroyed()
252 u32 prio, struct tcf_chain *chain, in tcf_proto_create() argument
271 tp->chain = chain; in tcf_proto_create()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/ocelot/
Dtc_flower_chains.sh135 tc filter add dev $eth ingress chain 0 pref 49152 flower \
136 skip_sw action goto chain $(IS1 0)
137 tc filter add dev $eth ingress chain $(IS1 0) pref 49152 \
138 flower skip_sw action goto chain $(IS1 1)
139 tc filter add dev $eth ingress chain $(IS1 1) pref 49152 \
140 flower skip_sw action goto chain $(IS1 2)
141 tc filter add dev $eth ingress chain $(IS1 2) pref 49152 \
142 flower skip_sw action goto chain $(IS2 0 0)
153 tc filter add dev $eth ingress chain $(IS2 0 0) pref 49152 \
154 flower skip_sw action goto chain $(IS2 1 0)
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dtc_chains.sh38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
62 $tcflags dst_mac $h2mac action goto chain 1
78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \
88 tc chain add dev $h2 ingress
97 tc chain add dev $h2 ingress chain 1
115 tc chain del dev $h2 ingress
118 tc chain del dev $h2 ingress chain 1
128 tc chain add dev $h2 ingress protocol ip \
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_tables_offload.c242 static int nft_flow_offload_rule(struct nft_chain *chain, in nft_flow_offload_rule() argument
251 if (!nft_is_base_chain(chain)) in nft_flow_offload_rule()
254 basechain = nft_base_chain(chain); in nft_flow_offload_rule()
275 struct nft_chain *chain; in nft_flow_offload_unbind() local
278 chain = &basechain->chain; in nft_flow_offload_unbind()
279 list_for_each_entry(rule, &chain->rules, list) { in nft_flow_offload_unbind()
331 static int nft_block_offload_cmd(struct nft_base_chain *chain, in nft_block_offload_cmd() argument
339 nft_flow_block_offload_init(&bo, dev_net(dev), cmd, chain, &extack); in nft_block_offload_cmd()
345 return nft_block_setup(chain, &bo, cmd); in nft_block_offload_cmd()
436 static int nft_flow_offload_chain(struct nft_chain *chain, u8 *ppolicy, in nft_flow_offload_chain() argument
[all …]
Dnf_tables_core.c25 const struct nft_chain *chain, in __nft_trace_packet() argument
33 info->chain = chain; in __nft_trace_packet()
40 const struct nft_chain *chain, in nft_trace_packet() argument
46 __nft_trace_packet(info, chain, type); in nft_trace_packet()
104 static noinline void nft_update_chain_stats(const struct nft_chain *chain, in nft_update_chain_stats() argument
111 base_chain = nft_base_chain(chain); in nft_update_chain_stats()
128 const struct nft_chain *chain; member
160 const struct nft_chain *chain = priv, *basechain = chain; in nft_do_chain() local
176 rules = rcu_dereference(chain->rules_gen_1); in nft_do_chain()
178 rules = rcu_dereference(chain->rules_gen_0); in nft_do_chain()
[all …]
Dnf_tables_api.c93 struct nft_chain *chain, in nft_ctx_init() argument
100 ctx->chain = chain; in nft_ctx_init()
194 struct nft_chain *chain) in nf_tables_register_hook() argument
200 !nft_is_base_chain(chain)) in nf_tables_register_hook()
203 basechain = nft_base_chain(chain); in nf_tables_register_hook()
217 struct nft_chain *chain) in nf_tables_unregister_hook() argument
223 !nft_is_base_chain(chain)) in nf_tables_unregister_hook()
225 basechain = nft_base_chain(chain); in nf_tables_unregister_hook()
273 nft_activate_next(ctx->net, ctx->chain); in nft_trans_chain_add()
294 nft_deactivate_next(ctx->net, ctx->chain); in nft_delchain()
[all …]
Dnft_immediate.c58 struct nft_chain *chain = priv->data.verdict.chain; in nft_immediate_init() local
63 if (nft_chain_is_bound(chain)) { in nft_immediate_init()
67 chain->bound = true; in nft_immediate_init()
108 struct nft_chain *chain; in nft_immediate_destroy() local
116 chain = data->verdict.chain; in nft_immediate_destroy()
118 if (!nft_chain_is_bound(chain)) in nft_immediate_destroy()
122 chain_ctx.chain = chain; in nft_immediate_destroy()
124 list_for_each_entry_safe(rule, n, &chain->rules, list) in nft_immediate_destroy()
166 err = nft_chain_validate(ctx, data->verdict.chain); in nft_immediate_validate()
/kernel/linux/linux-5.10/fs/minix/
Ditree_common.c33 Indirect chain[DEPTH], in get_branch()
37 Indirect *p = chain; in get_branch()
42 add_chain (chain, NULL, i_data(inode) + *offsets); in get_branch()
50 if (!verify_chain(chain, p)) in get_branch()
116 Indirect chain[DEPTH], in splice_branch()
125 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
157 Indirect chain[DEPTH]; in get_block() local
166 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
171 map_bh(bh, inode->i_sb, block_to_cpu(chain[depth-1].key)); in get_block()
173 partial = chain+depth-1; /* the whole chain */ in get_block()
[all …]
/kernel/linux/linux-5.10/include/linux/qed/
Dqed_chain.h186 static inline u16 qed_chain_get_prod_idx(const struct qed_chain *chain) in qed_chain_get_prod_idx() argument
188 return chain->u.chain16.prod_idx; in qed_chain_get_prod_idx()
191 static inline u16 qed_chain_get_cons_idx(const struct qed_chain *chain) in qed_chain_get_cons_idx() argument
193 return chain->u.chain16.cons_idx; in qed_chain_get_cons_idx()
196 static inline u32 qed_chain_get_prod_idx_u32(const struct qed_chain *chain) in qed_chain_get_prod_idx_u32() argument
198 return chain->u.chain32.prod_idx; in qed_chain_get_prod_idx_u32()
201 static inline u32 qed_chain_get_cons_idx_u32(const struct qed_chain *chain) in qed_chain_get_cons_idx_u32() argument
203 return chain->u.chain32.cons_idx; in qed_chain_get_cons_idx_u32()
206 static inline u16 qed_chain_get_elem_used(const struct qed_chain *chain) in qed_chain_get_elem_used() argument
208 u32 prod = qed_chain_get_prod_idx(chain); in qed_chain_get_elem_used()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/toshiba/
Dspider_net.c275 struct spider_net_descr_chain *chain) in spider_net_free_chain() argument
279 descr = chain->ring; in spider_net_free_chain()
284 } while (descr != chain->ring); in spider_net_free_chain()
286 dma_free_coherent(&card->pdev->dev, chain->num_desc * sizeof(struct spider_net_hw_descr), in spider_net_free_chain()
287 chain->hwring, chain->dma_addr); in spider_net_free_chain()
302 struct spider_net_descr_chain *chain) in spider_net_init_chain() argument
310 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); in spider_net_init_chain()
312 chain->hwring = dma_alloc_coherent(&card->pdev->dev, alloc_size, in spider_net_init_chain()
313 &chain->dma_addr, GFP_KERNEL); in spider_net_init_chain()
314 if (!chain->hwring) in spider_net_init_chain()
[all …]
/kernel/linux/linux-5.10/drivers/media/usb/uvc/
Duvc_entity.c17 static int uvc_mc_create_links(struct uvc_video_chain *chain, in uvc_mc_create_links() argument
39 remote = uvc_entity_by_id(chain->dev, entity->baSourceID[i]); in uvc_mc_create_links()
70 static int uvc_mc_init_entity(struct uvc_video_chain *chain, in uvc_mc_init_entity() argument
121 ret = v4l2_device_register_subdev(&chain->dev->vdev, in uvc_mc_init_entity()
134 int uvc_mc_register_entities(struct uvc_video_chain *chain) in uvc_mc_register_entities() argument
139 list_for_each_entry(entity, &chain->entities, chain) { in uvc_mc_register_entities()
140 ret = uvc_mc_init_entity(chain, entity); in uvc_mc_register_entities()
148 list_for_each_entry(entity, &chain->entities, chain) { in uvc_mc_register_entities()
149 ret = uvc_mc_create_links(chain, entity); in uvc_mc_register_entities()
Duvc_ctrl.c892 static struct uvc_control *uvc_find_control(struct uvc_video_chain *chain, in uvc_find_control() argument
905 list_for_each_entry(entity, &chain->entities, chain) { in uvc_find_control()
918 static int uvc_ctrl_populate_cache(struct uvc_video_chain *chain, in uvc_ctrl_populate_cache() argument
924 ret = uvc_query_ctrl(chain->dev, UVC_GET_DEF, ctrl->entity->id, in uvc_ctrl_populate_cache()
925 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache()
933 ret = uvc_query_ctrl(chain->dev, UVC_GET_MIN, ctrl->entity->id, in uvc_ctrl_populate_cache()
934 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache()
941 ret = uvc_query_ctrl(chain->dev, UVC_GET_MAX, ctrl->entity->id, in uvc_ctrl_populate_cache()
942 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache()
949 ret = uvc_query_ctrl(chain->dev, UVC_GET_RES, ctrl->entity->id, in uvc_ctrl_populate_cache()
[all …]
/kernel/linux/linux-5.10/fs/sysv/
Ditree.c91 Indirect chain[], in get_branch() argument
95 Indirect *p = chain; in get_branch()
99 add_chain(chain, NULL, SYSV_I(inode)->i_data + *offsets); in get_branch()
107 if (!verify_chain(chain, p)) in get_branch()
169 Indirect chain[], in splice_branch() argument
177 if (!verify_chain(chain, where-1) || *where->p) in splice_branch()
207 Indirect chain[DEPTH]; in get_block() local
218 partial = get_branch(inode, depth, offsets, chain, &err); in get_block()
225 chain[depth-1].key)); in get_block()
227 partial = chain+depth-1; /* the whole chain */ in get_block()
[all …]
/kernel/linux/linux-5.10/fs/ext4/
Dindirect.c146 Indirect chain[4], int *err) in ext4_get_branch()
149 Indirect *p = chain; in ext4_get_branch()
155 add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); in ext4_get_branch()
528 Indirect chain[4]; in ext4_ind_map_blocks() local
545 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
549 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
555 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
577 for (i = partial - chain + 1; i < depth; i++) in ext4_ind_map_blocks()
614 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
627 offsets + (partial - chain), partial); in ext4_ind_map_blocks()
[all …]
/kernel/linux/linux-5.10/fs/lockd/
Dhost.c37 #define for_each_host(host, chain, table) \ argument
38 for ((chain) = (table); \
39 (chain) < (table) + NLM_HOST_NRHASH; ++(chain)) \
40 hlist_for_each_entry((host), (chain), h_hash)
42 #define for_each_host_safe(host, next, chain, table) \ argument
43 for ((chain) = (table); \
44 (chain) < (table) + NLM_HOST_NRHASH; ++(chain)) \
46 (chain), h_hash)
237 struct hlist_head *chain; in nlmclnt_lookup_host() local
248 chain = &nlm_client_hosts[nlm_hash_address(sap)]; in nlmclnt_lookup_host()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
Docelot_flower.c24 static int ocelot_chain_to_block(int chain, bool ingress) in ocelot_chain_to_block() argument
29 if (chain == 0) in ocelot_chain_to_block()
37 if (chain == 0) in ocelot_chain_to_block()
41 if (chain == VCAP_IS1_CHAIN(lookup)) in ocelot_chain_to_block()
46 if (chain == VCAP_IS2_CHAIN(lookup, pag)) in ocelot_chain_to_block()
55 static int ocelot_chain_to_lookup(int chain) in ocelot_chain_to_lookup() argument
57 return (chain / VCAP_LOOKUP) % 10; in ocelot_chain_to_lookup()
63 static int ocelot_chain_to_pag(int chain) in ocelot_chain_to_pag() argument
65 int lookup = ocelot_chain_to_lookup(chain); in ocelot_chain_to_pag()
68 return chain - VCAP_IS2_CHAIN(lookup, 0); in ocelot_chain_to_pag()
[all …]

12345678910>>...15