id
stringlengths
4
63
text
stringlengths
153
8.81M
qcom_register_dump_segments(9)
NAME qcom_register_dump_segments - register segments for coredump SYNOPSIS int qcom_register_dump_segments (struct rproc *rproc , const struct firmware *fw ); ARGUMENTS rproc remoteproc handle fw firmware header DESCRIPTION Register all segments of the ELF in the remoteproc coredump segment li...
qcom_register_ssr_notifier(9)
NAME qcom_register_ssr_notifier - register SSR notification handler SYNOPSIS void * qcom_register_ssr_notifier (const char *name , struct notifier_block *nb ); ARGUMENTS name Subsystem's SSR name nb notifier_block to be invoked upon subsystem's state change DESCRIPTION This registers the nb n...
qcom_remove_glink_subdev(9)
NAME qcom_remove_glink_subdev - remove a GLINK subdevice from rproc SYNOPSIS void qcom_remove_glink_subdev (struct rproc *rproc , struct qcom_rproc_glink *glink ); ARGUMENTS rproc rproc handle glink reference to a GLINK subdev context SEE ALSO Kernel file ./drivers/remoteproc/qcom_common.c str...
qcom_remove_pdm_subdev(9)
NAME qcom_remove_pdm_subdev - remove PD Mapper subdevice SYNOPSIS void qcom_remove_pdm_subdev (struct rproc *rproc , struct qcom_rproc_pdm *pdm ); ARGUMENTS rproc rproc handle pdm PDM subdevice handle DESCRIPTION Remove the PD Mapper subdevice. SEE ALSO Kernel file ./drivers/remoteproc/qcom_co...
qcom_remove_smd_subdev(9)
NAME qcom_remove_smd_subdev - remove the smd subdevice from rproc SYNOPSIS void qcom_remove_smd_subdev (struct rproc *rproc , struct qcom_rproc_subdev *smd ); ARGUMENTS rproc rproc handle smd the SMD subdevice to remove SEE ALSO Kernel file ./drivers/remoteproc/qcom_common.c struct minidump_reg...
qcom_remove_ssr_subdev(9)
NAME qcom_remove_ssr_subdev - remove subdevice as restart notification source SYNOPSIS void qcom_remove_ssr_subdev (struct rproc *rproc , struct qcom_rproc_ssr *ssr ); ARGUMENTS rproc rproc handle ssr SSR subdevice handle SEE ALSO Kernel file ./drivers/remoteproc/qcom_common.c struct minidump_r...
qcom_remove_sysmon_subdev(9)
NAME qcom_remove_sysmon_subdev - release a qcom_sysmon SYNOPSIS void qcom_remove_sysmon_subdev (struct qcom_sysmon *sysmon ); ARGUMENTS sysmon sysmon context, as retrieved by qcom_add_sysmon_subdev SEE ALSO Kernel file ./drivers/remoteproc/qcom_sysmon.c sysmon_send_event(9), sysmon_request_shutdown(9), ssctl_re...
qcom_rpm_smd_write(9)
NAME qcom_rpm_smd_write - write @buf to @type:@id SYNOPSIS int qcom_rpm_smd_write (struct qcom_smd_rpm *rpm , int state , u32 type , u32 id , void *buf , size_t count ); ARGUMENTS rpm rpm handle state active/sleep state flags type resource type id resource identif...
qcom_scm_assign_mem(9)
NAME qcom_scm_assign_mem - Make a secure call to reassign memory ownership SYNOPSIS int qcom_scm_assign_mem (phys_addr_t mem_addr , size_t mem_sz , u64 *srcvm , const struct qcom_scm_vmperm *newvm , unsigned int dest_cnt ); ARGUMENTS mem_addr mem region whose ownership need to be reassigned mem_sz siz...
qcom_scm_call(9)
NAME qcom_scm_call - Invoke a syscall in the secure world SYNOPSIS int qcom_scm_call (struct device *dev , const struct qcom_scm_desc *desc , struct qcom_scm_res *res ); ARGUMENTS dev device desc Descriptor structure containing arguments and return values res Structure containin...
qcom_scm_call_atomic(9)
NAME qcom_scm_call_atomic - atomic variation of qcom_scm_call() SYNOPSIS int qcom_scm_call_atomic (struct device *dev , const struct qcom_scm_desc *desc , struct qcom_scm_res *res ); ARGUMENTS dev device desc Descriptor structure containing arguments and return values res Struct...
qcom_scm_cpu_power_down(9)
NAME qcom_scm_cpu_power_down - Power down the cpu SYNOPSIS void qcom_scm_cpu_power_down (u32 flags ); ARGUMENTS flags Flags to flush cache DESCRIPTION This is an end point to power down cpu. If there was a pending interrupt, the control would return from this function, otherwise, the cpu jumps to the warm boot...
qcom_scm_derive_sw_secret(9)
NAME qcom_scm_derive_sw_secret - Derive software secret from wrapped key SYNOPSIS int qcom_scm_derive_sw_secret (const u8 *eph_key , size_t eph_key_size , u8 *sw_secret , size_t sw_secret_size ); ARGUMENTS eph_key an ephemerally-wrapped key eph_key_size size of eph_key in bytes ...
qcom_scm_generate_ice_key(9)
NAME qcom_scm_generate_ice_key - Generate a wrapped key for storage encryption SYNOPSIS int qcom_scm_generate_ice_key (u8 *lt_key , size_t lt_key_size ); ARGUMENTS lt_key output buffer for the long-term wrapped key lt_key_size size of lt_key in bytes. Must be the exact wrapped key size used by the SoC. ...
qcom_scm_hdcp_available(9)
NAME qcom_scm_hdcp_available - Check if secure environment supports HDCP. SYNOPSIS bool qcom_scm_hdcp_available (void ); ARGUMENTS void no arguments DESCRIPTION Return true if HDCP is supported, false if not. SEE ALSO Kernel file ./drivers/firmware/qcom/qcom_scm.c struct qcom_scm_qseecom_resp(9), qcom_s...
qcom_scm_hdcp_req(9)
NAME qcom_scm_hdcp_req - Send HDCP request. SYNOPSIS int qcom_scm_hdcp_req (struct qcom_scm_hdcp_req *req , u32 req_cnt , u32 *resp ); ARGUMENTS req HDCP request array req_cnt HDCP request array count resp response buffer passed to SCM DESCRIPTION Write HDCP register(s) through SCM...
qcom_scm_ice_available(9)
NAME qcom_scm_ice_available - Is the ICE key programming interface available? SYNOPSIS bool qcom_scm_ice_available (void ); ARGUMENTS void no arguments RETURN true iff the SCM calls wrapped by qcom_scm_ice_invalidate_key and qcom_scm_ice_set_key are available. SEE ALSO Kernel file ./drivers/firmware/qcom/q...
qcom_scm_ice_invalidate_key(9)
NAME qcom_scm_ice_invalidate_key - Invalidate an inline encryption key SYNOPSIS int qcom_scm_ice_invalidate_key (u32 index ); ARGUMENTS index the keyslot to invalidate DESCRIPTION The UFSHCI and eMMC standards define a standard way to do this, but it doesn't work on these SoCs; only this SCM call does. It is...
qcom_scm_ice_set_key(9)
NAME qcom_scm_ice_set_key - Set an inline encryption key SYNOPSIS int qcom_scm_ice_set_key (u32 index , const u8 *key , u32 key_size , enum qcom_scm_ice_cipher cipher , u32 data_unit_size ); ARGUMENTS index the keyslot into which to set the key key the key to program key_size the size...
qcom_scm_import_ice_key(9)
NAME qcom_scm_import_ice_key - Import key for storage encryption SYNOPSIS int qcom_scm_import_ice_key (const u8 *raw_key , size_t raw_key_size , u8 *lt_key , size_t lt_key_size ); ARGUMENTS raw_key the raw key to import raw_key_size size of raw_key in bytes lt_key output bu...
qcom_scm_is_available(9)
NAME qcom_scm_is_available - Checks if SCM is available SYNOPSIS bool qcom_scm_is_available (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/firmware/qcom/qcom_scm.c struct qcom_scm_qseecom_resp(9), qcom_scm_call(9), qcom_scm_call_atomic(9), qcom_scm_set_warm_boot_addr(9), qcom_scm_s...
qcom_scm_ocmem_lock(9)
NAME qcom_scm_ocmem_lock - call OCMEM lock interface to assign an OCMEM region to the specified initiator SYNOPSIS int qcom_scm_ocmem_lock (enum qcom_scm_ocmem_client id , u32 offset , u32 size , u32 mode ); ARGUMENTS id tz initiator id offset OCMEM offset size OCMEM size ...
qcom_scm_ocmem_lock_available(9)
NAME qcom_scm_ocmem_lock_available - is OCMEM lock/unlock interface available SYNOPSIS bool qcom_scm_ocmem_lock_available (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/firmware/qcom/qcom_scm.c struct qcom_scm_qseecom_resp(9), qcom_scm_call(9), qcom_scm_call_atomic(9), qcom_scm_set...
qcom_scm_ocmem_unlock(9)
NAME qcom_scm_ocmem_unlock - call OCMEM unlock interface to release an OCMEM region from the specified initiator SYNOPSIS int qcom_scm_ocmem_unlock (enum qcom_scm_ocmem_client id , u32 offset , u32 size ); ARGUMENTS id tz initiator id offset OCMEM offset size OCMEM size SEE ALSO ...
qcom_scm_pas_auth_and_reset(9)
NAME qcom_scm_pas_auth_and_reset - Authenticate the given peripheral firmware and reset the remote processor SYNOPSIS int qcom_scm_pas_auth_and_reset (u32 pas_id ); ARGUMENTS pas_id peripheral authentication service id DESCRIPTION Return 0 on success. SEE ALSO Kernel file ./drivers/firmware/qcom/qcom_scm.c ...
qcom_scm_pas_get_rsc_table(9)
NAME qcom_scm_pas_get_rsc_table - Retrieve the resource table in passed output buffer for a given peripheral. SYNOPSIS struct resource_table * qcom_scm_pas_get_rsc_table (struct qcom_scm_pas_context *ctx , void *input_rt , size_t input_rt_size , size_t *output_rt_size ); ARGUMENTS ctx PAS context inpu...
qcom_scm_pas_init_image(9)
NAME qcom_scm_pas_init_image - Initialize peripheral authentication service state machine for a given peripheral, using the metadata SYNOPSIS int qcom_scm_pas_init_image (u32 pas_id , const void *metadata , size_t size , struct qcom_scm_pas_context *ctx ); ARGUMENTS pas_id peripheral authentication service id ...
qcom_scm_pas_mem_setup(9)
NAME qcom_scm_pas_mem_setup - Prepare the memory related to a given peripheral for firmware loading SYNOPSIS int qcom_scm_pas_mem_setup (u32 pas_id , phys_addr_t addr , phys_addr_t size ); ARGUMENTS pas_id peripheral authentication service id addr start address of memory area to prepare si...
qcom_scm_pas_metadata_release(9)
NAME qcom_scm_pas_metadata_release - release metadata context SYNOPSIS void qcom_scm_pas_metadata_release (struct qcom_scm_pas_context *ctx ); ARGUMENTS ctx pas context SEE ALSO Kernel file ./drivers/firmware/qcom/qcom_scm.c struct qcom_scm_qseecom_resp(9), qcom_scm_call(9), qcom_scm_call_atomic(9), q...
qcom_scm_pas_prepare_and_auth_reset(9)
NAME qcom_scm_pas_prepare_and_auth_reset - Prepare, authenticate, and reset the remote processor SYNOPSIS int qcom_scm_pas_prepare_and_auth_reset (struct qcom_scm_pas_context *ctx ); ARGUMENTS ctx Context saved during call to qcom_scm_pas_context_init DESCRIPTION This function performs the necessary steps t...
qcom_scm_pas_shutdown(9)
NAME qcom_scm_pas_shutdown - Shut down the remote processor SYNOPSIS int qcom_scm_pas_shutdown (u32 pas_id ); ARGUMENTS pas_id peripheral authentication service id DESCRIPTION Returns 0 on success. SEE ALSO Kernel file ./drivers/firmware/qcom/qcom_scm.c struct qcom_scm_qseecom_resp(9), qcom_scm_call(9), ...
qcom_scm_pas_supported(9)
NAME qcom_scm_pas_supported - Check if the peripheral authentication service is available for the given peripherial SYNOPSIS bool qcom_scm_pas_supported (u32 pas_id ); ARGUMENTS pas_id peripheral authentication service id DESCRIPTION Returns true if PAS is supported for this peripheral, otherwise false. SEE AL...
qcom_scm_prepare_ice_key(9)
NAME qcom_scm_prepare_ice_key - Re-wrap a key with the per-boot ephemeral key SYNOPSIS int qcom_scm_prepare_ice_key (const u8 *lt_key , size_t lt_key_size , u8 *eph_key , size_t eph_key_size ); ARGUMENTS lt_key a long-term wrapped key lt_key_size size of lt_key in bytes eph_key output buffer ...
qcom_scm_qseecom_app_get_id(9)
NAME qcom_scm_qseecom_app_get_id - Query the app ID for a given QSEE app name. SYNOPSIS int qcom_scm_qseecom_app_get_id (const char *app_name , u32 *app_id ); ARGUMENTS app_name The name of the app. app_id The returned app ID. DESCRIPTION Query and return the application ID of the SEE app identified ...
qcom_scm_qseecom_app_send(9)
NAME qcom_scm_qseecom_app_send - Send to and receive data from a given QSEE app. SYNOPSIS int qcom_scm_qseecom_app_send (u32 app_id , void *req , size_t req_size , void *rsp , size_t rsp_size ); ARGUMENTS app_id The ID of the target app. req Request buffer sent to the app (must be TZ memory) ...
qcom_scm_qseecom_call(9)
NAME qcom_scm_qseecom_call - Perform a QSEECOM SCM call. SYNOPSIS int qcom_scm_qseecom_call (const struct qcom_scm_desc *desc , struct qcom_scm_qseecom_resp *res ); ARGUMENTS desc SCM call descriptor. res SCM call response (output). DESCRIPTION Performs the QSEECOM SCM call described by desc, ...
qcom_scm_qseecom_get_version(9)
NAME qcom_scm_qseecom_get_version - Query the QSEECOM version. SYNOPSIS int qcom_scm_qseecom_get_version (u32 *version ); ARGUMENTS version Pointer where the QSEECOM version will be stored. DESCRIPTION Performs the QSEECOM SCM querying the QSEECOM version currently running in the TrustZone. RETURN Zero on succe...
qcom_scm_qtee_callback_response(9)
NAME qcom_scm_qtee_callback_response - Submit response for callback request. SYNOPSIS int qcom_scm_qtee_callback_response (phys_addr_t buf , size_t buf_size , u64 *result , u64 *response_type ); ARGUMENTS buf start address of memory area used for outbound buffer. buf_size size of the memory area us...
qcom_scm_qtee_invoke_smc(9)
NAME qcom_scm_qtee_invoke_smc - Invoke a QTEE object. SYNOPSIS int qcom_scm_qtee_invoke_smc (phys_addr_t inbuf , size_t inbuf_size , phys_addr_t outbuf , size_t outbuf_size , u64 *result , u64 *response_type ); ARGUMENTS inbuf start address of memory area used for inbound buffer. inbuf_size size of the...
qcom_scm_restore_sec_cfg_available(9)
NAME qcom_scm_restore_sec_cfg_available - Check if secure environment supports restore security config interface. SYNOPSIS bool qcom_scm_restore_sec_cfg_available (void ); ARGUMENTS void no arguments DESCRIPTION Return true if restore-cfg interface is supported, false if not. SEE ALSO Kernel file ./drivers...
qcom_scm_set_cold_boot_addr(9)
NAME qcom_scm_set_cold_boot_addr - Set the cold boot address for all cpus SYNOPSIS int qcom_scm_set_cold_boot_addr (void *entry ); ARGUMENTS entry Entry point function for the cpus SEE ALSO Kernel file ./drivers/firmware/qcom/qcom_scm.c struct qcom_scm_qseecom_resp(9), qcom_scm_call(9), qcom_scm_call_atomic...
qcom_scm_set_warm_boot_addr(9)
NAME qcom_scm_set_warm_boot_addr - Set the warm boot address for all cpus SYNOPSIS int qcom_scm_set_warm_boot_addr (void *entry ); ARGUMENTS entry Entry point function for the cpus DESCRIPTION Set the Linux entry point for the SCM to transfer control to when coming out of a power down. CPU power down may be ex...
qcom_smd_register_edge(9)
NAME qcom_smd_register_edge - register an edge based on an device_node SYNOPSIS struct qcom_smd_edge * qcom_smd_register_edge (struct device *parent , struct device_node *node ); ARGUMENTS parent parent device for the edge node device_node describing the edge RETURN an edge reference, or negative...
qcom_smd_unregister_edge(9)
NAME qcom_smd_unregister_edge - release an edge and its children SYNOPSIS void qcom_smd_unregister_edge (struct qcom_smd_edge *edge ); ARGUMENTS edge edge reference acquired from qcom_smd_register_edge SEE ALSO Kernel file ./drivers/rpmsg/qcom_smd.c struct qcom_smd_edge(9), struct qcom_smd_channel(9), struct ...
qcom_smem_alloc(9)
NAME qcom_smem_alloc - allocate space for a smem item SYNOPSIS int qcom_smem_alloc (unsigned host , unsigned item , size_t size ); ARGUMENTS host remote processor id, or -1 item smem item handle size number of bytes to be allocated DESCRIPTION Allocate space for a given smem item...
qcom_smem_bust_hwspin_lock_by_host(9)
NAME qcom_smem_bust_hwspin_lock_by_host - bust the smem hwspinlock for a host SYNOPSIS int qcom_smem_bust_hwspin_lock_by_host (unsigned int host ); ARGUMENTS host remote processor id DESCRIPTION Busts the hwspin_lock for the given smem host id. This helper is intended for remoteproc drivers that manage remo...
qcom_smem_get(9)
NAME qcom_smem_get - resolve ptr of size of a smem item SYNOPSIS void * qcom_smem_get (unsigned host , unsigned item , size_t *size ); ARGUMENTS host the remote processor, or -1 item smem item handle size pointer to be filled out with size of the item DESCRIPTION Looks up smem it...
qcom_smem_get_feature_code(9)
NAME qcom_smem_get_feature_code - return the feature code SYNOPSIS int qcom_smem_get_feature_code (u32 *code ); ARGUMENTS code On success, return the feature code here. DESCRIPTION Look up the feature code identifier from SMEM and return it. RETURN 0 on success, negative errno on failure. SEE ALSO Kernel f...
qcom_smem_get_free_space(9)
NAME qcom_smem_get_free_space - retrieve amount of free space in a partition SYNOPSIS int qcom_smem_get_free_space (unsigned host ); ARGUMENTS host the remote processor identifying a partition, or -1 DESCRIPTION To be used by smem clients as a quick way to determine if any new allocations has been made. RETU...
qcom_smem_get_soc_id(9)
NAME qcom_smem_get_soc_id - return the SoC ID SYNOPSIS int qcom_smem_get_soc_id (u32 *id ); ARGUMENTS id On success, we return the SoC ID here. DESCRIPTION Look up SoC ID from HW/SW build ID and return it. RETURN 0 on success, negative errno on failure. SEE ALSO Kernel file ./drivers/soc/qcom/smem.c str...
qcom_smem_is_available(9)
NAME qcom_smem_is_available - Check if SMEM is available SYNOPSIS bool qcom_smem_is_available (void ); ARGUMENTS void no arguments RETURN true if SMEM is available, false otherwise. SEE ALSO Kernel file ./drivers/soc/qcom/smem.c struct smem_proc_comm(9), struct smem_global_entry(9), struct smem_header(9), ...
qcom_smem_state_get(9)
NAME qcom_smem_state_get - acquire handle to a state SYNOPSIS struct qcom_smem_state * qcom_smem_state_get (struct device *dev , const char *con_id , unsigned *bit ); ARGUMENTS dev client device pointer con_id name of the state to lookup bit flags from the state reference, indicat...
qcom_smem_state_put(9)
NAME qcom_smem_state_put - release state handle SYNOPSIS void qcom_smem_state_put (struct qcom_smem_state *state ); ARGUMENTS state state handle to be released SEE ALSO Kernel file ./drivers/soc/qcom/smem_state.c struct qcom_smem_state(9), qcom_smem_state_update_bits(9), qcom_smem_state_get(9), devm_qcom_smem_...
qcom_smem_state_register(9)
NAME qcom_smem_state_register - register a new state SYNOPSIS struct qcom_smem_state * qcom_smem_state_register (struct device_node *of_node , const struct qcom_smem_state_ops *ops , void *priv ); ARGUMENTS of_node of_node used for matching client lookups ops implementation ops priv ...
qcom_smem_state_unregister(9)
NAME qcom_smem_state_unregister - unregister a registered state SYNOPSIS void qcom_smem_state_unregister (struct qcom_smem_state *state ); ARGUMENTS state state handle to be unregistered SEE ALSO Kernel file ./drivers/soc/qcom/smem_state.c struct qcom_smem_state(9), qcom_smem_state_update_bits(9), qcom_smem_st...
qcom_smem_state_update_bits(9)
NAME qcom_smem_state_update_bits - update the masked bits in state with value SYNOPSIS int qcom_smem_state_update_bits (struct qcom_smem_state *state , u32 mask , u32 value ); ARGUMENTS state state handle acquired by calling qcom_smem_state_get mask bit mask for the change value new...
qcom_smem_virt_to_phys(9)
NAME qcom_smem_virt_to_phys - return the physical address associated with an smem item pointer (previously returned by qcom_smem_get() SYNOPSIS phys_addr_t qcom_smem_virt_to_phys (void *p ); ARGUMENTS p the virtual address to convert RETURN physical address of the SMEM item (if found), 0 otherwise SEE ALS...
qcom_smp2p_intr(9)
NAME qcom_smp2p_intr - interrupt handler for incoming notifications SYNOPSIS irqreturn_t qcom_smp2p_intr (int irq , void *data ); ARGUMENTS irq unused data smp2p driver context DESCRIPTION Handle notifications from the remote side to handle newly allocated entries or any changes to the state b...
qcom_snd_sdw_startup(9)
NAME qcom_snd_sdw_startup - Helper to start Soundwire stream for SoC audio card SYNOPSIS int qcom_snd_sdw_startup (struct snd_pcm_substream *substream ); ARGUMENTS substream The PCM substream from audio, as passed to snd_soc_ops->startup DESCRIPTION Helper for the SoC audio card (snd_soc_ops->startup) to allocate ...
qcom_submit_descs(9)
NAME qcom_submit_descs - submit dma descriptor SYNOPSIS int qcom_submit_descs (struct qcom_nand_controller *nandc ); ARGUMENTS nandc qpic nand controller DESCRIPTION This function will submit all the prepared dma descriptor cmd or data descriptor SEE ALSO Kernel file ./drivers/mtd/nand/qpic_common.c qcom_free...
qcom_sysmon_shutdown_acked(9)
NAME qcom_sysmon_shutdown_acked - query the success of the last shutdown SYNOPSIS bool qcom_sysmon_shutdown_acked (struct qcom_sysmon *sysmon ); ARGUMENTS sysmon sysmon context DESCRIPTION When sysmon is used to request a graceful shutdown of the remote processor this can be used by the remoteproc driver to que...
qcom_tzmem_alloc(9)
NAME qcom_tzmem_alloc - Allocate a memory chunk suitable for sharing with TZ. SYNOPSIS void * qcom_tzmem_alloc (struct qcom_tzmem_pool *pool , size_t size , gfp_t gfp ); ARGUMENTS pool TZ memory pool from which to allocate memory. size Number of bytes to allocate. gfp GFP flags. ...
qcom_tzmem_free(9)
NAME qcom_tzmem_free - Release a buffer allocated from a TZ memory pool. SYNOPSIS void qcom_tzmem_free (void *vaddr ); ARGUMENTS vaddr Virtual address of the buffer. DESCRIPTION Can be used in any context. SEE ALSO Kernel file ./drivers/firmware/qcom/qcom_tzmem.c qcom_tzmem_shm_bridge_create(9), qcom_tzme...
qcom_tzmem_pool_free(9)
NAME qcom_tzmem_pool_free - Destroy a TZ memory pool and free all resources. SYNOPSIS void qcom_tzmem_pool_free (struct qcom_tzmem_pool *pool ); ARGUMENTS pool Memory pool to free. DESCRIPTION Must not be called if any of the allocated chunks has not been freed. Must not be used in atomic context. SEE ALSO ...
qcom_tzmem_pool_new(9)
NAME qcom_tzmem_pool_new - Create a new TZ memory pool. SYNOPSIS struct qcom_tzmem_pool * qcom_tzmem_pool_new (const struct qcom_tzmem_pool_config *config ); ARGUMENTS config Pool configuration. DESCRIPTION Create a new pool of memory suitable for sharing with the TrustZone. Must not be used in atomic context....
qcom_tzmem_shm_bridge_create(9)
NAME qcom_tzmem_shm_bridge_create - Create a SHM bridge. SYNOPSIS int qcom_tzmem_shm_bridge_create (phys_addr_t paddr , size_t size , u64 *handle ); ARGUMENTS paddr Physical address of the memory to share. size Size of the memory to share. handle Handle to the SHM bridge. DESCRIPTIO...
qcom_tzmem_shm_bridge_delete(9)
NAME qcom_tzmem_shm_bridge_delete - Delete a SHM bridge. SYNOPSIS void qcom_tzmem_shm_bridge_delete (u64 handle ); ARGUMENTS handle Handle to the SHM bridge. DESCRIPTION On platforms that support SHM bridge, this function deletes the SHM bridge for the given memory region. The handle must be the same as the one...
qcom_tzmem_to_phys(9)
NAME qcom_tzmem_to_phys - Map the virtual address of TZ memory to physical. SYNOPSIS phys_addr_t qcom_tzmem_to_phys (void *vaddr ); ARGUMENTS vaddr Virtual address of memory allocated from a TZ memory pool. DESCRIPTION Can be used in any context. The address must point to memory allocated using qcom_tzmem_allo...
qcom_unregister_ssr_notifier(9)
NAME qcom_unregister_ssr_notifier - unregister SSR notification handler SYNOPSIS int qcom_unregister_ssr_notifier (void *notify , struct notifier_block *nb ); ARGUMENTS notify subsystem cookie returned from qcom_register_ssr_notifier nb notifier_block to unregister DESCRIPTION This function wil...
qcom_wcnss_open_channel(9)
NAME qcom_wcnss_open_channel - open additional SMD channel to WCNSS SYNOPSIS struct rpmsg_endpoint * qcom_wcnss_open_channel (void *wcnss , const char *name , rpmsg_rx_cb_t cb , void *priv ); ARGUMENTS wcnss wcnss handle, retrieved from drvdata name SMD channel name cb callback t...
qcom_write_data_dma(9)
NAME qcom_write_data_dma - transfer data SYNOPSIS int qcom_write_data_dma (struct qcom_nand_controller *nandc , int reg_off , const u8 *vaddr , int size , unsigned int flags ); ARGUMENTS nandc qpic nand controller reg_off offset within the controller's data buffer vaddr virtual address...
qcom_write_reg_dma(9)
NAME qcom_write_reg_dma - write a given number of registers SYNOPSIS int qcom_write_reg_dma (struct qcom_nand_controller *nandc , __le32 *vaddr , int first , int num_regs , unsigned int flags ); ARGUMENTS nandc qpic nand controller vaddr contiguous memory from where register value will be written ...
qcomtee_cb_params_from_args(9)
NAME qcomtee_cb_params_from_args - Convert QTEE arguments to TEE parameters. SYNOPSIS int qcomtee_cb_params_from_args (struct tee_param *params , struct qcomtee_arg *u , int num_params , void __user *ubuf_addr , size_t ubuf_size , struct tee_context *ctx ); ARGUMENTS params TEE parameters. u QT...
qcomtee_cb_params_to_args(9)
NAME qcomtee_cb_params_to_args - Convert TEE parameters to QTEE arguments. SYNOPSIS int qcomtee_cb_params_to_args (struct qcomtee_arg *u , struct tee_param *params , int num_params , struct tee_context *ctx ); ARGUMENTS u QTEE arguments. params TEE parameters. num_params number of elem...
qcomtee_context_add_qtee_object(9)
NAME qcomtee_context_add_qtee_object - Add a QTEE object to the context. SYNOPSIS int qcomtee_context_add_qtee_object (struct tee_param *param , struct qcomtee_object *object , struct tee_context *ctx ); ARGUMENTS param TEE parameter representing object. object QTEE object. ctx cont...
qcomtee_context_del_qtee_object(9)
NAME qcomtee_context_del_qtee_object - Delete a QTEE object from the context. SYNOPSIS void qcomtee_context_del_qtee_object (struct tee_param *param , struct tee_context *ctx ); ARGUMENTS param TEE parameter representing object. ctx context for deleting the object. DESCRIPTION The param has bee...
qcomtee_fetch_async_reqs(9)
NAME qcomtee_fetch_async_reqs - Fetch and process asynchronous messages. SYNOPSIS void qcomtee_fetch_async_reqs (struct qcomtee_object_invoke_ctx *oic ); ARGUMENTS oic context used for the current invocation. DESCRIPTION Calls handlers to process the requested operations in the async message. Currently, onl...
qcomtee_get_async_buffer(9)
NAME qcomtee_get_async_buffer - Get the start of the asynchronous message. SYNOPSIS void qcomtee_get_async_buffer (struct qcomtee_object_invoke_ctx *oic , struct qcomtee_buffer *async_buffer ); ARGUMENTS oic context used for the current invocation. async_buffer return buffer to extr...
qcomtee_get_qtee_feature_list(9)
NAME qcomtee_get_qtee_feature_list - Query QTEE features versions. SYNOPSIS void qcomtee_get_qtee_feature_list (struct tee_context *ctx , u32 id , u32 *version ); ARGUMENTS ctx TEE context. id ID of the feature to query. version version of the feature. DESCRIPTION Used to query t...
qcomtee_local_object_get(9)
NAME qcomtee_local_object_get - Get the object referenced by the ID. SYNOPSIS struct qcomtee_object * qcomtee_local_object_get (struct qcomtee_object_invoke_ctx *oic , unsigned int object_id ); ARGUMENTS oic context to use for the invocation. object_id object ID. DESCRIPTION It is called on the pat...
qcomtee_mem_object_map(9)
NAME qcomtee_mem_object_map - Map a memory object. SYNOPSIS int qcomtee_mem_object_map (struct qcomtee_object *object , struct qcomtee_object **map_object , u64 *mem_paddr , u64 *mem_size , u32 *perms ); ARGUMENTS object memory object. map_object created mapping object. mem_paddr physical addr...
qcomtee_memobj_param_to_object(9)
NAME qcomtee_memobj_param_to_object - OBJREF parameter to &struct qcomtee_object. SYNOPSIS int qcomtee_memobj_param_to_object (struct qcomtee_object **object , struct tee_param *param , struct tee_context *ctx ); ARGUMENTS object object returned. param TEE parameter. ctx context in ...
qcomtee_msg_buffers_alloc(9)
NAME qcomtee_msg_buffers_alloc - Allocate inbound and outbound buffers. SYNOPSIS int qcomtee_msg_buffers_alloc (struct qcomtee_object_invoke_ctx *oic , struct qcomtee_arg *u ); ARGUMENTS oic context to use for the current invocation. u array of arguments for the current invocation. DESCRIPT...
qcomtee_object_do_invoke(9)
NAME qcomtee_object_do_invoke - Submit an invocation for an object. SYNOPSIS int qcomtee_object_do_invoke (struct qcomtee_object_invoke_ctx *oic , struct qcomtee_object *object , u32 op , struct qcomtee_arg *u , int *result ); ARGUMENTS oic context to use for the current invocation. object object...
qcomtee_object_do_invoke_internal(9)
NAME qcomtee_object_do_invoke_internal - Submit an invocation for an object. SYNOPSIS int qcomtee_object_do_invoke_internal (struct qcomtee_object_invoke_ctx *oic , struct qcomtee_object *object , u32 op , struct qcomtee_arg *u , int *result ); ARGUMENTS oic context to use for the current invocation. ...
qcomtee_object_get(9)
NAME qcomtee_object_get - Increase the object's reference count. SYNOPSIS int qcomtee_object_get (struct qcomtee_object *object ); ARGUMENTS object object to increase the reference count. CONTEXT The caller should hold RCU read lock. SEE ALSO Kernel file ./drivers/tee/qcomtee/core.c qcomtee_object_put(9), ...
qcomtee_object_get_client_env(9)
NAME qcomtee_object_get_client_env - Get a privileged client env. object. SYNOPSIS struct qcomtee_object * qcomtee_object_get_client_env (struct qcomtee_object_invoke_ctx *oic ); ARGUMENTS oic context to use for the current invocation. DESCRIPTION The caller should call qcomtee_object_put on the returned obj...
qcomtee_object_id_get(9)
NAME qcomtee_object_id_get - Get an ID for an object to send to QTEE. SYNOPSIS int qcomtee_object_id_get (struct qcomtee_object_invoke_ctx *oic , struct qcomtee_object *object , unsigned int *object_id ); ARGUMENTS oic context to use for the invocation. object object to assign an ID. obje...
qcomtee_object_invoke(9)
NAME qcomtee_object_invoke - Invoke a QTEE object. SYNOPSIS int qcomtee_object_invoke (struct tee_context *ctx , struct tee_ioctl_object_invoke_arg *arg , struct tee_param *params ); ARGUMENTS ctx TEE context. arg ioctl arguments. params parameters for the object. RETURN On succe...
qcomtee_object_put(9)
NAME qcomtee_object_put - Decrease the object's reference count. SYNOPSIS void qcomtee_object_put (struct qcomtee_object *object ); ARGUMENTS object object to decrease the reference count. SEE ALSO Kernel file ./drivers/tee/qcomtee/core.c qcomtee_object_get(9), qcomtee_object_id_get(9), qcomtee_local_objec...
qcomtee_object_qtee_init(9)
NAME qcomtee_object_qtee_init - Initialize an object for QTEE. SYNOPSIS int qcomtee_object_qtee_init (struct qcomtee_object_invoke_ctx *oic , struct qcomtee_object **object , unsigned int object_id ); ARGUMENTS oic context to use for the invocation. object object returned. object_id obj...
qcomtee_object_type(9)
NAME qcomtee_object_type - Returns the type of object represented by an ID. SYNOPSIS enum qcomtee_object_type qcomtee_object_type (unsigned int object_id ); ARGUMENTS object_id object ID for the object. DESCRIPTION Similar to typeof_qcomtee_object, but instead of receiving an object as an argument, it receives an ...
qcomtee_object_user_init(9)
NAME qcomtee_object_user_init - Initialize an object for the user. SYNOPSIS int qcomtee_object_user_init (struct qcomtee_object *object , enum qcomtee_object_type ot , struct qcomtee_object_operations *ops , const char *fmt , ... ); ARGUMENTS object object to initialize. ot type of object as enu...
qcomtee_objref_from_arg(9)
NAME qcomtee_objref_from_arg - Convert QTEE argument to OBJREF param. SYNOPSIS int qcomtee_objref_from_arg (struct tee_param *param , struct qcomtee_arg *arg , struct tee_context *ctx ); ARGUMENTS param TEE parameter. arg QTEE argument. ctx context in which the conversion should ...
qcomtee_objref_to_arg(9)
NAME qcomtee_objref_to_arg - Convert OBJREF parameter to QTEE argument. SYNOPSIS int qcomtee_objref_to_arg (struct qcomtee_arg *arg , struct tee_param *param , struct tee_context *ctx ); ARGUMENTS arg QTEE argument. param TEE parameter. ctx context in which the conversion should ...
qcomtee_params_from_args(9)
NAME qcomtee_params_from_args - Convert QTEE arguments to TEE parameters. SYNOPSIS int qcomtee_params_from_args (struct tee_param *params , struct qcomtee_arg *u , int num_params , struct tee_context *ctx ); ARGUMENTS params TEE parameters. u QTEE arguments. num_params number of elemen...
qcomtee_params_to_args(9)
NAME qcomtee_params_to_args - Convert TEE parameters to QTEE arguments. SYNOPSIS int qcomtee_params_to_args (struct qcomtee_arg *u , struct tee_param *params , int num_params , struct tee_context *ctx ); ARGUMENTS u QTEE arguments. params TEE parameters. num_params number of elements i...
qcomtee_prepare_args(9)
NAME qcomtee_prepare_args - Parse the QTEE request from the outbound buffer. SYNOPSIS int qcomtee_prepare_args (struct qcomtee_object_invoke_ctx *oic ); ARGUMENTS oic context to use for the invocation. DESCRIPTION It initializes qcomtee_object_invoke_ctx->u based on the QTEE request in the outbound buffer. ...
qcomtee_qtee_objects_put(9)
NAME qcomtee_qtee_objects_put - Put the callback objects in the argument array. SYNOPSIS void qcomtee_qtee_objects_put (struct qcomtee_arg *u ); ARGUMENTS u array of arguments. DESCRIPTION When qcomtee_object_do_invoke_internal is successfully invoked, QTEE takes ownership of the callback objects. If the ...
qcomtee_remove(9)
NAME qcomtee_remove - Device Removal Routine. SYNOPSIS void qcomtee_remove (struct platform_device *pdev ); ARGUMENTS pdev platform device information struct. DESCRIPTION It is called by the platform subsystem to alert the driver that it should release the device. QTEE does not provide an API to inform it ab...