| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/dma/ |
| D | arm-pl08x.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/dma/arm-pl08x.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Vinod Koul <vkoul@kernel.org> 13 - $ref: /schemas/arm/primecell.yaml# 14 - $ref: dma-controller.yaml# 22 - arm,pl080 23 - arm,pl081 25 - compatible [all …]
|
| D | lpc1850-dmamux.txt | 4 - compatible: "nxp,lpc1850-dmamux" 5 - reg: Memory map for accessing module 6 - #dma-cells: Should be set to <3>. 8 * 2nd cell contain the mux value (0-3) for the peripheral 11 - dma-requests: Number of DMA requests for the mux 12 - dma-masters: phandle pointing to the DMA controller 15 - dma-requests: Number of DMA requests the controller can handle 20 compatible = "nxp,lpc1850-gpdma", "arm,pl080", "arm,primecell"; 21 arm,primecell-periphid = <0x00041080>; 25 clock-names = "apb_pclk"; [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/dma/ |
| D | arm-pl08x.txt | 4 - compatible: "arm,pl080", "arm,primecell"; 7 - arm,primecell-periphid: on the FTDMAC020 the primecell ID is not hard-coded 11 - reg: Address range of the PL08x registers 12 - interrupt: The PL08x interrupt number 13 - clocks: The clock running the IP core clock 14 - clock-names: Must contain "apb_pclk" 15 - lli-bus-interface-ahb1: if AHB master 1 is eligible for fetching LLIs 16 - lli-bus-interface-ahb2: if AHB master 2 is eligible for fetching LLIs 17 - mem-bus-interface-ahb1: if AHB master 1 is eligible for fetching memory contents 18 - mem-bus-interface-ahb2: if AHB master 2 is eligible for fetching memory contents [all …]
|
| D | lpc1850-dmamux.txt | 4 - compatible: "nxp,lpc1850-dmamux" 5 - reg: Memory map for accessing module 6 - #dma-cells: Should be set to <3>. 8 * 2nd cell contain the mux value (0-3) for the peripheral 11 - dma-requests: Number of DMA requests for the mux 12 - dma-masters: phandle pointing to the DMA controller 15 - dma-requests: Number of DMA requests the controller can handle 20 compatible = "nxp,lpc1850-gpdma", "arm,pl080", "arm,primecell"; 21 arm,primecell-periphid = <0x00041080>; 25 clock-names = "apb_pclk"; [all …]
|
| /kernel/linux/linux-6.6/include/linux/amba/ |
| D | pl08x.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/amba/pl08x.h - ARM PrimeCell DMA Controller driver 6 * Copyright (C) 2010 ST-Ericsson SA 32 * struct pl08x_channel_data - data structure to pass info between 48 * can be the address of a FIFO register for burst requests for example. 84 * struct pl08x_platform_data - the platform configuration for the PL08x 91 * @memcpy_burst_size: the appropriate burst size for memcpy operations 93 * @memcpy_prot_buff: whether memcpy DMA is bufferable 94 * @memcpy_prot_cache: whether memcpy DMA is cacheable
|
| /kernel/linux/linux-5.10/include/linux/amba/ |
| D | pl08x.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/amba/pl08x.h - ARM PrimeCell DMA Controller driver 6 * Copyright (C) 2010 ST-Ericsson SA 32 * struct pl08x_channel_data - data structure to pass info between 48 * can be the address of a FIFO register for burst requests for example. 84 * struct pl08x_platform_data - the platform configuration for the PL08x 91 * @memcpy_burst_size: the appropriate burst size for memcpy operations 93 * @memcpy_prot_buff: whether memcpy DMA is bufferable 94 * @memcpy_prot_cache: whether memcpy DMA is cacheable
|
| /kernel/linux/linux-5.10/drivers/dma/ |
| D | amba-pl08x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2010 ST-Ericsson SA 27 * - CH_CONFIG register at different offset, 28 * - separate CH_CONTROL2 register for transfer size, 29 * - bigger maximum transfer size, 30 * - 8-word aligned LLI, instead of 4-word, due to extra CCTL2 word, 31 * - no support for peripheral flow control. 36 * On burst request from peripheral 37 * Destination burst from DMAC to peripheral 38 * Clear burst request [all …]
|
| D | nbpfaxi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2013-2014 Renesas Electronics Europe Ltd. 10 #include <linux/dma-mapping.h> 23 #include <dt-bindings/dma/nbpfaxi.h> 62 #define NBPF_CHAN_CFG_SDS 0xf000 /* Source Data Size: 0: 8 bits,... , 7: 1024 bits */ 63 #define NBPF_CHAN_CFG_DDS 0xf0000 /* Destination Data Size: as above */ 105 * 1. high-level descriptor, containing a struct dma_async_tx_descriptor object 109 * allocated from coherent memory - one per SG segment 116 * Therefore for both cases (a) and (b) at run-time objects (2) and (3) shall be 143 * struct nbpf_desc - DMA transfer descriptor [all …]
|
| /kernel/linux/linux-6.6/drivers/dma/ |
| D | amba-pl08x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2010 ST-Ericsson SA 27 * - CH_CONFIG register at different offset, 28 * - separate CH_CONTROL2 register for transfer size, 29 * - bigger maximum transfer size, 30 * - 8-word aligned LLI, instead of 4-word, due to extra CCTL2 word, 31 * - no support for peripheral flow control. 36 * On burst request from peripheral 37 * Destination burst from DMAC to peripheral 38 * Clear burst request [all …]
|
| D | nbpfaxi.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2013-2014 Renesas Electronics Europe Ltd. 10 #include <linux/dma-mapping.h> 22 #include <dt-bindings/dma/nbpfaxi.h> 61 #define NBPF_CHAN_CFG_SDS 0xf000 /* Source Data Size: 0: 8 bits,... , 7: 1024 bits */ 62 #define NBPF_CHAN_CFG_DDS 0xf0000 /* Destination Data Size: as above */ 104 * 1. high-level descriptor, containing a struct dma_async_tx_descriptor object 108 * allocated from coherent memory - one per SG segment 115 * Therefore for both cases (a) and (b) at run-time objects (2) and (3) shall be 142 * struct nbpf_desc - DMA transfer descriptor [all …]
|
| D | ste_dma40.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 7 * Maxium size for a single dma descriptor 8 * Size is limited to 16 bits. 9 * Size is in the units of addr-widths (1,2,4,8 bytes) 14 /* dev types for memcpy */ 15 #define STEDMA40_DEV_DST_MEMORY (-1) 16 #define STEDMA40_DEV_SRC_MEMORY (-1) 38 /* The value 4 indicates that PEN-reg shall be set to 0 */ 63 * struct stedma40_half_channel_info - dst/src channel configuration 67 * @p_size: Burst size [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | xt_hashlimit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * xt_hashlimit - Netfilter module to limit the number of packets per time 6 * (C) 2003-2004 by Harald Welte <laforge@netfilter.org> 7 * (C) 2006-2012 Patrick McHardy <kaber@trash.net> 8 * Copyright © CC Computer Consultants GmbH, 2007 - 2008 50 MODULE_DESCRIPTION("Xtables: per hash-bucket rate-limit match"); 90 /* static / read-only parts in the beginning */ 109 int64_t burst; member 144 to->mode = cfg->mode; in cfg_copy() 145 to->avg = cfg->avg; in cfg_copy() [all …]
|
| /kernel/linux/linux-6.6/net/netfilter/ |
| D | xt_hashlimit.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * xt_hashlimit - Netfilter module to limit the number of packets per time 6 * (C) 2003-2004 by Harald Welte <laforge@netfilter.org> 7 * (C) 2006-2012 Patrick McHardy <kaber@trash.net> 8 * Copyright © CC Computer Consultants GmbH, 2007 - 2008 50 MODULE_DESCRIPTION("Xtables: per hash-bucket rate-limit match"); 90 /* static / read-only parts in the beginning */ 109 int64_t burst; member 144 to->mode = cfg->mode; in cfg_copy() 145 to->avg = cfg->avg; in cfg_copy() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
| D | cn10k.c | 1 // SPDX-License-Identifier: GPL-2.0 33 if (!test_bit(CN10K_LMTST, &pfvf->hw.cap_flag)) { in cn10k_lmtst_init() 34 pfvf->hw_ops = &otx2_hw_ops; in cn10k_lmtst_init() 38 pfvf->hw_ops = &cn10k_hw_ops; in cn10k_lmtst_init() 39 /* Total LMTLINES = num_online_cpus() * 32 (For Burst flush).*/ in cn10k_lmtst_init() 40 pfvf->tot_lmt_lines = (num_online_cpus() * LMT_BURST_SIZE); in cn10k_lmtst_init() 41 pfvf->hw.lmt_info = alloc_percpu(struct otx2_lmt_info); in cn10k_lmtst_init() 43 mutex_lock(&pfvf->mbox.lock); in cn10k_lmtst_init() 44 req = otx2_mbox_alloc_msg_lmtst_tbl_setup(&pfvf->mbox); in cn10k_lmtst_init() 46 mutex_unlock(&pfvf->mbox.lock); in cn10k_lmtst_init() [all …]
|
| D | otx2_tc.c | 1 // SPDX-License-Identifier: GPL-2.0 49 u32 burst; member 53 static void otx2_get_egress_burst_cfg(struct otx2_nic *nic, u32 burst, in otx2_get_egress_burst_cfg() argument 59 if (is_dev_otx2(nic->pdev)) { in otx2_get_egress_burst_cfg() 67 /* Burst is calculated as in otx2_get_egress_burst_cfg() 69 * Max supported burst size is 130,816 bytes. in otx2_get_egress_burst_cfg() 71 burst = min_t(u32, burst, max_burst); in otx2_get_egress_burst_cfg() 72 if (burst) { in otx2_get_egress_burst_cfg() 73 *burst_exp = ilog2(burst) ? ilog2(burst) - 1 : 0; in otx2_get_egress_burst_cfg() 74 tmp = burst - rounddown_pow_of_two(burst); in otx2_get_egress_burst_cfg() [all …]
|
| /kernel/linux/linux-6.6/Documentation/driver-api/dmaengine/ |
| D | provider.rst | 20 DMA-eligible devices to the controller itself. Whenever the device 25 parameter: the transfer size. At each clock cycle, it would transfer a 26 byte of data from one buffer to another, until the transfer size has 42 using a parameter called the burst size, that defines how many single 44 transfer into smaller sub-transfers. 49 non-contiguous buffers to a contiguous buffer, which is called 50 scatter-gather. 53 scatter-gather. So we're left with two cases here: either we have a 56 that implements in hardware scatter-gather. 72 not and the three parameters we saw earlier: the burst size, the [all …]
|
| /kernel/linux/linux-5.10/Documentation/driver-api/dmaengine/ |
| D | provider.rst | 20 DMA-eligible devices to the controller itself. Whenever the device 25 parameter: the transfer size. At each clock cycle, it would transfer a 26 byte of data from one buffer to another, until the transfer size has 42 using a parameter called the burst size, that defines how many single 44 transfer into smaller sub-transfers. 49 non-contiguous buffers to a contiguous buffer, which is called 50 scatter-gather. 53 scatter-gather. So we're left with two cases here: either we have a 56 that implements in hardware scatter-gather. 72 not and the three parameters we saw earlier: the burst size, the [all …]
|
| /kernel/linux/linux-6.6/drivers/dma/qcom/ |
| D | qcom_adm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. 10 #include <linux/dma-mapping.h> 27 #include "../virt-dma.h" 29 /* ADM registers - calculated from channel number and security domain */ 99 #define ADM_MAX_XFER (SZ_64K - 1) 100 #define ADM_MAX_ROWS (SZ_64K - 1) 177 * adm_free_chan - Frees dma resources associated with the specific channel 190 * adm_get_blksize - Get block size from burst value 192 * @burst: Burst size of transaction [all …]
|
| /kernel/linux/linux-5.10/include/linux/platform_data/ |
| D | dma-ste-dma40.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) ST-Ericsson SA 2007-2010 4 * Author: Per Forlin <per.forlin@stericsson.com> for ST-Ericsson 5 * Author: Jonas Aaberg <jonas.aberg@stericsson.com> for ST-Ericsson 18 * Maxium size for a single dma descriptor 19 * Size is limited to 16 bits. 20 * Size is in the units of addr-widths (1,2,4,8 bytes) 25 /* dev types for memcpy */ 26 #define STEDMA40_DEV_DST_MEMORY (-1) 27 #define STEDMA40_DEV_SRC_MEMORY (-1) [all …]
|
| /kernel/linux/linux-6.6/drivers/dma/ti/ |
| D | edma.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 #include <linux/dma-mapping.h> 28 #include "../virt-dma.h" 70 #define EDMA_DMAQNUM 0x0240 /* 8 registers (4 on OMAP-L1xx) */ 100 #define GET_NUM_DMACH(x) (x & 0x7) /* bits 0-2 */ 101 #define GET_NUM_QDMACH(x) ((x & 0x70) >> 4) /* bits 4-6 */ 102 #define GET_NUM_PAENTRY(x) ((x & 0x7000) >> 12) /* bits 12-14 */ 103 #define GET_NUM_EVQUE(x) ((x & 0x70000) >> 16) /* bits 16-18 */ 104 #define GET_NUM_REGN(x) ((x & 0x300000) >> 20) /* bits 20-21 */ 114 * fail. Today davinci-pcm is the only user of this driver and [all …]
|
| /kernel/linux/linux-5.10/drivers/dma/ti/ |
| D | edma.c | 17 #include <linux/dma-mapping.h> 37 #include "../virt-dma.h" 79 #define EDMA_DMAQNUM 0x0240 /* 8 registers (4 on OMAP-L1xx) */ 109 #define GET_NUM_DMACH(x) (x & 0x7) /* bits 0-2 */ 110 #define GET_NUM_QDMACH(x) ((x & 0x70) >> 4) /* bits 4-6 */ 111 #define GET_NUM_PAENTRY(x) ((x & 0x7000) >> 12) /* bits 12-14 */ 112 #define GET_NUM_EVQUE(x) ((x & 0x70000) >> 16) /* bits 16-18 */ 113 #define GET_NUM_REGN(x) ((x & 0x300000) >> 20) /* bits 20-21 */ 123 * fail. Today davinci-pcm is the only user of this driver and 130 #define EDMA_CHANNEL_ANY -1 /* for edma_alloc_channel() */ [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/ |
| D | prestera_acl.h | 1 /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */ 2 /* Copyright (c) 2020-2021 Marvell International Ltd. All rights reserved. */ 22 #define rule_match_set_n(match_p, type, val_p, size) \ argument 23 memcpy(&(match_p)[PRESTERA_ACL_RULE_MATCH_TYPE_##type], \ 24 val_p, size) 26 memcpy(&(match_p)[PRESTERA_ACL_RULE_MATCH_TYPE_##type], \ 117 u64 burst; member
|
| /kernel/linux/linux-6.6/drivers/dma/dw-edma/ |
| D | dw-edma-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates. 17 #include <linux/dma-mapping.h> 19 #include "dw-edma-core.h" 20 #include "dw-edma-v0-core.h" 21 #include "dw-hdma-v0-core.h" 23 #include "../virt-dma.h" 28 return &dchan->dev->device; in dchan2dev() 34 return &chan->vc.chan.dev->device; in chan2dev() 46 struct dw_edma_chip *chip = chan->dw->chip; in dw_edma_get_pci_address() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/wireless/ti/wlcore/ |
| D | boot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2008-2010 Nokia Corporation 44 strncpy(wl->chip.fw_ver_str, static_data->fw_version, in wlcore_boot_parse_fw_ver() 45 sizeof(wl->chip.fw_ver_str)); in wlcore_boot_parse_fw_ver() 47 /* make sure the string is NULL-terminated */ in wlcore_boot_parse_fw_ver() 48 wl->chip.fw_ver_str[sizeof(wl->chip.fw_ver_str) - 1] = '\0'; in wlcore_boot_parse_fw_ver() 50 ret = sscanf(wl->chip.fw_ver_str + 4, "%u.%u.%u.%u.%u", in wlcore_boot_parse_fw_ver() 51 &wl->chip.fw_ver[0], &wl->chip.fw_ver[1], in wlcore_boot_parse_fw_ver() 52 &wl->chip.fw_ver[2], &wl->chip.fw_ver[3], in wlcore_boot_parse_fw_ver() 53 &wl->chip.fw_ver[4]); in wlcore_boot_parse_fw_ver() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
| D | boot.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2008-2010 Nokia Corporation 44 strncpy(wl->chip.fw_ver_str, static_data->fw_version, in wlcore_boot_parse_fw_ver() 45 sizeof(wl->chip.fw_ver_str)); in wlcore_boot_parse_fw_ver() 47 /* make sure the string is NULL-terminated */ in wlcore_boot_parse_fw_ver() 48 wl->chip.fw_ver_str[sizeof(wl->chip.fw_ver_str) - 1] = '\0'; in wlcore_boot_parse_fw_ver() 50 ret = sscanf(wl->chip.fw_ver_str + 4, "%u.%u.%u.%u.%u", in wlcore_boot_parse_fw_ver() 51 &wl->chip.fw_ver[0], &wl->chip.fw_ver[1], in wlcore_boot_parse_fw_ver() 52 &wl->chip.fw_ver[2], &wl->chip.fw_ver[3], in wlcore_boot_parse_fw_ver() 53 &wl->chip.fw_ver[4]); in wlcore_boot_parse_fw_ver() [all …]
|