Home
last modified time | relevance | path

Searched refs:thr (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.12.1/fs/bcachefs/
Dthread_with_file.c14 void bch2_thread_with_file_exit(struct thread_with_file *thr) in bch2_thread_with_file_exit() argument
16 if (thr->task) { in bch2_thread_with_file_exit()
17 kthread_stop(thr->task); in bch2_thread_with_file_exit()
18 put_task_struct(thr->task); in bch2_thread_with_file_exit()
22 int bch2_run_thread_with_file(struct thread_with_file *thr, in bch2_run_thread_with_file() argument
40 thr->ret = 0; in bch2_run_thread_with_file()
41 thr->task = kthread_create(fn, thr, "%s", name); in bch2_run_thread_with_file()
42 ret = PTR_ERR_OR_ZERO(thr->task); in bch2_run_thread_with_file()
51 file = anon_inode_getfile(name, fops, thr, fd_flags); in bch2_run_thread_with_file()
56 get_task_struct(thr->task); in bch2_run_thread_with_file()
[all …]
Dchardev.c131 struct thread_with_stdio thr; member
138 struct fsck_thread *thr = container_of(_thr, struct fsck_thread, thr); in bch2_fsck_thread_exit() local
139 kfree(thr); in bch2_fsck_thread_exit()
144 struct fsck_thread *thr = container_of(stdio, struct fsck_thread, thr); in bch2_fsck_offline_thread_fn() local
145 struct bch_fs *c = thr->c; in bch2_fsck_offline_thread_fn()
151 ret = bch2_fs_start(thr->c); in bch2_fsck_offline_thread_fn()
176 struct fsck_thread *thr = NULL; in bch2_ioctl_fsck_offline() local
207 thr = kzalloc(sizeof(*thr), GFP_KERNEL); in bch2_ioctl_fsck_offline()
208 if (!thr) { in bch2_ioctl_fsck_offline()
213 thr->opts = bch2_opts_empty(); in bch2_ioctl_fsck_offline()
[all …]
Dthread_with_file.h61 struct thread_with_file thr; member
/linux-6.12.1/kernel/power/
Dswap.c595 struct task_struct *thr; /* thread */ member
618 d->thr = NULL; in crc32_threadfn()
637 struct task_struct *thr; /* thread */ member
665 d->thr = NULL; in compress_threadfn()
704 unsigned thr, run_threads, nr_threads; in save_compressed_image() local
744 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
745 init_waitqueue_head(&data[thr].go); in save_compressed_image()
746 init_waitqueue_head(&data[thr].done); in save_compressed_image()
748 data[thr].cc = crypto_alloc_comp(hib_comp_algo, 0, 0); in save_compressed_image()
749 if (IS_ERR_OR_NULL(data[thr].cc)) { in save_compressed_image()
[all …]
/linux-6.12.1/tools/perf/tests/shell/coresight/thread_loop/
Dthread_loop.c59 unsigned int i, len, thr; in main() local
67 thr = atoi(argv[1]); in main()
68 if ((thr < 1) || (thr > 256)) { in main()
78 for (i = 0; i < thr; i++) { in main()
82 for (i = 0; i < thr; i++) in main()
/linux-6.12.1/tools/perf/tests/shell/coresight/memcpy_thread/
Dmemcpy_thread.c44 unsigned long i, len, size, thr; in main() local
59 thr = atol(argv[2]); in main()
60 if ((thr < 1) || (thr > 256)) { in main()
70 for (i = 0; i < thr; i++) { in main()
75 for (i = 0; i < thr; i++) in main()
/linux-6.12.1/tools/perf/tests/shell/coresight/unroll_loop_thread/
Dunroll_loop_thread.c53 unsigned int i, thr; in main() local
61 thr = atoi(argv[1]); in main()
62 if ((thr > 256) || (thr < 1)) { in main()
66 for (i = 0; i < thr; i++) { in main()
70 for (i = 0; i < thr; i++) in main()
/linux-6.12.1/arch/powerpc/platforms/powernv/
Didle.c819 int cpu, cpu0, thr; in pnv_power9_force_smt4_catch() local
826 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
827 if (cpu != cpu0 + thr) in pnv_power9_force_smt4_catch()
828 atomic_inc(&paca_ptrs[cpu0+thr]->dont_stop); in pnv_power9_force_smt4_catch()
832 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
833 if (!paca_ptrs[cpu0+thr]->requested_psscr) in pnv_power9_force_smt4_catch()
836 poke_threads |= (1 << thr); in pnv_power9_force_smt4_catch()
842 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
843 if (poke_threads & (1 << thr)) { in pnv_power9_force_smt4_catch()
846 paca_ptrs[cpu0+thr]->hw_cpu_id); in pnv_power9_force_smt4_catch()
[all …]
/linux-6.12.1/arch/arm64/boot/dts/mediatek/
Dmt8183-kukui-audio-da7219.dtsi28 dlg,mic-det-thr = <500>;
33 dlg,a-d-btn-thr = <0xa>;
34 dlg,d-b-btn-thr = <0x16>;
35 dlg,b-c-btn-thr = <0x21>;
36 dlg,c-mic-btn-thr = <0x3E>;
/linux-6.12.1/drivers/crypto/intel/qat/qat_common/
Dadf_heartbeat.c138 size_t thr; in check_ae() local
141 for (thr = 0; thr < hb_ctrs; thr++) { in check_ae()
142 u16 req = curr[thr].req_heartbeat_cnt; in check_ae()
143 u16 resp = curr[thr].resp_heartbeat_cnt; in check_ae()
144 u16 last = prev[thr].resp_heartbeat_cnt; in check_ae()
146 if ((thr == ADF_AE_ADMIN_THREAD || req != resp) && resp == last) { in check_ae()
147 u16 retry = ++count[thr]; in check_ae()
153 count[thr] = 0; in check_ae()
Dadf_hw_arbiter.c107 int adf_disable_arb_thd(struct adf_accel_dev *accel_dev, u32 ae, u32 thr) in adf_disable_arb_thd() argument
115 if (ADF_AE_STRAND0_THREAD == thr || ADF_AE_STRAND1_THREAD == thr) in adf_disable_arb_thd()
116 thr = ADF_AE_ADMIN_THREAD; in adf_disable_arb_thd()
125 ae_thr_map &= ~(GENMASK(3, 0) << (thr * BIT(2))); in adf_disable_arb_thd()
Dadf_heartbeat_inject.c24 u32 thr) in adf_set_hb_counters_fail() argument
30 size_t thr_id = ae * hb_ctrs + thr; in adf_set_hb_counters_fail()
/linux-6.12.1/drivers/tty/serial/
Datmel_serial.h145 #define ATMEL_US_TXFTHRES(thr) FIELD_PREP(GENMASK(13, 8), (thr)) /* TX FIFO Threshold */ argument
146 #define ATMEL_US_RXFTHRES(thr) FIELD_PREP(GENMASK(21, 16), (thr)) /* RX FIFO Threshold */ argument
147 #define ATMEL_US_RXFTHRES2(thr) FIELD_PREP(GENMASK(29, 24), (thr)) /* RX FIFO Threshold2 */ argument
/linux-6.12.1/tools/testing/selftests/futex/functional/
Dfutex_wait_private_mapped_file.c74 pthread_t thr; in main() local
102 ret = pthread_create(&thr, NULL, thr_futex_wait, NULL); in main()
120 pthread_join(thr, NULL); in main()
Dfutex_wait_uninitialized_heap.c70 pthread_t thr; in main() local
104 ret = pthread_create(&thr, NULL, wait_thread, NULL); in main()
/linux-6.12.1/drivers/gpu/drm/imagination/
Dpvr_rogue_meta.h44 #define META_CR_PERF_COUNT(ctrl, thr) \ argument
46 ((thr) << META_CR_PERF_COUNT_THR_SHIFT))
73 #define META_CR_CORE_REG(thr, reg_num, unit) \ argument
74 (((u32)(thr) << META_CR_TXUXXRXRQ_TX_S) | \
/linux-6.12.1/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/
Dia_css_bnlm.host.c71 lut->thr[0][i] = 0; in bnlm_lut_encode()
77 lut->thr[0][i] = lut_thr[i]; in bnlm_lut_encode()
87 lut->thr[0][blk_offset + i] = lut->thr[0][i]; in bnlm_lut_encode()
Dia_css_bnlm_param.h23 VMEM_ARRAY(thr, ISP_VEC_NELEMS); /* thresholds */
/linux-6.12.1/arch/powerpc/kernel/
Dprocess.c931 static void tm_reclaim_thread(struct thread_struct *thr, uint8_t cause) in tm_reclaim_thread() argument
951 giveup_all(container_of(thr, struct task_struct, thread)); in tm_reclaim_thread()
953 tm_reclaim(thr, cause); in tm_reclaim_thread()
967 if ((thr->ckpt_regs.msr & MSR_FP) == 0) in tm_reclaim_thread()
968 memcpy(&thr->ckfp_state, &thr->fp_state, in tm_reclaim_thread()
970 if ((thr->ckpt_regs.msr & MSR_VEC) == 0) in tm_reclaim_thread()
971 memcpy(&thr->ckvr_state, &thr->vr_state, in tm_reclaim_thread()
993 struct thread_struct *thr = &tsk->thread; in tm_reclaim_task() local
995 if (!thr->regs) in tm_reclaim_task()
998 if (!MSR_TM_ACTIVE(thr->regs->msr)) in tm_reclaim_task()
[all …]
/linux-6.12.1/tools/testing/selftests/mm/
Dpkey_sighandler_tests.c162 pthread_t thr; in test_sigsegv_handler_with_pkey0_disabled() local
178 pthread_create(&thr, &attr, thread_segv_with_pkey0_disabled, NULL); in test_sigsegv_handler_with_pkey0_disabled()
202 pthread_t thr; in test_sigsegv_handler_cannot_access_stack() local
218 pthread_create(&thr, &attr, thread_segv_pkuerr_stack, NULL); in test_sigsegv_handler_cannot_access_stack()
/linux-6.12.1/tools/testing/selftests/powerpc/tm/
Dtm-signal-pagefault.c140 pthread_t thr; in setup_uf_mem() local
186 ret = pthread_create(&thr, NULL, fault_handler_thread, (void *) uffd); in setup_uf_mem()
/linux-6.12.1/arch/powerpc/kvm/
Dbook3s_hv.c879 int thr; in kvmppc_doorbell_pending() local
893 thr = vcpu->vcpu_id - vc->first_vcpuid; in kvmppc_doorbell_pending()
894 return !!(vc->dpdes & (1 << thr)); in kvmppc_doorbell_pending()
1501 int thr, cpu, pcpu, nthreads; in kvmppc_read_dpdes() local
1508 for (thr = 0; thr < nthreads; ++thr, ++cpu) { in kvmppc_read_dpdes()
1521 dpdes |= 1 << thr; in kvmppc_read_dpdes()
1534 u32 inst, rb, thr; in kvmppc_emulate_doorbell_instr() local
1546 thr = vcpu->vcpu_id & (kvm->arch.emul_smt_mode - 1); in kvmppc_emulate_doorbell_instr()
1555 tvcpu = kvmppc_find_vcpu(kvm, vcpu->vcpu_id - thr + arg); in kvmppc_emulate_doorbell_instr()
1573 arg = thr; in kvmppc_emulate_doorbell_instr()
[all …]
/linux-6.12.1/drivers/mmc/host/
Dmmci_stm32_sdmmc.c415 u32 thr = 0; in sdmmc_get_dctrl_cfg() local
419 thr = ffs(min_t(unsigned int, host->data->blksz, in sdmmc_get_dctrl_cfg()
421 thr = min_t(u32, thr, MMCI_STM32_THR_MASK); in sdmmc_get_dctrl_cfg()
424 writel_relaxed(thr, host->base + MMCI_STM32_FIFOTHRR); in sdmmc_get_dctrl_cfg()
/linux-6.12.1/tools/perf/util/
Dsvghelper.c703 int thr; in scan_thread_topology() local
709 for_each_set_bit(thr, cpumask_bits(&t->sib_thr[i]), nr_cpus) in scan_thread_topology()
710 if (map[thr] == -1) in scan_thread_topology()
711 map[thr] = (*pos)++; in scan_thread_topology()
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/
Drx.c214 u16 thr; in iwl_mvm_rx_handle_tcm() local
252 thr = thresh_tpt[rate_n_flags & RATE_HT_MCS_RATE_CODE_MSK_V1]; in iwl_mvm_rx_handle_tcm()
253 thr *= 1 + ((rate_n_flags & RATE_HT_MCS_NSS_MSK_V1) >> in iwl_mvm_rx_handle_tcm()
259 thr = thresh_tpt[rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK]; in iwl_mvm_rx_handle_tcm()
260 thr *= 1 + FIELD_GET(RATE_MCS_NSS_MSK, rate_n_flags); in iwl_mvm_rx_handle_tcm()
263 thr <<= ((rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK_V1) >> in iwl_mvm_rx_handle_tcm()
267 ewma_rate_add(&mdata->uapsd_nonagg_detect.rate, thr); in iwl_mvm_rx_handle_tcm()

12