Home
last modified time | relevance | path

Searched refs:tids (Results 1 - 25 of 128) sorted by relevance

123456

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dhtab_update.c79 pthread_t *tids; in test_concurrent_update() local
91 tids = calloc(nr, sizeof(*tids)); in test_concurrent_update()
92 if (!ASSERT_NEQ(tids, NULL, "no mem")) in test_concurrent_update()
96 err = pthread_create(&tids[i], NULL, htab_update_thread, &ctx); in test_concurrent_update()
102 pthread_join(tids[j], NULL); in test_concurrent_update()
110 pthread_join(tids[i], &thread_err); in test_concurrent_update()
115 if (tids) in test_concurrent_update()
116 free(tids); in test_concurrent_update()
H A Dhtab_reuse.c65 pthread_t tids[wr_nr + rd_nr]; in test_htab_reuse() local
78 memset(tids, 0, sizeof(tids)); in test_htab_reuse()
80 err = pthread_create(&tids[i], NULL, htab_update_fn, &ctx); in test_htab_reuse()
87 err = pthread_create(&tids[i + wr_nr], NULL, htab_lookup_fn, &ctx); in test_htab_reuse()
96 if (!tids[i]) in test_htab_reuse()
98 pthread_join(tids[i], NULL); in test_htab_reuse()
H A Dtask_local_storage.c145 static void waitall(const pthread_t *tids, int nr) in waitall() argument
151 pthread_join(tids[i], NULL); in waitall()
175 pthread_t tids[nr_threads]; in test_nodeadlock() local
207 err = pthread_create(&tids[i], NULL, sock_create_loop, skel); in test_nodeadlock()
213 waitall(tids, i); in test_nodeadlock()
220 waitall(tids, nr_threads); in test_nodeadlock()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_filter.c368 if (tid_out_of_range(&adapter->tids, fidx)) in get_filter_count()
370 f = adapter->tids.tid_tab[fidx - adapter->tids.tid_base]; in get_filter_count()
374 if ((fidx != (adapter->tids.nftids + adapter->tids.nsftids + in get_filter_count()
375 adapter->tids.nhpftids - 1)) && in get_filter_count()
376 fidx >= (adapter->tids.nftids + adapter->tids.nhpftids)) in get_filter_count()
379 if (fidx < adapter->tids.nhpftids) in get_filter_count()
380 f = &adapter->tids in get_filter_count()
[all...]
H A Dcxgb4_tc_u32.c200 if (filter_id < adapter->tids.nhpftids) in cxgb4_config_knode()
368 max_tids = adapter->tids.nhpftids + adapter->tids.nftids; in cxgb4_delete_knode()
370 spin_lock_bh(&adapter->tids.ftid_lock); in cxgb4_delete_knode()
373 if (filter_id < adapter->tids.nhpftids) { in cxgb4_delete_knode()
375 f = &adapter->tids.hpftid_tab[i]; in cxgb4_delete_knode()
381 i = find_next_bit(adapter->tids.hpftid_bmap, in cxgb4_delete_knode()
382 adapter->tids.nhpftids, i + 1); in cxgb4_delete_knode()
383 if (i >= adapter->tids.nhpftids) { in cxgb4_delete_knode()
384 filter_id = adapter->tids in cxgb4_delete_knode()
[all...]
H A Dcxgb4_tc_mqprio.c81 if (qoffset >= adap->tids.neotids || qcount > adap->tids.neotids) in cxgb4_mqprio_validate()
113 eosw_txq->hwtid = adap->tids.eotid_base + eosw_txq->eotid; in cxgb4_init_eosw_txq()
448 eotid = cxgb4_get_free_eotid(&adap->tids); in cxgb4_mqprio_enable_offload()
462 cxgb4_alloc_eotid(&adap->tids, eotid, eosw_txq); in cxgb4_mqprio_enable_offload()
522 cxgb4_free_eotid(&adap->tids, eosw_txq->eotid); in cxgb4_mqprio_enable_offload()
557 cxgb4_free_eotid(&adap->tids, eosw_txq->eotid); in cxgb4_mqprio_disable_offload()
676 eosw_txq = kcalloc(adap->tids.neotids, sizeof(*eosw_txq), in cxgb4_init_tc_mqprio()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_filter.c368 if (tid_out_of_range(&adapter->tids, fidx)) in get_filter_count()
370 f = adapter->tids.tid_tab[fidx - adapter->tids.tid_base]; in get_filter_count()
374 if ((fidx != (adapter->tids.nftids + adapter->tids.nsftids + in get_filter_count()
375 adapter->tids.nhpftids - 1)) && in get_filter_count()
376 fidx >= (adapter->tids.nftids + adapter->tids.nhpftids)) in get_filter_count()
379 if (fidx < adapter->tids.nhpftids) in get_filter_count()
380 f = &adapter->tids in get_filter_count()
[all...]
H A Dcxgb4_tc_u32.c200 if (filter_id < adapter->tids.nhpftids) in cxgb4_config_knode()
368 max_tids = adapter->tids.nhpftids + adapter->tids.nftids; in cxgb4_delete_knode()
370 spin_lock_bh(&adapter->tids.ftid_lock); in cxgb4_delete_knode()
373 if (filter_id < adapter->tids.nhpftids) { in cxgb4_delete_knode()
375 f = &adapter->tids.hpftid_tab[i]; in cxgb4_delete_knode()
381 i = find_next_bit(adapter->tids.hpftid_bmap, in cxgb4_delete_knode()
382 adapter->tids.nhpftids, i + 1); in cxgb4_delete_knode()
383 if (i >= adapter->tids.nhpftids) { in cxgb4_delete_knode()
384 filter_id = adapter->tids in cxgb4_delete_knode()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/math/
H A Dfpu_preempt.c59 pthread_t *tids; in test_preempt_fpu() local
62 tids = malloc((threads) * sizeof(pthread_t)); in test_preempt_fpu()
63 FAIL_IF(!tids); in test_preempt_fpu()
68 rc = pthread_create(&tids[i], NULL, preempt_fpu_c, NULL); in test_preempt_fpu()
91 pthread_join(tids[i], &rc_p); in test_preempt_fpu()
103 free(tids); in test_preempt_fpu()
H A Dvmx_signal.c97 pthread_t *tids; in test_signal_vmx() local
103 tids = malloc(threads * sizeof(pthread_t)); in test_signal_vmx()
104 FAIL_IF(!tids); in test_signal_vmx()
109 rc = pthread_create(&tids[i], NULL, signal_vmx_c, NULL); in test_signal_vmx()
125 pthread_kill(tids[j], SIGUSR1); in test_signal_vmx()
134 pthread_join(tids[i], &rc_p); in test_signal_vmx()
148 free(tids); in test_signal_vmx()
H A Dfpu_signal.c79 pthread_t *tids; in test_signal_fpu() local
82 tids = malloc(threads * sizeof(pthread_t)); in test_signal_fpu()
83 FAIL_IF(!tids); in test_signal_fpu()
88 rc = pthread_create(&tids[i], NULL, signal_fpu_c, NULL); in test_signal_fpu()
101 pthread_kill(tids[j], SIGUSR1); in test_signal_fpu()
110 pthread_join(tids[i], &rc_p); in test_signal_fpu()
124 free(tids); in test_signal_fpu()
H A Dvmx_preempt.c60 pthread_t *tids; in test_preempt_vmx() local
66 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vmx()
67 FAIL_IF(!tids); in test_preempt_vmx()
72 rc = pthread_create(&tids[i], NULL, preempt_vmx_c, NULL); in test_preempt_vmx()
95 pthread_join(tids[i], &rc_p); in test_preempt_vmx()
H A Dvsx_preempt.c93 pthread_t *tids; in test_preempt_vsx() local
98 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vsx()
99 FAIL_IF(!tids); in test_preempt_vsx()
104 rc = pthread_create(&tids[i], NULL, preempt_vsx_c, NULL); in test_preempt_vsx()
127 pthread_join(tids[i], &rc_p); in test_preempt_vsx()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/math/
H A Dfpu_preempt.c59 pthread_t *tids; in test_preempt_fpu() local
62 tids = malloc((threads) * sizeof(pthread_t)); in test_preempt_fpu()
63 FAIL_IF(!tids); in test_preempt_fpu()
68 rc = pthread_create(&tids[i], NULL, preempt_fpu_c, NULL); in test_preempt_fpu()
91 pthread_join(tids[i], &rc_p); in test_preempt_fpu()
103 free(tids); in test_preempt_fpu()
H A Dfpu_signal.c79 pthread_t *tids; in test_signal_fpu() local
82 tids = malloc(threads * sizeof(pthread_t)); in test_signal_fpu()
83 FAIL_IF(!tids); in test_signal_fpu()
88 rc = pthread_create(&tids[i], NULL, signal_fpu_c, NULL); in test_signal_fpu()
101 pthread_kill(tids[j], SIGUSR1); in test_signal_fpu()
110 pthread_join(tids[i], &rc_p); in test_signal_fpu()
124 free(tids); in test_signal_fpu()
H A Dvmx_signal.c97 pthread_t *tids; in test_signal_vmx() local
103 tids = malloc(threads * sizeof(pthread_t)); in test_signal_vmx()
104 FAIL_IF(!tids); in test_signal_vmx()
109 rc = pthread_create(&tids[i], NULL, signal_vmx_c, NULL); in test_signal_vmx()
125 pthread_kill(tids[j], SIGUSR1); in test_signal_vmx()
134 pthread_join(tids[i], &rc_p); in test_signal_vmx()
148 free(tids); in test_signal_vmx()
H A Dvmx_preempt.c60 pthread_t *tids; in test_preempt_vmx() local
66 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vmx()
67 FAIL_IF(!tids); in test_preempt_vmx()
72 rc = pthread_create(&tids[i], NULL, preempt_vmx_c, NULL); in test_preempt_vmx()
95 pthread_join(tids[i], &rc_p); in test_preempt_vmx()
H A Dvsx_preempt.c93 pthread_t *tids; in test_preempt_vsx() local
98 tids = malloc(threads * sizeof(pthread_t)); in test_preempt_vsx()
99 FAIL_IF(!tids); in test_preempt_vsx()
104 rc = pthread_create(&tids[i], NULL, preempt_vsx_c, NULL); in test_preempt_vsx()
127 pthread_join(tids[i], &rc_p); in test_preempt_vsx()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dtask_storage_map.c41 static void abort_lookup(struct lookup_ctx *ctx, pthread_t *tids, unsigned int nr) in abort_lookup() argument
48 pthread_join(tids[i], NULL); in abort_lookup()
56 pthread_t tids[MAX_NR_THREAD]; in test_task_storage_map_stress_lookup() local
101 err = pthread_create(&tids[i], NULL, lookup_fn, &ctx); in test_task_storage_map_stress_lookup()
103 abort_lookup(&ctx, tids, i); in test_task_storage_map_stress_lookup()
111 pthread_join(tids[i], NULL); in test_task_storage_map_stress_lookup()
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dswitch-tracking.c63 pid_t *tids; member
96 if (!switch_tracking->tids) { in check_cpu()
97 switch_tracking->tids = calloc(nr, sizeof(pid_t)); in check_cpu()
98 if (!switch_tracking->tids) in check_cpu()
101 switch_tracking->tids[i] = -1; in check_cpu()
109 addr = realloc(switch_tracking->tids, nr * sizeof(pid_t)); in check_cpu()
112 switch_tracking->tids = addr; in check_cpu()
114 switch_tracking->tids[i] = -1; in check_cpu()
150 if (switch_tracking->tids[cpu] != -1 && in process_sample_event()
151 switch_tracking->tids[cp in process_sample_event()
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dswitch-tracking.c66 pid_t *tids; member
99 if (!switch_tracking->tids) { in check_cpu()
100 switch_tracking->tids = calloc(nr, sizeof(pid_t)); in check_cpu()
101 if (!switch_tracking->tids) in check_cpu()
104 switch_tracking->tids[i] = -1; in check_cpu()
112 addr = realloc(switch_tracking->tids, nr * sizeof(pid_t)); in check_cpu()
115 switch_tracking->tids = addr; in check_cpu()
117 switch_tracking->tids[i] = -1; in check_cpu()
153 if (switch_tracking->tids[cpu] != -1 && in process_sample_event()
154 switch_tracking->tids[cp in process_sample_event()
[all...]
/kernel/linux/build/test/unittest/rtg/
H A Drtg_test.cpp91 int tids[MAX_TID_NUM]; member
205 grpData.tids[0] = tid; in AddThreadToRtg()
296 static int AddThreadsToRtg(vector<int> tids, int grpId, int prioType) in AddThreadsToRtg() argument
306 int num = static_cast<int>(tids.size()); in AddThreadsToRtg()
315 if (tids[i] < 0) { in AddThreadsToRtg()
318 grpData.tids[i] = tids[i]; in AddThreadsToRtg()
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/
H A Duser_sdma.c363 req->tids = NULL; in hfi1_user_sdma_process_request()
483 u16 ntids = iovec[idx].iov_len / sizeof(*req->tids); in hfi1_user_sdma_process_request()
492 * We have to copy all of the tids because they may vary in hfi1_user_sdma_process_request()
498 ntids * sizeof(*req->tids)); in hfi1_user_sdma_process_request()
505 req->tids = tmp; in hfi1_user_sdma_process_request()
594 u32 tidlen = EXP_TID_GET(req->tids[req->tididx], LEN) * in compute_data_length()
603 req->tids[req->tididx]) { in compute_data_length()
604 tidlen = EXP_TID_GET(req->tids[req->tididx], in compute_data_length()
868 u32 tidval = req->tids[req->tididx], in check_header_template()
978 tidval = req->tids[re in set_txreq_header()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c679 stid = cxgb4_alloc_stid(cdev->tids, sk->sk_family, ctx); in chtls_listen_start()
722 cxgb4_free_stid(cdev->tids, stid, sk->sk_family); in chtls_listen_start()
739 listen_ctx = (struct listen_ctx *)lookup_stid(cdev->tids, stid); in chtls_listen_stop()
766 listen_ctx = (struct listen_ctx *)lookup_stid(cdev->tids, stid); in chtls_pass_open_rpl()
779 cxgb4_free_stid(cdev->tids, stid, listen_ctx->lsk->sk_family); in chtls_pass_open_rpl()
795 data = lookup_stid(cdev->tids, stid); in chtls_close_listsrv_rpl()
802 cxgb4_free_stid(cdev->tids, stid, listen_ctx->lsk->sk_family); in chtls_close_listsrv_rpl()
823 struct tid_info *tids; in chtls_release_resources() local
828 tids = cdev->tids; in chtls_release_resources()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_cm.c679 stid = cxgb4_alloc_stid(cdev->tids, sk->sk_family, ctx); in chtls_listen_start()
722 cxgb4_free_stid(cdev->tids, stid, sk->sk_family); in chtls_listen_start()
739 listen_ctx = (struct listen_ctx *)lookup_stid(cdev->tids, stid); in chtls_listen_stop()
766 listen_ctx = (struct listen_ctx *)lookup_stid(cdev->tids, stid); in chtls_pass_open_rpl()
779 cxgb4_free_stid(cdev->tids, stid, listen_ctx->lsk->sk_family); in chtls_pass_open_rpl()
795 data = lookup_stid(cdev->tids, stid); in chtls_close_listsrv_rpl()
802 cxgb4_free_stid(cdev->tids, stid, listen_ctx->lsk->sk_family); in chtls_close_listsrv_rpl()
823 struct tid_info *tids; in chtls_release_resources() local
828 tids = cdev->tids; in chtls_release_resources()
[all...]

Completed in 16 milliseconds

123456