Searched refs:i2cDevice (Results 1 - 3 of 3) sorted by relevance
/drivers/hdf_core/adapter/platform/i2c/ |
H A D | i2c_wm.c | 177 struct I2cDevice *i2cDevice = NULL; in AttachI2cDevice() local 184 i2cDevice = (struct I2cDevice *)OsalMemAlloc(sizeof(struct I2cDevice)); in AttachI2cDevice() 185 if (i2cDevice == NULL) { in AttachI2cDevice() 186 HDF_LOGE("%s: OsalMemAlloc i2cDevice error\r\n", __func__); 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 in AttachI2cDevice() 250 struct I2cDevice *i2cDevice = NULL; i2cDriverRelease() local [all...] |
H A D | i2c_bes.c | 242 struct I2cDevice *i2cDevice = NULL; in AttachI2cDevice() local 249 i2cDevice = (struct I2cDevice *)OsalMemAlloc(sizeof(struct I2cDevice)); in AttachI2cDevice() 250 if (i2cDevice == NULL) { in AttachI2cDevice() 251 HDF_LOGE("%s: OsalMemAlloc i2cDevice error\r\n", __func__); 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 in AttachI2cDevice() 332 struct I2cDevice *i2cDevice = NULL; i2cDriverRelease() local [all...] |
H A D | i2c_stm32f4xx.c | 258 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()
|
Completed in 2 milliseconds