Lines Matching full:cid

128  * @cid: iscsi cid
131 beiscsi_conn_create(struct iscsi_cls_session *cls_session, u32 cid) in beiscsi_conn_create() argument
145 "BS_%d : In beiscsi_conn_create ,cid" in beiscsi_conn_create()
146 "from iscsi layer=%d\n", cid); in beiscsi_conn_create()
148 cls_conn = iscsi_conn_setup(cls_session, sizeof(*beiscsi_conn), cid); in beiscsi_conn_create()
210 "BS_%d : conn_table not empty at %u: cid %u conn %p:%p\n", in beiscsi_conn_bind()
230 "BS_%d : cid %d phba->conn_table[%u]=%p\n", in beiscsi_conn_bind()
931 * beiscsi_get_cid - Allocate a cid
937 unsigned short cid, cid_from_ulp; in beiscsi_get_cid() local
940 /* Find the ULP which has more CID available */ in beiscsi_get_cid()
950 * Check if ULP is loaded before getting new CID. in beiscsi_get_cid()
956 cid = cid_info->cid_array[cid_info->cid_alloc]; in beiscsi_get_cid()
957 if (!cid_info->avlbl_cids || cid == BE_INVALID_CID) { in beiscsi_get_cid()
959 "BS_%d : failed to get cid: available %u:%u\n", in beiscsi_get_cid()
968 return cid; in beiscsi_get_cid()
972 * beiscsi_put_cid - Free the cid
973 * @phba: The phba for which the cid is being freed
974 * @cid: The cid to free
976 static void beiscsi_put_cid(struct beiscsi_hba *phba, unsigned short cid) in beiscsi_put_cid() argument
978 uint16_t cri_index = BE_GET_CRI_FROM_CID(cid); in beiscsi_put_cid()
992 "BS_%d : failed to put cid %u: available %u:%u\n", in beiscsi_put_cid()
993 cid, cid_info->avlbl_cids, cid_info->cid_free); in beiscsi_put_cid()
996 cid_info->cid_array[cid_info->cid_free++] = cid; in beiscsi_put_cid()
1063 "BS_%d : No free cid available\n"); in beiscsi_open_conn()
1098 "BS_%d : mgmt_open_connection Failed for cid=%d\n", in beiscsi_open_conn()
1253 * driver can't reuse the CID so attempt more than once. in beiscsi_conn_close()
1263 "BS_%d : invalidate conn failed cid %d\n", in beiscsi_conn_close()
1284 "BS_%d : upload conn failed cid %d\n", in beiscsi_conn_close()
1316 "BS_%d : ep_array at %u cid %u empty\n", in beiscsi_ep_disconnect()
1332 * Make CID available even if close fails. in beiscsi_ep_disconnect()
1333 * If not freed, FW might fail open using the CID. in beiscsi_ep_disconnect()
1337 "BS_%d : close conn failed cid %d\n", in beiscsi_ep_disconnect()
1344 "BS_%d : conn_table empty at %u: cid %u\n", in beiscsi_ep_disconnect()