/linux-master/sound/soc/sunxi/ |
H A D | sun50i-dmic.c | 342 static int sun50i_dmic_probe(struct platform_device *pdev) argument 349 host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); 354 base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); 356 return dev_err_probe(&pdev->dev, PTR_ERR(base), 359 host->regmap = devm_regmap_init_mmio(&pdev->dev, base, 363 host->bus_clk = devm_clk_get(&pdev->dev, "bus"); 365 return dev_err_probe(&pdev->dev, PTR_ERR(host->bus_clk), 368 host->dmic_clk = devm_clk_get(&pdev->dev, "mod"); 370 return dev_err_probe(&pdev->dev, PTR_ERR(host->dmic_clk), 376 platform_set_drvdata(pdev, hos 410 sun50i_dmic_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/net/ethernet/sunplus/ |
H A D | spl2sw_driver.c | 92 mapping = dma_map_single(&comm->pdev->dev, skb->data, 94 if (dma_mapping_error(&comm->pdev->dev, mapping)) { 262 static u32 spl2sw_init_netdev(struct platform_device *pdev, u8 *mac_addr, argument 272 ndev = devm_alloc_etherdev(&pdev->dev, sizeof(*mac)); 277 SET_NETDEV_DEV(ndev, &pdev->dev); 284 dev_info(&pdev->dev, "Ethernet (MAC) address = %pM\n", mac_addr); 288 dev_err(&pdev->dev, "Failed to register net device \"%s\"!\n", 320 static int spl2sw_probe(struct platform_device *pdev) argument 332 if (platform_get_drvdata(pdev)) 336 comm = devm_kzalloc(&pdev 514 spl2sw_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-core.c | 34 static struct platform_device *__get_pdev_by_id(struct platform_device *pdev, argument 43 if (!pdev) 47 dev_err(&pdev->dev, "Illegal infra id %d\n", id); 51 mdp_data = of_device_get_match_data(&pdev->dev); 53 dev_err(&pdev->dev, "have no driver data to find node\n"); 65 dev_err(&pdev->dev, "find node from id %d failed\n", id); 72 dev_err(&pdev->dev, "find pdev from id %d failed\n", id); 79 struct platform_device *mdp_get_plat_device(struct platform_device *pdev) argument 81 struct device *dev = &pdev 219 mdp_probe(struct platform_device *pdev) argument 367 mdp_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/video/backlight/ |
H A D | max8925_bl.c | 90 static void max8925_backlight_dt_init(struct platform_device *pdev) argument 92 struct device_node *nproot = pdev->dev.parent->of_node, *np; 99 pdata = devm_kzalloc(&pdev->dev, 107 dev_err(&pdev->dev, "failed to find backlight node\n"); 116 pdev->dev.platform_data = pdata; 119 static int max8925_backlight_probe(struct platform_device *pdev) argument 121 struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent); 130 data = devm_kzalloc(&pdev->dev, sizeof(struct max8925_backlight_data), 135 res = platform_get_resource(pdev, IORESOURCE_REG, 0); 137 dev_err(&pdev [all...] |
H A D | da903x_bl.c | 96 static int da903x_backlight_probe(struct platform_device *pdev) argument 98 struct da9034_backlight_pdata *pdata = dev_get_platdata(&pdev->dev); 104 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); 108 switch (pdev->id) { 116 dev_err(&pdev->dev, "invalid backlight device ID(%d)\n", 117 pdev->id); 121 data->id = pdev->id; 122 data->da903x_dev = pdev->dev.parent; 133 bl = devm_backlight_device_register(&pdev->dev, pdev [all...] |
H A D | wm831x_bl.c | 110 static int wm831x_backlight_probe(struct platform_device *pdev) argument 112 struct wm831x *wm831x = dev_get_drvdata(pdev->dev.parent); 113 struct wm831x_pdata *wm831x_pdata = dev_get_platdata(pdev->dev.parent); 127 dev_err(&pdev->dev, "No platform data supplied\n"); 138 dev_err(&pdev->dev, "Invalid max_uA: %duA\n", pdata->max_uA); 144 dev_warn(&pdev->dev, 158 dev_err(&pdev->dev, "Invalid ISINK %d\n", pdata->isink); 174 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); 185 bl = devm_backlight_device_register(&pdev->dev, "wm831x", &pdev [all...] |
/linux-master/drivers/xen/xen-pciback/ |
H A D | vpci.c | 31 static struct pci_dev *__xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, argument 38 struct vpci_dev_data *vpci_dev = pdev->pci_dev_data; 69 static int __xen_pcibk_add_pci_dev(struct xen_pcibk_device *pdev, argument 75 struct vpci_dev_data *vpci_dev = pdev->pci_dev_data; 79 xenbus_dev_fatal(pdev->xdev, err, 87 xenbus_dev_fatal(pdev->xdev, err, 134 xenbus_dev_fatal(pdev->xdev, err, 142 err = publish_cb(pdev, 0, 0, PCI_DEVFN(slot, func), devid); 150 static void __xen_pcibk_release_pci_dev(struct xen_pcibk_device *pdev, argument 154 struct vpci_dev_data *vpci_dev = pdev 184 __xen_pcibk_init_devices(struct xen_pcibk_device *pdev) argument 203 __xen_pcibk_publish_pci_roots(struct xen_pcibk_device *pdev, publish_pci_root_cb publish_cb) argument 210 __xen_pcibk_release_devices(struct xen_pcibk_device *pdev) argument 232 __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, struct xen_pcibk_device *pdev, unsigned int *domain, unsigned int *bus, unsigned int *devfn) argument [all...] |
/linux-master/drivers/ata/ |
H A D | sata_uli.c | 43 static int uli_init_one(struct pci_dev *pdev, const struct pci_device_id *ent); 95 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); local 99 pci_read_config_dword(pdev, cfg_addr, &val); 105 struct pci_dev *pdev = to_pci_dev(link->ap->host->dev); local 108 pci_write_config_dword(pdev, cfg_addr, val); 129 static int uli_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) argument 139 ata_print_version_once(&pdev->dev, DRV_VERSION); 141 rc = pcim_enable_device(pdev); 150 host = ata_host_alloc_pinfo(&pdev->dev, ppi, n_ports); 154 hpriv = devm_kzalloc(&pdev [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | sunxvr2500.c | 19 struct pci_dev *pdev; member in struct:s3d_info 42 pci_name(sp->pdev)); 117 static int s3d_pci_register(struct pci_dev *pdev, argument 124 err = aperture_remove_conflicting_pci_devices(pdev, "s3dfb"); 128 err = pci_enable_device(pdev); 131 pci_name(pdev)); 135 info = framebuffer_alloc(sizeof(struct s3d_info), &pdev->dev); 143 sp->pdev = pdev; 144 sp->of_node = pci_device_to_OF_node(pdev); [all...] |
/linux-master/drivers/leds/ |
H A D | leds-88pm860x.c | 115 static int pm860x_led_dt_init(struct platform_device *pdev, argument 121 if (!dev_of_node(pdev->dev.parent)) 123 nproot = of_get_child_by_name(dev_of_node(pdev->dev.parent), "leds"); 125 dev_err(&pdev->dev, "failed to find leds node\n"); 144 static int pm860x_led_probe(struct platform_device *pdev) argument 146 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); 147 struct pm860x_led_pdata *pdata = dev_get_platdata(&pdev->dev); 152 data = devm_kzalloc(&pdev->dev, sizeof(struct pm860x_led), GFP_KERNEL); 155 res = platform_get_resource_byname(pdev, IORESOURCE_REG, "control"); 157 dev_err(&pdev 218 pm860x_led_remove(struct platform_device *pdev) argument [all...] |
/linux-master/sound/soc/fsl/ |
H A D | imx-sgtl5000.c | 51 static int imx_sgtl5000_probe(struct platform_device *pdev) argument 53 struct device_node *np = pdev->dev.of_node; 64 dev_err(&pdev->dev, "mux-int-port missing or invalid\n"); 69 dev_err(&pdev->dev, "mux-ext-port missing or invalid\n"); 87 dev_err(&pdev->dev, "audmux internal port setup failed\n"); 94 dev_err(&pdev->dev, "audmux external port setup failed\n"); 98 ssi_np = of_parse_phandle(pdev->dev.of_node, "ssi-controller", 0); 99 codec_np = of_parse_phandle(pdev->dev.of_node, "audio-codec", 0); 101 dev_err(&pdev->dev, "phandle missing or invalid\n"); 108 dev_dbg(&pdev 196 imx_sgtl5000_remove(struct platform_device *pdev) argument [all...] |
H A D | imx-pcm-dma.c | 37 int imx_pcm_dma_init(struct platform_device *pdev) argument 41 config = devm_kzalloc(&pdev->dev, 47 return devm_snd_dmaengine_pcm_register(&pdev->dev,
|
/linux-master/drivers/soc/xilinx/ |
H A D | zynqmp_power.c | 187 static int zynqmp_pm_probe(struct platform_device *pdev) argument 209 zynqmp_pm_init_suspend_work = devm_kzalloc(&pdev->dev, 222 dev_err(&pdev->dev, "Failed to Register with Xilinx Event manager %d\n", ret); 224 } else if (of_property_present(pdev->dev.of_node, "mboxes")) { 226 devm_kzalloc(&pdev->dev, 234 client = devm_kzalloc(&pdev->dev, sizeof(*client), GFP_KERNEL); 238 client->dev = &pdev->dev; 243 dev_err(&pdev->dev, "Failed to request rx channel\n"); 246 } else if (of_property_present(pdev->dev.of_node, "interrupts")) { 247 irq = platform_get_irq(pdev, 280 zynqmp_pm_remove(struct platform_device *pdev) argument [all...] |
/linux-master/drivers/virtio/ |
H A D | virtio_pci_admin_legacy_io.c | 16 bool virtio_pci_admin_has_legacy_io(struct pci_dev *pdev) argument 18 struct virtio_device *virtio_dev = virtio_pci_vf_get_pf_dev(pdev); 36 static int virtio_pci_admin_legacy_io_write(struct pci_dev *pdev, u16 opcode, argument 39 struct virtio_device *virtio_dev = virtio_pci_vf_get_pf_dev(pdev); 49 vf_id = pci_iov_vf_id(pdev); 81 int virtio_pci_admin_legacy_common_io_write(struct pci_dev *pdev, u8 offset, argument 84 return virtio_pci_admin_legacy_io_write(pdev, 101 int virtio_pci_admin_legacy_device_io_write(struct pci_dev *pdev, u8 offset, argument 104 return virtio_pci_admin_legacy_io_write(pdev, 110 static int virtio_pci_admin_legacy_io_read(struct pci_dev *pdev, u1 argument 156 virtio_pci_admin_legacy_device_io_read(struct pci_dev *pdev, u8 offset, u8 size, u8 *buf) argument 176 virtio_pci_admin_legacy_common_io_read(struct pci_dev *pdev, u8 offset, u8 size, u8 *buf) argument 195 virtio_pci_admin_legacy_io_notify_info(struct pci_dev *pdev, u8 req_bar_flags, u8 *bar, u64 *bar_offset) argument [all...] |
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_v4l2.c | 365 struct pci_dev *pdev = to_pci_dev(isp->dev); local 369 pci_read_config_word(pdev, PCI_COMMAND, &isp->saved_regs.pcicmdsts); 371 pci_read_config_dword(pdev, PCI_MSI_CAPID, &isp->saved_regs.msicap); 372 pci_read_config_dword(pdev, PCI_MSI_ADDR, &isp->saved_regs.msi_addr); 373 pci_read_config_word(pdev, PCI_MSI_DATA, &isp->saved_regs.msi_data); 374 pci_read_config_byte(pdev, PCI_INTERRUPT_LINE, &isp->saved_regs.intr); 375 pci_read_config_dword(pdev, PCI_INTERRUPT_CTRL, &isp->saved_regs.interrupt_control); 377 pci_read_config_dword(pdev, MRFLD_PCI_PMCS, &isp->saved_regs.pmcs); 379 pci_read_config_dword(pdev, PCI_I_CONTROL, &isp->saved_regs.i_control); 383 pci_read_config_dword(pdev, MRFLD_PCI_CSI_ACCESS_CTRL_VIO 420 struct pci_dev *pdev = to_pci_dev(isp->dev); local 462 struct pci_dev *pdev = to_pci_dev(isp->dev); local 545 struct pci_dev *pdev = to_pci_dev(isp->dev); local 599 struct pci_dev *pdev = to_pci_dev(dev); local 692 struct pci_dev *pdev = to_pci_dev(isp->dev); local 1180 atomisp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) argument 1453 atomisp_pci_remove(struct pci_dev *pdev) argument [all...] |
/linux-master/arch/powerpc/platforms/ps3/ |
H A D | time.c | 50 struct platform_device *pdev; local 55 pdev = platform_device_register_simple("rtc-ps3", -1, NULL, 0); 57 return PTR_ERR_OR_ZERO(pdev);
|
/linux-master/drivers/input/keyboard/ |
H A D | jornada720_kbd.c | 54 struct platform_device *pdev = dev_id; local 55 struct jornadakbd *jornadakbd = platform_get_drvdata(pdev); 63 dev_dbg(&pdev->dev, 88 static int jornada720_kbd_probe(struct platform_device *pdev) argument 94 irq = platform_get_irq(pdev, 0); 98 jornadakbd = devm_kzalloc(&pdev->dev, sizeof(*jornadakbd), GFP_KERNEL); 99 input_dev = devm_input_allocate_device(&pdev->dev); 103 platform_set_drvdata(pdev, jornadakbd); 116 input_dev->dev.parent = &pdev->dev; 124 err = devm_request_irq(&pdev [all...] |
H A D | imx_sc_key.c | 111 static int imx_sc_key_probe(struct platform_device *pdev) argument 117 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); 125 if (device_property_read_u32(&pdev->dev, "linux,keycodes", 127 dev_err(&pdev->dev, "missing linux,keycodes property\n"); 133 input = devm_input_allocate_device(&pdev->dev); 135 dev_err(&pdev->dev, "failed to allocate the input device\n"); 139 input->name = pdev->name; 147 dev_err(&pdev->dev, "failed to register input device\n"); 152 platform_set_drvdata(pdev, priv); 157 dev_err(&pdev [all...] |
/linux-master/sound/soc/au1x/ |
H A D | db1000.c | 40 static int db1000_audio_probe(struct platform_device *pdev) argument 43 card->dev = &pdev->dev; 44 return devm_snd_soc_register_card(&pdev->dev, card);
|
/linux-master/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_sriov.c | 153 static int nitrox_sriov_enable(struct pci_dev *pdev, int num_vfs) argument 155 struct nitrox_device *ndev = pci_get_drvdata(pdev); 163 if (pci_num_vf(pdev) == num_vfs) 166 err = pci_enable_sriov(pdev, num_vfs); 191 pci_disable_sriov(pdev); 201 static int nitrox_sriov_disable(struct pci_dev *pdev) argument 203 struct nitrox_device *ndev = pci_get_drvdata(pdev); 208 if (pci_vfs_assigned(pdev)) { 212 pci_disable_sriov(pdev); 228 int nitrox_sriov_configure(struct pci_dev *pdev, in argument [all...] |
/linux-master/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_reqmgr.c | 31 void otx_cpt_dump_sg_list(struct pci_dev *pdev, struct otx_cpt_req_info *req) argument 96 static inline int setup_sgio_components(struct pci_dev *pdev, argument 105 dev_err(&pdev->dev, "Input list pointer is NULL\n"); 111 list[i].dma_addr = dma_map_single(&pdev->dev, 115 if (unlikely(dma_mapping_error(&pdev->dev, 117 dev_err(&pdev->dev, "Dma mapping failed\n"); 160 dma_unmap_single(&pdev->dev, list[i].dma_addr, 169 static inline int setup_sgio_list(struct pci_dev *pdev, argument 181 dev_err(&pdev->dev, "Error too many sg components\n"); 198 dev_err(&pdev 297 process_request(struct pci_dev *pdev, struct otx_cpt_req_info *req, struct otx_cpt_pending_queue *pqueue, struct otx_cptvf *cptvf) argument 404 otx_cpt_do_request(struct pci_dev *pdev, struct otx_cpt_req_info *req, int cpu_num) argument 428 cpt_process_ccode(struct pci_dev *pdev, union otx_cpt_res_s *cpt_status, struct otx_cpt_info_buffer *cpt_info, struct otx_cpt_req_info *req, u32 *res_code) argument 504 process_pending_queue(struct pci_dev *pdev, struct otx_cpt_pending_queue *pqueue) argument [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-starfire.c | 38 static int __init starfire_rtc_probe(struct platform_device *pdev) argument 42 rtc = devm_rtc_allocate_device(&pdev->dev); 49 platform_set_drvdata(pdev, rtc);
|
/linux-master/drivers/gpu/drm/gma500/ |
H A D | gtt.h | 32 int psb_gtt_allocate_resource(struct drm_psb_private *pdev, struct resource *res, 37 void psb_gtt_insert_pages(struct drm_psb_private *pdev, const struct resource *res, 39 void psb_gtt_remove_pages(struct drm_psb_private *pdev, const struct resource *res);
|
/linux-master/net/wireless/ |
H A D | ethtool.c | 10 struct device *pdev = wiphy_dev(wdev->wiphy); local 12 if (pdev->driver) 13 strscpy(info->driver, pdev->driver->name,
|
/linux-master/drivers/gpio/ |
H A D | gpio-sl28cpld.c | 48 static int sl28cpld_gpio_irq_init(struct platform_device *pdev, argument 54 struct device *dev = &pdev->dev; 60 irq = platform_get_irq(pdev, 0); 88 static int sl28cpld_gpio_probe(struct platform_device *pdev) argument 96 if (!pdev->dev.parent) 99 type = (uintptr_t)device_get_match_data(&pdev->dev); 103 ret = device_property_read_u32(&pdev->dev, "reg", &base); 107 regmap = dev_get_regmap(pdev->dev.parent, NULL); 112 config.parent = &pdev->dev; 123 ret = sl28cpld_gpio_irq_init(pdev, bas [all...] |