Lines Matching refs:conn_id
28 static void bnx2fc_free_conn_id(struct bnx2fc_hba *hba, u32 conn_id);
618 u32 conn_id, next; in bnx2fc_alloc_conn_id() local
630 conn_id = hba->next_conn_id++; in bnx2fc_alloc_conn_id()
634 while (hba->tgt_ofld_list[conn_id] != NULL) { in bnx2fc_alloc_conn_id()
635 conn_id++; in bnx2fc_alloc_conn_id()
636 if (conn_id == BNX2FC_NUM_MAX_SESS) in bnx2fc_alloc_conn_id()
637 conn_id = 0; in bnx2fc_alloc_conn_id()
639 if (conn_id == next) { in bnx2fc_alloc_conn_id()
645 hba->tgt_ofld_list[conn_id] = tgt; in bnx2fc_alloc_conn_id()
646 tgt->fcoe_conn_id = conn_id; in bnx2fc_alloc_conn_id()
648 return conn_id; in bnx2fc_alloc_conn_id()
651 static void bnx2fc_free_conn_id(struct bnx2fc_hba *hba, u32 conn_id) in bnx2fc_free_conn_id() argument
655 hba->tgt_ofld_list[conn_id] = NULL; in bnx2fc_free_conn_id()