| /linux/arch/arc/kernel/ |
| H A D | signal.c | 108 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 …]
|
| /linux/arch/sparc/include/asm/ |
| H A D | winmacro.h | 50 #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 D | uda.h | 40 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 …]
|
| /linux/arch/arc/include/asm/ |
| H A D | irqflags-compact.h | 185 .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/mmc/host/ |
| H A D | sdhci-pci-o2micro.c | 112 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 D | mmc_spi.c | 98 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/drivers/gpu/drm/amd/display/dc/dml2_0/ |
| H A D | dml2_dc_resource_mgmt.c | |
| H A D | dml2_wrapper_fpu.c | |
| /linux/drivers/crypto/intel/qat/qat_common/ |
| H A D | qat_comp_algs.c | 42 struct qat_zstd_scratch *scratch; in qat_zstd_alloc_scratch() local 50 scratch = kzalloc_obj(*scratch); in qat_zstd_alloc_scratch() 51 if (!scratch) in qat_zstd_alloc_scratch() 54 scratch->lz4s = kvmalloc(QAT_ZSTD_SCRATCH_SIZE, GFP_KERNEL); in qat_zstd_alloc_scratch() 55 if (!scratch->lz4s) in qat_zstd_alloc_scratch() 58 scratch->literals = kvmalloc(QAT_ZSTD_SCRATCH_SIZE, GFP_KERNEL); in qat_zstd_alloc_scratch() 59 if (!scratch->literals) in qat_zstd_alloc_scratch() 62 scratch->out_seqs = kvzalloc_objs(ZSTD_Sequence, QAT_MAX_SEQUENCES); in qat_zstd_alloc_scratch() 63 if (!scratch->out_seqs) in qat_zstd_alloc_scratch() 69 scratch->workspace = kvmalloc(cctx_size, GFP_KERNEL | __GFP_ZERO); in qat_zstd_alloc_scratch() [all …]
|
| /linux/lib/tests/ |
| H A D | kunit_iov_iter.c | 125 u8 *scratch, *buffer; in iov_kunit_copy_to_kvec() local 132 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_to_kvec() 134 scratch[i] = pattern(i); in iov_kunit_copy_to_kvec() 143 copied = copy_to_iter(scratch, size, &iter); in iov_kunit_copy_to_kvec() 151 memset(scratch, 0, bufsize); in iov_kunit_copy_to_kvec() 154 scratch[i] = pattern(patt++); in iov_kunit_copy_to_kvec() 158 KUNIT_EXPECT_EQ_MSG(test, buffer[i], scratch[i], "at i=%x", i); in iov_kunit_copy_to_kvec() 159 if (buffer[i] != scratch[i]) in iov_kunit_copy_to_kvec() 175 u8 *scratch, *buffer; in iov_kunit_copy_from_kvec() local 186 scratch = iov_kunit_create_buffer(test, &spages, npages); in iov_kunit_copy_from_kvec() [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_parent.c | 319 struct xfs_da_args *scratch) in xfs_parent_lookup() argument 321 memset(scratch, 0, sizeof(struct xfs_da_args)); in xfs_parent_lookup() 322 xfs_parent_da_args_init(scratch, tp, pptr, ip, I_INO(ip), parent_name); in xfs_parent_lookup() 323 return xfs_attr_get_ilocked(scratch); in xfs_parent_lookup() 355 struct xfs_da_args *scratch) in xfs_parent_set() argument 362 memset(scratch, 0, sizeof(struct xfs_da_args)); in xfs_parent_set() 363 xfs_parent_da_args_init(scratch, NULL, pptr, ip, owner, parent_name); in xfs_parent_set() 364 return xfs_attr_set(scratch, XFS_ATTRUPDATE_CREATE, false); in xfs_parent_set() 378 struct xfs_da_args *scratch) in xfs_parent_unset() argument 385 memset(scratch, 0, sizeof(struct xfs_da_args)); in xfs_parent_unset() [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | bootparam_utils.h | 52 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/tools/testing/selftests/powerpc/copyloops/asm/ |
| H A D | ppc_asm.h | 50 #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/usb/host/ |
| H A D | ehci-dbg.c | 373 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 >> 1 in qh_lines() 596 u32 scratch = hc32_to_cpup(ehci, &hw->hw_info1); output_buf_tds_dir() local 761 char *next, scratch[80]; fill_registers_buffer() local [all...] |
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc.c | 1181 dm_error("%s: failed to create update scratch pool\n", __func__); in dc_construct() 2251 /* Set a pipe unlock order based on the change in DET allocation and stores it in dc scratch memory in determine_pipe_unlock_order() 2268 memset(dc->scratch.pipes_to_unlock_first, 0, sizeof(dc->scratch.pipes_to_unlock_first)); in dc_commit_state_no_check() 2281 dc->scratch.pipes_to_unlock_first[i] = true; in dc_commit_state_no_check() 3667 struct dc_scratch_space *scratch, in update_seamless_boot_flags() 3677 dc_plane_copy_config(&scratch->plane_states[i], status->plane_states[i]); in update_seamless_boot_flags() 3679 scratch->stream_state = *stream; in update_seamless_boot_flags() 3683 struct dc_scratch_space *scratch, in update_seamless_boot_flags() 3693 dc_plane_copy_config(status->plane_states[i], &scratch 3617 backup_planes_and_stream_state(struct dc_scratch_space * scratch,struct dc_stream_state * stream) backup_planes_and_stream_state() argument 3633 restore_planes_and_stream_state(struct dc_scratch_space * scratch,struct dc_stream_state * stream) restore_planes_and_stream_state() argument 6200 dc_update_scratch_release(struct dc * dc,struct dc_update_scratch_space * scratch) dc_update_scratch_release() argument 6220 struct dc_update_scratch_space *scratch; dc_update_state() local 8173 update_planes_and_stream_prepare_v2(struct dc_update_scratch_space * scratch) update_planes_and_stream_prepare_v2() argument 8188 update_planes_and_stream_execute_v2(const struct dc_update_scratch_space * scratch) update_planes_and_stream_execute_v2() argument 8196 update_planes_and_stream_cleanup_v2(const struct dc_update_scratch_space * scratch) update_planes_and_stream_cleanup_v2() argument 8211 update_planes_and_stream_prepare_v3_intermediate_seamless(struct dc_update_scratch_space * scratch) update_planes_and_stream_prepare_v3_intermediate_seamless() argument 8231 update_planes_and_stream_prepare_v3(struct dc_update_scratch_space * scratch) update_planes_and_stream_prepare_v3() argument 8352 update_planes_and_stream_execute_v3_commit(const struct dc_update_scratch_space * scratch,bool intermediate_update,bool intermediate_context,bool use_stream_update) update_planes_and_stream_execute_v3_commit() argument 8371 update_planes_and_stream_execute_v3(const struct dc_update_scratch_space * scratch) update_planes_and_stream_execute_v3() argument 8410 update_planes_and_stream_cleanup_v3_release_minimal(struct dc_update_scratch_space * scratch,bool backup) update_planes_and_stream_cleanup_v3_release_minimal() argument 8423 update_planes_and_stream_cleanup_v3_intermediate(struct dc_update_scratch_space * scratch,bool backup) update_planes_and_stream_cleanup_v3_intermediate() argument 8433 update_planes_and_stream_cleanup_v3(struct dc_update_scratch_space * scratch) update_planes_and_stream_cleanup_v3() argument 8481 struct dc_update_scratch_space *scratch = dc_update_scratch_acquire(dc); dc_update_state_init() local 8526 dc_update_probes_prepare(struct dc_update_scratch_space * scratch) dc_update_probes_prepare() argument 8554 dc_update_probes_execute(const struct dc_update_scratch_space * scratch) dc_update_probes_execute() argument 8565 dc_update_state_prepare(struct dc_update_scratch_space * scratch) dc_update_state_prepare() argument 8588 dc_update_state_execute(const struct dc_update_scratch_space * scratch) dc_update_state_execute() argument 8601 dc_update_state_cleanup(struct dc_update_scratch_space * scratch) dc_update_state_cleanup() argument [all...] |
| /linux/arch/alpha/kernel/ |
| H A D | err_marvel.c | 153 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 D | tlbex.c | 1056 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 D | nft_set_pipapo.c | 424 struct nft_pipapo_scratch *scratch; in pipapo_get_slow() local 431 scratch = *raw_cpu_ptr(m->scratch); in pipapo_get_slow() 432 if (unlikely(!scratch)) in pipapo_get_slow() 434 __local_lock_nested_bh(&scratch->bh_lock); in pipapo_get_slow() 436 map_index = scratch->map_index; in pipapo_get_slow() 438 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 in pipapo_get_slow() 1219 struct nft_pipapo_scratch *scratch; global() local [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | disasm_helpers.c | 7 char scratch[16]; member 31 snprintf(ctx->scratch, sizeof(ctx->scratch), "%+d", insn->off); in print_call_cb() 32 return ctx->scratch; in print_call_cb()
|
| /linux/drivers/mtd/devices/ |
| H A D | mtd_dataflash.c | 461 u8 *scratch; in otp_read() local 474 scratch = kzalloc(l, GFP_KERNEL); in otp_read() 475 if (!scratch) in otp_read() 481 scratch[0] = OP_READ_SECURITY; in otp_read() 484 t.tx_buf = scratch; in otp_read() 485 t.rx_buf = scratch; in otp_read() 493 memcpy(buf, scratch + 4 + base + off, len); in otp_read() 497 kfree(scratch); in otp_read() 540 u8 *scratch; in dataflash_write_user_otp() local 561 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp() [all …]
|
| /linux/tools/testing/selftests/filesystems/ |
| H A D | kernfs_test.c | 193 char scratch[PATH_MAX]; /* <cg2>/kernfs_selftest.<pid> */ in FIXTURE() local 224 rmdir(self->scratch); in kernfs_cgroup_undo() 273 snprintf(self->scratch, sizeof(self->scratch), "%s/%s.%d", root, in FIXTURE_SETUP() 275 snprintf(self->child, sizeof(self->child), "%s/child", self->scratch); in FIXTURE_SETUP() 277 "%s/cgroup.subtree_control", self->scratch); in FIXTURE_SETUP() 316 if (mkdir(self->scratch, 0755)) { in FIXTURE_SETUP() 321 SKIP(return, "mkdir %s: %s", self->scratch, in FIXTURE_SETUP() 323 ASSERT_EQ(err, 0) TH_LOG("mkdir %s: %s", self->scratch, in FIXTURE_SETUP() 507 snprintf(path, sizeof(path), "%s/e%02d", self->scratch, i); in TEST_F() 512 d = opendir(self->scratch); in TEST_F() [all …]
|
| /linux/drivers/pnp/pnpbios/ |
| H A D | core.c | 89 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()
|
| /linux/drivers/gpu/drm/i915/gt/ |
| H A D | selftest_mocs.c | 20 struct i915_vma *scratch; member 79 arg->scratch = in live_mocs_init() 81 if (IS_ERR(arg->scratch)) in live_mocs_init() 82 return PTR_ERR(arg->scratch); in live_mocs_init() 84 arg->vaddr = i915_gem_object_pin_map_unlocked(arg->scratch->obj, I915_MAP_WB); in live_mocs_init() 93 i915_vma_unpin_and_release(&arg->scratch, 0); in live_mocs_init() 99 i915_vma_unpin_and_release(&arg->scratch, I915_VMA_RELEASE_MAP); in live_mocs_fini() 220 struct i915_vma *vma = arg->scratch; in check_mocs_engine()
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | za-fork-asm.S | 16 scratch: label 26 ldr x0, =scratch 47 ldr x0, =scratch
|
| /linux/fs/nfs/filelayout/ |
| H A D | filelayoutdev.c | 76 struct folio *scratch; in nfs4_fl_alloc_deviceid_node() local 82 scratch = folio_alloc(gfp_flags, 0); in nfs4_fl_alloc_deviceid_node() 83 if (!scratch) in nfs4_fl_alloc_deviceid_node() 87 xdr_set_scratch_folio(&stream, scratch); in nfs4_fl_alloc_deviceid_node() 183 folio_put(scratch); in nfs4_fl_alloc_deviceid_node() 195 folio_put(scratch); in nfs4_fl_alloc_deviceid_node()
|