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);
1210 extern int ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,
1212 extern int ata_ncq_prio_supported(struct ata_port *ap, struct scsi_device *sdev,
1214 extern int ata_ncq_prio_enabled(struct ata_port *ap, struct scsi_device *sdev,
1216 extern int ata_ncq_prio_enable(struct ata_port *ap, struct scsi_device *sdev,
1220 extern void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap);
1221 extern void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap, struct list_hea…
1300 extern int ata_slave_link_init(struct ata_port *ap);
1301 extern void ata_port_probe(struct ata_port *ap);
1302 extern struct ata_port *ata_port_alloc(struct ata_host *host);
1303 extern void ata_port_free(struct ata_port *ap);
1304 extern int ata_tport_add(struct device *parent, struct ata_port *ap);
1305 extern void ata_tport_delete(struct ata_port *ap);
1307 struct ata_port *ap);
1308 extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap);
1312 extern int ata_qc_complete_multiple(struct ata_port *ap, u64 qc_active);
1314 extern int sata_async_notification(struct ata_port *ap);
1316 extern int ata_cable_40wire(struct ata_port *ap);
1317 extern int ata_cable_80wire(struct ata_port *ap);
1318 extern int ata_cable_sata(struct ata_port *ap);
1319 extern int ata_cable_ignore(struct ata_port *ap);
1320 extern int ata_cable_unknown(struct ata_port *ap);
1357 static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap) in ata_acpi_init_gtm()
1363 int ata_acpi_stm(struct ata_port *ap, const struct ata_acpi_gtm *stm);
1364 int ata_acpi_gtm(struct ata_port *ap, struct ata_acpi_gtm *stm);
1367 int ata_acpi_cbl_80wire(struct ata_port *ap, const struct ata_acpi_gtm *gtm);
1369 static inline const struct ata_acpi_gtm *ata_acpi_init_gtm(struct ata_port *ap) in ata_acpi_init_gtm()
1374 static inline int ata_acpi_stm(const struct ata_port *ap, in ata_acpi_stm()
1380 static inline int ata_acpi_gtm(const struct ata_port *ap, in ata_acpi_gtm()
1392 static inline int ata_acpi_cbl_80wire(struct ata_port *ap, in ata_acpi_cbl_80wire()
1402 extern void ata_port_schedule_eh(struct ata_port *ap);
1403 extern void ata_port_wait_eh(struct ata_port *ap);
1405 extern int ata_port_abort(struct ata_port *ap);
1406 extern int ata_port_freeze(struct ata_port *ap);
1408 extern void ata_eh_freeze_port(struct ata_port *ap);
1409 extern void ata_eh_thaw_port(struct ata_port *ap);
1414 extern void ata_do_eh(struct ata_port *ap, ata_prereset_fn_t prereset,
1417 extern void ata_std_error_handler(struct ata_port *ap);
1418 extern void ata_std_sched_eh(struct ata_port *ap);
1419 extern void ata_std_end_eh(struct ata_port *ap);
1503 static inline bool sata_pmp_supported(struct ata_port *ap) in sata_pmp_supported()
1508 static inline bool sata_pmp_attached(struct ata_port *ap) in sata_pmp_attached()
1518 static inline bool sata_pmp_supported(struct ata_port *ap) in sata_pmp_supported()
1523 static inline bool sata_pmp_attached(struct ata_port *ap) in sata_pmp_attached()
1620 void ata_port_desc(struct ata_port *ap, const char *fmt, ...);
1622 extern void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset,
1625 static inline void ata_port_desc_misc(struct ata_port *ap, int irq) in ata_port_desc_misc()
1744 struct ata_port *ap,
1837 static inline struct ata_queued_cmd *__ata_qc_from_tag(struct ata_port *ap, in __ata_qc_from_tag()
1845 static inline struct ata_queued_cmd *ata_qc_from_tag(struct ata_port *ap, in ata_qc_from_tag()
1923 static inline struct ata_port *ata_shost_to_port(struct Scsi_Host *host) in ata_shost_to_port()
1925 return *(struct ata_port **)&host->hostdata[0]; in ata_shost_to_port()
1985 extern void sata_pmp_error_handler(struct ata_port *ap);
2010 extern void ata_sff_dev_select(struct ata_port *ap, unsigned int device);
2011 extern u8 ata_sff_check_status(struct ata_port *ap);
2012 extern void ata_sff_pause(struct ata_port *ap);
2013 extern void ata_sff_dma_pause(struct ata_port *ap);
2015 extern void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf);
2016 extern void ata_sff_tf_read(struct ata_port *ap, struct ata_taskfile *tf);
2017 extern void ata_sff_exec_command(struct ata_port *ap,
2023 extern void ata_sff_irq_on(struct ata_port *ap);
2024 extern int ata_sff_hsm_move(struct ata_port *ap, struct ata_queued_cmd *qc,
2032 extern unsigned int ata_sff_port_intr(struct ata_port *ap,
2035 extern void ata_sff_lost_interrupt(struct ata_port *ap);
2036 extern void ata_sff_freeze(struct ata_port *ap);
2037 extern void ata_sff_thaw(struct ata_port *ap);
2049 extern void ata_sff_error_handler(struct ata_port *ap);
2076 extern unsigned int ata_bmdma_port_intr(struct ata_port *ap,
2079 extern void ata_bmdma_error_handler(struct ata_port *ap);
2081 extern void ata_bmdma_irq_clear(struct ata_port *ap);
2085 extern u8 ata_bmdma_status(struct ata_port *ap);
2086 extern int ata_bmdma_port_start(struct ata_port *ap);
2087 extern int ata_bmdma_port_start32(struct ata_port *ap);
2115 static inline u8 ata_sff_busy_wait(struct ata_port *ap, unsigned int bits, in ata_sff_busy_wait()
2139 static inline u8 ata_wait_idle(struct ata_port *ap) in ata_wait_idle()