Home
last modified time | relevance | path

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

12

/linux-6.15/fs/bcachefs/
H A Dthread_with_file.c40 thr->ret = 0; in bch2_run_thread_with_file()
41 thr->task = kthread_create(fn, thr, "%s", name); in bch2_run_thread_with_file()
108 thr->thr.done = true; in thread_with_stdio_done()
160 bch2_thread_with_file_exit(&thr->thr); in thread_with_stdio_release()
163 thr->ops->exit(thr); in thread_with_stdio_release()
177 if (thr->thr.done) { in thread_with_stdio_write()
238 if (thr->thr.done) in thread_with_stdio_poll()
254 if (thr->thr.done) in thread_with_stdout_poll()
264 return thr->thr.ret; in thread_with_stdio_flush()
273 return thr->ops->unlocked_ioctl(thr, cmd, p); in thread_with_stdio_ioctl()
[all …]
H A Dfsck.c3026 kfree(thr); in bch2_fsck_thread_exit()
3094 thr = kzalloc(sizeof(*thr), GFP_KERNEL); in bch2_ioctl_fsck_offline()
3095 if (!thr) { in bch2_ioctl_fsck_offline()
3113 opt_set(thr->opts, stdio, (u64)(unsigned long)&thr->thr.stdio); in bch2_ioctl_fsck_offline()
3128 ret = __bch2_run_thread_with_stdio(&thr->thr); in bch2_ioctl_fsck_offline()
3135 if (thr) in bch2_ioctl_fsck_offline()
3136 bch2_fsck_thread_exit(&thr->thr); in bch2_ioctl_fsck_offline()
3147 c->stdio = &thr->thr.stdio; in bch2_fsck_online_thread_fn()
3200 thr = kzalloc(sizeof(*thr), GFP_KERNEL); in bch2_ioctl_fsck_online()
3225 if (thr) in bch2_ioctl_fsck_online()
[all …]
H A Dchardev.c304 struct thread_with_file thr; member
313 struct bch_data_ctx *ctx = container_of(arg, struct bch_data_ctx, thr); in bch2_data_thread()
315 ctx->thr.ret = bch2_data_job(ctx->c, &ctx->stats, ctx->arg); in bch2_data_thread()
316 if (ctx->thr.ret == -BCH_ERR_device_offline) in bch2_data_thread()
327 struct bch_data_ctx *ctx = container_of(file->private_data, struct bch_data_ctx, thr); in bch2_data_job_release()
329 bch2_thread_with_file_exit(&ctx->thr); in bch2_data_job_release()
337 struct bch_data_ctx *ctx = container_of(file->private_data, struct bch_data_ctx, thr); in bch2_data_job_read()
394 ret = bch2_run_thread_with_file(&ctx->thr, in bch2_ioctl_data()
H A Dthread_with_file.h61 struct thread_with_file thr; member
/linux-6.15/kernel/power/
H A Dswap.c747 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
784 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
812 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
845 for (run_threads = thr, thr = 0; thr < run_threads; thr++) { in save_compressed_image()
909 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image()
910 if (data[thr].thr) in save_compressed_image()
1266 for (thr = 0; thr < nr_threads; thr++) { in load_compressed_image()
1303 for (thr = 0; thr < nr_threads; thr++) { in load_compressed_image()
1451 for (run_threads = thr, thr = 0; thr < run_threads; thr++) { in load_compressed_image()
1527 for (thr = 0; thr < nr_threads; thr++) { in load_compressed_image()
[all …]
/linux-6.15/tools/perf/tests/shell/coresight/thread_loop/
H A 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.15/tools/perf/tests/shell/coresight/memcpy_thread/
H A 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.15/tools/perf/tests/shell/coresight/unroll_loop_thread/
H A 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.15/arch/powerpc/platforms/powernv/
H A 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()
832 for (thr = 0; thr < threads_per_core; ++thr) { 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()
851 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_catch()
855 poke_threads &= ~(1 << thr); in pnv_power9_force_smt4_catch()
865 int cpu, cpu0, thr; in pnv_power9_force_smt4_release() local
871 for (thr = 0; thr < threads_per_core; ++thr) { in pnv_power9_force_smt4_release()
[all …]
/linux-6.15/arch/arm64/boot/dts/mediatek/
H A 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.15/drivers/crypto/intel/qat/qat_common/
H A 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()
H A Dadf_hw_arbiter.c103 int adf_disable_arb_thd(struct adf_accel_dev *accel_dev, u32 ae, u32 thr) in adf_disable_arb_thd() argument
111 if (ADF_AE_STRAND0_THREAD == thr || ADF_AE_STRAND1_THREAD == thr) in adf_disable_arb_thd()
112 thr = ADF_AE_ADMIN_THREAD; in adf_disable_arb_thd()
121 ae_thr_map &= ~(GENMASK(3, 0) << (thr * BIT(2))); in adf_disable_arb_thd()
H A 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.15/Documentation/devicetree/bindings/sound/
H A Ddialog,da7219.yaml114 dlg,mic-det-thr:
144 dlg,a-d-btn-thr:
151 dlg,d-b-btn-thr:
158 dlg,b-c-btn-thr:
165 dlg,c-mic-btn-thr:
223 dlg,mic-det-thr = <500>;
229 dlg,a-d-btn-thr = <0xa>;
230 dlg,d-b-btn-thr = <0x16>;
231 dlg,b-c-btn-thr = <0x21>;
232 dlg,c-mic-btn-thr = <0x3E>;
/linux-6.15/drivers/tty/serial/
H A 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.15/tools/testing/selftests/futex/functional/
H A 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()
H A Dfutex_wait_uninitialized_heap.c70 pthread_t thr; in main() local
104 ret = pthread_create(&thr, NULL, wait_thread, NULL); in main()
/linux-6.15/drivers/gpu/drm/imagination/
H A 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.15/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/
H A Dia_css_bnlm.host.c62 lut->thr[0][i] = 0; in bnlm_lut_encode()
68 lut->thr[0][i] = lut_thr[i]; in bnlm_lut_encode()
78 lut->thr[0][blk_offset + i] = lut->thr[0][i]; in bnlm_lut_encode()
H A Dia_css_bnlm_param.h14 VMEM_ARRAY(thr, ISP_VEC_NELEMS); /* thresholds */
/linux-6.15/arch/powerpc/kernel/
H A Dprocess.c953 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()
995 if (!thr->regs) in tm_reclaim_task()
998 if (!MSR_TM_ACTIVE(thr->regs->msr)) in tm_reclaim_task()
1005 tsk->pid, thr->regs->nip, in tm_reclaim_task()
1006 thr->regs->ccr, thr->regs->msr, in tm_reclaim_task()
1007 thr->regs->trap); in tm_reclaim_task()
[all …]
/linux-6.15/tools/testing/selftests/mm/
H A Dpkey_sighandler_tests.c209 pthread_t thr; in test_sigsegv_handler_with_pkey0_disabled() local
225 pthread_create(&thr, &attr, thread_segv_with_pkey0_disabled, NULL); in test_sigsegv_handler_with_pkey0_disabled()
249 pthread_t thr; in test_sigsegv_handler_cannot_access_stack() local
265 pthread_create(&thr, &attr, thread_segv_pkuerr_stack, NULL); in test_sigsegv_handler_cannot_access_stack()
/linux-6.15/tools/testing/selftests/powerpc/tm/
H A 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.15/arch/powerpc/kvm/
H A Dbook3s_hv.c882 int thr; in kvmppc_doorbell_pending() local
1511 for (thr = 0; thr < nthreads; ++thr, ++cpu) { in kvmppc_read_dpdes()
1524 dpdes |= 1 << thr; in kvmppc_read_dpdes()
1537 u32 inst, rb, thr; in kvmppc_emulate_doorbell_instr() local
1576 arg = thr; in kvmppc_emulate_doorbell_instr()
3397 int thr; in on_primary_thread() local
3403 thr = 0; in on_primary_thread()
3409 for (thr = 1; thr < threads_per_subcore; ++thr) { in on_primary_thread()
3789 int pcpu, thr; in kvmppc_run_core() local
3910 for (thr = 0; thr < controlled_threads; ++thr) { in kvmppc_run_core()
[all …]
/linux-6.15/drivers/mmc/host/
H A 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()

12