Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 7 of 7) sorted by relevance

/device/google/contexthub/firmware/os/platform/stm32/
Dspi.c128 static inline void stmSpiDataPullMode(struct StmSpiDev *pdev, enum StmGpioSpeed dataSpeed, enum Gpi… in stmSpiDataPullMode() argument
130 gpioConfigAlt(pdev->miso, dataSpeed, dataPull, GPIO_OUT_PUSH_PULL, pdev->board->gpioFunc); in stmSpiDataPullMode()
131 gpioConfigAlt(pdev->mosi, dataSpeed, dataPull, GPIO_OUT_PUSH_PULL, pdev->board->gpioFunc); in stmSpiDataPullMode()
134 static inline void stmSpiSckPullMode(struct StmSpiDev *pdev, enum StmGpioSpeed sckSpeed, enum GpioP… in stmSpiSckPullMode() argument
136 gpioConfigAlt(pdev->sck, sckSpeed, sckPull, GPIO_OUT_PUSH_PULL, pdev->board->gpioFunc); in stmSpiSckPullMode()
139 static inline void stmSpiStartDma(struct StmSpiDev *pdev, in stmSpiStartDma() argument
143 struct StmSpi *regs = pdev->cfg->regs; in stmSpiStartDma()
162 dmaStart(pdev->cfg->dmaBus, dmaCfg->stream, buf, size, &mode, callback, in stmSpiStartDma()
163 pdev); in stmSpiStartDma()
166 static inline int stmSpiEnable(struct StmSpiDev *pdev, in stmSpiEnable() argument
[all …]
Di2c.c251 static inline void stmI2cAckEnable(struct StmI2cDev *pdev) in stmI2cAckEnable() argument
253 pdev->cfg->regs->CR1 |= I2C_CR1_ACK; in stmI2cAckEnable()
256 static inline void stmI2cAckDisable(struct StmI2cDev *pdev) in stmI2cAckDisable() argument
258 pdev->cfg->regs->CR1 &= ~I2C_CR1_ACK; in stmI2cAckDisable()
261 static inline void stmI2cDmaEnable(struct StmI2cDev *pdev) in stmI2cDmaEnable() argument
263 pdev->cfg->regs->CR2 |= I2C_CR2_DMAEN; in stmI2cDmaEnable()
266 static inline void stmI2cDmaDisable(struct StmI2cDev *pdev) in stmI2cDmaDisable() argument
268 pdev->cfg->regs->CR2 &= ~I2C_CR2_DMAEN; in stmI2cDmaDisable()
271 static inline void stmI2cStopEnable(struct StmI2cDev *pdev) in stmI2cStopEnable() argument
273 struct StmI2c *regs = pdev->cfg->regs; in stmI2cStopEnable()
[all …]
/device/google/cuttlefish_common/guest/hals/hwcomposer/common/
Dhwcomposer.cpp33 struct hwc_composer_device_data_t* pdev = in hwc_vsync_thread() local
37 int64_t base_timestamp = pdev->vsync_base_timestamp; in hwc_vsync_thread()
52 timestamp += pdev->vsync_period_ns - in hwc_vsync_thread()
53 (timestamp - base_timestamp) % pdev->vsync_period_ns; in hwc_vsync_thread()
68 if (pdev && pdev->procs) { in hwc_vsync_thread()
69 vsync_proc = pdev->procs->vsync; in hwc_vsync_thread()
75 vsync_proc(const_cast<hwc_procs_t*>(pdev->procs), 0, timestamp); in hwc_vsync_thread()
/device/google/cuttlefish_common/guest/hals/hwcomposer/cutf_cvm/
Dhwcomposer.cpp300 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, argument
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;
[all …]
/device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc-future/
Dhwcomposer.cpp89 vsoc_hwc_device* pdev = reinterpret_cast<vsoc_hwc_device*>(arg); in vsync_thread() local
92 int64_t base_timestamp = pdev->vsync_base_timestamp; in vsync_thread()
107 timestamp += pdev->vsync_period_ns - in vsync_thread()
108 (timestamp - base_timestamp) % pdev->vsync_period_ns; in vsync_thread()
123 if (pdev && pdev->procs) { in vsync_thread()
124 vsync_proc = pdev->procs->vsync; in vsync_thread()
130 vsync_proc(const_cast<hwc_procs_t*>(pdev->procs), 0, timestamp); in vsync_thread()
209 vsoc_hwc_device* pdev = reinterpret_cast<vsoc_hwc_device*>(dev); in hwc_query() local
216 *value = pdev->vsync_period_ns; in hwc_query()
/device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc/
Dhwcomposer.cpp308 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, argument
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]);
/device/google/cuttlefish_common/guest/hals/gralloc/
Dgralloc.cpp256 vsoc_alloc_device_t* pdev = reinterpret_cast<vsoc_alloc_device_t*>(dev); in gralloc_device_close() local
257 if (pdev) { in gralloc_device_close()
258 free(pdev); in gralloc_device_close()