/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | pci.c | 63 static struct mt7915_hif *mt7915_pci_init_hif2(struct pci_dev *pdev) argument 78 pcim_iomap_table(pdev)[0] + MT_PCIE_RECOG_ID); 83 static int mt7915_pci_hif2_probe(struct pci_dev *pdev) argument 87 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); 91 hif->dev = &pdev->dev; 92 hif->regs = pcim_iomap_table(pdev)[0]; 93 hif->irq = pdev->irq; 97 pci_set_drvdata(pdev, hif); 102 static int mt7915_pci_probe(struct pci_dev *pdev, argument 111 ret = pcim_enable_device(pdev); 202 mt7915_hif_remove(struct pci_dev *pdev) argument 209 mt7915_pci_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/ata/ |
H A D | pata_cmd640.c | 55 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 101 pci_read_config_byte(pdev, arttim, ®); 104 pci_write_config_byte(pdev, arttim, reg); 107 pci_write_config_byte(pdev, arttim + 1, (t.active << 4) | t.recover); 112 pci_read_config_byte(pdev, ARTIM23, ®); 115 pci_write_config_byte(pdev, ARTIM23, reg); 133 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 137 pci_write_config_byte(pdev, DRWTIM23, timing->reg58[adev->devno]); 153 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 156 timing = devm_kzalloc(&pdev 166 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 190 cmd640_hardware_init(struct pci_dev *pdev) argument 216 cmd640_init_one(struct pci_dev *pdev, const struct pci_device_id *id) argument 236 cmd640_reinit_one(struct pci_dev *pdev) argument [all...] |
H A D | sata_sis.c | 49 static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); 102 struct pci_dev *pdev = to_pci_dev(ap->host->dev); local 107 switch (pdev->device) { 110 pci_read_config_byte(pdev, SIS_PMR, &pmr); 131 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); local 137 pci_read_config_dword(pdev, cfg_addr, val); 144 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); local 147 pci_write_config_dword(pdev, cfg_addr, val); 181 static int sis_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) argument 191 ata_print_version_once(&pdev [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | pci.c | 22 static int mt7615_pci_probe(struct pci_dev *pdev, argument 28 ret = pcim_enable_device(pdev); 32 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); 36 pci_set_master(pdev); 38 ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); 42 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); 46 mt76_pci_disable_aspm(pdev); 49 ret = mt7615_mmio_probe(&pdev->dev, pcim_iomap_table(pdev)[ 61 mt7615_pci_remove(struct pci_dev *pdev) argument 72 mt7615_pci_suspend(struct pci_dev *pdev, pm_message_t state) argument 139 mt7615_pci_resume(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/net/can/c_can/ |
H A D | c_can_pci.c | 115 static int c_can_pci_probe(struct pci_dev *pdev, argument 124 ret = pci_enable_device(pdev); 126 dev_err(&pdev->dev, "pci_enable_device FAILED\n"); 130 ret = pci_request_regions(pdev, KBUILD_MODNAME); 132 dev_err(&pdev->dev, "pci_request_regions FAILED\n"); 136 ret = pci_enable_msi(pdev); 138 dev_info(&pdev->dev, "MSI enabled\n"); 139 pci_set_master(pdev); 142 addr = pci_iomap(pdev, c_can_pci_data->bar, 143 pci_resource_len(pdev, c_can_pci_dat 237 c_can_pci_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/mtd/nand/raw/bcm47xxnflash/ |
H A D | main.c | 22 static int bcm47xxnflash_probe(struct platform_device *pdev) argument 24 struct bcma_nflash *nflash = dev_get_platdata(&pdev->dev); 29 b47n = devm_kzalloc(&pdev->dev, sizeof(*b47n), GFP_KERNEL); 35 mtd->dev.parent = &pdev->dev; 49 platform_set_drvdata(pdev, b47n); 60 static void bcm47xxnflash_remove(struct platform_device *pdev) argument 62 struct bcm47xxnflash *nflash = platform_get_drvdata(pdev);
|
/linux-master/drivers/char/hw_random/ |
H A D | cn10k-rng.c | 33 struct pci_dev *pdev; member in struct:cn10k_rng 46 static bool cn10k_is_extended_trng_regs_supported(struct pci_dev *pdev) argument 49 if ((pdev->subsystem_device == PCI_SUBSYS_DEVID_CN10K_A_RNG) && 50 (!pdev->revision || (pdev->revision & 0xff) == 0x50 || 51 (pdev->revision & 0xff) == 0x51)) 55 if ((pdev->subsystem_device == PCI_SUBSYS_DEVID_CNF10K_A_RNG) && 56 (!pdev->revision || (pdev->revision & 0xff) == 0x60 || 57 (pdev 177 cn10k_rng_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument [all...] |
/linux-master/drivers/base/test/ |
H A D | platform-device-test.c | 57 struct platform_device *pdev; local 61 pdev = platform_device_alloc(DEVICE_NAME, PLATFORM_DEVID_NONE); 62 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev); 64 ret = platform_device_add(pdev); 67 priv->dev = &pdev->dev; 72 platform_device_unregister(pdev); 86 struct platform_device *pdev; local 90 pdev = platform_device_alloc(DEVICE_NAME, PLATFORM_DEVID_NONE); 91 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, pdev); 93 ret = platform_device_add(pdev); 110 fake_probe(struct platform_device *pdev) argument 133 struct platform_device *pdev; local 172 struct platform_device *pdev; local [all...] |
/linux-master/drivers/leds/ |
H A D | leds-ip30.c | 28 static int ip30led_create(struct platform_device *pdev, int num) argument 32 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); 36 data->reg = devm_platform_ioremap_resource(pdev, num); 55 return devm_led_classdev_register(&pdev->dev, &data->cdev); 58 static int ip30led_probe(struct platform_device *pdev) argument 62 ret = ip30led_create(pdev, IP30_LED_SYSTEM); 66 return ip30led_create(pdev, IP30_LED_FAULT);
|
H A D | leds-wrap.c | 24 static struct platform_device *pdev; variable in typeref:struct:platform_device 72 static int wrap_led_probe(struct platform_device *pdev) argument 76 ret = devm_led_classdev_register(&pdev->dev, &wrap_power_led); 80 ret = devm_led_classdev_register(&pdev->dev, &wrap_error_led); 84 return devm_led_classdev_register(&pdev->dev, &wrap_extra_led); 107 pdev = platform_device_register_simple(DRVNAME, -1, NULL, 0); 108 if (IS_ERR(pdev)) { 109 ret = PTR_ERR(pdev); 120 platform_device_unregister(pdev);
|
/linux-master/drivers/power/reset/ |
H A D | nvmem-reboot-mode.c | 34 static int nvmem_reboot_mode_probe(struct platform_device *pdev) argument 39 nvmem_rbm = devm_kzalloc(&pdev->dev, sizeof(*nvmem_rbm), GFP_KERNEL); 43 nvmem_rbm->reboot.dev = &pdev->dev; 46 nvmem_rbm->cell = devm_nvmem_cell_get(&pdev->dev, "reboot-mode"); 48 return dev_err_probe(&pdev->dev, PTR_ERR(nvmem_rbm->cell), 52 ret = devm_reboot_mode_register(&pdev->dev, &nvmem_rbm->reboot); 54 dev_err(&pdev->dev, "can't register reboot mode\n");
|
/linux-master/drivers/usb/host/ |
H A D | pci-quirks.c | 199 struct pci_dev *pdev = to_pci_dev(dev); local 201 pci_read_config_word(pdev, 0x50, &misc); 203 pci_write_config_word(pdev, 0x50, misc & 0xfcff); 205 pci_write_config_word(pdev, 0x50, misc | 0x0300); 289 int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev) argument 295 dev_dbg(&pdev->dev, "QUIRK: Enable AMD remote wakeup fix\n"); 509 struct pci_dev *pdev; local 512 pdev = to_pci_dev(device); 513 pci_write_config_word(pdev, PT_ADDR_INDX, PT_SIG_1_ADDR); 515 pci_read_config_byte(pdev, PT_READ_IND 593 usb_asmedia_wait_write(struct pci_dev *pdev) argument 617 usb_asmedia_modifyflowcontrol(struct pci_dev *pdev) argument 637 io_type_enabled(struct pci_dev *pdev, unsigned int mask) argument 651 uhci_reset_hc(struct pci_dev *pdev, unsigned long base) argument 683 uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base) argument 730 quirk_usb_handoff_uhci(struct pci_dev *pdev) argument 750 quirk_usb_handoff_uhci(struct pci_dev *pdev) argument 754 mmio_resource_enabled(struct pci_dev *pdev, int idx) argument 759 quirk_usb_handoff_ohci(struct pci_dev *pdev) argument 865 ehci_bios_handoff(struct pci_dev *pdev, void __iomem *op_reg_base, u32 cap, u8 offset) argument 939 quirk_usb_disable_ehci(struct pci_dev *pdev) argument 1149 quirk_usb_handoff_xhci(struct pci_dev *pdev) argument 1252 quirk_usb_early_handoff(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | pci.c | 62 static struct mt7996_hif *mt7996_pci_init_hif2(struct pci_dev *pdev) argument 71 pcim_iomap_table(pdev)[0] + MT_PCIE_RECOG_ID); 76 static int mt7996_pci_hif2_probe(struct pci_dev *pdev) argument 80 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); 84 hif->dev = &pdev->dev; 85 hif->regs = pcim_iomap_table(pdev)[0]; 86 hif->irq = pdev->irq; 90 pci_set_drvdata(pdev, hif); 95 static int mt7996_pci_probe(struct pci_dev *pdev, argument 104 ret = pcim_enable_device(pdev); 217 mt7996_hif_remove(struct pci_dev *pdev) argument 224 mt7996_pci_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/drivers/uio/ |
H A D | uio_pdrv_genirq.c | 35 struct platform_device *pdev; member in struct:uio_pdrv_genirq_platdata 48 pm_runtime_get_sync(&priv->pdev->dev); 57 pm_runtime_put_sync(&priv->pdev->dev); 110 static int uio_pdrv_genirq_probe(struct platform_device *pdev) argument 112 struct uio_info *uioinfo = dev_get_platdata(&pdev->dev); 113 struct fwnode_handle *node = dev_fwnode(&pdev->dev); 123 uioinfo = devm_kzalloc(&pdev->dev, sizeof(*uioinfo), 126 dev_err(&pdev->dev, "unable to kmalloc\n"); 130 if (!device_property_read_string(&pdev->dev, "linux,uio-name", &name)) 131 uioinfo->name = devm_kstrdup(&pdev [all...] |
/linux-master/include/linux/usb/ |
H A D | renesas_usbhs.h | 39 int (*hardware_init)(struct platform_device *pdev); 47 int (*hardware_exit)(struct platform_device *pdev); 54 int (*power_ctrl)(struct platform_device *pdev, 62 int (*phy_reset)(struct platform_device *pdev); 69 int (*get_id)(struct platform_device *pdev); 74 int (*get_vbus)(struct platform_device *pdev); 81 int (*set_vbus)(struct platform_device *pdev, int enable);
|
/linux-master/include/linux/ |
H A D | vga_switcheroo.h | 122 enum vga_switcheroo_client_id (*get_client_id)(struct pci_dev *pdev); 155 int vga_switcheroo_register_audio_client(struct pci_dev *pdev, 166 int vga_switcheroo_lock_ddc(struct pci_dev *pdev); 167 int vga_switcheroo_unlock_ddc(struct pci_dev *pdev); 171 bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev); 184 static inline int vga_switcheroo_register_audio_client(struct pci_dev *pdev, argument 189 static inline int vga_switcheroo_lock_ddc(struct pci_dev *pdev) { return -ENODEV; } argument 190 static inline int vga_switcheroo_unlock_ddc(struct pci_dev *pdev) { return -ENODEV; } argument 192 static inline bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev) { return false; } argument
|
/linux-master/drivers/mfd/ |
H A D | vx855.c | 60 static int vx855_probe(struct pci_dev *pdev, argument 66 ret = pci_enable_device(pdev); 70 pci_read_config_word(pdev, VX855_CFG_PMIO_OFFSET, &gpio_io_offset); 72 dev_warn(&pdev->dev, 89 ret = mfd_add_devices(&pdev->dev, -1, vx855_cells, ARRAY_SIZE(vx855_cells), 96 pci_disable_device(pdev); 100 static void vx855_remove(struct pci_dev *pdev) argument 102 mfd_remove_devices(&pdev->dev); 103 pci_disable_device(pdev);
|
/linux-master/drivers/net/can/softing/ |
H A D | softing_cs.c | 20 static int softingcs_reset(struct platform_device *pdev, int v); 21 static int softingcs_enable_irq(struct platform_device *pdev, int v); 165 static int softingcs_reset(struct platform_device *pdev, int v) argument 167 struct pcmcia_device *pcmcia = to_pcmcia_dev(pdev->dev.parent); 169 dev_dbg(&pdev->dev, "pcmcia config [2] %02x\n", v ? 0 : 0x20); 173 static int softingcs_enable_irq(struct platform_device *pdev, int v) argument 175 struct pcmcia_device *pcmcia = to_pcmcia_dev(pdev->dev.parent); 177 dev_dbg(&pdev->dev, "pcmcia config [0] %02x\n", v ? 0x60 : 0); 207 struct platform_device *pdev = pcmcia->priv; local 210 platform_device_unregister(pdev); 221 struct platform_device *pdev = to_platform_device(dev); local 228 struct platform_device *pdev; local 232 struct platform_device pdev; member in struct:dev [all...] |
/linux-master/drivers/input/misc/ |
H A D | twl4030-pwrbutton.c | 56 static int twl4030_pwrbutton_probe(struct platform_device *pdev) argument 59 int irq = platform_get_irq(pdev, 0); 62 pwr = devm_input_allocate_device(&pdev->dev); 64 dev_err(&pdev->dev, "Can't allocate power button\n"); 71 pwr->dev.parent = &pdev->dev; 73 err = devm_request_threaded_irq(&pdev->dev, irq, NULL, powerbutton_irq, 78 dev_err(&pdev->dev, "Can't get IRQ for pwrbutton: %d\n", err); 84 dev_err(&pdev->dev, "Can't register power button: %d\n", err); 88 device_init_wakeup(&pdev->dev, true);
|
/linux-master/drivers/tty/serial/8250/ |
H A D | 8250_ioc3.c | 34 static int serial8250_ioc3_probe(struct platform_device *pdev) argument 42 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); 46 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); 50 membase = devm_ioremap(&pdev->dev, r->start, resource_size(r)); 54 irq = platform_get_irq(pdev, 0); 65 up.port.dev = &pdev->dev; 74 platform_set_drvdata(pdev, data); 78 static void serial8250_ioc3_remove(struct platform_device *pdev) argument 80 struct ioc3_8250_data *data = platform_get_drvdata(pdev);
|
/linux-master/drivers/pci/ |
H A D | mmap.c | 24 int pci_mmap_resource_range(struct pci_dev *pdev, int bar, argument 31 size = ((pci_resource_len(pdev, bar) - 1) >> PAGE_SHIFT) + 1; 41 ret = pci_iobar_pfn(pdev, bar, vma); 45 vma->vm_pgoff += (pci_resource_start(pdev, bar) >> PAGE_SHIFT); 59 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma, argument 65 if (pci_resource_len(pdev, resno) == 0) 69 size = ((pci_resource_len(pdev, resno) - 1) >> PAGE_SHIFT) + 1; 71 pci_resource_to_user(pdev, resno, &pdev->resource[resno],
|
/linux-master/drivers/edac/ |
H A D | edac_pci.h | 94 static inline void pci_write_bits8(struct pci_dev *pdev, int offset, u8 value, argument 100 pci_read_config_byte(pdev, offset, &buf); 106 pci_write_config_byte(pdev, offset, value); 110 static inline void pci_write_bits16(struct pci_dev *pdev, int offset, argument 116 pci_read_config_word(pdev, offset, &buf); 122 pci_write_config_word(pdev, offset, value); 134 static inline void pci_write_bits32(struct pci_dev *pdev, int offset, argument 140 pci_read_config_dword(pdev, offset, &buf); 146 pci_write_config_dword(pdev, offset, value);
|
H A D | sifive_edac.c | 43 static int ecc_register(struct platform_device *pdev) argument 47 p = devm_kzalloc(&pdev->dev, sizeof(*p), GFP_KERNEL); 52 platform_set_drvdata(pdev, p); 59 p->dci->dev = &pdev->dev; 61 p->dci->ctl_name = dev_name(&pdev->dev); 62 p->dci->dev_name = dev_name(&pdev->dev); 79 static int ecc_unregister(struct platform_device *pdev) argument 81 struct sifive_edac_priv *p = platform_get_drvdata(pdev); 84 edac_device_del_device(&pdev->dev);
|
/linux-master/drivers/thermal/intel/int340x_thermal/ |
H A D | processor_thermal_wt_req.c | 44 struct pci_dev *pdev = to_pci_dev(dev); local 64 ret = processor_thermal_send_mbox_write_cmd(pdev, MBOX_CMD_WORKLOAD_TYPE_WRITE, data); 75 struct pci_dev *pdev = to_pci_dev(dev); local 79 ret = processor_thermal_send_mbox_read_cmd(pdev, MBOX_CMD_WORKLOAD_TYPE_READ, &cmd_resp); 106 int proc_thermal_wt_req_add(struct pci_dev *pdev, struct proc_thermal_device *proc_priv) argument 112 ret = processor_thermal_send_mbox_read_cmd(pdev, MBOX_CMD_WORKLOAD_TYPE_READ, &cmd_resp); 116 ret = sysfs_create_group(&pdev->dev.kobj, &workload_req_attribute_group); 126 void proc_thermal_wt_req_remove(struct pci_dev *pdev) argument 129 sysfs_remove_group(&pdev->dev.kobj, &workload_req_attribute_group);
|
/linux-master/drivers/media/platform/chips-media/wave5/ |
H A D | wave5-vpu.c | 148 static int wave5_vpu_probe(struct platform_device *pdev) argument 155 match_data = device_get_match_data(&pdev->dev); 157 dev_err(&pdev->dev, "missing device match data\n"); 162 ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); 164 dev_err(&pdev->dev, "Failed to set DMA mask: %d\n", ret); 168 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); 172 dev->vdb_register = devm_platform_ioremap_resource(pdev, 0); 179 dev_set_drvdata(&pdev->dev, dev); 180 dev->dev = &pdev->dev; 182 ret = devm_clk_bulk_get_all(&pdev 289 wave5_vpu_remove(struct platform_device *pdev) argument [all...] |