Searched refs:config_attr (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/misc/cxl/
H A Dsysfs.c395 struct bin_attribute config_attr; member in struct:afu_config_record
502 sysfs_bin_attr_init(&cr->config_attr); cxl_sysfs_afu_new_cr()
503 cr->config_attr.attr.name = "config"; cxl_sysfs_afu_new_cr()
504 cr->config_attr.attr.mode = S_IRUSR; cxl_sysfs_afu_new_cr()
505 cr->config_attr.size = afu->crs_len; cxl_sysfs_afu_new_cr()
506 cr->config_attr.read = afu_read_config; cxl_sysfs_afu_new_cr()
513 rc = sysfs_create_bin_file(&cr->kobj, &cr->config_attr); cxl_sysfs_afu_new_cr()
523 sysfs_remove_bin_file(&cr->kobj, &cr->config_attr); cxl_sysfs_afu_new_cr()
541 sysfs_remove_bin_file(&cr->kobj, &cr->config_attr); cxl_sysfs_afu_remove()
/linux-4.1.27/tools/perf/util/
H A Dparse-events.c584 static int config_attr(struct perf_event_attr *attr, config_attr() function
607 config_attr(&attr, head_config, 1)) parse_events_add_numeric()
661 config_attr(&attr, head_config, 0); parse_events_add_pmu()

Completed in 191 milliseconds