/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_psp.c | 43 static int psp_load_smu_fw(struct psp_context *psp); 61 static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp) in psp_check_pmfw_centralized_cstate_management() argument 63 struct amdgpu_device *adev = psp->adev; in psp_check_pmfw_centralized_cstate_management() 65 psp->pmfw_centralized_cstate_management = false; in psp_check_pmfw_centralized_cstate_management() 75 psp->pmfw_centralized_cstate_management = true; in psp_check_pmfw_centralized_cstate_management() 81 struct psp_context *psp = &adev->psp; in psp_early_init() local 86 psp_v3_1_set_psp_funcs(psp); in psp_early_init() 87 psp->autoload_supported = false; in psp_early_init() 90 psp_v10_0_set_psp_funcs(psp); in psp_early_init() 91 psp->autoload_supported = false; in psp_early_init() [all …]
|
D | amdgpu_psp.h | 89 int (*init_microcode)(struct psp_context *psp); 90 int (*bootloader_load_kdb)(struct psp_context *psp); 91 int (*bootloader_load_spl)(struct psp_context *psp); 92 int (*bootloader_load_sysdrv)(struct psp_context *psp); 93 int (*bootloader_load_sos)(struct psp_context *psp); 94 int (*ring_init)(struct psp_context *psp, enum psp_ring_type ring_type); 95 int (*ring_create)(struct psp_context *psp, 97 int (*ring_stop)(struct psp_context *psp, 99 int (*ring_destroy)(struct psp_context *psp, 101 bool (*smu_reload_quirk)(struct psp_context *psp); [all …]
|
D | psp_v11_0.c | 76 static int psp_v11_0_init_microcode(struct psp_context *psp) in psp_v11_0_init_microcode() argument 78 struct amdgpu_device *adev = psp->adev; in psp_v11_0_init_microcode() 112 err = psp_init_sos_microcode(psp, chip_name); in psp_v11_0_init_microcode() 118 err = psp_init_asd_microcode(psp, chip_name); in psp_v11_0_init_microcode() 127 err = request_firmware(&adev->psp.ta_fw, fw_name, adev->dev); in psp_v11_0_init_microcode() 129 release_firmware(adev->psp.ta_fw); in psp_v11_0_init_microcode() 130 adev->psp.ta_fw = NULL; in psp_v11_0_init_microcode() 134 err = amdgpu_ucode_validate(adev->psp.ta_fw); in psp_v11_0_init_microcode() 138 ta_hdr = (const struct ta_firmware_header_v1_0 *)adev->psp.ta_fw->data; in psp_v11_0_init_microcode() 139 adev->psp.ta_xgmi_ucode_version = le32_to_cpu(ta_hdr->ta_xgmi_ucode_version); in psp_v11_0_init_microcode() [all …]
|
D | psp_v12_0.c | 48 static int psp_v12_0_init_microcode(struct psp_context *psp) in psp_v12_0_init_microcode() argument 50 struct amdgpu_device *adev = psp->adev; in psp_v12_0_init_microcode() 68 err = psp_init_asd_microcode(psp, chip_name); in psp_v12_0_init_microcode() 73 err = request_firmware(&adev->psp.ta_fw, fw_name, adev->dev); in psp_v12_0_init_microcode() 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() 81 err = amdgpu_ucode_validate(adev->psp.ta_fw); in psp_v12_0_init_microcode() 86 adev->psp.ta_fw->data; in psp_v12_0_init_microcode() 87 adev->psp.ta_hdcp_ucode_version = in psp_v12_0_init_microcode() 89 adev->psp.ta_hdcp_ucode_size = in psp_v12_0_init_microcode() [all …]
|
D | psp_v3_1.c | 53 static int psp_v3_1_ring_stop(struct psp_context *psp, 56 static int psp_v3_1_init_microcode(struct psp_context *psp) in psp_v3_1_init_microcode() argument 58 struct amdgpu_device *adev = psp->adev; in psp_v3_1_init_microcode() 74 err = psp_init_sos_microcode(psp, chip_name); in psp_v3_1_init_microcode() 78 err = psp_init_asd_microcode(psp, chip_name); in psp_v3_1_init_microcode() 85 static int psp_v3_1_bootloader_load_sysdrv(struct psp_context *psp) in psp_v3_1_bootloader_load_sysdrv() argument 89 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sysdrv() 100 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), in psp_v3_1_bootloader_load_sysdrv() 105 memset(psp->fw_pri_buf, 0, PSP_1_MEG); in psp_v3_1_bootloader_load_sysdrv() 108 memcpy(psp->fw_pri_buf, psp->sys_start_addr, psp->sys_bin_size); in psp_v3_1_bootloader_load_sysdrv() [all …]
|
D | psp_v10_0.c | 47 static int psp_v10_0_init_microcode(struct psp_context *psp) in psp_v10_0_init_microcode() argument 49 struct amdgpu_device *adev = psp->adev; in psp_v10_0_init_microcode() 68 err = psp_init_asd_microcode(psp, chip_name); in psp_v10_0_init_microcode() 73 err = request_firmware(&adev->psp.ta_fw, fw_name, adev->dev); 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() 81 err = amdgpu_ucode_validate(adev->psp.ta_fw); in psp_v10_0_init_microcode() 86 adev->psp.ta_fw->data; in psp_v10_0_init_microcode() 87 adev->psp.ta_hdcp_ucode_version = in psp_v10_0_init_microcode() 89 adev->psp.ta_hdcp_ucode_size = in psp_v10_0_init_microcode() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/ccp/ |
D | psp-dev.c | 23 struct psp_device *psp; in psp_alloc_struct() local 25 psp = devm_kzalloc(dev, sizeof(*psp), GFP_KERNEL); in psp_alloc_struct() 26 if (!psp) in psp_alloc_struct() 29 psp->dev = dev; 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() 39 struct psp_device *psp = data; in psp_irq_handler() local 43 status = ioread32(psp->io_regs + psp->vdata->intsts_reg); in psp_irq_handler() 47 if (psp->sev_irq_handler) in psp_irq_handler() [all …]
|
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() 209 tee->vdata = (struct tee_vdata *)psp->vdata->tee; 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() 350 struct psp_device *psp = psp_get_master_device(); in psp_tee_process_cmd() local [all …]
|
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);
|
D | sev-dev.c | 143 struct psp_device *psp = psp_master; in __sev_do_cmd_locked() local 148 if (!psp || !psp->sev_data) in __sev_do_cmd_locked() 154 sev = psp->sev_data; in __sev_do_cmd_locked() 221 struct psp_device *psp = psp_master; in __sev_platform_init_locked() local 225 if (!psp || !psp->sev_data) in __sev_platform_init_locked() 228 sev = psp->sev_data; in __sev_platform_init_locked() 978 int sev_dev_init(struct psp_device *psp) in sev_dev_init() argument 980 struct device *dev = psp->dev; in sev_dev_init() 988 psp->sev_data = sev; in sev_dev_init() 991 sev->psp = psp; in sev_dev_init() [all …]
|
D | sev-dev.h | 39 struct psp_device *psp; member 57 int sev_dev_init(struct psp_device *psp); 58 void sev_dev_destroy(struct psp_device *psp);
|
D | tee-dev.h | 66 struct psp_device *psp; member 123 int tee_dev_init(struct psp_device *psp); 124 void tee_dev_destroy(struct psp_device *psp);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/hdcp/ |
D | hdcp_psp.c | 50 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_remove_display_from_topology() local 56 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.dtm_shared_buf; in mod_hdcp_remove_display_from_topology() 61 mutex_lock(&psp->dtm_context.mutex); in mod_hdcp_remove_display_from_topology() 70 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in mod_hdcp_remove_display_from_topology() 79 mutex_unlock(&psp->dtm_context.mutex); in mod_hdcp_remove_display_from_topology() 85 struct psp_context *psp = hdcp->config.psp.handle; in mod_hdcp_add_display_to_topology() local 90 if (!psp->dtm_context.dtm_initialized) { in mod_hdcp_add_display_to_topology() 96 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.dtm_shared_buf; in mod_hdcp_add_display_to_topology() 98 mutex_lock(&psp->dtm_context.mutex); in mod_hdcp_add_display_to_topology() 116 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in mod_hdcp_add_display_to_topology() [all …]
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | sbs-battery.c | 85 .psp = _psp, \ 92 enum power_supply_property psp; member 483 struct i2c_client *client, enum power_supply_property psp, in sbs_get_ti_battery_presence_and_health() argument 495 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health() 502 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health() 518 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_ti_battery_presence_and_health() 524 } else if (psp == POWER_SUPPLY_PROP_HEALTH) { in sbs_get_ti_battery_presence_and_health() 541 struct i2c_client *client, enum power_supply_property psp, in sbs_get_battery_presence_and_health() argument 548 return sbs_get_ti_battery_presence_and_health(client, psp, val); in sbs_get_battery_presence_and_health() 554 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_battery_presence_and_health() [all …]
|
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 …]
|
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()
|
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
|
D | rt5033_battery.c | 36 enum power_supply_property psp) in rt5033_battery_get_watt_prop() argument 43 switch (psp) { in rt5033_battery_get_watt_prop() 69 enum power_supply_property psp, in rt5033_battery_get_property() argument 74 switch (psp) { in rt5033_battery_get_property() 79 psp); in rt5033_battery_get_property()
|
D | axp20x_ac_power.c | 62 enum power_supply_property psp, in axp20x_ac_power_get_property() argument 68 switch (psp) { in axp20x_ac_power_get_property() 158 enum power_supply_property psp, in axp813_ac_power_set_property() argument 163 switch (psp) { in axp813_ac_power_set_property() 193 enum power_supply_property psp) in axp813_ac_power_prop_writeable() argument 195 return psp == POWER_SUPPLY_PROP_ONLINE || in axp813_ac_power_prop_writeable() 196 psp == POWER_SUPPLY_PROP_VOLTAGE_MIN || in axp813_ac_power_prop_writeable() 197 psp == POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT; in axp813_ac_power_prop_writeable()
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
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()
|
/kernel/liteos_m/arch/include/ |
D | los_arch.h | 54 UINTPTR psp; in ArchPspGet() local 55 __asm("mrs %0, psp" : "=r" (psp)); in ArchPspGet() 56 return psp; in ArchPspGet() 83 UINTPTR psp; 84 __asm volatile("mrs %0, psp" : "=r" (psp)); 85 return psp;
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
D | power_supply.c | 106 static int get_psp_from_gb_prop(int gb_prop, enum power_supply_property *psp) in get_psp_from_gb_prop() argument 305 *psp = (enum power_supply_property)prop; in get_psp_from_gb_prop() 316 enum power_supply_property psp) in get_psy_prop() argument 321 if (gbpsy->props[i].prop == psp) in get_psy_prop() 327 enum power_supply_property psp) in is_psy_prop_writeable() argument 331 prop = get_psy_prop(gbpsy, psp); in is_psy_prop_writeable() 337 static int is_prop_valint(enum power_supply_property psp) in is_prop_valint() argument 339 return ((psp < POWER_SUPPLY_PROP_MODEL_NAME) ? 1 : 0); in is_prop_valint() 513 enum power_supply_property psp; in gb_power_supply_prop_descriptors_get() local 539 ret = get_psp_from_gb_prop(resp->props[i].property, &psp); in gb_power_supply_prop_descriptors_get() [all …]
|
/kernel/linux/linux-5.10/drivers/usb/misc/ |
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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_hdcp.c | 77 static uint8_t *psp_get_srm(struct psp_context *psp, uint32_t *srm_version, uint32_t *srm_size) in psp_get_srm() argument 82 if (!psp->hdcp_context.hdcp_initialized) { in psp_get_srm() 87 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.hdcp_shared_buf; in psp_get_srm() 91 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in psp_get_srm() 103 static int psp_set_srm(struct psp_context *psp, uint8_t *srm, uint32_t srm_size, uint32_t *srm_vers… in psp_set_srm() argument 108 if (!psp->hdcp_context.hdcp_initialized) { in psp_set_srm() 113 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.hdcp_shared_buf; in psp_set_srm() 120 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in psp_set_srm() 191 psp_set_srm(hdcp_work->hdcp.config.psp.handle, hdcp_work->srm, hdcp_work->srm_size, in hdcp_update_display() 400 struct psp_context *psp = hdcp.config.psp.handle; in enable_assr() local [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | power_supply.h | 248 enum power_supply_property psp, 251 enum power_supply_property psp, 259 enum power_supply_property psp); 427 enum power_supply_property psp, 430 enum power_supply_property psp, 433 enum power_supply_property psp); 461 static inline bool power_supply_is_amp_property(enum power_supply_property psp) in power_supply_is_amp_property() argument 463 switch (psp) { in power_supply_is_amp_property() 487 static inline bool power_supply_is_watt_property(enum power_supply_property psp) in power_supply_is_watt_property() argument 489 switch (psp) { in power_supply_is_watt_property()
|