Home
last modified time | relevance | path

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

12345

/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()
H A Dplatform-access.h22 struct psp_device *psp; member
32 void platform_access_dev_destroy(struct psp_device *psp);
33 int platform_access_dev_init(struct psp_device *psp);
H A Ddbc.h23 struct psp_device *psp; member
44 void dbc_dev_destroy(struct psp_device *psp);
45 int dbc_dev_init(struct psp_device *psp);
H A Dsfs.h36 struct psp_device *psp; member
44 void sfs_dev_destroy(struct psp_device *psp);
45 int sfs_dev_init(struct psp_device *psp);
/linux/drivers/gpu/drm/amd/amdgpu/
H A Dpsp_v15_0.c52 static int psp_v15_0_0_init_microcode(struct psp_context *psp) in psp_v15_0_0_init_microcode() argument
54 struct amdgpu_device *adev = psp->adev; in psp_v15_0_0_init_microcode()
60 err = psp_init_toc_microcode(psp, ucode_prefix); in psp_v15_0_0_init_microcode()
64 err = psp_init_ta_microcode(psp, ucode_prefix); in psp_v15_0_0_init_microcode()
71 static int psp_v15_0_0_ring_stop(struct psp_context *psp, in psp_v15_0_0_ring_stop() argument
75 struct amdgpu_device *adev = psp->adev; in psp_v15_0_0_ring_stop()
84 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_SMN_C2PMSG_101), in psp_v15_0_0_ring_stop()
94 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_PCRU0_MPASP_C2PMSG_64), in psp_v15_0_0_ring_stop()
103 ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, regMPASP_PCRU1_MPASP_C2PMSG_64), in psp_v15_0_0_ring_stop()
111 static int psp_v15_0_0_ring_create(struct psp_context *psp, in psp_v15_0_0_ring_create() argument
[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 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.c132 adev->psp.sos.feature_version, adev->psp.sos.fw_version); in amdgpu_devcoredump_fw_info()
134 adev->psp.asd_context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
135 adev->psp.asd_context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info()
138 adev->psp.xgmi_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
139 adev->psp.xgmi_context.context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info()
141 adev->psp.ras_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
142 adev->psp.ras_context.context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info()
144 adev->psp.hdcp_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
145 adev->psp.hdcp_context.context.bin_desc.fw_version); in amdgpu_devcoredump_fw_info()
147 adev->psp.dtm_context.context.bin_desc.feature_version, in amdgpu_devcoredump_fw_info()
[all …]
H A Damdgpu_securedisplay.h31 void psp_securedisplay_parse_resp_status(struct psp_context *psp,
33 void psp_prep_securedisplay_cmd_buf(struct psp_context *psp, struct ta_securedisplay_cmd **cmd,
H A Dsmu_v13_0_10.c143 struct psp_context *psp = &adev->psp; in smu_v13_0_10_mode2_restore_ip() local
161 r = psp_load_fw_list(psp, ucode_list, ucode_count); in smu_v13_0_10_mode2_restore_ip()
167 r = psp_rlc_autoload_start(psp); in smu_v13_0_10_mode2_restore_ip()
/linux/drivers/net/netdevsim/
H A Dpsp.c53 atomic64_inc(&ns->psp.tx_packets); in nsim_do_psp()
54 atomic64_add(psp_len, &ns->psp.tx_bytes); in nsim_do_psp()
57 peer_psd = rcu_dereference(peer_ns->psp.dev); in nsim_do_psp()
80 atomic64_inc(&peer_ns->psp.rx_packets); in nsim_do_psp()
81 atomic64_add(psp_len, &peer_ns->psp.rx_bytes); in nsim_do_psp()
139 if ((ns->psp.spi & PSP_SPI_KEY_ID) == PSP_SPI_KEY_ID) { in nsim_rx_spi_alloc()
144 assoc->spi = cpu_to_be32(++ns->psp.spi); in nsim_rx_spi_alloc()
147 assoc->key[i] = ns->psp.spi + i; in nsim_rx_spi_alloc()
160 ns->psp.assoc_cnt++; in nsim_assoc_add()
172 if (ns->psp.spi & PSP_SPI_KEY_PHASE) in nsim_key_rotate()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dpsp.c643 if (!priv->psp) in mlx5_accel_psp_fs_cleanup_rx_tables()
647 accel_psp_fs_rx_destroy(priv->psp->fs); in mlx5_accel_psp_fs_cleanup_rx_tables()
765 struct mlx5e_psp_fs *fs = priv->psp->fs; in mlx5e_accel_psp_fs_get_stats_fill()
794 if (!priv->psp) in mlx5_accel_psp_fs_cleanup_tx_tables()
798 accel_psp_fs_tx_ft_destroy(&priv->psp->fs->tx); in mlx5_accel_psp_fs_cleanup_tx_tables()
842 err = accel_psp_fs_rx_create(priv->psp->fs, extack); in accel_psp_fs_create()
846 err = accel_psp_fs_tx_ft_create(priv->psp->fs, &priv->psp->fs->tx); in accel_psp_fs_create()
849 accel_psp_fs_rx_destroy(priv->psp->fs); in accel_psp_fs_create()
856 accel_psp_fs_tx_ft_destroy(&priv->psp->fs->tx); in accel_psp_fs_destroy()
857 accel_psp_fs_rx_destroy(priv->psp->fs); in accel_psp_fs_destroy()
[all …]
/linux/drivers/power/supply/
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 Dmp2629_charger.c212 enum power_supply_property psp, in mp2629_charger_battery_get_prop() argument
219 switch (psp) { in mp2629_charger_battery_get_prop()
315 enum power_supply_property psp, in mp2629_charger_battery_set_prop() argument
320 switch (psp) { in mp2629_charger_battery_set_prop()
339 enum power_supply_property psp, in mp2629_charger_usb_get_prop() argument
346 switch (psp) { in mp2629_charger_usb_get_prop()
404 enum power_supply_property psp, in mp2629_charger_usb_set_prop() argument
409 switch (psp) { in mp2629_charger_usb_set_prop()
422 enum power_supply_property psp) in mp2629_charger_battery_prop_writeable() argument
424 return (psp == POWER_SUPPLY_PROP_PRECHARGE_CURRENT) || in mp2629_charger_battery_prop_writeable()
[all …]
H A Dchagall-battery.c93 enum power_supply_property psp, u32 *val) in chagall_battery_get_value() argument
95 if (psp >= ARRAY_SIZE(chagall_battery_prop_offs)) in chagall_battery_get_value()
97 if (!chagall_battery_prop_offs[psp]) in chagall_battery_get_value()
101 return regmap_bulk_read(cg->regmap, chagall_battery_prop_offs[psp], val, 2); in chagall_battery_get_value()
115 enum power_supply_property psp, in chagall_battery_get_property() argument
121 switch (psp) { in chagall_battery_get_property()
127 ret = chagall_battery_get_value(cg, psp, &val->intval); in chagall_battery_get_property()
131 switch (psp) { in chagall_battery_get_property()
H A 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()
H A Dcros_charge-control.c103 enum power_supply_property psp, in cros_chctl_psy_ext_get_prop() argument
108 switch (psp) { in cros_chctl_psy_ext_get_prop()
124 enum power_supply_property psp, in cros_chctl_psy_ext_set_threshold() argument
132 if (psp == POWER_SUPPLY_PROP_CHARGE_CONTROL_END_THRESHOLD) { in cros_chctl_psy_ext_set_threshold()
159 enum power_supply_property psp, in cros_chctl_psy_ext_set_prop() argument
167 switch (psp) { in cros_chctl_psy_ext_set_prop()
170 return cros_chctl_psy_ext_set_threshold(priv, psp, val->intval); in cros_chctl_psy_ext_set_prop()
185 enum power_supply_property psp) in cros_chctl_psy_prop_is_writeable() argument
H A 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
H A Dhuawei-gaokun-battery.c142 enum power_supply_property psp, in gaokun_psy_get_adp_property() argument
152 switch (psp) { in gaokun_psy_get_adp_property()
273 enum power_supply_property psp, in gaokun_psy_get_bat_property() argument
282 else if (psp != POWER_SUPPLY_PROP_PRESENT) in gaokun_psy_get_bat_property()
285 switch (psp) { in gaokun_psy_get_bat_property()
332 if (psp == POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD) in gaokun_psy_get_bat_property()
362 enum power_supply_property psp, in gaokun_psy_set_bat_property() argument
376 switch (psp) { in gaokun_psy_set_bat_property()
401 enum power_supply_property psp) in gaokun_psy_is_bat_property_writeable() argument
403 return psp == POWER_SUPPLY_PROP_CHARGE_CONTROL_START_THRESHOLD || in gaokun_psy_is_bat_property_writeable()
[all …]
H A Dpmu_battery.c31 enum power_supply_property psp, in pmu_get_ac_prop() argument
34 switch (psp) { in pmu_get_ac_prop()
83 enum power_supply_property psp, in pmu_bat_get_property() argument
89 switch (psp) { in pmu_bat_get_property()
H A Dbd71828-power.c445 enum power_supply_property psp, in bd71828_charger_get_property() argument
455 switch (psp) { in bd71828_charger_get_property()
495 enum power_supply_property psp, in bd71828_charger_set_property() argument
500 switch (psp) { in bd71828_charger_set_property()
521 enum power_supply_property psp) in bd71828_charger_property_is_writeable() argument
525 switch (psp) { in bd71828_charger_property_is_writeable()
534 enum power_supply_property psp, in bd71828_battery_get_property() argument
541 if (psp == POWER_SUPPLY_PROP_STATUS || in bd71828_battery_get_property()
542 psp == POWER_SUPPLY_PROP_HEALTH || in bd71828_battery_get_property()
543 psp == POWER_SUPPLY_PROP_CHARGE_TYPE) in bd71828_battery_get_property()
[all …]
/linux/tools/testing/selftests/drivers/net/
H A DMakefile21 psp.py \
37 YNL_GENS := psp

12345