Home
last modified time | relevance | path

Searched +full:cfg +full:- +full:space (Results 1 – 25 of 588) sorted by relevance

12345678910>>...24

/openbmc/linux/drivers/pci/
H A Decam.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/pci-ecam.h>
15 * On 64-bit systems, we do a single ioremap for the whole config space
16 * since we have enough virtual address range available. On 32-bit, we
17 * ioremap the config space for each bus individually.
22 * Create a PCI config space window
23 * - reserve mem region
24 * - alloc struct pci_config_window with space for all mappings
25 * - ioremap the config space
31 unsigned int bus_shift = ops->bus_shift; in pci_ecam_create()
[all …]
/openbmc/linux/arch/x86/pci/
H A Dmmconfig_64.c1 // SPDX-License-Identifier: GPL-2.0
3 * mmconfig.c - Low-level direct PCI config space access via MMCONFIG
6 * space mapped. This allows lockless config space operation.
21 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in pci_dev_base() local
23 if (cfg && cfg->virt) in pci_dev_base()
24 return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); in pci_dev_base()
33 /* Why do we have this when nobody checks it. How about a BUG()!? -AK */ in pci_mmcfg_read()
35 err: *value = -1; in pci_mmcfg_read()
36 return -EINVAL; in pci_mmcfg_read()
67 /* Why do we have this when nobody checks it. How about a BUG()!? -AK */ in pci_mmcfg_write()
[all …]
H A Dmmconfig_32.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * mmconfig.c - Low-level direct PCI config space access via MMCONFIG
25 * Functions for accessing PCI configuration space with MMCONFIG accesses
29 struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); in get_base_addr() local
31 if (cfg) in get_base_addr()
32 return cfg->address; in get_base_addr()
58 err: *value = -1; in pci_mmcfg_read()
59 return -EINVAL; in pci_mmcfg_read()
97 return -EINVAL; in pci_mmcfg_write()
103 return -EINVAL; in pci_mmcfg_write()
[all …]
/openbmc/linux/arch/loongarch/pci/
H A Dacpi.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
10 #include <linux/pci-acpi.h>
11 #include <linux/pci-ecam.h>
19 struct pci_config_window *cfg; member
30 struct device *bus_dev = &bridge->bus->dev; in pcibios_root_bridge_prepare()
31 struct pci_config_window *cfg = bridge->bus->sysdata; in pcibios_root_bridge_prepare() local
34 adev = to_acpi_device(cfg->parent); in pcibios_root_bridge_prepare()
36 ACPI_COMPANION_SET(&bridge->dev, adev); in pcibios_root_bridge_prepare()
37 set_dev_node(bus_dev, pa_to_nid(cfg->res.start)); in pcibios_root_bridge_prepare()
[all …]
/openbmc/openbmc/poky/documentation/kernel-dev/
H A Dadvanced.rst1 .. SPDX-License-Identifier: CC-BY-SA-2.0-UK
4 Working with Advanced Metadata (``yocto-kernel-cache``)
19 :ref:`overview-manual/development-environment:yocto project source repositories`
20 is the ``yocto-kernel-cache`` Git repository. You can find this repository
24 Kernel development tools ("kern-tools") are also available in the Yocto Project
26 ``yocto-kernel-tools`` Git repository. The recipe that builds these
27 tools is ``meta/recipes-kernel/kern-tools/kern-tools-native_git.bb`` in
35 Metadata, which is located in the ``yocto-kernel-cache`` Git repository.
37 definitions in linux-yocto recipes for corresponding BSPs. A BSP
39 hardware-specific features. The BSP can be influenced from within the
[all …]
/openbmc/linux/arch/arm64/kernel/
H A Dpci.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Code borrowed from powerpc/kernel/pci-common.c
15 #include <linux/pci-acpi.h>
16 #include <linux/pci-ecam.h>
33 * raw_pci_read/write - Platform-specific PCI config space access.
42 return b->ops->read(b, devfn, reg, len, val); in raw_pci_read()
52 return b->ops->write(b, devfn, reg, len, val); in raw_pci_write()
59 return dev_to_node(&bus->dev); in pcibus_to_node()
69 struct pci_config_window *cfg; /* config space mapping */ member
74 struct pci_config_window *cfg = bus->sysdata; in acpi_pci_bus_find_domain_nr() local
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dleon_pci_grpci1.c1 // SPDX-License-Identifier: GPL-2.0
32 /* Enable/Disable Debugging Configuration Space Access */
108 struct grpci1_priv *priv = dev->bus->sysdata; in grpci1_map_irq()
113 pin = ((pin - 1) + irq_group) & 0x3; in grpci1_map_irq()
115 return priv->irq_map[pin]; in grpci1_map_irq()
121 u32 *pci_conf, tmp, cfg; in grpci1_cfg_r32() local
124 return -EINVAL; in grpci1_cfg_r32()
134 cfg = REGLOAD(priv->regs->cfg_stat); in grpci1_cfg_r32()
135 REGSTORE(priv->regs->cfg_stat, (cfg & ~(0xf << 23)) | (bus << 23)); in grpci1_cfg_r32()
138 pci_conf = (u32 *) (priv->pci_conf | (devfn << 8) | (where & 0xfc)); in grpci1_cfg_r32()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/sblim-sfcb/sblim-sfcb/
H A Dsblim-sfcb-1.3.16-multilib-man-cfg.patch1 Upstream-Status: Pending
3 diff -up sblim-sfcb-1.3.16/man/sfcbd.1.pre.in.orig sblim-sfcb-1.3.16/man/sfcbd.1.pre.in
4 --- sblim-sfcb-1.3.16/man/sfcbd.1.pre.in.orig 2014-02-26 14:05:32.213091734 +0100
5 +++ sblim-sfcb-1.3.16/man/sfcbd.1.pre.in 2014-02-26 15:10:54.476196379 +0100
6 @@ -151,7 +151,7 @@ Default=\fI@localstatedir@/lib/sfcb/regi
9 A space separated list of directories where sfcb is looking for provider
10 -libraries. Default=\fI@libdir@\ @libdir@/cmpi\fR
15 @@ -275,11 +275,11 @@ SSL private key file for sfcb.
19 -.I @libdir@/libsfc*
23 -.I @libdir@/cmpi/*
[all …]
/openbmc/linux/net/core/
H A Ddev_ioctl.c1 // SPDX-License-Identifier: GPL-2.0
24 * match. --pb
29 ifr->ifr_name[IFNAMSIZ-1] = 0; in dev_ifname()
30 return netdev_get_name(net, ifr->ifr_name, ifr->ifr_ifindex); in dev_ifname()
50 return -EFAULT; in dev_ifconf()
59 return -EFAULT; in dev_ifconf()
73 len - total, size); in dev_ifconf()
76 return -EFAULT; in dev_ifconf()
82 return put_user(total, &uifc->ifc_len); in dev_ifconf()
87 struct ifmap *ifmap = &ifr->ifr_map; in dev_getifmap()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/crypto/
H A Dipsec.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
92 struct nfp_ipsec_aesgcm { /* AES-GCM-ESP fields */
135 unsigned int offset = nn->tlv_caps.mbox_off + NFP_NET_CFG_MBOX_SIMPLE_VAL; in nfp_net_ipsec_cfg()
136 struct nfp_ipsec_cfg_mssg *msg = (struct nfp_ipsec_cfg_mssg *)entry->msg; in nfp_net_ipsec_cfg()
143 msg_size = ARRAY_SIZE(msg->raw); in nfp_net_ipsec_cfg()
145 nn_writel(nn, offset + 4 * i, msg->raw[i]); in nfp_net_ipsec_cfg()
147 ret = nfp_net_mbox_reconfig(nn, entry->cmd); in nfp_net_ipsec_cfg()
155 msg->raw[i] = nn_readl(nn, offset + 4 * i); in nfp_net_ipsec_cfg()
159 switch (msg->rsp) { in nfp_net_ipsec_cfg()
163 return -EINVAL; in nfp_net_ipsec_cfg()
[all …]
/openbmc/linux/include/linux/
H A Dnet_tstamp.h1 /* SPDX-License-Identifier: GPL-2.0 */
14 * struct kernel_hwtstamp_config - Kernel copy of struct hwtstamp_config
22 * copied the ioctl request back to user space
26 * Prefer using this structure for in-kernel processing of hardware
40 const struct hwtstamp_config *cfg) in hwtstamp_config_to_kernel() argument
42 kernel_cfg->flags = cfg->flags; in hwtstamp_config_to_kernel()
43 kernel_cfg->tx_type = cfg->tx_type; in hwtstamp_config_to_kernel()
44 kernel_cfg->rx_filter = cfg->rx_filter; in hwtstamp_config_to_kernel()
47 static inline void hwtstamp_config_from_kernel(struct hwtstamp_config *cfg, in hwtstamp_config_from_kernel() argument
50 cfg->flags = kernel_cfg->flags; in hwtstamp_config_from_kernel()
[all …]
/openbmc/linux/drivers/pci/controller/
H A Dpci-host-common.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <linux/pci-ecam.h>
29 struct pci_config_window *cfg; in gen_pci_init() local
31 err = of_address_to_resource(dev->of_node, 0, &cfgres); in gen_pci_init()
37 bus = resource_list_first_type(&bridge->windows, IORESOURCE_BUS); in gen_pci_init()
39 return ERR_PTR(-ENODEV); in gen_pci_init()
41 cfg = pci_ecam_create(dev, &cfgres, bus->re in gen_pci_init()
56 struct pci_config_window *cfg; pci_host_common_probe() local
[all...]
H A Dpci-loongson.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/pci-acpi.h>
13 #include <linux/pci-ecam.h>
58 dev->class = PCI_CLASS_BRIDGE_PCI_NORMAL; in bridge_class_quirk()
70 * The address space consumed by these devices is outside the in system_bus_quirk()
73 pdev->mmio_always_on = 1; in system_bus_quirk()
74 pdev->non_compliant_bars = 1; in system_bus_quirk()
93 struct pci_bus *bus = pdev->bus; in loongson_set_min_mrrs_quirk()
109 bridge = bus->self; in loongson_set_min_mrrs_quirk()
110 bus = bus->parent; in loongson_set_min_mrrs_quirk()
[all …]
/openbmc/openbmc/
H A Dsetup10 # http://www.apache.org/licenses/LICENSE-2.0
21 if [ -z "$COLUMN_CMD" ]; then
26 if [ -n "$EXPAND_CMD" ]; then
27 COLUMN=( "sh" "-c" "$COLUMN_CMD | $EXPAND_CMD" )
36 local cfg name tmpl
40 if [ -n "$ZSH_NAME" ]; then
44 configs="$(find meta-* -path "*/conf/machine/*.conf")"
46 configs=$(ls -1 meta-*/meta-*/conf/machine/*.conf meta-*/conf/machine/*.conf)
49 configs="$configs $(ls -1 poky/meta/conf/machine/qemu*.conf)"
51 for cfg in $configs; do
[all …]
/openbmc/linux/drivers/phy/qualcomm/
H A Dphy-qcom-qmp-pcie-msm8996.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/clk-provider.h>
22 #include "phy-qcom-qmp.h"
66 /* set of registers with offsets different per-PHY */
169 /* struct qmp_phy_cfg - per-PHY initialization config */
174 /* Init sequence for PHY blocks - serdes, tx, rx, pcs */
199 * struct qmp_phy - per-lane phy descriptor
202 * @cfg: phy specific configuration
203 * @serdes: iomapped memory space for phy's serdes (i.e. PLL)
204 * @tx: iomapped memory space for lane's tx
[all …]
/openbmc/linux/drivers/tty/
H A Dmips_ejtag_fdc.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2007-2015 Imagination Technologies Ltd
80 * and space becoming available in TX FIFO.
87 * struct mips_ejtag_fdc_tty_port - Wrapper struct for FDC tty_port.
117 * struct mips_ejtag_fdc_tty - Driver data for FDC as a whole.
123 * @ports: Per-channel data.
124 * @waitqueue: Wait queue for waiting for TX data, or for space in TX
133 * @xmit_full: Indicates TX FIFO is full, we're waiting for space.
174 __raw_writel(data, priv->reg + offs); in mips_ejtag_fdc_write()
180 return __raw_readl(priv->reg + offs); in mips_ejtag_fdc_read()
[all …]
/openbmc/linux/rust/alloc/
H A Draw_vec.rs1 // SPDX-License-Identifier: Apache-2.0 OR MIT
12 #[cfg(not(no_global_oom_handling))]
19 #[cfg(test)]
30 /// A low-level utility for more ergonomically allocating, reallocating, and deallocating
35 /// * Produces `Unique::dangling()` on zero-sized types.
36 /// * Produces `Unique::dangling()` on zero-length allocations.
39 /// * Guards against 32-bit systems allocating more than isize::MAX bytes.
49 /// Note that the excess of a zero-sized types is always infinite, so `capacity()` always returns
50 /// `usize::MAX`. This means that you need to be careful when round-tripping this type with a
64 /// that would truly const-call something unstable.
[all …]
/openbmc/linux/drivers/scsi/cxlflash/
H A Dvlun.c1 // SPDX-License-Identifier: GPL-2.0-or-later
27 * marshal_virt_to_resize() - translate uvirtual to resize structure
34 resize->hdr = virt->hdr; in marshal_virt_to_resize()
35 resize->context_id = virt->context_id; in marshal_virt_to_resize()
36 resize->rsrc_handle = virt->rsrc_handle; in marshal_virt_to_resize()
37 resize->req_size = virt->lun_size; in marshal_virt_to_resize()
38 resize->last_lba = virt->last_lba; in marshal_virt_to_resize()
42 * marshal_clone_to_rele() - translate clone to release structure
49 release->hdr = clone->hdr; in marshal_clone_to_rele()
50 release->context_id = clone->context_id_dst; in marshal_clone_to_rele()
[all …]
/openbmc/linux/drivers/ata/
H A Dsata_sis.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * sata_sis.c - Silicon Integrated Systems SATA
6 * Please ALWAYS copy linux-ide@vger.kernel.org
12 * as Documentation/driver-api/libata.rst
38 SIS180_SATA1_OFS = 0x10, /* offset from sata0->sata1 phy regs */
39 SIS182_SATA1_OFS = 0x20, /* offset from sata0->sata1 phy regs */
44 SIS_FLAG_CFGSCR = (1 << 30), /* host flag: SCRs via PCI cfg */
46 GENCTL_IOMAPPED_SCR = (1 << 26), /* if set, SCRs are in IO space */
94 MODULE_DESCRIPTION("low-level driver for Silicon Integrated Systems SATA controller");
101 struct ata_port *ap = link->ap; in get_scr_cfg_addr()
[all …]
/openbmc/linux/drivers/virtio/
H A Dvirtio_pci_modern_dev.c1 // SPDX-License-Identifier: GPL-2.0-or-later
9 * vp_modern_map_capability - map a part of virtio pci capability
10 * @mdev: the modern virtio-pci device
26 struct pci_dev *dev = mdev->pci_dev; in vp_modern_map_capability()
40 if (bar >= PCI_STD_NUM_BARS || !(mdev->modern_bars & (1 << bar))) { in vp_modern_map_capability()
41 dev_err(&dev->dev, in vp_modern_map_capability()
47 dev_err(&dev->dev, in vp_modern_map_capability()
53 if (length - start < minlen) { in vp_modern_map_capability()
54 dev_err(&dev->dev, in vp_modern_map_capability()
60 length -= start; in vp_modern_map_capability()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/pci/
H A Dqcom,pcie.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
11 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
20 - enum:
21 - qcom,pcie-apq8064
22 - qcom,pcie-apq8084
23 - qcom,pcie-ipq4019
24 - qcom,pcie-ipq6018
[all …]
/openbmc/linux/drivers/gpu/drm/i915/gvt/
H A Dcfg_space.c2 * Copyright(c) 2011-2016 Intel Corporation. All rights reserved.
45 /* bitmap for writable bits (RW or RW1C bits, but cannot co-exist in one
46 * byte) byte by byte in standard pci configuration space. (not the full
53 [PCI_BASE_ADDRESS_0 ... PCI_CARDBUS_CIS - 1] = 0xff,
59 * vgpu_pci_cfg_mem_write - write virtual cfg space memory
65 * Use this function to write virtual cfg space memory.
66 * For standard cfg space, only RW bits can be changed,
93 /* For other configuration space directly copy as it is. */ in vgpu_pci_cfg_mem_write()
95 memcpy(cfg_base + off + i, src + i, bytes - i); in vgpu_pci_cfg_mem_write()
97 if (off == vgpu->cfg_space.pmcsr_off && vgpu->cfg_space.pmcsr_off) { in vgpu_pci_cfg_mem_write()
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Deeh.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright 2001-2012 IBM Corporation.
32 #include <asm/ppc-pci.h>
34 #include <asm/pte-walk.h>
40 * usual PCI framework, except by check-stopping the CPU. Systems
41 * that are designed for high-availability/reliability cannot afford
43 * An EEH-capable bridge operates by converting a detected error
44 * into a "slot freeze", taking the PCI adapter off-line, making
50 * vibration, humidity, radioactivity or plain-old failed hardware.
55 * device to bus-master data to a memory address that is not
[all …]
/openbmc/linux/drivers/net/ethernet/cavium/thunder/
H A Dthunder_xcv.c1 // SPDX-License-Identifier: GPL-2.0-only
67 u64 cfg; in xcv_init_hw() local
70 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
71 cfg &= ~DLL_RESET; in xcv_init_hw()
72 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
75 cfg = readq_relaxed(xcv->reg_base + XCV_RESET); in xcv_init_hw()
76 cfg &= ~CLK_RESET; in xcv_init_hw()
77 writeq_relaxed(cfg, xcv->reg_base + XCV_RESET); in xcv_init_hw()
81 /* Configure DLL - enable or bypass in xcv_init_hw()
84 cfg = readq_relaxed(xcv->reg_base + XCV_DLL_CTL); in xcv_init_hw()
[all …]
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_mr.c15 * - Redistributions of source code must retain the above
19 * - Redistributions in binary form must reproduce the above
53 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in alloc_mr_key()
54 struct ib_device *ibdev = &hr_dev->ib_dev; in alloc_mr_key()
59 id = ida_alloc_range(&mtpt_ida->ida, mtpt_ida->min, mtpt_ida->max, in alloc_mr_key()
63 return -ENOMEM; in alloc_mr_key()
66 mr->key = hw_index_to_key(id); /* MR key */ in alloc_mr_key()
68 err = hns_roce_table_get(hr_dev, &hr_dev->mr_table.mtpt_table, in alloc_mr_key()
77 ida_free(&mtpt_ida->ida, id); in alloc_mr_key()
83 unsigned long obj = key_to_hw_index(mr->key); in free_mr_key()
[all …]

12345678910>>...24