Lines Matching defs:hdwq

1067 		qp = &phba->sli4_hba.hdwq[idx];
1236 struct lpfc_sli4_hdw_queue *hdwq;
1249 hdwq = &phba->sli4_hba.hdwq[phba->sli4_hba.cpu_map[i].hdwq];
1250 cq = hdwq->io_cq;
1344 lpfc_modify_hba_eq_delay(phba, eq->hdwq, 1,
3136 qp = &phba->sli4_hba.hdwq[0];
3171 qp = &phba->sli4_hba.hdwq[0];
3232 qp = &phba->sli4_hba.hdwq[j];
3240 qp = &phba->sli4_hba.hdwq[i];
3303 qp = &phba->sli4_hba.hdwq[i];
3676 qp = &phba->sli4_hba.hdwq[idx];
3970 qp = &phba->sli4_hba.hdwq[idx];
4028 qp = phba->sli4_hba.hdwq;
4037 qp = &phba->sli4_hba.hdwq[idx];
4039 lpfc_cmd->hdwq = qp;
7026 "3332 Failed allocating per cpu hdwq stats\n");
7656 kfree(phba->sli4_hba.hdwq);
8900 qdesc->hdwq = idx;
8902 phba->sli4_hba.hdwq[idx].io_cq = qdesc;
8923 qdesc->hdwq = idx;
8925 phba->sli4_hba.hdwq[idx].io_wq = qdesc;
8969 if (!phba->sli4_hba.hdwq) {
8970 phba->sli4_hba.hdwq = kcalloc(
8973 if (!phba->sli4_hba.hdwq) {
8981 qp = &phba->sli4_hba.hdwq[idx];
9047 qp = &phba->sli4_hba.hdwq[cpup->hdwq];
9056 cpup->hdwq);
9060 qdesc->hdwq = cpup->hdwq;
9081 /* Check for multiple CPUs per hdwq */
9082 qp = &phba->sli4_hba.hdwq[cpup->hdwq];
9086 /* We need to share an EQ for this hdwq */
9089 qp->hba_eq = phba->sli4_hba.hdwq[eqcpup->hdwq].hba_eq;
9114 qdesc->hdwq = idx;
9256 qdesc->hdwq = idx;
9285 qdesc->hdwq = idx;
9293 memset(&phba->sli4_hba.hdwq[idx].nvme_cstat, 0,
9294 sizeof(phba->sli4_hba.hdwq[idx].nvme_cstat));
9301 memset(&phba->sli4_hba.hdwq[idx].scsi_cstat, 0,
9302 sizeof(phba->sli4_hba.hdwq[idx].scsi_cstat));
9340 struct lpfc_sli4_hdw_queue *hdwq;
9344 hdwq = phba->sli4_hba.hdwq;
9349 lpfc_sli4_queue_free(hdwq[idx].io_cq);
9350 lpfc_sli4_queue_free(hdwq[idx].io_wq);
9351 hdwq[idx].hba_eq = NULL;
9352 hdwq[idx].io_cq = NULL;
9353 hdwq[idx].io_wq = NULL;
9355 lpfc_free_sgl_per_hdwq(phba, &hdwq[idx]);
9356 lpfc_free_cmd_rsp_buf_per_hdwq(phba, &hdwq[idx]);
9399 if (phba->sli4_hba.hdwq)
9635 qp = phba->sli4_hba.hdwq;
9660 rc = lpfc_eq_create(phba, qp[cpup->hdwq].hba_eq,
9672 qp[cpup->hdwq].hba_eq;
9677 qp[cpup->hdwq].hba_eq->queue_id);
9688 phba->sli4_hba.hdwq[cpup->hdwq].hba_eq,
9691 &phba->sli4_hba.hdwq[qidx].io_cq_map,
9992 if (phba->sli4_hba.hdwq) {
9996 qp = &phba->sli4_hba.hdwq[qidx];
10827 if ((match == LPFC_FIND_BY_HDWQ) && (cpup->hdwq == id))
10901 cpup->hdwq = LPFC_VECTOR_MAP_EMPTY;
11076 cpup->hdwq, cpup->eq);
11098 /* Assign hdwq indices that are unique across all cpus in the map
11105 /* Only FIRST IRQs get a hdwq index assignment. */
11109 /* 1 to 1, the first LPFC_CPU_FIRST_IRQ cpus to a unique hdwq */
11110 cpup->hdwq = idx;
11114 "hdwq %d eq %d flg x%x\n",
11116 cpup->hdwq, cpup->eq, cpup->flag);
11118 /* Associate a hdwq with each cpu_map entry
11119 * This will be 1 to 1 - hdwq to cpu, unless there are less
11123 * for irq_chann < hdwq. The idx is used for round-robin assignments
11136 /* If the cfg_irq_chann < cfg_hdw_queue, set the hdwq
11141 cpup->hdwq = next_idx;
11154 if (new_cpup->hdwq != LPFC_VECTOR_MAP_EMPTY &&
11170 if (new_cpup->hdwq != LPFC_VECTOR_MAP_EMPTY &&
11180 cpup->hdwq = idx % phba->cfg_hdw_queue;
11188 cpup->hdwq = new_cpup->hdwq;
11192 "hdwq %d eq %d flg x%x\n",
11194 cpup->hdwq, cpup->eq, cpup->flag);
11199 * a cpu is hot-added. Perform a simple hdwq round robin assignment.
11206 c_stat->hdwq_no = cpup->hdwq;
11208 if (cpup->hdwq != LPFC_VECTOR_MAP_EMPTY)
11211 cpup->hdwq = idx++ % phba->cfg_hdw_queue;
11213 c_stat->hdwq_no = cpup->hdwq;
11217 "CPU %d hdwq %d\n",
11218 cpu, cpup->hdwq);
11269 * mapped to this irq. Note: multiple hdwq's in
11477 n = lpfc_find_cpu_handle(phba, eq->hdwq, LPFC_FIND_BY_HDWQ);
11880 qp = &phba->sli4_hba.hdwq[idx];
11919 qp = &phba->sli4_hba.hdwq[idx];