Lines Matching refs:vfunc_no

134  * @vfunc_no: the features supported by the EPC device specific to the
135 * virtual endpoint function with vfunc_no will be returned
142 u8 func_no, u8 vfunc_no)
149 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
156 epc_features = epc->ops->get_features(epc, func_no, vfunc_no);
208 * @vfunc_no: the virtual endpoint function number in the physical function
214 int pci_epc_raise_irq(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
222 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
229 ret = epc->ops->raise_irq(epc, func_no, vfunc_no, type, interrupt_num);
241 * @vfunc_no: the virtual endpoint function number in the physical function
257 int pci_epc_map_msi_irq(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
266 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
273 ret = epc->ops->map_msi_irq(epc, func_no, vfunc_no, phys_addr,
286 * @vfunc_no: the virtual endpoint function number in the physical function
290 int pci_epc_get_msi(struct pci_epc *epc, u8 func_no, u8 vfunc_no)
297 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
304 interrupt = epc->ops->get_msi(epc, func_no, vfunc_no);
320 * @vfunc_no: the virtual endpoint function number in the physical function
325 int pci_epc_set_msi(struct pci_epc *epc, u8 func_no, u8 vfunc_no, u8 interrupts)
334 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
343 ret = epc->ops->set_msi(epc, func_no, vfunc_no, encode_int);
354 * @vfunc_no: the virtual endpoint function number in the physical function
358 int pci_epc_get_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no)
365 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
372 interrupt = epc->ops->get_msix(epc, func_no, vfunc_no);
386 * @vfunc_no: the virtual endpoint function number in the physical function
393 int pci_epc_set_msix(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
402 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
409 ret = epc->ops->set_msix(epc, func_no, vfunc_no, interrupts - 1, bir,
421 * @vfunc_no: the virtual endpoint function number in the physical function
426 void pci_epc_unmap_addr(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
432 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
439 epc->ops->unmap_addr(epc, func_no, vfunc_no, phys_addr);
448 * @vfunc_no: the virtual endpoint function number in the physical function
455 int pci_epc_map_addr(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
463 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
470 ret = epc->ops->map_addr(epc, func_no, vfunc_no, phys_addr, pci_addr,
482 * @vfunc_no: the virtual endpoint function number in the physical function
487 void pci_epc_clear_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
495 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
502 epc->ops->clear_bar(epc, func_no, vfunc_no, epf_bar);
511 * @vfunc_no: the virtual endpoint function number in the physical function
516 int pci_epc_set_bar(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
531 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
538 ret = epc->ops->set_bar(epc, func_no, vfunc_no, epf_bar);
549 * @vfunc_no: the virtual endpoint function number in the physical function
557 int pci_epc_write_header(struct pci_epc *epc, u8 func_no, u8 vfunc_no,
565 if (vfunc_no > 0 && (!epc->max_vfs || vfunc_no > epc->max_vfs[func_no]))
569 if (vfunc_no > 1)
576 ret = epc->ops->write_header(epc, func_no, vfunc_no, header);