sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget&/translations/zh_CN/driver-api/pci/pcimodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/zh_TW/driver-api/pci/pcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/it_IT/driver-api/pci/pcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/ja_JP/driver-api/pci/pcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/ko_KR/driver-api/pci/pcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/pt_BR/driver-api/pci/pcimodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget&/translations/sp_SP/driver-api/pci/pcimodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hPCI Support Libraryh]hPCI Support Library}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhh@/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci.rsthKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlepci_bus_max_busnr (C function)c.pci_bus_max_busnrhNtauh1hhhhhhNhNubhdesc)}(hhh](hdesc_signature)}(h5unsigned char pci_bus_max_busnr (struct pci_bus *bus)h]hdesc_signature_line)}(h4unsigned char pci_bus_max_busnr(struct pci_bus *bus)h](hdesc_sig_keyword_type)}(hunsignedh]hunsigned}(hhhhhNhNubah}(h]h ]ktah"]h$]h&]uh1hhhhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKubhdesc_sig_space)}(h h]h }(hjhhhNhNubah}(h]h ]wah"]h$]h&]uh1hhhhhhhhKubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhhhhhhhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhhhhhhhKubh desc_name)}(hpci_bus_max_busnrh]h desc_sig_name)}(hpci_bus_max_busnrh]hpci_bus_max_busnr}(hj4hhhNhNubah}(h]h ]nah"]h$]h&]uh1j2hj.ubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1j,hhhhhhhKubhdesc_parameterlist)}(h(struct pci_bus *bus)h]hdesc_parameter)}(hstruct pci_bus *bush](hdesc_sig_keyword)}(hstructh]hstruct}(hj[hhhNhNubah}(h]h ]kah"]h$]h&]uh1jYhjUubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj{hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjxubah}(h]h ]h"]h$]h&] refdomaincreftype identifier reftargetj}modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]j ASTIdentifier)}jj6sbc.pci_bus_max_busnrasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjUubj3)}(hbush]hbus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjOubah}(h]h ]h"]h$]h&]jKjLuh1jMhhhhhhhKubeh}(h]h ]h"]h$]h&]jKjL add_permalinkuh1hsphinx_line_type declaratorhhhhhhhKubah}(h]hah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1hhhhKhhhhubh desc_content)}(hhh]h paragraph)}(h5returns maximum PCI bus number of given bus' childrenh]h7returns maximum PCI bus number of given bus’ children}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhhhhhhhKubeh}(h]h ](jfunctioneh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1hhhhhhNhNubh container)}(h**Parameters** ``struct pci_bus *bus`` pointer to PCI bus structure to search **Description** Given a PCI bus, returns the highest PCI bus number present in the set including the given PCI bus and its list of child PCI buses.h](j)}(h**Parameters**h]hstrong)}(hj#h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj!ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjubhdefinition_list)}(hhh]hdefinition_list_item)}(h?``struct pci_bus *bus`` pointer to PCI bus structure to search h](hterm)}(h``struct pci_bus *bus``h]hliteral)}(hjJh]hstruct pci_bus *bus}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjBubh definition)}(hhh]j)}(h&pointer to PCI bus structure to searchh]h&pointer to PCI bus structure to search}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahKhjdubah}(h]h ]h"]h$]h&]uh1jbhjBubeh}(h]h ]h"]h$]h&]uh1j@hjahKhj=ubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjubj)}(hGiven a PCI bus, returns the highest PCI bus number present in the set including the given PCI bus and its list of child PCI buses.h]hGiven a PCI bus, returns the highest PCI bus number present in the set including the given PCI bus and its list of child PCI buses.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،,pci_status_get_and_clear_errors (C function)!c.pci_status_get_and_clear_errorshNtauh1hhhhhhNhNubh)}(hhh](h)}(h:int pci_status_get_and_clear_errors (struct pci_dev *pdev)h]h)}(h9int pci_status_get_and_clear_errors(struct pci_dev *pdev)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj-)}(hpci_status_get_and_clear_errorsh]j3)}(hpci_status_get_and_clear_errorsh]hpci_status_get_and_clear_errors}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj)hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj+modnameN classnameNjj)}j]j)}jjsb!c.pci_status_get_and_clear_errorsasbuh1hhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hpdevh]hpdev}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h)return and clear error bits in PCI_STATUSh]h)return and clear error bits in PCI_STATUS}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` the PCI device **Description** Returns error bits set in PCI_STATUS and clears them.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjubj<)}(hhh]jA)}(h(``struct pci_dev *pdev`` the PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjh]hstruct pci_dev *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjubj)}(h5Returns error bits set in PCI_STATUS and clears them.h]h5Returns error bits set in PCI_STATUS and clears them.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_find_capability (C function)c.pci_find_capabilityhNtauh1hhhhhhNhNubh)}(hhh](h)}(h5u8 pci_find_capability (struct pci_dev *dev, int cap)h]h)}(h4u8 pci_find_capability(struct pci_dev *dev, int cap)h](h)}(hhh]j3)}(hu8h]hu8}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j)}jpci_find_capabilitysbc.pci_find_capabilityasbuh1hhjKhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKhhhjshMubj-)}(hpci_find_capabilityh]j3)}(hjph]hpci_find_capability}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjKhhhjshMubjN)}(h(struct pci_dev *dev, int cap)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jnc.pci_find_capabilityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hint caph](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj3)}(hcaph]hcap}(hj-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjKhhhjshMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjGhhhjshMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjshMhjDhhubj)}(hhh]j)}(hquery for devices' capabilitiesh]h!query for devices’ capabilities}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjThhubah}(h]h ]h"]h$]h&]uh1jhjDhhhjshMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` PCI device to query ``int cap`` capability code **Description** Tell if a device supports a given PCI capability. Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it. Possible values for **cap** include: ``PCI_CAP_ID_PM`` Power Management ``PCI_CAP_ID_AGP`` Accelerated Graphics Port ``PCI_CAP_ID_VPD`` Vital Product Data ``PCI_CAP_ID_SLOTID`` Slot Identification ``PCI_CAP_ID_MSI`` Message Signalled Interrupts ``PCI_CAP_ID_CHSWP`` CompactPCI HotSwap ``PCI_CAP_ID_PCIX`` PCI-X ``PCI_CAP_ID_EXP`` PCI Expressh](j)}(h**Parameters**h]j&)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjwubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjsubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h``int cap`` capability code h](jG)}(h ``int cap``h]jM)}(hjh]hint cap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hcapability codeh]hcapability code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubeh}(h]h ]h"]h$]h&]uh1j;hjsubj)}(h**Description**h]j&)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjsubj)}(hTell if a device supports a given PCI capability. Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it. Possible values for **cap** include:h](hTell if a device supports a given PCI capability. Returns the address of the requested capability structure within the device’s PCI configuration space or 0 in case the device does not support it. Possible values for }(hj"hhhNhNubj&)}(h**cap**h]hcap}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj"ubh include:}(hj"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjsubh block_quote)}(hXs``PCI_CAP_ID_PM`` Power Management ``PCI_CAP_ID_AGP`` Accelerated Graphics Port ``PCI_CAP_ID_VPD`` Vital Product Data ``PCI_CAP_ID_SLOTID`` Slot Identification ``PCI_CAP_ID_MSI`` Message Signalled Interrupts ``PCI_CAP_ID_CHSWP`` CompactPCI HotSwap ``PCI_CAP_ID_PCIX`` PCI-X ``PCI_CAP_ID_EXP`` PCI Expressh]j)}(hXs``PCI_CAP_ID_PM`` Power Management ``PCI_CAP_ID_AGP`` Accelerated Graphics Port ``PCI_CAP_ID_VPD`` Vital Product Data ``PCI_CAP_ID_SLOTID`` Slot Identification ``PCI_CAP_ID_MSI`` Message Signalled Interrupts ``PCI_CAP_ID_CHSWP`` CompactPCI HotSwap ``PCI_CAP_ID_PCIX`` PCI-X ``PCI_CAP_ID_EXP`` PCI Expressh](jM)}(h``PCI_CAP_ID_PM``h]h PCI_CAP_ID_PM}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubh Power Management }(hjIhhhNhNubjM)}(h``PCI_CAP_ID_AGP``h]hPCI_CAP_ID_AGP}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubh$ Accelerated Graphics Port }(hjIhhhNhNubjM)}(h``PCI_CAP_ID_VPD``h]hPCI_CAP_ID_VPD}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubh Vital Product Data }(hjIhhhNhNubjM)}(h``PCI_CAP_ID_SLOTID``h]hPCI_CAP_ID_SLOTID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubh Slot Identification }(hjIhhhNhNubjM)}(h``PCI_CAP_ID_MSI``h]hPCI_CAP_ID_MSI}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubh' Message Signalled Interrupts }(hjIhhhNhNubjM)}(h``PCI_CAP_ID_CHSWP``h]hPCI_CAP_ID_CHSWP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubh CompactPCI HotSwap }(hjIhhhNhNubjM)}(h``PCI_CAP_ID_PCIX``h]hPCI_CAP_ID_PCIX}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubh PCI-X }(hjIhhhNhNubjM)}(h``PCI_CAP_ID_EXP``h]hPCI_CAP_ID_EXP}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubh PCI Express}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjEubah}(h]h ]h"]h$]h&]uh1jChjhMhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،$pci_bus_find_capability (C function)c.pci_bus_find_capabilityhNtauh1hhhhhhNhNubh)}(hhh](h)}(hMu8 pci_bus_find_capability (struct pci_bus *bus, unsigned int devfn, int cap)h]h)}(hLu8 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap)h](h)}(hhh]j3)}(hu8h]hu8}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_bus_find_capabilitysbc.pci_bus_find_capabilityasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj.hMubj-)}(hpci_bus_find_capabilityh]j3)}(hj+h]hpci_bus_find_capability}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj=ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj.hMubjN)}(h2(struct pci_bus *bus, unsigned int devfn, int cap)h](jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj\hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjwubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj|modnameN classnameNjj)}j]j)c.pci_bus_find_capabilityasbuh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj3)}(hbush]hbus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjTubjT)}(hunsigned int devfnh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hdevfnh]hdevfn}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjTubjT)}(hint caph](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hcaph]hcap}(hj9hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjTubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj.hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj.hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj.hMhjhhubj)}(hhh]j)}(hquery for devices' capabilitiesh]h!query for devices’ capabilities}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj`hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_bus *bus`` the PCI bus to query ``unsigned int devfn`` PCI device to query ``int cap`` capability code **Description** Like pci_find_capability() but works for PCI devices that do not have a pci_dev structure set up yet. Returns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj<)}(hhh](jA)}(h-``struct pci_bus *bus`` the PCI bus to query h](jG)}(h``struct pci_bus *bus``h]jM)}(hjh]hstruct pci_bus *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hthe PCI bus to queryh]hthe PCI bus to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h+``unsigned int devfn`` PCI device to query h](jG)}(h``unsigned int devfn``h]jM)}(hjh]hunsigned int devfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h``int cap`` capability code h](jG)}(h ``int cap``h]jM)}(hj h]hint cap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubjc)}(hhh]j)}(hcapability codeh]hcapability code}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ hMhj, ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj+ hMhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjQ h]h Description}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjO ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(heLike pci_find_capability() but works for PCI devices that do not have a pci_dev structure set up yet.h]heLike pci_find_capability() but works for PCI devices that do not have a pci_dev structure set up yet.}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(hReturns the address of the requested capability structure within the device's PCI configuration space or 0 in case the device does not support it.h]hReturns the address of the requested capability structure within the device’s PCI configuration space or 0 in case the device does not support it.}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،)pci_find_next_ext_capability (C function)c.pci_find_next_ext_capabilityhNtauh1hhhhhhNhNubh)}(hhh](h)}(hJu16 pci_find_next_ext_capability (struct pci_dev *dev, u16 start, int cap)h]h)}(hIu16 pci_find_next_ext_capability(struct pci_dev *dev, u16 start, int cap)h](h)}(hhh]j3)}(hu16h]hu16}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jpci_find_next_ext_capabilitysbc.pci_find_next_ext_capabilityasbuh1hhj hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubj-)}(hpci_find_next_ext_capabilityh]j3)}(hj h]hpci_find_next_ext_capability}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj hhhj hMubjN)}(h)(struct pci_dev *dev, u16 start, int cap)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j c.pci_find_next_ext_capabilityasbuh1hhj ubj)}(h h]h }(hj3 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjA hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj3)}(hdevh]hdev}(hjN hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubjT)}(h u16 starth](h)}(hhh]j3)}(hu16h]hu16}(hjj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjg ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjl modnameN classnameNjj)}j]j c.pci_find_next_ext_capabilityasbuh1hhjc ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjc ubj3)}(hstarth]hstart}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjc ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubjT)}(hint caph](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj3)}(hcaph]hcap}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj hhhj hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]j)}(hFind an extended capabilityh]hFind an extended capability}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` PCI device to query ``u16 start`` address at which to start looking (0 to start at beginning of list) ``int cap`` capability code **Description** Returns the address of the next matching extended capability structure within the device's PCI configuration space or 0 if the device does not support it. Some capabilities can occur several times, e.g., the vendor-specific capability, and this provides a way to find them all.h](j)}(h**Parameters**h]j&)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hj6 h]hstruct pci_dev *dev}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4 ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj0 ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjO hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK hMhjL ubah}(h]h ]h"]h$]h&]uh1jbhj0 ubeh}(h]h ]h"]h$]h&]uh1j@hjK hMhj- ubjA)}(hR``u16 start`` address at which to start looking (0 to start at beginning of list) h](jG)}(h ``u16 start``h]jM)}(hjo h]h u16 start}(hjq hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjm ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhji ubjc)}(hhh]j)}(hCaddress at which to start looking (0 to start at beginning of list)h]hCaddress at which to start looking (0 to start at beginning of list)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhji ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhj- ubjA)}(h``int cap`` capability code h](jG)}(h ``int cap``h]jM)}(hj h]hint cap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubjc)}(hhh]j)}(hcapability codeh]hcapability code}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhj- ubeh}(h]h ]h"]h$]h&]uh1j;hj ubj)}(h**Description**h]j&)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubj)}(hXReturns the address of the next matching extended capability structure within the device's PCI configuration space or 0 if the device does not support it. Some capabilities can occur several times, e.g., the vendor-specific capability, and this provides a way to find them all.h]hXReturns the address of the next matching extended capability structure within the device’s PCI configuration space or 0 if the device does not support it. Some capabilities can occur several times, e.g., the vendor-specific capability, and this provides a way to find them all.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،$pci_find_ext_capability (C function)c.pci_find_ext_capabilityhNtauh1hhhhhhNhNubh)}(hhh](h)}(h:u16 pci_find_ext_capability (struct pci_dev *dev, int cap)h]h)}(h9u16 pci_find_ext_capability(struct pci_dev *dev, int cap)h](h)}(hhh]j3)}(hu16h]hu16}(hj+ hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj( ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj- modnameN classnameNjj)}j]j)}jpci_find_ext_capabilitysbc.pci_find_ext_capabilityasbuh1hhj$ hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjM hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ hhhjL hMubj-)}(hpci_find_ext_capabilityh]j3)}(hjI h]hpci_find_ext_capability}(hj_ hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj$ hhhjL hMubjN)}(h(struct pci_dev *dev, int cap)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjz hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjv ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjv ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jG c.pci_find_ext_capabilityasbuh1hhjv ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjv ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjv ubj3)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjv ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjr ubjT)}(hint caph](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj3)}(hcaph]hcap}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjr ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj$ hhhjL hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj hhhjL hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhjL hMhj hhubj)}(hhh]j)}(hFind an extended capabilityh]hFind an extended capability}(hj0 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj- hhubah}(h]h ]h"]h$]h&]uh1jhj hhhjL hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjH jjH jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` PCI device to query ``int cap`` capability code **Description** Returns the address of the requested extended capability structure within the device's PCI configuration space or 0 if the device does not support it. Possible values for **cap** include: ``PCI_EXT_CAP_ID_ERR`` Advanced Error Reporting ``PCI_EXT_CAP_ID_VC`` Virtual Channel ``PCI_EXT_CAP_ID_DSN`` Device Serial Number ``PCI_EXT_CAP_ID_PWR`` Power Budgetingh](j)}(h**Parameters**h]j&)}(hjR h]h Parameters}(hjT hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjP ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjL ubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjq h]hstruct pci_dev *dev}(hjs hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjo ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjk ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhjk ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhjh ubjA)}(h``int cap`` capability code h](jG)}(h ``int cap``h]jM)}(hj h]hint cap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubjc)}(hhh]j)}(hcapability codeh]hcapability code}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhjh ubeh}(h]h ]h"]h$]h&]uh1j;hjL ubj)}(h**Description**h]j&)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjL ubj)}(hReturns the address of the requested extended capability structure within the device's PCI configuration space or 0 if the device does not support it. Possible values for **cap** include:h](hReturns the address of the requested extended capability structure within the device’s PCI configuration space or 0 if the device does not support it. Possible values for }(hj hhhNhNubj&)}(h**cap**h]hcap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubh include:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjL ubjD)}(h``PCI_EXT_CAP_ID_ERR`` Advanced Error Reporting ``PCI_EXT_CAP_ID_VC`` Virtual Channel ``PCI_EXT_CAP_ID_DSN`` Device Serial Number ``PCI_EXT_CAP_ID_PWR`` Power Budgetingh]j)}(h``PCI_EXT_CAP_ID_ERR`` Advanced Error Reporting ``PCI_EXT_CAP_ID_VC`` Virtual Channel ``PCI_EXT_CAP_ID_DSN`` Device Serial Number ``PCI_EXT_CAP_ID_PWR`` Power Budgetingh](jM)}(h``PCI_EXT_CAP_ID_ERR``h]hPCI_EXT_CAP_ID_ERR}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubh" Advanced Error Reporting }(hj hhhNhNubjM)}(h``PCI_EXT_CAP_ID_VC``h]hPCI_EXT_CAP_ID_VC}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubh Virtual Channel }(hj hhhNhNubjM)}(h``PCI_EXT_CAP_ID_DSN``h]hPCI_EXT_CAP_ID_DSN}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubh Device Serial Number }(hj hhhNhNubjM)}(h``PCI_EXT_CAP_ID_PWR``h]hPCI_EXT_CAP_ID_PWR}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubh Power Budgeting}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubah}(h]h ]h"]h$]h&]uh1jChjrhMhjL ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_get_dsn (C function) c.pci_get_dsnhNtauh1hhhhhhNhNubh)}(hhh](h)}(h%u64 pci_get_dsn (struct pci_dev *dev)h]h)}(h$u64 pci_get_dsn(struct pci_dev *dev)h](h)}(hhh]j3)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}j pci_get_dsnsb c.pci_get_dsnasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM$ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM$ubj-)}(h pci_get_dsnh]j3)}(hjh]h pci_get_dsn}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhM$ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j c.pci_get_dsnasbuh1hhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjBhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhM$ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM$hjhhubj)}(hhh]j)}(h/Read and return the 8-byte Device Serial Numberh]h/Read and return the 8-byte Device Serial Number}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM$hjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *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.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM(hjubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM%hjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM%hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhM%hjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM'hjubj)}(hRLooks up the PCI_EXT_CAP_ID_DSN and reads the 8 bytes of the Device Serial Number.h]hRLooks up the PCI_EXT_CAP_ID_DSN and reads the 8 bytes of the Device Serial Number.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM&hjubj)}(h:Returns the DSN, or zero if the capability does not exist.h]h:Returns the DSN, or zero if the capability does not exist.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM)hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،(pci_find_next_ht_capability (C function)c.pci_find_next_ht_capabilityhNtauh1hhhhhhNhNubh)}(hhh](h)}(hHu8 pci_find_next_ht_capability (struct pci_dev *dev, u8 pos, int ht_cap)h]h)}(hGu8 pci_find_next_ht_capability(struct pci_dev *dev, u8 pos, int ht_cap)h](h)}(hhh]j3)}(hu8h]hu8}(hj?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j)}jpci_find_next_ht_capabilitysbc.pci_find_next_ht_capabilityasbuh1hhj8hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMcubj)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhj`hMcubj-)}(hpci_find_next_ht_capabilityh]j3)}(hj]h]hpci_find_next_ht_capability}(hjshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjoubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj8hhhj`hMcubjN)}(h)(struct pci_dev *dev, u8 pos, int ht_cap)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j[c.pci_find_next_ht_capabilityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hu8 posh](h)}(hhh]j3)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j[c.pci_find_next_ht_capabilityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hposh]hpos}(hj-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(h int ht_caph](h)}(hinth]hint}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBubj)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj3)}(hht_caph]hht_cap}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj8hhhj`hMcubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj4hhhj`hMcubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhj`hMchj1hhubj)}(hhh]j)}(h,query a device's HyperTransport capabilitiesh]h.query a device’s HyperTransport capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMchjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj`hMcubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` PCI device to query ``u8 pos`` Position from which to continue searching ``int ht_cap`` HyperTransport capability code **Description** To be used in conjunction with pci_find_ht_capability() to search for all capabilities matching **ht_cap**. **pos** should always be a value returned from pci_find_ht_capability(). NB. To be 100% safe against broken PCI devices, the caller should take steps to avoid an infinite loop.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMghjubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMdhjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMdhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMdhjubjA)}(h5``u8 pos`` Position from which to continue searching h](jG)}(h ``u8 pos``h]jM)}(hjh]hu8 pos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMehjubjc)}(hhh]j)}(h)Position from which to continue searchingh]h)Position from which to continue searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMehjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMehjubjA)}(h.``int ht_cap`` HyperTransport capability code h](jG)}(h``int ht_cap``h]jM)}(hj?h]h int ht_cap}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMfhj9ubjc)}(hhh]j)}(hHyperTransport capability codeh]hHyperTransport capability code}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMfhjUubah}(h]h ]h"]h$]h&]uh1jbhj9ubeh}(h]h ]h"]h$]h&]uh1j@hjThMfhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjzh]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjxubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhhjubj)}(hTo be used in conjunction with pci_find_ht_capability() to search for all capabilities matching **ht_cap**. **pos** should always be a value returned from pci_find_ht_capability().h](h`To be used in conjunction with pci_find_ht_capability() to search for all capabilities matching }(hjhhhNhNubj&)}(h **ht_cap**h]hht_cap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh. }(hjhhhNhNubj&)}(h**pos**h]hpos}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubhA should always be a value returned from pci_find_ht_capability().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMghjubj)}(hgNB. To be 100% safe against broken PCI devices, the caller should take steps to avoid an infinite loop.h]hgNB. To be 100% safe against broken PCI devices, the caller should take steps to avoid an infinite loop.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMkhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_find_ht_capability (C function)c.pci_find_ht_capabilityhNtauh1hhhhhhNhNubh)}(hhh](h)}(h;u8 pci_find_ht_capability (struct pci_dev *dev, int ht_cap)h]h)}(h:u8 pci_find_ht_capability(struct pci_dev *dev, int ht_cap)h](h)}(hhh]j3)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_find_ht_capabilitysbc.pci_find_ht_capabilityasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMvubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMvubj-)}(hpci_find_ht_capabilityh]j3)}(hjh]hpci_find_ht_capability}(hj)hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj%ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMvubjN)}(h!(struct pci_dev *dev, int ht_cap)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjDhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj@ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj_ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjdmodnameN classnameNjj)}j]jc.pci_find_ht_capabilityasbuh1hhj@ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj<ubjT)}(h int ht_caph](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hht_caph]hht_cap}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj<ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMvubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMvubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMvhjhhubj)}(hhh]j)}(h,query a device's HyperTransport capabilitiesh]h.query a device’s HyperTransport capabilities}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMvhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` PCI device to query ``int ht_cap`` HyperTransport capability code **Description** Tell if a device supports a given HyperTransport capability. Returns an address within the device's PCI configuration space or 0 in case the device does not support the request capability. The address points to the PCI capability, of type PCI_CAP_ID_HT, which has a HyperTransport capability matching **ht_cap**.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMzhjubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hj;h]hstruct pci_dev *dev}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMwhj5ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMwhjQubah}(h]h ]h"]h$]h&]uh1jbhj5ubeh}(h]h ]h"]h$]h&]uh1j@hjPhMwhj2ubjA)}(h.``int ht_cap`` HyperTransport capability code h](jG)}(h``int ht_cap``h]jM)}(hjth]h int ht_cap}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMxhjnubjc)}(hhh]j)}(hHyperTransport capability codeh]hHyperTransport capability code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMxhjubah}(h]h ]h"]h$]h&]uh1jbhjnubeh}(h]h ]h"]h$]h&]uh1j@hjhMxhj2ubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMzhjubj)}(hX8Tell if a device supports a given HyperTransport capability. Returns an address within the device's PCI configuration space or 0 in case the device does not support the request capability. The address points to the PCI capability, of type PCI_CAP_ID_HT, which has a HyperTransport capability matching **ht_cap**.h](hX/Tell if a device supports a given HyperTransport capability. Returns an address within the device’s PCI configuration space or 0 in case the device does not support the request capability. The address points to the PCI capability, of type PCI_CAP_ID_HT, which has a HyperTransport capability matching }(hjhhhNhNubj&)}(h **ht_cap**h]hht_cap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMyhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،%pci_find_vsec_capability (C function)c.pci_find_vsec_capabilityhNtauh1hhhhhhNhNubh)}(hhh](h)}(hGu16 pci_find_vsec_capability (struct pci_dev *dev, u16 vendor, int cap)h]h)}(hFu16 pci_find_vsec_capability(struct pci_dev *dev, u16 vendor, int cap)h](h)}(hhh]j3)}(hu16h]hu16}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jpci_find_vsec_capabilitysbc.pci_find_vsec_capabilityasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj*hMubj-)}(hpci_find_vsec_capabilityh]j3)}(hj'h]hpci_find_vsec_capability}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj9ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj*hMubjN)}(h*(struct pci_dev *dev, u16 vendor, int cap)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjXhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j%c.pci_find_vsec_capabilityasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjTubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjPubjT)}(h u16 vendorh](h)}(hhh]j3)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j%c.pci_find_vsec_capabilityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hvendorh]hvendor}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjPubjT)}(hint caph](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj3)}(hcaph]hcap}(hj,hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjPubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj*hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj*hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hMhjhhubj)}(hhh]j)}(h*Find a vendor-specific extended capabilityh]h*Find a vendor-specific extended capability}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1hhhhhhNhNubj)}(hX\**Parameters** ``struct pci_dev *dev`` PCI device to query ``u16 vendor`` Vendor ID for which capability is defined ``int cap`` Vendor-specific capability ID **Description** If **dev** has Vendor ID **vendor**, search for a VSEC capability with VSEC ID **cap**. If found, return the capability offset in config space; otherwise return 0.h](j)}(h**Parameters**h]j&)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjrubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h9``u16 vendor`` Vendor ID for which capability is defined h](jG)}(h``u16 vendor``h]jM)}(hjh]h u16 vendor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(h)Vendor ID for which capability is definedh]h)Vendor ID for which capability is defined}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h*``int cap`` Vendor-specific capability ID h](jG)}(h ``int cap``h]jM)}(hj h]hint cap}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hVendor-specific capability IDh]hVendor-specific capability ID}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubeh}(h]h ]h"]h$]h&]uh1j;hjrubj)}(h**Description**h]j&)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjBubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjrubj)}(hIf **dev** has Vendor ID **vendor**, search for a VSEC capability with VSEC ID **cap**. If found, return the capability offset in config space; otherwise return 0.h](hIf }(hjZhhhNhNubj&)}(h**dev**h]hdev}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh has Vendor ID }(hjZhhhNhNubj&)}(h **vendor**h]hvendor}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh,, search for a VSEC capability with VSEC ID }(hjZhhhNhNubj&)}(h**cap**h]hcap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubhM. If found, return the capability offset in config space; otherwise return 0.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،&pci_find_dvsec_capability (C function)c.pci_find_dvsec_capabilityhNtauh1hhhhhhNhNubh)}(hhh](h)}(hJu16 pci_find_dvsec_capability (struct pci_dev *dev, u16 vendor, u16 dvsec)h]h)}(hIu16 pci_find_dvsec_capability(struct pci_dev *dev, u16 vendor, u16 dvsec)h](h)}(hhh]j3)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_find_dvsec_capabilitysbc.pci_find_dvsec_capabilityasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(hpci_find_dvsec_capabilityh]j3)}(hjh]hpci_find_dvsec_capability}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h,(struct pci_dev *dev, u16 vendor, u16 dvsec)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1modnameN classnameNjj)}j]jc.pci_find_dvsec_capabilityasbuh1hhj ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj3)}(hdevh]hdev}(hjhhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubjT)}(h u16 vendorh](h)}(hhh]j3)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_find_dvsec_capabilityasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj3)}(hvendorh]hvendor}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubjT)}(h u16 dvsech](h)}(hhh]j3)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_find_dvsec_capabilityasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hdvsech]hdvsec}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hFind DVSEC for vendorh]hFind DVSEC for vendor}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhhhNhNubj)}(hX7**Parameters** ``struct pci_dev *dev`` PCI device to query ``u16 vendor`` Vendor ID to match for the DVSEC ``u16 dvsec`` Designated Vendor-specific capability ID **Description** If DVSEC has Vendor ID **vendor** and DVSEC ID **dvsec** return the capability offset in config space; otherwise return 0.h](j)}(h**Parameters**h]j&)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjBubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj>ubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjch]hstruct pci_dev *dev}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjaubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj]ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jbhj]ubeh}(h]h ]h"]h$]h&]uh1j@hjxhMhjZubjA)}(h0``u16 vendor`` Vendor ID to match for the DVSEC h](jG)}(h``u16 vendor``h]jM)}(hjh]h u16 vendor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(h Vendor ID to match for the DVSECh]h Vendor ID to match for the DVSEC}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjZubjA)}(h7``u16 dvsec`` Designated Vendor-specific capability ID h](jG)}(h ``u16 dvsec``h]jM)}(hjh]h u16 dvsec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(h(Designated Vendor-specific capability IDh]h(Designated Vendor-specific capability ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjZubeh}(h]h ]h"]h$]h&]uh1j;hj>ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj>ubj)}(hzIf DVSEC has Vendor ID **vendor** and DVSEC ID **dvsec** return the capability offset in config space; otherwise return 0.h](hIf DVSEC has Vendor ID }(hj&hhhNhNubj&)}(h **vendor**h]hvendor}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubh and DVSEC ID }(hj&hhhNhNubj&)}(h **dvsec**h]hdvsec}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubhB return the capability offset in config space; otherwise return 0.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،%pci_find_parent_resource (C function)c.pci_find_parent_resourcehNtauh1hhhhhhNhNubh)}(hhh](h)}(h\struct resource * pci_find_parent_resource (const struct pci_dev *dev, struct resource *res)h]h)}(hZstruct resource *pci_find_parent_resource(const struct pci_dev *dev, struct resource *res)h](jZ)}(hj]h]hstruct}(hjyhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjuhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjhMubh)}(hhh]j3)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_find_parent_resourcesbc.pci_find_parent_resourceasbuh1hhjuhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhhjhMubj-)}(hpci_find_parent_resourceh]j3)}(hjh]hpci_find_parent_resource}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjuhhhjhMubjN)}(h1(const struct pci_dev *dev, struct resource *res)h](jT)}(hconst struct pci_dev *devh](jZ)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/modnameN classnameNjj)}j]jc.pci_find_parent_resourceasbuh1hhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct resource *resh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubh)}(hhh]j3)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_find_parent_resourceasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj3)}(hresh]hres}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjuhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjqhhhjhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjnhhubj)}(hhh]j)}(h4return resource region of parent bus of given regionh]h4return resource region of parent bus of given region}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX;**Parameters** ``const struct pci_dev *dev`` PCI device structure contains resources to be searched ``struct resource *res`` child resource record for which parent is sought **Description** For given resource region of given device, return the resource region of parent bus the given region is contained in.h](j)}(h**Parameters**h]j&)}(hj"h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj<)}(hhh](jA)}(hU``const struct pci_dev *dev`` PCI device structure contains resources to be searched h](jG)}(h``const struct pci_dev *dev``h]jM)}(hjAh]hconst struct pci_dev *dev}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj;ubjc)}(hhh]j)}(h6PCI device structure contains resources to be searchedh]h6PCI device structure contains resources to be searched}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jbhj;ubeh}(h]h ]h"]h$]h&]uh1j@hjVhMhj8ubjA)}(hJ``struct resource *res`` child resource record for which parent is sought h](jG)}(h``struct resource *res``h]jM)}(hjzh]hstruct resource *res}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtubjc)}(hhh]j)}(h0child resource record for which parent is soughth]h0child resource record for which parent is sought}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjtubeh}(h]h ]h"]h$]h&]uh1j@hjhMhj8ubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(huFor given resource region of given device, return the resource region of parent bus the given region is contained in.h]huFor given resource region of given device, return the resource region of parent bus the given region is contained in.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_find_resource (C function)c.pci_find_resourcehNtauh1hhhhhhNhNubh)}(hhh](h)}(hOstruct resource * pci_find_resource (struct pci_dev *dev, struct resource *res)h]h)}(hMstruct resource *pci_find_resource(struct pci_dev *dev, struct resource *res)h](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j3)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_find_resourcesbc.pci_find_resourceasbuh1hhjhhhjhMubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj-)}(hpci_find_resourceh]j3)}(hj7h]hpci_find_resource}(hjYhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h+(struct pci_dev *dev, struct resource *res)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjthhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j5c.pci_find_resourceasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjlubjT)}(hstruct resource *resh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hresourceh]hresource}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j5c.pci_find_resourceasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hresh]hres}(hj;hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjlubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h#Return matching PCI device resourceh]h#Return matching PCI device resource}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhhhNhNubj)}(hX=**Parameters** ``struct pci_dev *dev`` PCI device to query ``struct resource *res`` Resource to look for **Description** Goes over standard PCI resources (BARs) and checks if the given resource is partially or fully contained in any of them. In that case the matching resource is returned, ``NULL`` otherwise.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h.``struct resource *res`` Resource to look for h](jG)}(h``struct resource *res``h]jM)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hResource to look forh]hResource to look for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(hGoes over standard PCI resources (BARs) and checks if the given resource is partially or fully contained in any of them. In that case the matching resource is returned, ``NULL`` otherwise.h](hGoes over standard PCI resources (BARs) and checks if the given resource is partially or fully contained in any of them. In that case the matching resource is returned, }(hj0hhhNhNubjM)}(h``NULL``h]hNULL}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0ubh otherwise.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،*pci_platform_power_transition (C function)c.pci_platform_power_transitionhNtauh1hhhhhhNhNubh)}(hhh](h)}(hJint pci_platform_power_transition (struct pci_dev *dev, pci_power_t state)h]h)}(hIint pci_platform_power_transition(struct pci_dev *dev, pci_power_t state)h](h)}(hinth]hint}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmhhhjhMubj-)}(hpci_platform_power_transitionh]j3)}(hpci_platform_power_transitionh]hpci_platform_power_transition}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjmhhhjhMubjN)}(h((struct pci_dev *dev, pci_power_t state)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pci_platform_power_transitionasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hpci_power_t stateh](h)}(hhh]j3)}(h pci_power_th]h pci_power_t}(hj# hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj% modnameN classnameNjj)}j]jc.pci_platform_power_transitionasbuh1hhj ubj)}(h h]h }(hjA hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj3)}(hstateh]hstate}(hjO hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjmhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjihhhjhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjfhhubj)}(hhh]j)}(h)Use platform to change device power stateh]h)Use platform to change device power state}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjv hhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(hv**Parameters** ``struct pci_dev *dev`` PCI device to handle. ``pci_power_t state`` State to put the device into.h](j)}(h**Parameters**h]j&)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubj<)}(hhh](jA)}(h.``struct pci_dev *dev`` PCI device to handle. h](jG)}(h``struct pci_dev *dev``h]jM)}(hj h]hstruct pci_dev *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubjc)}(hhh]j)}(hPCI device to handle.h]hPCI device to handle.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhj ubjA)}(h3``pci_power_t state`` State to put the device into.h](jG)}(h``pci_power_t state``h]jM)}(hj h]hpci_power_t state}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj ubjc)}(hhh]j)}(hState to put the device into.h]hState to put the device into.}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj !ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj!hMhj ubeh}(h]h ]h"]h$]h&]uh1j;hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_set_power_state (C function)c.pci_set_power_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(h@int pci_set_power_state (struct pci_dev *dev, pci_power_t state)h]h)}(h?int pci_set_power_state(struct pci_dev *dev, pci_power_t state)h](h)}(hinth]hint}(hjM!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjI!hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMUubj)}(h h]h }(hj\!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI!hhhj[!hMUubj-)}(hpci_set_power_stateh]j3)}(hpci_set_power_stateh]hpci_set_power_state}(hjn!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjj!ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjI!hhhj[!hMUubjN)}(h((struct pci_dev *dev, pci_power_t state)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj!hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j)}jjp!sbc.pci_set_power_stateasbuh1hhj!ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubj3)}(hdevh]hdev}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj!ubjT)}(hpci_power_t stateh](h)}(hhh]j3)}(h pci_power_th]h pci_power_t}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"modnameN classnameNjj)}j]j!c.pci_set_power_stateasbuh1hhj!ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!ubj3)}(hstateh]hstate}(hj+"hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj!ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjI!hhhj[!hMUubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjE!hhhj[!hMUubah}(h]j@!ah ](jjeh"]h$]h&]jj)jhuh1hhj[!hMUhjB!hhubj)}(hhh]j)}(h#Set the power state of a PCI deviceh]h#Set the power state of a PCI device}(hjU"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMUhjR"hhubah}(h]h ]h"]h$]h&]uh1jhjB!hhhj[!hMUubeh}(h]h ](jfunctioneh"]h$]h&]jjjjm"jjm"jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` PCI device to handle. ``pci_power_t state`` PCI power state (D0, D1, D2, D3hot) to put the device into. **Description** Transition a device to a new power state, using the platform firmware and/or the device's PCI PM registers. RETURN VALUE: -EINVAL if the requested state is invalid. -EIO if device does not support PCI PM or its PM capabilities register has a wrong version, or device doesn't support the requested state. 0 if the transition is to D1 or D2 but D1 and D2 are not supported. 0 if device already is in the requested state. 0 if the transition is to D3 but D3 is not supported. 0 if device's power state has been successfully changed.h](j)}(h**Parameters**h]j&)}(hjw"h]h Parameters}(hjy"hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hju"ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMYhjq"ubj<)}(hhh](jA)}(h.``struct pci_dev *dev`` PCI device to handle. h](jG)}(h``struct pci_dev *dev``h]jM)}(hj"h]hstruct pci_dev *dev}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMVhj"ubjc)}(hhh]j)}(hPCI device to handle.h]hPCI device to handle.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMVhj"ubah}(h]h ]h"]h$]h&]uh1jbhj"ubeh}(h]h ]h"]h$]h&]uh1j@hj"hMVhj"ubjA)}(hR``pci_power_t state`` PCI power state (D0, D1, D2, D3hot) to put the device into. h](jG)}(h``pci_power_t state``h]jM)}(hj"h]hpci_power_t state}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMWhj"ubjc)}(hhh]j)}(h;PCI power state (D0, D1, D2, D3hot) to put the device into.h]h;PCI power state (D0, D1, D2, D3hot) to put the device into.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMWhj"ubah}(h]h ]h"]h$]h&]uh1jbhj"ubeh}(h]h ]h"]h$]h&]uh1j@hj"hMWhj"ubeh}(h]h ]h"]h$]h&]uh1j;hjq"ubj)}(h**Description**h]j&)}(hj #h]h Description}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj#ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMYhjq"ubj)}(hkTransition a device to a new power state, using the platform firmware and/or the device's PCI PM registers.h]hmTransition a device to a new power state, using the platform firmware and/or the device’s PCI PM registers.}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMXhjq"ubj)}(hXRETURN VALUE: -EINVAL if the requested state is invalid. -EIO if device does not support PCI PM or its PM capabilities register has a wrong version, or device doesn't support the requested state. 0 if the transition is to D1 or D2 but D1 and D2 are not supported. 0 if device already is in the requested state. 0 if the transition is to D3 but D3 is not supported. 0 if device's power state has been successfully changed.h]hXRETURN VALUE: -EINVAL if the requested state is invalid. -EIO if device does not support PCI PM or its PM capabilities register has a wrong version, or device doesn’t support the requested state. 0 if the transition is to D1 or D2 but D1 and D2 are not supported. 0 if device already is in the requested state. 0 if the transition is to D3 but D3 is not supported. 0 if device’s power state has been successfully changed.}(hj/#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM[hjq"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_save_state (C function)c.pci_save_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(h(int pci_save_state (struct pci_dev *dev)h]h)}(h'int pci_save_state(struct pci_dev *dev)h](h)}(hinth]hint}(hj^#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZ#hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjm#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ#hhhjl#hMubj-)}(hpci_save_stateh]j3)}(hpci_save_stateh]hpci_save_state}(hj#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{#ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjZ#hhhjl#hMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj#hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj#modnameN classnameNjj)}j]j)}jj#sbc.pci_save_stateasbuh1hhj#ubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj3)}(hdevh]hdev}(hj#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj#ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjZ#hhhjl#hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjV#hhhjl#hMubah}(h]jQ#ah ](jjeh"]h$]h&]jj)jhuh1hhjl#hMhjS#hhubj)}(hhh]j)}(h>save the PCI configuration space of a device before suspendingh]h>save the PCI configuration space of a device before suspending}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhjS#hhhjl#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6$jj6$jjjuh1hhhhhhNhNubj)}(hL**Parameters** ``struct pci_dev *dev`` PCI device that we're dealing withh](j)}(h**Parameters**h]j&)}(hj@$h]h Parameters}(hjB$hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj>$ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj:$ubj<)}(hhh]jA)}(h:``struct pci_dev *dev`` PCI device that we're dealing withh](jG)}(h``struct pci_dev *dev``h]jM)}(hj_$h]hstruct pci_dev *dev}(hja$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]$ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjY$ubjc)}(hhh]j)}(h"PCI device that we're dealing withh]h$PCI device that we’re dealing with}(hjx$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhju$ubah}(h]h ]h"]h$]h&]uh1jbhjY$ubeh}(h]h ]h"]h$]h&]uh1j@hjt$hMhjV$ubah}(h]h ]h"]h$]h&]uh1j;hj:$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_restore_state (C function)c.pci_restore_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(h,void pci_restore_state (struct pci_dev *dev)h]h)}(h+void pci_restore_state(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM@ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$hhhj$hM@ubj-)}(hpci_restore_stateh]j3)}(hpci_restore_stateh]hpci_restore_state}(hj$hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj$hhhj$hM@ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj$hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj$ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj%hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj%ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj%modnameN classnameNjj)}j]j)}jj$sbc.pci_restore_stateasbuh1hhj$ubj)}(h h]h }(hj4%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hjB%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj3)}(hdevh]hdev}(hjO%hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj$ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj$hhhj$hM@ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj$hhhj$hM@ubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hM@hj$hhubj)}(hhh]j)}(h'Restore the saved state of a PCI deviceh]h'Restore the saved state of a PCI device}(hjy%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM@hjv%hhubah}(h]h ]h"]h$]h&]uh1jhj$hhhj$hM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj%jj%jjjuh1hhhhhhNhNubj)}(hL**Parameters** ``struct pci_dev *dev`` PCI device that we're dealing withh](j)}(h**Parameters**h]j&)}(hj%h]h Parameters}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj%ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMDhj%ubj<)}(hhh]jA)}(h:``struct pci_dev *dev`` PCI device that we're dealing withh](jG)}(h``struct pci_dev *dev``h]jM)}(hj%h]hstruct pci_dev *dev}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMFhj%ubjc)}(hhh]j)}(h"PCI device that we're dealing withh]h$PCI device that we’re dealing with}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMAhj%ubah}(h]h ]h"]h$]h&]uh1jbhj%ubeh}(h]h ]h"]h$]h&]uh1j@hj%hMFhj%ubah}(h]h ]h"]h$]h&]uh1j;hj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،"pci_store_saved_state (C function)c.pci_store_saved_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(hDstruct pci_saved_state * pci_store_saved_state (struct pci_dev *dev)h]h)}(hBstruct pci_saved_state *pci_store_saved_state(struct pci_dev *dev)h](jZ)}(hj]h]hstruct}(hj&hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj&hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMeubj)}(h h]h }(hj"&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj!&hMeubh)}(hhh]j3)}(hpci_saved_stateh]hpci_saved_state}(hj3&hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj5&modnameN classnameNjj)}j]j)}jpci_store_saved_statesbc.pci_store_saved_stateasbuh1hhj&hhhj!&hMeubj)}(h h]h }(hjT&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj!&hMeubj)}(hjh]h*}(hjb&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj!&hMeubj-)}(hpci_store_saved_stateh]j3)}(hjQ&h]hpci_store_saved_state}(hjs&hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjo&ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj&hhhj!&hMeubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj&hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj&hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj&modnameN classnameNjj)}j]jO&c.pci_store_saved_stateasbuh1hhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj3)}(hdevh]hdev}(hj&hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj&ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj&hhhj!&hMeubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj &hhhj!&hMeubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj!&hMehj &hhubj)}(hhh]j)}(hGAllocate and return an opaque struct containing the device saved state.h]hGAllocate and return an opaque struct containing the device saved state.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMehj 'hhubah}(h]h ]h"]h$]h&]uh1jhj &hhhj!&hMeubeh}(h]h ](jfunctioneh"]h$]h&]jjjj''jj''jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device that we're dealing with **Description** Return NULL if no state or error.h](j)}(h**Parameters**h]j&)}(hj1'h]h Parameters}(hj3'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj/'ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMihj+'ubj<)}(hhh]jA)}(h;``struct pci_dev *dev`` PCI device that we're dealing with h](jG)}(h``struct pci_dev *dev``h]jM)}(hjP'h]hstruct pci_dev *dev}(hjR'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjN'ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMghjJ'ubjc)}(hhh]j)}(h"PCI device that we're dealing withh]h$PCI device that we’re dealing with}(hji'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhje'hMghjf'ubah}(h]h ]h"]h$]h&]uh1jbhjJ'ubeh}(h]h ]h"]h$]h&]uh1j@hje'hMghjG'ubah}(h]h ]h"]h$]h&]uh1j;hj+'ubj)}(h**Description**h]j&)}(hj'h]h Description}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj'ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMihj+'ubj)}(h!Return NULL if no state or error.h]h!Return NULL if no state or error.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhhj+'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،!pci_load_saved_state (C function)c.pci_load_saved_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(hMint pci_load_saved_state (struct pci_dev *dev, struct pci_saved_state *state)h]h)}(hLint pci_load_saved_state(struct pci_dev *dev, struct pci_saved_state *state)h](h)}(hinth]hint}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj'hMubj-)}(hpci_load_saved_stateh]j3)}(hpci_load_saved_stateh]hpci_load_saved_state}(hj'hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj'ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj'hhhj'hMubjN)}(h4(struct pci_dev *dev, struct pci_saved_state *state)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj (hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj (ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj (ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj+(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj((ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-(modnameN classnameNjj)}j]j)}jj'sbc.pci_load_saved_stateasbuh1hhj (ubj)}(h h]h }(hjK(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj (ubj)}(hjh]h*}(hjY(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj (ubj3)}(hdevh]hdev}(hjf(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj (ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj(ubjT)}(hstruct pci_saved_state *stateh](jZ)}(hj]h]hstruct}(hj(hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj{(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{(ubh)}(hhh]j3)}(hpci_saved_stateh]hpci_saved_state}(hj(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(modnameN classnameNjj)}j]jG(c.pci_load_saved_stateasbuh1hhj{(ubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{(ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{(ubj3)}(hstateh]hstate}(hj(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{(ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj(ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj'hhhj'hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj'hhhj'hMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMhj'hhubj)}(hhh]j)}(h3Reload the provided save state into struct pci_dev.h]h3Reload the provided save state into struct pci_dev.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device that we're dealing with ``struct pci_saved_state *state`` Saved state returned from pci_store_saved_state()h](j)}(h**Parameters**h]j&)}(hj")h]h Parameters}(hj$)hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj )ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj)ubj<)}(hhh](jA)}(h;``struct pci_dev *dev`` PCI device that we're dealing with h](jG)}(h``struct pci_dev *dev``h]jM)}(hjA)h]hstruct pci_dev *dev}(hjC)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj?)ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj;)ubjc)}(hhh]j)}(h"PCI device that we're dealing withh]h$PCI device that we’re dealing with}(hjZ)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV)hMhjW)ubah}(h]h ]h"]h$]h&]uh1jbhj;)ubeh}(h]h ]h"]h$]h&]uh1j@hjV)hMhj8)ubjA)}(hS``struct pci_saved_state *state`` Saved state returned from pci_store_saved_state()h](jG)}(h!``struct pci_saved_state *state``h]jM)}(hjz)h]hstruct pci_saved_state *state}(hj|)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjx)ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjt)ubjc)}(hhh]j)}(h1Saved state returned from pci_store_saved_state()h]h1Saved state returned from pci_store_saved_state()}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj)ubah}(h]h ]h"]h$]h&]uh1jbhjt)ubeh}(h]h ]h"]h$]h&]uh1j@hj)hMhj8)ubeh}(h]h ]h"]h$]h&]uh1j;hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،*pci_load_and_free_saved_state (C function)c.pci_load_and_free_saved_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(hWint pci_load_and_free_saved_state (struct pci_dev *dev, struct pci_saved_state **state)h]h)}(hVint pci_load_and_free_saved_state(struct pci_dev *dev, struct pci_saved_state **state)h](h)}(hinth]hint}(hj)hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)hhhj)hMubj-)}(hpci_load_and_free_saved_stateh]j3)}(hpci_load_and_free_saved_stateh]hpci_load_and_free_saved_state}(hj)hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj)ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj)hhhj)hMubjN)}(h5(struct pci_dev *dev, struct pci_saved_state **state)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj*hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj *ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj *ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj/*hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1*modnameN classnameNjj)}j]j)}jj)sbc.pci_load_and_free_saved_stateasbuh1hhj *ubj)}(h h]h }(hjO*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj *ubj)}(hjh]h*}(hj]*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj *ubj3)}(hdevh]hdev}(hjj*hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj *ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj *ubjT)}(hstruct pci_saved_state **stateh](jZ)}(hj]h]hstruct}(hj*hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubh)}(hhh]j3)}(hpci_saved_stateh]hpci_saved_state}(hj*hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj*modnameN classnameNjj)}j]jK*c.pci_load_and_free_saved_stateasbuh1hhj*ubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj3)}(hstateh]hstate}(hj*hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj*ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj *ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj)hhhj)hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj)hhhj)hMubah}(h]j)ah ](jjeh"]h$]h&]jj)jhuh1hhj)hMhj)hhubj)}(hhh]j)}(hPReload the save state pointed to by state, and free the memory allocated for it.h]hPReload the save state pointed to by state, and free the memory allocated for it.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)+jj)+jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device that we're dealing with ``struct pci_saved_state **state`` Pointer to saved state returned from pci_store_saved_state()h](j)}(h**Parameters**h]j&)}(hj3+h]h Parameters}(hj5+hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj1+ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj-+ubj<)}(hhh](jA)}(h;``struct pci_dev *dev`` PCI device that we're dealing with h](jG)}(h``struct pci_dev *dev``h]jM)}(hjR+h]hstruct pci_dev *dev}(hjT+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjP+ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjL+ubjc)}(hhh]j)}(h"PCI device that we're dealing withh]h$PCI device that we’re dealing with}(hjk+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjg+hMhjh+ubah}(h]h ]h"]h$]h&]uh1jbhjL+ubeh}(h]h ]h"]h$]h&]uh1j@hjg+hMhjI+ubjA)}(h_``struct pci_saved_state **state`` Pointer to saved state returned from pci_store_saved_state()h](jG)}(h"``struct pci_saved_state **state``h]jM)}(hj+h]hstruct pci_saved_state **state}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj+ubjc)}(hhh]j)}(h.jj>.jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *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 was suspended. Beware, this function can fail.h](j)}(h**Parameters**h]j&)}(hjH.h]h Parameters}(hjJ.hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjF.ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMUhjB.ubj<)}(hhh]jA)}(h5``struct pci_dev *dev`` PCI device to be initialized h](jG)}(h``struct pci_dev *dev``h]jM)}(hjg.h]hstruct pci_dev *dev}(hji.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhje.ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMRhja.ubjc)}(hhh]j)}(hPCI device to be initializedh]hPCI device to be initialized}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|.hMRhj}.ubah}(h]h ]h"]h$]h&]uh1jbhja.ubeh}(h]h ]h"]h$]h&]uh1j@hj|.hMRhj^.ubah}(h]h ]h"]h$]h&]uh1j;hjB.ubj)}(h**Description**h]j&)}(hj.h]h Description}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj.ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMThjB.ubj)}(hInitialize device before it's used by a driver. Ask low-level code to enable Memory resources. Wake up the device if it was suspended. Beware, this function can fail.h]hInitialize device before it’s used by a driver. Ask low-level code to enable Memory resources. Wake up the device if it was suspended. Beware, this function can fail.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMShjB.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_enable_device (C function)c.pci_enable_devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(h+int pci_enable_device (struct pci_dev *dev)h]h)}(h*int pci_enable_device(struct pci_dev *dev)h](h)}(hinth]hint}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj.hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM_ubj)}(h h]h }(hj.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj.hM_ubj-)}(hpci_enable_deviceh]j3)}(hpci_enable_deviceh]hpci_enable_device}(hj/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj.hhhj.hM_ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj$/hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj /ubj)}(h h]h }(hj1/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj /ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjB/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj?/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjD/modnameN classnameNjj)}j]j)}jj /sbc.pci_enable_deviceasbuh1hhj /ubj)}(h h]h }(hjb/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj /ubj)}(hjh]h*}(hjp/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj /ubj3)}(hdevh]hdev}(hj}/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj /ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj/ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj.hhhj.hM_ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj.hhhj.hM_ubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1hhj.hM_hj.hhubj)}(hhh]j)}(h/Initialize device before it's used by a driver.h]h1Initialize device before it’s used by a driver.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM_hj/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hM_ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1hhhhhhNhNubj)}(hXu**Parameters** ``struct pci_dev *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 suspended. Beware, this function can fail. Note we don't actually enable the device many times if we call this function repeatedly (we just increment the count).h](j)}(h**Parameters**h]j&)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj/ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMchj/ubj<)}(hhh]jA)}(h5``struct pci_dev *dev`` PCI device to be initialized h](jG)}(h``struct pci_dev *dev``h]jM)}(hj/h]hstruct pci_dev *dev}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM`hj/ubjc)}(hhh]j)}(hPCI device to be initializedh]hPCI device to be initialized}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hM`hj/ubah}(h]h ]h"]h$]h&]uh1jbhj/ubeh}(h]h ]h"]h$]h&]uh1j@hj/hM`hj/ubah}(h]h ]h"]h$]h&]uh1j;hj/ubj)}(h**Description**h]j&)}(hj#0h]h Description}(hj%0hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj!0ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMbhj/ubj)}(hInitialize 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 suspended. Beware, this function can fail.h]hInitialize 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 suspended. Beware, this function can fail.}(hj90hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMahj/ubj)}(hvNote we don't actually enable the device many times if we call this function repeatedly (we just increment the count).h]hxNote we don’t actually enable the device many times if we call this function repeatedly (we just increment the count).}(hjH0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMehj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_disable_device (C function)c.pci_disable_devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(h-void pci_disable_device (struct pci_dev *dev)h]h)}(h,void pci_disable_device(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hjw0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjs0hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjs0hhhj0hMubj-)}(hpci_disable_deviceh]j3)}(hpci_disable_deviceh]hpci_disable_device}(hj0hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjs0hhhj0hMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj0hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj0hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0modnameN classnameNjj)}j]j)}jj0sbc.pci_disable_deviceasbuh1hhj0ubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj3)}(hdevh]hdev}(hj 1hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj0ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjs0hhhj0hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjo0hhhj0hMubah}(h]jj0ah ](jjeh"]h$]h&]jj)jhuh1hhj0hMhjl0hhubj)}(hhh]j)}(hDisable PCI device after useh]hDisable PCI device after use}(hj71hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj41hhubah}(h]h ]h"]h$]h&]uh1jhjl0hhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjO1jjO1jjjuh1hhhhhhNhNubj)}(hXU**Parameters** ``struct pci_dev *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 we don't actually disable the device until all callers of pci_enable_device() have called pci_disable_device().h](j)}(h**Parameters**h]j&)}(hjY1h]h Parameters}(hj[1hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjW1ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjS1ubj<)}(hhh]jA)}(h2``struct pci_dev *dev`` PCI device to be disabled h](jG)}(h``struct pci_dev *dev``h]jM)}(hjx1h]hstruct pci_dev *dev}(hjz1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjv1ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjr1ubjc)}(hhh]j)}(hPCI device to be disabledh]hPCI device to be disabled}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1jbhjr1ubeh}(h]h ]h"]h$]h&]uh1j@hj1hMhjo1ubah}(h]h ]h"]h$]h&]uh1j;hjS1ubj)}(h**Description**h]j&)}(hj1h]h Description}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj1ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjS1ubj)}(hSignal to the system that the PCI device is not in use by the system anymore. This only involves disabling PCI bus-mastering, if active.h]hSignal to the system that the PCI device is not in use by the system anymore. This only involves disabling PCI bus-mastering, if active.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjS1ubj)}(htNote we don't actually disable the device until all callers of pci_enable_device() have called pci_disable_device().h]hvNote we don’t actually disable the device until all callers of pci_enable_device() have called pci_disable_device().}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjS1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،%pci_set_pcie_reset_state (C function)c.pci_set_pcie_reset_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(hOint pci_set_pcie_reset_state (struct pci_dev *dev, enum pcie_reset_state state)h]h)}(hNint pci_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state state)h](h)}(hinth]hint}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2hhhj2hMubj-)}(hpci_set_pcie_reset_stateh]j3)}(hpci_set_pcie_reset_stateh]hpci_set_pcie_reset_state}(hj(2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$2ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj2hhhj2hMubjN)}(h2(struct pci_dev *dev, enum pcie_reset_state state)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjD2hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj@2ubj)}(h h]h }(hjQ2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@2ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjb2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj_2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjd2modnameN classnameNjj)}j]j)}jj*2sbc.pci_set_pcie_reset_stateasbuh1hhj@2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@2ubj3)}(hdevh]hdev}(hj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@2ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj<2ubjT)}(henum pcie_reset_state stateh](jZ)}(henumh]henum}(hj2hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubh)}(hhh]j3)}(hpcie_reset_stateh]hpcie_reset_state}(hj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj2modnameN classnameNjj)}j]j~2c.pci_set_pcie_reset_stateasbuh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj3)}(hstateh]hstate}(hj3hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj<2ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj2hhhj2hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj1hhhj2hMubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj2hMhj1hhubj)}(hhh]j)}(hset reset state for device devh]hset reset state for device dev}(hj+3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj(3hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjC3jjC3jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCIe device reset ``enum pcie_reset_state state`` Reset state to enter into **Description** Sets the PCI reset state for the device.h](j)}(h**Parameters**h]j&)}(hjM3h]h Parameters}(hjO3hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjK3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjG3ubj<)}(hhh](jA)}(h.``struct pci_dev *dev`` the PCIe device reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjl3h]hstruct pci_dev *dev}(hjn3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjj3ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjf3ubjc)}(hhh]j)}(hthe PCIe device reseth]hthe PCIe device reset}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jbhjf3ubeh}(h]h ]h"]h$]h&]uh1j@hj3hMhjc3ubjA)}(h:``enum pcie_reset_state state`` Reset state to enter into h](jG)}(h``enum pcie_reset_state state``h]jM)}(hj3h]henum pcie_reset_state state}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj3ubjc)}(hhh]j)}(hReset state to enter intoh]hReset state to enter into}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hMhj3ubah}(h]h ]h"]h$]h&]uh1jbhj3ubeh}(h]h ]h"]h$]h&]uh1j@hj3hMhjc3ubeh}(h]h ]h"]h$]h&]uh1j;hjG3ubj)}(h**Description**h]j&)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjG3ubj)}(h(Sets the PCI reset state for the device.h]h(Sets the PCI reset state for the device.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjG3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_pme_capable (C function)c.pci_pme_capablehNtauh1hhhhhhNhNubh)}(hhh](h)}(h=bool pci_pme_capable (struct pci_dev *dev, pci_power_t state)h]h)}(h6hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj:6ubj)}(h h]h }(hjK6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:6ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj\6hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjY6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^6modnameN classnameNjj)}j]j)}jj$6sbc.pci_pme_activeasbuh1hhj:6ubj)}(h h]h }(hj|6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:6ubj3)}(hdevh]hdev}(hj6hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:6ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj66ubjT)}(h bool enableh](h)}(hj'4h]hbool}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj6ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj3)}(henableh]henable}(hj6hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj6ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj66ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj5hhhj6hM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj5hhhj6hM ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1hhj6hM hj5hhubj)}(hhh]j)}(h,enable or disable PCI device's PME# functionh]h.enable or disable PCI device’s PME# function}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj6hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj6hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj 7jj 7jjjuh1hhhhhhNhNubj)}(hX **Parameters** ``struct pci_dev *dev`` PCI device to handle. ``bool enable`` 'true' to enable PME# generation; 'false' to disable it. **Description** The caller must verify that the device is capable of generating PME# before calling this function with **enable** equal to 'true'.h](j)}(h**Parameters**h]j&)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj7ubj<)}(hhh](jA)}(h.``struct pci_dev *dev`` PCI device to handle. h](jG)}(h``struct pci_dev *dev``h]jM)}(hj67h]hstruct pci_dev *dev}(hj87hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj47ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj07ubjc)}(hhh]j)}(hPCI device to handle.h]hPCI device to handle.}(hjO7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK7hM hjL7ubah}(h]h ]h"]h$]h&]uh1jbhj07ubeh}(h]h ]h"]h$]h&]uh1j@hjK7hM hj-7ubjA)}(hI``bool enable`` 'true' to enable PME# generation; 'false' to disable it. h](jG)}(h``bool enable``h]jM)}(hjo7h]h bool enable}(hjq7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjm7ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hji7ubjc)}(hhh]j)}(h8'true' to enable PME# generation; 'false' to disable it.h]h@‘true’ to enable PME# generation; ‘false’ to disable it.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jbhji7ubeh}(h]h ]h"]h$]h&]uh1j@hj7hM hj-7ubeh}(h]h ]h"]h$]h&]uh1j;hj7ubj)}(h**Description**h]j&)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj7ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj7ubj)}(hThe caller must verify that the device is capable of generating PME# before calling this function with **enable** equal to 'true'.h](hgThe caller must verify that the device is capable of generating PME# before calling this function with }(hj7hhhNhNubj&)}(h **enable**h]henable}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj7ubh equal to ‘true’.}(hj7hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_enable_wake (C function)c.pci_enable_wakehNtauh1hhhhhhNhNubh)}(hhh](h)}(hMint pci_enable_wake (struct pci_dev *pci_dev, pci_power_t state, bool enable)h]h)}(hLint pci_enable_wake(struct pci_dev *pci_dev, pci_power_t state, bool enable)h](h)}(hinth]hint}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM% ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7hhhj8hM% ubj-)}(hpci_enable_wakeh]j3)}(hpci_enable_wakeh]hpci_enable_wake}(hj"8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj8ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj7hhhj8hM% ubjN)}(h9(struct pci_dev *pci_dev, pci_power_t state, bool enable)h](jT)}(hstruct pci_dev *pci_devh](jZ)}(hj]h]hstruct}(hj>8hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj:8ubj)}(h h]h }(hjK8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:8ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj\8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjY8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^8modnameN classnameNjj)}j]j)}jj$8sbc.pci_enable_wakeasbuh1hhj:8ubj)}(h h]h }(hj|8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:8ubj3)}(hpci_devh]hpci_dev}(hj8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:8ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj68ubjT)}(hpci_power_t stateh](h)}(hhh]j3)}(h pci_power_th]h pci_power_t}(hj8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]jx8c.pci_enable_wakeasbuh1hhj8ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj3)}(hstateh]hstate}(hj8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj8ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj68ubjT)}(h bool enableh](h)}(hj'4h]hbool}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8ubj3)}(henableh]henable}(hj9hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj8ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj68ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj7hhhj8hM% ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj7hhhj8hM% ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhj8hM% hj7hhubj)}(hhh]j)}(h'change wakeup settings for a PCI deviceh]h'change wakeup settings for a PCI device}(hj=9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM% hj:9hhubah}(h]h ]h"]h$]h&]uh1jhj7hhhj8hM% ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjU9jjU9jjjuh1hhhhhhNhNubj)}(hXB**Parameters** ``struct pci_dev *pci_dev`` Target device ``pci_power_t state`` PCI state from which device will issue wakeup events ``bool enable`` Whether or not to enable event generation **Description** If **enable** is set, check device_may_wakeup() for the device before calling __pci_enable_wake() for it.h](j)}(h**Parameters**h]j&)}(hj_9h]h Parameters}(hja9hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj]9ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM) hjY9ubj<)}(hhh](jA)}(h*``struct pci_dev *pci_dev`` Target device h](jG)}(h``struct pci_dev *pci_dev``h]jM)}(hj~9h]hstruct pci_dev *pci_dev}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|9ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM& hjx9ubjc)}(hhh]j)}(h Target deviceh]h Target device}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hM& hj9ubah}(h]h ]h"]h$]h&]uh1jbhjx9ubeh}(h]h ]h"]h$]h&]uh1j@hj9hM& hju9ubjA)}(hK``pci_power_t state`` PCI state from which device will issue wakeup events h](jG)}(h``pci_power_t state``h]jM)}(hj9h]hpci_power_t state}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM' hj9ubjc)}(hhh]j)}(h4PCI state from which device will issue wakeup eventsh]h4PCI state from which device will issue wakeup events}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hM' hj9ubah}(h]h ]h"]h$]h&]uh1jbhj9ubeh}(h]h ]h"]h$]h&]uh1j@hj9hM' hju9ubjA)}(h:``bool enable`` Whether or not to enable event generation h](jG)}(h``bool enable``h]jM)}(hj9h]h bool enable}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM( hj9ubjc)}(hhh]j)}(h)Whether or not to enable event generationh]h)Whether or not to enable event generation}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hM( hj:ubah}(h]h ]h"]h$]h&]uh1jbhj9ubeh}(h]h ]h"]h$]h&]uh1j@hj:hM( hju9ubeh}(h]h ]h"]h$]h&]uh1j;hjY9ubj)}(h**Description**h]j&)}(hj+:h]h Description}(hj-:hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj):ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM* hjY9ubj)}(hiIf **enable** is set, check device_may_wakeup() for the device before calling __pci_enable_wake() for it.h](hIf }(hjA:hhhNhNubj&)}(h **enable**h]henable}(hjI:hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjA:ubh\ is set, check device_may_wakeup() for the device before calling __pci_enable_wake() for it.}(hjA:hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM) hjY9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_wake_from_d3 (C function)c.pci_wake_from_d3hNtauh1hhhhhhNhNubh)}(hhh](h)}(h7int pci_wake_from_d3 (struct pci_dev *dev, bool enable)h]h)}(h6int pci_wake_from_d3(struct pci_dev *dev, bool enable)h](h)}(hinth]hint}(hj:hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~:hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM7 ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~:hhhj:hM7 ubj-)}(hpci_wake_from_d3h]j3)}(hpci_wake_from_d3h]hpci_wake_from_d3}(hj:hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj~:hhhj:hM7 ubjN)}(h"(struct pci_dev *dev, bool enable)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj:hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj:hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]j)}jj:sbc.pci_wake_from_d3asbuh1hhj:ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj)}(hjh]h*}(hj ;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj3)}(hdevh]hdev}(hj;hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:ubjT)}(h bool enableh](h)}(hj'4h]hbool}(hj1;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj-;ubj)}(h h]h }(hj>;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-;ubj3)}(henableh]henable}(hjL;hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj-;ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj~:hhhj:hM7 ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjz:hhhj:hM7 ubah}(h]ju:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hM7 hjw:hhubj)}(hhh]j)}(h7enable/disable device to wake up from D3_hot or D3_coldh]h7enable/disable device to wake up from D3_hot or D3_cold}(hjv;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM7 hjs;hhubah}(h]h ]h"]h$]h&]uh1jhjw:hhhj:hM7 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhhhNhNubj)}(hXx**Parameters** ``struct pci_dev *dev`` PCI device to prepare ``bool enable`` True to enable wake-up event generation; false to disable **Description** Many drivers want the device to wake up the system from D3_hot or D3_cold and this function allows them to set that up cleanly - pci_enable_wake() should not be called twice in a row to enable wake-up due to PCI PM vs ACPI ordering constraints. This function only returns error code if the device is not allowed to wake up the system from sleep or it is not capable of generating PME# from both D3_hot and D3_cold and the platform is unable to enable wake-up power for it.h](j)}(h**Parameters**h]j&)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj;ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM; hj;ubj<)}(hhh](jA)}(h.``struct pci_dev *dev`` PCI device to prepare h](jG)}(h``struct pci_dev *dev``h]jM)}(hj;h]hstruct pci_dev *dev}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM8 hj;ubjc)}(hhh]j)}(hPCI device to prepareh]hPCI device to prepare}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;hM8 hj;ubah}(h]h ]h"]h$]h&]uh1jbhj;ubeh}(h]h ]h"]h$]h&]uh1j@hj;hM8 hj;ubjA)}(hJ``bool enable`` True to enable wake-up event generation; false to disable h](jG)}(h``bool enable``h]jM)}(hj;h]h bool enable}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM9 hj;ubjc)}(hhh]j)}(h9True to enable wake-up event generation; false to disableh]h9True to enable wake-up event generation; false to disable}(hj <hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<hM9 hj<ubah}(h]h ]h"]h$]h&]uh1jbhj;ubeh}(h]h ]h"]h$]h&]uh1j@hj<hM9 hj;ubeh}(h]h ]h"]h$]h&]uh1j;hj;ubj)}(h**Description**h]j&)}(hj+<h]h Description}(hj-<hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj)<ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM; hj;ubj)}(hMany drivers want the device to wake up the system from D3_hot or D3_cold and this function allows them to set that up cleanly - pci_enable_wake() should not be called twice in a row to enable wake-up due to PCI PM vs ACPI ordering constraints.h]hMany drivers want the device to wake up the system from D3_hot or D3_cold and this function allows them to set that up cleanly - pci_enable_wake() should not be called twice in a row to enable wake-up due to PCI PM vs ACPI ordering constraints.}(hjA<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM: hj;ubj)}(hThis function only returns error code if the device is not allowed to wake up the system from sleep or it is not capable of generating PME# from both D3_hot and D3_cold and the platform is unable to enable wake-up power for it.h]hThis function only returns error code if the device is not allowed to wake up the system from sleep or it is not capable of generating PME# from both D3_hot and D3_cold and the platform is unable to enable wake-up power for it.}(hjP<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM? hj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،!pci_prepare_to_sleep (C function)c.pci_prepare_to_sleephNtauh1hhhhhhNhNubh)}(hhh](h)}(h.int pci_prepare_to_sleep (struct pci_dev *dev)h]h)}(h-int pci_prepare_to_sleep(struct pci_dev *dev)h](h)}(hinth]hint}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{<hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{<hhhj<hM ubj-)}(hpci_prepare_to_sleeph]j3)}(hpci_prepare_to_sleeph]hpci_prepare_to_sleep}(hj<hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj<ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj{<hhhj<hM ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj<hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj<hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]j)}jj<sbc.pci_prepare_to_sleepasbuh1hhj<ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj3)}(hdevh]hdev}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj<ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj<ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj{<hhhj<hM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjw<hhhj<hM ubah}(h]jr<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hM hjt<hhubj)}(hhh]j)}(h@prepare PCI device for system-wide transition into a sleep stateh]h@prepare PCI device for system-wide transition into a sleep state}(hj?=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj<=hhubah}(h]h ]h"]h$]h&]uh1jhjt<hhhj<hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjW=jjW=jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *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 manageable by the platform (PCI_D3hot is the default) and put the device into that state.h](j)}(h**Parameters**h]j&)}(hja=h]h Parameters}(hjc=hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj_=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj[=ubj<)}(hhh]jA)}(h*``struct pci_dev *dev`` Device to handle. h](jG)}(h``struct pci_dev *dev``h]jM)}(hj=h]hstruct pci_dev *dev}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~=ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hjz=ubjc)}(hhh]j)}(hDevice to handle.h]hDevice to handle.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hM hj=ubah}(h]h ]h"]h$]h&]uh1jbhjz=ubeh}(h]h ]h"]h$]h&]uh1j@hj=hM hjw=ubah}(h]h ]h"]h$]h&]uh1j;hj[=ubj)}(h**Description**h]j&)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj=ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj[=ubj)}(hChoose the power state appropriate for the device depending on whether it can wake up the system and/or is power manageable by the platform (PCI_D3hot is the default) and put the device into that state.h]hChoose the power state appropriate for the device depending on whether it can wake up the system and/or is power manageable by the platform (PCI_D3hot is the default) and put the device into that state.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj[=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_back_from_sleep (C function)c.pci_back_from_sleephNtauh1hhhhhhNhNubh)}(hhh](h)}(h-int pci_back_from_sleep (struct pci_dev *dev)h]h)}(h,int pci_back_from_sleep(struct pci_dev *dev)h](h)}(hinth]hint}(hj>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj=hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM ubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=hhhj>hM ubj-)}(hpci_back_from_sleeph]j3)}(hpci_back_from_sleeph]hpci_back_from_sleep}(hj!>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj=hhhj>hM ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj=>hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj9>ubj)}(h h]h }(hjJ>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9>ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj[>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjX>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj]>modnameN classnameNjj)}j]j)}jj#>sbc.pci_back_from_sleepasbuh1hhj9>ubj)}(h h]h }(hj{>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9>ubj3)}(hdevh]hdev}(hj>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj9>ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj5>ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj=hhhj>hM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj=hhhj>hM ubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1hhj>hM hj=hhubj)}(hhh]j)}(hCturn PCI device on during system-wide transition into working stateh]hCturn PCI device on during system-wide transition into working state}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj>hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` Device to handle. **Description** Disable device's system wake-up capability and put it into D0.h](j)}(h**Parameters**h]j&)}(hj>h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj>ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj>ubj<)}(hhh]jA)}(h*``struct pci_dev *dev`` Device to handle. h](jG)}(h``struct pci_dev *dev``h]jM)}(hj?h]hstruct pci_dev *dev}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj>ubjc)}(hhh]j)}(hDevice to handle.h]hDevice to handle.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hM hj?ubah}(h]h ]h"]h$]h&]uh1jbhj>ubeh}(h]h ]h"]h$]h&]uh1j@hj?hM hj>ubah}(h]h ]h"]h$]h&]uh1j;hj>ubj)}(h**Description**h]j&)}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj:?ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj>ubj)}(h>Disable device's system wake-up capability and put it into D0.h]h@Disable device’s system wake-up capability and put it into D0.}(hjR?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_dev_run_wake (C function)c.pci_dev_run_wakehNtauh1hhhhhhNhNubh)}(hhh](h)}(h+bool pci_dev_run_wake (struct pci_dev *dev)h]h)}(h*bool pci_dev_run_wake(struct pci_dev *dev)h](h)}(hj'4h]hbool}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj}?hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}?hhhj?hM ubj-)}(hpci_dev_run_wakeh]j3)}(hpci_dev_run_wakeh]hpci_dev_run_wake}(hj?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj?ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj}?hhhj?hM ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj?hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?modnameN classnameNjj)}j]j)}jj?sbc.pci_dev_run_wakeasbuh1hhj?ubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?ubj)}(hjh]h*}(hj @hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubj3)}(hdevh]hdev}(hj@hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj?ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj?ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj}?hhhj?hM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjy?hhhj?hM ubah}(h]jt?ah ](jjeh"]h$]h&]jj)jhuh1hhj?hM hjv?hhubj)}(hhh]j)}(h5Check if device can generate run-time wake-up events.h]h5Check if device can generate run-time wake-up events.}(hj@@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj=@hhubah}(h]h ]h"]h$]h&]uh1jhjv?hhhj?hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjX@jjX@jjjuh1hhhhhhNhNubj)}(hX$**Parameters** ``struct pci_dev *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 the device supports PME and one of its upstream bridges can generate wake-up events.h](j)}(h**Parameters**h]j&)}(hjb@h]h Parameters}(hjd@hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj`@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj\@ubj<)}(hhh]jA)}(h)``struct pci_dev *dev`` Device to check. h](jG)}(h``struct pci_dev *dev``h]jM)}(hj@h]hstruct pci_dev *dev}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj{@ubjc)}(hhh]j)}(hDevice to check.h]hDevice to check.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hM hj@ubah}(h]h ]h"]h$]h&]uh1jbhj{@ubeh}(h]h ]h"]h$]h&]uh1j@hj@hM hjx@ubah}(h]h ]h"]h$]h&]uh1j;hj\@ubj)}(h**Description**h]j&)}(hj@h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj@ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj\@ubj)}(hReturn true if the device itself is capable of generating wake-up events (through the platform or using the native PCIe PME) or if the device supports PME and one of its upstream bridges can generate wake-up events.h]hReturn true if the device itself is capable of generating wake-up events (through the platform or using the native PCIe PME) or if the device supports PME and one of its upstream bridges can generate wake-up events.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj\@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_choose_state (C function)c.pci_choose_statehNtauh1hhhhhhNhNubh)}(hhh](h)}(hFpci_power_t pci_choose_state (struct pci_dev *dev, pm_message_t state)h]h)}(hEpci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state)h](h)}(hhh]j3)}(h pci_power_th]h pci_power_t}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j)}jpci_choose_statesbc.pci_choose_stateasbuh1hhj@hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMF ubj)}(h h]h }(hj&AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhj%AhMF ubj-)}(hpci_choose_stateh]j3)}(hj"Ah]hpci_choose_state}(hj8AhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj4Aubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj@hhhj%AhMF ubjN)}(h)(struct pci_dev *dev, pm_message_t state)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjSAhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjOAubj)}(h h]h }(hj`AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOAubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjqAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsAmodnameN classnameNjj)}j]j Ac.pci_choose_stateasbuh1hhjOAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOAubj3)}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOAubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjKAubjT)}(hpm_message_t stateh](h)}(hhh]j3)}(h pm_message_th]h pm_message_t}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j Ac.pci_choose_stateasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj3)}(hstateh]hstate}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjKAubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj@hhhj%AhMF ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj@hhhj%AhMF ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj%AhMF hj@hhubj)}(hhh]j)}(h'Choose the power state of a PCI device.h]h'Choose the power state of a PCI device.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMF hjBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj%AhMF ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4Bjj4Bjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` Target PCI device. ``pm_message_t state`` Target state for the whole system. **Description** Returns PCI power state suitable for **dev** and **state**.h](j)}(h**Parameters**h]j&)}(hj>Bh]h Parameters}(hj@BhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:Gubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMa hj6Gubjc)}(hhh]j)}(hPCI device to handleh]hPCI device to handle}(hjUGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQGhMa hjRGubah}(h]h ]h"]h$]h&]uh1jbhj6Gubeh}(h]h ]h"]h$]h&]uh1j@hjQGhMa hj3Gubah}(h]h ]h"]h$]h&]uh1j;hjGubj)}(h**Description**h]j&)}(hjwGh]h Description}(hjyGhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjuGubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMc hjGubj)}(hThis function can be used in drivers to disable D3cold from the device they handle. It also updates upstream PCI bridge PM capabilities accordingly.h]hThis function can be used in drivers to disable D3cold from the device they handle. It also updates upstream PCI bridge PM capabilities accordingly.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMb hjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،*pci_enable_atomic_ops_to_root (C function)c.pci_enable_atomic_ops_to_roothNtauh1hhhhhhNhNubh)}(hhh](h)}(hEint pci_enable_atomic_ops_to_root (struct pci_dev *dev, u32 cap_mask)h]h)}(hDint pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask)h](h)}(hinth]hint}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGhhhjGhMubj-)}(hpci_enable_atomic_ops_to_rooth]j3)}(hpci_enable_atomic_ops_to_rooth]hpci_enable_atomic_ops_to_root}(hjGhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjGubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjGhhhjGhMubjN)}(h#(struct pci_dev *dev, u32 cap_mask)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjGhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjGubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjHubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjHmodnameN classnameNjj)}j]j)}jjGsbc.pci_enable_atomic_ops_to_rootasbuh1hhjGubj)}(h h]h }(hj7HhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGubj)}(hjh]h*}(hjEHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj3)}(hdevh]hdev}(hjRHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjGubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjGubjT)}(h u32 cap_maskh](h)}(hhh]j3)}(hu32h]hu32}(hjnHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjkHubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpHmodnameN classnameNjj)}j]j3Hc.pci_enable_atomic_ops_to_rootasbuh1hhjgHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgHubj3)}(hcap_maskh]hcap_mask}(hjHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjgHubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjGubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjGhhhjGhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjGhhhjGhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjGhMhjGhhubj)}(hhh]j)}(h%enable AtomicOp requests to root porth]h%enable AtomicOp requests to root port}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjHhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhjGhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` the PCI device ``u32 cap_mask`` mask of desired AtomicOp sizes, including one or more of: PCI_EXP_DEVCAP2_ATOMIC_COMP32 PCI_EXP_DEVCAP2_ATOMIC_COMP64 PCI_EXP_DEVCAP2_ATOMIC_COMP128 **Description** Return 0 if all upstream bridges support AtomicOp routing, egress blocking is disabled on all upstream ports, and the root port supports the requested completion capabilities (32-bit, 64-bit and/or 128-bit AtomicOp completion), or negative otherwise.h](j)}(h**Parameters**h]j&)}(hjHh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjHubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjHubj<)}(hhh](jA)}(h'``struct pci_dev *dev`` the PCI device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjIh]hstruct pci_dev *dev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjHubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jbhjHubeh}(h]h ]h"]h$]h&]uh1j@hjIhMhjHubjA)}(h``u32 cap_mask`` mask of desired AtomicOp sizes, including one or more of: PCI_EXP_DEVCAP2_ATOMIC_COMP32 PCI_EXP_DEVCAP2_ATOMIC_COMP64 PCI_EXP_DEVCAP2_ATOMIC_COMP128 h](jG)}(h``u32 cap_mask``h]jM)}(hj>Ih]h u32 cap_mask}(hj@IhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj**Parameters** ``struct pci_dev *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 successful call to pci_request_regions(). Call this function only after all use of the PCI regions has ceased.h](j)}(h**Parameters**h]j&)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjVubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjVubj<)}(hhh]jA)}(hf``struct pci_dev *pdev`` PCI device whose resources were previously reserved by pci_request_regions() h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjVh]hstruct pci_dev *pdev}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjVubjc)}(hhh]j)}(hLPCI device whose resources were previously reserved by pci_request_regions()h]hLPCI device whose resources were previously reserved by pci_request_regions()}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjVubah}(h]h ]h"]h$]h&]uh1jbhjVubeh}(h]h ]h"]h$]h&]uh1j@hjVhMhjVubah}(h]h ]h"]h$]h&]uh1j;hjVubj)}(h**Description**h]j&)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjVubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjVubj)}(hReleases all PCI I/O and memory resources previously reserved by a successful call to pci_request_regions(). Call this function only after all use of the PCI regions has ceased.h]hReleases all PCI I/O and memory resources previously reserved by a successful call to pci_request_regions(). Call this function only after all use of the PCI regions has ceased.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_request_regions (C function)c.pci_request_regionshNtauh1hhhhhhNhNubh)}(hhh](h)}(h@int pci_request_regions (struct pci_dev *pdev, const char *name)h]h)}(h?int pci_request_regions(struct pci_dev *pdev, const char *name)h](h)}(hinth]hint}(hj-WhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)WhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj\sbc.pci_remap_iospaceasbuh1hhjT\ubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjT\ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjT\ubj3)}(hresh]hres}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjT\ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjP\ubjT)}(hphys_addr_t phys_addrh](h)}(hhh]j3)}(h phys_addr_th]h phys_addr_t}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj\modnameN classnameNjj)}j]j\c.pci_remap_iospaceasbuh1hhj\ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj3)}(h phys_addrh]h phys_addr}(hj]hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjP\ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj\hhhj)\hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj\hhhj)\hMubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhj)\hMhj\hhubj)}(hhh]j)}(h!Remap the memory mapped I/O spaceh]h!Remap the memory mapped I/O space}(hj>]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj;]hhubah}(h]h ]h"]h$]h&]uh1jhj\hhhj)\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjV]jjV]jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const struct resource *res`` Resource describing the I/O space ``phys_addr_t phys_addr`` physical address of range to be mapped **Description** Remap the memory mapped I/O space described by the **res** and the CPU physical address **phys_addr** into virtual address space. Only architectures that have memory mapped IO functions defined (and the PCI_IOBASE value defined) should call this function.h](j)}(h**Parameters**h]j&)}(hj`]h]h Parameters}(hjb]hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj^]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjZ]ubj<)}(hhh](jA)}(hA``const struct resource *res`` Resource describing the I/O space h](jG)}(h``const struct resource *res``h]jM)}(hj]h]hconst struct resource *res}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj}]ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjy]ubjc)}(hhh]j)}(h!Resource describing the I/O spaceh]h!Resource describing the I/O space}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jbhjy]ubeh}(h]h ]h"]h$]h&]uh1j@hj]hMhjv]ubjA)}(hA``phys_addr_t phys_addr`` physical address of range to be mapped h](jG)}(h``phys_addr_t phys_addr``h]jM)}(hj]h]hphys_addr_t phys_addr}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj]ubjc)}(hhh]j)}(h&physical address of range to be mappedh]h&physical address of range to be mapped}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jbhj]ubeh}(h]h ]h"]h$]h&]uh1j@hj]hMhjv]ubeh}(h]h ]h"]h$]h&]uh1j;hjZ]ubj)}(h**Description**h]j&)}(hj]h]h Description}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjZ]ubj)}(hXRemap the memory mapped I/O space described by the **res** and the CPU physical address **phys_addr** into virtual address space. Only architectures that have memory mapped IO functions defined (and the PCI_IOBASE value defined) should call this function.h](h3Remap the memory mapped I/O space described by the }(hj ^hhhNhNubj&)}(h**res**h]hres}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ^ubh and the CPU physical address }(hj ^hhhNhNubj&)}(h **phys_addr**h]h phys_addr}(hj#^hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ^ubh into virtual address space. Only architectures that have memory mapped IO functions defined (and the PCI_IOBASE value defined) should call this function.}(hj ^hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjZ]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_unmap_iospace (C function)c.pci_unmap_iospacehNtauh1hhhhhhNhNubh)}(hhh](h)}(h-void pci_unmap_iospace (struct resource *res)h]h)}(h,void pci_unmap_iospace(struct resource *res)h](h)}(hvoidh]hvoid}(hj\^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjX^hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjk^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjX^hhhjj^hMubj-)}(hpci_unmap_iospaceh]j3)}(hpci_unmap_iospaceh]hpci_unmap_iospace}(hj}^hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjy^ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjX^hhhjj^hMubjN)}(h(struct resource *res)h]jT)}(hstruct resource *resh](jZ)}(hj]h]hstruct}(hj^hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubh)}(hhh]j3)}(hresourceh]hresource}(hj^hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j)}jj^sbc.pci_unmap_iospaceasbuh1hhj^ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubj3)}(hresh]hres}(hj^hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj^ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj^ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjX^hhhjj^hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjT^hhhjj^hMubah}(h]jO^ah ](jjeh"]h$]h&]jj)jhuh1hhjj^hMhjQ^hhubj)}(hhh]j)}(h!Unmap the memory mapped I/O spaceh]h!Unmap the memory mapped I/O space}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj_hhubah}(h]h ]h"]h$]h&]uh1jhjQ^hhhjj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4_jj4_jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct resource *res`` resource to be unmapped **Description** Unmap the CPU virtual address **res** from virtual address space. Only architectures that have memory mapped IO functions defined (and the PCI_IOBASE value defined) should call this function.h](j)}(h**Parameters**h]j&)}(hj>_h]h Parameters}(hj@_hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj<_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM!hj8_ubj<)}(hhh]jA)}(h1``struct resource *res`` resource to be unmapped h](jG)}(h``struct resource *res``h]jM)}(hj]_h]hstruct resource *res}(hj__hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj[_ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjW_ubjc)}(hhh]j)}(hresource to be unmappedh]hresource to be unmapped}(hjv_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjr_hMhjs_ubah}(h]h ]h"]h$]h&]uh1jbhjW_ubeh}(h]h ]h"]h$]h&]uh1j@hjr_hMhjT_ubah}(h]h ]h"]h$]h&]uh1j;hj8_ubj)}(h**Description**h]j&)}(hj_h]h Description}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj_ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj8_ubj)}(hUnmap the CPU virtual address **res** from virtual address space. Only architectures that have memory mapped IO functions defined (and the PCI_IOBASE value defined) should call this function.h](hUnmap the CPU virtual address }(hj_hhhNhNubj&)}(h**res**h]hres}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj_ubh from virtual address space. Only architectures that have memory mapped IO functions defined (and the PCI_IOBASE value defined) should call this function.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj8_ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_set_master (C function)c.pci_set_masterhNtauh1hhhhhhNhNubh)}(hhh](h)}(h)void pci_set_master (struct pci_dev *dev)h]h)}(h(void pci_set_master(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMgubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhj_hMgubj-)}(hpci_set_masterh]j3)}(hpci_set_masterh]hpci_set_master}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj `ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj_hhhj_hMgubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj,`hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj(`ubj)}(h h]h }(hj9`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(`ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjJ`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjG`ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjL`modnameN classnameNjj)}j]j)}jj`sbc.pci_set_masterasbuh1hhj(`ubj)}(h h]h }(hjj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(`ubj)}(hjh]h*}(hjx`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(`ubj3)}(hdevh]hdev}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(`ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj$`ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj_hhhj_hMgubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj_hhhj_hMgubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhj_hMghj_hhubj)}(hhh]j)}(h$enables bus-mastering for device devh]h$enables bus-mastering for device dev}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMghj`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *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.h](j)}(h**Parameters**h]j&)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj`ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMkhj`ubj<)}(hhh]jA)}(h1``struct pci_dev *dev`` the PCI device to enable h](jG)}(h``struct pci_dev *dev``h]jM)}(hj`h]hstruct pci_dev *dev}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhhj`ubjc)}(hhh]j)}(hthe PCI device to enableh]hthe PCI device to enable}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahMhhjaubah}(h]h ]h"]h$]h&]uh1jbhj`ubeh}(h]h ]h"]h$]h&]uh1j@hjahMhhj`ubah}(h]h ]h"]h$]h&]uh1j;hj`ubj)}(h**Description**h]j&)}(hj+ah]h Description}(hj-ahhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj)aubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMjhj`ubj)}(hkEnables bus-mastering on the device and calls pcibios_set_master() to do the needed arch specific settings.h]hkEnables bus-mastering on the device and calls pcibios_set_master() to do the needed arch specific settings.}(hjAahhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMihj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_clear_master (C function)c.pci_clear_masterhNtauh1hhhhhhNhNubh)}(hhh](h)}(h+void pci_clear_master (struct pci_dev *dev)h]h)}(h*void pci_clear_master(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hjpahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlahhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMuubj)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlahhhj~ahMuubj-)}(hpci_clear_masterh]j3)}(hpci_clear_masterh]hpci_clear_master}(hjahhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjaubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjlahhhj~ahMuubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjahhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjahhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNjj)}j]j)}jjasbc.pci_clear_masterasbuh1hhjaubj)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubj3)}(hdevh]hdev}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjaubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjaubah}(h]h ]h"]h$]h&]jKjLuh1jMhjlahhhj~ahMuubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhahhhj~ahMuubah}(h]jcaah ](jjeh"]h$]h&]jj)jhuh1hhj~ahMuhjeahhubj)}(hhh]j)}(h%disables bus-mastering for device devh]h%disables bus-mastering for device dev}(hj0bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMuhj-bhhubah}(h]h ]h"]h$]h&]uh1jhjeahhhj~ahMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHbjjHbjjjuh1hhhhhhNhNubj)}(hC**Parameters** ``struct pci_dev *dev`` the PCI device to disableh](j)}(h**Parameters**h]j&)}(hjRbh]h Parameters}(hjTbhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjPbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMyhjLbubj<)}(hhh]jA)}(h1``struct pci_dev *dev`` the PCI device to disableh](jG)}(h``struct pci_dev *dev``h]jM)}(hjqbh]hstruct pci_dev *dev}(hjsbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjobubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM{hjkbubjc)}(hhh]j)}(hthe PCI device to disableh]hthe PCI device to disable}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMvhjbubah}(h]h ]h"]h$]h&]uh1jbhjkbubeh}(h]h ]h"]h$]h&]uh1j@hjbhM{hjhbubah}(h]h ]h"]h$]h&]uh1j;hjLbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_set_cacheline_size (C function)c.pci_set_cacheline_sizehNtauh1hhhhhhNhNubh)}(hhh](h)}(h0int pci_set_cacheline_size (struct pci_dev *dev)h]h)}(h/int pci_set_cacheline_size(struct pci_dev *dev)h](h)}(hinth]hint}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhjbhMubj-)}(hpci_set_cacheline_sizeh]j3)}(hpci_set_cacheline_sizeh]hpci_set_cacheline_size}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjbubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjbhhhjbhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjchhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjcubj)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj&chhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#cubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(cmodnameN classnameNjj)}j]j)}jjbsbc.pci_set_cacheline_sizeasbuh1hhjcubj)}(h h]h }(hjFchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcubj)}(hjh]h*}(hjTchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj3)}(hdevh]hdev}(hjachhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjcubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjcubah}(h]h ]h"]h$]h&]jKjLuh1jMhjbhhhjbhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjbhhhjbhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjbhMhjbhhubj)}(hhh]j)}(h1ensure the CACHE_LINE_SIZE register is programmedh]h1ensure the CACHE_LINE_SIZE register is programmed}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhhhNhNubj)}(hXG**Parameters** ``struct pci_dev *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-2001 by Jes Sorensen, . **Return** An appropriate -ERRNO error value on error, or zero for success.h](j)}(h**Parameters**h]j&)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjcubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjcubj<)}(hhh]jA)}(hF``struct pci_dev *dev`` the PCI device for which MWI is to be enabled h](jG)}(h``struct pci_dev *dev``h]jM)}(hjch]hstruct pci_dev *dev}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjcubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjcubjc)}(hhh]j)}(h-the PCI device for which MWI is to be enabledh]h-the PCI device for which MWI is to be enabled}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchMhjcubah}(h]h ]h"]h$]h&]uh1jbhjcubeh}(h]h ]h"]h$]h&]uh1j@hjchMhjcubah}(h]h ]h"]h$]h&]uh1j;hjcubj)}(h**Description**h]j&)}(hjdh]h Description}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjdubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjcubj)}(hHelper function for pci_set_mwi. Originally copied from drivers/net/acenic.c. Copyright 1998-2001 by Jes Sorensen, .h]hHelper function for pci_set_mwi. Originally copied from drivers/net/acenic.c. Copyright 1998-2001 by Jes Sorensen, .}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjcubj)}(h **Return**h]j&)}(hj.dh]hReturn}(hj0dhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj,dubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjcubj)}(h@An appropriate -ERRNO error value on error, or zero for success.h]h@An appropriate -ERRNO error value on error, or zero for success.}(hjDdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_set_mwi (C function) c.pci_set_mwihNtauh1hhhhhhNhNubh)}(hhh](h)}(h%int pci_set_mwi (struct pci_dev *dev)h]h)}(h$int pci_set_mwi(struct pci_dev *dev)h](h)}(hinth]hint}(hjsdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjodhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjodhhhjdhMubj-)}(h pci_set_mwih]j3)}(h pci_set_mwih]h pci_set_mwi}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjdubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjodhhhjdhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjdhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjdubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjdmodnameN classnameNjj)}j]j)}jjdsb c.pci_set_mwiasbuh1hhjdubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj3)}(hdevh]hdev}(hj ehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjdubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjdubah}(h]h ]h"]h$]h&]jKjLuh1jMhjodhhhjdhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjkdhhhjdhMubah}(h]jfdah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhjhdhhubj)}(hhh]j)}(h/enables memory-write-invalidate PCI transactionh]h/enables memory-write-invalidate PCI transaction}(hj3ehhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj0ehhubah}(h]h ]h"]h$]h&]uh1jhjhdhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKejjKejjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *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 success.h](j)}(h**Parameters**h]j&)}(hjUeh]h Parameters}(hjWehhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjSeubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOeubj<)}(hhh]jA)}(h@``struct pci_dev *dev`` the PCI device for which MWI is enabled h](jG)}(h``struct pci_dev *dev``h]jM)}(hjteh]hstruct pci_dev *dev}(hjvehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjreubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjneubjc)}(hhh]j)}(h'the PCI device for which MWI is enabledh]h'the PCI device for which MWI is enabled}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehMhjeubah}(h]h ]h"]h$]h&]uh1jbhjneubeh}(h]h ]h"]h$]h&]uh1j@hjehMhjkeubah}(h]h ]h"]h$]h&]uh1j;hjOeubj)}(h**Description**h]j&)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjeubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOeubj)}(hCEnables the Memory-Write-Invalidate transaction in ``PCI_COMMAND``.h](h3Enables the Memory-Write-Invalidate transaction in }(hjehhhNhNubjM)}(h``PCI_COMMAND``h]h PCI_COMMAND}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeubh.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOeubj)}(h **Return**h]j&)}(hjeh]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjeubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOeubj)}(h@An appropriate -ERRNO error value on error, or zero for success.h]h@An appropriate -ERRNO error value on error, or zero for success.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_try_set_mwi (C function)c.pci_try_set_mwihNtauh1hhhhhhNhNubh)}(hhh](h)}(h)int pci_try_set_mwi (struct pci_dev *dev)h]h)}(h(int pci_try_set_mwi(struct pci_dev *dev)h](h)}(hinth]hint}(hj-fhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)fhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjDisables PCI Memory-Write-Invalidate transaction on the deviceh]h>Disables PCI Memory-Write-Invalidate transaction on the device}(hj9ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_intx (C function) c.pci_intxhNtauh1hhhhhhNhNubh)}(hhh](h)}(h0void pci_intx (struct pci_dev *pdev, int enable)h]h)}(h/void pci_intx(struct pci_dev *pdev, int enable)h](h)}(hvoidh]hvoid}(hjhihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdihhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjwihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdihhhjvihMubj-)}(hpci_intxh]j3)}(hpci_intxh]hpci_intx}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjiubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjdihhhjvihMubjN)}(h"(struct pci_dev *pdev, int enable)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjihhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjiubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjimodnameN classnameNjj)}j]j)}jjisb c.pci_intxasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj3)}(hpdevh]hpdev}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjiubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjiubjT)}(h int enableh](h)}(hinth]hint}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubj)}(h h]h }(hj%jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj3)}(henableh]henable}(hj3jhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjiubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjdihhhjvihMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj`ihhhjvihMubah}(h]j[iah ](jjeh"]h$]h&]jj)jhuh1hhjvihMhj]ihhubj)}(hhh]j)}(h(enables/disables PCI INTx for device devh]h(enables/disables PCI INTx for device dev}(hj]jhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjZjhhubah}(h]h ]h"]h$]h&]uh1jhj]ihhhjvihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjjujjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` the PCI device to operate on ``int enable`` boolean: whether to enable or disable PCI INTx **Description** Enables/disables PCI INTx for device **pdev**h](j)}(h**Parameters**h]j&)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj}jubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjyjubj<)}(hhh](jA)}(h6``struct pci_dev *pdev`` the PCI device to operate on h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjjh]hstruct pci_dev *pdev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjjubjc)}(hhh]j)}(hthe PCI device to operate onh]hthe PCI device to operate on}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jbhjjubeh}(h]h ]h"]h$]h&]uh1j@hjjhMhjjubjA)}(h>``int enable`` boolean: whether to enable or disable PCI INTx h](jG)}(h``int enable``h]jM)}(hjjh]h int enable}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjjubjc)}(hhh]j)}(h.boolean: whether to enable or disable PCI INTxh]h.boolean: whether to enable or disable PCI INTx}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhMhjjubah}(h]h ]h"]h$]h&]uh1jbhjjubeh}(h]h ]h"]h$]h&]uh1j@hjjhMhjjubeh}(h]h ]h"]h$]h&]uh1j;hjyjubj)}(h**Description**h]j&)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjkubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjyjubj)}(h-Enables/disables PCI INTx for device **pdev**h](h%Enables/disables PCI INTx for device }(hj(khhhNhNubj&)}(h**pdev**h]hpdev}(hj0khhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj(kubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjyjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،-pci_wait_for_pending_transaction (C function)"c.pci_wait_for_pending_transactionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h:int pci_wait_for_pending_transaction (struct pci_dev *dev)h]h)}(h9int pci_wait_for_pending_transaction(struct pci_dev *dev)h](h)}(hinth]hint}(hjekhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjakhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjtkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjakhhhjskhMubj-)}(h pci_wait_for_pending_transactionh]j3)}(h pci_wait_for_pending_transactionh]h pci_wait_for_pending_transaction}(hjkhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjkubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjakhhhjskhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjkhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjkhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjkubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjkmodnameN classnameNjj)}j]j)}jjksb"c.pci_wait_for_pending_transactionasbuh1hhjkubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjkubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj3)}(hdevh]hdev}(hjkhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjkubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjkubah}(h]h ]h"]h$]h&]jKjLuh1jMhjakhhhjskhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj]khhhjskhMubah}(h]jXkah ](jjeh"]h$]h&]jj)jhuh1hhjskhMhjZkhhubj)}(hhh]j)}(hwait for pending transactionh]hwait for pending transaction}(hj%lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj"lhhubah}(h]h ]h"]h$]h&]uh1jhjZkhhhjskhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=ljj=ljjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCI device to operate on **Description** Return 0 if transaction is pending 1 otherwise.h](j)}(h**Parameters**h]j&)}(hjGlh]h Parameters}(hjIlhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjElubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjAlubj<)}(hhh]jA)}(h5``struct pci_dev *dev`` the PCI device to operate on h](jG)}(h``struct pci_dev *dev``h]jM)}(hjflh]hstruct pci_dev *dev}(hjhlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdlubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj`lubjc)}(hhh]j)}(hthe PCI device to operate onh]hthe PCI device to operate on}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{lhMhj|lubah}(h]h ]h"]h$]h&]uh1jbhj`lubeh}(h]h ]h"]h$]h&]uh1j@hj{lhMhj]lubah}(h]h ]h"]h$]h&]uh1j;hjAlubj)}(h**Description**h]j&)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjAlubj)}(h/Return 0 if transaction is pending 1 otherwise.h]h/Return 0 if transaction is pending 1 otherwise.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjAlubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_flr (C function) c.pcie_flrhNtauh1hhhhhhNhNubh)}(hhh](h)}(h"int pcie_flr (struct pci_dev *dev)h]h)}(h!int pcie_flr(struct pci_dev *dev)h](h)}(hinth]hint}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM%ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhjlhM%ubj-)}(hpcie_flrh]j3)}(hpcie_flrh]hpcie_flr}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjlhhhjlhM%ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj#mhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjmubj)}(h h]h }(hj0mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjAmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>mubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmmodnameN classnameNjj)}j]j)}jj msb c.pcie_flrasbuh1hhjmubj)}(h h]h }(hjamhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjomhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj3)}(hdevh]hdev}(hj|mhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjmubah}(h]h ]h"]h$]h&]jKjLuh1jMhjlhhhjlhM%ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjlhhhjlhM%ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjlhM%hjlhhubj)}(hhh]j)}(h$initiate a PCIe function level reseth]h$initiate a PCIe function level reset}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM%hjmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjlhM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` device to reset **Description** Initiate a function level reset unconditionally on **dev** without checking any flags and DEVCAPh](j)}(h**Parameters**h]j&)}(hjmh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjmubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM)hjmubj<)}(hhh]jA)}(h(``struct pci_dev *dev`` device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjmh]hstruct pci_dev *dev}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjmubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM&hjmubjc)}(hhh]j)}(hdevice to reseth]hdevice to reset}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmhM&hjmubah}(h]h ]h"]h$]h&]uh1jbhjmubeh}(h]h ]h"]h$]h&]uh1j@hjmhM&hjmubah}(h]h ]h"]h$]h&]uh1j;hjmubj)}(h**Description**h]j&)}(hj"nh]h Description}(hj$nhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj nubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM(hjmubj)}(h`Initiate a function level reset unconditionally on **dev** without checking any flags and DEVCAPh](h3Initiate a function level reset unconditionally on }(hj8nhhhNhNubj&)}(h**dev**h]hdev}(hj@nhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj8nubh& without checking any flags and DEVCAP}(hj8nhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM'hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_reset_flr (C function)c.pcie_reset_flrhNtauh1hhhhhhNhNubh)}(hhh](h)}(h4int pcie_reset_flr (struct pci_dev *dev, bool probe)h]h)}(h3int pcie_reset_flr(struct pci_dev *dev, bool probe)h](h)}(hinth]hint}(hjynhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjunhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMPubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjunhhhjnhMPubj-)}(hpcie_reset_flrh]j3)}(hpcie_reset_flrh]hpcie_reset_flr}(hjnhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjunhhhjnhMPubjN)}(h!(struct pci_dev *dev, bool probe)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjnhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjnhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnmodnameN classnameNjj)}j]j)}jjnsbc.pcie_reset_flrasbuh1hhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj3)}(hdevh]hdev}(hjohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjnubjT)}(h bool probeh](h)}(hj'4h]hbool}(hj(ohhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj$oubj)}(h h]h }(hj5ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$oubj3)}(hprobeh]hprobe}(hjCohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$oubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjnubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjunhhhjnhMPubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjqnhhhjnhMPubah}(h]jlnah ](jjeh"]h$]h&]jj)jhuh1hhjnhMPhjnnhhubj)}(hhh]j)}(h$initiate a PCIe function level reseth]h$initiate a PCIe function level reset}(hjmohhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMPhjjohhubah}(h]h ]h"]h$]h&]uh1jhjnnhhhjnhMPubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` device to reset ``bool probe`` if true, return 0 if device can be reset this way **Description** Initiate a function level reset on **dev**.h](j)}(h**Parameters**h]j&)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjoubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMThjoubj<)}(hhh](jA)}(h(``struct pci_dev *dev`` device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjoh]hstruct pci_dev *dev}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjoubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMQhjoubjc)}(hhh]j)}(hdevice to reseth]hdevice to reset}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMQhjoubah}(h]h ]h"]h$]h&]uh1jbhjoubeh}(h]h ]h"]h$]h&]uh1j@hjohMQhjoubjA)}(hA``bool probe`` if true, return 0 if device can be reset this way h](jG)}(h``bool probe``h]jM)}(hjoh]h bool probe}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjoubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMRhjoubjc)}(hhh]j)}(h1if true, return 0 if device can be reset this wayh]h1if true, return 0 if device can be reset this way}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMRhjoubah}(h]h ]h"]h$]h&]uh1jbhjoubeh}(h]h ]h"]h$]h&]uh1j@hjohMRhjoubeh}(h]h ]h"]h$]h&]uh1j;hjoubj)}(h**Description**h]j&)}(hj"ph]h Description}(hj$phhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj pubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMThjoubj)}(h+Initiate a function level reset on **dev**.h](h#Initiate a function level reset on }(hj8phhhNhNubj&)}(h**dev**h]hdev}(hj@phhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj8pubh.}(hj8phhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMShjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،+pci_bridge_secondary_bus_reset (C function) c.pci_bridge_secondary_bus_resethNtauh1hhhhhhNhNubh)}(hhh](h)}(h8int pci_bridge_secondary_bus_reset (struct pci_dev *dev)h]h)}(h7int pci_bridge_secondary_bus_reset(struct pci_dev *dev)h](h)}(hinth]hint}(hjyphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuphhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM!ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuphhhjphM!ubj-)}(hpci_bridge_secondary_bus_reseth]j3)}(hpci_bridge_secondary_bus_reseth]hpci_bridge_secondary_bus_reset}(hjphhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjuphhhjphM!ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjphhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjphhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]j)}jjpsb c.pci_bridge_secondary_bus_resetasbuh1hhjpubj)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj3)}(hdevh]hdev}(hjqhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjpubah}(h]h ]h"]h$]h&]jKjLuh1jMhjuphhhjphM!ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjqphhhjphM!ubah}(h]jlpah ](jjeh"]h$]h&]jj)jhuh1hhjphM!hjnphhubj)}(hhh]j)}(h(Reset the secondary bus on a PCI bridge.h]h(Reset the secondary bus on a PCI bridge.}(hj9qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM!hj6qhhubah}(h]h ]h"]h$]h&]uh1jhjnphhhjphM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQqjjQqjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` Bridge device **Description** Use the bridge control register to assert reset on the secondary bus. Devices on the secondary bus are left in power-on state.h](j)}(h**Parameters**h]j&)}(hj[qh]h Parameters}(hj]qhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjYqubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM%hjUqubj<)}(hhh]jA)}(h&``struct pci_dev *dev`` Bridge device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjzqh]hstruct pci_dev *dev}(hj|qhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxqubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM"hjtqubjc)}(hhh]j)}(h Bridge deviceh]h Bridge device}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhM"hjqubah}(h]h ]h"]h$]h&]uh1jbhjtqubeh}(h]h ]h"]h$]h&]uh1j@hjqhM"hjqqubah}(h]h ]h"]h$]h&]uh1j;hjUqubj)}(h**Description**h]j&)}(hjqh]h Description}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjqubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM$hjUqubj)}(h~Use the bridge control register to assert reset on the secondary bus. Devices on the secondary bus are left in power-on state.h]h~Use the bridge control register to assert reset on the secondary bus. Devices on the secondary bus are left in power-on state.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM#hjUqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،(__pci_reset_function_locked (C function)c.__pci_reset_function_lockedhNtauh1hhhhhhNhNubh)}(hhh](h)}(h5int __pci_reset_function_locked (struct pci_dev *dev)h]h)}(h4int __pci_reset_function_locked(struct pci_dev *dev)h](h)}(hinth]hint}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjqhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM$ubj)}(h h]h }(hj rhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhhhjrhM$ubj-)}(h__pci_reset_function_lockedh]j3)}(h__pci_reset_function_lockedh]h__pci_reset_function_locked}(hjrhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjrubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjqhhhjrhM$ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj7rhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj3rubj)}(h h]h }(hjDrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3rubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjUrhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRrubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWrmodnameN classnameNjj)}j]j)}jjrsbc.__pci_reset_function_lockedasbuh1hhj3rubj)}(h h]h }(hjurhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3rubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3rubj3)}(hdevh]hdev}(hjrhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj3rubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj/rubah}(h]h ]h"]h$]h&]jKjLuh1jMhjqhhhjrhM$ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjqhhhjrhM$ubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjrhM$hjqhhubj)}(hhh]j)}(hAreset a PCI device function while holding the **dev** mutex lock.h](h.reset a PCI device function while holding the }(hjrhhhNhNubj&)}(h**dev**h]hdev}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjrubh mutex lock.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM$hjrhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjrhM$ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *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 responsive to PCI config space in order to use this function. The device function is presumed to be unused and the caller is holding the device mutex lock when this function is called. Resetting the device will make the contents of PCI configuration space random, so any caller of this must be prepared to reinitialise the device including MSI, bus mastering, BARs, decoding IO and memory spaces, etc. **Context** The caller must hold the device lock. **Return** 0 if the device function was successfully reset or negative if the device doesn't support resetting a single function.h](j)}(h**Parameters**h]j&)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM(hjrubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hj sh]hstruct pci_dev *dev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj subah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM&hjsubjc)}(hhh]j)}(hPCI device to reseth]hPCI device to reset}(hj&shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"shM&hj#subah}(h]h ]h"]h$]h&]uh1jbhjsubeh}(h]h ]h"]h$]h&]uh1j@hj"shM&hjsubah}(h]h ]h"]h$]h&]uh1j;hjrubj)}(h**Description**h]j&)}(hjHsh]h Description}(hjJshhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjFsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM(hjrubj)}(hSome devices allow an individual function to be reset without affecting other functions in the same device. The PCI device must be responsive to PCI config space in order to use this function.h]hSome devices allow an individual function to be reset without affecting other functions in the same device. The PCI device must be responsive to PCI config space in order to use this function.}(hj^shhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM'hjrubj)}(hzThe device function is presumed to be unused and the caller is holding the device mutex lock when this function is called.h]hzThe device function is presumed to be unused and the caller is holding the device mutex lock when this function is called.}(hjmshhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM+hjrubj)}(hResetting the device will make the contents of PCI configuration space random, so any caller of this must be prepared to reinitialise the device including MSI, bus mastering, BARs, decoding IO and memory spaces, etc.h]hResetting the device will make the contents of PCI configuration space random, so any caller of this must be prepared to reinitialise the device including MSI, bus mastering, BARs, decoding IO and memory spaces, etc.}(hj|shhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM.hjrubj)}(h **Context**h]j&)}(hjsh]hContext}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM3hjrubj)}(h%The caller must hold the device lock.h]h%The caller must hold the device lock.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM4hjrubj)}(h **Return**h]j&)}(hjsh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM6hjrubj)}(hv0 if the device function was successfully reset or negative if the device doesn't support resetting a single function.h]hx0 if the device function was successfully reset or negative if the device doesn’t support resetting a single function.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM6hjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_reset_function (C function)c.pci_reset_functionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h,int pci_reset_function (struct pci_dev *dev)h]h)}(h+int pci_reset_function(struct pci_dev *dev)h](h)}(hinth]hint}(hjshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjshhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM~ubj)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjshhhjthM~ubj-)}(hpci_reset_functionh]j3)}(hpci_reset_functionh]hpci_reset_function}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjtubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjshhhjthM~ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj6thhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj2tubj)}(h h]h }(hjCthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2tubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjTthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjQtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVtmodnameN classnameNjj)}j]j)}jjtsbc.pci_reset_functionasbuh1hhj2tubj)}(h h]h }(hjtthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2tubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2tubj3)}(hdevh]hdev}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2tubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj.tubah}(h]h ]h"]h$]h&]jKjLuh1jMhjshhhjthM~ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjshhhjthM~ubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1hhjthM~hjshhubj)}(hhh]j)}(h'quiesce and reset a PCI device functionh]h'quiesce and reset a PCI device function}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM~hjthhubah}(h]h ]h"]h$]h&]uh1jhjshhhjthM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *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 responsive to PCI config space in order to use this function. This function does not just reset the PCI portion of a device, but clears all the state associated with the device. This function differs from __pci_reset_function_locked() in that it saves and restores device state over the reset and takes the PCI device lock. Returns 0 if the device function was successfully reset or negative if the device doesn't support resetting a single function.h](j)}(h**Parameters**h]j&)}(hjth]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjtubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjth]hstruct pci_dev *dev}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjtubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtubjc)}(hhh]j)}(hPCI device to reseth]hPCI device to reset}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jbhjtubeh}(h]h ]h"]h$]h&]uh1j@hjuhMhjtubah}(h]h ]h"]h$]h&]uh1j;hjtubj)}(h**Description**h]j&)}(hj5uh]h Description}(hj7uhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3uubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtubj)}(hSome devices allow an individual function to be reset without affecting other functions in the same device. The PCI device must be responsive to PCI config space in order to use this function.h]hSome devices allow an individual function to be reset without affecting other functions in the same device. The PCI device must be responsive to PCI config space in order to use this function.}(hjKuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtubj)}(hXThis function does not just reset the PCI portion of a device, but clears all the state associated with the device. This function differs from __pci_reset_function_locked() in that it saves and restores device state over the reset and takes the PCI device lock.h]hXThis function does not just reset the PCI portion of a device, but clears all the state associated with the device. This function differs from __pci_reset_function_locked() in that it saves and restores device state over the reset and takes the PCI device lock.}(hjZuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtubj)}(h~Returns 0 if the device function was successfully reset or negative if the device doesn't support resetting a single function.h]hReturns 0 if the device function was successfully reset or negative if the device doesn’t support resetting a single function.}(hjiuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،&pci_reset_function_locked (C function)c.pci_reset_function_lockedhNtauh1hhhhhhNhNubh)}(hhh](h)}(h3int pci_reset_function_locked (struct pci_dev *dev)h]h)}(h2int pci_reset_function_locked(struct pci_dev *dev)h](h)}(hinth]hint}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjuhMubj-)}(hpci_reset_function_lockedh]j3)}(hpci_reset_function_lockedh]hpci_reset_function_locked}(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjuubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjuhhhjuhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjuhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjuubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjuubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjumodnameN classnameNjj)}j]j)}jjusbc.pci_reset_function_lockedasbuh1hhjuubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj)}(hjh]h*}(hj!vhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj3)}(hdevh]hdev}(hj.vhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjuubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjuubah}(h]h ]h"]h$]h&]jKjLuh1jMhjuhhhjuhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjuhhhjuhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjuhMhjuhhubj)}(hhh]j)}(h'quiesce and reset a PCI device functionh]h'quiesce and reset a PCI device function}(hjXvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjUvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpvjjpvjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *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 responsive to PCI config space in order to use this function. This function does not just reset the PCI portion of a device, but clears all the state associated with the device. This function differs from __pci_reset_function_locked() in that it saves and restores device state over the reset. It also differs from pci_reset_function() in that it requires the PCI device lock to be held. **Context** The caller must hold the device lock. **Return** 0 if the device function was successfully reset or negative if the device doesn't support resetting a single function.h](j)}(h**Parameters**h]j&)}(hjzvh]h Parameters}(hj|vhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjxvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtvubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjvh]hstruct pci_dev *dev}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjvubjc)}(hhh]j)}(hPCI device to reseth]hPCI device to reset}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhMhjvubah}(h]h ]h"]h$]h&]uh1jbhjvubeh}(h]h ]h"]h$]h&]uh1j@hjvhMhjvubah}(h]h ]h"]h$]h&]uh1j;hjtvubj)}(h**Description**h]j&)}(hjvh]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjvubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtvubj)}(hSome devices allow an individual function to be reset without affecting other functions in the same device. The PCI device must be responsive to PCI config space in order to use this function.h]hSome devices allow an individual function to be reset without affecting other functions in the same device. The PCI device must be responsive to PCI config space in order to use this function.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtvubj)}(hXGThis function does not just reset the PCI portion of a device, but clears all the state associated with the device. This function differs from __pci_reset_function_locked() in that it saves and restores device state over the reset. It also differs from pci_reset_function() in that it requires the PCI device lock to be held.h]hXGThis function does not just reset the PCI portion of a device, but clears all the state associated with the device. This function differs from __pci_reset_function_locked() in that it saves and restores device state over the reset. It also differs from pci_reset_function() in that it requires the PCI device lock to be held.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtvubj)}(h **Context**h]j&)}(hj wh]hContext}(hj whhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjwubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtvubj)}(h%The caller must hold the device lock.h]h%The caller must hold the device lock.}(hj whhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtvubj)}(h **Return**h]j&)}(hj1wh]hReturn}(hj3whhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj/wubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtvubj)}(hv0 if the device function was successfully reset or negative if the device doesn't support resetting a single function.h]hx0 if the device function was successfully reset or negative if the device doesn’t support resetting a single function.}(hjGwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_try_reset_function (C function)c.pci_try_reset_functionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h0int pci_try_reset_function (struct pci_dev *dev)h]h)}(h/int pci_try_reset_function(struct pci_dev *dev)h](h)}(hinth]hint}(hjvwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrwhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrwhhhjwhMubj-)}(hpci_try_reset_functionh]j3)}(hpci_try_reset_functionh]hpci_try_reset_function}(hjwhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjwubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjrwhhhjwhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjwhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjwhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjwubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwmodnameN classnameNjj)}j]j)}jjwsbc.pci_try_reset_functionasbuh1hhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj3)}(hdevh]hdev}(hj xhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjwubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjwubah}(h]h ]h"]h$]h&]jKjLuh1jMhjrwhhhjwhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjnwhhhjwhMubah}(h]jiwah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhjkwhhubj)}(hhh]j)}(h'quiesce and reset a PCI device functionh]h'quiesce and reset a PCI device function}(hj6xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj3xhhubah}(h]h ]h"]h$]h&]uh1jhjkwhhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNxjjNxjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device to reset **Description** Same as above, except return -EAGAIN if unable to lock device.h](j)}(h**Parameters**h]j&)}(hjXxh]h Parameters}(hjZxhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjVxubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjRxubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjwxh]hstruct pci_dev *dev}(hjyxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuxubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjqxubjc)}(hhh]j)}(hPCI device to reseth]hPCI device to reset}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jbhjqxubeh}(h]h ]h"]h$]h&]uh1j@hjxhMhjnxubah}(h]h ]h"]h$]h&]uh1j;hjRxubj)}(h**Description**h]j&)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjxubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjRxubj)}(h>Same as above, except return -EAGAIN if unable to lock device.h]h>Same as above, except return -EAGAIN if unable to lock device.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjRxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،!pci_probe_reset_slot (C function)c.pci_probe_reset_slothNtauh1hhhhhhNhNubh)}(hhh](h)}(h0int pci_probe_reset_slot (struct pci_slot *slot)h]h)}(h/int pci_probe_reset_slot(struct pci_slot *slot)h](h)}(hinth]hint}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhjyhMubj-)}(hpci_probe_reset_sloth]j3)}(hpci_probe_reset_sloth]hpci_probe_reset_slot}(hjyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjyubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjxhhhjyhMubjN)}(h(struct pci_slot *slot)h]jT)}(hstruct pci_slot *sloth](jZ)}(hj]h]hstruct}(hj4yhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj0yubj)}(h h]h }(hjAyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0yubh)}(hhh]j3)}(hpci_sloth]hpci_slot}(hjRyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOyubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTymodnameN classnameNjj)}j]j)}jjysbc.pci_probe_reset_slotasbuh1hhj0yubj)}(h h]h }(hjryhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0yubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0yubj3)}(hsloth]hslot}(hjyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0yubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,yubah}(h]h ]h"]h$]h&]jKjLuh1jMhjxhhhjyhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjxhhhjyhMubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjyhMhjxhhubj)}(hhh]j)}(h%probe whether a PCI slot can be reseth]h%probe whether a PCI slot can be reset}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_slot *slot`` PCI slot to probe **Description** Return 0 if slot can be reset, negative if a slot reset is not supported.h](j)}(h**Parameters**h]j&)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjyubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjyubj<)}(hhh]jA)}(h,``struct pci_slot *slot`` PCI slot to probe h](jG)}(h``struct pci_slot *slot``h]jM)}(hjyh]hstruct pci_slot *slot}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjyubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjyubjc)}(hhh]j)}(hPCI slot to probeh]hPCI slot to probe}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj zhMhjzubah}(h]h ]h"]h$]h&]uh1jbhjyubeh}(h]h ]h"]h$]h&]uh1j@hj zhMhjyubah}(h]h ]h"]h$]h&]uh1j;hjyubj)}(h**Description**h]j&)}(hj3zh]h Description}(hj5zhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj1zubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjyubj)}(hIReturn 0 if slot can be reset, negative if a slot reset is not supported.h]hIReturn 0 if slot can be reset, negative if a slot reset is not supported.}(hjIzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_bus_error_reset (C function)c.pci_bus_error_resethNtauh1hhhhhhNhNubh)}(hhh](h)}(h0int pci_bus_error_reset (struct pci_dev *bridge)h]h)}(h/int pci_bus_error_reset(struct pci_dev *bridge)h](h)}(hinth]hint}(hjxzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjtzhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtzhhhjzhMhubj-)}(hpci_bus_error_reseth]j3)}(hpci_bus_error_reseth]hpci_bus_error_reset}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjtzhhhjzhMhubjN)}(h(struct pci_dev *bridge)h]jT)}(hstruct pci_dev *bridgeh](jZ)}(hj]h]hstruct}(hjzhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzmodnameN classnameNjj)}j]j)}jjzsbc.pci_bus_error_resetasbuh1hhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj3)}(hbridgeh]hbridge}(hj{hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjzubah}(h]h ]h"]h$]h&]jKjLuh1jMhjtzhhhjzhMhubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjpzhhhjzhMhubah}(h]jkzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMhhjmzhhubj)}(hhh]j)}(h"reset the bridge's subordinate bush]h$reset the bridge’s subordinate bus}(hj8{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhhj5{hhubah}(h]h ]h"]h$]h&]uh1jhjmzhhhjzhMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjjP{jjP{jjjuh1hhhhhhNhNubj)}(h`**Parameters** ``struct pci_dev *bridge`` The parent device that connects to the bus to reseth](j)}(h**Parameters**h]j&)}(hjZ{h]h Parameters}(hj\{hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjX{ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMlhjT{ubj<)}(hhh]jA)}(hN``struct pci_dev *bridge`` The parent device that connects to the bus to reseth](jG)}(h``struct pci_dev *bridge``h]jM)}(hjy{h]hstruct pci_dev *bridge}(hj{{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjw{ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMnhjs{ubjc)}(hhh]j)}(h3The parent device that connects to the bus to reseth]h3The parent device that connects to the bus to reset}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMihj{ubah}(h]h ]h"]h$]h&]uh1jbhjs{ubeh}(h]h ]h"]h$]h&]uh1j@hj{hMnhjp{ubah}(h]h ]h"]h$]h&]uh1j;hjT{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_probe_reset_bus (C function)c.pci_probe_reset_bushNtauh1hhhhhhNhNubh)}(hhh](h)}(h-int pci_probe_reset_bus (struct pci_bus *bus)h]h)}(h,int pci_probe_reset_bus(struct pci_bus *bus)h](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMwubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj{hMwubj-)}(hpci_probe_reset_bush]j3)}(hpci_probe_reset_bush]hpci_probe_reset_bus}(hj{hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj{hhhj{hMwubjN)}(h(struct pci_bus *bus)h]jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj|hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj |ubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj |ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj.|hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj+|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0|modnameN classnameNjj)}j]j)}jj{sbc.pci_probe_reset_busasbuh1hhj |ubj)}(h h]h }(hjN|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj |ubj)}(hjh]h*}(hj\|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj |ubj3)}(hbush]hbus}(hji|hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj |ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj|ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj{hhhj{hMwubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj{hhhj{hMwubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMwhj{hhubj)}(hhh]j)}(h$probe whether a PCI bus can be reseth]h$probe whether a PCI bus can be reset}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMwhj|hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjj|jj|jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_bus *bus`` PCI bus to probe **Description** Return 0 if bus can be reset, negative if a bus reset is not supported.h](j)}(h**Parameters**h]j&)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj|ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM{hj|ubj<)}(hhh]jA)}(h)``struct pci_bus *bus`` PCI bus to probe h](jG)}(h``struct pci_bus *bus``h]jM)}(hj|h]hstruct pci_bus *bus}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMxhj|ubjc)}(hhh]j)}(hPCI bus to probeh]hPCI bus to probe}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hMxhj|ubah}(h]h ]h"]h$]h&]uh1jbhj|ubeh}(h]h ]h"]h$]h&]uh1j@hj|hMxhj|ubah}(h]h ]h"]h$]h&]uh1j;hj|ubj)}(h**Description**h]j&)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj }ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMzhj|ubj)}(hGReturn 0 if bus can be reset, negative if a bus reset is not supported.h]hGReturn 0 if bus can be reset, negative if a bus reset is not supported.}(hj%}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMyhj|ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_reset_bus (C function)c.pci_reset_bushNtauh1hhhhhhNhNubh)}(hhh](h)}(h(int pci_reset_bus (struct pci_dev *pdev)h]h)}(h'int pci_reset_bus(struct pci_dev *pdev)h](h)}(hinth]hint}(hjT}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjP}hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjc}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjP}hhhjb}hMubj-)}(h pci_reset_bush]j3)}(h pci_reset_bush]h pci_reset_bus}(hju}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjq}ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjP}hhhjb}hMubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj}hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j)}jjw}sbc.pci_reset_busasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj3)}(hpdevh]hpdev}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjP}hhhjb}hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjL}hhhjb}hMubah}(h]jG}ah ](jjeh"]h$]h&]jj)jhuh1hhjb}hMhjI}hhubj)}(hhh]j)}(hTry to reset a PCI bush]hTry to reset a PCI bus}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj~hhubah}(h]h ]h"]h$]h&]uh1jhjI}hhhjb}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,~jj,~jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` top level PCI device to reset via slot/bus **Description** Same as above except return -EAGAIN if the bus cannot be lockedh](j)}(h**Parameters**h]j&)}(hj6~h]h Parameters}(hj8~hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj4~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj0~ubj<)}(hhh]jA)}(hD``struct pci_dev *pdev`` top level PCI device to reset via slot/bus h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjU~h]hstruct pci_dev *pdev}(hjW~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjS~ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjO~ubjc)}(hhh]j)}(h*top level PCI device to reset via slot/bush]h*top level PCI device to reset via slot/bus}(hjn~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjj~hMhjk~ubah}(h]h ]h"]h$]h&]uh1jbhjO~ubeh}(h]h ]h"]h$]h&]uh1j@hjj~hMhjL~ubah}(h]h ]h"]h$]h&]uh1j;hj0~ubj)}(h**Description**h]j&)}(hj~h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj~ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj0~ubj)}(h?Same as above except return -EAGAIN if the bus cannot be lockedh]h?Same as above except return -EAGAIN if the bus cannot be locked}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj0~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcix_get_max_mmrbc (C function)c.pcix_get_max_mmrbchNtauh1hhhhhhNhNubh)}(hhh](h)}(h,int pcix_get_max_mmrbc (struct pci_dev *dev)h]h)}(h+int pcix_get_max_mmrbc(struct pci_dev *dev)h](h)}(hinth]hint}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhj~hMubj-)}(hpcix_get_max_mmrbch]j3)}(hpcix_get_max_mmrbch]hpcix_get_max_mmrbc}(hj~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj~hhhj~hMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj0hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj2modnameN classnameNjj)}j]j)}jj~sbc.pcix_get_max_mmrbcasbuh1hhjubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjkhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj~hhhj~hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj~hhhj~hMubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhj~hMhj~hhubj)}(hhh]j)}(h1get PCI-X maximum designed memory read byte counth]h1get PCI-X maximum designed memory read byte count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device to query **Description** Returns mmrbc: maximum designed memory read count in bytes or appropriate error value.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(hVReturns mmrbc: maximum designed memory read count in bytes or appropriate error value.h]hVReturns mmrbc: maximum designed memory read count in bytes or appropriate error value.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcix_get_mmrbc (C function)c.pcix_get_mmrbchNtauh1hhhhhhNhNubh)}(hhh](h)}(h(int pcix_get_mmrbc (struct pci_dev *dev)h]h)}(h'int pcix_get_mmrbc(struct pci_dev *dev)h](h)}(hinth]hint}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRhhhjdhMubj-)}(hpcix_get_mmrbch]j3)}(hpcix_get_mmrbch]hpcix_get_mmrbc}(hjwhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjRhhhjdhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjysbc.pcix_get_mmrbcasbuh1hhjubj)}(h h]h }(hjрhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj߀hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjRhhhjdhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjNhhhjdhMubah}(h]jIah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhjKhhubj)}(hhh]j)}(h(get PCI-X maximum memory read byte counth]h(get PCI-X maximum memory read byte count}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device to query **Description** Returns mmrbc: maximum memory read count in bytes or appropriate error value.h](j)}(h**Parameters**h]j&)}(hj8h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj6ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj2ubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjWh]hstruct pci_dev *dev}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjQubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jbhjQubeh}(h]h ]h"]h$]h&]uh1j@hjlhMhjNubah}(h]h ]h"]h$]h&]uh1j;hj2ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj2ubj)}(hMReturns mmrbc: maximum memory read count in bytes or appropriate error value.h]hMReturns mmrbc: maximum memory read count in bytes or appropriate error value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcix_set_mmrbc (C function)c.pcix_set_mmrbchNtauh1hhhhhhNhNubh)}(hhh](h)}(h3int pcix_set_mmrbc (struct pci_dev *dev, int mmrbc)h]h)}(h2int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc)h](h)}(hinth]hint}(hjׁhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjӁhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjӁhhhjhMubj-)}(hpcix_set_mmrbch]j3)}(hpcix_set_mmrbch]hpcix_set_mmrbc}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjӁhhhjhMubjN)}(h (struct pci_dev *dev, int mmrbc)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]j)}jjsbc.pcix_set_mmrbcasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubjT)}(h int mmrbch](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hmmrbch]hmmrbc}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjӁhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjρhhhjhMubah}(h]jʁah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj́hhubj)}(hhh]j)}(h(set PCI-X maximum memory read byte counth]h(set PCI-X maximum memory read byte count}(hĵhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjɂhhubah}(h]h ]h"]h$]h&]uh1jhj́hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX **Parameters** ``struct pci_dev *dev`` PCI device to query ``int mmrbc`` maximum memory read count in bytes valid values are 512, 1024, 2048, 4096 **Description** If possible sets maximum memory read byte count, some bridges have errata that prevent this.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hj h]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj"hMhjubjA)}(hX``int mmrbc`` maximum memory read count in bytes valid values are 512, 1024, 2048, 4096 h](jG)}(h ``int mmrbc``h]jM)}(hjFh]h int mmrbc}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj@ubjc)}(hhh]j)}(hImaximum memory read count in bytes valid values are 512, 1024, 2048, 4096h]hImaximum memory read count in bytes valid values are 512, 1024, 2048, 4096}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj\ubah}(h]h ]h"]h$]h&]uh1jbhj@ubeh}(h]h ]h"]h$]h&]uh1j@hj[hMhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(h\If possible sets maximum memory read byte count, some bridges have errata that prevent this.h]h\If possible sets maximum memory read byte count, some bridges have errata that prevent this.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_get_readrq (C function)c.pcie_get_readrqhNtauh1hhhhhhNhNubh)}(hhh](h)}(h)int pcie_get_readrq (struct pci_dev *dev)h]h)}(h(int pcie_get_readrq(struct pci_dev *dev)h](h)}(hinth]hint}(hjǃhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjÃhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjփhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjÃhhhjՃhMubj-)}(hpcie_get_readrqh]j3)}(hpcie_get_readrqh]hpcie_get_readrq}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjÃhhhjՃhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj"hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNjj)}j]j)}jjsbc.pcie_get_readrqasbuh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hj]hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjÃhhhjՃhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjՃhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjՃhMhjhhubj)}(hhh]j)}(h!get PCI Express read request sizeh]h!get PCI Express read request size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjՃhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device to query **Description** Returns maximum memory read request in bytes or appropriate error value.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjȄh]hstruct pci_dev *dev}(hjʄhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjƄubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj„ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj݄hMhjބubah}(h]h ]h"]h$]h&]uh1jbhj„ubeh}(h]h ]h"]h$]h&]uh1j@hj݄hMhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(hHReturns maximum memory read request in bytes or appropriate error value.h]hHReturns maximum memory read request in bytes or appropriate error value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_set_readrq (C function)c.pcie_set_readrqhNtauh1hhhhhhNhNubh)}(hhh](h)}(h1int pcie_set_readrq (struct pci_dev *dev, int rq)h]h)}(h0int pcie_set_readrq(struct pci_dev *dev, int rq)h](h)}(hinth]hint}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjDhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjDhhhjVhMubj-)}(hpcie_set_readrqh]j3)}(hpcie_set_readrqh]hpcie_set_readrq}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjeubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjDhhhjVhMubjN)}(h(struct pci_dev *dev, int rq)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjksbc.pcie_set_readrqasbuh1hhjubj)}(h h]h }(hjÅhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjхhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjޅhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubjT)}(hint rqh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hrqh]hrq}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjDhhhjVhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj@hhhjVhMubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1hhjVhMhj=hhubj)}(hhh]j)}(h+set PCI Express maximum memory read requesth]h+set PCI Express maximum memory read request}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device to query ``int rq`` maximum memory read count in bytes valid values are 128, 256, 512, 1024, 2048, 4096 **Description** If possible sets maximum memory read request in bytesh](j)}(h**Parameters**h]j&)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj]ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjYubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hj~h]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjxubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjxubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjuubjA)}(h_``int rq`` maximum memory read count in bytes valid values are 128, 256, 512, 1024, 2048, 4096 h](jG)}(h ``int rq``h]jM)}(hjh]hint rq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubjc)}(hhh]j)}(hSmaximum memory read count in bytes valid values are 128, 256, 512, 1024, 2048, 4096h]hSmaximum memory read count in bytes valid values are 128, 256, 512, 1024, 2048, 4096}(hjІhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj͆ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj̆hMhjuubeh}(h]h ]h"]h$]h&]uh1j;hjYubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjYubj)}(h5If possible sets maximum memory read request in bytesh]h5If possible sets maximum memory read request in bytes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_get_mps (C function)c.pcie_get_mpshNtauh1hhhhhhNhNubh)}(hhh](h)}(h&int pcie_get_mps (struct pci_dev *dev)h]h)}(h%int pcie_get_mps(struct pci_dev *dev)h](h)}(hinth]hint}(hj8hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM/ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4hhhjFhM/ubj-)}(h pcie_get_mpsh]j3)}(h pcie_get_mpsh]h pcie_get_mps}(hjYhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj4hhhjFhM/ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjuhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj[sbc.pcie_get_mpsasbuh1hhjqubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubj3)}(hdevh]hdev}(hj·hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjqubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjmubah}(h]h ]h"]h$]h&]jKjLuh1jMhj4hhhjFhM/ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj0hhhjFhM/ubah}(h]j+ah ](jjeh"]h$]h&]jj)jhuh1hhjFhM/hj-hhubj)}(hhh]j)}(h$get PCI Express maximum payload sizeh]h$get PCI Express maximum payload size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM/hjhhubah}(h]h ]h"]h$]h&]uh1jhj-hhhjFhM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hu**Parameters** ``struct pci_dev *dev`` PCI device to query **Description** Returns maximum payload size in bytesh](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM3hjubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hj9h]hstruct pci_dev *dev}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM0hj3ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhM0hjOubah}(h]h ]h"]h$]h&]uh1jbhj3ubeh}(h]h ]h"]h$]h&]uh1j@hjNhM0hj0ubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjrubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM2hjubj)}(h%Returns maximum payload size in bytesh]h%Returns maximum payload size in bytes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM1hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_set_mps (C function)c.pcie_set_mpshNtauh1hhhhhhNhNubh)}(hhh](h)}(h/int pcie_set_mps (struct pci_dev *dev, int mps)h]h)}(h.int pcie_set_mps(struct pci_dev *dev, int mps)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM?ubj)}(h h]h }(hjȈhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjLjhM?ubj-)}(h pcie_set_mpsh]j3)}(h pcie_set_mpsh]h pcie_set_mps}(hjڈhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjֈubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjLjhM?ubjN)}(h(struct pci_dev *dev, int mps)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj܈sbc.pcie_set_mpsasbuh1hhjubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjOhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hint mpsh](h)}(hinth]hint}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj3)}(hmpsh]hmps}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjdubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjLjhM?ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjLjhM?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjLjhM?hjhhubj)}(hhh]j)}(h$set PCI Express maximum payload sizeh]h$set PCI Express maximum payload size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM?hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjLjhM?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjƉjjƉjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device to query ``int mps`` maximum payload size in bytes valid values are 128, 256, 512, 1024, 2048, 4096 **Description** If possible sets maximum payload sizeh](j)}(h**Parameters**h]j&)}(hjЉh]h Parameters}(hj҉hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjΉubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMChjʉubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM@hjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM@hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhM@hjubjA)}(h[``int mps`` maximum payload size in bytes valid values are 128, 256, 512, 1024, 2048, 4096 h](jG)}(h ``int mps``h]jM)}(hj(h]hint mps}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMBhj"ubjc)}(hhh]j)}(hNmaximum payload size in bytes valid values are 128, 256, 512, 1024, 2048, 4096h]hNmaximum payload size in bytes valid values are 128, 256, 512, 1024, 2048, 4096}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMAhj>ubah}(h]h ]h"]h$]h&]uh1jbhj"ubeh}(h]h ]h"]h$]h&]uh1j@hj=hMBhjubeh}(h]h ]h"]h$]h&]uh1j;hjʉubj)}(h**Description**h]j&)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjbubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMDhjʉubj)}(h%If possible sets maximum payload sizeh]h%If possible sets maximum payload size}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMChjʉubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،%pcie_bandwidth_available (C function)c.pcie_bandwidth_availablehNtauh1hhhhhhNhNubh)}(hhh](h)}(hu32 pcie_bandwidth_available (struct pci_dev *dev, struct pci_dev **limiting_dev, enum pci_bus_speed *speed, enum pcie_link_width *width)h]h)}(hu32 pcie_bandwidth_available(struct pci_dev *dev, struct pci_dev **limiting_dev, enum pci_bus_speed *speed, enum pcie_link_width *width)h](h)}(hhh]j3)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpcie_bandwidth_availablesbc.pcie_bandwidth_availableasbuh1hhjhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMmubj)}(h h]h }(hjΊhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj͊hMmubj-)}(hpcie_bandwidth_availableh]j3)}(hjʊh]hpcie_bandwidth_available}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj܊ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj͊hMmubjN)}(hl(struct pci_dev *dev, struct pci_dev **limiting_dev, enum pci_bus_speed *speed, enum pcie_link_width *width)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jȊc.pcie_bandwidth_availableasbuh1hhjubj)}(h h]h }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct pci_dev **limiting_devh](jZ)}(hj]h]hstruct}(hjkhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjgubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jȊc.pcie_bandwidth_availableasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hj‹hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj3)}(h limiting_devh]h limiting_dev}(hjϋhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjgubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(henum pci_bus_speed *speedh](jZ)}(hj2h]henum}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h pci_bus_speedh]h pci_bus_speed}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jȊc.pcie_bandwidth_availableasbuh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hspeedh]hspeed}(hj?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(henum pcie_link_width *widthh](jZ)}(hj2h]henum}(hjXhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjTubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubh)}(hhh]j3)}(hpcie_link_widthh]hpcie_link_width}(hjvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]jȊc.pcie_bandwidth_availableasbuh1hhjTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjTubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubj3)}(hwidthh]hwidth}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjTubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj͊hMmubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj͊hMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj͊hMmhjhhubj)}(hhh]j)}(hMdetermine minimum link settings of a PCIe device and its bandwidth limitationh]hMdetermine minimum link settings of a PCIe device and its bandwidth limitation}(hjٌhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMmhj֌hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj͊hMmubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX^**Parameters** ``struct pci_dev *dev`` PCI device to query ``struct pci_dev **limiting_dev`` storage for device causing the bandwidth limitation ``enum pci_bus_speed *speed`` storage for speed of limiting device ``enum pcie_link_width *width`` storage for width of limiting device **Description** Walk up the PCI device chain and find the point where the minimum bandwidth is available. Return the bandwidth available there and (if limiting_dev, speed, and width pointers are supplied) information about that point. The bandwidth returned is in Mb/s, i.e., megabits/second of raw bandwidth.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMqhjubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMohjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMohj0ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj/hMohjubjA)}(hV``struct pci_dev **limiting_dev`` storage for device causing the bandwidth limitation h](jG)}(h!``struct pci_dev **limiting_dev``h]jM)}(hjSh]hstruct pci_dev **limiting_dev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMphjMubjc)}(hhh]j)}(h3storage for device causing the bandwidth limitationh]h3storage for device causing the bandwidth limitation}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhMphjiubah}(h]h ]h"]h$]h&]uh1jbhjMubeh}(h]h ]h"]h$]h&]uh1j@hjhhMphjubjA)}(hC``enum pci_bus_speed *speed`` storage for speed of limiting device h](jG)}(h``enum pci_bus_speed *speed``h]jM)}(hjh]henum pci_bus_speed *speed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMqhjubjc)}(hhh]j)}(h$storage for speed of limiting deviceh]h$storage for speed of limiting device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMqhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMqhjubjA)}(hE``enum pcie_link_width *width`` storage for width of limiting device h](jG)}(h``enum pcie_link_width *width``h]jM)}(hjōh]henum pcie_link_width *width}(hjǍhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjÍubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMrhjubjc)}(hhh]j)}(h$storage for width of limiting deviceh]h$storage for width of limiting device}(hjލhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjڍhMrhjۍubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjڍhMrhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMthjubj)}(hX'Walk up the PCI device chain and find the point where the minimum bandwidth is available. Return the bandwidth available there and (if limiting_dev, speed, and width pointers are supplied) information about that point. The bandwidth returned is in Mb/s, i.e., megabits/second of raw bandwidth.h]hX'Walk up the PCI device chain and find the point where the minimum bandwidth is available. Return the bandwidth available there and (if limiting_dev, speed, and width pointers are supplied) information about that point. The bandwidth returned is in Mb/s, i.e., megabits/second of raw bandwidth.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMshjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_get_speed_cap (C function)c.pcie_get_speed_caphNtauh1hhhhhhNhNubh)}(hhh](h)}(h;enum pci_bus_speed pcie_get_speed_cap (struct pci_dev *dev)h]h)}(h:enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev)h](jZ)}(hj2h]henum}(hjEhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjAhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhhjRhMubh)}(hhh]j3)}(h pci_bus_speedh]h pci_bus_speed}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]j)}jpcie_get_speed_capsbc.pcie_get_speed_capasbuh1hhjAhhhjRhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAhhhjRhMubj-)}(hpcie_get_speed_caph]j3)}(hjh]hpcie_get_speed_cap}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjAhhhjRhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjЎhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj͎ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjҎmodnameN classnameNjj)}j]jc.pcie_get_speed_capasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjAhhhjRhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj=hhhjRhMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1hhjRhMhj:hhubj)}(hhh]j)}(h0query for the PCI device's link speed capabilityh]h2query for the PCI device’s link speed capability}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhjRhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device to query **Description** Query the PCI device speed capability. **Return** the maximum link speed supported by the device.h](j)}(h**Parameters**h]j&)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjSubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hjth]hstruct pci_dev *dev}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjnubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjnubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjkubah}(h]h ]h"]h$]h&]uh1j;hjOubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOubj)}(h&Query the PCI device speed capability.h]h&Query the PCI device speed capability.}(hjŏhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOubj)}(h **Return**h]j&)}(hj֏h]hReturn}(hj؏hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjԏubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOubj)}(h/the maximum link speed supported by the device.h]h/the maximum link speed supported by the device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_get_width_cap (C function)c.pcie_get_width_caphNtauh1hhhhhhNhNubh)}(hhh](h)}(h=enum pcie_link_width pcie_get_width_cap (struct pci_dev *dev)h]h)}(hint pci_select_bars (struct pci_dev *dev, unsigned long flags)h]h)}(h=int pci_select_bars(struct pci_dev *dev, unsigned long flags)h](h)}(hinth]hint}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMAubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGhhhjYhMAubj-)}(hpci_select_barsh]j3)}(hpci_select_barsh]hpci_select_bars}(hjlhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjGhhhjYhMAubjN)}(h*(struct pci_dev *dev, unsigned long flags)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjnsbc.pci_select_barsasbuh1hhjubj)}(h h]h }(hjƓhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjԓhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hflagsh]hflags}(hj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjGhhhjYhMAubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjChhhjYhMAubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1hhjYhMAhj@hhubj)}(hhh]j)}(h'Make BAR mask from the type of resourceh]h'Make BAR mask from the type of resource}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMAhjYhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjYhMAubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCI device for which BAR mask is made ``unsigned long flags`` resource type mask to be selected **Description** This helper routine makes bar mask from the type of resource.h](j)}(h**Parameters**h]j&)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj|ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMEhjxubj<)}(hhh](jA)}(hB``struct pci_dev *dev`` the PCI device for which BAR mask is made h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMBhjubjc)}(hhh]j)}(h)the PCI device for which BAR mask is madeh]h)the PCI device for which BAR mask is made}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMBhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMBhjubjA)}(h:``unsigned long flags`` resource type mask to be selected h](jG)}(h``unsigned long flags``h]jM)}(hj֔h]hunsigned long flags}(hjؔhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjԔubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMChjДubjc)}(hhh]j)}(h!resource type mask to be selectedh]h!resource type mask to be selected}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMChjubah}(h]h ]h"]h$]h&]uh1jbhjДubeh}(h]h ]h"]h$]h&]uh1j@hjhMChjubeh}(h]h ]h"]h$]h&]uh1j;hjxubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMEhjxubj)}(h=This helper routine makes bar mask from the type of resource.h]h=This helper routine makes bar mask from the type of resource.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMDhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،(pci_bus_find_emul_domain_nr (C function)c.pci_bus_find_emul_domain_nrhNtauh1hhhhhhNhNubh)}(hhh](h)}(hhjubjc)}(hhh]j)}(hPCI device that owns the BARh]hPCI device that owns the BAR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hK>hj ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj hK>hjubjA)}(h``int bar`` BAR number h](jG)}(h ``int bar``h]jM)}(hj0h]hint bar}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chK?hj*ubjc)}(hhh]j)}(h BAR numberh]h BAR number}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhK?hjFubah}(h]h ]h"]h$]h&]uh1jbhj*ubeh}(h]h ]h"]h$]h&]uh1j@hjEhK?hjubjA)}(h?``unsigned long offset`` map memory at the given offset in BAR h](jG)}(h``unsigned long offset``h]jM)}(hjih]hunsigned long offset}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjgubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chK@hjcubjc)}(hhh]j)}(h%map memory at the given offset in BARh]h%map memory at the given offset in BAR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hK@hjubah}(h]h ]h"]h$]h&]uh1jbhjcubeh}(h]h ]h"]h$]h&]uh1j@hj~hK@hjubjA)}(h9``unsigned long maxlen`` max length of the memory to map h](jG)}(h``unsigned long maxlen``h]jM)}(hjh]hunsigned long maxlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKAhjubjc)}(hhh]j)}(hmax length of the memory to maph]hmax length of the memory to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKAhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKAhjubeh}(h]h ]h"]h$]h&]uh1j;hjҜubj)}(h**Description**h]j&)}(hjݝh]h Description}(hjߝhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj۝ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKChjҜubj)}(hX&Using this function you will get a __iomem address to your device BAR. You can access it using ioread*() and iowrite*(). These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way. When possible write combining is used.h]hX&Using this function you will get a __iomem address to your device BAR. You can access it using ioread*() and iowrite*(). These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way. When possible write combining is used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKBhjҜubj)}(h**maxlen** specifies the maximum length to map. If you want to get access to the complete BAR from offset to the end, pass ``0`` here.h](j&)}(h **maxlen**h]hmaxlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubhq specifies the maximum length to map. If you want to get access to the complete BAR from offset to the end, pass }(hjhhhNhNubjM)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh here.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKHhjҜubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_iomap (C function) c.pci_iomaphNtauh1hhhhhhNhNubh)}(hhh](h)}(hMvoid __iomem * pci_iomap (struct pci_dev *dev, int bar, unsigned long maxlen)h]h)}(hKvoid __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long maxlen)h](h)}(hvoidh]hvoid}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjMhhhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKnubj)}(h h]h }(hj`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMhhhj_hKnubh__iomem}(hjMhhhNhNubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMhhhj_hKnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhhj_hKnubj-)}(h pci_iomaph]j3)}(h pci_iomaph]h pci_iomap}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjMhhhj_hKnubjN)}(h4(struct pci_dev *dev, int bar, unsigned long maxlen)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj˞hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjȞubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj͞modnameN classnameNjj)}j]j)}jjsb c.pci_iomapasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hint barh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hbarh]hbar}(hj;hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned long maxlenh](h)}(hunsignedh]hunsigned}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubh)}(hlongh]hlong}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj3)}(hmaxlenh]hmaxlen}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjPubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjMhhhj_hKnubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjIhhhj_hKnubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhj_hKnhjFhhubj)}(hhh]j)}(h-create a virtual mapping cookie for a PCI BARh]h-create a virtual mapping cookie for a PCI BAR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKnhjhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj_hKnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjΟjjΟjjjuh1hhhhhhNhNubj)}(hXA**Parameters** ``struct pci_dev *dev`` PCI device that owns the BAR ``int bar`` BAR number ``unsigned long maxlen`` length of the memory to map **Description** Using this function you will get a __iomem address to your device BAR. You can access it using ioread*() and iowrite*(). These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way. **maxlen** specifies the maximum length to map. If you want to get access to the complete BAR without checking for its length first, pass ``0`` here.h](j)}(h**Parameters**h]j&)}(hj؟h]h Parameters}(hjڟhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj֟ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKrhjҟubj<)}(hhh](jA)}(h5``struct pci_dev *dev`` PCI device that owns the BAR h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKohjubjc)}(hhh]j)}(hPCI device that owns the BARh]hPCI device that owns the BAR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKohj ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj hKohjubjA)}(h``int bar`` BAR number h](jG)}(h ``int bar``h]jM)}(hj0h]hint bar}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKphj*ubjc)}(hhh]j)}(h BAR numberh]h BAR number}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhKphjFubah}(h]h ]h"]h$]h&]uh1jbhj*ubeh}(h]h ]h"]h$]h&]uh1j@hjEhKphjubjA)}(h5``unsigned long maxlen`` length of the memory to map h](jG)}(h``unsigned long maxlen``h]jM)}(hjih]hunsigned long maxlen}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjgubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKqhjcubjc)}(hhh]j)}(hlength of the memory to maph]hlength of the memory to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hKqhjubah}(h]h ]h"]h$]h&]uh1jbhjcubeh}(h]h ]h"]h$]h&]uh1j@hj~hKqhjubeh}(h]h ]h"]h$]h&]uh1j;hjҟubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKshjҟubj)}(hUsing this function you will get a __iomem address to your device BAR. You can access it using ioread*() and iowrite*(). These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way.h]hUsing this function you will get a __iomem address to your device BAR. You can access it using ioread*() and iowrite*(). These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKrhjҟubj)}(h**maxlen** specifies the maximum length to map. If you want to get access to the complete BAR without checking for its length first, pass ``0`` here.h](j&)}(h **maxlen**h]hmaxlen}(hj͠hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjɠubh specifies the maximum length to map. If you want to get access to the complete BAR without checking for its length first, pass }(hjɠhhhNhNubjM)}(h``0``h]h0}(hjߠhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjɠubh here.}(hjɠhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKwhjҟubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_iomap_wc (C function)c.pci_iomap_wchNtauh1hhhhhhNhNubh)}(hhh](h)}(hPvoid __iomem * pci_iomap_wc (struct pci_dev *dev, int bar, unsigned long maxlen)h]h)}(hNvoid __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long maxlen)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj&hKubh__iomem}(hjhhhNhNubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj&hKubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj&hKubj-)}(h pci_iomap_wch]j3)}(h pci_iomap_wch]h pci_iomap_wc}(hjXhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjTubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj&hKubjN)}(h4(struct pci_dev *dev, int bar, unsigned long maxlen)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjthhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjZsbc.pci_iomap_wcasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj3)}(hdevh]hdev}(hj͡hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjlubjT)}(hint barh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hbarh]hbar}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjlubjT)}(hunsigned long maxlenh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hmaxlenh]hmaxlen}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjlubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj&hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj&hKubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj&hKhj hhubj)}(hhh]j)}(h0create a virtual WC mapping cookie for a PCI BARh]h0create a virtual WC mapping cookie for a PCI BAR}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhjzhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hXh**Parameters** ``struct pci_dev *dev`` PCI device that owns the BAR ``int bar`` BAR number ``unsigned long maxlen`` length of the memory to map **Description** Using this function you will get a __iomem address to your device BAR. You can access it using ioread*() and iowrite*(). These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way. When possible write combining is used. **maxlen** specifies the maximum length to map. If you want to get access to the complete BAR without checking for its length first, pass ``0`` here.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhjubj<)}(hhh](jA)}(h5``struct pci_dev *dev`` PCI device that owns the BAR h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhjubjc)}(hhh]j)}(hPCI device that owns the BARh]hPCI device that owns the BAR}(hjעhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӢhKhjԢubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjӢhKhjubjA)}(h``int bar`` BAR number h](jG)}(h ``int bar``h]jM)}(hjh]hint bar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhjubjc)}(hhh]j)}(h BAR numberh]h BAR number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj hKhjubjA)}(h5``unsigned long maxlen`` length of the memory to map h](jG)}(h``unsigned long maxlen``h]jM)}(hj0h]hunsigned long maxlen}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhj*ubjc)}(hhh]j)}(hlength of the memory to maph]hlength of the memory to map}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhKhjFubah}(h]h ]h"]h$]h&]uh1jbhj*ubeh}(h]h ]h"]h$]h&]uh1j@hjEhKhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjiubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhjubj)}(hX&Using this function you will get a __iomem address to your device BAR. You can access it using ioread*() and iowrite*(). These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way. When possible write combining is used.h]hX&Using this function you will get a __iomem address to your device BAR. You can access it using ioread*() and iowrite*(). These functions hide the details if this is a MMIO or PIO address space and will just do what you expect from them in the correct way. When possible write combining is used.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhjubj)}(h**maxlen** specifies the maximum length to map. If you want to get access to the complete BAR without checking for its length first, pass ``0`` here.h](j&)}(h **maxlen**h]hmaxlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh specifies the maximum length to map. If you want to get access to the complete BAR without checking for its length first, pass }(hjhhhNhNubjM)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh here.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#devm_pci_remap_iospace (C function)c.devm_pci_remap_iospacehNtauh1hhhhhhNhNubh)}(hhh](h)}(hbint devm_pci_remap_iospace (struct device *dev, const struct resource *res, phys_addr_t phys_addr)h]h)}(haint devm_pci_remap_iospace(struct device *dev, const struct resource *res, phys_addr_t phys_addr)h](h)}(hinth]hint}(hjߣhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjۣhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjۣhhhjhKubj-)}(hdevm_pci_remap_iospaceh]j3)}(hdevm_pci_remap_iospaceh]hdevm_pci_remap_iospace}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjۣhhhjhKubjN)}(hG(struct device *dev, const struct resource *res, phys_addr_t phys_addr)h](jT)}(hstruct device *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hdeviceh]hdevice}(hj:hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]j)}jjsbc.devm_pci_remap_iospaceasbuh1hhjubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hconst struct resource *resh](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hresourceh]hresource}(hjǤhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjĤubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjɤmodnameN classnameNjj)}j]jVc.devm_pci_remap_iospaceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hresh]hres}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hphys_addr_t phys_addrh](h)}(hhh]j3)}(h phys_addr_th]h phys_addr_t}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jVc.devm_pci_remap_iospaceasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(h phys_addrh]h phys_addr}(hjHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjۣhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjףhhhjhKubah}(h]jңah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjԣhhubj)}(hhh]j)}(hManaged pci_remap_iospace()h]hManaged pci_remap_iospace()}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjohhubah}(h]h ]h"]h$]h&]uh1jhjԣhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX7**Parameters** ``struct device *dev`` Generic device to remap IO address for ``const struct resource *res`` Resource describing the I/O space ``phys_addr_t phys_addr`` physical address of range to be mapped **Description** Managed pci_remap_iospace(). Map is automatically unmapped on driver detach.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubj<)}(hhh](jA)}(h>``struct device *dev`` Generic device to remap IO address for h](jG)}(h``struct device *dev``h]jM)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubjc)}(hhh]j)}(h&Generic device to remap IO address forh]h&Generic device to remap IO address for}(hj̥hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȥhKhjɥubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjȥhKhjubjA)}(hA``const struct resource *res`` Resource describing the I/O space h](jG)}(h``const struct resource *res``h]jM)}(hjh]hconst struct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubjc)}(hhh]j)}(h!Resource describing the I/O spaceh]h!Resource describing the I/O space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(hA``phys_addr_t phys_addr`` physical address of range to be mapped h](jG)}(h``phys_addr_t phys_addr``h]jM)}(hj%h]hphys_addr_t phys_addr}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubjc)}(hhh]j)}(h&physical address of range to be mappedh]h&physical address of range to be mapped}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hKhj;ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj:hKhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hj`h]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubj)}(hMManaged pci_remap_iospace(). Map is automatically unmapped on driver detach.h]hMManaged pci_remap_iospace(). Map is automatically unmapped on driver detach.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،$devm_pci_remap_cfgspace (C function)c.devm_pci_remap_cfgspacehNtauh1hhhhhhNhNubh)}(hhh](h)}(hivoid __iomem * devm_pci_remap_cfgspace (struct device *dev, resource_size_t offset, resource_size_t size)h]h)}(hgvoid __iomem *devm_pci_remap_cfgspace(struct device *dev, resource_size_t offset, resource_size_t size)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh__iomem}(hjhhhNhNubj)}(h h]h }(hjƦhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hjh]h*}(hjԦhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj-)}(hdevm_pci_remap_cfgspaceh]j3)}(hdevm_pci_remap_cfgspaceh]hdevm_pci_remap_cfgspace}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKubjN)}(hB(struct device *dev, resource_size_t offset, resource_size_t size)h](jT)}(hstruct device *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j)}jjsbc.devm_pci_remap_cfgspaceasbuh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjZhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hresource_size_t offseth](h)}(hhh]j3)}(hresource_size_th]hresource_size_t}(hjvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j;c.devm_pci_remap_cfgspaceasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj3)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjoubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hresource_size_t sizeh](h)}(hhh]j3)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j;c.devm_pci_remap_cfgspaceasbuh1hhjubj)}(h h]h }(hjܧhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hManaged pci_remap_cfgspace()h]hManaged pci_remap_cfgspace()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` Generic device to remap IO address for ``resource_size_t offset`` Resource address to map ``resource_size_t size`` Size of map **Description** Managed pci_remap_cfgspace(). Map is automatically unmapped on driver detach.h](j)}(h**Parameters**h]j&)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj4ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhj0ubj<)}(hhh](jA)}(h>``struct device *dev`` Generic device to remap IO address for h](jG)}(h``struct device *dev``h]jM)}(hjUh]hstruct device *dev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjSubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjOubjc)}(hhh]j)}(h&Generic device to remap IO address forh]h&Generic device to remap IO address for}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhKhjkubah}(h]h ]h"]h$]h&]uh1jbhjOubeh}(h]h ]h"]h$]h&]uh1j@hjjhKhjLubjA)}(h3``resource_size_t offset`` Resource address to map h](jG)}(h``resource_size_t offset``h]jM)}(hjh]hresource_size_t offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubjc)}(hhh]j)}(hResource address to maph]hResource address to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjLubjA)}(h%``resource_size_t size`` Size of map h](jG)}(h``resource_size_t size``h]jM)}(hjǨh]hresource_size_t size}(hjɨhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjŨubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubjc)}(hhh]j)}(h Size of maph]h Size of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܨhKhjݨubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjܨhKhjLubeh}(h]h ]h"]h$]h&]uh1j;hj0ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhj0ubj)}(hNManaged pci_remap_cfgspace(). Map is automatically unmapped on driver detach.h]hNManaged pci_remap_cfgspace(). Map is automatically unmapped on driver detach.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،(devm_pci_remap_cfg_resource (C function)c.devm_pci_remap_cfg_resourcehNtauh1hhhhhhNhNubh)}(hhh](h)}(hUvoid __iomem * devm_pci_remap_cfg_resource (struct device *dev, struct resource *res)h]h)}(hSvoid __iomem *devm_pci_remap_cfg_resource(struct device *dev, struct resource *res)h](h)}(hvoidh]hvoid}(hjGhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjUhKubh__iomem}(hjChhhNhNubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjUhKubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjUhKubj-)}(hdevm_pci_remap_cfg_resourceh]j3)}(hdevm_pci_remap_cfg_resourceh]hdevm_pci_remap_cfg_resource}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjChhhjUhKubjN)}(h*(struct device *dev, struct resource *res)h](jT)}(hstruct device *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjémodnameN classnameNjj)}j]j)}jjsbc.devm_pci_remap_cfg_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct resource *resh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hresourceh]hresource}(hj3hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj5modnameN classnameNjj)}j]jݩc.devm_pci_remap_cfg_resourceasbuh1hhjubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hresh]hres}(hjlhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjChhhjUhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj?hhhjUhKubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjUhKhj<hhubj)}(hhh]j)}(h.check, request region and ioremap cfg resourceh]h.check, request region and ioremap cfg resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjUhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct device *dev`` generic device to handle the resource for ``struct resource *res`` configuration space resource to be handled **Description** Checks that a resource is a valid memory region, requests the memory region and ioremaps with pci_remap_cfgspace() API that ensures the proper PCI configuration space memory attributes are guaranteed. All operations are managed and will be undone on driver detach. Returns a pointer to the remapped memory or an IOMEM_ERR_PTR() encoded error code on failure. Usage example:: res = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = devm_pci_remap_cfg_resource(&pdev->dev, res); if (IS_ERR(base)) return PTR_ERR(base);h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubj<)}(hhh](jA)}(hA``struct device *dev`` generic device to handle the resource for h](jG)}(h``struct device *dev``h]jM)}(hjתh]hstruct device *dev}(hj٪hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjժubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjѪubjc)}(hhh]j)}(h)generic device to handle the resource forh]h)generic device to handle the resource for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjѪubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjΪubjA)}(hD``struct resource *res`` configuration space resource to be handled h](jG)}(h``struct resource *res``h]jM)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhj ubjc)}(hhh]j)}(h*configuration space resource to be handledh]h*configuration space resource to be handled}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%hKhj&ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj%hKhjΪubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjIubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubj)}(hChecks that a resource is a valid memory region, requests the memory region and ioremaps with pci_remap_cfgspace() API that ensures the proper PCI configuration space memory attributes are guaranteed.h]hChecks that a resource is a valid memory region, requests the memory region and ioremaps with pci_remap_cfgspace() API that ensures the proper PCI configuration space memory attributes are guaranteed.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubj)}(h?All operations are managed and will be undone on driver detach.h]h?All operations are managed and will be undone on driver detach.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubj)}(hmReturns a pointer to the remapped memory or an IOMEM_ERR_PTR() encoded error code on failure. Usage example::h]hlReturns a pointer to the remapped memory or an IOMEM_ERR_PTR() encoded error code on failure. Usage example:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubh literal_block)}(hres = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = devm_pci_remap_cfg_resource(&pdev->dev, res); if (IS_ERR(base)) return PTR_ERR(base);h]hres = platform_get_resource(pdev, IORESOURCE_MEM, 0); base = devm_pci_remap_cfg_resource(&pdev->dev, res); if (IS_ERR(base)) return PTR_ERR(base);}hjsbah}(h]h ]h"]h$]h&]jKjLuh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_set_mwi (C function)c.pcim_set_mwihNtauh1hhhhhhNhNubh)}(hhh](h)}(h'int pcim_set_mwi (struct pci_dev *pdev)h]h)}(h&int pcim_set_mwi(struct pci_dev *pdev)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjΫhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjͫhMubj-)}(h pcim_set_mwih]j3)}(h pcim_set_mwih]h pcim_set_mwi}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjܫubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjͫhMubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pcim_set_mwiasbuh1hhjubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hpdevh]hpdev}(hjUhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjͫhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjͫhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjͫhMhjhhubj)}(hhh]j)}(ha device-managed pci_set_mwi()h]ha device-managed pci_set_mwi()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjͫhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` the PCI device for which MWI is enabled **Description** Managed pci_set_mwi(). **Return** An appropriate -ERRNO error value on error, or zero for success.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj<)}(hhh]jA)}(hA``struct pci_dev *pdev`` the PCI device for which MWI is enabled h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjh]hstruct pci_dev *pdev}(hj¬hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubjc)}(hhh]j)}(h'the PCI device for which MWI is enabledh]h'the PCI device for which MWI is enabled}(hj٬hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjլhMhj֬ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjլhMhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(hManaged pci_set_mwi().h]hManaged pci_set_mwi().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(h **Return**h]j&)}(hj"h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(h@An appropriate -ERRNO error value on error, or zero for success.h]h@An appropriate -ERRNO error value on error, or zero for success.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_intx (C function) c.pcim_intxhNtauh1hhhhhhNhNubh)}(hhh](h)}(h0int pcim_intx (struct pci_dev *pdev, int enable)h]h)}(h/int pcim_intx(struct pci_dev *pdev, int enable)h](h)}(hinth]hint}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjchhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM<ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjchhhjuhM<ubj-)}(h pcim_intxh]j3)}(h pcim_intxh]h pcim_intx}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjchhhjuhM<ubjN)}(h"(struct pci_dev *pdev, int enable)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj­hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjĭmodnameN classnameNjj)}j]j)}jjsb c.pcim_intxasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(h int enableh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(henableh]henable}(hj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjchhhjuhM<ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj_hhhjuhM<ubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjuhM<hj\hhubj)}(hhh]j)}(hmanaged pci_intx()h]hmanaged pci_intx()}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM<hjYhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1hhhhhhNhNubj)}(hX!**Parameters** ``struct pci_dev *pdev`` the PCI device to operate on ``int enable`` boolean: whether to enable or disable PCI INTx **Return** 0 on success, -ENOMEM on error. **Description** Enable/disable PCI INTx for device **pdev**. Restore the original state on driver detach.h](j)}(h**Parameters**h]j&)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM@hjxubj<)}(hhh](jA)}(h6``struct pci_dev *pdev`` the PCI device to operate on h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjh]hstruct pci_dev *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM=hjubjc)}(hhh]j)}(hthe PCI device to operate onh]hthe PCI device to operate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM=hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj3hM=hjubjA)}(h>``int enable`` boolean: whether to enable or disable PCI INTx h](jG)}(h``int enable``h]jM)}(hj֮h]h int enable}(hjخhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjԮubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM>hjЮubjc)}(hhh]j)}(h.boolean: whether to enable or disable PCI INTxh]h.boolean: whether to enable or disable PCI INTx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM>hjubah}(h]h ]h"]h$]h&]uh1jbhjЮubeh}(h]h ]h"]h$]h&]uh1j@hjhM>hjubeh}(h]h ]h"]h$]h&]uh1j;hjxubj)}(h **Return**h]j&)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM@hjxubj)}(h0 on success, -ENOMEM on error.h]h0 on success, -ENOMEM on error.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM@hjxubj)}(h**Description**h]j&)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj6ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMBhjxubj)}(hYEnable/disable PCI INTx for device **pdev**. Restore the original state on driver detach.h](h#Enable/disable PCI INTx for device }(hjNhhhNhNubj&)}(h**pdev**h]hpdev}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjNubh.. Restore the original state on driver detach.}(hjNhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMAhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_enable_device (C function)c.pcim_enable_devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(h-int pcim_enable_device (struct pci_dev *pdev)h]h)}(h,int pcim_enable_device(struct pci_dev *pdev)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMjubj-)}(hpcim_enable_deviceh]j3)}(hpcim_enable_deviceh]hpcim_enable_device}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMjubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj̯hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjȯubj)}(h h]h }(hjٯhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjȯubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pcim_enable_deviceasbuh1hhjȯubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjȯubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȯubj3)}(hpdevh]hpdev}(hj%hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjȯubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjįubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMjubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMjubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMjhjhhubj)}(hhh]j)}(hManaged pci_enable_device()h]hManaged pci_enable_device()}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMjhjLhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` PCI device to be initialized **Return** 0 on success, negative error code on failure. **Description** Managed pci_enable_device(). Device will automatically be disabled on driver detach.h](j)}(h**Parameters**h]j&)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjoubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMnhjkubj<)}(hhh]jA)}(h6``struct pci_dev *pdev`` PCI device to be initialized h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjh]hstruct pci_dev *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMkhjubjc)}(hhh]j)}(hPCI device to be initializedh]hPCI device to be initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMkhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMkhjubah}(h]h ]h"]h$]h&]uh1j;hjkubj)}(h **Return**h]j&)}(hj˰h]hReturn}(hjͰhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjɰubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMmhjkubj)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMmhjkubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMohjkubj)}(hTManaged pci_enable_device(). Device will automatically be disabled on driver detach.h]hTManaged pci_enable_device(). Device will automatically be disabled on driver detach.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMnhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_pin_device (C function)c.pcim_pin_devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(h+void pcim_pin_device (struct pci_dev *pdev)h]h)}(h*void pcim_pin_device(struct pci_dev *pdev)h](h)}(hvoidh]hvoid}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3hhhjEhMubj-)}(hpcim_pin_deviceh]j3)}(hpcim_pin_deviceh]hpcim_pin_device}(hjXhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjTubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj3hhhjEhMubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjthhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjZsbc.pcim_pin_deviceasbuh1hhjpubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj3)}(hpdevh]hpdev}(hjͱhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjlubah}(h]h ]h"]h$]h&]jKjLuh1jMhj3hhhjEhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj/hhhjEhMubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhjEhMhj,hhubj)}(hhh]j)}(hPin managed PCI deviceh]hPin managed PCI device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` PCI device to pin **Description** Pin managed PCI device **pdev**. Pinned device won't be disabled on driver detach. **pdev** must have been enabled with pcim_enable_device().h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj<)}(hhh]jA)}(h+``struct pci_dev *pdev`` PCI device to pin h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj8h]hstruct pci_dev *pdev}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj2ubjc)}(hhh]j)}(hPCI device to pinh]hPCI device to pin}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jbhj2ubeh}(h]h ]h"]h$]h&]uh1j@hjMhMhj/ubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjqubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(hPin managed PCI device **pdev**. Pinned device won't be disabled on driver detach. **pdev** must have been enabled with pcim_enable_device().h](hPin managed PCI device }(hjhhhNhNubj&)}(h**pdev**h]hpdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh6. Pinned device won’t be disabled on driver detach. }(hjhhhNhNubj&)}(h**pdev**h]hpdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh2 must have been enabled with pcim_enable_device().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_iomap_table (C function)c.pcim_iomap_tablehNtauh1hhhhhhNhNubh)}(hhh](h)}(h>void __iomem * const * pcim_iomap_table (struct pci_dev *pdev)h]h)}(h;void __iomem *const *pcim_iomap_table(struct pci_dev *pdev)h](h)}(hvoidh]hvoid}(hjܲhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjزhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjزhhhjhMubh__iomem}(hjزhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjزhhhjhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjزhhhjhMubjZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjزhhhjhMubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjزhhhjhMubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjزhhhjhMubj-)}(hpcim_iomap_tableh]j3)}(hpcim_iomap_tableh]hpcim_iomap_table}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjزhhhjhMubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj`hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj\ubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjFsbc.pcim_iomap_tableasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj3)}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjXubah}(h]h ]h"]h$]h&]jKjLuh1jMhjزhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjԲhhhjhMubah}(h]jϲah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjѲhhubj)}(hhh]j)}(h*access iomap allocation table (DEPRECATED)h]h*access iomap allocation table (DEPRECATED)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjѲhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device to access iomap table for **Return** Const pointer to array of __iomem pointers on success, NULL on failure. **Description** Access iomap allocation table for **dev**. If iomap table doesn't exist and **pdev** is managed, it will be allocated. All iomaps recorded in the iomap table are automatically unmapped on driver detach. This function might sleep when the table is first allocated but can be safely called without context and guaranteed to succeed once allocated. This function is DEPRECATED. Do not use it in new code. Instead, obtain a mapping's address directly from one of the pcim_* mapping functions. For **example** void __iomem \*mappy = pcim_iomap(pdev, bar, length);h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj<)}(hhh]jA)}(h>``struct pci_dev *pdev`` PCI device to access iomap table for h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj$h]hstruct pci_dev *pdev}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubjc)}(hhh]j)}(h$PCI device to access iomap table forh]h$PCI device to access iomap table for}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj9hMhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h **Return**h]j&)}(hj_h]hReturn}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj]ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(hGConst pointer to array of __iomem pointers on success, NULL on failure.h]hGConst pointer to array of __iomem pointers on success, NULL on failure.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(hAccess iomap allocation table for **dev**. If iomap table doesn't exist and **pdev** is managed, it will be allocated. All iomaps recorded in the iomap table are automatically unmapped on driver detach.h](h"Access iomap allocation table for }(hjhhhNhNubj&)}(h**dev**h]hdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh&. If iomap table doesn’t exist and }(hjhhhNhNubj&)}(h**pdev**h]hpdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubhw is managed, it will be allocated. All iomaps recorded in the iomap table are automatically unmapped on driver detach.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(hThis function might sleep when the table is first allocated but can be safely called without context and guaranteed to succeed once allocated.h]hThis function might sleep when the table is first allocated but can be safely called without context and guaranteed to succeed once allocated.}(hjϴhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(hThis function is DEPRECATED. Do not use it in new code. Instead, obtain a mapping's address directly from one of the pcim_* mapping functions. Forh]hThis function is DEPRECATED. Do not use it in new code. Instead, obtain a mapping’s address directly from one of the pcim_* mapping functions. For}(hj޴hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(h **example**h]j&)}(hjh]hexample}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(h5void __iomem \*mappy = pcim_iomap(pdev, bar, length);h]h5void __iomem *mappy = pcim_iomap(pdev, bar, length);}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_iomap (C function) c.pcim_iomaphNtauh1hhhhhhNhNubh)}(hhh](h)}(hOvoid __iomem * pcim_iomap (struct pci_dev *pdev, int bar, unsigned long maxlen)h]h)}(hMvoid __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen)h](h)}(hvoidh]hvoid}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhjBhMubh__iomem}(hj0hhhNhNubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0hhhjBhMubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhjBhMubj-)}(h pcim_iomaph]j3)}(h pcim_iomaph]h pcim_iomap}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj0hhhjBhMubjN)}(h5(struct pci_dev *pdev, int bar, unsigned long maxlen)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjvsb c.pcim_iomapasbuh1hhjubj)}(h h]h }(hjεhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjܵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hint barh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hbarh]hbar}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned long maxlenh](h)}(hunsignedh]hunsigned}(hj7hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hlongh]hlong}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj3ubj)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj3)}(hmaxlenh]hmaxlen}(hjohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj3ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj0hhhjBhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj,hhhjBhMubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhjBhMhj)hhubj)}(hhh]j)}(hManaged pcim_iomap()h]hManaged pcim_iomap()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj)hhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX-**Parameters** ``struct pci_dev *pdev`` PCI device to iomap for ``int bar`` BAR to iomap ``unsigned long maxlen`` Maximum length of iomap **Return** __iomem pointer on success, NULL on failure. **Description** Managed pci_iomap(). Map is automatically unmapped on driver detach. If desired, unmap manually only with pcim_iounmap(). This SHOULD only be used once per BAR. **NOTE** Contrary to the other pcim_* functions, this function does not return an IOMEM_ERR_PTR() on failure, but a simple NULL. This is done for backwards compatibility.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjubj<)}(hhh](jA)}(h1``struct pci_dev *pdev`` PCI device to iomap for h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjڶh]hstruct pci_dev *pdev}(hjܶhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjضubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjԶubjc)}(hhh]j)}(hPCI device to iomap forh]hPCI device to iomap for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjԶubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjѶubjA)}(h``int bar`` BAR to iomap h](jG)}(h ``int bar``h]jM)}(hjh]hint bar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj ubjc)}(hhh]j)}(h BAR to iomaph]h BAR to iomap}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hMhj)ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj(hMhjѶubjA)}(h1``unsigned long maxlen`` Maximum length of iomap h](jG)}(h``unsigned long maxlen``h]jM)}(hjLh]hunsigned long maxlen}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjFubjc)}(hhh]j)}(hMaximum length of iomaph]hMaximum length of iomap}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahM hjbubah}(h]h ]h"]h$]h&]uh1jbhjFubeh}(h]h ]h"]h$]h&]uh1j@hjahM hjѶubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h **Return**h]j&)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjubj)}(h,__iomem pointer on success, NULL on failure.h]h,__iomem pointer on success, NULL on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjubj)}(hyManaged pci_iomap(). Map is automatically unmapped on driver detach. If desired, unmap manually only with pcim_iounmap().h]hyManaged pci_iomap(). Map is automatically unmapped on driver detach. If desired, unmap manually only with pcim_iounmap().}(hjķhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjubj)}(h&This SHOULD only be used once per BAR.h]h&This SHOULD only be used once per BAR.}(hjӷhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(h**NOTE**h]j&)}(hjh]hNOTE}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(hContrary to the other pcim_* functions, this function does not return an IOMEM_ERR_PTR() on failure, but a simple NULL. This is done for backwards compatibility.h]hContrary to the other pcim_* functions, this function does not return an IOMEM_ERR_PTR() on failure, but a simple NULL. This is done for backwards compatibility.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_iounmap (C function)c.pcim_iounmaphNtauh1hhhhhhNhNubh)}(hhh](h)}(hhhubj)}(hhh]j)}(hRequest and iomap a PCI BARh]hRequest and iomap a PCI BAR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMRhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhMRubeh}(h]h ](jfunctioneh"]h$]h&]jjjjһjjһjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device to map IO resources for ``int bar`` Index of a BAR to map ``const char *name`` Name of the driver requesting the resource **Return** __iomem pointer on success, an IOMEM_ERR_PTR on failure. **Description** Mapping and region will get automatically released on driver detach. If desired, release manually only with pcim_iounmap_region().h](j)}(h**Parameters**h]j&)}(hjܻh]h Parameters}(hj޻hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjڻubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMVhjֻubj<)}(hhh](jA)}(h<``struct pci_dev *pdev`` PCI device to map IO resources for h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjh]hstruct pci_dev *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMShjubjc)}(hhh]j)}(h"PCI device to map IO resources forh]h"PCI device to map IO resources for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMShjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMShjubjA)}(h"``int bar`` Index of a BAR to map h](jG)}(h ``int bar``h]jM)}(hj4h]hint bar}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMThj.ubjc)}(hhh]j)}(hIndex of a BAR to maph]hIndex of a BAR to map}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMThjJubah}(h]h ]h"]h$]h&]uh1jbhj.ubeh}(h]h ]h"]h$]h&]uh1j@hjIhMThjubjA)}(h@``const char *name`` Name of the driver requesting the resource h](jG)}(h``const char *name``h]jM)}(hjmh]hconst char *name}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMUhjgubjc)}(hhh]j)}(h*Name of the driver requesting the resourceh]h*Name of the driver requesting the resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMUhjubah}(h]h ]h"]h$]h&]uh1jbhjgubeh}(h]h ]h"]h$]h&]uh1j@hjhMUhjubeh}(h]h ]h"]h$]h&]uh1j;hjֻubj)}(h **Return**h]j&)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMWhjֻubj)}(h8__iomem pointer on success, an IOMEM_ERR_PTR on failure.h]h8__iomem pointer on success, an IOMEM_ERR_PTR on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMWhjֻubj)}(h**Description**h]j&)}(hjϼh]h Description}(hjѼhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjͼubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMYhjֻubj)}(hMapping and region will get automatically released on driver detach. If desired, release manually only with pcim_iounmap_region().h]hMapping and region will get automatically released on driver detach. If desired, release manually only with pcim_iounmap_region().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMXhjֻubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pcim_iounmap_region (C function)c.pcim_iounmap_regionhNtauh1hhhhhhNhNubh)}(hhh](h)}(h8void pcim_iounmap_region (struct pci_dev *pdev, int bar)h]h)}(h7void pcim_iounmap_region(struct pci_dev *pdev, int bar)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj"hMubj-)}(hpcim_iounmap_regionh]j3)}(hpcim_iounmap_regionh]hpcim_iounmap_region}(hj5hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj"hMubjN)}(h(struct pci_dev *pdev, int bar)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjQhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjlubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjqmodnameN classnameNjj)}j]j)}jj7sbc.pcim_iounmap_regionasbuh1hhjMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj3)}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjMubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjIubjT)}(hint barh](h)}(hinth]hint}(hjýhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjѽhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hbarh]hbar}(hj߽hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjIubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj"hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj hhhj"hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj"hMhj hhubj)}(hhh]j)}(hUnmap and release a PCI BARh]hUnmap and release a PCI BAR}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` PCI device to operate on ``int bar`` Index of BAR to unmap and release **Description** Unmap a BAR and release its region manually. Only pass BARs that were previously mapped by pcim_iomap_region().h](j)}(h**Parameters**h]j&)}(hj+h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj)ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj%ubj<)}(hhh](jA)}(h2``struct pci_dev *pdev`` PCI device to operate on h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjJh]hstruct pci_dev *pdev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjDubjc)}(hhh]j)}(hPCI device to operate onh]hPCI device to operate on}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1jbhjDubeh}(h]h ]h"]h$]h&]uh1j@hj_hMhjAubjA)}(h.``int bar`` Index of BAR to unmap and release h](jG)}(h ``int bar``h]jM)}(hjh]hint bar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj}ubjc)}(hhh]j)}(h!Index of BAR to unmap and releaseh]h!Index of BAR to unmap and release}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhj}ubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjAubeh}(h]h ]h"]h$]h&]uh1j;hj%ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj%ubj)}(hoUnmap a BAR and release its region manually. Only pass BARs that were previously mapped by pcim_iomap_region().h]hoUnmap a BAR and release its region manually. Only pass BARs that were previously mapped by pcim_iomap_region().}(hjԾhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_iomap_regions (C function)c.pcim_iomap_regionshNtauh1hhhhhhNhNubh)}(hhh](h)}(hIint pcim_iomap_regions (struct pci_dev *pdev, int mask, const char *name)h]h)}(hHint pcim_iomap_regions(struct pci_dev *pdev, int mask, const char *name)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(hpcim_iomap_regionsh]j3)}(hpcim_iomap_regionsh]hpcim_iomap_regions}(hj$hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h2(struct pci_dev *pdev, int mask, const char *name)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj@hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj^hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`modnameN classnameNjj)}j]j)}jj&sbc.pcim_iomap_regionsasbuh1hhj<ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj3)}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj<ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj8ubjT)}(hint maskh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hmaskh]hmask}(hjοhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj8ubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hnameh]hname}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj8ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h'Request and iomap PCI BARs (DEPRECATED)h]h'Request and iomap PCI BARs (DEPRECATED)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device to map IO resources for ``int mask`` Mask of BARs to request and iomap ``const char *name`` Name of the driver requesting the resources **Return** 0 on success, negative error code on failure. **Description** Request and iomap regions specified by **mask**. This function is DEPRECATED. Do not use it in new code. Use pcim_iomap_region() instead.h](j)}(h**Parameters**h]j&)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjuubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjqubj<)}(hhh](jA)}(h<``struct pci_dev *pdev`` PCI device to map IO resources for h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjh]hstruct pci_dev *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubjc)}(hhh]j)}(h"PCI device to map IO resources forh]h"PCI device to map IO resources for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h/``int mask`` Mask of BARs to request and iomap h](jG)}(h ``int mask``h]jM)}(hjh]hint mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubjc)}(hhh]j)}(h!Mask of BARs to request and iomaph]h!Mask of BARs to request and iomap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(hA``const char *name`` Name of the driver requesting the resources h](jG)}(h``const char *name``h]jM)}(hjh]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubjc)}(hhh]j)}(h+Name of the driver requesting the resourcesh]h+Name of the driver requesting the resources}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubeh}(h]h ]h"]h$]h&]uh1j;hjqubj)}(h **Return**h]j&)}(hjCh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjAubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjqubj)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjqubj)}(h**Description**h]j&)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjhubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjqubj)}(h0Request and iomap regions specified by **mask**.h](h'Request and iomap regions specified by }(hjhhhNhNubj&)}(h**mask**h]hmask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjqubj)}(hXThis function is DEPRECATED. Do not use it in new code. Use pcim_iomap_region() instead.h]hXThis function is DEPRECATED. Do not use it in new code. Use pcim_iomap_region() instead.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pcim_request_region (C function)c.pcim_request_regionhNtauh1hhhhhhNhNubh)}(hhh](h)}(hIint pcim_request_region (struct pci_dev *pdev, int bar, const char *name)h]h)}(hHint pcim_request_region(struct pci_dev *pdev, int bar, const char *name)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(hpcim_request_regionh]j3)}(hpcim_request_regionh]hpcim_request_region}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h1(struct pci_dev *pdev, int bar, const char *name)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-modnameN classnameNjj)}j]j)}jjsbc.pcim_request_regionasbuh1hhj ubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj3)}(hpdevh]hpdev}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hint barh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj3)}(hbarh]hbar}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hRequest a PCI BARh]hRequest a PCI BAR}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device to request region for ``int bar`` Index of BAR to request ``const char *name`` Name of the driver requesting the resource **Return** 0 on success, a negative error code on failure. **Description** Request region specified by **bar**. The region will automatically be released on driver detach. If desired, release manually only with pcim_release_region().h](j)}(h**Parameters**h]j&)}(hjDh]h Parameters}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj>ubj<)}(hhh](jA)}(h:``struct pci_dev *pdev`` PCI device to request region for h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjch]hstruct pci_dev *pdev}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjaubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj]ubjc)}(hhh]j)}(h PCI device to request region forh]h PCI device to request region for}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jbhj]ubeh}(h]h ]h"]h$]h&]uh1j@hjxhMhjZubjA)}(h$``int bar`` Index of BAR to request h](jG)}(h ``int bar``h]jM)}(hjh]hint bar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubjc)}(hhh]j)}(hIndex of BAR to requesth]hIndex of BAR to request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjZubjA)}(h@``const char *name`` Name of the driver requesting the resource h](jG)}(h``const char *name``h]jM)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubjc)}(hhh]j)}(h*Name of the driver requesting the resourceh]h*Name of the driver requesting the resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjZubeh}(h]h ]h"]h$]h&]uh1j;hj>ubj)}(h **Return**h]j&)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj>ubj)}(h/0 on success, a negative error code on failure.h]h/0 on success, a negative error code on failure.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj>ubj)}(h**Description**h]j&)}(hj7h]h Description}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj>ubj)}(h$Request region specified by **bar**.h](hRequest region specified by }(hjMhhhNhNubj&)}(h**bar**h]hbar}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjMubh.}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj>ubj)}(hyThe region will automatically be released on driver detach. If desired, release manually only with pcim_release_region().h]hyThe region will automatically be released on driver detach. If desired, release manually only with pcim_release_region().}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،%pcim_request_all_regions (C function)c.pcim_request_all_regionshNtauh1hhhhhhNhNubh)}(hhh](h)}(hEint pcim_request_all_regions (struct pci_dev *pdev, const char *name)h]h)}(hDint pcim_request_all_regions(struct pci_dev *pdev, const char *name)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(hpcim_request_all_regionsh]j3)}(hpcim_request_all_regionsh]hpcim_request_all_regions}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h((struct pci_dev *pdev, const char *name)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pcim_request_all_regionsasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hpdevh]hpdev}(hj3hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjHubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hcharh]hchar}(hjghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj3)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjHubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hRequest all regionsh]hRequest all regions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device to map IO resources for ``const char *name`` name of the driver requesting the resources **Return** 0 on success, negative error code on failure. **Description** Requested regions will automatically be released at driver detach. If desired, release individual regions with pcim_release_region() or all of them at once with pcim_release_all_regions().h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj<)}(hhh](jA)}(h<``struct pci_dev *pdev`` PCI device to map IO resources for h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjh]hstruct pci_dev *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubjc)}(hhh]j)}(h"PCI device to map IO resources forh]h"PCI device to map IO resources for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(hA``const char *name`` name of the driver requesting the resources h](jG)}(h``const char *name``h]jM)}(hj4h]hconst char *name}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj.ubjc)}(hhh]j)}(h+name of the driver requesting the resourcesh]h+name of the driver requesting the resources}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jbhj.ubeh}(h]h ]h"]h$]h&]uh1j@hjIhMhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h **Return**h]j&)}(hjoh]hReturn}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjmubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(h-0 on success, negative error code on failure.h]h-0 on success, negative error code on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubj)}(hRequested regions will automatically be released at driver detach. If desired, release individual regions with pcim_release_region() or all of them at once with pcim_release_all_regions().h]hRequested regions will automatically be released at driver detach. If desired, release individual regions with pcim_release_region() or all of them at once with pcim_release_all_regions().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_iomap_range (C function)c.pcim_iomap_rangehNtauh1hhhhhhNhNubh)}(hhh](h)}(hhvoid __iomem * pcim_iomap_range (struct pci_dev *pdev, int bar, unsigned long offset, unsigned long len)h]h)}(hfvoid __iomem *pcim_iomap_range(struct pci_dev *pdev, int bar, unsigned long offset, unsigned long len)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM1ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM1ubh__iomem}(hjhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM1ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM1ubj-)}(hpcim_iomap_rangeh]j3)}(hpcim_iomap_rangeh]hpcim_iomap_range}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhM1ubjN)}(hH(struct pci_dev *pdev, int bar, unsigned long offset, unsigned long len)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj7hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj3ubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjUhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWmodnameN classnameNjj)}j]j)}jjsbc.pcim_iomap_rangeasbuh1hhj3ubj)}(h h]h }(hjuhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj3)}(hpdevh]hpdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj3ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj/ubjT)}(hint barh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hbarh]hbar}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj/ubjT)}(hunsigned long offseth](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj/ubjT)}(hunsigned long lenh](h)}(hunsignedh]hunsigned}(hj/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubh)}(hlongh]hlong}(hjKhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj+ubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+ubj3)}(hlenh]hlen}(hjghhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj+ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj/ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhM1ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhM1ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM1hjhhubj)}(hhh]j)}(h0Create a ranged __iomap mapping within a PCI BARh]h0Create a ranged __iomap mapping within a PCI BAR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM1hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM1ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device to map IO resources for ``int bar`` Index of the BAR ``unsigned long offset`` Offset from the begin of the BAR ``unsigned long len`` Length in bytes for the mapping **Return** __iomem pointer on success, an IOMEM_ERR_PTR on failure. **Description** Creates a new IO-Mapping within the specified **bar**, ranging from **offset** to **offset** + **len**. The mapping will automatically get unmapped on driver detach. If desired, release manually only with pcim_iounmap().h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM5hjubj<)}(hhh](jA)}(h<``struct pci_dev *pdev`` PCI device to map IO resources for h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjh]hstruct pci_dev *pdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM2hjubjc)}(hhh]j)}(h"PCI device to map IO resources forh]h"PCI device to map IO resources for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM2hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhM2hjubjA)}(h``int bar`` Index of the BAR h](jG)}(h ``int bar``h]jM)}(hj h]hint bar}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM3hjubjc)}(hhh]j)}(hIndex of the BARh]hIndex of the BAR}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hM3hj!ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj hM3hjubjA)}(h:``unsigned long offset`` Offset from the begin of the BAR h](jG)}(h``unsigned long offset``h]jM)}(hjDh]hunsigned long offset}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM4hj>ubjc)}(hhh]j)}(h Offset from the begin of the BARh]h Offset from the begin of the BAR}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM4hjZubah}(h]h ]h"]h$]h&]uh1jbhj>ubeh}(h]h ]h"]h$]h&]uh1j@hjYhM4hjubjA)}(h6``unsigned long len`` Length in bytes for the mapping h](jG)}(h``unsigned long len``h]jM)}(hj}h]hunsigned long len}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj{ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM5hjwubjc)}(hhh]j)}(hLength in bytes for the mappingh]hLength in bytes for the mapping}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM5hjubah}(h]h ]h"]h$]h&]uh1jbhjwubeh}(h]h ]h"]h$]h&]uh1j@hjhM5hjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h **Return**h]j&)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM7hjubj)}(h8__iomem pointer on success, an IOMEM_ERR_PTR on failure.h]h8__iomem pointer on success, an IOMEM_ERR_PTR on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM7hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM9hjubj)}(hgCreates a new IO-Mapping within the specified **bar**, ranging from **offset** to **offset** + **len**.h](h.Creates a new IO-Mapping within the specified }(hjhhhNhNubj&)}(h**bar**h]hbar}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh, ranging from }(hjhhhNhNubj&)}(h **offset**h]hoffset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh to }(hjhhhNhNubj&)}(h **offset**h]hoffset}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh + }(hjhhhNhNubj&)}(h**len**h]hlen}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM8hjubj)}(htThe mapping will automatically get unmapped on driver detach. If desired, release manually only with pcim_iounmap().h]htThe mapping will automatically get unmapped on driver detach. If desired, release manually only with pcim_iounmap().}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_add_dynid (C function)c.pci_add_dynidhNtauh1hhhhhhNhNubh)}(hhh](h)}(hint pci_add_dynid (struct pci_driver *drv, unsigned int vendor, unsigned int device, unsigned int subvendor, unsigned int subdevice, unsigned int class, unsigned int class_mask, unsigned long driver_data)h]h)}(hint pci_add_dynid(struct pci_driver *drv, unsigned int vendor, unsigned int device, unsigned int subvendor, unsigned int subdevice, unsigned int class, unsigned int class_mask, unsigned long driver_data)h](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKJubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwhhhjhKJubj-)}(h pci_add_dynidh]j3)}(h pci_add_dynidh]h pci_add_dynid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjwhhhjhKJubjN)}(h(struct pci_driver *drv, unsigned int vendor, unsigned int device, unsigned int subvendor, unsigned int subdevice, unsigned int class, unsigned int class_mask, unsigned long driver_data)h](jT)}(hstruct pci_driver *drvh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h pci_driverh]h pci_driver}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pci_add_dynidasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int vendorh](h)}(hunsignedh]hunsigned}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hinth]hint}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj&ubj)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj3)}(hvendorh]hvendor}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int deviceh](h)}(hunsignedh]hunsigned}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjwubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj3)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjwubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int subvendorh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(h subvendorh]h subvendor}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int subdeviceh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj9hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(h subdeviceh]h subdevice}(hjUhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int classh](h)}(hunsignedh]hunsigned}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubj)}(h h]h }(hj|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj3)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int class_maskh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(h class_maskh]h class_mask}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned long driver_datah](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hlongh]hlong}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj3)}(h driver_datah]h driver_data}(hjHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjwhhhjhKJubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjshhhjhKJubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjhKJhjphhubj)}(hhh]j)}(h;add a new PCI device ID to this driver and re-probe devicesh]h;add a new PCI device ID to this driver and re-probe devices}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKJhjohhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhKJubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_driver *drv`` target pci driver ``unsigned int vendor`` PCI vendor ID ``unsigned int device`` PCI device ID ``unsigned int subvendor`` PCI subvendor ID ``unsigned int subdevice`` PCI subdevice ID ``unsigned int class`` PCI class ``unsigned int class_mask`` PCI class mask ``unsigned long driver_data`` private driver data **Description** Adds a new dynamic pci device ID to this driver and causes the driver to probe for all devices again. **drv** must have been registered prior to calling this function. **Context** Does GFP_KERNEL allocation. **Return** 0 on success, -errno on failure.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKNhjubj<)}(hhh](jA)}(h-``struct pci_driver *drv`` target pci driver h](jG)}(h``struct pci_driver *drv``h]jM)}(hjh]hstruct pci_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKKhjubjc)}(hhh]j)}(htarget pci driverh]htarget pci driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKKhjubjA)}(h&``unsigned int vendor`` PCI vendor ID h](jG)}(h``unsigned int vendor``h]jM)}(hjh]hunsigned int vendor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKLhjubjc)}(hhh]j)}(h PCI vendor IDh]h PCI vendor ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKLhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKLhjubjA)}(h&``unsigned int device`` PCI device ID h](jG)}(h``unsigned int device``h]jM)}(hj%h]hunsigned int device}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKMhjubjc)}(hhh]j)}(h PCI device IDh]h PCI device ID}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:hKMhj;ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj:hKMhjubjA)}(h,``unsigned int subvendor`` PCI subvendor ID h](jG)}(h``unsigned int subvendor``h]jM)}(hj^h]hunsigned int subvendor}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKNhjXubjc)}(hhh]j)}(hPCI subvendor IDh]hPCI subvendor ID}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshKNhjtubah}(h]h ]h"]h$]h&]uh1jbhjXubeh}(h]h ]h"]h$]h&]uh1j@hjshKNhjubjA)}(h,``unsigned int subdevice`` PCI subdevice ID h](jG)}(h``unsigned int subdevice``h]jM)}(hjh]hunsigned int subdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKOhjubjc)}(hhh]j)}(hPCI subdevice IDh]hPCI subdevice ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKOhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKOhjubjA)}(h!``unsigned int class`` PCI class h](jG)}(h``unsigned int class``h]jM)}(hjh]hunsigned int class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKPhjubjc)}(hhh]j)}(h PCI classh]h PCI class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKPhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKPhjubjA)}(h+``unsigned int class_mask`` PCI class mask h](jG)}(h``unsigned int class_mask``h]jM)}(hj h]hunsigned int class_mask}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKQhjubjc)}(hhh]j)}(hPCI class maskh]hPCI class mask}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKQhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKQhjubjA)}(h2``unsigned long driver_data`` private driver data h](jG)}(h``unsigned long driver_data``h]jM)}(hjBh]hunsigned long driver_data}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKRhj<ubjc)}(hhh]j)}(hprivate driver datah]hprivate driver data}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWhKRhjXubah}(h]h ]h"]h$]h&]uh1jbhj<ubeh}(h]h ]h"]h$]h&]uh1j@hjWhKRhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hj}h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj{ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKThjubj)}(hAdds a new dynamic pci device ID to this driver and causes the driver to probe for all devices again. **drv** must have been registered prior to calling this function.h](hgAdds a new dynamic pci device ID to this driver and causes the driver to probe for all devices again. }(hjhhhNhNubj&)}(h**drv**h]hdrv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh: must have been registered prior to calling this function.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKShjubj)}(h **Context**h]j&)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKWhjubj)}(hDoes GFP_KERNEL allocation.h]hDoes GFP_KERNEL allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKXhjubj)}(h **Return**h]j&)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKZhjubj)}(h 0 on success, -errno on failure.h]h 0 on success, -errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chK[hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_match_id (C function)c.pci_match_idhNtauh1hhhhhhNhNubh)}(hhh](h)}(h`const struct pci_device_id * pci_match_id (const struct pci_device_id *ids, struct pci_dev *dev)h]h)}(h^const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, struct pci_dev *dev)h](jZ)}(hjh]hconst}(hj"hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKubj)}(h h]h }(hj0hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj/hKubjZ)}(hj]h]hstruct}(hj>hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhj/hKubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj/hKubh)}(hhh]j3)}(h pci_device_idh]h pci_device_id}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjYubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j)}j pci_match_idsbc.pci_match_idasbuh1hhjhhhj/hKubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj/hKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj/hKubj-)}(h pci_match_idh]j3)}(hjzh]h pci_match_id}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj/hKubjN)}(h6(const struct pci_device_id *ids, struct pci_dev *dev)h](jT)}(hconst struct pci_device_id *idsh](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h pci_device_idh]h pci_device_id}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jxc.pci_match_idasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hidsh]hids}(hj)hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjBhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj>ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbmodnameN classnameNjj)}j]jxc.pci_match_idasbuh1hhj>ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj/hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj/hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj/hKhjhhubj)}(hhh]j)}(h0See if a PCI device matches a given pci_id tableh]h0See if a PCI device matches a given pci_id table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj/hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``const struct pci_device_id *ids`` array of PCI device ID structures to search in ``struct pci_dev *dev`` the PCI device structure to match against. **Description** Used by a driver to check whether a PCI device is in its list of supported devices. Returns the matching pci_device_id structure or ``NULL`` if there is no match. Deprecated; don't use this as it will not catch any dynamic IDs that a driver might want to check for.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKhjubj<)}(hhh](jA)}(hS``const struct pci_device_id *ids`` array of PCI device ID structures to search in h](jG)}(h#``const struct pci_device_id *ids``h]jM)}(hjh]hconst struct pci_device_id *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKhjubjc)}(hhh]j)}(h.array of PCI device ID structures to search inh]h.array of PCI device ID structures to search in}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(hC``struct pci_dev *dev`` the PCI device structure to match against. h](jG)}(h``struct pci_dev *dev``h]jM)}(hj=h]hstruct pci_dev *dev}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj;ubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKhj7ubjc)}(hhh]j)}(h*the PCI device structure to match against.h]h*the PCI device structure to match against.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRhKhjSubah}(h]h ]h"]h$]h&]uh1jbhj7ubeh}(h]h ]h"]h$]h&]uh1j@hjRhKhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjvubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKhjubj)}(hUsed by a driver to check whether a PCI device is in its list of supported devices. Returns the matching pci_device_id structure or ``NULL`` if there is no match.h](hUsed by a driver to check whether a PCI device is in its list of supported devices. Returns the matching pci_device_id structure or }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh if there is no match.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKhjubj)}(hfDeprecated; don't use this as it will not catch any dynamic IDs that a driver might want to check for.h]hhDeprecated; don’t use this as it will not catch any dynamic IDs that a driver might want to check for.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،"__pci_register_driver (C function)c.__pci_register_driverhNtauh1hhhhhhNhNubh)}(hhh](h)}(h^int __pci_register_driver (struct pci_driver *drv, struct module *owner, const char *mod_name)h]h)}(h]int __pci_register_driver(struct pci_driver *drv, struct module *owner, const char *mod_name)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(h__pci_register_driverh]j3)}(h__pci_register_driverh]h__pci_register_driver}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(hD(struct pci_driver *drv, struct module *owner, const char *mod_name)h](jT)}(hstruct pci_driver *drvh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h pci_driverh]h pci_driver}(hj9hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj;modnameN classnameNjj)}j]j)}jjsbc.__pci_register_driverasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdrvh]hdrv}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct module *ownerh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hmoduleh]hmodule}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jUc.__pci_register_driverasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hownerh]howner}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hconst char *mod_nameh](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hmod_nameh]hmod_name}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hregister a new pci driverh]hregister a new pci driver}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjhhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_driver *drv`` the driver structure to register ``struct module *owner`` owner module of drv ``const char *mod_name`` module name string **Description** Adds the driver structure to the list of registered drivers. Returns a negative value on error, otherwise 0. If no error occurred, the driver remains registered even if no device was claimed during registration.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjubj<)}(hhh](jA)}(h<``struct pci_driver *drv`` the driver structure to register h](jG)}(h``struct pci_driver *drv``h]jM)}(hjh]hstruct pci_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjubjc)}(hhh]j)}(h the driver structure to registerh]h the driver structure to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h-``struct module *owner`` owner module of drv h](jG)}(h``struct module *owner``h]jM)}(hjh]hstruct module *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjubjc)}(hhh]j)}(howner module of drvh]howner module of drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h,``const char *mod_name`` module name string h](jG)}(h``const char *mod_name``h]jM)}(hjh]hconst char *mod_name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjubjc)}(hhh]j)}(hmodule name stringh]hmodule name string}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj3hMhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjWubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjubj)}(hAdds the driver structure to the list of registered drivers. Returns a negative value on error, otherwise 0. If no error occurred, the driver remains registered even if no device was claimed during registration.h]hAdds the driver structure to the list of registered drivers. Returns a negative value on error, otherwise 0. If no error occurred, the driver remains registered even if no device was claimed during registration.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،"pci_unregister_driver (C function)c.pci_unregister_driverhNtauh1hhhhhhNhNubh)}(hhh](h)}(h3void pci_unregister_driver (struct pci_driver *drv)h]h)}(h2void pci_unregister_driver(struct pci_driver *drv)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(hpci_unregister_driverh]j3)}(hpci_unregister_driverh]hpci_unregister_driver}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h(struct pci_driver *drv)h]jT)}(hstruct pci_driver *drvh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h pci_driverh]h pci_driver}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pci_unregister_driverasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdrvh]hdrv}(hj4hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hunregister a pci driverh]hunregister a pci driver}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhj[hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhhhNhNubj)}(hX5**Parameters** ``struct pci_driver *drv`` the driver structure to unregister **Description** Deletes the driver structure from the list of registered PCI drivers, gives it a chance to clean up by calling its remove() function for each device it was responsible for, and marks those devices as driverless.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj~ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjzubj<)}(hhh]jA)}(h>``struct pci_driver *drv`` the driver structure to unregister h](jG)}(h``struct pci_driver *drv``h]jM)}(hjh]hstruct pci_driver *drv}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjubjc)}(hhh]j)}(h"the driver structure to unregisterh]h"the driver structure to unregister}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubah}(h]h ]h"]h$]h&]uh1j;hjzubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjzubj)}(hDeletes the driver structure from the list of registered PCI drivers, gives it a chance to clean up by calling its remove() function for each device it was responsible for, and marks those devices as driverless.h]hDeletes the driver structure from the list of registered PCI drivers, gives it a chance to clean up by calling its remove() function for each device it was responsible for, and marks those devices as driverless.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_dev_driver (C function)c.pci_dev_driverhNtauh1hhhhhhNhNubh)}(hhh](h)}(h>struct pci_driver * pci_dev_driver (const struct pci_dev *dev)h]h)}(hhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@modnameN classnameNjj)}j]j)}jpci_dev_driversbc.pci_dev_driverasbuh1hhjhhhj,hMubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj,hMubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hMubj-)}(hpci_dev_driverh]j3)}(hj\h]hpci_dev_driver}(hj~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj,hMubjN)}(h(const struct pci_dev *dev)h]jT)}(hconst struct pci_dev *devh](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jZc.pci_dev_driverasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj,hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj,hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj,hMhjhhubj)}(hhh]j)}(hget the pci_driver of a deviceh]hget the pci_driver of a device}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhhhNhNubj)}(h**Parameters** ``const struct pci_dev *dev`` the device to query **Description** Returns the appropriate pci_driver structure or ``NULL`` if there is no registered driver for the device.h](j)}(h**Parameters**h]j&)}(hjWh]h Parameters}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjUubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjQubj<)}(hhh]jA)}(h2``const struct pci_dev *dev`` the device to query h](jG)}(h``const struct pci_dev *dev``h]jM)}(hjvh]hconst struct pci_dev *dev}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjtubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjpubjc)}(hhh]j)}(hthe device to queryh]hthe device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjpubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjmubah}(h]h ]h"]h$]h&]uh1j;hjQubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjQubj)}(hiReturns the appropriate pci_driver structure or ``NULL`` if there is no registered driver for the device.h](h0Returns the appropriate pci_driver structure or }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh1 if there is no registered driver for the device.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_dev_get (C function) c.pci_dev_gethNtauh1hhhhhhNhNubh)}(hhh](h)}(h2struct pci_dev * pci_dev_get (struct pci_dev *dev)h]h)}(h0struct pci_dev *pci_dev_get(struct pci_dev *dev)h](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM*ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM*ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj'hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj)modnameN classnameNjj)}j]j)}j pci_dev_getsb c.pci_dev_getasbuh1hhjhhhjhM*ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM*ubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhM*ubj-)}(h pci_dev_geth]j3)}(hjEh]h pci_dev_get}(hjghhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjcubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhM*ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jC c.pci_dev_getasbuh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjzubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhM*ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhM*ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM*hjhhubj)}(hhh]j)}(h:increments the reference count of the pci device structureh]h:increments the reference count of the pci device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM*hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM*ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` the device being referenced **Description** Each live reference to a device should be refcounted. Drivers for PCI devices should normally record such references in their probe() methods, when they bind to a device, and release them by calling pci_dev_put(), in their disconnect() methods. A pointer to the device with the incremented reference counter is returned.h](j)}(h**Parameters**h]j&)}(hj%h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj#ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM.hjubj<)}(hhh]jA)}(h4``struct pci_dev *dev`` the device being referenced h](jG)}(h``struct pci_dev *dev``h]jM)}(hjDh]hstruct pci_dev *dev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM+hj>ubjc)}(hhh]j)}(hthe device being referencedh]hthe device being referenced}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhM+hjZubah}(h]h ]h"]h$]h&]uh1jbhj>ubeh}(h]h ]h"]h$]h&]uh1j@hjYhM+hj;ubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj}ubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM-hjubj)}(h5Each live reference to a device should be refcounted.h]h5Each live reference to a device should be refcounted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM,hjubj)}(hDrivers for PCI devices should normally record such references in their probe() methods, when they bind to a device, and release them by calling pci_dev_put(), in their disconnect() methods.h]hDrivers for PCI devices should normally record such references in their probe() methods, when they bind to a device, and release them by calling pci_dev_put(), in their disconnect() methods.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM.hjubj)}(hKA pointer to the device with the incremented reference counter is returned.h]hKA pointer to the device with the incremented reference counter is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_dev_put (C function) c.pci_dev_puthNtauh1hhhhhhNhNubh)}(hhh](h)}(h&void pci_dev_put (struct pci_dev *dev)h]h)}(h%void pci_dev_put(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM>ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM>ubj-)}(h pci_dev_puth]j3)}(h pci_dev_puth]h pci_dev_put}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhM>ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?modnameN classnameNjj)}j]j)}jjsb c.pci_dev_putasbuh1hhjubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjxhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhM>ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhM>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM>hjhhubj)}(hhh]j)}(h)release a use of the pci device structureh]h)release a use of the pci device structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *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 is freed.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMBhjubj<)}(hhh]jA)}(h8``struct pci_dev *dev`` device that's been disconnected h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM?hjubjc)}(hhh]j)}(hdevice that's been disconnectedh]h!device that’s been disconnected}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM?hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhM?hjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMAhjubj)}(hMust 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 is freed.h]hMust 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 is freed.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،+pci_stop_and_remove_bus_device (C function) c.pci_stop_and_remove_bus_devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(h9void pci_stop_and_remove_bus_device (struct pci_dev *dev)h]h)}(h8void pci_stop_and_remove_bus_device(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hjchhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:16: ./drivers/pci/remove.chKsubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhjqhKsubj-)}(hpci_stop_and_remove_bus_deviceh]j3)}(hpci_stop_and_remove_bus_deviceh]hpci_stop_and_remove_bus_device}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj_hhhjqhKsubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.pci_stop_and_remove_bus_deviceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhj_hhhjqhKsubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj[hhhjqhKsubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1hhjqhKshjXhhubj)}(hhh]j)}(h$remove a PCI device and any childrenh]h$remove a PCI device and any children}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:16: ./drivers/pci/remove.chKshj hhubah}(h]h ]h"]h$]h&]uh1jhjXhhhjqhKsubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` the device to remove **Description** Remove a PCI device from the device lists, informing the drivers that the device has been removed. We also remove any subordinate buses and children in a depth-first manner. For each device we remove, delete the device structure from the device lists, remove the /proc entry, and notify userspace (/sbin/hotplug).h](j)}(h**Parameters**h]j&)}(hjEh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjCubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:16: ./drivers/pci/remove.chKwhj?ubj<)}(hhh]jA)}(h-``struct pci_dev *dev`` the device to remove h](jG)}(h``struct pci_dev *dev``h]jM)}(hjdh]hstruct pci_dev *dev}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjbubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:16: ./drivers/pci/remove.chKthj^ubjc)}(hhh]j)}(hthe device to removeh]hthe device to remove}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyhKthjzubah}(h]h ]h"]h$]h&]uh1jbhj^ubeh}(h]h ]h"]h$]h&]uh1j@hjyhKthj[ubah}(h]h ]h"]h$]h&]uh1j;hj?ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:16: ./drivers/pci/remove.chKvhj?ubj)}(hRemove a PCI device from the device lists, informing the drivers that the device has been removed. We also remove any subordinate buses and children in a depth-first manner.h]hRemove a PCI device from the device lists, informing the drivers that the device has been removed. We also remove any subordinate buses and children in a depth-first manner.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:16: ./drivers/pci/remove.chKuhj?ubj)}(hFor each device we remove, delete the device structure from the device lists, remove the /proc entry, and notify userspace (/sbin/hotplug).h]hFor each device we remove, delete the device structure from the device lists, remove the /proc entry, and notify userspace (/sbin/hotplug).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:16: ./drivers/pci/remove.chKyhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_find_bus (C function)c.pci_find_bushNtauh1hhhhhhNhNubh)}(hhh](h)}(h5struct pci_bus * pci_find_bus (int domain, int busnr)h]h)}(h3struct pci_bus *pci_find_bus(int domain, int busnr)h](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}j pci_find_bussbc.pci_find_busasbuh1hhjhhhjhKubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj-)}(h pci_find_bush]j3)}(hj0h]h pci_find_bus}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjNubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKubjN)}(h(int domain, int busnr)h](jT)}(h int domainh](h)}(hinth]hint}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjiubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj3)}(hdomainh]hdomain}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjiubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjeubjT)}(h int busnrh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hbusnrh]hbusnr}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjeubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h1locate PCI bus from a given domain and bus numberh]h1locate PCI bus from a given domain and bus number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hXT**Parameters** ``int domain`` number of PCI domain to search ``int busnr`` number of desired PCI bus **Description** Given a PCI bus number and domain number, the desired PCI bus is located in the global list of PCI buses. If the bus is found, a pointer to its data structure is returned. If no bus is found, ``NULL`` is returned.h](j)}(h**Parameters**h]j&)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubj<)}(hhh](jA)}(h.``int domain`` number of PCI domain to search h](jG)}(h``int domain``h]jM)}(hj)h]h int domain}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhj#ubjc)}(hhh]j)}(hnumber of PCI domain to searchh]hnumber of PCI domain to search}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hKhj?ubah}(h]h ]h"]h$]h&]uh1jbhj#ubeh}(h]h ]h"]h$]h&]uh1j@hj>hKhj ubjA)}(h(``int busnr`` number of desired PCI bus h](jG)}(h ``int busnr``h]jM)}(hjbh]h int busnr}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhj\ubjc)}(hhh]j)}(hnumber of desired PCI bush]hnumber of desired PCI bus}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhKhjxubah}(h]h ]h"]h$]h&]uh1jbhj\ubeh}(h]h ]h"]h$]h&]uh1j@hjwhKhj ubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubj)}(hGiven a PCI bus number and domain number, the desired PCI bus is located in the global list of PCI buses. If the bus is found, a pointer to its data structure is returned. If no bus is found, ``NULL`` is returned.h](hGiven a PCI bus number and domain number, the desired PCI bus is located in the global list of PCI buses. If the bus is found, a pointer to its data structure is returned. If no bus is found, }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh is returned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_find_next_bus (C function)c.pci_find_next_bushNtauh1hhhhhhNhNubh)}(hhh](h)}(h?struct pci_bus * pci_find_next_bus (const struct pci_bus *from)h]h)}(h=struct pci_bus *pci_find_next_bus(const struct pci_bus *from)h](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_find_next_bussbc.pci_find_next_busasbuh1hhjhhhjhKubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubj-)}(hpci_find_next_bush]j3)}(hj1h]hpci_find_next_bus}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKubjN)}(h(const struct pci_bus *from)h]jT)}(hconst struct pci_bus *fromh](jZ)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjjubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubjZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j/c.pci_find_next_busasbuh1hhjjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj3)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjfubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h)begin or continue searching for a PCI bush]h)begin or continue searching for a PCI bus}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"jjjuh1hhhhhhNhNubj)}(hXL**Parameters** ``const struct pci_bus *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 the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list.h](j)}(h**Parameters**h]j&)}(hj,h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj*ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhj&ubj<)}(hhh]jA)}(hS``const struct pci_bus *from`` Previous PCI bus found, or ``NULL`` for new search. h](jG)}(h``const struct pci_bus *from``h]jM)}(hjKh]hconst struct pci_bus *from}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjEubjc)}(hhh]j)}(h3Previous PCI bus found, or ``NULL`` for new search.h](hPrevious PCI bus found, or }(hjdhhhNhNubjM)}(h``NULL``h]hNULL}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdubh for new search.}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjaubah}(h]h ]h"]h$]h&]uh1jbhjEubeh}(h]h ]h"]h$]h&]uh1j@hj`hKhjBubah}(h]h ]h"]h$]h&]uh1j;hj&ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhj&ubj)}(hIterates through the list of known PCI buses. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list.h](hTIterates through the list of known PCI buses. A new search is initiated by passing }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh as the }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh argument. Otherwise if }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh8, searches continue from next device on the global list.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhj&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_get_slot (C function)c.pci_get_slothNtauh1hhhhhhNhNubh)}(hhh](h)}(hGstruct pci_dev * pci_get_slot (struct pci_bus *bus, unsigned int devfn)h]h)}(hEstruct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn)h](jZ)}(hj]h]hstruct}(hj%hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj!hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhhj2hKubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjFmodnameN classnameNjj)}j]j)}j pci_get_slotsbc.pci_get_slotasbuh1hhj!hhhj2hKubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hhhj2hKubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hhhj2hKubj-)}(h pci_get_sloth]j3)}(hjbh]h pci_get_slot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj!hhhj2hKubjN)}(h)(struct pci_bus *bus, unsigned int devfn)h](jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j`c.pci_get_slotasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hbush]hbus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int devfnh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hinth]hint}(hj+hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj ubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj3)}(hdevfnh]hdevfn}(hjGhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj!hhhj2hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj2hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj2hKhjhhubj)}(hhh]j)}(h&locate PCI device for a given PCI sloth]h&locate PCI device for a given PCI slot}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjnhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj2hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hXl**Parameters** ``struct pci_bus *bus`` PCI bus on which desired PCI device resides ``unsigned int devfn`` encodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices. **Description** Given a PCI bus and slot/function number, the desired PCI device is located in the list of PCI devices. If the device is found, its reference count is increased and this function returns a pointer to its data structure. The caller must decrement the reference count by calling pci_dev_put(). If no device is found, ``NULL`` is returned.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubj<)}(hhh](jA)}(hD``struct pci_bus *bus`` PCI bus on which desired PCI device resides h](jG)}(h``struct pci_bus *bus``h]jM)}(hjh]hstruct pci_bus *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubjc)}(hhh]j)}(h+PCI bus on which desired PCI device residesh]h+PCI bus on which desired PCI device resides}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(h``unsigned int devfn`` encodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices. h](jG)}(h``unsigned int devfn``h]jM)}(hjh]hunsigned int devfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubjc)}(hhh]j)}(hencodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices.h]hencodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj%ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubj)}(hXQGiven a PCI bus and slot/function number, the desired PCI device is located in the list of PCI devices. If the device is found, its reference count is increased and this function returns a pointer to its data structure. The caller must decrement the reference count by calling pci_dev_put(). If no device is found, ``NULL`` is returned.h](hX<Given a PCI bus and slot/function number, the desired PCI device is located in the list of PCI devices. If the device is found, its reference count is increased and this function returns a pointer to its data structure. The caller must decrement the reference count by calling pci_dev_put(). If no device is found, }(hj=hhhNhNubjM)}(h``NULL``h]hNULL}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj=ubh is returned.}(hj=hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،(pci_get_domain_bus_and_slot (C function)c.pci_get_domain_bus_and_slothNtauh1hhhhhhNhNubh)}(hhh](h)}(h_struct pci_dev * pci_get_domain_bus_and_slot (int domain, unsigned int bus, unsigned int devfn)h]h)}(h]struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, unsigned int devfn)h](jZ)}(hj]h]hstruct}(hj~hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjzhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjhKubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_get_domain_bus_and_slotsbc.pci_get_domain_bus_and_slotasbuh1hhjzhhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhhjhKubj-)}(hpci_get_domain_bus_and_sloth]j3)}(hjh]hpci_get_domain_bus_and_slot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjzhhhjhKubjN)}(h2(int domain, unsigned int bus, unsigned int devfn)h](jT)}(h int domainh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hdomainh]hdomain}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int bush](h)}(hunsignedh]hunsigned}(hj-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubj)}(h h]h }(hj;hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubh)}(hinth]hint}(hjIhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj)ubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj)ubj3)}(hbush]hbus}(hjehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj)ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int devfnh](h)}(hunsignedh]hunsigned}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj3)}(hdevfnh]hdevfn}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjzhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjvhhhjhKubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjshhubj)}(hhh]j)}(hAlocate PCI device for a given PCI domain (segment), bus, and sloth]hAlocate PCI device for a given PCI domain (segment), bus, and slot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``int domain`` PCI domain/segment on which the PCI device resides. ``unsigned int bus`` PCI bus on which desired PCI device resides ``unsigned int devfn`` encodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices. **Description** Given a PCI domain, bus, and slot/function number, the desired PCI device is located in the list of PCI devices. If the device is found, its reference count is increased and this function returns a pointer to its data structure. The caller must decrement the reference count by calling pci_dev_put(). If no device is found, ``NULL`` is returned.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubj<)}(hhh](jA)}(hC``int domain`` PCI domain/segment on which the PCI device resides. h](jG)}(h``int domain``h]jM)}(hj!h]h int domain}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubjc)}(hhh]j)}(h3PCI domain/segment on which the PCI device resides.h]h3PCI domain/segment on which the PCI device resides.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj6hKhjubjA)}(hA``unsigned int bus`` PCI bus on which desired PCI device resides h](jG)}(h``unsigned int bus``h]jM)}(hjZh]hunsigned int bus}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjTubjc)}(hhh]j)}(h+PCI bus on which desired PCI device residesh]h+PCI bus on which desired PCI device resides}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohKhjpubah}(h]h ]h"]h$]h&]uh1jbhjTubeh}(h]h ]h"]h$]h&]uh1j@hjohKhjubjA)}(h``unsigned int devfn`` encodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices. h](jG)}(h``unsigned int devfn``h]jM)}(hjh]hunsigned int devfn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubjc)}(hhh]j)}(hencodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices.h]hencodes number of PCI slot in which the desired PCI device resides and the logical device number within that slot in case of multi-function devices.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubj)}(hX[Given a PCI domain, bus, and slot/function number, the desired PCI device is located in the list of PCI devices. If the device is found, its reference count is increased and this function returns a pointer to its data structure. The caller must decrement the reference count by calling pci_dev_put(). If no device is found, ``NULL`` is returned.h](hXFGiven a PCI domain, bus, and slot/function number, the desired PCI device is located in the list of PCI devices. If the device is found, its reference count is increased and this function returns a pointer to its data structure. The caller must decrement the reference count by calling pci_dev_put(). If no device is found, }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh is returned.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_get_subsys (C function)c.pci_get_subsyshNtauh1hhhhhhNhNubh)}(hhh](h)}(hstruct pci_dev * pci_get_subsys (unsigned int vendor, unsigned int device, unsigned int ss_vendor, unsigned int ss_device, struct pci_dev *from)h]h)}(hstruct pci_dev *pci_get_subsys(unsigned int vendor, unsigned int device, unsigned int ss_vendor, unsigned int ss_device, struct pci_dev *from)h](jZ)}(hj]h]hstruct}(hj&hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj"hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMIubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"hhhj3hMIubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjEhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjGmodnameN classnameNjj)}j]j)}jpci_get_subsyssbc.pci_get_subsysasbuh1hhj"hhhj3hMIubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"hhhj3hMIubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"hhhj3hMIubj-)}(hpci_get_subsysh]j3)}(hjch]hpci_get_subsys}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj"hhhj3hMIubjN)}(hp(unsigned int vendor, unsigned int device, unsigned int ss_vendor, unsigned int ss_device, struct pci_dev *from)h](jT)}(hunsigned int vendorh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hvendorh]hvendor}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int deviceh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hdeviceh]hdevice}(hj)hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int ss_vendorh](h)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubh)}(hinth]hint}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj>ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>ubj3)}(h ss_vendorh]h ss_vendor}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int ss_deviceh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(h ss_deviceh]h ss_device}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct pci_dev *fromh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jac.pci_get_subsysasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hfromh]hfrom}(hj;hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj"hhhj3hMIubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj3hMIubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj3hMIhjhhubj)}(hhh]j)}(hTbegin or continue searching for a PCI device by vendor/subvendor/device/subdevice idh]hTbegin or continue searching for a PCI device by vendor/subvendor/device/subdevice id}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMIhjbhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``unsigned int vendor`` PCI vendor id to match, or ``PCI_ANY_ID`` to match all vendor ids ``unsigned int device`` PCI device id to match, or ``PCI_ANY_ID`` to match all device ids ``unsigned int ss_vendor`` PCI subsystem vendor id to match, or ``PCI_ANY_ID`` to match all vendor ids ``unsigned int ss_device`` PCI subsystem device id to match, or ``PCI_ANY_ID`` to match all device ids ``struct pci_dev *from`` Previous PCI device found in search, or ``NULL`` for new search. **Description** Iterates through the list of known PCI devices. If a PCI device is found with a matching **vendor**, **device**, **ss_vendor** and **ss_device**, a pointer to its device structure is returned, and the reference count to the device is incremented. Otherwise, ``NULL`` is returned. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list. The reference count for **from** is always decremented if it is not ``NULL``.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMMhjubj<)}(hhh](jA)}(hZ``unsigned int vendor`` PCI vendor id to match, or ``PCI_ANY_ID`` to match all vendor ids h](jG)}(h``unsigned int vendor``h]jM)}(hjh]hunsigned int vendor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMJhjubjc)}(hhh]j)}(hAPCI vendor id to match, or ``PCI_ANY_ID`` to match all vendor idsh](hPCI vendor id to match, or }(hjhhhNhNubjM)}(h``PCI_ANY_ID``h]h PCI_ANY_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh to match all vendor ids}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMJhjubjA)}(hZ``unsigned int device`` PCI device id to match, or ``PCI_ANY_ID`` to match all device ids h](jG)}(h``unsigned int device``h]jM)}(hjh]hunsigned int device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMKhjubjc)}(hhh]j)}(hAPCI device id to match, or ``PCI_ANY_ID`` to match all device idsh](hPCI device id to match, or }(hj hhhNhNubjM)}(h``PCI_ANY_ID``h]h PCI_ANY_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubh to match all device ids}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMKhjubjA)}(hg``unsigned int ss_vendor`` PCI subsystem vendor id to match, or ``PCI_ANY_ID`` to match all vendor ids h](jG)}(h``unsigned int ss_vendor``h]jM)}(hj<h]hunsigned int ss_vendor}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMLhj6ubjc)}(hhh]j)}(hKPCI subsystem vendor id to match, or ``PCI_ANY_ID`` to match all vendor idsh](h%PCI subsystem vendor id to match, or }(hjUhhhNhNubjM)}(h``PCI_ANY_ID``h]h PCI_ANY_ID}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUubh to match all vendor ids}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjQhMLhjRubah}(h]h ]h"]h$]h&]uh1jbhj6ubeh}(h]h ]h"]h$]h&]uh1j@hjQhMLhjubjA)}(hg``unsigned int ss_device`` PCI subsystem device id to match, or ``PCI_ANY_ID`` to match all device ids h](jG)}(h``unsigned int ss_device``h]jM)}(hjh]hunsigned int ss_device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMMhjubjc)}(hhh]j)}(hKPCI subsystem device id to match, or ``PCI_ANY_ID`` to match all device idsh](h%PCI subsystem device id to match, or }(hjhhhNhNubjM)}(h``PCI_ANY_ID``h]h PCI_ANY_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh to match all device ids}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMMhjubjA)}(hZ``struct pci_dev *from`` Previous PCI device found in search, or ``NULL`` for new search. h](jG)}(h``struct pci_dev *from``h]jM)}(hjh]hstruct pci_dev *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMNhjubjc)}(hhh]j)}(h@Previous PCI device found in search, or ``NULL`` for new search.h](h(Previous PCI device found in search, or }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh for new search.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMNhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMNhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMPhjubj)}(hXIterates through the list of known PCI devices. If a PCI device is found with a matching **vendor**, **device**, **ss_vendor** and **ss_device**, a pointer to its device structure is returned, and the reference count to the device is incremented. Otherwise, ``NULL`` is returned. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list. The reference count for **from** is always decremented if it is not ``NULL``.h](hZIterates through the list of known PCI devices. If a PCI device is found with a matching }(hj5hhhNhNubj&)}(h **vendor**h]hvendor}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubh, }(hj5hhhNhNubj&)}(h **device**h]hdevice}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubh, }hj5sbj&)}(h **ss_vendor**h]h ss_vendor}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubh and }(hj5hhhNhNubj&)}(h **ss_device**h]h ss_device}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubhs, a pointer to its device structure is returned, and the reference count to the device is incremented. Otherwise, }(hj5hhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5ubh4 is returned. A new search is initiated by passing }(hj5hhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5ubh as the }(hj5hhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubh argument. Otherwise if }(hj5hhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubh is not }(hj5hhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5ubhQ, searches continue from next device on the global list. The reference count for }(hj5hhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubh$ is always decremented if it is not }(hj5hhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5ubh.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMOhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_get_device (C function)c.pci_get_devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(h`struct pci_dev * pci_get_device (unsigned int vendor, unsigned int device, struct pci_dev *from)h]h)}(h^struct pci_dev *pci_get_device(unsigned int vendor, unsigned int device, struct pci_dev *from)h](jZ)}(hj]h]hstruct}(hj*hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj&hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMbubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj7hMbubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjIhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjFubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjKmodnameN classnameNjj)}j]j)}jpci_get_devicesbc.pci_get_deviceasbuh1hhj&hhhj7hMbubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj7hMbubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj7hMbubj-)}(hpci_get_deviceh]j3)}(hjgh]hpci_get_device}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj&hhhj7hMbubjN)}(h@(unsigned int vendor, unsigned int device, struct pci_dev *from)h](jT)}(hunsigned int vendorh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hvendorh]hvendor}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int deviceh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hdeviceh]hdevice}(hj-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct pci_dev *fromh](jZ)}(hj]h]hstruct}(hjFhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjBubj)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]jec.pci_get_deviceasbuh1hhjBubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj3)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj&hhhj7hMbubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj"hhhj7hMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj7hMbhjhhubj)}(hhh]j)}(h@begin or continue searching for a PCI device by vendor/device idh]h@begin or continue searching for a PCI device by vendor/device id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj7hMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX(**Parameters** ``unsigned int vendor`` PCI vendor id to match, or ``PCI_ANY_ID`` to match all vendor ids ``unsigned int device`` PCI device id to match, or ``PCI_ANY_ID`` to match all device ids ``struct pci_dev *from`` Previous PCI device found in search, or ``NULL`` for new search. **Description** Iterates through the list of known PCI devices. If a PCI device is found with a matching **vendor** and **device**, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, ``NULL`` is returned. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list. The reference count for **from** is always decremented if it is not ``NULL``.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMfhjubj<)}(hhh](jA)}(hZ``unsigned int vendor`` PCI vendor id to match, or ``PCI_ANY_ID`` to match all vendor ids h](jG)}(h``unsigned int vendor``h]jM)}(hjh]hunsigned int vendor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMchjubjc)}(hhh]j)}(hAPCI vendor id to match, or ``PCI_ANY_ID`` to match all vendor idsh](hPCI vendor id to match, or }(hj!hhhNhNubjM)}(h``PCI_ANY_ID``h]h PCI_ANY_ID}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!ubh to match all vendor ids}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMchjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMchjubjA)}(hZ``unsigned int device`` PCI device id to match, or ``PCI_ANY_ID`` to match all device ids h](jG)}(h``unsigned int device``h]jM)}(hjSh]hunsigned int device}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMdhjMubjc)}(hhh]j)}(hAPCI device id to match, or ``PCI_ANY_ID`` to match all device idsh](hPCI device id to match, or }(hjlhhhNhNubjM)}(h``PCI_ANY_ID``h]h PCI_ANY_ID}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlubh to match all device ids}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhhMdhjiubah}(h]h ]h"]h$]h&]uh1jbhjMubeh}(h]h ]h"]h$]h&]uh1j@hjhhMdhjubjA)}(hZ``struct pci_dev *from`` Previous PCI device found in search, or ``NULL`` for new search. h](jG)}(h``struct pci_dev *from``h]jM)}(hjh]hstruct pci_dev *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMehjubjc)}(hhh]j)}(h@Previous PCI device found in search, or ``NULL`` for new search.h](h(Previous PCI device found in search, or }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh for new search.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMehjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMehjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMghjubj)}(hXIterates through the list of known PCI devices. If a PCI device is found with a matching **vendor** and **device**, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, ``NULL`` is returned. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list. The reference count for **from** is always decremented if it is not ``NULL``.h](hZIterates through the list of known PCI devices. If a PCI device is found with a matching }(hjhhhNhNubj&)}(h **vendor**h]hvendor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh and }(hjhhhNhNubj&)}(h **device**h]hdevice}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubhq, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh4 is returned. A new search is initiated by passing }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh as the }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh argument. Otherwise if }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubhR, searches continue from next device on the global list. The reference count for }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh$ is always decremented if it is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMfhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_get_class (C function)c.pci_get_classhNtauh1hhhhhhNhNubh)}(hhh](h)}(hIstruct pci_dev * pci_get_class (unsigned int class, struct pci_dev *from)h]h)}(hGstruct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from)h](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}j pci_get_classsbc.pci_get_classasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&E]uh1jhjhhhjhMubj-)}(h pci_get_classh]j3)}(hjh]h pci_get_class}(hj1hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj-ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h*(unsigned int class, struct pci_dev *from)h](jT)}(hunsigned int classh](h)}(hunsignedh]hunsigned}(hjLhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hinth]hint}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjHubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj3)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjHubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjDubjT)}(hstruct pci_dev *fromh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.pci_get_classasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjDubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h5begin or continue searching for a PCI device by classh]h5begin or continue searching for a PCI device by class}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj6jj6jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``unsigned int class`` search for a PCI device with this class designation ``struct pci_dev *from`` Previous PCI device found in search, or ``NULL`` for new search. **Description** Iterates through the list of known PCI devices. If a PCI device is found with a matching **class**, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, ``NULL`` is returned. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list. The reference count for **from** is always decremented if it is not ``NULL``.h](j)}(h**Parameters**h]j&)}(hj@h]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj>ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj:ubj<)}(hhh](jA)}(hK``unsigned int class`` search for a PCI device with this class designation h](jG)}(h``unsigned int class``h]jM)}(hj_h]hunsigned int class}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjYubjc)}(hhh]j)}(h3search for a PCI device with this class designationh]h3search for a PCI device with this class designation}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjthMhjuubah}(h]h ]h"]h$]h&]uh1jbhjYubeh}(h]h ]h"]h$]h&]uh1j@hjthMhjVubjA)}(hZ``struct pci_dev *from`` Previous PCI device found in search, or ``NULL`` for new search. h](jG)}(h``struct pci_dev *from``h]jM)}(hjh]hstruct pci_dev *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjubjc)}(hhh]j)}(h@Previous PCI device found in search, or ``NULL`` for new search.h](h(Previous PCI device found in search, or }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh for new search.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjVubeh}(h]h ]h"]h$]h&]uh1j;hj:ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj:ubj)}(hXIterates through the list of known PCI devices. If a PCI device is found with a matching **class**, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, ``NULL`` is returned. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list. The reference count for **from** is always decremented if it is not ``NULL``.h](hZIterates through the list of known PCI devices. If a PCI device is found with a matching }(hjhhhNhNubj&)}(h **class**h]hclass}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubhq, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh3 is returned. A new search is initiated by passing }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh as the }(hjhhhNhNubj&)}(h**from**h]hfrom}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh argument. Otherwise if }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubhR, searches continue from next device on the global list. The reference count for }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh$ is always decremented if it is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj:ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_get_base_class (C function)c.pci_get_base_classhNtauh1hhhhhhNhNubh)}(hhh](h)}(hNstruct pci_dev * pci_get_base_class (unsigned int class, struct pci_dev *from)h]h)}(hLstruct pci_dev *pci_get_base_class(unsigned int class, struct pci_dev *from)h](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_get_base_classsbc.pci_get_base_classasbuh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj-)}(hpci_get_base_classh]j3)}(hjh]hpci_get_base_class}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h*(unsigned int class, struct pci_dev *from)h](jT)}(hunsigned int classh](h)}(hunsignedh]hunsigned}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hinth]hint}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj0ubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj3)}(hclassh]hclass}(hjlhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,ubjT)}(hstruct pci_dev *fromh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_get_base_classasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hGsearching for a PCI device by matching against the base class code onlyh]hGsearching for a PCI device by matching against the base class code only}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``unsigned int class`` search for a PCI device with this base class code ``struct pci_dev *from`` Previous PCI device found in search, or ``NULL`` for new search. **Description** Iterate through the list of known PCI devices. If a PCI device is found with a matching base class code, the reference count to the device is incremented. See pci_match_one_id() to figure out how this works. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list. The reference count for **from** is always decremented if it is not ``NULL``. **Return** A pointer to a matched PCI device, ``NULL`` Otherwise.h](j)}(h**Parameters**h]j&)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj"ubj<)}(hhh](jA)}(hI``unsigned int class`` search for a PCI device with this base class code h](jG)}(h``unsigned int class``h]jM)}(hjGh]hunsigned int class}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjAubjc)}(hhh]j)}(h1search for a PCI device with this base class codeh]h1search for a PCI device with this base class code}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jbhjAubeh}(h]h ]h"]h$]h&]uh1j@hj\hMhj>ubjA)}(hZ``struct pci_dev *from`` Previous PCI device found in search, or ``NULL`` for new search. h](jG)}(h``struct pci_dev *from``h]jM)}(hjh]hstruct pci_dev *from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjzubjc)}(hhh]j)}(h@Previous PCI device found in search, or ``NULL`` for new search.h](h(Previous PCI device found in search, or }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh for new search.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjzubeh}(h]h ]h"]h$]h&]uh1j@hjhMhj>ubeh}(h]h ]h"]h$]h&]uh1j;hj"ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj"ubj)}(hXIterate through the list of known PCI devices. If a PCI device is found with a matching base class code, the reference count to the device is incremented. See pci_match_one_id() to figure out how this works. A new search is initiated by passing ``NULL`` as the **from** argument. Otherwise if **from** is not ``NULL``, searches continue from next device on the global list. The reference count for **from** is always decremented if it is not ``NULL``.h](hIterate through the list of known PCI devices. If a PCI device is found with a matching base class code, the reference count to the device is incremented. See pci_match_one_id() to figure out how this works. A new search is initiated by passing }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh as the }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh argument. Otherwise if }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubhQ, searches continue from next device on the global list. The reference count for }(hjhhhNhNubj&)}(h**from**h]hfrom}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh$ is always decremented if it is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj"ubj)}(h **Return**h]j&)}(hj`h]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj^ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj"ubj)}(h6A pointer to a matched PCI device, ``NULL`` Otherwise.h](h#A pointer to a matched PCI device, }(hjvhhhNhNubjM)}(h``NULL``h]hNULL}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvubh Otherwise.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_dev_present (C function)c.pci_dev_presenthNtauh1hhhhhhNhNubh)}(hhh](h)}(h5int pci_dev_present (const struct pci_device_id *ids)h]h)}(h4int pci_dev_present(const struct pci_device_id *ids)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(hpci_dev_presenth]j3)}(hpci_dev_presenth]hpci_dev_present}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h!(const struct pci_device_id *ids)h]jT)}(hconst struct pci_device_id *idsh](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h pci_device_idh]h pci_device_id}(hj-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/modnameN classnameNjj)}j]j)}jjsbc.pci_dev_presentasbuh1hhjubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hidsh]hids}(hjhhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(hBReturns 1 if device matching the device list is present, 0 if not.h]hBReturns 1 if device matching the device list is present, 0 if not.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hXL**Parameters** ``const struct pci_device_id *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. **Description** Obvious fact: You do not have a reference to any device that might be found by this function, so if that device is removed from the system right after this function is finished, the value will be stale. Use this function to find devices that are usually built into a system, or for a general hint as to if another device happens to be present at this specific moment in time.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjubj<)}(hhh]jA)}(h``const struct pci_device_id *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. h](jG)}(h#``const struct pci_device_id *ids``h]jM)}(hjh]hconst struct pci_device_id *ids}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjubjc)}(hhh]j)}(hA 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.h]hA 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjubj)}(hXxObvious fact: You do not have a reference to any device that might be found by this function, so if that device is removed from the system right after this function is finished, the value will be stale. Use this function to find devices that are usually built into a system, or for a general hint as to if another device happens to be present at this specific moment in time.h]hXxObvious fact: You do not have a reference to any device that might be found by this function, so if that device is removed from the system right after this function is finished, the value will be stale. Use this function to find devices that are usually built into a system, or for a general hint as to if another device happens to be present at this specific moment in time.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_msi_mask_irq (C function)c.pci_msi_mask_irqhNtauh1hhhhhhNhNubh)}(hhh](h)}(h-void pci_msi_mask_irq (struct irq_data *data)h]h)}(h,void pci_msi_mask_irq(struct irq_data *data)h](h)}(hvoidh]hvoid}(hjThhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPhhhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKubj)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPhhhjbhKubj-)}(hpci_msi_mask_irqh]j3)}(hpci_msi_mask_irqh]hpci_msi_mask_irq}(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjqubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjPhhhjbhKubjN)}(h(struct irq_data *data)h]jT)}(hstruct irq_data *datah](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hirq_datah]hirq_data}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjwsbc.pci_msi_mask_irqasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjPhhhjbhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjLhhhjbhKubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1hhjbhKhjIhhubj)}(hhh]j)}(h4Generic IRQ chip callback to mask PCI/MSI interruptsh]h4Generic IRQ chip callback to mask PCI/MSI interrupts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjIhhhjbhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1hhhhhhNhNubj)}(h[**Parameters** ``struct irq_data *data`` pointer to irqdata associated to that interrupth](j)}(h**Parameters**h]j&)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj4ubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhj0ubj<)}(hhh]jA)}(hI``struct irq_data *data`` pointer to irqdata associated to that interrupth](jG)}(h``struct irq_data *data``h]jM)}(hjUh]hstruct irq_data *data}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjSubah}(h]h ]h"]h$]h&]uh1jFhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjOubjc)}(hhh]j)}(h/pointer to irqdata associated to that interrupth]h/pointer to irqdata associated to that interrupt}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjkubah}(h]h ]h"]h$]h&]uh1jbhjOubeh}(h]h ]h"]h$]h&]uh1j@hjjhKhjLubah}(h]h ]h"]h$]h&]uh1j;hj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_msi_unmask_irq (C function)c.pci_msi_unmask_irqhNtauh1hhhhhhNhNubh)}(hhh](h)}(h/void pci_msi_unmask_irq (struct irq_data *data)h]h)}(h.void pci_msi_unmask_irq(struct irq_data *data)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj-)}(hpci_msi_unmask_irqh]j3)}(hpci_msi_unmask_irqh]hpci_msi_unmask_irq}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKubjN)}(h(struct irq_data *data)h]jT)}(hstruct irq_data *datah](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hirq_datah]hirq_data}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsbc.pci_msi_unmask_irqasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdatah]hdata}(hjEhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h6Generic IRQ chip callback to unmask PCI/MSI interruptsh]h6Generic IRQ chip callback to unmask PCI/MSI interrupts}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h[**Parameters** ``struct irq_data *data`` pointer to irqdata associated to that interrupth](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjubj<)}(hhh]jA)}(hI``struct irq_data *data`` pointer to irqdata associated to that interrupth](jG)}(h``struct irq_data *data``h]jM)}(hjh]hstruct irq_data *data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjubjc)}(hhh]j)}(h/pointer to irqdata associated to that interrupth]h/pointer to irqdata associated to that interrupt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubah}(h]h ]h"]h$]h&]uh1j;hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_msi_vec_count (C function)c.pci_msi_vec_counthNtauh1hhhhhhNhNubh)}(hhh](h)}(h+int pci_msi_vec_count (struct pci_dev *dev)h]h)}(h*int pci_msi_vec_count(struct pci_dev *dev)h](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(hpci_msi_vec_counth]j3)}(hpci_msi_vec_counth]hpci_msi_vec_count}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj'ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjGhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjCubj)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjbubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjgmodnameN classnameNjj)}j]j)}jj-sbc.pci_msi_vec_countasbuh1hhjCubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjCubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj?ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h2Return the number of MSI vectors a device can sendh]h2Return the number of MSI vectors a device can send}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *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 errno if the device is not capable sending MSI interrupts. Otherwise, the call succeeds and returns a power of two, up to a maximum of 2^5 (32), according to the MSI specification.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMhjubj<)}(hhh]jA)}(h/``struct pci_dev *dev`` device to report about h](jG)}(h``struct pci_dev *dev``h]jM)}(hj h]hstruct pci_dev *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMhjubjc)}(hhh]j)}(hdevice to report abouth]hdevice to report about}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj!ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj hMhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjFh]h Description}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjDubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMhjubj)}(hX4This function returns the number of MSI vectors a device requested via Multiple Message Capable register. It returns a negative errno if the device is not capable sending MSI interrupts. Otherwise, the call succeeds and returns a power of two, up to a maximum of 2^5 (32), according to the MSI specification.h]hX4This function returns the number of MSI vectors a device requested via Multiple Message Capable register. It returns a negative errno if the device is not capable sending MSI interrupts. Otherwise, the call succeeds and returns a power of two, up to a maximum of 2^5 (32), according to the MSI specification.}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_bus_alloc_resource (C function)c.pci_bus_alloc_resourcehNtauh1hhhhhhNhNubh)}(hhh](h)}(hint pci_bus_alloc_resource (struct pci_bus *bus, struct resource *res, resource_size_t size, resource_size_t align, resource_size_t min, unsigned long type_mask, resource_alignf alignf, void *alignf_data)h]h)}(hint pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res, resource_size_t size, resource_size_t align, resource_size_t min, unsigned long type_mask, resource_alignf alignf, void *alignf_data)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj-)}(hpci_bus_alloc_resourceh]j3)}(hpci_bus_alloc_resourceh]hpci_bus_alloc_resource}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKubjN)}(h(struct pci_bus *bus, struct resource *res, resource_size_t size, resource_size_t align, resource_size_t min, unsigned long type_mask, resource_alignf alignf, void *alignf_data)h](jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pci_bus_alloc_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hbush]hbus}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct resource *resh](jZ)}(hj]h]hstruct}(hj:hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj6ubj)}(h h]h }(hjGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubh)}(hhh]j3)}(hresourceh]hresource}(hjXhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZmodnameN classnameNjj)}j]jc.pci_bus_alloc_resourceasbuh1hhj6ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj3)}(hresh]hres}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj6ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hresource_size_t sizeh](h)}(hhh]j3)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_bus_alloc_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hresource_size_t alignh](h)}(hhh]j3)}(hresource_size_th]hresource_size_t}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_bus_alloc_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(halignh]halign}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hresource_size_t minh](h)}(hhh]j3)}(hresource_size_th]hresource_size_t}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?modnameN classnameNjj)}j]jc.pci_bus_alloc_resourceasbuh1hhj6ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6ubj3)}(hminh]hmin}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj6ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned long type_maskh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj3)}(h type_maskh]h type_mask}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hresource_alignf alignfh](h)}(hhh]j3)}(hresource_alignfh]hresource_alignf}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_bus_alloc_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(halignfh]halignf}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hvoid *alignf_datah](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj)hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(h alignf_datah]h alignf_data}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(h%allocate a resource from a parent bush]h%allocate a resource from a parent bus}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_bus *bus`` PCI bus ``struct resource *res`` resource to allocate ``resource_size_t size`` size of resource to allocate ``resource_size_t align`` alignment of resource to allocate ``resource_size_t min`` minimum /proc/iomem address to allocate ``unsigned long type_mask`` IORESOURCE_* type flags ``resource_alignf alignf`` resource alignment function ``void *alignf_data`` data argument for resource alignment function **Description** Given the PCI bus a device resides on, the size, minimum address, alignment and type, try to find an acceptable resource allocation for a specific device resource.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhjubj<)}(hhh](jA)}(h ``struct pci_bus *bus`` PCI bus h](jG)}(h``struct pci_bus *bus``h]jM)}(hjh]hstruct pci_bus *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhjubjc)}(hhh]j)}(hPCI bush]hPCI bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(h.``struct resource *res`` resource to allocate h](jG)}(h``struct resource *res``h]jM)}(hjh]hstruct resource *res}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhjubjc)}(hhh]j)}(hresource to allocateh]hresource to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(h6``resource_size_t size`` size of resource to allocate h](jG)}(h``resource_size_t size``h]jM)}(hj!h]hresource_size_t size}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhjubjc)}(hhh]j)}(hsize of resource to allocateh]hsize of resource to allocate}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6hKhj7ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj6hKhjubjA)}(h<``resource_size_t align`` alignment of resource to allocate h](jG)}(h``resource_size_t align``h]jM)}(hjZh]hresource_size_t align}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjXubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhjTubjc)}(hhh]j)}(h!alignment of resource to allocateh]h!alignment of resource to allocate}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohKhjpubah}(h]h ]h"]h$]h&]uh1jbhjTubeh}(h]h ]h"]h$]h&]uh1j@hjohKhjubjA)}(h@``resource_size_t min`` minimum /proc/iomem address to allocate h](jG)}(h``resource_size_t min``h]jM)}(hjh]hresource_size_t min}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhjubjc)}(hhh]j)}(h'minimum /proc/iomem address to allocateh]h'minimum /proc/iomem address to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(h4``unsigned long type_mask`` IORESOURCE_* type flags h](jG)}(h``unsigned long type_mask``h]jM)}(hjh]hunsigned long type_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubjc)}(hhh]j)}(hIORESOURCE_* type flagsh]hIORESOURCE_* type flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h7``resource_alignf alignf`` resource alignment function h](jG)}(h``resource_alignf alignf``h]jM)}(hjh]hresource_alignf alignf}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubjc)}(hhh]j)}(hresource alignment functionh]hresource alignment function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(hD``void *alignf_data`` data argument for resource alignment function h](jG)}(h``void *alignf_data``h]jM)}(hj>h]hvoid *alignf_data}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj<ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhj8ubjc)}(hhh]j)}(h-data argument for resource alignment functionh]h-data argument for resource alignment function}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMhjTubah}(h]h ]h"]h$]h&]uh1jbhj8ubeh}(h]h ]h"]h$]h&]uh1j@hjShMhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjyh]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjwubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubj)}(hGiven the PCI bus a device resides on, the size, minimum address, alignment and type, try to find an acceptable resource allocation for a specific device resource.h]hGiven the PCI bus a device resides on, the size, minimum address, alignment and type, try to find an acceptable resource allocation for a specific device resource.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_bus_add_device (C function)c.pci_bus_add_devicehNtauh1hhhhhhNhNubh)}(hhh](h)}(h-void pci_bus_add_device (struct pci_dev *dev)h]h)}(h,void pci_bus_add_device(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMTubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMTubj-)}(hpci_bus_add_deviceh]j3)}(hpci_bus_add_deviceh]hpci_bus_add_device}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMTubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pci_bus_add_deviceasbuh1hhjubj)}(h h]h }(hj9hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMTubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMTubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMThjhhubj)}(hhh]j)}(h start driver for a single deviceh]h start driver for a single device}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMThj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMTubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h~**Parameters** ``struct pci_dev *dev`` device to add **Description** This adds add sysfs entries and start device driversh](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMXhjubj<)}(hhh]jA)}(h&``struct pci_dev *dev`` device to add h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMUhjubjc)}(hhh]j)}(h device to addh]h device to add}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMUhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMUhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMWhjubj)}(h4This adds add sysfs entries and start device driversh]h4This adds add sysfs entries and start device drivers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_bus_add_devices (C function)c.pci_bus_add_deviceshNtauh1hhhhhhNhNubh)}(hhh](h)}(h4void pci_bus_add_devices (const struct pci_bus *bus)h]h)}(h3void pci_bus_add_devices(const struct pci_bus *bus)h](h)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj;hhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chM|ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj;hhhjMhM|ubj-)}(hpci_bus_add_devicesh]j3)}(hpci_bus_add_devicesh]hpci_bus_add_devices}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj;hhhjMhM|ubjN)}(h(const struct pci_bus *bus)h]jT)}(hconst struct pci_bus *bush](jZ)}(hjh]hconst}(hj|hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubjZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjbsbc.pci_bus_add_devicesasbuh1hhjxubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj3)}(hbush]hbus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjxubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjtubah}(h]h ]h"]h$]h&]jKjLuh1jMhj;hhhjMhM|ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj7hhhjMhM|ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1hhjMhM|hj4hhubj)}(hhh]j)}(hstart driver for PCI devicesh]hstart driver for PCI devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chM|hjhhubah}(h]h ]h"]h$]h&]uh1jhj4hhhjMhM|ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhhhNhNubj)}(h**Parameters** ``const struct pci_bus *bus`` bus to check for new devices **Description** Start driver for PCI devices and add some sysfs entries.h](j)}(h**Parameters**h]j&)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj:ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhj6ubj<)}(hhh]jA)}(h;``const struct pci_bus *bus`` bus to check for new devices h](jG)}(h``const struct pci_bus *bus``h]jM)}(hj[h]hconst struct pci_bus *bus}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chM}hjUubjc)}(hhh]j)}(hbus to check for new devicesh]hbus to check for new devices}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphM}hjqubah}(h]h ]h"]h$]h&]uh1jbhjUubeh}(h]h ]h"]h$]h&]uh1j@hjphM}hjRubah}(h]h ]h"]h$]h&]uh1j;hj6ubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhj6ubj)}(h8Start driver for PCI devices and add some sysfs entries.h]h8Start driver for PCI devices and add some sysfs entries.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chM~hj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_walk_bus (C function)c.pci_walk_bushNtauh1hhhhhhNhNubh)}(hhh](h)}(h\void pci_walk_bus (struct pci_bus *top, int (*cb)(struct pci_dev *, void *), void *userdata)h]h)}(hYvoid pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev*, void*), void *userdata)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(h pci_walk_bush]j3)}(h pci_walk_bush]h pci_walk_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(hH(struct pci_bus *top, int (*cb)(struct pci_dev*, void*), void *userdata)h](jT)}(hstruct pci_bus *toph](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj6hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]j)}jjsbc.pci_walk_busasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(htoph]htop}(hjqhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(h!int (*cb)(struct pci_dev*, void*)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(h(h]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hcbh]hcb}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubj)}(h)h]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jRc.pci_walk_busasbuh1hhjubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h,h]h,}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h)}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hvoid *userdatah](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj3)}(huserdatah]huserdata}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h,walk devices on/under bus, calling callback.h]h,walk devices on/under bus, calling callback.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_bus *top`` bus whose devices should be walked ``int (*cb)(struct pci_dev *, void *)`` callback to be called for each device found ``void *userdata`` arbitrary pointer to be passed to callback **Description** Walk the given bus, including any bridged devices on buses under this bus. Call the provided callback on each device found. We check the return of **cb** each time. If it returns anything other than 0, we break out.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubj<)}(hhh](jA)}(h;``struct pci_bus *top`` bus whose devices should be walked h](jG)}(h``struct pci_bus *top``h]jM)}(hjh]hstruct pci_bus *top}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubjc)}(hhh]j)}(h"bus whose devices should be walkedh]h"bus whose devices should be walked}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj+hMhj ubjA)}(hT``int (*cb)(struct pci_dev *, void *)`` callback to be called for each device found h](jG)}(h'``int (*cb)(struct pci_dev *, void *)``h]jM)}(hjOh]h#int (*cb)(struct pci_dev *, void *)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjIubjc)}(hhh]j)}(h+callback to be called for each device foundh]h+callback to be called for each device found}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jbhjIubeh}(h]h ]h"]h$]h&]uh1j@hjdhMhj ubjA)}(h>``void *userdata`` arbitrary pointer to be passed to callback h](jG)}(h``void *userdata``h]jM)}(hjh]hvoid *userdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubjc)}(hhh]j)}(h*arbitrary pointer to be passed to callbackh]h*arbitrary pointer to be passed to callback}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhj ubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubjD)}(hWalk the given bus, including any bridged devices on buses under this bus. Call the provided callback on each device found. We check the return of **cb** each time. If it returns anything other than 0, we break out.h](j)}(h|Walk the given bus, including any bridged devices on buses under this bus. Call the provided callback on each device found.h]h|Walk the given bus, including any bridged devices on buses under this bus. Call the provided callback on each device found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubj)}(h[We check the return of **cb** each time. If it returns anything other than 0, we break out.h](hWe check the return of }(hjhhhNhNubj&)}(h**cb**h]hcb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh> each time. If it returns anything other than 0, we break out.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjubeh}(h]h ]h"]h$]h&]uh1jChjhMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،!pci_walk_bus_reverse (C function)c.pci_walk_bus_reversehNtauh1hhhhhhNhNubh)}(hhh](h)}(hdvoid pci_walk_bus_reverse (struct pci_bus *top, int (*cb)(struct pci_dev *, void *), void *userdata)h]h)}(havoid pci_walk_bus_reverse(struct pci_bus *top, int (*cb)(struct pci_dev*, void*), void *userdata)h](h)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhMubj-)}(hpci_walk_bus_reverseh]j3)}(hpci_walk_bus_reverseh]hpci_walk_bus_reverse}(hjThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjPubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj/hhhjAhMubjN)}(hH(struct pci_bus *top, int (*cb)(struct pci_dev*, void*), void *userdata)h](jT)}(hstruct pci_bus *toph](jZ)}(hj]h]hstruct}(hjphhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjVsbc.pci_walk_bus_reverseasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj3)}(htoph]htop}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjlubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubjT)}(h!int (*cb)(struct pci_dev*, void*)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h(}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hcbh]hcb}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubj)}(hjh]h)}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjZ)}(hj]h]hstruct}(hj@hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj^hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`modnameN classnameNjj)}j]jc.pci_walk_bus_reverseasbuh1hhjubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hj5h]h,}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h)}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubjT)}(hvoid *userdatah](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(huserdatah]huserdata}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj/hhhjAhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj(hhubj)}(hhh]j)}(h,walk devices on/under bus, calling callback.h]h,walk devices on/under bus, calling callback.}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhj' hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjB jjB jjjuh1hhhhhhNhNubj)}(hX<**Parameters** ``struct pci_bus *top`` bus whose devices should be walked ``int (*cb)(struct pci_dev *, void *)`` callback to be called for each device found ``void *userdata`` arbitrary pointer to be passed to callback **Description** Same semantics as pci_walk_bus(), but walks the bus in reverse order.h](j)}(h**Parameters**h]j&)}(hjL h]h Parameters}(hjN hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjJ ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjF ubj<)}(hhh](jA)}(h;``struct pci_bus *top`` bus whose devices should be walked h](jG)}(h``struct pci_bus *top``h]jM)}(hjk h]hstruct pci_bus *top}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhji ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhje ubjc)}(hhh]j)}(h"bus whose devices should be walkedh]h"bus whose devices should be walked}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhje ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhjb ubjA)}(hT``int (*cb)(struct pci_dev *, void *)`` callback to be called for each device found h](jG)}(h'``int (*cb)(struct pci_dev *, void *)``h]jM)}(hj h]h#int (*cb)(struct pci_dev *, void *)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhj ubjc)}(hhh]j)}(h+callback to be called for each device foundh]h+callback to be called for each device found}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhjb ubjA)}(h>``void *userdata`` arbitrary pointer to be passed to callback h](jG)}(h``void *userdata``h]jM)}(hj h]hvoid *userdata}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhj ubjc)}(hhh]j)}(h*arbitrary pointer to be passed to callbackh]h*arbitrary pointer to be passed to callback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhjb ubeh}(h]h ]h"]h$]h&]uh1j;hjF ubj)}(h**Description**h]j&)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjF ubj)}(hESame semantics as pci_walk_bus(), but walks the bus in reverse order.h]hESame semantics as pci_walk_bus(), but walks the bus in reverse order.}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjF ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_bus_set_ops (C function)c.pci_bus_set_opshNtauh1hhhhhhNhNubh)}(hhh](h)}(hKstruct pci_ops * pci_bus_set_ops (struct pci_bus *bus, struct pci_ops *ops)h]h)}(hIstruct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops)h](jZ)}(hj]h]hstruct}(hj] hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjY hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKubj)}(h h]h }(hjk hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjY hhhjj hKubh)}(hhh]j3)}(hpci_opsh]hpci_ops}(hj| hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjy ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj~ modnameN classnameNjj)}j]j)}jpci_bus_set_opssbc.pci_bus_set_opsasbuh1hhjY hhhjj hKubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjY hhhjj hKubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjY hhhjj hKubj-)}(hpci_bus_set_opsh]j3)}(hj h]hpci_bus_set_ops}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjY hhhjj hKubjN)}(h*(struct pci_bus *bus, struct pci_ops *ops)h](jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j c.pci_bus_set_opsasbuh1hhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj! hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj3)}(hbush]hbus}(hj. hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubjT)}(hstruct pci_ops *opsh](jZ)}(hj]h]hstruct}(hjG hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjC ubj)}(h h]h }(hjT hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjC ubh)}(hhh]j3)}(hpci_opsh]hpci_ops}(hje hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjb ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjg modnameN classnameNjj)}j]j c.pci_bus_set_opsasbuh1hhjC ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjC ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC ubj3)}(hopsh]hops}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjC ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjY hhhjj hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjU hhhjj hKubah}(h]jP ah ](jjeh"]h$]h&]jj)jhuh1hhjj hKhjR hhubj)}(hhh]j)}(hSet raw operations of pci bush]hSet raw operations of pci bus}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjR hhhjj hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_bus *bus`` pci bus struct ``struct pci_ops *ops`` new raw operations **Description** Return previous raw operationsh](j)}(h**Parameters**h]j&)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKhj ubj<)}(hhh](jA)}(h'``struct pci_bus *bus`` pci bus struct h](jG)}(h``struct pci_bus *bus``h]jM)}(hj h]hstruct pci_bus *bus}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKhj ubjc)}(hhh]j)}(hpci bus structh]hpci bus struct}(hj" hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj hKhj ubjA)}(h+``struct pci_ops *ops`` new raw operations h](jG)}(h``struct pci_ops *ops``h]jM)}(hjB h]hstruct pci_ops *ops}(hjD hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@ ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKhj< ubjc)}(hhh]j)}(hnew raw operationsh]hnew raw operations}(hj[ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjW hKhjX ubah}(h]h ]h"]h$]h&]uh1jbhj< ubeh}(h]h ]h"]h$]h&]uh1j@hjW hKhj ubeh}(h]h ]h"]h$]h&]uh1j;hj ubj)}(h**Description**h]j&)}(hj} h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj{ ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKhj ubj)}(hReturn previous raw operationsh]hReturn previous raw operations}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_cfg_access_lock (C function)c.pci_cfg_access_lockhNtauh1hhhhhhNhNubh)}(hhh](h)}(h.void pci_cfg_access_lock (struct pci_dev *dev)h]h)}(h-void pci_cfg_access_lock(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMubj-)}(hpci_cfg_access_lockh]j3)}(hpci_cfg_access_lockh]hpci_cfg_access_lock}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj hhhj hMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jj sbc.pci_cfg_access_lockasbuh1hhj ubj)}(h h]h }(hj= hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjK hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj3)}(hdevh]hdev}(hjX hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj hhhj hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhj hhubj)}(hhh]j)}(hLock PCI config reads/writesh]hLock PCI config reads/writes}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` pci device struct **Description** When access is locked, any userspace reads or writes to config space and concurrent lock requests will sleep until access is allowed via pci_cfg_access_unlock() again.h](j)}(h**Parameters**h]j&)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMhj ubj<)}(hhh]jA)}(h*``struct pci_dev *dev`` pci device struct h](jG)}(h``struct pci_dev *dev``h]jM)}(hj h]hstruct pci_dev *dev}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMhj ubjc)}(hhh]j)}(hpci device structh]hpci device struct}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMhj ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj hMhj ubah}(h]h ]h"]h$]h&]uh1j;hj ubj)}(h**Description**h]j&)}(hj h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMhj ubj)}(hWhen access is locked, any userspace reads or writes to config space and concurrent lock requests will sleep until access is allowed via pci_cfg_access_unlock() again.h]hWhen access is locked, any userspace reads or writes to config space and concurrent lock requests will sleep until access is allowed via pci_cfg_access_unlock() again.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_cfg_access_trylock (C function)c.pci_cfg_access_trylockhNtauh1hhhhhhNhNubh)}(hhh](h)}(h1bool pci_cfg_access_trylock (struct pci_dev *dev)h]h)}(h0bool pci_cfg_access_trylock(struct pci_dev *dev)h](h)}(hj'4h]hbool}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj?hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM-ubj)}(h h]h }(hjQhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj?hhhjPhM-ubj-)}(hpci_cfg_access_trylockh]j3)}(hpci_cfg_access_trylockh]hpci_cfg_access_trylock}(hjchhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj_ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj?hhhjPhM-ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjesbc.pci_cfg_access_trylockasbuh1hhj{ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjwubah}(h]h ]h"]h$]h&]jKjLuh1jMhj?hhhjPhM-ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj;hhhjPhM-ubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1hhjPhM-hj8hhubj)}(hhh]j)}(h#try to lock PCI config reads/writesh]h#try to lock PCI config reads/writes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM-hjhhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjPhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` pci device struct **Description** Same as pci_cfg_access_lock, but will return 0 if access is already locked, 1 otherwise. This function can be used from atomic contexts.h](j)}(h**Parameters**h]j&)}(hj$h]h Parameters}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj"ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM1hjubj<)}(hhh]jA)}(h*``struct pci_dev *dev`` pci device struct h](jG)}(h``struct pci_dev *dev``h]jM)}(hjCh]hstruct pci_dev *dev}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM.hj=ubjc)}(hhh]j)}(hpci device structh]hpci device struct}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhM.hjYubah}(h]h ]h"]h$]h&]uh1jbhj=ubeh}(h]h ]h"]h$]h&]uh1j@hjXhM.hj:ubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj|ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM0hjubj)}(hSame as pci_cfg_access_lock, but will return 0 if access is already locked, 1 otherwise. This function can be used from atomic contexts.h]hSame as pci_cfg_access_lock, but will return 0 if access is already locked, 1 otherwise. This function can be used from atomic contexts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،"pci_cfg_access_unlock (C function)c.pci_cfg_access_unlockhNtauh1hhhhhhNhNubh)}(hhh](h)}(h0void pci_cfg_access_unlock (struct pci_dev *dev)h]h)}(h/void pci_cfg_access_unlock(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMEubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMEubj-)}(hpci_cfg_access_unlockh]j3)}(hpci_cfg_access_unlockh]hpci_cfg_access_unlock}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMEubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsbc.pci_cfg_access_unlockasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjYhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMEubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMEubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMEhjhhubj)}(hhh]j)}(hUnlock PCI config reads/writesh]hUnlock PCI config reads/writes}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMEubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` pci device struct **Description** This function allows PCI config accesses to resume.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMIhjubj<)}(hhh]jA)}(h*``struct pci_dev *dev`` pci device struct h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMFhjubjc)}(hhh]j)}(hpci device structh]hpci device struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMFhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMFhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMHhjubj)}(h3This function allows PCI config accesses to resume.h]h3This function allows PCI config accesses to resume.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMGhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_request_irq (C function)c.pci_request_irqhNtauh1hhhhhhNhNubh)}(hhh](h)}(hint 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, ...)h]h)}(hint 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, ...)h](h)}(hinth]hint}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@hhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKubj)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhjRhKubj-)}(hpci_request_irqh]j3)}(hpci_request_irqh]hpci_request_irq}(hjehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjaubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj@hhhjRhKubjN)}(hz(struct pci_dev *dev, unsigned int nr, irq_handler_t handler, irq_handler_t thread_fn, void *dev_id, const char *fmt, ...)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjgsbc.pci_request_irqasbuh1hhj}ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjyubjT)}(hunsigned int nrh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hnrh]hnr}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjyubjT)}(hirq_handler_t handlerh](h)}(hhh]j3)}(h irq_handler_th]h irq_handler_t}(hjGhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjImodnameN classnameNjj)}j]jc.pci_request_irqasbuh1hhj@ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj3)}(hhandlerh]hhandler}(hjshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjyubjT)}(hirq_handler_t thread_fnh](h)}(hhh]j3)}(h irq_handler_th]h irq_handler_t}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_request_irqasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(h thread_fnh]h thread_fn}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjyubjT)}(h void *dev_idh](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdev_idh]hdev_id}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjyubjT)}(hconst char *fmth](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hfmth]hfmt}(hjZhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjyubjT)}(h...h]j)}(h...h]h...}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]noemphjKjLuh1jShjyubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj@hhhjRhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj<hhhjRhKubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1hhjRhKhj9hhubj)}(hhh]j)}(h+allocate an interrupt line for a PCI deviceh]h+allocate an interrupt line for a PCI device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` PCI device to operate on ``unsigned int nr`` device-relative interrupt vector index (0-based). ``irq_handler_t handler`` Function to be called when the IRQ occurs. Primary handler for threaded interrupts. If NULL and thread_fn != NULL the default primary handler is installed. ``irq_handler_t thread_fn`` Function called from the IRQ handler thread If NULL, no IRQ thread is created ``void *dev_id`` Cookie passed back to the handler function ``const char *fmt`` Printf-like format string naming the handler ``...`` variable arguments **Description** This call allocates interrupt resources and enables the interrupt line and IRQ handling. From the point this call is made **handler** and **thread_fn** may be invoked. All interrupts requested using this function might be shared. **dev_id** must not be NULL and must be globally unique.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubj<)}(hhh](jA)}(h1``struct pci_dev *dev`` PCI device to operate on h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubjc)}(hhh]j)}(hPCI device to operate onh]hPCI device to operate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(hF``unsigned int nr`` device-relative interrupt vector index (0-based). h](jG)}(h``unsigned int nr``h]jM)}(hjh]hunsigned int nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubjc)}(hhh]j)}(h1device-relative interrupt vector index (0-based).h]h1device-relative interrupt vector index (0-based).}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hKhj-ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj,hKhjubjA)}(h``irq_handler_t handler`` Function to be called when the IRQ occurs. Primary handler for threaded interrupts. If NULL and thread_fn != NULL the default primary handler is installed. h](jG)}(h``irq_handler_t handler``h]jM)}(hjPh]hirq_handler_t handler}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjJubjc)}(hhh]j)}(hFunction to be called when the IRQ occurs. Primary handler for threaded interrupts. If NULL and thread_fn != NULL the default primary handler is installed.h]hFunction to be called when the IRQ occurs. Primary handler for threaded interrupts. If NULL and thread_fn != NULL the default primary handler is installed.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjfubah}(h]h ]h"]h$]h&]uh1jbhjJubeh}(h]h ]h"]h$]h&]uh1j@hjehKhjubjA)}(hj``irq_handler_t thread_fn`` Function called from the IRQ handler thread If NULL, no IRQ thread is created h](jG)}(h``irq_handler_t thread_fn``h]jM)}(hjh]hirq_handler_t thread_fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubjc)}(hhh]j)}(hMFunction called from the IRQ handler thread If NULL, no IRQ thread is createdh]hMFunction called from the IRQ handler thread If NULL, no IRQ thread is created}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(h<``void *dev_id`` Cookie passed back to the handler function h](jG)}(h``void *dev_id``h]jM)}(hjh]h void *dev_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubjc)}(hhh]j)}(h*Cookie passed back to the handler functionh]h*Cookie passed back to the handler function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(hA``const char *fmt`` Printf-like format string naming the handler h](jG)}(h``const char *fmt``h]jM)}(hjh]hconst char *fmt}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubjc)}(hhh]j)}(h,Printf-like format string naming the handlerh]h,Printf-like format string naming the handler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(h``...`` variable arguments h](jG)}(h``...``h]jM)}(hj6h]h...}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhj0ubjc)}(hhh]j)}(hvariable argumentsh]hvariable arguments}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKhKhjLubah}(h]h ]h"]h$]h&]uh1jbhj0ubeh}(h]h ]h"]h$]h&]uh1j@hjKhKhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjqh]h Description}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjoubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubj)}(hThis call allocates interrupt resources and enables the interrupt line and IRQ handling. From the point this call is made **handler** and **thread_fn** may be invoked. All interrupts requested using this function might be shared.h](hzThis call allocates interrupt resources and enables the interrupt line and IRQ handling. From the point this call is made }(hjhhhNhNubj&)}(h **handler**h]hhandler}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh and }(hjhhhNhNubj&)}(h **thread_fn**h]h thread_fn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubhO may be invoked. All interrupts requested using this function might be shared.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubj)}(h8**dev_id** must not be NULL and must be globally unique.h](j&)}(h **dev_id**h]hdev_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh. must not be NULL and must be globally unique.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_free_irq (C function)c.pci_free_irqhNtauh1hhhhhhNhNubh)}(hhh](h)}(hFvoid pci_free_irq (struct pci_dev *dev, unsigned int nr, void *dev_id)h]h)}(hEvoid pci_free_irq(struct pci_dev *dev, unsigned int nr, void *dev_id)h](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK?ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhK?ubj-)}(h pci_free_irqh]j3)}(h pci_free_irqh]h pci_free_irq}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhK?ubjN)}(h4(struct pci_dev *dev, unsigned int nr, void *dev_id)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj4hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj0ubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j)}jjsbc.pci_free_irqasbuh1hhj0ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,ubjT)}(hunsigned int nrh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hnrh]hnr}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,ubjT)}(h void *dev_idh](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdev_idh]hdev_id}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhK?ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhK?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK?hjhhubj)}(hhh]j)}(h0free an interrupt allocated with pci_request_irqh]h0free an interrupt allocated with pci_request_irq}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK?hjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK?ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1hhhhhhNhNubj)}(hX:**Parameters** ``struct pci_dev *dev`` PCI device to operate on ``unsigned int nr`` device-relative interrupt vector index (0-based). ``void *dev_id`` Device identity to free **Description** Remove an interrupt handler. The handler is removed and if the interrupt line is no longer in use by any driver it is disabled. The caller must ensure the interrupt is disabled on the device before calling this function. The function does not return until any executing interrupts for this IRQ have completed. This function must not be called from interrupt context.h](j)}(h**Parameters**h]j&)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKChjfubj<)}(hhh](jA)}(h1``struct pci_dev *dev`` PCI device to operate on h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK@hjubjc)}(hhh]j)}(hPCI device to operate onh]hPCI device to operate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK@hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhK@hjubjA)}(hF``unsigned int nr`` device-relative interrupt vector index (0-based). h](jG)}(h``unsigned int nr``h]jM)}(hjh]hunsigned int nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKAhjubjc)}(hhh]j)}(h1device-relative interrupt vector index (0-based).h]h1device-relative interrupt vector index (0-based).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKAhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKAhjubjA)}(h)``void *dev_id`` Device identity to free h](jG)}(h``void *dev_id``h]jM)}(hjh]h void *dev_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKBhjubjc)}(hhh]j)}(hDevice identity to freeh]hDevice identity to free}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKBhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKBhjubeh}(h]h ]h"]h$]h&]uh1j;hjfubj)}(h**Description**h]j&)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj6ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKDhjfubj)}(hX6Remove an interrupt handler. The handler is removed and if the interrupt line is no longer in use by any driver it is disabled. The caller must ensure the interrupt is disabled on the device before calling this function. The function does not return until any executing interrupts for this IRQ have completed.h]hX6Remove an interrupt handler. The handler is removed and if the interrupt line is no longer in use by any driver it is disabled. The caller must ensure the interrupt is disabled on the device before calling this function. The function does not return until any executing interrupts for this IRQ have completed.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKChjfubj)}(h8This function must not be called from interrupt context.h]h8This function must not be called from interrupt context.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKIhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_common_swizzle (C function)c.pci_common_swizzlehNtauh1hhhhhhNhNubh)}(hhh](h)}(h5u8 pci_common_swizzle (struct pci_dev *dev, u8 *pinp)h]h)}(h4u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp)h](h)}(hhh]j3)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_common_swizzlesbc.pci_common_swizzleasbuh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKzubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKzubj-)}(hpci_common_swizzleh]j3)}(hjh]hpci_common_swizzle}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKzubjN)}(h(struct pci_dev *dev, u8 *pinp)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_common_swizzleasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hj5hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hu8 *pinph](h)}(hhh]j3)}(hu8h]hu8}(hjQhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]jc.pci_common_swizzleasbuh1hhjJubj)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj3)}(hpinph]hpinp}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKzubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKzubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKzhjhhubj)}(hhh]j)}(h'swizzle INTx all the way to root bridgeh]h'swizzle INTx all the way to root bridge}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKzhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` the PCI device ``u8 *pinp`` pointer to the INTx pin value (1=INTA, 2=INTB, 3=INTD, 4=INTD) **Description** Perform INTx swizzling for a device. This traverses through all PCI-to-PCI bridges all the way up to a PCI root bus.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK~hjubj<)}(hhh](jA)}(h'``struct pci_dev *dev`` the PCI device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK{hjubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hK{hj ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj hK{hjubjA)}(hL``u8 *pinp`` pointer to the INTx pin value (1=INTA, 2=INTB, 3=INTD, 4=INTD) h](jG)}(h ``u8 *pinp``h]jM)}(hj.h]hu8 *pinp}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK|hj(ubjc)}(hhh]j)}(h>pointer to the INTx pin value (1=INTA, 2=INTB, 3=INTD, 4=INTD)h]h>pointer to the INTx pin value (1=INTA, 2=INTB, 3=INTD, 4=INTD)}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChK|hjDubah}(h]h ]h"]h$]h&]uh1jbhj(ubeh}(h]h ]h"]h$]h&]uh1j@hjChK|hjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjgubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK~hjubj)}(huPerform INTx swizzling for a device. This traverses through all PCI-to-PCI bridges all the way up to a PCI root bus.h]huPerform INTx swizzling for a device. This traverses through all PCI-to-PCI bridges all the way up to a PCI root bus.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،$pci_check_and_mask_intx (C function)c.pci_check_and_mask_intxhNtauh1hhhhhhNhNubh)}(hhh](h)}(h2bool pci_check_and_mask_intx (struct pci_dev *dev)h]h)}(h1bool pci_check_and_mask_intx(struct pci_dev *dev)h](h)}(hj'4h]hbool}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhKubj-)}(hpci_check_and_mask_intxh]j3)}(hpci_check_and_mask_intxh]hpci_check_and_mask_intx}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsbc.pci_check_and_mask_intxasbuh1hhjubj)}(h h]h }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hmask INTx on pending interrupth]hmask INTx on pending interrupt}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCI device to operate on **Description** Check if the device dev has its INTx line asserted, mask it and return true in that case. False is returned if no interrupt was pending.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubj<)}(hhh]jA)}(h5``struct pci_dev *dev`` the PCI device to operate on h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh]hstruct pci_dev *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubjc)}(hhh]j)}(hthe PCI device to operate onh]hthe PCI device to operate on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubj)}(hCheck if the device dev has its INTx line asserted, mask it and return true in that case. False is returned if no interrupt was pending.h]hCheck if the device dev has its INTx line asserted, mask it and return true in that case. False is returned if no interrupt was pending.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،&pci_check_and_unmask_intx (C function)c.pci_check_and_unmask_intxhNtauh1hhhhhhNhNubh)}(hhh](h)}(h4bool pci_check_and_unmask_intx (struct pci_dev *dev)h]h)}(h3bool pci_check_and_unmask_intx(struct pci_dev *dev)h](h)}(hj'4h]hbool}(hj.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*hhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*hhhj;hKubj-)}(hpci_check_and_unmask_intxh]j3)}(hpci_check_and_unmask_intxh]hpci_check_and_unmask_intx}(hjNhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj*hhhj;hKubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjfubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjPsbc.pci_check_and_unmask_intxasbuh1hhjfubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjbubah}(h]h ]h"]h$]h&]jKjLuh1jMhj*hhhj;hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj&hhhj;hKubah}(h]j!ah ](jjeh"]h$]h&]jj)jhuh1hhj;hKhj#hhubj)}(hhh]j)}(h&unmask INTx if no interrupt is pendingh]h&unmask INTx if no interrupt is pending}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj;hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *dev`` the PCI device to operate on **Description** Check if the device dev has its INTx line asserted, unmask it if not and return true. False is returned and the mask remains active if there was still an interrupt pending.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhj ubj<)}(hhh]jA)}(h5``struct pci_dev *dev`` the PCI device to operate on h](jG)}(h``struct pci_dev *dev``h]jM)}(hj.h]hstruct pci_dev *dev}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhj(ubjc)}(hhh]j)}(hthe PCI device to operate onh]hthe PCI device to operate on}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChKhjDubah}(h]h ]h"]h$]h&]uh1jbhj(ubeh}(h]h ]h"]h$]h&]uh1j@hjChKhj%ubah}(h]h ]h"]h$]h&]uh1j;hj ubj)}(h**Description**h]j&)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjgubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhj ubj)}(hCheck if the device dev has its INTx line asserted, unmask it if not and return true. False is returned and the mask remains active if there was still an interrupt pending.h]hCheck if the device dev has its INTx line asserted, unmask it if not and return true. False is returned and the mask remains active if there was still an interrupt pending.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pcie_get_link_speed (C function)c.pcie_get_link_speedhNtauh1hhhhhhNhNubh)}(hhh](h)}(h6unsigned char pcie_get_link_speed (unsigned int speed)h]h)}(h5unsigned char pcie_get_link_speed(unsigned int speed)h](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhM ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubj-)}(hpcie_get_link_speedh]j3)}(hpcie_get_link_speedh]hpcie_get_link_speed}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhM ubjN)}(h(unsigned int speed)h]jT)}(hunsigned int speedh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj#hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hspeedh]hspeed}(hj?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(hhh]j)}(h+Get speed value from PCIe generation numberh]h+Get speed value from PCIe generation number}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``unsigned int speed`` PCIe speed (1-based: 1 = 2.5GT, 2 = 5GT, ...) **Description** Returns the speed value (e.g., PCIE_SPEED_2_5GT) if **speed** is valid, otherwise returns PCI_SPEED_UNKNOWN.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjubj<)}(hhh]jA)}(hE``unsigned int speed`` PCIe speed (1-based: 1 = 2.5GT, 2 = 5GT, ...) h](jG)}(h``unsigned int speed``h]jM)}(hjh]hunsigned int speed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjubjc)}(hhh]j)}(h-PCIe speed (1-based: 1 = 2.5GT, 2 = 5GT, ...)h]h-PCIe speed (1-based: 1 = 2.5GT, 2 = 5GT, ...)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhM hjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjubj)}(hlReturns the speed value (e.g., PCIE_SPEED_2_5GT) if **speed** is valid, otherwise returns PCI_SPEED_UNKNOWN.h](h4Returns the speed value (e.g., PCIE_SPEED_2_5GT) if }(hjhhhNhNubj&)}(h **speed**h]hspeed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh/ is valid, otherwise returns PCI_SPEED_UNKNOWN.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،*pcie_relaxed_ordering_enabled (C function)c.pcie_relaxed_ordering_enabledhNtauh1hhhhhhNhNubh)}(hhh](h)}(h8bool pcie_relaxed_ordering_enabled (struct pci_dev *dev)h]h)}(h7bool pcie_relaxed_ordering_enabled(struct pci_dev *dev)h](h)}(hj'4h]hbool}(hj<hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj8hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhjIhM ubj-)}(hpcie_relaxed_ordering_enabledh]j3)}(hpcie_relaxed_ordering_enabledh]hpcie_relaxed_ordering_enabled}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj8hhhjIhM ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjxhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj^sbc.pcie_relaxed_ordering_enabledasbuh1hhjtubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjtubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjpubah}(h]h ]h"]h$]h&]jKjLuh1jMhj8hhhjIhM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj4hhhjIhM ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhjIhM hj1hhubj)}(hhh]j)}(h&Probe for PCIe relaxed ordering enableh]h&Probe for PCIe relaxed ordering enable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhjIhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` PCI device to query **Description** Returns true if the device has enabled relaxed ordering attribute.h](j)}(h**Parameters**h]j&)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj ubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hj< h]hstruct pci_dev *dev}(hj> hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj: ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj6 ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjU hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQ hM hjR ubah}(h]h ]h"]h$]h&]uh1jbhj6 ubeh}(h]h ]h"]h$]h&]uh1j@hjQ hM hj3 ubah}(h]h ]h"]h$]h&]uh1j;hj ubj)}(h**Description**h]j&)}(hjw h]h Description}(hjy hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hju ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj ubj)}(hBReturns true if the device has enabled relaxed ordering attribute.h]hBReturns true if the device has enabled relaxed ordering attribute.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_scan_slot (C function)c.pci_scan_slothNtauh1hhhhhhNhNubh)}(hhh](h)}(h2int pci_scan_slot (struct pci_bus *bus, int devfn)h]h)}(h1int pci_scan_slot(struct pci_bus *bus, int devfn)h](h)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM* ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hM* ubj-)}(h pci_scan_sloth]j3)}(h pci_scan_sloth]h pci_scan_slot}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj hhhj hM* ubjN)}(h (struct pci_bus *bus, int devfn)h](jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj ubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j)}jj sbc.pci_scan_slotasbuh1hhj ubj)}(h h]h }(hj7!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjE!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj3)}(hbush]hbus}(hjR!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubjT)}(h int devfnh](h)}(hinth]hint}(hjk!hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg!ubj)}(h h]h }(hjy!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg!ubj3)}(hdevfnh]hdevfn}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjg!ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj hhhj hM* ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj hhhj hM* ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1hhj hM* hj hhubj)}(hhh]j)}(h$Scan a PCI slot on a bus for devicesh]h$Scan a PCI slot on a bus for devices}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM* hj!hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM* ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj!jj!jjjuh1hhhhhhNhNubj)}(hXK**Parameters** ``struct pci_bus *bus`` PCI bus to scan ``int devfn`` slot number to scan (must have zero function) **Description** Scan a PCI slot on the specified PCI bus for devices, adding discovered devices to the **bus->devices** list. New devices will not have is_added set. Returns the number of new devices found.h](j)}(h**Parameters**h]j&)}(hj!h]h Parameters}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj!ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM. hj!ubj<)}(hhh](jA)}(h(``struct pci_bus *bus`` PCI bus to scan h](jG)}(h``struct pci_bus *bus``h]jM)}(hj!h]hstruct pci_bus *bus}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj!ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM+ hj!ubjc)}(hhh]j)}(hPCI bus to scanh]hPCI bus to scan}(hj "hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hM+ hj"ubah}(h]h ]h"]h$]h&]uh1jbhj!ubeh}(h]h ]h"]h$]h&]uh1j@hj"hM+ hj!ubjA)}(h<``int devfn`` slot number to scan (must have zero function) h](jG)}(h ``int devfn``h]jM)}(hj+"h]h int devfn}(hj-"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)"ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM, hj%"ubjc)}(hhh]j)}(h-slot number to scan (must have zero function)h]h-slot number to scan (must have zero function)}(hjD"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@"hM, hjA"ubah}(h]h ]h"]h$]h&]uh1jbhj%"ubeh}(h]h ]h"]h$]h&]uh1j@hj@"hM, hj!ubeh}(h]h ]h"]h$]h&]uh1j;hj!ubj)}(h**Description**h]j&)}(hjf"h]h Description}(hjh"hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjd"ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM. hj!ubj)}(hScan a PCI slot on the specified PCI bus for devices, adding discovered devices to the **bus->devices** list. New devices will not have is_added set.h](hWScan a PCI slot on the specified PCI bus for devices, adding discovered devices to the }(hj|"hhhNhNubj&)}(h**bus->devices**h]h bus->devices}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj|"ubh/ list. New devices will not have is_added set.}(hj|"hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM- hj!ubj)}(h(Returns the number of new devices found.h]h(Returns the number of new devices found.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM1 hj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_scan_child_bus (C function)c.pci_scan_child_bushNtauh1hhhhhhNhNubh)}(hhh](h)}(h5unsigned int pci_scan_child_bus (struct pci_bus *bus)h]h)}(h4unsigned int pci_scan_child_bus(struct pci_bus *bus)h](h)}(hunsignedh]hunsigned}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"hhhj"hM ubh)}(hinth]hint}(hj"hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj"hhhj"hM ubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"hhhj"hM ubj-)}(hpci_scan_child_bush]j3)}(hpci_scan_child_bush]hpci_scan_child_bus}(hj #hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj"hhhj"hM ubjN)}(h(struct pci_bus *bus)h]jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj%#hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj!#ubj)}(h h]h }(hj2#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!#ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjC#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjE#modnameN classnameNjj)}j]j)}jj #sbc.pci_scan_child_busasbuh1hhj!#ubj)}(h h]h }(hjc#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!#ubj)}(hjh]h*}(hjq#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!#ubj3)}(hbush]hbus}(hj~#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!#ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj#ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj"hhhj"hM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj"hhhj"hM ubah}(h]j"ah ](jjeh"]h$]h&]jj)jhuh1hhj"hM hj"hhubj)}(hhh]j)}(hScan devices below a bush]hScan devices below a bus}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj#hhubah}(h]h ]h"]h$]h&]uh1jhj"hhhj"hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#jj#jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_bus *bus`` Bus to scan for devices **Description** Scans devices below **bus** including subordinate buses. Returns new subordinate number including all the found devices.h](j)}(h**Parameters**h]j&)}(hj#h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj#ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj#ubj<)}(hhh]jA)}(h0``struct pci_bus *bus`` Bus to scan for devices h](jG)}(h``struct pci_bus *bus``h]jM)}(hj#h]hstruct pci_bus *bus}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj#ubjc)}(hhh]j)}(hBus to scan for devicesh]hBus to scan for devices}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#hM hj#ubah}(h]h ]h"]h$]h&]uh1jbhj#ubeh}(h]h ]h"]h$]h&]uh1j@hj#hM hj#ubah}(h]h ]h"]h$]h&]uh1j;hj#ubj)}(h**Description**h]j&)}(hj$$h]h Description}(hj&$hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj"$ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj#ubj)}(hxScans devices below **bus** including subordinate buses. Returns new subordinate number including all the found devices.h](hScans devices below }(hj:$hhhNhNubj&)}(h**bus**h]hbus}(hjB$hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj:$ubh] including subordinate buses. Returns new subordinate number including all the found devices.}(hj:$hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_rescan_bus (C function)c.pci_rescan_bushNtauh1hhhhhhNhNubh)}(hhh](h)}(h1unsigned int pci_rescan_bus (struct pci_bus *bus)h]h)}(h0unsigned int pci_rescan_bus(struct pci_bus *bus)h](h)}(hunsignedh]hunsigned}(hj{$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw$hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw$hhhj$hM ubh)}(hinth]hint}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw$hhhj$hM ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw$hhhj$hM ubj-)}(hpci_rescan_bush]j3)}(hpci_rescan_bush]hpci_rescan_bus}(hj$hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjw$hhhj$hM ubjN)}(h(struct pci_bus *bus)h]jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj$hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj$hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$modnameN classnameNjj)}j]j)}jj$sbc.pci_rescan_busasbuh1hhj$ubj)}(h h]h }(hj%hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj$ubj)}(hjh]h*}(hj %hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj3)}(hbush]hbus}(hj-%hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj$ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjw$hhhj$hM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjs$hhhj$hM ubah}(h]jn$ah ](jjeh"]h$]h&]jj)jhuh1hhj$hM hjp$hhubj)}(hhh]j)}(hScan a PCI bus for devicesh]hScan a PCI bus for devices}(hjW%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjT%hhubah}(h]h ]h"]h$]h&]uh1jhjp$hhhj$hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo%jjo%jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_bus *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.h](j)}(h**Parameters**h]j&)}(hjy%h]h Parameters}(hj{%hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjw%ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjs%ubj<)}(hhh]jA)}(h(``struct pci_bus *bus`` PCI bus to scan h](jG)}(h``struct pci_bus *bus``h]jM)}(hj%h]hstruct pci_bus *bus}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj%ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hj%ubjc)}(hhh]j)}(hPCI bus to scanh]hPCI bus to scan}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%hM hj%ubah}(h]h ]h"]h$]h&]uh1jbhj%ubeh}(h]h ]h"]h$]h&]uh1j@hj%hM hj%ubah}(h]h ]h"]h$]h&]uh1j;hjs%ubj)}(h**Description**h]j&)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj%ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjs%ubj)}(hJScan a PCI bus and child buses for new devices, add them, and enable them.h]hJScan a PCI bus and child buses for new devices, add them, and enable them.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjs%ubj)}(h5Returns the max number of subordinate bus discovered.h]h5Returns the max number of subordinate bus discovered.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM hjs%ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_create_slot (C function)c.pci_create_slothNtauh1hhhhhhNhNubh)}(hhh](h)}(hwstruct pci_slot * pci_create_slot (struct pci_bus *parent, int slot_nr, const char *name, struct hotplug_slot *hotplug)h]h)}(hustruct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr, const char *name, struct hotplug_slot *hotplug)h](jZ)}(hj]h]hstruct}(hj'&hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj#&hhhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKubj)}(h h]h }(hj5&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#&hhhj4&hKubh)}(hhh]j3)}(hpci_sloth]hpci_slot}(hjF&hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjC&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjH&modnameN classnameNjj)}j]j)}jpci_create_slotsbc.pci_create_slotasbuh1hhj#&hhhj4&hKubj)}(h h]h }(hjg&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#&hhhj4&hKubj)}(hjh]h*}(hju&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#&hhhj4&hKubj-)}(hpci_create_sloth]j3)}(hjd&h]hpci_create_slot}(hj&hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj#&hhhj4&hKubjN)}(hU(struct pci_bus *parent, int slot_nr, const char *name, struct hotplug_slot *hotplug)h](jT)}(hstruct pci_bus *parenth](jZ)}(hj]h]hstruct}(hj&hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj&hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj&modnameN classnameNjj)}j]jb&c.pci_create_slotasbuh1hhj&ubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj3)}(hparenth]hparent}(hj&hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj&ubjT)}(h int slot_nrh](h)}(hinth]hint}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj 'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj 'ubj3)}(hslot_nrh]hslot_nr}(hj-'hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj 'ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj&ubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hjF'hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjB'ubj)}(h h]h }(hjS'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjB'ubh)}(hcharh]hchar}(hja'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjB'ubj)}(h h]h }(hjo'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjB'ubj)}(hjh]h*}(hj}'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjB'ubj3)}(hnameh]hname}(hj'hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjB'ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj&ubjT)}(hstruct hotplug_slot *hotplugh](jZ)}(hj]h]hstruct}(hj'hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubh)}(hhh]j3)}(h hotplug_sloth]h hotplug_slot}(hj'hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj'ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj'modnameN classnameNjj)}j]jb&c.pci_create_slotasbuh1hhj'ubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj3)}(hhotplugh]hhotplug}(hj'hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj'ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj&ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj#&hhhj4&hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj&hhhj4&hKubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj4&hKhj&hhubj)}(hhh]j)}(h2create or increment refcount for physical PCI sloth]h2create or increment refcount for physical PCI slot}(hj$(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj!(hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj4&hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<(jj<(jjjuh1hhhhhhNhNubj)}(hX **Parameters** ``struct pci_bus *parent`` struct pci_bus of parent bridge ``int slot_nr`` PCI_SLOT(pci_dev->devfn), PCI_SLOT_PLACEHOLDER for placeholder, or PCI_SLOT_ALL_DEVICES ``const char *name`` user visible string presented in /sys/bus/pci/slots/ ``struct hotplug_slot *hotplug`` set if caller is hotplug driver, NULL otherwise **Description** PCI slots have first class attributes such as address, speed, width, and a :c:type:`struct pci_slot ` is used to manage them. This interface will either return a new :c:type:`struct pci_slot ` to the caller, or if the pci_slot already exists, its refcount will be incremented. Slots are uniquely identified by a **pci_bus**, **slot_nr** tuple. There are known platforms with broken firmware that assign the same name to multiple slots. Workaround these broken platforms by renaming the slots on behalf of the caller. If firmware assigns name N to multiple slots: The first slot is assigned N The second slot is assigned N-1 The third slot is assigned N-2 etc. Placeholder slots: In most cases, **pci_bus**, **slot_nr** will be sufficient to uniquely identify a slot. There is one notable exception - pSeries (rpaphp), where the **slot_nr** cannot be determined until a device is actually inserted into the slot. In this scenario, the caller may pass PCI_SLOT_PLACEHOLDER for **slot_nr**. The following semantics are imposed when the caller passes **slot_nr** == PCI_SLOT_PLACEHOLDER. First, we no longer check for an existing ``struct`` pci_slot, as there may be many slots with **slot_nr** of PCI_SLOT_PLACEHOLDER. The other change in semantics is user-visible, which is the 'address' parameter presented in sysfs will consist solely of a dddd:bb tuple, where dddd is the PCI domain of the ``struct`` pci_bus and bb is the bus number. In other words, the devfn of the 'placeholder' slot will not be displayed. Bus-wide slots: For PCIe hotplug, the physical slot encompasses the entire secondary bus, not just a single device number. If the device supports ARI and ARI Forwarding is enabled in the upstream bridge, a multi-function device may include functions that appear to have several different device numbers, i.e., PCI_SLOT() values. Pass **slot_nr** == PCI_SLOT_ALL_DEVICES to create a slot that matches all devices on the bus. Unlike placeholder slots, bus-wide slots go through normal slot lookup and reuse existing slots if present.h](j)}(h**Parameters**h]j&)}(hjF(h]h Parameters}(hjH(hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjD(ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj@(ubj<)}(hhh](jA)}(h;``struct pci_bus *parent`` struct pci_bus of parent bridge h](jG)}(h``struct pci_bus *parent``h]jM)}(hje(h]hstruct pci_bus *parent}(hjg(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjc(ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj_(ubjc)}(hhh]j)}(hstruct pci_bus of parent bridgeh]hstruct pci_bus of parent bridge}(hj~(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz(hKhj{(ubah}(h]h ]h"]h$]h&]uh1jbhj_(ubeh}(h]h ]h"]h$]h&]uh1j@hjz(hKhj\(ubjA)}(hh``int slot_nr`` PCI_SLOT(pci_dev->devfn), PCI_SLOT_PLACEHOLDER for placeholder, or PCI_SLOT_ALL_DEVICES h](jG)}(h``int slot_nr``h]jM)}(hj(h]h int slot_nr}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj(ubjc)}(hhh]j)}(hWPCI_SLOT(pci_dev->devfn), PCI_SLOT_PLACEHOLDER for placeholder, or PCI_SLOT_ALL_DEVICESh]hWPCI_SLOT(pci_dev->devfn), PCI_SLOT_PLACEHOLDER for placeholder, or PCI_SLOT_ALL_DEVICES}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj(ubah}(h]h ]h"]h$]h&]uh1jbhj(ubeh}(h]h ]h"]h$]h&]uh1j@hj(hKhj\(ubjA)}(hP``const char *name`` user visible string presented in /sys/bus/pci/slots/ h](jG)}(h``const char *name``h]jM)}(hj(h]hconst char *name}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj(ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj(ubjc)}(hhh]j)}(h:user visible string presented in /sys/bus/pci/slots/h]h:user visible string presented in /sys/bus/pci/slots/}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(hKhj(ubah}(h]h ]h"]h$]h&]uh1jbhj(ubeh}(h]h ]h"]h$]h&]uh1j@hj(hKhj\(ubjA)}(hQ``struct hotplug_slot *hotplug`` set if caller is hotplug driver, NULL otherwise h](jG)}(h ``struct hotplug_slot *hotplug``h]jM)}(hj)h]hstruct hotplug_slot *hotplug}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj)ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj )ubjc)}(hhh]j)}(h/set if caller is hotplug driver, NULL otherwiseh]h/set if caller is hotplug driver, NULL otherwise}(hj*)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&)hKhj')ubah}(h]h ]h"]h$]h&]uh1jbhj )ubeh}(h]h ]h"]h$]h&]uh1j@hj&)hKhj\(ubeh}(h]h ]h"]h$]h&]uh1j;hj@(ubj)}(h**Description**h]j&)}(hjL)h]h Description}(hjN)hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjJ)ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj@(ubj)}(hX(PCI slots have first class attributes such as address, speed, width, and a :c:type:`struct pci_slot ` is used to manage them. This interface will either return a new :c:type:`struct pci_slot ` to the caller, or if the pci_slot already exists, its refcount will be incremented.h](hKPCI slots have first class attributes such as address, speed, width, and a }(hjb)hhhNhNubh)}(h$:c:type:`struct pci_slot `h]jM)}(hjl)h]hstruct pci_slot}(hjn)hhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jLhjj)ubah}(h]h ]h"]h$]h&]refdocdriver-api/pci/pci refdomainjreftypetype refexplicitrefwarnjj)}j]sb reftargetpci_slotuh1hhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhjb)ubhA is used to manage them. This interface will either return a new }(hjb)hhhNhNubh)}(h$:c:type:`struct pci_slot `h]jM)}(hj)h]hstruct pci_slot}(hj)hhhNhNubah}(h]h ](jx)jc-typeeh"]h$]h&]uh1jLhj)ubah}(h]h ]h"]h$]h&]refdocj) refdomainjreftypetype refexplicitrefwarnjj)j)pci_slotuh1hhj)hKhjb)ubhT to the caller, or if the pci_slot already exists, its refcount will be incremented.}(hjb)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj)hKhj@(ubj)}(hBSlots are uniquely identified by a **pci_bus**, **slot_nr** tuple.h](h#Slots are uniquely identified by a }(hj)hhhNhNubj&)}(h **pci_bus**h]hpci_bus}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj)ubh, }(hj)hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj)ubh tuple.}(hj)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj@(ubj)}(hThere are known platforms with broken firmware that assign the same name to multiple slots. Workaround these broken platforms by renaming the slots on behalf of the caller. If firmware assigns name N to multiple slots:h]hThere are known platforms with broken firmware that assign the same name to multiple slots. Workaround these broken platforms by renaming the slots on behalf of the caller. If firmware assigns name N to multiple slots:}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj@(ubj)}(h`The first slot is assigned N The second slot is assigned N-1 The third slot is assigned N-2 etc.h]h`The first slot is assigned N The second slot is assigned N-1 The third slot is assigned N-2 etc.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj@(ubj)}(hXGPlaceholder slots: In most cases, **pci_bus**, **slot_nr** will be sufficient to uniquely identify a slot. There is one notable exception - pSeries (rpaphp), where the **slot_nr** cannot be determined until a device is actually inserted into the slot. In this scenario, the caller may pass PCI_SLOT_PLACEHOLDER for **slot_nr**.h](h"Placeholder slots: In most cases, }(hj*hhhNhNubj&)}(h **pci_bus**h]hpci_bus}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj*ubh, }(hj*hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hj(*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj*ubhn will be sufficient to uniquely identify a slot. There is one notable exception - pSeries (rpaphp), where the }(hj*hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hj:*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj*ubh cannot be determined until a device is actually inserted into the slot. In this scenario, the caller may pass PCI_SLOT_PLACEHOLDER for }(hj*hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hjL*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj*ubh.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj@(ubj)}(hX The following semantics are imposed when the caller passes **slot_nr** == PCI_SLOT_PLACEHOLDER. First, we no longer check for an existing ``struct`` pci_slot, as there may be many slots with **slot_nr** of PCI_SLOT_PLACEHOLDER. The other change in semantics is user-visible, which is the 'address' parameter presented in sysfs will consist solely of a dddd:bb tuple, where dddd is the PCI domain of the ``struct`` pci_bus and bb is the bus number. In other words, the devfn of the 'placeholder' slot will not be displayed.h](h;The following semantics are imposed when the caller passes }(hje*hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hjm*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hje*ubhD == PCI_SLOT_PLACEHOLDER. First, we no longer check for an existing }(hje*hhhNhNubjM)}(h ``struct``h]hstruct}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhje*ubh+ pci_slot, as there may be many slots with }(hje*hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hje*ubh of PCI_SLOT_PLACEHOLDER. The other change in semantics is user-visible, which is the ‘address’ parameter presented in sysfs will consist solely of a dddd:bb tuple, where dddd is the PCI domain of the }(hje*hhhNhNubjM)}(h ``struct``h]hstruct}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhje*ubhq pci_bus and bb is the bus number. In other words, the devfn of the ‘placeholder’ slot will not be displayed.}(hje*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj@(ubj)}(hXBus-wide slots: For PCIe hotplug, the physical slot encompasses the entire secondary bus, not just a single device number. If the device supports ARI and ARI Forwarding is enabled in the upstream bridge, a multi-function device may include functions that appear to have several different device numbers, i.e., PCI_SLOT() values. Pass **slot_nr** == PCI_SLOT_ALL_DEVICES to create a slot that matches all devices on the bus. Unlike placeholder slots, bus-wide slots go through normal slot lookup and reuse existing slots if present.h](hXOBus-wide slots: For PCIe hotplug, the physical slot encompasses the entire secondary bus, not just a single device number. If the device supports ARI and ARI Forwarding is enabled in the upstream bridge, a multi-function device may include functions that appear to have several different device numbers, i.e., PCI_SLOT() values. Pass }(hj*hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj*ubh == PCI_SLOT_ALL_DEVICES to create a slot that matches all devices on the bus. Unlike placeholder slots, bus-wide slots go through normal slot lookup and reuse existing slots if present.}(hj*hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMhj@(ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_destroy_slot (C function)c.pci_destroy_slothNtauh1hhhhhhNhNubh)}(hhh](h)}(h-void pci_destroy_slot (struct pci_slot *slot)h]h)}(h,void pci_destroy_slot(struct pci_slot *slot)h](h)}(hvoidh]hvoid}(hj*hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj*hhhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMiubj)}(h h]h }(hj +hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj*hhhj +hMiubj-)}(hpci_destroy_sloth]j3)}(hpci_destroy_sloth]hpci_destroy_slot}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj+ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj*hhhj +hMiubjN)}(h(struct pci_slot *slot)h]jT)}(hstruct pci_slot *sloth](jZ)}(hj]h]hstruct}(hj:+hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj6+ubj)}(h h]h }(hjG+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6+ubh)}(hhh]j3)}(hpci_sloth]hpci_slot}(hjX+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjU+ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZ+modnameN classnameNjj)}j]j)}jj +sbc.pci_destroy_slotasbuh1hhj6+ubj)}(h h]h }(hjx+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj6+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6+ubj3)}(hsloth]hslot}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj6+ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj2+ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj*hhhj +hMiubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj*hhhj +hMiubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1hhj +hMihj*hhubj)}(hhh]j)}(h(decrement refcount for physical PCI sloth]h(decrement refcount for physical PCI slot}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMihj+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj +hMiubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_slot *slot`` struct pci_slot to decrement **Description** ``struct`` pci_slot is refcounted, so destroying them is really easy; we just call kobject_put on its kobj and let our release methods do the rest.h](j)}(h**Parameters**h]j&)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj+ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMmhj+ubj<)}(hhh]jA)}(h7``struct pci_slot *slot`` struct pci_slot to decrement h](jG)}(h``struct pci_slot *slot``h]jM)}(hj+h]hstruct pci_slot *slot}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj+ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMjhj+ubjc)}(hhh]j)}(hstruct pci_slot to decrementh]hstruct pci_slot to decrement}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hMjhj,ubah}(h]h ]h"]h$]h&]uh1jbhj+ubeh}(h]h ]h"]h$]h&]uh1j@hj,hMjhj+ubah}(h]h ]h"]h$]h&]uh1j;hj+ubj)}(h**Description**h]j&)}(hj9,h]h Description}(hj;,hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj7,ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMlhj+ubj)}(h``struct`` pci_slot is refcounted, so destroying them is really easy; we just call kobject_put on its kobj and let our release methods do the rest.h](jM)}(h ``struct``h]hstruct}(hjS,hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjO,ubh pci_slot is refcounted, so destroying them is really easy; we just call kobject_put on its kobj and let our release methods do the rest.}(hjO,hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMkhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،$pci_rebar_bytes_to_size (C function)c.pci_rebar_bytes_to_sizehNtauh1hhhhhhNhNubh)}(hhh](h)}(h'int pci_rebar_bytes_to_size (u64 bytes)h]h)}(h&int pci_rebar_bytes_to_size(u64 bytes)h](h)}(hinth]hint}(hj,hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj,hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,hhhj,hKubj-)}(hpci_rebar_bytes_to_sizeh]j3)}(hpci_rebar_bytes_to_sizeh]hpci_rebar_bytes_to_size}(hj,hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj,hhhj,hKubjN)}(h (u64 bytes)h]jT)}(h u64 bytesh](h)}(hhh]j3)}(hu64h]hu64}(hj,hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,modnameN classnameNjj)}j]j)}jj,sbc.pci_rebar_bytes_to_sizeasbuh1hhj,ubj)}(h h]h }(hj,hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,ubj3)}(hbytesh]hbytes}(hj,hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj,hhhj,hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj,hhhj,hKubah}(h]j,ah ](jjeh"]h$]h&]jj)jhuh1hhj,hKhj,hhubj)}(hhh]j)}(h%Convert size in bytes to PCI BAR Sizeh]h%Convert size in bytes to PCI BAR Size}(hj$-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj!-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj<-jj<-jjjuh1hhhhhhNhNubj)}(h**Parameters** ``u64 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 (0=1MB, 31=128TB)h](j)}(h**Parameters**h]j&)}(hjF-h]h Parameters}(hjH-hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjD-ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj@-ubj<)}(hhh]jA)}(h``u64 bytes`` size in bytes h](jG)}(h ``u64 bytes``h]jM)}(hje-h]h u64 bytes}(hjg-hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjc-ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj_-ubjc)}(hhh]j)}(h size in bytesh]h size in bytes}(hj~-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz-hKhj{-ubah}(h]h ]h"]h$]h&]uh1jbhj_-ubeh}(h]h ]h"]h$]h&]uh1j@hjz-hKhj\-ubah}(h]h ]h"]h$]h&]uh1j;hj@-ubj)}(h**Description**h]j&)}(hj-h]h Description}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj-ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj@-ubj)}(h`Convert size in bytes to encoded BAR Size in Resizable BAR Capability (PCIe r6.2, sec. 7.8.6.3).h]h`Convert size in bytes to encoded BAR Size in Resizable BAR Capability (PCIe r6.2, sec. 7.8.6.3).}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj@-ubj)}(h **Return**h]j&)}(hj-h]hReturn}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj-ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj@-ubj)}(h>encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB)h]h>encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB)}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj@-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،$pci_rebar_size_to_bytes (C function)c.pci_rebar_size_to_byteshNtauh1hhhhhhNhNubh)}(hhh](h)}(h2resource_size_t pci_rebar_size_to_bytes (int size)h]h)}(h1resource_size_t pci_rebar_size_to_bytes(int size)h](h)}(hhh]j3)}(hresource_size_th]hresource_size_t}(hj.hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj .ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj.modnameN classnameNjj)}j]j)}jpci_rebar_size_to_bytessbc.pci_rebar_size_to_bytesasbuh1hhj.hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chK)ubj)}(h h]h }(hj1.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.hhhj0.hK)ubj-)}(hpci_rebar_size_to_bytesh]j3)}(hj-.h]hpci_rebar_size_to_bytes}(hjC.hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj?.ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj.hhhj0.hK)ubjN)}(h (int size)h]jT)}(hint sizeh](h)}(hinth]hint}(hj^.hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZ.ubj)}(h h]h }(hjl.hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZ.ubj3)}(hsizeh]hsize}(hjz.hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjZ.ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjV.ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj.hhhj0.hK)ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj.hhhj0.hK)ubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1hhj0.hK)hj.hhubj)}(hhh]j)}(h)Convert encoded BAR Size to size in bytesh]h)Convert encoded BAR Size to size in bytes}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chK)hj.hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj0.hK)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.jj.jjjuh1hhhhhhNhNubj)}(h|**Parameters** ``int size`` encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB) **Return** BAR size in bytesh](j)}(h**Parameters**h]j&)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj.ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chK-hj.ubj<)}(hhh]jA)}(hL``int size`` encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB) h](jG)}(h ``int size``h]jM)}(hj.h]hint size}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chK*hj.ubjc)}(hhh]j)}(h>encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB)h]h>encoded BAR Size as defined in the PCIe spec (0=1MB, 31=128TB)}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.hK*hj.ubah}(h]h ]h"]h$]h&]uh1jbhj.ubeh}(h]h ]h"]h$]h&]uh1j@hj.hK*hj.ubah}(h]h ]h"]h$]h&]uh1j;hj.ubj)}(h **Return**h]j&)}(hj /h]hReturn}(hj"/hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj/ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chK,hj.ubj)}(hBAR size in bytesh]hBAR size in bytes}(hj6/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chK,hj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،)pci_rebar_get_possible_sizes (C function)c.pci_rebar_get_possible_sizeshNtauh1hhhhhhNhNubh)}(hhh](h)}(h@u64 pci_rebar_get_possible_sizes (struct pci_dev *pdev, int bar)h]h)}(h?u64 pci_rebar_get_possible_sizes(struct pci_dev *pdev, int bar)h](h)}(hhh]j3)}(hu64h]hu64}(hjh/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hje/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjj/modnameN classnameNjj)}j]j)}jpci_rebar_get_possible_sizessbc.pci_rebar_get_possible_sizesasbuh1hhja/hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKcubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhja/hhhj/hKcubj-)}(hpci_rebar_get_possible_sizesh]j3)}(hj/h]hpci_rebar_get_possible_sizes}(hj/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hja/hhhj/hKcubjN)}(h(struct pci_dev *pdev, int bar)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj/hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/modnameN classnameNjj)}j]j/c.pci_rebar_get_possible_sizesasbuh1hhj/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj3)}(hpdevh]hpdev}(hj0hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj/ubjT)}(hint barh](h)}(hinth]hint}(hj'0hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#0ubj)}(h h]h }(hj50hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#0ubj3)}(hbarh]hbar}(hjC0hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#0ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj/ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhja/hhhj/hKcubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj]/hhhj/hKcubah}(h]jX/ah ](jjeh"]h$]h&]jj)jhuh1hhj/hKchjZ/hhubj)}(hhh]j)}(h$get possible sizes for Resizable BARh]h$get possible sizes for Resizable BAR}(hjm0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKchjj0hhubah}(h]h ]h"]h$]h&]uh1jhjZ/hhhj/hKcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj0jj0jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` PCI device ``int bar`` BAR to query **Description** Get the possible sizes of a resizable BAR as bitmask. **Return** A bitmask of possible sizes (bit 0=1MB, bit 31=128TB), or ``0`` if BAR isn't resizable.h](j)}(h**Parameters**h]j&)}(hj0h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj0ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.c-hKghj0ubj<)}(hhh](jA)}(h$``struct pci_dev *pdev`` PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj0h]hstruct pci_dev *pdev}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKdhj0ubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hKdhj0ubah}(h]h ]h"]h$]h&]uh1jbhj0ubeh}(h]h ]h"]h$]h&]uh1j@hj0hKdhj0ubjA)}(h``int bar`` BAR to query h](jG)}(h ``int bar``h]jM)}(hj0h]hint bar}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKehj0ubjc)}(hhh]j)}(h BAR to queryh]h BAR to query}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hKehj0ubah}(h]h ]h"]h$]h&]uh1jbhj0ubeh}(h]h ]h"]h$]h&]uh1j@hj0hKehj0ubeh}(h]h ]h"]h$]h&]uh1j;hj0ubj)}(h**Description**h]j&)}(hj"1h]h Description}(hj$1hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj 1ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKghj0ubj)}(h5Get the possible sizes of a resizable BAR as bitmask.h]h5Get the possible sizes of a resizable BAR as bitmask.}(hj81hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKfhj0ubj)}(h **Return**h]j&)}(hjI1h]hReturn}(hjK1hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjG1ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhhj0ubj)}(hWA bitmask of possible sizes (bit 0=1MB, bit 31=128TB), or ``0`` if BAR isn't resizable.h](h:A bitmask of possible sizes (bit 0=1MB, bit 31=128TB), or }(hj_1hhhNhNubjM)}(h``0``h]h0}(hjg1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_1ubh if BAR isn’t resizable.}(hj_1hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKihj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،%pci_rebar_size_supported (C function)c.pci_rebar_size_supportedhNtauh1hhhhhhNhNubh)}(hhh](h)}(hGbool pci_rebar_size_supported (struct pci_dev *pdev, int bar, int size)h]h)}(hFbool pci_rebar_size_supported(struct pci_dev *pdev, int bar, int size)h](h)}(hj'4h]hbool}(hj1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1hhhj1hKubj-)}(hpci_rebar_size_supportedh]j3)}(hpci_rebar_size_supportedh]hpci_rebar_size_supported}(hj1hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj1hhhj1hKubjN)}(h)(struct pci_dev *pdev, int bar, int size)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj1hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj1hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1modnameN classnameNjj)}j]j)}jj1sbc.pci_rebar_size_supportedasbuh1hhj1ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hj(2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj3)}(hpdevh]hpdev}(hj52hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj1ubjT)}(hint barh](h)}(hinth]hint}(hjN2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJ2ubj)}(h h]h }(hj\2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJ2ubj3)}(hbarh]hbar}(hjj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJ2ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj1ubjT)}(hint sizeh](h)}(hinth]hint}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubj)}(h h]h }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj3)}(hsizeh]hsize}(hj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj1ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj1hhhj1hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj1hhhj1hKubah}(h]j1ah ](jjeh"]h$]h&]jj)jhuh1hhj1hKhj1hhubj)}(hhh]j)}(h"check if size is supported for BARh]h"check if size is supported for BAR}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj2hhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2jj2jjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` PCI device ``int bar`` BAR to check ``int size`` encoded size as defined in the PCIe spec (0=1MB, 31=128TB) **Return** ``true`` if **bar** is resizable and **size** is supported, otherwise ``false``.h](j)}(h**Parameters**h]j&)}(hj2h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj2ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj2ubj<)}(hhh](jA)}(h$``struct pci_dev *pdev`` PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj 3h]hstruct pci_dev *pdev}(hj 3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj3ubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hj#3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hKhj 3ubah}(h]h ]h"]h$]h&]uh1jbhj3ubeh}(h]h ]h"]h$]h&]uh1j@hj3hKhj3ubjA)}(h``int bar`` BAR to check h](jG)}(h ``int bar``h]jM)}(hjC3h]hint bar}(hjE3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjA3ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj=3ubjc)}(hhh]j)}(h BAR to checkh]h BAR to check}(hj\3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX3hKhjY3ubah}(h]h ]h"]h$]h&]uh1jbhj=3ubeh}(h]h ]h"]h$]h&]uh1j@hjX3hKhj3ubjA)}(hH``int size`` encoded size as defined in the PCIe spec (0=1MB, 31=128TB) h](jG)}(h ``int size``h]jM)}(hj|3h]hint size}(hj~3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjz3ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjv3ubjc)}(hhh]j)}(h:encoded size as defined in the PCIe spec (0=1MB, 31=128TB)h]h:encoded size as defined in the PCIe spec (0=1MB, 31=128TB)}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3hKhj3ubah}(h]h ]h"]h$]h&]uh1jbhjv3ubeh}(h]h ]h"]h$]h&]uh1j@hj3hKhj3ubeh}(h]h ]h"]h$]h&]uh1j;hj2ubj)}(h **Return**h]j&)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj2ubj)}(hP``true`` if **bar** is resizable and **size** is supported, otherwise ``false``.h](jM)}(h``true``h]htrue}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3ubh if }(hj3hhhNhNubj&)}(h**bar**h]hbar}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3ubh is resizable and }(hj3hhhNhNubj&)}(h**size**h]hsize}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3ubh is supported, otherwise }(hj3hhhNhNubjM)}(h ``false``h]hfalse}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3ubh.}(hj3hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj2ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_rebar_get_max_size (C function)c.pci_rebar_get_max_sizehNtauh1hhhhhhNhNubh)}(hhh](h)}(h:int pci_rebar_get_max_size (struct pci_dev *pdev, int bar)h]h)}(h9int pci_rebar_get_max_size(struct pci_dev *pdev, int bar)h](h)}(hinth]hint}(hj@4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<4hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKubj)}(h h]h }(hjO4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<4hhhjN4hKubj-)}(hpci_rebar_get_max_sizeh]j3)}(hpci_rebar_get_max_sizeh]hpci_rebar_get_max_size}(hja4hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj]4ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj<4hhhjN4hKubjN)}(h(struct pci_dev *pdev, int bar)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj}4hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjy4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjy4ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj4hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]j)}jjc4sbc.pci_rebar_get_max_sizeasbuh1hhjy4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjy4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy4ubj3)}(hpdevh]hpdev}(hj4hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjy4ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShju4ubjT)}(hint barh](h)}(hinth]hint}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj4ubj)}(h h]h }(hj4hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4ubj3)}(hbarh]hbar}(hj 5hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj4ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShju4ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj<4hhhjN4hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj84hhhjN4hKubah}(h]j34ah ](jjeh"]h$]h&]jj)jhuh1hhjN4hKhj54hhubj)}(hhh]j)}(h'get the maximum supported size of a BARh]h'get the maximum supported size of a BAR}(hj55hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj25hhubah}(h]h ]h"]h$]h&]uh1jhj54hhhjN4hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjM5jjM5jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device ``int bar`` BAR to query **Description** Get the largest supported size of a resizable BAR as a size. **Return** the encoded maximum BAR size as defined in the PCIe spec (0=1MB, 31=128TB), or ``-NOENT`` on error.h](j)}(h**Parameters**h]j&)}(hjW5h]h Parameters}(hjY5hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjU5ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjQ5ubj<)}(hhh](jA)}(h$``struct pci_dev *pdev`` PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjv5h]hstruct pci_dev *pdev}(hjx5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjt5ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjp5ubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1jbhjp5ubeh}(h]h ]h"]h$]h&]uh1j@hj5hKhjm5ubjA)}(h``int bar`` BAR to query h](jG)}(h ``int bar``h]jM)}(hj5h]hint bar}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj5ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj5ubjc)}(hhh]j)}(h BAR to queryh]h BAR to query}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5hKhj5ubah}(h]h ]h"]h$]h&]uh1jbhj5ubeh}(h]h ]h"]h$]h&]uh1j@hj5hKhjm5ubeh}(h]h ]h"]h$]h&]uh1j;hjQ5ubj)}(h**Description**h]j&)}(hj5h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj5ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjQ5ubj)}(h=ubj)}(h h]h }(hjO=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>=ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj`=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj]=ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjb=modnameN classnameNjj)}j]j)}jj(=sb c.pci_map_romasbuh1hhj>=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>=ubj3)}(hpdevh]hpdev}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>=ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:=ubjT)}(h size_t *sizeh](h)}(hhh]j3)}(hsize_th]hsize_t}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj=modnameN classnameNjj)}j]j|= c.pci_map_romasbuh1hhj=ubj)}(h h]h }(hj=hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj3)}(hsizeh]hsize}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj=ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:=ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj<hhhj<hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj<hhhj<hKubah}(h]j<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hKhj<hhubj)}(hhh]j)}(hmap a PCI ROM to kernel spaceh]hmap a PCI ROM to kernel space}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhj>hhubah}(h]h ]h"]h$]h&]uh1jhj<hhhj<hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj2>jj2>jjjuh1hhhhhhNhNubj)}(hXL**Parameters** ``struct pci_dev *pdev`` pointer to pci device struct ``size_t *size`` pointer to receive size of pci window over ROM **Return** kernel virtual pointer to image of ROM **Description** Map a PCI ROM into kernel space. If ROM is boot video ROM, the shadow BIOS copy will be returned instead of the actual ROM.h](j)}(h**Parameters**h]j&)}(hj<>h]h Parameters}(hj>>hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj:>ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhj6>ubj<)}(hhh](jA)}(h6``struct pci_dev *pdev`` pointer to pci device struct h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj[>h]hstruct pci_dev *pdev}(hj]>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjY>ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhjU>ubjc)}(hhh]j)}(hpointer to pci device structh]hpointer to pci device struct}(hjt>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp>hKhjq>ubah}(h]h ]h"]h$]h&]uh1jbhjU>ubeh}(h]h ]h"]h$]h&]uh1j@hjp>hKhjR>ubjA)}(h@``size_t *size`` pointer to receive size of pci window over ROM h](jG)}(h``size_t *size``h]jM)}(hj>h]h size_t *size}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhj>ubjc)}(hhh]j)}(h.pointer to receive size of pci window over ROMh]h.pointer to receive size of pci window over ROM}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>hKhj>ubah}(h]h ]h"]h$]h&]uh1jbhj>ubeh}(h]h ]h"]h$]h&]uh1j@hj>hKhjR>ubeh}(h]h ]h"]h$]h&]uh1j;hj6>ubj)}(h **Return**h]j&)}(hj>h]hReturn}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj>ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhj6>ubj)}(h&kernel virtual pointer to image of ROMh]h&kernel virtual pointer to image of ROM}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhj6>ubj)}(h**Description**h]j&)}(hj>h]h Description}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj>ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhj6>ubj)}(h{Map a PCI ROM into kernel space. If ROM is boot video ROM, the shadow BIOS copy will be returned instead of the actual ROM.h]h{Map a PCI ROM into kernel space. If ROM is boot video ROM, the shadow BIOS copy will be returned instead of the actual ROM.}(hj ?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhj6>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_unmap_rom (C function)c.pci_unmap_romhNtauh1hhhhhhNhNubh)}(hhh](h)}(h``void __iomem *rom`` virtual address of the previous mapping h](jG)}(h``void __iomem *rom``h]jM)}(hj@h]hvoid __iomem *rom}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chMhj@ubjc)}(hhh]j)}(h'virtual address of the previous mappingh]h'virtual address of the previous mapping}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jbhj@ubeh}(h]h ]h"]h$]h&]uh1j@hj@hMhj@ubeh}(h]h ]h"]h$]h&]uh1j;hjk@ubj)}(h**Description**h]j&)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjAubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chM hjk@ubj)}(h+Remove a mapping of a previously mapped ROMh]h+Remove a mapping of a previously mapped ROM}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chMhjk@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_iov_get_pf_drvdata (C function)c.pci_iov_get_pf_drvdatahNtauh1hhhhhhNhNubh)}(hhh](h)}(hQvoid * pci_iov_get_pf_drvdata (struct pci_dev *dev, struct pci_driver *pf_driver)h]h)}(hOvoid *pci_iov_get_pf_drvdata(struct pci_dev *dev, struct pci_driver *pf_driver)h](h)}(hvoidh]hvoid}(hjIAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEAhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK7ubj)}(h h]h }(hjXAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEAhhhjWAhK7ubj)}(hjh]h*}(hjfAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEAhhhjWAhK7ubj-)}(hpci_iov_get_pf_drvdatah]j3)}(hpci_iov_get_pf_drvdatah]hpci_iov_get_pf_drvdata}(hjwAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsAubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjEAhhhjWAhK7ubjN)}(h3(struct pci_dev *dev, struct pci_driver *pf_driver)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjAhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j)}jjyAsbc.pci_iov_get_pf_drvdataasbuh1hhjAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj3)}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjAubjT)}(hstruct pci_driver *pf_driverh](jZ)}(hj]h]hstruct}(hjBhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j3)}(h pci_driverh]h pci_driver}(hj#BhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj Bubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj%BmodnameN classnameNjj)}j]jAc.pci_iov_get_pf_drvdataasbuh1hhjBubj)}(h h]h }(hjABhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hjOBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj3)}(h pf_driverh]h pf_driver}(hj\BhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjAubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjEAhhhjWAhK7ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjAAhhhjWAhK7ubah}(h]jAhhubj)}(hhh]j)}(hReturn the drvdata of a PFh]hReturn the drvdata of a PF}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK7hjBhhubah}(h]h ]h"]h$]h&]uh1jhj>AhhhjWAhK7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1hhhhhhNhNubj)}(hXJ**Parameters** ``struct pci_dev *dev`` VF pci_dev ``struct pci_driver *pf_driver`` Device driver required to own the PF **Description** This must be called from a context that ensures that a VF driver is attached. The value returned is invalid once the VF driver completes its remove() callback. Locking is achieved by the driver core. A VF driver cannot be probed until pci_enable_sriov() is called and pci_disable_sriov() does not return until all VF drivers have completed their remove(). The PF driver must call pci_disable_sriov() before it begins to destroy the drvdata.h](j)}(h**Parameters**h]j&)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjBubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK;hjBubj<)}(hhh](jA)}(h#``struct pci_dev *dev`` VF pci_dev h](jG)}(h``struct pci_dev *dev``h]jM)}(hjBh]hstruct pci_dev *dev}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK8hjBubjc)}(hhh]j)}(h VF pci_devh]h VF pci_dev}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhK8hjBubah}(h]h ]h"]h$]h&]uh1jbhjBubeh}(h]h ]h"]h$]h&]uh1j@hjBhK8hjBubjA)}(hF``struct pci_driver *pf_driver`` Device driver required to own the PF h](jG)}(h ``struct pci_driver *pf_driver``h]jM)}(hjCh]hstruct pci_driver *pf_driver}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK9hjBubjc)}(hhh]j)}(h$Device driver required to own the PFh]h$Device driver required to own the PF}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChK9hjCubah}(h]h ]h"]h$]h&]uh1jbhjBubeh}(h]h ]h"]h$]h&]uh1j@hjChK9hjBubeh}(h]h ]h"]h$]h&]uh1j;hjBubj)}(h**Description**h]j&)}(hj;Ch]h Description}(hj=ChhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj9Cubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK;hjBubj)}(hThis must be called from a context that ensures that a VF driver is attached. The value returned is invalid once the VF driver completes its remove() callback.h]hThis must be called from a context that ensures that a VF driver is attached. The value returned is invalid once the VF driver completes its remove() callback.}(hjQChhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK:hjBubj)}(hLocking is achieved by the driver core. A VF driver cannot be probed until pci_enable_sriov() is called and pci_disable_sriov() does not return until all VF drivers have completed their remove().h]hLocking is achieved by the driver core. A VF driver cannot be probed until pci_enable_sriov() is called and pci_disable_sriov() does not return until all VF drivers have completed their remove().}(hj`ChhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK>hjBubj)}(hTThe PF driver must call pci_disable_sriov() before it begins to destroy the drvdata.h]hTThe PF driver must call pci_disable_sriov() before it begins to destroy the drvdata.}(hjoChhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chKBhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_enable_sriov (C function)c.pci_enable_sriovhNtauh1hhhhhhNhNubh)}(hhh](h)}(h9int pci_enable_sriov (struct pci_dev *dev, int nr_virtfn)h]h)}(h8int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn)h](h)}(hinth]hint}(hjChhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjChhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMubj)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjChMubj-)}(hpci_enable_sriovh]j3)}(hpci_enable_sriovh]hpci_enable_sriov}(hjChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjCubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjChhhjChMubjN)}(h$(struct pci_dev *dev, int nr_virtfn)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjChhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjCubj)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjCubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmodnameN classnameNjj)}j]j)}jjCsbc.pci_enable_sriovasbuh1hhjCubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjCubj)}(hjh]h*}(hj'DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj3)}(hdevh]hdev}(hj4DhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjCubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjCubjT)}(h int nr_virtfnh](h)}(hinth]hint}(hjMDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjIDubj)}(h h]h }(hj[DhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjIDubj3)}(h nr_virtfnh]h nr_virtfn}(hjiDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjIDubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjCubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjChhhjChMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjChhhjChMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1hhjChMhjChhubj)}(hhh]j)}(henable the SR-IOV capabilityh]henable the SR-IOV capability}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCI device ``int nr_virtfn`` number of virtual functions to enable **Description** Returns 0 on success, or negative on failure.h](j)}(h**Parameters**h]j&)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjDubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjDubj<)}(hhh](jA)}(h'``struct pci_dev *dev`` the PCI device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjDh]hstruct pci_dev *dev}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjDubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDhMhjDubah}(h]h ]h"]h$]h&]uh1jbhjDubeh}(h]h ]h"]h$]h&]uh1j@hjDhMhjDubjA)}(h8``int nr_virtfn`` number of virtual functions to enable h](jG)}(h``int nr_virtfn``h]jM)}(hj Eh]h int nr_virtfn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj Eubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjEubjc)}(hhh]j)}(h%number of virtual functions to enableh]h%number of virtual functions to enable}(hj&EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"EhMhj#Eubah}(h]h ]h"]h$]h&]uh1jbhjEubeh}(h]h ]h"]h$]h&]uh1j@hj"EhMhjDubeh}(h]h ]h"]h$]h&]uh1j;hjDubj)}(h**Description**h]j&)}(hjHEh]h Description}(hjJEhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjFEubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjDubj)}(h-Returns 0 on success, or negative on failure.h]h-Returns 0 on success, or negative on failure.}(hj^EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_disable_sriov (C function)c.pci_disable_sriovhNtauh1hhhhhhNhNubh)}(hhh](h)}(h,void pci_disable_sriov (struct pci_dev *dev)h]h)}(h+void pci_disable_sriov(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjEhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEhhhjEhMubj-)}(hpci_disable_sriovh]j3)}(hpci_disable_sriovh]hpci_disable_sriov}(hjEhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjEubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjEhhhjEhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjEhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjEubj)}(h h]h }(hjEhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjEhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjEubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEmodnameN classnameNjj)}j]j)}jjEsbc.pci_disable_sriovasbuh1hhjEubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjEubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj3)}(hdevh]hdev}(hj#FhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjEubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjEubah}(h]h ]h"]h$]h&]jKjLuh1jMhjEhhhjEhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjEhhhjEhMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1hhjEhMhjEhhubj)}(hhh]j)}(hdisable the SR-IOV capabilityh]hdisable the SR-IOV capability}(hjMFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjJFhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjeFjjeFjjjuh1hhhhhhNhNubj)}(h8**Parameters** ``struct pci_dev *dev`` the PCI deviceh](j)}(h**Parameters**h]j&)}(hjoFh]h Parameters}(hjqFhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjmFubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjiFubj<)}(hhh]jA)}(h&``struct pci_dev *dev`` the PCI deviceh](jG)}(h``struct pci_dev *dev``h]jM)}(hjFh]hstruct pci_dev *dev}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjFubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjFubah}(h]h ]h"]h$]h&]uh1jbhjFubeh}(h]h ]h"]h$]h&]uh1j@hjFhMhjFubah}(h]h ]h"]h$]h&]uh1j;hjiFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_num_vf (C function) c.pci_num_vfhNtauh1hhhhhhNhNubh)}(hhh](h)}(h$int pci_num_vf (struct pci_dev *dev)h]h)}(h#int pci_num_vf(struct pci_dev *dev)h](h)}(hinth]hint}(hjFhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjFhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFhhhjFhMubj-)}(h pci_num_vfh]j3)}(h pci_num_vfh]h pci_num_vf}(hj GhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjGubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjFhhhjFhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj%GhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj!Gubj)}(h h]h }(hj2GhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!Gubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjCGhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@Gubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEGmodnameN classnameNjj)}j]j)}jj Gsb c.pci_num_vfasbuh1hhj!Gubj)}(h h]h }(hjcGhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!Gubj)}(hjh]h*}(hjqGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!Gubj3)}(hdevh]hdev}(hj~GhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!Gubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjGubah}(h]h ]h"]h$]h&]jKjLuh1jMhjFhhhjFhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjFhhhjFhMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjFhMhjFhhubj)}(hhh]j)}(h?return number of VFs associated with a PF device_release_driverh]h?return number of VFs associated with a PF device_release_driver}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjGhhubah}(h]h ]h"]h$]h&]uh1jhjFhhhjFhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCI device **Description** Returns number of VFs, or 0 if SR-IOV is not enabled.h](j)}(h**Parameters**h]j&)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjGubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjGubj<)}(hhh]jA)}(h'``struct pci_dev *dev`` the PCI device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjGh]hstruct pci_dev *dev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjGubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMhjGubah}(h]h ]h"]h$]h&]uh1jbhjGubeh}(h]h ]h"]h$]h&]uh1j@hjGhMhjGubah}(h]h ]h"]h$]h&]uh1j;hjGubj)}(h**Description**h]j&)}(hj$Hh]h Description}(hj&HhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj"Hubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjGubj)}(h5Returns number of VFs, or 0 if SR-IOV is not enabled.h]h5Returns number of VFs, or 0 if SR-IOV is not enabled.}(hj:HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_vfs_assigned (C function)c.pci_vfs_assignedhNtauh1hhhhhhNhNubh)}(hhh](h)}(h*int pci_vfs_assigned (struct pci_dev *dev)h]h)}(h)int pci_vfs_assigned(struct pci_dev *dev)h](h)}(hinth]hint}(hjiHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjeHhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMubj)}(h h]h }(hjxHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeHhhhjwHhMubj-)}(hpci_vfs_assignedh]j3)}(hpci_vfs_assignedh]hpci_vfs_assigned}(hjHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjHubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjeHhhhjwHhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjHhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjHubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjHmodnameN classnameNjj)}j]j)}jjHsbc.pci_vfs_assignedasbuh1hhjHubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjHubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj3)}(hdevh]hdev}(hjHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjHubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjHubah}(h]h ]h"]h$]h&]jKjLuh1jMhjeHhhhjwHhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjaHhhhjwHhMubah}(h]j\Hah ](jjeh"]h$]h&]jj)jhuh1hhjwHhMhj^Hhhubj)}(hhh]j)}(h-returns number of VFs are assigned to a guesth]h-returns number of VFs are assigned to a guest}(hj)IhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhj&Ihhubah}(h]h ]h"]h$]h&]uh1jhj^HhhhjwHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAIjjAIjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCI device **Description** Returns number of VFs belonging to this device that are assigned to a guest. If device is not a physical function returns 0.h](j)}(h**Parameters**h]j&)}(hjKIh]h Parameters}(hjMIhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjIIubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjEIubj<)}(hhh]jA)}(h'``struct pci_dev *dev`` the PCI device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjjIh]hstruct pci_dev *dev}(hjlIhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhIubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjdIubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMhjIubah}(h]h ]h"]h$]h&]uh1jbhjdIubeh}(h]h ]h"]h$]h&]uh1j@hjIhMhjaIubah}(h]h ]h"]h$]h&]uh1j;hjEIubj)}(h**Description**h]j&)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjIubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjEIubj)}(h|Returns number of VFs belonging to this device that are assigned to a guest. If device is not a physical function returns 0.h]h|Returns number of VFs belonging to this device that are assigned to a guest. If device is not a physical function returns 0.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjEIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_sriov_set_totalvfs (C function)c.pci_sriov_set_totalvfshNtauh1hhhhhhNhNubh)}(hhh](h)}(hLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjLhhhj!LhMubj-)}(hpci_sriov_get_totalvfsh]j3)}(hpci_sriov_get_totalvfsh]hpci_sriov_get_totalvfs}(hjPLhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjLLubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjLhhhj!LhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjlLhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhLubj)}(h h]h }(hjyLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhLubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjLhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjLubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLmodnameN classnameNjj)}j]j)}jjRLsbc.pci_sriov_get_totalvfsasbuh1hhjhLubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhLubj3)}(hdevh]hdev}(hjLhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhLubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjdLubah}(h]h ]h"]h$]h&]jKjLuh1jMhjLhhhj!LhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj Lhhhj!LhMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhj!LhMhjLhhubj)}(hhh]jJ)}(hhh]jJ)}(h&get total VFs supported on this deviceh]j)}(hjLh]h&get total VFs supported on this device}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjLubah}(h]h ]h"]h$]h&]uh1jJhjLhhhjMhNubah}(h]h ]h"]h$]h&]jKjKuh1jJhjMhMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjLhhhj!LhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjMjjMjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCI PF device **Description** For a PCIe device with SRIOV support, return the PCIe SRIOV capability value of TotalVFs or the value of driver_max_VFs if the driver reduced it. Otherwise 0.h](j)}(h**Parameters**h]j&)}(hj#Mh]h Parameters}(hj%MhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj!Mubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjMubj<)}(hhh]jA)}(h*``struct pci_dev *dev`` the PCI PF device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjBMh]hstruct pci_dev *dev}(hjDMhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj@Mubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjhjPubj)}(h%0 on success, or negative on failure.h]h%0 on success, or negative on failure.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chM?hjPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،%pci_iov_vf_bar_get_sizes (C function)c.pci_iov_vf_bar_get_sizeshNtauh1hhhhhhNhNubh)}(hhh](h)}(hJu32 pci_iov_vf_bar_get_sizes (struct pci_dev *dev, int resno, int num_vfs)h]h)}(hIu32 pci_iov_vf_bar_get_sizes(struct pci_dev *dev, int resno, int num_vfs)h](h)}(hhh]j3)}(hu32h]hu32}(hj8RhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj5Rubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:RmodnameN classnameNjj)}j]j)}jpci_iov_vf_bar_get_sizessbc.pci_iov_vf_bar_get_sizesasbuh1hhj1RhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMQubj)}(h h]h }(hjZRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1RhhhjYRhMQubj-)}(hpci_iov_vf_bar_get_sizesh]j3)}(hjVRh]hpci_iov_vf_bar_get_sizes}(hjlRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhRubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj1RhhhjYRhMQubjN)}(h-(struct pci_dev *dev, int resno, int num_vfs)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjRhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjRmodnameN classnameNjj)}j]jTRc.pci_iov_vf_bar_get_sizesasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj3)}(hdevh]hdev}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjRubjT)}(h int resnoh](h)}(hinth]hint}(hjRhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjRubj)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj3)}(hresnoh]hresno}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjRubjT)}(h int num_vfsh](h)}(hinth]hint}(hj,ShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(Subj)}(h h]h }(hj:ShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(Subj3)}(hnum_vfsh]hnum_vfs}(hjHShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(Subeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjRubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj1RhhhjYRhMQubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj-RhhhjYRhMQubah}(h]j(Rah ](jjeh"]h$]h&]jj)jhuh1hhjYRhMQhj*Rhhubj)}(hhh]j)}(h1get VF BAR sizes allowing to create up to num_vfsh]h1get VF BAR sizes allowing to create up to num_vfs}(hjrShhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMQhjoShhubah}(h]h ]h"]h$]h&]uh1jhj*RhhhjYRhMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjSjjSjjjuh1hhhhhhNhNubj)}(hXl**Parameters** ``struct pci_dev *dev`` the PCI device ``int resno`` the resource number ``int num_vfs`` number of VFs **Description** Get the sizes of a VF resizable BAR that can accommodate **num_vfs** within the currently assigned size of the resource **resno**. **Return** A bitmask of sizes in format defined in the spec (bit 0=1MB, bit 31=128TB).h](j)}(h**Parameters**h]j&)}(hjSh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjSubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMUhjSubj<)}(hhh](jA)}(h'``struct pci_dev *dev`` the PCI device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjSh]hstruct pci_dev *dev}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjSubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMRhjSubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjShMRhjSubah}(h]h ]h"]h$]h&]uh1jbhjSubeh}(h]h ]h"]h$]h&]uh1j@hjShMRhjSubjA)}(h"``int resno`` the resource number h](jG)}(h ``int resno``h]jM)}(hjSh]h int resno}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjSubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMShjSubjc)}(hhh]j)}(hthe resource numberh]hthe resource number}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMShjTubah}(h]h ]h"]h$]h&]uh1jbhjSubeh}(h]h ]h"]h$]h&]uh1j@hjThMShjSubjA)}(h``int num_vfs`` number of VFs h](jG)}(h``int num_vfs``h]jM)}(hj%Th]h int num_vfs}(hj'ThhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#Tubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMThjTubjc)}(hhh]j)}(h number of VFsh]h number of VFs}(hj>ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:ThMThj;Tubah}(h]h ]h"]h$]h&]uh1jbhjTubeh}(h]h ]h"]h$]h&]uh1j@hj:ThMThjSubeh}(h]h ]h"]h$]h&]uh1j;hjSubj)}(h**Description**h]j&)}(hj`Th]h Description}(hjbThhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj^Tubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMVhjSubj)}(hGet the sizes of a VF resizable BAR that can accommodate **num_vfs** within the currently assigned size of the resource **resno**.h](h9Get the sizes of a VF resizable BAR that can accommodate }(hjvThhhNhNubj&)}(h **num_vfs**h]hnum_vfs}(hj~ThhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjvTubh4 within the currently assigned size of the resource }(hjvThhhNhNubj&)}(h **resno**h]hresno}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjvTubh.}(hjvThhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMUhjSubj)}(h **Return**h]j&)}(hjTh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjTubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMXhjSubj)}(hKA bitmask of sizes in format defined in the spec (bit 0=1MB, bit 31=128TB).h]hKA bitmask of sizes in format defined in the spec (bit 0=1MB, bit 31=128TB).}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMYhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_read_legacy_io (C function)c.pci_read_legacy_iohNtauh1hhhhhhNhNubh)}(hhh](h)}(hssize_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)h]h)}(hssize_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)h](h)}(hhh]j3)}(hssize_th]hssize_t}(hjThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjTubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j)}jpci_read_legacy_iosbc.pci_read_legacy_ioasbuh1hhjThhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjUhMubj-)}(hpci_read_legacy_ioh]j3)}(hjUh]hpci_read_legacy_io}(hj'UhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#Uubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjThhhjUhMubjN)}(ht(struct file *filp, struct kobject *kobj, const struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count)h](jT)}(hstruct file *filph](jZ)}(hj]h]hstruct}(hjBUhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj>Uubj)}(h h]h }(hjOUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>Uubh)}(hhh]j3)}(hfileh]hfile}(hj`UhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj]Uubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbUmodnameN classnameNjj)}j]jUc.pci_read_legacy_ioasbuh1hhj>Uubj)}(h h]h }(hj~UhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj>Uubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>Uubj3)}(hfilph]hfilp}(hjUhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>Uubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:UubjT)}(hstruct kobject *kobjh](jZ)}(hj]h]hstruct}(hjUhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j3)}(hkobjecth]hkobject}(hjUhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUmodnameN classnameNjj)}j]jUc.pci_read_legacy_ioasbuh1hhjUubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj3)}(hkobjh]hkobj}(hj VhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:UubjT)}(h$const struct bin_attribute *bin_attrh](jZ)}(hjh]hconst}(hj"VhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjVubj)}(h h]h }(hj/VhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubjZ)}(hj]h]hstruct}(hj=VhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjVubj)}(h h]h }(hjJVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubh)}(hhh]j3)}(h bin_attributeh]h bin_attribute}(hj[VhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj]VmodnameN classnameNjj)}j]jUc.pci_read_legacy_ioasbuh1hhjVubj)}(h h]h }(hjyVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj3)}(hbin_attrh]hbin_attr}(hjVhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjVubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:UubjT)}(h char *bufh](h)}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubj3)}(hbufh]hbuf}(hjVhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjVubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:UubjT)}(h loff_t offh](h)}(hhh]j3)}(hloff_th]hloff_t}(hjVhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]jUc.pci_read_legacy_ioasbuh1hhjVubj)}(h h]h }(hjWhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjVubj3)}(hoffh]hoff}(hjWhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjVubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj:UubjT)}(h size_t counth](h)}(hhh]j3)}(hsize_th]hsize_t}(hj:WhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj7Wubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjah]h Description}(hj@ahhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjdubah}(h]h ]h"]h$]h&]uh1jbhj"dubeh}(h]h ]h"]h$]h&]uh1j@hj=dhMhjcubjA)}(hH``const struct bin_attribute *attr`` struct bin_attribute for this file h](jG)}(h$``const struct bin_attribute *attr``h]jM)}(hjadh]h const struct bin_attribute *attr}(hjcdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_dubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj[dubjc)}(hhh]j)}(h"struct bin_attribute for this fileh]h"struct bin_attribute for this file}(hjzdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvdhMhjwdubah}(h]h ]h"]h$]h&]uh1jbhj[dubeh}(h]h ]h"]h$]h&]uh1j@hjvdhMhjcubjA)}(hD``struct vm_area_struct *vma`` struct vm_area_struct passed to mmap h](jG)}(h``struct vm_area_struct *vma``h]jM)}(hjdh]hstruct vm_area_struct *vma}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjdubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjdubjc)}(hhh]j)}(h$struct vm_area_struct passed to mmaph]h$struct vm_area_struct passed to mmap}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdhMhjdubah}(h]h ]h"]h$]h&]uh1jbhjdubeh}(h]h ]h"]h$]h&]uh1j@hjdhMhjcubeh}(h]h ]h"]h$]h&]uh1j;hjcubj)}(h**Description**h]j&)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjdubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjcubj)}(hUses an arch specific callback, pci_mmap_legacy_io_page_range, to mmap legacy IO space (first meg of bus space) into application virtual memory space. Returns -ENOSYS if the operation isn't supportedh]hUses an arch specific callback, pci_mmap_legacy_io_page_range, to mmap legacy IO space (first meg of bus space) into application virtual memory space. Returns -ENOSYS if the operation isn’t supported}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_mmap_resource (C function)c.pci_mmap_resourcehNtauh1hhhhhhNhNubh)}(hhh](h)}(h}int pci_mmap_resource (struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma, int write_combine)h]h)}(h|int pci_mmap_resource(struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma, int write_combine)h](h)}(hinth]hint}(hjehhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMyubj)}(h h]h }(hj)ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhj(ehMyubj-)}(hpci_mmap_resourceh]j3)}(hpci_mmap_resourceh]hpci_mmap_resource}(hj;ehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj7eubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjehhhj(ehMyubjN)}(hg(struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma, int write_combine)h](jT)}(hstruct kobject *kobjh](jZ)}(hj]h]hstruct}(hjWehhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjSeubj)}(h h]h }(hjdehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSeubh)}(hhh]j3)}(hkobjecth]hkobject}(hjuehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjreubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwemodnameN classnameNjj)}j]j)}jj=esbc.pci_mmap_resourceasbuh1hhjSeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSeubj3)}(hkobjh]hkobj}(hjehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjSeubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjOeubjT)}(h const struct bin_attribute *attrh](jZ)}(hjh]hconst}(hjehhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubjZ)}(hj]h]hstruct}(hjehhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjeubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubh)}(hhh]j3)}(h bin_attributeh]h bin_attribute}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjeubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]jec.pci_mmap_resourceasbuh1hhjeubj)}(h h]h }(hj fhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj)}(hjh]h*}(hj.fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj3)}(hattrh]hattr}(hj;fhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjeubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjOeubjT)}(hstruct vm_area_struct *vmah](jZ)}(hj]h]hstruct}(hjTfhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjPfubj)}(h h]h }(hjafhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPfubh)}(hhh]j3)}(hvm_area_structh]hvm_area_struct}(hjrfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjofubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtfmodnameN classnameNjj)}j]jec.pci_mmap_resourceasbuh1hhjPfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPfubj3)}(hvmah]hvma}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjPfubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjOeubjT)}(hint write_combineh](h)}(hinth]hint}(hjfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj3)}(h write_combineh]h write_combine}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjOeubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjehhhj(ehMyubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjehhhj(ehMyubah}(h]j eah ](jjeh"]h$]h&]jj)jhuh1hhj(ehMyhjehhubj)}(hhh]j)}(h)map a PCI resource into user memory spaceh]h)map a PCI resource into user memory space}(hj ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMyhjghhubah}(h]h ]h"]h$]h&]uh1jhjehhhj(ehMyubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"gjj"gjjjuh1hhhhhhNhNubj)}(hXt**Parameters** ``struct kobject *kobj`` kobject for mapping ``const struct bin_attribute *attr`` struct bin_attribute for the file being mapped ``struct vm_area_struct *vma`` struct vm_area_struct passed into the mmap ``int write_combine`` 1 for write_combine mapping **Description** Use the regular PCI mapping routines to map a PCI resource into userspace.h](j)}(h**Parameters**h]j&)}(hj,gh]h Parameters}(hj.ghhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj*gubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM}hj&gubj<)}(hhh](jA)}(h-``struct kobject *kobj`` kobject for mapping h](jG)}(h``struct kobject *kobj``h]jM)}(hjKgh]hstruct kobject *kobj}(hjMghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIgubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMzhjEgubjc)}(hhh]j)}(hkobject for mappingh]hkobject for mapping}(hjdghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ghMzhjagubah}(h]h ]h"]h$]h&]uh1jbhjEgubeh}(h]h ]h"]h$]h&]uh1j@hj`ghMzhjBgubjA)}(hT``const struct bin_attribute *attr`` struct bin_attribute for the file being mapped h](jG)}(h$``const struct bin_attribute *attr``h]jM)}(hjgh]h const struct bin_attribute *attr}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjgubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM{hj~gubjc)}(hhh]j)}(h.struct bin_attribute for the file being mappedh]h.struct bin_attribute for the file being mapped}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghM{hjgubah}(h]h ]h"]h$]h&]uh1jbhj~gubeh}(h]h ]h"]h$]h&]uh1j@hjghM{hjBgubjA)}(hJ``struct vm_area_struct *vma`` struct vm_area_struct passed into the mmap h](jG)}(h``struct vm_area_struct *vma``h]jM)}(hjgh]hstruct vm_area_struct *vma}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjgubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM|hjgubjc)}(hhh]j)}(h*struct vm_area_struct passed into the mmaph]h*struct vm_area_struct passed into the mmap}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjghM|hjgubah}(h]h ]h"]h$]h&]uh1jbhjgubeh}(h]h ]h"]h$]h&]uh1j@hjghM|hjBgubjA)}(h2``int write_combine`` 1 for write_combine mapping h](jG)}(h``int write_combine``h]jM)}(hjgh]hint write_combine}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjgubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM}hjgubjc)}(hhh]j)}(h1 for write_combine mappingh]h1 for write_combine mapping}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hhM}hj hubah}(h]h ]h"]h$]h&]uh1jbhjgubeh}(h]h ]h"]h$]h&]uh1j@hj hhM}hjBgubeh}(h]h ]h"]h$]h&]uh1j;hj&gubj)}(h**Description**h]j&)}(hj1hh]h Description}(hj3hhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj/hubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj&gubj)}(hJUse the regular PCI mapping routines to map a PCI resource into userspace.h]hJUse the regular PCI mapping routines to map a PCI resource into userspace.}(hjGhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM~hj&gubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_write_rom (C function)c.pci_write_romhNtauh1hhhhhhNhNubh)}(hhh](h)}(hssize_t pci_write_rom (struct file *filp, struct kobject *kobj, const struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count)h]h)}(hssize_t pci_write_rom(struct file *filp, struct kobject *kobj, const struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count)h](h)}(hhh]j3)}(hssize_th]hssize_t}(hjyhhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjvhubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj{hmodnameN classnameNjj)}j]j)}j pci_write_romsbc.pci_write_romasbuh1hhjrhhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrhhhhjhhMubj-)}(h pci_write_romh]j3)}(hjhh]h pci_write_rom}(hjhhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjrhhhhjhhMubjN)}(ht(struct file *filp, struct kobject *kobj, const struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count)h](jT)}(hstruct file *filph](jZ)}(hj]h]hstruct}(hjhhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j3)}(hfileh]hfile}(hjhhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjhmodnameN classnameNjj)}j]jhc.pci_write_romasbuh1hhjhubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj3)}(hfilph]hfilp}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubjT)}(hstruct kobject *kobjh](jZ)}(hj]h]hstruct}(hj8ihhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj4iubj)}(h h]h }(hjEihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4iubh)}(hhh]j3)}(hkobjecth]hkobject}(hjVihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjSiubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjXimodnameN classnameNjj)}j]jhc.pci_write_romasbuh1hhj4iubj)}(h h]h }(hjtihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj4iubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4iubj3)}(hkobjh]hkobj}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj4iubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubjT)}(h$const struct bin_attribute *bin_attrh](jZ)}(hjh]hconst}(hjihhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubjZ)}(hj]h]hstruct}(hjihhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubh)}(hhh]j3)}(h bin_attributeh]h bin_attribute}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjiubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjimodnameN classnameNjj)}j]jhc.pci_write_romasbuh1hhjiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjiubj)}(hjh]h*}(hj jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj3)}(hbin_attrh]hbin_attr}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjiubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubjT)}(h char *bufh](h)}(hcharh]hchar}(hj3jhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/jubj)}(h h]h }(hjAjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/jubj)}(hjh]h*}(hjOjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/jubj3)}(hbufh]hbuf}(hj\jhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/jubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubjT)}(h loff_t offh](h)}(hhh]j3)}(hloff_th]hloff_t}(hjxjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjujubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzjmodnameN classnameNjj)}j]jhc.pci_write_romasbuh1hhjqjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqjubj3)}(hoffh]hoff}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjqjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubjT)}(h size_t counth](h)}(hhh]j3)}(hsize_th]hsize_t}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjmodnameN classnameNjj)}j]jhc.pci_write_romasbuh1hhjjubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj3)}(hcounth]hcount}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjrhhhhjhhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjnhhhhjhhMubah}(h]jihah ](jjeh"]h$]h&]jj)jhuh1hhjhhMhjkhhhubj)}(hhh]j)}(h,used to enable access to the PCI ROM displayh]h,used to enable access to the PCI ROM display}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjkhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj.kjj.kjjjuh1hhhhhhNhNubj)}(hXg**Parameters** ``struct file *filp`` sysfs file ``struct kobject *kobj`` kernel object handle ``const struct bin_attribute *bin_attr`` struct bin_attribute for this file ``char *buf`` user input ``loff_t off`` file offset ``size_t count`` number of byte in input **Description** Writing a boolean value enables or disables the ROM display.h](j)}(h**Parameters**h]j&)}(hj8kh]h Parameters}(hj:khhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj6kubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj2kubj<)}(hhh](jA)}(h!``struct file *filp`` sysfs file h](jG)}(h``struct file *filp``h]jM)}(hjWkh]hstruct file *filp}(hjYkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUkubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjQkubjc)}(hhh]j)}(h sysfs fileh]h sysfs file}(hjpkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlkhMhjmkubah}(h]h ]h"]h$]h&]uh1jbhjQkubeh}(h]h ]h"]h$]h&]uh1j@hjlkhMhjNkubjA)}(h.``struct kobject *kobj`` kernel object handle h](jG)}(h``struct kobject *kobj``h]jM)}(hjkh]hstruct kobject *kobj}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjkubjc)}(hhh]j)}(hkernel object handleh]hkernel object handle}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jbhjkubeh}(h]h ]h"]h$]h&]uh1j@hjkhMhjNkubjA)}(hL``const struct bin_attribute *bin_attr`` struct bin_attribute for this file h](jG)}(h(``const struct bin_attribute *bin_attr``h]jM)}(hjkh]h$const struct bin_attribute *bin_attr}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjkubjc)}(hhh]j)}(h"struct bin_attribute for this fileh]h"struct bin_attribute for this file}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jbhjkubeh}(h]h ]h"]h$]h&]uh1j@hjkhMhjNkubjA)}(h``char *buf`` user input h](jG)}(h ``char *buf``h]jM)}(hjlh]h char *buf}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjlubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjkubjc)}(hhh]j)}(h user inputh]h user input}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jbhjkubeh}(h]h ]h"]h$]h&]uh1j@hjlhMhjNkubjA)}(h``loff_t off`` file offset h](jG)}(h``loff_t off``h]jM)}(hj;lh]h loff_t off}(hj=lhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9lubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj5lubjc)}(hhh]j)}(h file offseth]h file offset}(hjTlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPlhMhjQlubah}(h]h ]h"]h$]h&]uh1jbhj5lubeh}(h]h ]h"]h$]h&]uh1j@hjPlhMhjNkubjA)}(h)``size_t count`` number of byte in input h](jG)}(h``size_t count``h]jM)}(hjtlh]h size_t count}(hjvlhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrlubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjnlubjc)}(hhh]j)}(hnumber of byte in inputh]hnumber of byte in input}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jbhjnlubeh}(h]h ]h"]h$]h&]uh1j@hjlhMhjNkubeh}(h]h ]h"]h$]h&]uh1j;hj2kubj)}(h**Description**h]j&)}(hjlh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjlubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj2kubj)}(hmubjT)}(hstruct kobject *kobjh](jZ)}(hj]h]hstruct}(hjmhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hhh]j3)}(hkobjecth]hkobject}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmmodnameN classnameNjj)}j]jmc.pci_read_romasbuh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj3)}(hkobjh]hkobj}(hj nhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj>mubjT)}(h$const struct bin_attribute *bin_attrh](jZ)}(hjh]hconst}(hj&nhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj"nubj)}(h h]h }(hj3nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"nubjZ)}(hj]h]hstruct}(hjAnhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj"nubj)}(h h]h }(hjNnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"nubh)}(hhh]j3)}(h bin_attributeh]h bin_attribute}(hj_nhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\nubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjanmodnameN classnameNjj)}j]jmc.pci_read_romasbuh1hhj"nubj)}(h h]h }(hj}nhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"nubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"nubj3)}(hbin_attrh]hbin_attr}(hjnhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj"nubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj>mubjT)}(h char *bufh](h)}(hcharh]hchar}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnubj)}(h h]h }(hjnhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj3)}(hbufh]hbuf}(hjnhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj>mubjT)}(h loff_t offh](h)}(hhh]j3)}(hloff_th]hloff_t}(hjnhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnmodnameN classnameNjj)}j]jmc.pci_read_romasbuh1hhjnubj)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnubj3)}(hoffh]hoff}(hj"ohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj>mubjT)}(h size_t counth](h)}(hhh]j3)}(hsize_th]hsize_t}(hj>ohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj;oubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@omodnameN classnameNjj)}j]jmc.pci_read_romasbuh1hhj7oubj)}(h h]h }(hj\ohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7oubj3)}(hcounth]hcount}(hjjohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj7oubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj>mubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjlhhhjmhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjlhhhjmhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjmhMhjlhhubj)}(hhh]j)}(hread a PCI ROMh]hread a PCI ROM}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjmhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct file *filp`` sysfs file ``struct kobject *kobj`` kernel object handle ``const struct bin_attribute *bin_attr`` struct bin_attribute for this file ``char *buf`` where to put the data we read from the ROM ``loff_t off`` file offset ``size_t count`` number of bytes to read **Description** Put **count** bytes starting at **off** into **buf** from the ROM in the PCI device corresponding to **kobj**.h](j)}(h**Parameters**h]j&)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjoubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjoubj<)}(hhh](jA)}(h!``struct file *filp`` sysfs file h](jG)}(h``struct file *filp``h]jM)}(hjoh]hstruct file *filp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjoubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjoubjc)}(hhh]j)}(h sysfs fileh]h sysfs file}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1jbhjoubeh}(h]h ]h"]h$]h&]uh1j@hjohMhjoubjA)}(h.``struct kobject *kobj`` kernel object handle h](jG)}(h``struct kobject *kobj``h]jM)}(hjph]hstruct kobject *kobj}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj pubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjpubjc)}(hhh]j)}(hkernel object handleh]hkernel object handle}(hj'phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#phMhj$pubah}(h]h ]h"]h$]h&]uh1jbhjpubeh}(h]h ]h"]h$]h&]uh1j@hj#phMhjoubjA)}(hL``const struct bin_attribute *bin_attr`` struct bin_attribute for this file h](jG)}(h(``const struct bin_attribute *bin_attr``h]jM)}(hjGph]h$const struct bin_attribute *bin_attr}(hjIphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEpubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjApubjc)}(hhh]j)}(h"struct bin_attribute for this fileh]h"struct bin_attribute for this file}(hj`phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\phMhj]pubah}(h]h ]h"]h$]h&]uh1jbhjApubeh}(h]h ]h"]h$]h&]uh1j@hj\phMhjoubjA)}(h9``char *buf`` where to put the data we read from the ROM h](jG)}(h ``char *buf``h]jM)}(hjph]h char *buf}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj~pubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjzpubjc)}(hhh]j)}(h*where to put the data we read from the ROMh]h*where to put the data we read from the ROM}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jbhjzpubeh}(h]h ]h"]h$]h&]uh1j@hjphMhjoubjA)}(h``loff_t off`` file offset h](jG)}(h``loff_t off``h]jM)}(hjph]h loff_t off}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjpubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjpubjc)}(hhh]j)}(h file offseth]h file offset}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jbhjpubeh}(h]h ]h"]h$]h&]uh1j@hjphMhjoubjA)}(h)``size_t count`` number of bytes to read h](jG)}(h``size_t count``h]jM)}(hjph]h size_t count}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjpubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjpubjc)}(hhh]j)}(hnumber of bytes to readh]hnumber of bytes to read}(hj qhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jbhjpubeh}(h]h ]h"]h$]h&]uh1j@hjqhMhjoubeh}(h]h ]h"]h$]h&]uh1j;hjoubj)}(h**Description**h]j&)}(hj-qh]h Description}(hj/qhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj+qubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjoubj)}(hnPut **count** bytes starting at **off** into **buf** from the ROM in the PCI device corresponding to **kobj**.h](hPut }(hjCqhhhNhNubj&)}(h **count**h]hcount}(hjKqhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjCqubh bytes starting at }(hjCqhhhNhNubj&)}(h**off**h]hoff}(hj]qhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjCqubh into }(hjCqhhhNhNubj&)}(h**buf**h]hbuf}(hjoqhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjCqubh1 from the ROM in the PCI device corresponding to }(hjCqhhhNhNubj&)}(h**kobj**h]hkobj}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjCqubh.}(hjCqhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،&pcie_tph_get_st_table_loc (C function)c.pcie_tph_get_st_table_lochNtauh1hhhhhhNhNubh)}(hhh](h)}(h4u32 pcie_tph_get_st_table_loc (struct pci_dev *pdev)h]h)}(h3u32 pcie_tph_get_st_table_loc(struct pci_dev *pdev)h](h)}(hhh]j3)}(hu32h]hu32}(hjqhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjqubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjqmodnameN classnameNjj)}j]j)}jpcie_tph_get_st_table_locsbc.pcie_tph_get_st_table_locasbuh1hhjqhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjqhhhjqhKubj-)}(hpcie_tph_get_st_table_loch]j3)}(hjqh]hpcie_tph_get_st_table_loc}(hjqhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjqubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjqhhhjqhKubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj rhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj*rhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj'rubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,rmodnameN classnameNjj)}j]jqc.pcie_tph_get_st_table_locasbuh1hhjrubj)}(h h]h }(hjHrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjVrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj3)}(hpdevh]hpdev}(hjcrhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjrubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjrubah}(h]h ]h"]h$]h&]jKjLuh1jMhjqhhhjqhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjqhhhjqhKubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1hhjqhKhjqhhubj)}(hhh]j)}(h%Return the device's ST table locationh]h'Return the device’s ST table location}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjrhhubah}(h]h ]h"]h$]h&]uh1jhjqhhhjqhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjrjjrjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` PCI device to query **Return** PCI_TPH_LOC_NONE - Not present PCI_TPH_LOC_CAP - Located in the TPH Requester Extended Capability PCI_TPH_LOC_MSIX - Located in the MSI-X Tableh](j)}(h**Parameters**h]j&)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjrubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjrubj<)}(hhh]jA)}(h-``struct pci_dev *pdev`` PCI device to query h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjrh]hstruct pci_dev *pdev}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjrubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhKhjrubah}(h]h ]h"]h$]h&]uh1jbhjrubeh}(h]h ]h"]h$]h&]uh1j@hjrhKhjrubah}(h]h ]h"]h$]h&]uh1j;hjrubj)}(h **Return**h]j&)}(hj sh]hReturn}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjsubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjrubj)}(hPCI_TPH_LOC_NONE - Not present PCI_TPH_LOC_CAP - Located in the TPH Requester Extended Capability PCI_TPH_LOC_MSIX - Located in the MSI-X Tableh]hPCI_TPH_LOC_NONE - Not present PCI_TPH_LOC_CAP - Located in the TPH Requester Extended Capability PCI_TPH_LOC_MSIX - Located in the MSI-X Table}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pcie_tph_get_cpu_st (C function)c.pcie_tph_get_cpu_sthNtauh1hhhhhhNhNubh)}(hhh](h)}(hfint pcie_tph_get_cpu_st (struct pci_dev *pdev, enum tph_mem_type mem_type, unsigned int cpu, u16 *tag)h]h)}(heint pcie_tph_get_cpu_st(struct pci_dev *pdev, enum tph_mem_type mem_type, unsigned int cpu, u16 *tag)h](h)}(hinth]hint}(hjNshhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJshhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKubj)}(h h]h }(hj]shhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJshhhj\shKubj-)}(hpcie_tph_get_cpu_sth]j3)}(hpcie_tph_get_cpu_sth]hpcie_tph_get_cpu_st}(hjoshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjksubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjJshhhj\shKubjN)}(hN(struct pci_dev *pdev, enum tph_mem_type mem_type, unsigned int cpu, u16 *tag)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjshhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsmodnameN classnameNjj)}j]j)}jjqssbc.pcie_tph_get_cpu_stasbuh1hhjsubj)}(h h]h }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj3)}(hpdevh]hpdev}(hjshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjsubjT)}(henum tph_mem_type mem_typeh](jZ)}(hj2h]henum}(hjshhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjsubj)}(h h]h }(hj thhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubh)}(hhh]j3)}(h tph_mem_typeh]h tph_mem_type}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]jsc.pcie_tph_get_cpu_stasbuh1hhjsubj)}(h h]h }(hj9thhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjsubj3)}(hmem_typeh]hmem_type}(hjGthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjsubjT)}(hunsigned int cpuh](h)}(hunsignedh]hunsigned}(hj`thhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\tubj)}(h h]h }(hjnthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\tubh)}(hinth]hint}(hj|thhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj\tubj)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\tubj3)}(hcpuh]hcpu}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\tubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjsubjT)}(hu16 *tagh](h)}(hhh]j3)}(hu16h]hu16}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]jsc.pcie_tph_get_cpu_stasbuh1hhjtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubj3)}(htagh]htag}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjtubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjsubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjJshhhj\shKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjFshhhj\shKubah}(h]jAsah ](jjeh"]h$]h&]jj)jhuh1hhj\shKhjCshhubj)}(hhh]j)}(hHRetrieve Steering Tag for a target memory associated with a specific CPUh]hHRetrieve Steering Tag for a target memory associated with a specific CPU}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjuhhubah}(h]h ]h"]h$]h&]uh1jhjCshhhj\shKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/ujj/ujjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device ``enum tph_mem_type mem_type`` target memory type (volatile or persistent RAM) ``unsigned int cpu`` associated CPU id ``u16 *tag`` Steering Tag to be returned **Description** Return the Steering Tag for a target memory that is associated with a specific CPU as indicated by cpu. **Return** 0 if success, otherwise negative value (-errno)h](j)}(h**Parameters**h]j&)}(hj9uh]h Parameters}(hj;uhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj7uubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhj3uubj<)}(hhh](jA)}(h$``struct pci_dev *pdev`` PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjXuh]hstruct pci_dev *pdev}(hjZuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjVuubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjRuubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hjquhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmuhKhjnuubah}(h]h ]h"]h$]h&]uh1jbhjRuubeh}(h]h ]h"]h$]h&]uh1j@hjmuhKhjOuubjA)}(hO``enum tph_mem_type mem_type`` target memory type (volatile or persistent RAM) h](jG)}(h``enum tph_mem_type mem_type``h]jM)}(hjuh]henum tph_mem_type mem_type}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjuubjc)}(hhh]j)}(h/target memory type (volatile or persistent RAM)h]h/target memory type (volatile or persistent RAM)}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jbhjuubeh}(h]h ]h"]h$]h&]uh1j@hjuhKhjOuubjA)}(h'``unsigned int cpu`` associated CPU id h](jG)}(h``unsigned int cpu``h]jM)}(hjuh]hunsigned int cpu}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjuubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjuubjc)}(hhh]j)}(hassociated CPU idh]hassociated CPU id}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuhKhjuubah}(h]h ]h"]h$]h&]uh1jbhjuubeh}(h]h ]h"]h$]h&]uh1j@hjuhKhjOuubjA)}(h)``u16 *tag`` Steering Tag to be returned h](jG)}(h ``u16 *tag``h]jM)}(hjvh]hu16 *tag}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chKhjuubjc)}(hhh]j)}(hSteering Tag to be returnedh]hSteering Tag to be returned}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhKhjvubah}(h]h ]h"]h$]h&]uh1jbhjuubeh}(h]h ]h"]h$]h&]uh1j@hjvhKhjOuubeh}(h]h ]h"]h$]h&]uh1j;hj3uubj)}(h**Description**h]j&)}(hj>vh]h Description}(hj@vhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjxubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hj]xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYxhMhjZxubah}(h]h ]h"]h$]h&]uh1jbhj>xubeh}(h]h ]h"]h$]h&]uh1j@hjYxhMhj;xubjA)}(h,``unsigned int index`` ST table entry index h](jG)}(h``unsigned int index``h]jM)}(hj}xh]hunsigned int index}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj{xubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMhjwxubjc)}(hhh]j)}(hST table entry indexh]hST table entry index}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jbhjwxubeh}(h]h ]h"]h$]h&]uh1j@hjxhMhj;xubjA)}(h'``u16 tag`` Steering Tag to be written h](jG)}(h ``u16 tag``h]jM)}(hjxh]hu16 tag}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM hjxubjc)}(hhh]j)}(hSteering Tag to be writtenh]hSteering Tag to be written}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhM hjxubah}(h]h ]h"]h$]h&]uh1jbhjxubeh}(h]h ]h"]h$]h&]uh1j@hjxhM hj;xubeh}(h]h ]h"]h$]h&]uh1j;hjxubj)}(h**Description**h]j&)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjxubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM"hjxubj)}(hFigure out the proper location of ST table, either in the MSI-X table or in the TPH Extended Capability space, and write the Steering Tag into the ST entry pointed by index.h]hFigure out the proper location of ST table, either in the MSI-X table or in the TPH Extended Capability space, and write the Steering Tag into the ST entry pointed by index.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM!hjxubj)}(h **Return**h]j&)}(hjyh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjyubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM%hjxubj)}(h/0 if success, otherwise negative value (-errno)h]h/0 if success, otherwise negative value (-errno)}(hj.yhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM&hjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_disable_tph (C function)c.pcie_disable_tphhNtauh1hhhhhhNhNubh)}(hhh](h)}(h,void pcie_disable_tph (struct pci_dev *pdev)h]h)}(h+void pcie_disable_tph(struct pci_dev *pdev)h](h)}(hvoidh]hvoid}(hj]yhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYyhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM[ubj)}(h h]h }(hjlyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYyhhhjkyhM[ubj-)}(hpcie_disable_tphh]j3)}(hpcie_disable_tphh]hpcie_disable_tph}(hj~yhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzyubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjYyhhhjkyhM[ubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjyhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjyubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNjj)}j]j)}jjysbc.pcie_disable_tphasbuh1hhjyubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj3)}(hpdevh]hpdev}(hjyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjyubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjyubah}(h]h ]h"]h$]h&]jKjLuh1jMhjYyhhhjkyhM[ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjUyhhhjkyhM[ubah}(h]jPyah ](jjeh"]h$]h&]jj)jhuh1hhjkyhM[hjRyhhubj)}(hhh]j)}(hTurn off TPH support for deviceh]hTurn off TPH support for device}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM[hjzhhubah}(h]h ]h"]h$]h&]uh1jhjRyhhhjkyhM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5zjj5zjjjuh1hhhhhhNhNubj)}(hG**Parameters** ``struct pci_dev *pdev`` PCI device **Return** noneh](j)}(h**Parameters**h]j&)}(hj?zh]h Parameters}(hjAzhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj=zubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM_hj9zubj<)}(hhh]jA)}(h$``struct pci_dev *pdev`` PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj^zh]hstruct pci_dev *pdev}(hj`zhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\zubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM\hjXzubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hjwzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjszhM\hjtzubah}(h]h ]h"]h$]h&]uh1jbhjXzubeh}(h]h ]h"]h$]h&]uh1j@hjszhM\hjUzubah}(h]h ]h"]h$]h&]uh1j;hj9zubj)}(h **Return**h]j&)}(hjzh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjzubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM^hj9zubj)}(hnoneh]hnone}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM^hj9zubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcie_enable_tph (C function)c.pcie_enable_tphhNtauh1hhhhhhNhNubh)}(hhh](h)}(h4int pcie_enable_tph (struct pci_dev *pdev, int mode)h]h)}(h3int pcie_enable_tph(struct pci_dev *pdev, int mode)h](h)}(hinth]hint}(hjzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjzhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMqubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzhhhjzhMqubj-)}(hpcie_enable_tphh]j3)}(hpcie_enable_tphh]hpcie_enable_tph}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjzhhhjzhMqubjN)}(h (struct pci_dev *pdev, int mode)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj{hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj{ubj)}(h h]h }(hj({hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj9{hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj6{ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj;{modnameN classnameNjj)}j]j)}jj{sbc.pcie_enable_tphasbuh1hhj{ubj)}(h h]h }(hjY{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj)}(hjh]h*}(hjg{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj3)}(hpdevh]hpdev}(hjt{hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj{ubjT)}(hint modeh](h)}(hinth]hint}(hj{hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj{ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{ubj3)}(hmodeh]hmode}(hj{hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj{ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjzhhhjzhMqubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjzhhhjzhMqubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1hhjzhMqhjzhhubj)}(hhh]j)}(h6Enable TPH support for device using a specific ST modeh]h6Enable TPH support for device using a specific ST mode}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMqhj{hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMqubeh}(h]h ](jfunctioneh"]h$]h&]jjjj{jj{jjjuh1hhhhhhNhNubj)}(hX^**Parameters** ``struct pci_dev *pdev`` PCI device ``int mode`` ST mode to enable. Current supported modes include: **Description** - PCI_TPH_ST_NS_MODE: NO ST Mode - PCI_TPH_ST_IV_MODE: Interrupt Vector Mode - PCI_TPH_ST_DS_MODE: Device Specific Mode Check whether the mode is actually supported by the device before enabling and return an error if not. Additionally determine what types of requests, TPH or extended TPH, can be issued by the device based on its TPH requester capability and the Root Port's completer capability. **Return** 0 on success, otherwise negative value (-errno)h](j)}(h**Parameters**h]j&)}(hj{h]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj{ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMuhj{ubj<)}(hhh](jA)}(h$``struct pci_dev *pdev`` PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj|h]hstruct pci_dev *pdev}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMrhj|ubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hj-|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)|hMrhj*|ubah}(h]h ]h"]h$]h&]uh1jbhj|ubeh}(h]h ]h"]h$]h&]uh1j@hj)|hMrhj |ubjA)}(hA``int mode`` ST mode to enable. Current supported modes include: h](jG)}(h ``int mode``h]jM)}(hjM|h]hint mode}(hjO|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjK|ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMshjG|ubjc)}(hhh]j)}(h3ST mode to enable. Current supported modes include:h]h3ST mode to enable. Current supported modes include:}(hjf|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb|hMshjc|ubah}(h]h ]h"]h$]h&]uh1jbhjG|ubeh}(h]h ]h"]h$]h&]uh1j@hjb|hMshj |ubeh}(h]h ]h"]h$]h&]uh1j;hj{ubj)}(h**Description**h]j&)}(hj|h]h Description}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj|ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMuhj{ubjD)}(hx- PCI_TPH_ST_NS_MODE: NO ST Mode - PCI_TPH_ST_IV_MODE: Interrupt Vector Mode - PCI_TPH_ST_DS_MODE: Device Specific Mode h]jJ)}(hhh](jJ)}(hPCI_TPH_ST_NS_MODE: NO ST Modeh]j)}(hj|h]hPCI_TPH_ST_NS_MODE: NO ST Mode}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMthj|ubah}(h]h ]h"]h$]h&]uh1jJhj|ubjJ)}(h)PCI_TPH_ST_IV_MODE: Interrupt Vector Modeh]j)}(hj|h]h)PCI_TPH_ST_IV_MODE: Interrupt Vector Mode}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMuhj|ubah}(h]h ]h"]h$]h&]uh1jJhj|ubjJ)}(h)PCI_TPH_ST_DS_MODE: Device Specific Mode h]j)}(h(PCI_TPH_ST_DS_MODE: Device Specific Modeh]h(PCI_TPH_ST_DS_MODE: Device Specific Mode}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMvhj|ubah}(h]h ]h"]h$]h&]uh1jJhj|ubeh}(h]h ]h"]h$]h&]jKjKuh1jJhj|hMthj|ubah}(h]h ]h"]h$]h&]uh1jChj|hMthj{ubj)}(hXCheck whether the mode is actually supported by the device before enabling and return an error if not. Additionally determine what types of requests, TPH or extended TPH, can be issued by the device based on its TPH requester capability and the Root Port's completer capability.h]hXCheck whether the mode is actually supported by the device before enabling and return an error if not. Additionally determine what types of requests, TPH or extended TPH, can be issued by the device based on its TPH requester capability and the Root Port’s completer capability.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chMxhj{ubj)}(h **Return**h]j&)}(hj }h]hReturn}(hj }hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj }ubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM}hj{ubj)}(h/0 on success, otherwise negative value (-errno)h]h/0 on success, otherwise negative value (-errno)}(hj!}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:52: ./drivers/pci/tph.chM~hj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(h]pci-support-libraryah ]h"]pci support libraryah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hPCI Hotplug Support Libraryh]hPCI Hotplug Support Library}(hjB}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?}hhhhhK8ubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،__pci_hp_register (C function)c.__pci_hp_registerhNtauh1hhj?}hhhNhNubh)}(hhh](h)}(hint __pci_hp_register (struct hotplug_slot *slot, struct pci_bus *bus, int devnr, const char *name, struct module *owner, const char *mod_name)h]h)}(hint __pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus, int devnr, const char *name, struct module *owner, const char *mod_name)h](h)}(hinth]hint}(hji}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhje}hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMQubj)}(h h]h }(hjx}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhje}hhhjw}hMQubj-)}(h__pci_hp_registerh]j3)}(h__pci_hp_registerh]h__pci_hp_register}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hje}hhhjw}hMQubjN)}(hy(struct hotplug_slot *slot, struct pci_bus *bus, int devnr, const char *name, struct module *owner, const char *mod_name)h](jT)}(hstruct hotplug_slot *sloth](jZ)}(hj]h]hstruct}(hj}hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubh)}(hhh]j3)}(h hotplug_sloth]h hotplug_slot}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j)}jj}sbc.__pci_hp_registerasbuh1hhj}ubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj3)}(hsloth]hslot}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubjT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj~hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj~ubj)}(h h]h }(hj%~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj6~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj3~ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8~modnameN classnameNjj)}j]j}c.__pci_hp_registerasbuh1hhj~ubj)}(h h]h }(hjT~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hjb~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj3)}(hbush]hbus}(hjo~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubjT)}(h int devnrh](h)}(hinth]hint}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj3)}(hdevnrh]hdevnr}(hj~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hj~hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubh)}(hcharh]hchar}(hj~hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj~ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj3)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubjT)}(hstruct module *ownerh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hmoduleh]hmodule}(hj8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]j}c.__pci_hp_registerasbuh1hhjubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hownerh]howner}(hjqhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubjT)}(hconst char *mod_nameh](jZ)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hmod_nameh]hmod_name}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj}ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhje}hhhjw}hMQubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhja}hhhjw}hMQubah}(h]j\}ah ](jjeh"]h$]h&]jj)jhuh1hhjw}hMQhj^}hhubj)}(hhh]j)}(h6register a hotplug_slot with the PCI hotplug subsystemh]h6register a hotplug_slot with the PCI hotplug subsystem}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMQhjhhubah}(h]h ]h"]h$]h&]uh1jhj^}hhhjw}hMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?}hNhNubj)}(hXv**Parameters** ``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to register ``struct pci_bus *bus`` bus this slot is on ``int devnr`` device number ``const char *name`` name registered with kobject core ``struct module *owner`` caller module owner ``const char *mod_name`` caller module name **Description** Prepares a hotplug slot for in-kernel use and immediately publishes it to user space in one go. Drivers may alternatively carry out the two steps separately by invoking pci_hp_initialize() and pci_hp_add(). Returns 0 if successful, anything else for an error.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMUhjubj<)}(hhh](jA)}(hf``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to register h](jG)}(h``struct hotplug_slot *slot``h]jM)}(hj9h]hstruct hotplug_slot *slot}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMRhj3ubjc)}(hhh]j)}(hGpointer to the :c:type:`struct hotplug_slot ` to registerh](hpointer to the }(hjRhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hj\h]hstruct hotplug_slot}(hj^hhhNhNubah}(h]h ](jx)jc-typeeh"]h$]h&]uh1jLhjZubah}(h]h ]h"]h$]h&]refdocj) refdomainjreftypetype refexplicitrefwarnjj)j) hotplug_slotuh1hhjNhMRhjRubh to register}(hjRhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjNhMRhjOubah}(h]h ]h"]h$]h&]uh1jbhj3ubeh}(h]h ]h"]h$]h&]uh1j@hjNhMRhj0ubjA)}(h,``struct pci_bus *bus`` bus this slot is on h](jG)}(h``struct pci_bus *bus``h]jM)}(hjh]hstruct pci_bus *bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMShjubjc)}(hhh]j)}(hbus this slot is onh]hbus this slot is on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMShjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMShj0ubjA)}(h``int devnr`` device number h](jG)}(h ``int devnr``h]jM)}(hj΀h]h int devnr}(hjЀhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj̀ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMThjȀubjc)}(hhh]j)}(h device numberh]h device number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMThjubah}(h]h ]h"]h$]h&]uh1jbhjȀubeh}(h]h ]h"]h$]h&]uh1j@hjhMThj0ubjA)}(h7``const char *name`` name registered with kobject core h](jG)}(h``const char *name``h]jM)}(hjh]hconst char *name}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMUhjubjc)}(hhh]j)}(h!name registered with kobject coreh]h!name registered with kobject core}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMUhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMUhj0ubjA)}(h-``struct module *owner`` caller module owner h](jG)}(h``struct module *owner``h]jM)}(hj@h]hstruct module *owner}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj>ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMVhj:ubjc)}(hhh]j)}(hcaller module ownerh]hcaller module owner}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUhMVhjVubah}(h]h ]h"]h$]h&]uh1jbhj:ubeh}(h]h ]h"]h$]h&]uh1j@hjUhMVhj0ubjA)}(h,``const char *mod_name`` caller module name h](jG)}(h``const char *mod_name``h]jM)}(hjyh]hconst char *mod_name}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMWhjsubjc)}(hhh]j)}(hcaller module nameh]hcaller module name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMWhjubah}(h]h ]h"]h$]h&]uh1jbhjsubeh}(h]h ]h"]h$]h&]uh1j@hjhMWhj0ubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMYhjubj)}(hPrepares a hotplug slot for in-kernel use and immediately publishes it to user space in one go. Drivers may alternatively carry out the two steps separately by invoking pci_hp_initialize() and pci_hp_add().h]hPrepares a hotplug slot for in-kernel use and immediately publishes it to user space in one go. Drivers may alternatively carry out the two steps separately by invoking pci_hp_initialize() and pci_hp_add().}(hjʁhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMXhjubj)}(h4Returns 0 if successful, anything else for an error.h]h4Returns 0 if successful, anything else for an error.}(hjفhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chM\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?}hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، __pci_hp_initialize (C function)c.__pci_hp_initializehNtauh1hhj?}hhhNhNubh)}(hhh](h)}(hint __pci_hp_initialize (struct hotplug_slot *slot, struct pci_bus *bus, int devnr, const char *name, struct module *owner, const char *mod_name)h]h)}(hint __pci_hp_initialize(struct hotplug_slot *slot, struct pci_bus *bus, int devnr, const char *name, struct module *owner, const char *mod_name)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMrubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMrubj-)}(h__pci_hp_initializeh]j3)}(h__pci_hp_initializeh]h__pci_hp_initialize}(hj)hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj%ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMrubjN)}(hy(struct hotplug_slot *slot, struct pci_bus *bus, int devnr, const char *name, struct module *owner, const char *mod_name)h](jT)}(hstruct hotplug_slot *sloth](jZ)}(hj]h]hstruct}(hjEhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjAubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubh)}(hhh]j3)}(h hotplug_sloth]h hotplug_slot}(hjchhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjemodnameN classnameNjj)}j]j)}jj+sbc.__pci_hp_initializeasbuh1hhjAubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj3)}(hsloth]hslot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj=ubjT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjĂhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjՂhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj҂ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjׂmodnameN classnameNjj)}j]jc.__pci_hp_initializeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hbush]hbus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj=ubjT)}(h int devnrh](h)}(hinth]hint}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj3)}(hdevnrh]hdevnr}(hjChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj=ubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hj\hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjXubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hcharh]hchar}(hjwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj3)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj=ubjT)}(hstruct module *ownerh](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjƃhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hmoduleh]hmodule}(hj׃hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjԃubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjكmodnameN classnameNjj)}j]jc.__pci_hp_initializeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hownerh]howner}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj=ubjT)}(hconst char *mod_nameh](jZ)}(hjh]hconst}(hj)hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hcharh]hchar}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj%ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj3)}(hmod_nameh]hmod_name}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj%ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj=ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMrubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMrubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMrhjhhubj)}(hhh]j)}(h&prepare hotplug slot for in-kernel useh]h&prepare hotplug slot for in-kernel use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMrhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?}hNhNubj)}(hX**Parameters** ``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to initialize ``struct pci_bus *bus`` bus this slot is on ``int devnr`` slot number ``const char *name`` name registered with kobject core ``struct module *owner`` caller module owner ``const char *mod_name`` caller module name **Description** Allocate and fill in a PCI slot for use by a hotplug driver. Once this has been called, the driver may invoke hotplug_slot_name() to get the slot's unique name. The driver must be prepared to handle a ->reset_slot callback from this point on. Returns 0 on success or a negative int on error.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMvhjubj<)}(hhh](jA)}(hh``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to initialize h](jG)}(h``struct hotplug_slot *slot``h]jM)}(hj؄h]hstruct hotplug_slot *slot}(hjڄhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjքubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMshj҄ubjc)}(hhh]j)}(hIpointer to the :c:type:`struct hotplug_slot ` to initializeh](hpointer to the }(hjhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjh]hstruct hotplug_slot}(hjhhhNhNubah}(h]h ](jx)jc-typeeh"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]refdocj) refdomainjreftypetype refexplicitrefwarnjj)j) hotplug_slotuh1hhjhMshjubh to initialize}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMshjubah}(h]h ]h"]h$]h&]uh1jbhj҄ubeh}(h]h ]h"]h$]h&]uh1j@hjhMshjτubjA)}(h,``struct pci_bus *bus`` bus this slot is on h](jG)}(h``struct pci_bus *bus``h]jM)}(hj4h]hstruct pci_bus *bus}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMthj.ubjc)}(hhh]j)}(hbus this slot is onh]hbus this slot is on}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIhMthjJubah}(h]h ]h"]h$]h&]uh1jbhj.ubeh}(h]h ]h"]h$]h&]uh1j@hjIhMthjτubjA)}(h``int devnr`` slot number h](jG)}(h ``int devnr``h]jM)}(hjmh]h int devnr}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjkubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMuhjgubjc)}(hhh]j)}(h slot numberh]h slot number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMuhjubah}(h]h ]h"]h$]h&]uh1jbhjgubeh}(h]h ]h"]h$]h&]uh1j@hjhMuhjτubjA)}(h7``const char *name`` name registered with kobject core h](jG)}(h``const char *name``h]jM)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMvhjubjc)}(hhh]j)}(h!name registered with kobject coreh]h!name registered with kobject core}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMvhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMvhjτubjA)}(h-``struct module *owner`` caller module owner h](jG)}(h``struct module *owner``h]jM)}(hj߅h]hstruct module *owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj݅ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMwhjمubjc)}(hhh]j)}(hcaller module ownerh]hcaller module owner}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMwhjubah}(h]h ]h"]h$]h&]uh1jbhjمubeh}(h]h ]h"]h$]h&]uh1j@hjhMwhjτubjA)}(h,``const char *mod_name`` caller module name h](jG)}(h``const char *mod_name``h]jM)}(hjh]hconst char *mod_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMxhjubjc)}(hhh]j)}(hcaller module nameh]hcaller module name}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hMxhj.ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj-hMxhjτubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjQubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMzhjubj)}(hAllocate and fill in a PCI slot for use by a hotplug driver. Once this has been called, the driver may invoke hotplug_slot_name() to get the slot's unique name. The driver must be prepared to handle a ->reset_slot callback from this point on.h]hAllocate and fill in a PCI slot for use by a hotplug driver. Once this has been called, the driver may invoke hotplug_slot_name() to get the slot’s unique name. The driver must be prepared to handle a ->reset_slot callback from this point on.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMyhjubj)}(h0Returns 0 on success or a negative int on error.h]h0Returns 0 on success or a negative int on error.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chM~hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?}hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_hp_add (C function) c.pci_hp_addhNtauh1hhj?}hhhNhNubh)}(hhh](h)}(h*int pci_hp_add (struct hotplug_slot *slot)h]h)}(h)int pci_hp_add(struct hotplug_slot *slot)h](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(h pci_hp_addh]j3)}(h pci_hp_addh]h pci_hp_add}(hjȆhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjĆubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h(struct hotplug_slot *slot)h]jT)}(hstruct hotplug_slot *sloth](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h hotplug_sloth]h hotplug_slot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjʆsb c.pci_hp_addasbuh1hhjubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hsloth]hslot}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj܆ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(hhh]j)}(h"publish hotplug slot to user spaceh]h"publish hotplug slot to user space}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?}hNhNubj)}(hX**Parameters** ``struct hotplug_slot *slot`` pointer to the :c:type:`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 must be prepared to handle all :c:type:`struct hotplug_slot_ops ` callbacks from this point on. Returns 0 on success or a negative int on error.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubj<)}(hhh]jA)}(he``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to publish h](jG)}(h``struct hotplug_slot *slot``h]jM)}(hjh]hstruct hotplug_slot *slot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubjc)}(hhh]j)}(hFpointer to the :c:type:`struct hotplug_slot ` to publishh](hpointer to the }(hjhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjˇh]hstruct hotplug_slot}(hj͇hhhNhNubah}(h]h ](jx)jc-typeeh"]h$]h&]uh1jLhjɇubah}(h]h ]h"]h$]h&]refdocj) refdomainjreftypetype refexplicitrefwarnjj)j) hotplug_slotuh1hhjhMhjubh to publish}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubj)}(hMake a hotplug slot's sysfs interface available and inform user space of its addition by sending a uevent. The hotplug driver must be prepared to handle all :c:type:`struct hotplug_slot_ops ` callbacks from this point on.h](hMake a hotplug slot’s sysfs interface available and inform user space of its addition by sending a uevent. The hotplug driver must be prepared to handle all }(hjhhhNhNubh)}(h4:c:type:`struct hotplug_slot_ops `h]jM)}(hj&h]hstruct hotplug_slot_ops}(hj(hhhNhNubah}(h]h ](jx)jc-typeeh"]h$]h&]uh1jLhj$ubah}(h]h ]h"]h$]h&]refdocj) refdomainjreftypetype refexplicitrefwarnjj)j)hotplug_slot_opsuh1hhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubh callbacks from this point on.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubj)}(h0Returns 0 on success or a negative int on error.h]h0Returns 0 on success or a negative int on error.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?}hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_hp_deregister (C function)c.pci_hp_deregisterhNtauh1hhj?}hhhNhNubh)}(hhh](h)}(h2void pci_hp_deregister (struct hotplug_slot *slot)h]h)}(h1void pci_hp_deregister(struct hotplug_slot *slot)h](h)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjyhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyhhhjhMubj-)}(hpci_hp_deregisterh]j3)}(hpci_hp_deregisterh]hpci_hp_deregister}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjyhhhjhMubjN)}(h(struct hotplug_slot *slot)h]jT)}(hstruct hotplug_slot *sloth](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjLjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h hotplug_sloth]h hotplug_slot}(hj؈hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjՈubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjڈmodnameN classnameNjj)}j]j)}jjsbc.pci_hp_deregisterasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hsloth]hslot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjyhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjuhhhjhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjrhhubj)}(hhh]j)}(h8deregister a hotplug_slot with the PCI hotplug subsystemh]h8deregister a hotplug_slot with the PCI hotplug subsystem}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhj:hhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1hhhhj?}hNhNubj)}(h**Parameters** ``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to deregister **Description** The **slot** must have been registered with the pci hotplug subsystem previously with a call to pci_hp_register().h](j)}(h**Parameters**h]j&)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj]ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjYubj<)}(hhh]jA)}(hh``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to deregister h](jG)}(h``struct hotplug_slot *slot``h]jM)}(hj~h]hstruct hotplug_slot *slot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj|ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjxubjc)}(hhh]j)}(hIpointer to the :c:type:`struct hotplug_slot ` to deregisterh](hpointer to the }(hjhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjh]hstruct hotplug_slot}(hjhhhNhNubah}(h]h ](jx)jc-typeeh"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]refdocj) refdomainjreftypetype refexplicitrefwarnjj)j) hotplug_slotuh1hhjhMhjubh to deregister}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjxubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjuubah}(h]h ]h"]h$]h&]uh1j;hjYubj)}(h**Description**h]j&)}(hj܉h]h Description}(hjމhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjډubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjYubj)}(hrThe **slot** must have been registered with the pci hotplug subsystem previously with a call to pci_hp_register().h](hThe }(hjhhhNhNubj&)}(h**slot**h]hslot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubhf must have been registered with the pci hotplug subsystem previously with a call to pci_hp_register().}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?}hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_hp_del (C function) c.pci_hp_delhNtauh1hhj?}hhhNhNubh)}(hhh](h)}(h+void pci_hp_del (struct hotplug_slot *slot)h]h)}(h*void pci_hp_del(struct hotplug_slot *slot)h](h)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj/hhhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/hhhjAhMubj-)}(h pci_hp_delh]j3)}(h pci_hp_delh]h pci_hp_del}(hjThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjPubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj/hhhjAhMubjN)}(h(struct hotplug_slot *slot)h]jT)}(hstruct hotplug_slot *sloth](jZ)}(hj]h]hstruct}(hjphhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjlubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j3)}(h hotplug_sloth]h hotplug_slot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjVsb c.pci_hp_delasbuh1hhjlubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj3)}(hsloth]hslot}(hjɊhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjlubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubah}(h]h ]h"]h$]h&]jKjLuh1jMhj/hhhjAhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhjAhMhj(hhubj)}(hhh]j)}(h&unpublish hotplug slot from user spaceh]h&unpublish hotplug slot from user space}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhj?}hNhNubj)}(h**Parameters** ``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to unpublish **Description** Remove a hotplug slot's sysfs interface.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubj<)}(hhh]jA)}(hg``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to unpublish h](jG)}(h``struct hotplug_slot *slot``h]jMi+)}(hj4h]hstruct hotplug_slot *slot}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhj.ubjc)}(hhh]j)}(hHpointer to the :c:type:`struct hotplug_slot ` to unpublishh](hpointer to the }(hjMhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjWh]hstruct hotplug_slot}(hjYhhhNhNubah}(h]h ](jx)jc-typeeh"]h$]h&]uh1jLhjUubah}(h]h ]h"]h$]h&]refdocj) refdomainjreftypetype refexplicitrefwarnjj)j) hotplug_slotuh1hhjIhMhjMubh to unpublish}(hjMhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjIhMhjJubah}(h]h ]h"]h$]h&]uh1jbhj.ubeh}(h]h ]h"]h$]h&]uh1j@hjIhMhj+ubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubj)}(h(Remove a hotplug slot's sysfs interface.h]h*Remove a hotplug slot’s sysfs interface.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?}hhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_hp_destroy (C function)c.pci_hp_destroyhNtauh1hhj?}hhhNhNubh)}(hhh](h)}(h/void pci_hp_destroy (struct hotplug_slot *slot)h]h)}(h.void pci_hp_destroy(struct hotplug_slot *slot)h](h)}(hvoidh]hvoid}(hj׋hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjӋhhhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjӋhhhjhMubj-)}(hpci_hp_destroyh]j3)}(hpci_hp_destroyh]hpci_hp_destroy}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjӋhhhjhMubjN)}(h(struct hotplug_slot *slot)h]jT)}(hstruct hotplug_slot *sloth](jZ)}(hj]h]hstruct}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h hotplug_sloth]h hotplug_slot}(hj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]j)}jjsbc.pci_hp_destroyasbuh1hhjubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hsloth]hslot}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjӋhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjϋhhhjhMubah}(h]jʋah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj̋hhubj)}(hhh]j)}(h&remove hotplug slot from in-kernel useh]h&remove hotplug slot from in-kernel use}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj̋hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhj?}hNhNubj)}(hXv**Parameters** ``struct hotplug_slot *slot`` pointer to the :c:type:`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_slot_name() to get the slot's unique name. The driver no longer needs to handle a ->reset_slot callback from this point on.h](j)}(h**Parameters**h]j&)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubj<)}(hhh]jA)}(he``struct hotplug_slot *slot`` pointer to the :c:type:`struct hotplug_slot ` to destroy h](jG)}(h``struct hotplug_slot *slot``h]jM)}(hj،h]hstruct hotplug_slot *slot}(hjڌhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj֌ubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjҌubjc)}(hhh]j)}(hFpointer to the :c:type:`struct hotplug_slot ` to destroyh](hpointer to the }(hjhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjh]hstruct hotplug_slot}(hjhhhNhNubah}(h]h ](jx)jc-typeeh"]h$]h&]uh1jLhjubah}(h]h ]h"]h$]h&]refdocj) refdomainjreftypetype refexplicitrefwarnjj)j) hotplug_slotuh1hhjhMhjubh to destroy}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjҌubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjόubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj4ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubj)}(hDestroy a PCI slot used by a hotplug driver. Once this has been called, the driver may no longer invoke hotplug_slot_name() to get the slot's unique name. The driver no longer needs to handle a ->reset_slot callback from this point on.h]hDestroy a PCI slot used by a hotplug driver. Once this has been called, the driver may no longer invoke hotplug_slot_name() to get the slot’s unique name. The driver no longer needs to handle a ->reset_slot callback from this point on.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj?}hhhNhNubeh}(h]pci-hotplug-support-libraryah ]h"]pci hotplug support libraryah$]h&]uh1hhhhhhhhK8ubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j<}j9}jgjdu nametypes}(j<}jguh}(j9}hhhjjjBjGjjj j j j jjj/j4jjjjjjjljqjjjdjij@!jE!jQ#jV#j$j$j&j &j'j'j)j)j+j+jY-j^-j.j.jj0jo0j1j1j4j4j5j5j7j7ju:jz:jr<jw<j=j=jt?jy?j@j@j-Cj2CjDjDj.Fj3FjGjGjIjIjKjKjNjNjPjPjSjSjUjUj Wj%Wj|YjYj\j\jO^jT^j_j_jcajhajbjbjfdjkdj fj%fjgjgj[ij`ijXkj]kjljljlnjqnjlpjqpjqjqjsjsjujujiwjnwjxjxjkzjpzj{j{jG}jL}j~j~jIjNjʁjρjjj;j@j+j0jjjjj8j=jjjj‘j>jCjIjNjjjjjDjIj jjңjףjjj:j?jjjZj_jjj*j/jϲjԲj'j,jj!j<jAjj jjjjjjjjjnjsjjjjjjjjjjjjjVj[jjjjjjjqjvjjjj"jjjjjjjGjLjjjjj~jjjj2j7jjj&j+jP jU j j j6j;jjj7j<jjjjjjj!j&jjj/j4j j j"j"jn$js$j&j&j*j*j,j,j-j.jX/j]/j1j1j34j84j[6j`6j9j9jX;j];j<j<j.?j3?j