Home
last modified time | relevance | path

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

123456

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_psp.c51 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);
55 static int psp_ring_init(struct psp_context *psp, in psp_ring_init() argument
60 struct amdgpu_device *adev = psp->adev; in psp_ring_init()
62 ring = &psp->km_ring; in psp_ring_init()
97 static void psp_check_pmfw_centralized_cstate_management(struct psp_context *psp) in psp_check_pmfw_centralized_cstate_management() argument
99 struct amdgpu_device *adev = psp->adev; in psp_check_pmfw_centralized_cstate_management()
102 psp->pmfw_centralized_cstate_management = false; in psp_check_pmfw_centralized_cstate_management()
118 psp->pmfw_centralized_cstate_management = true; in psp_check_pmfw_centralized_cstate_management()
[all …]
H A Dpsp_v13_0_4.c35 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()
45 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v13_0_4_init_microcode()
48 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v13_0_4_init_microcode()
59 static bool psp_v13_0_4_is_sos_alive(struct psp_context *psp) in psp_v13_0_4_is_sos_alive() argument
61 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_is_sos_alive()
69 static int psp_v13_0_4_wait_for_bootloader(struct psp_context *psp) in psp_v13_0_4_wait_for_bootloader() argument
71 struct amdgpu_device *adev = psp->adev; in psp_v13_0_4_wait_for_bootloader()
80 psp, SOC15_REG_OFFSET(MP0, 0, regMP0_SMN_C2PMSG_35), in psp_v13_0_4_wait_for_bootloader()
90 static int psp_v13_0_4_bootloader_load_component(struct psp_context *psp, in psp_v13_0_4_bootloader_load_component() argument
[all …]
H A Dpsp_v13_0.c85 static int psp_v13_0_init_microcode(struct psp_context *psp) in psp_v13_0_init_microcode() argument
87 struct amdgpu_device *adev = psp->adev; in psp_v13_0_init_microcode()
95 err = psp_init_sos_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode()
100 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode()
113 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode()
116 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode()
127 err = psp_init_sos_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode()
131 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v13_0_init_microcode()
142 static bool psp_v13_0_is_sos_alive(struct psp_context *psp) in psp_v13_0_is_sos_alive() argument
144 struct amdgpu_device *adev = psp->adev; in psp_v13_0_is_sos_alive()
[all …]
H A Dpsp_v14_0.c61 static int psp_v14_0_init_microcode(struct psp_context *psp) in psp_v14_0_init_microcode() argument
63 struct amdgpu_device *adev = psp->adev; in psp_v14_0_init_microcode()
72 err = psp_init_sos_microcode(psp, ucode_prefix); in psp_v14_0_init_microcode()
75 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v14_0_init_microcode()
80 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v14_0_init_microcode()
83 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v14_0_init_microcode()
94 static bool psp_v14_0_is_sos_alive(struct psp_context *psp) in psp_v14_0_is_sos_alive() argument
96 struct amdgpu_device *adev = psp->adev; in psp_v14_0_is_sos_alive()
104 static int psp_v14_0_wait_for_bootloader(struct psp_context *psp) in psp_v14_0_wait_for_bootloader() argument
106 struct amdgpu_device *adev = psp->adev; in psp_v14_0_wait_for_bootloader()
[all …]
H A Dpsp_v15_0.c36 static int psp_v15_0_0_init_microcode(struct psp_context *psp) in psp_v15_0_0_init_microcode() argument
38 struct amdgpu_device *adev = psp->adev; in psp_v15_0_0_init_microcode()
44 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v15_0_0_init_microcode()
48 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v15_0_0_init_microcode()
55 static int psp_v15_0_0_ring_stop(struct psp_context *psp, in psp_v15_0_0_ring_stop() argument
59 struct amdgpu_device *adev = psp->adev; in psp_v15_0_0_ring_stop()
68 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_101), in psp_v15_0_0_ring_stop()
77 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_64), in psp_v15_0_0_ring_stop()
84 static int psp_v15_0_0_ring_create(struct psp_context *psp, in psp_v15_0_0_ring_create() argument
89 struct psp_ring *ring = &psp->km_ring; in psp_v15_0_0_ring_create()
[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()
45 psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), in psp_v11_0_8_ring_stop()
55 psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), in psp_v11_0_8_ring_stop()
62 static int psp_v11_0_8_ring_create(struct psp_context *psp, in psp_v11_0_8_ring_create() argument
67 struct psp_ring *ring = &psp->km_ring; in psp_v11_0_8_ring_create()
68 struct amdgpu_device *adev = psp->adev; in psp_v11_0_8_ring_create()
71 ret = psp_v11_0_8_ring_stop(psp, ring_type); in psp_v11_0_8_ring_create()
93 psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), in psp_v11_0_8_ring_create()
99 psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), in psp_v11_0_8_ring_create()
[all …]
H A Dpsp_v15_0_8.c36 static int psp_v15_0_8_init_microcode(struct psp_context *psp) in psp_v15_0_8_init_microcode() argument
38 struct amdgpu_device *adev = psp->adev; in psp_v15_0_8_init_microcode()
44 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v15_0_8_init_microcode()
51 static int psp_v15_0_8_ring_stop(struct psp_context *psp, in psp_v15_0_8_ring_stop() argument
55 struct amdgpu_device *adev = psp->adev; in psp_v15_0_8_ring_stop()
64 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_101), in psp_v15_0_8_ring_stop()
73 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_64), in psp_v15_0_8_ring_stop()
80 static int psp_v15_0_8_ring_create(struct psp_context *psp, in psp_v15_0_8_ring_create() argument
85 struct psp_ring *ring = &psp->km_ring; in psp_v15_0_8_ring_create()
86 struct amdgpu_device *adev = psp->adev; in psp_v15_0_8_ring_create()
[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_dev_coredump.c122 adev->psp.sos.feature_version, adev->psp.sos.fw_version); in amdgpu_devcoredump_fw_info()
124 adev->psp.asd_context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
125 adev->psp.asd_context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info()
128 adev->psp.xgmi_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
129 adev->psp.xgmi_context.context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info()
131 adev->psp.ras_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
132 adev->psp.ras_context.context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info()
134 adev->psp.hdcp_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
135 adev->psp.hdcp_context.context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info()
137 adev->psp.dtm_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
[all …]
/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
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/drivers/crypto/ccp/
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()
59 struct psp_device *psp = psp_get_master_device(); in psp_send_platform_access_msg() local
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()
76 lo = psp->io_regs + pa_dev->vdata->cmdbuff_addr_lo_reg; in psp_send_platform_access_msg()
77 hi = psp->io_regs + pa_dev->vdata->cmdbuff_addr_hi_reg; in psp_send_platform_access_msg()
82 dev_dbg(psp->dev, "platform mailbox is in recovery\n"); in psp_send_platform_access_msg()
88 dev_dbg(psp->dev, "platform mailbox is not done processing command\n"); in psp_send_platform_access_msg()
[all …]
H A Dhsti.c27 struct psp_device *psp = sp->psp_data; \
28 return sysfs_emit(buf, "%d\n", psp->capability.name); \
67 struct psp_device *psp = sp->psp_data; in psp_security_is_visible() local
69 if (psp && psp->capability.security_reporting) in psp_security_is_visible()
80 static int psp_populate_hsti(struct psp_device *psp) in psp_populate_hsti() argument
86 if (psp->capability.security_reporting) in psp_populate_hsti()
101 dev_dbg(psp->dev, "failed to populate HSTI state: %d\n", req->header.status); in psp_populate_hsti()
106 psp->capability.security_reporting = 1; in psp_populate_hsti()
107 psp->capability.raw |= req->hsti << PSP_CAPABILITY_PSP_SECURITY_OFFSET; in psp_populate_hsti()
115 int psp_init_hsti(struct psp_device *psp) in psp_init_hsti() argument
[all …]
H A Dtee-dev.c94 ret = psp_mailbox_command(tee->psp, PSP_CMD_TEE_RING_DESTROY, NULL, in tee_send_destroy_cmd()
140 ret = psp_mailbox_command(tee->psp, PSP_CMD_TEE_RING_INIT, cmd, in tee_init_ring()
189 int tee_dev_init(struct psp_device *psp) in tee_dev_init() argument
191 struct device *dev = psp->dev; in tee_dev_init()
200 psp->tee_data = tee; in tee_dev_init()
203 tee->psp = psp; in tee_dev_init()
205 tee->io_regs = psp->io_regs; in tee_dev_init()
207 tee->vdata = (struct tee_vdata *)psp->vdata->tee; in tee_dev_init()
225 psp->tee_data = NULL; in tee_dev_init()
232 void tee_dev_destroy(struct psp_device *psp) in tee_dev_destroy() argument
[all …]
H A Dsfs.c31 ret = psp_extended_mailbox_cmd(sfs_dev->psp, in send_sfs_cmd()
192 void sfs_dev_destroy(struct psp_device *psp) in sfs_dev_destroy() argument
194 struct sfs_device *sfs_dev = psp->sfs_data; in sfs_dev_destroy()
209 psp->sfs_data = NULL; in sfs_dev_destroy()
251 int sfs_dev_init(struct psp_device *psp) in sfs_dev_init() argument
253 struct device *dev = psp->dev; in sfs_dev_init()
288 psp->sfs_data = sfs_dev; in sfs_dev_init()
290 sfs_dev->psp = psp; in sfs_dev_init()
307 psp->sfs_data = NULL; in sfs_dev_init()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dpsp.c640 if (!priv->psp) in mlx5_accel_psp_fs_cleanup_rx_tables()
644 accel_psp_fs_rx_ft_put(priv->psp->fs, i); in mlx5_accel_psp_fs_cleanup_rx_tables()
652 if (!priv->psp) in mlx5_accel_psp_fs_init_rx_tables()
655 fs = priv->psp->fs; in mlx5_accel_psp_fs_init_rx_tables()
841 struct mlx5e_psp_tx *tx_fs = priv->psp->fs->tx_fs; in mlx5e_accel_psp_fs_get_stats_fill()
845 accel_psp = (struct mlx5e_accel_fs_psp *)priv->psp->fs->rx_fs; in mlx5e_accel_psp_fs_get_stats_fill()
873 if (!priv->psp) in mlx5_accel_psp_fs_cleanup_tx_tables()
876 accel_psp_fs_tx_ft_put(priv->psp->fs); in mlx5_accel_psp_fs_cleanup_tx_tables()
881 if (!priv->psp) in mlx5_accel_psp_fs_init_tx_tables()
884 return accel_psp_fs_tx_ft_get(priv->psp->fs); in mlx5_accel_psp_fs_init_tx_tables()
[all …]
/linux/drivers/staging/greybus/
H A 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 …]
/linux/drivers/power/supply/
H A Dpower_supply_core.c411 enum power_supply_property psp; member
420 if (!power_supply_get_property(epsy, data->psp, data->val)) in __power_supply_get_supplier_property()
427 enum power_supply_property psp, in power_supply_get_property_from_supplier() argument
432 .psp = psp, in power_supply_get_property_from_supplier()
879 enum power_supply_property psp) in power_supply_battery_info_has_prop() argument
884 switch (psp) { in power_supply_battery_info_has_prop()
922 enum power_supply_property psp, in power_supply_battery_info_get_prop() argument
928 if (!power_supply_battery_info_has_prop(info, psp)) in power_supply_battery_info_get_prop()
931 switch (psp) { in power_supply_battery_info_get_prop()
1198 enum power_supply_property psp) in psy_desc_has_property() argument
[all …]
H A Drn5t618_power.c352 enum power_supply_property psp, in rn5t618_battery_get_property() argument
358 switch (psp) { in rn5t618_battery_get_property()
403 enum power_supply_property psp, in rn5t618_battery_set_property() argument
408 switch (psp) { in rn5t618_battery_set_property()
417 enum power_supply_property psp) in rn5t618_battery_property_is_writeable() argument
419 switch (psp) { in rn5t618_battery_property_is_writeable()
428 enum power_supply_property psp, in rn5t618_adp_get_property() argument
443 switch (psp) { in rn5t618_adp_get_property()
482 enum power_supply_property psp, in rn5t618_adp_set_property() argument
488 switch (psp) { in rn5t618_adp_set_property()
[all …]
H A Dmp2629_charger.c213 enum power_supply_property psp, in mp2629_charger_battery_get_prop() argument
220 switch (psp) { in mp2629_charger_battery_get_prop()
316 enum power_supply_property psp, in mp2629_charger_battery_set_prop() argument
321 switch (psp) { in mp2629_charger_battery_set_prop()
340 enum power_supply_property psp, in mp2629_charger_usb_get_prop() argument
347 switch (psp) { in mp2629_charger_usb_get_prop()
405 enum power_supply_property psp, in mp2629_charger_usb_set_prop() argument
410 switch (psp) { in mp2629_charger_usb_set_prop()
423 enum power_supply_property psp) in mp2629_charger_battery_prop_writeable() argument
425 return (psp == POWER_SUPPLY_PROP_PRECHARGE_CURRENT) || in mp2629_charger_battery_prop_writeable()
[all …]
H A Dtest_power.c47 enum power_supply_property psp, in test_power_get_ac_property() argument
50 switch (psp) { in test_power_get_ac_property()
61 enum power_supply_property psp, in test_power_get_usb_property() argument
64 switch (psp) { in test_power_get_usb_property()
75 enum power_supply_property psp, in test_power_get_battery_property() argument
78 switch (psp) { in test_power_get_battery_property()
146 enum power_supply_property psp) in test_power_battery_property_is_writeable() argument
148 return psp == POWER_SUPPLY_PROP_CHARGE_BEHAVIOUR || psp == POWER_SUPPLY_PROP_CHARGE_TYPES; in test_power_battery_property_is_writeable()
152 enum power_supply_property psp, in test_power_set_battery_property() argument
155 switch (psp) { in test_power_set_battery_property()
[all …]
H A Daxp20x_battery.c277 enum power_supply_property psp, in axp20x_battery_get_prop() argument
283 switch (psp) { in axp20x_battery_get_prop()
429 enum power_supply_property psp, in axp717_battery_get_prop() argument
435 switch (psp) { in axp717_battery_get_prop()
770 enum power_supply_property psp, in axp20x_battery_set_prop() argument
775 switch (psp) { in axp20x_battery_set_prop()
806 enum power_supply_property psp, in axp717_battery_set_prop() argument
811 switch (psp) { in axp717_battery_set_prop()
870 enum power_supply_property psp) in axp20x_battery_prop_writeable() argument
872 return psp == POWER_SUPPLY_PROP_STATUS || in axp20x_battery_prop_writeable()
[all …]
H A Dchagall-battery.c94 enum power_supply_property psp, u32 *val) in chagall_battery_get_value() argument
96 if (psp >= ARRAY_SIZE(chagall_battery_prop_offs)) in chagall_battery_get_value()
98 if (!chagall_battery_prop_offs[psp]) in chagall_battery_get_value()
102 return regmap_bulk_read(cg->regmap, chagall_battery_prop_offs[psp], val, 2); in chagall_battery_get_value()
116 enum power_supply_property psp, in chagall_battery_get_property() argument
122 switch (psp) { in chagall_battery_get_property()
128 ret = chagall_battery_get_value(cg, psp, &val->intval); in chagall_battery_get_property()
132 switch (psp) { in chagall_battery_get_property()
H A Dcros_charge-control.c104 enum power_supply_property psp, in cros_chctl_psy_ext_get_prop() argument
109 switch (psp) { in cros_chctl_psy_ext_get_prop()
125 enum power_supply_property psp, in cros_chctl_psy_ext_set_threshold() argument
133 if (psp == POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD) { in cros_chctl_psy_ext_set_threshold()
160 enum power_supply_property psp, in cros_chctl_psy_ext_set_prop() argument
168 switch (psp) { in cros_chctl_psy_ext_set_prop()
171 return cros_chctl_psy_ext_set_threshold(priv, psp, val->intval); in cros_chctl_psy_ext_set_prop()
186 enum power_supply_property psp) in cros_chctl_psy_prop_is_writeable() argument
/linux/drivers/usb/misc/
H A Dapple-mfi-fastcharge.c93 enum power_supply_property psp, in apple_mfi_fc_get_property() argument
98 dev_dbg(&mfi->udev->dev, "prop: %d\n", psp); in apple_mfi_fc_get_property()
100 switch (psp) { in apple_mfi_fc_get_property()
115 enum power_supply_property psp, in apple_mfi_fc_set_property() argument
121 dev_dbg(&mfi->udev->dev, "prop: %d\n", psp); in apple_mfi_fc_set_property()
129 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/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_hdcp.c109 static uint8_t *psp_get_srm(struct psp_context *psp, uint32_t *srm_version, uint32_t *srm_size) in psp_get_srm() argument
113 if (!psp->hdcp_context.context.initialized) { in psp_get_srm()
118 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in psp_get_srm()
122 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in psp_get_srm()
133 static int psp_set_srm(struct psp_context *psp, in psp_set_srm() argument
138 if (!psp->hdcp_context.context.initialized) { in psp_set_srm()
143 hdcp_cmd = (struct ta_hdcp_shared_memory *)psp->hdcp_context.context.mem_context.shared_buf; in psp_set_srm()
150 psp_hdcp_invoke(psp, hdcp_cmd->cmd_id); in psp_set_srm()
220 psp_set_srm(hdcp_work->hdcp.config.psp.handle, hdcp_work->srm, in hdcp_update_display()
502 struct psp_context *psp = hdcp.config.psp.handle; in enable_assr() local
[all …]

123456