Lines Matching defs: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]);
493 cmd_mgr->free_list[index].next;
497 cmd_mgr->cmds[xid] = io_req;
500 spin_unlock_bh(&cmd_mgr->free_list_lock[index]);
506 io_req->cmd_mgr = cmd_mgr;
511 bd_tbl = io_req->bd_tbl = cmd_mgr->io_bdt_pool[xid];
523 struct bnx2fc_cmd_mgr *cmd_mgr = io_req->cmd_mgr;
532 spin_lock_bh(&cmd_mgr->free_list_lock[index]);
535 cmd_mgr->cmds[io_req->xid] = NULL;
540 &cmd_mgr->free_list[index]);
542 spin_unlock_bh(&cmd_mgr->free_list_lock[index]);