Home
last modified time | relevance | path

Searched +full:sg +full:- +full:micro (Results 1 – 25 of 114) sorted by relevance

12345

/kernel/linux/linux-6.6/kernel/dma/
Ddebug.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2008 Advanced Micro Devices, Inc.
20 extern void debug_dma_map_sg(struct device *dev, struct scatterlist *sg,
51 struct scatterlist *sg,
55 struct scatterlist *sg,
70 static inline void debug_dma_map_sg(struct device *dev, struct scatterlist *sg, in debug_dma_map_sg() argument
119 struct scatterlist *sg, in debug_dma_sync_sg_for_cpu() argument
125 struct scatterlist *sg, in debug_dma_sync_sg_for_device() argument
/kernel/linux/linux-5.10/kernel/dma/
Ddebug.h1 /* 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
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gart.c2 * Copyright 2008 Advanced Micro Devices, Inc.
66 * amdgpu_gart_dummy_page_init - init dummy page used by the driver
73 * Returns 0 on sucess, -ENOMEM on failure.
79 if (adev->dummy_page_addr) in amdgpu_gart_dummy_page_init()
81 adev->dummy_page_addr = dma_map_page(&adev->pdev->dev, dummy_page, 0, in amdgpu_gart_dummy_page_init()
83 if (dma_mapping_error(&adev->pdev->dev, adev->dummy_page_addr)) { in amdgpu_gart_dummy_page_init()
84 dev_err(&adev->pdev->dev, "Failed to DMA MAP the dummy page\n"); in amdgpu_gart_dummy_page_init()
85 adev->dummy_page_addr = 0; in amdgpu_gart_dummy_page_init()
86 return -ENOMEM; in amdgpu_gart_dummy_page_init()
92 * amdgpu_gart_dummy_page_fini - free dummy page used by the driver
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
Dradeon_prime.c2 * Copyright 2012 Advanced Micro Devices, Inc.
27 #include <linux/dma-buf.h>
41 return drm_prime_pages_to_sg(obj->dev, bo->tbo.ttm->pages, in radeon_gem_prime_get_sg_table()
42 bo->tbo.ttm->num_pages); in radeon_gem_prime_get_sg_table()
47 struct sg_table *sg) in radeon_gem_prime_import_sg_table() argument
49 struct dma_resv *resv = attach->dmabuf->resv; in radeon_gem_prime_import_sg_table()
50 struct radeon_device *rdev = dev->dev_private; in radeon_gem_prime_import_sg_table()
55 ret = radeon_bo_create(rdev, attach->dmabuf->size, PAGE_SIZE, false, in radeon_gem_prime_import_sg_table()
56 RADEON_GEM_DOMAIN_GTT, 0, sg, resv, &bo); in radeon_gem_prime_import_sg_table()
61 bo->tbo.base.funcs = &radeon_gem_object_funcs; in radeon_gem_prime_import_sg_table()
[all …]
Dradeon_prime.h1 /* radeon_prime.h -- Private header for radeon driver -*- linux-c -*-
3 * Copyright 2012 Advanced Micro Devices, Inc.
38 struct sg_table *sg);
/kernel/linux/linux-6.6/drivers/tee/amdtee/
Damdtee_if.h1 /* 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 …]
/kernel/linux/linux-5.10/drivers/tee/amdtee/
Damdtee_if.h1 /* 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 …]
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto-main.c1 // 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 …]
Dccp-crypto-aes-cmac.c1 // 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 …]
Dccp-crypto-sha.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/crypto/ccp/
Dccp-crypto-main.c1 // 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");
83 if (err && (err != -EINPROGRESS) && (err != -EBUSY)) in ccp_crypto_success()
104 if (crypto_cmd->tfm != tmp->tfm) in ccp_crypto_cmd_complete()
116 if (req_queue.backlog == &crypto_cmd->entry) in ccp_crypto_cmd_complete()
[all …]
Dccp-crypto-aes-cmac.c1 // 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 …]
Dccp-crypto-sha.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2013,2018 Advanced Micro Devices, Inc.
25 #include "ccp-crypto.h"
37 if (rctx->hash_rem) { in ccp_sha_complete()
39 unsigned int offset = rctx->nbytes - rctx->hash_rem; in ccp_sha_complete()
41 scatterwalk_map_and_copy(rctx->buf, rctx->src, in ccp_sha_complete()
42 offset, rctx->hash_rem, 0); in ccp_sha_complete()
43 rctx->buf_count = rctx->hash_rem; in ccp_sha_complete()
45 rctx->buf_count = 0; in ccp_sha_complete()
49 if (req->result && rctx->final) in ccp_sha_complete()
[all …]
/kernel/linux/linux-6.6/drivers/vfio/pci/pds/
Dlm.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2023 Advanced Micro Devices, Inc. */
23 struct sg_table sg_table; /* SG table for backing pages */
Dlm.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2023 Advanced Micro Devices, Inc. */
32 lm_file->filep = in pds_vfio_get_lm_file()
34 if (IS_ERR(lm_file->filep)) in pds_vfio_get_lm_file()
37 stream_open(lm_file->filep->f_inode, lm_file->filep); in pds_vfio_get_lm_file()
38 mutex_init(&lm_file->lock); in pds_vfio_get_lm_file()
41 get_file(lm_file->filep); in pds_vfio_get_lm_file()
53 p = page_mem - offset_in_page(page_mem); in pds_vfio_get_lm_file()
66 if (sg_alloc_table_from_pages(&lm_file->sg_table, pages, npages, 0, in pds_vfio_get_lm_file()
70 lm_file->size = size; in pds_vfio_get_lm_file()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_prime.c2 * 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-sgm3140.yaml1 # 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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/leds/
Dleds-sgm3140.yaml1 # 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
22 - ocs,ocp8110
23 - richtek,rt5033-led
24 - sgmicro,sgm3140
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_vram_mgr.c2 * 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 …]
/kernel/linux/linux-6.6/drivers/mmc/host/
Dalcor.c1 // 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 …]
Dau1xmmc.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dalcor.c1 // 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 …]
Dau1xmmc.c1 // 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 …]
/kernel/linux/linux-6.6/include/drm/ttm/
Dttm_resource.h2 * Copyright 2020 Advanced Micro Devices, Inc.
31 #include <linux/iosys-map.h>
32 #include <linux/dma-fence.h>
66 * If the manager can't fulfill the request -ENOSPC should be returned.
130 * type manager to aid debugging of out-of-memory conditions.
168 * Protected by the bdev->lru_lock.
174 * bdev->lru_lock.
260 * struct ttm_kmap_iter_iomap - Specialization for a struct io_mapping +
266 * sg_dma_address(st->sgl) - @start == 0 for @iomap start.
268 * @cache.sg: Pointer to the currently cached scatterlist segment.
[all …]
/kernel/linux/linux-6.6/drivers/scsi/megaraid/
Dmegaraid_mbox.h1 /* 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 …]

12345