id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
pci_p2pdma_distance_many(9) | NAME pci_p2pdma_distance_many - Determine the cumulative distance between a p2pdma provider and the clients in use.
SYNOPSIS int pci_p2pdma_distance_many (struct pci_dev *provider , struct device **clients , int num_clients , bool verbose );
ARGUMENTS provider p2pdma provider to check against the client list
... |
pci_p2pdma_enable_show(9) | NAME pci_p2pdma_enable_show - show a configfs/sysfs attribute indicating whether p2pdma is enabled
SYNOPSIS ssize_t pci_p2pdma_enable_show (char *page , struct pci_dev *p2p_dev , bool use_p2pdma );
ARGUMENTS page contents of the stored value
p2p_dev the selected p2p device (NULL if no device is sel... |
pci_p2pdma_enable_store(9) | NAME pci_p2pdma_enable_store - parse a configfs/sysfs attribute store to enable p2pdma
SYNOPSIS int pci_p2pdma_enable_store (const char *page , struct pci_dev **p2p_dev , bool *use_p2pdma );
ARGUMENTS page contents of the value to be stored
p2p_dev returns the PCI device that was selected to be use... |
pci_p2pdma_map_type(9) | NAME pci_p2pdma_map_type - Determine the mapping type for P2PDMA transfers
SYNOPSIS enum pci_p2pdma_map_type pci_p2pdma_map_type (struct p2pdma_provider *provider , struct device *dev );
ARGUMENTS provider P2PDMA provider structure
dev Target device for the transfer
DESCRIPTION Determines how pee... |
pci_p2pdma_state(9) | NAME pci_p2pdma_state - check the P2P transfer state of a page
SYNOPSIS enum pci_p2pdma_map_type pci_p2pdma_state (struct pci_p2pdma_map_state *state , struct device *dev , struct page *page );
ARGUMENTS state P2P state structure
dev device to transfer to/from
page page to map
DE... |
pci_p2pmem_alloc_sgl(9) | NAME pci_p2pmem_alloc_sgl - allocate peer-to-peer DMA memory in a scatterlist
SYNOPSIS struct scatterlist * pci_p2pmem_alloc_sgl (struct pci_dev *pdev , unsigned int *nents , u32 length );
ARGUMENTS pdev the device to allocate memory from
nents the number of SG entries in the list
length ... |
pci_p2pmem_find_many(9) | NAME pci_p2pmem_find_many - find a peer-to-peer DMA memory device compatible with the specified list of clients and shortest distance
SYNOPSIS struct pci_dev * pci_p2pmem_find_many (struct device **clients , int num_clients );
ARGUMENTS clients array of devices to check (NULL-terminated)
num_clients numbe... |
pci_p2pmem_free_sgl(9) | NAME pci_p2pmem_free_sgl - free a scatterlist allocated by pci_p2pmem_alloc_sgl()
SYNOPSIS void pci_p2pmem_free_sgl (struct pci_dev *pdev , struct scatterlist *sgl );
ARGUMENTS pdev the device to allocate memory from
sgl the allocated scatterlist
SEE ALSO Kernel file ./drivers/pci/p2pdma.... |
pci_p2pmem_publish(9) | NAME pci_p2pmem_publish - publish the peer-to-peer DMA memory for use by other devices with pci_p2pmem_find()
SYNOPSIS void pci_p2pmem_publish (struct pci_dev *pdev , bool publish );
ARGUMENTS pdev the device with peer-to-peer DMA memory to publish
publish set to true to publish the memory, false t... |
pci_p2pmem_virt_to_bus(9) | NAME pci_p2pmem_virt_to_bus - return the PCI bus address for a given virtual address obtained with pci_alloc_p2pmem()
SYNOPSIS pci_bus_addr_t pci_p2pmem_virt_to_bus (struct pci_dev *pdev , void *addr );
ARGUMENTS pdev the device the memory was allocated from
addr address of the memory that was a... |
pci_pasid_features(9) | NAME pci_pasid_features - Check which PASID features are supported
SYNOPSIS int pci_pasid_features (struct pci_dev *pdev );
ARGUMENTS pdev PCI device structure
DESCRIPTION Return a negative value when no PASID capability is present. Otherwise return a bitmask with supported features. Current features reporte... |
pci_pasid_status(9) | NAME pci_pasid_status - Check the PASID status
SYNOPSIS int pci_pasid_status (struct pci_dev *pdev );
ARGUMENTS pdev PCI device structure
DESCRIPTION Returns a negative value when no PASID capability is present. Otherwise the value of the control register is returned. Status reported are: PCI_PASID_CTRL_EN... |
pci_pcie_cap(9) | NAME pci_pcie_cap - get the saved PCIe capability offset
SYNOPSIS int pci_pcie_cap (struct pci_dev *dev );
ARGUMENTS dev PCI device
DESCRIPTION PCIe capability offset is calculated at PCI device initialization time and saved in the data structure. This function returns saved PCIe capability offset. Using... |
pci_pcie_type(9) | NAME pci_pcie_type - get the PCIe device/port type
SYNOPSIS int pci_pcie_type (const struct pci_dev *dev );
ARGUMENTS dev PCI device
SEE ALSO Kernel file ./include/linux/pci.h enum pci_interrupt_pin(9), pci_channel_state_t(9), pci_is_bridge(9), pci_is_vga(9), pci_is_display(9), struct pci_driver(9), PCI_DEVI... |
pci_platform_power_transition(9) | NAME pci_platform_power_transition - Use platform to change device power state
SYNOPSIS int pci_platform_power_transition (struct pci_dev *dev , pci_power_t state );
ARGUMENTS dev PCI device to handle.
state State to put the device into.
SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_b... |
pci_pm_init(9) | NAME pci_pm_init - Initialize PM functions of given PCI device
SYNOPSIS void pci_pm_init (struct pci_dev *dev );
ARGUMENTS dev PCI device to handle.
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... |
pci_pm_reset(9) | NAME pci_pm_reset - Put device into PCI_D3 and back into PCI_D0.
SYNOPSIS int pci_pm_reset (struct pci_dev *dev , bool probe );
ARGUMENTS dev Device to reset.
probe if true, return 0 if the device can be reset this way.
DESCRIPTION If dev supports native PCI PM and its PCI_PM_CTRL_NO_SOFT_RE... |
pci_pme_active(9) | NAME pci_pme_active - enable or disable PCI device's PME# function
SYNOPSIS void pci_pme_active (struct pci_dev *dev , bool enable );
ARGUMENTS dev PCI device to handle.
enable
DESCRIPTION The caller must verify that the device is capable of generating PME# before calling this function with enable eq... |
pci_pme_capable(9) | NAME pci_pme_capable - check the capability of PCI device to generate PME#
SYNOPSIS bool pci_pme_capable (struct pci_dev *dev , pci_power_t state );
ARGUMENTS dev PCI device to handle.
state PCI state from which device will issue PME#.
SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_bus... |
pci_pme_restore(9) | NAME pci_pme_restore - Restore PME configuration after config space restore.
SYNOPSIS void pci_pme_restore (struct pci_dev *dev );
ARGUMENTS dev PCI device to update.
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_... |
pci_pme_wakeup(9) | NAME pci_pme_wakeup - Wake up a PCI device if its PME Status bit is set.
SYNOPSIS int pci_pme_wakeup (struct pci_dev *dev , void *pme_poll_reset );
ARGUMENTS dev Device to handle.
pme_poll_reset
Whether or not to reset the device's pme_poll flag.
DESCRIPTION Check if dev has genera... |
pci_pme_wakeup_bus(9) | NAME pci_pme_wakeup_bus - Walk given bus and wake up devices on it, if necessary.
SYNOPSIS void pci_pme_wakeup_bus (struct pci_bus *bus );
ARGUMENTS bus Top bus of the subtree to walk.
SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_busnr(9), pci_status_get_and_clear_errors(9), pci_dev_str_match_pat... |
pci_power_up(9) | NAME pci_power_up - Put the given device into D0
SYNOPSIS int pci_power_up (struct pci_dev *dev );
ARGUMENTS dev PCI device to power up
DESCRIPTION On success, return 0 or 1, depending on whether or not it is necessary to restore the device's BARs subsequently (1 is returned in that case). On failure, retur... |
pci_prepare_ats(9) | NAME pci_prepare_ats - Setup the PS for ATS
SYNOPSIS int pci_prepare_ats (struct pci_dev *dev , int ps );
ARGUMENTS dev the PCI device
ps the IOMMU page shift
DESCRIPTION This must be done by the IOMMU driver on the PF before any VFs are created to ensure that the VF can have ATS enabled. R... |
pci_prepare_to_sleep(9) | NAME pci_prepare_to_sleep - prepare PCI device for system-wide transition into a sleep state
SYNOPSIS int pci_prepare_to_sleep (struct pci_dev *dev );
ARGUMENTS dev Device to handle.
DESCRIPTION Choose the power state appropriate for the device depending on whether it can wake up the system and/or is power m... |
pci_prg_resp_pasid_required(9) | NAME pci_prg_resp_pasid_required - Return PRG Response PASID Required bit status.
SYNOPSIS int pci_prg_resp_pasid_required (struct pci_dev *pdev );
ARGUMENTS pdev PCI device structure
DESCRIPTION Returns 1 if PASID is required in PRG Response Message, 0 otherwise.
SEE ALSO Kernel file ./drivers/pci/ats.c... |
pci_pri_supported(9) | NAME pci_pri_supported - Check if PRI is supported.
SYNOPSIS bool pci_pri_supported (struct pci_dev *pdev );
ARGUMENTS pdev PCI device structure
DESCRIPTION Returns true if PRI capability is present, false otherwise.
SEE ALSO Kernel file ./drivers/pci/ats.c pci_ats_supported(9), pci_prepare_ats(9), pc... |
pci_probe_reset_bus(9) | NAME pci_probe_reset_bus - probe whether a PCI bus can be reset
SYNOPSIS int pci_probe_reset_bus (struct pci_bus *bus );
ARGUMENTS bus PCI bus to probe
DESCRIPTION Return 0 if bus can be reset, negative if a bus reset is not supported.
SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_busnr(9), pci_s... |
pci_probe_reset_slot(9) | NAME pci_probe_reset_slot - probe whether a PCI slot can be reset
SYNOPSIS int pci_probe_reset_slot (struct pci_slot *slot );
ARGUMENTS slot PCI slot to probe
DESCRIPTION Return 0 if slot can be reset, negative if a slot reset is not supported.
SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_busnr(9)... |
pci_process_bridge_OF_ranges(9) | NAME pci_process_bridge_OF_ranges - Parse PCI bridge resources from device tree
SYNOPSIS void pci_process_bridge_OF_ranges (struct pci_controller *hose , struct device_node *dev , int primary );
ARGUMENTS hose newly allocated pci_controller to be setup
dev device node of the host bridge
... |
pci_pwrctrl_create_devices(9) | NAME pci_pwrctrl_create_devices - Create pwrctrl devices
SYNOPSIS int pci_pwrctrl_create_devices (struct device *parent );
ARGUMENTS parent PCI host controller device
DESCRIPTION Recursively create pwrctrl devices for the devicetree hierarchy below the specified PCI host controller in a depth first manner. On e... |
pci_pwrctrl_destroy_devices(9) | NAME pci_pwrctrl_destroy_devices - Destroy pwrctrl devices
SYNOPSIS void pci_pwrctrl_destroy_devices (struct device *parent );
ARGUMENTS parent PCI host controller device
DESCRIPTION Recursively destroy pwrctrl devices for the devicetree hierarchy below the specified PCI host controller in a depth first manner.... |
pci_pwrctrl_device_set_ready(9) | NAME pci_pwrctrl_device_set_ready - Notify the pwrctrl subsystem that the PCI device is powered-up and ready to be detected.
SYNOPSIS int pci_pwrctrl_device_set_ready (struct pci_pwrctrl *pwrctrl );
ARGUMENTS pwrctrl PCI power control data.
RETURN 0 on success, negative error number on error.
NOTE This function... |
pci_pwrctrl_device_unset_ready(9) | NAME pci_pwrctrl_device_unset_ready - Notify the pwrctrl subsystem that the PCI device is about to be powered-down.
SYNOPSIS void pci_pwrctrl_device_unset_ready (struct pci_pwrctrl *pwrctrl );
ARGUMENTS pwrctrl PCI power control data.
SEE ALSO Kernel file ./drivers/pci/pwrctrl/core.c pci_pwrctrl_init(9), pci... |
pci_pwrctrl_init(9) | NAME pci_pwrctrl_init - Initialize the PCI power control context struct
SYNOPSIS void pci_pwrctrl_init (struct pci_pwrctrl *pwrctrl , struct device *dev );
ARGUMENTS pwrctrl PCI power control data
dev Parent device
SEE ALSO Kernel file ./drivers/pci/pwrctrl/core.c pci_pwrctrl_device_set_ready... |
pci_pwrctrl_power_off_devices(9) | NAME pci_pwrctrl_power_off_devices - Power off pwrctrl devices
SYNOPSIS void pci_pwrctrl_power_off_devices (struct device *parent );
ARGUMENTS parent PCI host controller device
DESCRIPTION Recursively traverse all pwrctrl devices for the devicetree hierarchy below the specified PCI host controller and power the... |
pci_pwrctrl_power_on_devices(9) | NAME pci_pwrctrl_power_on_devices - Power on pwrctrl devices
SYNOPSIS int pci_pwrctrl_power_on_devices (struct device *parent );
ARGUMENTS parent PCI host controller device
DESCRIPTION Recursively traverse all pwrctrl devices for the devicetree hierarchy below the specified PCI host controller and power them on... |
pci_read_legacy_io(9) | NAME pci_read_legacy_io - read byte(s) from legacy I/O port space
SYNOPSIS ssize_t pci_read_legacy_io (struct file *filp , struct kobject *kobj , const struct bin_attribute *bin_attr , char *buf , loff_t off , size_t count );
ARGUMENTS filp open sysfs file
kobj kobject corresponding to file to r... |
pci_read_rom(9) | NAME pci_read_rom - read a PCI ROM
SYNOPSIS ssize_t pci_read_rom (struct file *filp , struct kobject *kobj , const struct bin_attribute *bin_attr , char *buf , loff_t off , size_t count );
ARGUMENTS filp sysfs file
kobj kernel object handle
bin_attr struct bin_attribute for this file
... |
pci_read_vpd(9) | NAME pci_read_vpd - Read one entry from Vital Product Data
SYNOPSIS ssize_t pci_read_vpd (struct pci_dev *dev , loff_t pos , size_t count , void *buf );
ARGUMENTS dev PCI device struct
pos offset in VPD space
count number of bytes to read
buf pointer to where to s... |
pci_real_dma_dev(9) | NAME pci_real_dma_dev - Get PCI DMA device for PCI device
SYNOPSIS struct pci_dev * pci_real_dma_dev (struct pci_dev *dev );
ARGUMENTS dev the PCI device that may have a PCI DMA alias
DESCRIPTION Permits the platform to provide architecture-specific functionality to devices needing to alias DMA ... |
pci_rebar_bytes_to_size(9) | NAME pci_rebar_bytes_to_size - Convert size in bytes to PCI BAR Size
SYNOPSIS int pci_rebar_bytes_to_size (u64 bytes );
ARGUMENTS bytes size in bytes
DESCRIPTION Convert size in bytes to encoded BAR Size in Resizable BAR Capability (PCIe r6.2, sec. 7.8.6.3).
RETURN encoded BAR Size as defined in the PCIe spec... |
pci_rebar_find_pos(9) | NAME pci_rebar_find_pos - find position of resize control reg for BAR
SYNOPSIS int pci_rebar_find_pos (struct pci_dev *pdev , int bar );
ARGUMENTS pdev PCI device
bar BAR to find
DESCRIPTION Helper to find the position of the control register for a BAR.
RETURN * -ENOTSUPP if resizable BARs ar... |
pci_rebar_get_current_size(9) | NAME pci_rebar_get_current_size - get the current size of a Resizable BAR
SYNOPSIS int pci_rebar_get_current_size (struct pci_dev *pdev , int bar );
ARGUMENTS pdev PCI device
bar BAR to get the size from
DESCRIPTION Read the current size of a BAR from the Resizable BAR config.
RETURN BAR Size... |
pci_rebar_get_max_size(9) | NAME pci_rebar_get_max_size - get the maximum supported size of a BAR
SYNOPSIS int pci_rebar_get_max_size (struct pci_dev *pdev , int bar );
ARGUMENTS pdev PCI device
bar BAR to query
DESCRIPTION Get the largest supported size of a resizable BAR as a size.
RETURN the encoded maximum BAR size ... |
pci_rebar_get_possible_sizes(9) | NAME pci_rebar_get_possible_sizes - get possible sizes for Resizable BAR
SYNOPSIS u64 pci_rebar_get_possible_sizes (struct pci_dev *pdev , int bar );
ARGUMENTS pdev PCI device
bar BAR to query
DESCRIPTION Get the possible sizes of a resizable BAR as bitmask.
RETURN A bitmask of possible sizes... |
pci_rebar_set_size(9) | NAME pci_rebar_set_size - set a new size for a Resizable BAR
SYNOPSIS int pci_rebar_set_size (struct pci_dev *pdev , int bar , int size );
ARGUMENTS pdev PCI device
bar BAR to set size to
size new size as defined in the PCIe spec (0=1MB, 31=128TB)
DESCRIPTION Set the new size of... |
pci_rebar_size_supported(9) | NAME pci_rebar_size_supported - check if size is supported for BAR
SYNOPSIS bool pci_rebar_size_supported (struct pci_dev *pdev , int bar , int size );
ARGUMENTS pdev PCI device
bar BAR to check
size encoded size as defined in the PCIe spec (0=1MB, 31=128TB)
RETURN true if bar i... |
pci_rebar_size_to_bytes(9) | NAME pci_rebar_size_to_bytes - Convert encoded BAR Size to size in bytes
SYNOPSIS resource_size_t pci_rebar_size_to_bytes (int size );
ARGUMENTS size encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB)
RETURN BAR size in bytes
SEE ALSO Kernel file ./drivers/pci/rebar.c pci_rebar_bytes_to_size(9... |
pci_reenable_device(9) | NAME pci_reenable_device - Resume abandoned device
SYNOPSIS int pci_reenable_device (struct pci_dev *dev );
ARGUMENTS dev PCI device to be resumed
NOTE This function is a backend of pci_default_resume and is not supposed to be called by normal code, write proper resume handler and use it instead.
SEE ALSO K... |
pci_refresh_power_state(9) | NAME pci_refresh_power_state - Refresh the given device's power state data
SYNOPSIS void pci_refresh_power_state (struct pci_dev *dev );
ARGUMENTS dev Target PCI device.
DESCRIPTION Ask the platform to refresh the devices power state information and invoke pci_update_current_state to update its current PCI p... |
pci_release_dev(9) | NAME pci_release_dev - Free a PCI device structure when all users of it are finished
SYNOPSIS void pci_release_dev (struct device *dev );
ARGUMENTS dev device that's been disconnected
DESCRIPTION Will be called only by the device core when all users of this PCI device are done.
SEE ALSO Kernel file ./driv... |
pci_release_region(9) | NAME pci_release_region - Release a PCI bar
SYNOPSIS void pci_release_region (struct pci_dev *pdev , int bar );
ARGUMENTS pdev PCI device whose resources were previously reserved by pci_request_region
bar BAR to release
DESCRIPTION Releases the PCI I/O and memory resources previously reserved ... |
pci_release_regions(9) | NAME pci_release_regions - Release reserved PCI I/O and memory resources
SYNOPSIS void pci_release_regions (struct pci_dev *pdev );
ARGUMENTS pdev PCI device whose resources were previously reserved by pci_request_regions
DESCRIPTION Releases all PCI I/O and memory resources previously reserved by a successfu... |
pci_release_selected_regions(9) | NAME pci_release_selected_regions - Release selected PCI I/O and memory resources
SYNOPSIS void pci_release_selected_regions (struct pci_dev *pdev , int bars );
ARGUMENTS pdev PCI device whose resources were previously reserved
bars Bitmask of BARs to be released
DESCRIPTION Release selected PC... |
pci_remap_iospace(9) | NAME pci_remap_iospace - Remap the memory mapped I/O space
SYNOPSIS int pci_remap_iospace (const struct resource *res , phys_addr_t phys_addr );
ARGUMENTS res Resource describing the I/O space
phys_addr physical address of range to be mapped
DESCRIPTION Remap the memory mapped I/O space described b... |
pci_remove_resource_files(9) | NAME pci_remove_resource_files - cleanup resource files
SYNOPSIS void pci_remove_resource_files (struct pci_dev *pdev );
ARGUMENTS pdev dev to cleanup
DESCRIPTION If we created resource files for pdev, remove them from sysfs and free their resources.
SEE ALSO Kernel file ./drivers/pci/pci-sysfs.c pci_read... |
pci_remove_sysfs_dev_files(9) | NAME pci_remove_sysfs_dev_files - cleanup PCI specific sysfs files
SYNOPSIS void pci_remove_sysfs_dev_files (struct pci_dev *pdev );
ARGUMENTS pdev device whose entries we should free
DESCRIPTION Cleanup when pdev is removed from sysfs.
SEE ALSO Kernel file ./drivers/pci/pci-sysfs.c pci_read_legacy_io(9),... |
pci_request_acs(9) | NAME pci_request_acs - ask for ACS to be enabled if supported
SYNOPSIS void pci_request_acs (void );
ARGUMENTS void no arguments
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(9), pci_b... |
pci_request_irq(9) | NAME pci_request_irq - allocate an interrupt line for a PCI device
SYNOPSIS int pci_request_irq (struct pci_dev *dev , unsigned int nr , irq_handler_t handler , irq_handler_t thread_fn , void *dev_id , const char *fmt , ... );
ARGUMENTS dev PCI device to operate on
nr device-relative interrup... |
pci_request_region(9) | NAME pci_request_region - Reserve PCI I/O and memory resource
SYNOPSIS int pci_request_region (struct pci_dev *pdev , int bar , const char *name );
ARGUMENTS pdev PCI device whose resources are to be reserved
bar BAR to be reserved
name name of the driver requesting the resource
... |
pci_request_regions(9) | NAME pci_request_regions - Reserve PCI I/O and memory resources
SYNOPSIS int pci_request_regions (struct pci_dev *pdev , const char *name );
ARGUMENTS pdev PCI device whose resources are to be reserved
name name of the driver requesting the resources
DESCRIPTION Mark all PCI regions associat... |
pci_request_regions_exclusive(9) | NAME pci_request_regions_exclusive - Reserve PCI I/O and memory resources
SYNOPSIS int pci_request_regions_exclusive (struct pci_dev *pdev , const char *name );
ARGUMENTS pdev PCI device whose resources are to be reserved
name name of the driver requesting the resources
RETURN 0 on success, neg... |
pci_request_selected_regions(9) | NAME pci_request_selected_regions - Reserve selected PCI I/O and memory resources
SYNOPSIS int pci_request_selected_regions (struct pci_dev *pdev , int bars , const char *name );
ARGUMENTS pdev PCI device whose resources are to be reserved
bars Bitmask of BARs to be requested
name ... |
pci_request_selected_regions_exclusive(9) | NAME pci_request_selected_regions_exclusive - Request regions exclusively
SYNOPSIS int pci_request_selected_regions_exclusive (struct pci_dev *pdev , int bars , const char *name );
ARGUMENTS pdev PCI device to request regions from
bars bit mask of BARs to request
name name of the ... |
pci_rescan_bus(9) | NAME pci_rescan_bus - Scan a PCI bus for devices
SYNOPSIS unsigned int pci_rescan_bus (struct pci_bus *bus );
ARGUMENTS bus PCI bus to scan
DESCRIPTION Scan a PCI bus and child buses for new devices, add them, and enable them. Returns the max number of subordinate bus discovered.
SEE ALSO Kernel file ./d... |
pci_rescan_bus_bridge_resize(9) | NAME pci_rescan_bus_bridge_resize - Scan a PCI bus for devices
SYNOPSIS unsigned int pci_rescan_bus_bridge_resize (struct pci_dev *bridge );
ARGUMENTS bridge PCI bridge for the bus to scan
DESCRIPTION Scan a PCI bus and child buses for new devices, add them, and enable them, resizing bridge mmio/io resource i... |
pci_reset_bus(9) | NAME pci_reset_bus - Try to reset a PCI bus
SYNOPSIS int pci_reset_bus (struct pci_dev *pdev );
ARGUMENTS pdev top level PCI device to reset via slot/bus
DESCRIPTION Same as above except return -EAGAIN if the bus cannot be locked
SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_busnr(9), pci_status_g... |
pci_reset_function(9) | NAME pci_reset_function - quiesce and reset a PCI device function
SYNOPSIS int pci_reset_function (struct pci_dev *dev );
ARGUMENTS dev PCI device to reset
DESCRIPTION Some devices allow an individual function to be reset without affecting other functions in the same device. The PCI device must be respo... |
pci_reset_function_locked(9) | NAME pci_reset_function_locked - quiesce and reset a PCI device function
SYNOPSIS int pci_reset_function_locked (struct pci_dev *dev );
ARGUMENTS dev PCI device to reset
DESCRIPTION Some devices allow an individual function to be reset without affecting other functions in the same device. The PCI device... |
pci_reset_pri(9) | NAME pci_reset_pri - Resets device's PRI state
SYNOPSIS int pci_reset_pri (struct pci_dev *pdev );
ARGUMENTS pdev PCI device structure
DESCRIPTION The PRI capability must be disabled before this function is called. Returns 0 on success, negative value on error.
SEE ALSO Kernel file ./drivers/pci/ats.c ... |
pci_resize_resource(9) | NAME pci_resize_resource - reconfigure a Resizable BAR and resources
SYNOPSIS int pci_resize_resource (struct pci_dev *dev , int resno , int size , int exclude_bars );
ARGUMENTS dev the PCI device
resno index of the BAR to be resized
size new size as defined in the spec (0=1MB, 31... |
pci_resource_name(9) | NAME pci_resource_name - Return the name of the PCI resource
SYNOPSIS const char * pci_resource_name (struct pci_dev *dev , unsigned int i );
ARGUMENTS dev PCI device to query
i index of the resource
DESCRIPTION Return the standard PCI resource (BAR) name according to their index.
SEE ALSO... |
pci_resource_num(9) | NAME pci_resource_num - Reverse lookup resource number from device resources
SYNOPSIS int pci_resource_num (const struct pci_dev *dev , const struct resource *res );
ARGUMENTS dev PCI device
res Resource to lookup index for (MUST be a dev's resource)
DESCRIPTION Perform reverse lookup to dete... |
pci_restore_bars(9) | NAME pci_restore_bars - restore a device's BAR values (e.g. after wake-up)
SYNOPSIS void pci_restore_bars (struct pci_dev *dev );
ARGUMENTS dev PCI device to have its BARs restored
DESCRIPTION Restore the BAR values for a given device, so as to make it accessible by its driver.
SEE ALSO Kernel file ./driv... |
pci_restore_iov_state(9) | NAME pci_restore_iov_state - restore the state of the IOV capability
SYNOPSIS void pci_restore_iov_state (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_updat... |
pci_restore_msi_state(9) | NAME pci_restore_msi_state - Restore cached MSI(-X) state on device
SYNOPSIS void pci_restore_msi_state (struct pci_dev *dev );
ARGUMENTS dev the PCI device to operate on
DESCRIPTION Write the Linux-cached MSI(-X) state back on device. This is typically useful upon system resume, or after an error-recovery P... |
pci_restore_pasid_state(9) | NAME pci_restore_pasid_state - Restore PASID capabilities
SYNOPSIS void pci_restore_pasid_state (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_restore_pri_state(9) | NAME pci_restore_pri_state - Restore PRI
SYNOPSIS void pci_restore_pri_state (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_page_aligned(9)... |
pci_restore_standard_config(9) | NAME pci_restore_standard_config - restore standard config registers of PCI device
SYNOPSIS int pci_restore_standard_config (struct pci_dev *pci_dev );
ARGUMENTS pci_dev PCI device to handle
SEE ALSO Kernel file ./drivers/pci/pci-driver.c pci_add_dynid(9), pci_match_id(9), pci_match_device(9), new_id_store(9),... |
pci_restore_state(9) | NAME pci_restore_state - Restore the saved state of a PCI device
SYNOPSIS void pci_restore_state (struct pci_dev *dev );
ARGUMENTS dev PCI device that we're dealing with
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_s... |
pci_restore_vc_state(9) | NAME pci_restore_vc_state - Restore VC state from save buffer
SYNOPSIS void pci_restore_vc_state (struct pci_dev *dev );
ARGUMENTS dev device
DESCRIPTION For each type of VC capability, VC/VC9/MFVC, find the capability and restore it from the previously saved buffer.
SEE ALSO Kernel file ./drivers/pci/vc.c ... |
pci_resume_bus(9) | NAME pci_resume_bus - Walk given bus and runtime resume devices on it
SYNOPSIS void pci_resume_bus (struct pci_bus *bus );
ARGUMENTS bus Top bus of the subtree to walk.
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_st... |
pci_save_state(9) | NAME pci_save_state - save the PCI configuration space of a device before suspending
SYNOPSIS int pci_save_state (struct pci_dev *dev );
ARGUMENTS dev PCI device that we're dealing with
SEE ALSO Kernel file ./drivers/pci/pci.c pci_bus_max_busnr(9), pci_status_get_and_clear_errors(9), pci_dev_str_match_pa... |
pci_save_vc_state(9) | NAME pci_save_vc_state - Save VC state to pre-allocate save buffer
SYNOPSIS int pci_save_vc_state (struct pci_dev *dev );
ARGUMENTS dev device
DESCRIPTION For each type of VC capability, VC/VC9/MFVC, find the capability and save it to the pre-allocated save buffer.
SEE ALSO Kernel file ./drivers/pci/vc.c pc... |
pci_scan_child_bus(9) | NAME pci_scan_child_bus - Scan devices below a bus
SYNOPSIS unsigned int pci_scan_child_bus (struct pci_bus *bus );
ARGUMENTS bus Bus to scan for devices
DESCRIPTION Scans devices below bus including subordinate buses. Returns new subordinate number including all the found devices.
SEE ALSO Kernel file ./... |
pci_scan_child_bus_extend(9) | NAME pci_scan_child_bus_extend - Scan devices below a bus
SYNOPSIS unsigned int pci_scan_child_bus_extend (struct pci_bus *bus , unsigned int available_buses );
ARGUMENTS bus Bus to scan for devices
available_buses
Total number of buses available (0 does not try to extend beyond the... |
pci_scan_slot(9) | NAME pci_scan_slot - Scan a PCI slot on a bus for devices
SYNOPSIS int pci_scan_slot (struct pci_bus *bus , int devfn );
ARGUMENTS bus PCI bus to scan
devfn slot number to scan (must have zero function)
DESCRIPTION Scan a PCI slot on the specified PCI bus for devices, adding discovered devices ... |
pci_select_bars(9) | NAME pci_select_bars - Make BAR mask from the type of resource
SYNOPSIS int pci_select_bars (struct pci_dev *dev , unsigned long flags );
ARGUMENTS dev the PCI device for which BAR mask is made
flags resource type mask to be selected
DESCRIPTION This helper routine makes bar mask from the type ... |
pci_set_cacheline_size(9) | NAME pci_set_cacheline_size - ensure the CACHE_LINE_SIZE register is programmed
SYNOPSIS int pci_set_cacheline_size (struct pci_dev *dev );
ARGUMENTS dev the PCI device for which MWI is to be enabled
DESCRIPTION Helper function for pci_set_mwi. Originally copied from drivers/net/acenic.c. Copyright 1998-20... |
pci_set_full_power_state(9) | NAME pci_set_full_power_state - Put a PCI device into D0 and update its state
SYNOPSIS int pci_set_full_power_state (struct pci_dev *dev , bool locked );
ARGUMENTS dev PCI device to power up
locked whether pci_bus_sem is held
DESCRIPTION Call pci_power_up to put dev into D0, read from it... |
pci_set_low_power_state(9) | NAME pci_set_low_power_state - Put a PCI device into a low-power state.
SYNOPSIS int pci_set_low_power_state (struct pci_dev *dev , pci_power_t state , bool locked );
ARGUMENTS dev PCI device to handle.
state PCI power state (D1, D2, D3hot) to put the device into.
locked whether pci... |
pci_set_master(9) | NAME pci_set_master - enables bus-mastering for device dev
SYNOPSIS void pci_set_master (struct pci_dev *dev );
ARGUMENTS dev the PCI device to enable
DESCRIPTION Enables bus-mastering on the device and calls pcibios_set_master to do the needed arch specific settings.
SEE ALSO Kernel file ./drivers/pci/pc... |
pci_set_mwi(9) | NAME pci_set_mwi - enables memory-write-invalidate PCI transaction
SYNOPSIS int pci_set_mwi (struct pci_dev *dev );
ARGUMENTS dev the PCI device for which MWI is enabled
DESCRIPTION Enables the Memory-Write-Invalidate transaction in PCI_COMMAND.
RETURN An appropriate -ERRNO error value on error, or zero for... |
pci_set_of_node(9) | NAME pci_set_of_node - Find and set device's DT device_node
SYNOPSIS int pci_set_of_node (struct pci_dev *dev );
ARGUMENTS dev the PCI device structure to fill
DESCRIPTION Returns 0 on success with of_node set or when no device is described in the DT. Returns -ENODEV if the device is present, but disabled in... |
pci_set_pcie_reset_state(9) | NAME pci_set_pcie_reset_state - set reset state for device dev
SYNOPSIS int pci_set_pcie_reset_state (struct pci_dev *dev , enum pcie_reset_state state );
ARGUMENTS dev the PCIe device reset
state Reset state to enter into
DESCRIPTION Sets the PCI reset state for the device.
SEE ALSO Kernel f... |
pci_set_power_state(9) | NAME pci_set_power_state - Set the power state of a PCI device
SYNOPSIS int pci_set_power_state (struct pci_dev *dev , pci_power_t state );
ARGUMENTS dev PCI device to handle.
state PCI power state (D0, D1, D2, D3hot) to put the device into.
DESCRIPTION Transition a device to a new power state,... |
pci_set_vga_state(9) | NAME pci_set_vga_state - set VGA decode state on device and parents if requested
SYNOPSIS int pci_set_vga_state (struct pci_dev *dev , bool decode , unsigned int command_bits , u32 flags );
ARGUMENTS dev the PCI device
decode true = enable decoding, false = disable decoding
command_bits
... |
pci_setup_device(9) | NAME pci_setup_device - Fill in class and map information of a device
SYNOPSIS int pci_setup_device (struct pci_dev *dev );
ARGUMENTS dev the device structure to fill
DESCRIPTION Initialize the device structure with information about the device's vendor,class,memory and IO-space addresses, IRQ lines etc. C... |
pci_setup_msi_device_domain(9) | NAME pci_setup_msi_device_domain - Setup a device MSI interrupt domain
SYNOPSIS bool pci_setup_msi_device_domain (struct pci_dev *pdev , unsigned int hwsize );
ARGUMENTS pdev The PCI device to create the domain on
hwsize The maximum number of MSI vectors
RETURN True when: - The device does not h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.