Searched refs:cmd_mgr (Results 1 – 6 of 6) sorted by relevance
396 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr; in bnx2fc_elstm_alloc() local421 spin_lock_bh(&cmd_mgr->free_list_lock[index]); in bnx2fc_elstm_alloc()423 if ((list_empty(&(cmd_mgr->free_list[index]))) || in bnx2fc_elstm_alloc()429 if (list_empty(&(cmd_mgr->free_list[index]))) in bnx2fc_elstm_alloc()431 spin_unlock_bh(&cmd_mgr->free_list_lock[index]); in bnx2fc_elstm_alloc()436 cmd_mgr->free_list[index].next; in bnx2fc_elstm_alloc()440 cmd_mgr->cmds[xid] = io_req; in bnx2fc_elstm_alloc()443 spin_unlock_bh(&cmd_mgr->free_list_lock[index]); in bnx2fc_elstm_alloc()448 io_req->cmd_mgr = cmd_mgr; in bnx2fc_elstm_alloc()454 bd_tbl = io_req->bd_tbl = cmd_mgr->io_bdt_pool[xid]; in bnx2fc_elstm_alloc()[all …]
1336 if (hba->cmd_mgr) { in bnx2fc_hba_destroy()1337 bnx2fc_cmd_mgr_free(hba->cmd_mgr); in bnx2fc_hba_destroy()1338 hba->cmd_mgr = NULL; in bnx2fc_hba_destroy()1392 hba->cmd_mgr = bnx2fc_cmd_mgr_alloc(hba); in bnx2fc_hba_create()1393 if (!hba->cmd_mgr) { in bnx2fc_hba_create()
710 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()
297 struct qedf_cmd_mgr *cmd_mgr = qedf->cmd_mgr; in qedf_alloc_cmd() local324 if (atomic_read(&cmd_mgr->free_list_cnt) <= GBL_RSVD_TASKS) { in qedf_alloc_cmd()327 atomic_read(&cmd_mgr->free_list_cnt)); in qedf_alloc_cmd()331 spin_lock_irqsave(&cmd_mgr->lock, flags); in qedf_alloc_cmd()333 io_req = &cmd_mgr->cmds[cmd_mgr->idx]; in qedf_alloc_cmd()334 cmd_mgr->idx++; in qedf_alloc_cmd()335 if (cmd_mgr->idx == FCOE_PARAMS_NUM_TASKS) in qedf_alloc_cmd()336 cmd_mgr->idx = 0; in qedf_alloc_cmd()344 spin_unlock_irqrestore(&cmd_mgr->lock, flags); in qedf_alloc_cmd()356 spin_unlock_irqrestore(&cmd_mgr->lock, flags); in qedf_alloc_cmd()[all …]
1875 vport_qedf->cmd_mgr = base_qedf->cmd_mgr; in qedf_vport_create()2283 io_req = &qedf->cmd_mgr->cmds[xid]; in qedf_process_completions()2827 io_req = &qedf->cmd_mgr->cmds[xid]; in qedf_process_cqe()3561 qedf->cmd_mgr = qedf_cmd_mgr_alloc(qedf); in __qedf_probe()3562 if (!qedf->cmd_mgr) { in __qedf_probe()3712 qedf_cmd_mgr_free(qedf->cmd_mgr); in __qedf_probe()3815 qedf_cmd_mgr_free(qedf->cmd_mgr); in __qedf_remove()
352 atomic_read(&qedf->cmd_mgr->free_list_cnt)); in qedf_driver_stats_show()