/linux-6.12.1/drivers/net/wireless/ath/wil6210/ |
D | txrx_edma.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. 32 dma_addr_t pa = wil_tx_desc_get_addr_edma(&d->dma); in wil_tx_desc_unmap_edma() local 33 u16 dmalen = le16_to_cpu(d->dma.length); in wil_tx_desc_unmap_edma() 35 switch (ctx->mapped_as) { in wil_tx_desc_unmap_edma() 37 dma_unmap_single(dev, pa, dmalen, DMA_TO_DEVICE); in wil_tx_desc_unmap_edma() 40 dma_unmap_page(dev, pa, dmalen, DMA_TO_DEVICE); in wil_tx_desc_unmap_edma() 52 if (!wil->srings[i].va) in wil_find_free_sring() 56 return -EINVAL; in wil_find_free_sring() 65 if (!sring || !sring->va) in wil_sring_free() [all …]
|
D | txrx.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2012-2017 Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 25 MODULE_PARM_DESC(rx_align_2, " align Rx buffers on 4*n+2, default - no"); 29 MODULE_PARM_DESC(rx_large_buf, " allocate 8KB RX buffers, default - no"); 39 /* wil_ring_wmark_low - low watermark for available descriptor space */ 42 return ring->size / 8; in wil_ring_wmark_low() 45 /* wil_ring_wmark_high - high watermark for available descriptor space */ 48 return ring->size / 4; in wil_ring_wmark_high() 71 struct wil_ring *vring = &wil->ring_tx[i]; in wil_is_tx_idle() [all …]
|
/linux-6.12.1/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_nic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init() 58 rss_params = &cfg->aq_rss; in aq_nic_rss_init() 60 rss_params->hash_secret_key_size = sizeof(rss_key); in aq_nic_rss_init() 61 memcpy(rss_params->hash_secret_key, rss_key, sizeof(rss_key)); in aq_nic_rss_init() 62 rss_params->indirection_table_size = AQ_CFG_RSS_INDIRECTION_TABLE_MAX; in aq_nic_rss_init() 64 for (i = rss_params->indirection_table_size; i--;) in aq_nic_rss_init() 65 rss_params->indirection_table[i] = i & (num_rss_queues - 1); in aq_nic_rss_init() [all …]
|
D | aq_ring.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 32 for (i = 0; i < sinfo->nr_frags; i++) { in aq_get_rxpages_xdp() 33 skb_frag_t *frag = &sinfo->frags[i]; in aq_get_rxpages_xdp() 38 page_ref_inc(buff->rxdata.page); in aq_get_rxpages_xdp() 43 unsigned int len = PAGE_SIZE << rxpage->order; in aq_free_rxpage() 45 dma_unmap_page(dev, rxpage->daddr, len, DMA_FROM_DEVICE); in aq_free_rxpage() 48 __free_pages(rxpage->page, rxpage->order); in aq_free_rxpage() 49 rxpage->page = NULL; in aq_free_rxpage() [all …]
|
D | aq_ring.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (C) 2014-2019 aQuantia Corporation 5 * Copyright (C) 2019-2020 Marvell International Ltd. 30 * +----------+----------+----------+----------- 31 * 8bytes|len l3,l4 | pa | pa | pa 32 * +----------+----------+----------+----------- 34 * +----------+----------+----------+----------- 36 * +----------+----------+----------+----------- 44 dma_addr_t pa; member 150 union aq_ring_stats_s stats; member [all …]
|
/linux-6.12.1/drivers/scsi/bfa/ |
D | bfa_port.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 4 * Copyright (c) 2014- QLogic Corporation. 8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. 21 bfa_port_stats_swap(struct bfa_port_s *port, union bfa_port_stats_u *stats) in bfa_port_stats_swap() argument 23 u32 *dip = (u32 *) stats; in bfa_port_stats_swap() 45 * @param[in] port - Pointer to the port module 46 * status - Return status from the f/w 54 port->endis_pending = BFA_FALSE; in bfa_port_enable_isr() 55 port->endis_cbfn(port->endis_cbarg, status); in bfa_port_enable_isr() [all …]
|
D | bfa_ioc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 4 * Copyright (c) 2014- QLogic Corporation. 8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. 21 (sizeof(struct bfa_trc_mod_s) - \ 111 dm_ptr->mem_len = seg_sz; in bfa_mem_dma_setup() 113 list_add_tail(&dm_ptr->qe, &meminfo->dma_info.qe); in bfa_mem_dma_setup() 120 kva_ptr->mem_len = seg_sz; in bfa_mem_kva_setup() 122 list_add_tail(&kva_ptr->qe, &meminfo->kva_info.qe); in bfa_mem_kva_setup() 126 #define bfa_mem_dma_sptr(_mod, _i) (&(_mod)->dma_seg[(_i)]) [all …]
|
/linux-6.12.1/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc.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 35 /* Structure used to remember the DMA-able memory block's KVA and Physical 40 u64 pa; /* ! Physical address */ member 50 #define bfa_dma_be_addr_set(dma_addr, pa) \ argument 51 __bfa_dma_be_addr_set(&dma_addr, (u64)pa) 53 __bfa_dma_be_addr_set(union bfi_addr_u *dma_addr, u64 pa) in __bfa_dma_be_addr_set() argument 55 dma_addr->a32.addr_lo = (u32) htonl(pa); in __bfa_dma_be_addr_set() [all …]
|
D | bfa_cee.c | 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 23 bfa_cee_format_lldp_cfg(&cee_cfg->lldp_remote); in bfa_cee_format_cee_cfg() 27 bfa_cee_stats_swap(struct bfa_cee_stats *stats) in bfa_cee_stats_swap() argument 29 u32 *buffer = (u32 *)stats; in bfa_cee_stats_swap() 41 lldp_cfg->time_to_live = in bfa_cee_format_lldp_cfg() 42 ntohs(lldp_cfg->time_to_live); in bfa_cee_format_lldp_cfg() 43 lldp_cfg->enabled_system_cap = in bfa_cee_format_lldp_cfg() [all …]
|
/linux-6.12.1/drivers/dma/qcom/ |
D | hidma_dbg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. 24 if (tre_ch >= lldev->nr_tres) { in hidma_ll_chstats() 25 dev_err(lldev->dev, "invalid TRE number in chstats:%d", tre_ch); in hidma_ll_chstats() 28 tre = &lldev->trepool[tre_ch]; in hidma_ll_chstats() 29 seq_printf(s, "------Channel %d -----\n", tre_ch); in hidma_ll_chstats() 30 seq_printf(s, "allocated=%d\n", atomic_read(&tre->allocated)); in hidma_ll_chstats() 31 seq_printf(s, "queued = 0x%x\n", tre->queued); in hidma_ll_chstats() 32 seq_printf(s, "err_info = 0x%x\n", tre->err_info); in hidma_ll_chstats() 33 seq_printf(s, "err_code = 0x%x\n", tre->err_code); in hidma_ll_chstats() [all …]
|
/linux-6.12.1/drivers/net/ethernet/synopsys/ |
D | dwc-xlgmac-net.c | 5 * This program is dual-licensed; you may select either version 2 of 22 #include "dwc-xlgmac.h" 23 #include "dwc-xlgmac-reg.h" 30 return (ring->dma_desc_count - (ring->cur - ring->dirty)); in xlgmac_tx_avail_desc() 35 return (ring->cur - ring->dirty); in xlgmac_rx_dirty_desc() 43 struct xlgmac_pdata *pdata = channel->pdata; in xlgmac_maybe_stop_tx_queue() 46 netif_info(pdata, drv, pdata->netdev, in xlgmac_maybe_stop_tx_queue() 48 netif_stop_subqueue(pdata->netdev, channel->queue_index); in xlgmac_maybe_stop_tx_queue() 49 ring->tx.queue_stopped = 1; in xlgmac_maybe_stop_tx_queue() 54 if (ring->tx.xmit_more) in xlgmac_maybe_stop_tx_queue() [all …]
|
/linux-6.12.1/drivers/staging/gdm724x/ |
D | gdm_lte.c | 1 // SPDX-License-Identifier: GPL-2.0 64 if (dev->flags & IFF_UP) in gdm_lte_set_config() 65 return -EBUSY; in gdm_lte_set_config() 73 if (netif_queue_stopped(nic->netdev)) in tx_complete() 74 netif_wake_queue(nic->netdev); in tx_complete() 81 len = skb->len + ETH_HLEN; in gdm_lte_rx() 84 nic->stats.rx_dropped++; in gdm_lte_rx() 86 nic->stats.rx_packets++; in gdm_lte_rx() 87 nic->stats.rx_bytes += len; in gdm_lte_rx() 95 struct nic *nic = netdev_priv(skb_in->dev); in gdm_lte_emulate_arp() [all …]
|
/linux-6.12.1/fs/ext4/ |
D | mballoc.h | 1 // SPDX-License-Identifier: GPL-2.0 31 pr_debug("[%s/%d] EXT4-fs (%s): (%s, %d): %s: " fmt, \ 32 current->comm, task_pid_nr(current), sb->s_id, \ 52 * with 's_mb_stats' allocator will collect stats that will be 98 #define MB_NUM_ORDERS(sb) ((sb)->s_blocksize_bits + 2) 120 struct rb_node inode_node; /* for inode PA rbtree */ 135 unsigned short pa_type; /* pa type. inode or group */ 137 rwlock_t *inode_lock; /* locks the rbtree holding this PA */ 138 spinlock_t *lg_lock; /* locks the lg list holding this PA */ 161 * order value.ie, fls(pa_free)-1; [all …]
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 1 // SPDX-License-Identifier: GPL-2.0-only 43 * flags - The flags to pass when opening KVM_DEV_PATH. 85 * 16 bytes to hold a 64-bit value (1 byte per char), 1 byte for the in get_module_param_integer() 95 TEST_ASSERT(value[r - 1] == '\n', in get_module_param_integer() 96 "Expected trailing newline, got char '%c'", value[r - 1]); in get_module_param_integer() 100 * trailing non-NUL characters in the string. in get_module_param_integer() 102 value[r - 1] = '\0'; in get_module_param_integer() 156 * cap - Capability 188 vm->dirty_ring_size = ring_size; in vm_enable_dirty_ring() 193 vm->kvm_fd = _open_kvm_dev_path_or_exit(O_RDWR); in vm_open() [all …]
|
/linux-6.12.1/drivers/gpu/drm/vmwgfx/device_include/ |
D | vm_basic_types.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */ 3 * Copyright 2015-2021 VMware, Inc. 41 typedef uint64 PA; typedef 62 * MKS Guest Stats types 116 * communicate guest stats back to the host code. The guest must 120 * stats data. 130 * able to log stats, but the guest will continue to run normally. 135 uint64 statStartVA; /* VA of the start of the stats section. */ 137 uint64 statLength; /* length of the stats section in bytes. */
|
/linux-6.12.1/drivers/net/ethernet/pasemi/ |
D | pasemi_mac_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2006-2008 PA Semi, Inc 5 * Ethtool hooks for the PA Semi PWRficient onchip 1G/10G Ethernet MACs 19 { "rx-drops" }, 20 { "rx-bytes" }, 21 { "rx-packets" }, 22 { "rx-broadcast-packets" }, 23 { "rx-multicast-packets" }, 24 { "rx-crc-errors" }, 25 { "rx-undersize-errors" }, [all …]
|
/linux-6.12.1/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2003-2010 PEAK System-Technik GmbH 7 * Copyright (C) 2010-2012 Stephane Grosjean <s.grosjean@peak-system.com> 27 MODULE_AUTHOR("Stephane Grosjean <s.grosjean@peak-system.com>"); 28 MODULE_DESCRIPTION("CAN driver for PEAK-System USB adapters"); 63 return sysfs_emit(buf, "%08X\n", peak_dev->can_channel_id); in can_channel_id_show() 98 time_ref->adapter = adapter; in peak_usb_init_time_ref() 107 time_ref->ts_dev_2 = ts_now; in peak_usb_update_ts_now() 110 if (ktime_to_ns(time_ref->tv_host) > 0) { in peak_usb_update_ts_now() 111 u32 delta_ts = time_ref->ts_dev_2 - time_ref->ts_dev_1; in peak_usb_update_ts_now() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/net/ |
D | ti,icssg-prueth.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/net/ti,icssg-prueth.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Md Danish Anwar <danishanwar@ti.com> 13 Ethernet based on the Programmable Real-Time Unit and Industrial 19 - ti,am642-icssg-prueth # for AM64x SoC family 20 - ti,am654-icssg-prueth # for AM65x SoC family 21 - ti,am654-sr1-icssg-prueth # for AM65x SoC family, SR1.0 32 dma-names: [all …]
|
/linux-6.12.1/include/linux/pds/ |
D | pds_core_if.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB) OR BSD-2-Clause */ 31 * enum pds_core_cmd_opcode - Device commands 54 * enum pds_core_status_code - Device command return codes 86 * struct pds_core_drv_identity - Driver identity information 105 * struct pds_core_dev_identity - Device identity information 114 * Scale user-supplied interrupt coalescing 118 * Scale user-supplied interrupt coalescing 139 * struct pds_core_dev_identify_cmd - Driver/device identify command 144 * in cmd_regs->data. Driver should keep the devcmd interface locked 153 * struct pds_core_dev_identify_comp - Device identify command completion [all …]
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_txrx.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #define CQE_ADDR(CQ, idx) ((CQ)->cqe_base + ((CQ)->cqe_size * (idx))) 38 u64 incr = (u64)(cq->cq_idx) << 32; in otx2_nix_cq_op_status() 41 status = otx2_atomic64_fetch_add(incr, pfvf->cq_op_addr); in otx2_nix_cq_op_status() 45 dev_err(pfvf->dev, "CQ stopped due to error"); in otx2_nix_cq_op_status() 46 return -EINVAL; in otx2_nix_cq_op_status() 49 cq->cq_tail = status & 0xFFFFF; in otx2_nix_cq_op_status() 50 cq->cq_head = (status >> 20) & 0xFFFFF; in otx2_nix_cq_op_status() 51 if (cq->cq_tail < cq->cq_head) in otx2_nix_cq_op_status() 52 cq->pend_cqe = (cq->cqe_cnt - cq->cq_head) + in otx2_nix_cq_op_status() [all …]
|
D | otx2_common.c | 1 // SPDX-License-Identifier: GPL-2.0 19 static void otx2_nix_rq_op_stats(struct queue_stats *stats, in otx2_nix_rq_op_stats() argument 26 stats->bytes = otx2_atomic64_add(incr, ptr); in otx2_nix_rq_op_stats() 29 stats->pkts = otx2_atomic64_add(incr, ptr); in otx2_nix_rq_op_stats() 32 static void otx2_nix_sq_op_stats(struct queue_stats *stats, in otx2_nix_sq_op_stats() argument 39 stats->bytes = otx2_atomic64_add(incr, ptr); in otx2_nix_sq_op_stats() 42 stats->pkts = otx2_atomic64_add(incr, ptr); in otx2_nix_sq_op_stats() 49 if (!netif_running(pfvf->netdev)) in otx2_update_lmac_stats() 52 mutex_lock(&pfvf->mbox.lock); in otx2_update_lmac_stats() 53 req = otx2_mbox_alloc_msg_cgx_stats(&pfvf->mbox); in otx2_update_lmac_stats() [all …]
|
/linux-6.12.1/drivers/mailbox/ |
D | bcm-flexrm-mailbox.c | 1 // SPDX-License-Identifier: GPL-2.0-only 23 #include <linux/dma-mapping.h> 30 #include <linux/mailbox/brcm-message.h> 50 (!((addr) & ((0x1 << RING_BD_ALIGN_ORDER) - 1))) 66 /* Per-Ring register offsets */ 91 #define BD_START_ADDR_VALUE(pa) \ argument 92 ((u32)((((dma_addr_t)(pa)) >> RING_BD_ALIGN_ORDER) & 0x0fffffff)) 97 #define CMPL_START_ADDR_VALUE(pa) \ argument 98 ((u32)((((u64)(pa)) >> RING_CMPL_ALIGN_ORDER) & 0x07ffffff)) 272 /* Atomic stats */ [all …]
|
/linux-6.12.1/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_stats.c | 3 * Copyright (C) 2012-2015 Emulex. All rights reserved. 16 * - Redistributions of source code must retain the above copyright notice, 19 * - Redistributions in binary form must reproduce the above copyright 36 * linux-drivers@emulex.com 59 pr_err("%s: No space in stats buff\n", __func__); in ocrdma_add_stat() 69 struct stats_mem *mem = &dev->stats_mem; in ocrdma_alloc_stats_resources() 71 mutex_init(&dev->stats_lock); in ocrdma_alloc_stats_resources() 73 mem->size = max_t(u32, sizeof(struct ocrdma_rdma_stats_req), in ocrdma_alloc_stats_resources() 76 mem->va = dma_alloc_coherent(&dev->nic_info.pdev->dev, mem->size, in ocrdma_alloc_stats_resources() 77 &mem->pa, GFP_KERNEL); in ocrdma_alloc_stats_resources() [all …]
|
/linux-6.12.1/drivers/thermal/ |
D | gov_power_allocator.c | 1 // SPDX-License-Identifier: GPL-2.0 24 * mul_frac() - multiply two fixed-point numbers 28 * Return: the result of multiplying two fixed-point numbers. The 29 * result is also a fixed-point number. 37 * div_frac() - divide two fixed-point numbers 41 * Return: the result of dividing two fixed-point numbers. The 42 * result is also a fixed-point number. 50 * struct power_actor - internal power information for power actor 66 * struct power_allocator_params - parameters for the power allocator governor 83 * @buffer_size: internal buffer size, to avoid runtime re-calculation [all …]
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxbf_gige/ |
D | mlxbf_gige_tx.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR BSD-3-Clause 5 * Copyright (C) 2020-2021 NVIDIA CORPORATION & AFFILIATES 21 size = MLXBF_GIGE_TX_WQE_SZ * priv->tx_q_entries; in mlxbf_gige_tx_init() 22 priv->tx_wqe_base = dma_alloc_coherent(priv->dev, size, in mlxbf_gige_tx_init() 23 &priv->tx_wqe_base_dma, in mlxbf_gige_tx_init() 25 if (!priv->tx_wqe_base) in mlxbf_gige_tx_init() 26 return -ENOMEM; in mlxbf_gige_tx_init() 28 priv->tx_wqe_next = priv->tx_wqe_base; in mlxbf_gige_tx_init() 31 writeq(priv->tx_wqe_base_dma, priv->base + MLXBF_GIGE_TX_WQ_BASE); in mlxbf_gige_tx_init() 34 priv->tx_cc = dma_alloc_coherent(priv->dev, MLXBF_GIGE_TX_CC_SZ, in mlxbf_gige_tx_init() [all …]
|