Lines Matching defs:device

69 MODULE_PARM_DESC(disc_threads, "Number of device discovery threads to use. "
75 MODULE_PARM_DESC(log_level, "Set to 0 - 4 for increasing verbosity of device driver. "
128 { IBMVFC_FC_SCSI_ERROR, IBMVFC_COMMAND_FAILED, DID_ERROR, 0, 1, "PRLI to device failed." },
1077 * ibmvfc_set_rport_dev_loss_tmo - Set rport's device loss timeout
1373 * @dev: device for which to map dma memory
1380 struct ibmvfc_cmd *vfc_cmd, struct device *dev)
1549 * ibmvfc_relogin - Log back into the specified device
1550 * @sdev: scsi device struct
1602 ibmvfc_relogin(cmnd->device);
1665 struct ibmvfc_host *vhost = shost_priv(cmnd->device->host);
1666 struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device));
1690 vfc_cmd->cancel_key = cpu_to_be32((unsigned long)cmnd->device->hostdata);
1693 int_to_scsilun(cmnd->device->lun, &vfc_cmd->iu.lun);
2009 * ibmvfc_reset_device - Reset the device with the specified reset type
2010 * @sdev: scsi device to reset
2087 * @device: device to match (rport)
2097 cmd_rport = starget_to_rport(scsi_target(evt->cmnd->device));
2107 * @device: device to match (starget)
2112 static int ibmvfc_match_target(struct ibmvfc_event *evt, void *device)
2114 if (evt->cmnd && scsi_target(evt->cmnd->device) == device)
2122 * @device: device to match (sdev)
2127 static int ibmvfc_match_lun(struct ibmvfc_event *evt, void *device)
2129 if (evt->cmnd && evt->cmnd->device == device)
2137 * @device: device to match (starget or sdev)
2143 static int ibmvfc_wait_for_ops(struct ibmvfc_host *vhost, void *device,
2157 if (match(evt, device)) {
2171 if (match(evt, device)) {
2190 * ibmvfc_cancel_all - Cancel all outstanding commands to the device
2191 * @sdev: scsi device to cancel commands
2194 * This sends a cancel to the VIOS for the specified device. This does
2195 * NOT send any abort to the actual device. That must be done separately.
2216 if (evt->cmnd && evt->cmnd->device == sdev) {
2323 * ibmvfc_abort_task_set - Abort outstanding commands to the device
2324 * @sdev: scsi device to abort commands
2326 * This sends an Abort Task Set to the VIOS for the specified device. This does
2347 if (evt->cmnd && evt->cmnd->device == sdev) {
2453 struct scsi_device *sdev = cmd->device;
2486 struct scsi_device *sdev = cmd->device;
2512 * @sdev: scsi device struct
2524 * @sdev: scsi device struct
2543 struct scsi_device *sdev = cmd->device;
2578 struct ibmvfc_host *vhost = shost_priv(cmd->device->host);
2878 * ibmvfc_scan_finished - Check if the device scan is done.
2905 * ibmvfc_slave_alloc - Setup the device's task set value
2906 * @sdev: struct scsi_device device to configure
2908 * Set the device's task set value so that error handling works as
2912 * 0 on success / -ENXIO if device does not exist
2938 * 0 on success / -ENXIO if device does not exist
2953 * ibmvfc_slave_configure - Configure the device
2954 * @sdev: struct scsi_device device to configure
2956 * Enable allow_restart for a device if it is a disk. Adjust the
2977 * ibmvfc_change_queue_depth - Change the device's queue depth
2978 * @sdev: scsi device struct
2993 static ssize_t ibmvfc_show_host_partition_name(struct device *dev,
3003 static ssize_t ibmvfc_show_host_device_name(struct device *dev,
3013 static ssize_t ibmvfc_show_host_loc_code(struct device *dev,
3023 static ssize_t ibmvfc_show_host_drc_name(struct device *dev,
3033 static ssize_t ibmvfc_show_host_npiv_version(struct device *dev,
3041 static ssize_t ibmvfc_show_host_capabilities(struct device *dev,
3051 * @dev: class device struct
3057 static ssize_t ibmvfc_show_log_level(struct device *dev,
3073 * @dev: class device struct
3079 static ssize_t ibmvfc_store_log_level(struct device *dev,
3119 struct device *dev = container_of(kobj, struct device, kobj);
3814 * ibmvfc_adisc_needs_plogi - Does device need PLOGI?
4350 dev_info(vhost->dev, "Host partition: %s, device: %s %s %s max sectors %u\n",
4875 struct device *dev = vhost->dev;
4971 struct device *dev = vhost->dev;
5107 * @vdev: vio device struct
5108 * @id: vio device id struct
5117 struct device *dev = &vdev->dev;
5215 * @vdev: vio device struct
5254 * @dev: device struct
5260 static int ibmvfc_resume(struct device *dev)
5275 * @vdev: vio device struct