/Linux-v6.1/drivers/net/ethernet/huawei/hinic/ |
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 119 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in dump_api_chain_reg() [all …]
|
/Linux-v6.1/drivers/net/ethernet/qlogic/qed/ |
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->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-v6.1/drivers/dma-buf/ |
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 node 35 * Walk the chain to the next node. Returns the next fence or NULL if we are at 36 * the end of the chain. Garbage collects chain nodes which are already [all …]
|
/Linux-v6.1/tools/testing/selftests/net/forwarding/ |
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 ($tcflags)" [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
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)) ? FT_TBL_SZ : POOL_NEXT_SIZE; in mlx5_chains_create_table() 173 /* The root table(chain 0, prio 1, level 0) is required to be in mlx5_chains_create_table() 179 (chain == 0 && prio == 1 && level == 0)) { in mlx5_chains_create_table() 183 mlx5_get_fdb_sub_ns(chains->dev, chain) : in mlx5_chains_create_table() [all …]
|
/Linux-v6.1/drivers/net/wireless/ath/ath9k/ |
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 = 0; chain < AR9300_MAX_CHAINS; chain++) { in ar9003_hw_rtt_load_hist() [all …]
|
/Linux-v6.1/net/sched/ |
D | cls_api.c | 71 return jhash_3words(tp->chain->index, tp->prio, in destroy_obj_hashfn() 75 static void tcf_proto_signal_destroying(struct tcf_chain *chain, in tcf_proto_signal_destroying() argument 78 struct tcf_block *block = chain->block; in tcf_proto_signal_destroying() 89 return tp1->chain->index == tp2->chain->index && in tcf_proto_cmp() 94 static bool tcf_proto_exists_destroying(struct tcf_chain *chain, in tcf_proto_exists_destroying() argument 102 hash_for_each_possible_rcu(chain->block->proto_destroy_ht, iter, in tcf_proto_exists_destroying() 115 tcf_proto_signal_destroyed(struct tcf_chain *chain, struct tcf_proto *tp) in tcf_proto_signal_destroyed() argument 117 struct tcf_block *block = chain->block; in tcf_proto_signal_destroyed() 270 u32 prio, struct tcf_chain *chain, in tcf_proto_create() argument 289 tp->chain = chain; in tcf_proto_create() [all …]
|
/Linux-v6.1/drivers/crypto/marvell/cesa/ |
D | tdma.c | 51 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 …]
|
/Linux-v6.1/kernel/ |
D | notifier.c | 18 * Notifier chain core routines. The exported routines below 58 * @nl: Pointer to head of the blocking notifier chain 104 * @nl: Pointer to head of the blocking notifier chain 110 * NOTE: It is important the @nl chain doesn't change between the two 130 * Atomic notifier chain routines. Registration and unregistration 135 * atomic_notifier_chain_register - Add notifier to an atomic notifier chain 136 * @nh: Pointer to head of the atomic notifier chain 137 * @n: New entry in notifier chain 139 * Adds a notifier to an atomic notifier chain. 157 * atomic_notifier_chain_register_unique_prio - Add notifier to an atomic notifier chain [all …]
|
/Linux-v6.1/net/batman-adv/ |
D | fragmentation.c | 32 * batadv_frag_clear_chain() - delete entries in the fragment buffer chain 33 * @head: head of chain with entries. 34 * @dropped: whether the chain is cleared because all fragments are dropped 63 struct batadv_frag_table_entry *chain; in batadv_frag_purge_orig() local 67 chain = &orig_node->fragments[i]; in batadv_frag_purge_orig() 68 spin_lock_bh(&chain->lock); in batadv_frag_purge_orig() 70 if (!check_cb || check_cb(chain)) { in batadv_frag_purge_orig() 71 batadv_frag_clear_chain(&chain->fragment_list, true); in batadv_frag_purge_orig() 72 chain->size = 0; in batadv_frag_purge_orig() 75 spin_unlock_bh(&chain->lock); in batadv_frag_purge_orig() [all …]
|
/Linux-v6.1/drivers/s390/cio/ |
D | vfio_ccw_cp.c | 34 /* Guest physical address of the current chain. */ 36 /* Count of the valid ccws in chain. */ 333 * @head: address of the beginning of a CCW chain 334 * @len: number of CCWs within the chain 336 * Determine whether the address of a CCW (whether a new chain, 358 struct ccwchain *chain; in ccwchain_alloc() local 363 size = ((sizeof(*chain) + 7L) & -8L) + in ccwchain_alloc() 364 sizeof(*chain->ch_ccw) * len + in ccwchain_alloc() 365 sizeof(*chain->ch_pa) * len; in ccwchain_alloc() 366 chain = kzalloc(size, GFP_DMA | GFP_KERNEL); in ccwchain_alloc() [all …]
|
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() 90 "chain\n", __func__, chain); in crw_collect_info() 93 chain = tmp_crw.chn ? chain + 1 : 0; in crw_collect_info() 96 ccode = stcrw(&crw[chain]); in crw_collect_info() 101 crw[chain].slct, crw[chain].oflw, crw[chain].chn, in crw_collect_info() 102 crw[chain].rsc, crw[chain].anc, crw[chain].erc, in crw_collect_info() 103 crw[chain].rsid); in crw_collect_info() 105 if (crw[chain].oflw) { in crw_collect_info() [all …]
|
/Linux-v6.1/include/linux/qed/ |
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 - the address is required [all …]
|
/Linux-v6.1/include/linux/ |
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() 96 * @chain: chain node to free 103 static inline void dma_fence_chain_free(struct dma_fence_chain *chain) in dma_fence_chain_free() argument 105 kfree(chain); in dma_fence_chain_free() [all …]
|
/Linux-v6.1/net/netfilter/ |
D | nf_tables_offload.c | 263 static int nft_flow_offload_cmd(const struct nft_chain *chain, in nft_flow_offload_cmd() argument 272 if (!nft_is_base_chain(chain)) in nft_flow_offload_cmd() 275 basechain = nft_base_chain(chain); in nft_flow_offload_cmd() 283 static int nft_flow_offload_rule(const struct nft_chain *chain, in nft_flow_offload_rule() argument 290 return nft_flow_offload_cmd(chain, rule, flow, command, &cls_flow); in nft_flow_offload_rule() 293 int nft_flow_rule_stats(const struct nft_chain *chain, in nft_flow_rule_stats() argument 300 err = nft_flow_offload_cmd(chain, rule, NULL, FLOW_CLS_STATS, in nft_flow_rule_stats() 326 struct nft_chain *chain; in nft_flow_offload_unbind() local 329 chain = &basechain->chain; in nft_flow_offload_unbind() 330 list_for_each_entry(rule, &chain->rules, list) { in nft_flow_offload_unbind() [all …]
|
D | nf_tables_core.c | 25 const struct nft_chain *chain, in __nft_trace_packet() argument 31 info->chain = chain; in __nft_trace_packet() 39 const struct nft_chain *chain, in nft_trace_packet() argument 46 __nft_trace_packet(info, chain, type); in nft_trace_packet() 94 const struct nft_chain *chain, in __nft_trace_verdict() argument 116 __nft_trace_packet(info, chain, type); in __nft_trace_verdict() 120 const struct nft_chain *chain, in nft_trace_verdict() argument 126 __nft_trace_verdict(info, chain, regs); in nft_trace_verdict() 164 static noinline void nft_update_chain_stats(const struct nft_chain *chain, in nft_update_chain_stats() argument 171 base_chain = nft_base_chain(chain); in nft_update_chain_stats() [all …]
|
D | nf_tables_api.c | 131 struct nft_chain *chain, in nft_ctx_init() argument 138 ctx->chain = chain; in nft_ctx_init() 241 struct nft_chain *chain) in nf_tables_register_hook() argument 247 !nft_is_base_chain(chain)) in nf_tables_register_hook() 250 basechain = nft_base_chain(chain); in nf_tables_register_hook() 264 struct nft_chain *chain, in __nf_tables_unregister_hook() argument 271 !nft_is_base_chain(chain)) in __nf_tables_unregister_hook() 273 basechain = nft_base_chain(chain); in __nf_tables_unregister_hook() 288 struct nft_chain *chain) in nf_tables_unregister_hook() argument 290 return __nf_tables_unregister_hook(net, table, chain, false); in nf_tables_unregister_hook() [all …]
|
/Linux-v6.1/fs/minix/ |
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+depth-1; /* the whole chain */ in get_block() [all …]
|
/Linux-v6.1/drivers/media/usb/uvc/ |
D | uvc_ctrl.c | 886 static struct uvc_control *uvc_find_control(struct uvc_video_chain *chain, in uvc_find_control() argument 899 list_for_each_entry(entity, &chain->entities, chain) { in uvc_find_control() 906 uvc_dbg(chain->dev, CONTROL, "Control 0x%08x not found\n", in uvc_find_control() 912 static int uvc_ctrl_populate_cache(struct uvc_video_chain *chain, in uvc_ctrl_populate_cache() argument 918 ret = uvc_query_ctrl(chain->dev, UVC_GET_DEF, ctrl->entity->id, in uvc_ctrl_populate_cache() 919 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache() 927 ret = uvc_query_ctrl(chain->dev, UVC_GET_MIN, ctrl->entity->id, in uvc_ctrl_populate_cache() 928 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache() 935 ret = uvc_query_ctrl(chain->dev, UVC_GET_MAX, ctrl->entity->id, in uvc_ctrl_populate_cache() 936 chain->dev->intfnum, ctrl->info.selector, in uvc_ctrl_populate_cache() [all …]
|
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->entities, chain) { in uvc_mc_register_entities() 151 ret = uvc_mc_create_links(chain, entity); in uvc_mc_register_entities() [all …]
|
/Linux-v6.1/drivers/net/ethernet/mscc/ |
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 first, [all …]
|
/Linux-v6.1/tools/testing/selftests/drivers/net/ocelot/ |
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 $(IS1 2) pref 49152 \ [all …]
|
/Linux-v6.1/drivers/mtd/ |
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() 252 "Virtual Unit Chain %d!\n", thisVUC); in NFTL_foldchain() 257 512-byte block within the Chain. in NFTL_foldchain() 295 "in Virtual Unit Chain %d for block %d\n", in NFTL_foldchain() 304 "in Virtual Unit Chain %d for block %d\n", in NFTL_foldchain() 317 printk(KERN_WARNING "Infinite loop in Virtual Unit Chain 0x%x\n", in NFTL_foldchain() 360 pr_debug("Cannot fold Virtual Unit Chain %d in place. " in NFTL_foldchain() [all …]
|
/Linux-v6.1/fs/sysv/ |
D | itree.c | 91 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 …]
|
/Linux-v6.1/drivers/net/ethernet/toshiba/ |
D | spider_net.c | 59 "in tx chain"); 270 * spider_net_free_chain - free descriptor chain 272 * @chain: address of chain 277 struct spider_net_descr_chain *chain) in spider_net_free_chain() argument 281 descr = chain->ring; in spider_net_free_chain() 286 } while (descr != chain->ring); in spider_net_free_chain() 288 dma_free_coherent(&card->pdev->dev, chain->num_desc * sizeof(struct spider_net_hw_descr), in spider_net_free_chain() 289 chain->hwring, chain->dma_addr); in spider_net_free_chain() 293 * spider_net_init_chain - alloc and link descriptor chain 295 * @chain: address of chain [all …]
|