HomeSort by relevance Sort by last modified time
    Searched refs:pdev (Results 1 - 25 of 38) sorted by null

1 2

  /device/google/contexthub/firmware/os/platform/stm32/
spi.c 128 static inline void stmSpiDataPullMode(struct StmSpiDev *pdev, enum StmGpioSpeed dataSpeed, enum GpioPullMode dataPull)
130 gpioConfigAlt(pdev->miso, dataSpeed, dataPull, GPIO_OUT_PUSH_PULL, pdev->board->gpioFunc);
131 gpioConfigAlt(pdev->mosi, dataSpeed, dataPull, GPIO_OUT_PUSH_PULL, pdev->board->gpioFunc);
134 static inline void stmSpiSckPullMode(struct StmSpiDev *pdev, enum StmGpioSpeed sckSpeed, enum GpioPullMode sckPull)
136 gpioConfigAlt(pdev->sck, sckSpeed, sckPull, GPIO_OUT_PUSH_PULL, pdev->board->gpioFunc);
139 static inline void stmSpiStartDma(struct StmSpiDev *pdev,
143 struct StmSpi *regs = pdev->cfg->regs
232 struct StmSpiDev *pdev = dev->pdata; local
253 struct StmSpiDev *pdev = dev->pdata; local
295 struct StmSpiDev *pdev = cookie; local
310 struct StmSpiDev *pdev = cookie; local
326 struct StmSpiDev *pdev = dev->pdata; local
401 struct StmSpiDev *pdev = dev->pdata; local
417 struct StmSpiDev *pdev = dev->pdata; local
434 struct StmSpiDev *pdev = dev->pdata; local
448 struct StmSpiDev *pdev = dev->pdata; local
461 struct StmSpiDev *pdev = container_of(state, struct StmSpiDev, state); local
474 struct StmSpiDev *pdev = dev->pdata; local
494 struct StmSpiDev *pdev = dev->pdata; local
524 struct StmSpiDev *pdev = dev->pdata; local
616 struct StmSpiDev *pdev = &mStmSpiDevs[busId]; local
632 struct StmSpiDev *pdev = &mStmSpiDevs[busId]; local
642 struct StmSpiDev *pdev = &mStmSpiDevs[busId]; local
    [all...]
i2c.c 251 static inline void stmI2cAckEnable(struct StmI2cDev *pdev)
253 pdev->cfg->regs->CR1 |= I2C_CR1_ACK;
256 static inline void stmI2cAckDisable(struct StmI2cDev *pdev)
258 pdev->cfg->regs->CR1 &= ~I2C_CR1_ACK;
261 static inline void stmI2cDmaEnable(struct StmI2cDev *pdev)
263 pdev->cfg->regs->CR2 |= I2C_CR2_DMAEN;
266 static inline void stmI2cDmaDisable(struct StmI2cDev *pdev)
268 pdev->cfg->regs->CR2 &= ~I2C_CR2_DMAEN;
271 static inline void stmI2cStopEnable(struct StmI2cDev *pdev)
273 struct StmI2c *regs = pdev->cfg->regs
540 struct StmI2cDev *pdev = cookie; local
563 struct StmI2cDev *pdev = cookie; local
833 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local
877 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local
912 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local
980 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local
1004 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local
1026 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local
1056 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local
    [all...]
  /device/google/cuttlefish_common/guest/hals/hwcomposer/common/
hwcomposer.cpp 33 struct hwc_composer_device_data_t* pdev = local
37 int64_t base_timestamp = pdev->vsync_base_timestamp;
52 timestamp += pdev->vsync_period_ns -
53 (timestamp - base_timestamp) % pdev->vsync_period_ns;
68 if (pdev && pdev->procs) {
69 vsync_proc = pdev->procs->vsync;
75 vsync_proc(const_cast<hwc_procs_t*>(pdev->procs), 0, timestamp);
  /external/ltp/testcases/kernel/device-drivers/usb/tusb/
tusb.c 349 struct pci_dev *pdev = local
352 ltp_usb.pdev = pdev;
356 pdev = pci_find_class(PCI_CLASS_SERIAL_USB << 8, NULL);
357 if (pdev) {
359 printk("tusb: Slot number: %d\n", pdev->devfn);
361 memcpy(ltp_usb.pdev, pdev, sizeof(struct pci_dev));
363 if (pdev->driver->id_table)
388 struct pci_dev *pdev = ltp_usb.pdev local
434 struct pci_dev *pdev = NULL; local
465 struct pci_dev *pdev = NULL; local
492 struct pci_dev *pdev = NULL; local
    [all...]
st_tusb.h 60 struct pci_dev *pdev; /* pci is typical */ member in struct:usb_hcd
102 struct pci_dev *pdev; member in struct:tusb_user
  /external/u-boot/drivers/usb/host/
ehci-pci.c 60 static void ehci_pci_legacy_init(pci_dev_t pdev, struct ehci_hccr **ret_hccr,
67 hccr = (struct ehci_hccr *)pci_map_bar(pdev,
80 pci_read_config_dword(pdev, PCI_COMMAND, &cmd);
82 pci_write_config_dword(pdev, PCI_COMMAND, cmd);
92 pci_dev_t pdev; local
95 pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE);
97 pdev = pci_find_class(PCI_CLASS_SERIAL_USB_EHCI, index);
99 if (pdev < 0) {
103 ehci_pci_legacy_init(pdev, ret_hccr, ret_hcor);
  /external/u-boot/drivers/usb/musb-new/
musb_dsps.c 136 struct platform_device *musb; /* child musb pdev */
152 struct platform_device *pdev = to_platform_device(dev->parent); local
153 struct dsps_glue *glue = platform_get_drvdata(pdev);
185 struct platform_device *pdev = to_platform_device(dev->parent); local
186 struct dsps_glue *glue = platform_get_drvdata(pdev);
204 struct platform_device *pdev = to_platform_device(dev->parent); local
205 struct dsps_glue *glue = platform_get_drvdata(pdev);
258 struct platform_device *pdev = to_platform_device(dev->parent); local
259 struct dsps_glue *glue = platform_get_drvdata(pdev);
298 struct platform_device *pdev = to_platform_device(dev->parent) local
413 struct platform_device *pdev = to_platform_device(dev->parent); local
481 struct platform_device *pdev = to_platform_device(dev->parent); local
530 struct platform_device *pdev = to_platform_device(dev); local
    [all...]
am35x.c 503 static int __devinit am35x_probe(struct platform_device *pdev)
505 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data;
516 dev_err(&pdev->dev, "failed to allocate glue context\n");
522 dev_err(&pdev->dev, "failed to allocate musb device\n");
526 phy_clk = clk_get(&pdev->dev, "fck");
528 dev_err(&pdev->dev, "failed to get PHY clock\n");
533 clk = clk_get(&pdev->dev, "ick");
535 dev_err(&pdev->dev, "failed to get clock\n");
542 dev_err(&pdev->dev, "failed to enable PHY clock\n");
548 dev_err(&pdev->dev, "failed to enable clock\n")
    [all...]
omap2430.c 495 static int __devinit omap2430_probe(struct platform_device *pdev)
497 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data;
502 glue = devm_kzalloc(&pdev->dev, sizeof(*glue), GFP_KERNEL);
504 dev_err(&pdev->dev, "failed to allocate glue context\n");
510 dev_err(&pdev->dev, "failed to allocate musb device\n");
514 musb->dev.parent = &pdev->dev;
518 glue->dev = &pdev->dev;
524 platform_set_drvdata(pdev, glue);
534 ret = platform_device_add_resources(musb, pdev->resource,
535 pdev->num_resources)
    [all...]
  /device/google/cuttlefish_common/guest/hals/hwcomposer/cutf_cvm/
hwcomposer.cpp 300 struct vsoc_hwc_composer_device_1_t* pdev = local
302 pdev->vsync_data.procs = procs;
306 struct vsoc_hwc_composer_device_1_t* pdev = local
315 value[0] = pdev->vsync_data.vsync_period_ns;
362 static int32_t vsoc_hwc_attribute(struct vsoc_hwc_composer_device_1_t* pdev,
366 return pdev->vsync_data.vsync_period_ns;
368 return pdev->composer->x_res();
370 return pdev->composer->y_res();
372 ALOGI("Reporting DPI_X of %d", pdev->composer->dpi());
374 return pdev->composer->dpi() * 1000
389 struct vsoc_hwc_composer_device_1_t* pdev = local
    [all...]
  /device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc-future/
hwcomposer.cpp 89 vsoc_hwc_device* pdev = reinterpret_cast<vsoc_hwc_device*>(arg); local
92 int64_t base_timestamp = pdev->vsync_base_timestamp;
107 timestamp += pdev->vsync_period_ns -
108 (timestamp - base_timestamp) % pdev->vsync_period_ns;
123 if (pdev && pdev->procs) {
124 vsync_proc = pdev->procs->vsync;
130 vsync_proc(const_cast<hwc_procs_t*>(pdev->procs), 0, timestamp);
209 vsoc_hwc_device* pdev = reinterpret_cast<vsoc_hwc_device*>(dev); local
216 *value = pdev->vsync_period_ns
    [all...]
  /external/ltp/testcases/kernel/device-drivers/agp/kernel_space/
tagp.c 579 struct pci_dev *pdev; // = (struct pci_dev *)kmalloc(sizeof(struct pci_dev), GFP_KERNEL); local
582 pdev = pci_find_device(PCI_VENDOR_ID_ATI, PCI_ANY_ID, NULL);
584 if (pdev) {
589 cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);
603 bridge->dev = pdev;
607 pci_read_config_dword(pdev,
611 pci_set_drvdata(pdev, bridge);
619 static int __init agp_test_probe(struct pci_dev *pdev,
628 static void __devexit agp_test_remove(struct pci_dev *pdev)
631 struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
    [all...]
  /external/u-boot/drivers/reset/
reset-rockchip.c 106 int rockchip_reset_bind(struct udevice *pdev, u32 reg_offset, u32 reg_number)
112 ret = device_bind_driver_to_node(pdev, "rockchip_reset", "reset",
113 dev_ofnode(pdev), &rst_dev);
  /external/u-boot/drivers/video/
ati_radeon_fb.c 145 switch (rinfo->pdev.device) {
229 if(rinfo->pdev.device == PCI_CHIP_RV370_5B60) return;
550 pci_dev_t pdev; local
553 pdev = pci_find_devices(ati_radeon_pci_ids, 0);
555 if (pdev != -1) {
556 pci_read_config_word(pdev, PCI_DEVICE_ID, &did);
558 PCI_VENDOR_ID_ATI, did, (pdev >> 16) & 0xff,
559 (pdev >> 11) & 0x1f, (pdev >> 8) & 0x7);
562 rinfo->pdev.vendor = PCI_VENDOR_ID_ATI
    [all...]
  /external/u-boot/arch/arm/include/asm/arch-rockchip/
clock.h 90 * @pdev: clock udevice
95 int rockchip_reset_bind(struct udevice *pdev, u32 reg_offset, u32 reg_number);
  /external/u-boot/drivers/ata/
dwc_ahsata.c 511 static void dwc_ahsata_print_info(struct blk_desc *pdev)
517 pdev->product, pdev->vendor, pdev->revision, pdev->lba);
521 pdev->product, pdev->vendor, pdev->revision, pdev->lba);
752 struct blk_desc *pdev)
965 struct blk_desc *pdev = &sata_dev_desc[dev]; local
    [all...]
ahci.c 181 pci_dev_t pdev = uc_priv->dev;
215 pci_read_config_word(pdev, PCI_VENDOR_ID, &vendor);
219 pci_read_config_word(pdev, 0x92, &tmp16);
221 pci_write_config_word(pdev, 0x92, tmp16);
342 pci_read_config_word(pdev, PCI_COMMAND, &tmp16);
344 pci_write_config_word(pdev, PCI_COMMAND, tmp16);
358 pci_dev_t pdev = uc_priv->dev;
388 pci_read_config_word(pdev, 0x0a, &cc);
  /device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc/
hwcomposer.cpp 308 struct vsoc_hwc_composer_device_1_t* pdev = local
310 pdev->vsync_data.procs = procs;
314 struct vsoc_hwc_composer_device_1_t* pdev = local
323 value[0] = pdev->vsync_data.vsync_period_ns;
370 static int32_t vsoc_hwc_attribute(struct vsoc_hwc_composer_device_1_t* pdev,
375 return pdev->vsync_data.vsync_period_ns;
398 struct vsoc_hwc_composer_device_1_t* pdev = local
407 values[i] = vsoc_hwc_attribute(pdev, attributes[i]);
  /external/u-boot/drivers/pinctrl/broadcom/
pinctrl-bcm283x.c 109 struct udevice *pdev; local
125 "gpio_bcm2835", NULL, dev_of_offset(dev), &pdev);
  /external/u-boot/arch/x86/cpu/
mp_init.c 427 struct udevice *dev, *pdev; local
432 for (device_find_first_child(dm_root(), &pdev);
433 pdev;
434 device_find_next_child(&pdev)) {
435 if (!strcmp(pdev->name, "cpus"))
438 if (!pdev) {
472 ret = device_bind_driver(pdev, "cpu_qemu", cpu, &dev);
  /device/google/cuttlefish_common/guest/hals/gralloc/
gralloc.cpp 256 vsoc_alloc_device_t* pdev = reinterpret_cast<vsoc_alloc_device_t*>(dev); local
257 if (pdev) {
258 free(pdev);
  /external/libdrm/nouveau/
nouveau.c 357 nouveau_device_open_existing(struct nouveau_device **pdev, int close, int fd,
365 void *data, uint32_t size, struct nouveau_device **pdev)
385 dev = *pdev = &nvdev->base;
453 nouveau_device_del(pdev);
458 nouveau_device_wrap(int fd, int close, struct nouveau_device **pdev)
472 }, sizeof(struct nv_device_v0), pdev);
478 nvdev = nouveau_device(*pdev);
486 nouveau_device_open(const char *busid, struct nouveau_device **pdev)
490 ret = nouveau_device_wrap(fd, 1, pdev);
498 nouveau_device_del(struct nouveau_device **pdev)
    [all...]
  /external/u-boot/drivers/pci/
pci_common.c 103 void *pci_map_bar(pci_dev_t pdev, int bar, int flags)
109 pci_read_config_dword(pdev, bar, &bar_response);
118 return pci_bus_to_virt(pdev, pci_bus_addr, flags, 0, MAP_NOCACHE);
  /external/u-boot/board/gateworks/gw_ventana/
gw_ventana.c 527 struct pci_dev *pdev = &pci_devs[pci_devno++]; local
533 pdev->devfn = dev;
534 pdev->vendor = vendor;
535 pdev->device = device;
536 pdev->class = class;
537 pdev->ppar = NULL;
539 pdev->busno = ++pci_bridgeno;
541 pdev->busno = 0;
545 pdev->devfn = 0;
549 if (pci_devs[i].busno == PCI_BUS(pdev->devfn))
    [all...]
  /external/u-boot/drivers/mtd/nand/
pxa3xx_nand.c 403 dev_err(&info->pdev->dev, "Error: timings not found\n");
513 dev_err(&info->pdev->dev,
553 dev_err(&info->pdev->dev, "%s: invalid state %d\n", __func__,
896 dev_err(&info->pdev->dev, "non-supported command %x\n",
956 dev_err(&info->pdev->dev, "Wait timeout!!!\n");
1049 dev_err(&info->pdev->dev, "Wait timeout!!!\n");
1204 dev_err(&info->pdev->dev, "Ready timeout!!!\n");
    [all...]

Completed in 2346 milliseconds

1 2