Home
last modified time | relevance | path

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

12345678910>>...15

/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Daes_xts.c14 union { u64 u[2]; u32 d[4]; u8 c[16]; } tweak, scratch; in aes_xts128_encrypt() local
28 memcpy(scratch.c, inp, 16); in aes_xts128_encrypt()
29 scratch.u[0] ^= tweak.u[0]; in aes_xts128_encrypt()
30 scratch.u[1] ^= tweak.u[1]; in aes_xts128_encrypt()
33 rk_aes_encrypt(scratch.c, scratch.c, key1); in aes_xts128_encrypt()
35 rk_aes_decrypt(scratch.c, scratch.c, key1); in aes_xts128_encrypt()
37 scratch.u[0] ^= tweak.u[0]; in aes_xts128_encrypt()
38 scratch.u[1] ^= tweak.u[1]; in aes_xts128_encrypt()
39 memcpy(out, scratch.c, 16); in aes_xts128_encrypt()
71 out[i] = scratch.c[i]; in aes_xts128_encrypt()
[all …]
H A Dsm4_xts.c13 union { u64 u[2]; u32 d[4]; u8 c[16]; } tweak, scratch; in aes_xts128_encrypt() local
27 memcpy(scratch.c, inp, 16); in aes_xts128_encrypt()
28 scratch.u[0] ^= tweak.u[0]; in aes_xts128_encrypt()
29 scratch.u[1] ^= tweak.u[1]; in aes_xts128_encrypt()
32 rk_sm4_crypt_ecb(ctx1, (const unsigned char*)scratch.c, scratch.c); in aes_xts128_encrypt()
34 rk_sm4_crypt_ecb(ctx1, (const unsigned char*)scratch.c, scratch.c); in aes_xts128_encrypt()
36 scratch.u[0] ^= tweak.u[0]; in aes_xts128_encrypt()
37 scratch.u[1] ^= tweak.u[1]; in aes_xts128_encrypt()
38 memcpy(out, scratch.c, 16); in aes_xts128_encrypt()
70 out[i] = scratch.c[i]; in aes_xts128_encrypt()
[all …]
H A Daes_ccm.c150 union { u64 u[2]; u8 c[16]; } scratch; in rk_crypto_ccm128_encrypt() local
184 (*block)(ctx->nonce.c,scratch.c,key); in rk_crypto_ccm128_encrypt()
187 temp.u[0] ^= scratch.u[0]; in rk_crypto_ccm128_encrypt()
188 temp.u[1] ^= scratch.u[1]; in rk_crypto_ccm128_encrypt()
191 ((u64*)out)[0] = scratch.u[0]^((u64*)inp)[0]; in rk_crypto_ccm128_encrypt()
192 ((u64*)out)[1] = scratch.u[1]^((u64*)inp)[1]; in rk_crypto_ccm128_encrypt()
202 (*block)(ctx->nonce.c,scratch.c,key); in rk_crypto_ccm128_encrypt()
203 for (i=0; i<len; ++i) out[i] = scratch.c[i]^inp[i]; in rk_crypto_ccm128_encrypt()
209 (*block)(ctx->nonce.c,scratch.c,key); in rk_crypto_ccm128_encrypt()
210 ctx->cmac.u[0] ^= scratch.u[0]; in rk_crypto_ccm128_encrypt()
[all …]
H A Dsm4_ccm.c146 union { u64 u[2]; u8 c[16]; } scratch; in rk_crypto_ccm128_encrypt() local
180 (*block)(ctx->nonce.c,scratch.c,key); in rk_crypto_ccm128_encrypt()
183 temp.u[0] ^= scratch.u[0]; in rk_crypto_ccm128_encrypt()
184 temp.u[1] ^= scratch.u[1]; in rk_crypto_ccm128_encrypt()
187 ((u64*)out)[0] = scratch.u[0]^((u64*)inp)[0]; in rk_crypto_ccm128_encrypt()
188 ((u64*)out)[1] = scratch.u[1]^((u64*)inp)[1]; in rk_crypto_ccm128_encrypt()
198 (*block)(ctx->nonce.c,scratch.c,key); in rk_crypto_ccm128_encrypt()
199 for (i=0; i<len; ++i) out[i] = scratch.c[i]^inp[i]; in rk_crypto_ccm128_encrypt()
205 (*block)(ctx->nonce.c,scratch.c,key); in rk_crypto_ccm128_encrypt()
206 ctx->cmac.u[0] ^= scratch.u[0]; in rk_crypto_ccm128_encrypt()
[all …]
/OK3568_Linux_fs/kernel/arch/arc/kernel/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/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 …]
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Dsdhci-pci-o2micro.c102 u16 scratch; in sdhci_o2_enable_internal_clock() local
122 scratch = sdhci_readw(host, O2_PLL_DLL_WDT_CONTROL1); in sdhci_o2_enable_internal_clock()
123 if (scratch & O2_PLL_LOCK_STATUS) in sdhci_o2_enable_internal_clock()
309 u16 scratch = 0; in sdhci_o2_execute_tuning() local
324 scratch = sdhci_readw(host, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
325 scratch |= O2_SD_PWR_FORCE_L0; in sdhci_o2_execute_tuning()
326 sdhci_writew(host, scratch, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
366 scratch = sdhci_readw(host, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
367 scratch &= ~(O2_SD_PWR_FORCE_L0); in sdhci_o2_execute_tuning()
368 sdhci_writew(host, scratch, O2_SD_MISC_CTRL); in sdhci_o2_execute_tuning()
[all …]
H A 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 …]
/OK3568_Linux_fs/kernel/crypto/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/arc/include/asm/
H A 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
/OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dstart.S178 .macro create_tlb1_entry esel ts tsize epn wimg rpn perm phy_high scratch argument
179 lis \scratch, FSL_BOOKE_MAS0(1, \esel, 0)@h
180 ori \scratch, \scratch, FSL_BOOKE_MAS0(1, \esel, 0)@l
181 mtspr MAS0, \scratch
182 lis \scratch, FSL_BOOKE_MAS1(1, 1, 0, \ts, \tsize)@h
183 ori \scratch, \scratch, FSL_BOOKE_MAS1(1, 1, 0, \ts, \tsize)@l
184 mtspr MAS1, \scratch
185 lis \scratch, FSL_BOOKE_MAS2(\epn, \wimg)@h
186 ori \scratch, \scratch, FSL_BOOKE_MAS2(\epn, \wimg)@l
187 mtspr MAS2, \scratch
[all …]
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/i40iw/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/net/xfrm/
H A 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()
233 void *scratch; in ipcomp_alloc_scratches() local
[all …]
/OK3568_Linux_fs/kernel/drivers/block/paride/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gt/
H A 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 …]
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/media/platform/sunxi/sun4i-csi/
H A 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 …]
/OK3568_Linux_fs/kernel/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()
79 memset(&scratch, 0, sizeof(scratch)); in sanitize_boot_params()
/OK3568_Linux_fs/external/xserver/randr/
H A Drrxinerama.c256 xXineramaScreenInfo scratch; in RRXineramaWriteMonitor() local
258 scratch.x_org = monitor->geometry.box.x1; in RRXineramaWriteMonitor()
259 scratch.y_org = monitor->geometry.box.y1; in RRXineramaWriteMonitor()
260 scratch.width = monitor->geometry.box.x2 - monitor->geometry.box.x1; in RRXineramaWriteMonitor()
261 scratch.height = monitor->geometry.box.y2 - monitor->geometry.box.y1; in RRXineramaWriteMonitor()
264 swaps(&scratch.x_org); in RRXineramaWriteMonitor()
265 swaps(&scratch.y_org); in RRXineramaWriteMonitor()
266 swaps(&scratch.width); in RRXineramaWriteMonitor()
267 swaps(&scratch.height); in RRXineramaWriteMonitor()
270 WriteToClient(client, sz_XineramaScreenInfo, &scratch); in RRXineramaWriteMonitor()
/OK3568_Linux_fs/kernel/arch/alpha/kernel/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/selftests/
H A 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()
/OK3568_Linux_fs/kernel/arch/mips/mm/
H A 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 …]

12345678910>>...15