Home
last modified time | relevance | path

Searched refs:attr2 (Results 1 – 24 of 24) sorted by relevance

/kernel/liteos_a/testsuites/unittest/libc/posix/mqueue/full/
DIt_posix_queue_118.cpp91 pthread_attr_t attr2; in Testcase() local
118 ret = pthread_attr_init(&attr2); in Testcase()
122 ret = pthread_attr_setschedparam(&attr2, &schedparam); in Testcase()
125 ret = pthread_create(&pthread2, &attr2, PthreadF01, NULL); in Testcase()
136 ret = pthread_attr_destroy(&attr2); in Testcase()
154 PosixPthreadDestroy(&attr2, pthread2); in Testcase()
DIt_posix_queue_120.cpp82 pthread_attr_t attr2; in Testcase() local
108 ret = pthread_attr_init(&attr2); in Testcase()
112 ret = pthread_attr_setschedparam(&attr2, &schedparam2); in Testcase()
115 ret = pthread_create(&pthread2, &attr2, PthreadF01, NULL); in Testcase()
136 ret = pthread_attr_destroy(&attr2); in Testcase()
149 pthread_attr_destroy(&attr2); in Testcase()
DIt_posix_queue_204.cpp75 pthread_attr_t attr1, attr2; in Testcase() local
88 ret = pthread_attr_init(&attr2); in Testcase()
90 ret = pthread_create(&pthread2, &attr2, PthreadF02, NULL); in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
DIt_posix_mutex_068.c89 pthread_attr_t attr2; in Testcase() local
104 ret = PosixPthreadInit(&attr2, 4); // 4, Set thread priority. in Testcase()
107 ret = pthread_create(&newTh2, &attr2, TaskF02, NULL); in Testcase()
125 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
DIt_posix_mutex_071.c90 pthread_attr_t attr2; in Testcase() local
103 ret = PosixPthreadInit(&attr2, 10); // 10, Set thread priority. in Testcase()
106 ret = pthread_create(&newTh2, &attr2, TaskF02, NULL); in Testcase()
118 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
DIt_posix_mutex_072.c90 pthread_attr_t attr2; in Testcase() local
103 ret = PosixPthreadInit(&attr2, 4); // 4, Set thread priority. in Testcase()
106 ret = pthread_create(&newTh2, &attr2, TaskF02, NULL); in Testcase()
118 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
DIt_posix_mutex_099.c92 pthread_attr_t attr2; in Testcase() local
100 ret = PosixPthreadInit(&attr2, 4); // 4, Set thread priority. in Testcase()
103 ret = pthread_create(&newTh2, &attr2, TaskF02, NULL); in Testcase()
115 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
DIt_posix_mutex_093.c98 pthread_attr_t attr2; in Testcase() local
106 ret = PosixPthreadInit(&attr2, 4); // 4, Set thread priority. in Testcase()
109 ret = pthread_create(&newTh2, &attr2, TaskF02, NULL); in Testcase()
121 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
DIt_posix_mutex_079.c85 pthread_attr_t attr2; in Testcase() local
101 ret = PosixPthreadInit(&attr2, 3); // 3, Set thread priority. in Testcase()
104 ret = pthread_create(&newTh2, &attr2, TaskF02, NULL); in Testcase()
122 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
DIt_posix_mutex_070.c96 pthread_attr_t attr2; in Testcase() local
112 ret = PosixPthreadInit(&attr2, 4); // 4, Set thread priority. in Testcase()
115 ret = pthread_create(&newTh2, &attr2, TaskF02, NULL); in Testcase()
123 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
DIt_posix_mutex_075.c120 pthread_attr_t attr2; in Testcase() local
137 ret = PosixPthreadInit(&attr2, 15); // 15, Set thread priority. in Testcase()
140 ret = pthread_create(&newTh2, &attr2, TaskF01, NULL); in Testcase()
159 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
DIt_posix_mutex_074.c121 pthread_attr_t attr2; in Testcase() local
138 ret = PosixPthreadInit(&attr2, 4); // 4, Set thread priority. in Testcase()
141 ret = pthread_create(&newTh2, &attr2, TaskF02, NULL); in Testcase()
160 ret = PosixPthreadDestroy(&attr2, newTh2); in Testcase()
/kernel/linux/linux-5.10/drivers/hwmon/
Dmax16065.c178 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_alarm_show() local
180 int val = data->fault[attr2->nr]; in max16065_alarm_show()
185 val &= (1 << attr2->index); in max16065_alarm_show()
188 MAX16065_FAULT(attr2->nr), val); in max16065_alarm_show()
223 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_limit_store() local
233 limit = MV_TO_LIMIT(val, data->range[attr2->index]); in max16065_limit_store()
236 data->limit[attr2->nr][attr2->index] in max16065_limit_store()
237 = LIMIT_TO_MV(limit, data->range[attr2->index]); in max16065_limit_store()
239 MAX16065_LIMIT(attr2->nr, attr2->index), in max16065_limit_store()
249 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_limit_show() local
[all …]
Dmax6642.c209 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); in temp_max_show() local
212 return sprintf(buf, "%d\n", temp_from_reg(data->temp_high[attr2->nr])); in temp_max_show()
219 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); in temp_max_store() local
229 data->temp_high[attr2->nr] = clamp_val(temp_to_reg(val), 0, 255); in temp_max_store()
230 i2c_smbus_write_byte_data(data->client, attr2->index, in temp_max_store()
231 data->temp_high[attr2->nr]); in temp_max_store()
Dadt7411.c167 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(attr); in adt7411_show_bit() local
170 int ret = i2c_smbus_read_byte_data(client, attr2->index); in adt7411_show_bit()
172 return ret < 0 ? ret : sprintf(buf, "%u\n", !!(ret & attr2->nr)); in adt7411_show_bit()
/kernel/linux/linux-5.10/tools/lib/perf/tests/
Dtest-evlist.c37 struct perf_event_attr attr2 = { in test_stat_cpu() local
54 evsel = perf_evsel__new(&attr2); in test_stat_cpu()
92 struct perf_event_attr attr2 = { in test_stat_thread() local
111 evsel = perf_evsel__new(&attr2); in test_stat_thread()
144 struct perf_event_attr attr2 = { in test_stat_thread_enable() local
164 evsel = perf_evsel__new(&attr2); in test_stat_thread_enable()
/kernel/linux/linux-5.10/tools/lib/perf/Documentation/examples/
Dcounting.c32 struct perf_event_attr attr2 = { in main() local
57 evsel = perf_evsel__new(&attr2); in main()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_if.c236 u32 attr2) in set_hwif_attr() argument
247 hwif->attr.global_vf_id_of_pf = HINIC_FA2_GET(attr2, in set_hwif_attr()
257 u32 addr, attr0, attr1, attr2; in read_hwif_attr() local
266 attr2 = hinic_hwif_read_reg(hwif, addr); in read_hwif_attr()
268 set_hwif_attr(hwif, attr0, attr1, attr2); in read_hwif_attr()
/kernel/linux/linux-5.10/drivers/ps3/
Dps3-lpm.c749 u64 signal_select, u64 attr1, u64 attr2, u64 attr3) in __ps3_set_signal() argument
754 signal_select, attr1, attr2, attr3); in __ps3_set_signal()
759 signal_select, attr1, attr2, attr3); in __ps3_set_signal()
771 u64 attr1, attr2, attr3; in ps3_set_signal() local
807 attr2 = sub_unit; in ps3_set_signal()
809 attr2 = lpm_priv->pu_id; in ps3_set_signal()
817 attr1, attr2, attr3); in ps3_set_signal()
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-bus-event_source-devices-format16 attr2 = 'config:0-7'
/kernel/linux/linux-5.10/sound/pci/hda/
Dhda_auto_parser.c541 int i, attr, attr2; in check_mic_location_need() local
552 attr2 = snd_hda_get_input_pin_attr(defc); in check_mic_location_need()
553 if (attr2 >= INPUT_PIN_ATTR_NORMAL) { in check_mic_location_need()
554 if (attr && attr != attr2) in check_mic_location_need()
556 attr = attr2; in check_mic_location_need()
/kernel/linux/linux-5.10/tools/lib/perf/Documentation/
Dlibperf-counting.txt85 26 struct perf_event_attr attr2 = {
133 59 evsel = perf_evsel__new(&attr2);
/kernel/linux/linux-5.10/Documentation/admin-guide/
Dxfs.rst37 attr2 or noattr2
41 ``attr2`` is selected (either when setting or removing extended
46 bit indicating that ``attr2`` behaviour is active. If either
50 CRC enabled filesystems always use the ``attr2`` format, and so
244 attr2/noattr2 September 2025
/kernel/linux/linux-5.10/net/wireless/
Dnl80211.c7818 struct nlattr *attr1, *attr2; in validate_scan_freqs() local
7836 nla_for_each_nested(attr2, freqs, tmp2) in validate_scan_freqs()
7837 if (attr1 != attr2 && in validate_scan_freqs()
7838 nla_get_u32(attr1) == nla_get_u32(attr2)) in validate_scan_freqs()