Lines Matching refs:im
433 (*itnim_drv)->im = bfad->im; in bfa_fcb_itnim_alloc()
456 struct bfad_im_s *im = itnim_drv->im; in bfa_fcb_itnim_free() local
480 queue_work(im->drv_workq, &itnim_drv->itnim_work); in bfa_fcb_itnim_free()
491 struct bfad_im_s *im = itnim_drv->im; in bfa_fcb_itnim_online() local
501 queue_work(im->drv_workq, &itnim_drv->itnim_work); in bfa_fcb_itnim_online()
513 struct bfad_im_s *im = itnim_drv->im; in bfa_fcb_itnim_offline() local
528 queue_work(im->drv_workq, &itnim_drv->itnim_work); in bfa_fcb_itnim_offline()
647 queue_work(bfad->im->drv_workq, in bfad_im_port_delete()
673 struct bfad_im_s *im = in bfad_aen_im_notify_handler() local
676 struct bfad_s *bfad = im->bfad; in bfad_aen_im_notify_handler()
699 struct bfad_im_s *im; in bfad_im_probe() local
701 im = kzalloc(sizeof(struct bfad_im_s), GFP_KERNEL); in bfad_im_probe()
702 if (im == NULL) in bfad_im_probe()
705 bfad->im = im; in bfad_im_probe()
706 im->bfad = bfad; in bfad_im_probe()
709 kfree(im); in bfad_im_probe()
713 INIT_WORK(&im->aen_im_notify_work, bfad_aen_im_notify_handler); in bfad_im_probe()
720 if (bfad->im) { in bfad_im_probe_undo()
721 bfad_destroy_workq(bfad->im); in bfad_im_probe_undo()
722 kfree(bfad->im); in bfad_im_probe_undo()
723 bfad->im = NULL; in bfad_im_probe_undo()
749 flush_workqueue(bfad->im->drv_workq); in bfad_scsi_host_free()
756 bfad_destroy_workq(struct bfad_im_s *im) in bfad_destroy_workq() argument
758 if (im && im->drv_workq) { in bfad_destroy_workq()
759 flush_workqueue(im->drv_workq); in bfad_destroy_workq()
760 destroy_workqueue(im->drv_workq); in bfad_destroy_workq()
761 im->drv_workq = NULL; in bfad_destroy_workq()
768 struct bfad_im_s *im = bfad->im; in bfad_thread_workq() local
771 snprintf(im->drv_workq_name, KOBJ_NAME_LEN, "bfad_wq_%d", in bfad_thread_workq()
773 im->drv_workq = create_singlethread_workqueue(im->drv_workq_name); in bfad_thread_workq()
774 if (!im->drv_workq) in bfad_thread_workq()
1108 struct bfad_im_s *im = itnim->im; in bfad_im_itnim_work_handler() local
1109 struct bfad_s *bfad = im->bfad; in bfad_im_itnim_work_handler()