/linux-6.6.21/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
D | base.c | 27 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 …]
|
D | nv50.c | 34 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 …]
|
D | gf100.c | 34 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 …]
|
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 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 …]
|
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-6.6.21/samples/trace_events/ |
D | trace-events-sample.h | 291 TP_PROTO(const char *foo, int bar, const int *lst, 295 TP_ARGS(foo, bar, lst, string, mask, fmt, va), 299 __field( int, bar ) 309 __entry->bar = bar; 318 TP_printk("foo %s %d %s %s %s %s (%s) (%s) %s", __entry->foo, __entry->bar, 330 __print_symbolic(__entry->bar, 348 __print_flags(__entry->bar, "|", 405 TP_PROTO(const char *foo, int bar), 407 TP_ARGS(foo, bar), 409 TP_CONDITION(!(bar % 10)), [all …]
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp6000_pcie.c | 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 150 struct nfp_bar bar[NFP_PCI_BAR_MAX]; member 174 static u32 nfp_bar_maptype(struct nfp_bar *bar) in nfp_bar_maptype() argument 176 return NFP_PCIE_BAR_PCIE2CPP_MapType_of(bar->barcfg); in nfp_bar_maptype() 179 static resource_size_t nfp_bar_resource_len(struct nfp_bar *bar) in nfp_bar_resource_len() argument 181 return pci_resource_len(bar->nfp->pdev, (bar->index / 8) * 2) / 8; in nfp_bar_resource_len() [all …]
|
/linux-6.6.21/Documentation/translations/zh_CN/devicetree/ |
D | overlay-notes.rst | 46 覆盖bar.dts, 49 ---- bar.dts - 按标签覆盖目标位置 ---------------------------- 53 /* bar外围 */ 54 bar { 55 compatible = "corp,bar"; 59 ---- bar.dts --------------------------------------------------------------- 61 当加载(并按照[1]中描述的方式解决)时,应该产生foo+bar.dts:: 63 ---- foo+bar.dts ----------------------------------------------------------- 64 /* FOO平台 + bar外围 */ 77 /* bar外围 */ [all …]
|
/linux-6.6.21/drivers/pci/controller/cadence/ |
D | pcie-cadence-host.c | 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() 245 LM_RC_BAR_CFG_CTRL_PREF_MEM_32BITS(bar) | in cdns_pcie_host_bar_ib_config() [all …]
|
D | pcie-cadence.h | 50 #define CDNS_PCIE_LM_EP_FUNC_BAR_CFG(bar, fn) \ argument 51 (((bar) < BAR_4) ? CDNS_PCIE_LM_EP_FUNC_BAR_CFG0(fn) : CDNS_PCIE_LM_EP_FUNC_BAR_CFG1(fn)) 56 #define CDNS_PCIE_LM_EP_VFUNC_BAR_CFG(bar, fn) \ argument 57 (((bar) < BAR_4) ? CDNS_PCIE_LM_EP_VFUNC_BAR_CFG0(fn) : CDNS_PCIE_LM_EP_VFUNC_BAR_CFG1(fn)) 104 #define LM_RC_BAR_CFG_CTRL_DISABLED(bar) \ argument 105 (CDNS_PCIE_LM_BAR_CFG_CTRL_DISABLED << (((bar) * 8) + 6)) 106 #define LM_RC_BAR_CFG_CTRL_IO_32BITS(bar) \ argument 107 (CDNS_PCIE_LM_BAR_CFG_CTRL_IO_32BITS << (((bar) * 8) + 6)) 108 #define LM_RC_BAR_CFG_CTRL_MEM_32BITS(bar) \ argument 109 (CDNS_PCIE_LM_BAR_CFG_CTRL_MEM_32BITS << (((bar) * 8) + 6)) [all …]
|
/linux-6.6.21/drivers/xen/xen-pciback/ |
D | conf_space_header.c | 129 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() 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() 186 if (tmpval != bar->val && value == bar->val) { in bar_write() [all …]
|
/linux-6.6.21/sound/soc/sof/ |
D | ops.h | 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() 329 writeq(value, sdev->bar[bar] + offset); in snd_sof_dsp_write64() 332 static inline u8 snd_sof_dsp_read8(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_read8() argument [all …]
|
D | iomem-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()
|
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() 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-6.6.21/drivers/net/ethernet/sfc/ |
D | ef100.c | 37 unsigned int bar; member 71 u32 bar = ef100_pci_get_bar_bits(efx, entry_location, EF100_BAR); in ef100_pci_parse_ef100_entry() local 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() 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 101 pci_resource_len(efx->pci_dev, bar); in ef100_pci_does_bar_overflow() 114 u32 bar; in ef100_pci_parse_continue_entry() local [all …]
|
/linux-6.6.21/lib/ |
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-6.6.21/include/linux/ |
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() 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-6.6.21/arch/arm/mm/ |
D | pmsa-v8.c | 141 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-6.6.21/Documentation/translations/zh_CN/admin-guide/ |
D | bootconfig.rst | 46 foo.bar.baz = value1 47 foo.bar.qux.quux = value2 51 foo.bar { 58 foo.bar { baz = value1; qux.quux = value2 } 68 foo = bar, baz 73 foo = bar, baz 81 foo = bar, baz 84 这样, ``foo`` 关键字就同时拥有了 ``bar`` , ``baz`` 和 ``qux`` 。 90 foo.bar = value2 96 bar = value1 [all …]
|
/linux-6.6.21/drivers/vfio/pci/ |
D | vfio_pci_rdwr.c | 203 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-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
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() 121 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_override() [all …]
|
/linux-6.6.21/tools/perf/Documentation/ |
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'. 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-6.6.21/include/asm-generic/ |
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, 35 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap() argument 40 static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max) in pci_iomap_wc() argument 44 static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, in pci_iomap_range() argument 50 static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, in pci_iomap_wc_range() argument
|
/linux-6.6.21/drivers/dma/dw-edma/ |
D | dw-edma-pcie.c | 28 .bar = a, \ 34 enum pci_barno bar; member 57 .rg.bar = BAR_0, 143 pdata->rg.bar = FIELD_GET(DW_PCIE_VSEC_DMA_BAR, val); in dw_edma_pcie_get_vsec_dma_data() 185 mask = BIT(vsec_data.rg.bar); in dw_edma_pcie_probe() 187 mask |= BIT(vsec_data.ll_wr[i].bar); in dw_edma_pcie_probe() 188 mask |= BIT(vsec_data.dt_wr[i].bar); in dw_edma_pcie_probe() 191 mask |= BIT(vsec_data.ll_rd[i].bar); in dw_edma_pcie_probe() 192 mask |= BIT(vsec_data.dt_rd[i].bar); in dw_edma_pcie_probe() 233 chip->reg_base = pcim_iomap_table(pdev)[vsec_data.rg.bar]; in dw_edma_pcie_probe() [all …]
|
/linux-6.6.21/Documentation/devicetree/ |
D | overlay-notes.rst | 41 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 …]
|