Home
last modified time | relevance | path

Searched refs:i2cDevice (Results 1 – 3 of 3) sorted by relevance

/drivers/hdf_core/adapter/platform/i2c/
Di2c_wm.c177 struct I2cDevice *i2cDevice = NULL; in AttachI2cDevice() local
184 i2cDevice = (struct I2cDevice *)OsalMemAlloc(sizeof(struct I2cDevice)); in AttachI2cDevice()
185 if (i2cDevice == NULL) { in AttachI2cDevice()
189 (void)memset_s(i2cDevice, sizeof(struct I2cDevice), 0, sizeof(struct I2cDevice)); in AttachI2cDevice()
190 ret = GetI2cDeviceResource(i2cDevice, device->property); in AttachI2cDevice()
192 OsalMemFree(i2cDevice); in AttachI2cDevice()
195 resource = &i2cDevice->resource; in AttachI2cDevice()
201 host->priv = i2cDevice; in AttachI2cDevice()
202 host->busId = i2cDevice->port; in AttachI2cDevice()
204 return InitI2cDevice(i2cDevice); in AttachI2cDevice()
[all …]
Di2c_bes.c242 struct I2cDevice *i2cDevice = NULL; in AttachI2cDevice() local
249 i2cDevice = (struct I2cDevice *)OsalMemAlloc(sizeof(struct I2cDevice)); in AttachI2cDevice()
250 if (i2cDevice == NULL) { in AttachI2cDevice()
254 (void)memset_s(i2cDevice, sizeof(struct I2cDevice), 0, sizeof(struct I2cDevice)); in AttachI2cDevice()
256 ret = GetI2cDeviceResource(i2cDevice, device->deviceMatchAttr); in AttachI2cDevice()
258 ret = GetI2cDeviceResource(i2cDevice, device->property); in AttachI2cDevice()
261 OsalMemFree(i2cDevice); in AttachI2cDevice()
264 resource = &i2cDevice->resource; in AttachI2cDevice()
269 i2cConfig = &i2cDevice->i2cCfg; in AttachI2cDevice()
274 i2cDevice->port = resource->port; in AttachI2cDevice()
[all …]
Di2c_stm32f4xx.c258 struct RealI2cResource *i2cDevice = (struct I2cDevice *)i2cCntrl->priv; in I2cDriverRelease() local
261 if (i2cDevice != NULL) { in I2cDriverRelease()
262 OsalMutexDestroy(&i2cDevice->mutex); in I2cDriverRelease()
263 OsalMemFree(i2cDevice); in I2cDriverRelease()