Home
last modified time | relevance | path

Searched refs:scratch (Results 1 – 25 of 266) sorted by relevance

1234567891011

/kernel/linux/linux-5.10/arch/arc/kernel/
Dsignal.c106 uregs.scratch.bta = regs->bta; in stash_usr_regs()
107 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs()
108 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs()
109 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs()
110 uregs.scratch.status32 = regs->status32; in stash_usr_regs()
111 uregs.scratch.ret = regs->ret; in stash_usr_regs()
112 uregs.scratch.blink = regs->blink; in stash_usr_regs()
113 uregs.scratch.fp = regs->fp; in stash_usr_regs()
114 uregs.scratch.gp = regs->r26; in stash_usr_regs()
115 uregs.scratch.r12 = regs->r12; in stash_usr_regs()
[all …]
Dptrace.c109 REG_IN_ONE(scratch.bta, &ptregs->bta); in genregs_set()
110 REG_IN_ONE(scratch.lp_start, &ptregs->lp_start); in genregs_set()
111 REG_IN_ONE(scratch.lp_end, &ptregs->lp_end); in genregs_set()
112 REG_IN_ONE(scratch.lp_count, &ptregs->lp_count); in genregs_set()
114 REG_IGNORE_ONE(scratch.status32); in genregs_set()
116 REG_IN_ONE(scratch.ret, &ptregs->ret); in genregs_set()
117 REG_IN_ONE(scratch.blink, &ptregs->blink); in genregs_set()
118 REG_IN_ONE(scratch.fp, &ptregs->fp); in genregs_set()
119 REG_IN_ONE(scratch.gp, &ptregs->r26); in genregs_set()
120 REG_IN_ONE(scratch.r12, &ptregs->r12); in genregs_set()
[all …]
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Dwinmacro.h50 #define LOAD_PT_YREG(base_reg, scratch) \ argument
51 ld [%base_reg + STACKFRAME_SZ + PT_Y], %scratch; \
52 wr %scratch, 0x0, %y;
59 #define LOAD_PT_ALL(base_reg, pt_psr, pt_pc, pt_npc, scratch) \ argument
60 LOAD_PT_YREG(base_reg, scratch) \
77 #define STORE_PT_YREG(base_reg, scratch) \ argument
78 rd %y, %scratch; \
79 st %scratch, [%base_reg + STACKFRAME_SZ + PT_Y];
92 #define SAVE_BOLIXED_USER_STACK(cur_reg, scratch) \ argument
93 ld [%cur_reg + TI_W_SAVED], %scratch; \
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-pci-o2micro.c101 u16 scratch; in sdhci_o2_enable_internal_clock() local
121 scratch = sdhci_readw(host, O2_PLL_DLL_WDT_CONTROL1); in sdhci_o2_enable_internal_clock()
122 if (scratch & O2_PLL_LOCK_STATUS) in sdhci_o2_enable_internal_clock()
306 u16 scratch = 0; in sdhci_o2_execute_tuning() local
321 scratch = sdhci_readw(host, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
322 scratch |= O2_SD_PWR_FORCE_L0; in sdhci_o2_execute_tuning()
323 sdhci_writew(host, scratch, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
363 scratch = sdhci_readw(host, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
364 scratch &= ~(O2_SD_PWR_FORCE_L0); in sdhci_o2_execute_tuning()
365 sdhci_writew(host, scratch, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
[all …]
Dmmc_spi.c99 struct scratch { struct
126 struct scratch *data;
433 struct scratch *data = host->data; in mmc_spi_command_send()
561 struct scratch *scratch = host->data; in mmc_spi_setup_data_message() local
576 scratch->data_token = SPI_TOKEN_MULTI_WRITE; in mmc_spi_setup_data_message()
578 scratch->data_token = SPI_TOKEN_SINGLE; in mmc_spi_setup_data_message()
579 t->tx_buf = &scratch->data_token; in mmc_spi_setup_data_message()
581 t->tx_dma = dma + offsetof(struct scratch, data_token); in mmc_spi_setup_data_message()
600 t->tx_buf = &scratch->crc_val; in mmc_spi_setup_data_message()
602 t->tx_dma = dma + offsetof(struct scratch, crc_val); in mmc_spi_setup_data_message()
[all …]
/kernel/linux/linux-5.10/crypto/
Dscompress.c70 struct scomp_scratch *scratch; in crypto_scomp_free_scratches() local
74 scratch = per_cpu_ptr(&scomp_scratch, i); in crypto_scomp_free_scratches()
76 vfree(scratch->src); in crypto_scomp_free_scratches()
77 vfree(scratch->dst); in crypto_scomp_free_scratches()
78 scratch->src = NULL; in crypto_scomp_free_scratches()
79 scratch->dst = NULL; in crypto_scomp_free_scratches()
85 struct scomp_scratch *scratch; in crypto_scomp_alloc_scratches() local
91 scratch = per_cpu_ptr(&scomp_scratch, i); in crypto_scomp_alloc_scratches()
96 scratch->src = mem; in crypto_scomp_alloc_scratches()
100 scratch->dst = mem; in crypto_scomp_alloc_scratches()
[all …]
/kernel/linux/linux-5.10/arch/arc/include/asm/
Dirqflags-compact.h181 .macro IRQ_DISABLE scratch
182 lr \scratch, [status32]
183 bic \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
184 flag \scratch
188 .macro IRQ_ENABLE scratch
190 lr \scratch, [status32]
191 or \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
192 flag \scratch
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_ipcomp.c45 u8 *scratch = *per_cpu_ptr(ipcomp_scratches, cpu); in ipcomp_decompress() local
47 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress()
65 skb_copy_to_linear_data(skb, scratch, len); in ipcomp_decompress()
67 while ((scratch += len, dlen -= len) > 0) { in ipcomp_decompress()
90 memcpy(skb_frag_address(frag), scratch, len); in ipcomp_decompress()
141 u8 *scratch; in ipcomp_compress() local
145 scratch = *this_cpu_ptr(ipcomp_scratches); in ipcomp_compress()
147 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
156 memcpy(start + sizeof(struct ip_comp_hdr), scratch, dlen); in ipcomp_compress()
232 void *scratch; in ipcomp_alloc_scratches() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
Di40iw_type.h567 u64 scratch; member
1024 u64 *(*cqp_get_next_send_wqe)(struct i40iw_sc_cqp *, u64 scratch);
1173 u64 scratch; member
1179 u64 scratch; member
1184 u64 scratch; member
1191 u64 scratch; member
1197 u64 scratch; member
1203 u64 scratch; member
1208 u64 scratch; member
1216 u64 scratch; member
[all …]
Di40iw_ctrl.c605 u64 scratch, u32 *wqe_idx) in i40iw_sc_cqp_get_next_send_wqe_idx() argument
628 cqp->scratch_array[*wqe_idx] = scratch; in i40iw_sc_cqp_get_next_send_wqe_idx()
639 u64 *i40iw_sc_cqp_get_next_send_wqe(struct i40iw_sc_cqp *cqp, u64 scratch) in i40iw_sc_cqp_get_next_send_wqe() argument
643 return i40iw_sc_cqp_get_next_send_wqe_idx(cqp, scratch, &wqe_idx); in i40iw_sc_cqp_get_next_send_wqe()
749 info->scratch = cqp->scratch_array[wqe_idx]; in i40iw_sc_ccq_get_cqe_info()
832 u64 scratch, in i40iw_sc_manage_push_page() argument
841 wqe = i40iw_sc_cqp_get_next_send_wqe(cqp, scratch); in i40iw_sc_manage_push_page()
872 u64 scratch, in i40iw_sc_manage_hmc_pm_func_table() argument
882 wqe = i40iw_sc_cqp_get_next_send_wqe(cqp, scratch); in i40iw_sc_manage_hmc_pm_func_table()
910 u64 scratch, in i40iw_sc_set_hmc_resource_profile() argument
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dbootparam_utils.h52 static struct boot_params scratch; in sanitize_boot_params() local
54 char *save_base = (char *)&scratch; in sanitize_boot_params()
68 BOOT_PARAM_PRESERVE(scratch), in sanitize_boot_params()
79 memset(&scratch, 0, sizeof(scratch)); in sanitize_boot_params()
/kernel/linux/linux-5.10/drivers/block/paride/
Dparide.c170 static int default_test_proto(PIA * pi, char *scratch, int verbose) in default_test_proto() argument
196 static int pi_test_proto(PIA * pi, char *scratch, int verbose) in pi_test_proto() argument
202 res = pi->proto->test_proto(pi, scratch, verbose); in pi_test_proto()
204 res = default_test_proto(pi, scratch, verbose); in pi_test_proto()
275 static int pi_probe_mode(PIA * pi, int max, char *scratch, int verbose) in pi_probe_mode() argument
288 return (!pi_test_proto(pi, scratch, verbose)); in pi_probe_mode()
298 if (!pi_test_proto(pi, scratch, verbose)) in pi_probe_mode()
305 static int pi_probe_unit(PIA * pi, int unit, char *scratch, int verbose) in pi_probe_unit() argument
332 if (pi_probe_mode(pi, max, scratch, verbose)) in pi_probe_unit()
342 if (!pi_probe_mode(pi, max, scratch, verbose)) { in pi_probe_unit()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dselftest_workarounds.c487 struct i915_vma *scratch; in check_dirty_whitelist() local
492 scratch = create_scratch(ce->vm, 2 * ARRAY_SIZE(values) + 1); in check_dirty_whitelist()
493 if (IS_ERR(scratch)) in check_dirty_whitelist()
494 return PTR_ERR(scratch); in check_dirty_whitelist()
504 u64 addr = scratch->node.start; in check_dirty_whitelist()
569 GEM_BUG_ON(idx * sizeof(u32) > scratch->size); in check_dirty_whitelist()
603 i915_vma_lock(scratch); in check_dirty_whitelist()
604 err = i915_request_await_object(rq, scratch->obj, true); in check_dirty_whitelist()
606 err = i915_vma_move_to_active(scratch, rq, in check_dirty_whitelist()
608 i915_vma_unlock(scratch); in check_dirty_whitelist()
[all …]
Dgen6_ppgtt.c19 dma_addr_t addr = pt ? px_dma(pt) : px_dma(ppgtt->base.vm.scratch[1]); in gen6_write_pde()
84 const gen6_pte_t scratch_pte = vm->scratch[0]->encode; in gen6_ppgtt_clear_range()
202 fill32_px(pt, vm->scratch[0]->encode); in gen6_alloc_va_range()
237 vm->scratch[0]->encode = in gen6_ppgtt_init_scratch()
238 vm->pte_encode(px_dma(vm->scratch[0]), in gen6_ppgtt_init_scratch()
241 vm->scratch[1] = vm->alloc_pt_dma(vm, I915_GTT_PAGE_SIZE_4K); in gen6_ppgtt_init_scratch()
242 if (IS_ERR(vm->scratch[1])) { in gen6_ppgtt_init_scratch()
243 ret = PTR_ERR(vm->scratch[1]); in gen6_ppgtt_init_scratch()
247 ret = pin_pt_dma(vm, vm->scratch[1]); in gen6_ppgtt_init_scratch()
251 fill32_px(vm->scratch[1], vm->scratch[0]->encode); in gen6_ppgtt_init_scratch()
[all …]
Dselftest_mocs.c17 struct i915_vma *scratch; member
104 arg->scratch = create_scratch(gt); in live_mocs_init()
105 if (IS_ERR(arg->scratch)) in live_mocs_init()
106 return PTR_ERR(arg->scratch); in live_mocs_init()
108 arg->vaddr = i915_gem_object_pin_map(arg->scratch->obj, I915_MAP_WB); in live_mocs_init()
117 i915_vma_unpin_and_release(&arg->scratch, 0); in live_mocs_init()
123 i915_vma_unpin_and_release(&arg->scratch, I915_VMA_RELEASE_MAP); in live_mocs_fini()
231 struct i915_vma *vma = arg->scratch; in check_mocs_engine()
Dgen8_ppgtt.c202 const struct drm_i915_gem_object * const scratch = vm->scratch[lvl]; in __gen8_ppgtt_clear() local
220 clear_pd_entry(pd, idx, scratch); in __gen8_ppgtt_clear()
242 vm->scratch[0]->encode, in __gen8_ppgtt_clear()
250 if (release_pd_entry(pd, idx, pt, scratch)) in __gen8_ppgtt_clear()
302 fill_px(pt, vm->scratch[lvl]->encode); in __gen8_ppgtt_alloc()
514 encode = vma->vm->scratch[0]->encode; in gen8_ppgtt_insert_huge()
569 vm->scratch[i] = i915_gem_object_get(clone->scratch[i]); in gen8_init_scratch()
578 vm->scratch[0]->encode = in gen8_init_scratch()
579 gen8_pte_encode(px_dma(vm->scratch[0]), in gen8_init_scratch()
595 fill_px(obj, vm->scratch[i - 1]->encode); in gen8_init_scratch()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_dma.c96 dma_addr_t addr = csi->scratch.paddr; in sun4i_csi_setup_scratch_buffer()
255 csi->scratch.size = 0; in sun4i_csi_start_streaming()
257 csi->scratch.size += csi->fmt.plane_fmt[i].sizeimage; in sun4i_csi_start_streaming()
259 csi->scratch.vaddr = dma_alloc_coherent(csi->dev, in sun4i_csi_start_streaming()
260 csi->scratch.size, in sun4i_csi_start_streaming()
261 &csi->scratch.paddr, in sun4i_csi_start_streaming()
263 if (!csi->scratch.vaddr) { in sun4i_csi_start_streaming()
336 dma_free_coherent(csi->dev, csi->scratch.size, csi->scratch.vaddr, in sun4i_csi_start_streaming()
337 csi->scratch.paddr); in sun4i_csi_start_streaming()
364 dma_free_coherent(csi->dev, csi->scratch.size, csi->scratch.vaddr, in sun4i_csi_stop_streaming()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dehci-dbg.c373 u32 scratch; in qh_lines() local
396 scratch = hc32_to_cpup(ehci, &hw->hw_info1); in qh_lines()
401 qh, scratch & 0x007f, in qh_lines()
402 speed_char (scratch), in qh_lines()
403 (scratch >> 8) & 0x000f, in qh_lines()
404 scratch, hc32_to_cpup(ehci, &hw->hw_info2), in qh_lines()
420 scratch = hc32_to_cpup(ehci, &td->hw_token); in qh_lines()
426 } else if (QTD_LENGTH(scratch)) { in qh_lines()
432 switch ((scratch >> 8) & 0x03) { in qh_lines()
450 (scratch >> 16) & 0x7fff, in qh_lines()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_execbuffer.c109 struct drm_i915_gem_object *scratch; in igt_gpu_reloc() local
115 scratch = i915_gem_object_create_internal(eb.i915, 4096); in igt_gpu_reloc()
116 if (IS_ERR(scratch)) in igt_gpu_reloc()
117 return PTR_ERR(scratch); in igt_gpu_reloc()
119 map = i915_gem_object_pin_map(scratch, I915_MAP_WC); in igt_gpu_reloc()
144 err = __igt_gpu_reloc(&eb, scratch); in igt_gpu_reloc()
172 i915_gem_object_put(scratch); in igt_gpu_reloc()
/kernel/linux/linux-5.10/arch/alpha/kernel/
Derr_marvel.c153 int scratch, i; in marvel_print_po7_uncrr_sym() local
198 scratch = EXTRACT(uncrr_sym, IO7__PO7_UNCRR_SYM__CLK); in marvel_print_po7_uncrr_sym()
199 for (i = 0; i < 4; i++, scratch >>= 2) { in marvel_print_po7_uncrr_sym()
200 if (scratch & 0x3) in marvel_print_po7_uncrr_sym()
203 clk_names[i], clk_decode[scratch & 0x3]); in marvel_print_po7_uncrr_sym()
232 if ((scratch = EXTRACT(uncrr_sym, IO7__PO7_UNCRR_SYM__VICTIM_SP))) { in marvel_print_po7_uncrr_sym()
233 int lost = scratch & (1UL << 4); in marvel_print_po7_uncrr_sym()
234 scratch &= ~lost; in marvel_print_po7_uncrr_sym()
235 for (i = 0; i < 8; i++, scratch >>= 1) { in marvel_print_po7_uncrr_sym()
236 if (!(scratch & 1)) in marvel_print_po7_uncrr_sym()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnft_set_pipapo.c429 if (unlikely(!m || !*raw_cpu_ptr(m->scratch))) in nft_pipapo_lookup()
432 res_map = *raw_cpu_ptr(m->scratch) + (map_index ? m->bsize_max : 0); in nft_pipapo_lookup()
433 fill_map = *raw_cpu_ptr(m->scratch) + (map_index ? 0 : m->bsize_max); in nft_pipapo_lookup()
1112 unsigned long *scratch; local
1117 scratch = kzalloc_node(bsize_max * sizeof(*scratch) * 2 +
1120 if (!scratch) {
1131 kfree(*per_cpu_ptr(clone->scratch, i));
1133 *per_cpu_ptr(clone->scratch, i) = scratch;
1136 scratch_aligned = NFT_PIPAPO_LT_ALIGN(scratch);
1245 if (!*get_cpu_ptr(m->scratch) || bsize_max > m->bsize_max) {
[all …]
/kernel/linux/linux-5.10/arch/mips/mm/
Dtlbex.c1117 const int scratch = 1; /* Our extra working register */ in build_fast_tlb_refill_handler() local
1119 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
1132 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1134 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1136 uasm_i_dsrl_safe(p, scratch, tmp, in build_fast_tlb_refill_handler()
1138 uasm_il_bnez(p, r, scratch, label_vmalloc); in build_fast_tlb_refill_handler()
1154 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1156 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1173 #define LOC_PTEP scratch in build_fast_tlb_refill_handler()
1180 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
[all …]
/kernel/linux/linux-5.10/lib/mpi/
Dec.c601 for (j = 0; i < DIM(ctx->t.scratch) && bad_points_table[i][j]; j++) in mpi_ec_init()
602 ctx->t.scratch[j] = mpi_scanval(bad_points_table[i][j]); in mpi_ec_init()
606 for (i = 0; i < DIM(ctx->t.scratch); i++) in mpi_ec_init()
607 ctx->t.scratch[i] = mpi_alloc_like(ctx->p); in mpi_ec_init()
637 for (i = 0; i < DIM(ctx->t.scratch) && ctx->t.scratch[i]; i++) in mpi_ec_init()
638 ctx->t.scratch[i]->nlimbs = ctx->p->nlimbs; in mpi_ec_init()
668 for (i = 0; i < DIM(ctx->t.scratch); i++) in mpi_ec_deinit()
669 mpi_free(ctx->t.scratch[i]); in mpi_ec_deinit()
759 #define t1 (ctx->t.scratch[0]) in dup_point_weierstrass()
760 #define t2 (ctx->t.scratch[1]) in dup_point_weierstrass()
[all …]
/kernel/linux/linux-5.10/drivers/mtd/devices/
Dmtd_dataflash.c455 u8 *scratch; in otp_read() local
468 scratch = kzalloc(l, GFP_KERNEL); in otp_read()
469 if (!scratch) in otp_read()
475 scratch[0] = OP_READ_SECURITY; in otp_read()
478 t.tx_buf = scratch; in otp_read()
479 t.rx_buf = scratch; in otp_read()
487 memcpy(buf, scratch + 4 + base + off, len); in otp_read()
491 kfree(scratch); in otp_read()
534 u8 *scratch; in dataflash_write_user_otp() local
555 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
[all …]
/kernel/linux/linux-5.10/drivers/pnp/pnpbios/
Dcore.c89 char *argv[3], **envp, *buf, *scratch; in pnp_dock_event() local
118 scratch = buf; in pnp_dock_event()
121 envp[i++] = scratch; in pnp_dock_event()
122 scratch += sprintf(scratch, "ACTION=%s", dock ? "add" : "remove") + 1; in pnp_dock_event()
125 envp[i++] = scratch; in pnp_dock_event()
126 scratch += sprintf(scratch, "DOCK=%x/%x/%x", in pnp_dock_event()

1234567891011