/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_psp.c | 99 struct psp_context *psp = &adev->psp; in psp_early_init() local 265 struct psp_context *psp = &adev->psp; in psp_sw_init() local 340 struct psp_context *psp = &adev->psp; in psp_sw_fini() local 563 psp_copy_fw(psp, psp->toc.start_addr, psp->toc.size_bytes); in psp_load_toc() 640 psp_prep_tmr_cmd_buf(psp, cmd, psp->tmr_mc_addr, psp->tmr_bo); in psp_tmr_load() 725 struct psp_context *psp = &adev->psp; in psp_boot_config_get() local 751 struct psp_context *psp = &adev->psp; in psp_boot_config_set() local 774 struct psp_context *psp = &adev->psp; in psp_rl_load() local 783 memcpy(psp->fw_pri_buf, psp->rl.start_addr, psp->rl.size_bytes); in psp_rl_load() 2387 struct psp_context *psp = &adev->psp; in psp_load_fw() local [all …]
|
A D | amdgpu_psp.h | 349 #define psp_ring_init(psp, type) (psp)->funcs->ring_init((psp), (type)) argument 350 #define psp_ring_create(psp, type) (psp)->funcs->ring_create((psp), (type)) argument 351 #define psp_ring_stop(psp, type) (psp)->funcs->ring_stop((psp), (type)) argument 352 #define psp_ring_destroy(psp, type) ((psp)->funcs->ring_destroy((psp), (type))) argument 354 ((psp)->funcs->init_microcode ? (psp)->funcs->init_microcode((psp)) : 0) 356 ((psp)->funcs->bootloader_load_kdb ? (psp)->funcs->bootloader_load_kdb((psp)) : 0) 370 ((psp)->funcs->smu_reload_quirk ? (psp)->funcs->smu_reload_quirk((psp)) : false) 372 ((psp)->funcs->mode1_reset ? (psp)->funcs->mode1_reset((psp)) : false) 374 ((psp)->funcs->mem_training ? (psp)->funcs->mem_training((psp), (ops)) : 0) 376 #define psp_ring_get_wptr(psp) (psp)->funcs->ring_get_wptr((psp)) argument [all …]
|
A D | psp_v13_0.c | 109 ret = psp_wait_for(psp, in psp_v13_0_wait_for_bootloader() 133 if (psp_v13_0_is_sos_alive(psp)) in psp_v13_0_bootloader_load_component() 159 return psp_v13_0_bootloader_load_component(psp, &psp->kdb, PSP_BL__LOAD_KEY_DATABASE); in psp_v13_0_bootloader_load_kdb() 164 return psp_v13_0_bootloader_load_component(psp, &psp->sys, PSP_BL__LOAD_SYSDRV); in psp_v13_0_bootloader_load_sysdrv() 169 return psp_v13_0_bootloader_load_component(psp, &psp->soc_drv, PSP_BL__LOAD_SOCDRV); in psp_v13_0_bootloader_load_soc_drv() 174 return psp_v13_0_bootloader_load_component(psp, &psp->intf_drv, PSP_BL__LOAD_INTFDRV); in psp_v13_0_bootloader_load_intf_drv() 179 return psp_v13_0_bootloader_load_component(psp, &psp->dbg_drv, PSP_BL__LOAD_DBGDRV); in psp_v13_0_bootloader_load_dbg_drv() 191 if (psp_v13_0_is_sos_alive(psp)) in psp_v13_0_bootloader_load_sos() 201 memcpy(psp->fw_pri_buf, psp->sos.start_addr, psp->sos.size_bytes); in psp_v13_0_bootloader_load_sos() 226 ring = &psp->km_ring; in psp_v13_0_ring_init() [all …]
|
A D | psp_v11_0.c | 145 adev->psp.ta_fw = NULL; in psp_v11_0_init_microcode() 186 adev->psp.ta_fw = NULL; in psp_v11_0_init_microcode() 243 adev->psp.ta_fw = NULL; in psp_v11_0_init_microcode() 257 ret = psp_wait_for(psp, in psp_v11_0_wait_for_bootloader() 289 if (psp_v11_0_is_sos_alive(psp)) in psp_v11_0_bootloader_load_kdb() 297 psp_copy_fw(psp, psp->kdb.start_addr, psp->kdb.size_bytes); in psp_v11_0_bootloader_load_kdb() 328 psp_copy_fw(psp, psp->spl.start_addr, psp->spl.size_bytes); in psp_v11_0_bootloader_load_spl() 359 psp_copy_fw(psp, psp->sys.start_addr, psp->sys.size_bytes); in psp_v11_0_bootloader_load_sysdrv() 393 psp_copy_fw(psp, psp->sos.start_addr, psp->sos.size_bytes); in psp_v11_0_bootloader_load_sos() 418 ring = &psp->km_ring; in psp_v11_0_ring_init() [all …]
|
A D | psp_v12_0.c | 75 release_firmware(adev->psp.ta_fw); in psp_v12_0_init_microcode() 76 adev->psp.ta_fw = NULL; in psp_v12_0_init_microcode() 86 adev->psp.ta_fw->data; in psp_v12_0_init_microcode() 109 release_firmware(adev->psp.ta_fw); in psp_v12_0_init_microcode() 110 adev->psp.ta_fw = NULL; in psp_v12_0_init_microcode() 141 psp_copy_fw(psp, psp->sys.start_addr, psp->sys.size_bytes); in psp_v12_0_bootloader_load_sysdrv() 180 psp_copy_fw(psp, psp->sos.start_addr, psp->sos.size_bytes); in psp_v12_0_bootloader_load_sos() 236 psp_v12_0_reroute_ih(psp); in psp_v12_0_ring_init() 238 ring = &psp->km_ring; in psp_v12_0_ring_init() 265 if (amdgpu_sriov_vf(psp->adev)) { in psp_v12_0_ring_create() [all …]
|
A D | psp_v3_1.c | 58 struct amdgpu_device *adev = psp->adev; in psp_v3_1_init_microcode() 89 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sysdrv() 106 psp_copy_fw(psp, psp->sys.start_addr, psp->sys.size_bytes); in psp_v3_1_bootloader_load_sysdrv() 128 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sos() 145 psp_copy_fw(psp, psp->sos.start_addr, psp->sos.size_bytes); in psp_v3_1_bootloader_load_sos() 169 ring = &psp->km_ring; in psp_v3_1_ring_init() 224 struct psp_ring *ring = &psp->km_ring; in psp_v3_1_ring_create() 227 psp_v3_1_reroute_ih(psp); in psp_v3_1_ring_create() 379 data = psp->km_ring.ring_wptr; in psp_v3_1_ring_get_wptr() 394 psp->km_ring.ring_wptr = value; in psp_v3_1_ring_set_wptr() [all …]
|
A D | psp_v10_0.c | 49 struct amdgpu_device *adev = psp->adev; in psp_v10_0_init_microcode() 75 release_firmware(adev->psp.ta_fw); in psp_v10_0_init_microcode() 76 adev->psp.ta_fw = NULL; in psp_v10_0_init_microcode() 86 adev->psp.ta_fw->data; in psp_v10_0_init_microcode() 117 release_firmware(adev->psp.ta_fw); in psp_v10_0_init_microcode() 118 adev->psp.ta_fw = NULL; in psp_v10_0_init_microcode() 134 struct amdgpu_device *adev = psp->adev; in psp_v10_0_ring_init() 136 ring = &psp->km_ring; in psp_v10_0_ring_init() 160 struct psp_ring *ring = &psp->km_ring; in psp_v10_0_ring_create() 212 struct psp_ring *ring = &psp->km_ring; in psp_v10_0_ring_destroy() [all …]
|
A D | psp_v11_0_8.c | 36 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_init() 38 ring = &psp->km_ring; in psp_v11_0_8_ring_init() 61 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_stop() 91 struct psp_ring *ring = &psp->km_ring; in psp_v11_0_8_ring_create() 92 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_create() 95 ret = psp_v11_0_8_ring_stop(psp, ring_type); in psp_v11_0_8_ring_create() 157 struct psp_ring *ring = &psp->km_ring; in psp_v11_0_8_ring_destroy() 158 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_destroy() 174 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_get_wptr() 186 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_set_wptr() [all …]
|
A D | amdgpu_securedisplay.c | 48 void psp_securedisplay_parse_resp_status(struct psp_context *psp, in psp_securedisplay_parse_resp_status() argument 55 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() 64 dev_err(psp->adev->dev, "Secure display: Failed to write to I2C."); in psp_securedisplay_parse_resp_status() 70 dev_err(psp->adev->dev, "Secure display: Failed to Read CRC"); in psp_securedisplay_parse_resp_status() 73 dev_err(psp->adev->dev, "Secure display: Failed to initialize I2C."); in psp_securedisplay_parse_resp_status() 95 struct psp_context *psp = &adev->psp; in amdgpu_securedisplay_debugfs_write() local 124 psp_prep_securedisplay_cmd_buf(psp, &securedisplay_cmd, in amdgpu_securedisplay_debugfs_write() 136 psp_prep_securedisplay_cmd_buf(psp, &securedisplay_cmd, in amdgpu_securedisplay_debugfs_write() [all …]
|
/linux/drivers/crypto/ccp/ |
A D | psp-dev.c | 25 psp = devm_kzalloc(dev, sizeof(*psp), GFP_KERNEL); in psp_alloc_struct() 26 if (!psp) in psp_alloc_struct() 30 psp->sp = sp; in psp_alloc_struct() 32 snprintf(psp->name, sizeof(psp->name), "psp-%u", sp->ord); in psp_alloc_struct() 34 return psp; in psp_alloc_struct() 48 psp->sev_irq_handler(irq, psp->sev_irq_data, status); in psp_irq_handler() 51 psp->tee_irq_handler(irq, psp->tee_irq_data, status); in psp_irq_handler() 144 if (!psp) in psp_dev_init() 171 ret = sp_request_psp_irq(psp->sp, psp_irq_handler, psp->name, psp); in psp_dev_init() 192 sp_free_psp_irq(psp->sp, psp); in psp_dev_init() [all …]
|
A D | tee-dev.c | 191 int tee_dev_init(struct psp_device *psp) in tee_dev_init() argument 193 struct device *dev = psp->dev; in tee_dev_init() 202 psp->tee_data = tee; in tee_dev_init() 205 tee->psp = psp; in tee_dev_init() 207 tee->io_regs = psp->io_regs; in tee_dev_init() 227 psp->tee_data = NULL; in tee_dev_init() 234 void tee_dev_destroy(struct psp_device *psp) in tee_dev_destroy() argument 236 struct psp_tee_device *tee = psp->tee_data; in tee_dev_destroy() 360 if (!psp || !psp->tee_data) in psp_tee_process_cmd() 366 tee = psp->tee_data; in psp_tee_process_cmd() [all …]
|
A D | sev-dev.c | 152 if (!psp || !psp->sev_data) in __sev_do_cmd_locked() 158 sev = psp->sev_data; in __sev_do_cmd_locked() 246 if (!psp || !psp->sev_data) in __sev_platform_init_locked() 249 sev = psp->sev_data; in __sev_platform_init_locked() 970 struct device *dev = psp->dev; in sev_dev_init() 987 psp->sev_data = sev; in sev_dev_init() 990 sev->psp = psp; in sev_dev_init() 992 sev->io_regs = psp->io_regs; in sev_dev_init() 1012 psp_clear_sev_irq_handler(psp); in sev_dev_init() 1018 psp->sev_data = NULL; in sev_dev_init() [all …]
|
A D | psp-dev.h | 50 void psp_set_sev_irq_handler(struct psp_device *psp, psp_irq_handler_t handler, 52 void psp_clear_sev_irq_handler(struct psp_device *psp); 54 void psp_set_tee_irq_handler(struct psp_device *psp, psp_irq_handler_t handler, 56 void psp_clear_tee_irq_handler(struct psp_device *psp);
|
/linux/drivers/gpu/drm/amd/display/modules/hdcp/ |
A D | hdcp_psp.c | 51 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 249 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_create_session() local 288 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_destroy_session() local 321 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_validate_rx() local 362 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_enable_encryption() local 389 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_validate_ksvlist_vp() local 431 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_hdcp1_enable_dp_stream_encryption() local [all …]
|
/linux/drivers/power/supply/ |
A D | acer_a500_battery.c | 30 .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 …]
|
A D | sbs-battery.c | 87 .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 …]
|
A D | rn5t618_power.c | 360 enum power_supply_property psp, in rn5t618_battery_get_property() argument 366 switch (psp) { in rn5t618_battery_get_property() 411 enum power_supply_property psp, in rn5t618_battery_set_property() argument 416 switch (psp) { in rn5t618_battery_set_property() 427 switch (psp) { in rn5t618_battery_property_is_writeable() 451 switch (psp) { in rn5t618_adp_get_property() 496 switch (psp) { in rn5t618_adp_set_property() 520 switch (psp) { in rn5t618_adp_property_is_writeable() 571 switch (psp) { in rn5t618_usb_get_property() 630 switch (psp) { in rn5t618_usb_set_property() [all …]
|
A D | mp2629_charger.c | 221 enum power_supply_property psp, in mp2629_charger_battery_get_prop() argument 228 switch (psp) { in mp2629_charger_battery_get_prop() 324 enum power_supply_property psp, in mp2629_charger_battery_set_prop() argument 329 switch (psp) { in mp2629_charger_battery_set_prop() 348 enum power_supply_property psp, in mp2629_charger_usb_get_prop() argument 355 switch (psp) { in mp2629_charger_usb_get_prop() 413 enum power_supply_property psp, in mp2629_charger_usb_set_prop() argument 418 switch (psp) { in mp2629_charger_usb_set_prop() 431 enum power_supply_property psp) in mp2629_charger_battery_prop_writeable() argument 433 return (psp == POWER_SUPPLY_PROP_PRECHARGE_CURRENT) || in mp2629_charger_battery_prop_writeable() [all …]
|
A D | lego_ev3_battery.c | 38 enum power_supply_property psp, in lego_ev3_battery_get_property() argument 44 switch (psp) { in lego_ev3_battery_get_property() 92 enum power_supply_property psp, in lego_ev3_battery_set_property() argument 97 switch (psp) { in lego_ev3_battery_set_property() 127 enum power_supply_property psp) in lego_ev3_battery_property_is_writeable() argument 131 return psp == POWER_SUPPLY_PROP_TECHNOLOGY && in lego_ev3_battery_property_is_writeable()
|
A D | wilco-charger.c | 87 enum power_supply_property psp, in wilco_charge_get_property() argument 95 switch (psp) { in wilco_charge_get_property() 124 enum power_supply_property psp, in wilco_charge_set_property() argument 130 switch (psp) { in wilco_charge_set_property() 154 enum power_supply_property psp) in wilco_charge_property_is_writeable() argument
|
/linux/arch/ia64/kernel/ |
A D | mca_drv.c | 378 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()
|
/linux/drivers/staging/greybus/ |
A D | power_supply.c | 321 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 …]
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_hdcp.c | 82 if (!psp->hdcp_context.context.initialized) { in psp_get_srm() 91 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in psp_get_srm() 108 if (!psp->hdcp_context.context.initialized) { in psp_set_srm() 120 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in psp_set_srm() 413 struct psp_context *psp = hdcp.config.psp.handle; in enable_assr() local 417 if (!psp->dtm_context.context.initialized) { in enable_assr() 424 mutex_lock(&psp->dtm_context.mutex); in enable_assr() 431 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in enable_assr() 438 mutex_unlock(&psp->dtm_context.mutex); in enable_assr() 665 hdcp_work[i].hdcp.config.psp.handle = &adev->psp; in hdcp_create_workqueue() [all …]
|
/linux/drivers/usb/misc/ |
A D | apple-mfi-fastcharge.c | 92 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()
|
/linux/include/linux/ |
A D | power_supply.h | 248 enum power_supply_property psp, 251 enum power_supply_property psp, 259 enum power_supply_property psp); 434 enum power_supply_property psp, 438 enum power_supply_property psp, 442 enum power_supply_property psp, in power_supply_set_property() argument 447 enum power_supply_property psp); 475 static inline bool power_supply_is_amp_property(enum power_supply_property psp) in power_supply_is_amp_property() argument 477 switch (psp) { in power_supply_is_amp_property() 501 static inline bool power_supply_is_watt_property(enum power_supply_property psp) in power_supply_is_watt_property() argument [all …]
|