| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | htab_update.c | 99 pthread_t *tids; in test_concurrent_update() local 111 tids = calloc(nr, sizeof(*tids)); in test_concurrent_update() 112 if (!ASSERT_NEQ(tids, NULL, "no mem")) in test_concurrent_update() 116 err = pthread_create(&tids[i], NULL, htab_update_thread, &ctx); in test_concurrent_update() 122 pthread_join(tids[j], NULL); in test_concurrent_update() 130 pthread_join(tids[i], &thread_err); in test_concurrent_update() 135 if (tids) in test_concurrent_update() 136 free(tids); in test_concurrent_update()
|
| H A D | htab_reuse.c | 65 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() 198 pthread_t tids[threads_total]; 224 memset(tids, 0, sizeof(tids)); [all...] |
| H A D | task_local_storage.c | 154 static void waitall(const pthread_t *tids, int nr) in waitall() 160 pthread_join(tids[i], NULL); in sock_create_loop() 184 pthread_t tids[nr_threads]; in test_nodeadlock() 216 err = pthread_create(&tids[i], NULL, sock_create_loop, skel); in test_nodeadlock() 222 waitall(tids, i); in test_nodeadlock() 229 waitall(tids, nr_threads); in test_nodeadlock() 147 waitall(const pthread_t * tids,int nr) waitall() argument 177 pthread_t tids[nr_threads]; test_nodeadlock() local
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_filter.c | 368 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 D | cxgb4_tc_u32.c | 200 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 D | cxgb4_tc_mqprio.c | 81 if (qoffset >= adap->tids.neotids || qcount > adap->tids.neotids) in cxgb4_mqprio_validate() 112 eosw_txq->hwtid = adap->tids.eotid_base + eosw_txq->eotid; in cxgb4_init_eosw_txq() 445 eotid = cxgb4_get_free_eotid(&adap->tids); in cxgb4_mqprio_enable_offload() 459 cxgb4_alloc_eotid(&adap->tids, eotid, eosw_txq); in cxgb4_mqprio_enable_offload() 519 cxgb4_free_eotid(&adap->tids, eosw_txq->eotid); in cxgb4_mqprio_enable_offload() 554 cxgb4_free_eotid(&adap->tids, eosw_txq->eotid); in cxgb4_mqprio_disable_offload() 672 eosw_txq = kzalloc_objs(*eosw_txq, adap->tids.neotids); in cxgb4_init_tc_mqprio()
|
| H A D | cxgb4_main.c | 1746 struct adapter *adap = container_of(t, struct adapter, tids); in cxgb4_queue_tid_release() 1784 mk_tid_release(skb, chan, p - adap->tids.tid_tab); in process_tid_release_list() 1799 struct adapter *adap = container_of(t, struct adapter, tids); in cxgb4_remove_tid() 1802 if (tid_out_of_range(&adap->tids, tid)) { in cxgb4_remove_tid() 1807 if (t->tid_tab[tid - adap->tids.tid_base]) { in cxgb4_remove_tid() 1808 t->tid_tab[tid - adap->tids.tid_base] = NULL; in cxgb4_remove_tid() 1837 struct adapter *adap = container_of(t, struct adapter, tids); in tid_init() 2918 stid -= adap->tids.sftid_base; in cxgb4_create_server_filter() 2919 stid += adap->tids.nftids; in cxgb4_create_server_filter() 2923 f = &adap->tids.ftid_tab[stid]; in cxgb4_create_server_filter() [all …]
|
| H A D | cxgb4_ethtool.c | 1631 struct tid_info *t = &adap->tids; in cxgb4_get_filter_entry() 1855 filter_id -= adapter->tids.hpftid_base; in cxgb4_ntuple_del_filter() 1857 filter_id -= (adapter->tids.ftid_base - adapter->tids.nhpftids); in cxgb4_ntuple_del_filter() 1919 tid += adapter->tids.hpftid_base; in cxgb4_ntuple_set_filter() 1921 tid += (adapter->tids.ftid_base - adapter->tids.nhpftids); in cxgb4_ntuple_set_filter() 2249 struct tid_info *tids = &adap->tids; in cxgb4_init_ethtool_filters() local 2265 nentries = tids->nhpftids + tids->nftids; in cxgb4_init_ethtool_filters() 2267 nentries += tids->nhash + in cxgb4_init_ethtool_filters() 2268 (adap->tids.stid_base - adap->tids.tid_base); in cxgb4_init_ethtool_filters()
|
| H A D | cxgb4_tc_flower.c | 785 spin_lock_bh(&adap->tids.ftid_lock); in cxgb4_tc_flower_hash_prio_add() 786 if (adap->tids.tc_hash_tids_max_prio < tc_prio) in cxgb4_tc_flower_hash_prio_add() 787 adap->tids.tc_hash_tids_max_prio = tc_prio; in cxgb4_tc_flower_hash_prio_add() 788 spin_unlock_bh(&adap->tids.ftid_lock); in cxgb4_tc_flower_hash_prio_add() 793 struct tid_info *t = &adap->tids; in cxgb4_tc_flower_hash_prio_del() 896 if (fidx < adap->tids.nhpftids) { in cxgb4_flow_rule_replace()
|
| H A D | cxgb4_uld.c | 293 ciq_size = 64 + adap->vres.cq.size + adap->tids.nftids; in cfg_queues_uld() 598 lld->tids = &adap->tids; in uld_init() 666 const struct tid_info *t = &adap->tids; in cxgb4_uld_in_use()
|
| /linux/tools/testing/selftests/powerpc/math/ |
| H A D | fpu_signal.c | 75 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 D | fpu_preempt.c | 54 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 D | vmx_signal.c | 97 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 D | vmx_preempt.c | 60 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 D | vsx_preempt.c | 93 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 D | lpm_trie_map_get_next_key.c | 46 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 D | task_storage_map.c | |
| /linux/tools/perf/tests/ |
| H A D | switch-tracking.c | 66 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() 158 if (switch_tracking->tids[cpu] != -1 && in process_sample_event() 159 switch_tracking->tids[cp in process_sample_event() [all...] |
| /linux/drivers/scsi/cxgbi/cxgb4i/ |
| H A D | cxgb4i.c | 885 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/net/wireless/mediatek/mt76/mt7603/ |
| H A D | main.c | 458 u16 tids, int nframes, in mt7603_release_buffered_frames() argument 481 if (!(tids & BIT(skb->priority))) in mt7603_release_buffered_frames() 499 drained = tids & ~pending; in mt7603_release_buffered_frames() 505 mt76_release_buffered_frames(hw, sta, tids, nframes, reason, in mt7603_release_buffered_frames() 516 more_data |= !!(pending & tids); in mt7603_release_buffered_frames() 530 last_tid = __fls(tids); in mt7603_release_buffered_frames()
|
| /linux/drivers/target/iscsi/cxgbit/ |
| H A D | cxgbit_cm.c | 351 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/wireless/realtek/rtlwifi/ |
| H A D | rc.c | 201 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 D | sta_info.c | 1150 unsigned long tids; in __sta_info_recalc_tim() local 1160 tids = ieee80211_tids_for_ac(ac); in __sta_info_recalc_tim() 1163 sta->driver_buffered_tids & tids; in __sta_info_recalc_tim() 1165 sta->txq_buffered_tids & tids; in __sta_info_recalc_tim() 1998 static int find_highest_prio_tid(unsigned long tids) in find_highest_prio_tid() 2001 if (tids & 0xF8) in find_highest_prio_tid() 2002 return fls(tids) - 1; in find_highest_prio_tid() 2004 if (tids & BIT(0)) in find_highest_prio_tid() 2006 return fls(tids) - 1; 2054 unsigned long tids; in ieee80211_sta_ps_get_frames() 1996 find_highest_prio_tid(unsigned long tids) find_highest_prio_tid() argument 2052 unsigned long tids; ieee80211_sta_ps_get_frames() local 2150 u16 tids = 0; ieee80211_sta_ps_deliver_response() local [all...] |
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | user_sdma.h | 137 u32 *tids; member
|
| /linux/drivers/infiniband/hw/cxgb4/ |
| H A D | cm.c | 405 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 …]
|