Lines Matching refs:wrm

75 	return (hw->wrm.sge.sge_control & EGRSTATUSPAGESIZE_F) ?  128 : 64;
117 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
118 struct csio_sge *sge = &wrm->sge;
190 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
192 int free_idx = wrm->free_qidx;
197 if (free_idx >= wrm->num_q) {
234 q = wrm->q_arr[free_idx];
251 wrm->free_qidx++;
280 flq = wrm->q_arr[q->un.iq.flq_idx];
361 iq_id = iqp.iqid - hw->wrm.fw_iq_start;
368 CSIO_MAX_IQ, iq_id, iqp.iqid, hw->wrm.fw_iq_start);
386 struct csio_q *flq = hw->wrm.q_arr[flq_idx];
486 struct csio_q *flq = hw->wrm.q_arr[flq_idx];
764 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
765 struct csio_q *q = wrm->q_arr[qidx];
790 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
793 for (i = 0; i < wrm->free_qidx; i++) {
794 q = wrm->q_arr[i];
866 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
867 struct csio_q *q = wrm->q_arr[qidx];
878 CSIO_DB_ASSERT((qidx >= 0) && (qidx < wrm->free_qidx));
984 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
985 struct csio_q *q = wrm->q_arr[qidx];
987 CSIO_DB_ASSERT((qidx >= 0) && (qidx < wrm->free_qidx));
1049 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
1050 struct csio_sge *sge = &wrm->sge;
1054 struct csio_q *flq = hw->wrm.q_arr[q->un.iq.flq_idx];
1134 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
1140 wrm->q_arr[q->un.iq.flq_idx] : NULL;
1170 qid = fw_qid - wrm->fw_iq_start;
1171 q_completed = hw->wrm.intr_map[qid];
1268 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
1269 struct csio_q *iq = wrm->q_arr[qidx];
1311 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
1312 struct csio_sge *sge = &wrm->sge;
1434 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
1435 struct csio_sge *sge = &wrm->sge;
1456 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
1457 struct csio_sge *sge = &wrm->sge;
1525 struct csio_wrm *wrm = csio_hw_to_wrm(hw);
1526 struct csio_sge *sge = &wrm->sge;
1639 * @wrm: WR module
1645 csio_wrm_init(struct csio_wrm *wrm, struct csio_hw *hw)
1649 if (!wrm->num_q) {
1654 wrm->q_arr = kcalloc(wrm->num_q, sizeof(struct csio_q *), GFP_KERNEL);
1655 if (!wrm->q_arr)
1658 for (i = 0; i < wrm->num_q; i++) {
1659 wrm->q_arr[i] = kzalloc(sizeof(struct csio_q), GFP_KERNEL);
1660 if (!wrm->q_arr[i]) {
1662 kfree(wrm->q_arr[i]);
1666 wrm->free_qidx = 0;
1671 kfree(wrm->q_arr);
1678 * @wrm: WR module
1686 csio_wrm_exit(struct csio_wrm *wrm, struct csio_hw *hw)
1693 for (i = 0; i < wrm->num_q; i++) {
1694 q = wrm->q_arr[i];
1696 if (wrm->free_qidx && (i < wrm->free_qidx)) {
1718 kfree(wrm->q_arr);