Lines Matching defs:hwfn_index
107 qlnx_grc_dump(qlnx_host_t *ha, uint32_t *num_dumped_dwords, int hwfn_index)
113 if (ha->grcdump_dwords[hwfn_index]) {
115 *num_dumped_dwords = ha->grcdump_dwords[hwfn_index];
121 p_hwfn = &ha->cdev.hwfns[hwfn_index];
130 ha->grcdump[hwfn_index],
131 (ha->grcdump_size[hwfn_index] >> 2),
137 hwfn_index, rval);
196 qlnx_idle_chk(qlnx_host_t *ha, uint32_t *num_dumped_dwords, int hwfn_index)
202 if (ha->idle_chk_dwords[hwfn_index]) {
204 *num_dumped_dwords = ha->idle_chk_dwords[hwfn_index];
210 p_hwfn = &ha->cdev.hwfns[hwfn_index];
219 ha->idle_chk[hwfn_index],
220 (ha->idle_chk_size[hwfn_index] >> 2),
226 hwfn_index, rval);
286 qlnx_get_trace_cmd_size(qlnx_host_t *ha, int hwfn_index, uint16_t cmd)
293 p_hwfn = &ha->cdev.hwfns[hwfn_index];
298 hwfn_index, cmd);
355 qlnx_get_trace(qlnx_host_t *ha, int hwfn_index, qlnx_trace_t *trace)
363 buffer = qlnx_zalloc(trace->size[hwfn_index]);
366 hwfn_index, trace->cmd);
371 p_hwfn = &ha->cdev.hwfns[hwfn_index];
376 hwfn_index, trace->cmd);
384 buffer, (trace->size[hwfn_index] >> 2),
390 buffer, (trace->size[hwfn_index] >> 2),
396 buffer, (trace->size[hwfn_index] >> 2),
402 buffer, (trace->size[hwfn_index] >> 2),
408 buffer, (trace->size[hwfn_index] >> 2),
420 trace->dwords[hwfn_index] = num_dwords;
423 rval = copyout(buffer, trace->buffer[hwfn_index],
436 if (reg_rd_wr->hwfn_index >= QLNX_MAX_HW_FUNCS) {
440 p_hwfn = &ha->cdev.hwfns[reg_rd_wr->hwfn_index];