/linux-6.14.4/Documentation/devicetree/bindings/pci/ |
D | altr,msi-controller.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 4 --- 5 $id: http://devicetree.org/schemas/altr,msi-controller.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Matthew Gerlach <[email protected]> 16 - altr,msi-1.0 20 - description: CSR registers 21 - description: Vectors slave port region 23 reg-names: 25 - const: csr [all …]
|
/linux-6.14.4/drivers/vdpa/alibaba/ |
D | eni_vdpa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 dev_err(&pdev->dev, "%s"fmt, "eni_vdpa: ", ##__VA_ARGS__) 27 dev_dbg(&pdev->dev, "%s"fmt, "eni_vdpa: ", ##__VA_ARGS__) 29 dev_info(&pdev->dev, "%s"fmt, "eni_vdpa: ", ##__VA_ARGS__) 46 int vectors; member 58 return &eni_vdpa->ldev; in vdpa_to_ldev() 77 ENI_ERR(ldev->pci_dev, in eni_vdpa_set_driver_features() 79 return -EINVAL; in eni_vdpa_set_driver_features() 104 int irq = eni_vdpa->vring[idx].irq; in eni_vdpa_get_vq_irq() 107 return -EINVAL; in eni_vdpa_get_vq_irq() [all …]
|
/linux-6.14.4/net/dccp/ |
D | ackvec.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * An implementation of Ack Vectors for the DCCP protocol 22 av->av_buf_head = av->av_buf_tail = DCCPAV_MAX_ACKVEC_LEN - 1; in dccp_ackvec_alloc() 23 INIT_LIST_HEAD(&av->av_records); in dccp_ackvec_alloc() 32 list_for_each_entry_safe(cur, next, &av->av_records, avr_node) in dccp_ackvec_purge_records() 34 INIT_LIST_HEAD(&av->av_records); in dccp_ackvec_purge_records() 46 * dccp_ackvec_update_records - Record information about sent Ack Vectors 57 return -ENOBUFS; in dccp_ackvec_update_records() 59 avr->avr_ack_seqno = seqno; in dccp_ackvec_update_records() 60 avr->avr_ack_ptr = av->av_buf_head; in dccp_ackvec_update_records() [all …]
|
/linux-6.14.4/drivers/net/ethernet/hisilicon/hibmcge/ |
D | hbg_debugfs.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 #define state_str_true_false(p, s) str_true_false(test_bit(s, &(p)->state)) 27 u32 irq_mask = ring->dir == HBG_DIR_TX ? HBG_INT_MSK_TX_B : in hbg_dbg_ring() 30 seq_printf(s, "ring used num: %u\n", in hbg_dbg_ring() 32 seq_printf(s, "ring max num: %u\n", ring->len); in hbg_dbg_ring() 33 seq_printf(s, "ring head: %u, tail: %u\n", ring->head, ring->tail); in hbg_dbg_ring() 34 seq_printf(s, "fifo used num: %u\n", in hbg_dbg_ring() 35 hbg_hw_get_fifo_used_num(priv, ring->dir)); in hbg_dbg_ring() 36 seq_printf(s, "fifo max num: %u\n", in hbg_dbg_ring() 37 hbg_get_spec_fifo_max_num(priv, ring->dir)); in hbg_dbg_ring() [all …]
|
D | hbg_main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 22 for (i = 0; i < priv->vectors.info_array_len; i++) { in hbg_all_irq_enable() 23 info = &priv->vectors.info_array[i]; in hbg_all_irq_enable() 24 hbg_hw_irq_enable(priv, info->mask, enabled); in hbg_all_irq_enable() 77 /* Only when not table_overflow, and netdev->flags not set IFF_PROMISC, in hbg_update_promisc_mode() 81 priv->filter.enabled = !(overflow || (netdev->flags & IFF_PROMISC)); in hbg_update_promisc_mode() 82 hbg_hw_set_mac_filter_enable(priv, priv->filter.enabled); in hbg_update_promisc_mode() 89 ether_addr_copy(priv->filter.mac_table[index].addr, addr); in hbg_set_mac_to_mac_table() 92 eth_zero_addr(priv->filter.mac_table[index].addr); in hbg_set_mac_to_mac_table() 102 for (i = 0; i < priv->filter.table_max_len; i++) in hbg_get_index_from_mac_table() [all …]
|
/linux-6.14.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* Copyright (c) 2016-2017 Hisilicon Limited. */ 28 * possible vector-per-VF is {VFn(1-32), VECTn(32 + 1)}. 103 (pci_resource_len((hdev)->pdev, HCLGEVF_MEM_BAR) >> 1) 112 hclge_comm_read_reg((a)->hw.io_base, reg) 114 hclge_comm_write_reg((a)->hw.io_base, reg, value) 233 u16 num_tqps; /* num task queue pairs of this VF */ 238 u16 num_alloc_vport; /* num vports this driver supports */ 241 u16 num_tx_desc; /* desc num of per tx queue */ 242 u16 num_rx_desc; /* desc num of per rx queue */ [all …]
|
D | hclgevf_main.c | 1 // SPDX-License-Identifier: GPL-2.0+ 2 // Copyright (c) 2016-2017 Hisilicon Limited. 38 /* hclgevf_cmd_send - send command to command queue 41 * @num : the number of descriptors to be sent 46 int hclgevf_cmd_send(struct hclgevf_hw *hw, struct hclge_desc *desc, int num) in hclgevf_cmd_send() argument 48 return hclge_comm_cmd_send(&hw->hw, desc, num); in hclgevf_cmd_send() 52 int num, bool is_special) in hclgevf_trace_cmd_send() argument 56 trace_hclge_vf_cmd_send(hw, desc, 0, num); in hclgevf_trace_cmd_send() 61 for (i = 1; i < num; i++) in hclgevf_trace_cmd_send() 62 trace_hclge_vf_cmd_send(hw, &desc[i], i, num); in hclgevf_trace_cmd_send() [all …]
|
/linux-6.14.4/drivers/vdpa/virtio_pci/ |
D | vp_vdpa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * vDPA bridge driver for modern virtio-pci device 43 int vectors; member 61 return vp_vdpa->mdev; in vdpa_to_mdev() 66 return vp_vdpa->mdev; in vp_vdpa_to_mdev() 73 return vp_vdpa->device_features; in vp_vdpa_get_device_features() 102 int irq = vp_vdpa->vring[idx].irq; in vp_vdpa_get_vq_irq() 105 return -EINVAL; in vp_vdpa_get_vq_irq() 113 struct pci_dev *pdev = mdev->pci_dev; in vp_vdpa_free_irq() 116 for (i = 0; i < vp_vdpa->queues; i++) { in vp_vdpa_free_irq() [all …]
|
/linux-6.14.4/Documentation/devicetree/bindings/interrupt-controller/ |
D | loongson,pch-msi.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/loongson,pch-msi.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jiaxun Yang <[email protected]> 19 const: loongson,pch-msi-1.0 24 loongson,msi-base-vec: 32 loongson,msi-num-vecs: 34 u32 value of the number of parent HyperTransport vectors allocated 40 msi-controller: true [all …]
|
/linux-6.14.4/arch/arm/mm/ |
D | dump.c | 1 // SPDX-License-Identifier: GPL-2.0-only 31 { VECTORS_BASE, "Vectors" }, 32 { VECTORS_BASE + PAGE_SIZE * 2, "Vectors End" }, 33 { -1, NULL }, 205 size_t num; member 219 .num = ARRAY_SIZE(section_bits), 223 .num = ARRAY_SIZE(pte_bits), 227 static void dump_prot(struct pg_state *st, const struct prot_bits *bits, size_t num) in dump_prot() argument 231 for (i = 0; i < num; i++, bits++) { in dump_prot() 234 if ((st->current_prot & bits->mask) == bits->val) in dump_prot() [all …]
|
D | pmsa-v7.c | 52 /* Data-side / unified region attributes */ 76 /* Optional instruction-side region attributes */ 78 /* I-side Region access control register */ 84 /* I-side Region size register */ 90 /* I-side Region base address register */ 108 /* Data-side / unified region attributes */ 137 /* ARMv7-M only supports a unified MPU, so I-side operations are nop */ 149 phys_addr_t abase = base & ~(size - 1); in try_split_region() 150 phys_addr_t asize = base + size - abase; in try_split_region() 157 bdiff = base - abase; in try_split_region() [all …]
|
/linux-6.14.4/security/selinux/ss/ |
D | policydb.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 * Copyright (C) 2004-2005 Trusted Computer Solutions, Inc. 17 * Copyright (C) 2003-2004 Tresys Technology, LLC 34 * common prefixes for access vectors, classes, 43 /* Attributes of a common prefix for access vectors */ 54 struct symtab permissions; /* class-specific permission symbol table */ 123 struct mls_range range; /* MLS range (min - max) for user */ 250 /* symbol names indexed by (value - 1) */ 253 /* class, role, and user attributes indexed by (value - 1) */ 259 /* type enforcement access vectors and transitions */ [all …]
|
/linux-6.14.4/drivers/virtio/ |
D | virtio_pci_common.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Virtio PCI driver - APIs for common functionality for all device versions 41 /* MSI-X vector (or none) */ 86 /* MSI-X support */ 93 /* Number of available vectors */ 95 /* Vectors allocated, excluding per-vq vectors if any */ 111 int (*avq_index)(struct virtio_device *vdev, u16 *index, u16 *num); 114 /* Constants for MSI-X */ 116 * virtqueues Thus, we need at least 2 vectors for MSI. */ 132 /* the config->del_vqs() implementation */ [all …]
|
/linux-6.14.4/drivers/irqchip/ |
D | irq-riscv-imsic-state.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #define pr_fmt(fmt) "riscv-imsic: " fmt 22 #include "irq-riscv-imsic-state.h" 63 return imsic ? &imsic->global : NULL; in imsic_get_global_config() 74 imask = BIT(id & (__riscv_xlen - 1)); in __imsic_eix_read_clear() 102 * are XLEN-wide and we must not touch IDs which in __imsic_eix_update() 106 for (i = id & (__riscv_xlen - 1); id < last_id && i < __riscv_xlen; i++) { in __imsic_eix_update() 133 lockdep_assert_held(&lpriv->lock); in __imsic_local_sync() 135 for_each_set_bit(i, lpriv->dirty_bitmap, imsic->global.nr_ids + 1) { in __imsic_local_sync() 138 vec = &lpriv->vectors[i]; in __imsic_local_sync() [all …]
|
/linux-6.14.4/drivers/net/ethernet/intel/i40e/ |
D | i40e.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* Copyright(c) 2013 - 2021 Intel Corporation. */ 29 #define I40E_MAX_CSR_SPACE (4 * 1024 * 1024 - 64 * 1024) 38 (test_bit(I40E_HW_CAP_RSS_AQ, (pf)->hw.caps) ? 4 : 1) 42 (test_bit(I40E_HW_CAP_128_QP_RSS, (pf)->hw.caps) ? 128 : 64) 69 (&(((union i40e_rx_desc *)((R)->desc))[i])) 71 (&(((struct i40e_tx_desc *)((R)->desc))[i])) 73 (&(((struct i40e_tx_context_desc *)((R)->desc))[i])) 75 (&(((struct i40e_filter_program_desc *)((R)->desc))[i])) 182 * - LINK_DOWN_ON_CLOSE_ENA is configurable at host OS run-time and [all …]
|
/linux-6.14.4/arch/xtensa/variants/test_mmuhifi_c3/include/variant/ |
D | core.h | 7 * Copyright (c) 1999-2009 Tensilica Inc. 24 /*---------------------------------------------------------------------- 26 ----------------------------------------------------------------------*/ 28 #define XCHAL_HAVE_BE 0 /* big-endian byte ordering */ 30 #define XCHAL_NUM_AREGS 32 /* num of physical addr regs */ 34 #define XCHAL_HAVE_DENSITY 1 /* 16-bit instructions */ 35 #define XCHAL_HAVE_LOOPS 1 /* zero-overhead loops */ 45 #define XCHAL_HAVE_ABSOLUTE_LITERALS 1 /* non-PC-rel (extended) L32R */ 59 #define XCHAL_NUM_MISC_REGS 2 /* num of scratch regs (0..4) */ 70 #define XCHAL_HAVE_VECTORFPU2005 0 /* vector floating-point pkg */ [all …]
|
/linux-6.14.4/arch/xtensa/variants/dc232b/include/variant/ |
D | core.h | 8 * Copyright (c) 1999-2007 Tensilica Inc. 25 /*---------------------------------------------------------------------- 27 ----------------------------------------------------------------------*/ 29 #define XCHAL_HAVE_BE 0 /* big-endian byte ordering */ 31 #define XCHAL_NUM_AREGS 32 /* num of physical addr regs */ 35 #define XCHAL_HAVE_DENSITY 1 /* 16-bit instructions */ 36 #define XCHAL_HAVE_LOOPS 1 /* zero-overhead loops */ 46 #define XCHAL_HAVE_ABSOLUTE_LITERALS 1 /* non-PC-rel (extended) L32R */ 60 #define XCHAL_NUM_MISC_REGS 2 /* num of scratch regs (0..4) */ 68 #define XCHAL_HAVE_VECTORFPU2005 0 /* vector floating-point pkg */ [all …]
|
/linux-6.14.4/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.c | 1 // SPDX-License-Identifier: GPL-2.0 34 int type, int num, 63 struct rvu_hwinfo *hw = rvu->hw; in rvu_setup_hw_capabilities() 65 hw->cap.nix_tx_aggr_lvl = NIX_TXSCH_LVL_TL1; in rvu_setup_hw_capabilities() 66 hw->cap.nix_fixed_txschq_mapping = false; in rvu_setup_hw_capabilities() 67 hw->cap.nix_shaping = true; in rvu_setup_hw_capabilities() 68 hw->cap.nix_tx_link_bp = true; in rvu_setup_hw_capabilities() 69 hw->cap.nix_rx_multicast = true; in rvu_setup_hw_capabilities() 70 hw->cap.nix_shaper_toggle_wait = false; in rvu_setup_hw_capabilities() 71 hw->cap.npc_hash_extract = false; in rvu_setup_hw_capabilities() [all …]
|
/linux-6.14.4/arch/xtensa/variants/dc233c/include/variant/ |
D | core.h | 2 * xtensa/config/core-isa.h -- HAL definitions that are dependent on Xtensa 10 Copyright (c) 1999-2010 Tensilica Inc. 45 /*---------------------------------------------------------------------- 47 ----------------------------------------------------------------------*/ 49 #define XCHAL_HAVE_BE 0 /* big-endian byte ordering */ 51 #define XCHAL_NUM_AREGS 32 /* num of physical addr regs */ 55 #define XCHAL_HAVE_DENSITY 1 /* 16-bit instructions */ 56 #define XCHAL_HAVE_LOOPS 1 /* zero-overhead loops */ 66 #define XCHAL_HAVE_ABSOLUTE_LITERALS 1 /* non-PC-rel (extended) L32R */ 80 #define XCHAL_NUM_MISC_REGS 2 /* num of scratch regs (0..4) */ [all …]
|
/linux-6.14.4/drivers/net/ethernet/brocade/bna/ |
D | bnad.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 57 (((_bnad)->cfg_flags & BNAD_CF_MSIX) ? \ 58 ((_bnad)->msix_table[BNAD_MAILBOX_MSIX_INDEX].vector) : \ 59 ((_bnad)->pcidev->irq)) 63 (_res_info)->res_type = BNA_RES_T_MEM; \ 64 (_res_info)->res_u.mem_info.mem_type = BNA_MEM_T_KVA; \ 65 (_res_info)->res_u.mem_info.num = (_num); \ [all …]
|
/linux-6.14.4/arch/x86/kernel/apic/ |
D | vector.c | 1 // SPDX-License-Identifier: GPL-2.0-only 78 info->mask = mask; in init_irq_alloc_info() 94 while (irqd->parent_data) in apic_chip_data() 95 irqd = irqd->parent_data; in apic_chip_data() 97 return irqd->chip_data; in apic_chip_data() 104 return apicd ? &apicd->hw_irq_cfg : NULL; in irqd_cfg() 119 INIT_HLIST_NODE(&apicd->clist); in alloc_apic_chip_data() 135 apicd->hw_irq_cfg.vector = vector; in apic_update_irq_cfg() 136 apicd->hw_irq_cfg.dest_apicid = apic->calc_dest_apicid(cpu); in apic_update_irq_cfg() 138 trace_vector_config(irqd->irq, vector, cpu, in apic_update_irq_cfg() [all …]
|
/linux-6.14.4/drivers/vdpa/ifcvf/ |
D | ifcvf_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 if (vf->config_cb.callback) in ifcvf_config_changed() 25 return vf->config_cb.callback(vf->config_cb.private); in ifcvf_config_changed() 34 if (vring->cb.callback) in ifcvf_vq_intr_handler() 35 return vring->cb.callback(vring->cb.private); in ifcvf_vq_intr_handler() 46 for (i = 0; i < vf->nr_vring; i++) { in ifcvf_vqs_reused_intr_handler() 47 vring = &vf->vring[i]; in ifcvf_vqs_reused_intr_handler() 48 if (vring->cb.callback) in ifcvf_vqs_reused_intr_handler() 49 vring->cb.callback(vring->cb.private); in ifcvf_vqs_reused_intr_handler() 60 isr = vp_ioread8(vf->isr); in ifcvf_dev_intr_handler() [all …]
|
/linux-6.14.4/drivers/vdpa/solidrun/ |
D | snet_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2022-2023 SolidRun 7 * Author: Alvaro Karsz <alvaro.karsz@solid-run.com> 42 if (likely(snet->cb.callback)) in snet_cfg_irq_hndlr() 43 return snet->cb.callback(snet->cb.private); in snet_cfg_irq_hndlr() 52 if (likely(vq->cb.callback)) in snet_vq_irq_hndlr() 53 return vq->cb.callback(vq->cb.private); in snet_vq_irq_hndlr() 60 struct psnet *psnet = snet->psnet; in snet_free_irqs() 66 pdev = snet->pdev->physfn; in snet_free_irqs() 68 pdev = snet->pdev; in snet_free_irqs() [all …]
|
/linux-6.14.4/kernel/irq/ |
D | matrix.c | 1 // SPDX-License-Identifier: GPL-2.0 41 * irq_alloc_matrix - Allocate a irq_matrix structure and initialize it 58 m->system_map = &m->scratch_map[matrix_size]; in irq_alloc_matrix() 60 m->matrix_bits = matrix_bits; in irq_alloc_matrix() 61 m->alloc_start = alloc_start; in irq_alloc_matrix() 62 m->alloc_end = alloc_end; in irq_alloc_matrix() 63 m->alloc_size = alloc_end - alloc_start; in irq_alloc_matrix() 64 m->maps = __alloc_percpu(struct_size(m->maps, alloc_map, matrix_size * 2), in irq_alloc_matrix() 65 __alignof__(*m->maps)); in irq_alloc_matrix() 66 if (!m->maps) { in irq_alloc_matrix() [all …]
|
/linux-6.14.4/drivers/base/ |
D | platform.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * platform.c - platform 'pseudo' bus for legacy devices 5 * Copyright (c) 2002-3 Patrick Mochel 6 * Copyright (c) 2002-3 Open Source Development Labs 8 * Please see Documentation/driver-api/driver-model/platform.rst for more 20 #include <linux/dma-mapping.h> 28 #include <linux/clk/clk-conf.h> 34 #include <linux/dma-map-ops.h> 48 * platform_get_resource - get a resource for a device 51 * @num: resource index [all …]
|