Searched refs:dev_fn (Results 1 - 25 of 30) sorted by relevance

12

/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc/kernel/
H A Dqspan_pci.c60 * The QSPAN only supports 4 bits of "slot" in the dev_fn instead of 5.
61 * It always forces the MS bit to zero. Therefore, dev_fn values
100 int qspan_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn, argument
109 if ((bus > 7) || (dev_fn > 127)) {
122 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset);
124 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offset);
139 int qspan_pcibios_read_config_word(unsigned char bus, unsigned char dev_fn, argument
148 if ((bus > 7) || (dev_fn > 127)) {
161 *QS_CONFIG_ADDR = mk_config_addr(bus, dev_fn, offset);
163 *QS_CONFIG_ADDR = mk_config_type1(bus, dev_fn, offse
178 qspan_pcibios_read_config_dword(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned int *val) argument
212 qspan_pcibios_write_config_byte(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned char val) argument
252 qspan_pcibios_write_config_word(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned short val) argument
292 qspan_pcibios_write_config_dword(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned int val) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/ite-boards/generic/
H A Dlpc.c103 unsigned char bus, dev_fn; local
107 dev_fn = 1<<3 | 4;
113 (dev_fn << IT_FUNCNUM_SHF) |
119 (dev_fn << IT_FUNCNUM_SHF) |
126 (dev_fn << IT_FUNCNUM_SHF) |
132 (dev_fn << IT_FUNCNUM_SHF) |
141 (dev_fn << IT_FUNCNUM_SHF) |
H A Dit8172_pci.c97 unsigned char dev_fn = dev->devfn; local
99 DBG("it config: type %d dev %x bus %d dev_fn %x data %x\n",
100 access_type, dev, bus, dev_fn, *data);
104 (dev_fn << IT_FUNCNUM_SHF) | (where & ~0x3));
136 DBG("cfg read byte: bus %d dev_fn %x where %x: val %x\n",
155 DBG("cfg read word: bus %d dev_fn %x where %x: val %x\n",
173 DBG("cfg read dword: bus %d dev_fn %x where %x: val %x\n",
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-ppc/
H A Dpci-bridge.h89 int early_read_config_byte(struct pci_controller *hose, int bus, int dev_fn, int where, u8 *val);
90 int early_read_config_word(struct pci_controller *hose, int bus, int dev_fn, int where, u16 *val);
91 int early_read_config_dword(struct pci_controller *hose, int bus, int dev_fn, int where, u32 *val);
92 int early_write_config_byte(struct pci_controller *hose, int bus, int dev_fn, int where, u8 val);
93 int early_write_config_word(struct pci_controller *hose, int bus, int dev_fn, int where, u16 val);
94 int early_write_config_dword(struct pci_controller *hose, int bus, int dev_fn, int where, u32 val);
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-ppc/
H A Dpci-bridge.h89 int early_read_config_byte(struct pci_controller *hose, int bus, int dev_fn, int where, u8 *val);
90 int early_read_config_word(struct pci_controller *hose, int bus, int dev_fn, int where, u16 *val);
91 int early_read_config_dword(struct pci_controller *hose, int bus, int dev_fn, int where, u32 *val);
92 int early_write_config_byte(struct pci_controller *hose, int bus, int dev_fn, int where, u8 val);
93 int early_write_config_word(struct pci_controller *hose, int bus, int dev_fn, int where, u16 val);
94 int early_write_config_dword(struct pci_controller *hose, int bus, int dev_fn, int where, u32 val);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/galileo-boards/ev64120/compressed/
H A Dpci_etherboot.h118 int pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn,
120 int pcibios_read_config_word(unsigned char bus, unsigned char dev_fn,
122 int pcibios_read_config_dword(unsigned char bus, unsigned char dev_fn,
124 int pcibios_write_config_byte(unsigned char bus, unsigned char dev_fn,
126 int pcibios_write_config_word(unsigned char bus, unsigned char dev_fn,
128 int pcibios_write_config_dword(unsigned char bus, unsigned char dev_fn,
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/mips-boards/generic/
H A Dpci.c58 unsigned char dev_fn = dev->devfn; local
69 if ((bus == 0) && (dev_fn >= PCI_DEVFN(31,0)))
81 (dev_fn << GT_PCI0_CFGADDR_FUNCTNUM_SHF) |
86 if (bus == 0 && dev_fn == 0) {
96 if (bus == 0 && dev_fn == 0) {
130 if ((bus == 0) && (PCI_SLOT(dev_fn) == 0)) {
144 pci_addr = (u64)1 << (PCI_SLOT(dev_fn) + 10);
150 pci_addr |= PCI_SLOT(dev_fn) << PCI_CFG_TYPE1_DEV_SHF;
154 pci_addr |= PCI_FUNC(dev_fn) << PCI_CFG_TYPE0_FUNC_SHF;
202 if ((bus == 0) && (PCI_SLOT(dev_fn)
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc/boot/simple/
H A Dmisc-spruce.c89 void cpc700_pcibios_read_config_byte(unsigned char bus, unsigned char dev_fn, argument
93 (((bus & 0xff)<<16) | (dev_fn<<8) | (offset&0xfc) | 0x80000000));
98 void cpc700_pcibios_write_config_byte(unsigned char bus, unsigned char dev_fn, argument
102 (((bus & 0xff)<<16) | (dev_fn<<8) | (offset&0xfc) | 0x80000000));
107 void cpc700_pcibios_read_config_word(unsigned char bus, unsigned char dev_fn, argument
111 (((bus & 0xff)<<16) | (dev_fn<<8) | (offset&0xfc) | 0x80000000));
116 void cpc700_pcibios_write_config_word(unsigned char bus, unsigned char dev_fn, argument
120 (((bus & 0xff)<<16) | (dev_fn<<8) | (offset&0xfc) | 0x80000000));
125 void cpc700_pcibios_read_config_dword(unsigned char bus, unsigned char dev_fn, argument
129 (((bus & 0xff)<<16) | (dev_fn<<
134 cpc700_pcibios_write_config_dword(unsigned char bus, unsigned char dev_fn, unsigned char offset, unsigned int val) argument
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/lasat/
H A Dpci.c42 unsigned char dev_fn = dev->devfn; local
45 if ((bus == 0) && (dev_fn >= PCI_DEVFN(31,0)))
55 (dev_fn << GT_PCI0_CFGADDR_FUNCTNUM_SHF) |
93 unsigned char dev_fn = dev->devfn; local
96 if ((bus == 0) && (PCI_SLOT(dev_fn) > 8))
102 if ((bus == 0) && (dev_fn == PCI_DEVFN(0,0))) {
123 adr = KSEG1ADDR(PCI_WINDOW1) + ((1 << (PCI_SLOT(dev_fn) + 15)) | (PCI_FUNC(dev_fn) << 8) | (reg & ~3));
125 adr = KSEG1ADDR(PCI_WINDOW1) | (bus << 16) | (dev_fn << 8) | (reg & ~3);
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/
H A DcpqfcTSioctl.h10 __u8 dev_fn; member in struct:__anon2269
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/pci/
H A Dcompat.c52 int pcibios_##rw##_config_##size (unsigned char bus, unsigned char dev_fn, \
55 struct pci_dev *dev = pci_find_slot(bus, dev_fn); \
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/galileo-boards/ev96100/
H A Dpci_ops.c89 unsigned char dev_fn = dev->devfn; local
93 if ((bus == 0) && (dev_fn >= PCI_DEVFN(31,0))) {
104 (dev_fn << GT_PCI0_CFGADDR_FUNCTNUM_SHF) |
111 if (dev_fn != 0) {
118 if (dev_fn != 0) {
130 //printk("config access error: %x:%x\n", dev_fn,where);
161 DBG("cfg read byte: bus %d dev_fn %x where %x: val %x\n",
182 DBG("cfg read word: bus %d dev_fn %x where %x: val %x\n",
202 DBG("cfg read dword: bus %d dev_fn %x where %x: val %x\n",
219 DBG("cfg write byte: bus %d dev_fn
[all...]
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/vr41xx/common/
H A Dpciu.c59 unsigned int dev_fn = dev->devfn; local
65 if (PCI_SLOT(dev_fn) < 11 || PCI_SLOT(dev_fn) > 31 || where > 255)
68 writel((1UL << PCI_SLOT(dev_fn))|
69 (PCI_FUNC(dev_fn) << 8) |
77 if (bus > 255 || PCI_SLOT(dev_fn) > 31 || where > 255)
81 (dev_fn << 8) |
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/au1000/db1x00/
H A Dpci_ops.c87 unsigned int dev_fn = dev->devfn; local
109 device = (dev_fn >> 3) & 0x1f;
110 function = dev_fn & 0x7;
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/au1000/pb1000/
H A Dpci_ops.c84 unsigned char dev_fn = dev->devfn; local
87 if (((dev_fn >> 3) != 0) || (bus != 0)) {
101 DBG("config_access: %d bus %d dev_fn %x at %x *data %x, conf %x\n",
102 access_type, bus, dev_fn, where, *data, config);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/au1000/pb1500/
H A Dpci_ops.c81 unsigned int dev_fn = dev->devfn; local
82 unsigned int device = PCI_SLOT(dev_fn);
83 unsigned int function = PCI_FUNC(dev_fn);
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/block/
H A Dida_ioctl.h41 unsigned char dev_fn; member in struct:_ida_pci_info_struct
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/
H A Dpci.h514 int pcibios_read_config_byte (unsigned char bus, unsigned char dev_fn,
516 int pcibios_read_config_word (unsigned char bus, unsigned char dev_fn,
518 int pcibios_read_config_dword (unsigned char bus, unsigned char dev_fn,
520 int pcibios_write_config_byte (unsigned char bus, unsigned char dev_fn,
522 int pcibios_write_config_word (unsigned char bus, unsigned char dev_fn,
524 int pcibios_write_config_dword (unsigned char bus, unsigned char dev_fn,
526 int pcibios_find_class (unsigned int class_code, unsigned short index, unsigned char *bus, unsigned char *dev_fn);
529 unsigned char *dev_fn);
631 static inline int pcibios_find_class (unsigned int class_code, unsigned short index, unsigned char *bus, unsigned char *dev_fn) argument
H A Dcciss_ioctl.h13 unsigned char dev_fn; member in struct:_cciss_pci_info_struct
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/
H A Dpci.h514 int pcibios_read_config_byte (unsigned char bus, unsigned char dev_fn,
516 int pcibios_read_config_word (unsigned char bus, unsigned char dev_fn,
518 int pcibios_read_config_dword (unsigned char bus, unsigned char dev_fn,
520 int pcibios_write_config_byte (unsigned char bus, unsigned char dev_fn,
522 int pcibios_write_config_word (unsigned char bus, unsigned char dev_fn,
524 int pcibios_write_config_dword (unsigned char bus, unsigned char dev_fn,
526 int pcibios_find_class (unsigned int class_code, unsigned short index, unsigned char *bus, unsigned char *dev_fn);
529 unsigned char *dev_fn);
631 static inline int pcibios_find_class (unsigned int class_code, unsigned short index, unsigned char *bus, unsigned char *dev_fn) argument
H A Dcciss_ioctl.h13 unsigned char dev_fn; member in struct:_cciss_pci_info_struct
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/ppc/platforms/
H A Dpmac_pci.c111 ((1 << (unsigned long)PCI_SLOT(dev_fn)) \
112 | (((unsigned long)PCI_FUNC(dev_fn)) << 8) \
122 macrisc_cfg_access(struct pci_controller* hose, u8 bus, u8 dev_fn, u8 offset) argument
127 if (dev_fn < (11 << 3))
129 caddr = MACRISC_CFA0(dev_fn, offset);
131 caddr = MACRISC_CFA1(bus, dev_fn, offset);
188 * Verifiy that a specific (bus, dev_fn) exists on chaos
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-ppc64/
H A Dprom.h187 unsigned char dev_fn);
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-ppc64/
H A Dprom.h187 unsigned char dev_fn);
/asus-wl-520gu-7.0.1.45/src/linux/linux/arch/mips/jmr3927/rbhma3100/
H A Dpci_ops.c71 mkaddr(unsigned char bus, unsigned char dev_fn, unsigned char where, int *flagsp) argument
73 if (bus == 0 && dev_fn >= PCI_DEVFN(TX3927_PCIC_MAX_DEVNU, 0))
77 ((dev_fn & 0xff) << 0x08) |

Completed in 268 milliseconds

12