Lines Matching refs:desc
84 const struct qcom_scm_desc *desc, in qcom_scm_call() argument
87 int arglen = desc->arginfo & 0xf; in qcom_scm_call()
90 u64 cmd, x5 = desc->args[FIRST_EXT_ARG_IDX]; in qcom_scm_call()
107 args[i] = cpu_to_le32(desc->args[i + in qcom_scm_call()
113 args[i] = cpu_to_le64(desc->args[i + in qcom_scm_call()
138 arm_smccc_smc_quirk(cmd, desc->arginfo, desc->args[0], in qcom_scm_call()
139 desc->args[1], desc->args[2], x5, in qcom_scm_call()
210 struct qcom_scm_desc desc = {0}; in __qcom_scm_is_call_available() local
213 desc.arginfo = QCOM_SCM_ARGS(1); in __qcom_scm_is_call_available()
214 desc.args[0] = QCOM_SCM_FNID(svc_id, cmd_id) | in __qcom_scm_is_call_available()
218 &desc, &res); in __qcom_scm_is_call_available()
227 struct qcom_scm_desc desc = {0}; in __qcom_scm_hdcp_req() local
233 desc.args[0] = req[0].addr; in __qcom_scm_hdcp_req()
234 desc.args[1] = req[0].val; in __qcom_scm_hdcp_req()
235 desc.args[2] = req[1].addr; in __qcom_scm_hdcp_req()
236 desc.args[3] = req[1].val; in __qcom_scm_hdcp_req()
237 desc.args[4] = req[2].addr; in __qcom_scm_hdcp_req()
238 desc.args[5] = req[2].val; in __qcom_scm_hdcp_req()
239 desc.args[6] = req[3].addr; in __qcom_scm_hdcp_req()
240 desc.args[7] = req[3].val; in __qcom_scm_hdcp_req()
241 desc.args[8] = req[4].addr; in __qcom_scm_hdcp_req()
242 desc.args[9] = req[4].val; in __qcom_scm_hdcp_req()
243 desc.arginfo = QCOM_SCM_ARGS(10); in __qcom_scm_hdcp_req()
245 ret = qcom_scm_call(dev, QCOM_SCM_SVC_HDCP, QCOM_SCM_CMD_HDCP, &desc, in __qcom_scm_hdcp_req()
274 struct qcom_scm_desc desc = {0}; in __qcom_scm_pas_supported() local
277 desc.args[0] = peripheral; in __qcom_scm_pas_supported()
278 desc.arginfo = QCOM_SCM_ARGS(1); in __qcom_scm_pas_supported()
282 &desc, &res); in __qcom_scm_pas_supported()
291 struct qcom_scm_desc desc = {0}; in __qcom_scm_pas_init_image() local
294 desc.args[0] = peripheral; in __qcom_scm_pas_init_image()
295 desc.args[1] = metadata_phys; in __qcom_scm_pas_init_image()
296 desc.arginfo = QCOM_SCM_ARGS(2, QCOM_SCM_VAL, QCOM_SCM_RW); in __qcom_scm_pas_init_image()
299 &desc, &res); in __qcom_scm_pas_init_image()
308 struct qcom_scm_desc desc = {0}; in __qcom_scm_pas_mem_setup() local
311 desc.args[0] = peripheral; in __qcom_scm_pas_mem_setup()
312 desc.args[1] = addr; in __qcom_scm_pas_mem_setup()
313 desc.args[2] = size; in __qcom_scm_pas_mem_setup()
314 desc.arginfo = QCOM_SCM_ARGS(3); in __qcom_scm_pas_mem_setup()
317 &desc, &res); in __qcom_scm_pas_mem_setup()
325 struct qcom_scm_desc desc = {0}; in __qcom_scm_pas_auth_and_reset() local
328 desc.args[0] = peripheral; in __qcom_scm_pas_auth_and_reset()
329 desc.arginfo = QCOM_SCM_ARGS(1); in __qcom_scm_pas_auth_and_reset()
333 &desc, &res); in __qcom_scm_pas_auth_and_reset()
341 struct qcom_scm_desc desc = {0}; in __qcom_scm_pas_shutdown() local
344 desc.args[0] = peripheral; in __qcom_scm_pas_shutdown()
345 desc.arginfo = QCOM_SCM_ARGS(1); in __qcom_scm_pas_shutdown()
348 &desc, &res); in __qcom_scm_pas_shutdown()
355 struct qcom_scm_desc desc = {0}; in __qcom_scm_pas_mss_reset() local
359 desc.args[0] = reset; in __qcom_scm_pas_mss_reset()
360 desc.args[1] = 0; in __qcom_scm_pas_mss_reset()
361 desc.arginfo = QCOM_SCM_ARGS(2); in __qcom_scm_pas_mss_reset()
363 ret = qcom_scm_call(dev, QCOM_SCM_SVC_PIL, QCOM_SCM_PAS_MSS_RESET, &desc, in __qcom_scm_pas_mss_reset()
371 struct qcom_scm_desc desc = {0}; in __qcom_scm_set_remote_state() local
375 desc.args[0] = state; in __qcom_scm_set_remote_state()
376 desc.args[1] = id; in __qcom_scm_set_remote_state()
377 desc.arginfo = QCOM_SCM_ARGS(2); in __qcom_scm_set_remote_state()
380 &desc, &res); in __qcom_scm_set_remote_state()
390 struct qcom_scm_desc desc = {0}; in __qcom_scm_assign_mem() local
393 desc.args[0] = mem_region; in __qcom_scm_assign_mem()
394 desc.args[1] = mem_sz; in __qcom_scm_assign_mem()
395 desc.args[2] = src; in __qcom_scm_assign_mem()
396 desc.args[3] = src_sz; in __qcom_scm_assign_mem()
397 desc.args[4] = dest; in __qcom_scm_assign_mem()
398 desc.args[5] = dest_sz; in __qcom_scm_assign_mem()
399 desc.args[6] = 0; in __qcom_scm_assign_mem()
401 desc.arginfo = QCOM_SCM_ARGS(7, QCOM_SCM_RO, QCOM_SCM_VAL, in __qcom_scm_assign_mem()
407 &desc, &res); in __qcom_scm_assign_mem()
414 struct qcom_scm_desc desc = {0}; in __qcom_scm_restore_sec_cfg() local
418 desc.args[0] = device_id; in __qcom_scm_restore_sec_cfg()
419 desc.args[1] = spare; in __qcom_scm_restore_sec_cfg()
420 desc.arginfo = QCOM_SCM_ARGS(2); in __qcom_scm_restore_sec_cfg()
423 &desc, &res); in __qcom_scm_restore_sec_cfg()
431 struct qcom_scm_desc desc = {0}; in __qcom_scm_iommu_secure_ptbl_size() local
435 desc.args[0] = spare; in __qcom_scm_iommu_secure_ptbl_size()
436 desc.arginfo = QCOM_SCM_ARGS(1); in __qcom_scm_iommu_secure_ptbl_size()
439 QCOM_SCM_IOMMU_SECURE_PTBL_SIZE, &desc, &res); in __qcom_scm_iommu_secure_ptbl_size()
450 struct qcom_scm_desc desc = {0}; in __qcom_scm_iommu_secure_ptbl_init() local
454 desc.args[0] = addr; in __qcom_scm_iommu_secure_ptbl_init()
455 desc.args[1] = size; in __qcom_scm_iommu_secure_ptbl_init()
456 desc.args[2] = spare; in __qcom_scm_iommu_secure_ptbl_init()
457 desc.arginfo = QCOM_SCM_ARGS(3, QCOM_SCM_RW, QCOM_SCM_VAL, in __qcom_scm_iommu_secure_ptbl_init()
461 QCOM_SCM_IOMMU_SECURE_PTBL_INIT, &desc, &res); in __qcom_scm_iommu_secure_ptbl_init()
472 struct qcom_scm_desc desc = {0}; in __qcom_scm_set_dload_mode() local
475 desc.args[0] = QCOM_SCM_SET_DLOAD_MODE; in __qcom_scm_set_dload_mode()
476 desc.args[1] = enable ? QCOM_SCM_SET_DLOAD_MODE : 0; in __qcom_scm_set_dload_mode()
477 desc.arginfo = QCOM_SCM_ARGS(2); in __qcom_scm_set_dload_mode()
480 &desc, &res); in __qcom_scm_set_dload_mode()
486 struct qcom_scm_desc desc = {0}; in __qcom_scm_io_readl() local
490 desc.args[0] = addr; in __qcom_scm_io_readl()
491 desc.arginfo = QCOM_SCM_ARGS(1); in __qcom_scm_io_readl()
494 &desc, &res); in __qcom_scm_io_readl()
503 struct qcom_scm_desc desc = {0}; in __qcom_scm_io_writel() local
506 desc.args[0] = addr; in __qcom_scm_io_writel()
507 desc.args[1] = val; in __qcom_scm_io_writel()
508 desc.arginfo = QCOM_SCM_ARGS(2); in __qcom_scm_io_writel()
511 &desc, &res); in __qcom_scm_io_writel()