/linux-master/drivers/mcb/ |
H A D | mcb-pci.c | 25 struct pci_dev *pdev = to_pci_dev(dev); local 27 return pdev->irq; 30 static int mcb_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument 37 priv = devm_kzalloc(&pdev->dev, sizeof(struct priv), GFP_KERNEL); 41 ret = pci_enable_device(pdev); 43 dev_err(&pdev->dev, "Failed to enable PCI device\n"); 46 pci_set_master(pdev); 48 priv->mapbase = pci_resource_start(pdev, 0); 50 dev_err(&pdev->dev, "No PCI resource\n"); 55 res = devm_request_mem_region(&pdev 129 mcb_pci_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/xen/ |
H A D | platform-pci.c | 45 static uint64_t get_callback_via(struct pci_dev *pdev) argument 50 irq = pdev->irq; 54 pin = pdev->pin; 59 ((uint64_t)pci_domain_nr(pdev->bus) << 32) | 60 ((uint64_t)pdev->bus->number << 16) | 61 ((uint64_t)(pdev->devfn & 0xff) << 8) | 70 static int xen_allocate_irq(struct pci_dev *pdev) argument 72 return request_irq(pdev->irq, do_hvm_evtchn_intr, 74 "xen-platform-pci", pdev); 92 static int platform_pci_probe(struct pci_dev *pdev, argument [all...] |
/linux-master/drivers/net/can/esd/ |
H A D | esd_402_pci-core.c | 99 struct pci_dev *pdev = dev_id; local 100 struct pci402_card *card = pci_get_drvdata(pdev); 108 static int pci402_set_msiconfig(struct pci_dev *pdev) argument 110 struct pci402_card *card = pci_get_drvdata(pdev); 121 err = pci_read_config_word(pdev, PCI402_PCICFG_MSICAP + PCI_MSI_FLAGS, &csr); 125 err = pci_read_config_dword(pdev, PCI402_PCICFG_MSICAP + PCI_MSI_ADDRESS_LO, 129 err = pci_read_config_dword(pdev, PCI402_PCICFG_MSICAP + PCI_MSI_ADDRESS_HI, 134 err = pci_read_config_dword(pdev, PCI402_PCICFG_MSICAP + PCI_MSI_DATA_64, 158 pci_warn(pdev, "Error while setting MSI configuration:\n" 165 static int pci402_init_card(struct pci_dev *pdev) argument 214 pci402_init_interrupt(struct pci_dev *pdev) argument 250 pci402_finish_interrupt(struct pci_dev *pdev) argument 265 pci402_init_dma(struct pci_dev *pdev) argument 300 pci402_finish_dma(struct pci_dev *pdev) argument 336 pci402_init_cores(struct pci_dev *pdev) argument 408 pci402_finish_cores(struct pci_dev *pdev) argument 417 pci402_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument 480 pci402_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/arch/x86/pci/ |
H A D | sta2x11-fixup.c | 47 static void sta2x11_new_instance(struct pci_dev *pdev) argument 55 instance->bus0 = pdev->subordinate->number + 1; 60 dev_info(&pdev->dev, "Using SWIOTLB (size %i)\n", size); 62 dev_emerg(&pdev->dev, "init swiotlb failed\n"); 71 static struct sta2x11_instance *sta2x11_pdev_to_instance(struct pci_dev *pdev) argument 77 ep = pdev->bus->number - instance->bus0; 84 static int sta2x11_pdev_to_ep(struct pci_dev *pdev) argument 88 instance = sta2x11_pdev_to_instance(pdev); 92 return pdev->bus->number - instance->bus0; 96 struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev) argument 103 sta2x11_setup_pdev(struct pci_dev *pdev) argument 132 sta2x11_map_ep(struct pci_dev *pdev) argument 170 sta2x11_pdev_to_mapping(struct pci_dev *pdev) argument 182 suspend_mapping(struct pci_dev *pdev) argument 206 resume_mapping(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/edac/ |
H A D | highbank_l2_edac.c | 48 static int highbank_l2_err_probe(struct platform_device *pdev) argument 62 dci->dev = &pdev->dev; 63 platform_set_drvdata(pdev, dci); 65 if (!devres_open_group(&pdev->dev, NULL, GFP_KERNEL)) 68 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); 70 dev_err(&pdev->dev, "Unable to get mem resource\n"); 75 if (!devm_request_mem_region(&pdev->dev, r->start, 76 resource_size(r), dev_name(&pdev->dev))) { 77 dev_err(&pdev->dev, "Error while requesting mem region\n"); 82 drvdata->base = devm_ioremap(&pdev 121 highbank_l2_err_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/crypto/intel/qat/qat_420xx/ |
H A D | adf_drv.c | 33 static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument 43 if (num_possible_nodes() > 1 && dev_to_node(&pdev->dev) < 0) { 49 dev_err(&pdev->dev, "Invalid NUMA configuration.\n"); 53 accel_dev = devm_kzalloc(&pdev->dev, sizeof(*accel_dev), GFP_KERNEL); 59 accel_pci_dev->pci_dev = pdev; 66 dev_err(&pdev->dev, "Failed to add new accelerator device.\n"); 72 hw_data = devm_kzalloc(&pdev->dev, sizeof(*hw_data), GFP_KERNEL); 81 pci_read_config_byte(pdev, PCI_REVISION_ID, &accel_pci_dev->revid); 82 pci_read_config_dword(pdev, ADF_GEN4_FUSECTL4_OFFSET, &hw_data->fuses); 91 dev_err(&pdev 172 adf_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/crypto/intel/qat/qat_4xxx/ |
H A D | adf_drv.c | 35 static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument 45 if (num_possible_nodes() > 1 && dev_to_node(&pdev->dev) < 0) { 51 dev_err(&pdev->dev, "Invalid NUMA configuration.\n"); 55 accel_dev = devm_kzalloc(&pdev->dev, sizeof(*accel_dev), GFP_KERNEL); 61 accel_pci_dev->pci_dev = pdev; 68 dev_err(&pdev->dev, "Failed to add new accelerator device.\n"); 74 hw_data = devm_kzalloc(&pdev->dev, sizeof(*hw_data), GFP_KERNEL); 83 pci_read_config_byte(pdev, PCI_REVISION_ID, &accel_pci_dev->revid); 84 pci_read_config_dword(pdev, ADF_GEN4_FUSECTL4_OFFSET, &hw_data->fuses); 93 dev_err(&pdev 174 adf_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/uio/ |
H A D | uio_pci_generic.c | 33 struct pci_dev *pdev; member in struct:uio_pci_generic_dev 54 pci_clear_master(gdev->pdev); 64 if (!pci_check_and_mask_intx(gdev->pdev)) 71 static int probe(struct pci_dev *pdev, argument 79 err = pcim_enable_device(pdev); 81 dev_err(&pdev->dev, "%s: pci_enable_device failed: %d\n", 86 if (pdev->irq && !pci_intx_mask_supported(pdev)) 89 gdev = devm_kzalloc(&pdev->dev, sizeof(struct uio_pci_generic_dev), GFP_KERNEL); 96 gdev->pdev [all...] |
/linux-master/drivers/usb/gadget/udc/cdns2/ |
H A D | cdns2-gadget.c | 74 static int cdns2_get_dma_pos(struct cdns2_device *pdev, argument 79 dma_index = readl(&pdev->adma_regs->ep_traddr) - pep->ring.dma; 90 void cdns2_select_ep(struct cdns2_device *pdev, u32 ep) argument 92 if (pdev->selected_ep == ep) 95 pdev->selected_ep = ep; 96 writel(ep, &pdev->adma_regs->ep_sel); 109 struct cdns2_device *pdev = pep->pdev; local 113 dma_pool_free(pdev->eps_dma_pool, ring->trbs, ring->dma); 121 struct cdns2_device *pdev local 155 struct cdns2_device *pdev = pep->pdev; local 205 cdns2_enable_l1(struct cdns2_device *pdev, int enable) argument 215 cdns2_get_speed(struct cdns2_device *pdev) argument 241 struct cdns2_device *pdev = pep->pdev; local 283 struct cdns2_device *pdev = pep->pdev; local 302 cdns2_wa1_tray_restore_cycle_bit(struct cdns2_device *pdev, struct cdns2_endpoint *pep) argument 315 cdns2_prepare_ring(struct cdns2_device *pdev, struct cdns2_endpoint *pep, int num_trbs) argument 471 cdsn2_isoc_burst_opt(struct cdns2_device *pdev) argument 688 cdns2_set_drdy(struct cdns2_device *pdev, struct cdns2_endpoint *pep) argument 711 cdns2_prepare_first_isoc_transfer(struct cdns2_device *pdev, struct cdns2_endpoint *pep) argument 764 struct cdns2_device *pdev = pep->pdev; local 821 cdns2_start_all_request(struct cdns2_device *pdev, struct cdns2_endpoint *pep) argument 881 struct cdns2_device *pdev = pep->pdev; local 949 cdns2_skip_isoc_td(struct cdns2_device *pdev, struct cdns2_endpoint *pep, struct cdns2_request *preq) argument 971 cdns2_transfer_completed(struct cdns2_device *pdev, struct cdns2_endpoint *pep) argument 1042 cdns2_wakeup(struct cdns2_device *pdev) argument 1053 struct cdns2_device *pdev = pep->pdev; local 1074 struct cdns2_device *pdev = pep->pdev; local 1163 cdns2_disconnect_gadget(struct cdns2_device *pdev) argument 1171 struct cdns2_device *pdev = data; local 1209 cdns2_thread_usb_irq_handler(struct cdns2_device *pdev) argument 1290 struct cdns2_device *pdev = data; local 1340 cdns2_eps_onchip_buffer_init(struct cdns2_device *pdev) argument 1414 struct cdns2_device *pdev = pep->pdev; local 1532 struct cdns2_device *pdev; local 1615 struct cdns2_device *pdev; local 1672 struct cdns2_device *pdev = pep->pdev; local 1701 struct cdns2_device *pdev; local 1822 cdns2_halt_endpoint(struct cdns2_device *pdev, struct cdns2_endpoint *pep, int value) argument 1888 struct cdns2_device *pdev = pep->pdev; local 1923 cdns2_find_available_ep(struct cdns2_device *pdev, struct usb_endpoint_descriptor *desc) argument 1965 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); local 2001 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); local 2008 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); local 2021 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); local 2031 cdns2_quiesce(struct cdns2_device *pdev) argument 2044 cdns2_gadget_config(struct cdns2_device *pdev) argument 2058 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); local 2086 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); local 2129 struct cdns2_device *pdev = gadget_to_cdns2_device(gadget); local 2167 cdns2_free_all_eps(struct cdns2_device *pdev) argument 2176 cdns2_init_eps(struct cdns2_device *pdev) argument 2250 cdns2_gadget_start(struct cdns2_device *pdev) argument 2379 cdns2_gadget_suspend(struct cdns2_device *pdev) argument 2400 cdns2_gadget_resume(struct cdns2_device *pdev, bool hibernated) argument 2421 cdns2_gadget_remove(struct cdns2_device *pdev) argument 2434 cdns2_gadget_init(struct cdns2_device *pdev) argument [all...] |
/linux-master/drivers/char/hw_random/ |
H A D | cavium-rng.c | 23 static int cavium_rng_probe(struct pci_dev *pdev, argument 29 rng = devm_kzalloc(&pdev->dev, sizeof(*rng), GFP_KERNEL); 34 rng->control_status = pcim_iomap(pdev, 0, 0); 36 dev_err(&pdev->dev, 45 pci_set_drvdata(pdev, rng); 48 iov_err = pci_enable_sriov(pdev, 1); 52 dev_err(&pdev->dev, 62 static void cavium_rng_remove(struct pci_dev *pdev) argument 66 rng = pci_get_drvdata(pdev); 69 pci_disable_sriov(pdev); [all...] |
/linux-master/drivers/net/can/ctucanfd/ |
H A D | ctucanfd_platform.c | 33 struct platform_device *pdev = container_of(dev, struct platform_device, local 36 platform_set_drvdata(pdev, ndev); 41 * @pdev: Handle to the platform device structure 48 static int ctucan_platform_probe(struct platform_device *pdev) argument 50 struct device *dev = &pdev->dev; 57 addr = devm_platform_ioremap_resource(pdev, 0); 62 irq = platform_get_irq(pdev, 0); 76 platform_set_drvdata(pdev, NULL); 84 * @pdev: Handle to the platform device structure 89 static void ctucan_platform_remove(struct platform_device *pdev) argument [all...] |
/linux-master/include/trace/events/ |
H A D | pwc.h | 12 TP_PROTO(struct urb *urb, struct pwc_device *pdev), 13 TP_ARGS(urb, pdev), 20 __string(name, pdev->v4l2_dev.name) 24 __entry->fbuf = pdev->fill_buf; 27 __entry->fbuf__filled = (pdev->fill_buf 28 ? pdev->fill_buf->filled : 0); 29 __assign_str(name, pdev->v4l2_dev.name); 41 TP_PROTO(struct urb *urb, struct pwc_device *pdev), 42 TP_ARGS(urb, pdev), 47 __string(name, pdev [all...] |
/linux-master/drivers/ata/ |
H A D | pata_rz1000.c | 63 static int rz1000_fifo_disable(struct pci_dev *pdev) argument 67 if (pci_read_config_word(pdev, 0x40, ®) != 0) 70 if (pci_write_config_word(pdev, 0x40, reg) != 0) 72 dev_info(&pdev->dev, "disabled chipset readahead.\n"); 78 * @pdev: PCI device to register 79 * @ent: Entry in rz1000_pci_tbl matching with @pdev 86 static int rz1000_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) argument 95 ata_print_version_once(&pdev->dev, DRV_VERSION); 97 if (rz1000_fifo_disable(pdev) == 0) 98 return ata_pci_sff_init_one(pdev, pp 106 rz1000_reinit_one(struct pci_dev *pdev) argument [all...] |
H A D | pata_serverworks.c | 70 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 72 if (pdev->subsystem_device & (1 << (ap->port_no + 14))) 105 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 109 if (cb->device == pdev->device && 110 (cb->subvendor == pdev->subsystem_vendor || 123 * @pdev: PCI device to check 129 static u8 serverworks_is_csb(struct pci_dev *pdev) argument 131 switch (pdev->device) { 203 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 206 pci_write_config_byte(pdev, 234 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 280 serverworks_fixup_osb4(struct pci_dev *pdev) argument 299 serverworks_fixup_csb(struct pci_dev *pdev) argument 350 serverworks_fixup_ht1000(struct pci_dev *pdev) argument 360 serverworks_fixup(struct pci_dev *pdev) argument 386 serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id *id) argument 451 serverworks_reinit_one(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/misc/eeprom/ |
H A D | idt_89hpesx.c | 255 * @pdev: Pointer to the driver data 258 static int idt_smb_write_byte(struct idt_89hpesx_dev *pdev, argument 275 sts = idt_smb_safe(write_byte, pdev->client, ccode, 287 * @pdev: Pointer to the driver data 290 static int idt_smb_read_byte(struct idt_89hpesx_dev *pdev, argument 307 sts = idt_smb_safe(read_byte, pdev->client, ccode); 320 * @pdev: Pointer to the driver data 323 static int idt_smb_write_word(struct idt_89hpesx_dev *pdev, argument 343 sts = idt_smb_safe(write_word, pdev->client, ccode, 357 sts = idt_smb_safe(write_byte, pdev 372 idt_smb_read_word(struct idt_89hpesx_dev *pdev, struct idt_smb_seq *seq) argument 423 idt_smb_write_block(struct idt_89hpesx_dev *pdev, const struct idt_smb_seq *seq) argument 446 idt_smb_read_block(struct idt_89hpesx_dev *pdev, struct idt_smb_seq *seq) argument 476 idt_smb_write_i2c_block(struct idt_89hpesx_dev *pdev, const struct idt_smb_seq *seq) argument 506 idt_smb_read_i2c_block(struct idt_89hpesx_dev *pdev, struct idt_smb_seq *seq) argument 544 idt_eeprom_read_byte(struct idt_89hpesx_dev *pdev, u16 memaddr, u8 *data) argument 616 idt_eeprom_write(struct idt_89hpesx_dev *pdev, u16 memaddr, u16 len, const u8 *data) argument 682 idt_eeprom_read(struct idt_89hpesx_dev *pdev, u16 memaddr, u16 len, u8 *buf) argument 718 idt_csr_write(struct idt_89hpesx_dev *pdev, u16 csraddr, const u32 data) argument 784 idt_csr_read(struct idt_89hpesx_dev *pdev, u16 csraddr, u32 *data) argument 853 struct idt_89hpesx_dev *pdev; local 877 struct idt_89hpesx_dev *pdev; local 906 struct idt_89hpesx_dev *pdev = filep->private_data; local 993 struct idt_89hpesx_dev *pdev = filep->private_data; local 1041 idt_set_defval(struct idt_89hpesx_dev *pdev) argument 1081 idt_get_fw_data(struct idt_89hpesx_dev *pdev) argument 1136 struct idt_89hpesx_dev *pdev; local 1170 idt_free_pdev(struct idt_89hpesx_dev *pdev) argument 1181 idt_set_smbus_ops(struct idt_89hpesx_dev *pdev) argument 1245 idt_check_dev(struct idt_89hpesx_dev *pdev) argument 1275 idt_create_sysfs_files(struct idt_89hpesx_dev *pdev) argument 1315 idt_remove_sysfs_files(struct idt_89hpesx_dev *pdev) argument 1332 idt_create_dbgfs_files(struct idt_89hpesx_dev *pdev) argument 1350 idt_remove_dbgfs_files(struct idt_89hpesx_dev *pdev) argument 1361 struct idt_89hpesx_dev *pdev; local 1400 struct idt_89hpesx_dev *pdev = i2c_get_clientdata(client); local [all...] |
/linux-master/drivers/spi/ |
H A D | spi-dw-pci.c | 82 static int dw_spi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument 89 ret = pcim_enable_device(pdev); 93 dws = devm_kzalloc(&pdev->dev, sizeof(*dws), GFP_KERNEL); 98 dws->paddr = pci_resource_start(pdev, pci_bar); 99 pci_set_master(pdev); 101 ret = pcim_iomap_regions(pdev, 1 << pci_bar, pci_name(pdev)); 105 ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); 109 dws->regs = pcim_iomap_table(pdev)[pci_bar]; 110 dws->irq = pci_irq_vector(pdev, 153 dw_spi_pci_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/usb/cdns3/ |
H A D | cdns3-pci-wrap.c | 43 static struct pci_dev *cdns3_get_second_fun(struct pci_dev *pdev) argument 53 func = pci_get_device(pdev->vendor, pdev->device, NULL); 57 if (func->devfn == pdev->devfn) { 58 func = pci_get_device(pdev->vendor, pdev->device, func); 71 static int cdns3_pci_probe(struct pci_dev *pdev, argument 84 if (!id || (pdev->devfn != PCI_DEV_FN_HOST_DEVICE && 85 pdev->devfn != PCI_DEV_FN_OTG)) 88 func = cdns3_get_second_fun(pdev); 177 cdns3_pci_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/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) argument 55 np = dev_of_node(&pdev->dev); 62 plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL); 66 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, 74 dev_info(&pdev->dev, "Found MDIO subnode\n"); 78 plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg), GFP_KERNEL); 85 ret = pci_enable_device(pdev); 87 dev_err(&pdev->dev, "%s: ERROR: failed to enable device\n", __func__); 93 if (pci_resource_len(pdev, i) == 0) 95 ret = pcim_iomap_regions(pdev, BI 157 loongson_dwmac_remove(struct pci_dev *pdev) argument 179 struct pci_dev *pdev = to_pci_dev(dev); local 197 struct pci_dev *pdev = to_pci_dev(dev); local [all...] |
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | pci-sriov.c | 143 static void pnv_pci_ioda_fixup_iov_resources(struct pci_dev *pdev) argument 145 struct pnv_phb *phb = pci_bus_to_pnvhb(pdev->bus); 155 pdev->dev.archdata.iov_data = iov; 159 res = &pdev->resource[i + PCI_IOV_RESOURCES]; 163 dev_warn(&pdev->dev, "Don't support SR-IOV with non M64 VF BAR%d: %pR. \n", 168 vf_bar_sz = pci_iov_resource_size(pdev, i + PCI_IOV_RESOURCES); 189 pci_err(pdev, "VF BAR%d: %pR can't be mapped in single PE mode\n", 202 pci_dbg(pdev, " Fixing VF BAR%d: %pR to\n", i, res); 204 pci_dbg(pdev, " %pR\n", res); 206 pci_info(pdev, "V 226 pnv_pci_ioda_fixup_iov(struct pci_dev *pdev) argument 247 pnv_pci_iov_resource_alignment(struct pci_dev *pdev, int resno) argument 284 pnv_pci_vf_release_m64(struct pci_dev *pdev, u16 num_vfs) argument 415 pnv_pci_vf_assign_m64(struct pci_dev *pdev, u16 num_vfs) argument 475 pnv_ioda_release_vf_PE(struct pci_dev *pdev) argument 591 pnv_pci_sriov_disable(struct pci_dev *pdev) argument 614 pnv_ioda_setup_vf_PE(struct pci_dev *pdev, u16 num_vfs) argument 674 pnv_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) argument 745 pnv_pcibios_sriov_disable(struct pci_dev *pdev) argument 754 pnv_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) argument [all...] |
/linux-master/arch/mips/pci/ |
H A D | fixup-malta.c | 68 static void malta_piix_func0_fixup(struct pci_dev *pdev) argument 84 pci_read_config_byte(pdev, PIIX4_FUNC0_PIRQRC+i, ®_val); 93 if (PCI_SLOT(pdev->devfn) == 10) { 98 pci_read_config_byte(pdev, PIIX4_FUNC0_TOM, ®_val); 99 pci_write_config_byte(pdev, PIIX4_FUNC0_TOM, reg_val | 104 pci_read_config_dword(pdev, PIIX4_FUNC0_GENCFG, ®_val32); 105 pci_write_config_dword(pdev, PIIX4_FUNC0_GENCFG, 109 pci_read_config_byte(pdev, PIIX4_FUNC0_SERIRQC, ®_val); 111 pci_write_config_byte(pdev, PIIX4_FUNC0_SERIRQC, reg_val); 114 pci_read_config_word(pdev, PCI_COMMAN 122 malta_piix_func1_fixup(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/net/ethernet/cadence/ |
H A D | macb_pci.c | 28 static int macb_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument 37 err = pcim_enable_device(pdev); 39 dev_err(&pdev->dev, "Enabling PCI device has failed: %d", err); 43 pci_set_master(pdev); 47 res[0].start = pci_resource_start(pdev, 0); 48 res[0].end = pci_resource_end(pdev, 0); 51 res[1].start = pci_irq_vector(pdev, 0); 55 dev_info(&pdev->dev, "EMAC physical base addr: %pa\n", 62 plat_data.pclk = clk_register_fixed_rate(&pdev->dev, "pclk", NULL, 0, 69 plat_data.hclk = clk_register_fixed_rate(&pdev 109 macb_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/extcon/ |
H A D | extcon-max3355.c | 54 static int max3355_probe(struct platform_device *pdev) argument 60 data = devm_kzalloc(&pdev->dev, sizeof(struct max3355_data), 65 gpiod = devm_gpiod_get(&pdev->dev, "id", GPIOD_IN); 67 dev_err(&pdev->dev, "failed to get ID_OUT GPIO\n"); 72 gpiod = devm_gpiod_get(&pdev->dev, "maxim,shdn", GPIOD_OUT_HIGH); 74 dev_err(&pdev->dev, "failed to get SHDN# GPIO\n"); 79 data->edev = devm_extcon_dev_allocate(&pdev->dev, max3355_cable); 81 dev_err(&pdev->dev, "failed to allocate extcon device\n"); 85 err = devm_extcon_dev_register(&pdev->dev, data->edev); 87 dev_err(&pdev 115 max3355_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/dma/hsu/ |
H A D | pci.c | 53 static int hsu_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument 55 struct device *dev = &pdev->dev; 59 ret = pcim_enable_device(pdev); 63 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); 65 dev_err(&pdev->dev, "I/O memory remapping failed\n"); 69 pci_set_master(pdev); 70 pci_try_set_mwi(pdev); 72 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); 76 chip = devm_kzalloc(&pdev [all...] |
/linux-master/drivers/thermal/ |
H A D | max77620_thermal.c | 86 static int max77620_thermal_probe(struct platform_device *pdev) argument 91 mtherm = devm_kzalloc(&pdev->dev, sizeof(*mtherm), GFP_KERNEL); 95 mtherm->irq_tjalarm1 = platform_get_irq(pdev, 0); 96 mtherm->irq_tjalarm2 = platform_get_irq(pdev, 1); 98 dev_err(&pdev->dev, "Alarm irq number not available\n"); 102 mtherm->dev = &pdev->dev; 103 mtherm->rmap = dev_get_regmap(pdev->dev.parent, NULL); 105 dev_err(&pdev->dev, "Failed to get parent regmap\n"); 113 device_set_of_node_from_dev(&pdev->dev, pdev [all...] |
/linux-master/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptpf_main.c | 69 struct device *dev = &cpt->pdev->dev; 77 pci_read_config_word(cpt->pdev, PCI_SUBSYSTEM_ID, &sdevid); 104 cpt->max_vfs = pci_sriov_get_totalvfs(cpt->pdev); 114 struct device *dev = &cpt->pdev->dev; 120 ret = pci_alloc_irq_vectors(cpt->pdev, num_vec, num_vec, PCI_IRQ_MSIX); 122 dev_err(&cpt->pdev->dev, 129 ret = request_irq(pci_irq_vector(cpt->pdev, 134 pci_free_irq_vectors(cpt->pdev); 147 free_irq(pci_irq_vector(cpt->pdev, 150 pci_free_irq_vectors(cpt->pdev); 154 otx_cpt_sriov_configure(struct pci_dev *pdev, int numvfs) argument 189 otx_cpt_probe(struct pci_dev *pdev, const struct pci_device_id __always_unused *ent) argument 260 otx_cpt_remove(struct pci_dev *pdev) argument [all...] |