Home
last modified time | relevance | path

Searched refs:ata_device (Results 1 – 25 of 92) sorted by relevance

1234

/linux-6.1.9/drivers/ata/
Dlibata.h39 extern struct ata_link *ata_dev_phys_link(struct ata_device *dev);
50 struct ata_device *dev);
51 extern unsigned ata_exec_internal(struct ata_device *dev,
57 extern int ata_dev_read_id(struct ata_device *dev, unsigned int *p_class,
59 extern int ata_dev_reread_id(struct ata_device *dev, unsigned int readid_flags);
60 extern int ata_dev_revalidate(struct ata_device *dev, unsigned int new_class,
62 extern int ata_dev_configure(struct ata_device *dev);
64 extern int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel);
65 extern unsigned int ata_dev_set_feature(struct ata_device *dev,
74 extern void ata_dev_init(struct ata_device *dev);
[all …]
Dlibata-zpodd.c23 struct ata_device *dev;
35 static int eject_tray(struct ata_device *dev) in eject_tray()
53 static enum odd_mech_type zpodd_get_mech_type(struct ata_device *dev) in zpodd_get_mech_type()
104 static bool zpready(struct ata_device *dev) in zpready()
146 void zpodd_on_suspend(struct ata_device *dev) in zpodd_on_suspend()
171 bool zpodd_zpready(struct ata_device *dev) in zpodd_zpready()
185 void zpodd_enable_run_wake(struct ata_device *dev) in zpodd_enable_run_wake()
196 void zpodd_disable_run_wake(struct ata_device *dev) in zpodd_disable_run_wake()
219 void zpodd_post_poweron(struct ata_device *dev) in zpodd_post_poweron()
242 struct ata_device *ata_dev = context; in zpodd_wake_dev()
[all …]
Dlibata-acpi.c36 static void ata_acpi_clear_gtf(struct ata_device *dev) in ata_acpi_clear_gtf()
46 struct ata_device *dev;
60 acpi_handle ata_dev_acpi_handle(struct ata_device *dev) in ata_dev_acpi_handle()
67 static void ata_acpi_detach_device(struct ata_port *ap, struct ata_device *dev) in ata_acpi_detach_device()
73 struct ata_device *tdev; in ata_acpi_detach_device()
100 static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev, in ata_acpi_handle_hotplug()
137 struct ata_device *dev = ata_hotplug_data(adev->hp).dev; in ata_acpi_dev_notify_dock()
148 static void ata_acpi_uevent(struct ata_port *ap, struct ata_device *dev, in ata_acpi_uevent()
174 struct ata_device *dev = ata_hotplug_data(adev->hp).dev; in ata_acpi_dev_uevent()
206 void ata_acpi_bind_dev(struct ata_device *dev) in ata_acpi_bind_dev()
[all …]
Dpata_amd.c43 static void timing_setup(struct ata_port *ap, struct ata_device *adev, int offset, int speed, int c… in timing_setup()
50 struct ata_device *peer = ata_dev_pair(adev); in timing_setup()
179 struct ata_device *adev; in amd_fifo_setup()
208 static void amd33_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd33_set_piomode()
214 static void amd66_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd66_set_piomode()
220 static void amd100_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd100_set_piomode()
226 static void amd133_set_piomode(struct ata_port *ap, struct ata_device *adev) in amd133_set_piomode()
241 static void amd33_set_dmamode(struct ata_port *ap, struct ata_device *adev) in amd33_set_dmamode()
246 static void amd66_set_dmamode(struct ata_port *ap, struct ata_device *adev) in amd66_set_dmamode()
251 static void amd100_set_dmamode(struct ata_port *ap, struct ata_device *adev) in amd100_set_dmamode()
[all …]
Dpata_optidma.c116 static void optidma_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) in optidma_mode_setup()
118 struct ata_device *pair = ata_dev_pair(adev); in optidma_mode_setup()
201 static void optiplus_mode_setup(struct ata_port *ap, struct ata_device *adev, u8 mode) in optiplus_mode_setup()
239 static void optidma_set_pio_mode(struct ata_port *ap, struct ata_device *adev) in optidma_set_pio_mode()
254 static void optidma_set_dma_mode(struct ata_port *ap, struct ata_device *adev) in optidma_set_dma_mode()
269 static void optiplus_set_pio_mode(struct ata_port *ap, struct ata_device *adev) in optiplus_set_pio_mode()
284 static void optiplus_set_dma_mode(struct ata_port *ap, struct ata_device *adev) in optiplus_set_dma_mode()
297 static u8 optidma_make_bits43(struct ata_device *adev) in optidma_make_bits43()
319 static int optidma_set_mode(struct ata_link *link, struct ata_device **r_failed) in optidma_set_mode()
Dpata_sch.c40 static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev);
41 static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev);
96 static void sch_set_piomode(struct ata_port *ap, struct ata_device *adev) in sch_set_piomode()
125 static void sch_set_dmamode(struct ata_port *ap, struct ata_device *adev) in sch_set_dmamode()
Dpata_it821x.c126 static void it821x_program(struct ata_port *ap, struct ata_device *adev, u16 timing) in it821x_program()
154 static void it821x_program_udma(struct ata_port *ap, struct ata_device *adev, u16 timing) in it821x_program_udma()
185 static void it821x_clock_strategy(struct ata_port *ap, struct ata_device *adev) in it821x_clock_strategy()
190 struct ata_device *pair = ata_dev_pair(adev); in it821x_clock_strategy()
255 static void it821x_passthru_set_piomode(struct ata_port *ap, struct ata_device *adev) in it821x_passthru_set_piomode()
285 static void it821x_passthru_set_dmamode(struct ata_port *ap, struct ata_device *adev) in it821x_passthru_set_dmamode()
348 struct ata_device *adev = qc->dev; in it821x_passthru_bmdma_start()
371 struct ata_device *adev = qc->dev; in it821x_passthru_bmdma_stop()
394 struct ata_device *adev = &ap->link.device[device]; in it821x_passthru_dev_select()
465 static int it821x_smart_set_mode(struct ata_link *link, struct ata_device **unused) in it821x_smart_set_mode()
[all …]
Dpata_pdc2027x.c57 static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev);
58 static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev);
60 static unsigned int pdc2027x_mode_filter(struct ata_device *adev, unsigned int mask);
62 static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed);
185 static inline void __iomem *dev_mmio(struct ata_port *ap, struct ata_device *adev, unsigned int off… in dev_mmio()
254 static unsigned int pdc2027x_mode_filter(struct ata_device *adev, unsigned int mask) in pdc2027x_mode_filter()
257 struct ata_device *pair = ata_dev_pair(adev); in pdc2027x_mode_filter()
283 static void pdc2027x_set_piomode(struct ata_port *ap, struct ata_device *adev) in pdc2027x_set_piomode()
324 static void pdc2027x_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pdc2027x_set_dmamode()
384 static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed) in pdc2027x_set_mode()
[all …]
Dlibata-transport.c69 container_of((d), struct ata_device, tdev)
85 static int ata_tdev_add(struct ata_device *dev);
86 static void ata_tdev_delete(struct ata_device *dev);
418 struct ata_device *ata_dev; in ata_tlink_delete()
443 struct ata_device *ata_dev; in ata_tlink_add()
495 struct ata_device *ata_dev = transport_class_to_dev(dev); \
515 struct ata_device *ata_dev = transport_class_to_dev(dev); \
551 struct ata_device *ata_dev = transport_class_to_dev(dev); in show_ata_dev_ering()
565 struct ata_device *ata_dev = transport_class_to_dev(dev); in show_ata_dev_id()
584 struct ata_device *ata_dev = transport_class_to_dev(dev); in show_ata_dev_gscr()
[all …]
Dpata_sis.c86 static int sis_old_port_base(struct ata_device *adev) in sis_old_port_base()
99 static int sis_port_base(struct ata_device *adev) in sis_port_base()
194 static void sis_set_fifo(struct ata_port *ap, struct ata_device *adev) in sis_set_fifo()
226 static void sis_old_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_old_set_piomode()
263 static void sis_100_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_100_set_piomode()
288 static void sis_133_set_piomode (struct ata_port *ap, struct ata_device *adev) in sis_133_set_piomode()
336 static void sis_old_set_dmamode (struct ata_port *ap, struct ata_device *adev) in sis_old_set_dmamode()
375 static void sis_66_set_dmamode (struct ata_port *ap, struct ata_device *adev) in sis_66_set_dmamode()
414 static void sis_100_set_dmamode (struct ata_port *ap, struct ata_device *adev) in sis_100_set_dmamode()
448 static void sis_133_early_set_dmamode (struct ata_port *ap, struct ata_device *adev) in sis_133_early_set_dmamode()
[all …]
Dlibata-core.c83 static unsigned int ata_dev_init_params(struct ata_device *dev,
85 static unsigned int ata_dev_set_xfermode(struct ata_device *dev);
86 static void ata_dev_xfermask(struct ata_device *dev);
87 static unsigned long ata_dev_blacklisted(const struct ata_device *dev);
163 static inline bool ata_dev_print_info(struct ata_device *dev) in ata_dev_print_info()
247 struct ata_device *ata_dev_next(struct ata_device *dev, struct ata_link *link, in ata_dev_next()
303 struct ata_link *ata_dev_phys_link(struct ata_device *dev) in ata_dev_phys_link()
416 static void ata_force_xfermask(struct ata_device *dev) in ata_force_xfermask()
470 static void ata_force_horkage(struct ata_device *dev) in ata_force_horkage()
503 static inline void ata_force_xfermask(struct ata_device *dev) { } in ata_force_xfermask()
[all …]
Dpata_ali.c118 static unsigned int ali_20_filter(struct ata_device *adev, unsigned int mask) in ali_20_filter()
141 static void ali_fifo_control(struct ata_port *ap, struct ata_device *adev, int on) in ali_fifo_control()
170 static void ali_program_modes(struct ata_port *ap, struct ata_device *adev, struct ata_timing *t, u… in ali_program_modes()
207 static void ali_set_piomode(struct ata_port *ap, struct ata_device *adev) in ali_set_piomode()
209 struct ata_device *pair = ata_dev_pair(adev); in ali_set_piomode()
241 static void ali_set_dmamode(struct ata_port *ap, struct ata_device *adev) in ali_set_dmamode()
244 struct ata_device *pair = ata_dev_pair(adev); in ali_set_dmamode()
284 static void ali_warn_atapi_dma(struct ata_device *adev) in ali_warn_atapi_dma()
308 static void ali_lock_sectors(struct ata_device *adev) in ali_lock_sectors()
Dpata_acpi.c73 static unsigned long pacpi_discover_modes(struct ata_port *ap, struct ata_device *adev) in pacpi_discover_modes()
100 static unsigned int pacpi_mode_filter(struct ata_device *adev, unsigned int mask) in pacpi_mode_filter()
112 static void pacpi_set_piomode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_piomode()
135 static void pacpi_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pacpi_set_dmamode()
170 struct ata_device *adev = qc->dev; in pacpi_qc_issue()
Dpata_artop.c99 static void artop6210_load_piomode(struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6210_load_piomode()
126 static void artop6210_set_piomode(struct ata_port *ap, struct ata_device *adev) in artop6210_set_piomode()
153 static void artop6260_load_piomode (struct ata_port *ap, struct ata_device *adev, unsigned int pio) in artop6260_load_piomode()
180 static void artop6260_set_piomode(struct ata_port *ap, struct ata_device *adev) in artop6260_set_piomode()
204 static void artop6210_set_dmamode (struct ata_port *ap, struct ata_device *adev) in artop6210_set_dmamode()
244 static void artop6260_set_dmamode (struct ata_port *ap, struct ata_device *adev) in artop6260_set_dmamode()
Dpata_pdc202xx_old.c77 static void pdc202xx_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio) in pdc202xx_configure_piomode()
110 static void pdc202xx_set_piomode(struct ata_port *ap, struct ata_device *adev) in pdc202xx_set_piomode()
124 static void pdc202xx_set_dmamode(struct ata_port *ap, struct ata_device *adev) in pdc202xx_set_dmamode()
178 struct ata_device *adev = qc->dev; in pdc2026x_bmdma_start()
228 struct ata_device *adev = qc->dev; in pdc2026x_bmdma_stop()
258 static void pdc2026x_dev_config(struct ata_device *adev) in pdc2026x_dev_config()
Dlibata-pmp.c41 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_read()
78 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_write()
223 static int sata_pmp_read_gscr(struct ata_device *dev, u32 *gscr) in sata_pmp_read_gscr()
258 static int sata_pmp_configure(struct ata_device *dev, int print_info) in sata_pmp_configure()
485 int sata_pmp_attach(struct ata_device *dev) in sata_pmp_attach()
559 static void sata_pmp_detach(struct ata_device *dev) in sata_pmp_detach()
597 static int sata_pmp_same_pmp(struct ata_device *dev, const u32 *new_gscr) in sata_pmp_same_pmp()
648 static int sata_pmp_revalidate(struct ata_device *dev, unsigned int new_class) in sata_pmp_revalidate()
706 static int sata_pmp_revalidate_quick(struct ata_device *dev) in sata_pmp_revalidate_quick()
753 struct ata_device *dev = link->device; in sata_pmp_eh_recover_pmp()
[all …]
Dlibata-scsi.c47 static struct ata_device *__ata_scsi_find_dev(struct ata_port *ap,
94 struct ata_device *dev; in ata_scsi_park_show()
133 struct ata_device *dev; in ata_scsi_park_store()
191 void ata_scsi_set_sense(struct ata_device *dev, struct scsi_cmnd *cmd, in ata_scsi_set_sense()
202 void ata_scsi_set_sense_information(struct ata_device *dev, in ata_scsi_set_sense_information()
219 static void ata_scsi_set_invalid_field(struct ata_device *dev, in ata_scsi_set_invalid_field()
228 static void ata_scsi_set_invalid_parameter(struct ata_device *dev, in ata_scsi_set_invalid_parameter()
295 struct ata_device *dev; in ata_scsi_unlock_native_capacity()
327 struct ata_device *dev = ata_scsi_find_dev(ap, sdev); in ata_get_identity()
638 static struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev, in ata_scsi_qc_new()
[all …]
Dpata_sc1200.c72 static void sc1200_set_piomode(struct ata_port *ap, struct ata_device *adev) in sc1200_set_piomode()
106 static void sc1200_set_dmamode(struct ata_port *ap, struct ata_device *adev) in sc1200_set_dmamode()
155 struct ata_device *adev = qc->dev; in sc1200_qc_issue()
156 struct ata_device *prev = ap->private_data; in sc1200_qc_issue()
Dpata_legacy.c239 static int legacy_set_mode(struct ata_link *link, struct ata_device **unused) in legacy_set_mode()
241 struct ata_device *dev; in legacy_set_mode()
290 static void pdc20230_set_piomode(struct ata_port *ap, struct ata_device *adev) in pdc20230_set_piomode()
333 struct ata_device *dev = qc->dev; in pdc_data_xfer_vlb()
387 static void ht6560a_set_piomode(struct ata_port *ap, struct ata_device *adev) in ht6560a_set_piomode()
421 static void ht6560b_set_piomode(struct ata_port *ap, struct ata_device *adev) in ht6560b_set_piomode()
485 struct ata_device *adev) in opti82c611a_set_piomode()
489 struct ata_device *pair = ata_dev_pair(adev); in opti82c611a_set_piomode()
560 static void opti82c46x_set_piomode(struct ata_port *ap, struct ata_device *adev) in opti82c46x_set_piomode()
564 struct ata_device *pair = ata_dev_pair(adev); in opti82c46x_set_piomode()
[all …]
Dpata_hpt366.c173 static int hpt_dma_blacklisted(const struct ata_device *dev, char *modestr, in hpt_dma_blacklisted()
197 static unsigned int hpt366_filter(struct ata_device *adev, unsigned int mask) in hpt366_filter()
227 static void hpt366_set_mode(struct ata_port *ap, struct ata_device *adev, in hpt366_set_mode()
262 static void hpt366_set_piomode(struct ata_port *ap, struct ata_device *adev) in hpt366_set_piomode()
276 static void hpt366_set_dmamode(struct ata_port *ap, struct ata_device *adev) in hpt366_set_dmamode()
Dlibata-eh.c155 struct ata_device **r_failed_dev);
331 unsigned int ata_internal_cmd_timeout(struct ata_device *dev, u8 cmd) in ata_internal_cmd_timeout()
356 void ata_internal_cmd_timed_out(struct ata_device *dev, u8 cmd) in ata_internal_cmd_timed_out()
427 static unsigned int ata_eh_dev_action(struct ata_device *dev) in ata_eh_dev_action()
434 static void ata_eh_clear_action(struct ata_link *link, struct ata_device *dev, in ata_eh_clear_action()
437 struct ata_device *tdev; in ata_eh_clear_action()
498 struct ata_device *dev; in ata_eh_unload()
678 struct ata_device *dev; in ata_scsi_port_error_handler()
1211 void ata_dev_disable(struct ata_device *dev) in ata_dev_disable()
1237 void ata_eh_detach_dev(struct ata_device *dev) in ata_eh_detach_dev()
[all …]
Dpata_cs5530.c42 static void cs5530_set_piomode(struct ata_port *ap, struct ata_device *adev) in cs5530_set_piomode()
73 static void cs5530_set_dmamode(struct ata_port *ap, struct ata_device *adev) in cs5530_set_dmamode()
134 struct ata_device *adev = qc->dev; in cs5530_qc_issue()
135 struct ata_device *prev = ap->private_data; in cs5530_qc_issue()
Dpata_cs5536.c108 static void cs5536_program_dtc(struct ata_device *adev, u8 tim) in cs5536_program_dtc()
148 static void cs5536_set_piomode(struct ata_port *ap, struct ata_device *adev) in cs5536_set_piomode()
163 struct ata_device *pair = ata_dev_pair(adev); in cs5536_set_piomode()
192 static void cs5536_set_dmamode(struct ata_port *ap, struct ata_device *adev) in cs5536_set_dmamode()
/linux-6.1.9/include/linux/
Dlibata.h582 struct ata_device *dev;
648 struct ata_device { struct
719 #define ATA_DEVICE_CLEAR_BEGIN offsetof(struct ata_device, n_sectors) argument
720 #define ATA_DEVICE_CLEAR_END offsetof(struct ata_device, ering)
723 struct ata_device *dev; /* offending device */
782 struct ata_device device[ATA_MAX_DEVICES];
885 unsigned int (*mode_filter)(struct ata_device *dev, unsigned int xfer_mask);
886 void (*set_piomode)(struct ata_port *ap, struct ata_device *dev);
887 void (*set_dmamode)(struct ata_port *ap, struct ata_device *dev);
888 int (*set_mode)(struct ata_link *link, struct ata_device **r_failed_dev);
[all …]
/linux-6.1.9/Documentation/ABI/testing/
Dsysfs-ata64 Files under /sys/class/ata_device
74 What: /sys/class/ata_device/devX[.Y].Z/spdn_cnt
75 What: /sys/class/ata_device/devX[.Y].Z/gscr
76 What: /sys/class/ata_device/devX[.Y].Z/ering
77 What: /sys/class/ata_device/devX[.Y].Z/id
78 What: /sys/class/ata_device/devX[.Y].Z/pio_mode
79 What: /sys/class/ata_device/devX[.Y].Z/xfer_mode
80 What: /sys/class/ata_device/devX[.Y].Z/dma_mode
81 What: /sys/class/ata_device/devX[.Y].Z/class
124 What: /sys/class/ata_device/devX[.Y].Z/trim

1234