Home
last modified time | relevance | path

Searched refs:scratch (Results 1 – 200 of 208) sorted by relevance

12

/linux-4.4.14/arch/arc/kernel/
Dsignal.c72 uregs.scratch.bta = regs->bta; in stash_usr_regs()
73 uregs.scratch.lp_start = regs->lp_start; in stash_usr_regs()
74 uregs.scratch.lp_end = regs->lp_end; in stash_usr_regs()
75 uregs.scratch.lp_count = regs->lp_count; in stash_usr_regs()
76 uregs.scratch.status32 = regs->status32; in stash_usr_regs()
77 uregs.scratch.ret = regs->ret; in stash_usr_regs()
78 uregs.scratch.blink = regs->blink; in stash_usr_regs()
79 uregs.scratch.fp = regs->fp; in stash_usr_regs()
80 uregs.scratch.gp = regs->r26; in stash_usr_regs()
81 uregs.scratch.r12 = regs->r12; in stash_usr_regs()
[all …]
Dptrace.c50 REG_O_ONE(scratch.bta, &ptregs->bta); in genregs_get()
51 REG_O_ONE(scratch.lp_start, &ptregs->lp_start); in genregs_get()
52 REG_O_ONE(scratch.lp_end, &ptregs->lp_end); in genregs_get()
53 REG_O_ONE(scratch.lp_count, &ptregs->lp_count); in genregs_get()
54 REG_O_ONE(scratch.status32, &ptregs->status32); in genregs_get()
55 REG_O_ONE(scratch.ret, &ptregs->ret); in genregs_get()
56 REG_O_ONE(scratch.blink, &ptregs->blink); in genregs_get()
57 REG_O_ONE(scratch.fp, &ptregs->fp); in genregs_get()
58 REG_O_ONE(scratch.gp, &ptregs->r26); in genregs_get()
59 REG_O_ONE(scratch.r12, &ptregs->r12); in genregs_get()
[all …]
Dentry.S183 ; clobbered them (since they are in scratch regs). The tracer could also
Dentry-compact.S251 ; can clobber scratch regs, hence use of stack to stash it
/linux-4.4.14/arch/sparc/include/asm/
Dwinmacro.h49 #define LOAD_PT_YREG(base_reg, scratch) \ argument
50 ld [%base_reg + STACKFRAME_SZ + PT_Y], %scratch; \
51 wr %scratch, 0x0, %y;
58 #define LOAD_PT_ALL(base_reg, pt_psr, pt_pc, pt_npc, scratch) \ argument
59 LOAD_PT_YREG(base_reg, scratch) \
76 #define STORE_PT_YREG(base_reg, scratch) \ argument
77 rd %y, %scratch; \
78 st %scratch, [%base_reg + STACKFRAME_SZ + PT_Y];
91 #define SAVE_BOLIXED_USER_STACK(cur_reg, scratch) \ argument
92 ld [%cur_reg + TI_W_SAVED], %scratch; \
[all …]
/linux-4.4.14/drivers/mmc/host/
Dsdhci-pci-o2micro.c185 u8 scratch; in sdhci_pci_o2_probe() local
195 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
198 scratch &= 0x7f; in sdhci_pci_o2_probe()
199 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
206 O2_SD_CLKREQ, &scratch); in sdhci_pci_o2_probe()
209 scratch |= 0x20; in sdhci_pci_o2_probe()
210 pci_write_config_byte(chip->pdev, O2_SD_CLKREQ, scratch); in sdhci_pci_o2_probe()
215 ret = pci_read_config_byte(chip->pdev, O2_SD_CAPS, &scratch); in sdhci_pci_o2_probe()
218 scratch |= 0x01; in sdhci_pci_o2_probe()
219 pci_write_config_byte(chip->pdev, O2_SD_CAPS, scratch); in sdhci_pci_o2_probe()
[all …]
Dmmc_spi.c119 struct scratch { struct
146 struct scratch *data;
449 struct scratch *data = host->data; in mmc_spi_command_send()
577 struct scratch *scratch = host->data; in mmc_spi_setup_data_message() local
592 scratch->data_token = SPI_TOKEN_MULTI_WRITE; in mmc_spi_setup_data_message()
594 scratch->data_token = SPI_TOKEN_SINGLE; in mmc_spi_setup_data_message()
595 t->tx_buf = &scratch->data_token; in mmc_spi_setup_data_message()
597 t->tx_dma = dma + offsetof(struct scratch, data_token); in mmc_spi_setup_data_message()
616 t->tx_buf = &scratch->crc_val; in mmc_spi_setup_data_message()
618 t->tx_dma = dma + offsetof(struct scratch, crc_val); in mmc_spi_setup_data_message()
[all …]
Dsdhci-spear.c148 u32 scratch; in sdhci_remove() local
150 scratch = readl(host->ioaddr + SDHCI_INT_STATUS); in sdhci_remove()
151 if (scratch == (u32)-1) in sdhci_remove()
Dsdhci-pci-core.c460 u8 scratch; in jmicron_pmos() local
463 ret = pci_read_config_byte(chip->pdev, 0xAE, &scratch); in jmicron_pmos()
472 scratch |= 0x47; in jmicron_pmos()
474 scratch &= ~0x47; in jmicron_pmos()
476 return pci_write_config_byte(chip->pdev, 0xAE, scratch); in jmicron_pmos()
549 u8 scratch; in jmicron_enable_mmc() local
551 scratch = readb(host->ioaddr + 0xC0); in jmicron_enable_mmc()
554 scratch |= 0x01; in jmicron_enable_mmc()
556 scratch &= ~0x01; in jmicron_enable_mmc()
558 writeb(scratch, host->ioaddr + 0xC0); in jmicron_enable_mmc()
[all …]
Dsdhci.c306 u32 uninitialized_var(scratch); in sdhci_read_block_pio()
328 scratch = sdhci_readl(host, SDHCI_BUFFER); in sdhci_read_block_pio()
332 *buf = scratch & 0xFF; in sdhci_read_block_pio()
335 scratch >>= 8; in sdhci_read_block_pio()
350 u32 scratch; in sdhci_write_block_pio() local
357 scratch = 0; in sdhci_write_block_pio()
372 scratch |= (u32)*buf << (chunk * 8); in sdhci_write_block_pio()
379 sdhci_writel(host, scratch, SDHCI_BUFFER); in sdhci_write_block_pio()
381 scratch = 0; in sdhci_write_block_pio()
/linux-4.4.14/arch/arc/include/asm/
Dirqflags-compact.h183 .macro IRQ_DISABLE scratch
184 lr \scratch, [status32]
185 bic \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
186 flag \scratch
190 .macro IRQ_ENABLE scratch
191 lr \scratch, [status32]
192 or \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
193 flag \scratch
Dirqflags-arcv2.h128 .macro IRQ_DISABLE scratch
132 .macro IRQ_ENABLE scratch
/linux-4.4.14/arch/blackfin/include/asm/
Dblackfin.h65 #define SSYNC(scratch) \ argument
66 cli scratch; \
69 sti scratch;
71 #define CSYNC(scratch) \ argument
72 cli scratch; \
75 sti scratch;
78 #define SSYNC(scratch) SSYNC; argument
79 #define CSYNC(scratch) CSYNC; argument
Dcontext.S390 .macro pseudo_long_call func:req, scratch:req
392 \scratch\().l = \func;
393 \scratch\().h = \func;
394 call (\scratch);
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gfx.c44 for (i = 0; i < adev->gfx.scratch.num_reg; i++) { in amdgpu_gfx_scratch_get()
45 if (adev->gfx.scratch.free[i]) { in amdgpu_gfx_scratch_get()
46 adev->gfx.scratch.free[i] = false; in amdgpu_gfx_scratch_get()
47 *reg = adev->gfx.scratch.reg[i]; in amdgpu_gfx_scratch_get()
66 for (i = 0; i < adev->gfx.scratch.num_reg; i++) { in amdgpu_gfx_scratch_free()
67 if (adev->gfx.scratch.reg[i] == reg) { in amdgpu_gfx_scratch_free()
68 adev->gfx.scratch.free[i] = true; in amdgpu_gfx_scratch_free()
Datom.h140 uint32_t *scratch; member
Datombios_i2c.c53 base = (unsigned char *)adev->mode_info.atom_context->scratch; in amdgpu_atombios_i2c_process_i2c_ch()
Dgfx_v8_0.c612 adev->gfx.scratch.num_reg = 7; in gfx_v8_0_scratch_init()
613 adev->gfx.scratch.reg_base = mmSCRATCH_REG0; in gfx_v8_0_scratch_init()
614 for (i = 0; i < adev->gfx.scratch.num_reg; i++) { in gfx_v8_0_scratch_init()
615 adev->gfx.scratch.free[i] = true; in gfx_v8_0_scratch_init()
616 adev->gfx.scratch.reg[i] = adev->gfx.scratch.reg_base + i; in gfx_v8_0_scratch_init()
623 uint32_t scratch; in gfx_v8_0_ring_test_ring() local
628 r = amdgpu_gfx_scratch_get(adev, &scratch); in gfx_v8_0_ring_test_ring()
633 WREG32(scratch, 0xCAFEDEAD); in gfx_v8_0_ring_test_ring()
638 amdgpu_gfx_scratch_free(adev, scratch); in gfx_v8_0_ring_test_ring()
642 amdgpu_ring_write(ring, (scratch - PACKET3_SET_UCONFIG_REG_START)); in gfx_v8_0_ring_test_ring()
[all …]
Dgfx_v7_0.c2349 adev->gfx.scratch.num_reg = 7; in gfx_v7_0_scratch_init()
2350 adev->gfx.scratch.reg_base = mmSCRATCH_REG0; in gfx_v7_0_scratch_init()
2351 for (i = 0; i < adev->gfx.scratch.num_reg; i++) { in gfx_v7_0_scratch_init()
2352 adev->gfx.scratch.free[i] = true; in gfx_v7_0_scratch_init()
2353 adev->gfx.scratch.reg[i] = adev->gfx.scratch.reg_base + i; in gfx_v7_0_scratch_init()
2371 uint32_t scratch; in gfx_v7_0_ring_test_ring() local
2376 r = amdgpu_gfx_scratch_get(adev, &scratch); in gfx_v7_0_ring_test_ring()
2381 WREG32(scratch, 0xCAFEDEAD); in gfx_v7_0_ring_test_ring()
2385 amdgpu_gfx_scratch_free(adev, scratch); in gfx_v7_0_ring_test_ring()
2389 amdgpu_ring_write(ring, (scratch - PACKET3_SET_UCONFIG_REG_START)); in gfx_v7_0_ring_test_ring()
[all …]
Datom.c282 val = gctx->scratch[(gctx->fb_base / 4) + idx]; in atom_get_src_int()
540 gctx->scratch[(gctx->fb_base / 4) + idx] = val; in atom_put_dst()
1452 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in amdgpu_atom_allocate_fb_scratch()
1453 if (!ctx->scratch) in amdgpu_atom_allocate_fb_scratch()
Datombios_dp.c74 base = (unsigned char *)(adev->mode_info.atom_context->scratch + 1); in amdgpu_atombios_dp_process_aux_ch()
Damdgpu_device.c853 kfree(adev->mode_info.atom_context->scratch); in amdgpu_atombios_fini()
Damdgpu.h1176 struct amdgpu_scratch scratch; member
/linux-4.4.14/arch/avr32/include/asm/
Dasm.h88 .macro branch_if_kernel scratch, label
89 get_thread_info \scratch
90 ld.w \scratch, \scratch[TI_flags]
91 bld \scratch, TIF_USERSPACE
95 .macro ret_if_privileged scratch, addr, size, ret
96 sub \scratch, \size, 1
97 add \scratch, \addr
/linux-4.4.14/net/xfrm/
Dxfrm_ipcomp.c49 u8 *scratch = *per_cpu_ptr(ipcomp_scratches, cpu); in ipcomp_decompress() local
51 int err = crypto_comp_decompress(tfm, start, plen, scratch, &dlen); in ipcomp_decompress()
69 skb_copy_to_linear_data(skb, scratch, len); in ipcomp_decompress()
71 while ((scratch += len, dlen -= len) > 0) { in ipcomp_decompress()
94 memcpy(skb_frag_address(frag), scratch, len); in ipcomp_decompress()
145 u8 *scratch; in ipcomp_compress() local
149 scratch = *this_cpu_ptr(ipcomp_scratches); in ipcomp_compress()
151 err = crypto_comp_compress(tfm, start, plen, scratch, &dlen); in ipcomp_compress()
160 memcpy(start + sizeof(struct ip_comp_hdr), scratch, dlen); in ipcomp_compress()
236 void *scratch; in ipcomp_alloc_scratches() local
[all …]
/linux-4.4.14/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 …]
Dbpck.c278 static int bpck_test_proto( PIA *pi, char * scratch, int verbose ) in bpck_test_proto() argument
419 static void bpck_log_adapter( PIA *pi, char * scratch, int verbose ) in bpck_log_adapter() argument
428 bpck_read_eeprom(pi,scratch); in bpck_log_adapter()
433 if ((scratch[i] < ' ') || (scratch[i] > '~')) in bpck_log_adapter()
434 scratch[i] = '.'; in bpck_log_adapter()
435 printk("%s: bpck EEPROM: %64.64s\n",pi->device,scratch); in bpck_log_adapter()
436 printk("%s: %64.64s\n",pi->device,&scratch[64]); in bpck_log_adapter()
441 pi->device,BPCK_VERSION,&scratch[110],pi->unit); in bpck_log_adapter()
Depia.c237 static int epia_test_proto( PIA *pi, char * scratch, int verbose ) in epia_test_proto() argument
257 epia_read_block(pi,scratch,512); in epia_test_proto()
259 if ((scratch[2*k] & 0xff) != ((k+1) & 0xff)) f++; in epia_test_proto()
260 if ((scratch[2*k+1] & 0xff) != ((-2-k) & 0xff)) f++; in epia_test_proto()
275 static void epia_log_adapter( PIA *pi, char * scratch, int verbose ) in epia_log_adapter() argument
Dkbic.c229 static void kbic_log_adapter( PIA *pi, char * scratch, in kbic_log_adapter() argument
242 static void k951_log_adapter( PIA *pi, char * scratch, int verbose ) in k951_log_adapter() argument
244 { kbic_log_adapter(pi,scratch,verbose,"KBIC-951A"); in k951_log_adapter()
247 static void k971_log_adapter( PIA *pi, char * scratch, int verbose ) in k971_log_adapter() argument
249 { kbic_log_adapter(pi,scratch,verbose,"KBIC-971A"); in k971_log_adapter()
Depat.c251 static int epat_test_proto( PIA *pi, char * scratch, int verbose ) in epat_test_proto() argument
274 epat_read_block(pi,scratch,512); in epat_test_proto()
277 if ((scratch[2*k] & 0xff) != k) f++; in epat_test_proto()
278 if ((scratch[2*k+1] & 0xff) != (0xff-k)) f++; in epat_test_proto()
290 static void epat_log_adapter( PIA *pi, char * scratch, int verbose ) in epat_log_adapter() argument
Dfriq.c183 static int friq_test_proto( PIA *pi, char * scratch, int verbose ) in friq_test_proto() argument
205 friq_read_block_int(pi,scratch,512,0x10); in friq_test_proto()
207 for (k=0;k<128;k++) if (scratch[k] != k) r++; in friq_test_proto()
219 static void friq_log_adapter( PIA *pi, char * scratch, int verbose ) in friq_log_adapter() argument
Dfrpw.c224 static int frpw_test_proto( PIA *pi, char * scratch, int verbose ) in frpw_test_proto() argument
258 frpw_read_block_int(pi,scratch,512,0x10); in frpw_test_proto()
260 for (k=0;k<128;k++) if (scratch[k] != k) r++; in frpw_test_proto()
272 static void frpw_log_adapter( PIA *pi, char * scratch, int verbose ) in frpw_log_adapter() argument
Dktti.c93 static void ktti_log_adapter( PIA *pi, char * scratch, int verbose ) in ktti_log_adapter() argument
Dfit2.c116 static void fit2_log_adapter( PIA *pi, char * scratch, int verbose ) in fit2_log_adapter() argument
Dparide.h68 char * scratch, /* address of 512 byte buffer */
Don20.c114 static void on20_log_adapter( PIA *pi, char * scratch, int verbose ) in on20_log_adapter() argument
Daten.c123 static void aten_log_adapter( PIA *pi, char * scratch, int verbose ) in aten_log_adapter() argument
Dcomm.c179 static void comm_log_adapter( PIA *pi, char * scratch, int verbose ) in comm_log_adapter() argument
Dfit3.c172 static void fit3_log_adapter( PIA *pi, char * scratch, int verbose ) in fit3_log_adapter() argument
Dbpck6.c198 static void bpck6_log_adapter( PIA *pi, char * scratch, int verbose ) in bpck6_log_adapter() argument
Ddstr.c193 static void dstr_log_adapter( PIA *pi, char * scratch, int verbose ) in dstr_log_adapter() argument
Don26.c278 static void on26_log_adapter( PIA *pi, char * scratch, int verbose ) in on26_log_adapter() argument
/linux-4.4.14/drivers/usb/host/
Dehci-dbg.c413 u32 scratch; in qh_lines() local
436 scratch = hc32_to_cpup(ehci, &hw->hw_info1); in qh_lines()
440 qh, scratch & 0x007f, in qh_lines()
441 speed_char (scratch), in qh_lines()
442 (scratch >> 8) & 0x000f, in qh_lines()
443 scratch, hc32_to_cpup(ehci, &hw->hw_info2), in qh_lines()
454 scratch = hc32_to_cpup(ehci, &td->hw_token); in qh_lines()
460 else if (QTD_LENGTH (scratch)) { in qh_lines()
469 switch ((scratch>>8)&0x03) { in qh_lines()
475 (scratch >> 16) & 0x7fff, in qh_lines()
[all …]
Dfotg210-hcd.c333 static inline char speed_char(u32 scratch) in speed_char() argument
335 switch (scratch & (3 << 12)) { in speed_char()
367 u32 scratch; in qh_lines() local
389 scratch = hc32_to_cpup(fotg210, &hw->hw_info1); in qh_lines()
393 qh, scratch & 0x007f, in qh_lines()
394 speed_char(scratch), in qh_lines()
395 (scratch >> 8) & 0x000f, in qh_lines()
396 scratch, hc32_to_cpup(fotg210, &hw->hw_info2), in qh_lines()
406 scratch = hc32_to_cpup(fotg210, &td->hw_token); in qh_lines()
412 else if (QTD_LENGTH(scratch)) { in qh_lines()
[all …]
/linux-4.4.14/arch/mips/mm/
Dtlbex.c1019 const int scratch = 1; /* Our extra working register */ in build_update_entries() local
1021 uasm_i_addu(p, scratch, 0, ptep); in build_update_entries()
1030 uasm_i_lw(p, tmp, 0, scratch); in build_update_entries()
1031 uasm_i_lw(p, ptep, sizeof(pte_t), scratch); in build_update_entries()
1032 uasm_i_lui(p, scratch, 0xff); in build_update_entries()
1033 uasm_i_ori(p, scratch, scratch, 0xffff); in build_update_entries()
1034 uasm_i_and(p, tmp, scratch, tmp); in build_update_entries()
1035 uasm_i_and(p, ptep, scratch, ptep); in build_update_entries()
1072 const int scratch = 1; /* Our extra working register */ in build_fast_tlb_refill_handler() local
1074 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
[all …]
/linux-4.4.14/arch/alpha/kernel/
Derr_marvel.c152 int scratch, i; in marvel_print_po7_uncrr_sym() local
197 scratch = EXTRACT(uncrr_sym, IO7__PO7_UNCRR_SYM__CLK); in marvel_print_po7_uncrr_sym()
198 for (i = 0; i < 4; i++, scratch >>= 2) { in marvel_print_po7_uncrr_sym()
199 if (scratch & 0x3) in marvel_print_po7_uncrr_sym()
202 clk_names[i], clk_decode[scratch & 0x3]); in marvel_print_po7_uncrr_sym()
231 if ((scratch = EXTRACT(uncrr_sym, IO7__PO7_UNCRR_SYM__VICTIM_SP))) { in marvel_print_po7_uncrr_sym()
232 int lost = scratch & (1UL << 4); in marvel_print_po7_uncrr_sym()
233 scratch &= ~lost; in marvel_print_po7_uncrr_sym()
234 for (i = 0; i < 8; i++, scratch >>= 1) { in marvel_print_po7_uncrr_sym()
235 if (!(scratch & 1)) in marvel_print_po7_uncrr_sym()
[all …]
/linux-4.4.14/drivers/mtd/devices/
Dmtd_dataflash.c462 uint8_t *scratch; in otp_read() local
475 scratch = kzalloc(l, GFP_KERNEL); in otp_read()
476 if (!scratch) in otp_read()
482 scratch[0] = OP_READ_SECURITY; in otp_read()
485 t.tx_buf = scratch; in otp_read()
486 t.rx_buf = scratch; in otp_read()
494 memcpy(buf, scratch + 4 + base + off, len); in otp_read()
498 kfree(scratch); in otp_read()
541 uint8_t *scratch; in dataflash_write_user_otp() local
562 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
[all …]
/linux-4.4.14/drivers/pnp/pnpbios/
Dcore.c101 char *argv[3], **envp, *buf, *scratch; in pnp_dock_event() local
130 scratch = buf; in pnp_dock_event()
133 envp[i++] = scratch; in pnp_dock_event()
134 scratch += sprintf(scratch, "ACTION=%s", dock ? "add" : "remove") + 1; in pnp_dock_event()
137 envp[i++] = scratch; in pnp_dock_event()
138 scratch += sprintf(scratch, "DOCK=%x/%x/%x", in pnp_dock_event()
/linux-4.4.14/fs/nfs/filelayout/
Dfilelayoutdev.c75 struct page *scratch; in nfs4_fl_alloc_deviceid_node() local
80 scratch = alloc_page(gfp_flags); in nfs4_fl_alloc_deviceid_node()
81 if (!scratch) in nfs4_fl_alloc_deviceid_node()
85 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in nfs4_fl_alloc_deviceid_node()
189 __free_page(scratch); in nfs4_fl_alloc_deviceid_node()
207 __free_page(scratch); in nfs4_fl_alloc_deviceid_node()
Dfilelayout.c656 struct page *scratch; in filelayout_decode_layout() local
663 scratch = alloc_page(gfp_flags); in filelayout_decode_layout()
664 if (!scratch) in filelayout_decode_layout()
668 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in filelayout_decode_layout()
734 __free_page(scratch); in filelayout_decode_layout()
738 __free_page(scratch); in filelayout_decode_layout()
/linux-4.4.14/drivers/scsi/
Dses.c146 struct ses_device *ses_dev = edev->scratch; in ses_set_page2_descriptor()
176 struct ses_device *ses_dev = edev->scratch; in ses_get_page2_descriptor()
318 struct ses_device *ses_dev = edev->scratch; in ses_show_id()
407 struct ses_component *scomp = ecomp->scratch; in ses_process_descriptor()
457 if (!edev->component[0].scratch) in ses_enclosure_find_by_addr()
461 scomp = edev->component[i].scratch; in ses_enclosure_find_by_addr()
481 struct ses_device *ses_dev = edev->scratch; in ses_enclosure_data_process()
734 edev->scratch = ses_dev; in ses_intf_add()
736 edev->component[i].scratch = scomp + i; in ses_intf_add()
795 ses_dev = edev->scratch; in ses_intf_remove_enclosure()
[all …]
Dgdth_proc.h14 static char *gdth_ioctl_alloc(gdth_ha_str *ha, int size, int scratch,
Dstex.c317 __le32 *scratch; member
863 __le32 *scratch; in stex_ss_mu_intr() local
874 scratch = hba->scratch + hba->status_tail; in stex_ss_mu_intr()
875 value = le32_to_cpu(*scratch); in stex_ss_mu_intr()
880 *scratch = 0; in stex_ss_mu_intr()
1046 __le32 *scratch; in stex_ss_handshake() local
1086 scratch = hba->scratch; in stex_ss_handshake()
1088 while (!(le32_to_cpu(*scratch) & SS_STS_HANDSHAKE)) { in stex_ss_handshake()
1100 memset(scratch, 0, scratch_size); in stex_ss_handshake()
1605 hba->scratch = (__le32 *)(hba->dma_mem + scratch_offset); in stex_probe()
Dgdth_proc.c560 static char *gdth_ioctl_alloc(gdth_ha_str *ha, int size, int scratch, in gdth_ioctl_alloc() argument
575 } else if (scratch) { in gdth_ioctl_alloc()
Dncr53c8xx.c1731 u_char scratch; /* Scratch for SCSI receive */ member
2244 NADDR (scratch),
2248 NADDR (scratch),
2278 NADDR (scratch),
2282 NADDR (scratch),
2296 NADDR (scratch),
2906 NADDR (scratch),
Dips.c1094 ips_copp_wait_item_t *scratch; in ips_queue_lck() local
1115 scratch = kmalloc(sizeof (ips_copp_wait_item_t), GFP_ATOMIC); in ips_queue_lck()
1117 if (!scratch) { in ips_queue_lck()
1124 scratch->scsi_cmd = SC; in ips_queue_lck()
1125 scratch->next = NULL; in ips_queue_lck()
1127 ips_putq_copp_tail(&ha->copp_waitlist, scratch); in ips_queue_lck()
Dipr.h1631 unsigned long scratch; member
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
Dsym_fw1.h202 u32 scratch [ 1]; member
418 HADDR_1 (scratch),
424 HADDR_1 (scratch),
623 HADDR_1 (scratch),
1094 PADDR_B (scratch),
1419 HADDR_1 (scratch),
1425 HADDR_1 (scratch),
1490 HADDR_1 (scratch),
1595 HADDR_1 (scratch),
1623 HADDR_1 (scratch),
[all …]
Dsym_fw2.h196 u32 scratch [ 1]; member
403 HADDR_1 (scratch),
409 HADDR_1 (scratch),
612 HADDR_1 (scratch),
705 PADDR_B (scratch),
709 PADDR_B (scratch),
1365 HADDR_1 (scratch),
1468 HADDR_1 (scratch),
1496 HADDR_1 (scratch),
1857 offsetof(struct sym_hcb, scratch),
[all …]
Dsym_hipd.h965 u32 scratch; /* Scratch for SCSI receive */ member
Dsym_hipd.c1027 np->scratch = cpu_to_scr(host_wr);
1068 host_rd = scr_to_cpu(np->scratch);
/linux-4.4.14/drivers/s390/virtio/
Dkvm_virtio.c487 char scratch[17]; in early_put_chars() local
490 if (len > sizeof(scratch) - 1) in early_put_chars()
491 len = sizeof(scratch) - 1; in early_put_chars()
492 scratch[len] = '\0'; in early_put_chars()
493 memcpy(scratch, buf, len); in early_put_chars()
494 kvm_hypercall1(KVM_S390_VIRTIO_NOTIFY, __pa(scratch)); in early_put_chars()
/linux-4.4.14/arch/powerpc/kvm/
Dbooke_interrupts.S56 .macro __KVM_HANDLER ivor_nr scratch srr0
58 mtspr \scratch , r4
64 mfspr r3, \scratch
77 .macro KVM_HANDLER ivor_nr scratch srr0
79 __KVM_HANDLER \ivor_nr \scratch \srr0
82 .macro KVM_DBG_HANDLER ivor_nr scratch srr0
84 mtspr \scratch, r4
103 mfspr r4, \scratch
110 mfspr r4, \scratch
111 __KVM_HANDLER \ivor_nr \scratch \srr0
Dbookehv_interrupts.S177 .macro kvm_handler intno type scratch, paca_ex, ex_r10, ex_r11, srr0, srr1, flags
195 mfspr r12, \scratch
197 mfspr r5, \scratch
313 .macro kvm_lvl_handler intno scratch srr0, srr1, flags
318 mfspr r3, \scratch
/linux-4.4.14/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_lib.c93 struct kvec scratch; in ksocknal_lib_send_iov() local
94 struct kvec *scratchiov = &scratch; in ksocknal_lib_send_iov()
153 struct kvec scratch; in ksocknal_lib_send_kiov() local
154 struct kvec *scratchiov = &scratch; in ksocknal_lib_send_kiov()
203 struct kvec scratch; in ksocknal_lib_recv_iov() local
204 struct kvec *scratchiov = &scratch; in ksocknal_lib_recv_iov()
307 struct kvec scratch; in ksocknal_lib_recv_kiov() local
308 struct kvec *scratchiov = &scratch; in ksocknal_lib_recv_kiov()
/linux-4.4.14/drivers/net/wireless/libertas/
Dif_sdio.c150 u16 scratch; in if_sdio_read_scratch() local
152 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch()
154 scratch |= sdio_readb(card->func, card->scratch_reg + 1, in if_sdio_read_scratch()
163 return scratch; in if_sdio_read_scratch()
667 u16 scratch; in if_sdio_prog_real() local
669 scratch = if_sdio_read_scratch(card, &ret); in if_sdio_prog_real()
673 if (scratch == IF_SDIO_FIRMWARE_OK) in if_sdio_prog_real()
726 u16 scratch; in if_sdio_prog_firmware() local
738 scratch = if_sdio_read_scratch(card, &ret); in if_sdio_prog_firmware()
741 lbs_deb_sdio("firmware status = %#x\n", scratch); in if_sdio_prog_firmware()
[all …]
Dif_cs.c592 u8 scratch; in if_cs_prog_helper() local
602 scratch = if_cs_read16(card, IF_CS_SCRATCH) >> 8; in if_cs_prog_helper()
604 scratch = if_cs_read8(card, IF_CS_SCRATCH); in if_cs_prog_helper()
609 if (scratch == IF_CS_SCRATCH_HELPER_OK) in if_cs_prog_helper()
613 if (scratch != IF_CS_SCRATCH_BOOT_OK) { in if_cs_prog_helper()
Dif_spi.c1034 u32 scratch; in if_spi_init_card() local
1047 err = spu_read_u32(card, IF_SPI_SCRATCH_4_REG, &scratch); in if_spi_init_card()
1050 if (scratch == SUCCESSFUL_FW_DOWNLOAD_MAGIC) in if_spi_init_card()
/linux-4.4.14/arch/mips/ath25/
Dar5312.c289 u32 scratch, devid, clock_ctl1; in ar5312_cpu_frequency() local
295 scratch = ar5312_rst_reg_read(AR5312_SCRATCH); in ar5312_cpu_frequency()
296 if (scratch) in ar5312_cpu_frequency()
297 return scratch; in ar5312_cpu_frequency()
/linux-4.4.14/lib/
Dkobject_uevent.c302 char *scratch; in kobject_uevent_env() local
305 scratch = skb_put(skb, len); in kobject_uevent_env()
306 sprintf(scratch, "%s@%s", action_string, devpath); in kobject_uevent_env()
311 scratch = skb_put(skb, len); in kobject_uevent_env()
312 strcpy(scratch, env->envp[i]); in kobject_uevent_env()
/linux-4.4.14/drivers/gpu/drm/i915/
Dintel_ringbuffer.c220 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in intel_emit_post_sync_nonzero_flush()
257 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in gen6_render_ring_flush()
330 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in gen7_render_ring_flush()
415 u32 scratch_addr = req->ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in gen8_render_ring_flush()
663 if (ring->scratch.obj == NULL) in intel_fini_pipe_control()
667 kunmap(sg_page(ring->scratch.obj->pages->sgl)); in intel_fini_pipe_control()
668 i915_gem_object_ggtt_unpin(ring->scratch.obj); in intel_fini_pipe_control()
671 drm_gem_object_unreference(&ring->scratch.obj->base); in intel_fini_pipe_control()
672 ring->scratch.obj = NULL; in intel_fini_pipe_control()
680 WARN_ON(ring->scratch.obj); in intel_init_pipe_control()
[all …]
Dintel_ringbuffer.h315 } scratch; member
Dintel_lrc.c1158 wa_ctx_emit(batch, index, ring->scratch.gtt_offset + 256); in gen8_emit_flush_coherentl3_wa()
1176 wa_ctx_emit(batch, index, ring->scratch.gtt_offset + 256); in gen8_emit_flush_coherentl3_wa()
1250 scratch_addr = ring->scratch.gtt_offset + 2*CACHELINE_BYTES; in gen8_init_indirectctx_bb()
1410 if (ring->scratch.obj == NULL) { in intel_init_workaround_bb()
1699 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in gen8_emit_flush_render()
Di915_gpu_error.c1018 ring->scratch.obj); in i915_gem_record_rings()
/linux-4.4.14/include/linux/
Denclosure.h96 void *scratch; member
110 void *scratch; member
/linux-4.4.14/arch/sparc/lib/
DNG4copy_page.S12 .register %g2, #scratch
13 .register %g3, #scratch
Dcopy_in_user.S19 .register %g2,#scratch
20 .register %g3,#scratch
DGENmemcpy.S44 .register %g2,#scratch
45 .register %g3,#scratch
DNG4memset.S8 .register %g2, #scratch
9 .register %g3, #scratch
DNG4clear_page.S11 .register %g3, #scratch
Dffs.S3 .register %g2,#scratch
Dcsum_copy.S36 .register %g2, #scratch
37 .register %g3, #scratch
DNG4memcpy.S93 .register %g2,#scratch
94 .register %g3,#scratch
DNGmemcpy.S78 .register %g2,#scratch
79 .register %g3,#scratch
DU3memcpy.S66 .register %g2,#scratch
67 .register %g3,#scratch
DNG2memcpy.S178 .register %g2,#scratch
179 .register %g3,#scratch
DU1memcpy.S124 .register %g2,#scratch
125 .register %g3,#scratch
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_device.c245 rdev->scratch.num_reg = 5; in radeon_scratch_init()
247 rdev->scratch.num_reg = 7; in radeon_scratch_init()
249 rdev->scratch.reg_base = RADEON_SCRATCH_REG0; in radeon_scratch_init()
250 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_init()
251 rdev->scratch.free[i] = true; in radeon_scratch_init()
252 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in radeon_scratch_init()
269 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_get()
270 if (rdev->scratch.free[i]) { in radeon_scratch_get()
271 rdev->scratch.free[i] = false; in radeon_scratch_get()
272 *reg = rdev->scratch.reg[i]; in radeon_scratch_get()
[all …]
Dr300_cmdbuf.c913 (sizeof(u64) + header.scratch.n_bufs * sizeof(*buf_idx))) { in r300_scratch()
917 if (header.scratch.reg >= 5) { in r300_scratch()
921 dev_priv->scratch_ages[header.scratch.reg]++; in r300_scratch()
927 for (i=0; i < header.scratch.n_bufs; i++) { in r300_scratch()
932 &dev_priv->scratch_ages[header.scratch.reg], in r300_scratch()
955 OUT_RING( CP_PACKET0( RADEON_SCRATCH_REG0 + header.scratch.reg * 4, 0 ) ); in r300_scratch()
956 OUT_RING( dev_priv->scratch_ages[header.scratch.reg] ); in r300_scratch()
Datom.h141 uint32_t *scratch; member
Dr600.c2812 rdev->scratch.num_reg = 7; in r600_scratch_init()
2813 rdev->scratch.reg_base = SCRATCH_REG0; in r600_scratch_init()
2814 for (i = 0; i < rdev->scratch.num_reg; i++) { in r600_scratch_init()
2815 rdev->scratch.free[i] = true; in r600_scratch_init()
2816 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in r600_scratch_init()
2822 uint32_t scratch; in r600_ring_test() local
2827 r = radeon_scratch_get(rdev, &scratch); in r600_ring_test()
2832 WREG32(scratch, 0xCAFEDEAD); in r600_ring_test()
2836 radeon_scratch_free(rdev, scratch); in r600_ring_test()
2840 radeon_ring_write(ring, ((scratch - PACKET3_SET_CONFIG_REG_OFFSET) >> 2)); in r600_ring_test()
[all …]
Datombios_i2c.c53 base = (unsigned char *)rdev->mode_info.atom_context->scratch; in radeon_process_i2c_ch()
Dr100.c3648 uint32_t scratch; in r100_ring_test() local
3653 r = radeon_scratch_get(rdev, &scratch); in r100_ring_test()
3658 WREG32(scratch, 0xCAFEDEAD); in r100_ring_test()
3662 radeon_scratch_free(rdev, scratch); in r100_ring_test()
3665 radeon_ring_write(ring, PACKET0(scratch, 0)); in r100_ring_test()
3669 tmp = RREG32(scratch); in r100_ring_test()
3679 scratch, tmp); in r100_ring_test()
3682 radeon_scratch_free(rdev, scratch); in r100_ring_test()
3704 uint32_t scratch; in r100_ib_test() local
3709 r = radeon_scratch_get(rdev, &scratch); in r100_ib_test()
[all …]
Dcik.c3848 rdev->scratch.num_reg = 7; in cik_scratch_init()
3849 rdev->scratch.reg_base = SCRATCH_REG0; in cik_scratch_init()
3850 for (i = 0; i < rdev->scratch.num_reg; i++) { in cik_scratch_init()
3851 rdev->scratch.free[i] = true; in cik_scratch_init()
3852 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in cik_scratch_init()
3869 uint32_t scratch; in cik_ring_test() local
3874 r = radeon_scratch_get(rdev, &scratch); in cik_ring_test()
3879 WREG32(scratch, 0xCAFEDEAD); in cik_ring_test()
3883 radeon_scratch_free(rdev, scratch); in cik_ring_test()
3887 radeon_ring_write(ring, ((scratch - PACKET3_SET_UCONFIG_REG_START) >> 2)); in cik_ring_test()
[all …]
Datom.c285 val = gctx->scratch[(gctx->fb_base / 4) + idx]; in atom_get_src_int()
543 gctx->scratch[(gctx->fb_base / 4) + idx] = val; in atom_put_dst()
1420 ctx->scratch = kzalloc(usage_bytes, GFP_KERNEL); in atom_allocate_fb_scratch()
1421 if (!ctx->scratch) in atom_allocate_fb_scratch()
Dradeon_fence.c830 rdev->scratch.reg_base; in radeon_fence_driver_start_ring()
Datombios_dp.c105 base = (unsigned char *)(rdev->mode_info.atom_context->scratch + 1); in radeon_process_aux_ch()
Dsi.c3363 rdev->scratch.num_reg = 7; in si_scratch_init()
3364 rdev->scratch.reg_base = SCRATCH_REG0; in si_scratch_init()
3365 for (i = 0; i < rdev->scratch.num_reg; i++) { in si_scratch_init()
3366 rdev->scratch.free[i] = true; in si_scratch_init()
3367 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in si_scratch_init()
Dradeon.h2375 struct radeon_scratch scratch; member
/linux-4.4.14/sound/soc/codecs/
Dwm_adsp.c509 u16 scratch[4]; in wm_adsp2_show_fw_status() local
513 scratch, sizeof(scratch)); in wm_adsp2_show_fw_status()
520 be16_to_cpu(scratch[0]), in wm_adsp2_show_fw_status()
521 be16_to_cpu(scratch[1]), in wm_adsp2_show_fw_status()
522 be16_to_cpu(scratch[2]), in wm_adsp2_show_fw_status()
523 be16_to_cpu(scratch[3])); in wm_adsp2_show_fw_status()
542 void *scratch; in wm_coeff_write_control() local
556 scratch = kmemdup(buf, ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_write_control()
557 if (!scratch) in wm_coeff_write_control()
560 ret = regmap_raw_write(dsp->regmap, reg, scratch, in wm_coeff_write_control()
[all …]
/linux-4.4.14/fs/nfs/blocklayout/
Ddev.c321 struct page *scratch; in bl_alloc_deviceid_node() local
325 scratch = alloc_page(gfp_mask); in bl_alloc_deviceid_node()
326 if (!scratch) in bl_alloc_deviceid_node()
330 xdr_set_scratch_buffer(&xdr, page_address(scratch), PAGE_SIZE); in bl_alloc_deviceid_node()
365 __free_page(scratch); in bl_alloc_deviceid_node()
Dblocklayout.c608 struct page *scratch; in bl_alloc_lseg() local
621 scratch = alloc_page(gfp_mask); in bl_alloc_lseg()
622 if (!scratch) in bl_alloc_lseg()
627 xdr_set_scratch_buffer(&xdr, page_address(scratch), PAGE_SIZE); in bl_alloc_lseg()
676 __free_page(scratch); in bl_alloc_lseg()
/linux-4.4.14/arch/m68k/fpsp040/
Dbindec.S112 | d0: scratch; LEN input to binstr
113 | d1: scratch
115 | d3: scratch;lower 32-bits of mantissa for binstr
121 | a1: scratch pointer
123 | fp0: scratch
124 | fp1: scratch
125 | fp2: scratch
288 | d2: x/x/scratch
359 | d0: exponent/scratch - final is 0
361 | d3: x/scratch - offset ptr into PTENRM array
[all …]
Dx_fline.S51 leal L_SCR1(%a6),%a1 |use L_SCR1 as scratch
Dround.S173 moveml (%a7)+,%d2/%d3 |restore scratch registers
499 | is no LOCAL_GRS scratch word following it on the fsave frame.
/linux-4.4.14/arch/powerpc/boot/
Dgunzip_util.c54 state->s.workspace = state->scratch; in gunzip_start()
55 if (zlib_inflate_workspacesize() > sizeof(state->scratch)) in gunzip_start()
Dgunzip_util.h36 char scratch[46912]; member
/linux-4.4.14/Documentation/sh/
Dregister-banks.txt20 be used rather effectively as scratch registers by the kernel.
24 - r0_bank, r1_bank (referenced as k0 and k1, used for scratch
/linux-4.4.14/fs/nfs/objlayout/
Dobjlayout.c94 struct page *scratch; in objlayout_alloc_lseg() local
99 scratch = alloc_page(gfp_flags); in objlayout_alloc_lseg()
100 if (!scratch) in objlayout_alloc_lseg()
104 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in objlayout_alloc_lseg()
113 __free_page(scratch); in objlayout_alloc_lseg()
119 __free_page(scratch); in objlayout_alloc_lseg()
/linux-4.4.14/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c43 struct page *scratch; in nfs4_ff_alloc_deviceid_node() local
54 scratch = alloc_page(gfp_flags); in nfs4_ff_alloc_deviceid_node()
55 if (!scratch) in nfs4_ff_alloc_deviceid_node()
68 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in nfs4_ff_alloc_deviceid_node()
153 __free_page(scratch); in nfs4_ff_alloc_deviceid_node()
167 __free_page(scratch); in nfs4_ff_alloc_deviceid_node()
Dflexfilelayout.c364 struct page *scratch; in ff_layout_alloc_lseg() local
371 scratch = alloc_page(gfp_flags); in ff_layout_alloc_lseg()
372 if (!scratch) in ff_layout_alloc_lseg()
377 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in ff_layout_alloc_lseg()
520 __free_page(scratch); in ff_layout_alloc_lseg()
/linux-4.4.14/include/linux/crush/
Dmapper.h18 int *scratch);
/linux-4.4.14/mm/
Dmempolicy.c757 NODEMASK_SCRATCH(scratch); in do_set_mempolicy()
760 if (!scratch) in do_set_mempolicy()
770 ret = mpol_set_nodemask(new, nodes, scratch); in do_set_mempolicy()
785 NODEMASK_SCRATCH_FREE(scratch); in do_set_mempolicy()
1189 NODEMASK_SCRATCH(scratch); in do_mbind()
1190 if (scratch) { in do_mbind()
1193 err = mpol_set_nodemask(new, nmask, scratch); in do_mbind()
1199 NODEMASK_SCRATCH_FREE(scratch); in do_mbind()
1350 NODEMASK_SCRATCH(scratch); in SYSCALL_DEFINE4()
1352 if (!scratch) in SYSCALL_DEFINE4()
[all …]
/linux-4.4.14/drivers/tty/serial/
Dsunsu.c1040 unsigned char status1, status2, scratch, scratch2, scratch3; in sunsu_autoconfig() local
1062 scratch = serial_inp(up, UART_IER); in sunsu_autoconfig()
1073 serial_outp(up, UART_IER, scratch); in sunsu_autoconfig()
1101 scratch = serial_in(up, UART_IIR) >> 6; in sunsu_autoconfig()
1102 switch (scratch) { in sunsu_autoconfig()
1132 scratch = serial_in(up, UART_IIR) >> 5; in sunsu_autoconfig()
1133 if (scratch == 7) { in sunsu_autoconfig()
1144 scratch = serial_in(up, UART_IIR) >> 5; in sunsu_autoconfig()
1145 if (scratch == 6) in sunsu_autoconfig()
1152 scratch = serial_in(up, UART_SCR); in sunsu_autoconfig()
[all …]
/linux-4.4.14/net/sunrpc/
Dxdr.c500 int shift = xdr->scratch.iov_len; in xdr_commit_encode()
506 memcpy(xdr->scratch.iov_base, page, shift); in xdr_commit_encode()
508 xdr->scratch.iov_len = 0; in xdr_commit_encode()
538 xdr->scratch.iov_base = xdr->p; in xdr_get_next_encode_buffer()
539 xdr->scratch.iov_len = frag1bytes; in xdr_get_next_encode_buffer()
793 xdr->scratch.iov_base = NULL; in xdr_init_decode()
794 xdr->scratch.iov_len = 0; in xdr_init_decode()
852 xdr->scratch.iov_base = buf; in xdr_set_scratch_buffer()
853 xdr->scratch.iov_len = buflen; in xdr_set_scratch_buffer()
860 void *cpdest = xdr->scratch.iov_base; in xdr_copy_to_scratch()
[all …]
/linux-4.4.14/drivers/usb/gadget/udc/
Dnet2280.c1945 u32 scratch; in defect7374_enable_data_eps_zero() local
1949 scratch = get_idx_reg(dev->regs, SCRATCH); in defect7374_enable_data_eps_zero()
1951 WARN_ON((scratch & (0xf << DEFECT7374_FSM_FIELD)) in defect7374_enable_data_eps_zero()
1954 scratch &= ~(0xf << DEFECT7374_FSM_FIELD); in defect7374_enable_data_eps_zero()
2009 scratch |= DEFECT7374_FSM_WAITING_FOR_CONTROL_READ; in defect7374_enable_data_eps_zero()
2010 set_idx_reg(dev->regs, SCRATCH, scratch); in defect7374_enable_data_eps_zero()
2698 u32 scratch, fsmvalue; in defect7374_workaround() local
2702 scratch = get_idx_reg(dev->regs, SCRATCH); in defect7374_workaround()
2703 fsmvalue = scratch & (0xf << DEFECT7374_FSM_FIELD); in defect7374_workaround()
2704 scratch &= ~(0xf << DEFECT7374_FSM_FIELD); in defect7374_workaround()
[all …]
Dnet2272.c1730 u8 num, scratch; in net2272_handle_stat0_irqs() local
1817 scratch = (1 << DATA_PACKET_TRANSMITTED_INTERRUPT_ENABLE) in net2272_handle_stat0_irqs()
1822 scratch = (1 << DATA_PACKET_RECEIVED_INTERRUPT_ENABLE) in net2272_handle_stat0_irqs()
1825 net2272_ep_write(ep, EP_IRQENB, scratch); in net2272_handle_stat0_irqs()
1961 scratch = stat & 0x0f; in net2272_handle_stat0_irqs()
1963 for (num = 0; scratch; num++) { in net2272_handle_stat0_irqs()
1968 if ((scratch & t) == 0) in net2272_handle_stat0_irqs()
1970 scratch ^= t; in net2272_handle_stat0_irqs()
/linux-4.4.14/arch/arc/include/uapi/asm/
Dptrace.h41 } scratch; member
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c796 struct page *scratch; in gssx_dec_accept_sec_context() local
798 scratch = alloc_page(GFP_KERNEL); in gssx_dec_accept_sec_context()
799 if (!scratch) in gssx_dec_accept_sec_context()
801 xdr_set_scratch_buffer(xdr, page_address(scratch), PAGE_SIZE); in gssx_dec_accept_sec_context()
846 __free_page(scratch); in gssx_dec_accept_sec_context()
/linux-4.4.14/drivers/char/agp/
Duninorth-agp.c229 u32 command, scratch, status; in uninorth_agp_enable() local
266 &scratch); in uninorth_agp_enable()
267 } while ((scratch & PCI_AGP_COMMAND_AGP) == 0 && ++timeout < 1000); in uninorth_agp_enable()
268 if ((scratch & PCI_AGP_COMMAND_AGP) == 0) in uninorth_agp_enable()
Di460-agp.c206 u8 scratch; in i460_configure() local
225 pci_read_config_byte(agp_bridge->dev, INTEL_I460_GXBCTL, &scratch); in i460_configure()
227 (scratch & 0x02) | I460_GXBCTL_OOG | I460_GXBCTL_BWC); in i460_configure()
/linux-4.4.14/drivers/scsi/esas2r/
Desas2r_flash.c315 memset(fc->scratch, 0, FM_BUF_SZ); in complete_fmapi_req()
346 p = fc->scratch; in fw_download_proc()
369 ((u8 *)fc->scratch - (u8 *)fi); in fw_download_proc()
408 + ((u8 *)fc->scratch - in fw_download_proc()
443 + ((u8 *)fc->scratch - in fw_download_proc()
479 + ((u8 *)fc->scratch - in fw_download_proc()
513 + ((u8 *)fc->scratch - in fw_download_proc()
1411 fc->scratch = ((struct esas2r_flash_img *)fi)->scratch_buf; in esas2r_fm_api()
Desas2r.h694 u8 *scratch; member
/linux-4.4.14/fs/logfs/
Djournal.c226 void *scratch = super->s_je; in read_je() local
238 read_dynsb(sb, unpack(jh, scratch)); in read_je()
241 read_anchor(sb, unpack(jh, scratch)); in read_je()
244 read_erasecount(sb, unpack(jh, scratch)); in read_je()
247 err = read_area(sb, unpack(jh, scratch)); in read_je()
250 err = logfs_load_object_aliases(sb, unpack(jh, scratch), in read_je()
674 void* (*write)(struct super_block *sb, void *scratch, in logfs_write_je() argument
/linux-4.4.14/drivers/media/usb/usbvision/
Dusbvision-core.c217 memcpy(usbvision->scratch + usbvision->scratch_write_ptr, data, len); in scratch_put()
221 memcpy(usbvision->scratch + usbvision->scratch_write_ptr, data, len_part); in scratch_put()
225 memcpy(usbvision->scratch, data + len_part, len - len_part); in scratch_put()
253 memcpy(data, usbvision->scratch + *ptr, len); in scratch_get_extra()
257 memcpy(data, usbvision->scratch + *ptr, len_part); in scratch_get_extra()
261 memcpy(data + len_part, usbvision->scratch, len - len_part); in scratch_get_extra()
298 memcpy(data, usbvision->scratch + usbvision->scratch_read_ptr, len); in scratch_get()
302 memcpy(data, usbvision->scratch + usbvision->scratch_read_ptr, len_part); in scratch_get()
306 memcpy(data + len_part, usbvision->scratch, len - len_part); in scratch_get()
369 usbvision->scratch = vmalloc_32(scratch_buf_size); in usbvision_scratch_alloc()
[all …]
Dusbvision.h421 unsigned char *scratch; member
/linux-4.4.14/arch/arm/boot/dts/
Dqcom-ipq8064-ap148.dts86 label = "scratch";
/linux-4.4.14/drivers/mtd/maps/
Damd76xrom.c70 struct amd76xrom_map_info *map, *scratch; in amd76xrom_cleanup() local
81 list_for_each_entry_safe(map, scratch, &window->maps, list) { in amd76xrom_cleanup()
Dck804xrom.c83 struct ck804xrom_map_info *map, *scratch; in ck804xrom_cleanup() local
93 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ck804xrom_cleanup()
Dichxrom.c58 struct ichxrom_map_info *map, *scratch; in ichxrom_cleanup() local
67 list_for_each_entry_safe(map, scratch, &window->maps, list) { in ichxrom_cleanup()
Desb2rom.c119 struct esb2rom_map_info *map, *scratch; in esb2rom_cleanup() local
128 list_for_each_entry_safe(map, scratch, &window->maps, list) { in esb2rom_cleanup()
/linux-4.4.14/net/ceph/crush/
Dmapper.c788 int *scratch) in crush_do_rule() argument
791 int *a = scratch; in crush_do_rule()
792 int *b = scratch + result_max; in crush_do_rule()
793 int *c = scratch + result_max*2; in crush_do_rule()
/linux-4.4.14/arch/x86/kernel/
Damd_gart_64.c739 unsigned long scratch; in gart_iommu_init() local
844 scratch = get_zeroed_page(GFP_KERNEL); in gart_iommu_init()
845 if (!scratch) in gart_iommu_init()
847 gart_unmapped_entry = GPTE_ENCODE(__pa(scratch)); in gart_iommu_init()
Dasm-offsets.c82 OFFSET(BP_scratch, boot_params, scratch); in common()
/linux-4.4.14/fs/ntfs/
DKconfig15 This is a rewrite from scratch of Linux NTFS support and replaced
68 scratch of the NTFS support), it should be noted that the old NTFS
/linux-4.4.14/arch/arm/probes/
Ddecode.c36 int addr, scratch, ret; in find_str_pc_offset() local
43 : [ret] "=r" (ret), [scr] "=r" (scratch), [addr] "+m" (addr)); in find_str_pc_offset()
/linux-4.4.14/drivers/net/usb/
Dkaweth.c244 __u8 scratch[KAWETH_SCRATCH_SIZE]; member
333 (void *)&kaweth->scratch, in kaweth_set_urb_size()
355 (void *)&kaweth->scratch, in kaweth_set_sofs_wait()
379 (void *)&kaweth->scratch, in kaweth_set_receive_filter()
909 (void *)&kaweth->scratch, in kaweth_async_set_rx_mode()
/linux-4.4.14/arch/x86/include/uapi/asm/
Dbootparam.h132 __u32 scratch; /* Scratch field! */ /* 0x1e4 */ member
/linux-4.4.14/Documentation/x86/
Dzero-page.txt29 1E4/004 ALL scratch Scratch field for the kernel setup code
/linux-4.4.14/arch/blackfin/mach-bf561/
Datomic.S22 .macro safe_testset addr:req, scratch:req
24 cli \scratch;
26 sti \scratch;
/linux-4.4.14/arch/powerpc/platforms/powermac/
Dlow_i2c.c1228 u8 scratch[MAX_I2C_DATA]; member
1306 inst->scratch[i] = (inst->buffer[i] & mask[i]) | val[i]; in pmac_i2c_do_apply_rmw()
1309 inst->scratch[i] = (inst->buffer[i] & ~mask[i]) in pmac_i2c_do_apply_rmw()
1327 inst->scratch, totallen); in pmac_i2c_do_rmw()
1368 subaddr, inst->scratch, totallen); in pmac_i2c_do_rmw_sub()
/linux-4.4.14/drivers/staging/media/lirc/
Dlirc_serial.c647 u8 scratch, scratch2, scratch3; in hardware_init_port() local
653 scratch = sinp(UART_IER); in hardware_init_port()
664 soutp(UART_IER, scratch); in hardware_init_port()
/linux-4.4.14/drivers/tty/serial/8250/
D8250_port.c831 unsigned char scratch, status1, status2; in autoconfig_8250() local
835 scratch = serial_in(up, UART_SCR); in autoconfig_8250()
840 serial_out(up, UART_SCR, scratch); in autoconfig_8250()
1063 unsigned char status1, scratch, scratch2, scratch3; in autoconfig() local
1098 scratch = serial_in(up, UART_IER); in autoconfig()
1113 serial_out(up, UART_IER, scratch); in autoconfig()
1163 scratch = serial_in(up, UART_IIR) >> 6; in autoconfig()
1165 switch (scratch) { in autoconfig()
1223 DEBUG_AUTOCONF("iir=%d ", scratch); in autoconfig()
/linux-4.4.14/drivers/usb/host/whci/
Dqset.c130 qset->qh.scratch[0] = 0; in qset_clear()
131 qset->qh.scratch[1] = 0; in qset_clear()
132 qset->qh.scratch[2] = 0; in qset_clear()
Dwhci-hc.h141 __le32 scratch[3]; /*< h/w scratch area */ member
/linux-4.4.14/Documentation/video4linux/
DREADME.ir21 was very confusing and I decided to basically start over from scratch.
/linux-4.4.14/include/linux/sunrpc/
Dxdr.h205 struct kvec scratch; /* Scratch buffer */ member
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dfw-api-tx.h240 } scratch; /* DRAM_SCRATCH_API_U_VER_1 */ member
/linux-4.4.14/arch/powerpc/include/asm/
Dppc_asm.h464 #define DCBT_STOP_ALL_STREAM_IDS(scratch) \ argument
467 lis scratch,0x60000000@h; \
468 dcbt r0,scratch,0b01010; \
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dpcie.c242 void *scratch; member
1301 if (devinfo->shared.scratch) in brcmf_pcie_release_scratchbuffers()
1304 devinfo->shared.scratch, in brcmf_pcie_release_scratchbuffers()
1318 devinfo->shared.scratch = dma_alloc_coherent(&devinfo->pdev->dev, in brcmf_pcie_init_scratchbuffers()
1321 if (!devinfo->shared.scratch) in brcmf_pcie_init_scratchbuffers()
1324 memset(devinfo->shared.scratch, 0, BRCMF_DMA_D2H_SCRATCH_BUF_LEN); in brcmf_pcie_init_scratchbuffers()
/linux-4.4.14/arch/powerpc/kernel/
Dexceptions-64e.S247 .macro ret_from_level srr0 srr1 paca_ex scratch
259 mtspr \scratch,r0
271 mfspr r13,\scratch
379 #define EXCEPTION_COMMON_LVL(n, scratch, excf) \ argument
392 mfspr r5,scratch; /* get back r13 */ \
/linux-4.4.14/drivers/usb/isp1760/
Disp1760-udc.c1409 u16 scratch; in isp1760_udc_init() local
1420 scratch = isp1760_udc_read(udc, DC_SCRATCH); in isp1760_udc_init()
1422 if (scratch != 0xbabe) { in isp1760_udc_init()
1425 scratch, chipid); in isp1760_udc_init()
Disp1760-hcd.c468 u32 scratch, hwmode; in isp1760_hc_setup() local
472 scratch = reg_read32(hcd->regs, HC_CHIP_ID_REG); in isp1760_hc_setup()
473 scratch = reg_read32(hcd->regs, HC_SCRATCH_REG); in isp1760_hc_setup()
474 if (scratch != 0xdeadbabe) { in isp1760_hc_setup()
/linux-4.4.14/drivers/block/
Dida_cmd.h274 __u8 scratch[16]; member
/linux-4.4.14/arch/alpha/include/asm/
Dcore_wildfire.h62 wildfire_64 scratch[4]; member
/linux-4.4.14/fs/nfsd/
Dxdr3.h179 struct svc_fh scratch; member
Dnfs3xdr.c843 struct svc_fh *fh = &cd->scratch; in encode_entryplus_baggage()
Dnfs4proc.c1587 xdr->scratch.iov_len = 0; in svcxdr_init_encode()
/linux-4.4.14/drivers/mtd/nand/
DKconfig64 hex "Denali NAND size scratch register address"
68 Some platforms place the NAND chip size in a scratch register
71 scratch register here to enable this feature. On Intel Moorestown
72 boards, the scratch register is at 0xFF108018.
/linux-4.4.14/drivers/mmc/card/
Dmmc_test.c145 u8 scratch[BUFFER_SIZE]; member
903 test->scratch[i] = i; in mmc_test_transfer()
905 memset(test->scratch, 0, BUFFER_SIZE); in mmc_test_transfer()
908 sg_copy_from_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); in mmc_test_transfer()
955 sg_copy_to_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); in mmc_test_transfer()
958 if (test->scratch[i] != (u8)i) in mmc_test_transfer()
/linux-4.4.14/Documentation/mn10300/
DABI.txt115 unavailable for the compiler to use as a scratch register.
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/
Dhost.fuc136 // store each fifo's base/size in H2D/D2H scratch regs
/linux-4.4.14/arch/cris/arch-v32/kernel/
Dentry.S359 movem $r9, [$sp] ; Save non-scratch registers and R9.
372 movem [$sp+], $r9 ; Restore non-scratch registers and R9.
/linux-4.4.14/arch/parisc/kernel/
Dperf_asm.S114 ;* %r1 - scratch
115 ;* %r29 - scratch
/linux-4.4.14/drivers/input/touchscreen/
Dads7846.c291 u16 scratch; member
332 req->xfer[1].rx_buf = &req->scratch; in ads7846_read12_ser()
364 req->xfer[5].rx_buf = &req->scratch; in ads7846_read12_ser()
/linux-4.4.14/arch/m32r/lib/
Dashxdi3.S11 ; r3 scratch
/linux-4.4.14/drivers/net/wireless/iwlwifi/pcie/
Dinternal.h242 __le32 scratch; member
Dtx.c523 BUILD_BUG_ON(offsetof(struct iwl_pcie_txq_scratch_buf, scratch) != in iwl_pcie_txq_alloc()
525 offsetof(struct iwl_tx_cmd, scratch)); in iwl_pcie_txq_alloc()
1857 offsetof(struct iwl_tx_cmd, scratch); in iwl_trans_pcie_tx()
/linux-4.4.14/fs/nfs/
Ddir.c537 struct page *scratch; in nfs_readdir_page_filler() local
542 scratch = alloc_page(GFP_KERNEL); in nfs_readdir_page_filler()
543 if (scratch == NULL) in nfs_readdir_page_filler()
550 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in nfs_readdir_page_filler()
581 put_page(scratch); in nfs_readdir_page_filler()
/linux-4.4.14/drivers/scsi/aic7xxx/
Daic7xxx.reg2 * Aic7xxx register and scratch ram definitions.
1392 * bits of the target scratch space. This should work regardless of
1640 * These scratch ram locations are initialized by the 274X BIOS.
1668 * These are reserved registers in the card's scratch ram on the 2742.
1670 * aic7770, the sequencer can use this area for scratch, but the
Daic79xx.reg2 * Aic79xx register and scratch ram definitions.
3508 * Incrementing index for writes to DINDIR. Can be used as a scratch register.
4031 * this position in scratch ram every time it changes.
Daic7xxx.seq58 * in scratch ram since a reconnecting target can request sense and this will
1724 * protects against bogus data in scratch ram and the residual counts
/linux-4.4.14/arch/cris/arch-v10/kernel/
Dentry.S316 movem $r9, [$sp] ; save non-scratch registers and R9.
325 movem [$sp+], $r9 ; restore non-scratch registers and R9.
/linux-4.4.14/arch/arc/mm/
Dtlbex.S411 ; Restore the 4-scratch regs saved by fast path miss handler
/linux-4.4.14/include/uapi/drm/
Dradeon_drm.h273 } scratch; member
/linux-4.4.14/arch/blackfin/
DKconfig711 as a stack scratch register. This means you cannot
722 as a stack scratch register. This means you cannot
733 as a stack scratch register. This means you cannot
921 scratch memory (less latency).
/linux-4.4.14/Documentation/frv/
Dkernel-ABI.txt10 supervisor stack pointer, and most of them do not have any scratch
/linux-4.4.14/Documentation/networking/
Dfilter.txt185 M[] 16 x 32 bit wide misc registers aka "scratch memory
630 R0 - R5 are scratch registers and eBPF program needs spill/fill them if
786 interpreter. R0-R5 are scratch registers, so eBPF program needs to preserve
971 the data fetched from the packet. Registers R1-R5 are scratch registers
Dpacket_mmap.txt756 /* Written from scratch, but kernel-to-user space API usage
/linux-4.4.14/drivers/tty/
Dmxser.c2450 unsigned char scratch, scratch2; in mxser_get_ISA_conf() local
2530 scratch = inb(cap + UART_IIR); in mxser_get_ISA_conf()
2532 if (scratch & 0xC0) in mxser_get_ISA_conf()
/linux-4.4.14/arch/x86/crypto/
Dchacha20-avx2-x86_64.S33 # scratch registers, we save the first four registers on the stack. The
Dchacha20-ssse3-x86_64.S151 # the state matrix in SSE registers four times. As we need some scratch
/linux-4.4.14/Documentation/powerpc/
Dfirmware-assisted-dump.txt251 in the scratch area before the ELF core header. The idea of introducing
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/
Dgpc.fuc27 * - bracket certain functions with scratch writes, useful for debugging
/linux-4.4.14/arch/s390/kernel/
Dentry.S123 .macro LAST_BREAK scratch
124 srag \scratch,%r10,23
/linux-4.4.14/arch/sh/lib/
Dmemcpy-sh4.S449 ! We could do this with the four scratch registers, but if src
/linux-4.4.14/drivers/usb/serial/
DKconfig296 developed from scratch by Brian Warner.
615 developed from scratch by Brian Warner.
/linux-4.4.14/Documentation/ia64/
Dfsys.txt144 user-level, care needs to be taken to clear any scratch registers
/linux-4.4.14/Documentation/scsi/
Darcmsr_spec.txt18 ** offset 0xe00 : for RS232 in (scratch buffer)
Dscsi_mid_low_api.txt504 * The hostdata array (by default zero length) is a per host scratch
582 * The hostdata array (by default zero length) is a per host scratch
/linux-4.4.14/Documentation/trace/
Dftrace-design.txt44 you to bang ideas off of. Typically, register usage (argument/scratch/etc...)
/linux-4.4.14/Documentation/
Dsvga.txt229 2.0 (28-Jan-96) Rewritten from scratch. Cirrus Logic 64XX support added, almost
/linux-4.4.14/drivers/net/wireless/iwlegacy/
Dcommands.h1462 struct il_dram_scratch scratch; member
/linux-4.4.14/Documentation/DocBook/
Dnetworking.xml.db200 API-xdr-set-scratch-buffer
/linux-4.4.14/
DREADME9 Linux is a clone of the operating system Unix, written from scratch by
/linux-4.4.14/arch/xtensa/kernel/
Dentry.S1069 access_ok a3, a7, a0, a2, .Leac # a0: scratch reg, a2: sp
/linux-4.4.14/arch/arm/crypto/
Daesbs-core.S_shipped1078 sub sp, #0x10 @ scratch space to carry over the IV
1296 mov r1, r9 @ use the iv scratch space as out buffer
1334 sub sp, sp, #0x10 @ scratch space to carry over the ctr
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Dcommands.h1267 struct iwl_dram_scratch scratch; member
/linux-4.4.14/Documentation/filesystems/
Drelay.txt90 It is of course possible to use the relay interface from scratch,
/linux-4.4.14/Documentation/s390/
DDebugging390.txt569 16 32 scratch area
570 20 40 scratch area

12