Lines Matching refs:wrm
74 return (hw->wrm.sge.sge_control & EGRSTATUSPAGESIZE_F) ? 128 : 64; in csio_wr_qstat_pgsz()
116 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_fill_fl() local
117 struct csio_sge *sge = &wrm->sge; in csio_wr_fill_fl()
189 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_alloc_q() local
191 int free_idx = wrm->free_qidx; in csio_wr_alloc_q()
196 if (free_idx >= wrm->num_q) { in csio_wr_alloc_q()
233 q = wrm->q_arr[free_idx]; in csio_wr_alloc_q()
249 wrm->free_qidx++; in csio_wr_alloc_q()
278 flq = wrm->q_arr[q->un.iq.flq_idx]; in csio_wr_alloc_q()
359 iq_id = iqp.iqid - hw->wrm.fw_iq_start; in csio_wr_iq_create_rsp()
366 CSIO_MAX_IQ, iq_id, iqp.iqid, hw->wrm.fw_iq_start); in csio_wr_iq_create_rsp()
384 struct csio_q *flq = hw->wrm.q_arr[flq_idx]; in csio_wr_iq_create_rsp()
483 struct csio_q *flq = hw->wrm.q_arr[flq_idx]; in csio_wr_iq_create()
760 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_cleanup_iq_ftr() local
761 struct csio_q *q = wrm->q_arr[qidx]; in csio_wr_cleanup_iq_ftr()
786 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_destroy_queues() local
789 for (i = 0; i < wrm->free_qidx; i++) { in csio_wr_destroy_queues()
790 q = wrm->q_arr[i]; in csio_wr_destroy_queues()
860 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_get() local
861 struct csio_q *q = wrm->q_arr[qidx]; in csio_wr_get()
872 CSIO_DB_ASSERT((qidx >= 0) && (qidx < wrm->free_qidx)); in csio_wr_get()
978 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_issue() local
979 struct csio_q *q = wrm->q_arr[qidx]; in csio_wr_issue()
981 CSIO_DB_ASSERT((qidx >= 0) && (qidx < wrm->free_qidx)); in csio_wr_issue()
1043 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_process_fl() local
1044 struct csio_sge *sge = &wrm->sge; in csio_wr_process_fl()
1049 struct csio_q *flq = hw->wrm.q_arr[q->un.iq.flq_idx]; in csio_wr_process_fl()
1129 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_process_iq() local
1135 wrm->q_arr[q->un.iq.flq_idx] : NULL; in csio_wr_process_iq()
1165 qid = fw_qid - wrm->fw_iq_start; in csio_wr_process_iq()
1166 q_completed = hw->wrm.intr_map[qid]; in csio_wr_process_iq()
1263 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_process_iq_idx() local
1264 struct csio_q *iq = wrm->q_arr[qidx]; in csio_wr_process_iq_idx()
1306 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_fixup_host_params() local
1307 struct csio_sge *sge = &wrm->sge; in csio_wr_fixup_host_params()
1360 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_init_intr_coalesce_parms() local
1361 struct csio_sge *sge = &wrm->sge; in csio_init_intr_coalesce_parms()
1382 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_get_sge() local
1383 struct csio_sge *sge = &wrm->sge; in csio_wr_get_sge()
1451 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_set_sge() local
1452 struct csio_sge *sge = &wrm->sge; in csio_wr_set_sge()
1571 csio_wrm_init(struct csio_wrm *wrm, struct csio_hw *hw) in csio_wrm_init() argument
1575 if (!wrm->num_q) { in csio_wrm_init()
1580 wrm->q_arr = kzalloc(sizeof(struct csio_q *) * wrm->num_q, GFP_KERNEL); in csio_wrm_init()
1581 if (!wrm->q_arr) in csio_wrm_init()
1584 for (i = 0; i < wrm->num_q; i++) { in csio_wrm_init()
1585 wrm->q_arr[i] = kzalloc(sizeof(struct csio_q), GFP_KERNEL); in csio_wrm_init()
1586 if (!wrm->q_arr[i]) { in csio_wrm_init()
1588 kfree(wrm->q_arr[i]); in csio_wrm_init()
1592 wrm->free_qidx = 0; in csio_wrm_init()
1597 kfree(wrm->q_arr); in csio_wrm_init()
1612 csio_wrm_exit(struct csio_wrm *wrm, struct csio_hw *hw) in csio_wrm_exit() argument
1619 for (i = 0; i < wrm->num_q; i++) { in csio_wrm_exit()
1620 q = wrm->q_arr[i]; in csio_wrm_exit()
1622 if (wrm->free_qidx && (i < wrm->free_qidx)) { in csio_wrm_exit()
1644 kfree(wrm->q_arr); in csio_wrm_exit()