Home
last modified time | relevance | path

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

12345678910>>...40

/openbmc/linux/arch/sparc/include/asm/
H A 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 …]
/openbmc/linux/arch/ia64/include/uapi/asm/
H A 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 …]
/openbmc/linux/arch/arc/kernel/
H A Dsignal.c107 uregs.scratch.bta = regs->bta; in stash_usr_regs()
108 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs()
109 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs()
110 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs()
111 uregs.scratch.status32 = regs->status32; in stash_usr_regs()
112 uregs.scratch.ret = regs->ret; in stash_usr_regs()
113 uregs.scratch.blink = regs->blink; in stash_usr_regs()
114 uregs.scratch.fp = regs->fp; in stash_usr_regs()
115 uregs.scratch.gp = regs->r26; in stash_usr_regs()
116 uregs.scratch.r12 = regs->r12; in stash_usr_regs()
[all …]
H A Dptrace.c192 REG_IN_ONE(scratch.bta, &ptregs->bta); in genregs_set()
193 REG_IN_ONE(scratch.lp_start, &ptregs->lp_start); in genregs_set()
194 REG_IN_ONE(scratch.lp_end, &ptregs->lp_end); in genregs_set()
195 REG_IN_ONE(scratch.lp_count, &ptregs->lp_count); in genregs_set()
197 REG_IGNORE_ONE(scratch.status32); in genregs_set()
199 REG_IN_ONE(scratch.ret, &ptregs->ret); in genregs_set()
200 REG_IN_ONE(scratch.blink, &ptregs->blink); in genregs_set()
201 REG_IN_ONE(scratch.fp, &ptregs->fp); in genregs_set()
202 REG_IN_ONE(scratch.gp, &ptregs->r26); in genregs_set()
203 REG_IN_ONE(scratch.r12, &ptregs->r12); in genregs_set()
[all …]
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Duda.h40 u32 op, u64 scratch);
43 u64 scratch);
51 struct irdma_ah_info *info, u64 scratch) in irdma_sc_create_ah() argument
54 scratch); in irdma_sc_create_ah()
58 struct irdma_ah_info *info, u64 scratch) in irdma_sc_destroy_ah() argument
61 scratch); in irdma_sc_destroy_ah()
66 u64 scratch) in irdma_sc_create_mcast_grp() argument
69 scratch); in irdma_sc_create_mcast_grp()
74 u64 scratch) in irdma_sc_modify_mcast_grp() argument
77 scratch); in irdma_sc_modify_mcast_grp()
[all …]
H A Dtype.h669 u64 scratch; member
1164 int irdma_sc_ccq_create(struct irdma_sc_cq *ccq, u64 scratch,
1166 int irdma_sc_ccq_destroy(struct irdma_sc_cq *ccq, u64 scratch, bool post_sq);
1172 int irdma_sc_cceq_create(struct irdma_sc_ceq *ceq, u64 scratch);
1175 int irdma_sc_ceq_destroy(struct irdma_sc_ceq *ceq, u64 scratch, bool post_sq);
1202 struct irdma_create_qp_info *info, u64 scratch,
1204 int irdma_sc_qp_destroy(struct irdma_sc_qp *qp, u64 scratch,
1207 struct irdma_qp_flush_info *info, u64 scratch,
1211 struct irdma_modify_qp_info *info, u64 scratch,
1221 int irdma_sc_cq_destroy(struct irdma_sc_cq *cq, u64 scratch, bool post_sq);
[all …]
H A Dctrl.c179 * @scratch: u64 saved to be used during cqp completion
184 u64 scratch, bool post_sq) in irdma_sc_add_arp_cache_entry() argument
189 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_add_arp_cache_entry()
215 * @scratch: u64 saved to be used during cqp completion
219 static int irdma_sc_del_arp_cache_entry(struct irdma_sc_cqp *cqp, u64 scratch, in irdma_sc_del_arp_cache_entry() argument
225 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_del_arp_cache_entry()
249 * @scratch: u64 saved to be used during cqp completion
254 u64 scratch, bool post_sq) in irdma_sc_manage_apbvt_entry() argument
259 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_manage_apbvt_entry()
284 * @scratch: u64 saved to be used during cqp completion
[all …]
/openbmc/linux/crypto/
H A Dscompress.c63 struct scomp_scratch *scratch; in crypto_scomp_free_scratches() local
67 scratch = per_cpu_ptr(&scomp_scratch, i); in crypto_scomp_free_scratches()
69 vfree(scratch->src); in crypto_scomp_free_scratches()
70 vfree(scratch->dst); in crypto_scomp_free_scratches()
71 scratch->src = NULL; in crypto_scomp_free_scratches()
72 scratch->dst = NULL; in crypto_scomp_free_scratches()
78 struct scomp_scratch *scratch; in crypto_scomp_alloc_scratches() local
84 scratch = per_cpu_ptr(&scomp_scratch, i); in crypto_scomp_alloc_scratches()
89 scratch->src = mem; in crypto_scomp_alloc_scratches()
93 scratch->dst = mem; in crypto_scomp_alloc_scratches()
[all …]
/openbmc/linux/lib/
H A Dkunit_iov_iter.c104 u8 *scratch, *buffer; in iov_kunit_copy_to_kvec() local
111 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_to_kvec()
113 scratch[i] = pattern(i); in iov_kunit_copy_to_kvec()
122 copied = copy_to_iter(scratch, size, &iter); in iov_kunit_copy_to_kvec()
128 /* Build the expected image in the scratch buffer. */ in iov_kunit_copy_to_kvec()
130 memset(scratch, 0, bufsize); in iov_kunit_copy_to_kvec()
133 scratch[i] = pattern(patt++); in iov_kunit_copy_to_kvec()
137 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_kvec()
138 if (buffer[i] != scratch[i]) in iov_kunit_copy_to_kvec()
154 u8 *scratch, *buffer; in iov_kunit_copy_from_kvec() local
[all …]
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-pci-o2micro.c112 u16 scratch; in sdhci_o2_enable_internal_clock() local
132 scratch = sdhci_readw(host, O2_PLL_DLL_WDT_CONTROL1); in sdhci_o2_enable_internal_clock()
133 if (scratch & O2_PLL_LOCK_STATUS) in sdhci_o2_enable_internal_clock()
321 u16 scratch = 0; in sdhci_o2_execute_tuning() local
338 scratch = sdhci_readw(host, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
339 scratch |= O2_SD_PWR_FORCE_L0; in sdhci_o2_execute_tuning()
340 sdhci_writew(host, scratch, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
420 scratch = sdhci_readw(host, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
421 scratch &= ~(O2_SD_PWR_FORCE_L0); in sdhci_o2_execute_tuning()
422 sdhci_writew(host, scratch, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dvdso_datapage.h117 .macro get_realdatapage ptr scratch
120 lwz \scratch, VDSO_CLOCKMODE_OFFSET(\ptr)
121 xoris \scratch, \scratch, VDSO_CLOCKMODE_TIMENS@h
122 xori \scratch, \scratch, VDSO_CLOCKMODE_TIMENS@l
123 cntlzw \scratch, \scratch
124 rlwinm \scratch, \scratch, PAGE_SHIFT - 5, 1 << PAGE_SHIFT
125 add \ptr, \ptr, \scratch
/openbmc/linux/drivers/scsi/aic94xx/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dmub/src/
H A Ddmub_dcn31.c87 uint32_t in_reset, scratch, i, pwait_mode; in dmub_dcn31_reset() local
111 scratch = dmub->hw_funcs.get_gpint_response(dmub); in dmub_dcn31_reset()
112 if (scratch == DMUB_GPINT__STOP_FW_RESPONSE) in dmub_dcn31_reset()
422 diag_data->scratch[0] = REG_READ(DMCUB_SCRATCH0); in dmub_dcn31_get_diagnostic_data()
423 diag_data->scratch[1] = REG_READ(DMCUB_SCRATCH1); in dmub_dcn31_get_diagnostic_data()
424 diag_data->scratch[2] = REG_READ(DMCUB_SCRATCH2); in dmub_dcn31_get_diagnostic_data()
425 diag_data->scratch[3] = REG_READ(DMCUB_SCRATCH3); in dmub_dcn31_get_diagnostic_data()
426 diag_data->scratch[4] = REG_READ(DMCUB_SCRATCH4); in dmub_dcn31_get_diagnostic_data()
427 diag_data->scratch[5] = REG_READ(DMCUB_SCRATCH5); in dmub_dcn31_get_diagnostic_data()
428 diag_data->scratch[6] = REG_READ(DMCUB_SCRATCH6); in dmub_dcn31_get_diagnostic_data()
[all …]
H A Ddmub_dcn32.c88 uint32_t in_reset, scratch, i; in dmub_dcn32_reset() local
114 scratch = dmub->hw_funcs.get_gpint_response(dmub); in dmub_dcn32_reset()
115 if (scratch == DMUB_GPINT__STOP_FW_RESPONSE) in dmub_dcn32_reset()
426 diag_data->scratch[0] = REG_READ(DMCUB_SCRATCH0); in dmub_dcn32_get_diagnostic_data()
427 diag_data->scratch[1] = REG_READ(DMCUB_SCRATCH1); in dmub_dcn32_get_diagnostic_data()
428 diag_data->scratch[2] = REG_READ(DMCUB_SCRATCH2); in dmub_dcn32_get_diagnostic_data()
429 diag_data->scratch[3] = REG_READ(DMCUB_SCRATCH3); in dmub_dcn32_get_diagnostic_data()
430 diag_data->scratch[4] = REG_READ(DMCUB_SCRATCH4); in dmub_dcn32_get_diagnostic_data()
431 diag_data->scratch[5] = REG_READ(DMCUB_SCRATCH5); in dmub_dcn32_get_diagnostic_data()
432 diag_data->scratch[6] = REG_READ(DMCUB_SCRATCH6); in dmub_dcn32_get_diagnostic_data()
[all …]
H A Ddmub_dcn20.c98 uint32_t in_reset, scratch, i; in dmub_dcn20_reset() local
124 scratch = dmub->hw_funcs.get_gpint_response(dmub); in dmub_dcn20_reset()
125 if (scratch == DMUB_GPINT__STOP_FW_RESPONSE) in dmub_dcn20_reset()
428 diag_data->scratch[0] = REG_READ(DMCUB_SCRATCH0); in dmub_dcn20_get_diagnostic_data()
429 diag_data->scratch[1] = REG_READ(DMCUB_SCRATCH1); in dmub_dcn20_get_diagnostic_data()
430 diag_data->scratch[2] = REG_READ(DMCUB_SCRATCH2); in dmub_dcn20_get_diagnostic_data()
431 diag_data->scratch[3] = REG_READ(DMCUB_SCRATCH3); in dmub_dcn20_get_diagnostic_data()
432 diag_data->scratch[4] = REG_READ(DMCUB_SCRATCH4); in dmub_dcn20_get_diagnostic_data()
433 diag_data->scratch[5] = REG_READ(DMCUB_SCRATCH5); in dmub_dcn20_get_diagnostic_data()
434 diag_data->scratch[6] = REG_READ(DMCUB_SCRATCH6); in dmub_dcn20_get_diagnostic_data()
[all …]
/openbmc/linux/arch/arc/include/asm/
H A Dirqflags-compact.h185 .macro IRQ_DISABLE scratch
186 lr \scratch, [status32]
187 bic \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
188 flag \scratch
192 .macro IRQ_ENABLE scratch
194 lr \scratch, [status32]
195 or \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
196 flag \scratch
/openbmc/openpower-hw-diags/attn/
H A Dattn_common.cpp74 /** @brief Capture some scratch registers for PRD */
82 trace::err("error getting scratch register target"); in addPrdScratchRegs()
89 // get scratch register 9 (CFAM) in addPrdScratchRegs()
92 trace::err("error reading scratch register 9"); in addPrdScratchRegs()
96 // get scratch register 10 (CFAM) in addPrdScratchRegs()
99 trace::err("error reading scratch register 10"); in addPrdScratchRegs()
106 // trace scratch register data in addPrdScratchRegs()
107 trace::inf("PRD scratch Proc0, Chip ID: %08x, Signature ID: %08x", in addPrdScratchRegs()
117 "Scratch Register Error Signature\n" in addPrdScratchRegs()
124 trace::err("error writing scratch register user data"); in addPrdScratchRegs()
[all …]
/openbmc/linux/drivers/media/platform/sunxi/sun4i-csi/
H A 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 …]
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dstart.S177 .macro create_tlb1_entry esel ts tsize epn wimg rpn perm phy_high scratch argument
178 lis \scratch, FSL_BOOKE_MAS0(1, \esel, 0)@h
179 ori \scratch, \scratch, FSL_BOOKE_MAS0(1, \esel, 0)@l
180 mtspr MAS0, \scratch
181 lis \scratch, FSL_BOOKE_MAS1(1, 1, 0, \ts, \tsize)@h
182 ori \scratch, \scratch, FSL_BOOKE_MAS1(1, 1, 0, \ts, \tsize)@l
183 mtspr MAS1, \scratch
184 lis \scratch, FSL_BOOKE_MAS2(\epn, \wimg)@h
185 ori \scratch, \scratch, FSL_BOOKE_MAS2(\epn, \wimg)@l
186 mtspr MAS2, \scratch
[all …]
/openbmc/linux/net/xfrm/
H A Dxfrm_ipcomp.c44 u8 *scratch = *this_cpu_ptr(ipcomp_scratches); in ipcomp_decompress() local
46 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress()
62 skb_copy_to_linear_data(skb, scratch, len); in ipcomp_decompress()
64 while ((scratch += len, dlen -= len) > 0) { in ipcomp_decompress()
82 memcpy(skb_frag_address(frag), scratch, len); in ipcomp_decompress()
129 u8 *scratch; in ipcomp_compress() local
133 scratch = *this_cpu_ptr(ipcomp_scratches); in ipcomp_compress()
135 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
144 memcpy(start + sizeof(struct ip_comp_hdr), scratch, dlen); in ipcomp_compress()
221 void *scratch; in ipcomp_alloc_scratches() local
[all …]
/openbmc/linux/arch/mips/include/asm/octeon/
H A 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 …]
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dzt-test.S20 // scratch buffer.
26 scratch: label
36 // scratch buffer as many times as will fit:
46 ldr x0, =scratch
63 bl pattern // Get pattern in scratch buffer
65 ldr x1, =scratch
106 ldr x0, =scratch // Poison scratch
110 ldr x0, =scratch
114 ldr x1, =scratch
/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dgen6_ppgtt.c23 dma_addr_t addr = pt ? px_dma(pt) : px_dma(ppgtt->base.vm.scratch[1]); in gen6_write_pde()
79 const gen6_pte_t scratch_pte = vm->scratch[0]->encode; in gen6_ppgtt_clear_range()
100 * entries back to scratch. in gen6_ppgtt_clear_range()
193 fill32_px(pt, vm->scratch[0]->encode); in gen6_alloc_va_range()
228 vm->scratch[0]->encode = in gen6_ppgtt_init_scratch()
229 vm->pte_encode(px_dma(vm->scratch[0]), in gen6_ppgtt_init_scratch()
234 vm->scratch[1] = vm->alloc_pt_dma(vm, I915_GTT_PAGE_SIZE_4K); in gen6_ppgtt_init_scratch()
235 if (IS_ERR(vm->scratch[1])) { in gen6_ppgtt_init_scratch()
236 ret = PTR_ERR(vm->scratch[1]); in gen6_ppgtt_init_scratch()
240 ret = map_pt_dma(vm, vm->scratch[1]); in gen6_ppgtt_init_scratch()
[all …]
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-context-info-gen3.h38 * enum iwl_prph_scratch_flags - PRPH scratch control flags
79 * @version: prph scratch information version id
101 * struct iwl_prph_scratch_pnvm_cfg - PNVM scratch
143 * struct iwl_prph_scratch_uefi_cfg - prph scratch reduce power table
154 * struct iwl_prph_scratch_step_cfg - prph scratch step configuration
168 * struct iwl_prph_scratch_ctrl_cfg - prph scratch ctrl and config
187 * struct iwl_prph_scratch - peripheral scratch mapping
188 * @ctrl_cfg: control and configuration of prph scratch
252 * @prph_scratch_base_addr: the peripheral scratch structure start address
253 * @prph_scratch_size: the size of the peripheral scratch structure in DWs
/openbmc/linux/arch/x86/include/asm/
H A 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()
80 memset(&scratch, 0, sizeof(scratch)); in sanitize_boot_params()

12345678910>>...40