Lines Matching refs:po
220 struct tee_pobj *po = NULL; in sec_storage_obj_read() local
232 TEE_POBJ_USAGE_OPEN, fops, &po); in sec_storage_obj_read()
236 res = po->fops->open(po, &file_size, &fh); in sec_storage_obj_read()
241 res = po->fops->read(fh, offset, data, NULL, &read_len); in sec_storage_obj_read()
244 po->fops->remove(po); in sec_storage_obj_read()
249 po->fops->close(&fh); in sec_storage_obj_read()
251 tee_pobj_release(po); in sec_storage_obj_read()
266 struct tee_pobj *po = NULL; in sec_storage_obj_write() local
276 TEE_POBJ_USAGE_OPEN, fops, &po); in sec_storage_obj_write()
280 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write()
282 res = po->fops->create(po, false, NULL, 0, NULL, 0, in sec_storage_obj_write()
285 res = po->fops->write(fh, offset, data, NULL, len); in sec_storage_obj_write()
286 po->fops->close(&fh); in sec_storage_obj_write()
289 tee_pobj_release(po); in sec_storage_obj_write()