Home
last modified time | relevance | path

Searched refs:scratchpad (Results 1 – 22 of 22) sorted by relevance

/Linux-v4.19/Documentation/crypto/
Dapi-samples.rst41 char *scratchpad = NULL;
80 scratchpad = kmalloc(16, GFP_KERNEL);
81 if (!scratchpad) {
82 pr_info("could not allocate scratchpad\n");
85 get_random_bytes(scratchpad, 16);
91 sg_init_one(&sk.sg, scratchpad, 16);
109 if (scratchpad)
110 kfree(scratchpad);
/Linux-v4.19/drivers/usb/gadget/udc/bdc/
Dbdc_core.c175 bdc->scratchpad.buff = dma_zalloc_coherent(bdc->dev, sp_buff_size, in scratchpad_setup()
176 &bdc->scratchpad.sp_dma, GFP_KERNEL); in scratchpad_setup()
178 if (!bdc->scratchpad.buff) in scratchpad_setup()
182 bdc->scratchpad.size = sp_buff_size; in scratchpad_setup()
183 low32 = lower_32_bits(bdc->scratchpad.sp_dma); in scratchpad_setup()
184 upp32 = upper_32_bits(bdc->scratchpad.sp_dma); in scratchpad_setup()
192 bdc->scratchpad.buff = NULL; in scratchpad_setup()
233 bdc_writel(bdc->regs, BDC_SPBBAL, bdc->scratchpad.sp_dma); in bdc_mem_init()
291 memset(bdc->scratchpad.buff, 0, bdc->sp_buff_size); in bdc_mem_init()
319 if (bdc->scratchpad.buff) in bdc_mem_free()
[all …]
Dbdc.h422 struct bdc_scratchpad scratchpad; member
/Linux-v4.19/drivers/usb/host/
Dxhci-mem.c1656 xhci->scratchpad = kzalloc_node(sizeof(*xhci->scratchpad), flags, in scratchpad_alloc()
1658 if (!xhci->scratchpad) in scratchpad_alloc()
1661 xhci->scratchpad->sp_array = dma_alloc_coherent(dev, in scratchpad_alloc()
1663 &xhci->scratchpad->sp_dma, flags); in scratchpad_alloc()
1664 if (!xhci->scratchpad->sp_array) in scratchpad_alloc()
1667 xhci->scratchpad->sp_buffers = kcalloc_node(num_sp, sizeof(void *), in scratchpad_alloc()
1669 if (!xhci->scratchpad->sp_buffers) in scratchpad_alloc()
1672 xhci->dcbaa->dev_context_ptrs[0] = cpu_to_le64(xhci->scratchpad->sp_dma); in scratchpad_alloc()
1680 xhci->scratchpad->sp_array[i] = dma; in scratchpad_alloc()
1681 xhci->scratchpad->sp_buffers[i] = buf; in scratchpad_alloc()
[all …]
Dxhci.h1764 struct xhci_scratchpad *scratchpad; member
/Linux-v4.19/crypto/
Ddrbg.c484 unsigned char *temp = drbg->scratchpad; in drbg_ctr_update()
485 unsigned char *df_data = drbg->scratchpad + drbg_statelen(drbg) + in drbg_ctr_update()
776 unsigned char *tmp = drbg->scratchpad + drbg_statelen(drbg); in drbg_hash_df()
815 unsigned char *V = drbg->scratchpad; in drbg_hash_update()
846 memset(drbg->scratchpad, 0, drbg_statelen(drbg)); in drbg_hash_update()
869 ret = drbg_kcapi_hash(drbg, drbg->scratchpad, &datalist); in drbg_hash_process_addtl()
875 drbg->scratchpad, drbg_blocklen(drbg)); in drbg_hash_process_addtl()
878 memset(drbg->scratchpad, 0, drbg_blocklen(drbg)); in drbg_hash_process_addtl()
889 unsigned char *src = drbg->scratchpad; in drbg_hash_hashgen()
890 unsigned char *dst = drbg->scratchpad + drbg_statelen(drbg); in drbg_hash_hashgen()
[all …]
/Linux-v4.19/drivers/irqchip/
Dirq-gic-v3-its-pci-msi.c87 info->scratchpad[0].ul = pci_msi_domain_get_msi_rid(domain, pdev); in its_pci_msi_prepare()
97 if (!info->scratchpad[0].ul) in its_pci_msi_prepare()
Dirq-gic-v3-its-fsl-mc-msi.c46 info->scratchpad[0].ul = mc_bus_dev->icid; in its_fsl_mc_msi_prepare()
Dirq-gic-v3-its-platform-msi.c74 info->scratchpad[0].ul = dev_id; in its_pmsi_prepare()
Dirq-gic-v3-its.c2299 dev_id = info->scratchpad[0].ul; in its_msi_prepare()
2331 info->scratchpad[0].ptr = its_dev; in its_msi_prepare()
2367 struct its_device *its_dev = info->scratchpad[0].ptr; in its_irq_domain_alloc()
/Linux-v4.19/Documentation/
Dntb.txt9 scratchpad and message registers. Scratchpad registers are read-and-writable
104 number) to the peer device using, for instance, scratchpad or message
133 and scratchpad registers of NTB hardware, and as an example simple NTB client.
135 then proceeds to read and write the doorbell scratchpad registers of the NTB.
139 scratchpad, and writes the value plus one to the first peer scratchpad, each
144 * unsafe - Some hardware has known issues with scratchpad and doorbell
190 series of pairs of scratchpad number and value
/Linux-v4.19/include/asm-generic/
Dmsi.h28 } scratchpad[NUM_MSI_ALLOC_SCRATCHPAD_REGS]; member
/Linux-v4.19/drivers/rtc/
Drtc-jz4740.c312 uint32_t scratchpad; in jz4740_rtc_probe() local
366 scratchpad = jz4740_rtc_reg_read(rtc, JZ_REG_RTC_SCRATCHPAD); in jz4740_rtc_probe()
367 if (scratchpad != 0x12345678) { in jz4740_rtc_probe()
/Linux-v4.19/drivers/ntb/test/
DKconfig14 scratchpad registers to be read and written from the debugfs. This
/Linux-v4.19/include/crypto/
Ddrbg.h119 unsigned char *scratchpad; member
/Linux-v4.19/drivers/hwtracing/intel_th/
Dintel_th.h37 unsigned int scratchpad; member
Dgth.c503 reg &= ~output->scratchpad; in intel_th_gth_disable()
548 scrpd |= output->scratchpad; in intel_th_gth_enable()
Dcore.c641 thdev->output.scratchpad = subdev->scrpd; in intel_th_subdevice_alloc()
/Linux-v4.19/drivers/net/wireless/ath/wil6210/
Dtxrx_edma.h190 u16 scratchpad; member
/Linux-v4.19/drivers/mmc/host/
Dsdhci-esdhc-imx.c189 u32 scratchpad; member
560 imx_data->scratchpad = val; in esdhc_writew_le()
575 writel(val << 16 | imx_data->scratchpad, in esdhc_writew_le()
/Linux-v4.19/drivers/scsi/smartpqi/
Dsmartpqi.h685 __le32 scratchpad; member
/Linux-v4.19/drivers/scsi/
Dhpsa.c7476 u32 scratchpad; in hpsa_wait_for_board_state() local
7483 scratchpad = readl(vaddr + SA5_SCRATCHPAD_OFFSET); in hpsa_wait_for_board_state()
7485 if (scratchpad == HPSA_FIRMWARE_READY) in hpsa_wait_for_board_state()
7488 if (scratchpad != HPSA_FIRMWARE_READY) in hpsa_wait_for_board_state()