/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_api_cmd.c | 49 #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 141 chain_busy(struct hinic_api_cmd_chain * chain) chain_busy() argument 222 prepare_api_cmd(struct hinic_api_cmd_chain * chain,enum hinic_node_id dest,void * cmd,u16 cmd_size) prepare_api_cmd() argument 266 prepare_cell(struct hinic_api_cmd_chain * chain,enum hinic_node_id dest,void * cmd,u16 cmd_size) prepare_cell() argument 277 cmd_chain_prod_idx_inc(struct hinic_api_cmd_chain * chain) cmd_chain_prod_idx_inc() argument 286 api_cmd_status_update(struct hinic_api_cmd_chain * chain) api_cmd_status_update() argument 319 wait_for_status_poll(struct hinic_api_cmd_chain * chain) wait_for_status_poll() argument 346 wait_for_api_cmd_completion(struct hinic_api_cmd_chain * chain) wait_for_api_cmd_completion() argument 380 api_cmd(struct hinic_api_cmd_chain * chain,enum hinic_node_id dest,u8 * cmd,u16 cmd_size) api_cmd() argument 418 hinic_api_cmd_write(struct hinic_api_cmd_chain * chain,enum hinic_node_id dest,u8 * cmd,u16 size) hinic_api_cmd_write() argument 434 api_cmd_hw_restart(struct hinic_api_cmd_chain * chain) api_cmd_hw_restart() argument 469 api_cmd_ctrl_init(struct hinic_api_cmd_chain * chain) api_cmd_ctrl_init() argument 499 api_cmd_set_status_addr(struct hinic_api_cmd_chain * chain) api_cmd_set_status_addr() argument 517 api_cmd_set_num_cells(struct hinic_api_cmd_chain * chain) api_cmd_set_num_cells() argument 531 api_cmd_head_init(struct hinic_api_cmd_chain * chain) api_cmd_head_init() argument 549 api_cmd_chain_hw_clean(struct hinic_api_cmd_chain * chain) api_cmd_chain_hw_clean() argument 572 api_cmd_chain_hw_init(struct hinic_api_cmd_chain * chain) api_cmd_chain_hw_init() argument 599 free_cmd_buf(struct hinic_api_cmd_chain * chain,int cell_idx) free_cmd_buf() argument 620 alloc_cmd_buf(struct hinic_api_cmd_chain * chain,struct hinic_api_cmd_cell * cell,int cell_idx) alloc_cmd_buf() argument 666 api_cmd_create_cell(struct hinic_api_cmd_chain * chain,int cell_idx,struct hinic_api_cmd_cell * pre_node,struct hinic_api_cmd_cell ** node_vaddr) api_cmd_create_cell() argument 725 api_cmd_destroy_cell(struct hinic_api_cmd_chain * chain,int cell_idx) api_cmd_destroy_cell() argument 761 api_cmd_destroy_cells(struct hinic_api_cmd_chain * chain,int num_cells) api_cmd_destroy_cells() argument 776 api_cmd_create_cells(struct hinic_api_cmd_chain * chain) api_cmd_create_cells() argument 812 api_chain_init(struct hinic_api_cmd_chain * chain,struct hinic_api_cmd_chain_attr * attr) api_chain_init() argument 849 api_chain_free(struct hinic_api_cmd_chain * chain) api_chain_free() argument 869 struct hinic_api_cmd_chain *chain; api_cmd_create_chain() local 913 api_cmd_destroy_chain(struct hinic_api_cmd_chain * chain) api_cmd_destroy_chain() argument 927 hinic_api_cmd_init(struct hinic_api_cmd_chain ** chain,struct hinic_hwif * hwif) hinic_api_cmd_init() argument 976 hinic_api_cmd_free(struct hinic_api_cmd_chain ** chain) hinic_api_cmd_free() argument [all...] |
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_chain.c | 10 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 in qed_chain_init() 46 qed_chain_init_next_ptr_elem(const struct qed_chain * chain,void * virt_curr,void * virt_next,dma_addr_t phys_next) qed_chain_init_next_ptr_elem() argument 60 qed_chain_init_mem(struct qed_chain * chain,void * virt_addr,dma_addr_t phys_addr) qed_chain_init_mem() argument 68 qed_chain_free_next_ptr(struct qed_dev * cdev,struct qed_chain * chain) qed_chain_free_next_ptr() argument 96 qed_chain_free_single(struct qed_dev * cdev,struct qed_chain * chain) qed_chain_free_single() argument 105 qed_chain_free_pbl(struct qed_dev * cdev,struct qed_chain * chain) qed_chain_free_pbl() argument 138 qed_chain_free(struct qed_dev * cdev,struct qed_chain * chain) qed_chain_free() argument 199 qed_chain_alloc_next_ptr(struct qed_dev * cdev,struct qed_chain * chain) qed_chain_alloc_next_ptr() argument 233 qed_chain_alloc_single(struct qed_dev * cdev,struct qed_chain * chain) qed_chain_alloc_single() argument 249 qed_chain_alloc_pbl(struct qed_dev * cdev,struct qed_chain * chain) qed_chain_alloc_pbl() argument 320 qed_chain_alloc(struct qed_dev * cdev,struct qed_chain * chain,struct qed_chain_init_params * params) qed_chain_alloc() argument [all...] |
/linux/drivers/dma-buf/ |
H A D | dma-fence-chain.c | 3 * fence-chain: chain fences together in a timeline 10 #include <linux/dma-fence-chain.h> 16 * @chain: chain node to get the previous node from 19 * chain node. 21 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() 32 * dma_fence_chain_walk - chain walking function 33 * @fence: current chain nod 41 struct dma_fence_chain *chain, *prev_chain; dma_fence_chain_walk() local 92 struct dma_fence_chain *chain; dma_fence_chain_find_seqno() local 124 struct dma_fence_chain *chain; dma_fence_chain_irq_work() local 137 struct dma_fence_chain *chain; dma_fence_chain_cb() local 180 struct dma_fence_chain *chain = to_dma_fence_chain(fence); dma_fence_chain_release() local 240 dma_fence_chain_init(struct dma_fence_chain * chain,struct dma_fence * prev,struct dma_fence * fence,uint64_t seqno) dma_fence_chain_init() argument [all...] |
/linux/tools/testing/selftests/net/forwarding/ |
H A D | tc_chains.sh | 38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 45 check_fail $? "matched on filter in unreachable chain" 47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 50 log_test "unreachable chain ($tcflags)" 57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 62 $tcflags dst_mac $h2mac action goto chain 1 71 check_err $? "Did not match on correct filter with goto chain action" 74 check_err $? "Did not match on correct filter in chain 1" 78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 81 log_test "gact goto chain ( [all...] |
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | fs_chains.c | 43 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() 174 /* The root table(chain 0, prio 1, level 0) is required to be 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() 218 create_chain_restore(struct fs_chain * chain) create_chain_restore() argument 297 destroy_chain_restore(struct fs_chain * chain) destroy_chain_restore() argument 312 mlx5_chains_create_chain(struct mlx5_fs_chains * chains,u32 chain) mlx5_chains_create_chain() argument 344 mlx5_chains_destroy_chain(struct fs_chain * chain) mlx5_chains_destroy_chain() argument 356 mlx5_chains_get_chain(struct mlx5_fs_chains * chains,u32 chain) mlx5_chains_get_chain() argument 374 mlx5_chains_add_miss_rule(struct fs_chain * chain,struct mlx5_flow_table * ft,struct mlx5_flow_table * next_ft) mlx5_chains_add_miss_rule() argument 405 struct fs_chain *chain = prio->chain; mlx5_chains_update_prio_prevs() local 459 mlx5_chains_put_chain(struct fs_chain * chain) mlx5_chains_put_chain() argument 467 mlx5_chains_create_prio(struct mlx5_fs_chains * chains,u32 chain,u32 prio,u32 level) mlx5_chains_create_prio() argument 587 struct fs_chain *chain = prio->chain; mlx5_chains_destroy_prio() local 603 mlx5_chains_get_table(struct mlx5_fs_chains * chains,u32 chain,u32 prio,u32 level) mlx5_chains_get_table() argument 656 mlx5_chains_put_table(struct mlx5_fs_chains * chains,u32 chain,u32 prio,u32 level) mlx5_chains_put_table() argument 697 u32 chain, prio, level; mlx5_chains_create_global_table() local 790 mlx5_chains_get_chain_mapping(struct mlx5_fs_chains * chains,u32 chain,u32 * chain_mapping) mlx5_chains_get_chain_mapping() argument [all...] |
/linux/drivers/net/wireless/ath/ath9k/ |
H A D | ar9003_rtt.c | 29 * There is an internal table (i.e. the rtt) for each chain (or bank). 72 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 in ar9003_hw_rtt_load_hist() 121 ar9003_hw_patch_rtt(struct ath_hw * ah,int index,int chain) ar9003_hw_patch_rtt() argument 142 ar9003_hw_rtt_fill_hist_entry(struct ath_hw * ah,u8 chain,u32 index) ar9003_hw_rtt_fill_hist_entry() argument 171 int chain, i; ar9003_hw_rtt_fill_hist() local 193 int chain, i; ar9003_hw_rtt_clear_hist() local [all...] |
H A D | link.c | 182 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() 235 "Timeout waiting for paprd training on TX chain %d\n", in ath_paprd_send_frame() 236 chain); in ath_paprd_send_frame() 252 int chain; ath_paprd_calibrate() local [all...] |
/linux/net/netfilter/ |
H A D | nft_immediate.c | 74 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 in nft_immediate_activate() 129 nft_immediate_chain_deactivate(const struct nft_ctx * ctx,struct nft_chain * chain,enum nft_trans_phase phase) nft_immediate_chain_deactivate() argument 148 struct nft_chain *chain; nft_immediate_deactivate() local 193 struct nft_chain *chain; nft_immediate_destroy() local [all...] |
/linux/kernel/ |
H A D | notifier.c | 13 * Notifier chain core routines. The exported routines below 55 * @nl: Pointer to head of the blocking notifier chain 102 * @nl: Pointer to head of the blocking notifier chain 108 * NOTE: It is important the @nl chain doesn't change between the two 128 * Atomic notifier chain routines. Registration and unregistration 133 * atomic_notifier_chain_register - Add notifier to an atomic notifier chain 134 * @nh: Pointer to head of the atomic notifier chain 135 * @n: New entry in notifier chain 137 * Adds a notifier to an atomic notifier chain. 155 * atomic_notifier_chain_register_unique_prio - Add notifier to an atomic notifier chain [all...] |
/linux/net/batman-adv/ |
H A D | fragmentation.c | 31 * batadv_frag_clear_chain() - delete entries in the fragment buffer chain 32 * @head: head of chain with entries. 33 * @dropped: whether the chain is cleared because all fragments are dropped 62 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 in batadv_frag_purge_orig() 106 batadv_frag_init_chain(struct batadv_frag_table_entry * chain,u16 seqno) batadv_frag_init_chain() argument 140 struct batadv_frag_table_entry *chain; batadv_frag_insert_packet() local 247 batadv_frag_merge_packets(struct hlist_head * chain) batadv_frag_merge_packets() argument [all...] |
/linux/net/sched/ |
H A D | cls_api.c | 54 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 2245 struct tcf_chain *chain; tc_new_tfilter() local 2478 struct tcf_chain *chain = NULL; tc_del_tfilter() local 2637 struct tcf_chain *chain = NULL; tc_get_tfilter() local 2770 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 2839 struct tcf_chain *chain, *chain_prev; tc_dump_tfilter() local 2997 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 3055 tc_chain_tmplt_add(struct tcf_chain * chain,struct net * net,struct nlattr ** tca,struct netlink_ext_ack * extack) tc_chain_tmplt_add() argument 3114 struct tcf_chain *chain; tc_ctl_chain() local 3244 struct tcf_chain *chain; tc_dump_chain() local [all...] |
/linux/include/linux/qed/ |
H A D | qed_chain.h | 22 /* Chain is a single page (next ptr) is not required */ 30 QED_CHAIN_USE_TO_PRODUCE, /* Chain starts empty */ 31 QED_CHAIN_USE_TO_CONSUME, /* Chain starts full */ 32 QED_CHAIN_USE_TO_CONSUME_PRODUCE, /* Chain starts empty */ 36 /* The chain's size/prod/cons are kept in 16-bit variables */ 39 /* The chain's size/prod/cons are kept in 32-bit variables */ 76 /* Fastpath portion of the chain - required for commands such 88 * chain pages, respectively to the physical addresses 120 /* Slowpath of the chain - required for initialization and destruction, 133 /* Address of first page of the chain 186 qed_chain_get_prod_idx(const struct qed_chain * chain) qed_chain_get_prod_idx() argument 191 qed_chain_get_cons_idx(const struct qed_chain * chain) qed_chain_get_cons_idx() argument 196 qed_chain_get_prod_idx_u32(const struct qed_chain * chain) qed_chain_get_prod_idx_u32() argument 201 qed_chain_get_cons_idx_u32(const struct qed_chain * chain) qed_chain_get_cons_idx_u32() argument 206 qed_chain_get_elem_used(const struct qed_chain * chain) qed_chain_get_elem_used() argument 223 qed_chain_get_elem_left(const struct qed_chain * chain) qed_chain_get_elem_left() argument 228 qed_chain_get_elem_used_u32(const struct qed_chain * chain) qed_chain_get_elem_used_u32() argument 245 qed_chain_get_elem_left_u32(const struct qed_chain * chain) qed_chain_get_elem_left_u32() argument 250 qed_chain_get_usable_per_page(const struct qed_chain * chain) qed_chain_get_usable_per_page() argument 255 qed_chain_get_unusable_per_page(const struct qed_chain * chain) qed_chain_get_unusable_per_page() argument 260 qed_chain_get_page_cnt(const struct qed_chain * chain) qed_chain_get_page_cnt() argument 265 qed_chain_get_pbl_phys(const struct qed_chain * chain) qed_chain_get_pbl_phys() argument [all...] |
/linux/drivers/s390/cio/ |
H A D | crw.c | 66 unsigned int chain; in crw_collect_info() local 73 chain = 0; in crw_collect_info() 77 if (unlikely(chain > 1)) { in crw_collect_info() 89 "chain\n", __func__, chain); in crw_collect_info() 92 chain = tmp_crw.chn ? chain + 1 : 0; in crw_collect_info() 95 ccode = stcrw(&crw[chain]); in crw_collect_info() 100 crw[chain].slct, crw[chain] in crw_collect_info() [all...] |
H A D | vfio_ccw_cp.c | 34 /* Guest physical address of the current chain. */ 36 /* Count of the valid ccws in chain. */ 294 * @head: address of the beginning of a CCW chain 295 * @len: number of CCWs within the chain 297 * Determine whether the address of a CCW (whether a new chain, 320 struct ccwchain *chain; in ccwchain_alloc() local 322 chain = kzalloc(sizeof(*chain), GFP_KERNEL); in ccwchain_alloc() 323 if (!chain) in ccwchain_alloc() 326 chain in ccwchain_alloc() 344 ccwchain_free(struct ccwchain * chain) ccwchain_free() argument 353 ccwchain_cda_free(struct ccwchain * chain,int idx) ccwchain_cda_free() argument 406 struct ccwchain *chain; tic_target_chain_exists() local 425 struct ccwchain *chain; ccwchain_handle_ccw() local 465 ccwchain_loop_tic(struct ccwchain * chain,struct channel_program * cp) ccwchain_loop_tic() argument 759 struct ccwchain *chain, *temp; cp_free() local 814 struct ccwchain *chain; cp_prefetch() local 857 struct ccwchain *chain; cp_get_orb() local 904 struct ccwchain *chain; cp_update_scsw() local 950 struct ccwchain *chain; cp_iova_pinned() local [all...] |
/linux/drivers/crypto/marvell/cesa/ |
H A D | tdma.c | 42 if (engine->chain_sw.first == dreq->chain.first) { in mv_cesa_dma_step() 46 engine->chain_hw.first = dreq->chain.first; in mv_cesa_dma_step() 47 engine->chain_hw.last = dreq->chain.last; in mv_cesa_dma_step() 60 writel_relaxed(dreq->chain.first->cur_dma, in mv_cesa_dma_step() 71 for (tdma = dreq->chain.first; tdma;) { in mv_cesa_dma_cleanup() 84 dreq->chain.first = NULL; in mv_cesa_dma_cleanup() 85 dreq->chain.last = NULL; in mv_cesa_dma_cleanup() 93 for (tdma = dreq->chain.first; tdma; tdma = tdma->next) { in mv_cesa_dma_prepare() 111 * Break the DMA chain if the request being queued needs the IV in mv_cesa_tdma_chain() 114 if (!last || dreq->chain in mv_cesa_tdma_chain() 203 mv_cesa_dma_add_desc(struct mv_cesa_tdma_chain * chain,gfp_t flags) mv_cesa_dma_add_desc() argument 226 mv_cesa_dma_add_result_op(struct mv_cesa_tdma_chain * chain,dma_addr_t src,u32 size,u32 flags,gfp_t gfp_flags) mv_cesa_dma_add_result_op() argument 260 mv_cesa_dma_add_op(struct mv_cesa_tdma_chain * chain,const struct mv_cesa_op_ctx * op_templ,bool skip_ctx,gfp_t flags) mv_cesa_dma_add_op() argument 292 mv_cesa_dma_add_data_transfer(struct mv_cesa_tdma_chain * chain,dma_addr_t dst,dma_addr_t src,u32 size,u32 flags,gfp_t gfp_flags) mv_cesa_dma_add_data_transfer() argument 312 mv_cesa_dma_add_dummy_launch(struct mv_cesa_tdma_chain * chain,gfp_t flags) mv_cesa_dma_add_dummy_launch() argument 320 mv_cesa_dma_add_dummy_end(struct mv_cesa_tdma_chain * chain,gfp_t flags) mv_cesa_dma_add_dummy_end() argument 333 mv_cesa_dma_add_op_transfers(struct mv_cesa_tdma_chain * chain,struct mv_cesa_dma_iter * dma_iter,struct mv_cesa_sg_dma_iter * sgiter,gfp_t gfp_flags) mv_cesa_dma_add_op_transfers() argument [all...] |
/linux/include/linux/ |
H A D | dma-fence-chain.h | 3 * fence-chain: chain fences together in a timeline 18 * struct dma_fence_chain - fence to represent an node of a fence chain 20 * @prev: previous fence of the chain 35 * complection of the fence chain. Never used at the same time 74 * inside the chain object, otherwise it returns the fence itself. 79 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() 98 * @chain 105 dma_fence_chain_free(struct dma_fence_chain * chain) dma_fence_chain_free() argument [all...] |
/linux/fs/minix/ |
H A D | itree_common.c | 33 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 in get_block() 305 Indirect chain[DEPTH]; truncate() local [all...] |
/linux/drivers/media/usb/uvc/ |
H A D | uvc_ctrl.c | 573 struct uvc_video_chain *chain, struct uvc_control *ctrl) in uvc_ctrl_filter_plf_mapping() argument 586 ret = uvc_query_ctrl(chain->dev, UVC_GET_CUR, ctrl->entity->id, in uvc_ctrl_filter_plf_mapping() 587 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_filter_plf_mapping() 596 ret = uvc_query_ctrl(chain->dev, UVC_SET_CUR, ctrl->entity->id, in uvc_ctrl_filter_plf_mapping() 597 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_filter_plf_mapping() 603 if (chain->dev->uvc_version < 0x150) in uvc_ctrl_filter_plf_mapping() 608 ret = uvc_query_ctrl(chain->dev, UVC_SET_CUR, ctrl->entity->id, in uvc_ctrl_filter_plf_mapping() 609 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_filter_plf_mapping() 617 uvc_query_ctrl(chain->dev, UVC_SET_CUR, ctrl->entity->id, in uvc_ctrl_filter_plf_mapping() 618 chain in uvc_ctrl_filter_plf_mapping() 1173 uvc_find_control(struct uvc_video_chain * chain,u32 v4l2_id,struct uvc_control_mapping ** mapping) uvc_find_control() argument 1201 uvc_ctrl_populate_cache(struct uvc_video_chain * chain,struct uvc_control * ctrl) uvc_ctrl_populate_cache() argument 1258 __uvc_ctrl_load_cur(struct uvc_video_chain * chain,struct uvc_control * ctrl) __uvc_ctrl_load_cur() argument 1294 __uvc_ctrl_get(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,s32 * value) __uvc_ctrl_get() argument 1314 __uvc_query_v4l2_class(struct uvc_video_chain * chain,u32 req_id,u32 found_id) __uvc_query_v4l2_class() argument 1339 uvc_query_v4l2_class(struct uvc_video_chain * chain,u32 req_id,u32 found_id,struct v4l2_query_ext_ctrl * v4l2_ctrl) uvc_query_v4l2_class() argument 1400 uvc_ctrl_is_accessible(struct uvc_video_chain * chain,u32 v4l2_id,const struct v4l2_ext_controls * ctrls,unsigned long ioctl) uvc_ctrl_is_accessible() argument 1492 __uvc_queryctrl_boundaries(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,struct v4l2_query_ext_ctrl * v4l2_ctrl) __uvc_queryctrl_boundaries() argument 1577 __uvc_query_v4l2_ctrl(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,struct v4l2_query_ext_ctrl * v4l2_ctrl) __uvc_query_v4l2_ctrl() argument 1658 uvc_query_v4l2_ctrl(struct uvc_video_chain * chain,struct v4l2_query_ext_ctrl * v4l2_ctrl) uvc_query_v4l2_ctrl() argument 1709 uvc_query_v4l2_menu(struct uvc_video_chain * chain,struct v4l2_querymenu * query_menu) uvc_query_v4l2_menu() argument 1779 uvc_ctrl_fill_event(struct uvc_video_chain * chain,struct v4l2_event * ev,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,s32 value,u32 changes) uvc_ctrl_fill_event() argument 1809 uvc_ctrl_send_event(struct uvc_video_chain * chain,struct uvc_fh * handle,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,s32 value,u32 changes) uvc_ctrl_send_event() argument 1835 uvc_ctrl_send_slave_event(struct uvc_video_chain * chain,struct uvc_fh * handle,struct uvc_control * master,u32 slave_id) uvc_ctrl_send_slave_event() argument 1899 uvc_ctrl_status_event(struct uvc_video_chain * chain,struct uvc_control * ctrl,const u8 * data) uvc_ctrl_status_event() argument 1963 uvc_ctrl_status_event_async(struct urb * urb,struct uvc_video_chain * chain,struct uvc_control * ctrl,const u8 * data) uvc_ctrl_status_event_async() argument 2151 uvc_ctrl_begin(struct uvc_video_chain * chain) uvc_ctrl_begin() argument 2254 struct uvc_video_chain *chain = handle->chain; __uvc_ctrl_commit() local 2288 uvc_mapping_get_xctrl_compound(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,u32 which,struct v4l2_ext_control * xctrl) uvc_mapping_get_xctrl_compound() argument 2351 uvc_mapping_get_xctrl_std(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,u32 which,struct v4l2_ext_control * xctrl) uvc_mapping_get_xctrl_std() argument 2389 uvc_mapping_get_xctrl(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,u32 which,struct v4l2_ext_control * xctrl) uvc_mapping_get_xctrl() argument 2400 uvc_ctrl_get(struct uvc_video_chain * chain,u32 which,struct v4l2_ext_control * xctrl) uvc_ctrl_get() argument 2416 uvc_ctrl_clamp(struct uvc_video_chain * chain,struct uvc_control * ctrl,struct uvc_control_mapping * mapping,s32 * value_in_out) uvc_ctrl_clamp() argument 2536 struct uvc_video_chain *chain = handle->chain; uvc_ctrl_set() local 2746 uvc_xu_ctrl_query(struct uvc_video_chain * chain,struct uvc_xu_control_query * xqry) uvc_xu_ctrl_query() argument 2944 __uvc_ctrl_add_mapping(struct uvc_video_chain * chain,struct uvc_control * ctrl,const struct uvc_control_mapping * mapping) __uvc_ctrl_add_mapping() argument 3027 uvc_ctrl_add_mapping(struct uvc_video_chain * chain,const struct uvc_control_mapping * mapping) uvc_ctrl_add_mapping() argument 3179 uvc_ctrl_init_ctrl(struct uvc_video_chain * chain,struct uvc_control * ctrl) uvc_ctrl_init_ctrl() argument 3235 uvc_ctrl_init_chain(struct uvc_video_chain * chain) uvc_ctrl_init_chain() argument 3293 struct uvc_video_chain *chain; uvc_ctrl_init_device() local [all...] |
H A D | uvc_entity.c | 17 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 122 ret = v4l2_device_register_subdev(&chain->dev->vdev, in uvc_mc_init_entity() 135 int uvc_mc_register_entities(struct uvc_video_chain *chain) in uvc_mc_register_entities() argument 140 list_for_each_entry(entity, &chain->entities, chain) { in uvc_mc_register_entities() 141 ret = uvc_mc_init_entity(chain, entity); in uvc_mc_register_entities() 143 dev_info(&chain->dev->udev->dev, in uvc_mc_register_entities() 150 list_for_each_entry(entity, &chain in uvc_mc_register_entities() [all...] |
H A D | uvc_v4l2.c | 50 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() 604 handle->chain = stream->chain; in uvc_v4l2_open() 630 struct uvc_video_chain *chain in uvc_ioctl_querycap() local 680 struct uvc_video_chain *chain = handle->chain; uvc_ioctl_enum_input() local 722 struct uvc_video_chain *chain = handle->chain; uvc_ioctl_g_input() local 751 struct uvc_video_chain *chain = handle->chain; uvc_ioctl_s_input() local 785 struct uvc_video_chain *chain = handle->chain; uvc_ioctl_query_ext_ctrl() local 790 uvc_ctrl_check_access(struct uvc_video_chain * chain,struct v4l2_ext_controls * ctrls,unsigned long ioctl) uvc_ctrl_check_access() argument 813 struct uvc_video_chain *chain = handle->chain; uvc_ioctl_g_ext_ctrls() local 860 struct uvc_video_chain *chain = handle->chain; uvc_ioctl_s_try_ext_ctrls() local 913 struct uvc_video_chain *chain = handle->chain; uvc_ioctl_querymenu() local 1068 struct uvc_video_chain *chain = handle->chain; uvc_ioctl_default() local [all...] |
/linux/tools/testing/selftests/tc-testing/tc-tests/infra/ |
H A D | filter.json | 4 "name": "Soft lockup alarm will be not generated after delete the prio 0 filter of the chain", 7 "chain" 14 "$TC chain add dev $DUMMY", 15 "$TC filter del dev $DUMMY chain 0 parent 1: prio 0" 17 "cmdUnderTest": "$TC filter add dev $DUMMY chain 0 parent 1:", 19 "verifyCmd": "$TC chain ls dev $DUMMY", 20 "matchPattern": "chain parent 1: chain 0",
|
/linux/fs/xfs/ |
H A D | xfs_hooks.c | 15 /* Initialize a notifier chain. */ 18 struct xfs_hooks *chain) in xfs_hooks_init() argument 20 BLOCKING_INIT_NOTIFIER_HEAD(&chain->head); in xfs_hooks_init() 26 struct xfs_hooks *chain, in xfs_hooks_add() argument 32 return blocking_notifier_chain_register(&chain->head, &hook->nb); in xfs_hooks_add() 38 struct xfs_hooks *chain, in xfs_hooks_del() argument 41 blocking_notifier_chain_unregister(&chain->head, &hook->nb); in xfs_hooks_del() 47 struct xfs_hooks *chain, in xfs_hooks_call() argument 51 return blocking_notifier_call_chain(&chain->head, val, priv); in xfs_hooks_call()
|
/linux/tools/testing/selftests/drivers/net/ocelot/ |
H A D | tc_flower_chains.sh | 19 # Helpers to map a VCAP IS1 and VCAP IS2 lookup and policy to a chain number 93 # separate chain number. For correct rule offloading, it is mandatory that each 97 # A chain can only be used if there is a GOTO action correctly set up from the 117 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 [all...] |
/linux/drivers/mtd/ |
H A D | nftlcore.c | 188 * when the give Virtual Unit Chain 192 /* For a given Virtual Unit Chain: find or create a free block and in NFTL_findfreeblock() 193 add it to the chain */ in NFTL_findfreeblock() 194 /* We're passed the number of the last EUN in the chain, to save us from in NFTL_findfreeblock() 271 "Virtual Unit Chain %d!\n", thisVUC); in NFTL_foldchain() 276 512-byte block within the Chain. in NFTL_foldchain() 314 "in Virtual Unit Chain %d for block %d\n", in NFTL_foldchain() 323 "in Virtual Unit Chain %d for block %d\n", in NFTL_foldchain() 336 printk(KERN_WARNING "Infinite loop in Virtual Unit Chain 0x%x\n", in NFTL_foldchain() 379 pr_debug("Cannot fold Virtual Unit Chain in NFTL_foldchain() 480 u16 chain, EUN; NFTL_makefreeblock() local [all...] |
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_flower.c | 13 * into the chain number. This is UAPI. 24 /* PSFP chain and block ID */ 28 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() 38 /* Backwards compatibility with older, single-chain tc-flower 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() 59 /* Caller must ensure this is a valid IS1 or IS2 chain firs 62 ocelot_chain_to_lookup(int chain) ocelot_chain_to_lookup() argument 76 ocelot_chain_to_pag(int chain) ocelot_chain_to_pag() argument 92 ocelot_is_goto_target_valid(int goto_target,int chain,bool ingress) ocelot_is_goto_target_valid() argument 145 ocelot_find_vcap_filter_that_points_at(struct ocelot * ocelot,int chain) ocelot_find_vcap_filter_that_points_at() argument 266 int i, chain, egress_port; ocelot_flower_parse_action() local 900 int chain = f->common.chain_index; ocelot_cls_flower_replace() local [all...] |