Home
last modified time | relevance | path

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

/linux-4.1.27/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.1.27/drivers/mmc/host/
Dsdhci-pci-o2micro.c187 u8 scratch; in sdhci_pci_o2_probe() local
197 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
200 scratch &= 0x7f; in sdhci_pci_o2_probe()
201 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
208 O2_SD_CLKREQ, &scratch); in sdhci_pci_o2_probe()
211 scratch |= 0x20; in sdhci_pci_o2_probe()
212 pci_write_config_byte(chip->pdev, O2_SD_CLKREQ, scratch); in sdhci_pci_o2_probe()
217 ret = pci_read_config_byte(chip->pdev, O2_SD_CAPS, &scratch); in sdhci_pci_o2_probe()
220 scratch |= 0x01; in sdhci_pci_o2_probe()
221 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.c362 u8 scratch; in jmicron_pmos() local
365 ret = pci_read_config_byte(chip->pdev, 0xAE, &scratch); in jmicron_pmos()
374 scratch |= 0x47; in jmicron_pmos()
376 scratch &= ~0x47; in jmicron_pmos()
378 ret = pci_write_config_byte(chip->pdev, 0xAE, scratch); in jmicron_pmos()
455 u8 scratch; in jmicron_enable_mmc() local
457 scratch = readb(host->ioaddr + 0xC0); in jmicron_enable_mmc()
460 scratch |= 0x01; in jmicron_enable_mmc()
462 scratch &= ~0x01; in jmicron_enable_mmc()
464 writeb(scratch, host->ioaddr + 0xC0); in jmicron_enable_mmc()
[all …]
Dsdhci.c319 u32 uninitialized_var(scratch); in sdhci_read_block_pio()
342 scratch = sdhci_readl(host, SDHCI_BUFFER); in sdhci_read_block_pio()
346 *buf = scratch & 0xFF; in sdhci_read_block_pio()
349 scratch >>= 8; in sdhci_read_block_pio()
364 u32 scratch; in sdhci_write_block_pio() local
371 scratch = 0; in sdhci_write_block_pio()
387 scratch |= (u32)*buf << (chunk * 8); in sdhci_write_block_pio()
394 sdhci_writel(host, scratch, SDHCI_BUFFER); in sdhci_write_block_pio()
396 scratch = 0; in sdhci_write_block_pio()
/linux-4.1.27/arch/arc/include/asm/
Dirqflags.h163 .macro IRQ_DISABLE scratch
164 lr \scratch, [status32]
165 bic \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
166 flag \scratch
170 .macro IRQ_ENABLE scratch
171 lr \scratch, [status32]
172 or \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK)
173 flag \scratch
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/block/paride/
Dparide.c169 static int default_test_proto(PIA * pi, char *scratch, int verbose) in default_test_proto() argument
195 static int pi_test_proto(PIA * pi, char *scratch, int verbose) in pi_test_proto() argument
201 res = pi->proto->test_proto(pi, scratch, verbose); in pi_test_proto()
203 res = default_test_proto(pi, scratch, verbose); in pi_test_proto()
272 static int pi_probe_mode(PIA * pi, int max, char *scratch, int verbose) in pi_probe_mode() argument
285 return (!pi_test_proto(pi, scratch, verbose)); in pi_probe_mode()
295 if (!pi_test_proto(pi, scratch, verbose)) in pi_probe_mode()
302 static int pi_probe_unit(PIA * pi, int unit, char *scratch, int verbose) in pi_probe_unit() argument
329 if (pi_probe_mode(pi, max, scratch, verbose)) in pi_probe_unit()
339 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
Dfit2.c116 static void fit2_log_adapter( PIA *pi, char * scratch, int verbose ) in fit2_log_adapter() argument
Dktti.c93 static void ktti_log_adapter( PIA *pi, char * scratch, int verbose ) in ktti_log_adapter() argument
Dparide.h68 char * scratch, /* address of 512 byte buffer */
Daten.c123 static void aten_log_adapter( PIA *pi, char * scratch, int verbose ) in aten_log_adapter() argument
Don20.c114 static void on20_log_adapter( PIA *pi, char * scratch, int verbose ) in on20_log_adapter() argument
Dbpck6.c198 static void bpck6_log_adapter( PIA *pi, char * scratch, int verbose ) in bpck6_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
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.1.27/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 …]
Dfusbh200-hcd.c371 u32 scratch; in qh_lines() local
393 scratch = hc32_to_cpup(fusbh200, &hw->hw_info1); in qh_lines()
397 qh, scratch & 0x007f, in qh_lines()
398 speed_char (scratch), in qh_lines()
399 (scratch >> 8) & 0x000f, in qh_lines()
400 scratch, hc32_to_cpup(fusbh200, &hw->hw_info2), in qh_lines()
410 scratch = hc32_to_cpup(fusbh200, &td->hw_token); in qh_lines()
416 else if (QTD_LENGTH (scratch)) { in qh_lines()
425 switch ((scratch>>8)&0x03) { in qh_lines()
431 (scratch >> 16) & 0x7fff, in qh_lines()
[all …]
Dfotg210-hcd.c383 u32 scratch; in qh_lines() local
405 scratch = hc32_to_cpup(fotg210, &hw->hw_info1); in qh_lines()
409 qh, scratch & 0x007f, in qh_lines()
410 speed_char(scratch), in qh_lines()
411 (scratch >> 8) & 0x000f, in qh_lines()
412 scratch, hc32_to_cpup(fotg210, &hw->hw_info2), in qh_lines()
422 scratch = hc32_to_cpup(fotg210, &td->hw_token); in qh_lines()
428 else if (QTD_LENGTH(scratch)) { in qh_lines()
437 switch ((scratch>>8)&0x03) { in qh_lines()
451 (scratch >> 16) & 0x7fff, in qh_lines()
[all …]
/linux-4.1.27/arch/mips/mm/
Dtlbex.c1026 const int scratch = 1; /* Our extra working register */ in build_update_entries() local
1028 uasm_i_addu(p, scratch, 0, ptep); in build_update_entries()
1037 uasm_i_lw(p, tmp, 0, scratch); in build_update_entries()
1038 uasm_i_lw(p, ptep, sizeof(pte_t), scratch); in build_update_entries()
1039 uasm_i_lui(p, scratch, 0xff); in build_update_entries()
1040 uasm_i_ori(p, scratch, scratch, 0xffff); in build_update_entries()
1041 uasm_i_and(p, tmp, scratch, tmp); in build_update_entries()
1042 uasm_i_and(p, ptep, scratch, ptep); in build_update_entries()
1087 const int scratch = 1; /* Our extra working register */ in build_fast_tlb_refill_handler() local
1089 rv.huge_pte = scratch; in build_fast_tlb_refill_handler()
[all …]
/linux-4.1.27/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.1.27/drivers/mtd/devices/
Dmtd_dataflash.c461 uint8_t *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 uint8_t *scratch; in dataflash_write_user_otp() local
561 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
[all …]
/linux-4.1.27/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.1.27/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.c655 struct page *scratch; in filelayout_decode_layout() local
662 scratch = alloc_page(gfp_flags); in filelayout_decode_layout()
663 if (!scratch) in filelayout_decode_layout()
667 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in filelayout_decode_layout()
733 __free_page(scratch); in filelayout_decode_layout()
737 __free_page(scratch); in filelayout_decode_layout()
/linux-4.1.27/drivers/scsi/
Dses.c128 struct ses_device *ses_dev = edev->scratch; in ses_set_page2_descriptor()
158 struct ses_device *ses_dev = edev->scratch; in ses_get_page2_descriptor()
300 struct ses_device *ses_dev = edev->scratch; in ses_show_id()
389 struct ses_component *scomp = ecomp->scratch; in ses_process_descriptor()
439 if (!edev->component[0].scratch) in ses_enclosure_find_by_addr()
443 scomp = edev->component[i].scratch; in ses_enclosure_find_by_addr()
463 struct ses_device *ses_dev = edev->scratch; in ses_enclosure_data_process()
708 edev->scratch = ses_dev; in ses_intf_add()
710 edev->component[i].scratch = scomp + i; in ses_intf_add()
769 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.c316 __le32 *scratch; member
870 __le32 *scratch; in stex_ss_mu_intr() local
881 scratch = hba->scratch + hba->status_tail; in stex_ss_mu_intr()
882 value = le32_to_cpu(*scratch); in stex_ss_mu_intr()
887 *scratch = 0; in stex_ss_mu_intr()
1053 __le32 *scratch; in stex_ss_handshake() local
1093 scratch = hba->scratch; in stex_ss_handshake()
1095 while (!(le32_to_cpu(*scratch) & SS_STS_HANDSHAKE)) { in stex_ss_handshake()
1107 memset(scratch, 0, scratch_size); in stex_ss_handshake()
1613 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.c1098 ips_copp_wait_item_t *scratch; in ips_queue_lck() local
1119 scratch = kmalloc(sizeof (ips_copp_wait_item_t), GFP_ATOMIC); in ips_queue_lck()
1121 if (!scratch) { in ips_queue_lck()
1128 scratch->scsi_cmd = SC; in ips_queue_lck()
1129 scratch->next = NULL; in ips_queue_lck()
1131 ips_putq_copp_tail(&ha->copp_waitlist, scratch); in ips_queue_lck()
Dipr.h1614 unsigned long scratch; member
Dipr.c692 ipr_cmd->u.scratch = 0; in ipr_init_ipr_cmnd()
/linux-4.1.27/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.1.27/drivers/s390/kvm/
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.1.27/arch/arc/kernel/
Dsignal.c70 err = __copy_to_user(&(sf->uc.uc_mcontext.regs.scratch), regs, in stash_usr_regs()
71 sizeof(sf->uc.uc_mcontext.regs.scratch)); in stash_usr_regs()
86 err |= __copy_from_user(regs, &(sf->uc.uc_mcontext.regs.scratch), in restore_usr_regs()
87 sizeof(sf->uc.uc_mcontext.regs.scratch)); in restore_usr_regs()
Dptrace.c50 REG_O_CHUNK(scratch, callee, ptregs); in genregs_get()
101 REG_IN_CHUNK(scratch, pad2, ptregs); /* pt_regs[bta..sp] */ in genregs_set()
Dentry.S255 ; can clobber scratch regs, hence use of stack to stash it
445 ; clobbered them (since they are in scratch regs). The tracer could also
/linux-4.1.27/drivers/gpu/drm/i915/
Dintel_ringbuffer.c217 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in intel_emit_post_sync_nonzero_flush()
254 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in gen6_render_ring_flush()
325 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in gen7_render_ring_flush()
408 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in gen8_render_ring_flush()
655 if (ring->scratch.obj == NULL) in intel_fini_pipe_control()
659 kunmap(sg_page(ring->scratch.obj->pages->sgl)); in intel_fini_pipe_control()
660 i915_gem_object_ggtt_unpin(ring->scratch.obj); in intel_fini_pipe_control()
663 drm_gem_object_unreference(&ring->scratch.obj->base); in intel_fini_pipe_control()
664 ring->scratch.obj = NULL; in intel_fini_pipe_control()
672 WARN_ON(ring->scratch.obj); in intel_init_pipe_control()
[all …]
Di915_gem_gtt.c496 scratch_pte = gen8_pte_encode(ppgtt->base.scratch.addr, in gen8_ppgtt_clear_range()
868 scratch_pte = vm->pte_encode(vm->scratch.addr, I915_CACHE_LLC, true, 0); in gen6_dump_ppgtt()
1108 scratch_pte = vm->pte_encode(vm->scratch.addr, I915_CACHE_LLC, true, 0); in gen6_ppgtt_clear_range()
1177 WARN_ON(vm->scratch.addr == 0); in gen6_initialize_pt()
1179 scratch_pte = vm->pte_encode(vm->scratch.addr, in gen6_initialize_pt()
1439 ppgtt->base.scratch = dev_priv->gtt.base.scratch; in __hw_ppgtt_init()
1842 scratch_pte = gen8_pte_encode(vm->scratch.addr, in gen8_ggtt_clear_range()
1868 scratch_pte = vm->pte_encode(vm->scratch.addr, I915_CACHE_LLC, use_scratch, 0); in gen6_ggtt_clear_range()
2150 dev_priv->gtt.base.scratch.page = page; in setup_scratch_page()
2151 dev_priv->gtt.base.scratch.addr = dma_addr; in setup_scratch_page()
[all …]
Di915_gem_gtt.h241 } scratch; member
Dintel_ringbuffer.h289 } scratch; member
Di915_gpu_error.c1007 ring->scratch.obj); in i915_gem_record_rings()
Dintel_lrc.c1292 u32 scratch_addr = ring->scratch.gtt_offset + 2 * CACHELINE_BYTES; in gen8_emit_flush_render()
Dintel_display.c9867 intel_ring_emit(ring, ring->scratch.gtt_offset + 256); in intel_gen7_queue_flip()
/linux-4.1.27/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.1.27/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd_lib-linux.c95 struct kvec scratch; in ksocknal_lib_send_iov() local
96 struct kvec *scratchiov = &scratch; in ksocknal_lib_send_iov()
156 struct kvec scratch; in ksocknal_lib_send_kiov() local
157 struct kvec *scratchiov = &scratch; in ksocknal_lib_send_kiov()
206 struct kvec scratch; in ksocknal_lib_recv_iov() local
207 struct kvec *scratchiov = &scratch; in ksocknal_lib_recv_iov()
310 struct kvec scratch; in ksocknal_lib_recv_kiov() local
311 struct kvec *scratchiov = &scratch; in ksocknal_lib_recv_kiov()
/linux-4.1.27/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.1.27/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.1.27/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.S87 .register %g2,#scratch
88 .register %g3,#scratch
DU3memcpy.S60 .register %g2,#scratch
61 .register %g3,#scratch
DNGmemcpy.S78 .register %g2,#scratch
79 .register %g3,#scratch
DNG2memcpy.S172 .register %g2,#scratch
173 .register %g3,#scratch
DU1memcpy.S118 .register %g2,#scratch
119 .register %g3,#scratch
/linux-4.1.27/include/linux/
Denclosure.h92 void *scratch; member
106 void *scratch; member
/linux-4.1.27/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.1.27/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.c2765 rdev->scratch.num_reg = 7; in r600_scratch_init()
2766 rdev->scratch.reg_base = SCRATCH_REG0; in r600_scratch_init()
2767 for (i = 0; i < rdev->scratch.num_reg; i++) { in r600_scratch_init()
2768 rdev->scratch.free[i] = true; in r600_scratch_init()
2769 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in r600_scratch_init()
2775 uint32_t scratch; in r600_ring_test() local
2780 r = radeon_scratch_get(rdev, &scratch); in r600_ring_test()
2785 WREG32(scratch, 0xCAFEDEAD); in r600_ring_test()
2789 radeon_scratch_free(rdev, scratch); in r600_ring_test()
2793 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.c3638 uint32_t scratch; in r100_ring_test() local
3643 r = radeon_scratch_get(rdev, &scratch); in r100_ring_test()
3648 WREG32(scratch, 0xCAFEDEAD); in r100_ring_test()
3652 radeon_scratch_free(rdev, scratch); in r100_ring_test()
3655 radeon_ring_write(ring, PACKET0(scratch, 0)); in r100_ring_test()
3659 tmp = RREG32(scratch); in r100_ring_test()
3669 scratch, tmp); in r100_ring_test()
3672 radeon_scratch_free(rdev, scratch); in r100_ring_test()
3694 uint32_t scratch; in r100_ib_test() local
3699 r = radeon_scratch_get(rdev, &scratch); in r100_ib_test()
[all …]
Dcik.c3823 rdev->scratch.num_reg = 7; in cik_scratch_init()
3824 rdev->scratch.reg_base = SCRATCH_REG0; in cik_scratch_init()
3825 for (i = 0; i < rdev->scratch.num_reg; i++) { in cik_scratch_init()
3826 rdev->scratch.free[i] = true; in cik_scratch_init()
3827 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in cik_scratch_init()
3844 uint32_t scratch; in cik_ring_test() local
3849 r = radeon_scratch_get(rdev, &scratch); in cik_ring_test()
3854 WREG32(scratch, 0xCAFEDEAD); in cik_ring_test()
3858 radeon_scratch_free(rdev, scratch); in cik_ring_test()
3862 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.c3360 rdev->scratch.num_reg = 7; in si_scratch_init()
3361 rdev->scratch.reg_base = SCRATCH_REG0; in si_scratch_init()
3362 for (i = 0; i < rdev->scratch.num_reg; i++) { in si_scratch_init()
3363 rdev->scratch.free[i] = true; in si_scratch_init()
3364 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in si_scratch_init()
Dradeon.h2374 struct radeon_scratch scratch; member
/linux-4.1.27/fs/nfs/blocklayout/
Ddev.c316 struct page *scratch; in bl_alloc_deviceid_node() local
320 scratch = alloc_page(gfp_mask); in bl_alloc_deviceid_node()
321 if (!scratch) in bl_alloc_deviceid_node()
325 xdr_set_scratch_buffer(&xdr, page_address(scratch), PAGE_SIZE); in bl_alloc_deviceid_node()
360 __free_page(scratch); in bl_alloc_deviceid_node()
Dblocklayout.c613 struct page *scratch; in bl_alloc_lseg() local
626 scratch = alloc_page(gfp_mask); in bl_alloc_lseg()
627 if (!scratch) in bl_alloc_lseg()
632 xdr_set_scratch_buffer(&xdr, page_address(scratch), PAGE_SIZE); in bl_alloc_lseg()
681 __free_page(scratch); in bl_alloc_lseg()
/linux-4.1.27/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.1.27/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.1.27/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.c208 struct page *scratch; in ff_layout_alloc_lseg() local
215 scratch = alloc_page(gfp_flags); in ff_layout_alloc_lseg()
216 if (!scratch) in ff_layout_alloc_lseg()
221 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE); in ff_layout_alloc_lseg()
355 __free_page(scratch); in ff_layout_alloc_lseg()
/linux-4.1.27/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.1.27/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.1.27/include/linux/crush/
Dmapper.h18 int *scratch);
/linux-4.1.27/arch/s390/kernel/
Dentry.S84 .macro HANDLE_SIE_INTERCEPT scratch,reason
88 lgr \scratch,%r9
89 slg \scratch,BASED(.Lsie_critical)
90 clg \scratch,BASED(.Lsie_critical_length)
138 .macro UPDATE_VTIME scratch,enter_timer
139 lg \scratch,__LC_EXIT_TIMER
140 slg \scratch,\enter_timer
141 alg \scratch,__LC_USER_TIMER
142 stg \scratch,__LC_USER_TIMER
143 lg \scratch,__LC_LAST_UPDATE_TIMER
[all …]
/linux-4.1.27/mm/
Dmempolicy.c760 NODEMASK_SCRATCH(scratch); in do_set_mempolicy()
763 if (!scratch) in do_set_mempolicy()
773 ret = mpol_set_nodemask(new, nodes, scratch); in do_set_mempolicy()
788 NODEMASK_SCRATCH_FREE(scratch); in do_set_mempolicy()
1192 NODEMASK_SCRATCH(scratch); in do_mbind()
1193 if (scratch) { in do_mbind()
1196 err = mpol_set_nodemask(new, nmask, scratch); in do_mbind()
1202 NODEMASK_SCRATCH_FREE(scratch); in do_mbind()
1353 NODEMASK_SCRATCH(scratch); in SYSCALL_DEFINE4()
1355 if (!scratch) in SYSCALL_DEFINE4()
[all …]
/linux-4.1.27/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.1.27/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.1.27/sound/soc/codecs/
Dwm_adsp.c382 void *scratch; in wm_coeff_write_control() local
396 scratch = kmemdup(buf, ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_write_control()
397 if (!scratch) in wm_coeff_write_control()
400 ret = regmap_raw_write(adsp->regmap, reg, scratch, in wm_coeff_write_control()
405 kfree(scratch); in wm_coeff_write_control()
410 kfree(scratch); in wm_coeff_write_control()
437 void *scratch; in wm_coeff_read_control() local
451 scratch = kmalloc(ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_read_control()
452 if (!scratch) in wm_coeff_read_control()
455 ret = regmap_raw_read(adsp->regmap, reg, scratch, ctl->len); in wm_coeff_read_control()
[all …]
/linux-4.1.27/drivers/usb/gadget/udc/
Dnet2280.c1845 u32 scratch; in defect7374_enable_data_eps_zero() local
1849 scratch = get_idx_reg(dev->regs, SCRATCH); in defect7374_enable_data_eps_zero()
1851 WARN_ON((scratch & (0xf << DEFECT7374_FSM_FIELD)) in defect7374_enable_data_eps_zero()
1854 scratch &= ~(0xf << DEFECT7374_FSM_FIELD); in defect7374_enable_data_eps_zero()
1909 scratch |= DEFECT7374_FSM_WAITING_FOR_CONTROL_READ; in defect7374_enable_data_eps_zero()
1910 set_idx_reg(dev->regs, SCRATCH, scratch); in defect7374_enable_data_eps_zero()
2582 u32 scratch, fsmvalue; in defect7374_workaround() local
2586 scratch = get_idx_reg(dev->regs, SCRATCH); in defect7374_workaround()
2587 fsmvalue = scratch & (0xf << DEFECT7374_FSM_FIELD); in defect7374_workaround()
2588 scratch &= ~(0xf << DEFECT7374_FSM_FIELD); in defect7374_workaround()
[all …]
Dnet2272.c1719 u8 num, scratch; in net2272_handle_stat0_irqs() local
1806 scratch = (1 << DATA_PACKET_TRANSMITTED_INTERRUPT_ENABLE) in net2272_handle_stat0_irqs()
1811 scratch = (1 << DATA_PACKET_RECEIVED_INTERRUPT_ENABLE) in net2272_handle_stat0_irqs()
1814 net2272_ep_write(ep, EP_IRQENB, scratch); in net2272_handle_stat0_irqs()
1950 scratch = stat & 0x0f; in net2272_handle_stat0_irqs()
1952 for (num = 0; scratch; num++) { in net2272_handle_stat0_irqs()
1957 if ((scratch & t) == 0) in net2272_handle_stat0_irqs()
1959 scratch ^= t; in net2272_handle_stat0_irqs()
/linux-4.1.27/arch/arc/include/uapi/asm/
Dptrace.h41 } scratch; member
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.h420 unsigned char *scratch; member
/linux-4.1.27/arch/x86/kernel/
Dasm-offsets.c64 OFFSET(BP_scratch, boot_params, scratch); in common()
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()
/linux-4.1.27/arch/arm/boot/dts/
Dqcom-ipq8064-ap148.dts78 label = "scratch";
/linux-4.1.27/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.1.27/net/ceph/crush/
Dmapper.c745 int *scratch) in crush_do_rule() argument
748 int *a = scratch; in crush_do_rule()
749 int *b = scratch + result_max; in crush_do_rule()
750 int *c = scratch + result_max*2; in crush_do_rule()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/Documentation/x86/
Dzero-page.txt28 1E4/004 ALL scratch Scratch field for the kernel setup code
/linux-4.1.27/arch/x86/include/uapi/asm/
Dbootparam.h132 __u32 scratch; /* Scratch field! */ /* 0x1e4 */ member
/linux-4.1.27/arch/blackfin/mach-bf561/
Datomic.S22 .macro safe_testset addr:req, scratch:req
24 cli \scratch;
26 sti \scratch;
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dpcie.c215 void *scratch; member
1150 if (devinfo->shared.scratch) in brcmf_pcie_release_scratchbuffers()
1153 devinfo->shared.scratch, in brcmf_pcie_release_scratchbuffers()
1167 devinfo->shared.scratch = dma_alloc_coherent(&devinfo->pdev->dev, in brcmf_pcie_init_scratchbuffers()
1170 if (!devinfo->shared.scratch) in brcmf_pcie_init_scratchbuffers()
1173 memset(devinfo->shared.scratch, 0, BRCMF_DMA_D2H_SCRATCH_BUF_LEN); in brcmf_pcie_init_scratchbuffers()
1174 brcmf_dma_flush(devinfo->shared.scratch, BRCMF_DMA_D2H_SCRATCH_BUF_LEN); in brcmf_pcie_init_scratchbuffers()
/linux-4.1.27/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.1.27/drivers/staging/media/lirc/
Dlirc_serial.c711 u8 scratch, scratch2, scratch3; in hardware_init_port() local
717 scratch = sinp(UART_IER); in hardware_init_port()
728 soutp(UART_IER, scratch); in hardware_init_port()
/linux-4.1.27/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.1.27/drivers/net/wireless/iwlwifi/mvm/
Dfw-api-tx.h228 } scratch; /* DRAM_SCRATCH_API_U_VER_1 */ member
/linux-4.1.27/include/linux/sunrpc/
Dxdr.h205 struct kvec scratch; /* Scratch buffer */ member
/linux-4.1.27/Documentation/video4linux/
DREADME.ir21 was very confusing and I decided to basically start over from scratch.
/linux-4.1.27/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.1.27/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.1.27/drivers/usb/isp1760/
Disp1760-udc.c1396 u16 scratch; in isp1760_udc_init() local
1407 scratch = isp1760_udc_read(udc, DC_SCRATCH); in isp1760_udc_init()
1409 if (scratch != 0xbabe) { in isp1760_udc_init()
1412 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.1.27/drivers/mtd/nand/
DKconfig67 hex "Denali NAND size scratch register address"
71 Some platforms place the NAND chip size in a scratch register
74 scratch register here to enable this feature. On Intel Moorestown
75 boards, the scratch register is at 0xFF108018.
/linux-4.1.27/drivers/block/
Dida_cmd.h274 __u8 scratch[16]; member
/linux-4.1.27/drivers/tty/serial/8250/
D8250_core.c915 unsigned char scratch, status1, status2; in autoconfig_8250() local
919 scratch = serial_in(up, UART_SCR); in autoconfig_8250()
924 serial_out(up, UART_SCR, scratch); in autoconfig_8250()
1147 unsigned char status1, scratch, scratch2, scratch3; in autoconfig() local
1182 scratch = serial_in(up, UART_IER); in autoconfig()
1197 serial_out(up, UART_IER, scratch); in autoconfig()
1247 scratch = serial_in(up, UART_IIR) >> 6; in autoconfig()
1249 switch (scratch) { in autoconfig()
1307 DEBUG_AUTOCONF("iir=%d ", scratch); in autoconfig()
/linux-4.1.27/fs/nfsd/
Dxdr3.h179 struct svc_fh scratch; member
Dnfs3xdr.c841 struct svc_fh *fh = &cd->scratch; in encode_entryplus_baggage()
Dnfs4proc.c1598 xdr->scratch.iov_len = 0; in svcxdr_init_encode()
Dnfs4xdr.c2782 xdr->scratch.iov_len = 0; in svcxdr_init_encode_from_buffer()
/linux-4.1.27/arch/alpha/include/asm/
Dcore_wildfire.h62 wildfire_64 scratch[4]; member
/linux-4.1.27/drivers/mmc/card/
Dmmc_test.c145 u8 scratch[BUFFER_SIZE]; member
911 test->scratch[i] = i; in mmc_test_transfer()
913 memset(test->scratch, 0, BUFFER_SIZE); in mmc_test_transfer()
916 sg_copy_from_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); in mmc_test_transfer()
963 sg_copy_to_buffer(sg, sg_len, test->scratch, BUFFER_SIZE); in mmc_test_transfer()
966 if (test->scratch[i] != (u8)i) in mmc_test_transfer()
/linux-4.1.27/Documentation/mn10300/
DABI.txt115 unavailable for the compiler to use as a scratch register.
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/fuc/
Dhost.fuc136 // store each fifo's base/size in H2D/D2H scratch regs
/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/
Dinternal.h201 __le32 scratch; member
Dtx.c515 BUILD_BUG_ON(offsetof(struct iwl_pcie_txq_scratch_buf, scratch) != in iwl_pcie_txq_alloc()
517 offsetof(struct iwl_tx_cmd, scratch)); in iwl_pcie_txq_alloc()
1810 offsetof(struct iwl_tx_cmd, scratch); in iwl_trans_pcie_tx()
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dentry.S348 movem $r9, [$sp] ; Save non-scratch registers and R9.
361 movem [$sp+], $r9 ; Restore non-scratch registers and R9.
/linux-4.1.27/arch/parisc/kernel/
Dperf_asm.S114 ;* %r1 - scratch
115 ;* %r29 - scratch
/linux-4.1.27/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.1.27/arch/m32r/lib/
Dashxdi3.S11 ; r3 scratch
/linux-4.1.27/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.1.27/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
Daic79xx.seq1345 * protects against bogus data in scratch ram and the residual counts
/linux-4.1.27/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.1.27/arch/arc/mm/
Dtlbex.S364 ; Restore the 4-scratch regs saved by fast path miss handler
/linux-4.1.27/include/uapi/drm/
Dradeon_drm.h273 } scratch; member
/linux-4.1.27/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.1.27/Documentation/frv/
Dkernel-ABI.txt10 supervisor stack pointer, and most of them do not have any scratch
/linux-4.1.27/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.1.27/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.1.27/Documentation/powerpc/
Dfirmware-assisted-dump.txt251 in the scratch area before the ELF core header. The idea of introducing
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/fuc/
Dgpc.fuc27 * - bracket certain functions with scratch writes, useful for debugging
/linux-4.1.27/arch/sh/lib/
Dmemcpy-sh4.S449 ! We could do this with the four scratch registers, but if src
/linux-4.1.27/drivers/usb/serial/
DKconfig296 developed from scratch by Brian Warner.
615 developed from scratch by Brian Warner.
/linux-4.1.27/Documentation/ia64/
Dfsys.txt144 user-level, care needs to be taken to clear any scratch registers
/linux-4.1.27/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.1.27/Documentation/trace/
Dftrace-design.txt44 you to bang ideas off of. Typically, register usage (argument/scratch/etc...)
/linux-4.1.27/Documentation/
Dsvga.txt229 2.0 (28-Jan-96) Rewritten from scratch. Cirrus Logic 64XX support added, almost
/linux-4.1.27/drivers/net/wireless/iwlegacy/
Dcommands.h1462 struct il_dram_scratch scratch; member
D4965-mac.c1869 offsetof(struct il_tx_cmd, scratch); in il4965_tx_skb()
/linux-4.1.27/arch/xtensa/kernel/
Dentry.S1005 access_ok a3, a7, a0, a2, .Leac # a0: scratch reg, a2: sp
/linux-4.1.27/
DREADME9 Linux is a clone of the operating system Unix, written from scratch by
/linux-4.1.27/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.1.27/drivers/net/wireless/iwlwifi/dvm/
Dcommands.h1267 struct iwl_dram_scratch scratch; member
/linux-4.1.27/Documentation/filesystems/
Drelay.txt90 It is of course possible to use the relay interface from scratch,
/linux-4.1.27/Documentation/s390/
DDebugging390.txt569 16 32 scratch area
570 20 40 scratch area
/linux-4.1.27/arch/m68k/ifpsp060/src/
Dfplsp.S311 set FP_SCR1, LV+80 # fp scratch 1
317 set FP_SCR0, LV+68 # fp scratch 0
347 set L_SCR3, LV+28 # integer scratch 3
348 set L_SCR2, LV+24 # integer scratch 2
349 set L_SCR1, LV+20 # integer scratch 1
Dfpsp.S14509 clr.l %d1 # clear scratch register
16284 clr.l %d1 # clear scratch reg
/linux-4.1.27/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt3802 contaminate the UML build. If this happens, start from scratch with