Lines Matching +full:op +full:- +full:tee
1 // SPDX-License-Identifier: GPL-2.0
21 * TA_CMD_BNXT_FASTBOOT - boot bnxt device by copying f/w into sram
29 * TEE_SUCCESS - Invoke command success
30 * TEE_ERROR_ITEM_NOT_FOUND - Corrupt f/w image found on memory
35 * TA_CMD_BNXT_COPY_COREDUMP - copy the core dump into shm
37 * param[0] (inout memref) - Coredump buffer memory reference
38 * param[1] (in value) - value.a: offset, data to be copied from
44 * TEE_SUCCESS - Invoke command success
45 * TEE_ERROR_BAD_PARAMETERS - Incorrect input param
46 * TEE_ERROR_ITEM_NOT_FOUND - Corrupt core dump
52 * struct tee_bnxt_fw_private - OP-TEE bnxt private data
53 * @dev: OP-TEE based bnxt device.
54 * @ctx: OP-TEE context handler.
73 arg->func = cmd; in prepare_args()
74 arg->session = pvt_data.session_id; in prepare_args()
75 arg->num_params = MAX_TEE_PARAM_ARRY_MEMB; in prepare_args()
94 * tee_bnxt_fw_load() - Load the bnxt firmware
95 * Uses an OP-TEE call to start a secure
106 return -ENODEV; in tee_bnxt_fw_load()
113 "TA_CMD_BNXT_FASTBOOT invoke failed TEE err: %x, ret:%x\n", in tee_bnxt_fw_load()
115 return -EINVAL; in tee_bnxt_fw_load()
123 * tee_bnxt_copy_coredump() - Copy coredump from the allocated memory
124 * Uses an OP-TEE call to copy coredump
141 return -ENODEV; in tee_bnxt_copy_coredump()
157 "TA_CMD_BNXT_COPY_COREDUMP invoke failed TEE err: %x, ret:%x\n", in tee_bnxt_copy_coredump()
159 return -EINVAL; in tee_bnxt_copy_coredump()
170 rbytes -= nbytes; in tee_bnxt_copy_coredump()
181 return (ver->impl_id == TEE_IMPL_ID_OPTEE); in optee_ctx_match()
187 int ret, err = -ENODEV; in tee_bnxt_fw_probe()
193 /* Open context with TEE driver */ in tee_bnxt_fw_probe()
197 return -ENODEV; in tee_bnxt_fw_probe()
200 export_uuid(sess_arg.uuid, &bnxt_device->id.uuid); in tee_bnxt_fw_probe()
208 err = -EINVAL; in tee_bnxt_fw_probe()
258 MODULE_DEVICE_TABLE(tee, tee_bnxt_fw_id_table);