Lines Matching defs:hdwq

1126 		qp = &phba->sli4_hba.hdwq[idx];
1295 struct lpfc_sli4_hdw_queue *hdwq;
1309 hdwq = &phba->sli4_hba.hdwq[phba->sli4_hba.cpu_map[i].hdwq];
1310 eq = hdwq->hba_eq;
1404 lpfc_modify_hba_eq_delay(phba, eq->hdwq, 1,
3453 qp = &phba->sli4_hba.hdwq[0];
3488 qp = &phba->sli4_hba.hdwq[0];
3549 qp = &phba->sli4_hba.hdwq[j];
3557 qp = &phba->sli4_hba.hdwq[i];
3620 qp = &phba->sli4_hba.hdwq[i];
4018 qp = &phba->sli4_hba.hdwq[idx];
4308 qp = &phba->sli4_hba.hdwq[idx];
4367 qp = phba->sli4_hba.hdwq;
4376 qp = &phba->sli4_hba.hdwq[idx];
4378 lpfc_cmd->hdwq = qp;
8424 "3332 Failed allocating per cpu hdwq stats\n");
9061 kfree(phba->sli4_hba.hdwq);
10392 qdesc->hdwq = idx;
10394 phba->sli4_hba.hdwq[idx].io_cq = qdesc;
10415 qdesc->hdwq = idx;
10417 phba->sli4_hba.hdwq[idx].io_wq = qdesc;
10461 if (!phba->sli4_hba.hdwq) {
10462 phba->sli4_hba.hdwq = kcalloc(
10465 if (!phba->sli4_hba.hdwq) {
10473 qp = &phba->sli4_hba.hdwq[idx];
10539 qp = &phba->sli4_hba.hdwq[cpup->hdwq];
10548 cpup->hdwq);
10552 qdesc->hdwq = cpup->hdwq;
10573 /* Check for multiple CPUs per hdwq */
10574 qp = &phba->sli4_hba.hdwq[cpup->hdwq];
10578 /* We need to share an EQ for this hdwq */
10581 qp->hba_eq = phba->sli4_hba.hdwq[eqcpup->hdwq].hba_eq;
10606 qdesc->hdwq = idx;
10748 qdesc->hdwq = idx;
10777 qdesc->hdwq = idx;
10785 memset(&phba->sli4_hba.hdwq[idx].nvme_cstat, 0,
10786 sizeof(phba->sli4_hba.hdwq[idx].nvme_cstat));
10793 memset(&phba->sli4_hba.hdwq[idx].scsi_cstat, 0,
10794 sizeof(phba->sli4_hba.hdwq[idx].scsi_cstat));
10832 struct lpfc_sli4_hdw_queue *hdwq;
10836 hdwq = phba->sli4_hba.hdwq;
10841 lpfc_sli4_queue_free(hdwq[idx].io_cq);
10842 lpfc_sli4_queue_free(hdwq[idx].io_wq);
10843 hdwq[idx].hba_eq = NULL;
10844 hdwq[idx].io_cq = NULL;
10845 hdwq[idx].io_wq = NULL;
10847 lpfc_free_sgl_per_hdwq(phba, &hdwq[idx]);
10848 lpfc_free_cmd_rsp_buf_per_hdwq(phba, &hdwq[idx]);
10891 if (phba->sli4_hba.hdwq)
11127 qp = phba->sli4_hba.hdwq;
11152 rc = lpfc_eq_create(phba, qp[cpup->hdwq].hba_eq,
11164 qp[cpup->hdwq].hba_eq;
11169 qp[cpup->hdwq].hba_eq->queue_id);
11180 phba->sli4_hba.hdwq[cpup->hdwq].hba_eq,
11183 &phba->sli4_hba.hdwq[qidx].io_cq_map,
11484 if (phba->sli4_hba.hdwq) {
11488 qp = &phba->sli4_hba.hdwq[qidx];
12325 if ((match == LPFC_FIND_BY_HDWQ) && (cpup->hdwq == id))
12399 cpup->hdwq = LPFC_VECTOR_MAP_EMPTY;
12566 cpup->hdwq, cpup->eq);
12586 /* Assign hdwq indices that are unique across all cpus in the map
12593 /* Only FIRST IRQs get a hdwq index assignment. */
12597 /* 1 to 1, the first LPFC_CPU_FIRST_IRQ cpus to a unique hdwq */
12598 cpup->hdwq = idx;
12602 "hdwq %d eq %d flg x%x\n",
12604 cpup->hdwq, cpup->eq, cpup->flag);
12606 /* Associate a hdwq with each cpu_map entry
12607 * This will be 1 to 1 - hdwq to cpu, unless there are less
12611 * for irq_chann < hdwq. The idx is used for round-robin assignments
12624 /* If the cfg_irq_chann < cfg_hdw_queue, set the hdwq
12629 cpup->hdwq = next_idx;
12642 if (new_cpup->hdwq != LPFC_VECTOR_MAP_EMPTY &&
12656 if (new_cpup->hdwq != LPFC_VECTOR_MAP_EMPTY &&
12663 cpup->hdwq = idx % phba->cfg_hdw_queue;
12669 cpup->hdwq = new_cpup->hdwq;
12673 "hdwq %d eq %d flg x%x\n",
12675 cpup->hdwq, cpup->eq, cpup->flag);
12680 * a cpu is hot-added. Perform a simple hdwq round robin assignment.
12687 c_stat->hdwq_no = cpup->hdwq;
12689 if (cpup->hdwq != LPFC_VECTOR_MAP_EMPTY)
12692 cpup->hdwq = idx++ % phba->cfg_hdw_queue;
12694 c_stat->hdwq_no = cpup->hdwq;
12698 "CPU %d hdwq %d\n",
12699 cpu, cpup->hdwq);
12750 * mapped to this irq. Note: multiple hdwq's in
12958 n = lpfc_find_cpu_handle(phba, eq->hdwq, LPFC_FIND_BY_HDWQ);
13381 qp = &phba->sli4_hba.hdwq[idx];
13420 qp = &phba->sli4_hba.hdwq[idx];