Lines Matching refs:Scsi_Host
183 It may be useful for a LLD to keep track of struct Scsi_Host instances
185 by the mid-level. struct Scsi_Host instances are freed from
306 The Scsi_Host structure has had reference counting infrastructure added.
307 This effectively spreads the ownership of struct Scsi_Host instances
314 struct Scsi_Host:
316 Scsi_Host which has its reference count ^^ set to 1
332 ^^ struct Scsi_Host actually has 2 reference counts which are manipulated
375 scsi_host_get - increments Scsi_Host instance's refcount
376 scsi_host_put - decrements Scsi_Host instance's refcount (free if 0)
412 struct scsi_device * scsi_add_device(struct Scsi_Host *shost,
435 int scsi_add_host(struct Scsi_Host *shost, struct device * dev)
488 void scsi_block_requests(struct Scsi_Host * shost)
496 * last member of the returned Scsi_Host instance)
498 * Returns pointer to new Scsi_Host instance or NULL on failure
512 struct Scsi_Host * scsi_host_alloc(struct scsi_host_template * sht,
517 * scsi_host_get - increment Scsi_Host instance refcount
518 * @shost: pointer to struct Scsi_Host instance
528 void scsi_host_get(struct Scsi_Host *shost)
532 * scsi_host_put - decrement Scsi_Host instance refcount, free if 0
533 * @shost: pointer to struct Scsi_Host instance
540 * latter refcount reaches 0, the Scsi_Host instance is freed.
541 * The LLD need not worry exactly when the Scsi_Host instance is
547 void scsi_host_put(struct Scsi_Host *shost)
574 * last member of the returned Scsi_Host instance)
576 * Returns pointer to new Scsi_Host instance or NULL on failure
587 struct Scsi_Host * scsi_register(struct scsi_host_template * sht,
624 int scsi_remove_host(struct Scsi_Host *shost)
644 void scsi_report_bus_reset(struct Scsi_Host * shost, int channel)
657 void scsi_scan_host(struct Scsi_Host *shost)
694 void scsi_unblock_requests(struct Scsi_Host * shost)
712 void scsi_unregister(struct Scsi_Host * shp)
928 * and interrupt numbers. If not supplied struct Scsi_Host::name used
932 * function (or struct Scsi_Host::name if this function is not
941 const char * info(struct Scsi_Host * shp)
982 * @host_no: host number of interest (struct Scsi_Host::host_no)
1049 * Locks: up to and including 2.6.36, struct Scsi_Host::host_lock
1073 int queuecommand(struct Scsi_Host *shost, struct scsi_cmnd * scp)
1094 int release(struct Scsi_Host * shp)
1193 struct Scsi_Host
1195 There is one struct Scsi_Host instance per host (HBA) that an LLD
1196 controls. The struct Scsi_Host structure has many members in common
1197 with "struct scsi_host_template". When a new struct Scsi_Host instance
1226 this struct Scsi_Host instance was spawned
1230 sh_list - a double linked list of pointers to all struct Scsi_Host
1234 hostdata[0] - area reserved for LLD at end of struct Scsi_Host. Size
1238 the LLD for the Scsi_Host. Used most often in validating
1257 scsi_change_queue_depth() (or struct Scsi_Host::cmd_per_lun). There will
1331 Each struct Scsi_Host instance has a spin_lock called struct
1332 Scsi_Host::default_lock which is initialized in scsi_host_alloc() [found in
1333 hosts.c]. Within the same function the struct Scsi_Host::host_lock pointer
1335 operations performed by the mid level use the struct Scsi_Host::host_lock
1367 relevant to LLDs is struct Scsi_Host::host_lock and there is