Lines Matching refs:zfcp_sdev
38 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_slave_destroy() local
41 if (!zfcp_sdev->port) in zfcp_scsi_slave_destroy()
45 put_device(&zfcp_sdev->port->dev); in zfcp_scsi_slave_destroy()
65 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scpnt->device); in zfcp_scsi_queuecommand() local
81 status = atomic_read(&zfcp_sdev->status); in zfcp_scsi_queuecommand()
83 !(atomic_read(&zfcp_sdev->port->status) & in zfcp_scsi_queuecommand()
114 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_slave_alloc() local
119 zfcp_sdev->erp_action.adapter = adapter; in zfcp_scsi_slave_alloc()
120 zfcp_sdev->erp_action.sdev = sdev; in zfcp_scsi_slave_alloc()
126 zfcp_sdev->erp_action.port = port; in zfcp_scsi_slave_alloc()
146 zfcp_sdev->port = port; in zfcp_scsi_slave_alloc()
147 zfcp_sdev->latencies.write.channel.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
148 zfcp_sdev->latencies.write.fabric.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
149 zfcp_sdev->latencies.read.channel.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
150 zfcp_sdev->latencies.read.fabric.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
151 zfcp_sdev->latencies.cmd.channel.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
152 zfcp_sdev->latencies.cmd.fabric.min = 0xFFFFFFFF; in zfcp_scsi_slave_alloc()
153 spin_lock_init(&zfcp_sdev->latencies.lock); in zfcp_scsi_slave_alloc()
285 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(sdev); in zfcp_scsi_task_mgmt_function() local
286 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in zfcp_scsi_task_mgmt_function()
323 zfcp_scsi_forget_cmnds(zfcp_sdev, tm_flags); in zfcp_scsi_task_mgmt_function()
370 struct zfcp_scsi_dev *zfcp_sdev = sdev_to_zfcp(scpnt->device); in zfcp_scsi_eh_host_reset_handler() local
371 struct zfcp_adapter *adapter = zfcp_sdev->port->adapter; in zfcp_scsi_eh_host_reset_handler()