Lines Matching refs:ops_data
708 struct AvbOpsData *ops_data; in avb_ops_alloc() local
710 ops_data = avb_calloc(sizeof(struct AvbOpsData)); in avb_ops_alloc()
711 if (!ops_data) in avb_ops_alloc()
714 ops_data->ops.user_data = ops_data; in avb_ops_alloc()
716 ops_data->ops.read_from_partition = read_from_partition; in avb_ops_alloc()
717 ops_data->ops.write_to_partition = write_to_partition; in avb_ops_alloc()
718 ops_data->ops.validate_vbmeta_public_key = validate_vbmeta_public_key; in avb_ops_alloc()
719 ops_data->ops.read_rollback_index = read_rollback_index; in avb_ops_alloc()
720 ops_data->ops.write_rollback_index = write_rollback_index; in avb_ops_alloc()
721 ops_data->ops.read_is_device_unlocked = read_is_device_unlocked; in avb_ops_alloc()
722 ops_data->ops.get_unique_guid_for_partition = in avb_ops_alloc()
725 ops_data->mmc_dev = boot_device; in avb_ops_alloc()
727 return &ops_data->ops; in avb_ops_alloc()
732 struct AvbOpsData *ops_data; in avb_ops_free() local
737 ops_data = ops->user_data; in avb_ops_free()
739 if (ops_data) in avb_ops_free()
740 avb_free(ops_data); in avb_ops_free()