Lines Matching refs:se_lun
112 struct sbp_session *session, struct se_lun *lun) in sbp_login_find_by_lun()
128 struct se_lun *lun, in sbp_login_count_all_by_lun()
178 static struct se_lun *sbp_get_lun_from_tpg(struct sbp_tpg *tpg, int lun) in sbp_get_lun_from_tpg()
181 struct se_lun *se_lun; in sbp_get_lun_from_tpg() local
187 se_lun = se_tpg->tpg_lun_list[lun]; in sbp_get_lun_from_tpg()
189 if (se_lun->lun_status != TRANSPORT_LUN_STATUS_ACTIVE) in sbp_get_lun_from_tpg()
190 se_lun = ERR_PTR(-ENODEV); in sbp_get_lun_from_tpg()
194 return se_lun; in sbp_get_lun_from_tpg()
298 struct se_lun *se_lun; in sbp_management_request_login() local
306 se_lun = sbp_get_lun_from_tpg(tpg, in sbp_management_request_login()
308 if (IS_ERR(se_lun)) { in sbp_management_request_login()
329 se_lun->unpacked_lun, guid); in sbp_management_request_login()
333 login = sbp_login_find_by_lun(sess, se_lun); in sbp_management_request_login()
361 sbp_login_count_all_by_lun(tpg, se_lun, 0)) { in sbp_management_request_login()
374 if (sbp_login_count_all_by_lun(tpg, se_lun, 1)) { in sbp_management_request_login()
387 if (sbp_login_count_all_by_lun(tpg, se_lun, 0) >= in sbp_management_request_login()
443 login->lun = se_lun; in sbp_management_request_login()
1947 struct se_lun *se_lun = tpg->tpg_lun_list[i]; in sbp_count_se_tpg_luns() local
1949 if (se_lun->lun_status == TRANSPORT_LUN_STATUS_FREE) in sbp_count_se_tpg_luns()
2025 struct se_lun *se_lun = tport->tpg->se_tpg.tpg_lun_list[i]; in sbp_update_unit_directory() local
2029 if (se_lun->lun_status == TRANSPORT_LUN_STATUS_FREE) in sbp_update_unit_directory()
2034 dev = se_lun->lun_se_dev; in sbp_update_unit_directory()
2040 (se_lun->unpacked_lun & 0xffff); in sbp_update_unit_directory()
2149 struct se_lun *se_lun) in sbp_post_link_lun() argument
2158 struct se_lun *se_lun) in sbp_pre_unlink_lun() argument