Lines Matching refs:func
79 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
104 return shpchp_save_used_resources (ctrl, func, !DISABLE_CARD); in phprm_get_used_resources()
192 struct pci_func *func in configure_existing_function() argument
198 rc = phprm_get_used_resources (ctrl, func); in configure_existing_function()
202 rc = phprm_delete_resources (&ctrl->bus_head, func->bus_head); in configure_existing_function()
203 rc |= phprm_delete_resources (&ctrl->io_head, func->io_head); in configure_existing_function()
204 rc |= phprm_delete_resources (&ctrl->mem_head, func->mem_head); in configure_existing_function()
205 rc |= phprm_delete_resources (&ctrl->p_mem_head, func->p_mem_head); in configure_existing_function()
216 struct pci_func *func, new_func; in bind_pci_resources_to_slots() local
232 func = shpchp_slot_find(busn, devn, funn); in bind_pci_resources_to_slots()
233 if (!func) { in bind_pci_resources_to_slots()
242 configure_existing_function(ctrl, func); in bind_pci_resources_to_slots()
243 phprm_dump_func_res(func); in bind_pci_resources_to_slots()
286 struct pci_func func; in shpchprm_find_available_resources() local
289 memset(&func, 0, sizeof(struct pci_func)); in shpchprm_find_available_resources()
291 func.bus = ctrl->bus; in shpchprm_find_available_resources()
292 func.device = ctrl->device; in shpchprm_find_available_resources()
293 func.function = ctrl->function; in shpchprm_find_available_resources()
294 func.is_a_board = 1; in shpchprm_find_available_resources()
297 rc = shpchp_save_used_resources (ctrl, &func, !DISABLE_CARD); in shpchprm_find_available_resources()
300 if (func.mem_head) in shpchprm_find_available_resources()
301 func.mem_head->next = ctrl->mem_head; in shpchprm_find_available_resources()
302 ctrl->mem_head = func.mem_head; in shpchprm_find_available_resources()
304 if (func.p_mem_head) in shpchprm_find_available_resources()
305 func.p_mem_head->next = ctrl->p_mem_head; in shpchprm_find_available_resources()
306 ctrl->p_mem_head = func.p_mem_head; in shpchprm_find_available_resources()
308 if (func.io_head) in shpchprm_find_available_resources()
309 func.io_head->next = ctrl->io_head; in shpchprm_find_available_resources()
310 ctrl->io_head = func.io_head; in shpchprm_find_available_resources()
312 if(func.bus_head) in shpchprm_find_available_resources()
313 func.bus_head->next = ctrl->bus_head; in shpchprm_find_available_resources()
314 ctrl->bus_head = func.bus_head; in shpchprm_find_available_resources()
339 struct pci_func *func, in shpchprm_set_hpp() argument
348 pci_bus->number = func->bus; in shpchprm_set_hpp()
349 devfn = PCI_DEVFN(func->device, func->function); in shpchprm_set_hpp()
357 …t secondary LT error. b:d:f(%02x:%02x:%02x)\n", __FUNCTION__, func->bus, func->device, func->funct… in shpchprm_set_hpp()
366 …dbg("%s: set LT error. b:d:f(%02x:%02x:%02x)\n", __FUNCTION__, func->bus, func->device, func->func… in shpchprm_set_hpp()
376 …dbg("%s: set CLS error. b:d:f(%02x:%02x:%02x)\n", __FUNCTION__, func->bus, func->device, func->fun… in shpchprm_set_hpp()
387 struct pci_func *func, in shpchprm_enable_card() argument
397 pci_bus->number = func->bus; in shpchprm_enable_card()
398 devfn = PCI_DEVFN(func->device, func->function); in shpchprm_enable_card()