Lines Matching refs:fops
217 const struct tee_file_operations *fops = NULL; in sec_storage_obj_read() local
224 fops = tee_svc_storage_file_ops(storage_id); in sec_storage_obj_read()
225 if (!fops) in sec_storage_obj_read()
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()
263 const struct tee_file_operations *fops = NULL; in sec_storage_obj_write() local
268 fops = tee_svc_storage_file_ops(storage_id); in sec_storage_obj_write()
269 if (!fops) in sec_storage_obj_write()
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()