/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ehci-pci.c | 29 static inline bool is_intel_quark_x1000(struct pci_dev *pdev) in is_intel_quark_x1000() argument 31 return pdev->vendor == PCI_VENDOR_ID_INTEL && in is_intel_quark_x1000() 32 pdev->device == PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC; in is_intel_quark_x1000() 48 static inline bool is_bypassed_id(struct pci_dev *pdev) in is_bypassed_id() argument 50 return !!pci_match_id(bypass_pci_id_table, pdev); in is_bypassed_id() 63 static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev) in ehci_pci_reinit() argument 72 retval = pci_set_mwi(pdev); in ehci_pci_reinit() 77 if (is_intel_quark_x1000(pdev)) { in ehci_pci_reinit() 93 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); in ehci_pci_setup() local 108 switch (pdev in ehci_pci_setup() 356 struct pci_dev *pdev = to_pci_dev(hcd->self.controller); ehci_pci_resume() local 377 ehci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) ehci_pci_probe() argument 384 ehci_pci_remove(struct pci_dev *pdev) ehci_pci_remove() argument [all...] |
H A D | pci-quirks.c | 197 struct pci_dev *pdev = to_pci_dev(dev); in sb800_prefetch() local 199 pci_read_config_word(pdev, 0x50, &misc); in sb800_prefetch() 201 pci_write_config_word(pdev, 0x50, misc & 0xfcff); in sb800_prefetch() 203 pci_write_config_word(pdev, 0x50, misc | 0x0300); in sb800_prefetch() 289 int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev) in usb_hcd_amd_remote_wakeup_quirk() argument 295 dev_dbg(&pdev->dev, "QUIRK: Enable AMD remote wakeup fix\n"); in usb_hcd_amd_remote_wakeup_quirk() 463 static int usb_asmedia_wait_write(struct pci_dev *pdev) in usb_asmedia_wait_write() argument 470 pci_read_config_byte(pdev, ASMT_CONTROL_REG, &value); in usb_asmedia_wait_write() 473 dev_err(&pdev->dev, "%s: check_ready ERROR", __func__); in usb_asmedia_wait_write() 483 dev_warn(&pdev in usb_asmedia_wait_write() 487 usb_asmedia_modifyflowcontrol(struct pci_dev *pdev) usb_asmedia_modifyflowcontrol() argument 553 struct pci_dev *pdev; usb_amd_pt_check_port() local 640 uhci_reset_hc(struct pci_dev *pdev, unsigned long base) uhci_reset_hc() argument 672 uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base) uhci_check_and_reset_hc() argument 717 io_type_enabled(struct pci_dev *pdev, unsigned int mask) io_type_enabled() argument 726 quirk_usb_handoff_uhci(struct pci_dev *pdev) quirk_usb_handoff_uhci() argument 744 mmio_resource_enabled(struct pci_dev *pdev, int idx) mmio_resource_enabled() argument 749 quirk_usb_handoff_ohci(struct pci_dev *pdev) quirk_usb_handoff_ohci() argument 855 ehci_bios_handoff(struct pci_dev *pdev, void __iomem *op_reg_base, u32 cap, u8 offset) ehci_bios_handoff() argument 929 quirk_usb_disable_ehci(struct pci_dev *pdev) quirk_usb_disable_ehci() argument 1143 quirk_usb_handoff_xhci(struct pci_dev *pdev) quirk_usb_handoff_xhci() argument 1246 quirk_usb_early_handoff(struct pci_dev *pdev) quirk_usb_early_handoff() argument [all...] |
/kernel/linux/linux-6.6/drivers/misc/mei/ |
H A D | pci-txe.c | 45 * @pdev: PCI device structure 50 static int mei_txe_probe(struct pci_dev *pdev, const struct pci_device_id *ent) in mei_txe_probe() argument 58 err = pcim_enable_device(pdev); in mei_txe_probe() 60 dev_err(&pdev->dev, "failed to enable pci device.\n"); in mei_txe_probe() 64 pci_set_master(pdev); in mei_txe_probe() 66 err = pcim_iomap_regions(pdev, mask, KBUILD_MODNAME); in mei_txe_probe() 68 dev_err(&pdev->dev, "failed to get pci regions.\n"); in mei_txe_probe() 72 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(36)); in mei_txe_probe() 74 err = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mei_txe_probe() 76 dev_err(&pdev in mei_txe_probe() 167 mei_txe_shutdown(struct pci_dev *pdev) mei_txe_shutdown() argument 192 mei_txe_remove(struct pci_dev *pdev) mei_txe_remove() argument 218 struct pci_dev *pdev = to_pci_dev(device); mei_txe_pci_suspend() local 238 struct pci_dev *pdev = to_pci_dev(device); mei_txe_pci_resume() local 352 struct pci_dev *pdev = to_pci_dev(dev->dev); mei_txe_set_pm_domain() local [all...] |
/kernel/linux/linux-6.6/arch/x86/pci/ |
H A D | sta2x11-fixup.c | 46 static void sta2x11_new_instance(struct pci_dev *pdev) in sta2x11_new_instance() argument 54 instance->bus0 = pdev->subordinate->number + 1; in sta2x11_new_instance() 59 dev_info(&pdev->dev, "Using SWIOTLB (size %i)\n", size); in sta2x11_new_instance() 61 dev_emerg(&pdev->dev, "init swiotlb failed\n"); in sta2x11_new_instance() 70 static struct sta2x11_instance *sta2x11_pdev_to_instance(struct pci_dev *pdev) in sta2x11_pdev_to_instance() argument 76 ep = pdev->bus->number - instance->bus0; in sta2x11_pdev_to_instance() 83 static int sta2x11_pdev_to_ep(struct pci_dev *pdev) in sta2x11_pdev_to_ep() argument 87 instance = sta2x11_pdev_to_instance(pdev); in sta2x11_pdev_to_ep() 91 return pdev->bus->number - instance->bus0; in sta2x11_pdev_to_ep() 95 struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev) in sta2x11_get_instance() argument 102 sta2x11_setup_pdev(struct pci_dev *pdev) sta2x11_setup_pdev() argument 131 sta2x11_map_ep(struct pci_dev *pdev) sta2x11_map_ep() argument 169 sta2x11_pdev_to_mapping(struct pci_dev *pdev) sta2x11_pdev_to_mapping() argument 181 suspend_mapping(struct pci_dev *pdev) suspend_mapping() argument 205 resume_mapping(struct pci_dev *pdev) resume_mapping() argument [all...] |
/kernel/linux/linux-5.10/drivers/dma/dw-edma/ |
H A D | dw-edma-pcie.c | 66 static int dw_edma_pcie_probe(struct pci_dev *pdev, in dw_edma_pcie_probe() argument 70 struct device *dev = &pdev->dev; in dw_edma_pcie_probe() 76 err = pcim_enable_device(pdev); in dw_edma_pcie_probe() 78 pci_err(pdev, "enabling device failed\n"); in dw_edma_pcie_probe() 83 err = pcim_iomap_regions(pdev, BIT(pdata->rg_bar) | in dw_edma_pcie_probe() 86 pci_name(pdev)); in dw_edma_pcie_probe() 88 pci_err(pdev, "eDMA BAR I/O remapping failed\n"); in dw_edma_pcie_probe() 92 pci_set_master(pdev); in dw_edma_pcie_probe() 95 err = pci_set_dma_mask(pdev, DMA_BIT_MASK(64)); in dw_edma_pcie_probe() 97 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MAS in dw_edma_pcie_probe() 208 dw_edma_pcie_remove(struct pci_dev *pdev) dw_edma_pcie_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/ata/ |
H A D | pata_serverworks.c | 70 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in oem_cable() local 72 if (pdev->subsystem_device & (1 << (ap->port_no + 14))) in oem_cable() 105 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in serverworks_cable_detect() local 109 if (cb->device == pdev->device && in serverworks_cable_detect() 110 (cb->subvendor == pdev->subsystem_vendor || in serverworks_cable_detect() 123 * @pdev: PCI device to check 129 static u8 serverworks_is_csb(struct pci_dev *pdev) in serverworks_is_csb() argument 131 switch (pdev->device) { in serverworks_is_csb() 203 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in serverworks_set_piomode() local 206 pci_write_config_byte(pdev, in serverworks_set_piomode() 234 struct pci_dev *pdev = to_pci_dev(ap->host->dev); serverworks_set_dmamode() local 280 serverworks_fixup_osb4(struct pci_dev *pdev) serverworks_fixup_osb4() argument 299 serverworks_fixup_csb(struct pci_dev *pdev) serverworks_fixup_csb() argument 350 serverworks_fixup_ht1000(struct pci_dev *pdev) serverworks_fixup_ht1000() argument 360 serverworks_fixup(struct pci_dev *pdev) serverworks_fixup() argument 386 serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id *id) serverworks_init_one() argument 451 serverworks_reinit_one(struct pci_dev *pdev) serverworks_reinit_one() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptpf_main.c | 69 struct device *dev = &cpt->pdev->dev; in otx_cpt_device_init() 77 pci_read_config_word(cpt->pdev, PCI_SUBSYSTEM_ID, &sdevid); in otx_cpt_device_init() 104 cpt->max_vfs = pci_sriov_get_totalvfs(cpt->pdev); in otx_cpt_device_init() 114 struct device *dev = &cpt->pdev->dev; in otx_cpt_register_interrupts() 120 ret = pci_alloc_irq_vectors(cpt->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx_cpt_register_interrupts() 122 dev_err(&cpt->pdev->dev, in otx_cpt_register_interrupts() 129 ret = request_irq(pci_irq_vector(cpt->pdev, in otx_cpt_register_interrupts() 134 pci_free_irq_vectors(cpt->pdev); in otx_cpt_register_interrupts() 147 free_irq(pci_irq_vector(cpt->pdev, in otx_cpt_unregister_interrupts() 150 pci_free_irq_vectors(cpt->pdev); in otx_cpt_unregister_interrupts() 154 otx_cpt_sriov_configure(struct pci_dev *pdev, int numvfs) otx_cpt_sriov_configure() argument 189 otx_cpt_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent) otx_cpt_probe() argument 266 otx_cpt_remove(struct pci_dev *pdev) otx_cpt_remove() argument [all...] |
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
H A D | cdns3-pci-wrap.c | 43 static struct pci_dev *cdns3_get_second_fun(struct pci_dev *pdev) in cdns3_get_second_fun() argument 53 func = pci_get_device(pdev->vendor, pdev->device, NULL); in cdns3_get_second_fun() 57 if (func->devfn == pdev->devfn) { in cdns3_get_second_fun() 58 func = pci_get_device(pdev->vendor, pdev->device, func); in cdns3_get_second_fun() 71 static int cdns3_pci_probe(struct pci_dev *pdev, in cdns3_pci_probe() argument 84 if (!id || (pdev->devfn != PCI_DEV_FN_HOST_DEVICE && in cdns3_pci_probe() 85 pdev->devfn != PCI_DEV_FN_OTG)) in cdns3_pci_probe() 88 func = cdns3_get_second_fun(pdev); in cdns3_pci_probe() 177 cdns3_pci_remove(struct pci_dev *pdev) cdns3_pci_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/cdns3/ |
H A D | cdns3-pci-wrap.c | 43 static struct pci_dev *cdns3_get_second_fun(struct pci_dev *pdev) in cdns3_get_second_fun() argument 53 func = pci_get_device(pdev->vendor, pdev->device, NULL); in cdns3_get_second_fun() 57 if (func->devfn == pdev->devfn) { in cdns3_get_second_fun() 58 func = pci_get_device(pdev->vendor, pdev->device, func); in cdns3_get_second_fun() 71 static int cdns3_pci_probe(struct pci_dev *pdev, in cdns3_pci_probe() argument 84 if (!id || (pdev->devfn != PCI_DEV_FN_HOST_DEVICE && in cdns3_pci_probe() 85 pdev->devfn != PCI_DEV_FN_OTG)) in cdns3_pci_probe() 88 func = cdns3_get_second_fun(pdev); in cdns3_pci_probe() 177 cdns3_pci_remove(struct pci_dev *pdev) cdns3_pci_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-loongson.c | 48 static int loongson_dwmac_probe(struct pci_dev *pdev, const struct pci_device_id *id) in loongson_dwmac_probe() argument 55 np = dev_of_node(&pdev->dev); in loongson_dwmac_probe() 62 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); in loongson_dwmac_probe() 66 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, in loongson_dwmac_probe() 74 dev_info(&pdev->dev, "Found MDIO subnode\n"); in loongson_dwmac_probe() 78 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), GFP_KERNEL); in loongson_dwmac_probe() 85 ret = pci_enable_device(pdev); in loongson_dwmac_probe() 87 dev_err(&pdev->dev, "%s: ERROR: failed to enable device\n", __func__); in loongson_dwmac_probe() 93 if (pci_resource_len(pdev, i) == 0) in loongson_dwmac_probe() 95 ret = pcim_iomap_regions(pdev, BI in loongson_dwmac_probe() 157 loongson_dwmac_remove(struct pci_dev *pdev) loongson_dwmac_remove() argument 179 struct pci_dev *pdev = to_pci_dev(dev); loongson_dwmac_suspend() local 197 struct pci_dev *pdev = to_pci_dev(dev); loongson_dwmac_resume() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | pci-sriov.c | 146 static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev) in pnv_pci_ioda_fixup_iov_resources() argument 148 struct pnv_phb *phb = pci_bus_to_pnvhb(pdev->bus); in pnv_pci_ioda_fixup_iov_resources() 158 pdev->dev.archdata.iov_data = iov; in pnv_pci_ioda_fixup_iov_resources() 162 res = &pdev->resource[i + PCI_IOV_RESOURCES]; in pnv_pci_ioda_fixup_iov_resources() 166 dev_warn(&pdev->dev, "Don't support SR-IOV with non M64 VF BAR%d: %pR. \n", in pnv_pci_ioda_fixup_iov_resources() 171 vf_bar_sz = pci_iov_resource_size(pdev, i + PCI_IOV_RESOURCES); in pnv_pci_ioda_fixup_iov_resources() 192 pci_err(pdev, "VF BAR%d: %pR can't be mapped in single PE mode\n", in pnv_pci_ioda_fixup_iov_resources() 205 pci_dbg(pdev, " Fixing VF BAR%d: %pR to\n", i, res); in pnv_pci_ioda_fixup_iov_resources() 207 pci_dbg(pdev, " %pR\n", res); in pnv_pci_ioda_fixup_iov_resources() 209 pci_info(pdev, "V in pnv_pci_ioda_fixup_iov_resources() 229 pnv_pci_ioda_fixup_iov(struct pci_dev *pdev) pnv_pci_ioda_fixup_iov() argument 253 pnv_pci_iov_resource_alignment(struct pci_dev *pdev, int resno) pnv_pci_iov_resource_alignment() argument 290 pnv_pci_vf_release_m64(struct pci_dev *pdev, u16 num_vfs) pnv_pci_vf_release_m64() argument 421 pnv_pci_vf_assign_m64(struct pci_dev *pdev, u16 num_vfs) pnv_pci_vf_assign_m64() argument 481 pnv_ioda_release_vf_PE(struct pci_dev *pdev) pnv_ioda_release_vf_PE() argument 597 pnv_pci_sriov_disable(struct pci_dev *pdev) pnv_pci_sriov_disable() argument 620 pnv_ioda_setup_vf_PE(struct pci_dev *pdev, u16 num_vfs) pnv_ioda_setup_vf_PE() argument 680 pnv_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) pnv_pci_sriov_enable() argument 751 pnv_pcibios_sriov_disable(struct pci_dev *pdev) pnv_pcibios_sriov_disable() argument 760 pnv_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) pnv_pcibios_sriov_enable() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/mantis/ |
H A D | mantis_pci.c | 41 struct pci_dev *pdev = mantis->pdev; in mantis_pci_init() local 47 mantis->pdev->bus->number, in mantis_pci_init() 48 PCI_SLOT(mantis->pdev->devfn), in mantis_pci_init() 49 PCI_FUNC(mantis->pdev->devfn)); in mantis_pci_init() 51 err = pci_enable_device(pdev); in mantis_pci_init() 58 err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32)); in mantis_pci_init() 65 pci_set_master(pdev); in mantis_pci_init() 67 if (!request_mem_region(pci_resource_start(pdev, 0), in mantis_pci_init() 68 pci_resource_len(pdev, in mantis_pci_init() 140 struct pci_dev *pdev = mantis->pdev; mantis_pci_exit() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ptp.c | 29 static int enetc_ptp_probe(struct pci_dev *pdev, in enetc_ptp_probe() argument 36 if (pdev->dev.of_node && !of_device_is_available(pdev->dev.of_node)) { in enetc_ptp_probe() 37 dev_info(&pdev->dev, "device is disabled, skipping\n"); in enetc_ptp_probe() 41 err = pci_enable_device_mem(pdev); in enetc_ptp_probe() 43 dev_err(&pdev->dev, "device enable failed\n"); in enetc_ptp_probe() 48 err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in enetc_ptp_probe() 50 err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in enetc_ptp_probe() 52 dev_err(&pdev->dev, in enetc_ptp_probe() 58 err = pci_request_mem_regions(pdev, KBUILD_MODNAM in enetc_ptp_probe() 124 enetc_ptp_remove(struct pci_dev *pdev) enetc_ptp_remove() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ssb/ |
H A D | ssb_driver_gige.h | 55 extern bool pdev_is_ssb_gige_core(struct pci_dev *pdev); 58 static inline struct ssb_gige * pdev_to_ssb_gige(struct pci_dev *pdev) in pdev_to_ssb_gige() argument 60 if (!pdev_is_ssb_gige_core(pdev)) in pdev_to_ssb_gige() 62 return container_of(pdev->bus->ops, struct ssb_gige, pci_ops); in pdev_to_ssb_gige() 66 static inline bool ssb_gige_is_rgmii(struct pci_dev *pdev) in ssb_gige_is_rgmii() argument 68 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_is_rgmii() 73 static inline bool ssb_gige_have_roboswitch(struct pci_dev *pdev) in ssb_gige_have_roboswitch() argument 75 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_have_roboswitch() 83 static inline bool ssb_gige_one_dma_at_once(struct pci_dev *pdev) in ssb_gige_one_dma_at_once() argument 85 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_one_dma_at_once() 93 ssb_gige_must_flush_posted_writes(struct pci_dev *pdev) ssb_gige_must_flush_posted_writes() argument 102 ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) ssb_gige_get_macaddr() argument 113 ssb_gige_get_phyaddr(struct pci_dev *pdev) ssb_gige_get_phyaddr() argument 142 ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev, struct pci_dev *pdev) ssb_gige_pcibios_plat_dev_init() argument 147 ssb_gige_map_irq(struct ssb_device *sdev, const struct pci_dev *pdev) ssb_gige_map_irq() argument 160 pdev_is_ssb_gige_core(struct pci_dev *pdev) pdev_is_ssb_gige_core() argument 164 pdev_to_ssb_gige(struct pci_dev *pdev) pdev_to_ssb_gige() argument 168 ssb_gige_is_rgmii(struct pci_dev *pdev) ssb_gige_is_rgmii() argument 172 ssb_gige_have_roboswitch(struct pci_dev *pdev) ssb_gige_have_roboswitch() argument 176 ssb_gige_one_dma_at_once(struct pci_dev *pdev) ssb_gige_one_dma_at_once() argument 180 ssb_gige_must_flush_posted_writes(struct pci_dev *pdev) ssb_gige_must_flush_posted_writes() argument 184 ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) ssb_gige_get_macaddr() argument 188 ssb_gige_get_phyaddr(struct pci_dev *pdev) ssb_gige_get_phyaddr() argument [all...] |
/kernel/linux/linux-5.10/drivers/pci/ |
H A D | rom.c | 17 * @pdev: PCI device to enable 24 int pci_enable_rom(struct pci_dev *pdev) in pci_enable_rom() argument 26 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_enable_rom() 42 pcibios_resource_to_bus(pdev->bus, ®ion, res); in pci_enable_rom() 43 pci_read_config_dword(pdev, pdev->rom_base_reg, &rom_addr); in pci_enable_rom() 46 pci_write_config_dword(pdev, pdev->rom_base_reg, rom_addr); in pci_enable_rom() 53 * @pdev: PCI device to disable 58 void pci_disable_rom(struct pci_dev *pdev) in pci_disable_rom() argument 83 pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, size_t size) pci_get_rom_size() argument 136 pci_map_rom(struct pci_dev *pdev, size_t *size) pci_map_rom() argument 187 pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom) pci_unmap_rom() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ssb/ |
H A D | ssb_driver_gige.h | 55 extern bool pdev_is_ssb_gige_core(struct pci_dev *pdev); 58 static inline struct ssb_gige * pdev_to_ssb_gige(struct pci_dev *pdev) in pdev_to_ssb_gige() argument 60 if (!pdev_is_ssb_gige_core(pdev)) in pdev_to_ssb_gige() 62 return container_of(pdev->bus->ops, struct ssb_gige, pci_ops); in pdev_to_ssb_gige() 66 static inline bool ssb_gige_is_rgmii(struct pci_dev *pdev) in ssb_gige_is_rgmii() argument 68 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_is_rgmii() 73 static inline bool ssb_gige_have_roboswitch(struct pci_dev *pdev) in ssb_gige_have_roboswitch() argument 75 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_have_roboswitch() 83 static inline bool ssb_gige_one_dma_at_once(struct pci_dev *pdev) in ssb_gige_one_dma_at_once() argument 85 struct ssb_gige *dev = pdev_to_ssb_gige(pdev); in ssb_gige_one_dma_at_once() 93 ssb_gige_must_flush_posted_writes(struct pci_dev *pdev) ssb_gige_must_flush_posted_writes() argument 102 ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) ssb_gige_get_macaddr() argument 113 ssb_gige_get_phyaddr(struct pci_dev *pdev) ssb_gige_get_phyaddr() argument 142 ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev, struct pci_dev *pdev) ssb_gige_pcibios_plat_dev_init() argument 147 ssb_gige_map_irq(struct ssb_device *sdev, const struct pci_dev *pdev) ssb_gige_map_irq() argument 160 pdev_is_ssb_gige_core(struct pci_dev *pdev) pdev_is_ssb_gige_core() argument 164 pdev_to_ssb_gige(struct pci_dev *pdev) pdev_to_ssb_gige() argument 168 ssb_gige_is_rgmii(struct pci_dev *pdev) ssb_gige_is_rgmii() argument 172 ssb_gige_have_roboswitch(struct pci_dev *pdev) ssb_gige_have_roboswitch() argument 176 ssb_gige_one_dma_at_once(struct pci_dev *pdev) ssb_gige_one_dma_at_once() argument 180 ssb_gige_must_flush_posted_writes(struct pci_dev *pdev) ssb_gige_must_flush_posted_writes() argument 184 ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) ssb_gige_get_macaddr() argument 188 ssb_gige_get_phyaddr(struct pci_dev *pdev) ssb_gige_get_phyaddr() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/pci/mantis/ |
H A D | mantis_pci.c | 41 struct pci_dev *pdev = mantis->pdev; in mantis_pci_init() local 47 mantis->pdev->bus->number, in mantis_pci_init() 48 PCI_SLOT(mantis->pdev->devfn), in mantis_pci_init() 49 PCI_FUNC(mantis->pdev->devfn)); in mantis_pci_init() 51 err = pci_enable_device(pdev); in mantis_pci_init() 58 err = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); in mantis_pci_init() 65 pci_set_master(pdev); in mantis_pci_init() 67 if (!request_mem_region(pci_resource_start(pdev, 0), in mantis_pci_init() 68 pci_resource_len(pdev, in mantis_pci_init() 140 struct pci_dev *pdev = mantis->pdev; mantis_pci_exit() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | rom.c | 17 * @pdev: PCI device to enable 24 int pci_enable_rom(struct pci_dev *pdev) in pci_enable_rom() argument 26 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_enable_rom() 42 pcibios_resource_to_bus(pdev->bus, ®ion, res); in pci_enable_rom() 43 pci_read_config_dword(pdev, pdev->rom_base_reg, &rom_addr); in pci_enable_rom() 46 pci_write_config_dword(pdev, pdev->rom_base_reg, rom_addr); in pci_enable_rom() 53 * @pdev: PCI device to disable 58 void pci_disable_rom(struct pci_dev *pdev) in pci_disable_rom() argument 83 pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, size_t size) pci_get_rom_size() argument 136 pci_map_rom(struct pci_dev *pdev, size_t *size) pci_map_rom() argument 187 pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom) pci_unmap_rom() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | vgaarb.h | 29 void vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes); 30 int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible); 31 void vga_put(struct pci_dev *pdev, unsigned int rsrc); 33 void vga_set_default_device(struct pci_dev *pdev); 34 int vga_remove_vgacon(struct pci_dev *pdev); 35 int vga_client_register(struct pci_dev *pdev, 36 unsigned int (*set_decode)(struct pci_dev *pdev, bool state)); 38 static inline void vga_set_legacy_decoding(struct pci_dev *pdev, in vga_set_legacy_decoding() argument 42 static inline int vga_get(struct pci_dev *pdev, unsigned int rsrc, in vga_get() argument 47 static inline void vga_put(struct pci_dev *pdev, unsigne in vga_get() argument 54 vga_set_default_device(struct pci_dev *pdev) vga_set_default_device() argument 57 vga_remove_vgacon(struct pci_dev *pdev) vga_remove_vgacon() argument 61 vga_client_register(struct pci_dev *pdev, unsigned int (*set_decode)(struct pci_dev *pdev, bool state)) vga_client_register() argument 77 vga_get_interruptible(struct pci_dev *pdev, unsigned int rsrc) vga_get_interruptible() argument 92 vga_get_uninterruptible(struct pci_dev *pdev, unsigned int rsrc) vga_get_uninterruptible() argument 98 vga_client_unregister(struct pci_dev *pdev) vga_client_unregister() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | pci-sriov.c | 143 static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev) in pnv_pci_ioda_fixup_iov_resources() argument 145 struct pnv_phb *phb = pci_bus_to_pnvhb(pdev->bus); in pnv_pci_ioda_fixup_iov_resources() 155 pdev->dev.archdata.iov_data = iov; in pnv_pci_ioda_fixup_iov_resources() 159 res = &pdev->resource[i + PCI_IOV_RESOURCES]; in pnv_pci_ioda_fixup_iov_resources() 163 dev_warn(&pdev->dev, "Don't support SR-IOV with non M64 VF BAR%d: %pR. \n", in pnv_pci_ioda_fixup_iov_resources() 168 vf_bar_sz = pci_iov_resource_size(pdev, i + PCI_IOV_RESOURCES); in pnv_pci_ioda_fixup_iov_resources() 189 pci_err(pdev, "VF BAR%d: %pR can't be mapped in single PE mode\n", in pnv_pci_ioda_fixup_iov_resources() 202 pci_dbg(pdev, " Fixing VF BAR%d: %pR to\n", i, res); in pnv_pci_ioda_fixup_iov_resources() 204 pci_dbg(pdev, " %pR\n", res); in pnv_pci_ioda_fixup_iov_resources() 206 pci_info(pdev, "V in pnv_pci_ioda_fixup_iov_resources() 226 pnv_pci_ioda_fixup_iov(struct pci_dev *pdev) pnv_pci_ioda_fixup_iov() argument 247 pnv_pci_iov_resource_alignment(struct pci_dev *pdev, int resno) pnv_pci_iov_resource_alignment() argument 284 pnv_pci_vf_release_m64(struct pci_dev *pdev, u16 num_vfs) pnv_pci_vf_release_m64() argument 415 pnv_pci_vf_assign_m64(struct pci_dev *pdev, u16 num_vfs) pnv_pci_vf_assign_m64() argument 475 pnv_ioda_release_vf_PE(struct pci_dev *pdev) pnv_ioda_release_vf_PE() argument 591 pnv_pci_sriov_disable(struct pci_dev *pdev) pnv_pci_sriov_disable() argument 614 pnv_ioda_setup_vf_PE(struct pci_dev *pdev, u16 num_vfs) pnv_ioda_setup_vf_PE() argument 674 pnv_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) pnv_pci_sriov_enable() argument 745 pnv_pcibios_sriov_disable(struct pci_dev *pdev) pnv_pcibios_sriov_disable() argument 754 pnv_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) pnv_pcibios_sriov_enable() argument [all...] |
/kernel/linux/linux-5.10/drivers/ata/ |
H A D | pata_serverworks.c | 70 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in oem_cable() local 72 if (pdev->subsystem_device & (1 << (ap->port_no + 14))) in oem_cable() 105 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in serverworks_cable_detect() local 109 if (cb->device == pdev->device && in serverworks_cable_detect() 110 (cb->subvendor == pdev->subsystem_vendor || in serverworks_cable_detect() 123 * @pdev: PCI device to check 129 static u8 serverworks_is_csb(struct pci_dev *pdev) in serverworks_is_csb() argument 131 switch (pdev->device) { in serverworks_is_csb() 203 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in serverworks_set_piomode() local 206 pci_write_config_byte(pdev, in serverworks_set_piomode() 234 struct pci_dev *pdev = to_pci_dev(ap->host->dev); serverworks_set_dmamode() local 279 serverworks_fixup_osb4(struct pci_dev *pdev) serverworks_fixup_osb4() argument 298 serverworks_fixup_csb(struct pci_dev *pdev) serverworks_fixup_csb() argument 349 serverworks_fixup_ht1000(struct pci_dev *pdev) serverworks_fixup_ht1000() argument 359 serverworks_fixup(struct pci_dev *pdev) serverworks_fixup() argument 385 serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id *id) serverworks_init_one() argument 450 serverworks_reinit_one(struct pci_dev *pdev) serverworks_reinit_one() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | pci-quirks.c | 197 struct pci_dev *pdev = to_pci_dev(dev); in sb800_prefetch() local 199 pci_read_config_word(pdev, 0x50, &misc); in sb800_prefetch() 201 pci_write_config_word(pdev, 0x50, misc & 0xfcff); in sb800_prefetch() 203 pci_write_config_word(pdev, 0x50, misc | 0x0300); in sb800_prefetch() 287 int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev) in usb_hcd_amd_remote_wakeup_quirk() argument 293 dev_dbg(&pdev->dev, "QUIRK: Enable AMD remote wakeup fix\n"); in usb_hcd_amd_remote_wakeup_quirk() 461 static int usb_asmedia_wait_write(struct pci_dev *pdev) in usb_asmedia_wait_write() argument 468 pci_read_config_byte(pdev, ASMT_CONTROL_REG, &value); in usb_asmedia_wait_write() 471 dev_err(&pdev->dev, "%s: check_ready ERROR", __func__); in usb_asmedia_wait_write() 481 dev_warn(&pdev in usb_asmedia_wait_write() 485 usb_asmedia_modifyflowcontrol(struct pci_dev *pdev) usb_asmedia_modifyflowcontrol() argument 551 struct pci_dev *pdev; usb_amd_pt_check_port() local 638 uhci_reset_hc(struct pci_dev *pdev, unsigned long base) uhci_reset_hc() argument 670 uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base) uhci_check_and_reset_hc() argument 715 io_type_enabled(struct pci_dev *pdev, unsigned int mask) io_type_enabled() argument 724 quirk_usb_handoff_uhci(struct pci_dev *pdev) quirk_usb_handoff_uhci() argument 742 mmio_resource_enabled(struct pci_dev *pdev, int idx) mmio_resource_enabled() argument 747 quirk_usb_handoff_ohci(struct pci_dev *pdev) quirk_usb_handoff_ohci() argument 853 ehci_bios_handoff(struct pci_dev *pdev, void __iomem *op_reg_base, u32 cap, u8 offset) ehci_bios_handoff() argument 927 quirk_usb_disable_ehci(struct pci_dev *pdev) quirk_usb_disable_ehci() argument 1137 quirk_usb_handoff_xhci(struct pci_dev *pdev) quirk_usb_handoff_xhci() argument 1240 quirk_usb_early_handoff(struct pci_dev *pdev) quirk_usb_early_handoff() argument [all...] |
/kernel/linux/linux-6.6/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptpf_main.c | 69 struct device *dev = &cpt->pdev->dev; in otx_cpt_device_init() 77 pci_read_config_word(cpt->pdev, PCI_SUBSYSTEM_ID, &sdevid); in otx_cpt_device_init() 104 cpt->max_vfs = pci_sriov_get_totalvfs(cpt->pdev); in otx_cpt_device_init() 114 struct device *dev = &cpt->pdev->dev; in otx_cpt_register_interrupts() 120 ret = pci_alloc_irq_vectors(cpt->pdev, num_vec, num_vec, PCI_IRQ_MSIX); in otx_cpt_register_interrupts() 122 dev_err(&cpt->pdev->dev, in otx_cpt_register_interrupts() 129 ret = request_irq(pci_irq_vector(cpt->pdev, in otx_cpt_register_interrupts() 134 pci_free_irq_vectors(cpt->pdev); in otx_cpt_register_interrupts() 147 free_irq(pci_irq_vector(cpt->pdev, in otx_cpt_unregister_interrupts() 150 pci_free_irq_vectors(cpt->pdev); in otx_cpt_unregister_interrupts() 154 otx_cpt_sriov_configure(struct pci_dev *pdev, int numvfs) otx_cpt_sriov_configure() argument 189 otx_cpt_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent) otx_cpt_probe() argument 260 otx_cpt_remove(struct pci_dev *pdev) otx_cpt_remove() argument [all...] |
/kernel/linux/linux-5.10/drivers/mcb/ |
H A D | mcb-pci.c | 25 struct pci_dev *pdev = to_pci_dev(dev); in mcb_pci_get_irq() local 27 return pdev->irq; in mcb_pci_get_irq() 30 static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mcb_pci_probe() argument 37 priv = devm_kzalloc(&pdev->dev, sizeof(struct priv), GFP_KERNEL); in mcb_pci_probe() 41 ret = pci_enable_device(pdev); in mcb_pci_probe() 43 dev_err(&pdev->dev, "Failed to enable PCI device\n"); in mcb_pci_probe() 46 pci_set_master(pdev); in mcb_pci_probe() 48 priv->mapbase = pci_resource_start(pdev, 0); in mcb_pci_probe() 50 dev_err(&pdev->dev, "No PCI resource\n"); in mcb_pci_probe() 55 res = devm_request_mem_region(&pdev in mcb_pci_probe() 129 mcb_pci_remove(struct pci_dev *pdev) mcb_pci_remove() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ptp.c | 29 static int enetc_ptp_probe(struct pci_dev *pdev, in enetc_ptp_probe() argument 36 if (pdev->dev.of_node && !of_device_is_available(pdev->dev.of_node)) { in enetc_ptp_probe() 37 dev_info(&pdev->dev, "device is disabled, skipping\n"); in enetc_ptp_probe() 41 err = pci_enable_device_mem(pdev); in enetc_ptp_probe() 43 return dev_err_probe(&pdev->dev, err, "device enable failed\n"); in enetc_ptp_probe() 45 err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in enetc_ptp_probe() 47 dev_err(&pdev->dev, "DMA configuration failed: 0x%x\n", err); in enetc_ptp_probe() 51 err = pci_request_mem_regions(pdev, KBUILD_MODNAME); in enetc_ptp_probe() 53 dev_err(&pdev in enetc_ptp_probe() 117 enetc_ptp_remove(struct pci_dev *pdev) enetc_ptp_remove() argument [all...] |