Searched refs:pdev (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/firmware/os/platform/stm32/ |
D | spi.c | 128 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 …]
|
D | i2c.c | 250 static inline void stmI2cAckEnable(struct StmI2cDev *pdev) in stmI2cAckEnable() argument 252 pdev->cfg->regs->CR1 |= I2C_CR1_ACK; in stmI2cAckEnable() 255 static inline void stmI2cAckDisable(struct StmI2cDev *pdev) in stmI2cAckDisable() argument 257 pdev->cfg->regs->CR1 &= ~I2C_CR1_ACK; in stmI2cAckDisable() 260 static inline void stmI2cDmaEnable(struct StmI2cDev *pdev) in stmI2cDmaEnable() argument 262 pdev->cfg->regs->CR2 |= I2C_CR2_DMAEN; in stmI2cDmaEnable() 265 static inline void stmI2cDmaDisable(struct StmI2cDev *pdev) in stmI2cDmaDisable() argument 267 pdev->cfg->regs->CR2 &= ~I2C_CR2_DMAEN; in stmI2cDmaDisable() 270 static inline void stmI2cStopEnable(struct StmI2cDev *pdev) in stmI2cStopEnable() argument 272 struct StmI2c *regs = pdev->cfg->regs; in stmI2cStopEnable() [all …]
|
/device/generic/goldfish/hwcomposer/ |
D | hwcomposer.cpp | 58 struct ranchu_hwc_composer_device_1* pdev = (struct ranchu_hwc_composer_device_1*)dev; in hwc_set() local 93 pdev->fbdev->post(pdev->fbdev, fb_layer->handle); in hwc_set() 113 struct ranchu_hwc_composer_device_1* pdev = in hwc_query() local 122 value[0] = pdev->vsync_period_ns; in hwc_query() 134 struct ranchu_hwc_composer_device_1* pdev = in hwc_event_control() local 141 pthread_mutex_lock(&pdev->vsync_lock); in hwc_event_control() 142 pdev->vsync_callback_enabled=enabled; in hwc_event_control() 143 pthread_mutex_unlock(&pdev->vsync_lock); in hwc_event_control() 181 static int32_t hwc_attribute(struct ranchu_hwc_composer_device_1* pdev, in hwc_attribute() argument 185 return pdev->vsync_period_ns; in hwc_attribute() [all …]
|