Home
last modified time | relevance | path

Searched refs:bar (Results 1 – 25 of 44) sorted by relevance

12

/linux-2.4.37.9/drivers/hotplug/
Dacpiphp_pci.c48 u32 bar, len; in init_config_space() local
70 pci_bus_read_config_dword(bus, devfn, address[count], &bar); in init_config_space()
72 if (!bar) /* This BAR is not implemented */ in init_config_space()
76 PCI_FUNC(devfn), count, bar); in init_config_space()
78 if (bar & PCI_BASE_ADDRESS_SPACE_IO) { in init_config_space()
81 len = bar & (PCI_BASE_ADDRESS_IO_MASK & 0xFFFF); in init_config_space()
101 if (bar & PCI_BASE_ADDRESS_MEM_PREFETCH) { in init_config_space()
104 len = bar & 0xFFFFFFF0; in init_config_space()
121 if (bar & PCI_BASE_ADDRESS_MEM_TYPE_64) { /* takes up another dword */ in init_config_space()
133 len = bar & 0xFFFFFFF0; in init_config_space()
[all …]
Dibmphp_pci.c347 u32 bar[6]; in configure_device() local
388 …nfig_dword_nodev (ibmphp_pci_root_ops, func->busno, device, function, address[count], &bar[count]); in configure_device()
390 if (!bar[count]) /* This BAR is not implemented */ in configure_device()
393 debug ("Device %x BAR %d wants %x\n", func->device, count, bar[count]); in configure_device()
395 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_device()
399 len[count] = bar[count] & 0xFFFFFFFC; in configure_device()
428 …nfig_dword_nodev (ibmphp_pci_root_ops, func->busno, device, function, address[count], &bar[count]); in configure_device()
429 debug ("after writing.... the start address is %x\n", bar[count]); in configure_device()
434 if (bar[count] & PCI_BASE_ADDRESS_MEM_PREFETCH) { in configure_device()
438 len[count] = bar[count] & 0xFFFFFFF0; in configure_device()
[all …]
/linux-2.4.37.9/arch/ppc/kernel/
Dpci_auto.c49 int bar, addr_mask; in pciauto_setup_bars() local
56 for (bar = PCI_BASE_ADDRESS_0; bar <= bar_limit; bar+=4) { in pciauto_setup_bars()
61 bar, in pciauto_setup_bars()
66 bar, in pciauto_setup_bars()
77 DBG("PCI Autoconfig: BAR 0x%x, I/O, ", bar); in pciauto_setup_bars()
85 DBG("PCI Autoconfig: BAR 0x%x, Mem ", bar); in pciauto_setup_bars()
98 bar, in pciauto_setup_bars()
109 bar += 4; in pciauto_setup_bars()
113 bar, in pciauto_setup_bars()
/linux-2.4.37.9/arch/ppc/platforms/
Dep405.c77 unsigned int bar_response, bar; in bios_fixup() local
127 for (bar = PCI_BASE_ADDRESS_1; bar <= PCI_BASE_ADDRESS_2; bar += 4) { in bios_fixup()
129 PCI_FUNC(hose->first_busno), bar, in bios_fixup()
132 PCI_FUNC(hose->first_busno), bar, in bios_fixup()
136 PCI_FUNC(hose->first_busno), bar, bar_response); in bios_fixup()
Dwalnut.c133 unsigned int bar_response, bar; in bios_fixup() local
200 for (bar = PCI_BASE_ADDRESS_1; bar <= PCI_BASE_ADDRESS_2; bar += 4) { in bios_fixup()
202 PCI_FUNC(hose->first_busno), bar, in bios_fixup()
205 PCI_FUNC(hose->first_busno), bar, in bios_fixup()
209 PCI_FUNC(hose->first_busno), bar, bar_response); in bios_fixup()
/linux-2.4.37.9/arch/mips/pci/
Dpci_auto.c109 u32 bar, addr_mask, bar_nr = 0; in pciauto_setup_bars() local
114 for (bar = PCI_BASE_ADDRESS_0; bar <= bar_limit; bar+=4) { in pciauto_setup_bars()
119 bar, in pciauto_setup_bars()
124 bar, in pciauto_setup_bars()
193 bar, bar_value); in pciauto_setup_bars()
203 bar += 4; in pciauto_setup_bars()
207 bar, in pciauto_setup_bars()
/linux-2.4.37.9/include/linux/
Dpci.h780 #define pci_resource_start(dev,bar) ((dev)->resource[(bar)].start) argument
781 #define pci_resource_end(dev,bar) ((dev)->resource[(bar)].end) argument
782 #define pci_resource_flags(dev,bar) ((dev)->resource[(bar)].flags) argument
783 #define pci_resource_len(dev,bar) \ argument
784 ((pci_resource_start((dev),(bar)) == 0 && \
785 pci_resource_end((dev),(bar)) == \
786 pci_resource_start((dev),(bar))) ? 0 : \
788 (pci_resource_end((dev),(bar)) - \
789 pci_resource_start((dev),(bar)) + 1))
Dlibata-compat.h130 pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) in pci_iomap() argument
132 unsigned long start = pci_resource_start(dev, bar); in pci_iomap()
133 unsigned long len = pci_resource_len(dev, bar); in pci_iomap()
134 unsigned long flags = pci_resource_flags(dev, bar); in pci_iomap()
/linux-2.4.37.9/fs/hfs/
DHFS.txt206 metadata file. The directory ./bar is represented by:
214 ./bar.
218 subdirectories in ./bar.
221 The metadata file for the directory ./bar.
247 file''. The directory ./bar is represented by:
255 The header file for the directory ./bar, containing the
295 metadata file. The directory ./bar is represented by:
303 ./bar and the files it contains, but not for the
307 The header file for the directory ./bar, containing the
553 instance to copy the file foo to dir/bar you should do the following:
[all …]
/linux-2.4.37.9/drivers/pci/
Dpci.c492 void pci_release_region(struct pci_dev *pdev, int bar) in pci_release_region() argument
494 if (pci_resource_len(pdev, bar) == 0) in pci_release_region()
496 if (pci_resource_flags(pdev, bar) & IORESOURCE_IO) in pci_release_region()
497 release_region(pci_resource_start(pdev, bar), in pci_release_region()
498 pci_resource_len(pdev, bar)); in pci_release_region()
499 else if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) in pci_release_region()
500 release_mem_region(pci_resource_start(pdev, bar), in pci_release_region()
501 pci_resource_len(pdev, bar)); in pci_release_region()
518 int pci_request_region(struct pci_dev *pdev, int bar, char *res_name) in pci_request_region() argument
520 if (pci_resource_len(pdev, bar) == 0) in pci_request_region()
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dmfgpt-compat.h227 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen) in pci_iomap() argument
229 unsigned long start = pci_resource_start(dev, bar); in pci_iomap()
230 unsigned long len = pci_resource_len(dev, bar); in pci_iomap()
231 unsigned long flags = pci_resource_flags(dev, bar); in pci_iomap()
/linux-2.4.37.9/arch/arm/kernel/
Dplx90x0.c131 unsigned long bar = (unsigned long)virt_to_bus((void *)PAGE_OFFSET); in plx90x0_init() local
169 __raw_writel(0x8 | bar, base + 0x18); in plx90x0_init()
/linux-2.4.37.9/drivers/scsi/
Dsata_nv.c376 u32 bar; in nv_init_one() local
381 for (bar=0; bar<6; bar++) in nv_init_one()
382 if (pci_resource_start(pdev, bar) == 0) in nv_init_one()
/linux-2.4.37.9/include/asm-ia64/sn/pci/
Dpci_defs.h342 uint32_t bar[6]; member
370 uint32_t bar[2]; member
446 uint32_t bar[6]; member
474 uint32_t bar[2]; member
/linux-2.4.37.9/drivers/ide/raid/
Dsilraid.c381 unsigned long bar; in fill_cutoff() local
384 bar = 0; in fill_cutoff()
388 if ((raid[device].disk[j].sectors < smallest) && (raid[device].disk[j].sectors>bar)) in fill_cutoff()
396 bar = smallest; in fill_cutoff()
Dpdcraid.c485 unsigned long bar; in fill_cutoff() local
488 bar = 0; in fill_cutoff()
492 if ((raid[device].disk[j].sectors < smallest) && (raid[device].disk[j].sectors>bar)) in fill_cutoff()
500 bar = smallest; in fill_cutoff()
Dhptraid.c743 unsigned long bar; in fill_cutoff() local
746 bar = 0; in fill_cutoff()
750 if ((device->disk[j].sectors < smallest) && (device->disk[j].sectors>bar)) in fill_cutoff()
758 bar = smallest; in fill_cutoff()
/linux-2.4.37.9/Documentation/filesystems/
Dbefs.txt48 Assuming that your kernel source is in /foo/bar/linux and the patchfile
51 cd /foo/bar/linux
66 cd /foo/bar/linux
/linux-2.4.37.9/include/asm-cris/
Duser.h63 unsigned long bar; /* Not accessible. */ member
/linux-2.4.37.9/drivers/ide/
Dsetup-pci.c381 static int ide_pci_check_iomem(struct pci_dev *dev, ide_pci_device_t *d, int bar) in ide_pci_check_iomem() argument
383 ulong flags = pci_resource_flags(dev, bar); in ide_pci_check_iomem()
386 if (!flags || pci_resource_len(dev, bar) == 0) in ide_pci_check_iomem()
/linux-2.4.37.9/arch/ia64/sn/io/sn2/pcibr/
Dpcibr_slot.c1793 int bar; in pcibr_device_info_free() local
1813 for (bar = 0; bar < PCI_CFG_BASE_ADDRS; bar++) { in pcibr_device_info_free()
1814 if (pcibr_info->f_window[bar].w_space == PCIIO_SPACE_NONE) in pcibr_device_info_free()
1818 pciibr_bus_addr_free(pcibr_soft, &pcibr_info->f_window[bar]); in pcibr_device_info_free()
1821 devio_index = pcibr_info->f_window[bar].w_devio_index; in pcibr_device_info_free()
Dpcibr_dvr.c1965 unsigned bar; /* which BASE reg on device is decoding */ in pcibr_addr_pci_to_xio() local
2051 bar = space - PCIIO_SPACE_WIN0; in pcibr_addr_pci_to_xio()
2052 if (bar < 6) { in pcibr_addr_pci_to_xio()
2053 wspace = pciio_info->c_window[bar].w_space; in pcibr_addr_pci_to_xio()
2058 wbase = pciio_info->c_window[bar].w_base; in pcibr_addr_pci_to_xio()
2059 wsize = pciio_info->c_window[bar].w_size; in pcibr_addr_pci_to_xio()
2076 bar = -1; in pcibr_addr_pci_to_xio()
2178 if (bar != -1) in pcibr_addr_pci_to_xio()
2179 pcibr_info->f_window[bar].w_devio_index = win; in pcibr_addr_pci_to_xio()
2224 if (bar != -1) in pcibr_addr_pci_to_xio()
[all …]
/linux-2.4.37.9/drivers/char/drm/
Di830_dma.c909 int bar = dev_priv->dma_used / 10240; in i830_cp_performance_boxes() local
910 if (bar > 100) bar = 100; in i830_cp_performance_boxes()
911 if (bar < 1) bar = 1; in i830_cp_performance_boxes()
912 i830_fill_box( dev, 4, 16, bar, 4, 196, 128, 128 ); in i830_cp_performance_boxes()
/linux-2.4.37.9/drivers/sound/
Dad1889.c976 unsigned long bar; in ad1889_probe() local
990 bar = pci_resource_start(pcidev, 0); in ad1889_probe()
1002 request_mem_region(bar, AD_DSIOMEMSIZE, DEVNAME); in ad1889_probe()
1003 dev->regbase = (unsigned long)ioremap_nocache(bar, AD_DSIOMEMSIZE); in ad1889_probe()
/linux-2.4.37.9/drivers/nubus/
Dnubus.c817 unsigned short foo, bar; in nubus_add_board() local
819 bar = nubus_get_rom(&rp, 2, bytelanes); in nubus_add_board()
820 printk("%04x %04x ", foo, bar); in nubus_add_board()

12