/Linux-v5.10/kernel/dma/ |
D | debug.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2008 Advanced Micro Devices, Inc. 19 extern void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, 47 struct scatterlist *sg, 51 struct scatterlist *sg, 65 static inline void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, in debug_dma_map_sg() argument 111 struct scatterlist *sg, in debug_dma_sync_sg_for_cpu() argument 117 struct scatterlist *sg, in debug_dma_sync_sg_for_device() argument
|
D | debug.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2008 Advanced Micro Devices, Inc. 8 #define pr_fmt(fmt) "DMA-API: " fmt 12 #include <linux/dma-map-ops.h> 31 #define HASH_FN_MASK (HASH_SIZE - 1) 53 * struct dma_debug_entry - track a dma_map* or dma_alloc_coherent mapping 54 * @list: node on pre-allocated free_entries list 55 * @dev: 'dev' argument to dma_map_{page|single|sg} or dma_alloc_coherent 57 * @type: single, page, sg, coherent 93 /* List of pre-allocated dma_debug_entry's */ [all …]
|
/Linux-v5.10/drivers/tee/amdtee/ |
D | amdtee_if.h | 1 /* SPDX-License-Identifier: MIT */ 4 * Copyright 2019 Advanced Micro Devices, Inc. 8 * This file has definitions related to Host and AMD-TEE Trusted OS interface. 23 * struct memref - memory reference structure 72 * non-contiguous. Below structures are meant to describe a shared memory region 73 * via scatter/gather (sg) list 77 * struct tee_sg_desc - sg descriptor for a physically contiguous buffer 89 * struct tee_sg_list - structure describing a scatter/gather list 90 * @count: [in] number of sg descriptors 92 * @buf: [in] list of sg buffer descriptors [all …]
|
/Linux-v5.10/drivers/crypto/ccp/ |
D | ccp-crypto-main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013,2017 Advanced Micro Devices, Inc. 19 #include "ccp-crypto.h" 28 MODULE_PARM_DESC(aes_disable, "Disable use of AES - any non-zero value"); 32 MODULE_PARM_DESC(sha_disable, "Disable use of SHA - any non-zero value"); 36 MODULE_PARM_DESC(des3_disable, "Disable use of 3DES - any non-zero value"); 40 MODULE_PARM_DESC(rsa_disable, "Disable use of RSA - any non-zero value"); 90 if (err && (err != -EINPROGRESS) && (err != -EBUSY)) in ccp_crypto_success() 111 if (crypto_cmd->tfm != tmp->tfm) in ccp_crypto_cmd_complete() 123 if (req_queue.backlog == &crypto_cmd->entry) in ccp_crypto_cmd_complete() [all …]
|
D | ccp-crypto-aes-cmac.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013,2018 Advanced Micro Devices, Inc. 21 #include "ccp-crypto.h" 34 if (rctx->hash_rem) { in ccp_aes_cmac_complete() 36 unsigned int offset = rctx->nbytes - rctx->hash_rem; in ccp_aes_cmac_complete() 38 scatterwalk_map_and_copy(rctx->buf, rctx->src, in ccp_aes_cmac_complete() 39 offset, rctx->hash_rem, 0); in ccp_aes_cmac_complete() 40 rctx->buf_count = rctx->hash_rem; in ccp_aes_cmac_complete() 42 rctx->buf_count = 0; in ccp_aes_cmac_complete() 46 if (req->result && rctx->final) in ccp_aes_cmac_complete() [all …]
|
D | ccp-crypto-sha.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013,2018 Advanced Micro Devices, Inc. 24 #include "ccp-crypto.h" 36 if (rctx->hash_rem) { in ccp_sha_complete() 38 unsigned int offset = rctx->nbytes - rctx->hash_rem; in ccp_sha_complete() 40 scatterwalk_map_and_copy(rctx->buf, rctx->src, in ccp_sha_complete() 41 offset, rctx->hash_rem, 0); in ccp_sha_complete() 42 rctx->buf_count = rctx->hash_rem; in ccp_sha_complete() 44 rctx->buf_count = 0; in ccp_sha_complete() 48 if (req->result && rctx->final) in ccp_sha_complete() [all …]
|
D | ccp-ops.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013-2019 Advanced Micro Devices, Inc. 11 #include <linux/dma-mapping.h> 19 #include "ccp-dev.h" 56 #define CCP_NEW_JOBID(ccp) ((ccp->vdata->version == CCP_VERSION(3, 0)) ? \ 61 return atomic_inc_return(&ccp->current_id) & CCP_JOBID_MASK; in ccp_gen_jobid() 66 if (wa->dma_count) in ccp_sg_free() 67 dma_unmap_sg(wa->dma_dev, wa->dma_sg_head, wa->nents, wa->dma_dir); in ccp_sg_free() 69 wa->dma_count = 0; in ccp_sg_free() 73 struct scatterlist *sg, u64 len, in ccp_init_sg_workarea() argument [all …]
|
/Linux-v5.10/drivers/gpu/drm/radeon/ |
D | radeon_prime.c | 2 * Copyright 2012 Advanced Micro Devices, Inc. 27 #include <linux/dma-buf.h> 37 int npages = bo->tbo.num_pages; in radeon_gem_prime_get_sg_table() 39 return drm_prime_pages_to_sg(obj->dev, bo->tbo.ttm->pages, npages); in radeon_gem_prime_get_sg_table() 47 ret = ttm_bo_kmap(&bo->tbo, 0, bo->tbo.num_pages, in radeon_gem_prime_vmap() 48 &bo->dma_buf_vmap); in radeon_gem_prime_vmap() 52 return bo->dma_buf_vmap.virtual; in radeon_gem_prime_vmap() 59 ttm_bo_kunmap(&bo->dma_buf_vmap); in radeon_gem_prime_vunmap() 64 struct sg_table *sg) in radeon_gem_prime_import_sg_table() argument 66 struct dma_resv *resv = attach->dmabuf->resv; in radeon_gem_prime_import_sg_table() [all …]
|
D | radeon_object.h | 2 * Copyright 2008 Advanced Micro Devices, Inc. 35 * radeon_mem_type_to_domain - return domain corresponding to mem_type 56 * radeon_bo_reserve - reserve bo 58 * @no_intr: don't return -ERESTARTSYS on pending signal 61 * -ERESTARTSYS: A wait for the buffer to become unreserved was interrupted by 62 * a signal. Release all buffer reservations and return to user-space. 68 r = ttm_bo_reserve(&bo->tbo, !no_intr, false, NULL); in radeon_bo_reserve() 70 if (r != -ERESTARTSYS) in radeon_bo_reserve() 71 dev_err(bo->rdev->dev, "%p reserve failed\n", bo); in radeon_bo_reserve() 79 ttm_bo_unreserve(&bo->tbo); in radeon_bo_unreserve() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/leds/ |
D | leds-sgm3140.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/leds/leds-sgm3140.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Luca Weiss <luca@z3ntu.xyz> 13 The SGM3140 is a current-regulated charge pump which can regulate two current 17 http://www.sg-micro.com/uploads/soft/20190626/1561535688.pdf 23 enable-gpios: 27 flash-gpios: 31 vin-supply: [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vram_mgr.c | 2 * Copyright 2016 Advanced Micro Devices, Inc. 25 #include <linux/dma-mapping.h> 55 return snprintf(buf, PAGE_SIZE, "%llu\n", adev->gmc.real_vram_size); in amdgpu_mem_info_vram_total_show() 72 return snprintf(buf, PAGE_SIZE, "%llu\n", adev->gmc.visible_vram_size); in amdgpu_mem_info_vis_vram_total_show() 88 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vram_used_show() 107 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vis_vram_used_show() 120 switch (adev->gmc.vram_vendor) { in amdgpu_mem_info_vram_vendor() 169 * amdgpu_vram_mgr_init - init VRAM manager and DRM MM 177 struct amdgpu_vram_mgr *mgr = &adev->mman.vram_mgr; in amdgpu_vram_mgr_init() 178 struct ttm_resource_manager *man = &mgr->manager; in amdgpu_vram_mgr_init() [all …]
|
D | amdgpu_amdkfd_gpuvm.c | 2 * Copyright 2014-2018 Advanced Micro Devices, Inc. 22 #include <linux/dma-buf.h> 66 #define domain_string(domain) domain_bit_to_string[ffs(domain)-1] 81 list_for_each_entry(entry, &mem->bo_va_list, bo_list) in check_if_add_bo_to_vm() 82 if (entry->bo_va->base.vm == avm) in check_if_add_bo_to_vm() 89 * System (TTM + userptr) memory - 15/16th System RAM 90 * TTM memory - 3/8th System RAM 98 mem = si.totalram - si.totalhigh; in amdgpu_amdkfd_gpuvm_init_mem_limits() 102 kfd_mem_limit.max_system_mem_limit = mem - (mem >> 4); in amdgpu_amdkfd_gpuvm_init_mem_limits() 103 kfd_mem_limit.max_ttm_mem_limit = (mem >> 1) - (mem >> 3); in amdgpu_amdkfd_gpuvm_init_mem_limits() [all …]
|
/Linux-v5.10/drivers/mmc/host/ |
D | alcor.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2018 Oleksij Rempel <linux@rempel-privat.de> 5 * Driver for Alcor Micro AU6601 and AU6621 controllers 12 * thing what I did. 2018 Oleksij Rempel <linux@rempel-privat.de> 55 struct sg_mapping_iter sg_miter; /* SG state for PIO */ 56 struct scatterlist *sg; member 75 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_rmw8() 89 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_mask_sd_irqs() 96 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_unmask_sd_irqs() 106 struct alcor_pci_priv *priv = host->alcor_pci; in alcor_reset() [all …]
|
D | au1xmmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/mmc/host/au1xmmc.c - AU1XX0 MMC driver 5 * Copyright (c) 2005, Advanced Micro Devices, Inc. 9 * Copyright (c) 2003-2004 Embedded Edge, LLC. 11 * Copyright 2002 Hewlett-Packard Company 14 * (drivers/mmc/wbsd.c) Copyright (C) 2004-2005 Pierre Ossman, 25 * If the Au1100-based design is intended to support both MultiMediaCards 26 * and 1- or 4-data bit SecureDigital cards, then the solution is to 27 * connect a weak (560KOhm) pull-up resistor to connector pin 1. 28 * In doing so, a MMC card never enters SPI-mode communications, [all …]
|
D | mmci.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * linux/drivers/mmc/host/mmci.c - ARM PrimeCell MMCI PL180/1 driver 6 * Copyright (C) 2010 ST-Ericsson SA 26 #include <linux/mmc/slot-gpio.h> 33 #include <linux/dma-mapping.h> 45 #define DRIVER_NAME "mmci-pl18x" 334 /* Busy detection for the ST Micro variant */ 341 spin_lock_irqsave(&host->lock, flags); in mmci_card_busy() 342 if (readl(host->base + MMCISTATUS) & host->variant->busy_detect_flag) in mmci_card_busy() 344 spin_unlock_irqrestore(&host->lock, flags); in mmci_card_busy() [all …]
|
/Linux-v5.10/drivers/scsi/megaraid/ |
D | megaraid_mbox.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Copyright (c) 2003-2004 LSI Logic Corporation. 93 #define MBOX_DEFAULT_SG_SIZE 26 // default sg size supported by all fw 94 #define MBOX_MAX_SG_SIZE 32 // maximum scatter-gather list size 102 #define MBOX_SYNC_DELAY_200 200 // 200 micro-seconds 112 * mbox_ccb_t - command control block specific to mailbox based controllers 117 * @sgl64 : 64-bit scatter-gather list 118 * @sgl32 : 32-bit scatter-gather list 119 * @sgl_dma_h : dma handle for the scatter-gather list 124 * @buf_dma_h : dma handle for buffers w/o sg list [all …]
|
/Linux-v5.10/drivers/tty/serial/ |
D | amba-pl011.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Copyright (C) 2010 ST-Ericsson SA 11 * This is a generic driver for ARM AMBA-type serial ports. They 12 * have a lot of 16550-like features, but are not register compatible. 34 #include <linux/dma-mapping.h> 45 #include "amba-pl011.h" 226 struct scatterlist sg; member 248 struct scatterlist sg; member 264 unsigned int fifosize; /* vendor-specific */ 266 unsigned int fixed_baud; /* vendor-set fixed baud rate */ [all …]
|
/Linux-v5.10/drivers/spi/ |
D | spi-pl022.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2008-2012 ST-Ericsson AB 11 * linux-2.6.17-rc3-mm1/drivers/spi/pxa2xx_spi.c 31 #include <linux/dma-mapping.h> 93 * SSP Control Register 0 - SSP_CR0 111 * SSP Control Register 0 - SSP_CR1 131 * SSP Status Register - SSP_SR 140 * SSP Clock Prescale Register - SSP_CPSR 145 * SSP Interrupt Mask Set/Clear Register - SSP_IMSC 153 * SSP Raw Interrupt Status Register - SSP_RIS [all …]
|
/Linux-v5.10/drivers/leds/ |
D | leds-sgm3140.c | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <linux/led-class-flash.h> 10 #include <media/v4l2-flash-led-class.h> 43 if (priv->enabled == state) in sgm3140_strobe_set() 47 ret = regulator_enable(priv->vin_regulator); in sgm3140_strobe_set() 49 dev_err(fled_cdev->led_cdev.dev, in sgm3140_strobe_set() 53 gpiod_set_value_cansleep(priv->flash_gpio, 1); in sgm3140_strobe_set() 54 gpiod_set_value_cansleep(priv->enable_gpio, 1); in sgm3140_strobe_set() 55 mod_timer(&priv->powerdown_timer, in sgm3140_strobe_set() 56 jiffies + usecs_to_jiffies(priv->timeout)); in sgm3140_strobe_set() [all …]
|
/Linux-v5.10/drivers/crypto/amcc/ |
D | crypto4xx_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2008 Applied Micro Circuits Corporation. 18 #include <linux/dma-mapping.h> 27 #include <asm/dcr-regs.h> 60 writel(PPC4XX_BYTE_ORDER, dev->ce_base + CRYPTO4XX_BYTE_ORDER_CFG); in crypto4xx_hw_init() 61 /* setup pe dma, include reset sg, pdr and pe, then release reset */ in crypto4xx_hw_init() 71 writel(pe_dma_cfg.w, dev->ce_base + CRYPTO4XX_PE_DMA_CFG); in crypto4xx_hw_init() 72 /* un reset pe,sg and pdr */ in crypto4xx_hw_init() 78 writel(pe_dma_cfg.w, dev->ce_base + CRYPTO4XX_PE_DMA_CFG); in crypto4xx_hw_init() 79 writel(dev->pdr_pa, dev->ce_base + CRYPTO4XX_PDR_BASE); in crypto4xx_hw_init() [all …]
|
/Linux-v5.10/drivers/usb/misc/ |
D | usbtest.c | 1 // SPDX-License-Identifier: GPL-2.0 16 /*-------------------------------------------------------------------------*/ 18 static int override_alt = -1; 23 /*-------------------------------------------------------------------------*/ 30 __u32 test_num; /* 0..(TEST_CASES-1) */ 47 __u32 test_num; /* 0..(TEST_CASES-1) */ 63 /*-------------------------------------------------------------------------*/ 72 //#define KEYSPAN_19Qi /* grab un-renumerated serial adapter */ 74 /*-------------------------------------------------------------------------*/ 112 return interface_to_usbdev(test->intf); in testdev_to_usbdev() [all …]
|
/Linux-v5.10/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 54 …nds to wait for DDR initialization. 0 waits for ddr_timeout to be set to non-zero value before sta… 58 static int debug = -1; 72 * octeon_console_debug_enabled - determines if a given console has debug enabled. 92 /* time to wait for possible in-flight requests in milliseconds */ 136 (CN23XX_DEFAULT_INPUT_JABBER - OCTNIC_GSO_MAX_HEADER_SIZE) 170 struct octeon_device *oct = oct_priv->dev; in octeon_droq_bh() 173 if (!(oct->io_qmask.oq & BIT_ULL(q_no))) in octeon_droq_bh() 175 reschedule |= octeon_droq_process_packets(oct, oct->droq[q_no], in octeon_droq_bh() [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/ |
D | vendor-prefixes.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/vendor-prefixes.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 19 "^(at25|devbus|dmacap|dsa|exynos|fsi[ab]|gpio-fan|gpio|gpmc|hdmi|i2c-gpio),.*": true 21 "^(pinctrl-single|#pinctrl-single|PowerPC),.*": true 22 "^(pl022|pxa-mmc|rcar_sound|rotary-encoder|s5m8767|sdhci),.*": true 23 "^(simple-audio-card|st-plgpio|st-spics|ts),.*": true 38 "^active-semi,.*": [all …]
|
/Linux-v5.10/include/linux/ |
D | iommu.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2007-2008 Advanced Micro Devices, Inc. 60 #define __IOMMU_DOMAIN_DMA_API (1U << 1) /* Domain for use in DMA-API 65 * This are the possible domain-types 67 * IOMMU_DOMAIN_BLOCKED - All DMA is blocked, can be used to isolate 69 * IOMMU_DOMAIN_IDENTITY - DMA addresses are system physical addresses 70 * IOMMU_DOMAIN_UNMANAGED - DMA mappings managed by IOMMU-API user, used 72 * IOMMU_DOMAIN_DMA - Internally used for DMA-API implementations. 101 * -aperture must be power of 2, and naturally aligned 102 * -number of windows must be power of 2, and address space size [all …]
|
/Linux-v5.10/include/linux/usb/ |
D | gadget.h | 1 // SPDX-License-Identifier: GPL-2.0 5 * We call the USB code inside a Linux-based peripheral device a "gadget" 6 * driver, except for the hardware-specific bus glue. One USB host can 11 * (C) Copyright 2002-2004 by David Brownell 35 * struct usb_request - describes one i/o request 41 * @sg: a scatterlist for SG-capable controllers. 42 * @num_sgs: number of SG entries 43 * @num_mapped_sgs: number of SG entries mapped to DMA (internal) 57 * its buffer may be re-used. The function will always be called with 67 * @frame_number: Reports the interval number in (micro)frame in which the [all …]
|