Lines Matching refs:zfcp_sdev
42 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_slave_destroy() local
45 if (!zfcp_sdev->port) in zfcp_scsi_slave_destroy()
49 put_device(&zfcp_sdev->port->dev); in zfcp_scsi_slave_destroy()
69 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scpnt->device); in zfcp_scsi_queuecommand() local
85 status = atomic_read(&zfcp_sdev->status); in zfcp_scsi_queuecommand()
87 !(atomic_read(&zfcp_sdev->port->status) & in zfcp_scsi_queuecommand()
118 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_slave_alloc() local
123 zfcp_sdev->erp_action.adapter = adapter; in zfcp_scsi_slave_alloc()
124 zfcp_sdev->erp_action.sdev = sdev; in zfcp_scsi_slave_alloc()
130 zfcp_sdev->erp_action.port = port; in zfcp_scsi_slave_alloc()
150 zfcp_sdev->port = port; in zfcp_scsi_slave_alloc()
151 zfcp_sdev->latencies.write.channel.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
152 zfcp_sdev->latencies.write.fabric.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
153 zfcp_sdev->latencies.read.channel.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
154 zfcp_sdev->latencies.read.fabric.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
155 zfcp_sdev->latencies.cmd.channel.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
156 zfcp_sdev->latencies.cmd.fabric.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
157 spin_lock_init(&zfcp_sdev->latencies.lock); in zfcp_scsi_slave_alloc()
291 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_task_mgmt_function() local
292 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in zfcp_scsi_task_mgmt_function()
329 zfcp_scsi_forget_cmnds(zfcp_sdev, tm_flags); in zfcp_scsi_task_mgmt_function()
376 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scpnt->device); in zfcp_scsi_eh_host_reset_handler() local
377 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in zfcp_scsi_eh_host_reset_handler()