Lines Matching refs:cid_info
942 struct ulp_cid_info *cid_info; in beiscsi_get_cid() local
959 cid_info = phba->cid_array_info[cid_from_ulp]; in beiscsi_get_cid()
960 cid = cid_info->cid_array[cid_info->cid_alloc]; in beiscsi_get_cid()
961 if (!cid_info->avlbl_cids || cid == BE_INVALID_CID) { in beiscsi_get_cid()
964 cid_info->avlbl_cids, cid_info->cid_free); in beiscsi_get_cid()
968 cid_info->cid_array[cid_info->cid_alloc++] = BE_INVALID_CID; in beiscsi_get_cid()
969 if (cid_info->cid_alloc == BEISCSI_GET_CID_COUNT(phba, cid_from_ulp)) in beiscsi_get_cid()
970 cid_info->cid_alloc = 0; in beiscsi_get_cid()
971 cid_info->avlbl_cids--; in beiscsi_get_cid()
985 struct ulp_cid_info *cid_info; in beiscsi_put_cid() local
992 cid_info = phba->cid_array_info[cid_post_ulp]; in beiscsi_put_cid()
994 if (cid_info->cid_array[cid_info->cid_free] != BE_INVALID_CID) { in beiscsi_put_cid()
997 cid, cid_info->avlbl_cids, cid_info->cid_free); in beiscsi_put_cid()
1000 cid_info->cid_array[cid_info->cid_free++] = cid; in beiscsi_put_cid()
1001 if (cid_info->cid_free == BEISCSI_GET_CID_COUNT(phba, cid_post_ulp)) in beiscsi_put_cid()
1002 cid_info->cid_free = 0; in beiscsi_put_cid()
1003 cid_info->avlbl_cids++; in beiscsi_put_cid()