Lines Matching defs:cntlr

35     struct SpiCntlr *cntlr;
465 static int32_t Pl022SetCfg(struct SpiCntlr *cntlr, struct SpiCfg *cfg)
470 if (cntlr == NULL || cntlr->priv == NULL || cfg == NULL) {
471 HDF_LOGE("%s: cntlr priv or cfg is NULL", __func__);
474 pl022 = (struct Pl022 *)cntlr->priv;
475 dev = Pl022FindDeviceByCsNum(pl022, cntlr->curCs);
495 static int32_t Pl022GetCfg(struct SpiCntlr *cntlr, struct SpiCfg *cfg)
500 if (cntlr == NULL || cntlr->priv == NULL || cfg == NULL) {
501 HDF_LOGE("%s: cntlr priv or cfg is NULL", __func__);
504 pl022 = (struct Pl022 *)cntlr->priv;
505 dev = Pl022FindDeviceByCsNum(pl022, cntlr->curCs);
539 static struct DmaCntlr *cntlr = NULL;
541 if (cntlr == NULL) {
542 cntlr = (struct DmaCntlr *)DevSvcManagerClntGetService("HDF_PLATFORM_DMAC0");
543 if (cntlr != NULL) {
549 return cntlr;
654 static int32_t Pl022Transfer(struct SpiCntlr *cntlr, struct SpiMsg *msg, uint32_t count)
661 if (cntlr == NULL || cntlr->priv == NULL) {
670 pl022 = (struct Pl022 *)cntlr->priv;
671 dev = Pl022FindDeviceByCsNum(pl022, cntlr->curCs);
694 int32_t Pl022Open(struct SpiCntlr *cntlr)
696 (void)cntlr;
700 int32_t Pl022Close(struct SpiCntlr *cntlr)
702 (void)cntlr;
741 device->cntlr = pl022->cntlr;
882 static int32_t Pl022Init(struct SpiCntlr *cntlr, const struct HdfDeviceObject *device)
906 pl022->cntlr = cntlr;
907 cntlr->priv = pl022;
908 cntlr->busNum = pl022->busNum;
909 cntlr->method = &g_method;
960 struct SpiCntlr *cntlr = NULL;
966 cntlr = SpiCntlrFromDevice(device);
967 if (cntlr == NULL) {
968 HDF_LOGE("%s: cntlr is null", __func__);
972 ret = Pl022Init(cntlr, device);
977 ret = Pl022Probe(cntlr->priv);
987 struct SpiCntlr *cntlr = NULL;
994 cntlr = SpiCntlrFromDevice(device);
995 if (cntlr == NULL) {
996 HDF_LOGE("%s: cntlr is null", __func__);
999 if (cntlr->priv != NULL) {
1000 SpiDumperDestroy((struct Pl022 *)cntlr->priv);
1001 Pl022Remove((struct Pl022 *)cntlr->priv);
1003 SpiCntlrDestroy(cntlr);