Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/blkdev.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <scsi/scsi_transport.h>
#include <linux/libata.h>
#include <linux/hdreg.h>
#include <linux/uaccess.h>
#include <linux/pm_runtime.h>
#include "libata.h"
#include "libata-transport.h"
Go to the source code of this file.
Data Structures | |
struct | ata_internal |
struct | ata_show_ering_arg |
Functions | |
ata_bitfield_name_search (class, ata_class_names) | |
ata_bitfield_name_match (err, ata_err_names) | |
ata_bitfield_name_match (xfer, ata_xfer_names) | |
void | ata_tport_delete (struct ata_port *ap) |
int | ata_tport_add (struct device *parent, struct ata_port *ap) |
ata_link_linkspeed_attr (hw_sata_spd_limit) | |
ata_link_linkspeed_attr (sata_spd_limit) | |
ata_link_linkspeed_attr (sata_spd) | |
void | ata_tlink_delete (struct ata_link *link) |
int | ata_tlink_add (struct ata_link *link) |
ata_dev_attr (class, class) | |
ata_dev_attr (xfer, pio_mode) | |
ata_dev_attr (xfer, dma_mode) | |
ata_dev_attr (xfer, xfer_mode) | |
ata_dev_simple_attr (spdn_cnt,"%d\n", int) | |
struct scsi_transport_template * | ata_attach_transport (void) |
void | ata_release_transport (struct scsi_transport_template *t) |
__init int | libata_transport_init (void) |
void __exit | libata_transport_exit (void) |
Variables | |
struct scsi_transport_template * | ata_scsi_transport_template |
ata_err_names [] | |
ata_xfer_names [] | |
#define ata_bitfield_name_match | ( | title, | |
table | |||
) |
Definition at line 96 of file libata-transport.c.
#define ata_bitfield_name_search | ( | title, | |
table | |||
) |
Definition at line 115 of file libata-transport.c.
#define ata_dev_attr | ( | title, | |
field | |||
) |
Definition at line 460 of file libata-transport.c.
#define ATA_DEV_ATTRS 9 |
Definition at line 42 of file libata-transport.c.
#define ata_dev_show_class | ( | title, | |
field | |||
) |
Definition at line 450 of file libata-transport.c.
#define ata_dev_show_simple | ( | field, | |
format_string, | |||
cast | |||
) |
Definition at line 470 of file libata-transport.c.
Definition at line 480 of file libata-transport.c.
#define ATA_DEVICE_ATTR | ( | _prefix, | |
_name, | |||
_mode, | |||
_show, | |||
_store | |||
) |
Definition at line 92 of file libata-transport.c.
#define ATA_LINK_ATTRS 3 |
Definition at line 41 of file libata-transport.c.
#define ata_link_linkspeed_attr | ( | field | ) |
Definition at line 334 of file libata-transport.c.
#define ata_link_show_linkspeed | ( | field | ) |
Definition at line 324 of file libata-transport.c.
#define ATA_PORT_ATTRS 2 |
Definition at line 40 of file libata-transport.c.
#define SETUP_DEV_ATTRIBUTE | ( | field | ) | SETUP_TEMPLATE(dev_attrs, field, S_IRUGO, 1) |
Definition at line 675 of file libata-transport.c.
#define SETUP_LINK_ATTRIBUTE | ( | field | ) | SETUP_TEMPLATE(link_attrs, field, S_IRUGO, 1) |
Definition at line 669 of file libata-transport.c.
#define SETUP_PORT_ATTRIBUTE | ( | field | ) | SETUP_TEMPLATE(port_attrs, field, S_IRUGO, 1) |
Definition at line 672 of file libata-transport.c.
#define tdev_to_device | ( | d | ) | container_of((d), struct ata_device, tdev) |
Definition at line 68 of file libata-transport.c.
#define tdev_to_link | ( | d | ) | container_of((d), struct ata_link, tdev) |
Definition at line 73 of file libata-transport.c.
#define tdev_to_port | ( | d | ) | container_of((d), struct ata_port, tdev) |
Definition at line 78 of file libata-transport.c.
#define to_ata_internal | ( | tmpl | ) | container_of(tmpl, struct ata_internal, t) |
Definition at line 65 of file libata-transport.c.
#define transport_class_to_dev | ( | dev | ) | tdev_to_device((dev)->parent) |
Definition at line 70 of file libata-transport.c.
#define transport_class_to_link | ( | dev | ) | tdev_to_link((dev)->parent) |
Definition at line 75 of file libata-transport.c.
#define transport_class_to_port | ( | dev | ) | tdev_to_port((dev)->parent) |
Definition at line 80 of file libata-transport.c.
|
read |
ata_attach_transport – instantiate ATA transport template
Definition at line 681 of file libata-transport.c.
ata_bitfield_name_match | ( | err | , |
ata_err_names | |||
) |
Definition at line 167 of file libata-transport.c.
ata_bitfield_name_match | ( | xfer | , |
ata_xfer_names | |||
) |
Definition at line 198 of file libata-transport.c.
ata_bitfield_name_search | ( | class | , |
ata_class_names | |||
) |
Definition at line 148 of file libata-transport.c.
ata_dev_attr | ( | xfer | , |
pio_mode | |||
) |
ata_dev_attr | ( | xfer | , |
dma_mode | |||
) |
ata_dev_attr | ( | xfer | , |
xfer_mode | |||
) |
ata_dev_simple_attr | ( | spdn_cnt | , |
"%d\n" | , | ||
int | |||
) |
ata_link_linkspeed_attr | ( | hw_sata_spd_limit | ) |
ata_link_linkspeed_attr | ( | sata_spd_limit | ) |
ata_link_linkspeed_attr | ( | sata_spd | ) |
void ata_release_transport | ( | struct scsi_transport_template * | t | ) |
ata_release_transport – release ATA transport template instance : transport template instance
Definition at line 741 of file libata-transport.c.
ata_tlink_delete – remove ATA LINK : ATA LINK to remove
Removes the specified ATA LINK. remove associated ATA device(s) as well.
Definition at line 378 of file libata-transport.c.
ata_tport_add - initialize a transport ATA port structure
: parent device : existing ata_port structure
Initialize a ATA port structure for sysfs. It will be added to the device tree below the device specified by which could be a PCI device.
Returns %0 on success
Definition at line 276 of file libata-transport.c.
ata_tport_delete – remove ATA PORT : ATA PORT to remove
Removes the specified ATA PORT. Remove the associated link as well.
Definition at line 254 of file libata-transport.c.
Definition at line 776 of file libata-transport.c.
Definition at line 752 of file libata-transport.c.
ata_err_names[] |
Definition at line 154 of file libata-transport.c.
struct scsi_transport_template* ata_scsi_transport_template |
Definition at line 45 of file libata-transport.c.
ata_xfer_names[] |
Definition at line 172 of file libata-transport.c.
char* name |
Definition at line 135 of file libata-transport.c.
value |
snd_pcm_hw_param_value - return field : the hw_params instance
Definition at line 134 of file libata-transport.c.