/linux-6.1.9/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 | 52 void psp_set_sev_irq_handler(struct psp_device *psp, psp_irq_handler_t handler, 54 void psp_clear_sev_irq_handler(struct psp_device *psp); 56 void psp_set_tee_irq_handler(struct psp_device *psp, psp_irq_handler_t handler, 58 void psp_clear_tee_irq_handler(struct psp_device *psp);
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_psp.h | 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); [all …]
|
D | amdgpu_psp.c | 51 static int psp_load_smu_fw(struct psp_context *psp); 52 static int psp_rap_terminate(struct psp_context *psp); 53 static int psp_securedisplay_terminate(struct psp_context *psp); 70 static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp) in psp_check_pmfw_centralized_cstate_management() argument 72 struct amdgpu_device *adev = psp->adev; in psp_check_pmfw_centralized_cstate_management() 75 psp->pmfw_centralized_cstate_management = false; in psp_check_pmfw_centralized_cstate_management() 91 psp->pmfw_centralized_cstate_management = true; in psp_check_pmfw_centralized_cstate_management() 94 psp->pmfw_centralized_cstate_management = false; in psp_check_pmfw_centralized_cstate_management() 102 struct psp_context *psp = &adev->psp; in psp_early_init() local 106 psp_v3_1_set_psp_funcs(psp); in psp_early_init() [all …]
|
D | psp_v13_0_4.c | 35 static int psp_v13_0_4_init_microcode(struct psp_context *psp) in psp_v13_0_4_init_microcode() argument 37 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_init_microcode() 53 err = psp_init_toc_microcode(psp, chip_name); in psp_v13_0_4_init_microcode() 56 err = psp_init_ta_microcode(psp, chip_name); in psp_v13_0_4_init_microcode() 67 static bool psp_v13_0_4_is_sos_alive(struct psp_context *psp) in psp_v13_0_4_is_sos_alive() argument 69 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_is_sos_alive() 77 static int psp_v13_0_4_wait_for_bootloader(struct psp_context *psp) in psp_v13_0_4_wait_for_bootloader() argument 79 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_wait_for_bootloader() 87 ret = psp_wait_for(psp, in psp_v13_0_4_wait_for_bootloader() 100 static int psp_v13_0_4_bootloader_load_component(struct psp_context *psp, in psp_v13_0_4_bootloader_load_component() argument [all …]
|
D | psp_v11_0.c | 88 static int psp_v11_0_init_microcode(struct psp_context *psp) in psp_v11_0_init_microcode() argument 90 struct amdgpu_device *adev = psp->adev; in psp_v11_0_init_microcode() 137 err = psp_init_sos_microcode(psp, chip_name); in psp_v11_0_init_microcode() 140 err = psp_init_asd_microcode(psp, chip_name); in psp_v11_0_init_microcode() 144 err = request_firmware(&adev->psp.ta_fw, fw_name, adev->dev); in psp_v11_0_init_microcode() 146 release_firmware(adev->psp.ta_fw); in psp_v11_0_init_microcode() 147 adev->psp.ta_fw = NULL; in psp_v11_0_init_microcode() 151 err = amdgpu_ucode_validate(adev->psp.ta_fw); in psp_v11_0_init_microcode() 155 ta_hdr = (const struct ta_firmware_header_v1_0 *)adev->psp.ta_fw->data; in psp_v11_0_init_microcode() 156 adev->psp.xgmi_context.context.bin_desc.fw_version = in psp_v11_0_init_microcode() [all …]
|
D | psp_v13_0.c | 70 static int psp_v13_0_init_microcode(struct psp_context *psp) in psp_v13_0_init_microcode() argument 72 struct amdgpu_device *adev = psp->adev; in psp_v13_0_init_microcode() 93 err = psp_init_sos_microcode(psp, chip_name); in psp_v13_0_init_microcode() 98 err = psp_init_ta_microcode(&adev->psp, chip_name); in psp_v13_0_init_microcode() 108 err = psp_init_toc_microcode(psp, chip_name); in psp_v13_0_init_microcode() 111 err = psp_init_ta_microcode(psp, chip_name); in psp_v13_0_init_microcode() 118 err = psp_init_sos_microcode(psp, chip_name); in psp_v13_0_init_microcode() 122 err = psp_init_ta_microcode(psp, chip_name); in psp_v13_0_init_microcode() 133 static bool psp_v13_0_is_sos_alive(struct psp_context *psp) in psp_v13_0_is_sos_alive() argument 135 struct amdgpu_device *adev = psp->adev; in psp_v13_0_is_sos_alive() [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.hdcp_context.context.bin_desc.fw_version = in psp_v12_0_init_microcode() 89 adev->psp.hdcp_context.context.bin_desc.size_bytes = in psp_v12_0_init_microcode() [all …]
|
D | psp_v3_1.c | 54 static int psp_v3_1_ring_stop(struct psp_context *psp, 57 static int psp_v3_1_init_microcode(struct psp_context *psp) in psp_v3_1_init_microcode() argument 59 struct amdgpu_device *adev = psp->adev; in psp_v3_1_init_microcode() 75 err = psp_init_sos_microcode(psp, chip_name); in psp_v3_1_init_microcode() 79 err = psp_init_asd_microcode(psp, chip_name); in psp_v3_1_init_microcode() 86 static int psp_v3_1_bootloader_load_sysdrv(struct psp_context *psp) in psp_v3_1_bootloader_load_sysdrv() argument 90 struct amdgpu_device *adev = psp->adev; in psp_v3_1_bootloader_load_sysdrv() 101 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), in psp_v3_1_bootloader_load_sysdrv() 107 psp_copy_fw(psp, psp->sys.start_addr, psp->sys.size_bytes); in psp_v3_1_bootloader_load_sysdrv() 111 (uint32_t)(psp->fw_pri_mc_addr >> 20)); 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.hdcp_context.context.bin_desc.fw_version = in psp_v10_0_init_microcode() 89 adev->psp.hdcp_context.context.bin_desc.size_bytes = in psp_v10_0_init_microcode() [all …]
|
D | psp_v11_0_8.c | 31 static int psp_v11_0_8_ring_init(struct psp_context *psp, in psp_v11_0_8_ring_init() argument 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() 57 static int psp_v11_0_8_ring_stop(struct psp_context *psp, in psp_v11_0_8_ring_stop() argument 61 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_stop() 70 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), in psp_v11_0_8_ring_stop() 79 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), in psp_v11_0_8_ring_stop() 86 static int psp_v11_0_8_ring_create(struct psp_context *psp, in psp_v11_0_8_ring_create() argument 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() [all …]
|
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() 67 dev_err(psp->adev->dev, "Secure display: Failed to Read DIO Scratch Register."); 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() 76 dev_err(psp->adev->dev, "Secure display: Failed to parse status: %d\n", status); in psp_securedisplay_parse_resp_status() 80 void psp_prep_securedisplay_cmd_buf(struct psp_context *psp, struct securedisplay_cmd **cmd, in psp_prep_securedisplay_cmd_buf() argument [all …]
|
D | amdgpu_psp_ta.c | 44 static void prep_ta_mem_context(struct psp_context *psp, in prep_ta_mem_context() argument 50 psp_ta_init_shared_buf(psp, &context->mem_context); in prep_ta_mem_context() 135 struct psp_context *psp = &adev->psp; in ta_if_load_debugfs_write() local 161 ret = psp_ras_terminate(psp); in ta_if_load_debugfs_write() 173 ret = psp_ta_load(psp, &context); in ta_if_load_debugfs_write() 199 struct psp_context *psp = &adev->psp; in ta_if_unload_debugfs_write() local 211 ret = psp_ta_unload(psp, &context); in ta_if_unload_debugfs_write() 228 struct psp_context *psp = &adev->psp; in ta_if_invoke_debugfs_write() local 259 prep_ta_mem_context(psp, &context, shared_buf, shared_buf_len); in ta_if_invoke_debugfs_write() 261 ret = psp_ta_invoke_indirect(psp, cmd_id, &context); in ta_if_invoke_debugfs_write()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/modules/hdcp/ |
D | hdcp_psp.c | 51 struct psp_context *psp = hdcp->config.psp.handle; in remove_display_from_topology_v2() local 57 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.context.mem_context.shared_buf; in remove_display_from_topology_v2() 62 mutex_lock(&psp->dtm_context.mutex); in remove_display_from_topology_v2() 71 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in remove_display_from_topology_v2() 80 mutex_unlock(&psp->dtm_context.mutex); in remove_display_from_topology_v2() 87 struct psp_context *psp = hdcp->config.psp.handle; in remove_display_from_topology_v3() local 93 dtm_cmd = (struct ta_dtm_shared_memory *)psp->dtm_context.context.mem_context.shared_buf; in remove_display_from_topology_v3() 98 mutex_lock(&psp->dtm_context.mutex); in remove_display_from_topology_v3() 107 psp_dtm_invoke(psp, dtm_cmd->cmd_id); in remove_display_from_topology_v3() 108 mutex_unlock(&psp->dtm_context.mutex); in remove_display_from_topology_v3() [all …]
|
/linux-6.1.9/drivers/power/supply/ |
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() 119 "%s: no need for unit conversion %d\n", __func__, 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() 140 dev_dbg(dev, "%s: invalid property %u\n", __func__, psp); in a500_battery_get_ec_data_index() [all …]
|
D | sbs-battery.c | 87 .psp = _psp, \ 94 enum power_supply_property psp; member 222 enum power_supply_property psp) in sbs_get_string_buf() argument 227 if (string_properties[i] == psp) in sbs_get_string_buf() 518 struct i2c_client *client, enum power_supply_property psp, in sbs_get_ti_battery_presence_and_health() argument 530 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health() 537 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health() 553 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_ti_battery_presence_and_health() 559 } else if (psp == POWER_SUPPLY_PROP_HEALTH) { in sbs_get_ti_battery_presence_and_health() 576 struct i2c_client *client, enum power_supply_property psp, in sbs_get_battery_presence_and_health() argument [all …]
|
D | ip5xxx_power.c | 313 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() 484 psp == POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN || in ip5xxx_battery_property_is_writeable() 485 psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT || in ip5xxx_battery_property_is_writeable() 486 psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE; in ip5xxx_battery_property_is_writeable() 505 enum power_supply_property psp, in ip5xxx_boost_get_property() argument [all …]
|
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() 425 enum power_supply_property psp) in rn5t618_battery_property_is_writeable() argument 427 switch (psp) { in rn5t618_battery_property_is_writeable() 436 enum power_supply_property psp, in rn5t618_adp_get_property() argument 451 switch (psp) { in rn5t618_adp_get_property() 490 enum power_supply_property psp, in rn5t618_adp_set_property() argument 496 switch (psp) { in rn5t618_adp_set_property() [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 …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/include/linux/ |
D | power_supply.h | 257 enum power_supply_property psp, 260 enum power_supply_property psp, 268 enum power_supply_property psp); 817 enum power_supply_property psp, 852 enum power_supply_property psp, 856 enum power_supply_property psp, 860 enum power_supply_property psp, in power_supply_set_property() argument 865 enum power_supply_property psp); 893 static inline bool power_supply_is_amp_property(enum power_supply_property psp) in power_supply_is_amp_property() argument 895 switch (psp) { in power_supply_is_amp_property() [all …]
|
/linux-6.1.9/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.context.initialized) { in psp_get_srm() 87 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.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.context.initialized) { in psp_set_srm() 113 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.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() 421 struct psp_context *psp = hdcp.config.psp.handle; in enable_assr() local [all …]
|