id
stringlengths
4
63
text
stringlengths
153
8.81M
pci_dev_has_default_msi_parent_domain(9)
NAME pci_dev_has_default_msi_parent_domain - Check whether the device has the default MSI parent domain associated SYNOPSIS bool pci_dev_has_default_msi_parent_domain (struct pci_dev *dev ); ARGUMENTS dev Pointer to the PCI device SEE ALSO Kernel file ./arch/x86/kernel/apic/msi.c x86_msi_prepare(9), x86_init...
pci_dev_need_resume(9)
NAME pci_dev_need_resume - Check if it is necessary to resume the device. SYNOPSIS bool pci_dev_need_resume (struct pci_dev *pci_dev ); ARGUMENTS pci_dev Device to check. DESCRIPTION Return 'true' if the device is not runtime-suspended or it has to be reconfigured due to wakeup settings difference between sy...
pci_dev_present(9)
NAME pci_dev_present - Returns 1 if device matching the device list is present, 0 if not. SYNOPSIS int pci_dev_present (const struct pci_device_id *ids ); ARGUMENTS ids A pointer to a null terminated list of struct pci_device_id structures that describe the type of PCI device the caller is trying to find. DE...
pci_dev_put(9)
NAME pci_dev_put - release a use of the pci device structure SYNOPSIS void pci_dev_put (struct pci_dev *dev ); ARGUMENTS dev device that's been disconnected DESCRIPTION Must be called when a user of a device is finished with it. When the last user of the device calls this function, the memory of the device ...
pci_dev_res_add_to_list(9)
NAME pci_dev_res_add_to_list - Add a new resource tracker to the list SYNOPSIS int pci_dev_res_add_to_list (struct list_head *head , struct pci_dev *dev , struct resource *res , resource_size_t add_size , resource_size_t min_align ); ARGUMENTS head Head of the list dev Device to which the resou...
pci_dev_reset_iommu_done(9)
NAME pci_dev_reset_iommu_done - Restore IOMMU after a PCI device reset is done SYNOPSIS void pci_dev_reset_iommu_done (struct pci_dev *pdev ); ARGUMENTS pdev PCI device that has finished a reset routine DESCRIPTION After a PCIe device finishes a reset routine, it wants to restore its IOMMU IOMMU activity, ...
pci_dev_reset_iommu_prepare(9)
NAME pci_dev_reset_iommu_prepare - Block IOMMU to prepare for a PCI device reset SYNOPSIS int pci_dev_reset_iommu_prepare (struct pci_dev *pdev ); ARGUMENTS pdev PCI device that is going to enter a reset routine DESCRIPTION The PCIe r6.0, sec 10.3.1 IMPLEMENTATION NOTE recommends to disable and block ATS b...
pci_dev_run_wake(9)
NAME pci_dev_run_wake - Check if device can generate run-time wake-up events. SYNOPSIS bool pci_dev_run_wake (struct pci_dev *dev ); ARGUMENTS dev Device to check. DESCRIPTION Return true if the device itself is capable of generating wake-up events (through the platform or using the native PCIe PME) or if th...
pci_dev_set_io_state(9)
NAME pci_dev_set_io_state - Set the new error state if possible. SYNOPSIS bool pci_dev_set_io_state (struct pci_dev *dev , pci_channel_state_t new ); ARGUMENTS dev PCI device to set new error_state new the state we want dev to be in DESCRIPTION If the device is experiencing perm_failure, it h...
pci_dev_str_match(9)
NAME pci_dev_str_match - test if a string matches a device SYNOPSIS int pci_dev_str_match (struct pci_dev *dev , const char *p , const char **endptr ); ARGUMENTS dev the PCI device to test p string to match the device against endptr pointer to the string after the match DESCRIP...
pci_dev_str_match_path(9)
NAME pci_dev_str_match_path - test if a path string matches a device SYNOPSIS int pci_dev_str_match_path (struct pci_dev *dev , const char *path , const char **endptr ); ARGUMENTS dev the PCI device to test path string to match the device against endptr pointer to the string after ...
pci_devices_present_work(9)
NAME pci_devices_present_work - Handle new list of child devices SYNOPSIS void pci_devices_present_work (struct work_struct *work ); ARGUMENTS work Work struct embedded in struct hv_dr_work DESCRIPTION "Bus Relations" is the Windows term for "children of this bus." The terminology is preserved here for peo...
pci_devs_phb_init_dynamic(9)
NAME pci_devs_phb_init_dynamic - setup pci devices under this PHB phb: pci-to-host bridge (top-level bridge connecting to cpu) SYNOPSIS void pci_devs_phb_init_dynamic (struct pci_controller *phb ); ARGUMENTS phb -- undescribed -- DESCRIPTION This routine is called both during boot, (before the memory subsyst...
pci_disable_ats(9)
NAME pci_disable_ats - disable the ATS capability SYNOPSIS void pci_disable_ats (struct pci_dev *dev ); ARGUMENTS dev the PCI device SEE ALSO Kernel file ./drivers/pci/ats.c pci_ats_supported(9), pci_prepare_ats(9), pci_enable_ats(9), pci_ats_queue_depth(9), pci_ats_page_aligned(9), pci_enable_pri(9),...
pci_disable_device(9)
NAME pci_disable_device - Disable PCI device after use SYNOPSIS void pci_disable_device (struct pci_dev *dev ); ARGUMENTS dev PCI device to be disabled DESCRIPTION Signal to the system that the PCI device is not in use by the system anymore. This only involves disabling PCI bus-mastering, if active. Note...
pci_disable_enabled_device(9)
NAME pci_disable_enabled_device - Disable device without updating enable_cnt SYNOPSIS void pci_disable_enabled_device (struct pci_dev *dev ); ARGUMENTS dev PCI device to disable NOTE This function is a backend of PCI power management routines and is not supposed to be called drivers. SEE ALSO Kernel file ...
pci_disable_link_state(9)
NAME pci_disable_link_state - Disable device's link state, so the link will never enter specific states. Note that if the BIOS didn't grant ASPM control to the OS, this does nothing because we can't touch the LNKCTL register. Returns 0 or a negative errno. SYNOPSIS int pci_disable_link_state (struct pci_dev *pdev , i...
pci_disable_msi(9)
NAME pci_disable_msi - Disable MSI interrupt mode on device SYNOPSIS void pci_disable_msi (struct pci_dev *dev ); ARGUMENTS dev the PCI device to operate on DESCRIPTION Legacy device driver API to disable MSI interrupt mode on device, free earlier allocated interrupt vectors, and restore INTx emulation. ...
pci_disable_msix(9)
NAME pci_disable_msix - Disable MSI-X interrupt mode on device SYNOPSIS void pci_disable_msix (struct pci_dev *dev ); ARGUMENTS dev the PCI device to operate on DESCRIPTION Legacy device driver API to disable MSI-X interrupt mode on device, free earlier-allocated interrupt vectors, and restore INTx. The PC...
pci_disable_parity(9)
NAME pci_disable_parity - disable parity checking for device SYNOPSIS void pci_disable_parity (struct pci_dev *dev ); ARGUMENTS dev the PCI device to operate on DESCRIPTION Disable parity checking for device dev SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_busnr(9), pci_status_get_and_clear_...
pci_disable_pasid(9)
NAME pci_disable_pasid - Disable the PASID capability SYNOPSIS void pci_disable_pasid (struct pci_dev *pdev ); ARGUMENTS pdev PCI device structure SEE ALSO Kernel file ./drivers/pci/ats.c pci_ats_supported(9), pci_prepare_ats(9), pci_enable_ats(9), pci_disable_ats(9), pci_ats_queue_depth(9), pci_ats...
pci_disable_pri(9)
NAME pci_disable_pri - Disable PRI capability SYNOPSIS void pci_disable_pri (struct pci_dev *pdev ); ARGUMENTS pdev PCI device structure DESCRIPTION Only clears the enabled-bit, regardless of its former value SEE ALSO Kernel file ./drivers/pci/ats.c pci_ats_supported(9), pci_prepare_ats(9), pci_enable_a...
pci_disable_ptm(9)
NAME pci_disable_ptm - Disable Precision Time Measurement SYNOPSIS void pci_disable_ptm (struct pci_dev *dev ); ARGUMENTS dev PCI device DESCRIPTION Disable Precision Time Measurement for dev. SEE ALSO Kernel file ./drivers/pci/pcie/ptm.c pci_enable_ptm(9) April 2026 ...
pci_disable_rom(9)
NAME pci_disable_rom - disable ROM decoding for a PCI device SYNOPSIS void pci_disable_rom (struct pci_dev *pdev ); ARGUMENTS pdev PCI device to disable DESCRIPTION Disable ROM decoding on a PCI device by turning off the last bit in the ROM BAR. SEE ALSO Kernel file ./drivers/pci/rom.c pci_enable_rom(9), pci...
pci_disable_sriov(9)
NAME pci_disable_sriov - disable the SR-IOV capability SYNOPSIS void pci_disable_sriov (struct pci_dev *dev ); ARGUMENTS dev the PCI device SEE ALSO Kernel file ./drivers/pci/iov.c pci_iov_get_pf_drvdata(9), pci_iov_init(9), pci_iov_release(9), pci_iov_remove(9), pci_iov_update_resource(9), pci_sriov_resour...
pci_dma_configure(9)
NAME pci_dma_configure - Setup DMA configuration SYNOPSIS int pci_dma_configure (struct device *dev ); ARGUMENTS dev ptr to dev structure DESCRIPTION Function to update PCI devices's DMA configuration using the same info from the OF node or ACPI node of host bridge's parent (if any). SEE ALSO Kernel file ....
pci_doe(9)
NAME pci_doe - Perform Data Object Exchange SYNOPSIS int pci_doe (struct pci_doe_mb *doe_mb , u16 vendor , u8 type , const void *request , size_t request_sz , void *response , size_t response_sz ); ARGUMENTS doe_mb DOE Mailbox vendor Vendor ID type Data Object Type request ...
pci_doe_create_mb(9)
NAME pci_doe_create_mb - Create a DOE mailbox object SYNOPSIS struct pci_doe_mb * pci_doe_create_mb (struct pci_dev *pdev , u16 cap_offset ); ARGUMENTS pdev PCI device to create the DOE mailbox for cap_offset Offset of the DOE mailbox DESCRIPTION Create a single mailbox object to manage the mailbox f...
pci_doe_destroy_mb(9)
NAME pci_doe_destroy_mb - Destroy a DOE mailbox object SYNOPSIS void pci_doe_destroy_mb (struct pci_doe_mb *doe_mb ); ARGUMENTS doe_mb DOE mailbox DESCRIPTION Destroy all internal data structures created for the DOE mailbox. SEE ALSO Kernel file ./drivers/pci/doe.c struct pci_doe_mb(9), struct pci_doe_task(9),...
pci_doe_submit_task(9)
NAME pci_doe_submit_task - Submit a task to be processed by the state machine SYNOPSIS int pci_doe_submit_task (struct pci_doe_mb *doe_mb , struct pci_doe_task *task ); ARGUMENTS doe_mb DOE mailbox capability to submit to task task to be queued DESCRIPTION Submit a DOE task (request/response)...
pci_doe_supports_feat(9)
NAME pci_doe_supports_feat - Return if the DOE instance supports the given feature SYNOPSIS bool pci_doe_supports_feat (struct pci_doe_mb *doe_mb , u16 vid , u8 type ); ARGUMENTS doe_mb DOE mailbox capability to query vid Feature Vendor ID type Feature type RETURN True if the DOE ...
pci_dpc_recovered(9)
NAME pci_dpc_recovered - whether DPC triggered and has recovered successfully SYNOPSIS bool pci_dpc_recovered (struct pci_dev *pdev ); ARGUMENTS pdev PCI device DESCRIPTION Return true if DPC was triggered for pdev and has recovered successfully. Wait for recovery if it hasn't completed yet. Called from the...
pci_ea_fixed_busnrs(9)
NAME pci_ea_fixed_busnrs - Read fixed Secondary and Subordinate bus numbers from EA capability. SYNOPSIS bool pci_ea_fixed_busnrs (struct pci_dev *dev , u8 *sec , u8 *sub ); ARGUMENTS dev Bridge sec updated with secondary bus number from EA sub updated with subordinate bus numb...
pci_enable_acs(9)
NAME pci_enable_acs - enable ACS if hardware support it SYNOPSIS void pci_enable_acs (struct pci_dev *dev ); ARGUMENTS dev the PCI device SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_busnr(9), pci_status_get_and_clear_errors(9), pci_dev_str_match_path(9), pci_dev_str_match(9), pci_find_capability...
pci_enable_atomic_ops_to_root(9)
NAME pci_enable_atomic_ops_to_root - enable AtomicOp requests to root port SYNOPSIS int pci_enable_atomic_ops_to_root (struct pci_dev *dev , u32 cap_mask ); ARGUMENTS dev the PCI device cap_mask mask of desired AtomicOp sizes, including one or more of: PCI_EXP_DEVCAP2_ATOMIC_COMP32 PCI_EXP_DEVCAP2_...
pci_enable_ats(9)
NAME pci_enable_ats - enable the ATS capability SYNOPSIS int pci_enable_ats (struct pci_dev *dev , int ps ); ARGUMENTS dev the PCI device ps the IOMMU page shift DESCRIPTION Returns 0 on success, or negative on failure. SEE ALSO Kernel file ./drivers/pci/ats.c pci_ats_supported(9), pci_...
pci_enable_device(9)
NAME pci_enable_device - Initialize device before it's used by a driver. SYNOPSIS int pci_enable_device (struct pci_dev *dev ); ARGUMENTS dev PCI device to be initialized DESCRIPTION Initialize device before it's used by a driver. Ask low-level code to enable I/O and memory. Wake up the device if it was susp...
pci_enable_device_mem(9)
NAME pci_enable_device_mem - Initialize a device for use with Memory space SYNOPSIS int pci_enable_device_mem (struct pci_dev *dev ); ARGUMENTS dev PCI device to be initialized DESCRIPTION Initialize device before it's used by a driver. Ask low-level code to enable Memory resources. Wake up the device if it ...
pci_enable_link_state(9)
NAME pci_enable_link_state - Clear and set the default device link state so that the link may be allowed to enter the specified states. Note that if the BIOS didn't grant ASPM control to the OS, this does nothing because we can't touch the LNKCTL register. Also note that this does not enable states disabled by pci_d...
pci_enable_link_state_locked(9)
NAME pci_enable_link_state_locked - Clear and set the default device link state so that the link may be allowed to enter the specified states. Note that if the BIOS didn't grant ASPM control to the OS, this does nothing be‐ cause we can't touch the LNKCTL register. Also note that this does not enable states disabled...
pci_enable_msi(9)
NAME pci_enable_msi - Enable MSI interrupt mode on device SYNOPSIS int pci_enable_msi (struct pci_dev *dev ); ARGUMENTS dev the PCI device to operate on DESCRIPTION Legacy device driver API to enable MSI interrupts mode on device and allocate a single interrupt vector. On success, the allocated vector L...
pci_enable_msix_range(9)
NAME pci_enable_msix_range - Enable MSI-X interrupt mode on device SYNOPSIS int pci_enable_msix_range (struct pci_dev *dev , struct msix_entry *entries , int minvec , int maxvec ); ARGUMENTS dev the PCI device to operate on entries input/output parameter, array of MSI-X configuration entries ...
pci_enable_pasid(9)
NAME pci_enable_pasid - Enable the PASID capability SYNOPSIS int pci_enable_pasid (struct pci_dev *pdev , int features ); ARGUMENTS pdev PCI device structure features Features to enable DESCRIPTION Returns 0 on success, negative value on error. This function checks whether the features are actually...
pci_enable_pri(9)
NAME pci_enable_pri - Enable PRI capability SYNOPSIS int pci_enable_pri (struct pci_dev *pdev , u32 reqs ); ARGUMENTS pdev PCI device structure reqs outstanding requests DESCRIPTION Returns 0 on success, negative value on error SEE ALSO Kernel file ./drivers/pci/ats.c pci_ats_supported(9), ...
pci_enable_ptm(9)
NAME pci_enable_ptm - Enable Precision Time Measurement SYNOPSIS int pci_enable_ptm (struct pci_dev *dev , u8 *granularity ); ARGUMENTS dev PCI device granularity pointer to return granularity DESCRIPTION Enable Precision Time Measurement for dev. If successful and granularity is non-NULL, return th...
pci_enable_rom(9)
NAME pci_enable_rom - enable ROM decoding for a PCI device SYNOPSIS int pci_enable_rom (struct pci_dev *pdev ); ARGUMENTS pdev PCI device to enable DESCRIPTION Enable ROM decoding on dev. This involves simply turning on the last bit of the PCI ROM BAR. Note that some cards may share address decoders between...
pci_enable_sriov(9)
NAME pci_enable_sriov - enable the SR-IOV capability SYNOPSIS int pci_enable_sriov (struct pci_dev *dev , int nr_virtfn ); ARGUMENTS dev the PCI device nr_virtfn number of virtual functions to enable DESCRIPTION Returns 0 on success, or negative on failure. SEE ALSO Kernel file ./drivers/pci/iov....
pci_enable_wake(9)
NAME pci_enable_wake - change wakeup settings for a PCI device SYNOPSIS int pci_enable_wake (struct pci_dev *pci_dev , pci_power_t state , bool enable ); ARGUMENTS pci_dev Target device state PCI state from which device will issue wakeup events enable Whether or not to enable event gene...
pci_epc_add_epf(9)
NAME pci_epc_add_epf - bind PCI endpoint function to an endpoint controller SYNOPSIS int pci_epc_add_epf (struct pci_epc *epc , struct pci_epf *epf , enum pci_epc_interface_type type ); ARGUMENTS epc the EPC device to which the endpoint function should be added epf the endpoint function to be ...
pci_epc_bar_size_to_rebar_cap(9)
NAME pci_epc_bar_size_to_rebar_cap - convert a size to the representation used by the Resizable BAR Capability Register SYNOPSIS int pci_epc_bar_size_to_rebar_cap (size_t size , u32 *cap ); ARGUMENTS size the size to convert cap where to store the result DESCRIPTION Returns 0 on success and a ...
pci_epc_bus_master_enable_notify(9)
NAME pci_epc_bus_master_enable_notify - Notify the EPF device that the EPC device has received the Bus Master Enable event from the Root complex SYNOPSIS void pci_epc_bus_master_enable_notify (struct pci_epc *epc ); ARGUMENTS epc the EPC device that received the Bus Master Enable event DESCRIPTION Notify the...
pci_epc_clear_bar(9)
NAME pci_epc_clear_bar - reset the BAR SYNOPSIS void pci_epc_clear_bar (struct pci_epc *epc , u8 func_no , u8 vfunc_no , struct pci_epf_bar *epf_bar ); ARGUMENTS epc the EPC device for which the BAR has to be cleared func_no the physical endpoint function number in the EPC device vfunc_no ...
pci_epc_deinit_notify(9)
NAME pci_epc_deinit_notify - Notify the EPF device about EPC deinitialization SYNOPSIS void pci_epc_deinit_notify (struct pci_epc *epc ); ARGUMENTS epc the EPC device whose deinitialization is completed DESCRIPTION Invoke to notify the EPF device that the EPC deinitialization is completed. SEE ALSO Kernel ...
pci_epc_destroy(9)
NAME pci_epc_destroy - destroy the EPC device SYNOPSIS void pci_epc_destroy (struct pci_epc *epc ); ARGUMENTS epc the EPC device that has to be destroyed DESCRIPTION Invoke to destroy the PCI EPC device SEE ALSO Kernel file ./drivers/pci/endpoint/pci-epc-core.c pci_epc_put(9), pci_epc_get(9), pci...
pci_epc_get(9)
NAME pci_epc_get - get the PCI endpoint controller SYNOPSIS struct pci_epc * pci_epc_get (const char *epc_name ); ARGUMENTS epc_name device name of the endpoint controller DESCRIPTION Invoke to get struct pci_epc * corresponding to the device name of the endpoint controller SEE ALSO Kernel file ./drivers/pci/e...
pci_epc_get_features(9)
NAME pci_epc_get_features - get the features supported by EPC SYNOPSIS const struct pci_epc_features * pci_epc_get_features (struct pci_epc *epc , u8 func_no , u8 vfunc_no ); ARGUMENTS epc the features supported by *this* EPC device will be returned func_no the features supported by the EPC device...
pci_epc_get_first_free_bar(9)
NAME pci_epc_get_first_free_bar - helper to get first unreserved BAR SYNOPSIS enum pci_barno pci_epc_get_first_free_bar (const struct pci_epc_features *epc_features ); ARGUMENTS epc_features pci_epc_features structure that holds the reserved bar bitmap DESCRIPTION Invoke to get the first unreserved BAR that can be u...
pci_epc_get_msi(9)
NAME pci_epc_get_msi - get the number of MSI interrupt numbers allocated SYNOPSIS int pci_epc_get_msi (struct pci_epc *epc , u8 func_no , u8 vfunc_no ); ARGUMENTS epc the EPC device to which MSI interrupts was requested func_no the physical endpoint function number in the EPC device vfunc_...
pci_epc_get_msix(9)
NAME pci_epc_get_msix - get the number of MSI-X interrupt numbers allocated SYNOPSIS int pci_epc_get_msix (struct pci_epc *epc , u8 func_no , u8 vfunc_no ); ARGUMENTS epc the EPC device to which MSI-X interrupts was requested func_no the physical endpoint function number in the EPC device ...
pci_epc_get_next_free_bar(9)
NAME pci_epc_get_next_free_bar - helper to get unreserved BAR starting from @bar SYNOPSIS enum pci_barno pci_epc_get_next_free_bar (const struct pci_epc_features *epc_features , enum pci_barno bar ); ARGUMENTS epc_features pci_epc_features structure that holds the reserved bar bitmap bar the starting ...
pci_epc_init_notify(9)
NAME pci_epc_init_notify - Notify the EPF device that EPC device initialization is completed. SYNOPSIS void pci_epc_init_notify (struct pci_epc *epc ); ARGUMENTS epc the EPC device whose initialization is completed DESCRIPTION Invoke to Notify the EPF device that the EPC device's initialization is completed....
pci_epc_linkdown(9)
NAME pci_epc_linkdown - Notify the EPF device that EPC device has dropped the connection with the Root Complex. SYNOPSIS void pci_epc_linkdown (struct pci_epc *epc ); ARGUMENTS epc the EPC device which has dropped the link with the host DESCRIPTION Invoke to Notify the EPF device that the EPC device has drop...
pci_epc_linkup(9)
NAME pci_epc_linkup - Notify the EPF device that EPC device has established a connection with the Root Complex. SYNOPSIS void pci_epc_linkup (struct pci_epc *epc ); ARGUMENTS epc the EPC device which has established link with the host DESCRIPTION Invoke to Notify the EPF device that the EPC device has establ...
pci_epc_map_addr(9)
NAME pci_epc_map_addr - map CPU address to PCI address SYNOPSIS int pci_epc_map_addr (struct pci_epc *epc , u8 func_no , u8 vfunc_no , phys_addr_t phys_addr , u64 pci_addr , size_t size ); ARGUMENTS epc the EPC device on which address is allocated func_no the physical endpoint function number in t...
pci_epc_map_msi_irq(9)
NAME pci_epc_map_msi_irq - Map physical address to MSI address and return MSI data SYNOPSIS int pci_epc_map_msi_irq (struct pci_epc *epc , u8 func_no , u8 vfunc_no , phys_addr_t phys_addr , u8 interrupt_num , u32 entry_size , u32 *msi_data , u32 *msi_addr_offset ); ARGUMENTS epc the EPC device which has the M...
pci_epc_mem_alloc_addr(9)
NAME pci_epc_mem_alloc_addr - allocate memory address from EPC addr space SYNOPSIS void __iomem * pci_epc_mem_alloc_addr (struct pci_epc *epc , phys_addr_t *phys_addr , size_t size ); ARGUMENTS epc the EPC device on which memory has to be allocated phys_addr populate the allocated physical address h...
pci_epc_mem_exit(9)
NAME pci_epc_mem_exit - cleanup the pci_epc_mem structure SYNOPSIS void pci_epc_mem_exit (struct pci_epc *epc ); ARGUMENTS epc the EPC device that invoked pci_epc_mem_exit DESCRIPTION Invoke to cleanup the pci_epc_mem structure allocated in pci_epc_mem_init. SEE ALSO Kernel file ./drivers/pci/endpoint/pci-e...
pci_epc_mem_free_addr(9)
NAME pci_epc_mem_free_addr - free the allocated memory address SYNOPSIS void pci_epc_mem_free_addr (struct pci_epc *epc , phys_addr_t phys_addr , void __iomem *virt_addr , size_t size ); ARGUMENTS epc the EPC device on which memory was allocated phys_addr the allocated physical address virt_...
pci_epc_mem_get_order(9)
NAME pci_epc_mem_get_order - determine the allocation order of a memory size SYNOPSIS int pci_epc_mem_get_order (struct pci_epc_mem *mem , size_t size ); ARGUMENTS mem address space of the endpoint controller size the size for which to get the order DESCRIPTION Reimplement get_order for mem->p...
pci_epc_mem_init(9)
NAME pci_epc_mem_init - Initialize the pci_epc_mem structure SYNOPSIS int pci_epc_mem_init (struct pci_epc *epc , phys_addr_t base , size_t size , size_t page_size ); ARGUMENTS epc the EPC device that invoked pci_epc_mem_init base Physical address of the window region size Total ...
pci_epc_mem_map(9)
NAME pci_epc_mem_map - allocate and map a PCI address to a CPU address SYNOPSIS int pci_epc_mem_map (struct pci_epc *epc , u8 func_no , u8 vfunc_no , u64 pci_addr , size_t pci_size , struct pci_epc_map *map ); ARGUMENTS epc the EPC device on which the CPU address is to be allocated and mapped func_no ...
pci_epc_mem_unmap(9)
NAME pci_epc_mem_unmap - unmap and free a CPU address region SYNOPSIS void pci_epc_mem_unmap (struct pci_epc *epc , u8 func_no , u8 vfunc_no , struct pci_epc_map *map ); ARGUMENTS epc the EPC device on which the CPU address is allocated and mapped func_no the physical endpoint function number in t...
pci_epc_multi_mem_init(9)
NAME pci_epc_multi_mem_init - initialize the pci_epc_mem structure SYNOPSIS int pci_epc_multi_mem_init (struct pci_epc *epc , struct pci_epc_mem_window *windows , unsigned int num_windows ); ARGUMENTS epc the EPC device that invoked pci_epc_mem_init windows pointer to windows supported by the devi...
pci_epc_notify_pending_init(9)
NAME pci_epc_notify_pending_init - Notify the pending EPC device initialization complete to the EPF device SYNOPSIS void pci_epc_notify_pending_init (struct pci_epc *epc , struct pci_epf *epf ); ARGUMENTS epc the EPC device whose initialization is pending to be notified epf the EPF device to b...
pci_epc_put(9)
NAME pci_epc_put - release the PCI endpoint controller SYNOPSIS void pci_epc_put (struct pci_epc *epc ); ARGUMENTS epc epc returned by pci_epc_get DESCRIPTION release the refcount the caller obtained by invoking pci_epc_get SEE ALSO Kernel file ./drivers/pci/endpoint/pci-epc-core.c pci_epc_get(9), p...
pci_epc_raise_irq(9)
NAME pci_epc_raise_irq - interrupt the host system SYNOPSIS int pci_epc_raise_irq (struct pci_epc *epc , u8 func_no , u8 vfunc_no , unsigned int type , u16 interrupt_num ); ARGUMENTS epc the EPC device which has to interrupt the host func_no the physical endpoint function number in the EPC device ...
pci_epc_remove_epf(9)
NAME pci_epc_remove_epf - remove PCI endpoint function from endpoint controller SYNOPSIS void pci_epc_remove_epf (struct pci_epc *epc , struct pci_epf *epf , enum pci_epc_interface_type type ); ARGUMENTS epc the EPC device from which the endpoint function should be removed epf the endpoint fun...
pci_epc_set_bar(9)
NAME pci_epc_set_bar - configure BAR in order for host to assign PCI addr space SYNOPSIS int pci_epc_set_bar (struct pci_epc *epc , u8 func_no , u8 vfunc_no , struct pci_epf_bar *epf_bar ); ARGUMENTS epc the EPC device on which BAR has to be configured func_no the physical endpoint function number...
pci_epc_set_msi(9)
NAME pci_epc_set_msi - set the number of MSI interrupt numbers required SYNOPSIS int pci_epc_set_msi (struct pci_epc *epc , u8 func_no , u8 vfunc_no , u8 nr_irqs ); ARGUMENTS epc the EPC device on which MSI has to be configured func_no the physical endpoint function number in the EPC device ...
pci_epc_set_msix(9)
NAME pci_epc_set_msix - set the number of MSI-X interrupt numbers required SYNOPSIS int pci_epc_set_msix (struct pci_epc *epc , u8 func_no , u8 vfunc_no , u16 nr_irqs , enum pci_barno bir , u32 offset ); ARGUMENTS epc the EPC device on which MSI-X has to be configured func_no the physical endpoint...
pci_epc_start(9)
NAME pci_epc_start - start the PCI link SYNOPSIS int pci_epc_start (struct pci_epc *epc ); ARGUMENTS epc the link of *this* EPC device has to be started DESCRIPTION Invoke to start the PCI link SEE ALSO Kernel file ./drivers/pci/endpoint/pci-epc-core.c pci_epc_put(9), pci_epc_get(9), pci_epc_get_f...
pci_epc_stop(9)
NAME pci_epc_stop - stop the PCI link SYNOPSIS void pci_epc_stop (struct pci_epc *epc ); ARGUMENTS epc the link of the EPC device that has to be stopped DESCRIPTION Invoke to stop the PCI link SEE ALSO Kernel file ./drivers/pci/endpoint/pci-epc-core.c pci_epc_put(9), pci_epc_get(9), pci_epc_get_fi...
pci_epc_unmap_addr(9)
NAME pci_epc_unmap_addr - unmap CPU address from PCI address SYNOPSIS void pci_epc_unmap_addr (struct pci_epc *epc , u8 func_no , u8 vfunc_no , phys_addr_t phys_addr ); ARGUMENTS epc the EPC device on which address is allocated func_no the physical endpoint function number in the EPC device ...
pci_epc_write_header(9)
NAME pci_epc_write_header - write standard configuration header SYNOPSIS int pci_epc_write_header (struct pci_epc *epc , u8 func_no , u8 vfunc_no , struct pci_epf_header *header ); ARGUMENTS epc the EPC device to which the configuration header should be written func_no the physical endpoint functi...
pci_epf_add_vepf(9)
NAME pci_epf_add_vepf - associate virtual EP function to physical EP function SYNOPSIS int pci_epf_add_vepf (struct pci_epf *epf_pf , struct pci_epf *epf_vf ); ARGUMENTS epf_pf the physical EP function to which the virtual EP function should be associated epf_vf the virtual EP function to be added ...
pci_epf_align_inbound_addr(9)
NAME pci_epf_align_inbound_addr - Align the given address based on the BAR alignment requirement SYNOPSIS int pci_epf_align_inbound_addr (struct pci_epf *epf , enum pci_barno bar , u64 addr , dma_addr_t *base , size_t *off ); ARGUMENTS epf the EPF device bar the BAR number corresponding to the...
pci_epf_alloc_space(9)
NAME pci_epf_alloc_space - allocate memory for the PCI EPF register space SYNOPSIS void * pci_epf_alloc_space (struct pci_epf *epf , size_t size , enum pci_barno bar , const struct pci_epc_features *epc_features , enum pci_epc_interface_type type ); ARGUMENTS epf the EPF device to whom allocate the memory ...
pci_epf_assign_bar_space(9)
NAME pci_epf_assign_bar_space - Assign PCI EPF BAR space SYNOPSIS int pci_epf_assign_bar_space (struct pci_epf *epf , size_t size , enum pci_barno bar , const struct pci_epc_features *epc_features , enum pci_epc_interface_type type , dma_addr_t bar_addr ); ARGUMENTS epf EPF device to assign the BAR memory ...
pci_epf_bind(9)
NAME pci_epf_bind - Notify the function driver that the EPF device has been bound to a EPC device SYNOPSIS int pci_epf_bind (struct pci_epf *epf ); ARGUMENTS epf the EPF device which has been bound to the EPC device DESCRIPTION Invoke to notify the function driver that it has been bound to a EPC device SEE ...
pci_epf_create(9)
NAME pci_epf_create - create a new PCI EPF device SYNOPSIS struct pci_epf * pci_epf_create (const char *name ); ARGUMENTS name the name of the PCI EPF device. This name will be used to bind the EPF device to a EPF driver DESCRIPTION Invoke to create a new PCI EPF device by providing the name of the function d...
pci_epf_destroy(9)
NAME pci_epf_destroy - destroy the created PCI EPF device SYNOPSIS void pci_epf_destroy (struct pci_epf *epf ); ARGUMENTS epf the PCI EPF device that has to be destroyed. DESCRIPTION Invoke to destroy the PCI EPF device created by invoking pci_epf_create. SEE ALSO Kernel file ./drivers/pci/endpoint/pci-epf-...
pci_epf_free_space(9)
NAME pci_epf_free_space - free the allocated PCI EPF register space SYNOPSIS void pci_epf_free_space (struct pci_epf *epf , void *addr , enum pci_barno bar , enum pci_epc_interface_type type ); ARGUMENTS epf the EPF device from whom to free the memory addr the virtual address of the PCI EPF reg...
pci_epf_remove_vepf(9)
NAME pci_epf_remove_vepf - remove virtual EP function from physical EP function SYNOPSIS void pci_epf_remove_vepf (struct pci_epf *epf_pf , struct pci_epf *epf_vf ); ARGUMENTS epf_pf the physical EP function from which the virtual EP function should be removed epf_vf the virtual EP function to be re...
pci_epf_test_clean_dma_chan(9)
NAME pci_epf_test_clean_dma_chan - Function to cleanup EPF test DMA channel SYNOPSIS void pci_epf_test_clean_dma_chan (struct pci_epf_test *epf_test ); ARGUMENTS epf_test the EPF test device that performs data transfer operation DESCRIPTION Helper to cleanup EPF test DMA channel. SEE ALSO Kernel file ./drivers/p...
pci_epf_test_data_transfer(9)
NAME pci_epf_test_data_transfer - Function that uses dmaengine API to transfer data between PCIe EP and remote PCIe RC SYNOPSIS int pci_epf_test_data_transfer (struct pci_epf_test *epf_test , dma_addr_t dma_dst , dma_addr_t dma_src , size_t len , dma_addr_t dma_remote , enum dma_transfer_direction dir ); ARGUMENTS ep...
pci_epf_test_init_dma_chan(9)
NAME pci_epf_test_init_dma_chan - Function to initialize EPF test DMA channel SYNOPSIS int pci_epf_test_init_dma_chan (struct pci_epf_test *epf_test ); ARGUMENTS epf_test the EPF test device that performs data transfer operation DESCRIPTION Function to initialize EPF test DMA channel. SEE ALSO Kernel file ./driv...
pci_epf_type_add_cfs(9)
NAME pci_epf_type_add_cfs - Help function drivers to expose function specific attributes in configfs SYNOPSIS struct config_group * pci_epf_type_add_cfs (struct pci_epf *epf , struct config_group *group ); ARGUMENTS epf the EPF device that has to be configured using configfs group the parent con...
pci_epf_unbind(9)
NAME pci_epf_unbind - Notify the function driver that the binding between the EPF device and EPC device has been lost SYNOPSIS void pci_epf_unbind (struct pci_epf *epf ); ARGUMENTS epf the EPF device which has lost the binding with the EPC device DESCRIPTION Invoke to notify the function driver that the bind...
pci_epf_unregister_driver(9)
NAME pci_epf_unregister_driver - unregister the PCI EPF driver SYNOPSIS void pci_epf_unregister_driver (struct pci_epf_driver *driver ); ARGUMENTS driver the PCI EPF driver that has to be unregistered DESCRIPTION Invoke to unregister the PCI EPF driver. SEE ALSO Kernel file ./drivers/pci/endpoint/pci-epf-core....
pci_ext_cfg_avail(9)
NAME pci_ext_cfg_avail - can we access extended PCI config space? SYNOPSIS int pci_ext_cfg_avail (void ); ARGUMENTS void no arguments DESCRIPTION Returns 1 if we can access PCI extended config space (offsets greater than 0xff). This is the default implementation. Architecture implementations can override this...