Go to the documentation of this file.
23 #define FCPI_NAME " fcpim"
26 #define KOBJ_NAME_LEN 20
42 #define MAX_FCP_TARGET 1024
43 #define MAX_FCP_LUN 16384
44 #define BFAD_TARGET_RESET_TMO 60
45 #define BFAD_LUN_RESET_TMO 60
46 #define ScsiResult(host_code, scsi_code) (((host_code) << 16) | scsi_code)
47 #define BFA_QUEUE_FULL_RAMP_UP_TIME 120
123 #define bfad_get_aen_entry(_drv, _entry) do { \
124 unsigned long _flags; \
125 spin_lock_irqsave(&(_drv)->bfad_aen_spinlock, _flags); \
126 bfa_q_deq(&(_drv)->free_aen_q, &(_entry)); \
128 list_add_tail(&(_entry)->qe, &(_drv)->active_aen_q); \
129 spin_unlock_irqrestore(&(_drv)->bfad_aen_spinlock, _flags); \
133 #define bfad_im_post_vendor_event(_entry, _drv, _cnt, _cat, _evt) do { \
134 do_gettimeofday(&(_entry)->aen_tv); \
135 (_entry)->bfad_num = (_drv)->inst_no; \
136 (_entry)->seq_num = (_cnt); \
137 (_entry)->aen_category = (_cat); \
138 (_entry)->aen_type = (_evt); \
139 if ((_drv)->bfad_flags & BFAD_FC4_PROBE_DONE) \
140 queue_work((_drv)->im->drv_workq, \
141 &(_drv)->im->aen_im_notify_work); \
178 #define bfad_reset_sdev_bflags(__im_port, __lunmask_cfg) do { \
179 struct scsi_device *__sdev = NULL; \
180 struct bfad_itnim_s *__itnim = NULL; \
181 u32 scan_flags = BLIST_NOREPORTLUN | BLIST_SPARSELUN; \
182 list_for_each_entry(__itnim, &((__im_port)->itnim_mapped_list), \
184 __sdev = scsi_device_lookup((__im_port)->shost, \
186 __itnim->scsi_tgt_id, 0); \
188 if ((__lunmask_cfg) == BFA_TRUE) \
189 __sdev->sdev_bflags |= scan_flags; \
191 __sdev->sdev_bflags &= ~scan_flags; \
192 scsi_device_put(__sdev); \