Home
last modified time | relevance | path

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

1234567

/drivers/gpu/drm/amd/amdgpu/
Damdgpu_psp.c43 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 …]
Damdgpu_psp.h89 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 …]
Dpsp_v11_0.c76 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 …]
Dpsp_v12_0.c48 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 …]
Dpsp_v3_1.c53 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 …]
Dpsp_v10_0.c47 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 …]
/drivers/crypto/ccp/
Dpsp-dev.c23 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()
46 iowrite32(status, psp->io_regs + psp->vdata->intsts_reg); in psp_irq_handler()
[all …]
Dtee-dev.c191 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 …]
Dsev-dev.c155 struct psp_device *psp = psp_master; in __sev_do_cmd_locked() local
161 if (!psp || !psp->sev_data) in __sev_do_cmd_locked()
167 sev = psp->sev_data; in __sev_do_cmd_locked()
250 struct psp_device *psp = psp_master; in __sev_platform_init_locked() local
254 if (!psp || !psp->sev_data) in __sev_platform_init_locked()
257 sev = psp->sev_data; in __sev_platform_init_locked()
307 struct psp_device *psp = psp_master; in __sev_platform_shutdown_locked() local
311 if (!psp || !psp->sev_data) in __sev_platform_shutdown_locked()
314 sev = psp->sev_data; in __sev_platform_shutdown_locked()
990 int sev_dev_init(struct psp_device *psp) in sev_dev_init() argument
[all …]
Dpsp-dev.h50 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);
Dsev-dev.h39 struct psp_device *psp; member
58 int sev_dev_init(struct psp_device *psp);
59 void sev_dev_destroy(struct psp_device *psp);
Dtee-dev.h66 struct psp_device *psp; member
123 int tee_dev_init(struct psp_device *psp);
124 void tee_dev_destroy(struct psp_device *psp);
/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp_psp.c50 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 …]
/drivers/power/supply/
Dsbs-battery.c85 .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 …]
Dmp2629_charger.c221 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 …]
Dlego_ev3_battery.c38 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()
Dwilco-charger.c87 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
Daxp20x_ac_power.c62 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()
Drt5033_battery.c36 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()
Dqcom_smbb.c489 enum power_supply_property psp, in smbb_usbin_get_property() argument
495 switch (psp) { in smbb_usbin_get_property()
517 enum power_supply_property psp, in smbb_usbin_set_property() argument
523 switch (psp) { in smbb_usbin_set_property()
537 enum power_supply_property psp, in smbb_dcin_get_property() argument
543 switch (psp) { in smbb_dcin_get_property()
565 enum power_supply_property psp, in smbb_dcin_set_property() argument
571 switch (psp) { in smbb_dcin_set_property()
585 enum power_supply_property psp) in smbb_charger_writable_property() argument
587 return psp == POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT; in smbb_charger_writable_property()
[all …]
Daxp20x_battery.c184 enum power_supply_property psp, in axp20x_battery_get_prop() argument
190 switch (psp) { in axp20x_battery_get_prop()
452 enum power_supply_property psp, in axp20x_battery_set_prop() argument
457 switch (psp) { in axp20x_battery_set_prop()
491 enum power_supply_property psp) in axp20x_battery_prop_writeable() argument
493 return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN || in axp20x_battery_prop_writeable()
494 psp == POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN || in axp20x_battery_prop_writeable()
495 psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT || in axp20x_battery_prop_writeable()
496 psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX; in axp20x_battery_prop_writeable()
Dgeneric-adc-battery.c114 static enum gab_chan_type gab_prop_to_chan(enum power_supply_property psp) in gab_prop_to_chan() argument
116 switch (psp) { in gab_prop_to_chan()
130 static int read_channel(struct gab *adc_bat, enum power_supply_property psp, in read_channel() argument
136 chan_index = gab_prop_to_chan(psp); in read_channel()
148 enum power_supply_property psp, union power_supply_propval *val) in gab_get_property() argument
164 switch (psp) { in gab_get_property()
177 ret = read_channel(adc_bat, psp, &result); in gab_get_property()
/drivers/staging/greybus/
Dpower_supply.c106 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 …]
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_hdcp.c77 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 …]
/drivers/usb/misc/
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()

1234567