Home
last modified time | relevance | path

Searched full:bar (Results 1 – 25 of 1665) sorted by relevance

12345678910>>...67

/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/
H A Dbase.c27 nvkm_bar_flush(struct nvkm_bar *bar) in nvkm_bar_flush() argument
29 if (bar && bar->func->flush) in nvkm_bar_flush()
30 bar->func->flush(bar); in nvkm_bar_flush()
36 return device->bar->func->bar1.vmm(device->bar); in nvkm_bar_bar1_vmm()
42 struct nvkm_bar *bar = device->bar; in nvkm_bar_bar1_reset() local
43 if (bar) { in nvkm_bar_bar1_reset()
44 bar->func->bar1.init(bar); in nvkm_bar_bar1_reset()
45 bar->func->bar1.wait(bar); in nvkm_bar_bar1_reset()
55 struct nvkm_bar *bar = device->bar; in nvkm_bar_bar2_vmm() local
56 if (bar && bar->bar2) in nvkm_bar_bar2_vmm()
[all …]
H A Dnv50.c34 struct nv50_bar *bar = nv50_bar(base); in nv50_bar_flush() local
35 struct nvkm_device *device = bar->base.subdev.device; in nv50_bar_flush()
37 spin_lock_irqsave(&bar->base.lock, flags); in nv50_bar_flush()
43 spin_unlock_irqrestore(&bar->base.lock, flags); in nv50_bar_flush()
59 nv50_bar_bar1_fini(struct nvkm_bar *bar) in nv50_bar_bar1_fini() argument
61 nvkm_wr32(bar->subdev.device, 0x001708, 0x00000000); in nv50_bar_bar1_fini()
68 struct nv50_bar *bar = nv50_bar(base); in nv50_bar_bar1_init() local
69 nvkm_wr32(device, 0x001708, 0x80000000 | bar->bar1->node->offset >> 4); in nv50_bar_bar1_init()
79 nv50_bar_bar2_fini(struct nvkm_bar *bar) in nv50_bar_bar2_fini() argument
81 nvkm_wr32(bar->subdev.device, 0x00170c, 0x00000000); in nv50_bar_bar2_fini()
[all …]
H A Dgf100.c34 return gf100_bar(base)->bar[1].vmm; in gf100_bar_bar1_vmm()
46 gf100_bar_bar1_fini(struct nvkm_bar *bar) in gf100_bar_bar1_fini() argument
48 nvkm_mask(bar->subdev.device, 0x001704, 0x80000000, 0x00000000); in gf100_bar_bar1_fini()
55 struct gf100_bar *bar = gf100_bar(base); in gf100_bar_bar1_init() local
56 const u32 addr = nvkm_memory_addr(bar->bar[1].inst) >> 12; in gf100_bar_bar1_init()
63 return gf100_bar(base)->bar[0].vmm; in gf100_bar_bar2_vmm()
67 gf100_bar_bar2_fini(struct nvkm_bar *bar) in gf100_bar_bar2_fini() argument
69 nvkm_mask(bar->subdev.device, 0x001714, 0x80000000, 0x00000000); in gf100_bar_bar2_fini()
76 struct gf100_bar *bar = gf100_bar(base); in gf100_bar_bar2_init() local
77 u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12; in gf100_bar_bar2_init()
[all …]
H A Dtu102.c28 tu102_bar_bar2_wait(struct nvkm_bar *bar) in tu102_bar_bar2_wait() argument
30 struct nvkm_device *device = bar->subdev.device; in tu102_bar_bar2_wait()
38 tu102_bar_bar2_fini(struct nvkm_bar *bar) in tu102_bar_bar2_fini() argument
40 nvkm_mask(bar->subdev.device, 0xb80f48, 0x80000000, 0x00000000); in tu102_bar_bar2_fini()
47 struct gf100_bar *bar = gf100_bar(base); in tu102_bar_bar2_init() local
48 u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12; in tu102_bar_bar2_init()
49 if (bar->bar2_halve) in tu102_bar_bar2_init()
55 tu102_bar_bar1_wait(struct nvkm_bar *bar) in tu102_bar_bar1_wait() argument
57 struct nvkm_device *device = bar->subdev.device; in tu102_bar_bar1_wait()
65 tu102_bar_bar1_fini(struct nvkm_bar *bar) in tu102_bar_bar1_fini() argument
[all …]
/openbmc/u-boot/test/env/
H A Dattr.c17 ut_assertok(env_attr_lookup("foo:bar", "foo", attrs)); in env_test_attrs_lookup()
18 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup()
20 ut_assertok(env_attr_lookup(",foo:bar", "foo", attrs)); in env_test_attrs_lookup()
21 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup()
23 ut_assertok(env_attr_lookup(",foo:bar,", "foo", attrs)); in env_test_attrs_lookup()
24 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup()
26 ut_assertok(env_attr_lookup(" foo:bar", "foo", attrs)); in env_test_attrs_lookup()
27 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup()
29 ut_assertok(env_attr_lookup("foo : bar", "foo", attrs)); in env_test_attrs_lookup()
30 ut_asserteq_str("bar", attrs); in env_test_attrs_lookup()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp6000_pcie.c15 * abstraction builds upon this BAR interface.
98 #define NFP_PCIE_P2C_FIXED_SIZE(bar) (1 << (bar)->bitsize) argument
99 #define NFP_PCIE_P2C_BULK_SIZE(bar) (1 << (bar)->bitsize) argument
100 #define NFP_PCIE_P2C_GENERAL_TARGET_OFFSET(bar, x) ((x) << ((bar)->bitsize - 2)) argument
101 #define NFP_PCIE_P2C_GENERAL_TOKEN_OFFSET(bar, x) ((x) << ((bar)->bitsize - 4)) argument
102 #define NFP_PCIE_P2C_GENERAL_SIZE(bar) (1 << ((bar)->bitsize - 4)) argument
116 * struct nfp_bar - describes BAR configuration and usage
118 * @barcfg: cached contents of BAR config CSR
119 * @base: the BAR's base CPP offset
120 * @mask: mask for the BAR aperture (read only)
[all …]
/openbmc/linux/lib/
H A Dpci_iomap.c14 * pci_iomap_range - create a virtual mapping cookie for a PCI BAR
15 * @dev: PCI device that owns the BAR
16 * @bar: BAR number
17 * @offset: map memory at the given offset in BAR
20 * Using this function you will get a __iomem address to your device BAR.
26 * the complete BAR from offset to the end, pass %0 here.
29 int bar, in pci_iomap_range() argument
33 resource_size_t start = pci_resource_start(dev, bar); in pci_iomap_range()
34 resource_size_t len = pci_resource_len(dev, bar); in pci_iomap_range()
35 unsigned long flags = pci_resource_flags(dev, bar); in pci_iomap_range()
[all …]
/openbmc/linux/drivers/pci/controller/cadence/
H A Dpcie-cadence-host.c185 * Set the root complex BAR configuration register: in cdns_pcie_host_init_root_port()
219 enum cdns_pcie_rp_bar bar, in cdns_pcie_host_bar_ib_config() argument
226 if (!rc->avail_ib_bar[bar]) in cdns_pcie_host_bar_ib_config()
229 rc->avail_ib_bar[bar] = false; in cdns_pcie_host_bar_ib_config()
235 cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_RP_BAR_ADDR0(bar), addr0); in cdns_pcie_host_bar_ib_config()
236 cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_RP_BAR_ADDR1(bar), addr1); in cdns_pcie_host_bar_ib_config()
238 if (bar == RP_NO_BAR) in cdns_pcie_host_bar_ib_config()
242 value &= ~(LM_RC_BAR_CFG_CTRL_MEM_64BITS(bar) | in cdns_pcie_host_bar_ib_config()
243 LM_RC_BAR_CFG_CTRL_PREF_MEM_64BITS(bar) | in cdns_pcie_host_bar_ib_config()
244 LM_RC_BAR_CFG_CTRL_MEM_32BITS(bar) | in cdns_pcie_host_bar_ib_config()
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/tests/
H A Ddata.py44 self.d["bar"] = "value_of_bar"
56 val = self.d.expand("${${foo}} ${bar}")
68 self.d.setVar("bar", "${unsetvar}")
69 val = self.d.expand("${@2*2},${foo},${@d.getVar('foo') + ' ${bar}'},${foo}")
77 val = self.d.expand("${@d.getVar('foo') + ' ${bar}'}")
93 self.d.setVar("bar", "${unsetvar}")
94 val = self.d.expand("${@d.getVar('foo') + ' ${bar}'}")
106 self.d.setVar("FOO", "foo value ${BAR}")
107 self.d.setVar("BAR", "bar value ${@int('test')}")
111 val = self.d.expand("${@d.getVar('foo') + ' ${bar}'}")
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dvirtio-pci-modern.c19 return qpci_io_readb(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readb()
25 return qpci_io_readw(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readw()
31 return qpci_io_readl(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readl()
37 return qpci_io_readq(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readq()
45 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features()
49 lo = qpci_io_readl(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features()
52 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features()
56 hi = qpci_io_readl(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features()
69 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in set_features()
73 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in set_features()
[all …]
/openbmc/pldm/libpldmresponder/test/pdr_jsons/state_effecter/good/
H A Deffecter_pdr.json19 "path": "/foo/bar",
20 "interface": "xyz.openbmc_project.Foo.Bar",
24 "xyz.openbmc_project.Foo.Bar.V1"
35 "path": "/foo/bar",
36 "interface": "xyz.openbmc_project.Foo.Bar",
40 "xyz.openbmc_project.Foo.Bar.V1",
41 "xyz.openbmc_project.Foo.Bar.V2"
60 "path": "/foo/bar",
61 "interface": "xyz.openbmc_project.Foo.Bar",
65 "xyz.openbmc_project.Foo.Bar.V1"
[all …]
/openbmc/pldm/libpldmresponder/test/pdr_jsons/state_effecter/malformed/
H A Deffecter_pdr.json21 "path": "/foo/bar",
22 "interface": "xyz.openbmc_project.Foo.Bar",
26 "xyz.openbmc_project.Foo.Bar.V1"
40 "path": "/foo/bar",
41 "interface": "xyz.openbmc_project.Foo.Bar",
45 "xyz.openbmc_project.Foo.Bar.V1",
46 "xyz.openbmc_project.Foo.Bar.V2"
67 "path": "/foo/bar",
68 "interface": "xyz.openbmc_project.Foo.Bar",
72 "xyz.openbmc_project.Foo.Bar.V1"
[all …]
/openbmc/pldm/libpldmresponder/examples/pdr/
H A Deffecter_pdr.json19 "path": "/foo/bar",
20 "interface": "xyz.openbmc_project.Foo.Bar",
24 "xyz.openbmc_project.Foo.Bar.V1"
35 "path": "/foo/bar",
36 "interface": "xyz.openbmc_project.Foo.Bar",
40 "xyz.openbmc_project.Foo.Bar.V1",
41 "xyz.openbmc_project.Foo.Bar.V2"
60 "path": "/foo/bar",
61 "interface": "xyz.openbmc_project.Foo.Bar",
65 "xyz.openbmc_project.Foo.Bar.V1"
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_override.c8 #define BAR "/foo/bar/" macro
28 int drop_prog = -1, allow_prog = -1, foo = -1, bar = -1; in serial_test_cgroup_attach_override() local
55 bar = test__join_cgroup(BAR); in serial_test_cgroup_attach_override()
56 if (CHECK(bar < 0, "cgroup_join_bar", "cgroup setup failed\n")) in serial_test_cgroup_attach_override()
63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
66 "attach prog to %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override()
72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
74 "detach prog from %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override()
81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
84 "attach prog to %s failed, errno=%d\n", BAR, errno)) in serial_test_cgroup_attach_override()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Def100.c37 unsigned int bar; member
71 u32 bar = ef100_pci_get_bar_bits(efx, entry_location, EF100_BAR); in ef100_pci_parse_ef100_entry() local
74 "Found EF100 function control window bar=%d offset=0x%llx\n", in ef100_pci_parse_ef100_entry()
75 bar, offset); in ef100_pci_parse_ef100_entry()
83 if (bar == ESE_GZ_CFGBAR_EF100_BAR_NUM_EXPANSION_ROM || in ef100_pci_parse_ef100_entry()
84 bar == ESE_GZ_CFGBAR_EF100_BAR_NUM_INVALID) { in ef100_pci_parse_ef100_entry()
86 "Bad BAR value of %d in Xilinx capabilities EF100 entry.\n", in ef100_pci_parse_ef100_entry()
87 bar); in ef100_pci_parse_ef100_entry()
91 result->bar = bar; in ef100_pci_parse_ef100_entry()
97 static bool ef100_pci_does_bar_overflow(struct efx_nic *efx, int bar, in ef100_pci_does_bar_overflow() argument
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/oelib/
H A Dlicense.py48 "FOO&BAR": ["FOO", "BAR"],
52 "FOO&BAR|BAZ": ["FOO", "BAR"],
54 preferred = ["ALPHA", "FOO", "BAR"]
69 "FOO & (BAR | BAZ)&MOO": ["FOO", "BAR", "MOO"],
74 preferred = ["BAR", "OMEGA", "BETA", "GPL-2.0-only"]
78 ("FOO | BAR", None, None):
80 ("FOO | BAR", None, "FOO"):
81 [True, ["BAR"]],
82 ("FOO | BAR", "BAR", None):
83 [True, ["BAR"]],
[all …]
/openbmc/linux/samples/trace_events/
H A Dtrace-events-sample.h70 * Here it is trace_foo_bar(char *foo, int bar).
73 * Here it is simply "foo, bar".
94 * __field_struct(struct bar, foo)
96 * __entry->bar.x = y;
108 * memcpy(__entry->foo, bar, 10);
119 * __dynamic_array( int, foo, bar) is similar to: int foo[bar];
124 * memcpy(__get_dynamic_array(foo), bar, 10);
135 * __string(foo, bar) is similar to: strcpy(foo, bar)
139 * __assign_str(foo, bar);
175 * __string_len(foo, bar, len)
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/
H A Dparselogs-ignores-qemuall.txt9 # pci 0000:00:00.0: [Firmware Bug]: reg 0x10: invalid BAR (can't size)
10 # pci 0000:00:00.0: [Firmware Bug]: reg 0x14: invalid BAR (can't size)
11 # pci 0000:00:00.0: [Firmware Bug]: reg 0x18: invalid BAR (can't size)
12 # pci 0000:00:00.0: [Firmware Bug]: reg 0x1c: invalid BAR (can't size)
13 # pci 0000:00:00.0: [Firmware Bug]: reg 0x20: invalid BAR (can't size)
14 # pci 0000:00:00.0: [Firmware Bug]: reg 0x24: invalid BAR (can't size)
15 invalid BAR (can't size)
16 # 6.10+ the invalid BAR warnings are of this format:
17 # pci 0000:00:00.0: [Firmware Bug]: BAR 0: invalid; can't size
18 # pci 0000:00:00.0: [Firmware Bug]: BAR 1: invalid; can't size
[all …]
H A Dparselogs-ignores-mipsarch.txt11 # pci 0000:00:00.0: BAR 2: can't handle BAR above 4GB (bus address 0x1f00000010)
12 # pci 0000:00:00.0: BAR 5: error updating (0x1105d034 != 0x0100d034)
13 BAR 0: error updating
14 BAR 1: error updating
15 BAR 2: error updating
16 BAR 3: error updating
17 BAR 4: error updating
18 BAR 5: error updating
19 : can't handle BAR above 4GB
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dpci-sriov.c15 * the PHB maps MMIO addresses to a specific PE using the "Memory BAR Table".
24 * For a SR-IOV BAR things are a little more awkward since size and alignment
25 * are not coupled. The alignment is set based on the per-VF BAR size, but
26 * the total BAR area is: number-of-vfs * per-vf-size. The number of VFs
28 * we need to finesse (read: hack) the Linux BAR allocator so that it will
33 * so as a baseline we can assume that we have the following BAR modes
38 * a) A segmented BAR that splits the mapped range into $PE_COUNT equally sized
40 * b) An un-segmented BAR that maps the whole address range to a specific PE.
43 * We prefer to use mode a) since it only requires one MBT entry per SR-IOV BAR
44 * For comparison b) requires one entry per-VF per-BAR, or:
[all …]
/openbmc/linux/drivers/xen/xen-pciback/
H A Dconf_space_header.c129 struct pci_bar_info *bar = data; in rom_write() local
131 if (unlikely(!bar)) { in rom_write()
140 bar->which = 1; in rom_write()
144 if (tmpval != bar->val && value == bar->val) { in rom_write()
145 /* Allow restoration of bar value. */ in rom_write()
146 pci_write_config_dword(dev, offset, bar->val); in rom_write()
148 bar->which = 0; in rom_write()
162 struct pci_bar_info *bar = data; in bar_write() local
167 if (unlikely(!bar)) { in bar_write()
182 bar->which = 1; in bar_write()
[all …]
/openbmc/linux/drivers/dma/dw-edma/
H A Ddw-edma-pcie.c28 .bar = a, \
34 enum pci_barno bar; member
57 .rg.bar = BAR_0,
62 /* Channel 0 - BAR 2, offset 0 Mbytes, size 2 Kbytes */
64 /* Channel 1 - BAR 2, offset 2 Mbytes, size 2 Kbytes */
68 /* Channel 0 - BAR 2, offset 4 Mbytes, size 2 Kbytes */
70 /* Channel 1 - BAR 2, offset 6 Mbytes, size 2 Kbytes */
75 /* Channel 0 - BAR 2, offset 8 Mbytes, size 2 Kbytes */
77 /* Channel 1 - BAR 2, offset 9 Mbytes, size 2 Kbytes */
81 /* Channel 0 - BAR 2, offset 10 Mbytes, size 2 Kbytes */
[all …]
/openbmc/linux/tools/perf/Documentation/
H A Dcallchain-overhead-calculation.txt28 void bar(void) {
34 bar()
39 In this case 'foo' is a child of 'bar', and 'bar' is an immediate
41 'main' is a parent of 'foo' and 'bar', and 'bar' is a parent of 'foo'.
43 Suppose all samples are recorded in 'foo' and 'bar' only. When it's
53 bar
57 40.00% bar
59 --- bar
65 child functions (i.e. 'foo' and 'bar') are added to the parents to
81 100.00% 40.00% bar
[all …]
/openbmc/linux/sound/soc/sof/
H A Dops.h183 * snd_sof_dsp_get_bar_index - Maps a section type with a BAR index
188 * Returns the corresponding BAR index (a positive integer) or -EINVAL
305 static inline void snd_sof_dsp_write8(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_write8() argument
309 sof_ops(sdev)->write8(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write8()
311 writeb(value, sdev->bar[bar] + offset); in snd_sof_dsp_write8()
314 static inline void snd_sof_dsp_write(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_write() argument
318 sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write()
320 writel(value, sdev->bar[bar] + offset); in snd_sof_dsp_write()
323 static inline void snd_sof_dsp_write64(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_write64() argument
327 sof_ops(sdev)->write64(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write64()
[all …]
/openbmc/linux/arch/csky/include/asm/
H A Dbarrier.h13 * bar.brwarws: ordering barrier for all load/store instructions
26 * bar.brw
27 * bar.br
28 * bar.bw
29 * bar.arw
30 * bar.ar
31 * bar.aw
32 * bar.brwarw
33 * bar.brarw
34 * bar.bwarw
[all …]

12345678910>>...67