Lines Matching refs:psp
112 int (*init_microcode)(struct psp_context *psp);
113 int (*bootloader_load_kdb)(struct psp_context *psp);
114 int (*bootloader_load_spl)(struct psp_context *psp);
115 int (*bootloader_load_sysdrv)(struct psp_context *psp);
116 int (*bootloader_load_soc_drv)(struct psp_context *psp);
117 int (*bootloader_load_intf_drv)(struct psp_context *psp);
118 int (*bootloader_load_dbg_drv)(struct psp_context *psp);
119 int (*bootloader_load_ras_drv)(struct psp_context *psp);
120 int (*bootloader_load_sos)(struct psp_context *psp);
121 int (*ring_init)(struct psp_context *psp, enum psp_ring_type ring_type);
122 int (*ring_create)(struct psp_context *psp,
124 int (*ring_stop)(struct psp_context *psp,
126 int (*ring_destroy)(struct psp_context *psp,
128 bool (*smu_reload_quirk)(struct psp_context *psp);
129 int (*mode1_reset)(struct psp_context *psp);
130 int (*mem_training)(struct psp_context *psp, uint32_t ops);
131 uint32_t (*ring_get_wptr)(struct psp_context *psp);
132 void (*ring_set_wptr)(struct psp_context *psp, uint32_t value);
133 int (*load_usbc_pd_fw)(struct psp_context *psp, uint64_t fw_pri_mc_addr);
134 int (*read_usbc_pd_fw)(struct psp_context *psp, uint32_t *fw_ver);
135 int (*update_spirom)(struct psp_context *psp, uint64_t fw_pri_mc_addr);
136 int (*vbflash_stat)(struct psp_context *psp);
392 #define psp_ring_init(psp, type) (psp)->funcs->ring_init((psp), (type)) argument
393 #define psp_ring_create(psp, type) (psp)->funcs->ring_create((psp), (type)) argument
394 #define psp_ring_stop(psp, type) (psp)->funcs->ring_stop((psp), (type)) argument
395 #define psp_ring_destroy(psp, type) ((psp)->funcs->ring_destroy((psp), (type))) argument
396 #define psp_init_microcode(psp) \ argument
397 ((psp)->funcs->init_microcode ? (psp)->funcs->init_microcode((psp)) : 0)
398 #define psp_bootloader_load_kdb(psp) \ argument
399 ((psp)->funcs->bootloader_load_kdb ? (psp)->funcs->bootloader_load_kdb((psp)) : 0)
400 #define psp_bootloader_load_spl(psp) \ argument
401 ((psp)->funcs->bootloader_load_spl ? (psp)->funcs->bootloader_load_spl((psp)) : 0)
402 #define psp_bootloader_load_sysdrv(psp) \ argument
403 ((psp)->funcs->bootloader_load_sysdrv ? (psp)->funcs->bootloader_load_sysdrv((psp)) : 0)
404 #define psp_bootloader_load_soc_drv(psp) \ argument
405 ((psp)->funcs->bootloader_load_soc_drv ? (psp)->funcs->bootloader_load_soc_drv((psp)) : 0)
406 #define psp_bootloader_load_intf_drv(psp) \ argument
407 ((psp)->funcs->bootloader_load_intf_drv ? (psp)->funcs->bootloader_load_intf_drv((psp)) : 0)
408 #define psp_bootloader_load_dbg_drv(psp) \ argument
409 ((psp)->funcs->bootloader_load_dbg_drv ? (psp)->funcs->bootloader_load_dbg_drv((psp)) : 0)
410 #define psp_bootloader_load_ras_drv(psp) \ argument
411 ((psp)->funcs->bootloader_load_ras_drv ? \
412 (psp)->funcs->bootloader_load_ras_drv((psp)) : 0)
413 #define psp_bootloader_load_sos(psp) \ argument
414 ((psp)->funcs->bootloader_load_sos ? (psp)->funcs->bootloader_load_sos((psp)) : 0)
415 #define psp_smu_reload_quirk(psp) \ argument
416 ((psp)->funcs->smu_reload_quirk ? (psp)->funcs->smu_reload_quirk((psp)) : false)
417 #define psp_mode1_reset(psp) \ argument
418 ((psp)->funcs->mode1_reset ? (psp)->funcs->mode1_reset((psp)) : false)
419 #define psp_mem_training(psp, ops) \ argument
420 ((psp)->funcs->mem_training ? (psp)->funcs->mem_training((psp), (ops)) : 0)
422 #define psp_ring_get_wptr(psp) (psp)->funcs->ring_get_wptr((psp)) argument
423 #define psp_ring_set_wptr(psp, value) (psp)->funcs->ring_set_wptr((psp), (value)) argument
425 #define psp_load_usbc_pd_fw(psp, fw_pri_mc_addr) \ argument
426 ((psp)->funcs->load_usbc_pd_fw ? \
427 (psp)->funcs->load_usbc_pd_fw((psp), (fw_pri_mc_addr)) : -EINVAL)
429 #define psp_read_usbc_pd_fw(psp, fw_ver) \ argument
430 ((psp)->funcs->read_usbc_pd_fw ? \
431 (psp)->funcs->read_usbc_pd_fw((psp), fw_ver) : -EINVAL)
433 #define psp_update_spirom(psp, fw_pri_mc_addr) \ argument
434 ((psp)->funcs->update_spirom ? \
435 (psp)->funcs->update_spirom((psp), fw_pri_mc_addr) : -EINVAL)
437 #define psp_vbflash_status(psp) \ argument
438 ((psp)->funcs->vbflash_stat ? \
439 (psp)->funcs->vbflash_stat((psp)) : -EINVAL)
451 extern int psp_wait_for(struct psp_context *psp, uint32_t reg_index,
458 int psp_ta_init_shared_buf(struct psp_context *psp,
461 int psp_ta_unload(struct psp_context *psp, struct ta_context *context);
462 int psp_ta_load(struct psp_context *psp, struct ta_context *context);
463 int psp_ta_invoke(struct psp_context *psp,
466 int psp_ta_invoke_indirect(struct psp_context *psp,
470 int psp_xgmi_initialize(struct psp_context *psp, bool set_extended_data, bool load_ta);
471 int psp_xgmi_terminate(struct psp_context *psp);
472 int psp_xgmi_invoke(struct psp_context *psp, uint32_t ta_cmd_id);
473 int psp_xgmi_get_hive_id(struct psp_context *psp, uint64_t *hive_id);
474 int psp_xgmi_get_node_id(struct psp_context *psp, uint64_t *node_id);
475 int psp_xgmi_get_topology_info(struct psp_context *psp,
479 int psp_xgmi_set_topology_info(struct psp_context *psp,
483 int psp_ras_invoke(struct psp_context *psp, uint32_t ta_cmd_id);
484 int psp_ras_enable_features(struct psp_context *psp,
486 int psp_ras_trigger_error(struct psp_context *psp,
488 int psp_ras_terminate(struct psp_context *psp);
490 int psp_hdcp_invoke(struct psp_context *psp, uint32_t ta_cmd_id);
491 int psp_dtm_invoke(struct psp_context *psp, uint32_t ta_cmd_id);
492 int psp_rap_invoke(struct psp_context *psp, uint32_t ta_cmd_id, enum ta_rap_status *status);
493 int psp_securedisplay_invoke(struct psp_context *psp, uint32_t ta_cmd_id);
495 int psp_rlc_autoload_start(struct psp_context *psp);
497 int psp_reg_program(struct psp_context *psp, enum psp_reg_prog_id reg,
499 int psp_ring_cmd_submit(struct psp_context *psp,
503 int psp_init_asd_microcode(struct psp_context *psp,
505 int psp_init_toc_microcode(struct psp_context *psp,
507 int psp_init_sos_microcode(struct psp_context *psp,
509 int psp_init_ta_microcode(struct psp_context *psp,
511 int psp_init_cap_microcode(struct psp_context *psp,
513 int psp_get_fw_attestation_records_addr(struct psp_context *psp,
516 int psp_load_fw_list(struct psp_context *psp,
518 void psp_copy_fw(struct psp_context *psp, uint8_t *start_addr, uint32_t bin_size);