Lines Matching refs:tstee

47 	struct tstee *tstee = tee_get_drvdata(teedev);  in tstee_get_version()  local
51 .impl_caps = lower_16_bits(tstee->ffa_dev->vm_id), in tstee_get_version()
97 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_open_session() local
98 struct ffa_device *ffa_dev = tstee->ffa_dev; in tstee_open_session()
163 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_invoke_func() local
164 struct ffa_device *ffa_dev = tstee->ffa_dev; in tstee_invoke_func()
246 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_shm_register() local
247 struct ffa_device *ffa_dev = tstee->ffa_dev; in tstee_shm_register()
249 .receiver = tstee->ffa_dev->vm_id, in tstee_shm_register()
309 struct tstee *tstee = tee_get_drvdata(ctx->teedev); in tstee_shm_unregister() local
310 struct ffa_device *ffa_dev = tstee->ffa_dev; in tstee_shm_unregister()
409 struct tstee *tstee; in tstee_probe() local
417 tstee = kzalloc(sizeof(*tstee), GFP_KERNEL); in tstee_probe()
418 if (!tstee) in tstee_probe()
421 tstee->ffa_dev = ffa_dev; in tstee_probe()
423 tstee->pool = tstee_create_shm_pool(); in tstee_probe()
424 if (IS_ERR(tstee->pool)) { in tstee_probe()
425 rc = PTR_ERR(tstee->pool); in tstee_probe()
426 tstee->pool = NULL; in tstee_probe()
430 tstee->teedev = tee_device_alloc(&tstee_desc, NULL, tstee->pool, tstee); in tstee_probe()
431 if (IS_ERR(tstee->teedev)) { in tstee_probe()
432 rc = PTR_ERR(tstee->teedev); in tstee_probe()
433 tstee->teedev = NULL; in tstee_probe()
437 rc = tee_device_register(tstee->teedev); in tstee_probe()
441 ffa_dev_set_drvdata(ffa_dev, tstee); in tstee_probe()
446 tee_device_unregister(tstee->teedev); in tstee_probe()
448 tee_shm_pool_free(tstee->pool); in tstee_probe()
450 kfree(tstee); in tstee_probe()
456 struct tstee *tstee = ffa_dev->dev.driver_data; in tstee_remove() local
458 tee_device_unregister(tstee->teedev); in tstee_remove()
459 tee_shm_pool_free(tstee->pool); in tstee_remove()
460 kfree(tstee); in tstee_remove()