Home
last modified time | relevance | path

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

12345678910>>...14

/linux/drivers/net/ethernet/huawei/hinic/
H A 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 …]
/linux/drivers/net/ethernet/qlogic/qed/
H A 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 …]
/linux/drivers/net/wireless/ath/ath9k/
H A 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 …]
H A Dlink.c182 int chain; in ath_paprd_activate() local
190 for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { in ath_paprd_activate()
191 if (!(ah->txchainmask & BIT(chain))) in ath_paprd_activate()
194 ar9003_paprd_populate_single_table(ah, caldata, chain); in ath_paprd_activate()
201 static bool ath_paprd_send_frame(struct ath_softc *sc, struct sk_buff *skb, int chain) in ath_paprd_send_frame() argument
222 txctl.paprd = BIT(chain); in ath_paprd_send_frame()
236 chain); in ath_paprd_send_frame()
252 int chain; in ath_paprd_calibrate() local
282 for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { in ath_paprd_calibrate()
283 if (!(ah->txchainmask & BIT(chain))) in ath_paprd_calibrate()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_chains.c43 u32 chain; member
55 u32 chain; member
68 struct fs_chain *chain; member
77 .key_offset = offsetof(struct fs_chain, chain),
78 .key_len = sizeof_field(struct fs_chain, chain),
153 u32 chain, u32 prio, u32 level) in mlx5_chains_create_table() argument
164 sz = (chain == mlx5_chains_get_nf_ft_chain(chains)) ? in mlx5_chains_create_table()
180 (chain == 0 && prio == 1 && level == 0)) { in mlx5_chains_create_table()
184 mlx5_get_fdb_sub_ns(chains->dev, chain) : in mlx5_chains_create_table()
210 (int)PTR_ERR(ft), chain, prio, level, sz); in mlx5_chains_create_table()
[all …]
/linux/net/netfilter/
H A Dnft_immediate.c74 struct nft_chain *chain = priv->data.verdict.chain; in nft_immediate_init() local
79 err = nf_tables_bind_chain(ctx, chain); in nft_immediate_init()
101 struct nft_chain *chain; in nft_immediate_activate() local
108 chain = data->verdict.chain; in nft_immediate_activate()
109 if (!nft_chain_binding(chain)) in nft_immediate_activate()
113 chain_ctx.chain = chain; in nft_immediate_activate()
115 list_for_each_entry(rule, &chain->rules, list) in nft_immediate_activate()
118 nft_clear(ctx->net, chain); in nft_immediate_activate()
129 struct nft_chain *chain, in nft_immediate_chain_deactivate() argument
136 chain_ctx.chain = chain; in nft_immediate_chain_deactivate()
[all …]
H A Dnf_tables_offload.c268 static int nft_flow_offload_cmd(const struct nft_chain *chain, in nft_flow_offload_cmd() argument
277 if (!nft_is_base_chain(chain)) in nft_flow_offload_cmd()
280 basechain = nft_base_chain(chain); in nft_flow_offload_cmd()
288 static int nft_flow_offload_rule(const struct nft_chain *chain, in nft_flow_offload_rule() argument
295 return nft_flow_offload_cmd(chain, rule, flow, command, &cls_flow); in nft_flow_offload_rule()
298 int nft_flow_rule_stats(const struct nft_chain *chain, in nft_flow_rule_stats() argument
305 err = nft_flow_offload_cmd(chain, rule, NULL, FLOW_CLS_STATS, in nft_flow_rule_stats()
331 struct nft_chain *chain; in nft_flow_offload_unbind() local
334 chain = &basechain->chain; in nft_flow_offload_unbind()
335 list_for_each_entry(rule, &chain->rules, list) { in nft_flow_offload_unbind()
[all …]
H A Dnf_tables_api.c129 const struct nft_chain *chain) in nft_chain_vstate_valid() argument
135 if (WARN_ON_ONCE(!nft_is_base_chain(ctx->chain))) in nft_chain_vstate_valid()
138 base_chain = nft_base_chain(ctx->chain); in nft_chain_vstate_valid()
142 /* chain is already validated for this call depth */ in nft_chain_vstate_valid()
143 if (chain->vstate.depth >= ctx->level && in nft_chain_vstate_valid()
144 chain->vstate.hook_mask[type] & BIT(hooknum)) in nft_chain_vstate_valid()
161 struct nft_chain *chain, in nft_ctx_init() argument
168 ctx->chain = chain; in nft_ctx_init()
263 struct nft_chain *chain, boo in __nft_chain_trans_bind() argument
288 nft_chain_trans_bind(const struct nft_ctx * ctx,struct nft_chain * chain) nft_chain_trans_bind() argument
293 nf_tables_bind_chain(const struct nft_ctx * ctx,struct nft_chain * chain) nf_tables_bind_chain() argument
313 nf_tables_unbind_chain(const struct nft_ctx * ctx,struct nft_chain * chain) nf_tables_unbind_chain() argument
396 nf_tables_register_hook(struct net * net,const struct nft_table * table,struct nft_chain * chain) nf_tables_register_hook() argument
419 __nf_tables_unregister_hook(struct net * net,const struct nft_table * table,struct nft_chain * chain,bool release_netdev) __nf_tables_unregister_hook() argument
443 nf_tables_unregister_hook(struct net * net,const struct nft_table * table,struct nft_chain * chain) nf_tables_unregister_hook() argument
1367 struct nft_chain *chain; nft_table_disable() local
1385 struct nft_chain *chain; nf_tables_table_enable() local
1521 const struct nft_chain *chain = data; nft_chain_hash_obj() local
1529 const struct nft_chain *chain = ptr; nft_chain_hash_cmp() local
1684 struct nft_chain *chain, *nc; nft_flush_table() local
1868 struct nft_chain *chain; nft_chain_lookup_byhandle() local
1896 struct nft_chain *chain; nft_chain_lookup() local
2049 nf_tables_fill_chain_info(struct sk_buff * skb,struct net * net,u32 portid,u32 seq,int event,u32 flags,int family,const struct nft_table * table,const struct nft_chain * chain,const struct list_head * hook_list) nf_tables_fill_chain_info() argument
2155 const struct nft_chain *chain; nf_tables_dump_chains() local
2200 const struct nft_chain *chain; nf_tables_getchain() local
2283 struct nft_base_chain *chain = nft_base_chain(trans->chain); nft_chain_stats_replace() local
2296 nf_tables_chain_free_chain_rules(struct nft_chain * chain) nf_tables_chain_free_chain_rules() argument
2310 nf_tables_chain_destroy(struct nft_chain * chain) nf_tables_chain_destroy() argument
2602 nft_last_rule(const struct nft_chain * chain,const void * ptr) nft_last_rule() argument
2614 nf_tables_chain_alloc_rules(const struct nft_chain * chain,unsigned int size) nf_tables_chain_alloc_rules() argument
2636 nft_basechain_hook_init(struct nf_hook_ops * ops,u8 family,const struct nft_chain_hook * hook,struct nft_chain * chain) nft_basechain_hook_init() argument
2649 struct nft_chain *chain; nft_basechain_init() local
2679 nft_chain_add(struct nft_table * table,struct nft_chain * chain) nft_chain_add() argument
2705 struct nft_chain *chain; nf_tables_addchain() local
2848 struct nft_chain *chain = ctx->chain; nf_tables_updchain() local
3063 struct nft_chain *chain = NULL; nf_tables_newchain() local
3161 const struct nft_chain *chain = &basechain->chain; nft_delchain_hook() local
3218 struct nft_chain *chain; nf_tables_delchain() local
3643 __nft_rule_lookup(const struct net * net,const struct nft_chain * chain,u64 handle) __nft_rule_lookup() argument
3659 nft_rule_lookup(const struct net * net,const struct nft_chain * chain,const struct nlattr * nla) nft_rule_lookup() argument
3688 nf_tables_fill_rule_info(struct sk_buff * skb,struct net * net,u32 portid,u32 seq,int event,u32 flags,int family,const struct nft_table * table,const struct nft_chain * chain,const struct nft_rule * rule,u64 handle,bool reset) nf_tables_fill_rule_info() argument
3801 char *chain; global() member
3809 __nf_tables_dump_rules(struct sk_buff * skb,unsigned int * idx,struct netlink_callback * cb,const struct nft_table * table,const struct nft_chain * chain) __nf_tables_dump_rules() argument
3858 const struct nft_chain *chain; nf_tables_dump_rules() local
3951 const struct nft_chain *chain; nf_tables_getrule_single() local
4059 nft_chain_vstate_update(const struct nft_ctx * ctx,struct nft_chain * chain) nft_chain_vstate_update() argument
4091 nft_chain_validate(const struct nft_ctx * ctx,struct nft_chain * chain) nft_chain_validate() argument
4139 struct nft_chain *chain; nft_table_validate() local
4240 struct nft_chain *chain; nf_tables_newrule() local
4465 nft_rule_lookup_byid(const struct net * net,const struct nft_chain * chain,const struct nlattr * nla) nft_rule_lookup_byid() argument
4487 struct nft_chain *chain = NULL; nf_tables_delrule() local
7636 struct nft_chain *chain; nft_data_hold() local
10185 nf_tables_commit_chain_prepare(struct net * net,struct nft_chain * chain) nf_tables_commit_chain_prepare() argument
10269 struct nft_chain *chain = nft_trans_rule_chain(trans); nf_tables_commit_chain_prepare_cancel() local
10295 nf_tables_commit_chain(struct net * net,struct nft_chain * chain) nf_tables_commit_chain() argument
10349 nft_chain_del(struct nft_chain * chain) nft_chain_del() argument
10788 struct nft_chain *chain; nf_tables_commit() local
11435 nft_chain_validate_dependency(const struct nft_chain * chain,enum nft_chain_types type) nft_chain_validate_dependency() argument
11449 nft_chain_validate_hooks(const struct nft_chain * chain,unsigned int hook_flags) nft_chain_validate_hooks() argument
11652 struct nft_chain *chain; nft_verdict_init() local
11717 struct nft_chain *chain; nft_verdict_uninit() local
11885 struct nft_chain *chain; __nft_release_hook() local
11911 struct nft_chain *chain, *nc; __nft_release_table() local
[all...]
/linux/drivers/s390/cio/
H A Dvfio_ccw_cp.c320 struct ccwchain *chain; in ccwchain_alloc() local
322 chain = kzalloc_obj(*chain); in ccwchain_alloc()
323 if (!chain) in ccwchain_alloc()
326 chain->ch_ccw = kzalloc_objs(*chain->ch_ccw, len, GFP_DMA | GFP_KERNEL); in ccwchain_alloc()
327 if (!chain->ch_ccw) in ccwchain_alloc()
330 chain->ch_pa = kzalloc_objs(*chain->ch_pa, len); in ccwchain_alloc()
331 if (!chain->ch_pa) in ccwchain_alloc()
334 list_add_tail(&chain->next, &cp->ccwchain_list); in ccwchain_alloc()
336 return chain; in ccwchain_alloc()
339 kfree(chain->ch_ccw); in ccwchain_alloc()
[all …]
/linux/net/batman-adv/
H A Dfragmentation.c62 struct batadv_frag_table_entry *chain; in batadv_frag_purge_orig() local
66 chain = &orig_node->fragments[i]; in batadv_frag_purge_orig()
67 spin_lock_bh(&chain->lock); in batadv_frag_purge_orig()
69 if (!check_cb || check_cb(chain)) { in batadv_frag_purge_orig()
70 batadv_frag_clear_chain(&chain->fragment_list, true); in batadv_frag_purge_orig()
71 chain->size = 0; in batadv_frag_purge_orig()
74 spin_unlock_bh(&chain->lock); in batadv_frag_purge_orig()
106 static bool batadv_frag_init_chain(struct batadv_frag_table_entry *chain, in batadv_frag_init_chain() argument
109 lockdep_assert_held(&chain->lock); in batadv_frag_init_chain()
111 if (chain->seqno == seqno) in batadv_frag_init_chain()
[all …]
/linux/net/sched/
H A Dcls_api.c54 const struct tcf_chain *chain; member
91 n->chain_index = tp->chain->index; in tcf_exts_miss_cookie_base_alloc()
92 n->chain = tp->chain; in tcf_exts_miss_cookie_base_alloc()
174 return jhash_3words(tp->chain->index, tp->prio, in destroy_obj_hashfn()
178 static void tcf_proto_signal_destroying(struct tcf_chain *chain, in tcf_proto_signal_destroying() argument
181 struct tcf_block *block = chain->block; in tcf_proto_signal_destroying()
192 return tp1->chain->index == tp2->chain->index && in tcf_proto_cmp()
197 static bool tcf_proto_exists_destroying(struct tcf_chain *chain, in tcf_proto_exists_destroying() argument
218 tcf_proto_signal_destroyed(struct tcf_chain * chain,struct tcf_proto * tp) tcf_proto_signal_destroyed() argument
373 tcf_proto_create(const char * kind,u32 protocol,u32 prio,struct tcf_chain * chain,bool rtnl_held,struct netlink_ext_ack * extack) tcf_proto_create() argument
501 struct tcf_chain *chain; tcf_chain_create() local
525 tcf_chain0_head_change(struct tcf_chain * chain,struct tcf_proto * tp_head) tcf_chain0_head_change() argument
542 tcf_chain_detach(struct tcf_chain * chain) tcf_chain_detach() argument
567 tcf_chain_destroy(struct tcf_chain * chain,bool free_block) tcf_chain_destroy() argument
577 tcf_chain_hold(struct tcf_chain * chain) tcf_chain_hold() argument
584 tcf_chain_held_by_acts_only(struct tcf_chain * chain) tcf_chain_held_by_acts_only() argument
597 struct tcf_chain *chain; tcf_chain_lookup() local
612 struct tcf_chain *chain; tcf_chain_lookup_rcu() local
630 struct tcf_chain *chain = NULL; __tcf_chain_get() local
685 __tcf_chain_put(struct tcf_chain * chain,bool by_act,bool explicitly_created) __tcf_chain_put() argument
733 tcf_chain_put(struct tcf_chain * chain) tcf_chain_put() argument
738 tcf_chain_put_by_act(struct tcf_chain * chain) tcf_chain_put_by_act() argument
744 tcf_chain_put_explicitly_created(struct tcf_chain * chain) tcf_chain_put_explicitly_created() argument
749 tcf_chain_flush(struct tcf_chain * chain,bool rtnl_held) tcf_chain_flush() argument
1065 __tcf_get_next_chain(struct tcf_block * block,struct tcf_chain * chain) __tcf_get_next_chain() argument
1097 tcf_get_next_chain(struct tcf_block * block,struct tcf_chain * chain) tcf_get_next_chain() argument
1109 __tcf_get_next_proto(struct tcf_chain * chain,struct tcf_proto * tp) __tcf_get_next_proto() argument
1150 tcf_get_next_proto(struct tcf_chain * chain,struct tcf_proto * tp) tcf_get_next_proto() argument
1163 struct tcf_chain *chain; tcf_block_flush_all_chains() local
1582 struct tcf_chain *chain, *chain_prev; tcf_block_playback_offloads() local
1892 tcf_chain_tp_prev(struct tcf_chain * chain,struct tcf_chain_info * chain_info) tcf_chain_tp_prev() argument
1898 tcf_chain_tp_insert(struct tcf_chain * chain,struct tcf_chain_info * chain_info,struct tcf_proto * tp) tcf_chain_tp_insert() argument
1914 tcf_chain_tp_remove(struct tcf_chain * chain,struct tcf_chain_info * chain_info,struct tcf_proto * tp) tcf_chain_tp_remove() argument
1937 tcf_chain_tp_insert_unique(struct tcf_chain * chain,struct tcf_proto * tp_new,u32 protocol,u32 prio,bool rtnl_held) tcf_chain_tp_insert_unique() argument
1970 tcf_chain_tp_delete_empty(struct tcf_chain * chain,struct tcf_proto * tp,bool rtnl_held,struct netlink_ext_ack * extack) tcf_chain_tp_delete_empty() argument
2011 tcf_chain_tp_find(struct tcf_chain * chain,struct tcf_chain_info * chain_info,u32 protocol,u32 prio,bool prio_allocate,struct netlink_ext_ack * extack) tcf_chain_tp_find() argument
2209 tfilter_notify_chain(struct net * net,struct sk_buff * oskb,struct tcf_block * block,struct Qdisc * q,u32 parent,struct nlmsghdr * n,struct tcf_chain * chain,int event,struct netlink_ext_ack * extack) tfilter_notify_chain() argument
2250 struct tcf_chain *chain; tc_new_tfilter() local
2485 struct tcf_chain *chain = NULL; tc_del_tfilter() local
2644 struct tcf_chain *chain = NULL; tc_get_tfilter() local
2777 tcf_chain_dump(struct tcf_chain * chain,struct Qdisc * q,u32 parent,struct sk_buff * skb,struct netlink_callback * cb,long index_start,long * p_index,bool terse) tcf_chain_dump() argument
2846 struct tcf_chain *chain, *chain_prev; tc_dump_tfilter() local
3004 tc_chain_notify(struct tcf_chain * chain,struct sk_buff * oskb,u32 seq,u16 flags,int event,bool unicast,struct netlink_ext_ack * extack) tc_chain_notify() argument
3062 tc_chain_tmplt_add(struct tcf_chain * chain,struct net * net,struct nlattr ** tca,struct netlink_ext_ack * extack) tc_chain_tmplt_add() argument
3121 struct tcf_chain *chain; tc_ctl_chain() local
3251 struct tcf_chain *chain; tc_dump_chain() local
[all...]
/linux/drivers/media/usb/uvc/
H A Duvc_ctrl.c595 struct uvc_video_chain *chain, struct uvc_control *ctrl) in uvc_ctrl_filter_plf_mapping() argument
608 ret = uvc_query_ctrl(chain->dev, UVC_GET_CUR, ctrl->entity->id, in uvc_ctrl_filter_plf_mapping()
609 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_filter_plf_mapping()
618 ret = uvc_query_ctrl(chain->dev, UVC_SET_CUR, ctrl->entity->id, in uvc_ctrl_filter_plf_mapping()
619 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_filter_plf_mapping()
625 if (chain->dev->uvc_version < 0x150) in uvc_ctrl_filter_plf_mapping()
630 ret = uvc_query_ctrl(chain->dev, UVC_SET_CUR, ctrl->entity->id, in uvc_ctrl_filter_plf_mapping()
631 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_filter_plf_mapping()
639 uvc_query_ctrl(chain->dev, UVC_SET_CUR, ctrl->entity->id, in uvc_ctrl_filter_plf_mapping()
640 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_filter_plf_mapping()
[all …]
H A Duvc_v4l2.c50 static int uvc_control_add_xu_mapping(struct uvc_video_chain *chain, in uvc_control_add_xu_mapping() argument
110 ret = uvc_ctrl_add_mapping(chain, map); in uvc_control_add_xu_mapping()
124 static int uvc_ioctl_xu_ctrl_map(struct uvc_video_chain *chain, in uvc_ioctl_xu_ctrl_map() argument
131 uvc_dbg(chain->dev, CONTROL, in uvc_ioctl_xu_ctrl_map()
161 ret = uvc_ctrl_add_mapping(chain, map); in uvc_ioctl_xu_ctrl_map()
165 ret = uvc_control_add_xu_mapping(chain, map, xmap); in uvc_ioctl_xu_ctrl_map()
169 uvc_dbg(chain->dev, CONTROL, in uvc_ioctl_xu_ctrl_map()
581 handle->chain = stream->chain; in uvc_v4l2_open()
606 struct uvc_video_chain *chain = handle->chain; in uvc_ioctl_querycap() local
613 | chain->caps; in uvc_ioctl_querycap()
[all …]
H A Duvc_driver.c1294 struct uvc_video_chain *chain; in uvc_gpio_event() local
1303 chain = list_first_entry(&dev->chains, struct uvc_video_chain, list); in uvc_gpio_event()
1304 uvc_ctrl_status_event(chain, unit->controls, &new_val); in uvc_gpio_event()
1434 static int uvc_scan_chain_entity(struct uvc_video_chain *chain, in uvc_scan_chain_entity() argument
1442 uvc_dbg(chain->dev, DESCR, in uvc_scan_chain_entity()
1453 if (chain->processing != NULL) { in uvc_scan_chain_entity()
1454 uvc_dbg(chain->dev, DESCR, in uvc_scan_chain_entity()
1459 chain->processing = entity; in uvc_scan_chain_entity()
1469 if (chain->selector != NULL) { in uvc_scan_chain_entity()
1470 uvc_dbg(chain->dev, DESCR, in uvc_scan_chain_entity()
[all …]
/linux/tools/testing/selftests/net/forwarding/
H A 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 …]
/linux/fs/minix/
H A 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 …]
/linux/include/linux/qed/
H A 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 …]
/linux/tools/testing/selftests/drivers/net/ocelot/
H A Dtc_flower_chains.sh117 tc filter add dev $eth ingress chain 0 pref 49152 flower \
118 skip_sw action goto chain $(IS1 0)
119 tc filter add dev $eth ingress chain $(IS1 0) pref 49152 \
120 flower skip_sw action goto chain $(IS1 1)
121 tc filter add dev $eth ingress chain $(IS1 1) pref 49152 \
122 flower skip_sw action goto chain $(IS1 2)
123 tc filter add dev $eth ingress chain $(IS1 2) pref 49152 \
124 flower skip_sw action goto chain $(IS2 0 0)
135 tc filter add dev $eth ingress chain $(IS2 0 0) pref 49152 \
136 flower skip_sw action goto chain $(IS2 1 0)
[all …]
/linux/fs/ext4/
H A Dindirect.c146 Indirect chain[4], int *err) in ext4_get_branch()
149 Indirect *p = chain; in ext4_get_branch()
156 add_chain(chain, NULL, EXT4_I(inode)->i_data + *offsets); in ext4_get_branch()
537 Indirect chain[4]; in ext4_ind_map_blocks() local
554 partial = ext4_get_branch(inode, depth, offsets, chain, &err); in ext4_ind_map_blocks()
558 first_block = le32_to_cpu(chain[depth - 1].key); in ext4_ind_map_blocks()
564 blk = le32_to_cpu(*(chain[depth-1].p + count)); in ext4_ind_map_blocks()
586 for (i = partial - chain + 1; i < depth; i++) in ext4_ind_map_blocks()
623 indirect_blks = (chain + depth) - partial - 1; in ext4_ind_map_blocks()
636 offsets + (partial - chain), partial); in ext4_ind_map_blocks()
[all …]
/linux/fs/lockd/
H A 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)
236 struct hlist_head *chain; in nlmclnt_lookup_host() local
247 chain = &nlm_client_hosts[nlm_hash_address(sap)]; in nlmclnt_lookup_host()
[all …]
/linux/sound/
H A Dsound_core.c350 const int chain = unit % SOUND_STEP; in register_sound_special_device() local
355 switch (chain) { in register_sound_special_device()
401 sprintf(_name, "unknown%d", chain); in register_sound_special_device()
408 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, in register_sound_special_device()
519 static struct sound_unit *__look_for_unit(int chain, int unit) in __look_for_unit() argument
523 s=chains[chain]; in __look_for_unit()
535 int chain; in soundcore_open() local
540 chain=unit&0x0F; in soundcore_open()
541 if(chain==4 || chain==5) /* dsp/audio/dsp16 */ in soundcore_open()
545 chain=3; in soundcore_open()
[all …]
/linux/drivers/net/ethernet/mscc/
H A Docelot_flower.c28 static int ocelot_chain_to_block(int chain, bool ingress) in ocelot_chain_to_block() argument
33 if (chain == 0) in ocelot_chain_to_block()
41 if (chain == 0) in ocelot_chain_to_block()
45 if (chain == VCAP_IS1_CHAIN(lookup)) in ocelot_chain_to_block()
50 if (chain == VCAP_IS2_CHAIN(lookup, pag)) in ocelot_chain_to_block()
53 if (chain == OCELOT_PSFP_CHAIN) in ocelot_chain_to_block()
62 static int ocelot_chain_to_lookup(int chain) in ocelot_chain_to_lookup() argument
67 if (chain == 0) in ocelot_chain_to_lookup()
70 return (chain / VCAP_LOOKUP) % 10; in ocelot_chain_to_lookup()
76 static int ocelot_chain_to_pag(int chain) in ocelot_chain_to_pag() argument
[all …]
/linux/fs/xfs/
H A Dxfs_hooks.h40 void xfs_hooks_init(struct xfs_hooks *chain);
41 int xfs_hooks_add(struct xfs_hooks *chain, struct xfs_hook *hook);
42 void xfs_hooks_del(struct xfs_hooks *chain, struct xfs_hook *hook);
43 int xfs_hooks_call(struct xfs_hooks *chain, unsigned long action,
61 # define xfs_hooks_init(chain) ((void)0) argument
62 # define xfs_hooks_call(chain, val, priv) (NOTIFY_DONE) argument
/linux/include/linux/
H A Ddma-fence-chain.h79 struct dma_fence_chain *chain = to_dma_fence_chain(fence); in dma_fence_chain_contained() local
81 return chain ? chain->fence : fence; in dma_fence_chain_contained()
105 static inline void dma_fence_chain_free(struct dma_fence_chain *chain) in dma_fence_chain_free() argument
107 kfree(chain); in dma_fence_chain_free()
126 void dma_fence_chain_init(struct dma_fence_chain *chain,
/linux/kernel/
H A Dcpu_pm.c22 struct raw_notifier_head chain; member
25 .chain = RAW_NOTIFIER_INIT(cpu_pm_notifier.chain),
34 ret = raw_notifier_call_chain(&cpu_pm_notifier.chain, event, NULL); in cpu_pm_notify()
46 ret = raw_notifier_call_chain_robust(&cpu_pm_notifier.chain, event_up, event_down, NULL); in cpu_pm_notify_robust()
67 ret = raw_notifier_chain_register(&cpu_pm_notifier.chain, nb); in cpu_pm_register_notifier()
87 ret = raw_notifier_chain_unregister(&cpu_pm_notifier.chain, nb); in cpu_pm_unregister_notifier()

12345678910>>...14