/openbmc/linux/Documentation/devicetree/bindings/dma/ |
H A D | intel,ldma.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/dma/intel,ldma.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Lightning Mountain centralized DMA controllers. 10 - chuanhua.lei@intel.com 11 - mallikarjunax.reddy@intel.com 14 - $ref: dma-controller.yaml# 19 - intel,lgm-cdma 20 - intel,lgm-dma2tx [all …]
|
/openbmc/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_minidump.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2009-2013 QLogic Corporation 274 return hdr->saved_state[index]; in qlcnic_82xx_get_saved_state() 282 hdr->saved_state[index] = value; in qlcnic_82xx_set_saved_state() 289 hdr = fw_dump->tmpl_hdr; in qlcnic_82xx_cache_tmpl_hdr_values() 290 fw_dump->tmpl_hdr_size = hdr->size; in qlcnic_82xx_cache_tmpl_hdr_values() 291 fw_dump->version = hdr->version; in qlcnic_82xx_cache_tmpl_hdr_values() 292 fw_dump->num_entries = hdr->num_entries; in qlcnic_82xx_cache_tmpl_hdr_values() 293 fw_dump->offset = hdr->offset; in qlcnic_82xx_cache_tmpl_hdr_values() 295 hdr->drv_cap_mask = hdr->cap_mask; in qlcnic_82xx_cache_tmpl_hdr_values() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfdk/ |
H A D | rings.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 13 struct device *dev = dp->dev; in nfp_nfdk_tx_ring_reset() 16 while (!tx_ring->is_xdp && tx_ring->rd_p != tx_ring->wr_p) { in nfp_nfdk_tx_ring_reset() 23 rd_idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfdk_tx_ring_reset() 24 txbuf = &tx_ring->ktxbufs[rd_idx]; in nfp_nfdk_tx_ring_reset() 26 skb = txbuf->skb; in nfp_nfdk_tx_ring_reset() 28 n_descs = D_BLOCK_CPL(tx_ring->rd_p); in nfp_nfdk_tx_ring_reset() 32 nr_frags = skb_shinfo(skb)->nr_frags; in nfp_nfdk_tx_ring_reset() 37 dma_unmap_single(dev, txbuf->dma_addr, size, DMA_TO_DEVICE); in nfp_nfdk_tx_ring_reset() 41 frag = skb_shinfo(skb)->frags; in nfp_nfdk_tx_ring_reset() [all …]
|
H A D | dp.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2019 Netronome Systems, Inc. */ 47 if (!skb->encapsulation) { in nfp_nfdk_tx_tso() 57 segs = skb_shinfo(skb)->gso_segs; in nfp_nfdk_tx_tso() 58 mss = skb_shinfo(skb)->gso_size & NFDK_DESC_TX_MSS_MASK; in nfp_nfdk_tx_tso() 67 txbuf->pkt_cnt = segs; in nfp_nfdk_tx_tso() 68 txbuf->real_len = skb->len + hdrlen * (txbuf->pkt_cnt - 1); in nfp_nfdk_tx_tso() 70 u64_stats_update_begin(&r_vec->tx_sync); in nfp_nfdk_tx_tso() 71 r_vec->tx_lso++; in nfp_nfdk_tx_tso() 72 u64_stats_update_end(&r_vec->tx_sync); in nfp_nfdk_tx_tso() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfd3/ |
H A D | rings.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2019 Netronome Systems, Inc. */ 16 while (tx_ring->rd_p != tx_ring->wr_p) { in nfp_nfd3_xsk_tx_bufs_free() 17 idx = D_IDX(tx_ring, tx_ring->rd_p); in nfp_nfd3_xsk_tx_bufs_free() 18 txbuf = &tx_ring->txbufs[idx]; in nfp_nfd3_xsk_tx_bufs_free() 20 txbuf->real_len = 0; in nfp_nfd3_xsk_tx_bufs_free() 22 tx_ring->qcp_rd_p++; in nfp_nfd3_xsk_tx_bufs_free() 23 tx_ring->rd_p++; in nfp_nfd3_xsk_tx_bufs_free() 25 if (tx_ring->r_vec->xsk_pool) { in nfp_nfd3_xsk_tx_bufs_free() 26 if (txbuf->is_xsk_tx) in nfp_nfd3_xsk_tx_bufs_free() [all …]
|
H A D | dp.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2019 Netronome Systems, Inc. */ 20 * driver en-queues packets for transmit by advancing the write 42 * nfp_nfd3_tx_ring_stop() - stop tx ring 63 * nfp_nfd3_tx_tso() - Set up Tx descriptor for LSO 64 * @r_vec: per-ring structure 70 * Set up Tx descriptor for LSO, do nothing for non-LSO skbs. 83 if (!skb->encapsulation) { in nfp_nfd3_tx_tso() 93 txbuf->pkt_cnt = skb_shinfo(skb)->gso_segs; in nfp_nfd3_tx_tso() 94 txbuf->real_len += hdrlen * (txbuf->pkt_cnt - 1); in nfp_nfd3_tx_tso() [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | sunxi_nand.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * https://github.com/yuq/sunxi-nfc-mtd 9 * https://github.com/hno/Allwinner-Info 16 #include <linux/dma-mapping.h> 70 #define NFC_PAGE_SHIFT(x) (((x) < 10 ? 0 : (x) - 10) << 8) 107 #define NFC_ADR_NUM(x) (((x) - 1) << 16) 161 * struct sunxi_nand_chip_sel - stores information related to NAND Chip Select 164 * @rb: the Ready/Busy pin ID. -1 means no R/B pin connected to the NFC 172 * struct sunxi_nand_hw_ecc - stores information related to HW ECC support 181 * struct sunxi_nand_chip - stores NAND chip device related information [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_dp.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 11 return dma_map_single_attrs(dp->dev, frag + NFP_NET_RX_BUF_HEADROOM, in nfp_net_dma_map_rx() 12 dp->fl_bufsz - NFP_NET_RX_BUF_NON_DATA, in nfp_net_dma_map_rx() 13 dp->rx_dma_dir, DMA_ATTR_SKIP_CPU_SYNC); in nfp_net_dma_map_rx() 19 dma_sync_single_for_device(dp->dev, dma_addr, in nfp_net_dma_sync_dev_rx() 20 dp->fl_bufsz - NFP_NET_RX_BUF_NON_DATA, in nfp_net_dma_sync_dev_rx() 21 dp->rx_dma_dir); in nfp_net_dma_sync_dev_rx() 27 dma_unmap_single_attrs(dp->dev, dma_addr, in nfp_net_dma_unmap_rx() 28 dp->fl_bufsz - NFP_NET_RX_BUF_NON_DATA, in nfp_net_dma_unmap_rx() 29 dp->rx_dma_dir, DMA_ATTR_SKIP_CPU_SYNC); in nfp_net_dma_unmap_rx() [all …]
|
H A D | nfp_net.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 21 #include <linux/io-64-nonatomic-hi-lo.h> 32 if (__nn->dp.netdev) \ 33 netdev_printk(lvl, __nn->dp.netdev, fmt, ## args); \ 35 dev_printk(lvl, __nn->dp.dev, "ctrl: " fmt, ## args); \ 48 if (__dp->netdev) \ 49 netdev_warn(__dp->netdev, fmt, ## args); \ 51 dev_warn(__dp->dev, fmt, ## args); \ 89 #define NFP_NET_XDP_MAX_COMPLETE 2048 /* XDP bufs to reclaim in NAPI poll */ [all …]
|
/openbmc/linux/drivers/vhost/ |
H A D | net.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * virtio-net server in host kernel. 41 " 1 -Enable; 0 - Disable"); 61 /* Lower device DMA failed */ 63 /* Lower device DMA done */ 65 /* Lower device DMA in progress */ 113 /* last used idx for outstanding DMA zerocopy buffers */ 115 /* For TX, first used idx for DMA done zerocopy buffers 135 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member 154 if (rxq->tail != rxq->head) in vhost_net_buf_get_ptr() [all …]
|
/openbmc/linux/drivers/net/ethernet/toshiba/ |
H A D | spider_net.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Network device driver for Cell Processor-Based Blade and Celleb platform 72 * spider_net_read_reg - reads an SMMIO register of a card 85 return in_be32(card->regs + reg); in spider_net_read_reg() 89 * spider_net_write_reg - writes to an SMMIO register of a card 101 out_be32(card->regs + reg, value); in spider_net_write_reg() 105 * spider_net_write_phy - write to phy register 129 * spider_net_read_phy - read from phy register 149 * interrupt, as we poll for the completion of the read operation in spider_net_read_phy() 162 * spider_net_setup_aneg - initial auto-negotiation setup [all …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bna_hw_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Linux network driver for QLogic BR-series Converged Network Adapter. 6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 7 * Copyright (c) 2014-2015 QLogic Corporation 28 #define BFI_INVALID_RID -1 42 #define BFI_TX_INTERPKT_COUNT 12 /* Pkt Cnt = 12 */ 45 #define BFI_RX_INTERPKT_COUNT 6 /* Pkt Cnt = 6 */ 80 (_bna)->regs.fn_int_status = (_pcidev)->pci_bar_kva + \ 81 reg_offset[(_pcidev)->pci_func].fn_int_status;\ 82 (_bna)->regs.fn_int_mask = (_pcidev)->pci_bar_kva + \ [all …]
|
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_droq.c | 7 * Copyright (c) 2003-2016 Cavium, Inc. 14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty 46 * @param octeon_dev - the octeon device pointer. 47 * @param opcode - the opcode for which the dispatch argument 49 * @param subcode - the subcode for which the dispatch argument 65 spin_lock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch_arg() 67 if (octeon_dev->dispatch.count == 0) { in octeon_get_dispatch_arg() 68 spin_unlock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch_arg() 72 if (octeon_dev->dispatch.dlist[idx].opcode == combined_opcode) { in octeon_get_dispatch_arg() 73 fn_arg = octeon_dev->dispatch.dlist[idx].arg; in octeon_get_dispatch_arg() [all …]
|
/openbmc/linux/drivers/dma/xilinx/ |
H A D | xilinx_dpdma.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015 - 2020 Xilinx, Inc. 15 #include <linux/dma/xilinx_dpdma.h> 28 #include <dt-bindings/dma/xlnx-zynqmp-dpdma.h> 31 #include "../virt-dma.h" 142 * struct xilinx_dpdma_hw_desc - DPDMA hardware descriptor 180 * struct xilinx_dpdma_sw_desc - DPDMA software descriptor 183 * @dma_addr: DMA address of the software descriptor 192 * struct xilinx_dpdma_tx_desc - DPDMA transaction descriptor 193 * @vdesc: virtual DMA descriptor [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtw89/ |
H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 35 return -EBUSY; in rtw89_pci_rst_bdram_pcie() 44 u32 cnt, cur_rp, wp, rp, len; in rtw89_pci_dma_recalc() local 46 rp = bd_ring->rp; in rtw89_pci_dma_recalc() 47 wp = bd_ring->wp; in rtw89_pci_dma_recalc() 48 len = bd_ring->len; in rtw89_pci_dma_recalc() 52 cnt = cur_rp >= rp ? cur_rp - rp : len - (rp - cur_rp); in rtw89_pci_dma_recalc() 54 cnt = cur_rp >= wp ? cur_rp - wp : len - (wp - cur_rp); in rtw89_pci_dma_recalc() 56 bd_ring->rp = cur_rp; in rtw89_pci_dma_recalc() 58 return cnt; in rtw89_pci_dma_recalc() [all …]
|
/openbmc/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 46 return skb->priority; in rtw_pci_get_tx_qsel() 52 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read8() 54 return readb(rtwpci->mmap + addr); in rtw_pci_read8() 59 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read16() 61 return readw(rtwpci->mmap + addr); in rtw_pci_read16() 66 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read32() 68 return readl(rtwpci->mmap + addr); in rtw_pci_read32() 73 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_write8() [all …]
|
/openbmc/linux/drivers/scsi/qla4xxx/ |
H A D | ql4_nx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2013 QLogic Corporation 14 #include <linux/io-64-nonatomic-lo-hi.h> 40 if ((off < ha->first_page_group_end) && in qla4_8xxx_pci_base_offsetfset() 41 (off >= ha->first_page_group_start)) in qla4_8xxx_pci_base_offsetfset() 42 return (void __iomem *)(ha->nx_pcibase + off); in qla4_8xxx_pci_base_offsetfset() 363 ha->crb_win = CRB_HI(*off); in qla4_82xx_pci_set_crbwindow_2M() 364 writel(ha->crb_win, in qla4_82xx_pci_set_crbwindow_2M() 365 (void __iomem *)(CRB_WINDOW_2M + ha->nx_pcibase)); in qla4_82xx_pci_set_crbwindow_2M() 369 win_read = readl((void __iomem *)(CRB_WINDOW_2M + ha->nx_pcibase)); in qla4_82xx_pci_set_crbwindow_2M() [all …]
|
/openbmc/linux/drivers/staging/rtl8723bs/hal/ |
H A D | sdio_halinit.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved. 60 /* Radio-Off Pin Trigger */ in _InitPowerOn_8723BS() 78 /* Enable MAC DMA/WMAC/SCHEDULE/SEC block */ in _InitPowerOn_8723BS() 136 struct registry_priv *pregistrypriv = &padapter->registrypriv; in _InitQueueReservedPage() 143 bool bWiFiConfig = pregistrypriv->wifi_spec; in _InitQueueReservedPage() 145 if (pHalData->OutEpQueueSel & TX_SELE_HQ) in _InitQueueReservedPage() 148 if (pHalData->OutEpQueueSel & TX_SELE_LQ) in _InitQueueReservedPage() 152 if (pHalData->OutEpQueueSel & TX_SELE_NQ) in _InitQueueReservedPage() 155 numPubQ = TX_TOTAL_PAGE_NUMBER_8723B - numHQ - numLQ - numNQ; in _InitQueueReservedPage() [all …]
|
/openbmc/linux/Documentation/driver-api/usb/ |
H A D | usb.rst | 1 .. _usb-hostside-api: 4 The Linux-USB Host Side API 18 That master/slave asymmetry was designed-in for a number of reasons, one 22 distributed auto-configuration since the pre-designated master node 37 USB Host-Side API Model 40 Host-side drivers for USB devices talk to the "usbcore" APIs. There are 41 two. One is intended for *general-purpose* drivers (exposed through 49 - USB supports four kinds of data transfers (control, bulk, interrupt, 54 - The device description model includes one or more "configurations" 60 - From USB 3.0 on configurations have one or more "functions", which [all …]
|
/openbmc/linux/arch/powerpc/platforms/cell/spufs/ |
H A D | file.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * SPU file system -- file contents 17 #include <linux/poll.h> 52 return -ENOMEM; in spufs_attr_open() 54 attr->get = get; in spufs_attr_open() 55 attr->set = set; in spufs_attr_open() 56 attr->data = inode->i_private; in spufs_attr_open() 57 attr->fmt = fmt; in spufs_attr_open() 58 mutex_init(&attr->mutex); in spufs_attr_open() 59 file->private_data = attr; in spufs_attr_open() [all …]
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | davinci_emac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * DaVinci EMAC is based upon CPPI 3.0 TI DMA engine 9 * --------------------------------------------------------------------------- 11 * 0-5 A number of folks worked on this driver in bits and pieces but the major 13 * 6.0 Anant Gole - rewrote the driver as per Linux conventions 14 * 6.1 Chaithrika U S - added support for Gigabit and RMII features, 38 #include <linux/dma-mapping.h> 108 #define EMAC_DEF_BUFFER_OFFSET (0) /* Buffer offset to DMA (future) */ 119 #define EMAC_DEF_RX_MAX_SERVICE (64) /* should = netdev->weight */ 318 struct cpdma_ctlr *dma; member [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | sb1250-mac.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * This driver is designed for the Broadcom SiByte SOC built-in 48 /* A few user-configurable values which may be modified when a driver 116 sbmac_duplex_none = -1, 142 #define SBDMA_NEXTBUF(d,f) ((((d)->f+1) == (d)->sbdma_dscrtable_end) ? \ 143 (d)->sbdma_dscrtable : (d)->f+1) 155 * DMA Descriptor structure 164 * DMA Controller structure 186 void __iomem *sbdma_config0; /* DMA config register 0 */ 187 void __iomem *sbdma_config1; /* DMA config register 1 */ [all …]
|
/openbmc/linux/drivers/isdn/hardware/mISDN/ |
H A D | hfcpci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * hfcpci.c low level driver for CCD's hfc-pci based cards 8 * type approval valid for HFC-S PCI A based card 10 * Copyright 1999 by Werner Cornelius (werner@isdn-development.de) 16 * NOTE: only one poll value must be given for all cards 19 * poll: 20 * NOTE: only one poll value must be given for all cards 46 static uint poll, tics; variable 53 module_param(poll, uint, S_IRUGO | S_IWUSR); 102 /* marker saving last b-fifo frame count */ [all …]
|
/openbmc/qemu/hw/net/ |
H A D | ftgmac100.c | 4 * Copyright (C) 2016-2017, IBM Corporation. 11 * COPYING file in the top-level directory. 17 #include "sysemu/dma.h" 24 #include "hw/qdev-properties.h" 61 * values below are offset by - FTGMAC100_REG_HIGH_OFFSET from datasheet 64 #define FTGMAC100_NPTXR_BADR_HIGH (0x17C - FTGMAC100_REG_HIGH_OFFSET) 65 #define FTGMAC100_HPTXR_BADR_HIGH (0x184 - FTGMAC100_REG_HIGH_OFFSET) 66 #define FTGMAC100_RXR_BADR_HIGH (0x18C - FTGMAC100_REG_HIGH_OFFSET) 92 * DMA burst length and arbitration control register 117 * PHY control register - New MDC/MDIO interface [all …]
|
/openbmc/linux/drivers/net/ethernet/myricom/myri10ge/ |
H A D | myri10ge.c | 2 * myri10ge.c: Myricom Myri-10G Ethernet driver. 4 * Copyright (C) 2005 - 2011 Myricom, Inc. 34 * http://www.myri.com/scs/download-Myri10GE.html 49 #include <linux/dma-mapping.h> 78 #define MYRI10GE_VERSION_STR "1.5.3-1.534" 132 int cnt; member 135 int mask; /* number of rx slots -1 */ 146 int mask; /* number of transmit slots -1 */ 160 int cnt; member 274 {[0 ... (MYRI10GE_MAX_BOARDS - 1)] = NULL }; [all …]
|