/external/ltp/testcases/kernel/device-drivers/usb/tusb/ |
D | tusb.c | 349 struct pci_dev *pdev = in test_find_hcd() local 352 ltp_usb.pdev = pdev; in test_find_hcd() 356 pdev = pci_find_class(PCI_CLASS_SERIAL_USB << 8, NULL); in test_find_hcd() 357 if (pdev) { in test_find_hcd() 359 printk("tusb: Slot number: %d\n", pdev->devfn); in test_find_hcd() 361 memcpy(ltp_usb.pdev, pdev, sizeof(struct pci_dev)); in test_find_hcd() 363 if (pdev->driver->id_table) in test_find_hcd() 388 struct pci_dev *pdev = ltp_usb.pdev; in test_hcd_probe() local 391 if (!pdev) { in test_hcd_probe() 396 id = (struct pci_device_id *)pdev->driver->id_table; in test_hcd_probe() [all …]
|
D | st_tusb.h | 60 struct pci_dev *pdev; /* pci is typical */ member 102 struct pci_dev *pdev; member
|
/external/u-boot/drivers/usb/musb-new/ |
D | musb_dsps.c | 152 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_enable() local 153 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_enable() 185 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_disable() local 186 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_disable() 204 struct platform_device *pdev = to_platform_device(dev->parent); in otg_timer() local 205 struct dsps_glue *glue = platform_get_drvdata(pdev); in otg_timer() 258 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_try_idle() local 259 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_try_idle() 298 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_interrupt() local 299 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_interrupt() [all …]
|
D | am35x.c | 503 static int __devinit am35x_probe(struct platform_device *pdev) in am35x_probe() argument 505 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; in am35x_probe() 516 dev_err(&pdev->dev, "failed to allocate glue context\n"); in am35x_probe() 522 dev_err(&pdev->dev, "failed to allocate musb device\n"); in am35x_probe() 526 phy_clk = clk_get(&pdev->dev, "fck"); in am35x_probe() 528 dev_err(&pdev->dev, "failed to get PHY clock\n"); in am35x_probe() 533 clk = clk_get(&pdev->dev, "ick"); in am35x_probe() 535 dev_err(&pdev->dev, "failed to get clock\n"); in am35x_probe() 542 dev_err(&pdev->dev, "failed to enable PHY clock\n"); in am35x_probe() 548 dev_err(&pdev->dev, "failed to enable clock\n"); in am35x_probe() [all …]
|
D | omap2430.c | 495 static int __devinit omap2430_probe(struct platform_device *pdev) in omap2430_probe() argument 497 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; in omap2430_probe() 502 glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL); in omap2430_probe() 504 dev_err(&pdev->dev, "failed to allocate glue context\n"); in omap2430_probe() 510 dev_err(&pdev->dev, "failed to allocate musb device\n"); in omap2430_probe() 514 musb->dev.parent = &pdev->dev; in omap2430_probe() 518 glue->dev = &pdev->dev; in omap2430_probe() 524 platform_set_drvdata(pdev, glue); in omap2430_probe() 534 ret = platform_device_add_resources(musb, pdev->resource, in omap2430_probe() 535 pdev->num_resources); in omap2430_probe() [all …]
|
D | musb_core.c | 1013 static void musb_shutdown(struct platform_device *pdev) in musb_shutdown() argument 1015 struct musb *musb = dev_to_musb(&pdev->dev); in musb_shutdown() 2170 static int __devinit musb_probe(struct platform_device *pdev) in musb_probe() argument 2172 struct device *dev = &pdev->dev; in musb_probe() 2173 int irq = platform_get_irq_byname(pdev, "mc"); in musb_probe() 2178 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in musb_probe() 2199 static int __devexit musb_remove(struct platform_device *pdev) in musb_remove() argument 2201 struct musb *musb = dev_to_musb(&pdev->dev); in musb_remove() 2210 musb_shutdown(pdev); in musb_remove() 2214 device_init_wakeup(&pdev->dev, 0); in musb_remove() [all …]
|
/external/u-boot/drivers/usb/host/ |
D | ehci-pci.c | 60 static void ehci_pci_legacy_init(pci_dev_t pdev, struct ehci_hccr **ret_hccr, in ehci_pci_legacy_init() argument 67 hccr = (struct ehci_hccr *)pci_map_bar(pdev, in ehci_pci_legacy_init() 80 pci_read_config_dword(pdev, PCI_COMMAND, &cmd); in ehci_pci_legacy_init() 82 pci_write_config_dword(pdev, PCI_COMMAND, cmd); in ehci_pci_legacy_init() 92 pci_dev_t pdev; in ehci_hcd_init() local 95 pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE); in ehci_hcd_init() 97 pdev = pci_find_class(PCI_CLASS_SERIAL_USB_EHCI, index); in ehci_hcd_init() 99 if (pdev < 0) { in ehci_hcd_init() 103 ehci_pci_legacy_init(pdev, ret_hccr, ret_hcor); in ehci_hcd_init()
|
D | ohci-hcd.c | 1769 pci_dev_t pdev; in hc_reset() local 1781 pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVNO); in hc_reset() 1782 if (pdev != -1) { in hc_reset() 1786 pci_read_config_dword(pdev, PCI_BASE_ADDRESS_0, &base); in hc_reset() 2007 pci_dev_t pdev; in usb_lowlevel_init() local 2036 pdev = pci_find_devices(ohci_pci_ids, CONFIG_PCI_OHCI_DEVNO); in usb_lowlevel_init() 2038 if (pdev != -1) { in usb_lowlevel_init() 2041 pci_read_config_word(pdev, PCI_VENDOR_ID, &vid); in usb_lowlevel_init() 2042 pci_read_config_word(pdev, PCI_DEVICE_ID, &did); in usb_lowlevel_init() 2044 vid, did, (pdev >> 16) & 0xff, in usb_lowlevel_init() [all …]
|
/external/u-boot/drivers/video/ |
D | ati_radeon_fb.c | 145 switch (rinfo->pdev.device) { in radeon_identify_vram() 229 if(rinfo->pdev.device == PCI_CHIP_RV370_5B60) return; in radeon_write_pll_regs() 550 pci_dev_t pdev; in radeon_probe() local 553 pdev = pci_find_devices(ati_radeon_pci_ids, 0); in radeon_probe() 555 if (pdev != -1) { in radeon_probe() 556 pci_read_config_word(pdev, PCI_DEVICE_ID, &did); in radeon_probe() 558 PCI_VENDOR_ID_ATI, did, (pdev >> 16) & 0xff, in radeon_probe() 559 (pdev >> 11) & 0x1f, (pdev >> 8) & 0x7); in radeon_probe() 562 rinfo->pdev.vendor = PCI_VENDOR_ID_ATI; in radeon_probe() 563 rinfo->pdev.device = did; in radeon_probe() [all …]
|
D | ati_radeon_fb.h | 49 struct pci_device_id pdev; member
|
/external/ltp/testcases/kernel/device-drivers/agp/kernel_space/ |
D | tagp.c | 579 struct pci_dev *pdev; // = (struct pci_dev *)kmalloc(sizeof(struct pci_dev), GFP_KERNEL); in test_pci_find_device() local 582 pdev = pci_find_device(PCI_VENDOR_ID_ATI, PCI_ANY_ID, NULL); in test_pci_find_device() 584 if (pdev) { in test_pci_find_device() 589 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP); in test_pci_find_device() 603 bridge->dev = pdev; in test_pci_find_device() 607 pci_read_config_dword(pdev, in test_pci_find_device() 611 pci_set_drvdata(pdev, bridge); in test_pci_find_device() 619 static int __init agp_test_probe(struct pci_dev *pdev, in agp_test_probe() argument 628 static void __devexit agp_test_remove(struct pci_dev *pdev) in agp_test_remove() argument 631 struct agp_bridge_data *bridge = pci_get_drvdata(pdev); in agp_test_remove()
|
D | str_agp.h | 370 int (*chipset_setup) (struct pci_dev *pdev); // used to override generic
|
/external/u-boot/drivers/ata/ |
D | dwc_ahsata.c | 511 static void dwc_ahsata_print_info(struct blk_desc *pdev) in dwc_ahsata_print_info() argument 517 pdev->product, pdev->vendor, pdev->revision, pdev->lba); in dwc_ahsata_print_info() 521 pdev->product, pdev->vendor, pdev->revision, pdev->lba); in dwc_ahsata_print_info() 752 struct blk_desc *pdev) in dwc_ahsata_scan_common() argument 766 memcpy(pdev->product, serial, sizeof(serial)); in dwc_ahsata_scan_common() 770 memcpy(pdev->revision, firmware, sizeof(firmware)); in dwc_ahsata_scan_common() 774 memcpy(pdev->vendor, product, sizeof(product)); in dwc_ahsata_scan_common() 778 pdev->lba = (u32)n_sectors; in dwc_ahsata_scan_common() 780 pdev->type = DEV_TYPE_HARDDISK; in dwc_ahsata_scan_common() 781 pdev->blksz = ATA_SECT_SIZE; in dwc_ahsata_scan_common() [all …]
|
D | ahci.c | 181 pci_dev_t pdev = uc_priv->dev; in ahci_host_init() 215 pci_read_config_word(pdev, PCI_VENDOR_ID, &vendor); in ahci_host_init() 219 pci_read_config_word(pdev, 0x92, &tmp16); in ahci_host_init() 221 pci_write_config_word(pdev, 0x92, tmp16); in ahci_host_init() 342 pci_read_config_word(pdev, PCI_COMMAND, &tmp16); in ahci_host_init() 344 pci_write_config_word(pdev, PCI_COMMAND, tmp16); in ahci_host_init() 358 pci_dev_t pdev = uc_priv->dev; in ahci_print_info() 388 pci_read_config_word(pdev, 0x0a, &cc); in ahci_print_info()
|
/external/u-boot/arch/x86/cpu/ |
D | mp_init.c | 427 struct udevice *dev, *pdev; in qemu_cpu_fixup() local 432 for (device_find_first_child(dm_root(), &pdev); in qemu_cpu_fixup() 433 pdev; in qemu_cpu_fixup() 434 device_find_next_child(&pdev)) { in qemu_cpu_fixup() 435 if (!strcmp(pdev->name, "cpus")) in qemu_cpu_fixup() 438 if (!pdev) { in qemu_cpu_fixup() 472 ret = device_bind_driver(pdev, "cpu_qemu", cpu, &dev); in qemu_cpu_fixup()
|
/external/libdrm/nouveau/ |
D | nouveau.c | 357 nouveau_device_open_existing(struct nouveau_device **pdev, int close, int fd, in nouveau_device_open_existing() argument 365 void *data, uint32_t size, struct nouveau_device **pdev) in nouveau_device_new() argument 385 dev = *pdev = &nvdev->base; in nouveau_device_new() 453 nouveau_device_del(pdev); in nouveau_device_new() 458 nouveau_device_wrap(int fd, int close, struct nouveau_device **pdev) in nouveau_device_wrap() argument 472 }, sizeof(struct nv_device_v0), pdev); in nouveau_device_wrap() 478 nvdev = nouveau_device(*pdev); in nouveau_device_wrap() 486 nouveau_device_open(const char *busid, struct nouveau_device **pdev) in nouveau_device_open() argument 490 ret = nouveau_device_wrap(fd, 1, pdev); in nouveau_device_open() 498 nouveau_device_del(struct nouveau_device **pdev) in nouveau_device_del() argument [all …]
|
/external/u-boot/drivers/reset/ |
D | reset-rockchip.c | 106 int rockchip_reset_bind(struct udevice *pdev, u32 reg_offset, u32 reg_number) in rockchip_reset_bind() argument 112 ret = device_bind_driver_to_node(pdev, "rockchip_reset", "reset", in rockchip_reset_bind() 113 dev_ofnode(pdev), &rst_dev); in rockchip_reset_bind()
|
/external/u-boot/board/gateworks/gw_ventana/ |
D | gw_ventana.c | 527 struct pci_dev *pdev = &pci_devs[pci_devno++]; in board_pci_fixup_dev() local 533 pdev->devfn = dev; in board_pci_fixup_dev() 534 pdev->vendor = vendor; in board_pci_fixup_dev() 535 pdev->device = device; in board_pci_fixup_dev() 536 pdev->class = class; in board_pci_fixup_dev() 537 pdev->ppar = NULL; in board_pci_fixup_dev() 539 pdev->busno = ++pci_bridgeno; in board_pci_fixup_dev() 541 pdev->busno = 0; in board_pci_fixup_dev() 545 pdev->devfn = 0; in board_pci_fixup_dev() 549 if (pci_devs[i].busno == PCI_BUS(pdev->devfn)) { in board_pci_fixup_dev() [all …]
|
/external/u-boot/drivers/mtd/nand/ |
D | pxa3xx_nand.c | 403 dev_err(&info->pdev->dev, "Error: timings not found\n"); in pxa3xx_nand_init_timings() 513 dev_err(&info->pdev->dev, in drain_fifo() 553 dev_err(&info->pdev->dev, "%s: invalid state %d\n", __func__, in handle_data_pio() 896 dev_err(&info->pdev->dev, "non-supported command %x\n", in prepare_set_command() 956 dev_err(&info->pdev->dev, "Wait timeout!!!\n"); in nand_cmdfunc() 1049 dev_err(&info->pdev->dev, "Wait timeout!!!\n"); in nand_cmdfunc_extended() 1204 dev_err(&info->pdev->dev, "Ready timeout!!!\n"); in pxa3xx_nand_waitfunc() 1358 dev_err(&info->pdev->dev, in pxa_ecc_init() 1384 dev_info(&info->pdev->dev, "There is no chip on cs %d!\n", in pxa3xx_nand_scan() 1401 dev_err(&info->pdev->dev, in pxa3xx_nand_scan() [all …]
|
/external/u-boot/drivers/pci/ |
D | pci_common.c | 103 void *pci_map_bar(pci_dev_t pdev, int bar, int flags) in pci_map_bar() argument 109 pci_read_config_dword(pdev, bar, &bar_response); in pci_map_bar() 118 return pci_bus_to_virt(pdev, pci_bus_addr, flags, 0, MAP_NOCACHE); in pci_map_bar()
|
/external/u-boot/drivers/pinctrl/broadcom/ |
D | pinctrl-bcm283x.c | 109 struct udevice *pdev; in bcm283x_pinctl_probe() local 125 "gpio_bcm2835", NULL, dev_of_offset(dev), &pdev); in bcm283x_pinctl_probe()
|
/external/u-boot/drivers/net/ |
D | e1000.c | 1618 dm_pci_write_config16(hw->pdev, PCI_COMMAND, in e1000_reset_hw() 1621 pci_write_config_word(hw->pdev, PCI_COMMAND, in e1000_reset_hw() 1697 dm_pci_write_config16(hw->pdev, PCI_COMMAND, hw->pci_cmd_word); in e1000_reset_hw() 1699 pci_write_config_word(hw->pdev, PCI_COMMAND, hw->pci_cmd_word); in e1000_reset_hw() 1886 dm_pci_write_config16(hw->pdev, PCI_COMMAND, in e1000_init_hw() 1890 pci_write_config_word(hw->pdev, PCI_COMMAND, in e1000_init_hw() 1910 dm_pci_write_config16(hw->pdev, PCI_COMMAND, hw->pci_cmd_word); in e1000_init_hw() 1912 pci_write_config_word(hw->pdev, PCI_COMMAND, hw->pci_cmd_word); in e1000_init_hw() 1937 dm_pci_read_config16(hw->pdev, PCIX_COMMAND_REGISTER, in e1000_init_hw() 1939 dm_pci_read_config16(hw->pdev, PCIX_STATUS_REGISTER_HI, in e1000_init_hw() [all …]
|
/external/u-boot/arch/arm/include/asm/arch-rockchip/ |
D | clock.h | 95 int rockchip_reset_bind(struct udevice *pdev, u32 reg_offset, u32 reg_number);
|
/external/u-boot/drivers/usb/gadget/ |
D | atmel_usba_udc.h | 289 struct platform_device *pdev; member
|
/external/u-boot/include/linux/mtd/ |
D | rawnand.h | 1146 int (*probe)(struct platform_device *pdev); 1147 void (*remove)(struct platform_device *pdev);
|