Lines Matching refs:ata_port
535 struct ata_port;
631 struct ata_port *simplex_claimed; /* channel owning the DMA */
632 struct ata_port *ports[];
636 struct ata_port *ap;
838 struct ata_port *ap;
865 struct ata_port { struct
953 void (*qc_ncq_fill_rtf)(struct ata_port *ap, u64 done_mask); argument
958 int (*cable_detect)(struct ata_port *ap);
960 void (*set_piomode)(struct ata_port *ap, struct ata_device *dev);
961 void (*set_dmamode)(struct ata_port *ap, struct ata_device *dev);
968 void (*freeze)(struct ata_port *ap);
969 void (*thaw)(struct ata_port *ap);
978 void (*error_handler)(struct ata_port *ap);
979 void (*lost_interrupt)(struct ata_port *ap);
981 void (*sched_eh)(struct ata_port *ap);
982 void (*end_eh)(struct ata_port *ap);
989 void (*pmp_attach)(struct ata_port *ap);
990 void (*pmp_detach)(struct ata_port *ap);
997 int (*port_suspend)(struct ata_port *ap, pm_message_t mesg);
998 int (*port_resume)(struct ata_port *ap);
999 int (*port_start)(struct ata_port *ap);
1000 void (*port_stop)(struct ata_port *ap);
1007 void (*sff_dev_select)(struct ata_port *ap, unsigned int device);
1008 void (*sff_set_devctl)(struct ata_port *ap, u8 ctl);
1009 u8 (*sff_check_status)(struct ata_port *ap);
1010 u8 (*sff_check_altstatus)(struct ata_port *ap);
1011 void (*sff_tf_load)(struct ata_port *ap, const struct ata_taskfile *tf);
1012 void (*sff_tf_read)(struct ata_port *ap, struct ata_taskfile *tf);
1013 void (*sff_exec_command)(struct ata_port *ap,
1017 void (*sff_irq_on)(struct ata_port *);
1018 bool (*sff_irq_check)(struct ata_port *);
1019 void (*sff_irq_clear)(struct ata_port *);
1026 u8 (*bmdma_status)(struct ata_port *ap);
1030 ssize_t (*em_show)(struct ata_port *ap, char *buf);
1031 ssize_t (*em_store)(struct ata_port *ap, const char *message,
1036 ssize_t (*transmit_led_message)(struct ata_port *ap, u32 state,
1109 static inline int ata_port_is_dummy(struct ata_port *ap) in ata_port_is_dummy()
1114 static inline bool ata_port_is_frozen(const struct ata_port *ap) in ata_port_is_frozen()
1150 extern int ata_sas_scsi_ioctl(struct ata_port *ap, struct scsi_device *dev,
1157 extern void ata_sas_port_suspend(struct ata_port *ap);
1158 extern void ata_sas_port_resume(struct ata_port *ap);
1160 static inline void ata_sas_port_suspend(struct ata_port *ap) in ata_sas_port_suspend()
1163 static inline void ata_sas_port_resume(struct ata_port *ap) in ata_sas_port_resume()
1168 extern void ata_msleep(struct ata_port *ap, unsigned int msecs);
1169 extern u32 ata_wait_register(struct ata_port *ap, void __iomem *reg, u32 mask,
1188 extern unsigned int ata_port_classify(struct ata_port *ap,
1198 extern u64 ata_qc_get_active(struct ata_port *ap);
1209 extern int ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
1211 extern int ata_ncq_prio_supported(struct ata_port *ap, struct scsi_device *sdev,
1213 extern int ata_ncq_prio_enabled(struct ata_port *ap, struct scsi_device *sdev,
1215 extern int ata_ncq_prio_enable(struct ata_port *ap, struct scsi_device *sdev,
1219 extern void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap);
1220 extern void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap, struct list_hea…
1299 extern int ata_slave_link_init(struct ata_port *ap);
1300 extern void ata_port_probe(struct ata_port *ap);
1301 extern struct ata_port *ata_port_alloc(struct ata_host *host);
1302 extern void ata_port_free(struct ata_port *ap);
1303 extern int ata_tport_add(struct device *parent, struct ata_port *ap);
1304 extern void ata_tport_delete(struct ata_port *ap);
1306 struct ata_port *ap);
1307 extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap);
1311 extern int ata_qc_complete_multiple(struct ata_port *ap, u64 qc_active);
1313 extern int sata_async_notification(struct ata_port *ap);
1315 extern int ata_cable_40wire(struct ata_port *ap);
1316 extern int ata_cable_80wire(struct ata_port *ap);
1317 extern int ata_cable_sata(struct ata_port *ap);
1318 extern int ata_cable_ignore(struct ata_port *ap);
1319 extern int ata_cable_unknown(struct ata_port *ap);
1356 static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap) in ata_acpi_init_gtm()
1362 int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm);
1363 int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm);
1366 int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm);
1368 static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap) in ata_acpi_init_gtm()
1373 static inline int ata_acpi_stm(const struct ata_port *ap, in ata_acpi_stm()
1379 static inline int ata_acpi_gtm(const struct ata_port *ap, in ata_acpi_gtm()
1391 static inline int ata_acpi_cbl_80wire(struct ata_port *ap, in ata_acpi_cbl_80wire()
1401 extern void ata_port_schedule_eh(struct ata_port *ap);
1402 extern void ata_port_wait_eh(struct ata_port *ap);
1404 extern int ata_port_abort(struct ata_port *ap);
1405 extern int ata_port_freeze(struct ata_port *ap);
1407 extern void ata_eh_freeze_port(struct ata_port *ap);
1408 extern void ata_eh_thaw_port(struct ata_port *ap);
1413 extern void ata_do_eh(struct ata_port *ap, ata_prereset_fn_t prereset,
1416 extern void ata_std_error_handler(struct ata_port *ap);
1417 extern void ata_std_sched_eh(struct ata_port *ap);
1418 extern void ata_std_end_eh(struct ata_port *ap);
1502 static inline bool sata_pmp_supported(struct ata_port *ap) in sata_pmp_supported()
1507 static inline bool sata_pmp_attached(struct ata_port *ap) in sata_pmp_attached()
1517 static inline bool sata_pmp_supported(struct ata_port *ap) in sata_pmp_supported()
1522 static inline bool sata_pmp_attached(struct ata_port *ap) in sata_pmp_attached()
1619 void ata_port_desc(struct ata_port *ap, const char *fmt, ...);
1621 extern void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset,
1624 static inline void ata_port_desc_misc(struct ata_port *ap, int irq) in ata_port_desc_misc()
1743 struct ata_port *ap,
1836 static inline struct ata_queued_cmd *__ata_qc_from_tag(struct ata_port *ap, in __ata_qc_from_tag()
1844 static inline struct ata_queued_cmd *ata_qc_from_tag(struct ata_port *ap, in ata_qc_from_tag()
1922 static inline struct ata_port *ata_shost_to_port(struct Scsi_Host *host) in ata_shost_to_port()
1924 return *(struct ata_port **)&host->hostdata[0]; in ata_shost_to_port()
1984 extern void sata_pmp_error_handler(struct ata_port *ap);
2009 extern void ata_sff_dev_select(struct ata_port *ap, unsigned int device);
2010 extern u8 ata_sff_check_status(struct ata_port *ap);
2011 extern void ata_sff_pause(struct ata_port *ap);
2012 extern void ata_sff_dma_pause(struct ata_port *ap);
2014 extern void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf);
2015 extern void ata_sff_tf_read(struct ata_port *ap, struct ata_taskfile *tf);
2016 extern void ata_sff_exec_command(struct ata_port *ap,
2022 extern void ata_sff_irq_on(struct ata_port *ap);
2023 extern int ata_sff_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc,
2031 extern unsigned int ata_sff_port_intr(struct ata_port *ap,
2034 extern void ata_sff_lost_interrupt(struct ata_port *ap);
2035 extern void ata_sff_freeze(struct ata_port *ap);
2036 extern void ata_sff_thaw(struct ata_port *ap);
2048 extern void ata_sff_error_handler(struct ata_port *ap);
2075 extern unsigned int ata_bmdma_port_intr(struct ata_port *ap,
2078 extern void ata_bmdma_error_handler(struct ata_port *ap);
2080 extern void ata_bmdma_irq_clear(struct ata_port *ap);
2084 extern u8 ata_bmdma_status(struct ata_port *ap);
2085 extern int ata_bmdma_port_start(struct ata_port *ap);
2086 extern int ata_bmdma_port_start32(struct ata_port *ap);
2114 static inline u8 ata_sff_busy_wait(struct ata_port *ap, unsigned int bits, in ata_sff_busy_wait()
2138 static inline u8 ata_wait_idle(struct ata_port *ap) in ata_wait_idle()