/kernel/liteos_a/kernel/extended/perf/ |
H A D | los_perf.c | 424 UINT32 LOS_PerfConfig(PerfConfigAttr *attr) in LOS_PerfConfig() argument 429 if (attr == NULL) { in LOS_PerfConfig() 442 g_perfCb.needSample = attr->needSample; in LOS_PerfConfig() 443 g_perfCb.sampleType = attr->sampleType; in LOS_PerfConfig() 445 OsPerfSetFilterIds(g_perfCb.taskIds, &g_perfCb.taskIdsNr, attr->taskIds, attr->taskIdsNr); in LOS_PerfConfig() 446 OsPerfSetFilterIds(g_perfCb.processIds, &g_perfCb.processIdsNr, attr->processIds, attr->processIdsNr); in LOS_PerfConfig() 448 ret = OsPerfConfig(&attr->eventsCfg); in LOS_PerfConfig()
|
/kernel/linux/linux-6.6/net/bridge/ |
H A D | br_sysfs_if.c | 25 struct attribute attr; member 33 .attr = {.name = __stringify(_name), \ 41 .attr = {.name = __stringify(_name), \ 299 #define to_brport_attr(_at) container_of(_at, struct brport_attribute, attr) 302 struct attribute *attr, char *buf) in brport_show() 304 struct brport_attribute *brport_attr = to_brport_attr(attr); in brport_show() 314 struct attribute *attr, in brport_store() 317 struct brport_attribute *brport_attr = to_brport_attr(attr); in brport_store() 382 err = sysfs_create_file(&p->kobj, &((*a)->attr)); in br_sysfs_addif() 301 brport_show(struct kobject *kobj, struct attribute *attr, char *buf) brport_show() argument 313 brport_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) brport_store() argument
|
/kernel/linux/linux-5.10/drivers/firmware/ |
H A D | dmi-id.c | 23 struct device_attribute *attr, in sys_dmi_field_show() 26 int field = to_dmi_dev_attr(attr)->field; in sys_dmi_field_show() 130 struct device_attribute *attr, char *page) in sys_dmi_modalias_show() 179 sys_dmi_attributes[i++] = &sys_dmi_##_name##_attr.dev_attr.attr; 213 sys_dmi_attributes[i++] = &sys_dmi_modalias_attr.attr; in dmi_id_init_attr_table() 22 sys_dmi_field_show(struct device *dev, struct device_attribute *attr, char *page) sys_dmi_field_show() argument 129 sys_dmi_modalias_show(struct device *dev, struct device_attribute *attr, char *page) sys_dmi_modalias_show() argument
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | acpi.c | 252 u64 attr; in __acpi_get_mem_attribute() local 254 attr = efi_mem_attributes(addr); in __acpi_get_mem_attribute() 255 if (attr & EFI_MEMORY_WB) in __acpi_get_mem_attribute() 257 if (attr & EFI_MEMORY_WT) in __acpi_get_mem_attribute() 259 if (attr & EFI_MEMORY_WC) in __acpi_get_mem_attribute()
|
/kernel/linux/linux-5.10/drivers/bus/ |
H A D | bt1-axi.c | 198 struct device_attribute *attr, char *buf) in count_show() 207 struct device_attribute *attr, char *buf) in inject_error_show() 213 struct device_attribute *attr, in inject_error_store() 235 &dev_attr_count.attr, 236 &dev_attr_inject_error.attr, 197 count_show(struct device *dev, struct device_attribute *attr, char *buf) count_show() argument 206 inject_error_show(struct device *dev, struct device_attribute *attr, char *buf) inject_error_show() argument 212 inject_error_store(struct device *dev, struct device_attribute *attr, const char *data, size_t count) inject_error_store() argument
|
/kernel/linux/linux-5.10/drivers/misc/ |
H A D | apds9802als.c | 33 struct device_attribute *attr, char *buf) in als_sensing_range_show() 67 struct device_attribute *attr, char *buf) in als_lux0_input_data_show() 109 struct device_attribute *attr, const char *buf, size_t count) in als_sensing_range_store() 183 &dev_attr_lux0_sensor_range.attr, 184 &dev_attr_lux0_input.attr, 32 als_sensing_range_show(struct device *dev, struct device_attribute *attr, char *buf) als_sensing_range_show() argument 66 als_lux0_input_data_show(struct device *dev, struct device_attribute *attr, char *buf) als_lux0_input_data_show() argument 108 als_sensing_range_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) als_sensing_range_store() argument
|
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
H A D | zcrypt_queue.c | 40 struct device_attribute *attr, in online_show() 51 struct device_attribute *attr, in online_store() 81 struct device_attribute *attr, in load_show() 92 &dev_attr_online.attr, 93 &dev_attr_load.attr, 39 online_show(struct device *dev, struct device_attribute *attr, char *buf) online_show() argument 50 online_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) online_store() argument 80 load_show(struct device *dev, struct device_attribute *attr, char *buf) load_show() argument
|
/kernel/linux/linux-5.10/tools/perf/arch/powerpc/util/ |
H A D | perf_regs.c | 182 struct perf_event_attr attr = { in arch__intr_reg_mask() local 206 attr.sample_regs_intr = extended_mask; in arch__intr_reg_mask() 207 attr.sample_period = 1; in arch__intr_reg_mask() 208 event_attr_init(&attr); in arch__intr_reg_mask() 214 fd = sys_perf_event_open(&attr, 0, -1, -1, 0); in arch__intr_reg_mask()
|
/kernel/linux/linux-6.6/drivers/memory/ |
H A D | brcmstb_memc.c | 70 struct device_attribute *attr, char *buf) in frequency_show() 78 struct device_attribute *attr, char *buf) in srpd_show() 85 static ssize_t srpd_store(struct device *dev, struct device_attribute *attr, in srpd_store() argument 115 &dev_attr_frequency.attr, 116 &dev_attr_srpd.attr, 69 frequency_show(struct device *dev, struct device_attribute *attr, char *buf) frequency_show() argument 77 srpd_show(struct device *dev, struct device_attribute *attr, char *buf) srpd_show() argument
|
/kernel/linux/linux-6.6/drivers/misc/ |
H A D | apds9802als.c | 33 struct device_attribute *attr, char *buf) in als_sensing_range_show() 67 struct device_attribute *attr, char *buf) in als_lux0_input_data_show() 109 struct device_attribute *attr, const char *buf, size_t count) in als_sensing_range_store() 183 &dev_attr_lux0_sensor_range.attr, 184 &dev_attr_lux0_input.attr, 32 als_sensing_range_show(struct device *dev, struct device_attribute *attr, char *buf) als_sensing_range_show() argument 66 als_lux0_input_data_show(struct device *dev, struct device_attribute *attr, char *buf) als_lux0_input_data_show() argument 108 als_sensing_range_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) als_sensing_range_store() argument
|
/kernel/linux/linux-6.6/drivers/platform/x86/siemens/ |
H A D | simatic-ipc-batt.c | 109 u32 attr, int channel, long *val) in simatic_ipc_batt_read() 111 switch (attr) { in simatic_ipc_batt_read() 126 u32 attr, int channel) in simatic_ipc_batt_is_visible() 128 if (attr == hwmon_in_input || attr == hwmon_in_lcrit) in simatic_ipc_batt_is_visible() 108 simatic_ipc_batt_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) simatic_ipc_batt_read() argument 125 simatic_ipc_batt_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) simatic_ipc_batt_is_visible() argument
|
/kernel/linux/linux-6.6/drivers/bus/ |
H A D | bt1-axi.c | 196 struct device_attribute *attr, char *buf) in count_show() 205 struct device_attribute *attr, char *buf) in inject_error_show() 211 struct device_attribute *attr, in inject_error_store() 233 &dev_attr_count.attr, 234 &dev_attr_inject_error.attr, 195 count_show(struct device *dev, struct device_attribute *attr, char *buf) count_show() argument 204 inject_error_show(struct device *dev, struct device_attribute *attr, char *buf) inject_error_show() argument 210 inject_error_store(struct device *dev, struct device_attribute *attr, const char *data, size_t count) inject_error_store() argument
|
/kernel/linux/linux-6.6/drivers/firmware/ |
H A D | dmi-id.c | 23 struct device_attribute *attr, in sys_dmi_field_show() 26 int field = to_dmi_dev_attr(attr)->field; in sys_dmi_field_show() 135 struct device_attribute *attr, char *page) in sys_dmi_modalias_show() 184 sys_dmi_attributes[i++] = &sys_dmi_##_name##_attr.dev_attr.attr; 218 sys_dmi_attributes[i++] = &sys_dmi_modalias_attr.attr; in dmi_id_init_attr_table() 22 sys_dmi_field_show(struct device *dev, struct device_attribute *attr, char *page) sys_dmi_field_show() argument 134 sys_dmi_modalias_show(struct device *dev, struct device_attribute *attr, char *page) sys_dmi_modalias_show() argument
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | mc34vr500.c | 82 u32 attr, int channel) in mc34vr500_is_visible() 84 switch (attr) { in mc34vr500_is_visible() 113 u32 attr, int channel, long *val) in mc34vr500_read() 119 switch (attr) { in mc34vr500_read() 126 switch (attr) { in mc34vr500_read() 80 mc34vr500_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) mc34vr500_is_visible() argument 112 mc34vr500_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) mc34vr500_read() argument
|
/kernel/linux/linux-6.6/tools/perf/arch/powerpc/util/ |
H A D | perf_regs.c | 191 struct perf_event_attr attr = { in arch__intr_reg_mask() local 215 attr.sample_regs_intr = extended_mask; in arch__intr_reg_mask() 216 attr.sample_period = 1; in arch__intr_reg_mask() 217 event_attr_init(&attr); in arch__intr_reg_mask() 223 fd = sys_perf_event_open(&attr, 0, -1, -1, 0); in arch__intr_reg_mask()
|
/kernel/linux/linux-6.6/tools/testing/selftests/perf_events/ |
H A D | remove_on_exec.c | 39 struct perf_event_attr attr = { in make_event_attr() local 41 .size = sizeof(attr), in make_event_attr() 56 return attr; in make_event_attr() 77 struct perf_event_attr attr = make_event_attr(); in FIXTURE_SETUP() local 89 self->fd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, PERF_FLAG_FD_CLOEXEC); in FIXTURE_SETUP()
|
/kernel/linux/linux-6.6/drivers/s390/crypto/ |
H A D | zcrypt_queue.c | 40 struct device_attribute *attr, in online_show() 51 struct device_attribute *attr, in online_store() 82 struct device_attribute *attr, in load_show() 93 &dev_attr_online.attr, 94 &dev_attr_load.attr, 39 online_show(struct device *dev, struct device_attribute *attr, char *buf) online_show() argument 50 online_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) online_store() argument 81 load_show(struct device *dev, struct device_attribute *attr, char *buf) load_show() argument
|
/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/ |
H A D | It_posix_queue_160.cpp | 37 struct mq_attr attr = { 0 }; in PthreadF01() local 41 attr.mq_msgsize = MQUEUE_STANDARD_NAME_LENGTH; in PthreadF01() 42 attr.mq_maxmsg = 5; // 5, queue max message size. in PthreadF01() 47 g_mqueueId[i] = mq_open(g_mqueueName[i], O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in PthreadF01() 54 g_mqueueId[i] = mq_open(g_mqueueName[i], O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, &attr); in PthreadF01()
|
/kernel/linux/linux-5.10/tools/build/feature/ |
H A D | test-dwarf_getlocations.c | 8 Dwarf_Attribute attr; in main() local 12 return (int)dwarf_getlocations(&attr, offset, &base, &start, &end, &op, &nops); in main()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | cc_platform.h | 99 * @attr: Confidential computing attribute to check 109 bool cc_platform_has(enum cc_attr attr); 113 static inline bool cc_platform_has(enum cc_attr attr) { return false; } in cc_platform_has() argument
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_ptr_untrusted.c | 10 int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size) in BPF_PROG() argument 15 (void *)attr->raw_tracepoint.name); in BPF_PROG()
|
/kernel/linux/linux-6.6/tools/build/feature/ |
H A D | test-dwarf_getlocations.c | 8 Dwarf_Attribute attr; in main() local 12 return (int)dwarf_getlocations(&attr, offset, &base, &start, &end, &op, &nops); in main()
|
/kernel/liteos_a/testsuites/unittest/fuzz/ |
H A D | posix_spawnattr_destroy_fuzzer.cpp | 37 posix_spawnattr_t attr; in TestPosixSpawnattrDestroy() local 43 (char *)&attr); in TestPosixSpawnattrDestroy()
|
H A D | posix_spawnattr_init_fuzzer.cpp | 37 posix_spawnattr_t attr; in TestPosixSpawnattrInit() local 43 (char *)&attr); in TestPosixSpawnattrInit()
|
/kernel/linux/linux-5.10/drivers/input/mouse/ |
H A D | cyapa.c | 739 struct device_attribute *attr, in cyapa_show_suspend_scanrate() 778 struct device_attribute *attr, in cyapa_update_suspend_scanrate() 811 &dev_attr_suspend_scanrate_ms.attr, 864 struct device_attribute *attr, in cyapa_show_rt_suspend_scanrate() 888 struct device_attribute *attr, in cyapa_update_rt_suspend_scanrate() 927 &dev_attr_runtime_suspend_scanrate_ms.attr, 984 struct device_attribute *attr, char *buf) in cyapa_show_fm_ver() 999 struct device_attribute *attr, char *buf) in cyapa_show_product_id() 1077 struct device_attribute *attr, in cyapa_update_fw_store() 1137 struct device_attribute *attr, in cyapa_calibrate_store() 738 cyapa_show_suspend_scanrate(struct device *dev, struct device_attribute *attr, char *buf) cyapa_show_suspend_scanrate() argument 777 cyapa_update_suspend_scanrate(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) cyapa_update_suspend_scanrate() argument 863 cyapa_show_rt_suspend_scanrate(struct device *dev, struct device_attribute *attr, char *buf) cyapa_show_rt_suspend_scanrate() argument 887 cyapa_update_rt_suspend_scanrate(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) cyapa_update_rt_suspend_scanrate() argument 983 cyapa_show_fm_ver(struct device *dev, struct device_attribute *attr, char *buf) cyapa_show_fm_ver() argument 998 cyapa_show_product_id(struct device *dev, struct device_attribute *attr, char *buf) cyapa_show_product_id() argument 1076 cyapa_update_fw_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) cyapa_update_fw_store() argument 1136 cyapa_calibrate_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) cyapa_calibrate_store() argument 1159 cyapa_show_baseline(struct device *dev, struct device_attribute *attr, char *buf) cyapa_show_baseline() argument 1202 cyapa_show_mode(struct device *dev, struct device_attribute *attr, char *buf) cyapa_show_mode() argument [all...] |