Lines Matching refs:alink

108 nfp_abm_find_band_for_prio(struct nfp_abm_link *alink, unsigned int prio)  in nfp_abm_find_band_for_prio()  argument
112 list_for_each_entry(iter, &alink->dscp_map, list) in nfp_abm_find_band_for_prio()
116 return alink->def_band; in nfp_abm_find_band_for_prio()
119 static int nfp_abm_update_band_map(struct nfp_abm_link *alink) in nfp_abm_update_band_map() argument
122 struct nfp_abm *abm = alink->abm; in nfp_abm_update_band_map()
125 alink->has_prio = !list_empty(&alink->dscp_map); in nfp_abm_update_band_map()
139 word = &alink->prio_map[i / prios_per_word]; in nfp_abm_update_band_map()
142 band = nfp_abm_find_band_for_prio(alink, i << base_shift); in nfp_abm_update_band_map()
149 nfp_abm_qdisc_offload_update(alink); in nfp_abm_update_band_map()
151 return nfp_abm_ctrl_prio_map_update(alink, alink->prio_map); in nfp_abm_update_band_map()
155 nfp_abm_u32_knode_delete(struct nfp_abm_link *alink, in nfp_abm_u32_knode_delete() argument
160 list_for_each_entry(iter, &alink->dscp_map, list) in nfp_abm_u32_knode_delete()
164 nfp_abm_update_band_map(alink); in nfp_abm_u32_knode_delete()
170 nfp_abm_u32_knode_replace(struct nfp_abm_link *alink, in nfp_abm_u32_knode_replace() argument
179 if (!nfp_abm_u32_check_knode(alink->abm, knode, proto, extack)) in nfp_abm_u32_knode_replace()
189 list_for_each_entry(iter, &alink->dscp_map, list) { in nfp_abm_u32_knode_replace()
209 list_add(&match->list, &alink->dscp_map); in nfp_abm_u32_knode_replace()
216 err = nfp_abm_update_band_map(alink); in nfp_abm_u32_knode_replace()
223 nfp_abm_u32_knode_delete(alink, knode); in nfp_abm_u32_knode_replace()
232 struct nfp_abm_link *alink; in nfp_abm_setup_tc_block_cb() local
234 alink = repr->app_priv; in nfp_abm_setup_tc_block_cb()
254 return nfp_abm_u32_knode_replace(alink, &cls_u32->knode, in nfp_abm_setup_tc_block_cb()
258 nfp_abm_u32_knode_delete(alink, &cls_u32->knode); in nfp_abm_setup_tc_block_cb()