Home
last modified time | relevance | path

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

123456

/drivers/staging/wusbcore/
Dcrypto.c179 struct wusb_mac_scratch *scratch, in wusb_ccm_mac() argument
192 BUILD_BUG_ON(sizeof(*a) != sizeof(scratch->b1) - sizeof(scratch->b1.la)); in wusb_ccm_mac()
193 BUILD_BUG_ON(sizeof(scratch->b0) != sizeof(struct aes_ccm_block)); in wusb_ccm_mac()
194 BUILD_BUG_ON(sizeof(scratch->b1) != sizeof(struct aes_ccm_block)); in wusb_ccm_mac()
195 BUILD_BUG_ON(sizeof(scratch->ax) != sizeof(struct aes_ccm_block)); in wusb_ccm_mac()
198 scratch->b0.flags = 0x59; /* Format B0 */ in wusb_ccm_mac()
199 scratch->b0.ccm_nonce = *n; in wusb_ccm_mac()
200 scratch->b0.lm = cpu_to_be16(0); /* WUSB1.0[6.5] sez l(m) is 0 */ in wusb_ccm_mac()
209 scratch->b1.la = cpu_to_be16(blen + 14); in wusb_ccm_mac()
210 memcpy(&scratch->b1.mac_header, a, sizeof(*a)); in wusb_ccm_mac()
[all …]
/drivers/mmc/host/
Dsdhci-pci-o2micro.c99 u16 scratch; in sdhci_o2_enable_internal_clock() local
119 scratch = sdhci_readw(host, O2_PLL_DLL_WDT_CONTROL1); in sdhci_o2_enable_internal_clock()
120 if (scratch & O2_PLL_LOCK_STATUS) in sdhci_o2_enable_internal_clock()
584 u8 scratch; in sdhci_pci_o2_probe() local
594 O2_SD_LOCK_WP, &scratch); in sdhci_pci_o2_probe()
597 scratch &= 0x7f; in sdhci_pci_o2_probe()
598 pci_write_config_byte(chip->pdev, O2_SD_LOCK_WP, scratch); in sdhci_pci_o2_probe()
605 O2_SD_CLKREQ, &scratch); in sdhci_pci_o2_probe()
608 scratch |= 0x20; in sdhci_pci_o2_probe()
609 pci_write_config_byte(chip->pdev, O2_SD_CLKREQ, scratch); in sdhci_pci_o2_probe()
[all …]
Dmmc_spi.c105 struct scratch { struct
132 struct scratch *data;
435 struct scratch *data = host->data; in mmc_spi_command_send()
563 struct scratch *scratch = host->data; in mmc_spi_setup_data_message() local
578 scratch->data_token = SPI_TOKEN_MULTI_WRITE; in mmc_spi_setup_data_message()
580 scratch->data_token = SPI_TOKEN_SINGLE; in mmc_spi_setup_data_message()
581 t->tx_buf = &scratch->data_token; in mmc_spi_setup_data_message()
583 t->tx_dma = dma + offsetof(struct scratch, data_token); in mmc_spi_setup_data_message()
602 t->tx_buf = &scratch->crc_val; in mmc_spi_setup_data_message()
604 t->tx_dma = dma + offsetof(struct scratch, crc_val); in mmc_spi_setup_data_message()
[all …]
Dsdhci-spear.c127 u32 scratch; in sdhci_remove() local
129 scratch = readl(host->ioaddr + SDHCI_INT_STATUS); in sdhci_remove()
130 if (scratch == (u32)-1) in sdhci_remove()
/drivers/infiniband/hw/i40iw/
Di40iw_type.h560 u64 scratch; member
1017 u64 *(*cqp_get_next_send_wqe)(struct i40iw_sc_cqp *, u64 scratch);
1166 u64 scratch; member
1172 u64 scratch; member
1177 u64 scratch; member
1184 u64 scratch; member
1190 u64 scratch; member
1196 u64 scratch; member
1201 u64 scratch; member
1209 u64 scratch; member
[all …]
Di40iw_ctrl.c605 u64 scratch, u32 *wqe_idx) in i40iw_sc_cqp_get_next_send_wqe_idx() argument
628 cqp->scratch_array[*wqe_idx] = scratch; in i40iw_sc_cqp_get_next_send_wqe_idx()
639 u64 *i40iw_sc_cqp_get_next_send_wqe(struct i40iw_sc_cqp *cqp, u64 scratch) in i40iw_sc_cqp_get_next_send_wqe() argument
643 return i40iw_sc_cqp_get_next_send_wqe_idx(cqp, scratch, &wqe_idx); in i40iw_sc_cqp_get_next_send_wqe()
749 info->scratch = cqp->scratch_array[wqe_idx]; in i40iw_sc_ccq_get_cqe_info()
832 u64 scratch, in i40iw_sc_manage_push_page() argument
841 wqe = i40iw_sc_cqp_get_next_send_wqe(cqp, scratch); in i40iw_sc_manage_push_page()
872 u64 scratch, in i40iw_sc_manage_hmc_pm_func_table() argument
882 wqe = i40iw_sc_cqp_get_next_send_wqe(cqp, scratch); in i40iw_sc_manage_hmc_pm_func_table()
910 u64 scratch, in i40iw_sc_set_hmc_resource_profile() argument
[all …]
Di40iw_p.h54 u64 *i40iw_sc_cqp_get_next_send_wqe(struct i40iw_sc_cqp *cqp, u64 scratch);
97 struct i40iw_sc_qp *qp, u64 scratch);
100 struct i40iw_sc_qp *qp, u64 scratch);
103 u64 scratch, u8 hmc_fn_id,
/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
418 static void bpck_log_adapter( PIA *pi, char * scratch, int verbose ) in bpck_log_adapter() argument
427 bpck_read_eeprom(pi,scratch); in bpck_log_adapter()
432 if ((scratch[i] < ' ') || (scratch[i] > '~')) in bpck_log_adapter()
433 scratch[i] = '.'; in bpck_log_adapter()
434 printk("%s: bpck EEPROM: %64.64s\n",pi->device,scratch); in bpck_log_adapter()
435 printk("%s: %64.64s\n",pi->device,&scratch[64]); in bpck_log_adapter()
440 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
/drivers/usb/host/
Dehci-dbg.c373 u32 scratch; in qh_lines() local
396 scratch = hc32_to_cpup(ehci, &hw->hw_info1); in qh_lines()
401 qh, scratch & 0x007f, in qh_lines()
402 speed_char (scratch), in qh_lines()
403 (scratch >> 8) & 0x000f, in qh_lines()
404 scratch, hc32_to_cpup(ehci, &hw->hw_info2), in qh_lines()
420 scratch = hc32_to_cpup(ehci, &td->hw_token); in qh_lines()
426 } else if (QTD_LENGTH(scratch)) { in qh_lines()
432 switch ((scratch >> 8) & 0x03) { in qh_lines()
450 (scratch >> 16) & 0x7fff, in qh_lines()
[all …]
/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_dma.c96 dma_addr_t addr = csi->scratch.paddr; in sun4i_csi_setup_scratch_buffer()
255 csi->scratch.size = 0; in sun4i_csi_start_streaming()
257 csi->scratch.size += csi->fmt.plane_fmt[i].sizeimage; in sun4i_csi_start_streaming()
259 csi->scratch.vaddr = dma_alloc_coherent(csi->dev, in sun4i_csi_start_streaming()
260 csi->scratch.size, in sun4i_csi_start_streaming()
261 &csi->scratch.paddr, in sun4i_csi_start_streaming()
263 if (!csi->scratch.vaddr) { in sun4i_csi_start_streaming()
328 dma_free_coherent(csi->dev, csi->scratch.size, csi->scratch.vaddr, in sun4i_csi_start_streaming()
329 csi->scratch.paddr); in sun4i_csi_start_streaming()
356 dma_free_coherent(csi->dev, csi->scratch.size, csi->scratch.vaddr, in sun4i_csi_stop_streaming()
[all …]
/drivers/gpu/drm/i915/gt/
Dselftest_workarounds.c466 struct i915_vma *scratch; in check_dirty_whitelist() local
471 scratch = create_scratch(ctx->vm, 2 * ARRAY_SIZE(values) + 1); in check_dirty_whitelist()
472 if (IS_ERR(scratch)) in check_dirty_whitelist()
473 return PTR_ERR(scratch); in check_dirty_whitelist()
483 u64 addr = scratch->node.start; in check_dirty_whitelist()
542 GEM_BUG_ON(idx * sizeof(u32) > scratch->size); in check_dirty_whitelist()
587 results = i915_gem_object_pin_map(scratch->obj, I915_MAP_WB); in check_dirty_whitelist()
666 i915_gem_object_unpin_map(scratch->obj); in check_dirty_whitelist()
676 i915_vma_unpin_and_release(&scratch, 0); in check_dirty_whitelist()
979 struct i915_vma *scratch[2]; in live_isolated_whitelist() member
[all …]
/drivers/mtd/devices/
Dmtd_dataflash.c455 u8 *scratch; in otp_read() local
468 scratch = kzalloc(l, GFP_KERNEL); in otp_read()
469 if (!scratch) in otp_read()
475 scratch[0] = OP_READ_SECURITY; in otp_read()
478 t.tx_buf = scratch; in otp_read()
479 t.rx_buf = scratch; in otp_read()
487 memcpy(buf, scratch + 4 + base + off, len); in otp_read()
491 kfree(scratch); in otp_read()
534 u8 *scratch; in dataflash_write_user_otp() local
555 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
[all …]
/drivers/pnp/pnpbios/
Dcore.c89 char *argv[3], **envp, *buf, *scratch; in pnp_dock_event() local
118 scratch = buf; in pnp_dock_event()
121 envp[i++] = scratch; in pnp_dock_event()
122 scratch += sprintf(scratch, "ACTION=%s", dock ? "add" : "remove") + 1; in pnp_dock_event()
125 envp[i++] = scratch; in pnp_dock_event()
126 scratch += sprintf(scratch, "DOCK=%x/%x/%x", in pnp_dock_event()
/drivers/scsi/
Dses.c40 struct ses_device *ses_dev = edev->scratch; in ses_page2_supported()
139 struct ses_device *ses_dev = edev->scratch; in ses_set_page2_descriptor()
169 struct ses_device *ses_dev = edev->scratch; in ses_get_page2_descriptor()
333 struct ses_device *ses_dev = edev->scratch; in ses_show_id()
430 struct ses_component *scomp = ecomp->scratch; in ses_process_descriptor()
480 if (!edev->component[0].scratch) in ses_enclosure_find_by_addr()
484 scomp = edev->component[i].scratch; in ses_enclosure_find_by_addr()
504 struct ses_device *ses_dev = edev->scratch; in ses_enclosure_data_process()
747 edev->scratch = ses_dev; in ses_intf_add()
749 edev->component[i].scratch = scomp + i; in ses_intf_add()
[all …]
/drivers/gpu/drm/i915/
Di915_gem_gtt.c661 vm->scratch[0].base.page = page; in setup_scratch_page()
662 vm->scratch[0].base.daddr = addr; in setup_scratch_page()
681 struct i915_page_dma *p = px_base(&vm->scratch[0]); in cleanup_scratch_page()
693 if (!px_dma(&vm->scratch[0])) /* set to 0 on clones */ in free_scratch()
697 if (!px_dma(&vm->scratch[i])) in free_scratch()
699 cleanup_page_dma(vm, px_base(&vm->scratch[i])); in free_scratch()
789 const struct i915_page_scratch * const scratch) in clear_pd_entry() argument
793 write_dma_entry(px_base(pd), idx, scratch->encode); in clear_pd_entry()
802 const struct i915_page_scratch * const scratch) in release_pd_entry() argument
811 clear_pd_entry(pd, idx, scratch); in release_pd_entry()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_fw1.h189 u32 scratch [ 1]; member
405 HADDR_1 (scratch),
411 HADDR_1 (scratch),
610 HADDR_1 (scratch),
1081 PADDR_B (scratch),
1406 HADDR_1 (scratch),
1412 HADDR_1 (scratch),
1477 HADDR_1 (scratch),
1582 HADDR_1 (scratch),
1610 HADDR_1 (scratch),
[all …]
Dsym_fw2.h183 u32 scratch [ 1]; member
390 HADDR_1 (scratch),
396 HADDR_1 (scratch),
599 HADDR_1 (scratch),
692 PADDR_B (scratch),
696 PADDR_B (scratch),
1352 HADDR_1 (scratch),
1455 HADDR_1 (scratch),
1483 HADDR_1 (scratch),
1844 offsetof(struct sym_hcb, scratch),
[all …]
/drivers/gpu/drm/radeon/
Dradeon_device.c272 rdev->scratch.num_reg = 5; in radeon_scratch_init()
274 rdev->scratch.num_reg = 7; in radeon_scratch_init()
276 rdev->scratch.reg_base = RADEON_SCRATCH_REG0; in radeon_scratch_init()
277 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_init()
278 rdev->scratch.free[i] = true; in radeon_scratch_init()
279 rdev->scratch.reg[i] = rdev->scratch.reg_base + (i * 4); in radeon_scratch_init()
296 for (i = 0; i < rdev->scratch.num_reg; i++) { in radeon_scratch_get()
297 if (rdev->scratch.free[i]) { in radeon_scratch_get()
298 rdev->scratch.free[i] = false; in radeon_scratch_get()
299 *reg = rdev->scratch.reg[i]; in radeon_scratch_get()
[all …]
/drivers/gpu/drm/i915/gem/selftests/
Dhuge_gem_object.c14 unsigned long nreal = obj->scratch / PAGE_SIZE; in huge_free_pages()
27 const unsigned long nreal = obj->scratch / PAGE_SIZE; in huge_get_pages()
120 obj->scratch = phys_size; in huge_gem_object()
/drivers/net/wireless/marvell/libertas/
Dif_sdio.c146 u16 scratch; in if_sdio_read_scratch() local
148 scratch = sdio_readb(card->func, card->scratch_reg, &ret); in if_sdio_read_scratch()
150 scratch |= sdio_readb(card->func, card->scratch_reg + 1, in if_sdio_read_scratch()
159 return scratch; in if_sdio_read_scratch()
636 u16 scratch; in if_sdio_prog_real() local
638 scratch = if_sdio_read_scratch(card, &ret); in if_sdio_prog_real()
642 if (scratch == IF_SDIO_FIRMWARE_OK) in if_sdio_prog_real()
694 u16 scratch; in if_sdio_prog_firmware() local
704 scratch = if_sdio_read_scratch(card, &ret); in if_sdio_prog_firmware()
707 lbs_deb_sdio("firmware status = %#x\n", scratch); in if_sdio_prog_firmware()
[all …]

123456