| /linux/fs/bcachefs/ |
| A D | thread_with_file.c | 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() 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 …]
|
| A D | chardev.c | 139 kfree(thr); in bch2_fsck_thread_exit() 207 thr = kzalloc(sizeof(*thr), GFP_KERNEL); in bch2_ioctl_fsck_offline() 208 if (!thr) { in bch2_ioctl_fsck_offline() 226 opt_set(thr->opts, stdio, (u64)(unsigned long)&thr->thr.stdio); in bch2_ioctl_fsck_offline() 241 ret = __bch2_run_thread_with_stdio(&thr->thr); in bch2_ioctl_fsck_offline() 248 if (thr) in bch2_ioctl_fsck_offline() 249 bch2_fsck_thread_exit(&thr->thr); in bch2_ioctl_fsck_offline() 784 c->stdio = &thr->thr.stdio; in bch2_fsck_online_thread_fn() 838 thr = kzalloc(sizeof(*thr), GFP_KERNEL); in bch2_ioctl_fsck_online() 863 if (thr) in bch2_ioctl_fsck_online() [all …]
|
| A D | thread_with_file.h | 61 struct thread_with_file thr; member
|
| /linux/kernel/power/ |
| A D | swap.c | 744 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image() 774 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image() 802 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image() 835 for (run_threads = thr, thr = 0; thr < run_threads; thr++) { in save_compressed_image() 899 for (thr = 0; thr < nr_threads; thr++) { in save_compressed_image() 900 if (data[thr].thr) in save_compressed_image() 1253 for (thr = 0; thr < nr_threads; thr++) { in load_compressed_image() 1283 for (thr = 0; thr < nr_threads; thr++) { in load_compressed_image() 1431 for (run_threads = thr, thr = 0; thr < run_threads; thr++) { in load_compressed_image() 1507 for (thr = 0; thr < nr_threads; thr++) { in load_compressed_image() [all …]
|
| /linux/tools/perf/tests/shell/coresight/thread_loop/ |
| A D | thread_loop.c | 59 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/tools/perf/tests/shell/coresight/memcpy_thread/ |
| A D | memcpy_thread.c | 44 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/tools/perf/tests/shell/coresight/unroll_loop_thread/ |
| A D | unroll_loop_thread.c | 53 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/arch/powerpc/platforms/powernv/ |
| A D | idle.c | 819 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/arch/arm64/boot/dts/mediatek/ |
| A D | mt8183-kukui-audio-da7219.dtsi | 28 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/drivers/crypto/intel/qat/qat_common/ |
| A D | adf_heartbeat.c | 138 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()
|
| A D | adf_hw_arbiter.c | 107 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()
|
| A D | adf_heartbeat_inject.c | 24 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/Documentation/devicetree/bindings/sound/ |
| A D | dialog,da7219.yaml | 114 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/drivers/tty/serial/ |
| A D | atmel_serial.h | 145 #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/tools/testing/selftests/futex/functional/ |
| A D | futex_wait_private_mapped_file.c | 74 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()
|
| A D | futex_wait_uninitialized_heap.c | 70 pthread_t thr; in main() local 104 ret = pthread_create(&thr, NULL, wait_thread, NULL); in main()
|
| /linux/drivers/staging/media/atomisp/pci/isp/kernels/bnlm/ |
| A D | ia_css_bnlm.host.c | 71 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()
|
| A D | ia_css_bnlm_param.h | 23 VMEM_ARRAY(thr, ISP_VEC_NELEMS); /* thresholds */
|
| /linux/drivers/gpu/drm/imagination/ |
| A D | pvr_rogue_meta.h | 44 #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/arch/powerpc/kernel/ |
| A D | process.c | 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() 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/tools/testing/selftests/mm/ |
| A D | pkey_sighandler_tests.c | 162 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/tools/testing/selftests/powerpc/tm/ |
| A D | tm-signal-pagefault.c | 140 pthread_t thr; in setup_uf_mem() local 186 ret = pthread_create(&thr, NULL, fault_handler_thread, (void *) uffd); in setup_uf_mem()
|
| /linux/arch/powerpc/kvm/ |
| A D | book3s_hv.c | 879 int thr; in kvmppc_doorbell_pending() 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 1573 arg = thr; in kvmppc_emulate_doorbell_instr() 3421 int thr; in on_primary_thread() local 3427 thr = 0; in on_primary_thread() 3433 for (thr = 1; thr < threads_per_subcore; ++thr) { in on_primary_thread() 3813 int pcpu, thr; in kvmppc_run_core() local 3934 for (thr = 0; thr < controlled_threads; ++thr) { in kvmppc_run_core() [all …]
|
| /linux/drivers/mmc/host/ |
| A D | mmci_stm32_sdmmc.c | 415 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/tools/perf/util/ |
| A D | svghelper.c | 703 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()
|