Lines Matching defs:cntlr
48 struct I2cCntlr cntlr;
535 HDF_LOGI("%s: cntlr:%hd init done!", __func__, hi35xx->bus);
538 static int32_t Hi35xxI2cTransfer(struct I2cCntlr *cntlr, struct I2cMsg *msgs, int16_t count)
544 if (cntlr == NULL || cntlr->priv == NULL) {
545 HDF_LOGE("Hi35xxI2cTransfer: cntlr lor hi35xxis null!");
548 hi35xx = (struct Hi35xxI2cCntlr *)cntlr;
572 static int32_t Hi35xxI2cLock(struct I2cCntlr *cntlr)
574 struct Hi35xxI2cCntlr *hi35xx = (struct Hi35xxI2cCntlr *)cntlr;
581 static void Hi35xxI2cUnlock(struct I2cCntlr *cntlr)
583 struct Hi35xxI2cCntlr *hi35xx = (struct Hi35xxI2cCntlr *)cntlr;
676 hi35xx->cntlr.priv = (void *)node;
677 hi35xx->cntlr.busId = hi35xx->bus;
678 hi35xx->cntlr.ops = &g_method;
679 hi35xx->cntlr.lockOps = &g_lockOps;
681 ret = I2cCntlrAdd(&hi35xx->cntlr);
689 (void)I2cAddVfsById(hi35xx->cntlr.busId);
729 struct I2cCntlr *cntlr = NULL;
746 cntlr = I2cCntlrGet(bus);
747 if (cntlr != NULL && cntlr->priv == node) {
748 I2cCntlrPut(cntlr);
749 I2cCntlrRemove(cntlr);
750 hi35xx = (struct Hi35xxI2cCntlr *)cntlr;