/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
A D | base.c | 29 if (bar && bar->func->flush) in nvkm_bar_flush() 30 bar->func->flush(bar); in nvkm_bar_flush() 44 bar->func->bar1.init(bar); in nvkm_bar_bar1_reset() 45 bar->func->bar1.wait(bar); in nvkm_bar_bar1_reset() 56 if (bar && bar->bar2) in nvkm_bar_bar2_vmm() 65 if (bar && bar->bar2) { in nvkm_bar_bar2_reset() 66 bar->func->bar2.init(bar); in nvkm_bar_bar2_reset() 67 bar->func->bar2.wait(bar); in nvkm_bar_bar2_reset() 75 if (bar && bar->bar2) { in nvkm_bar_bar2_fini() 85 if (bar && bar->subdev.oneinit && !bar->bar2 && bar->func->bar2.init) { in nvkm_bar_bar2_init() [all …]
|
A D | nv50.c | 119 ret = nvkm_gpuobj_new(device, bar->pgd_addr, 0, false, bar->mem, in nv50_bar_oneinit() 141 bar->bar2_vmm->debug = bar->base.subdev.debug; in nv50_bar_oneinit() 147 ret = nvkm_vmm_join(bar->bar2_vmm, bar->mem->memory); in nv50_bar_oneinit() 151 ret = nvkm_gpuobj_new(device, 24, 16, false, bar->mem, &bar->bar2); in nv50_bar_oneinit() 181 bar->bar1_vmm->debug = bar->base.subdev.debug; in nv50_bar_oneinit() 183 ret = nvkm_vmm_join(bar->bar1_vmm, bar->mem->memory); in nv50_bar_oneinit() 207 if (bar->mem) { in nv50_bar_dtor() 209 nvkm_vmm_part(bar->bar1_vmm, bar->mem->memory); in nv50_bar_dtor() 212 nvkm_vmm_part(bar->bar2_vmm, bar->mem->memory); in nv50_bar_dtor() 218 return bar; in nv50_bar_dtor() [all …]
|
A D | gf100.c | 77 u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12; in gf100_bar_bar2_init() 132 ret = gf100_bar_oneinit_bar(bar, &bar->bar[0], &bar2_lock, 3); in gf100_bar_oneinit() 141 ret = gf100_bar_oneinit_bar(bar, &bar->bar[1], &bar1_lock, 1); in gf100_bar_oneinit() 153 nvkm_vmm_part(bar->bar[1].vmm, bar->bar[1].inst); in gf100_bar_dtor() 154 nvkm_vmm_unref(&bar->bar[1].vmm); in gf100_bar_dtor() 155 nvkm_memory_unref(&bar->bar[1].inst); in gf100_bar_dtor() 157 nvkm_vmm_part(bar->bar[0].vmm, bar->bar[0].inst); in gf100_bar_dtor() 158 nvkm_vmm_unref(&bar->bar[0].vmm); in gf100_bar_dtor() 159 nvkm_memory_unref(&bar->bar[0].inst); in gf100_bar_dtor() 160 return bar; in gf100_bar_dtor() [all …]
|
A D | tu102.c | 28 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 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 74 struct gf100_bar *bar = gf100_bar(base); in tu102_bar_bar1_init() local [all …]
|
A D | Kbuild | 2 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/samples/trace_events/ |
A D | trace-events-sample.h | 273 __entry->bar = bar; 368 TP_ARGS(foo, bar), 379 __entry->bar = bar; 411 TP_ARGS(foo, bar), 420 __entry->bar = bar; 458 TP_ARGS(foo, bar), 467 __entry->bar = bar; 479 TP_ARGS(foo, bar)); 483 TP_ARGS(foo, bar), 489 TP_ARGS(foo, bar), [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
A D | nfp6000_pcie.c | 378 struct nfp_bar *bar = &nfp->bar[n]; in find_matching_bar() local 396 const struct nfp_bar *bar = &nfp->bar[n]; in find_unused_bar_noblock() local 572 bar = &nfp->bar[0]; in enable_bars() 589 bar->mask = nfp_bar_resource_len(bar) - 1; in enable_bars() 590 bar->bitsize = fls(bar->mask); in enable_bars() 595 nfp->bars = bar - &nfp->bar[0]; in enable_bars() 612 bar = &nfp->bar[0]; in enable_bars() 663 bar = &nfp->bar[1]; in enable_bars() 679 bar = &nfp->bar[4 + i]; in enable_bars() 714 struct nfp_bar *bar = &nfp->bar[0]; in disable_bars() local [all …]
|
/linux/drivers/pci/controller/cadence/ |
A D | pcie-cadence-host.c | 191 if (!rc->avail_ib_bar[bar]) in cdns_pcie_host_bar_ib_config() 203 if (bar == RP_NO_BAR) in cdns_pcie_host_bar_ib_config() 211 LM_RC_BAR_CFG_APERTURE(bar, bar_aperture_mask[bar] + 2)); in cdns_pcie_host_bar_ib_config() 234 for (bar = RP_BAR0; bar <= RP_NO_BAR; bar++) { in cdns_pcie_host_find_min_bar() 240 sel_bar = bar; in cdns_pcie_host_find_min_bar() 245 sel_bar = bar; in cdns_pcie_host_find_min_bar() 258 for (bar = RP_BAR0; bar <= RP_NO_BAR; bar++) { in cdns_pcie_host_find_max_bar() 264 sel_bar = bar; in cdns_pcie_host_find_max_bar() 269 sel_bar = bar; in cdns_pcie_host_find_max_bar() 282 enum cdns_pcie_rp_bar bar; in cdns_pcie_host_bar_config() local [all …]
|
A D | pcie-cadence.h | 50 #define CDNS_PCIE_LM_EP_FUNC_BAR_CFG(bar, fn) \ argument 56 #define CDNS_PCIE_LM_EP_VFUNC_BAR_CFG(bar, fn) \ argument 104 #define LM_RC_BAR_CFG_CTRL_DISABLED(bar) \ argument 106 #define LM_RC_BAR_CFG_CTRL_IO_32BITS(bar) \ argument 108 #define LM_RC_BAR_CFG_CTRL_MEM_32BITS(bar) \ argument 112 #define LM_RC_BAR_CFG_CTRL_MEM_64BITS(bar) \ argument 117 (((aperture) - 2) << ((bar) * 8)) 191 #define CDNS_PCIE_AT_IB_RP_BAR_ADDR0(bar) \ argument 192 (CDNS_PCIE_AT_BASE + 0x0800 + (bar) * 0x0008) 196 #define CDNS_PCIE_AT_IB_RP_BAR_ADDR1(bar) \ argument [all …]
|
/linux/tools/testing/selftests/net/ |
A D | unicast_extensions.sh | 70 ip -n bar-ns address add $2/$3 dev bar || return 1 71 ip -n bar-ns link set bar up || return 1 99 ip -n bar-ns address add $4/$5 dev bar || return 1 100 ip -n bar-ns link set bar up || return 1 125 ip netns add bar-ns 126 ip link add foo netns foo-ns type veth peer name bar netns bar-ns 132 ip netns pids bar-ns | xargs -r kill -9 134 ip netns del bar-ns 151 ip netns add bar-ns 154 ip link add bar netns bar-ns type veth peer name bar1 netns router-ns [all …]
|
/linux/drivers/xen/xen-pciback/ |
A D | conf_space_header.c | 155 bar->which = 1; in rom_write() 159 if (tmpval != bar->val && value == bar->val) { in rom_write() 163 bar->which = 0; in rom_write() 201 if (tmpval != bar->val && value == bar->val) { in bar_write() 220 *value = bar->which ? bar->len_val : bar->val; in bar_read() 229 struct pci_bar_info *bar = kzalloc(sizeof(*bar), GFP_KERNEL); in bar_init() local 231 if (!bar) in bar_init() 245 return bar; in bar_init() 252 return bar; in bar_init() 259 return bar; in bar_init() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
A D | ef100.c | 37 unsigned int bar; member 75 bar, offset); in ef100_pci_parse_ef100_entry() 87 bar); in ef100_pci_parse_ef100_entry() 91 result->bar = bar; in ef100_pci_parse_ef100_entry() 114 u32 bar; in ef100_pci_parse_continue_entry() local 129 bar); in ef100_pci_parse_continue_entry() 133 if (bar != previous_bar) { in ef100_pci_parse_continue_entry() 139 bar, offset); in ef100_pci_parse_continue_entry() 287 u32 bar = 0; in ef100_pci_parse_xilinx_cap() local 302 bar); in ef100_pci_parse_xilinx_cap() [all …]
|
/linux/include/linux/ |
A D | pnp.h | 60 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() 95 unsigned int bar) in pnp_port_len() argument 97 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); in pnp_port_len() 106 unsigned int bar) in pnp_mem_start() argument 116 unsigned int bar) in pnp_mem_end() argument [all …]
|
/linux/drivers/pci/ |
A D | mmap.c | 22 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/lib/ |
A D | pci_iomap.c | 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() 69 int bar, in pci_iomap_wc_range() argument 73 resource_size_t start = pci_resource_start(dev, bar); in pci_iomap_wc_range() 74 resource_size_t len = pci_resource_len(dev, bar); in pci_iomap_wc_range() 75 unsigned long flags = pci_resource_flags(dev, bar); in pci_iomap_wc_range() 111 void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) in pci_iomap() argument 113 return pci_iomap_range(dev, bar, 0, maxlen); in pci_iomap() [all …]
|
/linux/drivers/vfio/pci/ |
A D | vfio_pci_rdwr.c | 209 if (vdev->barmap[bar]) in vfio_pci_setup_barmap() 216 io = pci_iomap(pdev, bar, 0); in vfio_pci_setup_barmap() 222 vdev->barmap[bar] = io; in vfio_pci_setup_barmap() 239 if (pci_resource_start(pdev, bar)) in vfio_pci_bar_rw() 252 if (bar == PCI_ROM_RESOURCE) { in vfio_pci_bar_rw() 271 io = vdev->barmap[bar]; in vfio_pci_bar_rw() 274 if (bar == vdev->msix_bar) { in vfio_pci_bar_rw() 285 if (bar == PCI_ROM_RESOURCE) in vfio_pci_bar_rw() 429 if (bar == vdev->msix_bar && in vfio_pci_ioeventfd() 446 if (ioeventfd->pos == pos && ioeventfd->bar == bar && in vfio_pci_ioeventfd() [all …]
|
/linux/arch/arm/mm/ |
A D | pmsa-v8.c | 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() 179 u32 bar, lar; in pmsav8_setup_io() local 184 bar = start; in pmsav8_setup_io() 195 u32 bar, lar; in pmsav8_setup_fixed() local 200 bar = start; in pmsav8_setup_fixed() 213 mpu_rgn_info.rgns[number].prbar = bar; in pmsav8_setup_fixed() 224 u32 bar, lar; in pmsav8_setup_vector() local [all …]
|
/linux/Documentation/devicetree/ |
A D | overlay-notes.rst | 41 The overlay bar.dts, 48 /* bar peripheral */ 49 bar { 50 compatible = "corp,bar"; 59 /* FOO platform + bar peripheral */ 72 /* bar peripheral */ 73 bar { 74 compatible = "corp,bar"; 97 /* bar peripheral */ 98 bar { [all …]
|
/linux/sound/soc/sof/ |
A D | ops.c | 51 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() 97 change = snd_sof_dsp_update_bits_unlocked(sdev, bar, offset, mask, in snd_sof_dsp_update_bits() 111 change = snd_sof_dsp_update_bits64_unlocked(sdev, bar, offset, mask, in snd_sof_dsp_update_bits64() 125 ret = snd_sof_dsp_read(sdev, bar, offset); in snd_sof_dsp_update_bits_forced_unlocked() 130 snd_sof_dsp_write(sdev, bar, offset, new); in snd_sof_dsp_update_bits_forced_unlocked() [all …]
|
A D | utils.c | 57 void __iomem *dest = sdev->bar[sdev->mailbox_bar] + offset; in sof_mailbox_write() 66 void __iomem *src = sdev->bar[sdev->mailbox_bar] + offset; in sof_mailbox_read() 79 int bar = snd_sof_dsp_get_bar_index(sdev, blk_type); in sof_block_write() local 86 if (bar < 0) in sof_block_write() 87 return bar; in sof_block_write() 89 dest = sdev->bar[bar] + offset; in sof_block_write() 118 int bar = snd_sof_dsp_get_bar_index(sdev, blk_type); in sof_block_read() local 120 if (bar < 0) in sof_block_read() 121 return bar; in sof_block_read() 123 memcpy_fromio(dest, sdev->bar[bar] + offset, size); in sof_block_read()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | cgroup_attach_override.c | 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() 72 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), 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() 95 if (CHECK(bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() 101 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_override() 106 if (CHECK(bpf_prog_detach(bar, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override() 126 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override() [all …]
|
/linux/tools/perf/Documentation/ |
A D | callchain-overhead-calculation.txt | 28 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'. 53 bar 57 40.00% bar 59 --- bar 81 100.00% 40.00% bar 83 --- bar 90 bar [all …]
|
/linux/drivers/dma/dw-edma/ |
A D | dw-edma-pcie.c | 28 .bar = a, \ 34 enum pci_barno bar; member 57 .rg.bar = BAR_0, 171 mask = BIT(vsec_data.rg.bar); in dw_edma_pcie_probe() 173 mask |= BIT(vsec_data.ll_wr[i].bar); in dw_edma_pcie_probe() 174 mask |= BIT(vsec_data.dt_wr[i].bar); in dw_edma_pcie_probe() 177 mask |= BIT(vsec_data.ll_rd[i].bar); in dw_edma_pcie_probe() 301 i, vsec_data.ll_wr[i].bar, in dw_edma_pcie_probe() 306 i, vsec_data.dt_wr[i].bar, in dw_edma_pcie_probe() 313 i, vsec_data.ll_rd[i].bar, in dw_edma_pcie_probe() [all …]
|
/linux/drivers/misc/ |
A D | pci_endpoint_test.c | 143 return readl(test->bar[bar] + offset); in pci_endpoint_test_bar_readl() 149 writel(value, test->bar[bar] + offset); in pci_endpoint_test_bar_writel() 711 bar = arg; in pci_endpoint_test_ioctl() 820 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe() 827 test->bar[bar] = base; in pci_endpoint_test_probe() 891 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe() 892 if (test->bar[bar]) in pci_endpoint_test_probe() 893 pci_iounmap(pdev, test->bar[bar]); in pci_endpoint_test_probe() 922 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_remove() 923 if (test->bar[bar]) in pci_endpoint_test_remove() [all …]
|
/linux/include/asm-generic/ |
A D | pci_iomap.h | 13 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); 14 extern void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max); 15 extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, 18 extern void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, 33 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap() argument 38 static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap_wc() argument 42 static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, in pci_iomap_range() argument 48 static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, in pci_iomap_wc_range() argument
|