Searched refs:pdev (Results 126 - 150 of 7443) sorted by relevance

1234567891011>>

/linux-master/arch/mips/cobalt/
H A Drtc.c28 struct platform_device *pdev; local
31 pdev = platform_device_alloc("rtc_cmos", -1);
32 if (!pdev)
35 retval = platform_device_add_resources(pdev, cobalt_rtc_resource,
40 retval = platform_device_add(pdev);
47 platform_device_put(pdev);
/linux-master/drivers/spi/
H A Dspi-loongson-pci.c10 static int loongson_spi_pci_register(struct pci_dev *pdev, argument
15 struct device *dev = &pdev->dev;
18 ret = pcim_enable_device(pdev);
22 ret = pcim_iomap_regions(pdev, BIT(pci_bar), pci_name(pdev));
26 reg_base = pcim_iomap_table(pdev)[pci_bar];
H A Dspi-brcmstb-qspi.c19 static int brcmstb_qspi_probe(struct platform_device *pdev) argument
21 return bcm_qspi_probe(pdev, NULL);
24 static void brcmstb_qspi_remove(struct platform_device *pdev) argument
26 bcm_qspi_remove(pdev);
/linux-master/include/linux/
H A Dvirtio_pci_admin.h9 bool virtio_pci_admin_has_legacy_io(struct pci_dev *pdev);
10 int virtio_pci_admin_legacy_common_io_write(struct pci_dev *pdev, u8 offset,
12 int virtio_pci_admin_legacy_common_io_read(struct pci_dev *pdev, u8 offset,
14 int virtio_pci_admin_legacy_device_io_write(struct pci_dev *pdev, u8 offset,
16 int virtio_pci_admin_legacy_device_io_read(struct pci_dev *pdev, u8 offset,
18 int virtio_pci_admin_legacy_io_notify_info(struct pci_dev *pdev,
/linux-master/drivers/base/test/
H A Dtest_async_driver_probe.c23 static int test_probe(struct platform_device *pdev) argument
25 struct device *dev = &pdev->dev;
36 dev_dbg(&pdev->dev, "sleeping for %d msecs in probe\n",
39 dev_dbg(&pdev->dev, "done sleeping\n");
82 struct platform_device *pdev; local
85 pdev = platform_device_alloc(name, id);
86 if (!pdev)
90 set_dev_node(&pdev->dev, nid);
92 ret = platform_device_add(pdev);
94 platform_device_put(pdev);
104 struct platform_device **pdev = NULL; local
[all...]
/linux-master/drivers/hid/intel-ish-hid/ipc/
H A Dpci-ish.c113 static inline bool ish_should_enter_d0i3(struct pci_dev *pdev) argument
115 return !pm_suspend_via_firmware() || pdev->device == CHV_DEVICE_ID;
118 static inline bool ish_should_leave_d0i3(struct pci_dev *pdev) argument
120 return !pm_resume_via_firmware() || pdev->device == CHV_DEVICE_ID;
125 * @pdev: pci device
132 static int ish_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument
138 struct device *dev = &pdev->dev;
145 ret = pcim_enable_device(pdev);
152 pci_set_master(pdev);
155 ret = pcim_iomap_regions(pdev,
208 ish_remove(struct pci_dev *pdev) argument
223 ish_shutdown(struct pci_dev *pdev) argument
245 struct pci_dev *pdev = to_pci_dev(ish_resume_device); local
289 struct pci_dev *pdev = to_pci_dev(device); local
348 struct pci_dev *pdev = to_pci_dev(device); local
[all...]
/linux-master/drivers/mmc/host/
H A Ddw_mmc-pci.c34 static int dw_mci_pci_probe(struct pci_dev *pdev, argument
40 ret = pcim_enable_device(pdev);
44 host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL);
48 host->irq = pdev->irq;
50 host->dev = &pdev->dev;
53 ret = pcim_iomap_regions(pdev, 1 << PCI_BAR_NO, pci_name(pdev));
57 host->regs = pcim_iomap_table(pdev)[PCI_BAR_NO];
59 pci_set_master(pdev);
65 pci_set_drvdata(pdev, hos
70 dw_mci_pci_remove(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/input/gameport/
H A Demu10k1-gp.c40 static int emu_probe(struct pci_dev *pdev, const struct pci_device_id *ent) argument
54 error = pci_enable_device(pdev);
58 emu->io = pci_resource_start(pdev, 0);
59 emu->size = pci_resource_len(pdev, 0);
61 emu->dev = pdev;
65 gameport_set_phys(port, "pci%s/gameport0", pci_name(pdev));
66 port->dev.parent = &pdev->dev;
76 pci_set_drvdata(pdev, emu);
83 pci_disable_device(pdev);
90 static void emu_remove(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/thermal/
H A Dthermal_mmio.c40 static int thermal_mmio_probe(struct platform_device *pdev) argument
43 int (*sensor_init_func)(struct platform_device *pdev,
49 sensor = devm_kzalloc(&pdev->dev, sizeof(*sensor), GFP_KERNEL);
53 sensor->mmio_base = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
57 sensor_init_func = device_get_match_data(&pdev->dev);
59 ret = sensor_init_func(pdev, sensor);
61 dev_err(&pdev->dev,
68 thermal_zone = devm_thermal_of_zone_register(&pdev->dev,
73 dev_err(&pdev->dev,
80 dev_info(&pdev
87 al_thermal_init(struct platform_device *pdev, struct thermal_mmio *sensor) argument
[all...]
/linux-master/drivers/hwtracing/intel_th/
H A Dacpi.c37 static int intel_th_acpi_probe(struct platform_device *pdev) argument
39 struct acpi_device *adev = ACPI_COMPANION(&pdev->dev);
45 id = acpi_match_device(intel_th_acpi_ids, &pdev->dev);
49 for (i = 0, r = 0; i < pdev->num_resources && r < TH_MMIO_END; i++)
50 if (pdev->resource[i].flags &
52 resource[r++] = pdev->resource[i];
54 th = intel_th_alloc(&pdev->dev, (void *)id->driver_data, resource, r);
63 static int intel_th_acpi_remove(struct platform_device *pdev) argument
65 struct intel_th *th = platform_get_drvdata(pdev);
/linux-master/arch/sh/include/asm/
H A Ddevice.h12 int platform_resource_setup_memory(struct platform_device *pdev,
/linux-master/drivers/staging/rtl8192e/rtl8192e/
H A Drtl_pci.h17 bool rtl92e_check_adapter(struct pci_dev *pdev, struct net_device *dev);
/linux-master/drivers/media/usb/pwc/
H A Dpwc-dec1.h25 void pwc_dec1_init(struct pwc_device *pdev, const unsigned char *cmd);
/linux-master/arch/arm/mach-omap1/
H A Dflash.h12 extern void omap1_set_vpp(struct platform_device *pdev, int enable);
/linux-master/include/linux/rpmsg/
H A Dmtk_rpmsg.h24 int (*register_ipi)(struct platform_device *pdev, u32 id,
26 void (*unregister_ipi)(struct platform_device *pdev, u32 id);
27 int (*send_ipi)(struct platform_device *pdev, u32 id,
33 mtk_rpmsg_create_rproc_subdev(struct platform_device *pdev,
/linux-master/drivers/usb/chipidea/
H A Dci_hdrc_pci.c47 * @pdev: USB device controller being probed
54 static int ci_hdrc_pci_probe(struct pci_dev *pdev, argument
63 dev_err(&pdev->dev, "device doesn't provide driver data\n");
67 ci = devm_kzalloc(&pdev->dev, sizeof(*ci), GFP_KERNEL);
71 retval = pcim_enable_device(pdev);
75 if (!pdev->irq) {
76 dev_err(&pdev->dev, "No IRQ, check BIOS/PCI setup!");
80 pci_set_master(pdev);
81 pci_try_set_mwi(pdev);
89 res[0].start = pci_resource_start(pdev,
115 ci_hdrc_pci_remove(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/char/ipmi/
H A Dipmi_si_pci.c62 static int ipmi_pci_probe(struct pci_dev *pdev, argument
68 if (pci_match_id(ipmi_pci_blacklist, pdev))
73 dev_info(&pdev->dev, "probing via PCI");
75 switch (pdev->class) {
89 dev_info(&pdev->dev, "Unknown IPMI class: %x\n", pdev->class);
93 rv = pcim_enable_device(pdev);
95 dev_err(&pdev->dev, "couldn't enable PCI device\n");
99 if (pci_resource_flags(pdev, 0) & IORESOURCE_IO) {
106 io.addr_data = pci_resource_start(pdev,
124 ipmi_pci_remove(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/gpu/drm/vboxvideo/
H A Dvbox_ttm.c18 struct pci_dev *pdev = to_pci_dev(dev->dev); local
20 base = pci_resource_start(pdev, 0);
21 size = pci_resource_len(pdev, 0);
24 devm_arch_phys_wc_add(&pdev->dev, base, size);
/linux-master/drivers/pci/
H A Dpci-mid.c26 int mid_pci_set_power_state(struct pci_dev *pdev, pci_power_t state) argument
28 return intel_mid_pci_set_power_state(pdev, state);
31 pci_power_t mid_pci_get_power_state(struct pci_dev *pdev) argument
33 return intel_mid_pci_get_power_state(pdev);
/linux-master/drivers/acpi/pmic/
H A Dintel_pmic_chtcrc.c31 static int intel_chtcrc_pmic_opregion_probe(struct platform_device *pdev) argument
33 struct intel_soc_pmic *pmic = dev_get_drvdata(pdev->dev.parent);
34 return intel_pmic_install_opregion_handler(&pdev->dev,
35 ACPI_HANDLE(pdev->dev.parent), pmic->regmap,
/linux-master/arch/mips/loongson64/
H A Dvbios_quirk.c6 static void pci_fixup_video(struct pci_dev *pdev) argument
8 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE];
16 pci_disable_rom(pdev);
25 dev_info(&pdev->dev, "Video device with shadowed ROM at %pR\n", res);
/linux-master/drivers/gpu/drm/i915/
H A Di915_pci.h16 bool i915_pci_resource_valid(struct pci_dev *pdev, int bar);
/linux-master/drivers/net/can/ctucanfd/
H A Dctucanfd_pci.c56 static struct ctucan_pci_board_data *ctucan_pci_get_bdata(struct pci_dev *pdev) argument
58 return (struct ctucan_pci_board_data *)pci_get_drvdata(pdev);
64 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); local
66 struct ctucan_pci_board_data *bdata = ctucan_pci_get_bdata(pdev);
74 * @pdev: Handle to the pci device structure
82 static int ctucan_pci_probe(struct pci_dev *pdev, argument
85 struct device *dev = &pdev->dev;
100 ret = pci_enable_device(pdev);
106 ret = pci_request_regions(pdev, KBUILD_MODNAME);
112 ret = pci_enable_msi(pdev);
225 ctucan_pci_remove(struct pci_dev *pdev) argument
[all...]
/linux-master/drivers/clk/mvebu/
H A Darmada-37xx-xtal.c19 static int armada_3700_xtal_clock_probe(struct platform_device *pdev) argument
21 struct device_node *np = pdev->dev.of_node;
30 xtal_hw = devm_kzalloc(&pdev->dev, sizeof(*xtal_hw), GFP_KERNEL);
34 platform_set_drvdata(pdev, xtal_hw);
38 dev_err(&pdev->dev, "no parent\n");
44 dev_err(&pdev->dev, "cannot get regmap\n");
50 dev_err(&pdev->dev, "cannot read from regmap\n");
68 static void armada_3700_xtal_clock_remove(struct platform_device *pdev) argument
70 of_clk_del_provider(pdev->dev.of_node);
/linux-master/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_cmm.c67 * @pdev: The platform device associated with the CMM instance
81 int rcar_cmm_setup(struct platform_device *pdev, argument
84 struct rcar_cmm *rcmm = platform_get_drvdata(pdev);
110 * @pdev: The platform device associated with the CMM instance
121 int rcar_cmm_enable(struct platform_device *pdev) argument
125 ret = pm_runtime_resume_and_get(&pdev->dev);
135 * @pdev: The platform device associated with the CMM instance
143 void rcar_cmm_disable(struct platform_device *pdev) argument
145 struct rcar_cmm *rcmm = platform_get_drvdata(pdev);
150 pm_runtime_put(&pdev
161 rcar_cmm_init(struct platform_device *pdev) argument
172 rcar_cmm_probe(struct platform_device *pdev) argument
190 rcar_cmm_remove(struct platform_device *pdev) argument
[all...]

Completed in 208 milliseconds

1234567891011>>