Home
last modified time | relevance | path

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

12345678910>>...13

/linux/arch/arc/kernel/
H A Dsignal.c108 uregs.scratch.bta = regs->bta; in stash_usr_regs()
109 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs()
110 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs()
111 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs()
112 uregs.scratch.status32 = regs->status32; in stash_usr_regs()
113 uregs.scratch.ret = regs->ret; in stash_usr_regs()
114 uregs.scratch.blink = regs->blink; in stash_usr_regs()
115 uregs.scratch.fp = regs->fp; in stash_usr_regs()
116 uregs.scratch.gp = regs->r26; in stash_usr_regs()
117 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 …]
/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 …]
/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.h421 u64 scratch; member
825 u64 scratch; member
1335 int irdma_sc_ccq_create(struct irdma_sc_cq *ccq, u64 scratch,
1337 int irdma_sc_ccq_destroy(struct irdma_sc_cq *ccq, u64 scratch, bool post_sq);
1343 int irdma_sc_cceq_create(struct irdma_sc_ceq *ceq, u64 scratch);
1346 int irdma_sc_ceq_destroy(struct irdma_sc_ceq *ceq, u64 scratch, bool post_sq);
1366 bool first, u64 *scratch,
1379 struct irdma_create_qp_info *info, u64 scratch,
1381 int irdma_sc_qp_destroy(struct irdma_sc_qp *qp, u64 scratch,
1384 struct irdma_qp_flush_info *info, u64 scratch,
[all …]
H A Dctrl.c192 u64 scratch, bool post_sq) in irdma_sc_add_arp_cache_entry() argument
197 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_add_arp_cache_entry()
227 static int irdma_sc_del_arp_cache_entry(struct irdma_sc_cqp *cqp, u64 scratch, in irdma_sc_del_arp_cache_entry() argument
233 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_del_arp_cache_entry()
262 u64 scratch, bool post_sq) in irdma_sc_manage_apbvt_entry() argument
267 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_manage_apbvt_entry()
310 u64 scratch, bool post_sq) in irdma_sc_manage_qhash_table_entry() argument
318 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_manage_qhash_table_entry()
496 static int irdma_sc_srq_create(struct irdma_sc_srq *srq, u64 scratch, in irdma_sc_srq_create() argument
509 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_srq_create()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/
H A Ddml2_pmo_dcn3.c125 if (pmo->scratch.pmo_dcn3.current_candidate[0] > 0) { in iterate_to_next_candidiate()
126 pmo->scratch.pmo_dcn3.current_candidate[0]--; in iterate_to_next_candidiate()
129 …for (borrow_from = 1; borrow_from < size && pmo->scratch.pmo_dcn3.current_candidate[borrow_from] =… in iterate_to_next_candidiate()
133 pmo->scratch.pmo_dcn3.current_candidate[borrow_from]--; in iterate_to_next_candidiate()
135 …pmo->scratch.pmo_dcn3.current_candidate[i] = pmo->scratch.pmo_dcn3.reserved_time_candidates_count[… in iterate_to_next_candidiate()
538 …pmo->scratch.pmo_dcn3.min_latency_index = in_out->base_display_config->stage1.min_clk_index_for_la… in pmo_dcn3_init_for_pstate_support()
539 pmo->scratch.pmo_dcn3.max_latency_index = pmo->mcg_clock_table_size - 1; in pmo_dcn3_init_for_pstate_support()
540 …pmo->scratch.pmo_dcn3.cur_latency_index = in_out->base_display_config->stage1.min_clk_index_for_la… in pmo_dcn3_init_for_pstate_support()
542 pmo->scratch.pmo_dcn3.stream_mask = 0xF; in pmo_dcn3_init_for_pstate_support()
565 pmo->scratch.pmo_dcn3.stream_mask &= ~(0x1 << plane_descriptor->stream_index); in pmo_dcn3_init_for_pstate_support()
[all …]
H A Ddml2_pmo_dcn4_fams2.c966 struct dml2_pmo_scratch *s = &pmo->scratch; in build_synchronized_timing_groups()
1003 … set_bit_in_bitfield(&pmo->scratch.pmo_dcn4.synchronized_timing_group_masks[timing_group_idx], j); in build_synchronized_timing_groups()
1023 valid &= is_bit_set_in_bitfield(pmo->scratch.pmo_dcn4.stream_vactive_capability_mask, i); in all_timings_support_vactive()
1041 if (mask != pmo->scratch.pmo_dcn4.synchronized_timing_group_masks[i]) { in all_timings_support_vblank()
1072 stream_pstate_meta = &pmo->scratch.pmo_dcn4.stream_pstate_meta[i]; in all_timings_support_drr()
1150 stream_pstate_meta = &pmo->scratch.pmo_dcn4.stream_pstate_meta[i]; in all_timings_support_svp()
1156 microschedule_vlines = calc_svp_microschedule(&pmo->scratch.pmo_dcn4.stream_pstate_meta[i]); in all_timings_support_svp()
1177 …ruct dml2_pmo_pstate_strategy *pstate_strategy, int stream_count, struct dml2_pmo_scratch *scratch) in insert_into_candidate_list() argument
1179scratch->pmo_dcn4.pstate_strategy_candidates[scratch->pmo_dcn4.num_pstate_candidates] = *pstate_st… in insert_into_candidate_list()
1180 scratch->pmo_dcn4.num_pstate_candidates++; in insert_into_candidate_list()
[all …]
/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 …]
H A Dmmc_spi.c98 struct scratch { struct
122 struct scratch *data; argument
402 struct scratch *data = host->data; in mmc_spi_command_send()
512 struct scratch *scratch = host->data; in mmc_spi_setup_data_message() local
524 scratch->data_token = SPI_TOKEN_MULTI_WRITE; in mmc_spi_setup_data_message()
526 scratch->data_token = SPI_TOKEN_SINGLE; in mmc_spi_setup_data_message()
527 t->tx_buf = &scratch->data_token; in mmc_spi_setup_data_message()
545 t->tx_buf = &scratch->crc_val; in mmc_spi_setup_data_message()
548 t->rx_buf = &scratch->crc_val; in mmc_spi_setup_data_message()
569 t->len = sizeof(scratch->status); in mmc_spi_setup_data_message()
[all …]
/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
/linux/drivers/gpu/drm/amd/display/dc/dml2_0/
H A Ddml2_dc_resource_mgmt.c62 bool is_plane_duplicate = dml2->v20.scratch.plane_duplicate_exists; in get_plane_id()
132 …ctx->v20.scratch.dml_to_dc_pipe_mapping.dml_pipe_idx_to_plane_index[state->res_ctx.pipe_ctx[i].pip… in find_master_pipe_of_plane()
155 ctx->v20.scratch.dml_to_dc_pipe_mapping.dml_pipe_idx_to_plane_index[pipe->pipe_idx], in find_pipes_assigned_to_plane()
535 struct dc_pipe_mapping_scratch *scratch, in add_odm_slice_to_odm_tree() argument
543 …ASSERT(scratch->pipe_pool.num_pipes_assigned_to_plane_for_mpcc_combine == 1 || scratch->pipe_pool.… in add_odm_slice_to_odm_tree()
545 for (i = 0; i < scratch->pipe_pool.num_pipes_assigned_to_plane_for_mpcc_combine; i++) { in add_odm_slice_to_odm_tree()
546 pipe = &state->res_ctx.pipe_ctx[scratch->pipe_pool.pipes_assigned_to_plane[odm_slice_index][i]]; in add_odm_slice_to_odm_tree()
548 if (scratch->mpc_info.prev_odm_pipe) in add_odm_slice_to_odm_tree()
549 scratch->mpc_info.prev_odm_pipe->next_odm_pipe = pipe; in add_odm_slice_to_odm_tree()
551 pipe->prev_odm_pipe = scratch->mpc_info.prev_odm_pipe; in add_odm_slice_to_odm_tree()
[all …]
/linux/lib/tests/
H A Dkunit_iov_iter.c105 u8 *scratch, *buffer; in iov_kunit_copy_to_kvec() local
112 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_to_kvec()
114 scratch[i] = pattern(i); in iov_kunit_copy_to_kvec()
123 copied = copy_to_iter(scratch, size, &iter); in iov_kunit_copy_to_kvec()
131 memset(scratch, 0, bufsize); in iov_kunit_copy_to_kvec()
134 scratch[i] = pattern(patt++); in iov_kunit_copy_to_kvec()
138 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_kvec()
139 if (buffer[i] != scratch[i]) in iov_kunit_copy_to_kvec()
155 u8 *scratch, *buffer; in iov_kunit_copy_from_kvec() local
166 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_from_kvec()
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_parent.c312 struct xfs_da_args *scratch) in xfs_parent_lookup() argument
314 memset(scratch, 0, sizeof(struct xfs_da_args)); in xfs_parent_lookup()
315 xfs_parent_da_args_init(scratch, tp, pptr, ip, ip->i_ino, parent_name); in xfs_parent_lookup()
316 return xfs_attr_get_ilocked(scratch); in xfs_parent_lookup()
348 struct xfs_da_args *scratch) in xfs_parent_set() argument
355 memset(scratch, 0, sizeof(struct xfs_da_args)); in xfs_parent_set()
356 xfs_parent_da_args_init(scratch, NULL, pptr, ip, owner, parent_name); in xfs_parent_set()
357 return xfs_attr_set(scratch, XFS_ATTRUPDATE_CREATE, false); in xfs_parent_set()
371 struct xfs_da_args *scratch) in xfs_parent_unset() argument
378 memset(scratch, 0, sizeof(struct xfs_da_args)); in xfs_parent_unset()
[all …]
/linux/arch/riscv/kernel/
H A Dmodule-sections.c121 Elf_Rela *scratch = NULL; in module_frob_arch_sections() local
169 scratch_size_needed = (num_scratch_relas + num_relas) * sizeof(*scratch); in module_frob_arch_sections()
172 new_scratch = kvrealloc(scratch, scratch_size, GFP_KERNEL); in module_frob_arch_sections()
174 kvfree(scratch); in module_frob_arch_sections()
177 scratch = new_scratch; in module_frob_arch_sections()
182 scratch[num_scratch_relas++] = relas[j]; in module_frob_arch_sections()
185 if (scratch) { in module_frob_arch_sections()
187 sort(scratch, num_scratch_relas, sizeof(*scratch), cmp_rela, NULL); in module_frob_arch_sections()
188 count_max_entries(scratch, num_scratch_relas, &num_plts, &num_gots); in module_frob_arch_sections()
189 kvfree(scratch); in module_frob_arch_sections()
/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()
/linux/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 …]
/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()
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 …]
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc.c2095 memset(dc->scratch.pipes_to_unlock_first, 0, sizeof(dc->scratch.pipes_to_unlock_first)); in determine_pipe_unlock_order()
2108 dc->scratch.pipes_to_unlock_first[i] = true; in determine_pipe_unlock_order()
3377 struct dc_scratch_space *scratch, in backup_planes_and_stream_state() argument
3387 dc_plane_copy_config(&scratch->plane_states[i], status->plane_states[i]); in backup_planes_and_stream_state()
3389 scratch->stream_state = *stream; in backup_planes_and_stream_state()
3393 struct dc_scratch_space *scratch, in restore_planes_and_stream_state() argument
3403 dc_plane_copy_config(status->plane_states[i], &scratch->plane_states[i]); in restore_planes_and_stream_state()
3408 *stream = scratch->stream_state; in restore_planes_and_stream_state()
3553 backup_planes_and_stream_state(&dc->scratch.current_state, stream); in update_planes_and_stream_state()
3677 backup_planes_and_stream_state(&dc->scratch.new_state, stream); in update_planes_and_stream_state()
[all …]
/linux/tools/testing/selftests/powerpc/copyloops/asm/
H A Dppc_asm.h50 #define DCBT_SETUP_STREAMS(from, from_parms, to, to_parms, scratch) \ argument
51 lis scratch,0x8000; /* GO=1 */ \
52 clrldi scratch,scratch,32; \
60 dcbt 0,scratch,0b01010; /* all streams GO */
/linux/drivers/gpu/drm/i915/gt/
H A Dselftest_workarounds.c503 struct i915_vma *scratch; in check_dirty_whitelist() local
509 scratch = __vm_create_scratch_for_read_pinned(ce->vm, sz); in check_dirty_whitelist()
510 if (IS_ERR(scratch)) in check_dirty_whitelist()
511 return PTR_ERR(scratch); in check_dirty_whitelist()
522 u64 addr = i915_vma_offset(scratch); in check_dirty_whitelist()
540 err = i915_gem_object_lock(scratch->obj, &ww); in check_dirty_whitelist()
554 results = i915_gem_object_pin_map(scratch->obj, I915_MAP_WB); in check_dirty_whitelist()
604 GEM_BUG_ON(idx * sizeof(u32) > scratch->size); in check_dirty_whitelist()
635 err = i915_vma_move_to_active(scratch, rq, in check_dirty_whitelist()
730 i915_gem_object_unpin_map(scratch->obj); in check_dirty_whitelist()
[all …]
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()
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()
244 fill32_px(vm->scratch[1], vm->scratch[0]->encode); in gen6_ppgtt_init_scratch()
[all …]
/linux/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 …]
/linux/arch/mips/mm/
H A Dtlbex.c1056 const int scratch = 1; /* Our extra working register */ in build_fast_tlb_refill_handler() local
1058 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
1071 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1073 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1075 uasm_i_dsrl_safe(p, scratch, tmp, in build_fast_tlb_refill_handler()
1077 uasm_il_bnez(p, r, scratch, label_vmalloc); in build_fast_tlb_refill_handler()
1093 UASM_i_MTC0(p, scratch, c0_kscratch(), c0_scratch_reg); in build_fast_tlb_refill_handler()
1095 UASM_i_SW(p, scratch, scratchpad_offset(0), 0); in build_fast_tlb_refill_handler()
1113 #define LOC_PTEP scratch in build_fast_tlb_refill_handler()
1120 uasm_i_dsrl_safe(p, scratch, tmp, PGDIR_SHIFT - 3); in build_fast_tlb_refill_handler()
[all …]
/linux/net/netfilter/
H A Dnft_set_pipapo.c422 struct nft_pipapo_scratch *scratch; in pipapo_get_slow() local
429 scratch = *raw_cpu_ptr(m->scratch); in pipapo_get_slow()
430 if (unlikely(!scratch)) in pipapo_get_slow()
432 __local_lock_nested_bh(&scratch->bh_lock); in pipapo_get_slow()
434 map_index = scratch->map_index; in pipapo_get_slow()
436 map = NFT_PIPAPO_LT_ALIGN(&scratch->__map[0]); in pipapo_get_slow()
468 scratch->map_index = map_index; in pipapo_get_slow()
469 __local_unlock_nested_bh(&scratch->bh_lock); in pipapo_get_slow()
488 scratch->map_index = map_index; in pipapo_get_slow()
489 __local_unlock_nested_bh(&scratch->bh_lock); in pipapo_get_slow()
[all …]

12345678910>>...13