Lines Matching refs:csq

1100 					    &priv->cmq.csq : &priv->cmq.crq;  in hns_roce_init_cmq_ring()
1113 &priv->cmq.csq : &priv->cmq.crq; in hns_roce_cmq_init_regs()
1141 priv->cmq.csq.desc_num = CMD_CSQ_DESC_NUM; in hns_roce_v2_cmq_init()
1145 spin_lock_init(&priv->cmq.csq.lock); in hns_roce_v2_cmq_init()
1174 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_init()
1183 hns_roce_free_cmq_desc(hr_dev, &priv->cmq.csq); in hns_roce_v2_cmq_exit()
1206 return head == priv->cmq.csq.next_to_use; in hns_roce_cmq_csq_done()
1212 struct hns_roce_v2_cmq_ring *csq = &priv->cmq.csq; in hns_roce_cmq_csq_clean() local
1214 u16 ntc = csq->next_to_clean; in hns_roce_cmq_csq_clean()
1218 desc = &csq->desc[ntc]; in hns_roce_cmq_csq_clean()
1223 if (ntc == csq->desc_num) in hns_roce_cmq_csq_clean()
1225 desc = &csq->desc[ntc]; in hns_roce_cmq_csq_clean()
1228 csq->next_to_clean = ntc; in hns_roce_cmq_csq_clean()
1237 struct hns_roce_v2_cmq_ring *csq = &priv->cmq.csq; in __hns_roce_cmq_send() local
1246 spin_lock_bh(&csq->lock); in __hns_roce_cmq_send()
1248 if (num > hns_roce_cmq_space(csq)) { in __hns_roce_cmq_send()
1249 spin_unlock_bh(&csq->lock); in __hns_roce_cmq_send()
1257 ntc = csq->next_to_use; in __hns_roce_cmq_send()
1260 desc_to_use = &csq->desc[csq->next_to_use]; in __hns_roce_cmq_send()
1263 csq->next_to_use++; in __hns_roce_cmq_send()
1264 if (csq->next_to_use == csq->desc_num) in __hns_roce_cmq_send()
1265 csq->next_to_use = 0; in __hns_roce_cmq_send()
1270 roce_write(hr_dev, ROCEE_TX_CMQ_TAIL_REG, csq->next_to_use); in __hns_roce_cmq_send()
1290 desc_to_use = &csq->desc[ntc]; in __hns_roce_cmq_send()
1301 if (ntc == csq->desc_num) in __hns_roce_cmq_send()
1315 spin_unlock_bh(&csq->lock); in __hns_roce_cmq_send()