Home
last modified time | relevance | path

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

123456

/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_psp.h81 int (*init_microcode)(struct psp_context *psp);
82 int (*bootloader_load_kdb)(struct psp_context *psp);
83 int (*bootloader_load_sysdrv)(struct psp_context *psp);
84 int (*bootloader_load_sos)(struct psp_context *psp);
85 int (*ring_init)(struct psp_context *psp, enum psp_ring_type ring_type);
86 int (*ring_create)(struct psp_context *psp,
88 int (*ring_stop)(struct psp_context *psp,
90 int (*ring_destroy)(struct psp_context *psp,
92 int (*cmd_submit)(struct psp_context *psp,
95 bool (*compare_sram_data)(struct psp_context *psp,
[all …]
Damdgpu_psp.c42 struct psp_context *psp = &adev->psp; in psp_early_init() local
49 psp_v3_1_set_psp_funcs(psp); in psp_early_init()
50 psp->autoload_supported = false; in psp_early_init()
53 psp_v10_0_set_psp_funcs(psp); in psp_early_init()
54 psp->autoload_supported = false; in psp_early_init()
58 psp_v11_0_set_psp_funcs(psp); in psp_early_init()
59 psp->autoload_supported = false; in psp_early_init()
64 psp_v11_0_set_psp_funcs(psp); in psp_early_init()
65 psp->autoload_supported = true; in psp_early_init()
68 psp_v12_0_set_psp_funcs(psp); in psp_early_init()
[all …]
Dpsp_v11_0.c61 static int psp_v11_0_init_microcode(struct psp_context *psp) in psp_v11_0_init_microcode() argument
63 struct amdgpu_device *adev = psp->adev; in psp_v11_0_init_microcode()
96 err = request_firmware(&adev->psp.sos_fw, fw_name, adev->dev); in psp_v11_0_init_microcode()
100 err = amdgpu_ucode_validate(adev->psp.sos_fw); in psp_v11_0_init_microcode()
104 sos_hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data; in psp_v11_0_init_microcode()
109 adev->psp.sos_fw_version = le32_to_cpu(sos_hdr->header.ucode_version); in psp_v11_0_init_microcode()
110 adev->psp.sos_feature_version = le32_to_cpu(sos_hdr->ucode_feature_version); in psp_v11_0_init_microcode()
111 adev->psp.sos_bin_size = le32_to_cpu(sos_hdr->sos_size_bytes); in psp_v11_0_init_microcode()
112 adev->psp.sys_bin_size = le32_to_cpu(sos_hdr->sos_offset_bytes); in psp_v11_0_init_microcode()
113 adev->psp.sys_start_addr = (uint8_t *)sos_hdr + in psp_v11_0_init_microcode()
[all …]
Dpsp_v3_1.c55 static bool psp_v3_1_support_vmr_ring(struct psp_context *psp);
56 static int psp_v3_1_ring_stop(struct psp_context *psp,
59 static int psp_v3_1_init_microcode(struct psp_context *psp) in psp_v3_1_init_microcode() argument
61 struct amdgpu_device *adev = psp->adev; in psp_v3_1_init_microcode()
80 err = request_firmware(&adev->psp.sos_fw, fw_name, adev->dev); in psp_v3_1_init_microcode()
84 err = amdgpu_ucode_validate(adev->psp.sos_fw); in psp_v3_1_init_microcode()
88 hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data; in psp_v3_1_init_microcode()
89 adev->psp.sos_fw_version = le32_to_cpu(hdr->header.ucode_version); in psp_v3_1_init_microcode()
90 adev->psp.sos_feature_version = le32_to_cpu(hdr->ucode_feature_version); in psp_v3_1_init_microcode()
91 adev->psp.sos_bin_size = le32_to_cpu(hdr->sos_size_bytes); in psp_v3_1_init_microcode()
[all …]
Dpsp_v12_0.c44 static int psp_v12_0_init_microcode(struct psp_context *psp) in psp_v12_0_init_microcode() argument
46 struct amdgpu_device *adev = psp->adev; in psp_v12_0_init_microcode()
63 err = request_firmware(&adev->psp.asd_fw, fw_name, adev->dev); in psp_v12_0_init_microcode()
67 err = amdgpu_ucode_validate(adev->psp.asd_fw); in psp_v12_0_init_microcode()
71 asd_hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data; in psp_v12_0_init_microcode()
72 adev->psp.asd_fw_version = le32_to_cpu(asd_hdr->header.ucode_version); in psp_v12_0_init_microcode()
73 adev->psp.asd_feature_version = le32_to_cpu(asd_hdr->ucode_feature_version); in psp_v12_0_init_microcode()
74 adev->psp.asd_ucode_size = le32_to_cpu(asd_hdr->header.ucode_size_bytes); in psp_v12_0_init_microcode()
75 adev->psp.asd_start_addr = (uint8_t *)asd_hdr + in psp_v12_0_init_microcode()
81 release_firmware(adev->psp.asd_fw); in psp_v12_0_init_microcode()
[all …]
Dpsp_v10_0.c44 static int psp_v10_0_init_microcode(struct psp_context *psp) in psp_v10_0_init_microcode() argument
46 struct amdgpu_device *adev = psp->adev; in psp_v10_0_init_microcode()
67 err = request_firmware(&adev->psp.asd_fw, fw_name, adev->dev); in psp_v10_0_init_microcode()
71 err = amdgpu_ucode_validate(adev->psp.asd_fw); in psp_v10_0_init_microcode()
75 hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data; in psp_v10_0_init_microcode()
76 adev->psp.asd_fw_version = le32_to_cpu(hdr->header.ucode_version); in psp_v10_0_init_microcode()
77 adev->psp.asd_feature_version = le32_to_cpu(hdr->ucode_feature_version); in psp_v10_0_init_microcode()
78 adev->psp.asd_ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in psp_v10_0_init_microcode()
79 adev->psp.asd_start_addr = (uint8_t *)hdr + in psp_v10_0_init_microcode()
88 release_firmware(adev->psp.asd_fw); in psp_v10_0_init_microcode()
[all …]
Damdgpu_xgmi.c301 ret = psp_xgmi_set_topology_info(&adev->psp, in amdgpu_xgmi_update_topology()
303 &adev->psp.xgmi_context.top_info); in amdgpu_xgmi_update_topology()
317 struct psp_xgmi_topology_info *top = &adev->psp.xgmi_context.top_info; in amdgpu_xgmi_get_hops_count()
339 ret = psp_xgmi_get_hive_id(&adev->psp, &adev->gmc.xgmi.hive_id); in amdgpu_xgmi_add_device()
346 ret = psp_xgmi_get_node_id(&adev->psp, &adev->gmc.xgmi.node_id); in amdgpu_xgmi_add_device()
366 top_info = &adev->psp.xgmi_context.top_info; in amdgpu_xgmi_add_device()
378 top_info = &tmp_adev->psp.xgmi_context.top_info; in amdgpu_xgmi_add_device()
390 ret = psp_xgmi_get_topology_info(&tmp_adev->psp, count, in amdgpu_xgmi_add_device()
391 &tmp_adev->psp.xgmi_context.top_info); in amdgpu_xgmi_add_device()
Dvega10_ih.c54 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL, ih_rb_cntl)) { in vega10_ih_enable_interrupts()
68 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING1, in vega10_ih_enable_interrupts()
84 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING2, in vega10_ih_enable_interrupts()
110 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL, ih_rb_cntl)) { in vega10_ih_disable_interrupts()
129 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING1, in vega10_ih_disable_interrupts()
149 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING2, in vega10_ih_disable_interrupts()
248 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL, ih_rb_cntl)) { in vega10_ih_irq_init()
287 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING1, in vega10_ih_irq_init()
314 if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING2, in vega10_ih_irq_init()
/Linux-v5.4/drivers/crypto/ccp/
Dpsp-dev.c58 struct psp_device *psp; in psp_alloc_struct() local
60 psp = devm_kzalloc(dev, sizeof(*psp), GFP_KERNEL); in psp_alloc_struct()
61 if (!psp) in psp_alloc_struct()
64 psp->dev = dev; in psp_alloc_struct()
65 psp->sp = sp; in psp_alloc_struct()
67 snprintf(psp->name, sizeof(psp->name), "psp-%u", sp->ord); in psp_alloc_struct()
69 return psp; in psp_alloc_struct()
74 struct psp_device *psp = data; in psp_irq_handler() local
79 status = ioread32(psp->io_regs + psp->vdata->intsts_reg); in psp_irq_handler()
86 reg = ioread32(psp->io_regs + psp->vdata->cmdresp_reg); in psp_irq_handler()
[all …]
/Linux-v5.4/drivers/power/supply/
Dsbs-battery.c67 .psp = _psp, \
74 enum power_supply_property psp; member
312 struct i2c_client *client, enum power_supply_property psp, in sbs_get_battery_presence_and_health() argument
321 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_battery_presence_and_health()
328 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_battery_presence_and_health()
338 struct i2c_client *client, enum power_supply_property psp, in sbs_get_ti_battery_presence_and_health() argument
350 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health()
357 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health()
373 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_ti_battery_presence_and_health()
379 } else if (psp == POWER_SUPPLY_PROP_HEALTH) { in sbs_get_ti_battery_presence_and_health()
[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.c82 enum power_supply_property psp, in wilco_charge_get_property() argument
90 switch (psp) { in wilco_charge_get_property()
119 enum power_supply_property psp, in wilco_charge_set_property() argument
125 switch (psp) { in wilco_charge_set_property()
149 enum power_supply_property psp) in wilco_charge_property_is_writeable() argument
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()
Daxp20x_ac_power.c55 enum power_supply_property psp, in axp20x_ac_power_get_property() argument
61 switch (psp) { in axp20x_ac_power_get_property()
140 enum power_supply_property psp, in axp813_ac_power_set_property() argument
145 switch (psp) { in axp813_ac_power_set_property()
170 enum power_supply_property psp) in axp813_ac_power_prop_writeable() argument
172 return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN || in axp813_ac_power_prop_writeable()
173 psp == POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT; in axp813_ac_power_prop_writeable()
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
191 switch (psp) { in axp20x_battery_get_prop()
453 enum power_supply_property psp, in axp20x_battery_set_prop() argument
458 switch (psp) { in axp20x_battery_set_prop()
492 enum power_supply_property psp) in axp20x_battery_prop_writeable() argument
494 return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN || in axp20x_battery_prop_writeable()
495 psp == POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN || in axp20x_battery_prop_writeable()
496 psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT || in axp20x_battery_prop_writeable()
497 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()
145 enum power_supply_property psp, union power_supply_propval *val) in gab_get_property() argument
161 switch (psp) { in gab_get_property()
174 ret = read_channel(adc_bat, psp, &result); in gab_get_property()
Dpower_supply_sysfs.c120 enum power_supply_property psp = attr - power_supply_attrs; in power_supply_show_property() local
123 if (psp == POWER_SUPPLY_PROP_TYPE) { in power_supply_show_property()
126 ret = power_supply_get_property(psy, psp, &value); in power_supply_show_property()
140 switch (psp) { in power_supply_show_property()
189 enum power_supply_property psp = attr - power_supply_attrs; in power_supply_store_property() local
192 switch (psp) { in power_supply_store_property()
231 ret = power_supply_set_property(psy, psp, &value); in power_supply_store_property()
Daxp20x_usb_power.c161 enum power_supply_property psp, union power_supply_propval *val) in axp20x_usb_power_get_property() argument
167 switch (psp) { in axp20x_usb_power_get_property()
232 switch (psp) { in axp20x_usb_power_get_property()
340 enum power_supply_property psp, in axp20x_usb_power_set_property() argument
345 switch (psp) { in axp20x_usb_power_set_property()
363 enum power_supply_property psp) in axp20x_usb_power_prop_writeable() argument
365 return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN || in axp20x_usb_power_prop_writeable()
366 psp == POWER_SUPPLY_PROP_CURRENT_MAX; in axp20x_usb_power_prop_writeable()
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()
Dsbs-manager.c93 enum power_supply_property psp, in sbsm_get_property() argument
99 switch (psp) { in sbsm_get_property()
136 enum power_supply_property psp) in sbsm_prop_is_writeable() argument
140 return (psp == POWER_SUPPLY_PROP_CHARGE_TYPE) && data->is_ltc1760; in sbsm_prop_is_writeable()
144 enum power_supply_property psp, in sbsm_set_property() argument
151 switch (psp) { in sbsm_set_property()
Dtest_power.c40 enum power_supply_property psp, in test_power_get_ac_property() argument
43 switch (psp) { in test_power_get_ac_property()
54 enum power_supply_property psp, in test_power_get_usb_property() argument
57 switch (psp) { in test_power_get_usb_property()
68 enum power_supply_property psp, in test_power_get_battery_property() argument
71 switch (psp) { in test_power_get_battery_property()
/Linux-v5.4/arch/ia64/kernel/
Dmca_drv.c378 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-v5.4/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 …]
/Linux-v5.4/include/linux/
Dpower_supply.h238 enum power_supply_property psp,
241 enum power_supply_property psp,
249 enum power_supply_property psp);
397 enum power_supply_property psp,
400 enum power_supply_property psp,
403 enum power_supply_property psp);
431 static inline bool power_supply_is_amp_property(enum power_supply_property psp) in power_supply_is_amp_property() argument
433 switch (psp) { in power_supply_is_amp_property()
457 static inline bool power_supply_is_watt_property(enum power_supply_property psp) in power_supply_is_watt_property() argument
459 switch (psp) { in power_supply_is_watt_property()

123456