Searched refs:config_attr (Results 1 – 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/misc/cxl/ |
D | sysfs.c | 506 struct bin_attribute config_attr; member 618 sysfs_bin_attr_init(&cr->config_attr); in cxl_sysfs_afu_new_cr() 619 cr->config_attr.attr.name = "config"; in cxl_sysfs_afu_new_cr() 620 cr->config_attr.attr.mode = S_IRUSR; in cxl_sysfs_afu_new_cr() 621 cr->config_attr.size = afu->crs_len; in cxl_sysfs_afu_new_cr() 622 cr->config_attr.read = afu_read_config; in cxl_sysfs_afu_new_cr() 629 rc = sysfs_create_bin_file(&cr->kobj, &cr->config_attr); in cxl_sysfs_afu_new_cr() 639 sysfs_remove_bin_file(&cr->kobj, &cr->config_attr); in cxl_sysfs_afu_new_cr() 666 sysfs_remove_bin_file(&cr->kobj, &cr->config_attr); in cxl_sysfs_afu_remove()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | parse-events.c | 444 static int config_attr(struct perf_event_attr *attr, 512 if (config_attr(&attr, head_config, err, in parse_events_add_cache() 1217 static int config_attr(struct perf_event_attr *attr, in config_attr() function 1374 if (config_attr(&attr, head_config, err, in parse_events_add_tracepoint() 1400 if (config_attr(&attr, head_config, parse_state->error, in parse_events_add_numeric() 1511 if (config_attr(&attr, head_config, parse_state->error, config_term_pmu)) in parse_events_add_pmu()
|