Lines Matching refs:state
156 #define HERMON_HID_TO_EQNUM(state, hid) \
157 ((state)->hs_rsvd_eqs + (hid) - 1)
159 #define HERMON_HID_VALID(state, hid) \
160 ((uint_t)((hid) - 1) < (state)->hs_intrmsi_allocd)
162 #define HERMON_EQNUM_TO_HID(state, eqnum) \
163 ((eqnum) - (state)->hs_rsvd_eqs + 1)
165 #define HERMON_CQ_ERREQNUM_GET(state) \
166 (state)->hs_cq_erreqnum
267 int hermon_cq_alloc(hermon_state_t *state, ibt_cq_hdl_t ibt_cqhdl,
270 int hermon_cq_free(hermon_state_t *state, hermon_cqhdl_t *cqhdl,
272 int hermon_cq_resize(hermon_state_t *state, hermon_cqhdl_t cqhdl,
274 int hermon_cq_modify(hermon_state_t *state, hermon_cqhdl_t cqhdl,
276 int hermon_cq_notify(hermon_state_t *state, hermon_cqhdl_t cqhdl,
278 int hermon_cq_poll(hermon_state_t *state, hermon_cqhdl_t cqhdl, ibt_wc_t *wc_p,
280 int hermon_cq_sched_alloc(hermon_state_t *state, ibt_cq_sched_attr_t *attr,
282 int hermon_cq_sched_free(hermon_state_t *state, hermon_cq_sched_t *cq_schedp);
283 int hermon_cq_handler(hermon_state_t *state, hermon_eqhdl_t eq,
285 int hermon_cq_err_handler(hermon_state_t *state, hermon_eqhdl_t eq,
289 hermon_cqhdl_t hermon_cqhdl_from_cqnum(hermon_state_t *state, uint_t cqnum);
290 void hermon_cq_entries_flush(hermon_state_t *state, hermon_qphdl_t qp);
291 void hermon_cq_resize_helper(hermon_state_t *state, hermon_cqhdl_t cq);
292 int hermon_cq_sched_init(hermon_state_t *state);
293 void hermon_cq_sched_fini(hermon_state_t *state);