| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | tu102.c | 29 tu102_bar_bar2_wait(struct nvkm_bar *bar) in tu102_bar_bar2_wait() argument 31 struct nvkm_device *device = bar->subdev.device; in tu102_bar_bar2_wait() 39 tu102_bar_bar2_fini(struct nvkm_bar *bar) in tu102_bar_bar2_fini() argument 41 nvkm_mask(bar->subdev.device, 0xb80f48, 0x80000000, 0x00000000); in tu102_bar_bar2_fini() 48 struct gf100_bar *bar = gf100_bar(base); in tu102_bar_bar2_init() local 49 u32 addr = nvkm_memory_addr(bar->bar[0].inst) >> 12; in tu102_bar_bar2_init() 50 if (bar->bar2_halve) in tu102_bar_bar2_init() 56 tu102_bar_bar1_wait(struct nvkm_bar *bar) in tu102_bar_bar1_wait() argument 58 struct nvkm_device *device = bar->subdev.device; in tu102_bar_bar1_wait() 66 tu102_bar_bar1_fini(struct nvkm_bar *bar) in tu102_bar_bar1_fini() argument [all …]
|
| /linux/samples/trace_events/ |
| H A D | trace-events-sample.h | 302 TP_PROTO(const char *foo, int bar, const int *lst, 306 TP_ARGS(foo, bar, lst, string, mask, fmt, va), 310 __field( int, bar ) 316 __string_len( lstr, foo, bar / 2 < strlen(foo) ? bar / 2 : strlen(foo) ) 321 __entry->bar = bar; 332 __entry->foo, __entry->bar, 344 __print_symbolic(__entry->bar, 362 __print_flags(__entry->bar, "|", 428 TP_PROTO(const char *foo, int bar), 430 TP_ARGS(foo, bar), [all …]
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/ |
| H A D | bar.c | 34 r535_bar_flush(struct nvkm_bar *bar) in r535_bar_flush() argument 39 if (unlikely(!bar->bar2)) { in r535_bar_flush() 40 g84_bar_flush(bar); in r535_bar_flush() 44 ioread32_native(bar->flushBAR2); in r535_bar_flush() 69 r535_bar_bar2_fini(struct nvkm_bar *bar) in r535_bar_bar2_fini() argument 71 struct nvkm_vmm *vmm = gf100_bar(bar)->bar[0].vmm; in r535_bar_bar2_fini() 72 struct nvkm_gsp *gsp = bar->subdev.device->gsp; in r535_bar_bar2_fini() 74 bar->flushBAR2 = bar->flushBAR2PhysMode; in r535_bar_bar2_fini() 75 nvkm_done(bar->flushFBZero); in r535_bar_bar2_fini() 81 r535_bar_bar2_init(struct nvkm_bar *bar) in r535_bar_bar2_init() argument [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A 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/Documentation/translations/zh_CN/devicetree/ |
| H A D | overlay-notes.rst | 46 覆盖bar.dtso, 49 ---- bar.dtso - 按标签覆盖目标位置 --------------------------- 53 /* bar外围 */ 54 bar { 55 compatible = "corp,bar"; 59 ---- bar.dtso -------------------------------------------------------------- 61 当加载(并按照[1]中描述的方式解决)时,应该产生foo+bar.dts:: 63 ---- foo+bar.dts ----------------------------------------------------------- 64 /* FOO平台 + bar外围 */ 77 /* bar外围 */ [all …]
|
| /linux/drivers/pci/controller/cadence/ |
| H A D | pcie-cadence-hpa-regs.h | 34 #define CDNS_PCIE_HPA_LM_EP_FUNC_BAR_CFG(bar, fn) \ argument 35 (((bar) < BAR_3) ? CDNS_PCIE_HPA_LM_EP_FUNC_BAR_CFG0(fn) : \ 39 #define CDNS_PCIE_HPA_LM_EP_VFUNC_BAR_CFG(bar, fn) \ argument 40 (((bar) < BAR_3) ? CDNS_PCIE_HPA_LM_EP_VFUNC_BAR_CFG0(fn) : \ 84 #define HPA_LM_RC_BAR_CFG_CTRL_DISABLED(bar) \ argument 85 (CDNS_PCIE_HPA_LM_BAR_CFG_CTRL_DISABLED << ((bar) * 10)) 86 #define HPA_LM_RC_BAR_CFG_CTRL_IO_32BITS(bar) \ argument 87 (CDNS_PCIE_HPA_LM_BAR_CFG_CTRL_IO_32BITS << ((bar) * 10)) 88 #define HPA_LM_RC_BAR_CFG_CTRL_MEM_32BITS(bar) \ argument 89 (CDNS_PCIE_HPA_LM_BAR_CFG_CTRL_MEM_32BITS << ((bar) * 10)) [all …]
|
| /linux/drivers/pci/endpoint/functions/ |
| H A D | pci-epf-test.c | 737 enum pci_barno bar; in pci_epf_test_enable_doorbell() local 749 if (db->bar != NO_BAR) { in pci_epf_test_enable_doorbell() 754 bar = db->bar; in pci_epf_test_enable_doorbell() 757 bar = pci_epc_get_next_free_bar(epf_test->epc_features, in pci_epf_test_enable_doorbell() 759 if (bar < BAR_0) in pci_epf_test_enable_doorbell() 776 reg->doorbell_bar = cpu_to_le32(bar); in pci_epf_test_enable_doorbell() 778 if (db->bar == NO_BAR) { in pci_epf_test_enable_doorbell() 779 ret = pci_epf_align_inbound_addr(epf, bar, in pci_epf_test_enable_doorbell() 791 if (db->bar == NO_BAR) { in pci_epf_test_enable_doorbell() 792 epf_test->db_bar.barno = bar; in pci_epf_test_enable_doorbell() [all …]
|
| /linux/drivers/xen/xen-pciback/ |
| H A 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/drivers/pci/ |
| H A D | iomap.c | 30 int bar, in pci_iomap_range() argument 37 if (!pci_bar_index_is_valid(bar)) in pci_iomap_range() 40 start = pci_resource_start(dev, bar); in pci_iomap_range() 41 len = pci_resource_len(dev, bar); in pci_iomap_range() 42 flags = pci_resource_flags(dev, bar); in pci_iomap_range() 77 int bar, in pci_iomap_wc_range() argument 84 if (!pci_bar_index_is_valid(bar)) in pci_iomap_wc_range() 87 start = pci_resource_start(dev, bar); in pci_iomap_wc_range() 88 len = pci_resource_len(dev, bar); in pci_iomap_wc_range() 89 flags = pci_resource_flags(dev, bar); in pci_iomap_wc_range() [all …]
|
| H A D | rebar.c | 68 static int pci_rebar_find_pos(struct pci_dev *pdev, int bar) in pci_rebar_find_pos() argument 73 if (pci_resource_is_iov(bar)) { in pci_rebar_find_pos() 75 bar = pci_resource_num_to_vf_bar(bar); in pci_rebar_find_pos() 91 if (bar_idx == bar) in pci_rebar_find_pos() 108 u64 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar) in pci_rebar_get_possible_sizes() argument 113 pos = pci_rebar_find_pos(pdev, bar); in pci_rebar_get_possible_sizes() 122 bar == 0 && cap == 0x700) in pci_rebar_get_possible_sizes() 138 bool pci_rebar_size_supported(struct pci_dev *pdev, int bar, int size) in pci_rebar_size_supported() argument 140 u64 sizes = pci_rebar_get_possible_sizes(pdev, bar); in pci_rebar_size_supported() 159 int pci_rebar_get_max_size(struct pci_dev *pdev, int bar) in pci_rebar_get_max_size() argument [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| H A 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/samples/rust/ |
| H A D | rust_driver_pci.rs | 69 bar: Bar0<'bound>, 85 fn testdev(index: &TestIndex, bar: &Bar0<'_>) -> Result<u32> { in config_space() 87 bar.write_reg(regs::TEST::zeroed().with_index(*index)); in config_space() 89 let offset = bar.read(regs::OFFSET).into_raw() as usize; in config_space() 90 let data = bar.read(regs::DATA).into(); in config_space() 95 bar.try_write8(data, offset)?; 97 Ok(bar.read(regs::COUNT).into()) 160 let bar = pdev.iomap_region_sized::<{ regs::END }>(0, c"rust_driver_pci")?; 165 SampleDriverData::testdev(info, &bar)? 171 bar, 40 bar: Devres<Bar0>, global() field 117 let bar = bar.access(pdev.as_ref())?; probe() localVariable [all...] |
| /linux/include/linux/ |
| H 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() 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/arch/arm/mm/ |
| H A 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/sound/soc/sof/ |
| H A 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()
|
| H A D | ops.c | 46 bool snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_pci_update_bits() 52 ret = snd_sof_dsp_read(sdev, bar, offset); in snd_sof_dsp_update_bits_unlocked() 60 snd_sof_dsp_write(sdev, bar, offset, new); in snd_sof_dsp_update_bits_unlocked() 66 bool snd_sof_dsp_update_bits64_unlocked(struct snd_sof_dev *sdev, u32 bar, in snd_sof_dsp_update_bits_unlocked() 71 old = snd_sof_dsp_read64(sdev, bar, offset); in snd_sof_dsp_update_bits64_unlocked() argument 78 snd_sof_dsp_write64(sdev, bar, offset, new); in snd_sof_dsp_update_bits64_unlocked() 85 bool snd_sof_dsp_update_bits(struct snd_sof_dev *sdev, u32 bar, u32 offset, in snd_sof_dsp_update_bits64_unlocked() 89 return snd_sof_dsp_update_bits_unlocked(sdev, bar, offset, mask, value); 93 bool snd_sof_dsp_update_bits64(struct snd_sof_dev *sdev, u32 bar, u32 offset, in snd_sof_dsp_update_bits() 97 return snd_sof_dsp_update_bits64_unlocked(sdev, bar, offse in snd_sof_dsp_update_bits() 51 snd_sof_dsp_update_bits_unlocked(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 mask,u32 value) snd_sof_dsp_update_bits_unlocked() argument 90 snd_sof_dsp_update_bits(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 mask,u32 value) snd_sof_dsp_update_bits() argument 104 snd_sof_dsp_update_bits64(struct snd_sof_dev * sdev,u32 bar,u32 offset,u64 mask,u64 value) snd_sof_dsp_update_bits64() argument 119 snd_sof_dsp_update_bits_forced_unlocked(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 mask,u32 value) snd_sof_dsp_update_bits_forced_unlocked() argument 134 snd_sof_dsp_update_bits_forced(struct snd_sof_dev * sdev,u32 bar,u32 offset,u32 mask,u32 value) snd_sof_dsp_update_bits_forced() argument [all...] |
| /linux/Documentation/translations/zh_CN/admin-guide/ |
| H A 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/Documentation/translations/zh_TW/admin-guide/ |
| H A 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/tools/testing/selftests/bpf/prog_tests/ |
| H 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() 121 if (CHECK(!bpf_prog_attach(allow_prog, bar, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_override() [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | callchain-overhead-calculation.txt | 29 void bar(void) { 35 bar() 40 In this case 'foo' is a child of 'bar', and 'bar' is an immediate 42 'main' is a parent of 'foo' and 'bar', and 'bar' is a parent of 'foo'. 44 Suppose all samples are recorded in 'foo' and 'bar' only. When it's 54 bar 58 40.00% bar 60 --- bar [all...] |
| /linux/drivers/dma/dw-edma/ |
| H A D | dw-edma-pcie.c | 50 .bar = a, \ 56 enum pci_barno bar; member 99 .rg.bar = BAR_0, 137 .rg.bar = BAR_0, 150 .rg.bar = BAR_0, 162 enum pci_barno bar, off_t start_off, in dw_edma_set_chan_region_offset() argument 175 pdata->ll_wr[i].bar = bar; in dw_edma_set_chan_region_offset() 183 pdata->ll_rd[i].bar = bar; in dw_edma_set_chan_region_offset() 191 pdata->dt_wr[i].bar = bar; in dw_edma_set_chan_region_offset() 199 pdata->dt_rd[i].bar = bar; in dw_edma_set_chan_region_offset() [all …]
|
| /linux/include/asm-generic/ |
| H 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, 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
|