Lines Matching refs:cmd_mgr
398 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr;
423 spin_lock_bh(&cmd_mgr->free_list_lock[index]);
425 if ((list_empty(&(cmd_mgr->free_list[index]))) ||
431 if (list_empty(&(cmd_mgr->free_list[index])))
433 spin_unlock_bh(&cmd_mgr->free_list_lock[index]);
438 cmd_mgr->free_list[index].next;
442 cmd_mgr->cmds[xid] = io_req;
445 spin_unlock_bh(&cmd_mgr->free_list_lock[index]);
450 io_req->cmd_mgr = cmd_mgr;
456 bd_tbl = io_req->bd_tbl = cmd_mgr->io_bdt_pool[xid];
468 struct bnx2fc_cmd_mgr *cmd_mgr = interface->hba->cmd_mgr;
482 spin_lock_bh(&cmd_mgr->free_list_lock[index]);
484 if ((list_empty(&cmd_mgr->free_list[index])) ||
487 spin_unlock_bh(&cmd_mgr->free_list_lock[index]);
492 cmd_mgr->free_list[index].next;
496 cmd_mgr->cmds[xid] = io_req;
499 spin_unlock_bh(&cmd_mgr->free_list_lock[index]);
504 io_req->cmd_mgr = cmd_mgr;
509 bd_tbl = io_req->bd_tbl = cmd_mgr->io_bdt_pool[xid];
521 struct bnx2fc_cmd_mgr *cmd_mgr = io_req->cmd_mgr;
530 spin_lock_bh(&cmd_mgr->free_list_lock[index]);
533 cmd_mgr->cmds[io_req->xid] = NULL;
538 &cmd_mgr->free_list[index]);
540 spin_unlock_bh(&cmd_mgr->free_list_lock[index]);