Lines Matching refs:iscsit_global
56 struct iscsit_global *iscsit_global; variable
687 iscsit_global = kzalloc(sizeof(*iscsit_global), GFP_KERNEL); in iscsi_target_init_module()
688 if (!iscsit_global) in iscsi_target_init_module()
691 spin_lock_init(&iscsit_global->ts_bitmap_lock); in iscsi_target_init_module()
700 iscsit_global->ts_bitmap = vzalloc(size); in iscsi_target_init_module()
701 if (!iscsit_global->ts_bitmap) in iscsi_target_init_module()
704 if (!zalloc_cpumask_var(&iscsit_global->allowed_cpumask, GFP_KERNEL)) { in iscsi_target_init_module()
708 cpumask_setall(iscsit_global->allowed_cpumask); in iscsi_target_init_module()
762 free_cpumask_var(iscsit_global->allowed_cpumask); in iscsi_target_init_module()
764 vfree(iscsit_global->ts_bitmap); in iscsi_target_init_module()
767 if (iscsit_global->discovery_tpg) in iscsi_target_init_module()
768 iscsit_tpg_disable_portal_group(iscsit_global->discovery_tpg, 1); in iscsi_target_init_module()
771 kfree(iscsit_global); in iscsi_target_init_module()
787 if (iscsit_global->discovery_tpg) in iscsi_target_cleanup_module()
788 iscsit_tpg_disable_portal_group(iscsit_global->discovery_tpg, 1); in iscsi_target_cleanup_module()
792 free_cpumask_var(iscsit_global->allowed_cpumask); in iscsi_target_cleanup_module()
793 vfree(iscsit_global->ts_bitmap); in iscsi_target_cleanup_module()
794 kfree(iscsit_global); in iscsi_target_cleanup_module()
3642 cpumask_and(conn_allowed_cpumask, iscsit_global->allowed_cpumask, in iscsit_thread_get_cpumask()
3669 if (!cpumask_equal(iscsit_global->allowed_cpumask, in iscsit_thread_reschedule()
3675 iscsit_global->allowed_cpumask); in iscsit_thread_reschedule()
4314 spin_lock(&iscsit_global->ts_bitmap_lock); in iscsit_close_connection()
4315 bitmap_release_region(iscsit_global->ts_bitmap, conn->bitmap_id, in iscsit_close_connection()
4317 spin_unlock(&iscsit_global->ts_bitmap_lock); in iscsit_close_connection()