| /OK3568_Linux_fs/kernel/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 119 addr = HINIC_CSR_API_CMD_STATUS_ADDR(chain->chain_type); in dump_api_chain_reg() [all …]
|
| /OK3568_Linux_fs/kernel/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->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 …]
|
| /OK3568_Linux_fs/kernel/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 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 …]
|
| /OK3568_Linux_fs/kernel/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 ($tcflags)" [all …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | effects.c | 1 /* SoX Effects chain (c) 2007 robs@users.sourceforge.net 89 /* Effects chain: */ 124 /* Add an effect to the chain. *in is the input signal for this effect. *out is 128 * ready for the next effect in the chain. 130 int sox_add_effect(sox_effects_chain_t * chain, sox_effect_t * effp, sox_signalinfo_t * in, sox_sig… in sox_add_effect() argument 136 effp->global_info = &chain->global_info; in sox_add_effect() 139 effp->in_encoding = chain->in_enc; in sox_add_effect() 140 effp->out_encoding = chain->out_enc; in sox_add_effect() 187 if (chain->length == chain->table_size) { in sox_add_effect() 188 chain->table_size += EFF_TABLE_STEP; in sox_add_effect() [all …]
|
| H A D | example1.c | 31 /* The function that will be called to input samples into the effects chain. 55 /* The function that will be called to output samples from the effects chain. 73 /* Outputting is the last `effect' in the effect chain so always passes in output_flow() 83 * chain; the only function needed for this example is `drain' */ 93 * chain; the only function needed for this example is `flow' */ 108 sox_effects_chain_t * chain; in main() local 125 /* Create an effects chain; some effects need to know about the input in main() 127 chain = sox_create_effects_chain(&in->encoding, &out->encoding); in main() 129 /* The first effect in the effect chain must be something that can source in main() 133 /* This becomes the first `effect' in the chain */ in main() [all …]
|
| H A D | example0.c | 36 sox_effects_chain_t * chain; in main() local 53 /* Create an effects chain; some effects need to know about the input in main() 55 chain = sox_create_effects_chain(&in->encoding, &out->encoding); in main() 57 /* The first effect in the effect chain must be something that can source in main() 62 /* This becomes the first `effect' in the chain */ in main() 63 assert(sox_add_effect(chain, e, &in->signal, &in->signal) == SOX_SUCCESS); in main() 69 /* Add the effect to the end of the effects processing chain: */ in main() 70 assert(sox_add_effect(chain, e, &in->signal, &in->signal) == SOX_SUCCESS); in main() 76 /* Add the effect to the end of the effects processing chain: */ in main() 77 assert(sox_add_effect(chain, e, &in->signal, &in->signal) == SOX_SUCCESS); in main() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | fs_chains.c | 63 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() 244 /* The root table(chain 0, prio 1, level 0) is required to be 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() [all …]
|
| /OK3568_Linux_fs/kernel/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 = 0; chain < AR9300_MAX_CHAINS; chain++) { in ar9003_hw_rtt_load_hist() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/crypto/marvell/cesa/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/net/batman-adv/ |
| H A D | fragmentation.c | 33 * batadv_frag_clear_chain() - delete entries in the fragment buffer chain 34 * @head: head of chain with entries. 35 * @dropped: whether the chain is cleared because all fragments are dropped 64 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() [all …]
|
| /OK3568_Linux_fs/kernel/net/sched/ |
| H A D | cls_api.c | 54 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/s390/cio/ |
| H A D | vfio_ccw_cp.c | 34 /* Guest physical address of the current chain. */ 36 /* Count of the valid ccws in chain. */ 291 * @head: address of the beginning of a CCW chain 292 * @len: number of CCWs within the chain 294 * Determine whether the address of a CCW (whether a new chain, 316 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() [all …]
|
| H A D | crw.c | 67 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 …]
|
| /OK3568_Linux_fs/kernel/include/linux/qed/ |
| H A D | qed_chain.h | 22 /* Chain is a single page (next ptr) is unrequired */ 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 …]
|
| /OK3568_Linux_fs/kernel/kernel/ |
| H A D | notifier.c | 18 * Notifier chain core routines. The exported routines below 54 * @nl: Pointer to head of the blocking notifier chain 100 * @nl: Pointer to head of the blocking notifier chain 106 * NOTE: It is important the @nl chain doesn't change between the two 126 * Atomic notifier chain routines. Registration and unregistration 131 * atomic_notifier_chain_register - Add notifier to an atomic notifier chain 132 * @nh: Pointer to head of the atomic notifier chain 133 * @n: New entry in notifier chain 135 * Adds a notifier to an atomic notifier chain. 153 * atomic_notifier_chain_unregister - Remove notifier from an atomic notifier chain [all …]
|
| /OK3568_Linux_fs/yocto/poky/scripts/ |
| H A D | oe-depends-dot | 41 def insert_dep_chain(chain, rdeps, alldeps): argument 43 insert elements to chain from rdeps, according to alldeps 45 # chain should at least contain one element 46 if len(chain) == 0: 51 if rdep in chain: 54 for i in range(0, len(chain)-1): 55 if chain[i] in alldeps[rdep] and rdep in alldeps[chain[i+1]]: 56 chain.insert(i+1, rdep) 59 if chain[-1] in alldeps[rdep] and rdep not in chain: 60 chain.append(rdep) [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/include/c++/10.3.1/ext/ |
| H A D | typelist.h | 67 struct chain in _GLIBCXX_VISIBILITY() struct 137 struct apply_<Fn, chain<Hd, Tl> > in _GLIBCXX_VISIBILITY() 159 struct apply_generator1_<Gn, chain<Hd, Tl> > in _GLIBCXX_VISIBILITY() 181 struct apply_generator2_<Gn, chain<Hd1, TlT>, chain<Hd2, TlV> > in _GLIBCXX_VISIBILITY() 203 struct append_<chain<Hd, Tl>, Typelist_Chain> in _GLIBCXX_VISIBILITY() 209 typedef chain<Hd, typename append_type::type> type; in _GLIBCXX_VISIBILITY() 219 struct append_<chain<Hd, Tl>, null_type> in _GLIBCXX_VISIBILITY() 221 typedef chain<Hd, Tl> type; in _GLIBCXX_VISIBILITY() 234 struct append_typelist_<chain<Hd, null_type> > in _GLIBCXX_VISIBILITY() 236 typedef chain<Hd, null_type> type; in _GLIBCXX_VISIBILITY() [all …]
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/include/c++/10.3.1/ext/ |
| H A D | typelist.h | 67 struct chain in _GLIBCXX_VISIBILITY() struct 137 struct apply_<Fn, chain<Hd, Tl> > in _GLIBCXX_VISIBILITY() 159 struct apply_generator1_<Gn, chain<Hd, Tl> > in _GLIBCXX_VISIBILITY() 181 struct apply_generator2_<Gn, chain<Hd1, TlT>, chain<Hd2, TlV> > in _GLIBCXX_VISIBILITY() 203 struct append_<chain<Hd, Tl>, Typelist_Chain> in _GLIBCXX_VISIBILITY() 209 typedef chain<Hd, typename append_type::type> type; in _GLIBCXX_VISIBILITY() 219 struct append_<chain<Hd, Tl>, null_type> in _GLIBCXX_VISIBILITY() 221 typedef chain<Hd, Tl> type; in _GLIBCXX_VISIBILITY() 234 struct append_typelist_<chain<Hd, null_type> > in _GLIBCXX_VISIBILITY() 236 typedef chain<Hd, null_type> type; in _GLIBCXX_VISIBILITY() [all …]
|
| /OK3568_Linux_fs/kernel/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+depth-1; /* the whole chain */ in get_block() [all …]
|
| /OK3568_Linux_fs/kernel/net/netfilter/ |
| H A D | nf_tables_offload.c | 263 static int nft_flow_offload_rule(struct nft_chain *chain, in nft_flow_offload_rule() argument 272 if (!nft_is_base_chain(chain)) in nft_flow_offload_rule() 275 basechain = nft_base_chain(chain); in nft_flow_offload_rule() 296 struct nft_chain *chain; in nft_flow_offload_unbind() local 299 chain = &basechain->chain; in nft_flow_offload_unbind() 300 list_for_each_entry(rule, &chain->rules, list) { in nft_flow_offload_unbind() 352 static int nft_block_offload_cmd(struct nft_base_chain *chain, in nft_block_offload_cmd() argument 360 nft_flow_block_offload_init(&bo, dev_net(dev), cmd, chain, &extack); in nft_block_offload_cmd() 366 return nft_block_setup(chain, &bo, cmd); in nft_block_offload_cmd() 457 static int nft_flow_offload_chain(struct nft_chain *chain, u8 *ppolicy, in nft_flow_offload_chain() argument [all …]
|
| H A D | nf_tables_core.c | 25 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() 85 const struct nft_chain *chain, in __nft_trace_verdict() argument 100 __nft_trace_packet(info, chain, type); in __nft_trace_verdict() 104 const struct nft_chain *chain, in nft_trace_verdict() argument 110 __nft_trace_verdict(info, chain, regs); in nft_trace_verdict() 148 static noinline void nft_update_chain_stats(const struct nft_chain *chain, in nft_update_chain_stats() argument 155 base_chain = nft_base_chain(chain); in nft_update_chain_stats() [all …]
|
| H A D | nf_tables_api.c | 128 struct nft_chain *chain, in nft_ctx_init() argument 135 ctx->chain = chain; in nft_ctx_init() 230 struct nft_chain *chain) in nf_tables_register_hook() argument 236 !nft_is_base_chain(chain)) in nf_tables_register_hook() 239 basechain = nft_base_chain(chain); in nf_tables_register_hook() 253 struct nft_chain *chain) in nf_tables_unregister_hook() argument 259 !nft_is_base_chain(chain)) in nf_tables_unregister_hook() 261 basechain = nft_base_chain(chain); in nf_tables_unregister_hook() 309 nft_activate_next(ctx->net, ctx->chain); in nft_trans_chain_add() 330 nft_deactivate_next(ctx->net, ctx->chain); in nft_delchain() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mscc/ |
| H A D | ocelot_flower.c | 12 * into the chain number. This is UAPI. 24 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() 34 /* Backwards compatibility with older, single-chain tc-flower 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() 52 /* Caller must ensure this is a valid IS1 or IS2 chain first, 55 static int ocelot_chain_to_lookup(int chain) in ocelot_chain_to_lookup() argument 57 /* Backwards compatibility with older, single-chain tc-flower in ocelot_chain_to_lookup() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-socfpga/ |
| H A D | scan_manager.c | 15 * Maximum polling loop to wait for IO scan chain engine becomes idle 41 * scan_chain_engine_is_idle() - Check if the JTAG scan chain is idle 44 * Function to check IO scan chain engine status and wait if the engine is 45 * is active. Poll the IO scan chain engine till maximum iteration reached. 69 * scan_mgr_jtag_io() - Access the JTAG chain 74 * Perform I/O on the JTAG chain 139 * scan_mgr_io_scan_chain_prg() - Program HPS IO Scan Chain 140 * @io_scan_chain_id: IO scan chain ID 155 * De-assert reinit if the IO scan chain is intended for HIO. In in scan_mgr_io_scan_chain_prg() 156 * this, its the chain 3. in scan_mgr_io_scan_chain_prg() [all …]
|