Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/linux-2.4.37.9/drivers/hotplug/
Dcpqphp_pci.c248 int cpqhp_configure_device (struct controller* ctrl, struct pci_func* func) in cpqhp_configure_device() argument
263 if (func->pci_dev == NULL) in cpqhp_configure_device()
264 func->pci_dev = pci_find_slot(func->bus, (func->device << 3) | (func->function & 0x7)); in cpqhp_configure_device()
267 if (func->pci_dev == NULL) { in cpqhp_configure_device()
270 dev0.devfn = (func->device << 3) + (func->function & 0x7); in cpqhp_configure_device()
274 func->pci_dev = pci_scan_slot(&dev0); in cpqhp_configure_device()
275 if (func->pci_dev == NULL) { in cpqhp_configure_device()
281 if (func->pci_dev->hdr_type == PCI_HEADER_TYPE_BRIDGE) { in cpqhp_configure_device()
282 pci_read_config_byte(func->pci_dev, PCI_SECONDARY_BUS, &bus); in cpqhp_configure_device()
283 child = (struct pci_bus*) pci_add_new_bus(func->pci_dev->bus, (func->pci_dev), bus); in cpqhp_configure_device()
[all …]
Dcpqphp_ctrl.c41 static u32 configure_new_device(struct controller* ctrl, struct pci_func *func,u8 behind_bridge, st…
42 static int configure_new_function(struct controller* ctrl, struct pci_func *func,u8 behind_bridge, …
85 struct pci_func *func; in handle_switch_change() local
99 func = cpqhp_slot_find(ctrl->bus, (hp_slot + ctrl->slot_device_offset), 0); in handle_switch_change()
110 func->presence_save = (temp_word >> hp_slot) & 0x01; in handle_switch_change()
111 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_switch_change()
118 func->switch_save = 0; in handle_switch_change()
126 func->switch_save = 0x10; in handle_switch_change()
163 struct pci_func *func; in handle_presence_change() local
181 func = cpqhp_slot_find(ctrl->bus, (hp_slot + ctrl->slot_device_offset), 0); in handle_presence_change()
[all …]
Dshpchprm_nonacpi.c79 struct pci_func *func = fun; in phprm_dump_func_res() local
81 if (func->bus_head) { in phprm_dump_func_res()
83 print_pci_resource (func->bus_head); in phprm_dump_func_res()
85 if (func->io_head) { in phprm_dump_func_res()
87 print_pci_resource (func->io_head); in phprm_dump_func_res()
89 if (func->mem_head) { in phprm_dump_func_res()
91 print_pci_resource (func->mem_head); in phprm_dump_func_res()
93 if (func->p_mem_head) { in phprm_dump_func_res()
95 print_pci_resource (func->p_mem_head); in phprm_dump_func_res()
101 struct pci_func *func in phprm_get_used_resources() argument
[all …]
Dpciehprm_nonacpi.c79 struct pci_func *func = fun; in phprm_dump_func_res() local
81 if (func->bus_head) { in phprm_dump_func_res()
83 print_pci_resource (func->bus_head); in phprm_dump_func_res()
85 if (func->io_head) { in phprm_dump_func_res()
87 print_pci_resource (func->io_head); in phprm_dump_func_res()
89 if (func->mem_head) { in phprm_dump_func_res()
91 print_pci_resource (func->mem_head); in phprm_dump_func_res()
93 if (func->p_mem_head) { in phprm_dump_func_res()
95 print_pci_resource (func->p_mem_head); in phprm_dump_func_res()
101 struct pci_func *func in phprm_get_used_resources() argument
[all …]
Dpciehp_pci.c224 int pciehp_configure_device (struct controller* ctrl, struct pci_func* func) in pciehp_configure_device() argument
240 func->pci_dev, func->bus, func->device, func->function); in pciehp_configure_device()
241 if (func->pci_dev == NULL) in pciehp_configure_device()
242 func->pci_dev = pci_find_slot(func->bus, (func->device << 3) | (func->function & 0x7)); in pciehp_configure_device()
244 func->pci_dev, func->bus, func->device, func->function); in pciehp_configure_device()
245 if (func->pci_dev != NULL) { in pciehp_configure_device()
247 func->pci_dev, func->pci_dev->bus->number, func->pci_dev->devfn); in pciehp_configure_device()
250 if (func->pci_dev == NULL) { in pciehp_configure_device()
254 dev0.bus->number = func->bus; in pciehp_configure_device()
255 dbg("%s: dev0.bus->number %x\n", __FUNCTION__, func->bus); in pciehp_configure_device()
[all …]
Dshpchp_pci.c224 int shpchp_configure_device (struct controller* ctrl, struct pci_func* func) in shpchp_configure_device() argument
241 dbg("%s: func->pci_dev %p\n", __FUNCTION__, func->pci_dev); in shpchp_configure_device()
242 if (func->pci_dev != NULL) in shpchp_configure_device()
243 dbg("%s: func->pci_dev->irq %x\n", __FUNCTION__, func->pci_dev->irq); in shpchp_configure_device()
244 if (func->pci_dev == NULL) in shpchp_configure_device()
245 func->pci_dev = pci_find_slot(func->bus, (func->device << 3) | (func->function & 0x7)); in shpchp_configure_device()
246 dbg("%s: after pci_find_slot, func->pci_dev %p\n", __FUNCTION__, func->pci_dev); in shpchp_configure_device()
247 if (func->pci_dev != NULL) in shpchp_configure_device()
248 dbg("%s: after pci_find_slot, func->pci_dev->irq %x\n", __FUNCTION__, func->pci_dev->irq); in shpchp_configure_device()
251 if (func->pci_dev == NULL) { in shpchp_configure_device()
[all …]
Dpciehp_ctrl.c44 static u32 configure_new_device(struct controller *ctrl, struct pci_func *func,
46 static int configure_new_function( struct controller *ctrl, struct pci_func *func,
61 struct pci_func *func; in pciehp_handle_attention_button() local
67 func = pciehp_slot_find(ctrl->slot_bus, (hp_slot + ctrl->slot_device_offset), 0); in pciehp_handle_attention_button()
73 p_slot->hpc_ops->get_adapter_status(p_slot, &(func->presence_save)); in pciehp_handle_attention_button()
117 struct pci_func *func; in pciehp_handle_switch_change() local
123 func = pciehp_slot_find(ctrl->slot_bus, (hp_slot + ctrl->slot_device_offset), 0); in pciehp_handle_switch_change()
134 p_slot->hpc_ops->get_adapter_status(p_slot, &(func->presence_save)); in pciehp_handle_switch_change()
142 func->switch_save = 0; in pciehp_handle_switch_change()
149 func->switch_save = 0x10; in pciehp_handle_switch_change()
[all …]
Dibmphp_pci.c81 int ibmphp_configure_card (struct pci_func *func, u8 slotno) in ibmphp_configure_card() argument
95 debug ("inside configure_card, func->busno = %x \n", func->busno); in ibmphp_configure_card()
97 device = func->device; in ibmphp_configure_card()
98 cur_func = func; in ibmphp_configure_card()
193 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
201 if (func->devices[i]) { in ibmphp_configure_card()
223 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
265 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
275 if (func->devices[i]) { in ibmphp_configure_card()
299 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ in ibmphp_configure_card()
[all …]
Dshpchp_ctrl.c44 static u32 configure_new_device(struct controller *ctrl, struct pci_func *func,
46 static int configure_new_function( struct controller *ctrl, struct pci_func *func,
64 struct pci_func *func; in shpchp_handle_attention_button() local
70 func = shpchp_slot_find(ctrl->slot_bus, (hp_slot + ctrl->slot_device_offset), 0); in shpchp_handle_attention_button()
76 p_slot->hpc_ops->get_adapter_status(p_slot, &(func->presence_save)); in shpchp_handle_attention_button()
121 struct pci_func *func; in shpchp_handle_switch_change() local
127 func = shpchp_slot_find(ctrl->slot_bus, (hp_slot + ctrl->slot_device_offset), 0); in shpchp_handle_switch_change()
138 p_slot->hpc_ops->get_adapter_status(p_slot, &(func->presence_save)); in shpchp_handle_switch_change()
141 func->presence_save, func->pwr_save); in shpchp_handle_switch_change()
148 func->switch_save = 0; in shpchp_handle_switch_change()
[all …]
Dshpchprm_legacy.c114 struct pci_func *func = NULL; in shpchprm_find_available_resources() local
218 func = shpchp_slot_find(primary_bus, dev_func >> 3, 0); in shpchprm_find_available_resources()
220 while (func && (func->function != (dev_func & 0x07))) { in shpchprm_find_available_resources()
221 dbg("func = %p b:d:f(%x:%x:%x)\n", func, primary_bus, dev_func >> 3, index); in shpchprm_find_available_resources()
222 func = shpchp_slot_find(primary_bus, dev_func >> 3, index++); in shpchprm_find_available_resources()
226 if (!func) { in shpchprm_find_available_resources()
261 io_node->next = func->io_head; in shpchprm_find_available_resources()
262 func->io_head = io_node; in shpchprm_find_available_resources()
281 mem_node->next = func->mem_head; in shpchprm_find_available_resources()
282 func->mem_head = mem_node; in shpchprm_find_available_resources()
[all …]
Dacpiphp_pci.c46 static int init_config_space (struct acpiphp_func *func) in init_config_space() argument
64 bridge = func->slot->bridge; in init_config_space()
66 devfn = PCI_DEVFN(func->slot->device, func->function); in init_config_space()
96 res->next = func->io_head; in init_config_space()
97 func->io_head = res; in init_config_space()
127 res->next = func->p_mem_head; in init_config_space()
128 func->p_mem_head = res; in init_config_space()
157 res->next = func->mem_head; in init_config_space()
158 func->mem_head = res; in init_config_space()
175 struct acpiphp_func *func; in configure_pci_dev() local
[all …]
/linux-2.4.37.9/arch/ppc/math-emu/
Dmath.c223 int (*func)(void *, void *, void *, void *); in do_mathemu() local
273 case LFS: func = lfs; type = D; break; in do_mathemu()
274 case LFSU: func = lfs; type = DU; break; in do_mathemu()
275 case LFD: func = lfd; type = D; break; in do_mathemu()
276 case LFDU: func = lfd; type = DU; break; in do_mathemu()
277 case STFS: func = stfs; type = D; break; in do_mathemu()
278 case STFSU: func = stfs; type = DU; break; in do_mathemu()
279 case STFD: func = stfd; type = D; break; in do_mathemu()
280 case STFDU: func = stfd; type = DU; break; in do_mathemu()
284 case LFSX: func = lfs; type = XE; break; in do_mathemu()
[all …]
/linux-2.4.37.9/include/asm-sparc/
Dsmp.h80 #define smp_cross_call(func,arg1,arg2,arg3,arg4,arg5) BTFIXUP_CALL(smp_cross_call)(func,arg1,arg2,a… in BTFIXUPDEF_CALL() argument
83 extern __inline__ void xc0(smpfunc_t func) { smp_cross_call(func, 0, 0, 0, 0, 0); } in BTFIXUPDEF_CALL()
84 extern __inline__ void xc1(smpfunc_t func, unsigned long arg1) in xc1() argument
85 { smp_cross_call(func, arg1, 0, 0, 0, 0); } in xc1()
86 extern __inline__ void xc2(smpfunc_t func, unsigned long arg1, unsigned long arg2) in xc2() argument
87 { smp_cross_call(func, arg1, arg2, 0, 0, 0); } in xc2()
88 extern __inline__ void xc3(smpfunc_t func, unsigned long arg1, unsigned long arg2, in xc3() argument
90 { smp_cross_call(func, arg1, arg2, arg3, 0, 0); } in xc3()
91 extern __inline__ void xc4(smpfunc_t func, unsigned long arg1, unsigned long arg2, in xc4() argument
93 { smp_cross_call(func, arg1, arg2, arg3, arg4, 0); } in xc4()
[all …]
/linux-2.4.37.9/arch/x86_64/kernel/
Daperture.c91 static __u32 __init find_cap(int num, int slot, int func, int cap) in find_cap() argument
93 if (!(read_pci_config_16(num,slot,func,PCI_STATUS) & PCI_STATUS_CAP_LIST)) in find_cap()
95 u8 pos = read_pci_config_byte(num,slot,func,PCI_CAPABILITY_LIST); in find_cap()
99 u8 id = read_pci_config_byte(num,slot,func,pos+PCI_CAP_LIST_ID); in find_cap()
104 pos = read_pci_config_byte(num,slot,func,pos+PCI_CAP_LIST_NEXT); in find_cap()
110 static __u32 __init read_agp(int num, int slot, int func, int cap, u32 *order) in read_agp() argument
112 printk("AGP bridge at %02x:%02x:%02x\n", num, slot, func); in read_agp()
113 u32 apsizereg = read_pci_config_16(num,slot,func, cap + 0x14); in read_agp()
129 u32 aper_low = read_pci_config(num,slot,func, 0x10); in read_agp()
130 u32 aper_hi = read_pci_config(num,slot,func,0x14); in read_agp()
[all …]
/linux-2.4.37.9/arch/mips/momentum/ocelot_c/
Dpci.c113 int dev, bus, func; in marvell_pcibios_read_config_dword() local
119 func = PCI_FUNC(device->devfn); in marvell_pcibios_read_config_dword()
134 address = (bus << 16) | (dev << 11) | (func << 8) | in marvell_pcibios_read_config_dword()
150 int dev, bus, func; in marvell_pcibios_read_config_word() local
156 func = PCI_FUNC(device->devfn); in marvell_pcibios_read_config_word()
171 address = (bus << 16) | (dev << 11) | (func << 8) | in marvell_pcibios_read_config_word()
186 int dev, bus, func; in marvell_pcibios_read_config_byte() local
192 func = PCI_FUNC(device->devfn); in marvell_pcibios_read_config_byte()
207 address = (bus << 16) | (dev << 11) | (func << 8) | in marvell_pcibios_read_config_byte()
222 int dev, bus, func; in marvell_pcibios_write_config_dword() local
[all …]
/linux-2.4.37.9/arch/mips/pmc-sierra/stretch/
Dpci.c46 int dev, bus, func; in pmc_stretch_read_config_dword() local
51 func = PCI_FUNC(device->devfn); in pmc_stretch_read_config_dword()
53 address = (bus << 8) | (dev << 16) | (func << 21) | in pmc_stretch_read_config_dword()
65 int dev, bus, func; in pmc_stretch_read_config_word() local
70 func = PCI_FUNC(device->devfn); in pmc_stretch_read_config_word()
72 address = (bus << 8) | (dev << 16) | (func << 21) | in pmc_stretch_read_config_word()
84 int dev, bus, func; in pmc_stretch_read_config_byte() local
89 func = PCI_FUNC(device->devfn); in pmc_stretch_read_config_byte()
91 address = (bus << 8) | (dev << 16) | (func << 21) | in pmc_stretch_read_config_byte()
103 int dev, bus, func; in pmc_stretch_write_config_dword() local
[all …]
/linux-2.4.37.9/arch/mips/momentum/ocelot_g/
Dpci.c114 int dev, bus, func; in galileo_pcibios_read_config_dword() local
120 func = PCI_FUNC(device->devfn); in galileo_pcibios_read_config_dword()
139 address = (bus << 16) | (dev << 11) | (func << 8) | in galileo_pcibios_read_config_dword()
155 int dev, bus, func; in galileo_pcibios_read_config_word() local
161 func = PCI_FUNC(device->devfn); in galileo_pcibios_read_config_word()
180 address = (bus << 16) | (dev << 11) | (func << 8) | in galileo_pcibios_read_config_word()
195 int dev, bus, func; in galileo_pcibios_read_config_byte() local
201 func = PCI_FUNC(device->devfn); in galileo_pcibios_read_config_byte()
218 address = (bus << 16) | (dev << 11) | (func << 8) | in galileo_pcibios_read_config_byte()
233 int dev, bus, func; in galileo_pcibios_write_config_dword() local
[all …]
/linux-2.4.37.9/arch/mips/pmc-sierra/yosemite/
Dpci.c43 int dev, bus, func; in titan_pcibios_read_config_dword() local
49 func = PCI_FUNC(device->devfn); in titan_pcibios_read_config_dword()
54 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_pcibios_read_config_dword()
72 int dev, bus, func; in titan_pcibios_read_config_word() local
78 func = PCI_FUNC(device->devfn); in titan_pcibios_read_config_word()
83 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_pcibios_read_config_word()
101 int dev, bus, func; in titan_pcibios_read_config_byte() local
107 func = PCI_FUNC(device->devfn); in titan_pcibios_read_config_byte()
112 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_pcibios_read_config_byte()
130 int dev, bus, func; in titan_pcibios_write_config_dword() local
[all …]
Dht.c59 int dev, bus, func; in titan_ht_config_read_dword() local
65 func = PCI_FUNC(device->devfn); in titan_ht_config_read_dword()
68 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_ht_config_read_dword()
71 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_ht_config_read_dword()
103 int dev, bus, func; in titan_ht_config_read_word() local
109 func = PCI_FUNC(device->devfn); in titan_ht_config_read_word()
111 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_ht_config_read_word()
144 int dev, bus, func; in titan_ht_config_read_byte() local
150 func = PCI_FUNC(device->devfn); in titan_ht_config_read_byte()
152 address = (bus << 16) | (dev << 11) | (func << 8) | in titan_ht_config_read_byte()
[all …]
/linux-2.4.37.9/net/ax25/
Dax25_iface.c41 int (*func)(struct sk_buff *, ax25_cb *); member
46 void (*func)(ax25_cb *, int); member
55 int ax25_protocol_register(unsigned int pid, int (*func)(struct sk_buff *, ax25_cb *)) in ax25_protocol_register()
70 protocol->func = func; in ax25_protocol_register()
116 int ax25_linkfail_register(void (*func)(ax25_cb *, int)) in ax25_linkfail_register()
124 linkfail->func = func; in ax25_linkfail_register()
137 void ax25_linkfail_release(void (*func)(ax25_cb *, int)) in ax25_linkfail_release()
148 if (linkfail->func == func) { in ax25_linkfail_release()
156 if (linkfail->next->func == func) { in ax25_linkfail_release()
234 return protocol->func; in ax25_protocol_function()
[all …]
/linux-2.4.37.9/arch/ia64/sn/io/sn2/pcibr/
Dpcibr_slot.c264 int func, in pcibr_slot_func_info_return() argument
267 pcibr_info_t pcibr_info = pcibr_infoh[func]; in pcibr_slot_func_info_return()
321 int func; in pcibr_slot_info_return() local
349 for (func = 0; func < pss->bss_ninfo; func++) { in pcibr_slot_info_return()
350 funcp = &(slotp->resp_func[func]); in pcibr_slot_info_return()
351 pcibr_slot_func_info_return(pss->bss_infos, func, funcp); in pcibr_slot_info_return()
536 int func; in pcibr_slot_info_init() local
595 for (func = 1; func < 8; ++func) { in pcibr_slot_info_init()
596 cfgw = pcibr_func_config_addr(bridge, 0, slot, func, 0); in pcibr_slot_info_init()
600 if (pcibr_probe_slot(bridge, cfgw, &idwords[func])) { in pcibr_slot_info_init()
[all …]
/linux-2.4.37.9/include/asm-x86_64/
Dpci-direct.h12 static inline u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config() argument
15 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config()
22 static inline u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_byte() argument
25 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_byte()
31 static inline u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_16() argument
34 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_16()
40 static inline void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, in write_pci_config() argument
44 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in write_pci_config()
/linux-2.4.37.9/arch/mips/momentum/jaguar_atx/
Dpci.c116 int dev, bus, func; in galileo_pcibios_read_config_dword() local
122 func = PCI_FUNC(device->devfn); in galileo_pcibios_read_config_dword()
137 address = (bus << 16) | (dev << 11) | (func << 8) | in galileo_pcibios_read_config_dword()
153 int dev, bus, func; in galileo_pcibios_read_config_word() local
159 func = PCI_FUNC(device->devfn); in galileo_pcibios_read_config_word()
174 address = (bus << 16) | (dev << 11) | (func << 8) | in galileo_pcibios_read_config_word()
189 int dev, bus, func; in galileo_pcibios_read_config_byte() local
195 func = PCI_FUNC(device->devfn); in galileo_pcibios_read_config_byte()
210 address = (bus << 16) | (dev << 11) | (func << 8) | in galileo_pcibios_read_config_byte()
225 int dev, bus, func; in galileo_pcibios_write_config_dword() local
[all …]
/linux-2.4.37.9/arch/i386/kernel/
Dearlyquirk.c24 int num,slot,func; in check_acpi_pci() local
32 for (func = 0; func < 8; func++) { in check_acpi_pci()
35 class = read_pci_config(num,slot,func, in check_acpi_pci()
43 vendor = read_pci_config(num, slot, func, in check_acpi_pci()
/linux-2.4.37.9/arch/ia64/kernel/
Dsmp.c64 void (*func) (void *info); member
112 void (*func)(void *info); in handle_IPI() local
118 func = data->func; in handle_IPI()
126 (*func)(info); in handle_IPI()
220 smp_call_function_single (int cpuid, void (*func) (void *info), void *info, int nonatomic, in smp_call_function_single()
231 data.func = func; in smp_call_function_single()
277 smp_call_function (void (*func) (void *info), void *info, int nonatomic, int wait) in smp_call_function()
285 data.func = func; in smp_call_function()

12345678910>>...14