| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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 */ 117 /* last used idx for outstanding DMA zerocopy buffers */ 119 /* For TX, first used idx for DMA done zerocopy buffers 139 struct vhost_poll poll[VHOST_NET_VQ_MAX]; member 156 if (rxq->tail != rxq->head) in vhost_net_buf_get_ptr() [all …]
|
| /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 …]
|
| /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 41 * @param octeon_dev - the octeon device pointer. 42 * @param opcode - the opcode for which the dispatch argument 44 * @param subcode - the subcode for which the dispatch argument 60 spin_lock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch_arg() 62 if (octeon_dev->dispatch.count == 0) { in octeon_get_dispatch_arg() 63 spin_unlock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch_arg() 67 if (octeon_dev->dispatch.dlist[idx].opcode == combined_opcode) { in octeon_get_dispatch_arg() 68 fn_arg = octeon_dev->dispatch.dlist[idx].arg; in octeon_get_dispatch_arg() [all …]
|
| /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 …]
|
| /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 …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_txrx.c | 1 // SPDX-License-Identifier: GPL-2.0 26 * ice_prgm_fdir_fltr - Program a Flow Director filter 40 dma_addr_t dma; in ice_prgm_fdir_fltr() local 46 return -ENOENT; in ice_prgm_fdir_fltr() 47 tx_ring = vsi->tx_rings[0]; in ice_prgm_fdir_fltr() 48 if (!tx_ring || !tx_ring->desc) in ice_prgm_fdir_fltr() 49 return -ENOENT; in ice_prgm_fdir_fltr() 50 dev = tx_ring->dev; in ice_prgm_fdir_fltr() 53 for (i = ICE_FDIR_CLEAN_DELAY; ICE_DESC_UNUSED(tx_ring) < 2; i--) { in ice_prgm_fdir_fltr() 55 return -EAGAIN; in ice_prgm_fdir_fltr() [all …]
|
| /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 47 return skb->priority; in rtw_pci_get_tx_qsel() 53 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read8() 55 return readb(rtwpci->mmap + addr); in rtw_pci_read8() 60 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read16() 62 return readw(rtwpci->mmap + addr); in rtw_pci_read16() 67 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_read32() 69 return readl(rtwpci->mmap + addr); in rtw_pci_read32() 74 struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; in rtw_pci_write8() [all …]
|
| /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 47 static uint poll, tics; variable 52 MODULE_DESCRIPTION("mISDN driver for CCD's hfc-pci based cards"); 55 module_param(poll, uint, S_IRUGO | S_IWUSR); [all …]
|
| /linux/drivers/scsi/ |
| H A D | NCR5380.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * to implement 5380 SCSI drivers under Linux with a non-trantor 13 * +1 (303) 666-5836 24 * 1+ (719) 578-3400 25 * 1+ (800) 334-5454 42 * transfer - some PC's will use the I/O bus, 68K's must use 46 * each 5380 in the system - commands that haven't been issued yet, 51 * allowing multiple commands to propagate all the way to a SCSI-II device 57 * When used in a PIO or pseudo-dma mode, the NCR5380 is a braindead 101 * NCR5380_read(register) - read from the specified register [all …]
|
| /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 …]
|
| /linux/drivers/misc/bcm-vk/ |
| H A D | bcm_vk_msg.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2018-2020 Broadcom. 12 #include <linux/poll.h> 46 u32 q_num = msg->trans_id & BCM_VK_MSG_Q_MASK; in get_q_num() 62 msg->trans_id = (msg->trans_id & ~BCM_VK_MSG_Q_MASK) | trans_q; in set_q_num() 67 return ((msg->trans_id >> BCM_VK_MSG_Q_SHIFT) & BCM_VK_MSG_ID_MASK); in get_msg_id() 72 msg->trans_id = (val << BCM_VK_MSG_Q_SHIFT) | get_q_num(msg); in set_msg_id() 77 return ((idx + inc) & qinfo->q_mask); in msgq_inc() 84 return qinfo->q_start + (VK_MSGQ_BLK_SIZE * idx); in msgq_blk_addr() 92 wr_idx = readl_relaxed(&msgq->wr_idx); in msgq_occupied() [all …]
|
| H A D | bcm_vk_dev.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2018-2020 Broadcom. 7 #include <linux/dma-mapping.h> 49 {VK_IMAGE_TYPE_BOOT1, {"vk_a0-boot1.bin", "vk-boot1.bin"}}, 50 {VK_IMAGE_TYPE_BOOT2, {"vk_a0-boot2.bin", "vk-boot2.bin"}} 53 {VK_IMAGE_TYPE_BOOT1, {"vk_b0-boot1.bin", "vk-boot1.bin"}}, 54 {VK_IMAGE_TYPE_BOOT2, {"vk_b0-boot2.bin", "vk-boot2.bin"}} 58 {VK_IMAGE_TYPE_BOOT1, {"vp-boot1.bin", ""}}, 59 {VK_IMAGE_TYPE_BOOT2, {"vp-boot2.bin", ""}} 85 /* Number of bits set in DMA mask*/ [all …]
|
| /linux/drivers/usb/core/ |
| H A D | devices.c | 1 // SPDX-License-Identifier: GPL-2.0+ 16 * reason -- maybe it's just too deep of a directory structure. 24 * this in any plug-and-play environment.) 26 * 1999-12-16: Thomas Sailer <sailer@ife.ee.ethz.ch> 30 * Added a poll method to /sys/kernel/debug/usb/devices, to wake 32 * 2000-01-04: Thomas Sailer <sailer@ife.ee.ethz.ch> 34 * 2000-07-05: Ashley Montanaro <ashley@compsoc.man.ac.uk> 54 /* T: Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=dddd MxCh=dd */ 55 "\nT: Bus=%2.2d Lev=%2.2d Prnt=%2.2d Port=%2.2d Cnt=%2.2d Dev#=%3d Spd=%-4s MxCh=%2d\n"; 77 "D: Ver=%2x.%02x Cls=%02x(%-5s) Sub=%02x Prot=%02x MxPS=%2d #Cfgs=%3d\n"; [all …]
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | skge.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 133 CS_CLK_RUN_HOT = 1<<13,/* CLK_RUN hot m. (YUKON-Lite only) */ 134 CS_CLK_RUN_RST = 1<<12,/* CLK_RUN reset (YUKON-Lite only) */ 135 CS_CLK_RUN_ENA = 1<<11,/* CLK_RUN enable (YUKON-Lite only) */ 179 IS_LNK_SYNC_M1 = 1<<20, /* Link Sync Cnt wrap MAC 1 */ 181 IS_LNK_SYNC_M2 = 1<<18, /* Link Sync Cnt wrap MAC 2 */ 262 CHIP_ID_YUKON_LITE = 0xb1, /* Chip ID for YUKON-Lite (Rev. A1-A3) */ 263 CHIP_ID_YUKON_LP = 0xb2, /* Chip ID for YUKON-LP */ 264 CHIP_ID_YUKON_XL = 0xb3, /* Chip ID for YUKON-2 XL */ 265 CHIP_ID_YUKON_EC = 0xb6, /* Chip ID for YUKON-2 EC */ [all …]
|
| /linux/drivers/iio/ |
| H A D | industrialio-buffer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * - Better memory allocation techniques? 10 * - Alternative access techniques? 18 #include <linux/dma-buf.h> 19 #include <linux/dma-fence.h> 20 #include <linux/dma-resv.h> 26 #include <linux/poll.h> 30 #include <linux/iio/iio-opaque.h> 72 return !list_empty(&buf->buffer_list); in iio_buffer_is_active() 77 return buf->access->data_available(buf); in iio_buffer_data_available() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_npa.c | 1 // SPDX-License-Identifier: GPL-2.0 18 struct admin_queue *aq = block->aq; in npa_aq_enqueue_wait() 23 result = (struct npa_aq_res_s *)aq->res->base; in npa_aq_enqueue_wait() 26 reg = rvu_read64(rvu, block->addr, NPA_AF_AQ_STATUS); in npa_aq_enqueue_wait() 29 memcpy((void *)(aq->inst->base + (head * aq->inst->entry_sz)), in npa_aq_enqueue_wait() 30 (void *)inst, aq->inst->entry_sz); in npa_aq_enqueue_wait() 36 rvu_write64(rvu, block->addr, NPA_AF_AQ_DOOR, 1); in npa_aq_enqueue_wait() 37 while (result->compcode == NPA_AQ_COMP_NOTDONE) { in npa_aq_enqueue_wait() 40 timeout--; in npa_aq_enqueue_wait() 42 return -EBUSY; in npa_aq_enqueue_wait() [all …]
|
| /linux/drivers/scsi/qla2xxx/ |
| H A D | qla_mr.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (c) 2003-2014 QLogic Corporation 49 uint32_t cnt; in qlafx00_mailbox_command() local 52 struct qla_hw_data *ha = vha->hw; in qlafx00_mailbox_command() 53 scsi_qla_host_t *base_vha = pci_get_drvdata(ha->pdev); in qlafx00_mailbox_command() 55 if (ha->pdev->error_state == pci_channel_io_perm_failure) { in qlafx00_mailbox_command() 61 if (vha->device_flags & DFLG_DEV_FAILED) { in qlafx00_mailbox_command() 67 reg = ha->iobase; in qlafx00_mailbox_command() 68 io_lock_on = base_vha->flags.init_done; in qlafx00_mailbox_command() 71 abort_active = test_bit(ABORT_ISP_ACTIVE, &base_vha->dpc_flags); in qlafx00_mailbox_command() [all …]
|
| /linux/drivers/crypto/ |
| H A D | hifn_795x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 #include <linux/dma-mapping.h> 60 /* DMA registres */ 62 #define HIFN_DMA_CRA 0x0C /* DMA Command Ring Address */ 63 #define HIFN_DMA_SDRA 0x1C /* DMA Source Data Ring Address */ 64 #define HIFN_DMA_RRA 0x2C /* DMA Result Ring Address */ 65 #define HIFN_DMA_DDRA 0x3C /* DMA Destination Data Ring Address */ 66 #define HIFN_DMA_STCTL 0x40 /* DMA Status and Control */ 67 #define HIFN_DMA_INTREN 0x44 /* DMA Interrupt Enable */ 68 #define HIFN_DMA_CFG1 0x48 /* DMA Configuration #1 */ [all …]
|
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 4965.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 79 * Acquire il->lock before calling this function ! 83 * il4965_tx_queue_set_status - (optionally) start Tx/Cmd queue 84 * @tx_fifo_id: Tx DMA/FIFO channel (range 0-7) that the queue will feed 87 * NOTE: Acquire il->lock before calling this function ! 133 void il4965_sta_modify_sleep_tx_count(struct il_priv *il, int sta_id, int cnt); 181 * The first queue used for block-ack aggregation is #7 (4965 only). 182 * All block-ack aggregation queues should map to Tx DMA/FIFO channel 7. [all …]
|