Searched refs:data_attr (Results 1 – 2 of 2) sorted by relevance
440 struct acpi_data_attr *data_attr; in acpi_data_show() local444 data_attr = container_of(bin_attr, struct acpi_data_attr, attr); in acpi_data_show()446 base = acpi_os_map_memory(data_attr->addr, data_attr->attr.size); in acpi_data_show()450 data_attr->attr.size); in acpi_data_show()451 acpi_os_unmap_memory(base, data_attr->attr.size); in acpi_data_show()456 static int acpi_bert_data_init(void *th, struct acpi_data_attr *data_attr) in acpi_bert_data_init() argument462 kfree(data_attr); in acpi_bert_data_init()465 data_attr->addr = bert->address; in acpi_bert_data_init()466 data_attr->attr.size = bert->region_length; in acpi_bert_data_init()467 data_attr->attr.attr.name = "BERT"; in acpi_bert_data_init()[all …]
88 struct bin_attribute data_attr; member515 sysfs_bin_attr_init(&sd_file->data_attr); in sclp_sd_file_create()516 sd_file->data_attr.attr.name = "data"; in sclp_sd_file_create()517 sd_file->data_attr.attr.mode = 0444; in sclp_sd_file_create()518 sd_file->data_attr.read = data_read; in sclp_sd_file_create()520 rc = sysfs_create_bin_file(&sd_file->kobj, &sd_file->data_attr); in sclp_sd_file_create()