device_attribute
struct device_attribute *, char *);
struct device_attribute *, const char *,
struct device_attribute dev_attr_##_name = \
struct device_attribute dev_attr_##_name = __ATTR_RO(_name)
struct device_attribute dev_attr_##_name = __ATTR_WO(_name)
struct device_attribute dev_attr_##_name = __ATTR_RW(_name)
device_create_file(struct device *dev, const struct device_attribute *attr)
device_remove_file(struct device *dev, const struct device_attribute *attr)
struct device_attribute *dattr;
dattr = container_of(attr, struct device_attribute, attr);
struct device_attribute *dattr;
dattr = container_of(attr, struct device_attribute, attr);
static ssize_t show_rev(struct device *device, struct device_attribute *attr,
static ssize_t show_hca(struct device *device, struct device_attribute *attr,
static ssize_t show_board_id(struct device *device, struct device_attribute *attr,
static struct device_attribute *bnxt_re_attributes[] = {
struct device_attribute *attr;
struct device_attribute port_attr;
struct device_attribute port_mtu_attr;
struct device_attribute *attr,
struct device_attribute *attr,
struct device_attribute *attr,
struct device_attribute *attr,
struct device_attribute dentry;
static ssize_t show_hca(struct device *device, struct device_attribute *attr,
static ssize_t show_rev(struct device *device, struct device_attribute *attr,
static ssize_t show_board(struct device *device, struct device_attribute *attr,
static struct device_attribute *mlx4_class_attributes[] = {
struct device_attribute dentry;
struct device_attribute *attr, char *buf);
struct device_attribute *attr, char *buf)
struct device_attribute *attr,
struct device_attribute *attr,
struct device_attribute *attr,
struct device_attribute *attr,
struct device_attribute enable_smi_admin;
struct device_attribute smi_enabled;
struct device_attribute *attr, char *buf)
struct device_attribute *attr, char *buf)
struct device_attribute *attr,
struct device_attribute *attr,
struct device_attribute *attr,
static ssize_t show_fw_pages(struct device *device, struct device_attribute *attr,
struct device_attribute *attr, char *buf)
static ssize_t show_hca(struct device *device, struct device_attribute *attr,
static ssize_t show_rev(struct device *device, struct device_attribute *attr,
static ssize_t show_board(struct device *device, struct device_attribute *attr,
static struct device_attribute *mlx5_class_attributes[] = {
static ssize_t show_rev(struct device *device, struct device_attribute *attr,
static ssize_t show_hca(struct device *device, struct device_attribute *attr,
static ssize_t show_board(struct device *device, struct device_attribute *attr,
static struct device_attribute *mthca_dev_attributes[] = {
set_dek_table_entry0(struct device *dev, struct device_attribute *attr, const char *buf, size_t len)
set_dek_table_entry1(struct device *dev, struct device_attribute *attr, const char *buf, size_t len)
show_dek_table_entry0(struct device *dev, struct device_attribute *attr, char *buf)
show_dek_table_entry1(struct device *dev, struct device_attribute *attr, char *buf)
show_kek_table(struct device *dev, struct device_attribute *attr, char *buf)
show_dek_kek_map0(struct device *dev, struct device_attribute *attr, char *buf)
show_dek_kek_map1(struct device *dev, struct device_attribute *attr, char *buf)
show_target_dek_map(struct device *dev, struct device_attribute *attr, char *buf)
ssize_t set_dek_table_entry0(struct device *dev, struct device_attribute *attr, const char *buf, size_t len);
ssize_t show_dek_table_entry0(struct device *dev, struct device_attribute *attr, char *buf);
ssize_t set_dek_table_entry1(struct device *dev, struct device_attribute *attr, const char *buf, size_t len);
ssize_t show_dek_table_entry1(struct device *dev, struct device_attribute *attr, char *buf);
ssize_t show_kek_table(struct device *dev, struct device_attribute *attr, char *buf);
ssize_t show_dek_kek_map0(struct device *dev, struct device_attribute *attr, char *buf);
ssize_t show_dek_kek_map1(struct device *dev, struct device_attribute *attr, char *buf);
ssize_t show_target_dek_map(struct device *dev, struct device_attribute *attr, char *buf);
struct device_attribute *attr, char *buf)
static struct device_attribute *qlnxr_class_attributes[] = {
show_rev(struct device *device, struct device_attribute *attr,
struct device_attribute *attr, char *buf)
struct device_attribute *attr, char *buf)
struct device_attribute *attr, char *buf)
struct device_attribute *dev_attr, char *buf)
struct device_attribute *attr, char *buf)
struct device_attribute *attr, char *buf)
struct device_attribute *attr,
static ssize_t show_fw_ver(struct device *device, struct device_attribute *attr,
static struct device_attribute *ib_class_attributes[] = {
static ssize_t show_ibdev(struct device *dev, struct device_attribute *attr,
struct device_attribute *attr,
static ssize_t show_ibdev(struct device *dev, struct device_attribute *attr,
static ssize_t show_port(struct device *dev, struct device_attribute *attr,
show_dev_device(struct device *device, struct device_attribute *attr, char *buf)
show_dev_vendor(struct device *device, struct device_attribute *attr, char *buf)
static ssize_t ibdev_show(struct device *device, struct device_attribute *attr,
struct device_attribute *attr, char *buf)
static ssize_t show_parent(struct device *d, struct device_attribute *attr,