Searched refs:pdev (Results 201 - 225 of 7443) sorted by relevance

1234567891011>>

/linux-master/arch/powerpc/platforms/pseries/
H A Dpci.c57 static int pseries_send_map_pe(struct pci_dev *pdev, u16 num_vfs, argument
68 pdn = pci_get_pdn(pdev);
82 dev_err(&pdev->dev,
89 static void pseries_set_pe_num(struct pci_dev *pdev, u16 vf_index, __be16 pe_num) argument
93 pdn = pci_get_pdn(pdev);
95 dev_dbg(&pdev->dev, "VF %04x:%02x:%02x.%x associated with PE#%x\n",
96 pci_domain_nr(pdev->bus),
97 pdev->bus->number,
98 PCI_SLOT(pci_iov_virtfn_devfn(pdev, vf_index)),
99 PCI_FUNC(pci_iov_virtfn_devfn(pdev, vf_inde
103 pseries_associate_pes(struct pci_dev *pdev, u16 num_vfs) argument
147 pseries_pci_sriov_enable(struct pci_dev *pdev, u16 num_vfs) argument
190 pseries_pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) argument
197 pseries_pcibios_sriov_disable(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/gpio/
H A Dgpio-ts4800.c18 static int ts4800_gpio_probe(struct platform_device *pdev) argument
26 chip = devm_kzalloc(&pdev->dev, sizeof(struct gpio_chip), GFP_KERNEL);
30 base_addr = devm_platform_ioremap_resource(pdev, 0);
34 node = pdev->dev.of_node;
44 retval = bgpio_init(chip, &pdev->dev, 2, base_addr + INPUT_REG_OFFSET,
48 dev_err(&pdev->dev, "bgpio_init failed\n");
54 platform_set_drvdata(pdev, chip);
56 return devm_gpiochip_add_data(&pdev->dev, chip, NULL);
/linux-master/drivers/usb/renesas_usbhs/
H A Drza2.c15 static int usbhs_rza2_hardware_init(struct platform_device *pdev) argument
17 struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
18 struct phy *phy = phy_get(&pdev->dev, "usb");
27 static int usbhs_rza2_hardware_exit(struct platform_device *pdev) argument
29 struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
31 phy_put(&pdev->dev, priv->phy);
37 static int usbhs_rza2_power_ctrl(struct platform_device *pdev, argument
40 struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
/linux-master/drivers/mtd/maps/
H A Dphysmap-ixp4xx.h7 int of_flash_probe_ixp4xx(struct platform_device *pdev,
12 int of_flash_probe_ixp4xx(struct platform_device *pdev, argument
/linux-master/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-generic.c19 static int dwmac_generic_probe(struct platform_device *pdev) argument
25 ret = stmmac_get_platform_resources(pdev, &stmmac_res);
29 if (pdev->dev.of_node) {
30 plat_dat = devm_stmmac_probe_config_dt(pdev, stmmac_res.mac);
32 dev_err(&pdev->dev, "dt configuration failed\n");
36 plat_dat = dev_get_platdata(&pdev->dev);
38 dev_err(&pdev->dev, "no platform data provided\n");
49 return devm_stmmac_pltfr_probe(pdev, plat_dat, &stmmac_res);
H A Ddwmac-anarion.c37 static int anarion_gmac_init(struct platform_device *pdev, void *priv) argument
55 static void anarion_gmac_exit(struct platform_device *pdev, void *priv) argument
62 static struct anarion_gmac *anarion_config_dt(struct platform_device *pdev) argument
69 ctl_block = devm_platform_ioremap_resource(pdev, 1);
72 dev_err(&pdev->dev, "Cannot get reset region (%d)!\n", err);
76 gmac = devm_kzalloc(&pdev->dev, sizeof(*gmac), GFP_KERNEL);
82 err = of_get_phy_mode(pdev->dev.of_node, &phy_mode);
95 dev_err(&pdev->dev, "Unsupported phy-mode (%d)\n",
103 static int anarion_dwmac_probe(struct platform_device *pdev) argument
110 ret = stmmac_get_platform_resources(pdev,
[all...]
/linux-master/drivers/infiniband/sw/rdmavt/
H A Dvt.h45 #define __rvt_pr_info(pdev, name, fmt, ...) \
46 dev_info(&pdev->dev, "%s: " fmt, name, ##__VA_ARGS__)
48 #define __rvt_pr_warn(pdev, name, fmt, ...) \
49 dev_warn(&pdev->dev, "%s: " fmt, name, ##__VA_ARGS__)
51 #define __rvt_pr_err(pdev, name, fmt, ...) \
52 dev_err(&pdev->dev, "%s: " fmt, name, ##__VA_ARGS__)
54 #define __rvt_pr_err_ratelimited(pdev, name, fmt, ...) \
55 dev_err_ratelimited(&(pdev)->dev, "%s: " fmt, name, ##__VA_ARGS__)
/linux-master/arch/mips/include/asm/mach-loongson32/
H A Dplatform.h20 void __init ls1x_rtc_set_extclk(struct platform_device *pdev);
21 void __init ls1x_serial_set_uartclk(struct platform_device *pdev);
/linux-master/drivers/regulator/
H A Dfixed-helper.c11 struct platform_device pdev; member in struct:fixed_regulator_data
17 struct fixed_regulator_data, pdev.dev);
53 data->pdev.name = "reg-fixed-voltage";
54 data->pdev.id = id;
55 data->pdev.dev.platform_data = &data->cfg;
56 data->pdev.dev.release = regulator_fixed_release;
58 platform_device_register(&data->pdev);
60 return &data->pdev;
/linux-master/drivers/xen/
H A Dgrant-dma-iommu.c34 static int grant_dma_iommu_probe(struct platform_device *pdev) argument
39 mmu = devm_kzalloc(&pdev->dev, sizeof(*mmu), GFP_KERNEL);
43 mmu->dev = &pdev->dev;
45 ret = iommu_device_register(&mmu->iommu, &grant_dma_iommu_ops, &pdev->dev);
49 platform_set_drvdata(pdev, mmu);
54 static void grant_dma_iommu_remove(struct platform_device *pdev) argument
56 struct grant_dma_iommu_device *mmu = platform_get_drvdata(pdev);
58 platform_set_drvdata(pdev, NULL);
/linux-master/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00soc.c36 struct platform_device *pdev = to_platform_device(rt2x00dev->dev); local
39 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
64 int rt2x00soc_probe(struct platform_device *pdev, const struct rt2x00_ops *ops) argument
76 platform_set_drvdata(pdev, hw);
79 rt2x00dev->dev = &pdev->dev;
82 rt2x00dev->irq = platform_get_irq(pdev, 0);
83 rt2x00dev->name = pdev->dev.driver->name;
85 rt2x00dev->clk = clk_get(&pdev->dev, NULL);
111 int rt2x00soc_remove(struct platform_device *pdev) argument
113 struct ieee80211_hw *hw = platform_get_drvdata(pdev);
128 rt2x00soc_suspend(struct platform_device *pdev, pm_message_t state) argument
137 rt2x00soc_resume(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/input/joystick/
H A Dsensehat-joystick.c24 struct platform_device *pdev; member in struct:sensehat_joystick
44 dev_err(&sensehat_joystick->pdev->dev,
61 static int sensehat_joystick_probe(struct platform_device *pdev) argument
66 sensehat_joystick = devm_kzalloc(&pdev->dev, sizeof(*sensehat_joystick),
71 sensehat_joystick->pdev = pdev;
73 sensehat_joystick->regmap = dev_get_regmap(pdev->dev.parent, NULL);
75 dev_err(&pdev->dev, "unable to get sensehat regmap");
79 sensehat_joystick->keys_dev = devm_input_allocate_device(&pdev->dev);
81 dev_err(&pdev
[all...]
/linux-master/drivers/net/mdio/
H A Dmdio-octeon.c16 static int octeon_mdiobus_probe(struct platform_device *pdev) argument
26 mii_bus = devm_mdiobus_alloc_size(&pdev->dev, sizeof(*bus));
30 res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
32 dev_err(&pdev->dev, "found no memory resource\n");
41 if (!devm_request_mem_region(&pdev->dev, mdio_phys, regsize,
43 dev_err(&pdev->dev, "request_mem_region failed\n");
47 bus->register_base = devm_ioremap(&pdev->dev, mdio_phys, regsize);
49 dev_err(&pdev->dev, "dev_ioremap failed\n");
59 bus->mii_bus->parent = &pdev->dev;
66 platform_set_drvdata(pdev, bu
81 octeon_mdiobus_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/nvdimm/
H A Dof_pmem.c17 static int of_pmem_region_probe(struct platform_device *pdev) argument
25 np = dev_of_node(&pdev->dev);
33 priv->bus_desc.provider_name = devm_kstrdup(&pdev->dev, pdev->name,
43 priv->bus = bus = nvdimm_bus_register(&pdev->dev, &priv->bus_desc);
48 platform_set_drvdata(pdev, priv);
51 dev_dbg(&pdev->dev, "Registering %s regions from %pOF\n",
54 for (i = 0; i < pdev->num_resources; i++) {
63 ndr_desc.numa_node = dev_to_node(&pdev->dev);
65 ndr_desc.res = &pdev
87 of_pmem_region_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/input/misc/
H A Dwm831x-on.c71 static int wm831x_on_probe(struct platform_device *pdev) argument
73 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent);
75 int irq = wm831x_irq(wm831x, platform_get_irq(pdev, 0));
78 wm831x_on = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_on),
81 dev_err(&pdev->dev, "Can't allocate data\n");
88 wm831x_on->dev = devm_input_allocate_device(&pdev->dev);
90 dev_err(&pdev->dev, "Can't allocate input dev\n");
99 wm831x_on->dev->dev.parent = &pdev->dev;
106 dev_err(&pdev->dev, "Unable to request IRQ: %d\n", ret);
111 dev_dbg(&pdev
126 wm831x_on_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/platform/x86/
H A Dintel_scu_pltdrv.c20 static int intel_scu_platform_probe(struct platform_device *pdev) argument
26 scu_data.irq = platform_get_irq_optional(pdev, 0);
27 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
33 scu = devm_intel_scu_ipc_register(&pdev->dev, &scu_data);
37 platform_set_drvdata(pdev, scu);
H A Dintel_scu_pcidrv.c16 static int intel_scu_pci_probe(struct pci_dev *pdev, argument
23 ret = pcim_enable_device(pdev);
27 scu_data.mem = pdev->resource[0];
28 scu_data.irq = pdev->irq;
30 scu = intel_scu_ipc_register(&pdev->dev, &scu_data);
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_trace.h21 TP_PROTO(const struct pci_dev *pdev, u16 id, u64 size),
22 TP_ARGS(pdev, id, size),
23 TP_STRUCT__entry(__string(dev, pci_name(pdev))
27 TP_fast_assign(__assign_str(dev, pci_name(pdev));
36 TP_PROTO(const struct pci_dev *pdev, u16 num_msgs, u64 msg_size),
37 TP_ARGS(pdev, num_msgs, msg_size),
38 TP_STRUCT__entry(__string(dev, pci_name(pdev))
42 TP_fast_assign(__assign_str(dev, pci_name(pdev));
51 TP_PROTO(const struct pci_dev *pdev, u16 reqid, u16 rspid, int rc),
52 TP_ARGS(pdev, reqi
[all...]
/linux-master/drivers/gpu/drm/
H A Ddrm_aperture.c33 * static int remove_conflicting_framebuffers(struct pci_dev *pdev)
38 * base = pci_resource_start(pdev, 0);
39 * size = pci_resource_len(pdev, 0);
45 * static int probe(struct pci_dev *pdev)
50 * ret = remove_conflicting_framebuffers(pdev);
77 * static int acquire_framebuffers(struct drm_device *dev, struct platform_device *pdev)
81 * mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
90 * static int probe(struct platform_device *pdev)
100 * ret = acquire_framebuffers(dev, pdev);
145 struct platform_device *pdev; local
187 drm_aperture_remove_conflicting_pci_framebuffers(struct pci_dev *pdev, const struct drm_driver *req_driver) argument
[all...]
/linux-master/drivers/hte/
H A Dhte-tegra194-test.c53 struct device *pdev; member in struct:tegra_hte_test
102 static int tegra_hte_test_probe(struct platform_device *pdev) argument
107 dev_set_drvdata(&pdev->dev, &hte);
108 hte.pdev = &pdev->dev;
110 hte.gpio_out = gpiod_get(&pdev->dev, "out", 0);
112 dev_err(&pdev->dev, "failed to get gpio out\n");
117 hte.gpio_in = gpiod_get(&pdev->dev, "in", 0);
119 dev_err(&pdev->dev, "failed to get gpio in\n");
126 dev_err(&pdev
217 tegra_hte_test_remove(struct platform_device *pdev) argument
[all...]
/linux-master/drivers/usb/host/
H A Dpci-quirks.h6 int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev);
39 void uhci_reset_hc(struct pci_dev *pdev, unsigned long base);
40 int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base);
41 void usb_asmedia_modifyflowcontrol(struct pci_dev *pdev);
46 static inline void usb_asmedia_modifyflowcontrol(struct pci_dev *pdev) {} argument
/linux-master/drivers/gpu/drm/nouveau/
H A Dnouveau_platform.c24 static int nouveau_platform_probe(struct platform_device *pdev) argument
31 func = of_device_get_match_data(&pdev->dev);
33 drm = nouveau_platform_device_create(func, pdev, &device);
46 static void nouveau_platform_remove(struct platform_device *pdev) argument
48 struct drm_device *dev = platform_get_drvdata(pdev);
/linux-master/drivers/char/hw_random/
H A Dcavium-rng-vf.c33 struct pci_dev *pdev; member in struct:cavium_rng
39 static inline bool is_octeontx(struct pci_dev *pdev) argument
58 struct pci_dev *pdev; local
61 pdev = pci_get_device(PCI_VENDOR_ID_CAVIUM,
63 if (!pdev)
66 base = pci_ioremap_bar(pdev, 0);
76 pci_dev_put(pdev);
95 dev_err(&rng->pdev->dev, "HWRNG: Startup health test failed\n");
133 dev_err(&rng->pdev->dev, "HWRNG failure detected\n");
171 struct pci_dev *pdev; local
203 cavium_rng_probe_vf(struct pci_dev *pdev, const struct pci_device_id *id) argument
246 cavium_rng_remove_vf(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/pci/
H A Dvgaarb.c44 struct pci_dev *pdev; member in struct:vga_device
54 unsigned int (*set_decode)(struct pci_dev *pdev, bool decode);
106 static struct vga_device *vgadev_find(struct pci_dev *pdev) argument
111 if (pdev == vgadev->pdev)
138 void vga_set_default_device(struct pci_dev *pdev) argument
140 if (vga_default == pdev)
144 vga_default = pci_dev_get(pdev);
150 * Unbind and unregister vgacon in case pdev is the default VGA device.
154 * @pdev
157 vga_remove_vgacon(struct pci_dev *pdev) argument
162 vga_remove_vgacon(struct pci_dev *pdev) argument
167 vga_remove_vgacon(struct pci_dev *pdev) argument
434 vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible) argument
501 vga_tryget(struct pci_dev *pdev, unsigned int rsrc) argument
537 vga_put(struct pci_dev *pdev, unsigned int rsrc) argument
557 vga_is_firmware_default(struct pci_dev *pdev) argument
607 struct pci_dev *pdev = vgadev->pdev; local
759 vga_arbiter_add_pci_device(struct pci_dev *pdev) argument
844 vga_arbiter_del_pci_device(struct pci_dev *pdev) argument
910 __vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes, bool userspace) argument
951 vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes) argument
981 vga_client_register(struct pci_dev *pdev, unsigned int (*set_decode)(struct pci_dev *pdev, bool decode)) argument
1056 struct pci_dev *pdev; member in struct:vga_arb_user_card
1096 struct pci_dev *pdev; local
1160 struct pci_dev *pdev; local
1497 struct pci_dev *pdev = to_pci_dev(dev); local
1541 struct pci_dev *pdev; local
[all...]
/linux-master/drivers/crypto/marvell/octeontx2/
H A Dotx2_cpt_mbox_common.c7 int otx2_cpt_send_mbox_msg(struct otx2_mbox *mbox, struct pci_dev *pdev) argument
14 dev_err(&pdev->dev, "RVU MBOX timeout.\n");
17 dev_err(&pdev->dev, "RVU MBOX error: %d.\n", ret);
24 int otx2_cpt_send_ready_msg(struct otx2_mbox *mbox, struct pci_dev *pdev) argument
31 dev_err(&pdev->dev, "RVU MBOX failed to get message.\n");
38 return otx2_cpt_send_mbox_msg(mbox, pdev);
42 int otx2_cpt_send_af_reg_requests(struct otx2_mbox *mbox, struct pci_dev *pdev) argument
44 return otx2_cpt_send_mbox_msg(mbox, pdev);
49 struct pci_dev *pdev, u64 reg,
58 dev_err(&pdev
48 otx2_cpt_add_read_af_reg(struct otx2_mbox *mbox, struct pci_dev *pdev, u64 reg, u64 *val, int blkaddr) argument
74 otx2_cpt_add_write_af_reg(struct otx2_mbox *mbox, struct pci_dev *pdev, u64 reg, u64 val, int blkaddr) argument
100 otx2_cpt_read_af_reg(struct otx2_mbox *mbox, struct pci_dev *pdev, u64 reg, u64 *val, int blkaddr) argument
113 otx2_cpt_write_af_reg(struct otx2_mbox *mbox, struct pci_dev *pdev, u64 reg, u64 val, int blkaddr) argument
188 struct pci_dev *pdev = lfs->pdev; local
236 struct pci_dev *pdev = lfs->pdev; local
[all...]

Completed in 264 milliseconds

1234567891011>>