Home
last modified time | relevance | path

Searched +full:num +full:- +full:vectors (Results 1 – 25 of 99) sorted by relevance

1234

/linux/Documentation/devicetree/bindings/pci/
H A Daltr,msi-controller.yaml1 # 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 <matthew.gerlach@linux.intel.com>
16 - altr,msi-1.0
20 - description: CSR registers
21 - description: Vectors slave port region
23 reg-names:
25 - const: csr
[all …]
/linux/drivers/vdpa/alibaba/
H A Deni_vdpa.c1 // 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/net/dccp/
H A Dackvec.c1 // 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/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.h1 /* 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 …]
H A Dhclgevf_main.c1 // 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/drivers/vdpa/virtio_pci/
H A Dvp_vdpa.c1 // 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/arch/arm/mm/
H A Ddump.c1 // 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 …]
H A Dpmsa-v7.c52 /* 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/Documentation/devicetree/bindings/interrupt-controller/
H A Dloongson,pch-msi.yaml1 # 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 <jiaxun.yang@flygoat.com>
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/security/selinux/ss/
H A Dpolicydb.h1 /* 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/drivers/irqchip/
H A Dirq-riscv-imsic-state.c1 // 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 …]
H A Dirq-mbigen.c1 // SPDX-License-Identifier: GPL-2.0-only
22 /* 64 irqs (Pin0-pin63) are reserved for each mbigen chip */
57 * struct mbigen_device - holds the information of mbigen device.
85 hwirq -= RESERVED_IRQ_PER_MBIGEN_CHIP; in get_mbigen_vec_reg()
97 hwirq -= RESERVED_IRQ_PER_MBIGEN_CHIP; in get_mbigen_type_reg()
118 void __iomem *base = data->chip_data; in mbigen_eoi_irq()
121 get_mbigen_clear_reg(data->hwirq, &mask, &addr); in mbigen_eoi_irq()
130 void __iomem *base = data->chip_data; in mbigen_set_type()
134 return -EINVAL; in mbigen_set_type()
136 get_mbigen_type_reg(data->hwirq, &mask, &addr); in mbigen_set_type()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e.h1 /* 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]))
181 * - LINK_DOWN_ON_CLOSE_ENA is configurable at host OS run-time and
[all …]
/linux/arch/xtensa/variants/dc232b/include/variant/
H A Dcore.h8 * 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/arch/xtensa/variants/test_mmuhifi_c3/include/variant/
H A Dcore.h7 * 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/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu.c1 // 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/drivers/net/ethernet/brocade/bna/
H A Dbnad.c1 // 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/arch/xtensa/variants/dc233c/include/variant/
H A Dcore.h2 * 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/drivers/vdpa/ifcvf/
H A Difcvf_main.c1 // 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/drivers/vdpa/solidrun/
H A Dsnet_main.c1 // 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/kernel/irq/
H A Dmatrix.c1 // 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/drivers/base/
H A Dplatform.c1 // 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 …]
/linux/tools/testing/selftests/kvm/lib/aarch64/
H A Dprocessor.c1 // SPDX-License-Identifier: GPL-2.0
25 return (v + vm->page_size) & ~(vm->page_size - 1); in page_align()
30 unsigned int shift = (vm->pgtable_levels - 1) * (vm->page_shift - in pgd_index()
409 vcpu_args_set(struct kvm_vcpu * vcpu,unsigned int num,...) vcpu_args_set() argument
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpci_irq.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
21 /* min num of vectors for SFs to be enabled */
52 return mlx5_core_ec_vf_vport_base(dev) + func - 1; in mlx5_core_func_to_vport()
56 * mlx5_get_default_msix_vec_count - Get the default number of MSI-X vectors
72 /* Limit maximum number of MSI-X vectors so the default configuration in mlx5_get_default_msix_vec_count()
74 * the number of vectors in a VF without having to first size-down other in mlx5_get_default_msix_vec_count()
81 * mlx5_set_msix_vec_count - Set dynamically allocated MSI-X on the VF
84 * @msix_vec_count: Number of MSI-X vectors to set
102 return -EOPNOTSUPP; in mlx5_set_msix_vec_count()
108 return -EINVAL; in mlx5_set_msix_vec_count()
[all …]
/linux/drivers/staging/vme_user/
H A Dvme.h1 /* SPDX-License-Identifier: GPL-2.0 */
86 /* Number of VME interrupt vectors */
93 #define VME_SLOT_CURRENT -1
94 #define VME_SLOT_ALL -2
97 * struct vme_dev - Structure representing a VME device
98 * @num: The device number
105 int num; member
113 * struct vme_driver - Structure representing a VME driver

1234