Home
last modified time | relevance | path

Searched full:scratch (Results 1 – 25 of 745) sorted by relevance

12345678910>>...30

/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/arch/ia64/include/uapi/asm/
Dptrace.h78 unsigned long b6; /* scratch */
79 unsigned long b7; /* scratch */
81 unsigned long ar_csd; /* used by cmp8xchg16 (scratch) */
82 unsigned long ar_ssd; /* reserved for future use (scratch) */
84 unsigned long r8; /* scratch (return value register 0) */
85 unsigned long r9; /* scratch (return value register 1) */
86 unsigned long r10; /* scratch (return value register 2) */
87 unsigned long r11; /* scratch (return value register 3) */
113 unsigned long r15; /* scratch */
117 unsigned long r14; /* scratch */
[all …]
/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/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/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.c98 /* "scratch" is per-{command,block} data exchanged with the card */
99 struct scratch { struct
126 struct scratch *data;
259 * be stored in the scratch buffer. It's somewhere after the in mmc_spi_response_get()
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()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
Daic94xx_reg_def.h1958 * Sequencers (Central and Link) Scratch RAM page definitions.
1962 * The Central Management Sequencer (CSEQ) Scratch Memory is a 1024
1968 * dependent scratch memory, Mode 8, page 0-3 overlaps mode
1969 * independent scratch memory, pages 0-3.
1970 * - 896 bytes of mode dependent scratch, 96 bytes per Modes 0-7, and
1972 * - 259 bytes of mode independent scratch, common to modes 0-15.
1974 * Sequencer scratch RAM is 1024 bytes. This scratch memory is
1975 * divided into mode dependent and mode independent scratch with this
1977 * pages (160 bytes) of mode independent scratch and 3 pages of
1978 * dependent scratch memory for modes 0-7 (768 bytes). Mode 8 pages
[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.c601 * @scratch: private data for CQP WQE
605 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()
637 * @scratch: private data for CQP WQE
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()
826 * @scratch: u64 saved to be used during cqp completion
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()
[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/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_dma.c96 dma_addr_t addr = csi->scratch.paddr; in sun4i_csi_setup_scratch_buffer()
100 "No more available buffer, using the scratch buffer\n"); in sun4i_csi_setup_scratch_buffer()
165 dev_dbg(csi->dev, "Scratch buffer was used, ignoring..\n"); in sun4i_csi_buffer_mark_done()
245 * We need a scratch buffer in case where we'll not have any in sun4i_csi_start_streaming()
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()
[all …]
/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/arch/mips/include/asm/octeon/
Dcvmx-fau.h318 * @scraddr: Scratch pad byte address to write to. Must be 8 byte aligned
353 * placed in the scratch memory at byte address scraddr.
355 * @scraddr: Scratch memory byte address to put response in.
361 * Returns Placed in the scratch pad register
373 * placed in the scratch memory at byte address scraddr.
375 * @scraddr: Scratch memory byte address to put response in.
381 * Returns Placed in the scratch pad register
393 * placed in the scratch memory at byte address scraddr.
395 * @scraddr: Scratch memory byte address to put response in.
400 * Returns Placed in the scratch pad register
[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()
105 * entries back to scratch. 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()
[all …]
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()
507 * the 64K PTE, it will read/write into the scratch page in gen8_ppgtt_insert_huge()
514 encode = vma->vm->scratch[0]->encode; in gen8_ppgtt_insert_huge()
559 * If everybody agrees to not to write into the scratch page, in gen8_init_scratch()
569 vm->scratch[i] = i915_gem_object_get(clone->scratch[i]); in gen8_init_scratch()
578 vm->scratch[0]->encode = in gen8_init_scratch()
[all …]
Dintel_gtt.c146 static void poison_scratch_page(struct drm_i915_gem_object *scratch) in poison_scratch_page() argument
156 for_each_sgt_page(page, sgt, scratch->mm.pages) { in poison_scratch_page()
171 * need to support a 64K scratch page, given that every 16th entry for a in setup_scratch_page()
173 * region, including any PTEs which happen to point to scratch. in setup_scratch_page()
177 * scratch (read-only) between all vm, we create one 64k scratch page in setup_scratch_page()
195 /* We need a single contiguous page for our scratch */ in setup_scratch_page()
204 * Use a non-zero scratch page for debugging. in setup_scratch_page()
214 vm->scratch[0] = obj; in setup_scratch_page()
233 i915_gem_object_put(vm->scratch[i]); in free_scratch()
/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/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/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/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()
605 /* Allocate scratch variables. */ 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()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Di915_perf.c290 void *scratch; in live_noa_gpr() local
309 /* Poison the ce->vm so we detect writes not to the GGTT gt->scratch */ in live_noa_gpr()
310 scratch = kmap(__px_page(ce->vm->scratch[0])); in live_noa_gpr()
311 memset(scratch, POISON_FREE, PAGE_SIZE); in live_noa_gpr()
398 /* Verify that the user's scratch page was not used for GPR storage */ in live_noa_gpr()
399 if (memchr_inv(scratch, POISON_FREE, PAGE_SIZE)) { in live_noa_gpr()
400 pr_err("Scratch page overwritten!\n"); in live_noa_gpr()
401 igt_hexdump(scratch, 4096); in live_noa_gpr()
408 kunmap(__px_page(ce->vm->scratch[0])); in live_noa_gpr()
/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/arch/mips/mm/
Dtlbex.c802 * TMP and PTR are scratch.
892 * BVADDR is the faulting address, PTR is scratch.
968 * TMP and PTR are scratch.
1117 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()
[all …]

12345678910>>...30