Home
last modified time | relevance | path

Searched refs:cmd_mgr (Results 1 – 8 of 8) sorted by relevance

/linux-5.19.10/drivers/scsi/bnx2fc/
Dbnx2fc_io.c398 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr; in bnx2fc_elstm_alloc() local
423 spin_lock_bh(&cmd_mgr->free_list_lock[index]); in bnx2fc_elstm_alloc()
425 if ((list_empty(&(cmd_mgr->free_list[index]))) || in bnx2fc_elstm_alloc()
431 if (list_empty(&(cmd_mgr->free_list[index]))) in bnx2fc_elstm_alloc()
433 spin_unlock_bh(&cmd_mgr->free_list_lock[index]); in bnx2fc_elstm_alloc()
438 cmd_mgr->free_list[index].next; in bnx2fc_elstm_alloc()
442 cmd_mgr->cmds[xid] = io_req; in bnx2fc_elstm_alloc()
445 spin_unlock_bh(&cmd_mgr->free_list_lock[index]); in bnx2fc_elstm_alloc()
450 io_req->cmd_mgr = cmd_mgr; in bnx2fc_elstm_alloc()
456 bd_tbl = io_req->bd_tbl = cmd_mgr->io_bdt_pool[xid]; in bnx2fc_elstm_alloc()
[all …]
Dbnx2fc.h190 struct bnx2fc_cmd_mgr *cmd_mgr; member
429 struct bnx2fc_cmd_mgr *cmd_mgr; member
Dbnx2fc_fcoe.c1339 if (hba->cmd_mgr) { in bnx2fc_hba_destroy()
1340 bnx2fc_cmd_mgr_free(hba->cmd_mgr); in bnx2fc_hba_destroy()
1341 hba->cmd_mgr = NULL; in bnx2fc_hba_destroy()
1396 hba->cmd_mgr = bnx2fc_cmd_mgr_alloc(hba); in bnx2fc_hba_create()
1397 if (!hba->cmd_mgr) { in bnx2fc_hba_create()
Dbnx2fc_hwi.c710 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
831 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_unsol_compl()
875 io_req = (struct bnx2fc_cmd *)hba->cmd_mgr->cmds[xid]; in bnx2fc_process_cq_compl()
/linux-5.19.10/drivers/scsi/qedf/
Dqedf_io.c301 struct qedf_cmd_mgr *cmd_mgr = qedf->cmd_mgr; in qedf_alloc_cmd() local
328 if (atomic_read(&cmd_mgr->free_list_cnt) <= GBL_RSVD_TASKS) { in qedf_alloc_cmd()
331 atomic_read(&cmd_mgr->free_list_cnt)); in qedf_alloc_cmd()
335 spin_lock_irqsave(&cmd_mgr->lock, flags); in qedf_alloc_cmd()
337 io_req = &cmd_mgr->cmds[cmd_mgr->idx]; in qedf_alloc_cmd()
338 cmd_mgr->idx++; in qedf_alloc_cmd()
339 if (cmd_mgr->idx == FCOE_PARAMS_NUM_TASKS) in qedf_alloc_cmd()
340 cmd_mgr->idx = 0; in qedf_alloc_cmd()
348 spin_unlock_irqrestore(&cmd_mgr->lock, flags); in qedf_alloc_cmd()
360 spin_unlock_irqrestore(&cmd_mgr->lock, flags); in qedf_alloc_cmd()
[all …]
Dqedf.h137 struct qedf_cmd_mgr *cmd_mgr; member
388 struct qedf_cmd_mgr *cmd_mgr; member
Dqedf_main.c1862 vport_qedf->cmd_mgr = base_qedf->cmd_mgr; in qedf_vport_create()
2251 io_req = &qedf->cmd_mgr->cmds[xid]; in qedf_process_completions()
2793 io_req = &qedf->cmd_mgr->cmds[xid]; in qedf_process_cqe()
3527 qedf->cmd_mgr = qedf_cmd_mgr_alloc(qedf); in __qedf_probe()
3528 if (!qedf->cmd_mgr) { in __qedf_probe()
3676 qedf_cmd_mgr_free(qedf->cmd_mgr); in __qedf_probe()
3772 qedf_cmd_mgr_free(qedf->cmd_mgr); in __qedf_remove()
Dqedf_debugfs.c345 atomic_read(&qedf->cmd_mgr->free_list_cnt)); in qedf_driver_stats_show()