Lines Matching refs:sq

38 	struct otx2_snd_queue *sq;  in otx2_qos_sq_aura_pool_init()  local
76 sq = &qset->sq[qidx]; in otx2_qos_sq_aura_pool_init()
77 sq->sqb_count = 0; in otx2_qos_sq_aura_pool_init()
78 sq->sqb_ptrs = kcalloc(num_sqbs, sizeof(*sq->sqb_ptrs), GFP_KERNEL); in otx2_qos_sq_aura_pool_init()
79 if (!sq->sqb_ptrs) { in otx2_qos_sq_aura_pool_init()
89 sq->sqb_ptrs[sq->sqb_count++] = (u64)bufptr; in otx2_qos_sq_aura_pool_init()
96 if (!sq->sqb_ptrs[ptr]) in otx2_qos_sq_aura_pool_init()
98 iova = sq->sqb_ptrs[ptr]; in otx2_qos_sq_aura_pool_init()
106 sq->sqb_count = 0; in otx2_qos_sq_aura_pool_init()
107 kfree(sq->sqb_ptrs); in otx2_qos_sq_aura_pool_init()
120 struct otx2_snd_queue *sq; in otx2_qos_sq_free_sqbs() local
124 sq = &qset->sq[qidx]; in otx2_qos_sq_free_sqbs()
125 if (!sq->sqb_ptrs) in otx2_qos_sq_free_sqbs()
127 for (sqb = 0; sqb < sq->sqb_count; sqb++) { in otx2_qos_sq_free_sqbs()
128 if (!sq->sqb_ptrs[sqb]) in otx2_qos_sq_free_sqbs()
130 iova = sq->sqb_ptrs[sqb]; in otx2_qos_sq_free_sqbs()
138 sq->sqb_count = 0; in otx2_qos_sq_free_sqbs()
140 sq = &qset->sq[qidx]; in otx2_qos_sq_free_sqbs()
141 qmem_free(pfvf->dev, sq->sqe); in otx2_qos_sq_free_sqbs()
142 qmem_free(pfvf->dev, sq->tso_hdrs); in otx2_qos_sq_free_sqbs()
143 kfree(sq->sg); in otx2_qos_sq_free_sqbs()
144 kfree(sq->sqb_ptrs); in otx2_qos_sq_free_sqbs()
145 qmem_free(pfvf->dev, sq->timestamps); in otx2_qos_sq_free_sqbs()
147 memset((void *)sq, 0, sizeof(*sq)); in otx2_qos_sq_free_sqbs()
177 cn10k_sq_aq->sq.ena = 0; in otx2_qos_ctx_disable()
186 sq_aq->sq.ena = 0; in otx2_qos_ctx_disable()
263 struct otx2_snd_queue *sq; in otx2_qos_disable_sq() local
273 sq = &pfvf->qset.sq[sq_idx]; in otx2_qos_disable_sq()
274 if (!sq->sqb_ptrs) in otx2_qos_disable_sq()