Home
last modified time | relevance | path

Searched refs:tids (Results 1 – 25 of 41) sorted by relevance

12

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhtab_update.c98 pthread_t *tids; in test_concurrent_update()
110 tids = calloc(nr, sizeof(*tids)); in test_concurrent_update()
111 if (!ASSERT_NEQ(tids, NULL, "no mem")) in test_concurrent_update()
115 err = pthread_create(&tids[i], NULL, htab_update_thread, &ctx); in test_concurrent_update()
121 pthread_join(tids[j], NULL); in test_htab_update()
129 pthread_join(tids[i], &thread_err);
134 if (tids)
135 free(tids);
79 pthread_t *tids; test_concurrent_update() local
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.c147 static void waitall(const pthread_t *tids, int nr) in waitall() argument
153 pthread_join(tids[i], NULL); in waitall()
177 pthread_t tids[nr_threads]; in test_nodeadlock() local
209 err = pthread_create(&tids[i], NULL, sock_create_loop, skel); in test_nodeadlock()
215 waitall(tids, i); in test_nodeadlock()
222 waitall(tids, nr_threads); in test_nodeadlock()
/linux/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.hpftid_tab[fidx]; in get_filter_count()
382 f = &adapter->tids.ftid_tab[fidx - in get_filter_count()
383 adapter->tids.nhpftids]; in get_filter_count()
550 struct tid_info *t = &adap->tids; in cxgb4_get_free_ftid()
[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.nhpftids; in cxgb4_delete_knode()
390 i = filter_id - adapter->tids.nhpftids; in cxgb4_delete_knode()
[all …]
H A Dcxgb4_ethtool.c1631 struct tid_info *t = &adap->tids; in cxgb4_get_filter_entry()
1851 filter_id -= adapter->tids.hpftid_base; in cxgb4_ntuple_del_filter()
1853 filter_id -= (adapter->tids.ftid_base - adapter->tids.nhpftids); in cxgb4_ntuple_del_filter()
1915 tid += adapter->tids.hpftid_base; in cxgb4_ntuple_set_filter()
1917 tid += (adapter->tids.ftid_base - adapter->tids.nhpftids); in cxgb4_ntuple_set_filter()
2244 struct tid_info *tids = &adap->tids; in cxgb4_init_ethtool_filters() local
2262 nentries = tids->nhpftids + tids->nftids; in cxgb4_init_ethtool_filters()
2264 nentries += tids->nhash + in cxgb4_init_ethtool_filters()
2265 (adap->tids.stid_base - adap->tids.tid_base); in cxgb4_init_ethtool_filters()
H A Dcxgb4_uld.c294 ciq_size = 64 + adap->vres.cq.size + adap->tids.nftids; in cfg_queues_uld()
604 lld->tids = &adap->tids; in uld_init()
672 const struct tid_info *t = &adap->tids; in cxgb4_uld_in_use()
H A Dcudbg_lib.c2190 tid->ntids = padap->tids.ntids; in cudbg_collect_tid()
2191 tid->nstids = padap->tids.nstids; in cudbg_collect_tid()
2192 tid->stid_base = padap->tids.stid_base; in cudbg_collect_tid()
2193 tid->hash_base = padap->tids.hash_base; in cudbg_collect_tid()
2195 tid->natids = padap->tids.natids; in cudbg_collect_tid()
2196 tid->nftids = padap->tids.nftids; in cudbg_collect_tid()
2197 tid->ftid_base = padap->tids.ftid_base; in cudbg_collect_tid()
2198 tid->aftid_base = padap->tids.aftid_base; in cudbg_collect_tid()
2199 tid->aftid_end = padap->tids.aftid_end; in cudbg_collect_tid()
2201 tid->sftid_base = padap->tids.sftid_base; in cudbg_collect_tid()
[all …]
/linux/tools/testing/selftests/powerpc/math/
H A Dfpu_signal.c75 pthread_t *tids; in test_signal_fpu() local
78 tids = malloc(threads * sizeof(pthread_t)); in test_signal_fpu()
79 FAIL_IF(!tids); in test_signal_fpu()
84 rc = pthread_create(&tids[i], NULL, signal_fpu_c, NULL); in test_signal_fpu()
97 pthread_kill(tids[j], SIGUSR1); in test_signal_fpu()
106 pthread_join(tids[i], &rc_p); in test_signal_fpu()
120 free(tids); in test_signal_fpu()
H A Dfpu_preempt.c54 pthread_t *tids; in test_preempt_fpu() local
57 tids = malloc((threads) * sizeof(pthread_t)); in test_preempt_fpu()
58 FAIL_IF(!tids); in test_preempt_fpu()
63 rc = pthread_create(&tids[i], NULL, preempt_fpu_c, NULL); in test_preempt_fpu()
86 pthread_join(tids[i], &rc_p); in test_preempt_fpu()
98 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 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()
/linux/tools/testing/selftests/bpf/map_tests/
H A Dlpm_trie_map_get_next_key.c46 static void abort_get_next_key(struct get_next_key_ctx *ctx, pthread_t *tids, in abort_get_next_key() argument
54 pthread_join(tids[i], NULL); in abort_get_next_key()
71 pthread_t tids[MAX_NR_THREADS]; in test_lpm_trie_map_get_next_key() local
95 err = pthread_create(&tids[i], NULL, get_next_key_fn, &ctx); in test_lpm_trie_map_get_next_key()
97 abort_get_next_key(&ctx, tids, i); in test_lpm_trie_map_get_next_key()
104 pthread_join(tids[i], NULL); in test_lpm_trie_map_get_next_key()
H A Dtask_storage_map.c42 static void abort_lookup(struct lookup_ctx *ctx, pthread_t *tids, unsigned int nr) in abort_lookup() argument
49 pthread_join(tids[i], NULL); in abort_lookup()
57 pthread_t tids[MAX_NR_THREAD]; in test_task_storage_map_stress_lookup() local
102 err = pthread_create(&tids[i], NULL, lookup_fn, &ctx); in test_task_storage_map_stress_lookup()
104 abort_lookup(&ctx, tids, i); in test_task_storage_map_stress_lookup()
112 pthread_join(tids[i], NULL); in test_task_storage_map_stress_lookup()
/linux/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()
155 if (switch_tracking->tids[cpu] != -1 && in process_sample_event()
156 switch_tracking->tids[cpu] != prev_tid) { in process_sample_event()
[all …]
/linux/drivers/scsi/cxgbi/cxgb4i/
H A Dcxgb4i.c885 cxgb4_free_atid(lldi->tids, csk->atid); in free_atid()
899 struct tid_info *t = lldi->tids; in do_act_establish()
922 cxgb4_insert_tid(lldi->tids, csk, tid, csk->csk_family); in do_act_establish()
1052 struct tid_info *t = lldi->tids; in do_act_open_rpl()
1072 cxgb4_remove_tid(lldi->tids, csk->port_id, GET_TID(rpl), in do_act_open_rpl()
1098 struct tid_info *t = lldi->tids; in do_peer_close()
1119 struct tid_info *t = lldi->tids; in do_close_con_rpl()
1158 struct tid_info *t = lldi->tids; in do_abort_req_rss()
1206 struct tid_info *t = lldi->tids; in do_abort_rpl_rss()
1230 struct tid_info *t = lldi->tids; in do_rx_data()
[all …]
/linux/drivers/target/iscsi/cxgbit/
H A Dcxgbit_cm.c351 stid = cxgb4_alloc_stid(cdev->lldi.tids, ss_family, cnp); in __cxgbit_setup_cdev_np()
356 cxgb4_free_stid(cdev->lldi.tids, stid, ss_family); in __cxgbit_setup_cdev_np()
367 cxgb4_free_stid(cdev->lldi.tids, stid, in __cxgbit_setup_cdev_np()
559 cxgb4_free_stid(cdev->lldi.tids, stid, in __cxgbit_free_cdev_np()
810 cxgb4_remove_tid(csk->com.cdev->lldi.tids, 0, csk->tid, in _cxgbit_free_csk()
1223 struct tid_info *t = cdev->lldi.tids; in cxgbit_pass_accept_req()
1582 struct tid_info *t = cdev->lldi.tids; in cxgbit_pass_open_rpl()
1604 struct tid_info *t = cdev->lldi.tids; in cxgbit_close_listsrv_rpl()
1626 struct tid_info *t = cdev->lldi.tids; in cxgbit_pass_establish()
1903 struct tid_info *t = lldi->tids; in cxgbit_set_tcb_rpl()
[all …]
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_main.c255 cdev->tids = lldi->tids; in chtls_uld_add()
258 cdev->tids = lldi->tids; in chtls_uld_add()
/linux/drivers/net/wireless/realtek/rtlwifi/
H A Drc.c201 if (sta_entry->tids[tid].agg.agg_state == RTL_AGG_STOP) in _rtl_tx_aggr_check()
239 sta_entry->tids[tid].agg.agg_state = in rtl_tx_status()
/linux/net/mac80211/
H A Ddriver-ops.h927 struct sta_info *sta, u16 tids, int num_frames, in drv_release_buffered_frames() argument
931 trace_drv_release_buffered_frames(local, &sta->sta, tids, num_frames, in drv_release_buffered_frames()
934 local->ops->release_buffered_frames(&local->hw, &sta->sta, tids, in drv_release_buffered_frames()
942 struct sta_info *sta, u16 tids, int num_frames, in drv_allow_buffered_frames() argument
946 trace_drv_allow_buffered_frames(local, &sta->sta, tids, num_frames, in drv_allow_buffered_frames()
950 tids, num_frames, reason, in drv_allow_buffered_frames()
1573 struct ieee80211_sta *sta, u8 tids) in drv_reset_tid_config() argument
1579 ret = local->ops->reset_tid_config(&local->hw, &sdata->vif, sta, tids); in drv_reset_tid_config()
H A Dtrace.h1575 u16 tids, int num_frames,
1579 TP_ARGS(local, sta, tids, num_frames, reason, more_data),
1584 __field(u16, tids)
1593 __entry->tids = tids;
1602 LOCAL_PR_ARG, STA_PR_ARG, __entry->tids, __entry->num_frames,
1610 u16 tids, int num_frames,
1614 TP_ARGS(local, sta, tids, num_frames, reason, more_data)
1620 u16 tids, int num_frames,
1624 TP_ARGS(local, sta, tids, num_frames, reason, more_data)
/linux/drivers/infiniband/hw/hfi1/
H A Duser_sdma.h137 u32 *tids; member
/linux/drivers/infiniband/hw/cxgb4/
H A Dcm.c405 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid, in _c4iw_free_ep()
562 cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid); in act_open_req_arp_failure()
1221 struct tid_info *t = dev->rdev.lldi.tids; in act_establish()
2191 ep->atid = cxgb4_alloc_atid(ep->com.dev->rdev.lldi.tids, ep); in c4iw_reconnect()
2253 cxgb4_free_atid(ep->com.dev->rdev.lldi.tids, ep->atid); in c4iw_reconnect()
2274 struct tid_info *t = dev->rdev.lldi.tids; in act_open_rpl()
2372 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, GET_TID(rpl), in act_open_rpl()
2519 struct tid_info *t = dev->rdev.lldi.tids; in pass_accept_req()
2962 cxgb4_remove_tid(ep->com.dev->rdev.lldi.tids, 0, ep->hwtid, in peer_abort()
3359 ep->atid = cxgb4_alloc_atid(dev->rdev.lldi.tids, ep); in c4iw_connect()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_hw.c2543 unsigned int m, pstructs, tids = t3_mc5_size(&adap->mc5); in partition_mem() local
2547 if (tids <= 16 * 1024) { in partition_mem()
2550 } else if (tids <= 64 * 1024) { in partition_mem()
2553 } else if (tids <= 256 * 1024) { in partition_mem()
2578 m = tids * TCB_SIZE; in partition_mem()
2592 tids = (p->cm_size - m - (3 << 20)) / 3072 - 32; in partition_mem()
2595 if (tids < m) in partition_mem()
2596 adap->params.mc5.nservers += m - tids; in partition_mem()

12