/linux-4.1.27/include/linux/ |
H A D | stringify.h | 5 * macro itself. For example, compile with -DFOO=bar, __stringify(FOO) 6 * converts to "bar".
|
H A D | pnp.h | 59 unsigned int bar) pnp_port_start() 61 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); pnp_port_start() 69 unsigned int bar) pnp_port_end() 71 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); pnp_port_end() 79 unsigned int bar) pnp_port_flags() 81 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); pnp_port_flags() 88 static inline int pnp_port_valid(struct pnp_dev *dev, unsigned int bar) pnp_port_valid() argument 90 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IO, bar)); pnp_port_valid() 94 unsigned int bar) pnp_port_len() 96 struct resource *res = pnp_get_resource(dev, IORESOURCE_IO, bar); pnp_port_len() 105 unsigned int bar) pnp_mem_start() 107 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); pnp_mem_start() 115 unsigned int bar) pnp_mem_end() 117 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); pnp_mem_end() 124 static inline unsigned long pnp_mem_flags(struct pnp_dev *dev, unsigned int bar) pnp_mem_flags() argument 126 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); pnp_mem_flags() 133 static inline int pnp_mem_valid(struct pnp_dev *dev, unsigned int bar) pnp_mem_valid() argument 135 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_MEM, bar)); pnp_mem_valid() 139 unsigned int bar) pnp_mem_len() 141 struct resource *res = pnp_get_resource(dev, IORESOURCE_MEM, bar); pnp_mem_len() 149 static inline resource_size_t pnp_irq(struct pnp_dev *dev, unsigned int bar) pnp_irq() argument 151 struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar); pnp_irq() 158 static inline unsigned long pnp_irq_flags(struct pnp_dev *dev, unsigned int bar) pnp_irq_flags() argument 160 struct resource *res = pnp_get_resource(dev, IORESOURCE_IRQ, bar); pnp_irq_flags() 167 static inline int pnp_irq_valid(struct pnp_dev *dev, unsigned int bar) pnp_irq_valid() argument 169 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_IRQ, bar)); pnp_irq_valid() 173 static inline resource_size_t pnp_dma(struct pnp_dev *dev, unsigned int bar) pnp_dma() argument 175 struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar); pnp_dma() 182 static inline unsigned long pnp_dma_flags(struct pnp_dev *dev, unsigned int bar) pnp_dma_flags() argument 184 struct resource *res = pnp_get_resource(dev, IORESOURCE_DMA, bar); pnp_dma_flags() 191 static inline int pnp_dma_valid(struct pnp_dev *dev, unsigned int bar) pnp_dma_valid() argument 193 return pnp_resource_valid(pnp_get_resource(dev, IORESOURCE_DMA, bar)); pnp_dma_valid() 58 pnp_port_start(struct pnp_dev *dev, unsigned int bar) pnp_port_start() argument 68 pnp_port_end(struct pnp_dev *dev, unsigned int bar) pnp_port_end() argument 78 pnp_port_flags(struct pnp_dev *dev, unsigned int bar) pnp_port_flags() argument 93 pnp_port_len(struct pnp_dev *dev, unsigned int bar) pnp_port_len() argument 104 pnp_mem_start(struct pnp_dev *dev, unsigned int bar) pnp_mem_start() argument 114 pnp_mem_end(struct pnp_dev *dev, unsigned int bar) pnp_mem_end() argument 138 pnp_mem_len(struct pnp_dev *dev, unsigned int bar) pnp_mem_len() argument
|
H A D | com20020.h | 47 u32 bar; member in struct:com20020_pci_channel_map 49 u32 size; /* 0x00 - auto, e.g. length of entire bar */
|
H A D | mcb.h | 51 * @bar: BAR in Chameleon table 67 int bar; member in struct:mcb_device
|
H A D | of_address.h | 135 extern int of_pci_address_to_resource(struct device_node *dev, int bar, 141 static inline int of_pci_address_to_resource(struct device_node *dev, int bar, of_pci_address_to_resource() argument
|
H A D | ioc4.h | 27 * appear at bar[0]+0x00000 through bar[0]+0x0005c. The corresponding
|
H A D | ds17287rtc.h | 45 #define DS_XCTRL4A_PAB 0x08 /* power active bar ctrl */
|
H A D | pci.h | 307 decoding during bar sizing */ 1137 static inline pci_bus_addr_t pci_bus_address(struct pci_dev *pdev, int bar) pci_bus_address() argument 1141 pcibios_resource_to_bus(pdev->bus, ®ion, &pdev->resource[bar]); pci_bus_address() 1470 #define pci_resource_start(dev, bar) ((dev)->resource[(bar)].start) pci_get_new_domain_nr() 1471 #define pci_resource_end(dev, bar) ((dev)->resource[(bar)].end) pci_get_new_domain_nr() 1472 #define pci_resource_flags(dev, bar) ((dev)->resource[(bar)].flags) pci_get_new_domain_nr() 1473 #define pci_resource_len(dev,bar) \ pci_get_new_domain_nr() 1474 ((pci_resource_start((dev), (bar)) == 0 && \ pci_get_new_domain_nr() 1475 pci_resource_end((dev), (bar)) == \ pci_get_new_domain_nr() 1476 pci_resource_start((dev), (bar))) ? 0 : \ pci_get_new_domain_nr() 1478 (pci_resource_end((dev), (bar)) - \ pci_get_new_domain_nr() 1479 pci_resource_start((dev), (bar)) + 1)) pci_get_new_domain_nr() 1508 static inline void pci_resource_to_user(const struct pci_dev *dev, int bar, pci_resource_to_user() argument 1632 void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen); pci_dev_specific_enable_acs() 1680 void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar); pci_mmcfg_late_init()
|
H A D | nvme.h | 88 struct nvme_bar __iomem *bar; member in struct:nvme_dev
|
H A D | rcupdate.h | 735 * bar = rcu_dereference_check(foo->bar, lockdep_is_held(&foo->lock)); 737 * could be used to indicate to lockdep that foo->bar may only be dereferenced 739 * the bar struct at foo->bar is held. 745 * bar = rcu_dereference_check(foo->bar, lockdep_is_held(&foo->lock) ||
|
H A D | rculist.h | 263 * struct foo *bar = list_first_entry_rcu(mylist, struct foo, list_member); 264 * do_something(bar);
|
/linux-4.1.27/drivers/isdn/hardware/eicon/ |
H A D | diva_pci.h | 8 unsigned long bar, 10 void divasa_unmap_pci_bar(void __iomem *bar); 15 int bar, void *pci_dev_handle);
|
H A D | os_4bri.c | 146 int bar, i; diva_4bri_init_card() local 196 for (bar = 0; bar < 4; bar++) { diva_4bri_init_card() 197 a->resources.pci.bar[bar] = diva_4bri_init_card() 199 a->resources.pci.func, bar, diva_4bri_init_card() 201 if (!a->resources.pci.bar[bar] diva_4bri_init_card() 202 || (a->resources.pci.bar[bar] == 0xFFFFFFF0)) { diva_4bri_init_card() 204 ("A: invalid bar[%d]=%08x", bar, diva_4bri_init_card() 205 a->resources.pci.bar[bar])) diva_4bri_init_card() 218 a->xdi_adapter.sdram_bar = a->resources.pci.bar[2]; diva_4bri_init_card() 223 for (bar = 0; bar < 4; bar++) { diva_4bri_init_card() 224 if (bar != 1) { /* ignore I/O */ diva_4bri_init_card() 225 a->resources.pci.addr[bar] = diva_4bri_init_card() 226 divasa_remap_pci_bar(a, bar, a->resources.pci.bar[bar], diva_4bri_init_card() 227 bar_length[bar]); diva_4bri_init_card() 228 if (!a->resources.pci.addr[bar]) { diva_4bri_init_card() 229 DBG_ERR(("A: 4BRI: can't map bar[%d]", bar)) diva_4bri_init_card() 241 if (diva_os_register_io_port(a, 1, a->resources.pci.bar[1], diva_4bri_init_card() 243 DBG_ERR(("A: 4BRI: can't register bar[1]")) diva_4bri_init_card() 249 (void *) (unsigned long) a->resources.pci.bar[1]; diva_4bri_init_card() 406 a->xdi_adapter.cfg = (void *) (unsigned long) a->resources.pci.bar[0]; /* BAR0 CONFIG */ diva_4bri_init_card() 407 a->xdi_adapter.port = (void *) (unsigned long) a->resources.pci.bar[1]; /* BAR1 */ diva_4bri_init_card() 408 a->xdi_adapter.ctlReg = (void *) (unsigned long) a->resources.pci.bar[3]; /* BAR3 CNTRL */ diva_4bri_init_card() 471 int bar; diva_4bri_cleanup_adapter() local 496 for (bar = 0; bar < 4; bar++) { diva_4bri_cleanup_adapter() 497 if (bar != 1) { diva_4bri_cleanup_adapter() 498 if (a->resources.pci.bar[bar] diva_4bri_cleanup_adapter() 499 && a->resources.pci.addr[bar]) { diva_4bri_cleanup_adapter() 500 divasa_unmap_pci_bar(a->resources.pci.addr[bar]); diva_4bri_cleanup_adapter() 501 a->resources.pci.bar[bar] = 0; diva_4bri_cleanup_adapter() 502 a->resources.pci.addr[bar] = NULL; diva_4bri_cleanup_adapter() 510 if (a->resources.pci.bar[1] && a->resources.pci.addr[1]) { diva_4bri_cleanup_adapter() 511 diva_os_register_io_port(a, 0, a->resources.pci.bar[1], diva_4bri_cleanup_adapter() 517 a->resources.pci.bar[1] = 0; diva_4bri_cleanup_adapter() 566 serNo = a->resources.pci.bar[1] & 0xffff0000; _4bri_get_serial_number() 676 *data++ = a->resources.pci.bar[i]; diva_4bri_cmd_card_proc()
|
H A D | xdi_adapter.h | 14 dword bar[8]; /* contains context of appropriate BAR Register */ member in struct:_divas_pci_card_resources 15 void __iomem *addr[8]; /* same bar, but mapped into memory */ 16 dword length[8]; /* bar length */
|
H A D | os_pri.c | 83 a->xdi_adapter.sdram_bar = a->resources.pci.bar[0]; diva_pri_set_addresses() 97 int bar = 0; diva_pri_init_card() local 122 for (bar = 0; bar < 5; bar++) { diva_pri_init_card() 123 a->resources.pci.bar[bar] = diva_pri_init_card() 125 a->resources.pci.func, bar, diva_pri_init_card() 127 if (!a->resources.pci.bar[bar] diva_pri_init_card() 128 || (a->resources.pci.bar[bar] == 0xFFFFFFF0)) { diva_pri_init_card() 129 DBG_ERR(("A: invalid bar[%d]=%08x", bar, diva_pri_init_card() 130 a->resources.pci.bar[bar])) diva_pri_init_card() 146 for (bar = 0; bar < 5; bar++) { diva_pri_init_card() 147 a->resources.pci.addr[bar] = diva_pri_init_card() 148 divasa_remap_pci_bar(a, bar, a->resources.pci.bar[bar], diva_pri_init_card() 149 bar_length[bar]); diva_pri_init_card() 150 if (!a->resources.pci.addr[bar]) { diva_pri_init_card() 151 DBG_ERR(("A: A(%d), can't map bar[%d]", diva_pri_init_card() 152 a->controller, bar)) diva_pri_init_card() 168 serNo = a->resources.pci.bar[1] & 0xffff0000; diva_pri_init_card() 262 int bar = 0; diva_pri_cleanup_adapter() local 282 for (bar = 0; bar < 5; bar++) { diva_pri_cleanup_adapter() 283 if (a->resources.pci.bar[bar] diva_pri_cleanup_adapter() 284 && a->resources.pci.addr[bar]) { diva_pri_cleanup_adapter() 285 divasa_unmap_pci_bar(a->resources.pci.addr[bar]); diva_pri_cleanup_adapter() 286 a->resources.pci.bar[bar] = 0; diva_pri_cleanup_adapter() 287 a->resources.pci.addr[bar] = NULL; diva_pri_cleanup_adapter() 647 *data++ = a->resources.pci.bar[i]; diva_pri_cmd_card_proc() 806 addr4 = a->resources.pci.bar[4]; pri_get_serial_number() 807 addr3 = a->resources.pci.bar[3]; /* flash */ pri_get_serial_number() 808 addr1 = a->resources.pci.bar[1]; /* unused */ pri_get_serial_number() 830 addr1 = a->resources.pci.bar[1]; pri_get_serial_number() 831 a->resources.pci.bar[1] = a->resources.pci.bar[4]; pri_get_serial_number() 832 a->resources.pci.bar[4] = addr1; pri_get_serial_number()
|
H A D | os_bri.c | 77 int bar; diva_bri_init_card() local 93 for (bar = 0; bar < 3; bar++) { diva_bri_init_card() 94 a->resources.pci.bar[bar] = diva_bri_init_card() 96 a->resources.pci.func, bar, diva_bri_init_card() 98 if (!a->resources.pci.bar[bar]) { diva_bri_init_card() 99 DBG_ERR(("A: can't get BAR[%d]", bar)) diva_bri_init_card() 114 Get length of I/O bar 2 - it is different by older diva_bri_init_card() 148 divasa_remap_pci_bar(a, 0, a->resources.pci.bar[0], diva_bri_init_card() 158 if (diva_os_register_io_port(a, 1, a->resources.pci.bar[1], diva_bri_init_card() 164 a->resources.pci.addr[1] = (void *) (unsigned long) a->resources.pci.bar[1]; diva_bri_init_card() 167 if (diva_os_register_io_port(a, 1, a->resources.pci.bar[2], diva_bri_init_card() 173 a->resources.pci.addr[2] = (void *) (unsigned long) a->resources.pci.bar[2]; diva_bri_init_card() 284 if (a->resources.pci.addr[0] && a->resources.pci.bar[0]) { diva_bri_cleanup_adapter() 287 a->resources.pci.bar[0] = 0; diva_bri_cleanup_adapter() 291 if (a->resources.pci.addr[i] && a->resources.pci.bar[i]) { diva_bri_cleanup_adapter() 293 a->resources.pci.bar[i], diva_bri_cleanup_adapter() 298 a->resources.pci.bar[i] = 0; diva_bri_cleanup_adapter() 369 diva_os_register_io_port(a, 0, a->resources.pci.bar[i], diva_bri_reregister_io() 379 if (diva_os_register_io_port(a, 1, a->resources.pci.bar[i], diva_bri_reregister_io() 386 (void *) (unsigned long) a->resources.pci.bar[i]; diva_bri_reregister_io() 441 *data++ = a->resources.pci.bar[i]; diva_bri_cmd_card_proc()
|
H A D | divasmain.c | 226 int bar, void *pci_dev_handle) divasa_get_pci_bar() 231 if (bar < 6) { divasa_get_pci_bar() 232 ret = dev->resource[bar].start; divasa_get_pci_bar() 235 DBG_TRC(("GOT BAR[%d]=%08x", bar, ret)); divasa_get_pci_bar() 431 void __iomem *divasa_remap_pci_bar(diva_os_xdi_adapter_t *a, int id, unsigned long bar, unsigned long area_length) divasa_remap_pci_bar() argument 433 void __iomem *ret = ioremap(bar, area_length); divasa_remap_pci_bar() 434 DBG_TRC(("remap(%08x)->%p", bar, ret)); divasa_remap_pci_bar() 438 void divasa_unmap_pci_bar(void __iomem *bar) divasa_unmap_pci_bar() argument 440 if (bar) { divasa_unmap_pci_bar() 441 iounmap(bar); divasa_unmap_pci_bar() 225 divasa_get_pci_bar(unsigned char bus, unsigned char func, int bar, void *pci_dev_handle) divasa_get_pci_bar() argument
|
H A D | mi_pc.h | 48 #define MP_IRQ_RESET 0xc18 /* offset of isr in the CONFIG memory bar */ 52 #define MP_SHARED_RAM_OFFSET 0x00001000 /* offset of shared RAM base in the DRAM memory bar */ 61 #define MP_RESET 0x20 /* offset of RESET register in the DEVICES memory bar */
|
H A D | divasproc.c | 299 if (a->resources.pci.bar[i]) { info_proc_show() 302 i, a->resources.pci.bar[i], info_proc_show()
|
/linux-4.1.27/tools/perf/ui/tui/ |
H A D | progress.c | 10 int bar, y; tui_progress__update() local 30 bar = ((SLtt_Screen_Cols - 2) * p->curr) / p->total; tui_progress__update() 31 SLsmg_fill_region(y, 1, 1, bar, ' '); tui_progress__update()
|
/linux-4.1.27/arch/frv/include/asm/ |
H A D | fpu.h | 9 #define kernel_fpu_end() do { asm volatile("bar":::"memory"); preempt_enable(); } while(0)
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
H A D | gf100.c | 40 struct gf100_bar_priv_vm bar[2]; member in struct:gf100_bar_priv 44 gf100_bar_kmap(struct nvkm_bar *bar, struct nvkm_mem *mem, u32 flags, gf100_bar_kmap() argument 47 struct gf100_bar_priv *priv = (void *)bar; gf100_bar_kmap() 50 ret = nvkm_vm_get(priv->bar[0].vm, mem->size << 12, 12, flags, vma); gf100_bar_kmap() 59 gf100_bar_umap(struct nvkm_bar *bar, struct nvkm_mem *mem, u32 flags, gf100_bar_umap() argument 62 struct gf100_bar_priv *priv = (void *)bar; gf100_bar_umap() 65 ret = nvkm_vm_get(priv->bar[1].vm, mem->size << 12, gf100_bar_umap() 75 gf100_bar_unmap(struct nvkm_bar *bar, struct nvkm_vma *vma) gf100_bar_unmap() argument 150 ret = gf100_bar_ctor_vm(priv, &priv->bar[0], 3); gf100_bar_ctor() 156 ret = gf100_bar_ctor_vm(priv, &priv->bar[1], 1); gf100_bar_ctor() 176 nvkm_vm_ref(NULL, &priv->bar[1].vm, priv->bar[1].pgd); gf100_bar_dtor() 177 nvkm_gpuobj_ref(NULL, &priv->bar[1].pgd); gf100_bar_dtor() 178 nvkm_gpuobj_ref(NULL, &priv->bar[1].mem); gf100_bar_dtor() 180 if (priv->bar[0].vm) { gf100_bar_dtor() 181 nvkm_gpuobj_ref(NULL, &priv->bar[0].vm->pgt[0].obj[0]); gf100_bar_dtor() 182 nvkm_vm_ref(NULL, &priv->bar[0].vm, priv->bar[0].pgd); gf100_bar_dtor() 184 nvkm_gpuobj_ref(NULL, &priv->bar[0].pgd); gf100_bar_dtor() 185 nvkm_gpuobj_ref(NULL, &priv->bar[0].mem); gf100_bar_dtor() 203 nv_wr32(priv, 0x001704, 0x80000000 | priv->bar[1].mem->addr >> 12); gf100_bar_init() 204 if (priv->bar[0].mem) gf100_bar_init() 206 0xc0000000 | priv->bar[0].mem->addr >> 12); gf100_bar_init()
|
H A D | base.c | 42 struct nvkm_bar *bar = nvkm_bar(device); nvkm_barobj_ctor() local 52 ret = bar->kmap(bar, mem, NV_MEM_ACCESS_RW, &barobj->vma); nvkm_barobj_ctor() 59 nv_warn(bar, "PRAMIN ioremap failed\n"); nvkm_barobj_ctor() 69 struct nvkm_bar *bar = nvkm_bar(object); nvkm_barobj_dtor() local 74 bar->unmap(bar, &barobj->vma); nvkm_barobj_dtor() 106 nvkm_bar_alloc(struct nvkm_bar *bar, struct nvkm_object *parent, nvkm_bar_alloc() argument 121 struct nvkm_bar *bar; nvkm_bar_create_() local 125 "bar", length, pobject); nvkm_bar_create_() 126 bar = *pobject; nvkm_bar_create_() 134 nvkm_bar_destroy(struct nvkm_bar *bar) nvkm_bar_destroy() argument 136 nvkm_subdev_destroy(&bar->base); nvkm_bar_destroy() 142 struct nvkm_bar *bar = (void *)object; _nvkm_bar_dtor() local 143 nvkm_bar_destroy(bar); _nvkm_bar_dtor()
|
H A D | priv.h | 3 #include <subdev/bar.h>
|
H A D | gk20a.c | 29 struct nvkm_bar *bar; gk20a_bar_ctor() local 36 bar = (struct nvkm_bar *)*pobject; gk20a_bar_ctor() 37 bar->iomap_uncached = true; gk20a_bar_ctor()
|
H A D | nv50.c | 45 nv50_bar_kmap(struct nvkm_bar *bar, struct nvkm_mem *mem, u32 flags, nv50_bar_kmap() argument 48 struct nv50_bar_priv *priv = (void *)bar; nv50_bar_kmap() 60 nv50_bar_umap(struct nvkm_bar *bar, struct nvkm_mem *mem, u32 flags, nv50_bar_umap() argument 63 struct nv50_bar_priv *priv = (void *)bar; nv50_bar_umap() 75 nv50_bar_unmap(struct nvkm_bar *bar, struct nvkm_vma *vma) nv50_bar_unmap() argument 82 nv50_bar_flush(struct nvkm_bar *bar) nv50_bar_flush() argument 84 struct nv50_bar_priv *priv = (void *)bar; nv50_bar_flush() 94 g84_bar_flush(struct nvkm_bar *bar) g84_bar_flush() argument 96 struct nv50_bar_priv *priv = (void *)bar; g84_bar_flush() 99 nv_wr32(bar, 0x070000, 0x00000001); g84_bar_flush()
|
/linux-4.1.27/drivers/xen/xen-pciback/ |
H A D | conf_space_header.c | 137 struct pci_bar_info *bar = data; rom_write() local 139 if (unlikely(!bar)) { rom_write() 149 bar->which = 1; rom_write() 153 if (tmpval != bar->val && value == bar->val) { rom_write() 154 /* Allow restoration of bar value. */ rom_write() 155 pci_write_config_dword(dev, offset, bar->val); rom_write() 157 bar->which = 0; rom_write() 171 struct pci_bar_info *bar = data; bar_write() local 173 if (unlikely(!bar)) { bar_write() 183 bar->which = 1; bar_write() 187 if (tmpval != bar->val && value == bar->val) { bar_write() 188 /* Allow restoration of bar value. */ bar_write() 189 pci_write_config_dword(dev, offset, bar->val); bar_write() 191 bar->which = 0; bar_write() 199 struct pci_bar_info *bar = data; bar_read() local 201 if (unlikely(!bar)) { bar_read() 207 *value = bar->which ? bar->len_val : bar->val; bar_read() 240 struct pci_bar_info *bar = kmalloc(sizeof(*bar), GFP_KERNEL); bar_init() local 242 if (!bar) bar_init() 245 read_dev_bar(dev, bar, offset, ~0); bar_init() 246 bar->which = 0; bar_init() 248 return bar; bar_init() 253 struct pci_bar_info *bar = kmalloc(sizeof(*bar), GFP_KERNEL); rom_init() local 255 if (!bar) rom_init() 258 read_dev_bar(dev, bar, offset, ~PCI_ROM_ADDRESS_ENABLE); rom_init() 259 bar->which = 0; rom_init() 261 return bar; rom_init() 266 struct pci_bar_info *bar = data; bar_reset() local 268 bar->which = 0; bar_reset()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
H A D | lu_ref.h | 57 * struct bar *bar; 59 * // bar owns a reference to foo. 60 * bar->bar_foo = foo_get(foo); 61 * lu_ref_add(&foo->foo_reference, "bar", bar); 65 * // reference from bar to foo is released. 66 * lu_ref_del(&foo->foo_reference, "bar", bar); 67 * foo_put(bar->bar_foo); 94 * // There is a large number of bar's for a single foo. 95 * bar->bar_foo = foo_get(foo); 96 * bar->bar_foo_ref = lu_ref_add(&foo->foo_reference, "bar", bar); 100 * // reference from bar to foo is released. 101 * lu_ref_del_at(&foo->foo_reference, bar->bar_foo_ref, "bar", bar); 102 * foo_put(bar->bar_foo);
|
/linux-4.1.27/lib/ |
H A D | pci_iomap.c | 15 * @bar: BAR number 28 int bar, pci_iomap_range() 32 resource_size_t start = pci_resource_start(dev, bar); pci_iomap_range() 33 resource_size_t len = pci_resource_len(dev, bar); pci_iomap_range() 34 unsigned long flags = pci_resource_flags(dev, bar); pci_iomap_range() 57 * @bar: BAR number 68 void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) pci_iomap() argument 70 return pci_iomap_range(dev, bar, 0, maxlen); pci_iomap() 27 pci_iomap_range(struct pci_dev *dev, int bar, unsigned long offset, unsigned long maxlen) pci_iomap_range() argument
|
H A D | devres.c | 285 * @bar: BAR to iomap 291 void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen) pcim_iomap() argument 295 BUG_ON(bar >= PCIM_IOMAP_MAX); pcim_iomap() 298 if (!tbl || tbl[bar]) /* duplicate mappings not allowed */ pcim_iomap() 301 tbl[bar] = pci_iomap(pdev, bar, maxlen); pcim_iomap() 302 return tbl[bar]; pcim_iomap()
|
/linux-4.1.27/samples/trace_events/ |
H A D | trace-events-sample.h | 69 * Here it is trace_foo_bar(char *foo, int bar). 72 * Here it is simply "foo, bar". 93 * __field_struct(struct bar, foo) 95 * __entry->bar.x = y; 107 * memcpy(__entry->foo, bar, 10); 118 * __dynamic_array( int, foo, bar) is similar to: int foo[bar]; 123 * memcpy(__get_dynamic_array(foo), bar, 10); 134 * __string(foo, bar) is similar to: strcpy(foo, bar) 138 * __assign_str(foo, bar); 152 * __assign_bitmask(target_cpus, cpumask_bits(bar), nr_cpumask_bits); 169 * For __dynamic_array(int, foo, bar) use __get_dynamic_array(foo) 176 * For __string(foo, bar) use __get_str(foo) 230 TP_PROTO(const char *foo, int bar, const int *lst, 233 TP_ARGS(foo, bar, lst, string, mask), 237 __field( int, bar ) 245 __entry->bar = bar; 252 TP_printk("foo %s %d %s %s %s %s (%s)", __entry->foo, __entry->bar, 262 * version of the number (if __entry->bar == 7 then "7" is returned). 264 __print_symbolic(__entry->bar, 282 __print_flags(__entry->bar, "|", 338 TP_PROTO(const char *foo, int bar), 340 TP_ARGS(foo, bar), 342 TP_CONDITION(!(bar % 10)), 346 __field( int, bar ) 351 __entry->bar = bar; 354 TP_printk("foo %s %d", __get_str(foo), __entry->bar) 381 TP_PROTO(const char *foo, int bar), 383 TP_ARGS(foo, bar), 387 __field( int, bar ) 392 __entry->bar = bar; 395 TP_printk("foo %s %d", __get_str(foo), __entry->bar), 428 TP_PROTO(const char *foo, int bar), 430 TP_ARGS(foo, bar), 434 __field( int, bar ) 439 __entry->bar = bar; 442 TP_printk("foo %s %d", __get_str(foo), __entry->bar) 450 TP_PROTO(const char *foo, int bar), 451 TP_ARGS(foo, bar)); 454 TP_PROTO(const char *foo, int bar), 455 TP_ARGS(foo, bar), 456 TP_CONDITION(!(bar % 8))); 460 TP_PROTO(const char *foo, int bar), 461 TP_ARGS(foo, bar), 477 TP_PROTO(const char *foo, int bar), 478 TP_ARGS(foo, bar), 479 TP_printk("bar %s %d", __get_str(foo), __entry->bar));
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | ramht.c | 25 #include <subdev/bar.h> 45 struct nvkm_bar *bar = nvkm_bar(ramht); nvkm_ramht_insert() local 53 if (bar) nvkm_ramht_insert() 54 bar->flush(bar); nvkm_ramht_insert() 69 struct nvkm_bar *bar = nvkm_bar(ramht); nvkm_ramht_remove() local 72 if (bar) nvkm_ramht_remove() 73 bar->flush(bar); nvkm_ramht_remove()
|
H A D | gpuobj.c | 28 #include <subdev/bar.h> 57 struct nvkm_bar *bar = nvkm_bar(parent); nvkm_gpuobj_create_() local 89 if (bar && bar->alloc) { nvkm_gpuobj_create_() 93 if (!bar->alloc(bar, parent, node, &pargpu)) { nvkm_gpuobj_create_() 237 struct nvkm_bar *bar = nvkm_bar(gpuobj); nvkm_gpuobj_map() local 240 if (bar && bar->umap) { nvkm_gpuobj_map() 244 ret = bar->umap(bar, *mem, access, vma); nvkm_gpuobj_map()
|
/linux-4.1.27/drivers/vfio/pci/ |
H A D | vfio_pci_rdwr.c | 121 int bar = VFIO_PCI_OFFSET_TO_INDEX(*ppos); vfio_pci_bar_rw() local 127 if (!pci_resource_start(pdev, bar)) vfio_pci_bar_rw() 130 end = pci_resource_len(pdev, bar); vfio_pci_bar_rw() 137 if (bar == PCI_ROM_RESOURCE) { vfio_pci_bar_rw() 147 } else if (!vdev->barmap[bar]) { vfio_pci_bar_rw() 150 ret = pci_request_selected_regions(pdev, 1 << bar, "vfio"); vfio_pci_bar_rw() 154 io = pci_iomap(pdev, bar, 0); vfio_pci_bar_rw() 156 pci_release_selected_regions(pdev, 1 << bar); vfio_pci_bar_rw() 160 vdev->barmap[bar] = io; vfio_pci_bar_rw() 162 io = vdev->barmap[bar]; vfio_pci_bar_rw() 164 if (bar == vdev->msix_bar) { vfio_pci_bar_rw() 174 if (bar == PCI_ROM_RESOURCE) vfio_pci_bar_rw()
|
H A D | vfio_pci_config.c | 404 static __le32 vfio_generate_bar_flags(struct pci_dev *pdev, int bar) vfio_generate_bar_flags() argument 406 unsigned long flags = pci_resource_flags(pdev, bar); vfio_generate_bar_flags() 431 __le32 *bar; vfio_bar_fixup() local 434 bar = (__le32 *)&vdev->vconfig[PCI_BASE_ADDRESS_0]; vfio_bar_fixup() 436 for (i = PCI_STD_RESOURCES; i <= PCI_STD_RESOURCE_END; i++, bar++) { vfio_bar_fixup() 438 *bar = 0; /* Unmapped by host = unimplemented to user */ vfio_bar_fixup() 444 *bar &= cpu_to_le32((u32)mask); vfio_bar_fixup() 445 *bar |= vfio_generate_bar_flags(pdev, i); vfio_bar_fixup() 447 if (*bar & cpu_to_le32(PCI_BASE_ADDRESS_MEM_TYPE_64)) { vfio_bar_fixup() 448 bar++; vfio_bar_fixup() 449 *bar &= cpu_to_le32((u32)(mask >> 32)); vfio_bar_fixup() 454 bar = (__le32 *)&vdev->vconfig[PCI_ROM_ADDRESS]; vfio_bar_fixup() 464 *bar &= cpu_to_le32((u32)mask); vfio_bar_fixup() 466 *bar = 0; vfio_bar_fixup()
|
H A D | vfio_pci.c | 178 int bar; vfio_pci_disable() local 191 for (bar = PCI_STD_RESOURCES; bar <= PCI_STD_RESOURCE_END; bar++) { vfio_pci_disable() 192 if (!vdev->barmap[bar]) vfio_pci_disable() 194 pci_iounmap(pdev, vdev->barmap[bar]); vfio_pci_disable() 195 pci_release_selected_regions(pdev, 1 << bar); vfio_pci_disable() 196 vdev->barmap[bar] = NULL; vfio_pci_disable()
|
/linux-4.1.27/arch/arm/mach-shmobile/ |
H A D | pm-rcar-gen2.c | 56 u32 bar; rcar_gen2_pm_init() local 94 bar = (boot_vector_addr >> 8) & 0xfffffc00; 96 writel_relaxed(bar, p + CA15BAR); 97 writel_relaxed(bar | 0x10, p + CA15BAR); 104 writel_relaxed(bar, p + CA7BAR); 105 writel_relaxed(bar | 0x10, p + CA7BAR);
|
/linux-4.1.27/drivers/uio/ |
H A D | uio_netx.c | 55 int bar; netx_pci_probe() local 69 bar = 0; netx_pci_probe() 73 bar = 0; netx_pci_probe() 77 bar = 2; netx_pci_probe() 82 info->mem[0].addr = pci_resource_start(dev, bar); netx_pci_probe() 85 info->mem[0].internal_addr = ioremap(pci_resource_start(dev, bar), netx_pci_probe() 86 pci_resource_len(dev, bar)); netx_pci_probe() 91 info->mem[0].size = pci_resource_len(dev, bar); netx_pci_probe()
|
/linux-4.1.27/arch/blackfin/include/asm/ |
H A D | scb.h | 2 * arch/blackfin/mach-common/scb-init.c - reprogram system cross bar priority
|
/linux-4.1.27/include/asm-generic/ |
H A D | pci_iomap.h | 17 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); 18 extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, 32 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) pci_iomap() argument 37 static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, pci_iomap_range() argument
|
H A D | bug.h | 182 * int bar; 188 * WARN_ON_SMP(!zoot->bar);
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | list.h | 36 * We need to keep a list of struct foo in the parent struct bar, i.e. what 39 * struct bar { 45 * We need one list head in bar and a list element in all list_of_foos (both are of 48 * struct bar { 62 * struct bar bar; 64 * INIT_LIST_HEAD(&bar.list_of_foos); 70 * list_add(&foo->entry, &bar.list_of_foos); 77 * Note: calling list_del(&bar.list_of_foos) will set bar.list_of_foos to an empty 84 * list_for_each_entry(iterator, &bar.list_of_foos, entry) { 93 * list_for_each_entry_safe(iterator, next, &bar.list_of_foos, entry) { 118 * INIT_LIST_HEAD(&bar->list_of_foos); 153 * list_add(&newfoo->entry, &bar->list_of_foos); 174 * list_add_tail(&newfoo->entry, &bar->list_of_foos); 230 * list_empty(&bar->list_of_foos); 269 * first = list_first_entry(&bar->list_of_foos, struct foo, list_of_foos); 284 * first = list_last_entry(&bar->list_of_foos, struct foo, list_of_foos); 302 * list_for_each_entry(iterator, &bar->list_of_foos, entry) {
|
H A D | device.h | 33 #include <subdev/bar.h>
|
/linux-4.1.27/samples/kobject/ |
H A D | kobject-example.c | 19 * "foo", "baz", and "bar". If an integer is written to these files, it can be 25 static int bar; variable 54 * looking at the attribute for the "baz" and "bar" files. 64 var = bar; b_show() 80 bar = var; b_store() 87 __ATTR(bar, 0664, b_show, b_store);
|
H A D | kset-example.c | 21 * and "bar". In those kobjects, attributes of the same name are also 35 int bar; member in struct:foo_obj 138 * looking at the attribute for the "baz" and "bar" files. 148 var = foo_obj->bar; b_show() 164 foo_obj->bar = var; b_store() 171 __ATTR(bar, 0664, b_show, b_store); 259 bar_obj = create_foo_obj("bar"); example_init()
|
/linux-4.1.27/drivers/infiniband/hw/usnic/ |
H A D | usnic_vnic.c | 29 struct vnic_dev_bar bar[PCI_NUM_RESOURCES]; member in struct:usnic_vnic 341 for (i = 0; i < ARRAY_SIZE(vnic->bar); i++) { usnic_vnic_discover_resources() 344 vnic->bar[i].len = pci_resource_len(pdev, i); usnic_vnic_discover_resources() 345 vnic->bar[i].vaddr = pci_iomap(pdev, i, vnic->bar[i].len); usnic_vnic_discover_resources() 346 if (!vnic->bar[i].vaddr) { usnic_vnic_discover_resources() 352 vnic->bar[i].bus_addr = pci_resource_start(pdev, i); usnic_vnic_discover_resources() 355 vnic->vdev = vnic_dev_register(NULL, pdev, pdev, vnic->bar, usnic_vnic_discover_resources() 356 ARRAY_SIZE(vnic->bar)); usnic_vnic_discover_resources() 383 for (i = 0; i < ARRAY_SIZE(vnic->bar); i++) { usnic_vnic_discover_resources() 386 if (!vnic->bar[i].vaddr) usnic_vnic_discover_resources() 389 iounmap(vnic->bar[i].vaddr); usnic_vnic_discover_resources() 403 return (bar_num < ARRAY_SIZE(vnic->bar)) ? &vnic->bar[bar_num] : NULL; usnic_vnic_get_bar() 420 for (i = 0; i < ARRAY_SIZE(vnic->bar); i++) { usnic_vnic_release_resources() 423 iounmap(vnic->bar[i].vaddr); usnic_vnic_release_resources()
|
H A D | usnic_ib_verbs.c | 48 struct vnic_dev_bar *bar; usnic_ib_fill_create_qp_resp() local 63 bar = usnic_vnic_get_bar(qp_grp->vf->vnic, 0); usnic_ib_fill_create_qp_resp() 64 if (!bar) { usnic_ib_fill_create_qp_resp() 71 resp.bar_bus_addr = bar->bus_addr; usnic_ib_fill_create_qp_resp() 72 resp.bar_len = bar->len; usnic_ib_fill_create_qp_resp() 674 struct vnic_dev_bar *bar; usnic_ib_mmap() local 692 bar = usnic_vnic_get_bar(vf->vnic, 0); usnic_ib_mmap() 693 if ((vma->vm_end - vma->vm_start) != bar->len) { usnic_ib_mmap() 695 bar->len, usnic_ib_mmap() 700 bus_addr = bar->bus_addr; usnic_ib_mmap() 701 len = bar->len; usnic_ib_mmap() 703 &bus_addr, bar->vaddr, bar->len); usnic_ib_mmap()
|
/linux-4.1.27/drivers/i2c/busses/ |
H A D | i2c-pxa-pci.c | 20 static struct platform_device *add_i2c_device(struct pci_dev *dev, int bar) add_i2c_device() argument 33 res[0].start = pci_resource_start(dev, bar); add_i2c_device() 34 res[0].end = pci_resource_end(dev, bar); add_i2c_device() 63 dev_err(&dev->dev, "failed to match a DT node for bar %d.\n", add_i2c_device() 64 bar); add_i2c_device()
|
H A D | i2c-nforce2.c | 326 static int nforce2_probe_smb(struct pci_dev *dev, int bar, int alt_reg, nforce2_probe_smb() argument 331 smbus->base = pci_resource_start(dev, bar); nforce2_probe_smb() 333 smbus->size = pci_resource_len(dev, bar); nforce2_probe_smb()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
H A D | nv40.c | 54 int ret, bar, vs; nv40_instmem_ctor() local 61 /* map bar */ nv40_instmem_ctor() 63 bar = 2; nv40_instmem_ctor() 65 bar = 3; nv40_instmem_ctor() 67 priv->iomem = ioremap(nv_device_resource_start(device, bar), nv40_instmem_ctor() 68 nv_device_resource_len(device, bar)); nv40_instmem_ctor()
|
/linux-4.1.27/drivers/mcb/ |
H A D | mcb-internal.h | 58 * @bar: BAR offset that must be added to module offset 93 * @bar: BAR offset that must be added to module offset 95 * @dbar: destination bar from the bus _behind_ the bridge 106 unsigned int bar:3; member in struct:chameleon_bdd
|
H A D | mcb-parse.c | 60 mdev->bar = GDD_BAR(reg2); chameleon_parse_gdd()
|
/linux-4.1.27/drivers/scsi/pm8001/ |
H A D | pm8001_chips.h | 54 static inline u32 pm8001_cr32(struct pm8001_hba_info *pm8001_ha, u32 bar, pm8001_cr32() argument 57 return readl(pm8001_ha->io_mem[bar].memvirtaddr + offset); pm8001_cr32() 60 static inline void pm8001_cw32(struct pm8001_hba_info *pm8001_ha, u32 bar, pm8001_cw32() argument 63 writel(val, pm8001_ha->io_mem[bar].memvirtaddr + addr); pm8001_cw32()
|
H A D | pm8001_init.c | 400 u32 bar; pm8001_ioremap() local 406 for (bar = 0; bar < 6; bar++) { pm8001_ioremap() 409 ** bar 0 and 1 - logical BAR0 pm8001_ioremap() 410 ** bar 2 and 3 - logical BAR1 pm8001_ioremap() 415 if ((bar == 1) || (bar == 3)) pm8001_ioremap() 417 if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) { pm8001_ioremap() 419 pci_resource_start(pdev, bar); pm8001_ioremap() 423 pci_resource_len(pdev, bar); pm8001_ioremap() 428 pm8001_printk("PCI: bar %d, logicalBar %d ", pm8001_ioremap() 429 bar, logicalBar)); pm8001_ioremap()
|
H A D | pm8001_hwi.c | 380 * @shiftValue : shifting value in memory bar. 494 /* shift bar and set the OPEN_REJECT(RETRY) interval time of PHY 0 -3.*/ mpi_set_open_retry_interval_reg() 1188 s8 bar, logical = 0; pm8001_chip_iounmap() local 1189 for (bar = 0; bar < 6; bar++) { pm8001_chip_iounmap() 1192 ** bar 0 and 1 - logical BAR0 pm8001_chip_iounmap() 1193 ** bar 2 and 3 - logical BAR1 pm8001_chip_iounmap() 1198 if ((bar == 1) || (bar == 3)) pm8001_chip_iounmap() 4970 u32 value, rem, offset = 0, bar = 0; pm8001_get_gsm_dump() local 4987 bar = 2; pm8001_get_gsm_dump() 4989 bar = 1; pm8001_get_gsm_dump() 5024 value = pm8001_cr32(pm8001_ha, bar, (work_offset + offset) & pm8001_get_gsm_dump() 5030 value = pm8001_cr32(pm8001_ha, bar, (work_offset + offset) & pm8001_get_gsm_dump()
|
/linux-4.1.27/arch/xtensa/lib/ |
H A D | pci-auto.c | 79 int bar, bar_nr; pciauto_setup_bars() local 83 for (bar = PCI_BASE_ADDRESS_0, bar_nr = 0; pciauto_setup_bars() 84 bar <= bar_limit; pciauto_setup_bars() 85 bar+=4, bar_nr++) pciauto_setup_bars() 88 pci_write_config_dword(dev, bar, 0xffffffff); pciauto_setup_bars() 89 pci_read_config_dword(dev, bar, &bar_size); pciauto_setup_bars() 117 pci_write_config_dword(dev, bar, *upper_limit); pciauto_setup_bars() 121 * upper 32 bits of the bar and force it to locate pciauto_setup_bars() 126 pci_write_config_dword(dev, (bar+=4), 0x00000000); pciauto_setup_bars()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | nv50.c | 30 #include <subdev/bar.h> 44 struct nvkm_bar *bar = nvkm_bar(priv); nv50_fifo_playlist_update_locked() local 56 bar->flush(bar); nv50_fifo_playlist_update_locked() 74 struct nvkm_bar *bar = nvkm_bar(parent); nv50_fifo_context_attach() local 97 bar->flush(bar); nv50_fifo_context_attach() 105 struct nvkm_bar *bar = nvkm_bar(parent); nv50_fifo_context_detach() local 151 bar->flush(bar); nv50_fifo_context_detach() 196 struct nvkm_bar *bar = nvkm_bar(parent); nv50_fifo_chan_ctor_dma() local 245 bar->flush(bar); nv50_fifo_chan_ctor_dma() 257 struct nvkm_bar *bar = nvkm_bar(parent); nv50_fifo_chan_ctor_ind() local 308 bar->flush(bar); nv50_fifo_chan_ctor_ind()
|
H A D | g84.c | 30 #include <subdev/bar.h> 44 struct nvkm_bar *bar = nvkm_bar(parent); g84_fifo_context_attach() local 75 bar->flush(bar); g84_fifo_context_attach() 83 struct nvkm_bar *bar = nvkm_bar(parent); g84_fifo_context_detach() local 123 bar->flush(bar); g84_fifo_context_detach() 169 struct nvkm_bar *bar = nvkm_bar(parent); g84_fifo_chan_ctor_dma() local 230 bar->flush(bar); g84_fifo_chan_ctor_dma() 242 struct nvkm_bar *bar = nvkm_bar(parent); g84_fifo_chan_ctor_ind() local 305 bar->flush(bar); g84_fifo_chan_ctor_ind()
|
H A D | gf100.c | 30 #include <subdev/bar.h> 52 struct nvkm_vma bar; member in struct:gf100_fifo_priv::__anon4268 79 struct nvkm_bar *bar = nvkm_bar(priv); gf100_fifo_runlist_update() local 95 bar->flush(bar); gf100_fifo_runlist_update() 111 struct nvkm_bar *bar = nvkm_bar(parent); gf100_fifo_context_attach() local 140 bar->flush(bar); gf100_fifo_context_attach() 148 struct nvkm_bar *bar = nvkm_bar(parent); gf100_fifo_context_detach() local 176 bar->flush(bar); gf100_fifo_context_detach() 188 struct nvkm_bar *bar = nvkm_bar(parent); gf100_fifo_chan_ctor() local 205 priv->user.bar.offset, 0x1000, gf100_fifo_chan_ctor() 246 bar->flush(bar); gf100_fifo_chan_ctor() 888 &priv->user.bar); gf100_fifo_ctor() 908 nvkm_gpuobj_unmap(&priv->user.bar); gf100_fifo_dtor() 950 nv_wr32(priv, 0x002254, 0x10000000 | priv->user.bar.offset >> 12); gf100_fifo_init()
|
H A D | gk104.c | 30 #include <subdev/bar.h> 70 struct nvkm_vma bar; member in struct:gk104_fifo_priv::__anon4272 98 struct nvkm_bar *bar = nvkm_bar(priv); gk104_fifo_runlist_update() local 115 bar->flush(bar); gk104_fifo_runlist_update() 131 struct nvkm_bar *bar = nvkm_bar(parent); gk104_fifo_context_attach() local 164 bar->flush(bar); gk104_fifo_context_attach() 172 struct nvkm_bar *bar = nvkm_bar(parent); gk104_fifo_context_detach() local 202 bar->flush(bar); gk104_fifo_context_detach() 216 struct nvkm_bar *bar = nvkm_bar(parent); gk104_fifo_chan_ctor() local 247 priv->user.bar.offset, 0x200, gk104_fifo_chan_ctor() 281 bar->flush(bar); gk104_fifo_chan_ctor() 1053 nv_wr32(priv, 0x002254, 0x10000000 | priv->user.bar.offset >> 12); gk104_fifo_init() 1066 nvkm_gpuobj_unmap(&priv->user.bar); gk104_fifo_dtor() 1114 &priv->user.bar); gk104_fifo_ctor()
|
H A D | base.c | 58 int bar, u32 addr, u32 size, u32 pushbuf, nvkm_fifo_channel_create_() 108 chan->addr = nv_device_resource_start(device, bar) + nvkm_fifo_channel_create_() 55 nvkm_fifo_channel_create_(struct nvkm_object *parent, struct nvkm_object *engine, struct nvkm_oclass *oclass, int bar, u32 addr, u32 size, u32 pushbuf, u64 engmask, int len, void **ptr) nvkm_fifo_channel_create_() argument
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
H A D | gf100.c | 26 #include <subdev/bar.h> 103 struct nvkm_bar *bar = nvkm_bar(priv); gf100_sw_vblsem_release() local 106 bar->flush(bar); gf100_sw_vblsem_release()
|
H A D | nv50.c | 30 #include <subdev/bar.h> 126 struct nvkm_bar *bar = nvkm_bar(priv); nv50_sw_vblsem_release() local 130 bar->flush(bar); nv50_sw_vblsem_release()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | device.h | 80 nv_device_resource_start(struct nvkm_device *device, unsigned int bar); 83 nv_device_resource_len(struct nvkm_device *device, unsigned int bar);
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | pci_io.h | 18 u8 bar; member in struct:zpci_iomap_entry 36 u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, LENGTH); \ 51 u64 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, LENGTH); \ 145 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, size); zpci_memcpy_fromio() 169 req = ZPCI_CREATE_REQ(entry->fh, entry->bar, size); zpci_memcpy_toio()
|
H A D | io.h | 54 * disjunctive on s390 so we need the bar parameter of pci_iomap to find
|
H A D | pci.h | 61 u32 val; /* bar start & 3 flag bits */ 62 u16 map_idx; /* index into bar mapping array */
|
H A D | pci_clp.h | 97 u32 bar[PCI_BAR_COUNT]; member in struct:clp_rsp_query_pci
|
/linux-4.1.27/drivers/virtio/ |
H A D | virtio_pci_modern.c | 74 u8 bar; map_capability() local 79 bar), map_capability() 80 &bar); map_capability() 125 minlen + offset > pci_resource_len(dev, bar)) { map_capability() 128 "out of range on bar %i length %lu\n", map_capability() 130 bar, (unsigned long)pci_resource_len(dev, bar)); map_capability() 134 p = pci_iomap_range(dev, bar, offset, length); map_capability() 137 "virtio_pci: unable to map virtio %u@%u on bar %i\n", map_capability() 138 length, offset, bar); map_capability() 514 u8 type, bar; virtio_pci_find_capability() local 519 bar), virtio_pci_find_capability() 520 &bar); virtio_pci_find_capability() 523 if (bar > 0x5) virtio_pci_find_capability() 527 if (pci_resource_len(dev, bar) && virtio_pci_find_capability() 528 pci_resource_flags(dev, bar) & ioresource_types) virtio_pci_find_capability() 548 offsetof(struct virtio_pci_cap, bar)); check_offsets() 623 /* check for a common config: if not, use legacy mode (bar 0). */ virtio_pci_modern_probe()
|
/linux-4.1.27/drivers/uwb/ |
H A D | whci.c | 96 int bar, err; whci_add_cap() local 104 bar = UWBCAPDATA_TO_BAR(capdata) << 1; whci_add_cap() 111 umc->bar = bar; whci_add_cap() 112 umc->resource.start = pci_resource_start(card->pci, bar) whci_add_cap() 117 umc->resource.flags = card->pci->resource[bar].flags; whci_add_cap() 118 umc->resource.parent = &card->pci->resource[bar]; whci_add_cap()
|
/linux-4.1.27/drivers/crypto/qat/qat_dh895xcc/ |
H A D | adf_drv.c | 96 struct adf_bar *bar = &accel_pci_dev->pci_bars[i]; adf_cleanup_accel() local 98 if (bar->virt_addr) adf_cleanup_accel() 99 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); adf_cleanup_accel() 334 struct adf_bar *bar = &accel_pci_dev->pci_bars[i]; adf_probe() local 337 bar->base_addr = pci_resource_start(pdev, bar_nr); adf_probe() 338 if (!bar->base_addr) adf_probe() 340 bar->size = pci_resource_len(pdev, bar_nr); adf_probe() 341 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); adf_probe() 342 if (!bar->virt_addr) { adf_probe()
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
H A D | plx9052.h | 59 #define PLX9052_CNTRL_PCIBAR01 (0 << 12) /* bar 0 (mem) and 1 (I/O) */ 60 #define PLX9052_CNTRL_PCIBAR0 (1 << 12) /* bar 0 (mem) only */ 61 #define PLX9052_CNTRL_PCIBAR1 (2 << 12) /* bar 1 (I/O) only */
|
H A D | addi_apci_1516.c | 31 * PCI bar 1 I/O Register map - Digital input/output 37 * PCI bar 2 I/O Register map - Watchdog (APCI-1516 and APCI-2016)
|
H A D | amplc_dio200_pci.c | 351 unsigned int bar; dio200_pci_auto_attach() local 368 bar = board->mainbar; dio200_pci_auto_attach() 369 if (pci_resource_flags(pci_dev, bar) & IORESOURCE_MEM) { dio200_pci_auto_attach() 370 dev->mmio = pci_ioremap_bar(pci_dev, bar); dio200_pci_auto_attach() 377 dev->iobase = pci_resource_start(pci_dev, bar); dio200_pci_auto_attach()
|
H A D | adv_pci1724.c | 54 * PCI bar 2 Register I/O map (dev->iobase)
|
H A D | addi_apci_2032.c | 33 * PCI bar 1 I/O Register map
|
H A D | addi_apci_3501.c | 33 * PCI bar 1 register I/O map
|
/linux-4.1.27/drivers/mfd/ |
H A D | cs5535-mfd.c | 139 int bar = cs5535_mfd_cells[i].id; cs5535_mfd_probe() local 140 struct resource *r = &cs5535_mfd_resources[bar]; cs5535_mfd_probe() 143 r->start = pci_resource_start(pdev, bar); cs5535_mfd_probe() 144 r->end = pci_resource_end(pdev, bar); cs5535_mfd_probe()
|
H A D | timberdale.h | 96 /* SDHC0 is placed in PCI bar 1 */ 100 /* SDHC1 is placed in PCI bar 2 */
|
H A D | timberdale.c | 609 /* located in bar 1 and bar 2 */
|
H A D | rtsx_pcr.c | 1162 int ret, i, bar = 0; rtsx_pci_probe() local 1208 bar = 1; rtsx_pci_probe() 1209 len = pci_resource_len(pcidev, bar); rtsx_pci_probe() 1210 base = pci_resource_start(pcidev, bar); rtsx_pci_probe()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
H A D | nv50.c | 26 #include <subdev/bar.h> 89 struct nvkm_bar *bar = nvkm_bar(parent); nv50_mpeg_context_ctor() local 101 bar->flush(bar); nv50_mpeg_context_ctor()
|
/linux-4.1.27/arch/blackfin/mach-common/ |
H A D | scb-init.c | 2 * arch/blackfin/mach-common/scb-init.c - reprogram system cross bar priority
|
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | ibmphp_pci.c | 350 u32 bar[6]; configure_device() local 390 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_device() 392 if (!bar[count]) /* This BAR is not implemented */ configure_device() 395 debug ("Device %x BAR %d wants %x\n", func->device, count, bar[count]); configure_device() 397 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { configure_device() 401 len[count] = bar[count] & 0xFFFFFFFC; configure_device() 429 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_device() 430 debug ("after writing.... the start address is %x\n", bar[count]); configure_device() 435 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { configure_device() 439 len[count] = bar[count] & 0xFFFFFFF0; configure_device() 491 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_device() 492 debug ("after writing, start address is %x\n", bar[count]); configure_device() 495 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { /* takes up another dword */ configure_device() 505 len[count] = bar[count] & 0xFFFFFFF0; configure_device() 532 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_device() 533 debug ("after writing, the address is %x\n", bar[count]); configure_device() 536 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { configure_device() 574 u32 bar[2]; configure_bridge() local 656 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); configure_bridge() 658 if (!bar[count]) { configure_bridge() 663 // tmp_bar = bar[count]; configure_bridge() 665 debug ("Bar %d wants %x\n", count, bar[count]); configure_bridge() 667 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { configure_bridge() 669 len[count] = bar[count] & 0xFFFFFFFC; configure_bridge() 700 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { configure_bridge() 702 len[count] = bar[count] & 0xFFFFFFF0; configure_bridge() 750 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { configure_bridge() 759 len[count] = bar[count] & 0xFFFFFFF0; configure_bridge() 787 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { configure_bridge() 1087 u32 bar[6], class; scan_behind_bridge() local 1151 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, address[count], &bar[count]); scan_behind_bridge() 1153 debug ("what is bar[count]? %x, count = %d\n", bar[count], count); scan_behind_bridge() 1155 if (!bar[count]) /* This BAR is not implemented */ scan_behind_bridge() 1158 //tmp_bar = bar[count]; scan_behind_bridge() 1160 debug ("count %d device %x function %x wants %x resources\n", count, device, function, bar[count]); scan_behind_bridge() 1162 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { scan_behind_bridge() 1164 len[count] = bar[count] & 0xFFFFFFFC; scan_behind_bridge() 1169 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { scan_behind_bridge() 1171 len[count] = bar[count] & 0xFFFFFFF0; scan_behind_bridge() 1174 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) scan_behind_bridge() 1180 len[count] = bar[count] & 0xFFFFFFF0; scan_behind_bridge() 1183 if (bar[count] & PCI_BASE_ADDRESS_MEM_TYPE_64) { scan_behind_bridge() 1260 debug ("is this bar no implemented?, count = %d\n", count); unconfigure_boot_device()
|
/linux-4.1.27/drivers/net/can/c_can/ |
H A D | c_can_pci.c | 38 /* PCI bar number */ 39 int bar; member in struct:c_can_pci_data 141 addr = pci_iomap(pdev, c_can_pci_data->bar, c_can_pci_probe() 142 pci_resource_len(pdev, c_can_pci_data->bar)); c_can_pci_probe() 258 .bar = 0, 266 .bar = 1,
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | pci-sysfs.c | 71 struct pci_bus_region bar; pci_mmap_resource() local 86 pcibios_resource_to_bus(pdev->bus, &bar, res); pci_mmap_resource() 87 vma->vm_pgoff += bar.start >> (PAGE_SHIFT - (sparse ? 5 : 0)); pci_mmap_resource() 137 struct pci_bus_region bar; sparse_mem_mmap_fits() local 142 pcibios_resource_to_bus(pdev->bus, &bar, &pdev->resource[num]); sparse_mem_mmap_fits() 151 return bar.end < sparse_size; sparse_mem_mmap_fits()
|
/linux-4.1.27/drivers/scsi/fnic/ |
H A D | vnic_dev.c | 64 struct vnic_dev_bar *bar) vnic_dev_discover_res() 70 if (bar->len < VNIC_MAX_RES_HDR_SIZE) { vnic_dev_discover_res() 75 rh = bar->vaddr; vnic_dev_discover_res() 94 u8 bar_num = ioread8(&r->bar); vnic_dev_discover_res() 111 if (len + bar_offset > bar->len) { vnic_dev_discover_res() 114 "size 0x%x > bar len 0x%lx\n", vnic_dev_discover_res() 117 bar->len); vnic_dev_discover_res() 130 vdev->res[type].vaddr = (char __iomem *)bar->vaddr + bar_offset; vnic_dev_discover_res() 678 void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar) vnic_dev_register() 689 if (vnic_dev_discover_res(vdev, bar)) vnic_dev_register() 63 vnic_dev_discover_res(struct vnic_dev *vdev, struct vnic_dev_bar *bar) vnic_dev_discover_res() argument 677 vnic_dev_register(struct vnic_dev *vdev, void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar) vnic_dev_register() argument
|
H A D | vnic_resource.h | 55 u8 bar; member in struct:vnic_resource
|
H A D | vnic_dev.h | 161 struct vnic_dev_bar *bar);
|
/linux-4.1.27/sound/pci/lola/ |
H A D | lola.h | 329 struct lola_bar bar[2]; member in struct:lola 391 readl((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 393 readw((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 395 readb((chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 397 writel((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 399 writew((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 401 writeb((val), (chip)->bar[idx].remap_addr + LOLA_##idx##_##name) 404 readl((chip)->bar[BAR1].remap_addr + LOLA_BAR1_DSD0_OFFSET + \ 407 writel((val), (chip)->bar[BAR1].remap_addr + LOLA_BAR1_DSD0_OFFSET + \
|
H A D | lola.c | 554 iounmap(chip->bar[0].remap_addr); lola_free() 555 iounmap(chip->bar[1].remap_addr); lola_free() 631 chip->bar[0].addr = pci_resource_start(pci, 0); lola_create() 632 chip->bar[0].remap_addr = pci_ioremap_bar(pci, 0); lola_create() 633 chip->bar[1].addr = pci_resource_start(pci, 2); lola_create() 634 chip->bar[1].remap_addr = pci_ioremap_bar(pci, 2); lola_create() 635 if (!chip->bar[0].remap_addr || !chip->bar[1].remap_addr) { lola_create() 688 card->shortname, chip->bar[0].addr, chip->irq); lola_create()
|
H A D | lola_proc.c | 180 readl(chip->bar[BAR0].remap_addr + i)); lola_proc_regs_read() 185 readl(chip->bar[BAR1].remap_addr + i)); lola_proc_regs_read() 190 readl(chip->bar[BAR1].remap_addr + i)); lola_proc_regs_read()
|
/linux-4.1.27/drivers/tty/serial/8250/ |
H A D | 8250_pci.c | 81 int bar, int offset, int regshift) setup_port() 85 if (bar >= PCI_NUM_BAR_RESOURCES) setup_port() 88 if (pci_resource_flags(dev, bar) & IORESOURCE_MEM) { setup_port() 89 if (!priv->remapped_bar[bar]) setup_port() 90 priv->remapped_bar[bar] = pci_ioremap_bar(dev, bar); setup_port() 91 if (!priv->remapped_bar[bar]) setup_port() 96 port->port.mapbase = pci_resource_start(dev, bar) + offset; setup_port() 97 port->port.membase = priv->remapped_bar[bar] + offset; setup_port() 101 port->port.iobase = pci_resource_start(dev, bar) + offset; setup_port() 116 unsigned int bar = 0, offset = board->first_offset; addidata_apci7800_setup() local 117 bar = FL_GET_BASE(board->flags); addidata_apci7800_setup() 122 bar += 1; addidata_apci7800_setup() 125 bar += 2; addidata_apci7800_setup() 128 bar += 3; addidata_apci7800_setup() 132 return setup_port(priv, port, bar, offset, board->reg_shift); addidata_apci7800_setup() 143 unsigned int bar, offset = board->first_offset; afavlab_setup() local 145 bar = FL_GET_BASE(board->flags); afavlab_setup() 147 bar += idx; afavlab_setup() 149 bar = 4; afavlab_setup() 153 return setup_port(priv, port, bar, offset, board->reg_shift); afavlab_setup() 199 unsigned int bar = FL_GET_BASE(board->flags); pci_hp_diva_setup() local 218 return setup_port(priv, port, bar, offset, board->reg_shift); pci_hp_diva_setup() 252 moan_device("no memory in bar 0", dev); pci_plx9050_init() 317 unsigned int bar = 0; pci_ni8420_exit() local 319 if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) { pci_ni8420_exit() 320 moan_device("no memory in bar", dev); pci_ni8420_exit() 324 p = pci_ioremap_bar(dev, bar); pci_ni8420_exit() 346 unsigned int bar = 0; pci_ni8430_exit() local 348 if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) { pci_ni8430_exit() 349 moan_device("no memory in bar", dev); pci_ni8430_exit() 353 p = pci_ioremap_bar(dev, bar); pci_ni8430_exit() 367 unsigned int bar, offset = board->first_offset; sbs_setup() local 369 bar = 0; sbs_setup() 380 return setup_port(priv, port, bar, offset, board->reg_shift); sbs_setup() 522 unsigned int bar = FL_GET_BASE(board->flags) + idx, offset = 0; pci_siig_setup() local 525 bar = 4; pci_siig_setup() 529 return setup_port(priv, port, bar, offset, 0); pci_siig_setup() 616 unsigned int bar = 0, offset = board->first_offset; pci_timedia_setup() local 620 bar = 0; pci_timedia_setup() 624 bar = 0; pci_timedia_setup() 627 bar = 1; pci_timedia_setup() 636 bar = idx - 2; pci_timedia_setup() 639 return setup_port(priv, port, bar, offset, board->reg_shift); pci_timedia_setup() 650 unsigned int bar, offset = board->first_offset; titan_400l_800l_setup() local 654 bar = 1; titan_400l_800l_setup() 657 bar = 2; titan_400l_800l_setup() 660 bar = 4; titan_400l_800l_setup() 664 return setup_port(priv, port, bar, offset, board->reg_shift); titan_400l_800l_setup() 676 unsigned int bar = 0; pci_ni8420_init() local 678 if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) { pci_ni8420_init() 679 moan_device("no memory in bar", dev); pci_ni8420_init() 683 p = pci_ioremap_bar(dev, bar); pci_ni8420_init() 707 unsigned int bar = 0; pci_ni8430_init() local 709 if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) { pci_ni8430_init() 710 moan_device("no memory in bar", dev); pci_ni8430_init() 714 p = pci_ioremap_bar(dev, bar); pci_ni8430_init() 723 pcibios_resource_to_bus(dev->bus, ®ion, &dev->resource[bar]); pci_ni8430_init() 753 unsigned int bar, offset = board->first_offset; pci_ni8430_setup() local 758 bar = FL_GET_BASE(board->flags); pci_ni8430_setup() 761 p = pci_ioremap_bar(dev, bar); pci_ni8430_setup() 771 return setup_port(priv, port, bar, offset, board->reg_shift); pci_ni8430_setup() 778 unsigned int bar; pci_netmos_9900_setup() local 785 bar = 3 * idx; pci_netmos_9900_setup() 787 return setup_port(priv, port, bar, 0, board->reg_shift); pci_netmos_9900_setup() 1321 unsigned int bar, offset = board->first_offset, maxnr; pci_default_setup() local 1323 bar = FL_GET_BASE(board->flags); pci_default_setup() 1325 bar += idx; pci_default_setup() 1329 maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >> pci_default_setup() 1335 return setup_port(priv, port, bar, offset, board->reg_shift); pci_default_setup() 1342 unsigned int bar, offset = board->first_offset, maxnr; pci_pericom_setup() local 1344 bar = FL_GET_BASE(board->flags); pci_pericom_setup() 1346 bar += idx; pci_pericom_setup() 1350 maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >> pci_pericom_setup() 1358 return setup_port(priv, port, bar, offset, board->reg_shift); pci_pericom_setup() 80 setup_port(struct serial_private *priv, struct uart_8250_port *port, int bar, int offset, int regshift) setup_port() argument
|
/linux-4.1.27/arch/s390/pci/ |
H A D | pci.c | 268 int bar, pci_iomap_range() 276 if ((bar & 7) != bar) pci_iomap_range() 279 idx = zdev->bars[bar].map_idx; pci_iomap_range() 283 zpci_iomap_start[idx].bar != bar); pci_iomap_range() 286 zpci_iomap_start[idx].bar = bar; pci_iomap_range() 297 void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) pci_iomap() argument 299 return pci_iomap_range(dev, bar, 0, maxlen); pci_iomap() 313 zpci_iomap_start[idx].bar = 0; pci_iounmap() 267 pci_iomap_range(struct pci_dev *pdev, int bar, unsigned long offset, unsigned long max) pci_iomap_range() argument
|
H A D | pci_clp.c | 111 zdev->bars[i].val = le32_to_cpu(response->bar[i]); clp_store_query_pci_fn()
|
/linux-4.1.27/drivers/misc/mic/host/ |
H A D | mic_device.h | 57 * @mmio: MMIO bar information. 58 * @aper: Aperture bar information. 137 * @aper_bar: Aperture bar resource number. 138 * @mmio_bar: MMIO bar resource number.
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | pci_64.h | 77 void pci_resource_to_user(const struct pci_dev *dev, int bar,
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
H A D | gf100.c | 25 #include <subdev/bar.h> 162 struct nvkm_bar *bar = nvkm_bar(priv); gf100_vm_flush() local 166 bar->flush(bar); gf100_vm_flush()
|
H A D | nv50.c | 25 #include <subdev/bar.h> 153 struct nvkm_bar *bar = nvkm_bar(priv); nv50_vm_flush() local 157 bar->flush(bar); nv50_vm_flush()
|
/linux-4.1.27/drivers/gpu/drm/sti/ |
H A D | sti_mixer.h | 51 /* depth in Cross-bar control = z order */
|
/linux-4.1.27/arch/powerpc/platforms/embedded6xx/ |
H A D | holly.c | 199 unsigned long bar; holly_restart() local 218 bar = ioread32be(ocn_bar1); holly_restart() 219 bar |= 2; holly_restart() 220 iowrite32be(bar, ocn_bar1); holly_restart()
|
/linux-4.1.27/arch/mn10300/unit-asb2303/ |
H A D | leds.c | 42 ASB2303_7SEGLEDS = 0x6d; /* triple horizontal bar */ peripheral_leds_display_exception()
|
/linux-4.1.27/arch/cris/include/uapi/arch-v10/arch/ |
H A D | user.h | 36 unsigned long bar; /* Not accessible. */ member in struct:user_regs_struct
|
/linux-4.1.27/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_dev.c | 82 struct vnic_dev_bar *bar, unsigned int num_bars) vnic_dev_discover_res() 92 if (bar->len < VNIC_MAX_RES_HDR_SIZE) { vnic_dev_discover_res() 97 rh = bar->vaddr; vnic_dev_discover_res() 98 mrh = bar->vaddr; vnic_dev_discover_res() 126 u8 bar_num = ioread8(&r->bar); vnic_dev_discover_res() 136 if (!bar[bar_num].len || !bar[bar_num].vaddr) vnic_dev_discover_res() 146 if (len + bar_offset > bar[bar_num].len) { vnic_dev_discover_res() 149 "size 0x%x > bar len 0x%lx\n", vnic_dev_discover_res() 152 bar[bar_num].len); vnic_dev_discover_res() 165 vdev->res[type].vaddr = (char __iomem *)bar[bar_num].vaddr + vnic_dev_discover_res() 167 vdev->res[type].bus_addr = bar[bar_num].bus_addr + bar_offset; vnic_dev_discover_res() 947 void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar, vnic_dev_register() 959 if (vnic_dev_discover_res(vdev, bar, num_bars)) vnic_dev_register() 81 vnic_dev_discover_res(struct vnic_dev *vdev, struct vnic_dev_bar *bar, unsigned int num_bars) vnic_dev_discover_res() argument 946 vnic_dev_register(struct vnic_dev *vdev, void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar, unsigned int num_bars) vnic_dev_register() argument
|
H A D | vnic_resource.h | 70 u8 bar; member in struct:vnic_resource
|
H A D | vnic_dev.h | 128 void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar,
|
H A D | enic_main.c | 2381 for (i = 0; i < ARRAY_SIZE(enic->bar); i++) enic_iounmap() 2382 if (enic->bar[i].vaddr) enic_iounmap() 2383 iounmap(enic->bar[i].vaddr); enic_iounmap() 2464 for (i = 0; i < ARRAY_SIZE(enic->bar); i++) { enic_probe() 2467 enic->bar[i].len = pci_resource_len(pdev, i); enic_probe() 2468 enic->bar[i].vaddr = pci_iomap(pdev, i, enic->bar[i].len); enic_probe() 2469 if (!enic->bar[i].vaddr) { enic_probe() 2474 enic->bar[i].bus_addr = pci_resource_start(pdev, i); enic_probe() 2480 enic->vdev = vnic_dev_register(NULL, enic, pdev, enic->bar, enic_probe() 2481 ARRAY_SIZE(enic->bar)); enic_probe()
|
H A D | enic.h | 142 struct vnic_dev_bar bar[ENIC_BARS_MAX]; member in struct:enic
|
/linux-4.1.27/drivers/net/can/sja1000/ |
H A D | plx_pci.c | 148 u32 bar; member in struct:plx_pci_channel_map 150 u32 size; /* 0x00 - auto, e.g. length of entire bar */ 539 addr = pci_iomap(pdev, ci->conf_map.bar, ci->conf_map.size); plx_pci_add_card() 543 "(BAR%d)\n", ci->conf_map.bar); plx_pci_add_card() 572 addr = pci_iomap(pdev, cm->bar, cm->size); plx_pci_add_card() 575 dev_err(&pdev->dev, "Failed to remap BAR%d\n", cm->bar); plx_pci_add_card()
|
/linux-4.1.27/drivers/media/pci/mantis/ |
H A D | mantis_link.h | 37 u32 bar; member in struct:mantis_slot
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/engine/ |
H A D | fifo.h | 33 int bar, u32 addr, u32 size, u32 push,
|
/linux-4.1.27/drivers/thunderbolt/ |
H A D | nhi_regs.h | 42 /* NHI registers in bar 0 */
|
/linux-4.1.27/arch/sh/include/asm/ |
H A D | suspend.h | 40 unsigned long bar; sh_mobile_setup_cpuidle() member in struct:sh_sleep_regs
|
/linux-4.1.27/arch/sh/kernel/ |
H A D | asm-offsets.c | 47 DEFINE(SH_SLEEP_REG_BAR, offsetof(struct sh_sleep_regs, bar)); main()
|
/linux-4.1.27/arch/mn10300/unit-asb2364/ |
H A D | leds.c | 71 /* display triple horizontal bar and exception code */ peripheral_leds_display_exception()
|
/linux-4.1.27/arch/cris/include/arch-v10/arch/ |
H A D | elf.h | 74 pr_reg[28] = 0; /* bar */ \
|
/linux-4.1.27/drivers/crypto/ccp/ |
H A D | ccp-pci.c | 169 unsigned int bar; ccp_pci_probe() local 202 bar = ret; ccp_pci_probe() 205 ccp->io_map = pci_iomap(pdev, bar, 0); ccp_pci_probe()
|
H A D | ccp-dev.h | 199 * starts at an offset into the mapped bar.
|
/linux-4.1.27/drivers/block/ |
H A D | nvme-core.c | 1377 if (qid && readl(&dev->bar->csts) != -1) { nvme_disable_queue() 1488 while ((readl(&dev->bar->csts) & NVME_CSTS_RDY) != bit) { nvme_wait_ready() 1513 writel(dev->ctrl_config, &dev->bar->cc); nvme_disable_ctrl() 1522 writel(dev->ctrl_config, &dev->bar->cc); nvme_enable_ctrl() 1534 writel(dev->ctrl_config, &dev->bar->cc); nvme_shutdown_ctrl() 1537 while ((readl(&dev->bar->csts) & NVME_CSTS_SHST_MASK) != nvme_shutdown_ctrl() 1612 u64 cap = readq(&dev->bar->cap); nvme_configure_admin_queue() 1654 writel(aqa, &dev->bar->aqa); nvme_configure_admin_queue() 1655 writeq(nvmeq->sq_dma_addr, &dev->bar->asq); nvme_configure_admin_queue() 1656 writeq(nvmeq->cq_dma_addr, &dev->bar->acq); nvme_configure_admin_queue() 2075 if (readl(&dev->bar->csts) & NVME_CSTS_CFS) { nvme_kthread() 2081 readl(&dev->bar->csts)); nvme_kthread() 2221 iounmap(dev->bar); nvme_setup_io_queues() 2223 dev->bar = ioremap(pci_resource_start(pdev, 0), size); nvme_setup_io_queues() 2224 if (dev->bar) nvme_setup_io_queues() 2230 dev->dbs = ((void __iomem *)dev->bar) + 4096; nvme_setup_io_queues() 2295 int shift = NVME_CAP_MPSMIN(readq(&dev->bar->cap)) + 12; nvme_dev_add() 2373 dev->bar = ioremap(pci_resource_start(pdev, 0), 8192); nvme_dev_map() 2374 if (!dev->bar) nvme_dev_map() 2377 if (readl(&dev->bar->csts) == -1) { nvme_dev_map() 2392 cap = readq(&dev->bar->cap); nvme_dev_map() 2395 dev->dbs = ((void __iomem *)dev->bar) + 4096; nvme_dev_map() 2400 iounmap(dev->bar); nvme_dev_map() 2401 dev->bar = NULL; nvme_dev_map() 2416 if (dev->bar) { nvme_dev_unmap() 2417 iounmap(dev->bar); nvme_dev_unmap() 2418 dev->bar = NULL; nvme_dev_unmap() 2451 nvme_disable_ctrl(dev, readq(&dev->bar->cap)); nvme_wait_dq() 2621 if (dev->bar) { nvme_dev_shutdown() 2623 csts = readl(&dev->bar->csts); nvme_dev_shutdown()
|
/linux-4.1.27/arch/x86/pci/ |
H A D | common.c | 132 int bar; pcibios_fixup_device_resources() local 140 for (bar = 0; bar <= PCI_STD_RESOURCE_END; bar++) { pcibios_fixup_device_resources() 141 bar_r = &dev->resource[bar]; pcibios_fixup_device_resources()
|
H A D | intel_mid_pci.c | 94 int bar = (reg - PCI_BASE_ADDRESS_0) >> 2; pci_device_update_fixed() local 103 offset + 8 + (bar * 4), 4, &size); pci_device_update_fixed()
|
/linux-4.1.27/net/mac80211/ |
H A D | agg-tx.c | 118 struct ieee80211_bar *bar; ieee80211_send_bar() local 121 skb = dev_alloc_skb(sizeof(*bar) + local->hw.extra_tx_headroom); ieee80211_send_bar() 126 bar = (struct ieee80211_bar *)skb_put(skb, sizeof(*bar)); ieee80211_send_bar() 127 memset(bar, 0, sizeof(*bar)); ieee80211_send_bar() 128 bar->frame_control = cpu_to_le16(IEEE80211_FTYPE_CTL | ieee80211_send_bar() 130 memcpy(bar->ra, ra, ETH_ALEN); ieee80211_send_bar() 131 memcpy(bar->ta, sdata->vif.addr, ETH_ALEN); ieee80211_send_bar() 135 bar->control = cpu_to_le16(bar_control); ieee80211_send_bar() 136 bar->start_seq_num = cpu_to_le16(ssn); ieee80211_send_bar()
|
H A D | status.c | 663 struct ieee80211_bar *bar; ieee80211_tx_status() local 736 bar = (struct ieee80211_bar *) skb->data; ieee80211_tx_status() 737 control = le16_to_cpu(bar->control); ieee80211_tx_status() 739 u16 ssn = le16_to_cpu(bar->start_seq_num); ieee80211_tx_status()
|
/linux-4.1.27/drivers/scsi/aic94xx/ |
H A D | aic94xx_sds.c | 572 d = asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); asd_poll_flash() 573 d ^= asd_read_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar); asd_poll_flash() 588 asd_write_reg_byte(asd_ha, asd_ha->hw_prof.flash.bar, FLASH_RESET); asd_reset_flash() 597 asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs, asd_read_flash_seg() 636 &asd_ha->hw_prof.flash.bar)) { asd_flash_getid() 1104 reg = asd_ha->hw_prof.flash.bar; asd_verify_flash_seg() 1134 reg = asd_ha->hw_prof.flash.bar; asd_write_flash_seg() 1218 reg = asd_ha->hw_prof.flash.bar; asd_chk_write_status() 1274 reg = asd_ha->hw_prof.flash.bar; asd_erase_nv_sector() 1324 reg = asd_ha->hw_prof.flash.bar; asd_check_flash_type()
|
H A D | aic94xx_hwi.h | 69 u32 bar; member in struct:flash_struct
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
H A D | base.c | 645 nv_device_resource_start(struct nvkm_device *device, unsigned int bar) nv_device_resource_start() argument 648 return pci_resource_start(device->pdev, bar); nv_device_resource_start() 652 IORESOURCE_MEM, bar); nv_device_resource_start() 660 nv_device_resource_len(struct nvkm_device *device, unsigned int bar) nv_device_resource_len() argument 663 return pci_resource_len(device->pdev, bar); nv_device_resource_len() 667 IORESOURCE_MEM, bar); nv_device_resource_len()
|
H A D | gm100.c | 42 #include <subdev/bar.h>
|
H A D | gk104.c | 42 #include <subdev/bar.h>
|
/linux-4.1.27/arch/frv/kernel/ |
H A D | head.S | 50 bar 63 bar 73 bar 196 bar 209 bar 378 bar
|
H A D | switch_to.S | 103 bar 153 bar 322 bar
|
H A D | head-mmu-fr451.S | 157 bar
|
/linux-4.1.27/drivers/net/wireless/rt2x00/ |
H A D | rt2x00queue.c | 570 struct ieee80211_bar *bar = (void *) (entry->skb->data + rt2x00queue_bar_check() local 574 if (likely(!ieee80211_is_back_req(bar->frame_control))) rt2x00queue_bar_check() 581 * it in our bar list. And as a result we will report it to mac80211 rt2x00queue_bar_check() 596 memcpy(bar_entry->ra, bar->ra, sizeof(bar->ra)); rt2x00queue_bar_check() 597 memcpy(bar_entry->ta, bar->ta, sizeof(bar->ta)); rt2x00queue_bar_check() 598 bar_entry->control = bar->control; rt2x00queue_bar_check() 599 bar_entry->start_seq_num = bar->start_seq_num; rt2x00queue_bar_check()
|
/linux-4.1.27/drivers/pci/ |
H A D | pci.c | 127 void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar) pci_ioremap_bar() argument 129 struct resource *res = &pdev->resource[bar]; pci_ioremap_bar() 135 dev_warn(&pdev->dev, "can't ioremap BAR %d: %pR\n", bar, res); pci_ioremap_bar() 2502 * pci_release_region - Release a PCI bar 2504 * @bar: BAR to release 2510 void pci_release_region(struct pci_dev *pdev, int bar) pci_release_region() argument 2514 if (pci_resource_len(pdev, bar) == 0) pci_release_region() 2516 if (pci_resource_flags(pdev, bar) & IORESOURCE_IO) pci_release_region() 2517 release_region(pci_resource_start(pdev, bar), pci_release_region() 2518 pci_resource_len(pdev, bar)); pci_release_region() 2519 else if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) pci_release_region() 2520 release_mem_region(pci_resource_start(pdev, bar), pci_release_region() 2521 pci_resource_len(pdev, bar)); pci_release_region() 2525 dr->region_mask &= ~(1 << bar); pci_release_region() 2532 * @bar: BAR to be reserved 2536 * Mark the PCI region associated with PCI device @pdev BR @bar as 2548 static int __pci_request_region(struct pci_dev *pdev, int bar, __pci_request_region() argument 2553 if (pci_resource_len(pdev, bar) == 0) __pci_request_region() 2556 if (pci_resource_flags(pdev, bar) & IORESOURCE_IO) { __pci_request_region() 2557 if (!request_region(pci_resource_start(pdev, bar), __pci_request_region() 2558 pci_resource_len(pdev, bar), res_name)) __pci_request_region() 2560 } else if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) { __pci_request_region() 2561 if (!__request_mem_region(pci_resource_start(pdev, bar), __pci_request_region() 2562 pci_resource_len(pdev, bar), res_name, __pci_request_region() 2569 dr->region_mask |= 1 << bar; __pci_request_region() 2574 dev_warn(&pdev->dev, "BAR %d: can't reserve %pR\n", bar, __pci_request_region() 2575 &pdev->resource[bar]); __pci_request_region() 2582 * @bar: BAR to be reserved 2585 * Mark the PCI region associated with PCI device @pdev BAR @bar as 2593 int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name) pci_request_region() argument 2595 return __pci_request_region(pdev, bar, res_name, 0); pci_request_region() 2602 * @bar: BAR to be reserved 2605 * Mark the PCI region associated with PCI device @pdev BR @bar as 2617 int pci_request_region_exclusive(struct pci_dev *pdev, int bar, pci_request_region_exclusive() argument 2620 return __pci_request_region(pdev, bar, res_name, IORESOURCE_EXCLUSIVE); pci_request_region_exclusive() 4207 * This helper routine makes bar mask from the type of resource.
|
/linux-4.1.27/arch/sh/kernel/cpu/shmobile/ |
H A D | pm.c | 92 sdp->addr.bar = 0xa4150040; /* BAR */ sh_mobile_register_self_refresh()
|
/linux-4.1.27/drivers/usb/early/ |
H A D | ehci-dbgp.c | 833 u32 debug_port, bar, offset; early_dbgp_init() local 858 bar = (debug_port >> 29) & 0x7; early_dbgp_init() 859 bar = (bar * 4) + 0xc; early_dbgp_init() 861 dbgp_printk("bar: %02x offset: %03x\n", bar, offset); early_dbgp_init() 862 if (bar != PCI_BASE_ADDRESS_0) { early_dbgp_init() 863 dbgp_printk("only debug ports on bar 1 handled.\n"); early_dbgp_init() 885 * FIXME I don't have the bar size so just guess PAGE_SIZE is more early_dbgp_init()
|
/linux-4.1.27/arch/blackfin/mach-bf609/ |
H A D | scb.c | 2 * arch/blackfin/mach-common/scb-init.c - reprogram system cross bar priority
|
/linux-4.1.27/arch/arm/mach-omap1/ |
H A D | board-htcherald.c | 186 KEY(4, 0, KEY_F2), /* Right bar (landscape) */ 188 KEY(6, 0, KEY_DIRECTORY), /* Right bar (protrait) */ 227 KEY(4, 6, KEY_F1), /* Left bar (landscape) */ 229 KEY(6, 6, KEY_CALENDAR), /* Left bar (portrait) */
|
/linux-4.1.27/fs/f2fs/ |
H A D | xattr.h | 96 * | .e_name = "bar" |
|
/linux-4.1.27/sound/soc/tegra/ |
H A D | tegra20_das.h | 97 * The Tegra DAS is a mux/cross-bar which can connect each DAP to a specific
|
H A D | tegra30_ahub.h | 414 * AHUB: Audio Hub; a cross-bar switch between the audio devices: DMA FIFOs, 416 * XBAR: The core cross-bar component of the AHUB.
|
/linux-4.1.27/tools/testing/selftests/efivarfs/ |
H A D | efivarfs.sh | 168 foo-bar
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | sdhci-pci.c | 1398 int ret, bar = first_bar + slotno; sdhci_pci_probe_slot() local 1400 if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) { sdhci_pci_probe_slot() 1401 dev_err(&pdev->dev, "BAR %d is not iomem. Aborting.\n", bar); sdhci_pci_probe_slot() 1405 if (pci_resource_len(pdev, bar) < 0x100) { sdhci_pci_probe_slot() 1430 slot->pci_bar = bar; sdhci_pci_probe_slot() 1458 ret = pci_request_region(pdev, bar, mmc_hostname(host->mmc)); sdhci_pci_probe_slot() 1464 host->ioaddr = pci_ioremap_bar(pdev, bar); sdhci_pci_probe_slot() 1527 pci_release_region(pdev, bar); sdhci_pci_probe_slot()
|
/linux-4.1.27/drivers/net/wireless/ath/carl9170/ |
H A D | rx.c | 575 struct ieee80211_bar *bar = data; carl9170_ba_check() local 579 if (likely(!ieee80211_is_back(bar->frame_control))) carl9170_ba_check() 582 if (len <= sizeof(*bar) + FCS_LEN) carl9170_ba_check() 585 queue = TID_TO_WME_AC(((le16_to_cpu(bar->control) & carl9170_ba_check() 599 if (bar->start_seq_num == entry_bar->start_seq_num && carl9170_ba_check() 600 TID_CHECK(bar->control, entry_bar->control) && carl9170_ba_check() 601 ether_addr_equal_64bits(bar->ra, entry_bar->ta) && carl9170_ba_check() 602 ether_addr_equal_64bits(bar->ta, entry_bar->ra)) { carl9170_ba_check()
|
H A D | tx.c | 441 struct ieee80211_bar *bar = (void *) super->frame_data; carl9170_tx_bar_status() local 452 if (unlikely(ieee80211_is_back_req(bar->frame_control)) && carl9170_tx_bar_status() 468 WARN(1, "bar not found in %d - ra:%pM ta:%pM c:%x ssn:%x\n", carl9170_tx_bar_status() 469 queue, bar->ra, bar->ta, bar->control, carl9170_tx_bar_status() 470 bar->start_seq_num); carl9170_tx_bar_status() 1319 struct ieee80211_bar *bar = (void *) super->frame_data; carl9170_bar_check() local 1321 if (unlikely(ieee80211_is_back_req(bar->frame_control)) && carl9170_bar_check()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
H A D | intel_sideband.c | 45 u32 cmd, be = 0xf, bar = 0; vlv_sideband_rw() local 50 (bar << IOSF_BAR_SHIFT); vlv_sideband_rw()
|
/linux-4.1.27/include/linux/uwb/ |
H A D | umc.h | 60 * @bar: PCI Bar (64 bit) where the resource lies 67 u8 bar; member in struct:umc_dev
|
/linux-4.1.27/include/uapi/linux/ |
H A D | virtio_pci.h | 123 __u8 bar; /* Where to find it. */ member in struct:virtio_pci_cap 125 __le32 offset; /* Offset within bar. */
|
/linux-4.1.27/arch/mips/loongson/common/cs5536/ |
H A D | cs5536_isa.c | 48 * enable the divil module bar space. 70 * disable the divil module bar space.
|
/linux-4.1.27/arch/ia64/hp/sim/ |
H A D | simscsi.c | 81 * to use /foo/bar/disk[a-z] as disk images 82 * you have to specify simscsi=/foo/bar/disk on the command line
|
/linux-4.1.27/arch/arm/kernel/ |
H A D | head-nommu.S | 181 .macro setup_region bar, acr, sr, side = MPU_DATA_SIDE 182 mcr p15, 0, \bar, c6, c1, (0 + \side) @ I/DRBAR
|
/linux-4.1.27/sound/pci/pcxhr/ |
H A D | pcxhr.h | 74 /* card access with 1 mem bar and 2 io bar's */
|
/linux-4.1.27/drivers/staging/vt6655/ |
H A D | device_main.c | 1724 u32 bar, len; vt6655_probe() local 1734 pci_read_config_dword(pcid, address[i], &bar); vt6655_probe() 1736 dev_dbg(&pcid->dev, "bar %d is %x\n", i, bar); vt6655_probe() 1738 if (!bar) { vt6655_probe() 1740 "bar %d not implemented\n", i); vt6655_probe() 1744 if (bar & PCI_BASE_ADDRESS_SPACE_IO) { vt6655_probe() 1747 len = bar & (PCI_BASE_ADDRESS_IO_MASK & 0xffff); vt6655_probe() 1754 len = bar & 0xfffffff0; vt6655_probe()
|
/linux-4.1.27/drivers/ide/ |
H A D | setup-pci.c | 281 * @bar: BAR number 288 int bar) ide_pci_check_iomem() 290 ulong flags = pci_resource_flags(dev, bar); ide_pci_check_iomem() 293 if (!flags || pci_resource_len(dev, bar) == 0) ide_pci_check_iomem() 287 ide_pci_check_iomem(struct pci_dev *dev, const struct ide_port_info *d, int bar) ide_pci_check_iomem() argument
|
/linux-4.1.27/drivers/misc/mic/card/ |
H A D | mic_device.h | 58 * @mmio: MMIO bar information.
|
/linux-4.1.27/drivers/scsi/mvsas/ |
H A D | mv_init.c | 314 int mvs_ioremap(struct mvs_info *mvi, int bar, int bar_ex) mvs_ioremap() argument 340 res_start = pci_resource_start(pdev, bar); mvs_ioremap() 341 res_len = pci_resource_len(pdev, bar); mvs_ioremap() 345 res_flag = pci_resource_flags(pdev, bar); mvs_ioremap()
|
/linux-4.1.27/drivers/gpu/drm/bochs/ |
H A D | bochs_hw.c | 58 /* mmio bar with vga and bochs registers present */ bochs_hw_init()
|
/linux-4.1.27/arch/microblaze/include/asm/ |
H A D | pci.h | 127 extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | pci.h | 85 static inline void pci_resource_to_user(const struct pci_dev *dev, int bar, pci_resource_to_user() argument
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | pci.h | 171 extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
|
/linux-4.1.27/scripts/ |
H A D | checkpatch.pl | 2610 # check for space after cast like "(int) foo" or "(struct foo) bar" 2613 # function pointer declarations like "(*foo)(int) = bar;" 2691 # foo bar; where foo is some local typedef or #define 2705 # foo bar; where foo is some local typedef or #define 2744 # (but not if it is a multiple line "if (foo) return bar; else return baz;") 2854 # int foo(something bar, other baz); 3204 # check for static char foo[] = "bar" declarations. 3223 # check for non-global char *foo[] = {"bar", ...} declarations. 3317 "\"foo${from}bar\" should be \"foo${to}bar\"\n" . $herecurr) && 3483 # int foo(int bar, ...) 3839 # Ignore email addresses <foo@bar> 3990 # ie: &(foo->bar) should be &foo->bar and *(foo->bar) should be *foo->bar 4002 # ie: (foo->bar)(); should be foo->bar(); 4003 # but not "if (foo->bar) (" to avoid some false positives 4055 # if statements using unnecessary parentheses - ie: if ((foo == bar)) 4361 $dstat !~ /^[!~-]?(?:$Lval|$Constant)$/ && # 10 // foo() // !foo // ~foo // -foo // foo->bar // foo.bar->baz 4368 $dstat !~ /^for\s*$Constant\s+(?:$Ident|-?$Constant)$/ && # for (...) bar() 5028 # Check for memcpy(foo, bar, ETH_ALEN) that could be ether_addr_copy(foo, bar)
|
/linux-4.1.27/tools/power/cpupower/bench/ |
H A D | benchmark.c | 103 /* For the progress bar */ start_benchmark()
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_nx2.h | 38 * eliminated by the pcie bar and bar select before presentation
|
H A D | qla_nx.h | 474 * eliminated by the pcie bar and bar select before presentation
|
/linux-4.1.27/drivers/gpu/drm/qxl/ |
H A D | qxl_kms.c | 144 /* 64bit surface bar present */ qxl_device_init() 153 /* 64bit surface bar not present (or mapping failed) */ qxl_device_init()
|
/linux-4.1.27/drivers/pnp/ |
H A D | manager.c | 24 unsigned int bar) pnp_find_resource() 26 struct resource *res = pnp_get_resource(dev, type, bar); pnp_find_resource() 21 pnp_find_resource(struct pnp_dev *dev, unsigned char rule, unsigned long type, unsigned int bar) pnp_find_resource() argument
|
/linux-4.1.27/arch/mips/pci/ |
H A D | msi-octeon.c | 149 /* When not using big bar, Bar 0 is based at 128MB */ arch_setup_msi_irq() 155 /* When using big bar, Bar 0 is based at 0 */ arch_setup_msi_irq()
|
H A D | pci-octeon.c | 402 ctl_status_2.s.bb_es = 1; /* Big bar in byte swap mode */ octeon_pci_initialize() 595 pr_notice("%s Octeon big bar support\n", octeon_pci_setup()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | ctxgf100.c | 26 #include <subdev/bar.h> 1267 struct nvkm_bar *bar = nvkm_bar(priv); gf100_grctx_generate() local 1303 bar->flush(bar); gf100_grctx_generate() 1328 bar->flush(bar); gf100_grctx_generate()
|
/linux-4.1.27/tools/lguest/ |
H A D | lguest.c | 147 u32 bar[6]; member in struct:pci_config 1291 * only fault if they try to write with some invalid bar/offset/length. 1296 /* We only have 1 bar (BAR0) */ valid_bar_access() 1297 if (cfg_access->cap.bar != 0) valid_bar_access() 1373 if (&d->config_words[reg] == &d->config.bar[0]) { pci_data_iowrite() 1376 iowrite(portoff, val, mask, &d->config.bar[0]); pci_data_iowrite() 1378 d->config.bar[0] &= ~(1 << i); pci_data_iowrite() 1380 } else if ((&d->config_words[reg] > &d->config.bar[0] pci_data_iowrite() 1381 && &d->config_words[reg] <= &d->config.bar[6]) pci_data_iowrite() 1398 == (void *)&d->config.cfg_access.cap.bar pci_data_iowrite() 1420 * BAR selected by cap.bar using the first cap.length bytes pci_data_iowrite() 1424 /* Must be bar 0 */ pci_data_iowrite() 1435 verbose("Window writing %#x/%#x to bar %u, offset %u len %u\n", pci_data_iowrite() 1437 d->config.cfg_access.cap.bar, pci_data_iowrite() 1476 * offset cap.offset at BAR selected by cap.bar and store the pci_data_ioread() 1479 /* Must be bar 0 */ pci_data_ioread() 1482 "Invalid cfg_access to bar%u, offset %u len %u", pci_data_ioread() 1483 d->config.cfg_access.cap.bar, pci_data_ioread() 1496 verbose("Window read %#x/%#x from bar %u, offset %u len %u\n", pci_data_ioread() 1498 d->config.cfg_access.cap.bar, pci_data_ioread() 2421 dev->config.bar[0] = dev->mmio_addr; no_device_config() 2423 assert(~(dev->config.bar[0] & 0xF)); no_device_config() 2467 cap->bar = 0; init_cap()
|
/linux-4.1.27/drivers/net/ethernet/realtek/ |
H A D | 8139too.c | 762 unsigned int i, bar; rtl8139_init_board() local 801 /* PIO bar register comes first. */ rtl8139_init_board() 802 bar = !use_io; rtl8139_init_board() 804 io_len = pci_resource_len(pdev, bar); rtl8139_init_board() 806 dev_dbg(d, "%s region size = 0x%02lX\n", res[bar].type, io_len); rtl8139_init_board() 808 if (!(pci_resource_flags(pdev, bar) & res[bar].mask)) { rtl8139_init_board() 809 dev_err(d, "region #%d not a %s resource, aborting\n", bar, rtl8139_init_board() 810 res[bar].type); rtl8139_init_board() 816 res[bar].type); rtl8139_init_board() 821 ioaddr = pci_iomap(pdev, bar, 0); rtl8139_init_board() 823 dev_err(d, "cannot map %s\n", res[bar].type); rtl8139_init_board()
|
/linux-4.1.27/drivers/dma/ |
H A D | mxs-dma.c | 680 u32 bar; mxs_dma_tx_status() local 685 bar = readl(mxs_dma->base + mxs_dma_tx_status() 687 residue -= bar; mxs_dma_tx_status()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bo.c | 1390 struct nvkm_bar *bar = nvxx_bar(&drm->device); nouveau_ttm_io_mem_reserve() local 1392 ret = bar->umap(bar, node, NV_MEM_ACCESS_RW, nouveau_ttm_io_mem_reserve() 1410 struct nvkm_bar *bar = nvxx_bar(&drm->device); nouveau_ttm_io_mem_free() local 1416 bar->unmap(bar, &node->bar_vma); nouveau_ttm_io_mem_free()
|
/linux-4.1.27/drivers/net/ethernet/ |
H A D | ec_bhf.c | 527 dev_err(&dev->dev, "Failed to map pci card memory bar 0"); ec_bhf_probe() 534 dev_err(&dev->dev, "Failed to map pci card memory bar 2"); ec_bhf_probe()
|
/linux-4.1.27/drivers/ata/ |
H A D | sata_svw.c | 91 chip_svw42 = 2, /* bar 3 */ 92 chip_svw43 = 3, /* bar 5 */
|
/linux-4.1.27/arch/cris/arch-v32/mach-a3/ |
H A D | arbiter.c | 29 * | bar arbiter| 325 /* Propagate allocation from foo to bar */ crisv32_arbiter_allocate_bandwidth()
|
/linux-4.1.27/scripts/kconfig/ |
H A D | streamline_config.pl | 394 # a loaded module. This is a direct obj-${CONFIG_FOO} += bar.o 395 # where we know we need bar.o so we add FOO to the list.
|
/linux-4.1.27/drivers/crypto/ |
H A D | hifn_795x.c | 430 void __iomem *bar[3]; member in struct:hifn_device 669 ret = readl(dev->bar[0] + reg); hifn_read_0() 678 ret = readl(dev->bar[1] + reg); hifn_read_1() 685 writel((__force u32)cpu_to_le32(val), dev->bar[0] + reg); hifn_write_0() 690 writel((__force u32)cpu_to_le32(val), dev->bar[1] + reg); hifn_write_1() 2613 dev->bar[i] = ioremap_nocache(addr, size); hifn_probe() 2614 if (!dev->bar[i]) { hifn_probe() 2686 if (dev->bar[i]) hifn_probe() 2687 iounmap(dev->bar[i]); hifn_probe() 2721 if (dev->bar[i]) hifn_remove() 2722 iounmap(dev->bar[i]); hifn_remove()
|
/linux-4.1.27/drivers/net/arcnet/ |
H A D | com20020-pci.c | 105 ioaddr = pci_resource_start(pdev, cm->bar) + cm->offset; com20020pci_probe()
|
/linux-4.1.27/drivers/media/i2c/ |
H A D | ak881x.c | 186 /* For colour-bar testing set bit 6 of AK881X_VIDEO_PROCESS1 */ ak881x_s_stream()
|
H A D | bt856.c | 166 case 2: /* Color bar */ bt856_s_routing()
|
H A D | adv7170.c | 232 input = 2: color bar */ adv7170_s_routing()
|
H A D | adv7175.c | 250 input = 2: color bar */ adv7175_s_routing()
|
/linux-4.1.27/drivers/input/mouse/ |
H A D | synaptics.h | 76 * ala multimedia control bar
|
/linux-4.1.27/arch/tile/include/asm/ |
H A D | pci.h | 90 * The last huge page is used for the rootcomplex "bar", for C2C purpose. pci_iounmap()
|
/linux-4.1.27/drivers/char/agp/ |
H A D | intel-gtt.c | 610 int ret, bar; intel_gtt_init() local 662 bar = I810_GMADR_BAR; intel_gtt_init() 664 bar = I915_GMADR_BAR; intel_gtt_init() 666 intel_private.gma_bus_addr = pci_bus_address(intel_private.pcidev, bar); intel_gtt_init()
|
/linux-4.1.27/arch/mips/include/asm/mips-boards/ |
H A D | msc01_pci.h | 170 /* The defines below are ONLY valid for a MEM bar! */
|
/linux-4.1.27/fs/ |
H A D | proc_namespace.c | 153 /* Tagged fields ("foo:X" or "bar") */ show_mountinfo()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | pci_64.c | 36 * This is the lowest I/O base address (so bar values are always positive),
|
/linux-4.1.27/arch/arm/plat-iop/ |
H A D | pci.c | 235 /* Align the inbound bar with the base of memory */ iop3xx_atu_setup()
|
/linux-4.1.27/net/dns_resolver/ |
H A D | dns_key.c | 58 * "ip1,ip2,...#foo=bar"
|
/linux-4.1.27/drivers/scsi/lpfc/ |
H A D | lpfc_debugfs.c | 1692 * lpfc_idiag_baracc_read - idiag debugfs pci bar access read 1699 * This routine reads data from the @phba pci bar memory mapped space 1765 /* Read single PCI bar space register */ lpfc_idiag_baracc_read() 1778 /* Browse all PCI bar space registers */ lpfc_idiag_baracc_read() 1782 /* Read PCI bar memory mapped space */ lpfc_idiag_baracc_read() 1817 /* Set up the offset for next portion of pci bar read */ lpfc_idiag_baracc_read() 1839 * lpfc_idiag_baracc_write - Syntax check and set up idiag bar access commands 1846 * then perform the syntax check for PCI bar memory mapped space read or 1847 * write command accordingly. In the case of PCI bar memory mapped space 1849 * the debugfs read operation. In the case of PCI bar memorpy mapped space 1850 * write operation, it executes the write operation into the PCI bar memory 1945 /* Sanity check on PCI bar write command line arguments */ lpfc_idiag_baracc_write() 1948 /* Write command to PCI bar space, read-modify-write */ lpfc_idiag_baracc_write()
|
/linux-4.1.27/drivers/misc/ |
H A D | spear13xx_pcie_gadget.c | 465 /* min bar size is 256 */ pcie_gadget_store_bar0_size() 468 /* max bar size is 1MB*/ pcie_gadget_store_bar0_size()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
H A D | i40e.h | 114 #define XSTRINGIFY(bar) STRINGIFY(bar)
|
/linux-4.1.27/drivers/scsi/qla4xxx/ |
H A D | ql4_nx.h | 499 * eliminated by the pcie bar and bar select before presentation
|
/linux-4.1.27/drivers/media/platform/vivid/ |
H A D | vivid-tpg.c | 623 /* precalculate color bar values to speed up rendering */ precalculate_color() 1116 /* Standard ITU-R 75% color bar sequence */ tpg_get_color() 1121 /* Standard ITU-R 100% color bar sequence */ tpg_get_color() 1126 /* Color bar sequence suitable to test CSC */ tpg_get_color()
|
/linux-4.1.27/drivers/scsi/aic7xxx/ |
H A D | aic79xx_osm_pci.c | 256 * This is really the 3rd bar and should be at index 2, ahd_linux_pci_reserve_io_regions()
|
/linux-4.1.27/drivers/crypto/qat/qat_common/ |
H A D | qat_hal.c | 682 struct adf_bar *bar = qat_hal_init() local 689 handle->hal_cap_g_ctl_csr_addr_v = bar->virt_addr + qat_hal_init() 691 handle->hal_cap_ae_xfer_csr_addr_v = bar->virt_addr + qat_hal_init() 693 handle->hal_ep_csr_addr_v = bar->virt_addr + ICP_DH895XCC_EP_OFFSET; qat_hal_init()
|
/linux-4.1.27/drivers/watchdog/ |
H A D | nv_tco.c | 325 /* Something is wrong here, bar isn't setup */
|
/linux-4.1.27/include/pcmcia/ |
H A D | cistpl.h | 547 cistpl_bar_t bar; member in union:cisparse_t
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
H A D | reconfig.c | 30 * described by path. E.g., for path = "/foo/bar", returns
|