id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
pci_ext_cfg_is_aliased(9) | NAME pci_ext_cfg_is_aliased - Is ext config space just an alias of std config?
SYNOPSIS bool pci_ext_cfg_is_aliased (struct pci_dev *dev );
ARGUMENTS dev PCI device
DESCRIPTION PCI Express to PCI/PCI-X Bridge Specification, rev 1.0, 4.1.4 says that when forwarding a type1 configuration request the bridge mus... |
pci_find_bus(9) | NAME pci_find_bus - locate PCI bus from a given domain and bus number
SYNOPSIS struct pci_bus * pci_find_bus (int domain , int busnr );
ARGUMENTS domain number of PCI domain to search
busnr number of desired PCI bus
DESCRIPTION Given a PCI bus number and domain number, the desired PCI bus is locat... |
pci_find_capability(9) | NAME pci_find_capability - query for devices' capabilities
SYNOPSIS u8 pci_find_capability (struct pci_dev *dev , int cap );
ARGUMENTS dev PCI device to query
cap capability code
DESCRIPTION Tell if a device supports a given PCI capability. Returns the address of the requested capability ... |
pci_find_doe_mailbox(9) | NAME pci_find_doe_mailbox - Find Data Object Exchange mailbox
SYNOPSIS struct pci_doe_mb * pci_find_doe_mailbox (struct pci_dev *pdev , u16 vendor , u8 type );
ARGUMENTS pdev PCI device
vendor Vendor ID
type Data Object Type
DESCRIPTION Find first DOE mailbox of a PCI device which ... |
pci_find_dvsec_capability(9) | NAME pci_find_dvsec_capability - Find DVSEC for vendor
SYNOPSIS u16 pci_find_dvsec_capability (struct pci_dev *dev , u16 vendor , u16 dvsec );
ARGUMENTS dev PCI device to query
vendor Vendor ID to match for the DVSEC
dvsec Designated Vendor-specific capability ID
DESCRIPTION If DVS... |
pci_find_ext_capability(9) | NAME pci_find_ext_capability - Find an extended capability
SYNOPSIS u16 pci_find_ext_capability (struct pci_dev *dev , int cap );
ARGUMENTS dev PCI device to query
cap capability code
DESCRIPTION Returns the address of the requested extended capability structure within the device's PCI confi... |
pci_find_ht_capability(9) | NAME pci_find_ht_capability - query a device's HyperTransport capabilities
SYNOPSIS u8 pci_find_ht_capability (struct pci_dev *dev , int ht_cap );
ARGUMENTS dev PCI device to query
ht_cap HyperTransport capability code
DESCRIPTION Tell if a device supports a given HyperTransport capability. Re... |
pci_find_next_bus(9) | NAME pci_find_next_bus - begin or continue searching for a PCI bus
SYNOPSIS struct pci_bus * pci_find_next_bus (const struct pci_bus *from );
ARGUMENTS from Previous PCI bus found, or NULL for new search.
DESCRIPTION Iterates through the list of known PCI buses. A new search is initiated by passing NULL as t... |
pci_find_next_ext_capability(9) | NAME pci_find_next_ext_capability - Find an extended capability
SYNOPSIS u16 pci_find_next_ext_capability (struct pci_dev *dev , u16 start , int cap );
ARGUMENTS dev PCI device to query
start address at which to start looking (0 to start at beginning of list)
cap capability code
... |
pci_find_next_ht_capability(9) | NAME pci_find_next_ht_capability - query a device's HyperTransport capabilities
SYNOPSIS u8 pci_find_next_ht_capability (struct pci_dev *dev , u8 pos , int ht_cap );
ARGUMENTS dev PCI device to query
pos Position from which to continue searching
ht_cap HyperTransport capability co... |
pci_find_parent_resource(9) | NAME pci_find_parent_resource - return resource region of parent bus of given region
SYNOPSIS struct resource * pci_find_parent_resource (const struct pci_dev *dev , struct resource *res );
ARGUMENTS dev PCI device structure contains resources to be searched
res child resource record for which... |
pci_find_resource(9) | NAME pci_find_resource - Return matching PCI device resource
SYNOPSIS struct resource * pci_find_resource (struct pci_dev *dev , struct resource *res );
ARGUMENTS dev PCI device to query
res Resource to look for
DESCRIPTION Goes over standard PCI resources (BARs) and checks if the given resou... |
pci_find_vsec_capability(9) | NAME pci_find_vsec_capability - Find a vendor-specific extended capability
SYNOPSIS u16 pci_find_vsec_capability (struct pci_dev *dev , u16 vendor , int cap );
ARGUMENTS dev PCI device to query
vendor Vendor ID for which capability is defined
cap Vendor-specific capability ID
DES... |
pci_finish_runtime_suspend(9) | NAME pci_finish_runtime_suspend - Carry out PCI-specific part of runtime suspend.
SYNOPSIS int pci_finish_runtime_suspend (struct pci_dev *dev );
ARGUMENTS dev PCI device being suspended.
DESCRIPTION Prepare dev to generate wake-up events at run time and put it into a low power state.
SEE ALSO Kernel file ... |
pci_free_irq(9) | NAME pci_free_irq - free an interrupt allocated with pci_request_irq
SYNOPSIS void pci_free_irq (struct pci_dev *dev , unsigned int nr , void *dev_id );
ARGUMENTS dev PCI device to operate on
nr device-relative interrupt vector index (0-based).
dev_id Device identity to free
DES... |
pci_free_irq_vectors(9) | NAME pci_free_irq_vectors - Free previously allocated IRQs for a device
SYNOPSIS void pci_free_irq_vectors (struct pci_dev *dev );
ARGUMENTS dev the PCI device to operate on
DESCRIPTION Undo the interrupt vector allocations and possible device MSI/MSI-X enablement earlier done through pci_alloc_irq_vectors_a... |
pci_free_p2pmem(9) | NAME pci_free_p2pmem - free peer-to-peer DMA memory
SYNOPSIS void pci_free_p2pmem (struct pci_dev *pdev , void *addr , size_t size );
ARGUMENTS pdev the device the memory was allocated from
addr address of the memory that was allocated
size number of bytes that were allocated
SEE... |
pci_get_base_class(9) | NAME pci_get_base_class - searching for a PCI device by matching against the base class code only
SYNOPSIS struct pci_dev * pci_get_base_class (unsigned int class , struct pci_dev *from );
ARGUMENTS class search for a PCI device with this base class code
from Previous PCI device found in search, ... |
pci_get_class(9) | NAME pci_get_class - begin or continue searching for a PCI device by class
SYNOPSIS struct pci_dev * pci_get_class (unsigned int class , struct pci_dev *from );
ARGUMENTS class search for a PCI device with this class designation
from Previous PCI device found in search, or NULL for new search.
D... |
pci_get_device(9) | NAME pci_get_device - begin or continue searching for a PCI device by vendor/device id
SYNOPSIS struct pci_dev * pci_get_device (unsigned int vendor , unsigned int device , struct pci_dev *from );
ARGUMENTS vendor PCI vendor id to match, or PCI_ANY_ID to match all vendor ids
device PCI device id to ... |
pci_get_domain_bus_and_slot(9) | NAME pci_get_domain_bus_and_slot - locate PCI device for a given PCI domain (segment), bus, and slot
SYNOPSIS struct pci_dev * pci_get_domain_bus_and_slot (int domain , unsigned int bus , unsigned int devfn );
ARGUMENTS domain PCI domain/segment on which the PCI device resides.
bus PCI bus on whi... |
pci_get_dsn(9) | NAME pci_get_dsn - Read and return the 8-byte Device Serial Number
SYNOPSIS u64 pci_get_dsn (struct pci_dev *dev );
ARGUMENTS dev PCI device to query
DESCRIPTION Looks up the PCI_EXT_CAP_ID_DSN and reads the 8 bytes of the Device Serial Number. Returns the DSN, or zero if the capability does not exist.
SEE... |
pci_get_rom_size(9) | NAME pci_get_rom_size - obtain the actual size of the ROM image
SYNOPSIS size_t pci_get_rom_size (struct pci_dev *pdev , void __iomem *rom , size_t size );
ARGUMENTS pdev target PCI device
rom kernel virtual pointer to image of ROM
size size of PCI window
RETURN size of actual R... |
pci_get_slot(9) | NAME pci_get_slot - locate PCI device for a given PCI slot
SYNOPSIS struct pci_dev * pci_get_slot (struct pci_bus *bus , unsigned int devfn );
ARGUMENTS bus PCI bus on which desired PCI device resides
devfn encodes number of PCI slot in which the desired PCI device resides and the logical device... |
pci_get_subsys(9) | NAME pci_get_subsys - begin or continue searching for a PCI device by vendor/subvendor/device/subdevice id
SYNOPSIS struct pci_dev * pci_get_subsys (unsigned int vendor , unsigned int device , unsigned int ss_vendor , unsigned int ss_device , struct pci_dev *from );
ARGUMENTS vendor PCI vendor id to match, or PC... |
pci_go_44(9) | NAME pci_go_44 - pm8001 specified, its DMA is 44 bit rather than 64 bit
SYNOPSIS int pci_go_44 (struct pci_dev *pdev );
ARGUMENTS pdev pci device.
SEE ALSO Kernel file ./drivers/scsi/pm8001/pm8001_init.c pm8001_phy_init(9), pm8001_free(9), pm8001_tasklet(9), pm8001_interrupt_handler_msix(9), pm8001_interrupt_... |
pci_has_p2pmem(9) | NAME pci_has_p2pmem - check if a given PCI device has published any p2pmem
SYNOPSIS bool pci_has_p2pmem (struct pci_dev *pdev );
ARGUMENTS pdev PCI device to check
SEE ALSO Kernel file ./drivers/pci/p2pdma.c pcim_p2pdma_init(9), pcim_p2pdma_provider(9), pci_p2pdma_add_resource(9), pci_p2pdma_dista... |
pci_host_bridge_acpi_msi_domain(9) | NAME pci_host_bridge_acpi_msi_domain - Retrieve MSI domain of a PCI host bridge
SYNOPSIS struct irq_domain * pci_host_bridge_acpi_msi_domain (struct pci_bus *bus );
ARGUMENTS bus The PCI host bridge bus.
DESCRIPTION This function uses the callback function registered by pci_msi_register_fwnode_provider to re... |
pci_hp_add(9) | NAME pci_hp_add - publish hotplug slot to user space
SYNOPSIS int pci_hp_add (struct hotplug_slot *slot );
ARGUMENTS slot pointer to the struct hotplug_slot to publish
DESCRIPTION Make a hotplug slot's sysfs interface available and inform user space of its addition by sending a uevent. The hotplug driver mu... |
pci_hp_add_devices(9) | NAME pci_hp_add_devices - adds new pci devices to bus
SYNOPSIS void pci_hp_add_devices (struct pci_bus *bus );
ARGUMENTS bus the indicated PCI bus
DESCRIPTION This routine will find and fixup new pci devices under the indicated bus. This routine presumes that there might already be some devices under this b... |
pci_hp_del(9) | NAME pci_hp_del - unpublish hotplug slot from user space
SYNOPSIS void pci_hp_del (struct hotplug_slot *slot );
ARGUMENTS slot pointer to the struct hotplug_slot to unpublish
DESCRIPTION Remove a hotplug slot's sysfs interface.
SEE ALSO Kernel file ./drivers/pci/hotplug/pci_hotplug_core.c __pci_hp_registe... |
pci_hp_deregister(9) | NAME pci_hp_deregister - deregister a hotplug_slot with the PCI hotplug subsystem
SYNOPSIS void pci_hp_deregister (struct hotplug_slot *slot );
ARGUMENTS slot pointer to the struct hotplug_slot to deregister
DESCRIPTION The slot must have been registered with the pci hotplug subsystem previously with a call t... |
pci_hp_destroy(9) | NAME pci_hp_destroy - remove hotplug slot from in-kernel use
SYNOPSIS void pci_hp_destroy (struct hotplug_slot *slot );
ARGUMENTS slot pointer to the struct hotplug_slot to destroy
DESCRIPTION Destroy a PCI slot used by a hotplug driver. Once this has been called, the driver may no longer invoke hotplug_slo... |
pci_hp_ignore_link_change(9) | NAME pci_hp_ignore_link_change - begin code section causing spurious link changes
SYNOPSIS void pci_hp_ignore_link_change (struct pci_dev *pdev );
ARGUMENTS pdev PCI hotplug bridge
DESCRIPTION Mark the beginning of a code section causing spurious link changes on the Secondary Bus of pdev, e.g. as a side effec... |
pci_hp_remove_devices(9) | NAME pci_hp_remove_devices - remove all devices under this bus
SYNOPSIS void pci_hp_remove_devices (struct pci_bus *bus );
ARGUMENTS bus the indicated PCI bus
DESCRIPTION Remove all of the PCI devices under this bus both from the linux pci device tree, and from the powerpc EEH address cache.
SEE ALSO Kernel... |
pci_hp_spurious_link_change(9) | NAME pci_hp_spurious_link_change - check for spurious link changes
SYNOPSIS bool pci_hp_spurious_link_change (struct pci_dev *pdev );
ARGUMENTS pdev PCI hotplug bridge
DESCRIPTION Check whether a code section is executing concurrently which is causing spurious link changes on the Secondary Bus of pdev. Aw... |
pci_hp_unignore_link_change(9) | NAME pci_hp_unignore_link_change - end code section causing spurious link changes
SYNOPSIS void pci_hp_unignore_link_change (struct pci_dev *pdev );
ARGUMENTS pdev PCI hotplug bridge
DESCRIPTION Mark the end of a code section causing spurious link changes on the Secondary Bus of pdev. Must be paired with pci... |
pci_ide_set_nr_streams(9) | NAME pci_ide_set_nr_streams - sets size of the pool of IDE Stream resources
SYNOPSIS void pci_ide_set_nr_streams (struct pci_host_bridge *hb , u16 nr );
ARGUMENTS hb host bridge boundary for the stream pool
nr number of streams
DESCRIPTION Platform PCI init and/or expert test module ... |
pci_ide_stream_alloc(9) | NAME pci_ide_stream_alloc - Reserve stream indices and probe for settings
SYNOPSIS struct pci_ide * pci_ide_stream_alloc (struct pci_dev *pdev );
ARGUMENTS pdev IDE capable PCIe Endpoint Physical Function
DESCRIPTION Retrieve the Requester ID range of pdev for programming its Root Port IDE RID Association r... |
pci_ide_stream_disable(9) | NAME pci_ide_stream_disable - disable a Selective IDE Stream
SYNOPSIS void pci_ide_stream_disable (struct pci_dev *pdev , struct pci_ide *ide );
ARGUMENTS pdev PCIe device object for either a Root Port or Endpoint Partner Port
ide registered and setup IDE settings descriptor
DESCRIPTION Clear ... |
pci_ide_stream_enable(9) | NAME pci_ide_stream_enable - enable a Selective IDE Stream
SYNOPSIS int pci_ide_stream_enable (struct pci_dev *pdev , struct pci_ide *ide );
ARGUMENTS pdev PCIe device object for either a Root Port or Endpoint Partner Port
ide registered and setup IDE settings descriptor
DESCRIPTION Activate ... |
pci_ide_stream_free(9) | NAME pci_ide_stream_free - unwind pci_ide_stream_alloc()
SYNOPSIS void pci_ide_stream_free (struct pci_ide *ide );
ARGUMENTS ide idle IDE settings descriptor
DESCRIPTION Free all of the stream index (register block) allocations acquired by pci_ide_stream_alloc. The stream represented by ide is assumed to be ... |
pci_ide_stream_register(9) | NAME pci_ide_stream_register - Prepare to activate an IDE Stream
SYNOPSIS int pci_ide_stream_register (struct pci_ide *ide );
ARGUMENTS ide IDE settings descriptor
DESCRIPTION After a Stream ID has been acquired for ide, record the presence of the stream in sysfs. The expectation is that ide is immutable whi... |
pci_ide_stream_release(9) | NAME pci_ide_stream_release - unwind and release an @ide context
SYNOPSIS void pci_ide_stream_release (struct pci_ide *ide );
ARGUMENTS ide partially or fully registered IDE settings descriptor
DESCRIPTION In support of automatic cleanup of IDE setup routines perform IDE teardown in expected reverse order ... |
pci_ide_stream_setup(9) | NAME pci_ide_stream_setup - program settings to Selective IDE Stream registers
SYNOPSIS void pci_ide_stream_setup (struct pci_dev *pdev , struct pci_ide *ide );
ARGUMENTS pdev PCIe device object for either a Root Port or Endpoint Partner Port
ide registered IDE settings descriptor
DESCRIPTION ... |
pci_ide_stream_teardown(9) | NAME pci_ide_stream_teardown - disable the stream and clear all settings
SYNOPSIS void pci_ide_stream_teardown (struct pci_dev *pdev , struct pci_ide *ide );
ARGUMENTS pdev PCIe device object for either a Root Port or Endpoint Partner Port
ide registered IDE settings descriptor
DESCRIPTION For... |
pci_ide_stream_to_regs(9) | NAME pci_ide_stream_to_regs - convert IDE settings to association register values
SYNOPSIS void pci_ide_stream_to_regs (struct pci_dev *pdev , struct pci_ide *ide , struct pci_ide_regs *regs );
ARGUMENTS pdev PCIe device object for either a Root Port or Endpoint Partner Port
ide registered IDE ... |
pci_ide_stream_unregister(9) | NAME pci_ide_stream_unregister - unwind pci_ide_stream_register()
SYNOPSIS void pci_ide_stream_unregister (struct pci_ide *ide );
ARGUMENTS ide idle IDE settings descriptor
DESCRIPTION In preparation for freeing ide, remove sysfs enumeration for the stream.
SEE ALSO Kernel file ./drivers/pci/ide.c pci_id... |
pci_init_reset_methods(9) | NAME pci_init_reset_methods - check whether device can be safely reset and store supported reset mechanisms.
SYNOPSIS void pci_init_reset_methods (struct pci_dev *dev );
ARGUMENTS dev PCI device to check for reset mechanisms
DESCRIPTION Some devices allow an individual function to be reset without affecting ... |
pci_intx(9) | NAME pci_intx - enables/disables PCI INTx for device dev
SYNOPSIS void pci_intx (struct pci_dev *pdev , int enable );
ARGUMENTS pdev the PCI device to operate on
enable boolean: whether to enable or disable PCI INTx
DESCRIPTION Enables/disables PCI INTx for device pdev
SEE ALSO Kernel file ./d... |
pci_intx_mask_broken(9) | NAME pci_intx_mask_broken - Test PCI_COMMAND_INTX_DISABLE writability
SYNOPSIS int pci_intx_mask_broken (struct pci_dev *dev );
ARGUMENTS dev PCI device
DESCRIPTION Test whether PCI_COMMAND_INTX_DISABLE is writable for dev. Check this at enumeration-time to avoid modifying PCI_COMMAND at run-time.
SEE ALSO... |
pci_iomap(9) | NAME pci_iomap - create a virtual mapping cookie for a PCI BAR
SYNOPSIS void __iomem * pci_iomap (struct pci_dev *dev , int bar , unsigned long maxlen );
ARGUMENTS dev PCI device that owns the BAR
bar BAR number
maxlen length of the memory to map
DESCRIPTION Using this function... |
pci_iomap_range(9) | NAME pci_iomap_range - create a virtual mapping cookie for a PCI BAR
SYNOPSIS void __iomem * pci_iomap_range (struct pci_dev *dev , int bar , unsigned long offset , unsigned long maxlen );
ARGUMENTS dev PCI device that owns the BAR
bar BAR number
offset map memory at the given off... |
pci_iomap_wc(9) | NAME pci_iomap_wc - create a virtual WC mapping cookie for a PCI BAR
SYNOPSIS void __iomem * pci_iomap_wc (struct pci_dev *dev , int bar , unsigned long maxlen );
ARGUMENTS dev PCI device that owns the BAR
bar BAR number
maxlen length of the memory to map
DESCRIPTION Using this ... |
pci_iomap_wc_range(9) | NAME pci_iomap_wc_range - create a virtual WC mapping cookie for a PCI BAR
SYNOPSIS void __iomem * pci_iomap_wc_range (struct pci_dev *dev , int bar , unsigned long offset , unsigned long maxlen );
ARGUMENTS dev PCI device that owns the BAR
bar BAR number
offset map memory at the ... |
pci_iov_bus_range(9) | NAME pci_iov_bus_range - find bus range used by Virtual Function
SYNOPSIS int pci_iov_bus_range (struct pci_bus *bus );
ARGUMENTS bus the PCI bus
DESCRIPTION Returns max number of buses (exclude current one) used by Virtual Functions.
SEE ALSO Kernel file ./drivers/pci/iov.c pci_iov_get_pf_drvdata(9), pci_... |
pci_iov_get_pf_drvdata(9) | NAME pci_iov_get_pf_drvdata - Return the drvdata of a PF
SYNOPSIS void * pci_iov_get_pf_drvdata (struct pci_dev *dev , struct pci_driver *pf_driver );
ARGUMENTS dev VF pci_dev
pf_driver Device driver required to own the PF
DESCRIPTION This must be called from a context that ensures that a VF driv... |
pci_iov_init(9) | NAME pci_iov_init - initialize the IOV capability
SYNOPSIS int pci_iov_init (struct pci_dev *dev );
ARGUMENTS dev the PCI device
DESCRIPTION Returns 0 on success, or negative on failure.
SEE ALSO Kernel file ./drivers/pci/iov.c pci_iov_get_pf_drvdata(9), pci_iov_release(9), pci_iov_remove(9), pci_iov_... |
pci_iov_release(9) | NAME pci_iov_release - release resources used by the IOV capability
SYNOPSIS void pci_iov_release (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_remove(9), pci_iov_update_resource(9), pci_sriov_resourc... |
pci_iov_remove(9) | NAME pci_iov_remove - clean up SR-IOV state after PF driver is detached
SYNOPSIS void pci_iov_remove (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_update_resource(9), pci_sriov_reso... |
pci_iov_update_resource(9) | NAME pci_iov_update_resource - update a VF BAR
SYNOPSIS void pci_iov_update_resource (struct pci_dev *dev , int resno );
ARGUMENTS dev the PCI device
resno the resource number
DESCRIPTION Update a VF BAR in the SR-IOV capability of a PF.
SEE ALSO Kernel file ./drivers/pci/iov.c pci_iov_... |
pci_iov_vf_bar_get_sizes(9) | NAME pci_iov_vf_bar_get_sizes - get VF BAR sizes allowing to create up to num_vfs
SYNOPSIS u32 pci_iov_vf_bar_get_sizes (struct pci_dev *dev , int resno , int num_vfs );
ARGUMENTS dev the PCI device
resno the resource number
num_vfs number of VFs
DESCRIPTION Get the sizes of a VF re... |
pci_iov_vf_bar_set_size(9) | NAME pci_iov_vf_bar_set_size - set a new size for a VF BAR
SYNOPSIS int pci_iov_vf_bar_set_size (struct pci_dev *dev , int resno , int size );
ARGUMENTS dev the PCI device
resno the resource number
size new size as defined in the spec (0=1MB, 31=128TB)
DESCRIPTION Set the new ... |
pci_irq_get_affinity(9) | NAME pci_irq_get_affinity - Get a device interrupt vector affinity
SYNOPSIS const struct cpumask * pci_irq_get_affinity (struct pci_dev *dev , int nr );
ARGUMENTS dev the PCI device to operate on
nr device-relative interrupt vector index (0-based); has different meanings, depending on interru... |
pci_irq_vector(9) | NAME pci_irq_vector - Get Linux IRQ number of a device interrupt vector
SYNOPSIS int pci_irq_vector (struct pci_dev *dev , unsigned int nr );
ARGUMENTS dev the PCI device to operate on
nr device-relative interrupt vector index (0-based); has different meanings, depending on interrupt mode:
D... |
pci_irqd_intx_xlate(9) | NAME pci_irqd_intx_xlate - Translate PCI INTx value to an IRQ domain hwirq
SYNOPSIS int pci_irqd_intx_xlate (struct irq_domain *d , struct device_node *node , const u32 *intspec , unsigned int intsize , unsigned long *out_hwirq , unsigned int *out_type );
ARGUMENTS d the INTx IRQ domain
node ... |
pci_is_bridge(9) | NAME pci_is_bridge - check if the PCI device is a bridge
SYNOPSIS bool pci_is_bridge (struct pci_dev *dev );
ARGUMENTS dev PCI device
DESCRIPTION Return true if the PCI device is bridge whether it has subordinate or not.
SEE ALSO Kernel file ./include/linux/pci.h enum pci_interrupt_pin(9), pci_channel_... |
pci_is_display(9) | NAME pci_is_display - check if the PCI device is a display controller
SYNOPSIS bool pci_is_display (struct pci_dev *pdev );
ARGUMENTS pdev PCI device
DESCRIPTION Determine whether the given PCI device corresponds to a display controller. Display controllers are typically used for graphical output and are iden... |
pci_is_pcie(9) | NAME pci_is_pcie - check if the PCI device is PCI Express capable
SYNOPSIS bool pci_is_pcie (struct pci_dev *dev );
ARGUMENTS dev PCI device
RETURN true if the PCI device is PCI Express capable, false otherwise.
SEE ALSO Kernel file ./include/linux/pci.h enum pci_interrupt_pin(9), pci_channel_state_t(9), pc... |
pci_is_thunderbolt_attached(9) | NAME pci_is_thunderbolt_attached - whether device is on a Thunderbolt daisy chain
SYNOPSIS bool pci_is_thunderbolt_attached (struct pci_dev *pdev );
ARGUMENTS pdev PCI device to check
DESCRIPTION Walk upwards from pdev and check for each encountered bridge if it's part of a Thunderbolt controller. Reaching t... |
pci_is_vga(9) | NAME pci_is_vga - check if the PCI device is a VGA device
SYNOPSIS bool pci_is_vga (struct pci_dev *pdev );
ARGUMENTS pdev PCI device
DESCRIPTION The PCI Code and ID Assignment spec, r1.15, secs 1.4 and 1.1, define VGA Base Class and Sub-Classes: 03 00 PCI_CLASS_DISPLAY_VGA VGA-compatible or 8514-co... |
pci_load_and_free_saved_state(9) | NAME pci_load_and_free_saved_state - Reload the save state pointed to by state, and free the memory allocated for it.
SYNOPSIS int pci_load_and_free_saved_state (struct pci_dev *dev , struct pci_saved_state **state );
ARGUMENTS dev PCI device that we're dealing with
state Pointer to saved state ... |
pci_load_saved_state(9) | NAME pci_load_saved_state - Reload the provided save state into struct pci_dev.
SYNOPSIS int pci_load_saved_state (struct pci_dev *dev , struct pci_saved_state *state );
ARGUMENTS dev PCI device that we're dealing with
state Saved state returned from pci_store_saved_state
SEE ALSO Kernel file... |
pci_map_rom(9) | NAME pci_map_rom - map a PCI ROM to kernel space
SYNOPSIS void __iomem * pci_map_rom (struct pci_dev *pdev , size_t *size );
ARGUMENTS pdev pointer to pci device struct
size pointer to receive size of pci window over ROM
RETURN kernel virtual pointer to image of ROM
DESCRIPTION Map a PCI ROM i... |
pci_match_device(9) | NAME pci_match_device - See if a device matches a driver's list of IDs
SYNOPSIS const struct pci_device_id * pci_match_device (struct pci_driver *drv , struct pci_dev *dev );
ARGUMENTS drv the PCI driver to match against
dev the PCI device structure to match against
DESCRIPTION Used by a driv... |
pci_match_id(9) | NAME pci_match_id - See if a PCI device matches a given pci_id table
SYNOPSIS const struct pci_device_id * pci_match_id (const struct pci_device_id *ids , struct pci_dev *dev );
ARGUMENTS ids array of PCI device ID structures to search in
dev the PCI device structure to match against.
DESCRIP... |
pci_match_one_device(9) | NAME pci_match_one_device - Tell if a PCI device structure has a matching PCI device id structure
SYNOPSIS const struct pci_device_id * pci_match_one_device (const struct pci_device_id *id , const struct pci_dev *dev );
ARGUMENTS id single PCI device id structure to match
dev the PCI device s... |
pci_max_pasids(9) | NAME pci_max_pasids - Get maximum number of PASIDs supported by device
SYNOPSIS int pci_max_pasids (struct pci_dev *pdev );
ARGUMENTS pdev PCI device structure
DESCRIPTION Returns negative value when PASID capability is not present. Otherwise it returns the number of supported PASIDs.
SEE ALSO Kernel file... |
pci_mmap_legacy_io(9) | NAME pci_mmap_legacy_io - map legacy PCI IO into user memory space
SYNOPSIS int pci_mmap_legacy_io (struct file *filp , struct kobject *kobj , const struct bin_attribute *attr , struct vm_area_struct *vma );
ARGUMENTS filp open sysfs file
kobj kobject corresponding to device to be mapped
... |
pci_mmap_legacy_mem(9) | NAME pci_mmap_legacy_mem - map legacy PCI memory into user memory space
SYNOPSIS int pci_mmap_legacy_mem (struct file *filp , struct kobject *kobj , const struct bin_attribute *attr , struct vm_area_struct *vma );
ARGUMENTS filp open sysfs file
kobj kobject corresponding to device to be mapped
... |
pci_mmap_resource(9) | NAME pci_mmap_resource - map a PCI resource into user memory space
SYNOPSIS int pci_mmap_resource (struct kobject *kobj , const struct bin_attribute *attr , struct vm_area_struct *vma , int write_combine );
ARGUMENTS kobj kobject for mapping
attr struct bin_attribute for the file being mapped
... |
pci_msi_domain_get_msi_rid(9) | NAME pci_msi_domain_get_msi_rid - Get the MSI requester id (RID)
SYNOPSIS u32 pci_msi_domain_get_msi_rid (struct irq_domain *domain , struct pci_dev *pdev );
ARGUMENTS domain The interrupt domain
pdev The PCI device.
DESCRIPTION The RID for a device is formed from the alias, with a firmware suppl... |
pci_msi_domain_supports(9) | NAME pci_msi_domain_supports - Check for support of a particular feature flag
SYNOPSIS bool pci_msi_domain_supports (struct pci_dev *pdev , unsigned int feature_mask , enum support_mode mode );
ARGUMENTS pdev The PCI device to operate on
feature_mask
The feature mask to check for (fu... |
pci_msi_domain_write_msg(9) | NAME pci_msi_domain_write_msg - Helper to write MSI message to PCI config space
SYNOPSIS void pci_msi_domain_write_msg (struct irq_data *irq_data , struct msi_msg *msg );
ARGUMENTS irq_data Pointer to interrupt data of the MSI interrupt
msg Pointer to the message
SEE ALSO Kernel file ./drivers/p... |
pci_msi_enabled(9) | NAME pci_msi_enabled - Are MSI(-X) interrupts enabled system-wide?
SYNOPSIS bool pci_msi_enabled (void );
ARGUMENTS void no arguments
RETURN true if MSI has not been globally disabled through ACPI FADT, PCI bridge quirks, or the "pci=nomsi" kernel command-line option.
SEE ALSO Kernel file ./drivers/pci/msi... |
pci_msi_get_device_domain(9) | NAME pci_msi_get_device_domain - Get the MSI domain for a given PCI device
SYNOPSIS struct irq_domain * pci_msi_get_device_domain (struct pci_dev *pdev );
ARGUMENTS pdev The PCI device
DESCRIPTION Use the firmware data to find a device-specific MSI domain (i.e. not one that is set as a default).
RETURN The c... |
pci_msi_map_rid_ctlr_node(9) | NAME pci_msi_map_rid_ctlr_node - Get the MSI controller fwnode_handle and MSI requester id (RID)
SYNOPSIS u32 pci_msi_map_rid_ctlr_node (struct irq_domain *domain , struct pci_dev *pdev , struct fwnode_handle **node );
ARGUMENTS domain The interrupt domain
pdev The PCI device
node P... |
pci_msi_mask_irq(9) | NAME pci_msi_mask_irq - Generic IRQ chip callback to mask PCI/MSI interrupts
SYNOPSIS void pci_msi_mask_irq (struct irq_data *data );
ARGUMENTS data pointer to irqdata associated to that interrupt
SEE ALSO Kernel file ./drivers/pci/msi/msi.c pci_msi_supported(9), pci_msi_unmask_irq(9), msi_capability_init(9),... |
pci_msi_register_fwnode_provider(9) | NAME pci_msi_register_fwnode_provider - Register callback to retrieve fwnode
SYNOPSIS void pci_msi_register_fwnode_provider (struct fwnode_handle *(*fn)(struct device *) );
ARGUMENTS fn Callback matching a device to a fwnode that identifies a PCI MSI domain.
DESCRIPTION This should be called by irqchip driv... |
pci_msi_supported(9) | NAME pci_msi_supported - check whether MSI may be enabled on a device
SYNOPSIS int pci_msi_supported (struct pci_dev *dev , int nvec );
ARGUMENTS dev pointer to the pci_dev data structure of MSI device function
nvec how many MSIs have been requested?
DESCRIPTION Look at global flags, the devic... |
pci_msi_unmask_irq(9) | NAME pci_msi_unmask_irq - Generic IRQ chip callback to unmask PCI/MSI interrupts
SYNOPSIS void pci_msi_unmask_irq (struct irq_data *data );
ARGUMENTS data pointer to irqdata associated to that interrupt
SEE ALSO Kernel file ./drivers/pci/msi/msi.c pci_msi_supported(9), pci_msi_mask_irq(9), msi_capability_init... |
pci_msi_vec_count(9) | NAME pci_msi_vec_count - Return the number of MSI vectors a device can send
SYNOPSIS int pci_msi_vec_count (struct pci_dev *dev );
ARGUMENTS dev device to report about
DESCRIPTION This function returns the number of MSI vectors a device requested via Multiple Message Capable register. It returns a negative... |
pci_msix_alloc_irq_at(9) | NAME pci_msix_alloc_irq_at - Allocate an MSI-X interrupt after enabling MSI-X at a given MSI-X vector index or any free vector index
SYNOPSIS struct msi_map pci_msix_alloc_irq_at (struct pci_dev *dev , unsigned int index , const struct irq_affinity_desc *affdesc );
ARGUMENTS dev PCI device to operate on
... |
pci_msix_can_alloc_dyn(9) | NAME pci_msix_can_alloc_dyn - Query whether dynamic allocation after enabling MSI-X is supported
SYNOPSIS bool pci_msix_can_alloc_dyn (struct pci_dev *dev );
ARGUMENTS dev PCI device to operate on
RETURN True if supported, false otherwise
SEE ALSO Kernel file ./drivers/pci/msi/api.c pci_enable_msi(9), pc... |
pci_msix_free_irq(9) | NAME pci_msix_free_irq - Free an interrupt on a PCI/MSI-X interrupt domain
SYNOPSIS void pci_msix_free_irq (struct pci_dev *dev , struct msi_map map );
ARGUMENTS dev The PCI device to operate on
map A struct msi_map describing the interrupt to free
DESCRIPTION Undo an interrupt vector allocat... |
pci_msix_vec_count(9) | NAME pci_msix_vec_count - Get number of MSI-X interrupt vectors on device
SYNOPSIS int pci_msix_vec_count (struct pci_dev *dev );
ARGUMENTS dev the PCI device to operate on
RETURN number of MSI-X interrupt vectors available on this device (i.e., the device's MSI-X capability structure "table size"), -EINVAL ... |
pci_msix_write_tph_tag(9) | NAME pci_msix_write_tph_tag - Update the TPH tag for a given MSI-X vector
SYNOPSIS int pci_msix_write_tph_tag (struct pci_dev *pdev , unsigned int index , u16 tag );
ARGUMENTS pdev The PCIe device to update
index The MSI-X index to update
tag The tag to write
RETURN 0 on success,... |
pci_num_vf(9) | NAME pci_num_vf - return number of VFs associated with a PF device_release_driver
SYNOPSIS int pci_num_vf (struct pci_dev *dev );
ARGUMENTS dev the PCI device
DESCRIPTION Returns number of VFs, or 0 if SR-IOV is not enabled.
SEE ALSO Kernel file ./drivers/pci/iov.c pci_iov_get_pf_drvdata(9), pci_iov_init(9... |
pci_p2pdma_add_resource(9) | NAME pci_p2pdma_add_resource - add memory for use as p2p memory
SYNOPSIS int pci_p2pdma_add_resource (struct pci_dev *pdev , int bar , size_t size , u64 offset );
ARGUMENTS pdev the device to add the memory to
bar PCI BAR to add
size size of the memory to add, may be zero to use ... |
pci_p2pdma_bus_addr_map(9) | NAME pci_p2pdma_bus_addr_map - Translate a physical address to a bus address for a PCI_P2PDMA_MAP_BUS_ADDR transfer.
SYNOPSIS dma_addr_t pci_p2pdma_bus_addr_map (struct p2pdma_provider *provider , phys_addr_t paddr );
ARGUMENTS provider P2P provider structure
paddr physical address to map
DESCRIPTIO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.