Home
last modified time | relevance | path

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

12345678910>>...38

/Linux-v5.15/drivers/gpu/drm/nouveau/nvkm/subdev/bar/
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 …]
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 …]
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 …]
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 …]
DKbuild2 nvkm-y += nvkm/subdev/bar/base.o
3 nvkm-y += nvkm/subdev/bar/nv50.o
4 nvkm-y += nvkm/subdev/bar/g84.o
5 nvkm-y += nvkm/subdev/bar/gf100.o
6 nvkm-y += nvkm/subdev/bar/gk20a.o
7 nvkm-y += nvkm/subdev/bar/gm107.o
8 nvkm-y += nvkm/subdev/bar/gm20b.o
9 nvkm-y += nvkm/subdev/bar/tu102.o
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp6000_pcie.c15 * abstraction builds upon this BAR interface.
97 #define NFP_PCIE_P2C_FIXED_SIZE(bar) (1 << (bar)->bitsize) argument
98 #define NFP_PCIE_P2C_BULK_SIZE(bar) (1 << (bar)->bitsize) argument
99 #define NFP_PCIE_P2C_GENERAL_TARGET_OFFSET(bar, x) ((x) << ((bar)->bitsize - 2)) argument
100 #define NFP_PCIE_P2C_GENERAL_TOKEN_OFFSET(bar, x) ((x) << ((bar)->bitsize - 4)) argument
101 #define NFP_PCIE_P2C_GENERAL_SIZE(bar) (1 << ((bar)->bitsize - 4)) argument
103 #define NFP_PCIE_CFG_BAR_PCIETOCPPEXPANSIONBAR(bar, slot) \ argument
104 (0x400 + ((bar) * 8 + (slot)) * 4)
106 #define NFP_PCIE_CPP_BAR_PCIETOCPPEXPANSIONBAR(bar, slot) \ argument
107 (((bar) * 8 + (slot)) * 4)
[all …]
/Linux-v5.15/lib/
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 …]
/Linux-v5.15/drivers/pci/controller/cadence/
Dpcie-cadence-host.c150 * Set the root complex BAR configuration register: in cdns_pcie_host_init_root_port()
184 enum cdns_pcie_rp_bar bar, in cdns_pcie_host_bar_ib_config() argument
191 if (!rc->avail_ib_bar[bar]) in cdns_pcie_host_bar_ib_config()
194 rc->avail_ib_bar[bar] = false; in cdns_pcie_host_bar_ib_config()
200 cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_RP_BAR_ADDR0(bar), addr0); in cdns_pcie_host_bar_ib_config()
201 cdns_pcie_writel(pcie, CDNS_PCIE_AT_IB_RP_BAR_ADDR1(bar), addr1); in cdns_pcie_host_bar_ib_config()
203 if (bar == RP_NO_BAR) in cdns_pcie_host_bar_ib_config()
207 value &= ~(LM_RC_BAR_CFG_CTRL_MEM_64BITS(bar) | in cdns_pcie_host_bar_ib_config()
208 LM_RC_BAR_CFG_CTRL_PREF_MEM_64BITS(bar) | in cdns_pcie_host_bar_ib_config()
209 LM_RC_BAR_CFG_CTRL_MEM_32BITS(bar) | in cdns_pcie_host_bar_ib_config()
[all …]
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dcgroup_attach_override.c8 #define BAR "/foo/bar/" macro
28 int drop_prog = -1, allow_prog = -1, foo = -1, bar = -1; in test_cgroup_attach_override() local
55 bar = test__join_cgroup(BAR); in test_cgroup_attach_override()
56 if (CHECK(bar < 0, "cgroup_join_bar", "cgroup setup failed\n")) in test_cgroup_attach_override()
63 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
66 "attach prog to %s failed, errno=%d\n", BAR, errno)) in test_cgroup_attach_override()
72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
74 "detach prog from %s failed, errno=%d\n", BAR, errno)) in test_cgroup_attach_override()
81 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
84 "attach prog to %s failed, errno=%d\n", BAR, errno)) in test_cgroup_attach_override()
[all …]
/Linux-v5.15/drivers/net/ethernet/sfc/
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 …]
/Linux-v5.15/samples/trace_events/
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);
154 * __string_len(foo, bar, len)
[all …]
/Linux-v5.15/tools/testing/selftests/net/
Dunicast_extensions.sh61 # foo --- bar
64 # Caller must set up foo-ns and bar-ns namespaces
65 # containing linked veth devices foo and bar,
70 ip -n bar-ns address add $2/$3 dev bar || return 1
71 ip -n bar-ns link set bar up || return 1
74 ip netns exec bar-ns timeout 2 ping -c 1 $1 || return 1
76 nettest -B -N bar-ns -O foo-ns -r $1 || return 1
77 nettest -B -N foo-ns -O bar-ns -r $2 || return 1
85 # [foo] <---> [foo1]-[bar1] <---> [bar] /prefix
91 # Caller must set up foo-ns, bar-ns, and router-ns
[all …]
/Linux-v5.15/arch/powerpc/platforms/powernv/
Dpci-sriov.c18 * the PHB maps MMIO addresses to a specific PE using the "Memory BAR Table".
27 * For a SR-IOV BAR things are a little more awkward since size and alignment
28 * are not coupled. The alignment is set based on the the per-VF BAR size, but
29 * the total BAR area is: number-of-vfs * per-vf-size. The number of VFs
31 * we need to finesse (read: hack) the Linux BAR allocator so that it will
36 * so as a baseline we can assume that we have the following BAR modes
41 * a) A segmented BAR that splits the mapped range into $PE_COUNT equally sized
43 * b) An un-segmented BAR that maps the whole address range to a specific PE.
46 * We prefer to use mode a) since it only requires one MBT entry per SR-IOV BAR
47 * For comparison b) requires one entry per-VF per-BAR, or:
[all …]
/Linux-v5.15/drivers/xen/xen-pciback/
Dconf_space_header.c144 struct pci_bar_info *bar = data; in rom_write() local
146 if (unlikely(!bar)) { in rom_write()
155 bar->which = 1; in rom_write()
159 if (tmpval != bar->val && value == bar->val) { in rom_write()
160 /* Allow restoration of bar value. */ in rom_write()
161 pci_write_config_dword(dev, offset, bar->val); in rom_write()
163 bar->which = 0; in rom_write()
177 struct pci_bar_info *bar = data; in bar_write() local
182 if (unlikely(!bar)) { in bar_write()
197 bar->which = 1; in bar_write()
[all …]
/Linux-v5.15/drivers/dma/dw-edma/
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 …]
/Linux-v5.15/tools/perf/Documentation/
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 …]
/Linux-v5.15/Documentation/devicetree/
Doverlay-notes.rst41 The overlay bar.dts,
44 ---- bar.dts - overlay target location by label ----------------------------
48 /* bar peripheral */
49 bar {
50 compatible = "corp,bar";
54 ---- bar.dts ---------------------------------------------------------------
56 when loaded (and resolved as described in [1]) should result in foo+bar.dts::
58 ---- foo+bar.dts -----------------------------------------------------------
59 /* FOO platform + bar peripheral */
72 /* bar peripheral */
[all …]
/Linux-v5.15/arch/csky/include/asm/
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 …]
/Linux-v5.15/drivers/vfio/pci/
Dvfio_pci_rdwr.c203 static int vfio_pci_setup_barmap(struct vfio_pci_core_device *vdev, int bar) in vfio_pci_setup_barmap() argument
209 if (vdev->barmap[bar]) in vfio_pci_setup_barmap()
212 ret = pci_request_selected_regions(pdev, 1 << bar, "vfio"); in vfio_pci_setup_barmap()
216 io = pci_iomap(pdev, bar, 0); in vfio_pci_setup_barmap()
218 pci_release_selected_regions(pdev, 1 << bar); in vfio_pci_setup_barmap()
222 vdev->barmap[bar] = io; in vfio_pci_setup_barmap()
232 int bar = VFIO_PCI_OFFSET_TO_INDEX(*ppos); in vfio_pci_bar_rw() local
236 struct resource *res = &vdev->pdev->resource[bar]; in vfio_pci_bar_rw()
239 if (pci_resource_start(pdev, bar)) in vfio_pci_bar_rw()
240 end = pci_resource_len(pdev, bar); in vfio_pci_bar_rw()
[all …]
/Linux-v5.15/drivers/pci/
Dmmap.c22 int pci_mmap_page_range(struct pci_dev *pdev, int bar, in pci_mmap_page_range() argument
28 pci_resource_to_user(pdev, bar, &pdev->resource[bar], &start, &end); in pci_mmap_page_range()
32 return pci_mmap_resource_range(pdev, bar, vma, mmap_state, in pci_mmap_page_range()
43 int pci_mmap_resource_range(struct pci_dev *pdev, int bar, in pci_mmap_resource_range() argument
50 size = ((pci_resource_len(pdev, bar) - 1) >> PAGE_SHIFT) + 1; in pci_mmap_resource_range()
60 ret = pci_iobar_pfn(pdev, bar, vma); in pci_mmap_resource_range()
64 vma->vm_pgoff += (pci_resource_start(pdev, bar) >> PAGE_SHIFT); in pci_mmap_resource_range()
81 int pci_mmap_resource_range(struct pci_dev *pdev, int bar, in pci_mmap_resource_range() argument
92 pci_resource_to_user(pdev, bar, &pdev->resource[bar], &start, &end); in pci_mmap_resource_range()
94 return pci_mmap_page_range(pdev, bar, vma, mmap_state, write_combine); in pci_mmap_resource_range()
/Linux-v5.15/sound/soc/sof/
Dops.c51 bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits_unlocked() argument
57 ret = snd_sof_dsp_read(sdev, bar, offset); in snd_sof_dsp_update_bits_unlocked()
65 snd_sof_dsp_write(sdev, bar, offset, new); in snd_sof_dsp_update_bits_unlocked()
71 bool snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits64_unlocked() argument
76 old = snd_sof_dsp_read64(sdev, bar, offset); in snd_sof_dsp_update_bits64_unlocked()
83 snd_sof_dsp_write64(sdev, bar, offset, new); in snd_sof_dsp_update_bits64_unlocked()
90 bool snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset, in snd_sof_dsp_update_bits() argument
97 change = snd_sof_dsp_update_bits_unlocked(sdev, bar, offset, mask, in snd_sof_dsp_update_bits()
104 bool snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar, u32 offset, in snd_sof_dsp_update_bits64() argument
111 change = snd_sof_dsp_update_bits64_unlocked(sdev, bar, offset, mask, in snd_sof_dsp_update_bits64()
[all …]
/Linux-v5.15/arch/arm/mm/
Dpmsa-v8.c141 static int __init __pmsav8_setup_region(unsigned int number, u32 bar, u32 lar) in __pmsav8_setup_region() argument
150 prbar_write(bar); in __pmsav8_setup_region()
153 mpu_rgn_info.rgns[number].prbar = bar; in __pmsav8_setup_region()
163 u32 bar, lar; in pmsav8_setup_ram() local
168 bar = start; in pmsav8_setup_ram()
171 bar |= PMSAv8_AP_PL1RW_PL0RW | PMSAv8_RGN_SHARED; in pmsav8_setup_ram()
174 return __pmsav8_setup_region(number, bar, lar); in pmsav8_setup_ram()
179 u32 bar, lar; in pmsav8_setup_io() local
184 bar = start; in pmsav8_setup_io()
187 bar |= PMSAv8_AP_PL1RW_PL0RW | PMSAv8_RGN_SHARED | PMSAv8_BAR_XN; in pmsav8_setup_io()
[all …]
/Linux-v5.15/include/linux/
Dpnp.h60 unsigned int bar) in pnp_port_start() argument
62 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_start()
70 unsigned int bar) in pnp_port_end() argument
72 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_end()
80 unsigned int bar) in pnp_port_flags() argument
82 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_flags()
89 static inline int pnp_port_valid(struct pnp_dev *dev, unsigned int bar) in pnp_port_valid() argument
91 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IO, bar)); in pnp_port_valid()
95 unsigned int bar) in pnp_port_len() argument
97 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_len()
[all …]
/Linux-v5.15/drivers/misc/
Dpci_endpoint_test.c109 void __iomem *bar[PCI_STD_NUM_BARS]; member
141 int bar, int offset) in pci_endpoint_test_bar_readl() argument
143 return readl(test->bar[bar] + offset); in pci_endpoint_test_bar_readl()
147 int bar, u32 offset, u32 value) in pci_endpoint_test_bar_writel() argument
149 writel(value, test->bar[bar] + offset); in pci_endpoint_test_bar_writel()
274 if (!test->bar[barno]) in pci_endpoint_test_bar()
704 enum pci_barno bar; in pci_endpoint_test_ioctl() local
711 bar = arg; in pci_endpoint_test_ioctl()
712 if (bar > BAR_5) in pci_endpoint_test_ioctl()
714 if (is_am654_pci_dev(pdev) && bar == BAR_0) in pci_endpoint_test_ioctl()
[all …]
/Linux-v5.15/Documentation/powerpc/
Dpci_iov_resource_on_powernv.rst172 discover the BAR sizes and assign addresses for them. For VF devices,
173 software uses VF BAR registers in the *PF* SR-IOV Capability to
177 When a VF BAR in the PF SR-IOV Capability is programmed, it sets the
180 1MB VF BAR0, the address in that VF BAR sets the base of an 8MB region.
182 is a BAR0 for one of the VFs. Note that even though the VF BAR
195 the segment size matches the smallest VF BAR, which means larger VF
210 and different segment sizes. If we have VFs that each have a 1MB BAR
211 and a 32MB BAR, we could use one M64 window to assign 1MB segments and
215 more in the next two sections. For a given VF BAR, we need to
216 effectively reserve the entire 256 segments (256 * VF BAR size) and
[all …]

12345678910>>...38