Home
last modified time | relevance | path

Searched refs:psp (Results 1 – 25 of 212) sorted by relevance

123456789

/openbmc/linux/drivers/crypto/ccp/
H A Dpsp-dev.c27 psp = devm_kzalloc(dev, sizeof(*psp), GFP_KERNEL); in psp_alloc_struct()
28 if (!psp) in psp_alloc_struct()
32 psp->sp = sp; in psp_alloc_struct()
34 snprintf(psp->name, sizeof(psp->name), "psp-%u", sp->ord); in psp_alloc_struct()
36 return psp; in psp_alloc_struct()
53 psp->sev_irq_handler(irq, psp->sev_irq_data, status); in psp_irq_handler()
154 if (!psp) in psp_dev_init()
177 ret = sp_request_psp_irq(psp->sp, psp_irq_handler, psp->name, psp); in psp_dev_init()
185 psp->sp->set_psp_master_device(psp->sp); in psp_dev_init()
202 sp_free_psp_irq(psp->sp, psp); in psp_dev_init()
[all …]
H A Dplatform-access.c47 struct psp_device *psp = psp_get_master_device(); in psp_check_platform_access_status() local
49 if (!psp || !psp->platform_access_data) in psp_check_platform_access_status()
66 if (!psp || !psp->platform_access_data) in psp_send_platform_access_msg()
69 pa_dev = psp->platform_access_data; in psp_send_platform_access_msg()
75 cmd = psp->io_regs + pa_dev->vdata->cmdresp_reg; in psp_send_platform_access_msg()
155 if (!psp || !psp->platform_access_data) in psp_ring_platform_doorbell()
158 pa_dev = psp->platform_access_data; in psp_ring_platform_doorbell()
203 psp->platform_access_data = NULL; in platform_access_dev_destroy()
208 struct device *dev = psp->dev; in platform_access_dev_init()
215 psp->platform_access_data = pa_dev; in platform_access_dev_init()
[all …]
H A Dtee-dev.c192 int tee_dev_init(struct psp_device *psp) in tee_dev_init() argument
194 struct device *dev = psp->dev; in tee_dev_init()
203 psp->tee_data = tee; in tee_dev_init()
206 tee->psp = psp; in tee_dev_init()
208 tee->io_regs = psp->io_regs; in tee_dev_init()
228 psp->tee_data = NULL; in tee_dev_init()
235 void tee_dev_destroy(struct psp_device *psp) in tee_dev_destroy() argument
237 struct psp_tee_device *tee = psp->tee_data; in tee_dev_destroy()
361 if (!psp || !psp->tee_data) in psp_tee_process_cmd()
367 tee = psp->tee_data; in psp_tee_process_cmd()
[all …]
H A Ddbc.c13 u32 psp; member
54 for (i = 0; error_codes[i].psp; i++) { in send_dbc_cmd()
55 if (dbc_dev->mbox->req.header.status == error_codes[i].psp) in send_dbc_cmd()
101 void dbc_dev_destroy(struct psp_device *psp) in dbc_dev_destroy() argument
103 struct psp_dbc_device *dbc_dev = psp->dbc_data; in dbc_dev_destroy()
110 psp->dbc_data = NULL; in dbc_dev_destroy()
194 int dbc_dev_init(struct psp_device *psp) in dbc_dev_init() argument
196 struct device *dev = psp->dev; in dbc_dev_init()
200 if (!PSP_FEATURE(psp, DBC)) in dbc_dev_init()
214 psp->dbc_data = dbc_dev; in dbc_dev_init()
[all …]
H A Dsp-pci.c47 struct psp_device *psp = sp->psp_data; \
85 struct psp_device *psp = sp->psp_data; in psp_security_is_visible() local
87 if (psp && (psp->capability & PSP_CAPABILITY_PSP_SECURITY_REPORTING)) in psp_security_is_visible()
103 struct psp_device *psp = sp->psp_data; \
127 struct psp_device *psp = sp->psp_data; in psp_firmware_is_visible() local
130 if (!psp) in psp_firmware_is_visible()
134 psp->vdata->bootloader_info_reg) in psp_firmware_is_visible()
135 val = ioread32(psp->io_regs + psp->vdata->bootloader_info_reg); in psp_firmware_is_visible()
138 psp->capability & PSP_CAPABILITY_TEE && in psp_firmware_is_visible()
139 psp->vdata->tee->info_reg) in psp_firmware_is_visible()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_psp.h402 #define psp_ring_create(psp, type) (psp)->funcs->ring_create((psp), (type)) argument
403 #define psp_ring_stop(psp, type) (psp)->funcs->ring_stop((psp), (type)) argument
404 #define psp_ring_destroy(psp, type) ((psp)->funcs->ring_destroy((psp), (type))) argument
406 ((psp)->funcs->init_microcode ? (psp)->funcs->init_microcode((psp)) : 0)
408 ((psp)->funcs->bootloader_load_kdb ? (psp)->funcs->bootloader_load_kdb((psp)) : 0)
425 ((psp)->funcs->smu_reload_quirk ? (psp)->funcs->smu_reload_quirk((psp)) : false)
427 ((psp)->funcs->mode1_reset ? (psp)->funcs->mode1_reset((psp)) : false)
429 ((psp)->funcs->mem_training ? (psp)->funcs->mem_training((psp), (ops)) : 0)
431 #define psp_ring_get_wptr(psp) (psp)->funcs->ring_get_wptr((psp)) argument
432 #define psp_ring_set_wptr(psp, value) (psp)->funcs->ring_set_wptr((psp), (value)) argument
[all …]
H A Damdgpu_psp.c163 struct psp_context *psp = &adev->psp; in psp_early_init() local
402 struct psp_context *psp = &adev->psp; in psp_sw_init() local
508 struct psp_context *psp = &adev->psp; in psp_sw_fini() local
760 psp_copy_fw(psp, psp->toc.start_addr, psp->toc.size_bytes); in psp_load_toc()
856 psp_prep_tmr_cmd_buf(psp, cmd, psp->tmr_mc_addr, psp->tmr_bo); in psp_tmr_load()
938 struct psp_context *psp = &adev->psp; in psp_boot_config_get() local
964 struct psp_context *psp = &adev->psp; in psp_boot_config_set() local
987 struct psp_context *psp = &adev->psp; in psp_rl_load() local
996 memcpy(psp->fw_pri_buf, psp->rl.start_addr, psp->rl.size_bytes); in psp_rl_load()
2086 struct psp_context *psp = &adev->psp; in amdgpu_psp_wait_for_bootloader() local
[all …]
H A Dpsp_v13_0_4.c79 ret = psp_wait_for(psp, in psp_v13_0_4_wait_for_bootloader()
103 if (psp_v13_0_4_is_sos_alive(psp)) in psp_v13_0_4_bootloader_load_component()
129 return psp_v13_0_4_bootloader_load_component(psp, &psp->kdb, PSP_BL__LOAD_KEY_DATABASE); in psp_v13_0_4_bootloader_load_kdb()
134 return psp_v13_0_4_bootloader_load_component(psp, &psp->kdb, PSP_BL__LOAD_TOS_SPL_TABLE); in psp_v13_0_4_bootloader_load_spl()
139 return psp_v13_0_4_bootloader_load_component(psp, &psp->sys, PSP_BL__LOAD_SYSDRV); in psp_v13_0_4_bootloader_load_sysdrv()
144 return psp_v13_0_4_bootloader_load_component(psp, &psp->soc_drv, PSP_BL__LOAD_SOCDRV); in psp_v13_0_4_bootloader_load_soc_drv()
149 return psp_v13_0_4_bootloader_load_component(psp, &psp->intf_drv, PSP_BL__LOAD_INTFDRV); in psp_v13_0_4_bootloader_load_intf_drv()
154 return psp_v13_0_4_bootloader_load_component(psp, &psp->dbg_drv, PSP_BL__LOAD_DBGDRV); in psp_v13_0_4_bootloader_load_dbg_drv()
166 if (psp_v13_0_4_is_sos_alive(psp)) in psp_v13_0_4_bootloader_load_sos()
176 memcpy(psp->fw_pri_buf, psp->sos.start_addr, psp->sos.size_bytes); in psp_v13_0_4_bootloader_load_sos()
[all …]
H A Dpsp_v13_0.c211 if (psp_v13_0_is_sos_alive(psp)) in psp_v13_0_bootloader_load_component()
237 return psp_v13_0_bootloader_load_component(psp, &psp->kdb, PSP_BL__LOAD_KEY_DATABASE); in psp_v13_0_bootloader_load_kdb()
242 return psp_v13_0_bootloader_load_component(psp, &psp->kdb, PSP_BL__LOAD_TOS_SPL_TABLE); in psp_v13_0_bootloader_load_spl()
247 return psp_v13_0_bootloader_load_component(psp, &psp->sys, PSP_BL__LOAD_SYSDRV); in psp_v13_0_bootloader_load_sysdrv()
252 return psp_v13_0_bootloader_load_component(psp, &psp->soc_drv, PSP_BL__LOAD_SOCDRV); in psp_v13_0_bootloader_load_soc_drv()
257 return psp_v13_0_bootloader_load_component(psp, &psp->intf_drv, PSP_BL__LOAD_INTFDRV); in psp_v13_0_bootloader_load_intf_drv()
262 return psp_v13_0_bootloader_load_component(psp, &psp->dbg_drv, PSP_BL__LOAD_DBGDRV); in psp_v13_0_bootloader_load_dbg_drv()
267 return psp_v13_0_bootloader_load_component(psp, &psp->ras_drv, PSP_BL__LOAD_RASDRV); in psp_v13_0_bootloader_load_ras_drv()
290 memcpy(psp->fw_pri_buf, psp->sos.start_addr, psp->sos.size_bytes); in psp_v13_0_bootloader_load_sos()
718 psp->vbflash_done = true; in psp_v13_0_update_spirom()
[all …]
H A Dpsp_v11_0.c154 ret = psp_wait_for(psp, in psp_v11_0_wait_for_bootloader()
188 if (psp_v11_0_is_sos_alive(psp)) in psp_v11_0_bootloader_load_component()
212 return psp_v11_0_bootloader_load_component(psp, &psp->kdb, PSP_BL__LOAD_KEY_DATABASE); in psp_v11_0_bootloader_load_kdb()
217 return psp_v11_0_bootloader_load_component(psp, &psp->spl, PSP_BL__LOAD_TOS_SPL_TABLE); in psp_v11_0_bootloader_load_spl()
222 return psp_v11_0_bootloader_load_component(psp, &psp->sys, PSP_BL__LOAD_SYSDRV); in psp_v11_0_bootloader_load_sysdrv()
234 if (psp_v11_0_is_sos_alive(psp)) in psp_v11_0_bootloader_load_sos()
242 psp_copy_fw(psp, psp->sos.start_addr, psp->sos.size_bytes); in psp_v11_0_bootloader_load_sos()
461 if (psp_v11_0_is_sos_alive(psp)) { in psp_v11_0_memory_training()
570 data = psp->km_ring.ring_wptr; in psp_v11_0_ring_get_wptr()
584 psp->km_ring.ring_wptr = value; in psp_v11_0_ring_set_wptr()
[all …]
H A Dpsp_v3_1.c59 struct amdgpu_device *adev = psp->adev; in psp_v3_1_init_microcode()
82 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sysdrv()
99 psp_copy_fw(psp, psp->sys.start_addr, psp->sys.size_bytes); in psp_v3_1_bootloader_load_sysdrv()
121 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sos()
138 psp_copy_fw(psp, psp->sos.start_addr, psp->sos.size_bytes); in psp_v3_1_bootloader_load_sos()
157 struct amdgpu_device *adev = psp->adev; in psp_v3_1_reroute_ih()
191 struct psp_ring *ring = &psp->km_ring; in psp_v3_1_ring_create()
194 psp_v3_1_reroute_ih(psp); in psp_v3_1_ring_create()
346 data = psp->km_ring.ring_wptr; in psp_v3_1_ring_get_wptr()
361 psp->km_ring.ring_wptr = value; in psp_v3_1_ring_set_wptr()
[all …]
H A Dpsp_v12_0.c50 struct amdgpu_device *adev = psp->adev; in psp_v12_0_init_microcode()
76 struct amdgpu_device *adev = psp->adev; in psp_v12_0_bootloader_load_sysdrv()
93 psp_copy_fw(psp, psp->sys.start_addr, psp->sys.size_bytes); in psp_v12_0_bootloader_load_sysdrv()
115 struct amdgpu_device *adev = psp->adev; in psp_v12_0_bootloader_load_sos()
132 psp_copy_fw(psp, psp->sos.start_addr, psp->sos.size_bytes); in psp_v12_0_bootloader_load_sos()
152 struct amdgpu_device *adev = psp->adev; in psp_v12_0_reroute_ih()
186 struct psp_ring *ring = &psp->km_ring; in psp_v12_0_ring_create()
189 psp_v12_0_reroute_ih(psp); in psp_v12_0_ring_create()
191 if (amdgpu_sriov_vf(psp->adev)) { in psp_v12_0_ring_create()
268 struct psp_ring *ring = &psp->km_ring; in psp_v12_0_ring_destroy()
[all …]
H A Dpsp_v10_0.c49 struct amdgpu_device *adev = psp->adev; in psp_v10_0_init_microcode()
60 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v10_0_init_microcode()
74 struct psp_ring *ring = &psp->km_ring; in psp_v10_0_ring_create()
75 struct amdgpu_device *adev = psp->adev; in psp_v10_0_ring_create()
106 struct amdgpu_device *adev = psp->adev; in psp_v10_0_ring_stop()
126 struct psp_ring *ring = &psp->km_ring; in psp_v10_0_ring_destroy()
127 struct amdgpu_device *adev = psp->adev; in psp_v10_0_ring_destroy()
129 ret = psp_v10_0_ring_stop(psp, ring_type); in psp_v10_0_ring_destroy()
148 struct amdgpu_device *adev = psp->adev; in psp_v10_0_ring_get_wptr()
155 struct amdgpu_device *adev = psp->adev; in psp_v10_0_ring_set_wptr()
[all …]
H A Damdgpu_securedisplay.c55 dev_err(psp->adev->dev, "Secure display: Generic Failure."); in psp_securedisplay_parse_resp_status()
58 dev_err(psp->adev->dev, "Secure display: Invalid Parameter."); in psp_securedisplay_parse_resp_status()
61 dev_err(psp->adev->dev, "Secure display: Null Pointer."); in psp_securedisplay_parse_resp_status()
95 struct psp_context *psp = &adev->psp; in amdgpu_securedisplay_debugfs_write() local
124 mutex_lock(&psp->securedisplay_context.mutex); in amdgpu_securedisplay_debugfs_write()
125 psp_prep_securedisplay_cmd_buf(psp, &securedisplay_cmd, in amdgpu_securedisplay_debugfs_write()
135 mutex_unlock(&psp->securedisplay_context.mutex); in amdgpu_securedisplay_debugfs_write()
142 mutex_lock(&psp->securedisplay_context.mutex); in amdgpu_securedisplay_debugfs_write()
143 psp_prep_securedisplay_cmd_buf(psp, &securedisplay_cmd, in amdgpu_securedisplay_debugfs_write()
156 mutex_unlock(&psp->securedisplay_context.mutex); in amdgpu_securedisplay_debugfs_write()
[all …]
H A Dpsp_v11_0_8.c31 static int psp_v11_0_8_ring_stop(struct psp_context *psp, in psp_v11_0_8_ring_stop() argument
35 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_stop()
65 struct psp_ring *ring = &psp->km_ring; in psp_v11_0_8_ring_create()
66 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_create()
69 ret = psp_v11_0_8_ring_stop(psp, ring_type); in psp_v11_0_8_ring_create()
131 struct psp_ring *ring = &psp->km_ring; in psp_v11_0_8_ring_destroy()
132 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_destroy()
134 ret = psp_v11_0_8_ring_stop(psp, ring_type); in psp_v11_0_8_ring_destroy()
148 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_get_wptr()
160 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_set_wptr()
[all …]
H A Damdgpu_psp_ta.h28 #define psp_fn_ta_initialize(psp) ((psp)->ta_funcs->fn_ta_initialize((psp))) argument
29 #define psp_fn_ta_invoke(psp, ta_cmd_id) ((psp)->ta_funcs->fn_ta_invoke((psp), (ta_cmd_id))) argument
30 #define psp_fn_ta_terminate(psp) ((psp)->ta_funcs->fn_ta_terminate((psp))) argument
H A Damdgpu_psp_ta.c79 psp->ta_funcs = &ras_ta_funcs; in set_ta_context_funcs()
153 struct psp_context *psp = &adev->psp; in ta_if_load_debugfs_write() local
185 if (!psp->ta_funcs || !psp->ta_funcs->fn_ta_terminate) { in ta_if_load_debugfs_write()
203 ret = psp_fn_ta_terminate(psp); in ta_if_load_debugfs_write()
225 ret = psp_fn_ta_initialize(psp); in ta_if_load_debugfs_write()
255 struct psp_context *psp = &adev->psp; in ta_if_unload_debugfs_write() local
274 if (!psp->ta_funcs || !psp->ta_funcs->fn_ta_terminate) { in ta_if_unload_debugfs_write()
279 ret = psp_fn_ta_terminate(psp); in ta_if_unload_debugfs_write()
304 struct psp_context *psp = &adev->psp; in ta_if_invoke_debugfs_write() local
346 if (!psp->ta_funcs || !psp->ta_funcs->fn_ta_invoke) { in ta_if_invoke_debugfs_write()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp_psp.c51 struct psp_context *psp = hdcp->config.psp.handle; in remove_display_from_topology_v2() local
87 struct psp_context *psp = hdcp->config.psp.handle; in remove_display_from_topology_v3() local
125 struct psp_context *psp = hdcp->config.psp.handle; in add_display_to_topology_v2() local
172 struct psp_context *psp = hdcp->config.psp.handle; in add_display_to_topology_v3() local
253 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_create_session() local
292 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_destroy_session() local
325 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_validate_rx() local
366 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_enable_encryption() local
393 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_validate_ksvlist_vp() local
435 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_enable_dp_stream_encryption() local
[all …]
/openbmc/linux/drivers/power/supply/
H A Dacer_a500_battery.c30 .psp = POWER_SUPPLY_PROP_ ## _psp, \
35 enum power_supply_property psp; member
96 enum power_supply_property psp, in a500_battery_unit_adjustment() argument
102 switch (psp) { in a500_battery_unit_adjustment()
124 enum power_supply_property psp) in a500_battery_get_ec_data_index() argument
133 if (psp == POWER_SUPPLY_PROP_PRESENT) in a500_battery_get_ec_data_index()
134 psp = POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN; in a500_battery_get_ec_data_index()
137 if (psp == ec_data[i].psp) in a500_battery_get_ec_data_index()
146 enum power_supply_property psp, in a500_battery_get_property() argument
153 switch (psp) { in a500_battery_get_property()
[all …]
H A Dsbs-battery.c87 .psp = _psp, \
94 enum power_supply_property psp; member
227 if (string_properties[i] == psp) in sbs_get_string_buf()
678 enum power_supply_property psp) in sbs_get_property_index() argument
683 if (psp == sbs_data[count].psp) in sbs_get_property_index()
725 switch (psp) { in sbs_unit_adjustment()
874 enum power_supply_property psp, in sbs_get_battery_manufacture_date() argument
888 switch (psp) { in sbs_get_battery_manufacture_date()
906 enum power_supply_property psp, in sbs_get_property() argument
927 switch (psp) { in sbs_get_property()
[all …]
H A Dip5xxx_power.c313 enum power_supply_property psp, in ip5xxx_battery_get_property() argument
324 switch (psp) { in ip5xxx_battery_get_property()
431 enum power_supply_property psp, in ip5xxx_battery_set_property() argument
442 switch (psp) { in ip5xxx_battery_set_property()
481 enum power_supply_property psp) in ip5xxx_battery_property_is_writeable() argument
483 return psp == POWER_SUPPLY_PROP_STATUS || in ip5xxx_battery_property_is_writeable()
505 enum power_supply_property psp, in ip5xxx_boost_get_property() argument
516 switch (psp) { in ip5xxx_boost_get_property()
540 enum power_supply_property psp, in ip5xxx_boost_set_property() argument
551 switch (psp) { in ip5xxx_boost_set_property()
[all …]
/openbmc/linux/arch/ia64/kernel/
H A Dmca_drv.c378 pal_processor_state_info_t *psp = in is_mca_global() local
403 if (psp->tc || psp->cc || psp->rc || psp->uc) in is_mca_global()
581 pal_processor_state_info_t *psp = in recover_from_platform_error() local
584 if (psp->bc && pbci->eb && pbci->bsi == 0) { in recover_from_platform_error()
606 } else if (psp->cc && !psp->bc) { /* Cache error */ in recover_from_platform_error()
657 pal_processor_state_info_t *psp = in recover_from_processor_error() local
668 if (psp->cm == 1) in recover_from_processor_error()
674 if (psp->us || psp->ci == 0) in recover_from_processor_error()
680 if (psp->tc && !(psp->cc || psp->bc || psp->rc || psp->uc)) in recover_from_processor_error()
691 if (psp->cc == 0 && (psp->bc == 0 || pbci == NULL)) in recover_from_processor_error()
/openbmc/linux/drivers/staging/greybus/
H A Dpower_supply.c321 if (gbpsy->props[i].prop == psp) in get_psy_prop()
331 prop = get_psy_prop(gbpsy, psp); in is_psy_prop_writeable()
513 enum power_supply_property psp; in gb_power_supply_prop_descriptors_get() local
569 gbpsy->props[i - r].prop = psp; in gb_power_supply_prop_descriptors_get()
571 gbpsy->props_raw[i - r] = psp; in gb_power_supply_prop_descriptors_get()
599 prop = get_psy_prop(gbpsy, psp); in __gb_power_supply_property_update()
628 prop = get_psy_prop(gbpsy, psp); in __gb_power_supply_property_get()
640 switch (psp) { in __gb_power_supply_property_strval_get()
668 if (is_prop_valint(psp)) in _gb_power_supply_property_get()
754 enum power_supply_property psp, in get_property() argument
[all …]
/openbmc/linux/include/linux/
H A Dpower_supply.h257 enum power_supply_property psp,
260 enum power_supply_property psp,
268 enum power_supply_property psp);
804 enum power_supply_property psp,
825 enum power_supply_property psp,
860 enum power_supply_property psp,
864 enum power_supply_property psp,
868 enum power_supply_property psp, in power_supply_set_property() argument
873 enum power_supply_property psp);
903 switch (psp) { in power_supply_is_amp_property()
[all …]
/openbmc/linux/drivers/usb/misc/
H A Dapple-mfi-fastcharge.c92 enum power_supply_property psp, in apple_mfi_fc_get_property() argument
97 dev_dbg(&mfi->udev->dev, "prop: %d\n", psp); in apple_mfi_fc_get_property()
99 switch (psp) { in apple_mfi_fc_get_property()
114 enum power_supply_property psp, in apple_mfi_fc_set_property() argument
120 dev_dbg(&mfi->udev->dev, "prop: %d\n", psp); in apple_mfi_fc_set_property()
128 switch (psp) { in apple_mfi_fc_set_property()
143 enum power_supply_property psp) in apple_mfi_fc_property_is_writeable() argument
145 switch (psp) { in apple_mfi_fc_property_is_writeable()

123456789