Searched refs:msi_dev_attr (Results 1 – 1 of 1) sorted by relevance
483 struct device_attribute *msi_dev_attr; in populate_msi_sysfs() local504 msi_dev_attr = kzalloc(sizeof(*msi_dev_attr), GFP_KERNEL); in populate_msi_sysfs()505 if (!msi_dev_attr) in populate_msi_sysfs()507 msi_attrs[count] = &msi_dev_attr->attr; in populate_msi_sysfs()509 sysfs_attr_init(&msi_dev_attr->attr); in populate_msi_sysfs()510 msi_dev_attr->attr.name = kasprintf(GFP_KERNEL, "%d", in populate_msi_sysfs()512 if (!msi_dev_attr->attr.name) in populate_msi_sysfs()514 msi_dev_attr->attr.mode = S_IRUGO; in populate_msi_sysfs()515 msi_dev_attr->show = msi_mode_show; in populate_msi_sysfs()546 msi_dev_attr = container_of(msi_attr, struct device_attribute, attr); in populate_msi_sysfs()[all …]