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.chM0hjubj<)}(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.chM1hjubeh}(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.chMkubj)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj8hhhj`hMkubj-)}(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`hMkubjN)}(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`hMkubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj4hhhj`hMkubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1hhj`hMkhj1hhubj)}(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.chMkhjhhubah}(h]h ]h"]h$]h&]uh1jhj1hhhj`hMkubeh}(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.chMohjubj<)}(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.chMlhjubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMlhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMlhjubjA)}(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.chMmhjubjc)}(hhh]j)}(h)Position from which to continue searchingh]h)Position from which to continue searching}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMmhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMmhjubjA)}(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.chMnhj9ubjc)}(hhh]j)}(hHyperTransport capability codeh]hHyperTransport capability code}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMnhjUubah}(h]h ]h"]h$]h&]uh1jbhj9ubeh}(h]h ]h"]h$]h&]uh1j@hjThMnhjubeh}(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.chMphjubj)}(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.chMohjubj)}(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.chMshjubeh}(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.chM~ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM~ubj-)}(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,hjhhhjhM~ubjN)}(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&]jKjLuh1jMhjhhhjhM~ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhM~ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM~hjhhubj)}(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.chM~hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM~ubeh}(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.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&]uh1jLhj9ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj5ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jbhj5ubeh}(h]h ]h"]h$]h&]uh1j@hjPhMhj2ubjA)}(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.chMhjnubjc)}(hhh]j)}(hHyperTransport capability codeh]hHyperTransport capability code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjnubeh}(h]h ]h"]h$]h&]uh1j@hjhMhj2ubeh}(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)}(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.chMhjubeh}(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.chM,ubj)}(h h]h }(hj\!hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjI!hhhj[!hM,ubj-)}(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[!hM,ubjN)}(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[!hM,ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjE!hhhj[!hM,ubah}(h]j@!ah ](jjeh"]h$]h&]jj)jhuh1hhj[!hM,hjB!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.chM,hjR"hhubah}(h]h ]h"]h$]h&]uh1jhjB!hhhj[!hM,ubeh}(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.chM0hjq"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.chM-hj"ubjc)}(hhh]j)}(hPCI device to handle.h]hPCI device 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"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.chM.hj"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"hM.hj"ubah}(h]h ]h"]h$]h&]uh1jbhj"ubeh}(h]h ]h"]h$]h&]uh1j@hj"hM.hj"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.chM0hjq"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.chM/hjq"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.chM2hjq"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.chM%hj%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.chM'hj%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.chM"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%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.chMFubj)}(h h]h }(hj"&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj!&hMFubh)}(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!&hMFubj)}(h h]h }(hjT&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&hhhj!&hMFubj)}(hjh]h*}(hjb&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj!&hMFubj-)}(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!&hMFubjN)}(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!&hMFubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj &hhhj!&hMFubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1hhj!&hMFhj &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.chMFhj 'hhubah}(h]h ]h"]h$]h&]uh1jhj &hhhj!&hMFubeh}(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.chMJhj+'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.chMHhjJ'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'hMHhjf'ubah}(h]h ]h"]h$]h&]uh1jbhjJ'ubeh}(h]h ]h"]h$]h&]uh1j@hje'hMHhjG'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.chMJhj+'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.chMIhj+'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.chMoubj)}(h h]h }(hj'hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'hhhj'hMoubj-)}(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'hMoubjN)}(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'hMoubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj'hhhj'hMoubah}(h]j'ah ](jjeh"]h$]h&]jj)jhuh1hhj'hMohj'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.chMohj(hhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj'hMoubeh}(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.chMshj)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.chMphj;)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)hMphjW)ubah}(h]h ]h"]h$]h&]uh1jbhj;)ubeh}(h]h ]h"]h$]h&]uh1j@hjV)hMphj8)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.chMrhjt)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.chMqhj)ubah}(h]h ]h"]h$]h&]uh1jbhjt)ubeh}(h]h ]h"]h$]h&]uh1j@hj)hMrhj8)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.chM6hjB.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.chM3hja.ubjc)}(hhh]j)}(hPCI device to be initializedh]hPCI device to be initialized}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|.hM3hj}.ubah}(h]h ]h"]h$]h&]uh1jbhja.ubeh}(h]h ]h"]h$]h&]uh1j@hj|.hM3hj^.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.chM5hjB.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.chM4hjB.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.chMDhj/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.chMAhj/ubjc)}(hhh]j)}(hPCI device to be initializedh]hPCI device to be initialized}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hMAhj/ubah}(h]h ]h"]h$]h&]uh1jbhj/ubeh}(h]h ]h"]h$]h&]uh1j@hj/hMAhj/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.chMChj/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.chMBhj/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.chMFhj/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.chM ubj)}(h h]h }(hj:hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~:hhhj:hM 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:hM 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:hM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjz:hhhj:hM ubah}(h]ju:ah ](jjeh"]h$]h&]jj)jhuh1hhj:hM 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.chM hjs;hhubah}(h]h ]h"]h$]h&]uh1jhjw:hhhj:hM 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.chM hj;ubjc)}(hhh]j)}(hPCI device to prepareh]hPCI device to prepare}(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)}(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.chM 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<hM hj<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&)}(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.chMj ubj)}(h h]h }(hj<hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{<hhhj<hMj 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<hMj 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<hMj ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjw<hhhj<hMj ubah}(h]jr<ah ](jjeh"]h$]h&]jj)jhuh1hhj<hMj 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.chMj hj<=hhubah}(h]h ]h"]h$]h&]uh1jhjt<hhhj<hMj 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.chMn 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.chMl hjz=ubjc)}(hhh]j)}(hDevice to handle.h]hDevice to handle.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=hMl hj=ubah}(h]h ]h"]h$]h&]uh1jbhjz=ubeh}(h]h ]h"]h$]h&]uh1j@hj=hMl 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.chMn 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.chMm 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.chM' ubj)}(h h]h }(hj&AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhj%AhM' 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%AhM' 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%AhM' ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj@hhhj%AhM' ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1hhj%AhM' 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.chM' hjBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj%AhM' 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%hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+Jhhhj=JhMubj-)}(hpci_request_regionh]j3)}(hpci_request_regionh]hpci_request_region}(hjPJhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjLJubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj+Jhhhj=JhMubjN)}(h1(struct pci_dev *pdev, int bar, const char *name)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjlJhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhJubj)}(h h]h }(hjyJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhJubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjJhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjJmodnameN classnameNjj)}j]j)}jjRJsbc.pci_request_regionasbuh1hhjhJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhJubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhJubj3)}(hpdevh]hpdev}(hjJhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhJubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjdJubjT)}(hint barh](h)}(hinth]hint}(hjJhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjJubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjJubj3)}(hbarh]hbar}(hjJhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjdJubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjKubj)}(h h]h }(hj KhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKubh)}(hcharh]hchar}(hj.KhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjKubj)}(h h]h }(hjOubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjOhhhj/OhM%ubjN)}(h2(struct pci_dev *pdev, int bars, const char *name)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj^OhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjZOubj)}(h h]h }(hjkOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZOubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj|OhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjyOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj~OmodnameN classnameNjj)}j]j)}jjDOsbc.pci_request_selected_regionsasbuh1hhjZOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZOubj3)}(hpdevh]hpdev}(hjOhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjZOubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjVOubjT)}(hint barsh](h)}(hinth]hint}(hjOhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj3)}(hbarsh]hbars}(hjOhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjVOubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hjPhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjPubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubh)}(hcharh]hchar}(hj PhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjPubj)}(h h]h }(hj.PhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjPubj)}(hjh]h*}(hj**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&)}(hj Uh]h Parameters}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj Uubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMHhjUubj<)}(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)}(hj,Uh]hstruct pci_dev *pdev}(hj.UhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*Uubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMFhj&Uubjc)}(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()}(hjEUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMEhjBUubah}(h]h ]h"]h$]h&]uh1jbhj&Uubeh}(h]h ]h"]h$]h&]uh1j@hjAUhMFhj#Uubah}(h]h ]h"]h$]h&]uh1j;hjUubj)}(h**Description**h]j&)}(hjhUh]h Description}(hjjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjfUubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMHhjUubj)}(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.}(hj~UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMGhjUubeh}(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}(hjUhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMSubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjUhMSubj-)}(hpci_request_regionsh]j3)}(hpci_request_regionsh]hpci_request_regions}(hjUhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjUhhhjUhMSubjN)}(h((struct pci_dev *pdev, const char *name)h](jT)}(hstruct pci_dev *pdevh](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}(hjVhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj VmodnameN classnameNjj)}j]j)}jjUsbc.pci_request_regionsasbuh1hhjUubj)}(h h]h }(hj(VhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hj6VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj3)}(hpdevh]hpdev}(hjCVhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjUubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hj\VhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjXVubj)}(h h]h }(hjiVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXVubh)}(hcharh]hchar}(hjwVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXVubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXVubj3)}(hnameh]hname}(hjVhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXVubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjUubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjUhhhjUhMSubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjUhhhjUhMSubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1hhjUhMShjUhhubj)}(hhh]j)}(h$Reserve PCI I/O and memory resourcesh]h$Reserve PCI I/O and memory resources}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMShjVhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct pci_dev *pdev`` PCI device whose resources are to be reserved ``const char *name`` name of the driver requesting the resources **Description** Mark all PCI regions associated with PCI device **pdev** as being reserved by owner **name**. Do not access any address inside the PCI regions unless this call returns successfully. Returns 0 on success, or ``EBUSY`` on error. A warning message is also printed on failure.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.chMWhjVubj<)}(hhh](jA)}(hG``struct pci_dev *pdev`` PCI device whose resources are to be reserved h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj Wh]hstruct pci_dev *pdev}(hj WhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj Wubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMThjWubjc)}(hhh]j)}(h-PCI device whose resources are to be reservedh]h-PCI device whose resources are to be reserved}(hj$WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj WhMThj!Wubah}(h]h ]h"]h$]h&]uh1jbhjWubeh}(h]h ]h"]h$]h&]uh1j@hj WhMThjWubjA)}(hA``const char *name`` name of the driver requesting the resources h](jG)}(h``const char *name``h]jM)}(hjDWh]hconst char *name}(hjFWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjBWubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMUhj>Wubjc)}(hhh]j)}(h+name of the driver requesting the resourcesh]h+name of the driver requesting the resources}(hj]WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYWhMUhjZWubah}(h]h ]h"]h$]h&]uh1jbhj>Wubeh}(h]h ]h"]h$]h&]uh1j@hjYWhMUhjWubeh}(h]h ]h"]h$]h&]uh1j;hjVubj)}(h**Description**h]j&)}(hjWh]h Description}(hjWhhhNhNubah}(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.chMWhjVubj)}(hMark all PCI regions associated with PCI device **pdev** as being reserved by owner **name**. Do not access any address inside the PCI regions unless this call returns successfully.h](h0Mark all PCI regions associated with PCI device }(hjWhhhNhNubj&)}(h**pdev**h]hpdev}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjWubh as being reserved by owner }(hjWhhhNhNubj&)}(h**name**h]hname}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjWubhY. Do not access any address inside the PCI regions unless this call returns successfully.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMVhjVubj)}(h[Returns 0 on success, or ``EBUSY`` on error. A warning message is also printed on failure.h](hReturns 0 on success, or }(hjWhhhNhNubjM)}(h ``EBUSY``h]hEBUSY}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjWubh9 on error. A warning message is also printed on failure.}(hjWhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMZhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،*pci_request_regions_exclusive (C function)c.pci_request_regions_exclusivehNtauh1hhhhhhNhNubh)}(hhh](h)}(hJint pci_request_regions_exclusive (struct pci_dev *pdev, const char *name)h]h)}(hIint pci_request_regions_exclusive(struct pci_dev *pdev, const char *name)h](h)}(hinth]hint}(hj XhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMfubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjXhMfubj-)}(hpci_request_regions_exclusiveh]j3)}(hpci_request_regions_exclusiveh]hpci_request_regions_exclusive}(hj*XhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&Xubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjXhhhjXhMfubjN)}(h((struct pci_dev *pdev, const char *name)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjFXhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjBXubj)}(h h]h }(hjSXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBXubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjdXhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjaXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfXmodnameN classnameNjj)}j]j)}jj,Xsbc.pci_request_regions_exclusiveasbuh1hhjBXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBXubj3)}(hpdevh]hpdev}(hjXhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBXubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj>XubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hjXhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubj)}(h h]h }(hjXhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj3)}(hnameh]hname}(hjXhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj>Xubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjXhhhjXhMfubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjXhhhjXhMfubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjXhMfhjWhhubj)}(hhh]j)}(h$Reserve PCI I/O and memory resourcesh]h$Reserve PCI I/O and memory resources}(hj&YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMfhj#Yhhubah}(h]h ]h"]h$]h&]uh1jhjWhhhjXhMfubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>Yjj>Yjjjuh1hhhhhhNhNubj)}(hXr**Parameters** ``struct pci_dev *pdev`` PCI device whose resources are to be reserved ``const char *name`` name of the driver requesting the resources **Return** 0 on success, negative error code on failure. **Description** Mark all PCI regions associated with PCI device **pdev** as being reserved by owner **name**. Do not access any address inside the PCI regions unless this call returns successfully. pci_request_regions_exclusive() will mark the region so that /dev/mem and the sysfs MMIO access will not be allowed. Returns 0 on success, or ``EBUSY`` on error. A warning message is also printed on failure.h](j)}(h**Parameters**h]j&)}(hjHYh]h Parameters}(hjJYhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjFYubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMjhjBYubj<)}(hhh](jA)}(hG``struct pci_dev *pdev`` PCI device whose resources are to be reserved h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjgYh]hstruct pci_dev *pdev}(hjiYhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeYubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMghjaYubjc)}(hhh]j)}(h-PCI device whose resources are to be reservedh]h-PCI device whose resources are to be reserved}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|YhMghj}Yubah}(h]h ]h"]h$]h&]uh1jbhjaYubeh}(h]h ]h"]h$]h&]uh1j@hj|YhMghj^YubjA)}(hA``const char *name`` name of the driver requesting the resources h](jG)}(h``const char *name``h]jM)}(hjYh]hconst char *name}(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.chMhhjYubjc)}(hhh]j)}(h+name of the driver requesting the resourcesh]h+name of the driver requesting the resources}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYhMhhjYubah}(h]h ]h"]h$]h&]uh1jbhjYubeh}(h]h ]h"]h$]h&]uh1j@hjYhMhhj^Yubeh}(h]h ]h"]h$]h&]uh1j;hjBYubj)}(h **Return**h]j&)}(hjYh]hReturn}(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.chMjhjBYubj)}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMjhjBYubj)}(h**Description**h]j&)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMlhjBYubj)}(hMark all PCI regions associated with PCI device **pdev** as being reserved by owner **name**. Do not access any address inside the PCI regions unless this call returns successfully.h](h0Mark all PCI regions associated with PCI device }(hjZhhhNhNubj&)}(h**pdev**h]hpdev}(hj ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh as being reserved by owner }(hjZhhhNhNubj&)}(h**name**h]hname}(hj2ZhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubhY. Do not access any address inside the PCI regions unless this call returns successfully.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMkhjBYubj)}(htpci_request_regions_exclusive() will mark the region so that /dev/mem and the sysfs MMIO access will not be allowed.h]htpci_request_regions_exclusive() will mark the region so that /dev/mem and the sysfs MMIO access will not be allowed.}(hjKZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMohjBYubj)}(h[Returns 0 on success, or ``EBUSY`` on error. A warning message is also printed on failure.h](hReturns 0 on success, or }(hjZZhhhNhNubjM)}(h ``EBUSY``h]hEBUSY}(hjbZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZZubh9 on error. A warning message is also printed on failure.}(hjZZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMrhjBYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_remap_iospace (C function)c.pci_remap_iospacehNtauh1hhhhhhNhNubh)}(hhh](h)}(hIint pci_remap_iospace (const struct resource *res, phys_addr_t phys_addr)h]h)}(hHint pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr)h](h)}(hinth]hint}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhjZhMubj-)}(hpci_remap_iospaceh]j3)}(hpci_remap_iospaceh]hpci_remap_iospace}(hjZhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjZubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjZhhhjZhMubjN)}(h3(const struct resource *res, phys_addr_t phys_addr)h](jT)}(hconst struct resource *resh](jZ)}(hjh]hconst}(hjZhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjZubj)}(h h]h }(hjZhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubjZ)}(hj]h]hstruct}(hjZhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjZubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubh)}(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)}jjZsbc.pci_remap_iospaceasbuh1hhjZubj)}(h h]h }(hj1[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZubj)}(hjh]h*}(hj?[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubj3)}(hresh]hres}(hjL[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjZubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjZubjT)}(hphys_addr_t phys_addrh](h)}(hhh]j3)}(h phys_addr_th]h phys_addr_t}(hjh[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hje[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjj[modnameN classnameNjj)}j]j-[c.pci_remap_iospaceasbuh1hhja[ubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhja[ubj3)}(h phys_addrh]h phys_addr}(hj[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hja[ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjZubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjZhhhjZhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjZhhhjZhMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhjZhMhjZhhubj)}(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&]uh1jhjZhhhjZhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[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}(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)}(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.chMhj[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&]uh1jbhj[ubeh}(h]h ]h"]h$]h&]uh1j@hj\hMhj[ubjA)}(hA``phys_addr_t phys_addr`` physical address of range to be mapped h](jG)}(h``phys_addr_t phys_addr``h]jM)}(hj8\h]hphys_addr_t phys_addr}(hj:\hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj6\ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj2\ubjc)}(hhh]j)}(h&physical address of range to be mappedh]h&physical address of range to be mapped}(hjQ\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM\hMhjN\ubah}(h]h ]h"]h$]h&]uh1jbhj2\ubeh}(h]h ]h"]h$]h&]uh1j@hjM\hMhj[ubeh}(h]h ]h"]h$]h&]uh1j;hj[ubj)}(h**Description**h]j&)}(hjs\h]h Description}(hju\hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjq\ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj[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.chMhj[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&]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_unmap_iospaceh]j3)}(hpci_unmap_iospaceh]hpci_unmap_iospace}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj\hhhj\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}(hj7]hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj4]ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj9]modnameN classnameNjj)}j]j)}jj\sbc.pci_unmap_iospaceasbuh1hhj]ubj)}(h h]h }(hjW]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]ubj)}(hjh]h*}(hje]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj3)}(hresh]hres}(hjr]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)}(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&]uh1jhj\hhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj]jj]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.chMhj]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.chMhj]ubjc)}(hhh]j)}(hresource to be unmappedh]hresource to be unmapped}(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}(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)}(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}(hj6^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.chMhj]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}(hjo^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjk^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&]uh1hhjk^hhhj}^hM&ubj-)}(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,hjk^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_set_masterasbuh1hhj^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&]jKjLuh1jMhjk^hhhj}^hM&ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjg^hhhj}^hM&ubah}(h]jb^ah ](jjeh"]h$]h&]jj)jhuh1hhj}^hM&hjd^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.chM&hj,_hhubah}(h]h ]h"]h$]h&]uh1jhjd^hhhj}^hM&ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjG_jjG_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&)}(hjQ_h]h Parameters}(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.chM*hjK_ubj<)}(hhh]jA)}(h1``struct pci_dev *dev`` the PCI device to enable 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.chM'hjj_ubjc)}(hhh]j)}(hthe PCI device to enableh]hthe PCI device to enable}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hM'hj_ubah}(h]h ]h"]h$]h&]uh1jbhjj_ubeh}(h]h ]h"]h$]h&]uh1j@hj_hM'hjg_ubah}(h]h ]h"]h$]h&]uh1j;hjK_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)hjK_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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM(hjK_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}(hj_hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj_hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM4ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_hhhj_hM4ubj-)}(hpci_clear_masterh]j3)}(hpci_clear_masterh]hpci_clear_master}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj `ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj_hhhj_hM4ubjN)}(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}(hjK`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjH`ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjM`modnameN classnameNjj)}j]j)}jj`sbc.pci_clear_masterasbuh1hhj)`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}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj)`ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj%`ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj_hhhj_hM4ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj_hhhj_hM4ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhj_hM4hj_hhubj)}(hhh]j)}(h%disables bus-mastering for device devh]h%disables 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.chM4hj`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1hhhhhhNhNubj)}(hC**Parameters** ``struct pci_dev *dev`` the PCI device to disableh](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.chM8hj`ubj<)}(hhh]jA)}(h1``struct pci_dev *dev`` the PCI device to disableh](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)}(hthe PCI device to disableh]hthe PCI device to disable}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM5hjaubah}(h]h ]h"]h$]h&]uh1jbhj`ubeh}(h]h ]h"]h$]h&]uh1j@hjahM:hj`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_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}(hjKahhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjGahhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM>ubj)}(h h]h }(hjZahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGahhhjYahM>ubj-)}(hpci_set_cacheline_sizeh]j3)}(hpci_set_cacheline_sizeh]hpci_set_cacheline_size}(hjlahhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhaubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjGahhhjYahM>ubjN)}(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)}jjnasbc.pci_set_cacheline_sizeasbuh1hhjaubj)}(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&]noemphjKjLuh1jShjaubah}(h]h ]h"]h$]h&]jKjLuh1jMhjGahhhjYahM>ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjCahhhjYahM>ubah}(h]j>aah ](jjeh"]h$]h&]jj)jhuh1hhjYahM>hj@ahhubj)}(hhh]j)}(h1ensure the CACHE_LINE_SIZE register is programmedh]h1ensure the CACHE_LINE_SIZE register is programmed}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM>hjbhhubah}(h]h ]h"]h$]h&]uh1jhj@ahhhjYahM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#bjj#bjjjuh1hhhhhhNhNubj)}(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&)}(hj-bh]h Parameters}(hj/bhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj+bubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMBhj'bubj<)}(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)}(hjLbh]hstruct pci_dev *dev}(hjNbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjJbubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM?hjFbubjc)}(hhh]j)}(h-the PCI device for which MWI is to be enabledh]h-the PCI device for which MWI is to be enabled}(hjebhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjabhM?hjbbubah}(h]h ]h"]h$]h&]uh1jbhjFbubeh}(h]h ]h"]h$]h&]uh1j@hjabhM?hjCbubah}(h]h ]h"]h$]h&]uh1j;hj'bubj)}(h**Description**h]j&)}(hjbh]h Description}(hjbhhhNhNubah}(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.chMAhj'bubj)}(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, .}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM@hj'bubj)}(h **Return**h]j&)}(hjbh]hReturn}(hjbhhhNhNubah}(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'bubj)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMEhj'bubeh}(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}(hjbhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMdubj)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhjchMdubj-)}(h pci_set_mwih]j3)}(h pci_set_mwih]h pci_set_mwi}(hjchhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjcubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjbhhhjchMdubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj0chhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj,cubj)}(h h]h }(hj=chhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,cubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjNchhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjKcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjPcmodnameN classnameNjj)}j]j)}jjcsb c.pci_set_mwiasbuh1hhj,cubj)}(h h]h }(hjnchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj,cubj)}(hjh]h*}(hj|chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,cubj3)}(hdevh]hdev}(hjchhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,cubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj(cubah}(h]h ]h"]h$]h&]jKjLuh1jMhjbhhhjchMdubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjbhhhjchMdubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhjchMdhjbhhubj)}(hhh]j)}(h/enables memory-write-invalidate PCI transactionh]h/enables memory-write-invalidate PCI transaction}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMdhjchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhjchMdubeh}(h]h ](jfunctioneh"]h$]h&]jjjjcjjcjjjuh1hhhhhhNhNubj)}(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&)}(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.chMhhjcubj<)}(hhh]jA)}(h@``struct pci_dev *dev`` the PCI device for which MWI is 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.chMehjcubjc)}(hhh]j)}(h'the PCI device for which MWI is enabledh]h'the PCI device for which MWI is enabled}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj dhMehj dubah}(h]h ]h"]h$]h&]uh1jbhjcubeh}(h]h ]h"]h$]h&]uh1j@hj dhMehjcubah}(h]h ]h"]h$]h&]uh1j;hjcubj)}(h**Description**h]j&)}(hj/dh]h Description}(hj1dhhhNhNubah}(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.chMghjcubj)}(hCEnables the Memory-Write-Invalidate transaction in ``PCI_COMMAND``.h](h3Enables the Memory-Write-Invalidate transaction in }(hjEdhhhNhNubjM)}(h``PCI_COMMAND``h]h PCI_COMMAND}(hjMdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjEdubh.}(hjEdhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMfhjcubj)}(h **Return**h]j&)}(hjhdh]hReturn}(hjjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjfdubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhhjcubj)}(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.}(hj~dhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMihjcubeh}(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}(hjdhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjdhhhS/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&]uh1hhjdhhhjdhMubj-)}(hpci_try_set_mwih]j3)}(hpci_try_set_mwih]hpci_try_set_mwi}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjdubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjdhhhjdhMubjN)}(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}(hjehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjeubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj emodnameN classnameNjj)}j]j)}jjdsbc.pci_try_set_mwiasbuh1hhjdubj)}(h h]h }(hj(ehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdubj)}(hjh]h*}(hj6ehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdubj3)}(hdevh]hdev}(hjCehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjdubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjdubah}(h]h ]h"]h$]h&]jKjLuh1jMhjdhhhjdhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjdhhhjdhMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1hhjdhMhjdhhubj)}(hhh]j)}(h/enables memory-write-invalidate PCI transactionh]h/enables memory-write-invalidate PCI transaction}(hjmehhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjjehhubah}(h]h ]h"]h$]h&]uh1jhjdhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjejjejjjuh1hhhhhhNhNubj)}(hX)**Parameters** ``struct pci_dev *dev`` the PCI device for which MWI is enabled **Description** Enables the Memory-Write-Invalidate transaction in ``PCI_COMMAND``. Callers are not required to check the return value. **Return** An appropriate -ERRNO error value on error, or zero for success.h](j)}(h**Parameters**h]j&)}(hjeh]h Parameters}(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.chMhjeubj<)}(hhh]jA)}(h@``struct pci_dev *dev`` the PCI device for which MWI is enabled h](jG)}(h``struct pci_dev *dev``h]jM)}(hjeh]hstruct pci_dev *dev}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjeubjc)}(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&]uh1jbhjeubeh}(h]h ]h"]h$]h&]uh1j@hjehMhjeubah}(h]h ]h"]h$]h&]uh1j;hjeubj)}(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.chMhjeubj)}(hwEnables the Memory-Write-Invalidate transaction in ``PCI_COMMAND``. Callers are not required to check the return value.h](h3Enables the Memory-Write-Invalidate transaction in }(hjehhhNhNubjM)}(h``PCI_COMMAND``h]h PCI_COMMAND}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeubh5. Callers are not required to check the return value.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjeubj)}(h **Return**h]j&)}(hj"fh]hReturn}(hj$fhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj fubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjeubj)}(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.}(hj8fhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjeubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_clear_mwi (C function)c.pci_clear_mwihNtauh1hhhhhhNhNubh)}(hhh](h)}(h(void pci_clear_mwi (struct pci_dev *dev)h]h)}(h'void pci_clear_mwi(struct pci_dev *dev)h](h)}(hvoidh]hvoid}(hjgfhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjcfhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjvfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjcfhhhjufhMubj-)}(h pci_clear_mwih]j3)}(h pci_clear_mwih]h pci_clear_mwi}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjcfhhhjufhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjfhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]j)}jjfsbc.pci_clear_mwiasbuh1hhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj3)}(hdevh]hdev}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjfubah}(h]h ]h"]h$]h&]jKjLuh1jMhjcfhhhjufhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj_fhhhjufhMubah}(h]jZfah ](jjeh"]h$]h&]jj)jhuh1hhjufhMhj\fhhubj)}(hhh]j)}(h/disables Memory-Write-Invalidate for device devh]h/disables Memory-Write-Invalidate for device dev}(hj'ghhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj$ghhubah}(h]h ]h"]h$]h&]uh1jhj\fhhhjufhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?gjj?gjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *dev`` the PCI device to disable **Description** Disables PCI Memory-Write-Invalidate transaction on the deviceh](j)}(h**Parameters**h]j&)}(hjIgh]h Parameters}(hjKghhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjGgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjCgubj<)}(hhh]jA)}(h2``struct pci_dev *dev`` the PCI device to disable h](jG)}(h``struct pci_dev *dev``h]jM)}(hjhgh]hstruct pci_dev *dev}(hjjghhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjfgubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjbgubjc)}(hhh]j)}(hthe PCI device to disableh]hthe PCI device to disable}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ghMhj~gubah}(h]h ]h"]h$]h&]uh1jbhjbgubeh}(h]h ]h"]h$]h&]uh1j@hj}ghMhj_gubah}(h]h ]h"]h$]h&]uh1j;hjCgubj)}(h**Description**h]j&)}(hjgh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjgubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjCgubj)}(h>Disables PCI Memory-Write-Invalidate transaction on the deviceh]h>Disables PCI Memory-Write-Invalidate transaction on the device}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjCgubeh}(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}(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_intxh]j3)}(hpci_intxh]hpci_intx}(hj hhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjghhhjghMubjN)}(h"(struct pci_dev *pdev, int enable)h](jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hj%hhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj!hubj)}(h h]h }(hj2hhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjChhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@hubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEhmodnameN classnameNjj)}j]j)}jj hsb c.pci_intxasbuh1hhj!hubj)}(h h]h }(hjchhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj!hubj)}(hjh]h*}(hjqhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!hubj3)}(hpdevh]hpdev}(hj~hhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!hubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubjT)}(h int enableh](h)}(hinth]hint}(hjhhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj3)}(henableh]henable}(hjhhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjhubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjghhhjghMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjghhhjghMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjghhubj)}(hhh]j)}(h(enables/disables PCI INTx for device devh]h(enables/disables PCI INTx for device dev}(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)}(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&)}(hjhh]h Parameters}(hjihhhNhNubah}(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)}(h6``struct pci_dev *pdev`` the PCI device to operate on h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjih]hstruct pci_dev *pdev}(hj ihhhNhNubah}(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.chMhjiubjc)}(hhh]j)}(hthe PCI device to operate onh]hthe PCI device to operate on}(hj7ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ihMhj4iubah}(h]h ]h"]h$]h&]uh1jbhjiubeh}(h]h ]h"]h$]h&]uh1j@hj3ihMhjiubjA)}(h>``int enable`` boolean: whether to enable or disable PCI INTx h](jG)}(h``int enable``h]jM)}(hjWih]h int enable}(hjYihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUiubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjQiubjc)}(hhh]j)}(h.boolean: whether to enable or disable PCI INTxh]h.boolean: whether to enable or disable PCI INTx}(hjpihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlihMhjmiubah}(h]h ]h"]h$]h&]uh1jbhjQiubeh}(h]h ]h"]h$]h&]uh1j@hjlihMhjiubeh}(h]h ]h"]h$]h&]uh1j;hjhubj)}(h**Description**h]j&)}(hjih]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjiubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhubj)}(h-Enables/disables PCI INTx for device **pdev**h](h%Enables/disables PCI INTx for device }(hjihhhNhNubj&)}(h**pdev**h]hpdev}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjiubeh}(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_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}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjihhhjihMubj-)}(h pci_wait_for_pending_transactionh]j3)}(h pci_wait_for_pending_transactionh]h pci_wait_for_pending_transaction}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjihhhjihMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj"jhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjjubj)}(h h]h }(hj/jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj@jhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj=jubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjBjmodnameN classnameNjj)}j]j)}jjjsb"c.pci_wait_for_pending_transactionasbuh1hhjjubj)}(h h]h }(hj`jhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjnjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj3)}(hdevh]hdev}(hj{jhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjihhhjihMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjihhhjihMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjihMhjihhubj)}(hhh]j)}(hwait for pending transactionh]hwait for pending transaction}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhhhNhNubj)}(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&)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjjubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjjubj<)}(hhh]jA)}(h5``struct pci_dev *dev`` the PCI device to operate on h](jG)}(h``struct pci_dev *dev``h]jM)}(hjjh]hstruct pci_dev *dev}(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@hjjhMhjjubah}(h]h ]h"]h$]h&]uh1j;hjjubj)}(h**Description**h]j&)}(hj!kh]h Description}(hj#khhhNhNubah}(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.chMhjjubj)}(h/Return 0 if transaction is pending 1 otherwise.h]h/Return 0 if transaction is pending 1 otherwise.}(hj7khhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjjubeh}(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}(hjfkhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbkhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjukhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbkhhhjtkhMubj-)}(hpcie_flrh]j3)}(hpcie_flrh]hpcie_flr}(hjkhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjkubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjbkhhhjtkhMubjN)}(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.pcie_flrasbuh1hhjkubj)}(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&]jKjLuh1jMhjbkhhhjtkhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj^khhhjtkhMubah}(h]jYkah ](jjeh"]h$]h&]jj)jhuh1hhjtkhMhj[khhubj)}(hhh]j)}(h$initiate a PCIe function level reseth]h$initiate a PCIe function level reset}(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&]uh1jhj[khhhjtkhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>ljj>ljjjuh1hhhhhhNhNubj)}(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&)}(hjHlh]h Parameters}(hjJlhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjFlubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjBlubj<)}(hhh]jA)}(h(``struct pci_dev *dev`` device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjglh]hstruct pci_dev *dev}(hjilhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjelubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjalubjc)}(hhh]j)}(hdevice to reseth]hdevice to reset}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|lhMhj}lubah}(h]h ]h"]h$]h&]uh1jbhjalubeh}(h]h ]h"]h$]h&]uh1j@hj|lhMhj^lubah}(h]h ]h"]h$]h&]uh1j;hjBlubj)}(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.chMhjBlubj)}(h`Initiate a function level reset unconditionally on **dev** without checking any flags and DEVCAPh](h3Initiate a function level reset unconditionally on }(hjlhhhNhNubj&)}(h**dev**h]hdev}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjlubh& without checking any flags and DEVCAP}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjBlubeh}(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}(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 }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlhhhjmhM ubj-)}(hpcie_reset_flrh]j3)}(hpcie_reset_flrh]hpcie_reset_flr}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjlhhhjmhM ubjN)}(h!(struct pci_dev *dev, bool probe)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj6mhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj2mubj)}(h h]h }(hjCmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2mubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjTmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjQmubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmmodnameN classnameNjj)}j]j)}jjmsbc.pcie_reset_flrasbuh1hhj2mubj)}(h h]h }(hjtmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2mubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2mubj3)}(hdevh]hdev}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2mubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj.mubjT)}(h bool probeh](h)}(hj'4h]hbool}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubj)}(h h]h }(hjmhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj3)}(hprobeh]hprobe}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj.mubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjlhhhjmhM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjlhhhjmhM ubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjmhM 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&]uh1jhjlhhhjmhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1hhhhhhNhNubj)}(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&)}(hjnh]h Parameters}(hjnhhhNhNubah}(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.chMhj nubj<)}(hhh](jA)}(h(``struct pci_dev *dev`` device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hj.nh]hstruct pci_dev *dev}(hj0nhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,nubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM hj(nubjc)}(hhh]j)}(hdevice to reseth]hdevice to reset}(hjGnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCnhM hjDnubah}(h]h ]h"]h$]h&]uh1jbhj(nubeh}(h]h ]h"]h$]h&]uh1j@hjCnhM hj%nubjA)}(hA``bool probe`` if true, return 0 if device can be reset this way h](jG)}(h``bool probe``h]jM)}(hjgnh]h bool probe}(hjinhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjenubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjanubjc)}(hhh]j)}(h1if true, return 0 if device can be reset this wayh]h1if true, return 0 if device can be reset this way}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|nhMhj}nubah}(h]h ]h"]h$]h&]uh1jbhjanubeh}(h]h ]h"]h$]h&]uh1j@hj|nhMhj%nubeh}(h]h ]h"]h$]h&]uh1j;hj nubj)}(h**Description**h]j&)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjnubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj nubj)}(h+Initiate a function level reset on **dev**.h](h#Initiate a function level reset on }(hjnhhhNhNubj&)}(h**dev**h]hdev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjnubh.}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj nubeh}(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}(hjnhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnhhhjohMubj-)}(hpci_bridge_secondary_bus_reseth]j3)}(hpci_bridge_secondary_bus_reseth]hpci_bridge_secondary_bus_reset}(hjohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjoubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjnhhhjohMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj6ohhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj2oubj)}(h h]h }(hjCohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2oubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjTohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjQoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVomodnameN classnameNjj)}j]j)}jjosb c.pci_bridge_secondary_bus_resetasbuh1hhj2oubj)}(h h]h }(hjtohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2oubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2oubj3)}(hdevh]hdev}(hjohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2oubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj.oubah}(h]h ]h"]h$]h&]jKjLuh1jMhjnhhhjohMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjnhhhjohMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1hhjohMhjnhhubj)}(hhh]j)}(h(Reset the secondary bus on a PCI bridge.h]h(Reset the secondary bus on a PCI bridge.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjohMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1hhhhhhNhNubj)}(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&)}(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.chMhjoubj<)}(hhh]jA)}(h&``struct pci_dev *dev`` Bridge device 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.chMhjoubjc)}(hhh]j)}(h Bridge deviceh]h Bridge device}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jbhjoubeh}(h]h ]h"]h$]h&]uh1j@hjphMhjoubah}(h]h ]h"]h$]h&]uh1j;hjoubj)}(h**Description**h]j&)}(hj5ph]h Description}(hj7phhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3pubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjoubj)}(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.}(hjKphhhNhNubah}(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،(__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}(hjzphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjvphhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjvphhhjphMubj-)}(h__pci_reset_function_lockedh]j3)}(h__pci_reset_function_lockedh]h__pci_reset_function_locked}(hjphhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjvphhhjphMubjN)}(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)}jjpsbc.__pci_reset_function_lockedasbuh1hhjpubj)}(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&]jKjLuh1jMhjvphhhjphMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjrphhhjphMubah}(h]jmpah ](jjeh"]h$]h&]jj)jhuh1hhjphMhjophhubj)}(hhh]j)}(hAreset a PCI device function while holding the **dev** mutex lock.h](h.reset a PCI device function while holding the }(hj:qhhhNhNubj&)}(h**dev**h]hdev}(hjBqhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj:qubh mutex lock.}(hj:qhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj7qhhubah}(h]h ]h"]h$]h&]uh1jhjophhhjphMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdqjjdqjjjuh1hhhhhhNhNubj)}(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&)}(hjnqh]h Parameters}(hjpqhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjlqubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhqubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjqh]hstruct pci_dev *dev}(hjqhhhNhNubah}(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.chMhjqubjc)}(hhh]j)}(hPCI device to reseth]hPCI device to reset}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jbhjqubeh}(h]h ]h"]h$]h&]uh1j@hjqhMhjqubah}(h]h ]h"]h$]h&]uh1j;hjhqubj)}(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.chMhjhqubj)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhqubj)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhqubj)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhqubj)}(h **Context**h]j&)}(hj rh]hContext}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj rubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhqubj)}(h%The caller must hold the device lock.h]h%The caller must hold the device lock.}(hj#rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhqubj)}(h **Return**h]j&)}(hj4rh]hReturn}(hj6rhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj2rubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhqubj)}(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.}(hjJrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjhqubeh}(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}(hjyrhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjurhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM)ubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjurhhhjrhM)ubj-)}(hpci_reset_functionh]j3)}(hpci_reset_functionh]hpci_reset_function}(hjrhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjrubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjurhhhjrhM)ubjN)}(h(struct pci_dev *dev)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]j)}jjrsbc.pci_reset_functionasbuh1hhjrubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj3)}(hdevh]hdev}(hjshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjrubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjrubah}(h]h ]h"]h$]h&]jKjLuh1jMhjurhhhjrhM)ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjqrhhhjrhM)ubah}(h]jlrah ](jjeh"]h$]h&]jj)jhuh1hhjrhM)hjnrhhubj)}(hhh]j)}(h'quiesce and reset a PCI device functionh]h'quiesce and reset a PCI device function}(hj9shhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM)hj6shhubah}(h]h ]h"]h$]h&]uh1jhjnrhhhjrhM)ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQsjjQsjjjuh1hhhhhhNhNubj)}(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&)}(hj[sh]h Parameters}(hj]shhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjYsubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM-hjUsubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjzsh]hstruct pci_dev *dev}(hj|shhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxsubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM*hjtsubjc)}(hhh]j)}(hPCI device to reseth]hPCI device to reset}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshM*hjsubah}(h]h ]h"]h$]h&]uh1jbhjtsubeh}(h]h ]h"]h$]h&]uh1j@hjshM*hjqsubah}(h]h ]h"]h$]h&]uh1j;hjUsubj)}(h**Description**h]j&)}(hjsh]h Description}(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.chM,hjUsubj)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM+hjUsubj)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM/hjUsubj)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM4hjUsubeh}(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}(hjthhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjthhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMXubj)}(h h]h }(hj'thhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjthhhj&thMXubj-)}(hpci_reset_function_lockedh]j3)}(hpci_reset_function_lockedh]hpci_reset_function_locked}(hj9thhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj5tubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjthhhj&thMXubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjUthhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjQtubj)}(h h]h }(hjbthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQtubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjsthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjptubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjutmodnameN classnameNjj)}j]j)}jj;tsbc.pci_reset_function_lockedasbuh1hhjQtubj)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQtubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQtubj3)}(hdevh]hdev}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjQtubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjMtubah}(h]h ]h"]h$]h&]jKjLuh1jMhjthhhj&thMXubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjthhhj&thMXubah}(h]j tah ](jjeh"]h$]h&]jj)jhuh1hhj&thMXhj thhubj)}(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.chMXhjthhubah}(h]h ]h"]h$]h&]uh1jhj thhhj&thMXubeh}(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. 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&)}(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.chM\hjtubj<)}(hhh]jA)}(h,``struct pci_dev *dev`` PCI device to reset h](jG)}(h``struct pci_dev *dev``h]jM)}(hjuh]hstruct pci_dev *dev}(hjuhhhNhNubah}(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.chMYhjuubjc)}(hhh]j)}(hPCI device to reseth]hPCI device to reset}(hj2uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.uhMYhj/uubah}(h]h ]h"]h$]h&]uh1jbhjuubeh}(h]h ]h"]h$]h&]uh1j@hj.uhMYhjuubah}(h]h ]h"]h$]h&]uh1j;hjtubj)}(h**Description**h]j&)}(hjTuh]h Description}(hjVuhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjRuubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM[hjtubj)}(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.}(hjjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMZhjtubj)}(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.}(hjyuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM^hjtubj)}(h **Context**h]j&)}(hjuh]hContext}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjuubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMdhjtubj)}(h%The caller must hold the device lock.h]h%The caller must hold the device lock.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMehjtubj)}(h **Return**h]j&)}(hjuh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjuubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMghjtubj)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMghjtubeh}(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}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM~ubj)}(h h]h }(hjvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuhhhjvhM~ubj-)}(hpci_try_reset_functionh]j3)}(hpci_try_reset_functionh]hpci_try_reset_function}(hjvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjvubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjuhhhjvhM~ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj3vhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj/vubj)}(h h]h }(hj@vhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/vubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjQvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjNvubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSvmodnameN classnameNjj)}j]j)}jjvsbc.pci_try_reset_functionasbuh1hhj/vubj)}(h h]h }(hjqvhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/vubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/vubj3)}(hdevh]hdev}(hjvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/vubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj+vubah}(h]h ]h"]h$]h&]jKjLuh1jMhjuhhhjvhM~ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjuhhhjvhM~ubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjvhM~hjuhhubj)}(hhh]j)}(h'quiesce and reset a PCI device functionh]h'quiesce and reset a PCI device function}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM~hjvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjvhM~ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1hhhhhhNhNubj)}(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&)}(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)}(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}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj whMhj wubah}(h]h ]h"]h$]h&]uh1jbhjvubeh}(h]h ]h"]h$]h&]uh1j@hj whMhjvubah}(h]h ]h"]h$]h&]uh1j;hjvubj)}(h**Description**h]j&)}(hj2wh]h Description}(hj4whhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj0wubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjvubj)}(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.}(hjHwhhhNhNubah}(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_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}(hjwwhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjswhhhS/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&]uh1hhjswhhhjwhMubj-)}(hpci_probe_reset_sloth]j3)}(hpci_probe_reset_sloth]hpci_probe_reset_slot}(hjwhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjwubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjswhhhjwhMubjN)}(h(struct pci_slot *slot)h]jT)}(hstruct pci_slot *sloth](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_sloth]hpci_slot}(hjwhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjwubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwmodnameN classnameNjj)}j]j)}jjwsbc.pci_probe_reset_slotasbuh1hhjwubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjwubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubj3)}(hsloth]hslot}(hj xhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjwubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjwubah}(h]h ]h"]h$]h&]jKjLuh1jMhjswhhhjwhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjowhhhjwhMubah}(h]jjwah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhjlwhhubj)}(hhh]j)}(h%probe whether a PCI slot can be reseth]h%probe whether a PCI slot can be reset}(hj7xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhj4xhhubah}(h]h ]h"]h$]h&]uh1jhjlwhhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjOxjjOxjjjuh1hhhhhhNhNubj)}(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&)}(hjYxh]h Parameters}(hj[xhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjWxubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjSxubj<)}(hhh]jA)}(h,``struct pci_slot *slot`` PCI slot to probe h](jG)}(h``struct pci_slot *slot``h]jM)}(hjxxh]hstruct pci_slot *slot}(hjzxhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvxubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjrxubjc)}(hhh]j)}(hPCI slot to probeh]hPCI slot to probe}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjxubah}(h]h ]h"]h$]h&]uh1jbhjrxubeh}(h]h ]h"]h$]h&]uh1j@hjxhMhjoxubah}(h]h ]h"]h$]h&]uh1j;hjSxubj)}(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.chMhjSxubj)}(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.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjSxubeh}(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}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjxhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM!ubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjxhhhjyhM!ubj-)}(hpci_probe_reset_bush]j3)}(hpci_probe_reset_bush]hpci_probe_reset_bus}(hjyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjyubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjxhhhjyhM!ubjN)}(h(struct pci_bus *bus)h]jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj5yhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj1yubj)}(h h]h }(hjByhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1yubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjSyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjPyubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUymodnameN classnameNjj)}j]j)}jjysbc.pci_probe_reset_busasbuh1hhj1yubj)}(h h]h }(hjsyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1yubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1yubj3)}(hbush]hbus}(hjyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1yubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj-yubah}(h]h ]h"]h$]h&]jKjLuh1jMhjxhhhjyhM!ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjxhhhjyhM!ubah}(h]jxah ](jjeh"]h$]h&]jj)jhuh1hhjyhM!hjxhhubj)}(hhh]j)}(h$probe whether a PCI bus can be reseth]h$probe whether a PCI bus can be reset}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM!hjyhhubah}(h]h ]h"]h$]h&]uh1jhjxhhhjyhM!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjyjjyjjjuh1hhhhhhNhNubj)}(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&)}(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.chM%hjyubj<)}(hhh]jA)}(h)``struct pci_bus *bus`` PCI bus to probe h](jG)}(h``struct pci_bus *bus``h]jM)}(hjyh]hstruct pci_bus *bus}(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.chM"hjyubjc)}(hhh]j)}(hPCI bus to probeh]hPCI bus to probe}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzhM"hjzubah}(h]h ]h"]h$]h&]uh1jbhjyubeh}(h]h ]h"]h$]h&]uh1j@hjzhM"hjyubah}(h]h ]h"]h$]h&]uh1j;hjyubj)}(h**Description**h]j&)}(hj4zh]h Description}(hj6zhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj2zubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM$hjyubj)}(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.}(hjJzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM#hjyubeh}(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}(hjyzhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuzhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM-ubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuzhhhjzhM-ubj-)}(h pci_reset_bush]j3)}(h pci_reset_bush]h pci_reset_bus}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjuzhhhjzhM-ubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](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_reset_busasbuh1hhjzubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj3)}(hpdevh]hpdev}(hj{hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjzubah}(h]h ]h"]h$]h&]jKjLuh1jMhjuzhhhjzhM-ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjqzhhhjzhM-ubah}(h]jlzah ](jjeh"]h$]h&]jj)jhuh1hhjzhM-hjnzhhubj)}(hhh]j)}(hTry to reset a PCI bush]hTry to reset a PCI bus}(hj9{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM-hj6{hhubah}(h]h ]h"]h$]h&]uh1jhjnzhhhjzhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQ{jjQ{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&)}(hj[{h]h Parameters}(hj]{hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjY{ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chM1hjU{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)}(hjz{h]hstruct pci_dev *pdev}(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.chM.hjt{ubjc)}(hhh]j)}(h*top level PCI device to reset via slot/bush]h*top level PCI device to reset via slot/bus}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{hM.hj{ubah}(h]h ]h"]h$]h&]uh1jbhjt{ubeh}(h]h ]h"]h$]h&]uh1j@hj{hM.hjq{ubah}(h]h ]h"]h$]h&]uh1j;hjU{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.chM0hjU{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.chM/hjU{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.chM:ubj)}(h h]h }(hj |hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj{hhhj|hM:ubj-)}(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|hM:ubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj7|hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj3|ubj)}(h h]h }(hjD|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3|ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjU|hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjR|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjW|modnameN classnameNjj)}j]j)}jj|sbc.pcix_get_max_mmrbcasbuh1hhj3|ubj)}(h h]h }(hju|hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj3|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3|ubj3)}(hdevh]hdev}(hj|hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj3|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)}(h1get PCI-X maximum designed memory read byte counth]h1get PCI-X maximum designed memory read byte count}(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`` PCI device to query **Description** Returns mmrbc: maximum designed memory read count in bytes or appropriate error value.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 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.chM;hj|ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(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&)}(hj6}h]h Description}(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.chM=hj|ubj)}(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.}(hjL}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،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}(hj{}hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjw}hhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMQubj)}(h h]h }(hj}hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjw}hhhj}hMQubj-)}(hpcix_get_mmrbch]j3)}(hpcix_get_mmrbch]hpcix_get_mmrbc}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjw}hhhj}hMQubjN)}(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.pcix_get_mmrbcasbuh1hhj}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&]jKjLuh1jMhjw}hhhj}hMQubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjs}hhhj}hMQubah}(h]jn}ah ](jjeh"]h$]h&]jj)jhuh1hhj}hMQhjp}hhubj)}(hhh]j)}(h(get PCI-X maximum memory read byte counth]h(get PCI-X maximum memory read byte count}(hj;~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMQhj8~hhubah}(h]h ]h"]h$]h&]uh1jhjp}hhhj}hMQubeh}(h]h ](jfunctioneh"]h$]h&]jjjjS~jjS~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&)}(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.chMUhjW~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&]uh1jLhjz~ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMRhjv~ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~hMRhj~ubah}(h]h ]h"]h$]h&]uh1jbhjv~ubeh}(h]h ]h"]h$]h&]uh1j@hj~hMRhjs~ubah}(h]h ]h"]h$]h&]uh1j;hjW~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.chMThjW~ubj)}(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.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMShjW~ubeh}(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.chMhubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhj hMhubj-)}(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~hhhj hMhubjN)}(h (struct pci_dev *dev, int mmrbc)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hj9hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj5ubj)}(h h]h }(hjFhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjWhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjTubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjYmodnameN classnameNjj)}j]j)}jjsbc.pcix_set_mmrbcasbuh1hhj5ubj)}(h h]h }(hjwhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj5ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj1ubjT)}(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&]noemphjKjLuh1jShj1ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj~hhhj hMhubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj~hhhj hMhubah}(h]j~ah ](jjeh"]h$]h&]jj)jhuh1hhj hMhhj~hhubj)}(hhh]j)}(h(set PCI-X maximum memory read byte counth]h(set 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.chMhhjhhubah}(h]h ]h"]h$]h&]uh1jhj~hhhj hMhubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(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.chMlhj ubj<)}(hhh](jA)}(h,``struct pci_dev *dev`` PCI device to query h](jG)}(h``struct pci_dev *dev``h]jM)}(hj2h]hstruct pci_dev *dev}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0ubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMihj,ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGhMihjHubah}(h]h ]h"]h$]h&]uh1jbhj,ubeh}(h]h ]h"]h$]h&]uh1j@hjGhMihj)ubjA)}(hX``int mmrbc`` maximum memory read count in bytes valid values are 512, 1024, 2048, 4096 h](jG)}(h ``int mmrbc``h]jM)}(hjkh]h int mmrbc}(hjmhhhNhNubah}(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.chMkhjeubjc)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMjhjubah}(h]h ]h"]h$]h&]uh1jbhjeubeh}(h]h ]h"]h$]h&]uh1j@hjhMkhj)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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMmhj ubj)}(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.chMlhj ubeh}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhS/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-)}(hpcie_get_readrqh]j3)}(hpcie_get_readrqh]hpcie_get_readrq}(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}(hj)hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj%ubj)}(h h]h }(hj6hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjGhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjImodnameN classnameNjj)}j]j)}jjsbc.pcie_get_readrqasbuh1hhj%ubj)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj%ubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj%ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj!ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhMubah}(h]j߀ah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjājjājjjuh1hhhhhhNhNubj)}(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&)}(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)}(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;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)}(hHReturns maximum memory read request in bytes or appropriate error value.h]hHReturns maximum memory read request 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.chMhjȁubeh}(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}(hjmhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjihhhS/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&]uh1hhjihhhj{hMubj-)}(hpcie_set_readrqh]j3)}(hpcie_set_readrqh]hpcie_set_readrq}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjihhhj{hMubjN)}(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}(hjȂhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjłubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjʂmodnameN classnameNjj)}j]j)}jjsbc.pcie_set_readrqasbuh1hhjubj)}(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 rqh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hrqh]hrq}(hj8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjihhhj{hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjehhhj{hMubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1hhj{hMhjbhhubj)}(hhh]j)}(h+set PCI Express maximum memory read requesth]h+set PCI Express maximum memory read request}(hjbhhhNhNubah}(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&]uh1jhjbhhhj{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1hhhhhhNhNubj)}(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&)}(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.chMhj~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.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 rq`` maximum memory read count in bytes valid values are 128, 256, 512, 1024, 2048, 4096 h](jG)}(h ``int rq``h]jM)}(hj܃h]hint rq}(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)}(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}(hjhhhNhNubah}(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&]uh1jbhjփubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubeh}(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)}(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.chMhj~ubeh}(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}(hj]hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjYhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjYhhhjkhMubj-)}(h pcie_get_mpsh]j3)}(h pcie_get_mpsh]h pcie_get_mps}(hj~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjYhhhjkhMubjN)}(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.pcie_get_mpsasbuh1hhjubj)}(h h]h }(hj؄hhhNhNubah}(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&]jKjLuh1jMhjYhhhjkhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjUhhhjkhMubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1hhjkhMhjRhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjRhhhjkhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1hhhhhhNhNubj)}(hu**Parameters** ``struct pci_dev *dev`` PCI device to query **Description** Returns maximum payload size 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.chMhj9ubj<)}(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.chMhjXubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjshMhjtubah}(h]h ]h"]h$]h&]uh1jbhjXubeh}(h]h ]h"]h$]h&]uh1j@hjshMhjUubah}(h]h ]h"]h$]h&]uh1j;hj9ubj)}(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.chMhj9ubj)}(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.chMhj9ubeh}(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}(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-)}(h pcie_set_mpsh]j3)}(h pcie_set_mpsh]h pcie_set_mps}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjڅhhhjhMubjN)}(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 }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj9hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj;modnameN classnameNjj)}j]j)}jjsbc.pcie_set_mpsasbuh1hhjubj)}(h h]h }(hjYhhhNhNubah}(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&]noemphjKjLuh1jShjubjT)}(hint mpsh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hmpsh]hmps}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(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 Express maximum payload sizeh]h$set PCI Express maximum payload size}(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ӅhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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&)}(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}(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)}(h[``int mps`` maximum payload size in bytes valid values are 128, 256, 512, 1024, 2048, 4096 h](jG)}(h ``int mps``h]jM)}(hjMh]hint mps}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjKubah}(h]h ]h"]h$]h&]uh1jFhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjGubjc)}(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}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjcubah}(h]h ]h"]h$]h&]uh1jbhjGubeh}(h]h ]h"]h$]h&]uh1j@hjbhMhj 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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(h%If possible sets maximum payload sizeh]h%If possible sets maximum payload size}(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_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}(hjчhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj·ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjӇmodnameN classnameNjj)}j]j)}jpcie_bandwidth_availablesbc.pcie_bandwidth_availableasbuh1hhjʇ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-)}(hpcie_bandwidth_availableh]j3)}(hjh]hpcie_bandwidth_available}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjʇhhhjhMubjN)}(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}(hj hhhNhNubah}(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]jc.pcie_bandwidth_availableasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdevh]hdev}(hjwhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct pci_dev **limiting_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.pcie_bandwidth_availableasbuh1hhjubj)}(h h]h }(hj̈hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjڈhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(h limiting_devh]h limiting_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(henum pci_bus_speed *speedh](jZ)}(hj2h]henum}(hj hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j3)}(h pci_bus_speedh]h pci_bus_speed}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-modnameN classnameNjj)}j]jc.pcie_bandwidth_availableasbuh1hhj ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj3)}(hspeedh]hspeed}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(henum pcie_link_width *widthh](jZ)}(hj2h]henum}(hj}hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubh)}(hhh]j3)}(hpcie_link_widthh]hpcie_link_width}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pcie_bandwidth_availableasbuh1hhjyubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjyubj)}(hjh]h*}(hjljhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj3)}(hwidthh]hwidth}(hjԉhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjyubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjʇhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjƇhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhMhjÇhhubj)}(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}(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ÇhhhjhMubeh}(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&)}(hj h]h Parameters}(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.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}(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.chMhj9ubjc)}(hhh]j)}(hPCI device to queryh]hPCI device to query}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjThMhjUubah}(h]h ]h"]h$]h&]uh1jbhj9ubeh}(h]h ]h"]h$]h&]uh1j@hjThMhj6ubjA)}(hV``struct pci_dev **limiting_dev`` storage for device causing the bandwidth limitation h](jG)}(h!``struct pci_dev **limiting_dev``h]jM)}(hjxh]hstruct pci_dev **limiting_dev}(hjzhhhNhNubah}(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.chMhjrubjc)}(hhh]j)}(h3storage for device causing the bandwidth limitationh]h3storage for device causing the bandwidth limitation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjrubeh}(h]h ]h"]h$]h&]uh1j@hjhMhj6ubjA)}(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.chMhjubjc)}(hhh]j)}(h$storage for speed of limiting deviceh]h$storage for speed of limiting device}(hjʊhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƊhMhjNJubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjƊhMhj6ubjA)}(hE``enum pcie_link_width *width`` storage for width of limiting device h](jG)}(h``enum pcie_link_width *width``h]jM)}(hjh]henum pcie_link_width *width}(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$storage for width of limiting deviceh]h$storage for width of limiting device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhj6ubeh}(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&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(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.}(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،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}(hjjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjfhhhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjwhMubh)}(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)}jpcie_get_speed_capsbc.pcie_get_speed_capasbuh1hhjfhhhjwhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfhhhjwhMubj-)}(hpcie_get_speed_caph]j3)}(hjh]hpcie_get_speed_cap}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjfhhhjwhMubjN)}(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 }(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.pcie_get_speed_capasbuh1hhjӋubj)}(h h]h }(hjhhhNhNubah}(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&]jKjLuh1jMhjfhhhjwhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjbhhhjwhMubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1hhjwhMhj_hhubj)}(hhh]j)}(h0query for the PCI device's link speed capabilityh]h2query for the PCI device’s link speed capability}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjUhhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjwhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjpjjpjjjuh1hhhhhhNhNubj)}(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&)}(hjzh]h Parameters}(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.chMhjtubj<)}(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;hjtubj)}(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.chMhjtubj)}(h&Query the PCI device speed capability.h]h&Query the PCI device speed capability.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjtubj)}(h **Return**h]j&)}(hjh]hReturn}(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.chMhjtubj)}(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.chMhjtubeh}(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}(hjphhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjlhhhS/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&]uh1hhjlhhhj~hMubj-)}(hpci_select_barsh]j3)}(hpci_select_barsh]hpci_select_bars}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjlhhhj~hMubjN)}(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}(hjːhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjȐubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj͐modnameN classnameNjj)}j]j)}jjsbc.pci_select_barsasbuh1hhjubj)}(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)}(hunsigned long flagsh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hlongh]hlong}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hflagsh]hflags}(hjWhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjlhhhj~hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhhj~hMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1hhj~hMhjehhubj)}(hhh]j)}(h'Make BAR mask from the type of resourceh]h'Make BAR mask from the type of resource}(hjhhhNhNubah}(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&]uh1jhjehhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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&)}(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)}(hB``struct pci_dev *dev`` the PCI device for which BAR mask is made h](jG)}(h``struct pci_dev *dev``h]jM)}(hj‘h]hstruct pci_dev *dev}(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)}(h)the PCI device for which BAR mask is madeh]h)the PCI device for which BAR mask is made}(hjۑhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjבhMhjؑubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjבhMhjubjA)}(h:``unsigned long flags`` resource type mask to be selected h](jG)}(h``unsigned long flags``h]jM)}(hjh]hunsigned long flags}(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!resource type mask to be selectedh]h!resource type mask to be selected}(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&)}(hj6h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj4ubah}(h]h ]h"]h$]h&]uh1jhS/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:4: ./drivers/pci/pci.chMhjubj)}(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.}(hjLhhhNhNubah}(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_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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hK>hj2ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj1hK>hjubjA)}(h``int bar`` BAR number h](jG)}(h ``int bar``h]jM)}(hjUh]hint bar}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjSubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chK?hjOubjc)}(hhh]j)}(h BAR numberh]h BAR number}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhK?hjkubah}(h]h ]h"]h$]h&]uh1jbhjOubeh}(h]h ]h"]h$]h&]uh1j@hjjhK?hjubjA)}(h?``unsigned long offset`` map memory at the given offset in BAR h](jG)}(h``unsigned long offset``h]jM)}(hjh]hunsigned long offset}(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.chK@hjubjc)}(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&]uh1jhjhK@hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhK@hjubjA)}(h9``unsigned long maxlen`` max length of the memory to map h](jG)}(h``unsigned long maxlen``h]jM)}(hjǚh]hunsigned long maxlen}(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: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&]uh1jhjܚhKAhjݚubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjܚhKAhjubeh}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKChjubj)}(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.chKBhjubj)}(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}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj'ubhq specifies the maximum length to map. If you want to get access to the complete BAR from offset to the end, 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.chKHhjubeh}(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}(hjvhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjrhhhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKnubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrhhhjhKnubh__iomem}(hjrhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjrhhhjhKnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhKnubj-)}(h pci_iomaph]j3)}(h pci_iomaph]h pci_iomap}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjrhhhjhKnubjN)}(h4(struct pci_dev *dev, int bar, unsigned long maxlen)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}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.pci_iomapasbuh1hhjΛ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}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjΛubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjʛubjT)}(hint barh](h)}(hinth]hint}(hjDhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@ubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj3)}(hbarh]hbar}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjʛubjT)}(hunsigned long maxlenh](h)}(hunsignedh]hunsigned}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubh)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjuubj3)}(hmaxlenh]hmaxlen}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjuubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjʛubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjrhhhjhKnubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjnhhhjhKnubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhjhKnhjkhhubj)}(hhh]j)}(h-create a virtual mapping cookie for a PCI BARh]h-create a virtual 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.chKnhj؜hhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhKnubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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&)}(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.chKrhjubj<)}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hKohj2ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj1hKohjubjA)}(h``int bar`` BAR number h](jG)}(h ``int bar``h]jM)}(hjUh]hint bar}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjSubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKphjOubjc)}(hhh]j)}(h BAR numberh]h BAR number}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhKphjkubah}(h]h ]h"]h$]h&]uh1jbhjOubeh}(h]h ]h"]h$]h&]uh1j@hjjhKphjubjA)}(h5``unsigned long maxlen`` 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.chKqhjubjc)}(hhh]j)}(hlength of the memory to maph]hlength of the memory to map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKqhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKqhjubeh}(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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKshjubj)}(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.}(hjߝhhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKrhjubj)}(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.chKwhjubeh}(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}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj9hhhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKubj)}(h h]h }(hjLhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjKhKubh__iomem}(hj9hhhNhNubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9hhhjKhKubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9hhhjKhKubj-)}(h pci_iomap_wch]j3)}(h pci_iomap_wch]h pci_iomap_wc}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjyubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj9hhhjKhKubjN)}(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}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pci_iomap_wcasbuh1hhjubj)}(h h]h }(hjמhhhNhNubah}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(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}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hlongh]hlong}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj3)}(hmaxlenh]hmaxlen}(hjxhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj<ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj9hhhjKhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj5hhhjKhKubah}(h]j0ah ](jjeh"]h$]h&]jj)jhuh1hhjKhKhj2hhubj)}(hhh]j)}(h0create a virtual WC mapping cookie for a PCI BARh]h0create a virtual WC 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.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj2hhhjKhKubeh}(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&)}(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.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.chKhjݟubjc)}(hhh]j)}(hPCI device that owns the BARh]hPCI device that owns the BAR}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjݟubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjڟubjA)}(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}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1hKhj2ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj1hKhjڟubjA)}(h5``unsigned long maxlen`` length of the memory to map h](jG)}(h``unsigned long maxlen``h]jM)}(hjUh]hunsigned long maxlen}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjSubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:7: ./drivers/pci/iomap.chKhjOubjc)}(hhh]j)}(hlength of the memory to maph]hlength of the memory to map}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjhKhjkubah}(h]h ]h"]h$]h&]uh1jbhjOubeh}(h]h ]h"]h$]h&]uh1j@hjjhKhjڟ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&]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}(hjˠhhhNhNubah}(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}(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&]uh1hhjhhhjhKubj-)}(hdevm_pci_remap_iospaceh]j3)}(hdevm_pci_remap_iospaceh]hdevm_pci_remap_iospace}(hj%hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhKubjN)}(hG(struct device *dev, const struct resource *res, phys_addr_t phys_addr)h](jT)}(hstruct device *devh](jZ)}(hj]h]hstruct}(hjAhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj=ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj=ubh)}(hhh]j3)}(hdeviceh]hdevice}(hj_hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNjj)}j]j)}jj'sbc.devm_pci_remap_iospaceasbuh1hhj=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&]noemphjKjLuh1jShj9ubjT)}(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}(hjΡhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjۡhhhNhNubah}(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]j{c.devm_pci_remap_iospaceasbuh1hhjubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hresh]hres}(hj%hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj9ubjT)}(hphys_addr_t phys_addrh](h)}(hhh]j3)}(h phys_addr_th]h phys_addr_t}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmodnameN classnameNjj)}j]j{c.devm_pci_remap_iospaceasbuh1hhj:ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:ubj3)}(h phys_addrh]h phys_addr}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj9ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjhhubj)}(hhh]j)}(hManaged pci_remap_iospace()h]hManaged pci_remap_iospace()}(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&]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)}(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 remap IO address forh]h&Generic device to remap IO address for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjҢubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjϢubjA)}(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.chKhj 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&hKhj'ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj&hKhjϢubjA)}(hA``phys_addr_t phys_addr`` physical address of range to be mapped h](jG)}(h``phys_addr_t phys_addr``h]jM)}(hjJh]hphys_addr_t phys_addr}(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.chKhjDubjc)}(hhh]j)}(h&physical address of range to be mappedh]h&physical address of range to be mapped}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hKhj`ubah}(h]h ]h"]h$]h&]uh1jbhjDubeh}(h]h ]h"]h$]h&]uh1j@hj_hKhjϢ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: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.}(hjhhhNhNubah}(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}(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 }(hj٣hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjƣhhhjأhKubh__iomem}(hjƣhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjƣhhhjأhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjƣhhhjأhKubj-)}(hdevm_pci_remap_cfgspaceh]j3)}(hdevm_pci_remap_cfgspaceh]hdevm_pci_remap_cfgspace}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjƣhhhjأhKubjN)}(hB(struct device *dev, resource_size_t offset, resource_size_t size)h](jT)}(hstruct device *devh](jZ)}(hj]h]hstruct}(hj&hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj"ubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubh)}(hhh]j3)}(hdeviceh]hdevice}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjFmodnameN classnameNjj)}j]j)}jj sbc.devm_pci_remap_cfgspaceasbuh1hhj"ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj"ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj"ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hresource_size_t offseth](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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hoffseth]hoffset}(hjǤhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(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_cfgspaceasbuh1hhjܤubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjܤubj3)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjܤubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjƣhhhjأhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj£hhhjأhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjأhKhjhhubj)}(hhh]j)}(hManaged pci_remap_cfgspace()h]hManaged pci_remap_cfgspace()}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjأhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhhhNhNubj)}(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&)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjYubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjUubj<)}(hhh](jA)}(h>``struct device *dev`` Generic device to remap IO address for h](jG)}(h``struct device *dev``h]jM)}(hjzh]hstruct device *dev}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjtubjc)}(hhh]j)}(h&Generic device to remap IO address forh]h&Generic device to remap IO address for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjtubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjqubjA)}(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}(hj̥hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȥhKhjɥubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjȥhKhjqubjA)}(h%``resource_size_t size`` Size of map h](jG)}(h``resource_size_t size``h]jM)}(hjh]hresource_size_t size}(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 Size of maph]h Size of map}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjqubeh}(h]h ]h"]h$]h&]uh1j;hjUubj)}(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.chKhjUubj)}(hNManaged pci_remap_cfgspace(). Map is automatically unmapped on driver detach.h]hNManaged pci_remap_cfgspace(). Map is automatically unmapped on driver detach.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjUubeh}(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}(hjlhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjzhKubh__iomem}(hjhhhhNhNubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhhjzhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhjzhKubj-)}(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,hjhhhhjzhKubjN)}(h*(struct device *dev, struct resource *res)h](jT)}(hstruct device *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)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.devm_pci_remap_cfg_resourceasbuh1hhjĦ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}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjĦubeh}(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.devm_pci_remap_cfg_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&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhhjzhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjdhhhjzhKubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1hhjzhKhjahhubj)}(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&]uh1jhjahhhjzhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjӧjjӧjjjuh1hhhhhhNhNubj)}(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&)}(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.chKhjקubj<)}(hhh](jA)}(hA``struct device *dev`` generic device to handle the resource 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 handle the resource forh]h)generic device to handle the resource for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(hD``struct resource *res`` configuration space resource to be handled h](jG)}(h``struct resource *res``h]jM)}(hj5h]hstruct resource *res}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj3ubah}(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}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJhKhjKubah}(h]h ]h"]h$]h&]uh1jbhj/ubeh}(h]h ]h"]h$]h&]uh1j@hjJhKhjubeh}(h]h ]h"]h$]h&]uh1j;hjקubj)}(h**Description**h]j&)}(hjph]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjnubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjקubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjקubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chKhjקubj)}(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.chKhjקubh 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.chKhjקubeh}(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(h pcim_set_mwih]j3)}(h pcim_set_mwih]h pcim_set_mwi}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(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 }(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 reftargetjAmodnameN classnameNjj)}j]j)}jjsbc.pcim_set_mwiasbuh1hhjubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hpdevh]hpdev}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjܨhhhjhMubah}(h]jרah ](jjeh"]h$]h&]jj)jhuh1hhjhMhj٨hhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj٨hhhjhMubeh}(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&)}(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.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}(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'the PCI device for which MWI is enabledh]h'the PCI device for which MWI is enabled}(hjhhhNhNubah}(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&)}(hj h]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:10: ./drivers/pci/devres.chMhjubj)}(hManaged pci_set_mwi().h]hManaged pci_set_mwi().}(hj6hhhNhNubah}(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&)}(hjGh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjEubah}(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.}(hj]hhhNhNubah}(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}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM<ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM<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,hjhhhjhM<ubjN)}(h"(struct pci_dev *pdev, int enable)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)}jjsb c.pcim_intxasbuh1hhjŪ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}(hj"hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjŪubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(h int enableh](h)}(hinth]hint}(hj;hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubj)}(h h]h }(hjIhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj3)}(henableh]henable}(hjWhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj7ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhM<ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhM<ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM<hjhhubj)}(hhh]j)}(hmanaged pci_intx()h]hmanaged pci_intx()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM<hj~hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM<ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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&)}(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)}(h6``struct pci_dev *pdev`` the PCI device to operate on h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj«h]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.chM=hjubjc)}(hhh]j)}(hthe PCI device to operate onh]hthe PCI device to operate on}(hj۫hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj׫hM=hjثubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj׫hM=hjubjA)}(h>``int enable`` boolean: whether to enable or disable PCI INTx h](jG)}(h``int enable``h]jM)}(hjh]h int enable}(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)}(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&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhM>hjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h **Return**h]j&)}(hj6h]hReturn}(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.chM@hjubj)}(h0 on success, -ENOMEM on error.h]h0 on success, -ENOMEM on error.}(hjLhhhNhNubah}(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&)}(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.chMBhjubj)}(hYEnable/disable PCI INTx for device **pdev**. Restore the original state on driver detach.h](h#Enable/disable PCI INTx for device }(hjshhhNhNubj&)}(h**pdev**h]hpdev}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjsubh.. Restore the original state on driver detach.}(hjshhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMAhjubeh}(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 }(hjìhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj¬hMjubj-)}(hpcim_enable_deviceh]j3)}(hpcim_enable_deviceh]hpcim_enable_device}(hjլhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjѬubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj¬hMjubjN)}(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 }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj׬sbc.pcim_enable_deviceasbuh1hhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hpdevh]hpdev}(hjJhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj¬hMjubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj¬hMjubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj¬hMjhjhhubj)}(hhh]j)}(hManaged pci_enable_device()h]hManaged pci_enable_device()}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMjhjqhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj¬hMjubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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&)}(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.chMnhjubj<)}(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}(hjέhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʭhMkhj˭ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjʭhMkhjubah}(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.chMmhjubj)}(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.chMmhjubj)}(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.chMohjubj)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMnhjubeh}(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}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXhhhjjhMubj-)}(hpcim_pin_deviceh]j3)}(hpcim_pin_deviceh]hpcim_pin_device}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjyubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjXhhhjjhMubjN)}(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 }(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_pin_deviceasbuh1hhjubj)}(h h]h }(hj׮hhhNhNubah}(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&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjXhhhjjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjQhhubj)}(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&]uh1jhjQhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1hhhhhhNhNubj)}(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&)}(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.chMhj8ubj<)}(hhh]jA)}(h+``struct pci_dev *pdev`` PCI device to pin 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.chMhjWubjc)}(hhh]j)}(hPCI device to pinh]hPCI device to pin}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jbhjWubeh}(h]h ]h"]h$]h&]uh1j@hjrhMhjTubah}(h]h ]h"]h$]h&]uh1j;hj8ubj)}(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.chMhj8ubj)}(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}(hjȯhhhNhNubah}(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.chMhj8ubeh}(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}(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&]uh1hhjhhhjhMubh__iomem}(hjhhhNhNubj)}(h h]h }(hj"hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjZ)}(hjh]hconst}(hj=hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhhhjhMubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj-)}(hpcim_iomap_tableh]j3)}(hpcim_iomap_tableh]hpcim_iomap_table}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjeubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(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 }(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.pcim_iomap_tableasbuh1hhjubj)}(h h]h }(hjðhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjѰhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hpdevh]hpdev}(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*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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1hhhhhhNhNubj)}(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&)}(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)}(h>``struct pci_dev *pdev`` PCI device to access iomap table for h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjIh]hstruct pci_dev *pdev}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjGubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjCubjc)}(hhh]j)}(h$PCI device to access iomap table forh]h$PCI device to access iomap table for}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jbhjCubeh}(h]h ]h"]h$]h&]uh1j@hj^hMhj@ubah}(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)}(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.}(hjhhhNhNubah}(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&)}(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)}(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}(hjɱhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh&. If iomap table doesn’t exist and }(hjhhhNhNubj&)}(h**pdev**h]hpdev}(hj۱hhhNhNubah}(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.chMhj$ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj$ubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhj$ubj)}(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.chMhj$ubj)}(h5void __iomem \*mappy = pcim_iomap(pdev, bar, length);h]h5void __iomem *mappy = pcim_iomap(pdev, bar, length);}(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 (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}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMubj)}(h h]h }(hjhhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghMubh__iomem}(hjUhhhNhNubj)}(h h]h }(hjzhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUhhhjghMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjghMubj-)}(h pcim_iomaph]j3)}(h pcim_iomaph]h pcim_iomap}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjUhhhjghMubjN)}(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 }(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.pcim_iomapasbuh1hhjubj)}(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)}(hint barh](h)}(hinth]hint}(hj'hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj#ubj)}(h h]h }(hj5hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj#ubj3)}(hbarh]hbar}(hjChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned long maxlenh](h)}(hunsignedh]hunsigned}(hj\hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubh)}(hlongh]hlong}(hjxhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjXubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjXubj3)}(hmaxlenh]hmaxlen}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjUhhhjghMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjQhhhjghMubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1hhjghMhjNhhubj)}(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&]uh1jhjNhhhjghMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjֳjjֳjjjuh1hhhhhhNhNubj)}(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%hj޳ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjڳubj<)}(hhh](jA)}(h1``struct pci_dev *pdev`` PCI device to iomap 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)}(hPCI device to iomap forh]hPCI device to iomap for}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(h``int bar`` BAR to iomap h](jG)}(h ``int bar``h]jM)}(hj8h]hint bar}(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)}(h BAR to iomaph]h BAR to iomap}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMhMhjNubah}(h]h ]h"]h$]h&]uh1jbhj2ubeh}(h]h ]h"]h$]h&]uh1j@hjMhMhjubjA)}(h1``unsigned long maxlen`` Maximum length of iomap h](jG)}(h``unsigned long maxlen``h]jM)}(hjqh]hunsigned long maxlen}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjoubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjkubjc)}(hhh]j)}(hMaximum length of iomaph]hMaximum length of iomap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM hjubah}(h]h ]h"]h$]h&]uh1jbhjkubeh}(h]h ]h"]h$]h&]uh1j@hjhM hjubeh}(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.chM hjڳubj)}(h,__iomem pointer on success, NULL on failure.h]h,__iomem pointer on success, NULL on failure.}(hj´hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM 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:10: ./drivers/pci/devres.chM hjڳubj)}(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().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chM hjڳubj)}(h&This SHOULD only be used once per BAR.h]h&This SHOULD only be used once per BAR.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:10: ./drivers/pci/devres.chMhjڳubj)}(h**NOTE**h]j&)}(hj h]hNOTE}(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:10: ./drivers/pci/devres.chMhjڳubj)}(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.chMhjڳubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pcim_iounmap (C function)c.pcim_iounmaphNtauh1hhhhhhNhNubh)}(hhh](h)}(hubj)}(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 subdeviceh]h subdevice}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned int classh](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)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(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}(hj5hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hlongh]hlong}(hjQhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj3)}(h driver_datah]h driver_data}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhK!ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhK!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhK!hjhhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chK!hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK!ubeh}(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.chK%hjubj<)}(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.chK"hjubjc)}(hhh]j)}(htarget pci driverh]htarget pci driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK"hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhK"hjubjA)}(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.chK#hj ubjc)}(hhh]j)}(h PCI vendor IDh]h PCI vendor ID}(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#hjubjA)}(h&``unsigned int device`` PCI device ID h](jG)}(h``unsigned int device``h]jM)}(hjJh]hunsigned int device}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chK$hjDubjc)}(hhh]j)}(h PCI device IDh]h PCI device ID}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hK$hj`ubah}(h]h ]h"]h$]h&]uh1jbhjDubeh}(h]h ]h"]h$]h&]uh1j@hj_hK$hjubjA)}(h,``unsigned int subvendor`` PCI subvendor ID h](jG)}(h``unsigned int subvendor``h]jM)}(hjh]hunsigned int subvendor}(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.chK%hj}ubjc)}(hhh]j)}(hPCI subvendor IDh]hPCI subvendor ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK%hjubah}(h]h ]h"]h$]h&]uh1jbhj}ubeh}(h]h ]h"]h$]h&]uh1j@hjhK%hjubjA)}(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.chK&hjubjc)}(hhh]j)}(hPCI subdevice IDh]hPCI subdevice ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhK&hjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhK&hjubjA)}(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.chK'hjubjc)}(hhh]j)}(h PCI classh]h PCI class}(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+``unsigned int class_mask`` PCI class mask h](jG)}(h``unsigned int class_mask``h]jM)}(hj.h]hunsigned int class_mask}(hj0hhhNhNubah}(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.chK(hj(ubjc)}(hhh]j)}(hPCI class maskh]hPCI class mask}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjChK(hjDubah}(h]h ]h"]h$]h&]uh1jbhj(ubeh}(h]h ]h"]h$]h&]uh1j@hjChK(hjubjA)}(h2``unsigned long driver_data`` private driver data h](jG)}(h``unsigned long driver_data``h]jM)}(hjgh]hunsigned long driver_data}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjeubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chK)hjaubjc)}(hhh]j)}(hprivate driver datah]hprivate driver data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|hK)hj}ubah}(h]h ]h"]h$]h&]uh1jbhjaubeh}(h]h ]h"]h$]h&]uh1j@hj|hK)hjubeh}(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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chK+hjubj)}(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.chK*hjubj)}(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.chK.hjubj)}(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.chK/hjubj)}(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.chK1hjubj)}(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.chK2hjubeh}(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}(hjGhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjChhh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chK^ubj)}(h h]h }(hjUhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjThK^ubjZ)}(hj]h]hstruct}(hjchhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjChhhjThK^ubj)}(h h]h }(hjphhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjThK^ubh)}(hhh]j3)}(h pci_device_idh]h pci_device_id}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}j pci_match_idsbc.pci_match_idasbuh1hhjChhhjThK^ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjChhhjThK^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjChhhjThK^ubj-)}(h pci_match_idh]j3)}(hjh]h pci_match_id}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjChhhjThK^ubjN)}(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]jc.pci_match_idasbuh1hhjubj)}(h h]h }(hj3hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hidsh]hids}(hjNhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(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}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_match_idasbuh1hhjcubj)}(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&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjChhhjThK^ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj?hhhjThK^ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1hhjThK^hj<hhubj)}(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.chK^hjhhubah}(h]h ]h"]h$]h&]uh1jhj<hhhjThK^ubeh}(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&)}(hj h]h Parameters}(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.chKbhjubj<)}(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)}(hj)h]hconst struct pci_device_id *ids}(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.chK_hj#ubjc)}(hhh]j)}(h.array of PCI device ID structures to search inh]h.array of PCI device ID structures to search in}(hjBhhhNhNubah}(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 ubjA)}(hC``struct pci_dev *dev`` the PCI device structure to match against. h](jG)}(h``struct pci_dev *dev``h]jM)}(hjbh]hstruct pci_dev *dev}(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.chK`hj\ubjc)}(hhh]j)}(h*the PCI device structure to match against.h]h*the PCI device structure to match against.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwhK`hjxubah}(h]h ]h"]h$]h&]uh1jbhj\ubeh}(h]h ]h"]h$]h&]uh1j@hjwhK`hj 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&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chKbhjubj)}(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.chKahjubj)}(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.chKehjubeh}(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}(hj$hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(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}(hj@hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj<ubj)}(h h]h }(hjMhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubh)}(hhh]j3)}(h pci_driverh]h pci_driver}(hj^hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`modnameN classnameNjj)}j]j)}jj&sbc.__pci_register_driverasbuh1hhj<ubj)}(h h]h }(hj~hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj3)}(hdrvh]hdrv}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj<ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj8ubjT)}(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]jzc.__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}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj8ubjT)}(hconst char *mod_nameh](jZ)}(hjh]hconst}(hj"hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hcharh]hchar}(hj=hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjKhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hmod_nameh]hmod_name}(hjfhhhNhNubah}(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)}(hregister a new pci driverh]hregister a new pci driver}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjhhubah}(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)}(hj h]hstruct module *owner}(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)}(howner module of drvh]howner module of drv}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhj ubah}(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)}(hjCh]hconst char *mod_name}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAubah}(h]h ]h"]h$]h&]uh1jFh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhj=ubjc)}(hhh]j)}(hmodule name stringh]hmodule name string}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jbhj=ubeh}(h]h ]h"]h$]h&]uh1j@hjXhMhjubeh}(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.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.}(hjhhhNhNubah}(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 }(hj hhhNhNubah}(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 reftargetj modnameN classnameNjj)}j]j)}jjsbc.pci_unregister_driverasbuh1hhjubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdrvh]hdrv}(hjYhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jh[/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:13: ./drivers/pci/pci-driver.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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%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 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;hjubj)}(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.chMhjubj)}(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.chMhjubeh}(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)}(hah ](jjeh"]h$]h&]jj)jhuh1hhjXhMGhj@hhubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMGhjhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjXhMGubeh}(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 ``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.chMKhjubj<)}(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.chMHhjubjc)}(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&]uh1jhjhMHhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMHhjubjA)}(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.chMIhjubjc)}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/ubh to match all device ids}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj+hMIhj,ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj+hMIhjubjA)}(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)}(hjah]hunsigned int ss_vendor}(hjchhhNhNubah}(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.chMJhj[ubjc)}(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 }(hjzhhhNhNubjM)}(h``PCI_ANY_ID``h]h PCI_ANY_ID}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjzubh to match all vendor ids}(hjzhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjvhMJhjwubah}(h]h ]h"]h$]h&]uh1jbhj[ubeh}(h]h ]h"]h$]h&]uh1j@hjvhMJhjubjA)}(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.chMKhjubjc)}(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&]uh1jhjhMKhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMKhjubjA)}(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.chMLhjubjc)}(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&]uh1jhj hMLhj ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj hMLhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjBubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMNhjubj)}(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 }(hjZhhhNhNubj&)}(h **vendor**h]hvendor}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh, }(hjZhhhNhNubj&)}(h **device**h]hdevice}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh, }hjZsbj&)}(h **ss_vendor**h]h ss_vendor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh and }(hjZhhhNhNubj&)}(h **ss_device**h]h ss_device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubhs, a pointer to its device structure is returned, and the reference count to the device is incremented. Otherwise, }(hjZhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZubh4 is returned. A new search is initiated by passing }(hjZhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZubh as the }(hjZhhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh argument. Otherwise if }(hjZhhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh is not }(hjZhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZubhQ, searches continue from next device on the global list. The reference count for }(hjZhhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubh$ is always decremented if it is not }(hjZhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjZubh.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMMhjubeh}(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}(hjOhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjKhhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chM`ubj)}(h h]h }(hj]hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKhhhj\hM`ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjnhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjkubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]j)}jpci_get_devicesbc.pci_get_deviceasbuh1hhjKhhhj\hM`ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjKhhhj\hM`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhhj\hM`ubj-)}(hpci_get_deviceh]j3)}(hjh]hpci_get_device}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjKhhhj\hM`ubjN)}(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 }(hj(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj6hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hdeviceh]hdevice}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct pci_dev *fromh](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]jc.pci_get_deviceasbuh1hhjgubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj3)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjgubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjKhhhj\hM`ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjGhhhj\hM`ubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhj\hM`hjDhhubj)}(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.chM`hjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj\hM`ubeh}(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%hj ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMdhjubj<)}(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)}(hj-h]hunsigned int 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.chMahj'ubjc)}(hhh]j)}(hAPCI vendor id to match, or ``PCI_ANY_ID`` to match all vendor idsh](hPCI vendor id to match, or }(hjFhhhNhNubjM)}(h``PCI_ANY_ID``h]h PCI_ANY_ID}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjFubh to match all vendor ids}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjBhMahjCubah}(h]h ]h"]h$]h&]uh1jbhj'ubeh}(h]h ]h"]h$]h&]uh1j@hjBhMahj$ubjA)}(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)}(hjxh]hunsigned int device}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjvubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMbhjrubjc)}(hhh]j)}(hAPCI device id to match, or ``PCI_ANY_ID`` to match all device idsh](hPCI 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&]uh1jhjhMbhjubah}(h]h ]h"]h$]h&]uh1jbhjrubeh}(h]h ]h"]h$]h&]uh1j@hjhMbhj$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&]uh1jLhjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMchjubjc)}(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&]uh1jhjhMchjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMchj$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.chMehjubj)}(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 }(hj&hhhNhNubj&)}(h **vendor**h]hvendor}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubh and }(hj&hhhNhNubj&)}(h **device**h]hdevice}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubhq, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, }(hj&hhhNhNubjM)}(h``NULL``h]hNULL}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&ubh4 is returned. A new search is initiated by passing }(hj&hhhNhNubjM)}(h``NULL``h]hNULL}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&ubh as the }(hj&hhhNhNubj&)}(h**from**h]hfrom}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubh argument. Otherwise if }(hj&hhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubh is not }(hj&hhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&ubhR, searches continue from next device on the global list. The reference count for }(hj&hhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj&ubh$ is always decremented if it is not }(hj&hhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj&ubh.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMdhjubeh}(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 }(hj7hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj-)}(h pci_get_classh]j3)}(hj4h]h pci_get_class}(hjVhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h*(unsigned int class, struct pci_dev *from)h](jT)}(hunsigned int classh](h)}(hunsignedh]hunsigned}(hjqhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjmubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubj3)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjiubjT)}(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]j2c.pci_get_classasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hfromh]hfrom}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjiubeh}(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}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj@hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj[jj[jjjuh1hhhhhhNhNubj)}(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&)}(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: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)}(hjh]hunsigned int class}(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.chMhj~ubjc)}(hhh]j)}(h3search for a PCI device with this class designationh]h3search for a PCI device with this class designation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhj~ubeh}(h]h ]h"]h$]h&]uh1j@hjhMhj{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&]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@hjhMhj{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%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 }(hj hhhNhNubj&)}(h **class**h]hclass}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubhq, the reference count to the device is incremented and a pointer to its device structure is returned. Otherwise, }(hj hhhNhNubjM)}(h``NULL``h]hNULL}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubh3 is returned. A new search is initiated by passing }(hj hhhNhNubjM)}(h``NULL``h]hNULL}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubh as the }(hj hhhNhNubj&)}(h**from**h]hfrom}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubh argument. Otherwise if }(hj hhhNhNubj&)}(h**from**h]hfrom}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubh is not }(hj hhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubhR, searches continue from next device on the global list. The reference count for }(hj hhhNhNubj&)}(h**from**h]hfrom}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubh$ is always decremented if it is not }(hj hhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ubh.}(hj hhhNhNubeh}(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*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubj-)}(hpci_get_base_classh]j3)}(hjh]hpci_get_base_class}(hj>hhhNhNubah}(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}(hjYhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubj)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hinth]hint}(hjuhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj3)}(hclassh]hclass}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjQubjT)}(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&]noemphjKjLuh1jShjQubeh}(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}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhhhNhNubj)}(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** Iterates 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_device() to figure out how does 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&)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjKubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjGubj<)}(hhh](jA)}(hI``unsigned int class`` search for a PCI device with this base class code h](jG)}(h``unsigned int class``h]jM)}(hjlh]hunsigned int class}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjfubjc)}(hhh]j)}(h1search for a PCI device with this base class codeh]h1search for a PCI device with this base class code}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjfubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjcubjA)}(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@hjhMhjcubeh}(h]h ]h"]h$]h&]uh1j;hjGubj)}(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.chMhjGubj)}(hXIterates 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_device() to figure out how does 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](hIterates 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_device() to figure out how does 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}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh argument. Otherwise if }(hjhhhNhNubj&)}(h**from**h]hfrom}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubhQ, searches continue from next device on the global list. The reference count for }(hjhhhNhNubj&)}(h**from**h]hfrom}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh$ is always decremented if it is not }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjjhhhNhNubah}(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.chMhjGubj)}(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:19: ./drivers/pci/search.chMhjGubj)}(h6A pointer to a matched PCI device, ``NULL`` Otherwise.h](h#A pointer to a matched PCI device, }(hjhhhNhNubjM)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjubh Otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:19: ./drivers/pci/search.chMhjGubeh}(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 }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubjZ)}(hj]h]hstruct}(hj4hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hhh]j3)}(h pci_device_idh]h pci_device_id}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j)}jjsbc.pci_dev_presentasbuh1hhjubj)}(h h]h }(hjrhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hidsh]hids}(hjhhhNhNubah}(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@hj hMhjubah}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj2ubah}(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.}(hjJhhhNhNubah}(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}(hjyhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjuhhhX/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&]uh1hhjuhhhjhKubj-)}(hpci_msi_mask_irqh]j3)}(hpci_msi_mask_irqh]hpci_msi_mask_irq}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjuhhhjhKubjN)}(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)}jjsbc.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&]jKjLuh1jMhjuhhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjqhhhjhKubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjnhhubj)}(hhh]j)}(h4Generic IRQ chip callback to mask PCI/MSI interruptsh]h4Generic IRQ chip callback to mask PCI/MSI interrupts}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhj6hhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjQjjQjjjuh1hhhhhhNhNubj)}(h[**Parameters** ``struct irq_data *data`` pointer to irqdata associated to that interrupth](j)}(h**Parameters**h]j&)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjYubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjUubj<)}(hhh]jA)}(hI``struct irq_data *data`` pointer to irqdata associated to that interrupth](jG)}(h``struct irq_data *data``h]jM)}(hjzh]hstruct irq_data *data}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjxubah}(h]h ]h"]h$]h&]uh1jFhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chKhjtubjc)}(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&]uh1jbhjtubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjqubah}(h]h ]h"]h$]h&]uh1j;hjUubeh}(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&]uh1jYhj ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubh)}(hhh]j3)}(hirq_datah]hirq_data}(hj/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1modnameN classnameNjj)}j]j)}jjsbc.pci_msi_unmask_irqasbuh1hhj ubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj3)}(hdatah]hdata}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj ubah}(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}(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&]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&]uh1hhj+hhhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMubj)}(h h]h }(hj>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj+hhhj=hMubj-)}(hpci_msi_vec_counth]j3)}(hpci_msi_vec_counth]hpci_msi_vec_count}(hjPhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjLubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj+hhhj=hMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjlhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjRsbc.pci_msi_vec_countasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjdubah}(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)}(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&]uh1jhj$hhhj=hMubeh}(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.chMhj ubj<)}(hhh]jA)}(h/``struct pci_dev *dev`` device to report about h](jG)}(h``struct pci_dev *dev``h]jM)}(hj0h]hstruct pci_dev *dev}(hj2hhhNhNubah}(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.chMhj*ubjc)}(hhh]j)}(hdevice to report abouth]hdevice to report about}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEhMhjFubah}(h]h ]h"]h$]h&]uh1jbhj*ubeh}(h]h ]h"]h$]h&]uh1j@hjEhMhj'ubah}(h]h ]h"]h$]h&]uh1j;hj ubj)}(h**Description**h]j&)}(hjkh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjiubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMhj ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhX/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:22: ./drivers/pci/msi/msi.chMhj ubeh}(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}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsbc.pci_bus_alloc_resourceasbuh1hhjubj)}(h h]h }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hbush]hbus}(hjFhhhNhNubah}(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&]uh1jYhj[ubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubh)}(hhh]j3)}(hresourceh]hresource}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j'c.pci_bus_alloc_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&]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.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]j'c.pci_bus_alloc_resourceasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(halignh]halign}(hjFhhhNhNubah}(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}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj_ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjdmodnameN classnameNjj)}j]j'c.pci_bus_alloc_resourceasbuh1hhj[ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[ubj3)}(hminh]hmin}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hunsigned long type_maskh](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)}(h type_maskh]h type_mask}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(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]j'c.pci_bus_alloc_resourceasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(halignfh]halignf}(hj'hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hvoid *alignf_datah](h)}(hvoidh]hvoid}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj<ubj)}(h h]h }(hjNhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj<ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubj3)}(h alignf_datah]h alignf_data}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj<ubeh}(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)}(h%allocate a resource from a parent bush]h%allocate a resource from a parent bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhjhhubah}(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)}(hj h]hstruct resource *res}(hjhhhNhNubah}(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.chKhjubjc)}(hhh]j)}(hresource to allocateh]hresource to allocate}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"hKhj#ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj"hKhjubjA)}(h6``resource_size_t size`` size of resource to allocate h](jG)}(h``resource_size_t size``h]jM)}(hjFh]hresource_size_t size}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjDubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chKhj@ubjc)}(hhh]j)}(hsize of resource to allocateh]hsize of resource to allocate}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[hKhj\ubah}(h]h ]h"]h$]h&]uh1jbhj@ubeh}(h]h ]h"]h$]h&]uh1j@hj[hKhjubjA)}(h<``resource_size_t align`` alignment of resource to allocate h](jG)}(h``resource_size_t align``h]jM)}(hjh]hresource_size_t align}(hjhhhNhNubah}(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.chKhjyubjc)}(hhh]j)}(h!alignment of resource to allocateh]h!alignment of resource to allocate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhKhjubah}(h]h ]h"]h$]h&]uh1jbhjyubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(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}(hj hhhNhNubah}(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)}(hj*h]hresource_alignf alignf}(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)}(hresource alignment functionh]hresource alignment function}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?hMhj@ubah}(h]h ]h"]h$]h&]uh1jbhj$ubeh}(h]h ]h"]h$]h&]uh1j@hj?hMhjubjA)}(hD``void *alignf_data`` data argument for resource alignment function h](jG)}(h``void *alignf_data``h]jM)}(hjch]hvoid *alignf_data}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjaubah}(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-data argument for resource alignment functionh]h-data argument for resource alignment function}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxhMhjyubah}(h]h ]h"]h$]h&]uh1jbhj]ubeh}(h]h ]h"]h$]h&]uh1j@hjxhMhjubeh}(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.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}(hj hhhNhNubah}(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)}jjsbc.pci_bus_add_deviceasbuh1hhjubj)}(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&]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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMThjhhubah}(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}(hj!hhhNhNubah}(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}(hj5hhhNhNubah}(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}(hjdhhhNhNubah}(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 }(hjshhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj`hhhjrhM}ubj-)}(hpci_bus_add_devicesh]j3)}(hpci_bus_add_devicesh]hpci_bus_add_devices}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj`hhhjrhM}ubjN)}(h(const struct pci_bus *bus)h]jT)}(hconst struct pci_bus *bush](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_bush]hpci_bus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pci_bus_add_devicesasbuh1hhjubj)}(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&]noemphjKjLuh1jShjubah}(h]h ]h"]h$]h&]jKjLuh1jMhj`hhhjrhM}ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj\hhhjrhM}ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1hhjrhM}hjYhhubj)}(hhh]j)}(hstart driver for PCI devicesh]hstart driver for PCI devices}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chM}hj<hhubah}(h]h ]h"]h$]h&]uh1jhjYhhhjrhM}ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1hhhhhhNhNubj)}(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&)}(hjah]h Parameters}(hjchhhNhNubah}(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.chMhj[ubj<)}(hhh]jA)}(h;``const struct pci_bus *bus`` bus to check for new devices h](jG)}(h``const struct pci_bus *bus``h]jM)}(hjh]hconst struct pci_bus *bus}(hjhhhNhNubah}(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.chM~hjzubjc)}(hhh]j)}(hbus to check for new devicesh]hbus to check for new devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhM~hjubah}(h]h ]h"]h$]h&]uh1jbhjzubeh}(h]h ]h"]h$]h&]uh1j@hjhM~hjwubah}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhj[ubj)}(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.chMhj[ubeh}(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}(hj!hhhNhNubah}(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}(hj=hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj9ubj)}(h h]h }(hjJhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj]modnameN classnameNjj)}j]j)}jj#sbc.pci_walk_busasbuh1hhj9ubj)}(h h]h }(hj{hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj3)}(htoph]htop}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj9ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj5ubjT)}(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}(hj-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/modnameN classnameNjj)}j]jwc.pci_walk_busasbuh1hhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h,h]h,}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hvoidh]hvoid}(hjthhhNhNubah}(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&]noemphjKjLuh1jShj5ubjT)}(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}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj5ubeh}(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)}(hj;h]hstruct pci_bus *top}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj9ubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhj5ubjc)}(hhh]j)}(h"bus whose devices should be walkedh]h"bus whose devices should be walked}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jbhj5ubeh}(h]h ]h"]h$]h&]uh1j@hjPhMhj2ubjA)}(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)}(hjth]h#int (*cb)(struct pci_dev *, void *)}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjrubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjnubjc)}(hhh]j)}(h+callback to be called for each device foundh]h+callback to be called for each device found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjnubeh}(h]h ]h"]h$]h&]uh1j@hjhMhj2ubjA)}(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@hjhMhj2ubeh}(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}(hjXhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjThhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMubj)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjThhhjfhMubj-)}(hpci_walk_bus_reverseh]j3)}(hpci_walk_bus_reverseh]hpci_walk_bus_reverse}(hjyhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjuubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjThhhjfhMubjN)}(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 }(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)}jj{sbc.pci_walk_bus_reverseasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(htoph]htop}(hjhhhNhNubah}(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)}(hjh]h(}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hcbh]hcb}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubj)}(hjh]h)}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h(}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjZ)}(hj]h]hstruct}(hjehhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjubj)}(h h]h }(hjrhhhNhNubah}(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_walk_bus_reverseasbuh1hhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjZh]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&]noemphjKjLuh1jShjubjT)}(hvoid *userdatah](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj hhhNhNubah}(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&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjThhhjfhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjPhhhjfhMubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1hhjfhMhjMhhubj)}(hhh]j)}(h,walk devices on/under bus, calling callback.h]h,walk devices on/under bus, calling callback.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhhhNhNubj)}(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&)}(hjqh]h Parameters}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjoubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjkubj<)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(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)}(hjh]h#int (*cb)(struct pci_dev *, void *)}(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+callback to be called for each device foundh]h+callback to be called for each device found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubjA)}(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@hjhMhjubeh}(h]h ]h"]h$]h&]uh1j;hjkubj)}(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.chMhjkubj)}(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.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:25: ./drivers/pci/bus.chMhjkubeh}(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}(hjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj~hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhjhKubh)}(hhh]j3)}(hpci_opsh]hpci_ops}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jpci_bus_set_opssbc.pci_bus_set_opsasbuh1hhj~hhhjhKubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj~hhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~hhhjhKubj-)}(hpci_bus_set_opsh]j3)}(hjh]hpci_bus_set_ops}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj~hhhjhKubjN)}(h*(struct pci_bus *bus, struct pci_ops *ops)h](jT)}(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}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_bus_set_opsasbuh1hhjubj)}(h h]h }(hj8hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hbush]hbus}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct pci_ops *opsh](jZ)}(hj]h]hstruct}(hjlhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjhubj)}(h h]h }(hjyhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubh)}(hhh]j3)}(hpci_opsh]hpci_ops}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.pci_bus_set_opsasbuh1hhjhubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj3)}(hopsh]hops}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj~hhhjhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjzhhhjhKubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1hhjhKhjwhhubj)}(hhh]j)}(hSet raw operations of pci bush]hSet raw operations of pci bus}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhKubeh}(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}(hj0 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}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjC hKhjD ubah}(h]h ]h"]h$]h&]uh1jbhj( ubeh}(h]h ]h"]h$]h&]uh1j@hjC hKhj% ubjA)}(h+``struct pci_ops *ops`` new raw operations h](jG)}(h``struct pci_ops *ops``h]jM)}(hjg h]hstruct pci_ops *ops}(hji hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhje ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chKhja ubjc)}(hhh]j)}(hnew raw operationsh]hnew raw operations}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj| hKhj} ubah}(h]h ]h"]h$]h&]uh1jbhja ubeh}(h]h ]h"]h$]h&]uh1j@hj| 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 }(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_cfg_access_lockasbuh1hhj 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 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}(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)}(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.}(hj9 hhhNhNubah}(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}(hjh hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjd hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM-ubj)}(h h]h }(hjv hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjd hhhju hM-ubj-)}(hpci_cfg_access_trylockh]j3)}(hpci_cfg_access_trylockh]hpci_cfg_access_trylock}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjd hhhju 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_cfg_access_trylockasbuh1hhj 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&]jKjLuh1jMhjd hhhju hM-ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj` hhhju hM-ubah}(h]j[ ah ](jjeh"]h$]h&]jj)jhuh1hhju hM-hj] hhubj)}(hhh]j)}(h#try to lock PCI config reads/writesh]h#try to lock 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.chM-hj$ hhubah}(h]h ]h"]h$]h&]uh1jhj] hhhju hM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj? jj? jjjuh1hhhhhhNhNubj)}(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&)}(hjI h]h Parameters}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjG ubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM1hjC ubj<)}(hhh]jA)}(h*``struct pci_dev *dev`` pci device struct h](jG)}(h``struct pci_dev *dev``h]jM)}(hjh h]hstruct pci_dev *dev}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjf ubah}(h]h ]h"]h$]h&]uh1jFhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM.hjb ubjc)}(hhh]j)}(hpci device structh]hpci device struct}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj} hM.hj~ ubah}(h]h ]h"]h$]h&]uh1jbhjb ubeh}(h]h ]h"]h$]h&]uh1j@hj} hM.hj_ ubah}(h]h ]h"]h$]h&]uh1j;hjC 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.chM0hjC ubj)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chM/hjC ubeh}(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}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj hhhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMEubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj hhhj hMEubj-)}(hpci_cfg_access_unlockh]j3)}(hpci_cfg_access_unlockh]hpci_cfg_access_unlock}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj 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 }(hj2 hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj! ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjC hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@ ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjE modnameN classnameNjj)}j]j)}jj sbc.pci_cfg_access_unlockasbuh1hhj! 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)}(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)}(hUnlock PCI config reads/writesh]hUnlock 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.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 struct **Description** This function allows PCI config accesses to resume.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.chMIhj 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.chMFhj ubjc)}(hhh]j)}(hpci device structh]hpci device struct}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMFhj ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj hMFhj 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&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMHhj ubj)}(h3This function allows PCI config accesses to resume.h]h3This function allows PCI config accesses to resume.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhW/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:28: ./drivers/pci/access.chMGhj ubeh}(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}(hjihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjehhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKubj)}(h h]h }(hjxhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjwhKubj-)}(hpci_request_irqh]j3)}(hpci_request_irqh]hpci_request_irq}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjehhhjwhKubjN)}(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&]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_request_irqasbuh1hhjubj)}(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)}(hunsigned int nrh](h)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj&hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubh)}(hinth]hint}(hj4hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hnrh]hnr}(hjPhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hirq_handler_t handlerh](h)}(hhh]j3)}(h irq_handler_th]h irq_handler_t}(hjlhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjiubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnmodnameN classnameNjj)}j]jc.pci_request_irqasbuh1hhjeubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjeubj3)}(hhandlerh]hhandler}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjeubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(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&]noemphjKjLuh1jShjubjT)}(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&]noemphjKjLuh1jShjubjT)}(hconst char *fmth](jZ)}(hjh]hconst}(hj;hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj7ubj)}(h h]h }(hjHhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubh)}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj7ubj)}(h h]h }(hjdhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubj3)}(hfmth]hfmt}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj7ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(h...h]j)}(h...h]h...}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjehhhjwhKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjahhhjwhKubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1hhjwhKhj^hhubj)}(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&]uh1jhj^hhhjwhKubeh}(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)}(hj<h]hunsigned int nr}(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:31: ./drivers/pci/irq.chKhj6ubjc)}(hhh]j)}(h1device-relative interrupt vector index (0-based).h]h1device-relative interrupt vector index (0-based).}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQhKhjRubah}(h]h ]h"]h$]h&]uh1jbhj6ubeh}(h]h ]h"]h$]h&]uh1j@hjQhKhjubjA)}(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)}(hjuh]hirq_handler_t handler}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjsubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjoubjc)}(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.}(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&]uh1jbhjoubeh}(h]h ]h"]h$]h&]uh1j@hjhKhjubjA)}(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)}(hj"h]hconst char *fmt}(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:31: ./drivers/pci/irq.chKhjubjc)}(hhh]j)}(h,Printf-like format string naming the handlerh]h,Printf-like format string naming the handler}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hKhj8ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj7hKhjubjA)}(h``...`` variable arguments h](jG)}(h``...``h]jM)}(hj[h]h...}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjUubjc)}(hhh]j)}(hvariable argumentsh]hvariable arguments}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphKhjqubah}(h]h ]h"]h$]h&]uh1jbhjUubeh}(h]h ]h"]h$]h&]uh1j@hjphKhjubeh}(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)}(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 }(hj+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj*hK?ubj-)}(h pci_free_irqh]j3)}(h pci_free_irqh]h pci_free_irq}(hj=hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj9ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj*hK?ubjN)}(h4(struct pci_dev *dev, unsigned int nr, void *dev_id)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjYhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjUubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjwhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNjj)}j]j)}jj?sbc.pci_free_irqasbuh1hhjUubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj3)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjQubjT)}(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&]noemphjKjLuh1jShjQubjT)}(h void *dev_idh](h)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hdev_idh]hdev_id}(hjEhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjQubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj*hK?ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj*hK?ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj*hK?hjhhubj)}(hhh]j)}(h0free an interrupt allocated with pci_request_irqh]h0free an interrupt allocated with pci_request_irq}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK?hjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hK?ubeh}(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). ``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&)}(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.chKChjubj<)}(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)}(hj"h]h void *dev_id}(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:31: ./drivers/pci/irq.chKBhjubjc)}(hhh]j)}(hDevice identity to freeh]hDevice identity to free}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hKBhj8ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj7hKBhjubeh}(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&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKDhjubj)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKChjubj)}(h8This function must not be called from interrupt context.h]h8This function must not be called from interrupt context.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKIhjubeh}(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}(hj!hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj#modnameN classnameNjj)}j]jc.pci_common_swizzleasbuh1hhjubj)}(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)}(hu8 *pinph](h)}(hhh]j3)}(hu8h]hu8}(hjvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]jc.pci_common_swizzleasbuh1hhjoubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjoubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubj3)}(hpinph]hpinp}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjoubeh}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/hK{hj0ubah}(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)}(hjSh]hu8 *pinp}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chK|hjMubjc)}(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)}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhK|hjiubah}(h]h ]h"]h$]h&]uh1jbhjMubeh}(h]h ]h"]h$]h&]uh1j@hjhhK|hjubeh}(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.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&]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.pci_check_and_mask_intxasbuh1hhj 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&]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}(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&]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%hj ubah}(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.}(hj$hhhNhNubah}(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}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKubj)}(h h]h }(hjahhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOhhhj`hKubj-)}(hpci_check_and_unmask_intxh]j3)}(hpci_check_and_unmask_intxh]hpci_check_and_unmask_intx}(hjshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjoubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjOhhhj`hKubjN)}(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)}jjusbc.pci_check_and_unmask_intxasbuh1hhjubj)}(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&]jKjLuh1jMhjOhhhj`hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjKhhhj`hKubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhj`hKhjHhhubj)}(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&]uh1jhjHhhhj`hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj*jj*jjjuh1hhhhhhNhNubj)}(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&)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj2ubah}(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)}(hjSh]hstruct pci_dev *dev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjQubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:31: ./drivers/pci/irq.chKhjMubjc)}(hhh]j)}(hthe PCI device to operate onh]hthe PCI device to operate on}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhKhjiubah}(h]h ]h"]h$]h&]uh1jbhjMubeh}(h]h ]h"]h$]h&]uh1j@hjhhKhjJubah}(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&]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.chMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubh)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhMubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhMubj-)}(hpcie_get_link_speedh]j3)}(hpcie_get_link_speedh]hpcie_get_link_speed}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h(unsigned int speed)h]jT)}(hunsigned int speedh](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}(hjHhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj(ubj)}(h h]h }(hjVhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(ubj3)}(hspeedh]hspeed}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(ubeh}(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+Get speed value from PCIe generation numberh]h+Get speed value from PCIe generation number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(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&)}(hj h]h Description}(hj hhhNhNubah}(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 }(hj hhhNhNubj&)}(h **speed**h]hspeed}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj ubh/ is valid, otherwise returns PCI_SPEED_UNKNOWN.}(hj hhhNhNubeh}(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}(hjahhhNhNubah}(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 }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj]hhhjnhM! ubj-)}(hpcie_relaxed_ordering_enabledh]j3)}(hpcie_relaxed_ordering_enabledh]hpcie_relaxed_ordering_enabled}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj]hhhjnhM! 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}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.pcie_relaxed_ordering_enabledasbuh1hhjubj)}(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]hhhjnhM! ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjYhhhjnhM! ubah}(h]jTah ](jjeh"]h$]h&]jj)jhuh1hhjnhM! hjVhhubj)}(hhh]j)}(h&Probe for PCIe relaxed ordering enableh]h&Probe for PCIe relaxed ordering enable}(hj hhhNhNubah}(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&]uh1jhjVhhhjnhM! ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8jj8jjjuh1hhhhhhNhNubj)}(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&)}(hjBh]h Parameters}(hjDhhhNhNubah}(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)}(hjah]hstruct pci_dev *dev}(hjchhhNhNubah}(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 device to queryh]hPCI device to query}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvhM" hjwubah}(h]h ]h"]h$]h&]uh1jbhj[ubeh}(h]h ]h"]h$]h&]uh1j@hjvhM" hjXubah}(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&]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.}(hjhhhNhNubah}(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}(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- ubj-)}(h pci_scan_sloth]j3)}(h pci_scan_sloth]h pci_scan_slot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhM- ubjN)}(h (struct pci_bus *bus, int devfn)h](jT)}(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&]uh1j2hj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}jjsbc.pci_scan_slotasbuh1hhjubj)}(h h]h }(hj\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hbush]hbus}(hjwhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(h int devfnh](h)}(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&]noemphjKjLuh1jShjubeh}(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$Scan a PCI slot on a bus for devicesh]h$Scan a PCI slot on a bus for devices}(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&]uh1jhjhhhjhM- ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhhhNhNubj)}(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&)}(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.chM1 hjubj<)}(hhh](jA)}(h(``struct pci_bus *bus`` PCI bus to scan 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&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM. hjubjc)}(hhh]j)}(hPCI bus to scanh]hPCI bus to scan}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,hM. hj-ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj,hM. hjubjA)}(h<``int devfn`` slot number to scan (must have zero function) h](jG)}(h ``int devfn``h]jM)}(hjPh]h int devfn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM/ hjJubjc)}(hhh]j)}(h-slot number to scan (must have zero function)h]h-slot number to scan (must have zero function)}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjehM/ hjfubah}(h]h ]h"]h$]h&]uh1jbhjJubeh}(h]h ]h"]h$]h&]uh1j@hjehM/ hjubeh}(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.chM1 hjubj)}(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 }(hjhhhNhNubj&)}(h**bus->devices**h]h bus->devices}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjubh/ list. New devices will not have is_added set.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM0 hjubj)}(h(Returns the number of new devices found.h]h(Returns the number of new devices found.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:34: ./drivers/pci/probe.chM4 hjubeh}(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}(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 }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM ubh)}(hinth]hint}(hj hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjhhhjhM ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhjhM 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,hjhhhjhM ubjN)}(h(struct pci_bus *bus)h]jT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hjJ hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjF ubj)}(h h]h }(hjW hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjF ubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hjh hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hje ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjj modnameN classnameNjj)}j]j)}jj0 sbc.pci_scan_child_busasbuh1hhjF ubj)}(h h]h }(hj hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjF ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjF ubj3)}(hbush]hbus}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjF ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjB ubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhM ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhjhM hjhhubj)}(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&]uh1jhjhhhjhM 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&)}(hjI!h]h Description}(hjK!hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjG!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}(hjg!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&]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_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,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 }(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 }(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!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 a PCI bus for devicesh]hScan a PCI 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 hjy"hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj!hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj"jj"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&)}(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"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)}(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 hj"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 hj"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}(hjL#hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjH#hhhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKubj)}(h h]h }(hjZ#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH#hhhjY#hKubh)}(hhh]j3)}(hpci_sloth]hpci_slot}(hjk#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjh#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjm#modnameN classnameNjj)}j]j)}jpci_create_slotsbc.pci_create_slotasbuh1hhjH#hhhjY#hKubj)}(h h]h }(hj#hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH#hhhjY#hKubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH#hhhjY#hKubj-)}(hpci_create_sloth]j3)}(hj#h]hpci_create_slot}(hj#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj#ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjH#hhhjY#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]j#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}(hj6$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2$ubj)}(h h]h }(hjD$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2$ubj3)}(hslot_nrh]hslot_nr}(hjR$hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2$ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj#ubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hjk$hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjg$ubj)}(h h]h }(hjx$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg$ubh)}(hcharh]hchar}(hj$hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjg$ubj)}(h h]h }(hj$hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjg$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjg$ubj3)}(hnameh]hname}(hj$hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjg$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]j#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&]jKjLuh1jMhjH#hhhjY#hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjD#hhhjY#hKubah}(h]j?#ah ](jjeh"]h$]h&]jj)jhuh1hhjY#hKhjA#hhubj)}(hhh]j)}(h2create or increment refcount for physical PCI sloth]h2create or increment refcount for physical PCI slot}(hjI%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhjF%hhubah}(h]h ]h"]h$]h&]uh1jhjA#hhhjY#hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjja%jja%jjjuh1hhhhhhNhNubj)}(hXA **Parameters** ``struct pci_bus *parent`` struct pci_bus of parent bridge ``int slot_nr`` PCI_SLOT(pci_dev->devfn), -1 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 -1 for **slot_nr**. The following semantics are imposed when the caller passes **slot_nr** == -1. First, we no longer check for an existing ``struct`` pci_slot, as there may be many slots with **slot_nr** of -1. 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&)}(hjk%h]h Parameters}(hjm%hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hji%ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhje%ubj<)}(hhh](jA)}(h;``struct pci_bus *parent`` struct pci_bus of parent bridge h](jG)}(h``struct pci_bus *parent``h]jM)}(hj%h]hstruct pci_bus *parent}(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)}(hstruct pci_bus of parent bridgeh]hstruct pci_bus of parent bridge}(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)}(hV``int slot_nr`` PCI_SLOT(pci_dev->devfn), -1 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)}(hEPCI_SLOT(pci_dev->devfn), -1 for placeholder, or PCI_SLOT_ALL_DEVICESh]hEPCI_SLOT(pci_dev->devfn), -1 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)}(hj6&h]hstruct hotplug_slot *hotplug}(hj8&hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj4&ubah}(h]h ]h"]h$]h&]uh1jFhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhj0&ubjc)}(hhh]j)}(h/set if caller is hotplug driver, NULL otherwiseh]h/set if caller is hotplug driver, NULL otherwise}(hjO&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK&hKhjL&ubah}(h]h ]h"]h$]h&]uh1jbhj0&ubeh}(h]h ]h"]h$]h&]uh1j@hjK&hKhj%ubeh}(h]h ]h"]h$]h&]uh1j;hje%ubj)}(h**Description**h]j&)}(hjq&h]h Description}(hjs&hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjo&ubah}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhje%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 }(hj&hhhNhNubh)}(h$:c:type:`struct pci_slot `h]jM)}(hj&h]hstruct pci_slot}(hj&hhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1jLhj&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.chKhj&ubhA is used to manage them. This interface will either return a new }(hj&hhhNhNubh)}(h$:c:type:`struct pci_slot `h]jM)}(hj&h]hstruct pci_slot}(hj&hhhNhNubah}(h]h ](j&jc-typeeh"]h$]h&]uh1jLhj&ubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjj&j&pci_slotuh1hhj&hKhj&ubhT to the caller, or if the pci_slot already exists, its refcount will be incremented.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhj&hKhje%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.chKhje%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.chKhje%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.chKhje%ubj)}(hX5Placeholder 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 -1 for **slot_nr**.h](h"Placeholder slots: In most cases, }(hj3'hhhNhNubj&)}(h **pci_bus**h]hpci_bus}(hj;'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3'ubh, }(hj3'hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hjM'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3'ubhn will be sufficient to uniquely identify a slot. There is one notable exception - pSeries (rpaphp), where the }(hj3'hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hj_'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3'ubhv cannot be determined until a device is actually inserted into the slot. In this scenario, the caller may pass -1 for }(hj3'hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hjq'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3'ubh.}(hj3'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhje%ubj)}(hXThe following semantics are imposed when the caller passes **slot_nr** == -1. First, we no longer check for an existing ``struct`` pci_slot, as there may be many slots with **slot_nr** of -1. 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 }(hj'hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj'ubh2 == -1. First, we no longer check for an existing }(hj'hhhNhNubjM)}(h ``struct``h]hstruct}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'ubh+ pci_slot, as there may be many slots with }(hj'hhhNhNubj&)}(h **slot_nr**h]hslot_nr}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj'ubh of -1. 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 }(hj'hhhNhNubjM)}(h ``struct``h]hstruct}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj'ubhq pci_bus and bb is the bus number. In other words, the devfn of the ‘placeholder’ slot will not be displayed.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chKhje%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.chKhje%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.chMWubj)}(h h]h }(hj1(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj(hhhj0(hMWubj-)}(hpci_destroy_sloth]j3)}(hpci_destroy_sloth]hpci_destroy_slot}(hjC(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj?(ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj(hhhj0(hMWubjN)}(h(struct pci_slot *slot)h]jT)}(hstruct pci_slot *sloth](jZ)}(hj]h]hstruct}(hj_(hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj[(ubj)}(h h]h }(hjl(hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[(ubh)}(hhh]j3)}(hpci_sloth]hpci_slot}(hj}(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjz(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj(modnameN classnameNjj)}j]j)}jjE(sbc.pci_destroy_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)}(hsloth]hslot}(hj(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[(ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjW(ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj(hhhj0(hMWubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj(hhhj0(hMWubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1hhj0(hMWhj(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.chMWhj(hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj0(hMWubeh}(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.chM[hj(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.chMXhj)ubjc)}(hhh]j)}(hstruct pci_slot to decrementh]hstruct pci_slot to decrement}(hj<)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8)hMXhj9)ubah}(h]h ]h"]h$]h&]uh1jbhj)ubeh}(h]h ]h"]h$]h&]uh1j@hj8)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&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMZhj(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}(hjx)hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjt)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.}(hjt)hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhU/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:37: ./drivers/pci/slot.chMYhj(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}(hjI*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjF*hhubah}(h]h ]h"]h$]h&]uh1jhj)hhhj)hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjja*jja*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&)}(hjk*h]h Parameters}(hjm*hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hji*ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhje*ubj<)}(hhh]jA)}(h``u64 bytes`` size in bytes h](jG)}(h ``u64 bytes``h]jM)}(hj*h]h u64 bytes}(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.chKhj*ubjc)}(hhh]j)}(h size in bytesh]h size in bytes}(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*ubah}(h]h ]h"]h$]h&]uh1j;hje*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.chKhje*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.chKhje*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.chKhje*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.chKhje*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}(hj4+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1+ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6+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 }(hjV+hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj-+hhhjU+hK)ubj-)}(hpci_rebar_size_to_bytesh]j3)}(hjR+h]hpci_rebar_size_to_bytes}(hjh+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjd+ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj-+hhhjU+hK)ubjN)}(h (int size)h]jT)}(hint sizeh](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)}(hsizeh]hsize}(hj+hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj+ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj{+ubah}(h]h ]h"]h$]h&]jKjLuh1jMhj-+hhhjU+hK)ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj)+hhhjU+hK)ubah}(h]j$+ah ](jjeh"]h$]h&]jj)jhuh1hhjU+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&+hhhjU+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&)}(hjE,h]hReturn}(hjG,hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjC,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}(hj[,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}(hj,hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,modnameN classnameNjj)}j]j)}jpci_rebar_get_possible_sizessbc.pci_rebar_get_possible_sizesasbuh1hhj,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&]uh1hhj,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,hj,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*}(hj&-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubj3)}(hpdevh]hpdev}(hj3-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,ubjT)}(hint barh](h)}(hinth]hint}(hjL-hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjH-ubj)}(h h]h }(hjZ-hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjH-ubj3)}(hbarh]hbar}(hjh-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjH-ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj,ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj,hhhj,hKcubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj,hhhj,hKcubah}(h]j},ah ](jjeh"]h$]h&]jj)jhuh1hhj,hKchj,hhubj)}(hhh]j)}(h$get possible sizes for Resizable BARh]h$get possible sizes for Resizable BAR}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKchj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hKcubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1hhhhhhNhNubj)}(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&)}(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.chKghj-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&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKdhj-ubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-hKdhj-ubah}(h]h ]h"]h$]h&]uh1jbhj-ubeh}(h]h ]h"]h$]h&]uh1j@hj-hKdhj-ubjA)}(h``int bar`` BAR to query 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&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKehj.ubjc)}(hhh]j)}(h BAR to queryh]h BAR to query}(hj%.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!.hKehj".ubah}(h]h ]h"]h$]h&]uh1jbhj.ubeh}(h]h ]h"]h$]h&]uh1j@hj!.hKehj-ubeh}(h]h ]h"]h$]h&]uh1j;hj-ubj)}(h**Description**h]j&)}(hjG.h]h Description}(hjI.hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjE.ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKghj-ubj)}(h5Get the possible sizes of a resizable BAR as bitmask.h]h5Get the possible sizes of a resizable BAR as bitmask.}(hj].hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKfhj-ubj)}(h **Return**h]j&)}(hjn.h]hReturn}(hjp.hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjl.ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhhj-ubj)}(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.hhhNhNubjM)}(h``0``h]h0}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj.ubh if BAR isn’t resizable.}(hj.hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKihj-ubeh}(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}(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_size_supportedh]j3)}(hpci_rebar_size_supportedh]hpci_rebar_size_supported}(hj.hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj.ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj.hhhj.hKubjN)}(h)(struct pci_dev *pdev, int bar, int size)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)}jj.sbc.pci_rebar_size_supportedasbuh1hhj.ubj)}(h h]h }(hj?/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.ubj)}(hjh]h*}(hjM/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubj3)}(hpdevh]hpdev}(hjZ/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj.ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj.ubjT)}(hint barh](h)}(hinth]hint}(hjs/hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjo/ubj)}(h h]h }(hj/hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjo/ubj3)}(hbarh]hbar}(hj/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjo/ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj.ubjT)}(hint sizeh](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)}(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)}(h"check if size is supported for BARh]h"check if size is supported for BAR}(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&]jjjj0jj0jjjuh1hhhhhhNhNubj)}(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&)}(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.chKhj 0ubj<)}(hhh](jA)}(h$``struct pci_dev *pdev`` PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj/0h]hstruct pci_dev *pdev}(hj10hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj-0ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj)0ubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hjH0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD0hKhjE0ubah}(h]h ]h"]h$]h&]uh1jbhj)0ubeh}(h]h ]h"]h$]h&]uh1j@hjD0hKhj&0ubjA)}(h``int bar`` BAR to check h](jG)}(h ``int bar``h]jM)}(hjh0h]hint bar}(hjj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjf0ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjb0ubjc)}(hhh]j)}(h BAR to checkh]h BAR to check}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}0hKhj~0ubah}(h]h ]h"]h$]h&]uh1jbhjb0ubeh}(h]h ]h"]h$]h&]uh1j@hj}0hKhj&0ubjA)}(hH``int size`` encoded size as defined in the PCIe spec (0=1MB, 31=128TB) h](jG)}(h ``int size``h]jM)}(hj0h]hint size}(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.chKhj0ubjc)}(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)}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0hKhj0ubah}(h]h ]h"]h$]h&]uh1jbhj0ubeh}(h]h ]h"]h$]h&]uh1j@hj0hKhj&0ubeh}(h]h ]h"]h$]h&]uh1j;hj 0ubj)}(h **Return**h]j&)}(hj0h]hReturn}(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.chKhj 0ubj)}(hP``true`` if **bar** is resizable and **size** is supported, otherwise ``false``.h](jM)}(h``true``h]htrue}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0ubh if }(hj0hhhNhNubj&)}(h**bar**h]hbar}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj0ubh is resizable and }(hj0hhhNhNubj&)}(h**size**h]hsize}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj0ubh is supported, otherwise }(hj0hhhNhNubjM)}(h ``false``h]hfalse}(hj,1hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0ubh.}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj 0ubeh}(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}(hje1hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhja1hhhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKubj)}(h h]h }(hjt1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhja1hhhjs1hKubj-)}(hpci_rebar_get_max_sizeh]j3)}(hpci_rebar_get_max_sizeh]hpci_rebar_get_max_size}(hj1hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hja1hhhjs1hKubjN)}(h(struct pci_dev *pdev, int bar)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_get_max_sizeasbuh1hhj1ubj)}(h h]h }(hj1hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj3)}(hpdevh]hpdev}(hj1hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj1ubjT)}(hint barh](h)}(hinth]hint}(hj2hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj2ubj)}(h h]h }(hj"2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj3)}(hbarh]hbar}(hj02hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj1ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhja1hhhjs1hKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj]1hhhjs1hKubah}(h]jX1ah ](jjeh"]h$]h&]jj)jhuh1hhjs1hKhjZ1hhubj)}(hhh]j)}(h'get the maximum supported size of a BARh]h'get the maximum supported size of a BAR}(hjZ2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjW2hhubah}(h]h ]h"]h$]h&]uh1jhjZ1hhhjs1hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjr2jjr2jjjuh1hhhhhhNhNubj)}(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&)}(hj|2h]h Parameters}(hj~2hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjz2ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjv2ubj<)}(hhh](jA)}(h$``struct pci_dev *pdev`` PCI device h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj2h]hstruct pci_dev *pdev}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj2ubjc)}(hhh]j)}(h PCI deviceh]h PCI device}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jbhj2ubeh}(h]h ]h"]h$]h&]uh1j@hj2hKhj2ubjA)}(h``int bar`` BAR to query h](jG)}(h ``int bar``h]jM)}(hj2h]hint bar}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj2ubah}(h]h ]h"]h$]h&]uh1jFhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhj2ubjc)}(hhh]j)}(h BAR to queryh]h BAR to query}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2hKhj2ubah}(h]h ]h"]h$]h&]uh1jbhj2ubeh}(h]h ]h"]h$]h&]uh1j@hj2hKhj2ubeh}(h]h ]h"]h$]h&]uh1j;hjv2ubj)}(h**Description**h]j&)}(hj3h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj 3ubah}(h]h ]h"]h$]h&]uh1jhV/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:40: ./drivers/pci/rebar.chKhjv2ubj)}(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.chKhj=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>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&)}(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.chKhj=ubj)}(h+Remove a mapping of a previously mapped ROMh]h+Remove a mapping of a previously mapped ROM}(hj?>hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:43: ./drivers/pci/rom.chKhj=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}(hjn>hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjj>hhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK7ubj)}(h h]h }(hj}>hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjj>hhhj|>hK7ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj>hhhj|>hK7ubj-)}(hpci_iov_get_pf_drvdatah]j3)}(hpci_iov_get_pf_drvdatah]hpci_iov_get_pf_drvdata}(hj>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjj>hhhj|>hK7ubjN)}(h3(struct pci_dev *dev, struct pci_driver *pf_driver)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_iov_get_pf_drvdataasbuh1hhj>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)}(hstruct pci_driver *pf_driverh](jZ)}(hj]h]hstruct}(hj*?hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj&?ubj)}(h h]h }(hj7?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&?ubh)}(hhh]j3)}(h pci_driverh]h pci_driver}(hjH?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjE?ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjJ?modnameN classnameNjj)}j]j>c.pci_iov_get_pf_drvdataasbuh1hhj&?ubj)}(h h]h }(hjf?hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj&?ubj)}(hjh]h*}(hjt?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&?ubj3)}(h pf_driverh]h pf_driver}(hj?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj&?ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj>ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjj>hhhj|>hK7ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjf>hhhj|>hK7ubah}(h]ja>ah ](jjeh"]h$]h&]jj)jhuh1hhj|>hK7hjc>hhubj)}(hhh]j)}(hReturn the drvdata of a PFh]hReturn the drvdata of a PF}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK7hj?hhubah}(h]h ]h"]h$]h&]uh1jhjc>hhhj|>hK7ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1hhhhhhNhNubj)}(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&)}(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:46: ./drivers/pci/iov.chK;hj?ubj<)}(hhh](jA)}(h#``struct pci_dev *dev`` VF pci_dev 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&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK8hj?ubjc)}(hhh]j)}(h VF pci_devh]h VF pci_dev}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@hK8hj@ubah}(h]h ]h"]h$]h&]uh1jbhj?ubeh}(h]h ]h"]h$]h&]uh1j@hj@hK8hj?ubjA)}(hF``struct pci_driver *pf_driver`` Device driver required to own the PF h](jG)}(h ``struct pci_driver *pf_driver``h]jM)}(hj%@h]hstruct pci_driver *pf_driver}(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:46: ./drivers/pci/iov.chK9hj@ubjc)}(hhh]j)}(h$Device driver required to own the PFh]h$Device driver required to own the PF}(hj>@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:@hK9hj;@ubah}(h]h ]h"]h$]h&]uh1jbhj@ubeh}(h]h ]h"]h$]h&]uh1j@hj:@hK9hj?ubeh}(h]h ]h"]h$]h&]uh1j;hj?ubj)}(h**Description**h]j&)}(hj`@h]h Description}(hjb@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:46: ./drivers/pci/iov.chK;hj?ubj)}(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.}(hjv@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK:hj?ubj)}(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@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chK>hj?ubj)}(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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chKBhj?ubeh}(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}(hj@hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj@hhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMubj)}(h h]h }(hj@hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@hhhj@hMubj-)}(hpci_enable_sriovh]j3)}(hpci_enable_sriovh]hpci_enable_sriov}(hj@hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj@hhhj@hMubjN)}(h$(struct pci_dev *dev, int nr_virtfn)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjAhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj@ubj)}(h h]h }(hj AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj AmodnameN classnameNjj)}j]j)}jj@sbc.pci_enable_sriovasbuh1hhj@ubj)}(h h]h }(hj>AhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj@ubj)}(hjh]h*}(hjLAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubj3)}(hdevh]hdev}(hjYAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj@ubjT)}(h int nr_virtfnh](h)}(hinth]hint}(hjrAhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjnAubj)}(h h]h }(hjAhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjnAubj3)}(h nr_virtfnh]h nr_virtfn}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnAubeh}(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)}(henable the SR-IOV capabilityh]henable the SR-IOV capability}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjAhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhj@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1hhhhhhNhNubj)}(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&)}(hjAh]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjAubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjAubj<)}(hhh](jA)}(h'``struct pci_dev *dev`` the PCI device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjAh]hstruct pci_dev *dev}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjAubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjAubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBhMhjBubah}(h]h ]h"]h$]h&]uh1jbhjAubeh}(h]h ]h"]h$]h&]uh1j@hjBhMhjAubjA)}(h8``int nr_virtfn`` number of virtual functions to enable h](jG)}(h``int nr_virtfn``h]jM)}(hj2Bh]h int nr_virtfn}(hj4BhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj0Bubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhj,Bubjc)}(hhh]j)}(h%number of virtual functions to enableh]h%number of virtual functions to enable}(hjKBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGBhMhjHBubah}(h]h ]h"]h$]h&]uh1jbhj,Bubeh}(h]h ]h"]h$]h&]uh1j@hjGBhMhjAubeh}(h]h ]h"]h$]h&]uh1j;hjAubj)}(h**Description**h]j&)}(hjmBh]h Description}(hjoBhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjkBubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjAubj)}(h-Returns 0 on success, or negative on failure.h]h-Returns 0 on success, or negative on failure.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjAubeh}(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}(hjBhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjBhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBhhhjBhMubj-)}(hpci_disable_sriovh]j3)}(hpci_disable_sriovh]hpci_disable_sriov}(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}(hjBhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjBubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hj ChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj Cubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCmodnameN classnameNjj)}j]j)}jjBsbc.pci_disable_sriovasbuh1hhjBubj)}(h h]h }(hj-ChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjBubj)}(hjh]h*}(hj;ChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubj3)}(hdevh]hdev}(hjHChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjBubah}(h]h ]h"]h$]h&]jKjLuh1jMhjBhhhjBhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjBhhhjBhMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1hhjBhMhjBhhubj)}(hhh]j)}(hdisable the SR-IOV capabilityh]hdisable the SR-IOV capability}(hjrChhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjoChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1hhhhhhNhNubj)}(h8**Parameters** ``struct pci_dev *dev`` the PCI deviceh](j)}(h**Parameters**h]j&)}(hjCh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjCubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjCubj<)}(hhh]jA)}(h&``struct pci_dev *dev`` the PCI deviceh](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&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjCubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjCubah}(h]h ]h"]h$]h&]uh1jbhjCubeh}(h]h ]h"]h$]h&]uh1j@hjChMhjCubah}(h]h ]h"]h$]h&]uh1j;hjCubeh}(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}(hj DhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj DhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj DhhhjDhMubj-)}(h pci_num_vfh]j3)}(h pci_num_vfh]h pci_num_vf}(hj.DhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj*Dubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj DhhhjDhMubjN)}(h(struct pci_dev *dev)h]jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjJDhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjFDubj)}(h h]h }(hjWDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFDubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjhDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjeDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjDmodnameN classnameNjj)}j]j)}jj0Dsb c.pci_num_vfasbuh1hhjFDubj)}(h h]h }(hjDhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjFDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFDubj3)}(hdevh]hdev}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjFDubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjBDubah}(h]h ]h"]h$]h&]jKjLuh1jMhj DhhhjDhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjDhhhjDhMubah}(h]jDah ](jjeh"]h$]h&]jj)jhuh1hhjDhMhjDhhubj)}(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}(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&]uh1jhjDhhhjDhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjDjjDjjjuh1hhhhhhNhNubj)}(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&)}(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)}(hjEh]hstruct pci_dev *dev}(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)}(hthe PCI deviceh]hthe PCI device}(hj'EhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#EhMhj$Eubah}(h]h ]h"]h$]h&]uh1jbhjEubeh}(h]h ]h"]h$]h&]uh1j@hj#EhMhjEubah}(h]h ]h"]h$]h&]uh1j;hjDubj)}(h**Description**h]j&)}(hjIEh]h Description}(hjKEhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjGEubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjDubj)}(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_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_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}(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_vfs_assignedh]j3)}(hpci_vfs_assignedh]hpci_vfs_assigned}(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_vfs_assignedasbuh1hhjEubj)}(h h]h }(hj FhhhNhNubah}(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)}(h-returns number of VFs are assigned to a guesth]h-returns number of VFs are assigned to a guest}(hjNFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjKFhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfFjjfFjjjuh1hhhhhhNhNubj)}(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&)}(hjpFh]h Parameters}(hjrFhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjnFubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjjFubj<)}(hhh]jA)}(h'``struct pci_dev *dev`` the PCI device h](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&]uh1jhjFhMhjFubah}(h]h ]h"]h$]h&]uh1jbhjFubeh}(h]h ]h"]h$]h&]uh1j@hjFhMhjFubah}(h]h ]h"]h$]h&]uh1j;hjjFubj)}(h**Description**h]j&)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjFubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjjFubj)}(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.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMhjjFubeh}(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)}(hNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:NhM/hj;Nubah}(h]h ]h"]h$]h&]uh1jbhjNubeh}(h]h ]h"]h$]h&]uh1j@hj:NhM/hjNubjA)}(h"``int resno`` the resource number h](jG)}(h ``int resno``h]jM)}(hj^Nh]h int resno}(hj`NhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj\Nubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chM0hjXNubjc)}(hhh]j)}(hthe resource numberh]hthe resource number}(hjwNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsNhM0hjtNubah}(h]h ]h"]h$]h&]uh1jbhjXNubeh}(h]h ]h"]h$]h&]uh1j@hjsNhM0hjNubjA)}(h?``int size`` new size as defined in the spec (0=1MB, 31=128TB) h](jG)}(h ``int size``h]jM)}(hjNh]hint size}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjNubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chM1hjNubjc)}(hhh]j)}(h1new size as defined in the spec (0=1MB, 31=128TB)h]h1new size as defined in the spec (0=1MB, 31=128TB)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhM1hjNubah}(h]h ]h"]h$]h&]uh1jbhjNubeh}(h]h ]h"]h$]h&]uh1j@hjNhM1hjNubeh}(h]h ]h"]h$]h&]uh1j;hjNubj)}(h**Description**h]j&)}(hjNh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chM3hjNubj)}(hX/Set the new size of a VF BAR that supports VF resizable BAR capability. Unlike pci_resize_resource(), this does not cause the resource that reserves the MMIO space (originally up to total_VFs) to be resized, which means that following calls to pci_enable_sriov() can fail if the resources no longer fit.h]hX/Set the new size of a VF BAR that supports VF resizable BAR capability. Unlike pci_resize_resource(), this does not cause the resource that reserves the MMIO space (originally up to total_VFs) to be resized, which means that following calls to pci_enable_sriov() can fail if the resources no longer fit.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chM2hjNubj)}(h **Return**h]j&)}(hjNh]hReturn}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chM8hjNubj)}(h%0 on success, or negative on failure.h]h%0 on success, or negative on failure.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chM9hjNubeh}(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}(hjAOhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>Oubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjCOmodnameN classnameNjj)}j]j)}jpci_iov_vf_bar_get_sizessbc.pci_iov_vf_bar_get_sizesasbuh1hhj:OhhhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMKubj)}(h h]h }(hjcOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj:OhhhjbOhMKubj-)}(hpci_iov_vf_bar_get_sizesh]j3)}(hj_Oh]hpci_iov_vf_bar_get_sizes}(hjuOhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjqOubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj:OhhhjbOhMKubjN)}(h-(struct pci_dev *dev, int resno, int num_vfs)h](jT)}(hstruct pci_dev *devh](jZ)}(hj]h]hstruct}(hjOhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjOhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjOmodnameN classnameNjj)}j]j]Oc.pci_iov_vf_bar_get_sizesasbuh1hhjOubj)}(h h]h }(hjOhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubj3)}(hdevh]hdev}(hjOhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjOubjT)}(h int resnoh](h)}(hinth]hint}(hjPhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOubj)}(h h]h }(hjPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjOubj3)}(hresnoh]hresno}(hjPhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjOubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjOubjT)}(h int num_vfsh](h)}(hinth]hint}(hj5PhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj1Pubj)}(h h]h }(hjCPhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1Pubj3)}(hnum_vfsh]hnum_vfs}(hjQPhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1Pubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjOubeh}(h]h ]h"]h$]h&]jKjLuh1jMhj:OhhhjbOhMKubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj6OhhhjbOhMKubah}(h]j1Oah ](jjeh"]h$]h&]jj)jhuh1hhjbOhMKhj3Ohhubj)}(hhh]j)}(h1get VF BAR sizes allowing to create up to num_vfsh]h1get VF BAR sizes allowing to create up to num_vfs}(hj{PhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMKhjxPhhubah}(h]h ]h"]h$]h&]uh1jhj3OhhhjbOhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjPjjPjjjuh1hhhhhhNhNubj)}(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&)}(hjPh]h Parameters}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjPubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMOhjPubj<)}(hhh](jA)}(h'``struct pci_dev *dev`` the PCI device h](jG)}(h``struct pci_dev *dev``h]jM)}(hjPh]hstruct pci_dev *dev}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMLhjPubjc)}(hhh]j)}(hthe PCI deviceh]hthe PCI device}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPhMLhjPubah}(h]h ]h"]h$]h&]uh1jbhjPubeh}(h]h ]h"]h$]h&]uh1j@hjPhMLhjPubjA)}(h"``int resno`` the resource number h](jG)}(h ``int resno``h]jM)}(hjPh]h int resno}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjPubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMMhjPubjc)}(hhh]j)}(hthe resource numberh]hthe resource number}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj QhMMhj Qubah}(h]h ]h"]h$]h&]uh1jbhjPubeh}(h]h ]h"]h$]h&]uh1j@hj QhMMhjPubjA)}(h``int num_vfs`` number of VFs h](jG)}(h``int num_vfs``h]jM)}(hj.Qh]h int num_vfs}(hj0QhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj,Qubah}(h]h ]h"]h$]h&]uh1jFhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMNhj(Qubjc)}(hhh]j)}(h number of VFsh]h number of VFs}(hjGQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCQhMNhjDQubah}(h]h ]h"]h$]h&]uh1jbhj(Qubeh}(h]h ]h"]h$]h&]uh1j@hjCQhMNhjPubeh}(h]h ]h"]h$]h&]uh1j;hjPubj)}(h**Description**h]j&)}(hjiQh]h Description}(hjkQhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjgQubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMPhjPubj)}(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 }(hjQhhhNhNubj&)}(h **num_vfs**h]hnum_vfs}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjQubh4 within the currently assigned size of the resource }(hjQhhhNhNubj&)}(h **resno**h]hresno}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjQubh.}(hjQhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMOhjPubj)}(h **Return**h]j&)}(hjQh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjQubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMRhjPubj)}(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).}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhT/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:46: ./drivers/pci/iov.chMShjPubeh}(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}(hjQhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjQubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQmodnameN classnameNjj)}j]j)}jpci_read_legacy_iosbc.pci_read_legacy_ioasbuh1hhjQhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjQhhhjRhMubj-)}(hpci_read_legacy_ioh]j3)}(hjRh]hpci_read_legacy_io}(hj0RhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj,Rubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjQhhhjRhMubjN)}(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}(hjKRhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjGRubj)}(h h]h }(hjXRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGRubh)}(hhh]j3)}(hfileh]hfile}(hjiRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfRubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjkRmodnameN classnameNjj)}j]jRc.pci_read_legacy_ioasbuh1hhjGRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjGRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGRubj3)}(hfilph]hfilp}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjGRubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjCRubjT)}(hstruct kobject *kobjh](jZ)}(hj]h]hstruct}(hjRhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubh)}(hhh]j3)}(hkobjecth]hkobject}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjRmodnameN classnameNjj)}j]jRc.pci_read_legacy_ioasbuh1hhjRubj)}(h h]h }(hjRhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjRubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj3)}(hkobjh]hkobj}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjCRubjT)}(h$const struct bin_attribute *bin_attrh](jZ)}(hjh]hconst}(hj+ShhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj'Subj)}(h h]h }(hj8ShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'SubjZ)}(hj]h]hstruct}(hjFShhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj'Subj)}(h h]h }(hjSShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'Subh)}(hhh]j3)}(h bin_attributeh]h bin_attribute}(hjdShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjaSubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfSmodnameN classnameNjj)}j]jRc.pci_read_legacy_ioasbuh1hhj'Subj)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'Subj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'Subj3)}(hbin_attrh]hbin_attr}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj'Subeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjCRubjT)}(h char *bufh](h)}(hcharh]hchar}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjSubj)}(h h]h }(hjShhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj3)}(hbufh]hbuf}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjSubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjCRubjT)}(h loff_t offh](h)}(hhh]j3)}(hloff_th]hloff_t}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjSubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]jRc.pci_read_legacy_ioasbuh1hhjSubj)}(h h]h }(hjThhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjSubj3)}(hoffh]hoff}(hj'ThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjSubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjCRubjT)}(h size_t counth](h)}(hhh]j3)}(hsize_th]hsize_t}(hjCThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@Tubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjETmodnameN classnameNjj)}j]jRc.pci_read_legacy_ioasbuh1hhjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj:Zubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj6Zubjc)}(hhh]j)}(h!offset into legacy I/O port spaceh]h!offset into legacy I/O port space}(hjUZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQZhMhjRZubah}(h]h ]h"]h$]h&]uh1jbhj6Zubeh}(h]h ]h"]h$]h&]uh1j@hjQZhMhjOYubjA)}(h*``size_t count`` number of bytes to write h](jG)}(h``size_t count``h]jM)}(hjuZh]h size_t count}(hjwZhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjsZubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjoZubjc)}(hhh]j)}(hnumber of bytes to writeh]hnumber of bytes to write}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZhMhjZubah}(h]h ]h"]h$]h&]uh1jbhjoZubeh}(h]h ]h"]h$]h&]uh1j@hjZhMhjOYubeh}(h]h ]h"]h$]h&]uh1j;hj3Yubj)}(h**Description**h]j&)}(hjZh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjZubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj3Yubj)}(hnWrites 1, 2, or 4 bytes from legacy I/O port space using an arch specific callback routine (pci_legacy_write).h]hnWrites 1, 2, or 4 bytes from legacy I/O port space using an arch specific callback routine (pci_legacy_write).}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj3Yubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، pci_mmap_legacy_mem (C function)c.pci_mmap_legacy_memhNtauh1hhhhhhNhNubh)}(hhh](h)}(hint pci_mmap_legacy_mem (struct file *filp, struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma)h]h)}(h~int pci_mmap_legacy_mem(struct file *filp, struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma)h](h)}(hinth]hint}(hjZhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjZhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hj[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjZhhhj[hMubj-)}(hpci_mmap_legacy_memh]j3)}(hpci_mmap_legacy_memh]hpci_mmap_legacy_mem}(hj[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjZhhhj[hMubjN)}(hg(struct file *filp, struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma)h](jT)}(hstruct file *filph](jZ)}(hj]h]hstruct}(hj2[hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj.[ubj)}(h h]h }(hj?[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.[ubh)}(hhh]j3)}(hfileh]hfile}(hjP[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjM[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjR[modnameN classnameNjj)}j]j)}jj[sbc.pci_mmap_legacy_memasbuh1hhj.[ubj)}(h h]h }(hjp[hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj.[ubj)}(hjh]h*}(hj~[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.[ubj3)}(hfilph]hfilp}(hj[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj.[ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj*[ubjT)}(hstruct kobject *kobjh](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)}(hkobjecth]hkobject}(hj[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj[modnameN classnameNjj)}j]jl[c.pci_mmap_legacy_memasbuh1hhj[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)}(hkobjh]hkobj}(hj[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj*[ubjT)}(h const struct bin_attribute *attrh](jZ)}(hjh]hconst}(hj\hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj\ubj)}(h h]h }(hj!\hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubjZ)}(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 bin_attributeh]h bin_attribute}(hjM\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJ\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjO\modnameN classnameNjj)}j]jl[c.pci_mmap_legacy_memasbuh1hhj\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)}(hattrh]hattr}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj*[ubjT)}(hstruct vm_area_struct *vmah](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)}(hvm_area_structh]hvm_area_struct}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj\modnameN classnameNjj)}j]jl[c.pci_mmap_legacy_memasbuh1hhj\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)}(hvmah]hvma}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj*[ubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjZhhhj[hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjZhhhj[hMubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1hhj[hMhjZhhubj)}(hhh]j)}(h,map legacy PCI memory into user memory spaceh]h,map legacy PCI memory into user memory space}(hj ]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj]hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj8]jj8]jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct file *filp`` open sysfs file ``struct kobject *kobj`` kobject corresponding to device to be mapped ``const struct bin_attribute *attr`` struct bin_attribute for this file ``struct vm_area_struct *vma`` struct vm_area_struct passed to mmap **Description** Uses an arch specific callback, pci_mmap_legacy_mem_page_range, to mmap legacy memory space (first meg of bus space) into application virtual memory space.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&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj<]ubj<)}(hhh](jA)}(h&``struct file *filp`` open sysfs file h](jG)}(h``struct file *filp``h]jM)}(hja]h]hstruct file *filp}(hjc]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_]ubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj[]ubjc)}(hhh]j)}(hopen sysfs fileh]hopen sysfs file}(hjz]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjv]hMhjw]ubah}(h]h ]h"]h$]h&]uh1jbhj[]ubeh}(h]h ]h"]h$]h&]uh1j@hjv]hMhjX]ubjA)}(hF``struct kobject *kobj`` kobject corresponding to device to be mapped h](jG)}(h``struct kobject *kobj``h]jM)}(hj]h]hstruct kobject *kobj}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]ubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj]ubjc)}(hhh]j)}(h,kobject corresponding to device to be mappedh]h,kobject corresponding to device 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]hMhjX]ubjA)}(hH``const struct bin_attribute *attr`` struct bin_attribute for this file h](jG)}(h$``const struct bin_attribute *attr``h]jM)}(hj]h]h const struct bin_attribute *attr}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj]ubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj]ubjc)}(hhh]j)}(h"struct bin_attribute for this fileh]h"struct bin_attribute for this file}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]hMhj]ubah}(h]h ]h"]h$]h&]uh1jbhj]ubeh}(h]h ]h"]h$]h&]uh1j@hj]hMhjX]ubjA)}(hD``struct vm_area_struct *vma`` struct vm_area_struct passed to mmap h](jG)}(h``struct vm_area_struct *vma``h]jM)}(hj ^h]hstruct vm_area_struct *vma}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj ^ubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj^ubjc)}(hhh]j)}(h$struct vm_area_struct passed to mmaph]h$struct vm_area_struct passed to mmap}(hj%^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!^hMhj"^ubah}(h]h ]h"]h$]h&]uh1jbhj^ubeh}(h]h ]h"]h$]h&]uh1j@hj!^hMhjX]ubeh}(h]h ]h"]h$]h&]uh1j;hj<]ubj)}(h**Description**h]j&)}(hjG^h]h Description}(hjI^hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjE^ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj<]ubj)}(hUses an arch specific callback, pci_mmap_legacy_mem_page_range, to mmap legacy memory space (first meg of bus space) into application virtual memory space.h]hUses an arch specific callback, pci_mmap_legacy_mem_page_range, to mmap legacy memory space (first meg of bus space) into application virtual memory space.}(hj]^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj<]ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_mmap_legacy_io (C function)c.pci_mmap_legacy_iohNtauh1hhhhhhNhNubh)}(hhh](h)}(h~int pci_mmap_legacy_io (struct file *filp, struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma)h]h)}(h}int pci_mmap_legacy_io(struct file *filp, struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma)h](h)}(hinth]hint}(hj^hhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj^hhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hj^hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj^hhhj^hMubj-)}(hpci_mmap_legacy_ioh]j3)}(hpci_mmap_legacy_ioh]hpci_mmap_legacy_io}(hj^hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj^ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj^hhhj^hMubjN)}(hg(struct file *filp, struct kobject *kobj, const struct bin_attribute *attr, struct vm_area_struct *vma)h](jT)}(hstruct file *filph](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)}(hfileh]hfile}(hj^hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj^modnameN classnameNjj)}j]j)}jj^sbc.pci_mmap_legacy_ioasbuh1hhj^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)}(hfilph]hfilp}(hj"_hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj^ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj^ubjT)}(hstruct kobject *kobjh](jZ)}(hj]h]hstruct}(hj;_hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj7_ubj)}(h h]h }(hjH_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7_ubh)}(hhh]j3)}(hkobjecth]hkobject}(hjY_hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjV_ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj[_modnameN classnameNjj)}j]j_c.pci_mmap_legacy_ioasbuh1hhj7_ubj)}(h h]h }(hjw_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj7_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7_ubj3)}(hkobjh]hkobj}(hj_hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj7_ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj^ubjT)}(h const struct bin_attribute *attrh](jZ)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj_ubj)}(h h]h }(hj_hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj_ubjZ)}(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 bin_attributeh]h bin_attribute}(hj_hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj_ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]j_c.pci_mmap_legacy_ioasbuh1hhj_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)}(hattrh]hattr}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj_ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj^ubjT)}(hstruct vm_area_struct *vmah](jZ)}(hj]h]hstruct}(hj6`hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj2`ubj)}(h h]h }(hjC`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2`ubh)}(hhh]j3)}(hvm_area_structh]hvm_area_struct}(hjT`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjQ`ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjV`modnameN classnameNjj)}j]j_c.pci_mmap_legacy_ioasbuh1hhj2`ubj)}(h h]h }(hjr`hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2`ubj3)}(hvmah]hvma}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2`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)}(h(map legacy PCI IO into user memory spaceh]h(map legacy PCI IO into user memory space}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj`hhubah}(h]h ]h"]h$]h&]uh1jhj^hhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1hhhhhhNhNubj)}(hX**Parameters** ``struct file *filp`` open sysfs file ``struct kobject *kobj`` kobject corresponding to device to be mapped ``const struct bin_attribute *attr`` struct bin_attribute for this file ``struct vm_area_struct *vma`` struct vm_area_struct passed to mmap **Description** Uses 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](j)}(h**Parameters**h]j&)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj`ubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj`ubj<)}(hhh](jA)}(h&``struct file *filp`` open sysfs file h](jG)}(h``struct file *filp``h]jM)}(hj`h]hstruct file *filp}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj`ubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj`ubjc)}(hhh]j)}(hopen sysfs fileh]hopen sysfs file}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ahMhjaubah}(h]h ]h"]h$]h&]uh1jbhj`ubeh}(h]h ]h"]h$]h&]uh1j@hj ahMhj`ubjA)}(hF``struct kobject *kobj`` kobject corresponding to device to be mapped h](jG)}(h``struct kobject *kobj``h]jM)}(hj1ah]hstruct kobject *kobj}(hj3ahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj/aubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj+aubjc)}(hhh]j)}(h,kobject corresponding to device to be mappedh]h,kobject corresponding to device to be mapped}(hjJahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFahMhjGaubah}(h]h ]h"]h$]h&]uh1jbhj+aubeh}(h]h ]h"]h$]h&]uh1j@hjFahMhj`ubjA)}(hH``const struct bin_attribute *attr`` struct bin_attribute for this file h](jG)}(h$``const struct bin_attribute *attr``h]jM)}(hjjah]h const struct bin_attribute *attr}(hjlahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhaubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjdaubjc)}(hhh]j)}(h"struct bin_attribute for this fileh]h"struct bin_attribute for this file}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahMhjaubah}(h]h ]h"]h$]h&]uh1jbhjdaubeh}(h]h ]h"]h$]h&]uh1j@hjahMhj`ubjA)}(hD``struct vm_area_struct *vma`` struct vm_area_struct passed to mmap h](jG)}(h``struct vm_area_struct *vma``h]jM)}(hjah]hstruct vm_area_struct *vma}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjaubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjaubjc)}(hhh]j)}(h$struct vm_area_struct passed to mmaph]h$struct vm_area_struct passed to mmap}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjahMhjaubah}(h]h ]h"]h$]h&]uh1jbhjaubeh}(h]h ]h"]h$]h&]uh1j@hjahMhj`ubeh}(h]h ]h"]h$]h&]uh1j;hj`ubj)}(h**Description**h]j&)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjaubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj`ubj)}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،#pci_adjust_legacy_attr (C function)c.pci_adjust_legacy_attrhNtauh1hhhhhhNhNubh)}(hhh](h)}(hNvoid pci_adjust_legacy_attr (struct pci_bus *b, enum pci_mmap_state mmap_type)h]h)}(hMvoid pci_adjust_legacy_attr(struct pci_bus *b, enum pci_mmap_state mmap_type)h](h)}(hvoidh]hvoid}(hj#bhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjbhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hj2bhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbhhhj1bhMubj-)}(hpci_adjust_legacy_attrh]j3)}(hpci_adjust_legacy_attrh]hpci_adjust_legacy_attr}(hjDbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@bubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjbhhhj1bhMubjN)}(h2(struct pci_bus *b, enum pci_mmap_state mmap_type)h](jT)}(hstruct pci_bus *bh](jZ)}(hj]h]hstruct}(hj`bhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj\bubj)}(h h]h }(hjmbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\bubh)}(hhh]j3)}(hpci_bush]hpci_bus}(hj~bhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{bubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbmodnameN classnameNjj)}j]j)}jjFbsbc.pci_adjust_legacy_attrasbuh1hhj\bubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\bubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\bubj3)}(hbh]hb}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\bubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjXbubjT)}(henum pci_mmap_state mmap_typeh](jZ)}(hj2h]henum}(hjbhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjbubj)}(h h]h }(hjbhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubh)}(hhh]j3)}(hpci_mmap_stateh]hpci_mmap_state}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjbubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjbmodnameN classnameNjj)}j]jbc.pci_adjust_legacy_attrasbuh1hhjbubj)}(h h]h }(hjchhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjbubj3)}(h mmap_typeh]h mmap_type}(hjchhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjbubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjXbubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjbhhhj1bhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjbhhhj1bhMubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1hhj1bhMhjbhhubj)}(hhh]j)}(h$adjustment of legacy file attributesh]h$adjustment of legacy file attributes}(hjFchhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjCchhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj1bhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^cjj^cjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_bus *b`` bus to create files under ``enum pci_mmap_state mmap_type`` I/O port or memory **Description** Stub implementation. Can be overridden by arch if necessary.h](j)}(h**Parameters**h]j&)}(hjhch]h Parameters}(hjjchhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjfcubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjbcubj<)}(hhh](jA)}(h0``struct pci_bus *b`` bus to create files under h](jG)}(h``struct pci_bus *b``h]jM)}(hjch]hstruct pci_bus *b}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjcubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjcubjc)}(hhh]j)}(hbus to create files underh]hbus to create files under}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchMhjcubah}(h]h ]h"]h$]h&]uh1jbhjcubeh}(h]h ]h"]h$]h&]uh1j@hjchMhj~cubjA)}(h5``enum pci_mmap_state mmap_type`` I/O port or memory h](jG)}(h!``enum pci_mmap_state mmap_type``h]jM)}(hjch]henum pci_mmap_state mmap_type}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjcubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjcubjc)}(hhh]j)}(hI/O port or memoryh]hI/O port or memory}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjchMhjcubah}(h]h ]h"]h$]h&]uh1jbhjcubeh}(h]h ]h"]h$]h&]uh1j@hjchMhj~cubeh}(h]h ]h"]h$]h&]uh1j;hjbcubj)}(h**Description**h]j&)}(hjch]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjcubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjbcubj)}(heubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj:eubjc)}(hhh]j)}(hbus to create files underh]hbus to create files under}(hjYehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUehMhjVeubah}(h]h ]h"]h$]h&]uh1jbhj:eubeh}(h]h ]h"]h$]h&]uh1j@hjUehMhj7eubah}(h]h ]h"]h$]h&]uh1j;hjeubj)}(h**Description**h]j&)}(hj{eh]h Description}(hj}ehhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjyeubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjeubj)}(hSome platforms allow access to legacy I/O port and ISA memory space on a per-bus basis. This routine creates the files and ties them into their associated read, write and mmap files from pci-sysfs.ch]hSome platforms allow access to legacy I/O port and ISA memory space on a per-bus basis. This routine creates the files and ties them into their associated read, write and mmap files from pci-sysfs.c}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjeubj)}(hsOn error unwind, but don't propagate the error to the caller as it is ok to set up the PCI bus without these files.h]huOn error unwind, but don’t propagate the error to the caller as it is ok to set up the PCI bus without these files.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjeubeh}(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.chM/ubj)}(h h]h }(hjehhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjehhhjehM/ubj-)}(hpci_mmap_resourceh]j3)}(hpci_mmap_resourceh]hpci_mmap_resource}(hjehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjeubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjehhhjehM/ubjN)}(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}(hj fhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubh)}(hhh]j3)}(hkobjecth]hkobject}(hj*fhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj'fubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,fmodnameN classnameNjj)}j]j)}jjesbc.pci_mmap_resourceasbuh1hhjfubj)}(h h]h }(hjJfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjfubj)}(hjh]h*}(hjXfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj3)}(hkobjh]hkobj}(hjefhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjfubjT)}(h const struct bin_attribute *attrh](jZ)}(hjh]hconst}(hj~fhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjzfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzfubjZ)}(hj]h]hstruct}(hjfhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjzfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzfubh)}(hhh]j3)}(h bin_attributeh]h bin_attribute}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]jFfc.pci_mmap_resourceasbuh1hhjzfubj)}(h h]h }(hjfhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjzfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzfubj3)}(hattrh]hattr}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzfubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjfubjT)}(hstruct vm_area_struct *vmah](jZ)}(hj]h]hstruct}(hj ghhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjgubj)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubh)}(hhh]j3)}(hvm_area_structh]hvm_area_struct}(hj'ghhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$gubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj)gmodnameN classnameNjj)}j]jFfc.pci_mmap_resourceasbuh1hhjgubj)}(h h]h }(hjEghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjgubj)}(hjh]h*}(hjSghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj3)}(hvmah]hvma}(hj`ghhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjgubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjfubjT)}(hint write_combineh](h)}(hinth]hint}(hjyghhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjugubj)}(h h]h }(hjghhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjugubj3)}(h write_combineh]h write_combine}(hjghhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjugubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjfubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjehhhjehM/ubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjehhhjehM/ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1hhjehM/hjehhubj)}(hhh]j)}(h)map a PCI resource into user memory spaceh]h)map a PCI resource into user memory space}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM/hjghhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehM/ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1hhhhhhNhNubj)}(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&)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjgubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM3hjgubj<)}(hhh](jA)}(h-``struct kobject *kobj`` kobject for mapping h](jG)}(h``struct kobject *kobj``h]jM)}(hjhh]hstruct kobject *kobj}(hjhhhhNhNubah}(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.chM0hjgubjc)}(hhh]j)}(hkobject for mappingh]hkobject for mapping}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhM0hjhubah}(h]h ]h"]h$]h&]uh1jbhjgubeh}(h]h ]h"]h$]h&]uh1j@hjhhM0hjgubjA)}(hT``const struct bin_attribute *attr`` struct bin_attribute for the file being mapped h](jG)}(h$``const struct bin_attribute *attr``h]jM)}(hj9hh]h const struct bin_attribute *attr}(hj;hhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj7hubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM1hj3hubjc)}(hhh]j)}(h.struct bin_attribute for the file being mappedh]h.struct bin_attribute for the file being mapped}(hjRhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNhhM1hjOhubah}(h]h ]h"]h$]h&]uh1jbhj3hubeh}(h]h ]h"]h$]h&]uh1j@hjNhhM1hjgubjA)}(hJ``struct vm_area_struct *vma`` struct vm_area_struct passed into the mmap h](jG)}(h``struct vm_area_struct *vma``h]jM)}(hjrhh]hstruct vm_area_struct *vma}(hjthhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM2hjlhubjc)}(hhh]j)}(h*struct vm_area_struct passed into the mmaph]h*struct vm_area_struct passed into the mmap}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhM2hjhubah}(h]h ]h"]h$]h&]uh1jbhjlhubeh}(h]h ]h"]h$]h&]uh1j@hjhhM2hjgubjA)}(h2``int write_combine`` 1 for write_combine mapping h](jG)}(h``int write_combine``h]jM)}(hjhh]hint write_combine}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM3hjhubjc)}(hhh]j)}(h1 for write_combine mappingh]h1 for write_combine mapping}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhhM3hjhubah}(h]h ]h"]h$]h&]uh1jbhjhubeh}(h]h ]h"]h$]h&]uh1j@hjhhM3hjgubeh}(h]h ]h"]h$]h&]uh1j;hjgubj)}(h**Description**h]j&)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjhubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM5hjgubj)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM4hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،&pci_remove_resource_files (C function)c.pci_remove_resource_fileshNtauh1hhhhhhNhNubh)}(hhh](h)}(h5void pci_remove_resource_files (struct pci_dev *pdev)h]h)}(h4void pci_remove_resource_files(struct pci_dev *pdev)h](h)}(hvoidh]hvoid}(hj+ihhhNhNubah}(h]h ]hah"]h$]h&]uh1hhj'ihhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hj:ihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj'ihhhj9ihMubj-)}(hpci_remove_resource_filesh]j3)}(hpci_remove_resource_filesh]hpci_remove_resource_files}(hjLihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjHiubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj'ihhhj9ihMubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjhihhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjdiubj)}(h h]h }(hjuihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdiubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjiubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjimodnameN classnameNjj)}j]j)}jjNisbc.pci_remove_resource_filesasbuh1hhjdiubj)}(h h]h }(hjihhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjdiubj)}(hjh]h*}(hjihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjdiubj3)}(hpdevh]hpdev}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjdiubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShj`iubah}(h]h ]h"]h$]h&]jKjLuh1jMhj'ihhhj9ihMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj#ihhhj9ihMubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1hhj9ihMhj ihhubj)}(hhh]j)}(hcleanup resource filesh]hcleanup resource files}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhj ihhhj9ihMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` dev to cleanup **Description** If we created resource files for **pdev**, remove them from sysfs and free their resources.h](j)}(h**Parameters**h]j&)}(hj jh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj jubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjjubj<)}(hhh]jA)}(h(``struct pci_dev *pdev`` dev to cleanup h](jG)}(h``struct pci_dev *pdev``h]jM)}(hj,jh]hstruct pci_dev *pdev}(hj.jhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj*jubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj&jubjc)}(hhh]j)}(hdev to cleanuph]hdev to cleanup}(hjEjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAjhMhjBjubah}(h]h ]h"]h$]h&]uh1jbhj&jubeh}(h]h ]h"]h$]h&]uh1j@hjAjhMhj#jubah}(h]h ]h"]h$]h&]uh1j;hjjubj)}(h**Description**h]j&)}(hjgjh]h Description}(hjijhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjejubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjjubj)}(h[If we created resource files for **pdev**, remove them from sysfs and free their resources.h](h!If we created resource files for }(hj}jhhhNhNubj&)}(h**pdev**h]hpdev}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj}jubh2, remove them from sysfs and free their resources.}(hj}jhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،&pci_create_resource_files (C function)c.pci_create_resource_fileshNtauh1hhhhhhNhNubh)}(hhh](h)}(h4int pci_create_resource_files (struct pci_dev *pdev)h]h)}(h3int pci_create_resource_files(struct pci_dev *pdev)h](h)}(hinth]hint}(hjjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjjhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hjjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjhhhjjhMubj-)}(hpci_create_resource_filesh]j3)}(hpci_create_resource_filesh]hpci_create_resource_files}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjjhhhjjhMubjN)}(h(struct pci_dev *pdev)h]jT)}(hstruct pci_dev *pdevh](jZ)}(hj]h]hstruct}(hjjhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjjubj)}(h h]h }(hjkhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubh)}(hhh]j3)}(hpci_devh]hpci_dev}(hjkhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjkubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjkmodnameN classnameNjj)}j]j)}jjjsbc.pci_create_resource_filesasbuh1hhjjubj)}(h h]h }(hj9khhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjjubj)}(hjh]h*}(hjGkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj3)}(hpdevh]hpdev}(hjTkhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjjubah}(h]h ]h"]h$]h&]jKjLuh1jMhjjhhhjjhMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjjhhhjjhMubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1hhjjhMhjjhhubj)}(hhh]j)}(h*create resource files in sysfs for **dev**h](h#create resource files in sysfs for }(hj~khhhNhNubj&)}(h**dev**h]hdev}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj~kubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj{khhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1hhhhhhNhNubj)}(h**Parameters** ``struct pci_dev *pdev`` dev in question **Description** Walk the resources in **pdev** creating files for each resource available.h](j)}(h**Parameters**h]j&)}(hjkh]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjkubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjkubj<)}(hhh]jA)}(h)``struct pci_dev *pdev`` dev in question h](jG)}(h``struct pci_dev *pdev``h]jM)}(hjkh]hstruct pci_dev *pdev}(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)}(hdev in questionh]hdev in question}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jbhjkubeh}(h]h ]h"]h$]h&]uh1j@hjkhMhjkubah}(h]h ]h"]h$]h&]uh1j;hjkubj)}(h**Description**h]j&)}(hjlh]h Description}(hj lhhhNhNubah}(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.chMhjkubj)}(hJWalk the resources in **pdev** creating files for each resource available.h](hWalk the resources in }(hjlhhhNhNubj&)}(h**pdev**h]hpdev}(hj&lhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjlubh, creating files for each resource available.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjkubeh}(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}(hjblhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj_lubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjdlmodnameN classnameNjj)}j]j)}j pci_write_romsbc.pci_write_romasbuh1hhj[lhhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj[lhhhjlhMubj-)}(h pci_write_romh]j3)}(hjlh]h pci_write_rom}(hjlhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjlubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hj[lhhhjlhMubjN)}(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}(hjlhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubh)}(hhh]j3)}(hfileh]hfile}(hjlhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjlubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjlmodnameN classnameNjj)}j]j~lc.pci_write_romasbuh1hhjlubj)}(h h]h }(hjlhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj3)}(hfilph]hfilp}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjlubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjlubjT)}(hstruct kobject *kobjh](jZ)}(hj]h]hstruct}(hj!mhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjmubj)}(h h]h }(hj.mhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjmubh)}(hhh]j3)}(hkobjecth]hkobject}(hj?mhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjoubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhj:oubjc)}(hhh]j)}(h sysfs fileh]h sysfs file}(hjYohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUohMhjVoubah}(h]h ]h"]h$]h&]uh1jbhj:oubeh}(h]h ]h"]h$]h&]uh1j@hjUohMhj7oubjA)}(h.``struct kobject *kobj`` kernel object handle h](jG)}(h``struct kobject *kobj``h]jM)}(hjyoh]hstruct kobject *kobj}(hj{ohhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjwoubah}(h]h ]h"]h$]h&]uh1jFhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chMhjsoubjc)}(hhh]j)}(hkernel object handleh]hkernel object handle}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1jbhjsoubeh}(h]h ]h"]h$]h&]uh1j@hjohMhj7oubjA)}(hL``const struct bin_attribute *bin_attr`` struct bin_attribute for this file h](jG)}(h(``const struct bin_attribute *bin_attr``h]jM)}(hjoh]h$const struct bin_attribute *bin_attr}(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"struct bin_attribute for this fileh]h"struct bin_attribute for this file}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjohMhjoubah}(h]h ]h"]h$]h&]uh1jbhjoubeh}(h]h ]h"]h$]h&]uh1j@hjohMhj7oubjA)}(h``char *buf`` user input h](jG)}(h ``char *buf``h]jM)}(hjoh]h char *buf}(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 user inputh]h user input}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMhjpubah}(h]h ]h"]h$]h&]uh1jbhjoubeh}(h]h ]h"]h$]h&]uh1j@hjphMhj7oubjA)}(h``loff_t off`` file offset h](jG)}(h``loff_t off``h]jM)}(hj$ph]h loff_t off}(hj&phhhNhNubah}(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)}(h file offseth]h file offset}(hj=phhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9phMhj:pubah}(h]h ]h"]h$]h&]uh1jbhjpubeh}(h]h ]h"]h$]h&]uh1j@hj9phMhj7oubjA)}(h)``size_t count`` number of byte in input h](jG)}(h``size_t count``h]jM)}(hj]ph]h size_t count}(hj_phhhNhNubah}(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.chMhjWpubjc)}(hhh]j)}(hnumber of byte in inputh]hnumber of byte in input}(hjvphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrphMhjspubah}(h]h ]h"]h$]h&]uh1jbhjWpubeh}(h]h ]h"]h$]h&]uh1j@hjrphMhj7oubeh}(h]h ]h"]h$]h&]uh1j;hjoubj)}(h**Description**h]j&)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjpubah}(h]h ]h"]h$]h&]uh1jhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM hjoubj)}(h$writing anything except 0 enables ith]h$writing anything except 0 enables it}(hjphhhNhNubah}(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،pci_read_rom (C function)c.pci_read_romhNtauh1hhhhhhNhNubh)}(hhh](h)}(hssize_t pci_read_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_read_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}(hjphhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]j)}j pci_read_romsbc.pci_read_romasbuh1hhjphhhZ/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:49: ./drivers/pci/pci-sysfs.chM1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjphhhjqhM1ubj-)}(h pci_read_romh]j3)}(hjph]h pci_read_rom}(hjqhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjqubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjphhhjqhM1ubjN)}(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}(hj/qhhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj+qubj)}(h h]h }(hj` 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)}(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.chMRhjubjc)}(hhh]j)}(hGpointer to the :c:type:`struct hotplug_slot ` to registerh](hpointer to the }(hj΅hhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hj؅h]hstruct hotplug_slot}(hjڅhhhNhNubah}(h]h ](j&jc-typeeh"]h$]h&]uh1jLhjօubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjj&j& hotplug_slotuh1hhjʅhMRhj΅ubh to register}(hj΅hhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjʅhMRhj˅ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjʅhMRhjubjA)}(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.chMShj ubjc)}(hhh]j)}(hbus this slot is onh]hbus this slot is on}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&hMShj'ubah}(h]h ]h"]h$]h&]uh1jbhj ubeh}(h]h ]h"]h$]h&]uh1j@hj&hMShjubjA)}(h``int devnr`` device number h](jG)}(h ``int devnr``h]jM)}(hjJh]h int devnr}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjHubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMThjDubjc)}(hhh]j)}(h device numberh]h device number}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_hMThj`ubah}(h]h ]h"]h$]h&]uh1jbhjDubeh}(h]h ]h"]h$]h&]uh1j@hj_hMThjubjA)}(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.chMUhj}ubjc)}(hhh]j)}(h!name registered with kobject coreh]h!name registered with kobject core}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMUhjubah}(h]h ]h"]h$]h&]uh1jbhj}ubeh}(h]h ]h"]h$]h&]uh1j@hjhMUhjubjA)}(h-``struct module *owner`` caller module owner h](jG)}(h``struct module *owner``h]jM)}(hjh]hstruct module *owner}(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)}(hcaller module ownerh]hcaller module owner}(hjՆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjцhMVhj҆ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjцhMVhjubjA)}(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.chMWhjubjc)}(hhh]j)}(hcaller module nameh]hcaller module name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj hMWhj ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj hMWhjubeh}(h]h ]h"]h$]h&]uh1j;hjubj)}(h**Description**h]j&)}(hj0h]h Description}(hj2hhhNhNubah}(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.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().}(hjFhhhNhNubah}(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.}(hjUhhhNhNubah}(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&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h، __pci_hp_initialize (C function)c.__pci_hp_initializehNtauh1hhjhhhNhNubh)}(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}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(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}(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}(hj߇hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj܇ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.__pci_hp_initializeasbuh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hsloth]hslot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct pci_bus *bush](jZ)}(hj]h]hstruct}(hj3hhhNhNubah}(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}(hjQhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]jc.__pci_hp_initializeasbuh1hhj/ubj)}(h h]h }(hjohhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj/ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj3)}(hbush]hbus}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(h int devnrh](h)}(hinth]hint}(hjhhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj3)}(hdevnrh]hdevnr}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hconst char *nameh](jZ)}(hjh]hconst}(hj؈hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhjԈubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjԈubh)}(hcharh]hchar}(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)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjԈubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(hstruct module *ownerh](jZ)}(hj]h]hstruct}(hj5hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj1ubj)}(h h]h }(hjBhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubh)}(hhh]j3)}(hmoduleh]hmodule}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjPubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUmodnameN classnameNjj)}j]jc.__pci_hp_initializeasbuh1hhj1ubj)}(h h]h }(hjqhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj1ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj3)}(hownerh]howner}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj1ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubjT)}(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 }(hjΉhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj܉hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hmod_nameh]hmod_name}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjubeh}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhjhMrubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhj|hhhjhMrubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1hhjhMrhjyhhubj)}(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&]uh1jhjyhhhjhMrubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhjhNhNubj)}(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&)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMvhj/ubj<)}(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)}(hjTh]hstruct hotplug_slot *slot}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMshjNubjc)}(hhh]j)}(hIpointer to the :c:type:`struct hotplug_slot ` to initializeh](hpointer to the }(hjmhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjwh]hstruct hotplug_slot}(hjyhhhNhNubah}(h]h ](j&jc-typeeh"]h$]h&]uh1jLhjuubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjj&j& hotplug_slotuh1hhjihMshjmubh to initialize}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjihMshjjubah}(h]h ]h"]h$]h&]uh1jbhjNubeh}(h]h ]h"]h$]h&]uh1j@hjihMshjKubjA)}(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.chMthjubjc)}(hhh]j)}(hbus this slot is onh]hbus this slot is on}(hjɊhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjŊhMthjƊubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjŊhMthjKubjA)}(h``int devnr`` slot number h](jG)}(h ``int devnr``h]jM)}(hjh]h int devnr}(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.chMuhjubjc)}(hhh]j)}(h slot numberh]h slot number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhMuhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMuhjKubjA)}(h7``const char *name`` name registered with kobject core 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&]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}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7hMvhj8ubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hj7hMvhjKubjA)}(h-``struct module *owner`` caller module owner h](jG)}(h``struct module *owner``h]jM)}(hj[h]hstruct module *owner}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjYubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMwhjUubjc)}(hhh]j)}(hcaller module ownerh]hcaller module owner}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjphMwhjqubah}(h]h ]h"]h$]h&]uh1jbhjUubeh}(h]h ]h"]h$]h&]uh1j@hjphMwhjKubjA)}(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}(hjhhhNhNubah}(h]kh ]h"]h$]h&]uh1jhjhMxhjubah}(h]h ]h"]h$]h&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMxhjKubeh}(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&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMzhj/ubj)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMyhj/ubj)}(h0Returns 0 on success or a negative int on error.h]h0Returns 0 on success or a negative int on error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chM~hj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_hp_add (C function) c.pci_hp_addhNtauh1hhjhhhNhNubh)}(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}(hj#hhhNhNubah}(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 }(hj2hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjhhhj1hMubj-)}(h pci_hp_addh]j3)}(h pci_hp_addh]h pci_hp_add}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@ubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhj1hMubjN)}(h(struct hotplug_slot *slot)h]jT)}(hstruct hotplug_slot *sloth](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)}(h hotplug_sloth]h hotplug_slot}(hj~hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjFsb c.pci_hp_addasbuh1hhj\ubj)}(h h]h }(hjhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj3)}(hsloth]hslot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubeh}(h]h ]h"]h$]h&]noemphjKjLuh1jShjXubah}(h]h ]h"]h$]h&]jKjLuh1jMhjhhhj1hMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjhhhj1hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1hhj1hMhjhhubj)}(hhh]j)}(h"publish hotplug slot to user spaceh]h"publish hotplug slot to 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&]uh1jhjhhhj1hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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)}(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.chMhjubjc)}(hhh]j)}(hFpointer to the :c:type:`struct hotplug_slot ` to publishh](hpointer to the }(hj=hhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjGh]hstruct hotplug_slot}(hjIhhhNhNubah}(h]h ](j&jc-typeeh"]h$]h&]uh1jLhjEubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjj&j& hotplug_slotuh1hhj9hMhj=ubh to publish}(hj=hhhNhNubeh}(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**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)}(hjh]hstruct hotplug_slot_ops}(hjhhhNhNubah}(h]h ](j&jc-typeeh"]h$]h&]uh1jLhjubah}(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&]uh1jhjhMhjubj)}(h0Returns 0 on success or a negative int on error.h]h0Returns 0 on success or a negative int on 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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_hp_deregister (C function)c.pci_hp_deregisterhNtauh1hhjhhhNhNubh)}(hhh](h)}(h2void pci_hp_deregister (struct hotplug_slot *slot)h]h)}(h1void pci_hp_deregister(struct hotplug_slot *slot)h](h)}(hvoidh]hvoid}(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-)}(hpci_hp_deregisterh]j3)}(hpci_hp_deregisterh]hpci_hp_deregister}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjhhhjhMubjN)}(h(struct hotplug_slot *slot)h]jT)}(hstruct hotplug_slot *sloth](jZ)}(hj]h]hstruct}(hj6hhhNhNubah}(h]h ]jfah"]h$]h&]uh1jYhj2ubj)}(h h]h }(hjChhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubh)}(hhh]j3)}(h hotplug_sloth]h hotplug_slot}(hjThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjQubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]j)}jjsbc.pci_hp_deregisterasbuh1hhj2ubj)}(h h]h }(hjthhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj3)}(hsloth]hslot}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2ubeh}(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)}(h8deregister a hotplug_slot with the PCI hotplug subsystemh]h8deregister 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjюjjюjjjuh1hhhhjhNhNubj)}(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}(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.chMhjՎubj<)}(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)}(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)}(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 ](j&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&]uh1jbhjubeh}(h]h ]h"]h$]h&]uh1j@hjhMhjubah}(h]h ]h"]h$]h&]uh1j;hjՎubj)}(h**Description**h]j&)}(hjXh]h Description}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjVubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjՎubj)}(hrThe **slot** must have been registered with the pci hotplug subsystem previously with a call to pci_hp_register().h](hThe }(hjnhhhNhNubj&)}(h**slot**h]hslot}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j%hjnubhf must have been registered with the pci hotplug subsystem previously with a call to pci_hp_register().}(hjnhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjՎubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_hp_del (C function) c.pci_hp_delhNtauh1hhjhhhNhNubh)}(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}(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_delh]j3)}(h pci_hp_delh]h pci_hp_del}(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}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjҏsb c.pci_hp_delasbuh1hhjubj)}(h h]h }(hj*hhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj3)}(hsloth]hslot}(hjEhhhNhNubah}(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)}(h&unpublish hotplug slot from user spaceh]h&unpublish hotplug slot from user space}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1hhhhjhNhNubj)}(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]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)}(hHpointer to the :c:type:`struct hotplug_slot ` to unpublishh](hpointer to the }(hjɐhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjӐh]hstruct hotplug_slot}(hjՐhhhNhNubah}(h]h ](j&jc-typeeh"]h$]h&]uh1jLhjѐubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjj&j& hotplug_slotuh1hhjŐhMhjɐubh to unpublish}(hjɐhhhNhNubeh}(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%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.chMhjubj)}(h(Remove a hotplug slot's sysfs interface.h]h*Remove a hotplug slot’s sysfs interface.}(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.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(hhh]h}(h]h ]h"]h$]h&]entries](h،pci_hp_destroy (C function)c.pci_hp_destroyhNtauh1hhjhhhNhNubh)}(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}(hjShhhNhNubah}(h]h ]hah"]h$]h&]uh1hhjOhhhi/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&]uh1hhjOhhhjahMubj-)}(hpci_hp_destroyh]j3)}(hpci_hp_destroyh]hpci_hp_destroy}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjpubah}(h]h ](jFjGeh"]h$]h&]jKjLuh1j,hjOhhhjahMubjN)}(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)}jjvsbc.pci_hp_destroyasbuh1hhjubj)}(h h]h }(hjΑhhhNhNubah}(h]h ]j ah"]h$]h&]uh1hhjubj)}(hjh]h*}(hjܑhhhNhNubah}(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&]jKjLuh1jMhjOhhhjahMubeh}(h]h ]h"]h$]h&]jKjLjuh1hjjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1hhjahMhjHhhubj)}(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&]uh1jhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1hhhhjhNhNubj)}(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&)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j%hj3ubah}(h]h ]h"]h$]h&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhj/ubj<)}(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)}(hjTh]hstruct hotplug_slot *slot}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjRubah}(h]h ]h"]h$]h&]uh1jFhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhjNubjc)}(hhh]j)}(hFpointer to the :c:type:`struct hotplug_slot ` to destroyh](hpointer to the }(hjmhhhNhNubh)}(h,:c:type:`struct hotplug_slot `h]jM)}(hjwh]hstruct hotplug_slot}(hjyhhhNhNubah}(h]h ](j&jc-typeeh"]h$]h&]uh1jLhjuubah}(h]h ]h"]h$]h&]refdocj& refdomainjreftypetype refexplicitrefwarnjj&j& hotplug_slotuh1hhjihMhjmubh to destroy}(hjmhhhNhNubeh}(h]h ]h"]h$]h&]uh1jhjihMhjjubah}(h]h ]h"]h$]h&]uh1jbhjNubeh}(h]h ]h"]h$]h&]uh1j@hjihMhjKubah}(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&]uh1jhi/var/lib/git/docbuild/linux/Documentation/driver-api/pci/pci:58: ./drivers/pci/hotplug/pci_hotplug_core.chMhj/ubj)}(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.}(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/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(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_handlerj error_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}(jjjju nametypes}(jjuh}(jhhhjjjBjGjjj 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/Fj4Fj2Hj7Hj"Jj'Jj%Mj*MjOjOjQjQjTj#TjUjUjWjXjZjZj\j\jb^jg^j_j_j>ajCajbjbjdjdjZfj_fjgjgjijijYkj^kjljljnjnjmpjrpjlrjqrj tjtjujujjwjowjxjxjlzjqzj{j{jn}js}j~j~j߀jj`jejPjUjхjօjjƇj]jbj3j8jjjcjhjnjsjǔj̔jjjijnj0j5jjjj£j_jdjרjܨjjjjjOjTjjjLjQjAjFjajfj,j1jj jjjjjjjjj:j?jjjjj7j<j j%jjj{jj jj jj=jBjjj>jCjBjGjjjjjjjljqjjj"j'jjjjjWj\jjjKjPjujzj j j[ j` j j j\jajjjjjjjFjKjjjTjYjjjjj!j!j?#jD#j(j(j)j)j$+j)+j},j,j.j.jX1j]1j3j3j6j6j}8j8j9j:jS<jX<ja>jf>j@j@jBjBjDjDjEjEjGjGj+Ij0IjJjJjLjLj1Oj6OjQjQjjVjoVjZjZj^j^jbjbj3dj8djejejij#ijjjjjRljWljpjpjujuj)wj.wjxjxj|j|j~j~jMjRjjj؂j݂jwj|jjjjjjjFjKu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.