Lines Matching refs:func

264                             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()
601 pfail |= 1 << func; in pcibr_slot_info_init()
607 vendor = 0xFFFF & idwords[func]; in pcibr_slot_info_init()
609 pfail |= 1 << func; in pcibr_slot_info_init()
612 nfunc = func + 1; in pcibr_slot_info_init()
622 for (func = 0; func < nfunc; ++func) { in pcibr_slot_info_init()
625 if (func) { in pcibr_slot_info_init()
626 if (pfail & (1 << func)) in pcibr_slot_info_init()
629 idword = idwords[func]; in pcibr_slot_info_init()
630 cfgw = pcibr_func_config_addr(bridge, 0, slot, func, 0); in pcibr_slot_info_init()
634 rfunc = func; in pcibr_slot_info_init()
640 pcibr_soft->bs_name, slot, func, htype); in pcibr_slot_info_init()
648 PCIBR_DEVICE_TO_SLOT(pcibr_soft,slot), func, cfgw)); in pcibr_slot_info_init()
725 PCIBR_DEVICE_TO_SLOT(pcibr_soft, slot), func, lt_time)); in pcibr_slot_info_init()
741 PCIBR_DEVICE_TO_SLOT(pcibr_soft, slot), func)); in pcibr_slot_info_init()
753 "func %d not PCI-X capable\n", pcibr_vhdl, slot, func); in pcibr_slot_info_init()
756 "func %d not PCI-X capable\n", (unsigned long)pcibr_vhdl, slot, func); in pcibr_slot_info_init()
765 pcix_cap, PCIBR_DEVICE_TO_SLOT(pcibr_soft, slot), func)); in pcibr_slot_info_init()
787 if (func == 0) in pcibr_slot_info_init()
981 int func; in pcibr_slot_pcix_rbar_init() local
998 for (func = 0; func < nfunc; ++func) { in pcibr_slot_pcix_rbar_init()
1004 if (!(pcibr_info = pcibr_infoh[func])) in pcibr_slot_pcix_rbar_init()
1060 PCIBR_DEVICE_TO_SLOT(pcibr_soft, slot), func, in pcibr_slot_pcix_rbar_init()
1089 int func; in pcibr_slot_addr_space_init() local
1135 for (func = 0; func < nfunc; ++func) { in pcibr_slot_addr_space_init()
1147 pcibr_info = pcibr_infoh[func]; in pcibr_slot_addr_space_init()
1155 cfgw = pcibr_func_config_addr(bridge, 0, slot, func, 0); in pcibr_slot_addr_space_init()
1183 func, win, space, space_desc, base, base + size - 1); in pcibr_slot_addr_space_init()
1245 func, win, space, space_desc, base, in pcibr_slot_addr_space_init()
1254 func, win, size, space, space_desc); in pcibr_slot_addr_space_init()
1284 func, base, base + size - 1)); in pcibr_slot_addr_space_init()
1465 int func; in pcibr_slot_call_device_attach() local
1495 for (func = 0; func < nfunc; ++func) { in pcibr_slot_call_device_attach()
1497 pcibr_info = pcibr_infoh[func]; in pcibr_slot_call_device_attach()
1579 int func; in pcibr_slot_call_device_detach() local
1600 for (func = 0; func < nfunc; ++func) { in pcibr_slot_call_device_detach()
1602 pcibr_info = pcibr_infoh[func]; in pcibr_slot_call_device_detach()
1788 pciio_function_t func; in pcibr_device_info_free() local
1799 for (func = 0; func < nfunc; func++) { in pcibr_device_info_free()
1800 pcibr_info = slotp->bss_infos[func]; in pcibr_device_info_free()
1808 cfgw = pcibr_func_config_addr(bridge, 0, slot, func, 0); in pcibr_device_info_free()
1841 slotp->bss_infos[func] = 0; in pcibr_device_info_free()