/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 561 struct StmI2cDev *pdev = cookie; local 831 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local 875 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local 910 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local 978 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local 1002 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local 1024 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local 1054 struct StmI2cDev *pdev = &mStmI2cDevs[busId]; local [all...] |
/device/generic/goldfish/hwcomposer/ |
hwcomposer.cpp | 61 struct ranchu_hwc_composer_device_1* pdev = (struct ranchu_hwc_composer_device_1*)dev; local 96 pdev->fbdev->post(pdev->fbdev, fb_layer->handle); 116 struct ranchu_hwc_composer_device_1* pdev = local 125 value[0] = pdev->vsync_period_ns; 137 struct ranchu_hwc_composer_device_1* pdev = local 144 pthread_mutex_lock(&pdev->vsync_lock); 145 pdev->vsync_callback_enabled=enabled; 146 pthread_mutex_unlock(&pdev->vsync_lock); 184 static int32_t hwc_attribute(struct ranchu_hwc_composer_device_1* pdev, 207 struct ranchu_hwc_composer_device_1* pdev = (struct ranchu_hwc_composer_device_1*)dev; local 224 struct ranchu_hwc_composer_device_1* pdev = (struct ranchu_hwc_composer_device_1*)dev; local 232 struct ranchu_hwc_composer_device_1* pdev = (struct ranchu_hwc_composer_device_1*)data; local 286 struct ranchu_hwc_composer_device_1* pdev = (struct ranchu_hwc_composer_device_1*)dev; local 299 ranchu_hwc_composer_device_1 *pdev = new ranchu_hwc_composer_device_1(); local [all...] |
/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/syslinux/gpxe/src/drivers/net/ |
r8169.c | 1057 struct pci_device *pdev = tp->pci_dev; local 1063 pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, 0x08); 1128 static void rtl_tx_performance_tweak(struct pci_device *pdev, u16 force) 1130 struct net_device *dev = pci_get_drvdata(pdev); 1139 pci_read_config_word(pdev, cap + PCI_EXP_DEVCTL, &ctl); 1141 pci_write_config_word(pdev, cap + PCI_EXP_DEVCTL, ctl); 1174 static void rtl_disable_clock_request(struct pci_device *pdev) 1176 struct net_device *dev = pci_get_drvdata(pdev); 1185 pci_read_config_word(pdev, cap + PCI_EXP_LNKCTL, &ctl); 1187 pci_write_config_word(pdev, cap + PCI_EXP_LNKCTL, ctl) 1360 struct pci_device *pdev = tp->pci_dev; local 1522 struct pci_device *pdev = tp->pci_dev; local [all...] |
sis190.c | 50 static int sis190_isa_bridge_probe(struct pci_device *pdev __unused, 56 static void sis190_isa_bridge_remove(struct pci_device *pdev __unused) 873 static int sis190_init_board(struct pci_device *pdev, struct net_device **netdev) 887 dev->dev = &pdev->dev; 894 adjust_pci_device(pdev); 896 ioaddr = ioremap(pdev->membase, SIS190_REGS_SIZE); 903 tp->pci_device = pdev; 923 static int sis190_get_mac_addr_from_eeprom(struct pci_device *pdev __unused, 955 * @pdev: PCI device 962 static int sis190_get_mac_addr_from_apc(struct pci_device *pdev, [all...] |
atl1e.c | 191 static void atl1e_setup_pcicmd(struct pci_device *pdev) 195 pci_read_config_word(pdev, PCI_COMMAND, &cmd); 197 pci_write_config_word(pdev, PCI_COMMAND, cmd); 204 pci_write_config_dword(pdev, REG_PM_CTRLSTAT, 0); 219 struct pci_device *pdev = adapter->pdev; local 227 pci_read_config_byte(pdev, PCI_REVISION_ID, &rev_id); 1109 static void atl1e_init_netdev(struct net_device *netdev, struct pci_device *pdev) 1113 netdev->dev = &pdev->dev; 1114 pci_set_drvdata(pdev, netdev) 1626 struct pci_device *pdev = adapter->pdev; local [all...] |
via-velocity.c | 212 static void velocity_init_info(struct pci_device *pdev, 216 struct pci_device *pdev); 622 // pci_set_power_state(vptr->pdev, PCI_D3hot); 750 * @pdev: PCI device 758 static void velocity_init_info(struct pci_device *pdev, 764 vptr->pdev = pdev; 783 * @pdev: PCI device it matches 807 unsigned long pci_resource_flags(struct pci_device *pdev, unsigned int bar) 812 pci_read_config_dword(pdev, bar, &l) [all...] |
amd8111e.c | 103 struct pci_device *pdev; member in struct:amd8111e_priv 652 static int amd8111e_probe(struct nic *nic, struct pci_device *pdev) 657 nic->ioaddr = pdev->ioaddr; 658 nic->irqno = pdev->irq; 660 mmio_start = pci_bar_start(pdev, PCI_BASE_ADDRESS_0); 661 mmio_len = pci_bar_size(pdev, PCI_BASE_ADDRESS_0); 664 lp->pdev = pdev; 668 adjust_pci_device(pdev);
|
tg3.c | 106 pci_write_config_dword(tg3.pdev, TG3PCI_REG_BASE_ADDR, off); 107 pci_write_config_dword(tg3.pdev, TG3PCI_REG_DATA, val); 133 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, off); 134 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_DATA, val); 137 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0); 142 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, off); 143 pci_read_config_dword(tg3.pdev, TG3PCI_MEM_WIN_DATA, val); 146 pci_write_config_dword(tg3.pdev, TG3PCI_MEM_WIN_BASE_ADDR, 0); 522 pci_write_config_dword(tp->pdev, TG3PCI_MISC_HOST_CTRL, tp->misc_host_ctrl); 524 pci_read_config_word(tp->pdev, pm + PCI_PM_CTRL, &power_control) [all...] |
bnx2.c | [all...] |
skge.c | 221 * pci_read_config_dword(skge->hw->pdev, PCI_DEV_REG2, ®2); 225 * static u32 skge_vpd_read(struct pci_dev *pdev, int cap, u16 offset) 229 * pci_write_config_word(pdev, cap + PCI_VPD_ADDR, offset); 232 * pci_read_config_word(pdev, cap + PCI_VPD_ADDR, &offset); 235 * pci_read_config_dword(pdev, cap + PCI_VPD_DATA, &val); 239 * static void skge_vpd_write(struct pci_dev *pdev, int cap, u16 offset, u32 val) 241 * pci_write_config_dword(pdev, cap + PCI_VPD_DATA, val); 242 * pci_write_config_word(pdev, cap + PCI_VPD_ADDR, 246 * pci_read_config_word(pdev, cap + PCI_VPD_ADDR, &offset); 254 * struct pci_dev *pdev = skge->hw->pdev [all...] |
sky2.c | 932 static void sky2_rx_map_iob(struct pci_device *pdev __unused, 1055 if (pci_find_capability(hw->pdev, PCI_CAP_ID_EXP)) [all...] |
/device/google/cuttlefish_common/guest/hals/hwcomposer/legacy/ |
hwcomposer.cpp | 310 struct vsoc_hwc_composer_device_1_t* pdev = local 312 pdev->procs = procs; 316 struct vsoc_hwc_composer_device_1_t* pdev = local 325 value[0] = pdev->vsync_period_ns; 349 struct vsoc_hwc_composer_device_1_t* pdev = local 353 int64_t base_timestamp = pdev->vsync_base_timestamp; 368 timestamp += pdev->vsync_period_ns - 369 (timestamp - base_timestamp) % pdev->vsync_period_ns; 384 if (pdev && pdev->procs) 459 struct vsoc_hwc_composer_device_1_t* pdev = local [all...] |
/frameworks/native/vulkan/libvulkan/ |
swapchain.h | 28 VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice pdev, uint32_t queue_family, VkSurfaceKHR surface, VkBool32* pSupported); 29 VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceCapabilitiesKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface, VkSurfaceCapabilitiesKHR* capabilities); 30 VKAPI_ATTR VkResult GetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface_handle, uint32_t* count, VkSurfaceFormatKHR* formats); 31 VKAPI_ATTR VkResult GetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevice pdev, VkSurfaceKHR surface, uint32_t* count, VkPresentModeKHR* modes);
|
/device/google/cuttlefish_common/guest/hals/hwcomposer/ |
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/syslinux/gpxe/src/drivers/net/e1000/ |
e1000.c | 125 struct pci_device *pdev = adapter->pdev; local 129 hw->vendor_id = pdev->vendor; 130 hw->device_id = pdev->device; 132 pci_read_config_word ( pdev, PCI_COMMAND, &hw->pci_cmd_word ); 822 e1000_probe ( struct pci_device *pdev, 846 pci_set_drvdata ( pdev, netdev ); 847 netdev->dev = &pdev->dev; 853 adapter->hw.io_base = pdev->ioaddr; 854 adapter->ioaddr = pdev->ioaddr [all...] |
/external/syslinux/gpxe/src/drivers/net/ath5k/ |
ath5k_attach.c | 116 struct pci_device *pdev = sc->pdev; local 261 pci_find_capability(pdev, PCI_CAP_ID_EXP)) { 305 sc->pdev->device);
|
base.h | 89 struct pci_device *pdev; /* for dma mapping */ member in struct:ath5k_softc
|
ath5k.c | 160 static int ath5k_probe(struct pci_device *pdev, 162 static void ath5k_remove(struct pci_device *pdev); 287 static int ath5k_probe(struct pci_device *pdev, 296 adjust_pci_device(pdev); 302 pci_read_config_byte(pdev, PCI_CACHE_LINE_SIZE, &csz); 310 pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, csz); 317 pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 0xa8); 323 pci_write_config_byte(pdev, 0x41, 0); 325 mem = ioremap(pdev->membase, 0x10000); 346 sc->pdev = pdev [all...] |
/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 | 361 nouveau_device_open_existing(struct nouveau_device **pdev, int close, int fd, 369 void *data, uint32_t size, struct nouveau_device **pdev) 389 dev = *pdev = &nvdev->base; 457 nouveau_device_del(pdev); 462 nouveau_device_wrap(int fd, int close, struct nouveau_device **pdev) 476 }, sizeof(struct nv_device_v0), pdev); 482 nvdev = nouveau_device(*pdev); 490 nouveau_device_open(const char *busid, struct nouveau_device **pdev) 494 ret = nouveau_device_wrap(fd, 1, pdev); 502 nouveau_device_del(struct nouveau_device **pdev) [all...] |
/external/syslinux/gpxe/src/drivers/net/rtl818x/ |
rtl818x.c | 652 static int rtl818x_probe(struct pci_device *pdev, 670 adjust_pci_device(pdev); 679 priv->pdev = pdev; 680 dev->netdev->dev = &pdev->dev; 682 priv->map = (struct rtl818x_csr *)pdev->ioaddr; 818 pci_set_drvdata(pdev, NULL); 824 static void rtl818x_remove(struct pci_device *pdev) 826 struct net80211_device *dev = pci_get_drvdata(pdev);
|