/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_psp.c | 49 struct psp_context *psp = &adev->psp; in psp_sw_init() local 56 psp_v3_1_set_psp_funcs(psp); in psp_sw_init() 59 psp_v10_0_set_psp_funcs(psp); in psp_sw_init() 65 psp->adev = adev; in psp_sw_init() 70 ret = psp_init_microcode(psp); in psp_sw_init() 86 release_firmware(adev->psp.sos_fw); in psp_sw_fini() 87 adev->psp.sos_fw = NULL; in psp_sw_fini() 88 release_firmware(adev->psp.asd_fw); in psp_sw_fini() 89 adev->psp.asd_fw = NULL; in psp_sw_fini() 93 int psp_wait_for(struct psp_context *psp, uint32_t reg_index, in psp_wait_for() argument [all …]
|
D | amdgpu_psp.h | 60 int (*init_microcode)(struct psp_context *psp); 61 int (*bootloader_load_sysdrv)(struct psp_context *psp); 62 int (*bootloader_load_sos)(struct psp_context *psp); 65 int (*ring_init)(struct psp_context *psp, enum psp_ring_type ring_type); 66 int (*ring_create)(struct psp_context *psp, enum psp_ring_type ring_type); 67 int (*ring_stop)(struct psp_context *psp, 69 int (*ring_destroy)(struct psp_context *psp, 71 int (*cmd_submit)(struct psp_context *psp, struct amdgpu_firmware_info *ucode, 73 bool (*compare_sram_data)(struct psp_context *psp, 76 bool (*smu_reload_quirk)(struct psp_context *psp); [all …]
|
D | psp_v3_1.c | 103 static int psp_v3_1_init_microcode(struct psp_context *psp) in psp_v3_1_init_microcode() argument 105 struct amdgpu_device *adev = psp->adev; in psp_v3_1_init_microcode() 124 err = request_firmware(&adev->psp.sos_fw, fw_name, adev->dev); in psp_v3_1_init_microcode() 128 err = amdgpu_ucode_validate(adev->psp.sos_fw); in psp_v3_1_init_microcode() 132 hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data; in psp_v3_1_init_microcode() 133 adev->psp.sos_fw_version = le32_to_cpu(hdr->header.ucode_version); in psp_v3_1_init_microcode() 134 adev->psp.sos_feature_version = le32_to_cpu(hdr->ucode_feature_version); in psp_v3_1_init_microcode() 135 adev->psp.sos_bin_size = le32_to_cpu(hdr->sos_size_bytes); in psp_v3_1_init_microcode() 136 adev->psp.sys_bin_size = le32_to_cpu(hdr->header.ucode_size_bytes) - in psp_v3_1_init_microcode() 138 adev->psp.sys_start_addr = (uint8_t *)hdr + in psp_v3_1_init_microcode() [all …]
|
D | psp_v10_0.c | 102 static int psp_v10_0_init_microcode(struct psp_context *psp) in psp_v10_0_init_microcode() argument 104 struct amdgpu_device *adev = psp->adev; in psp_v10_0_init_microcode() 120 err = request_firmware(&adev->psp.asd_fw, fw_name, adev->dev); in psp_v10_0_init_microcode() 124 err = amdgpu_ucode_validate(adev->psp.asd_fw); in psp_v10_0_init_microcode() 128 hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data; in psp_v10_0_init_microcode() 129 adev->psp.asd_fw_version = le32_to_cpu(hdr->header.ucode_version); in psp_v10_0_init_microcode() 130 adev->psp.asd_feature_version = le32_to_cpu(hdr->ucode_feature_version); in psp_v10_0_init_microcode() 131 adev->psp.asd_ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); in psp_v10_0_init_microcode() 132 adev->psp.asd_start_addr = (uint8_t *)hdr + in psp_v10_0_init_microcode() 141 release_firmware(adev->psp.asd_fw); in psp_v10_0_init_microcode() [all …]
|
/Linux-v4.19/drivers/crypto/ccp/ |
D | psp-dev.c | 55 struct psp_device *psp; in psp_alloc_struct() local 57 psp = devm_kzalloc(dev, sizeof(*psp), GFP_KERNEL); in psp_alloc_struct() 58 if (!psp) in psp_alloc_struct() 61 psp->dev = dev; in psp_alloc_struct() 62 psp->sp = sp; in psp_alloc_struct() 64 snprintf(psp->name, sizeof(psp->name), "psp-%u", sp->ord); in psp_alloc_struct() 66 return psp; in psp_alloc_struct() 71 struct psp_device *psp = data; in psp_irq_handler() local 76 status = ioread32(psp->io_regs + psp->vdata->intsts_reg); in psp_irq_handler() 83 reg = ioread32(psp->io_regs + psp->vdata->cmdresp_reg); in psp_irq_handler() [all …]
|
/Linux-v4.19/drivers/power/supply/ |
D | sbs-battery.c | 76 .psp = _psp, \ 83 enum power_supply_property psp; member 321 struct i2c_client *client, enum power_supply_property psp, in sbs_get_battery_presence_and_health() argument 326 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_battery_presence_and_health() 342 struct i2c_client *client, enum power_supply_property psp, in sbs_get_ti_battery_presence_and_health() argument 354 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health() 361 if (psp == POWER_SUPPLY_PROP_PRESENT) in sbs_get_ti_battery_presence_and_health() 377 if (psp == POWER_SUPPLY_PROP_PRESENT) { in sbs_get_ti_battery_presence_and_health() 383 } else if (psp == POWER_SUPPLY_PROP_HEALTH) { in sbs_get_ti_battery_presence_and_health() 398 int reg_offset, enum power_supply_property psp, in sbs_get_battery_property() argument [all …]
|
D | lego_ev3_battery.c | 38 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()
|
D | rt5033_battery.c | 39 enum power_supply_property psp) in rt5033_battery_get_watt_prop() argument 46 switch (psp) { in rt5033_battery_get_watt_prop() 72 enum power_supply_property psp, in rt5033_battery_get_property() argument 77 switch (psp) { in rt5033_battery_get_property() 82 psp); in rt5033_battery_get_property()
|
D | axp20x_usb_power.c | 67 enum power_supply_property psp, union power_supply_propval *val) in axp20x_usb_power_get_property() argument 73 switch (psp) { in axp20x_usb_power_get_property() 157 switch (psp) { in axp20x_usb_power_get_property() 240 enum power_supply_property psp, in axp20x_usb_power_set_property() argument 245 switch (psp) { in axp20x_usb_power_set_property() 260 enum power_supply_property psp) in axp20x_usb_power_prop_writeable() argument 262 return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN || in axp20x_usb_power_prop_writeable() 263 psp == POWER_SUPPLY_PROP_CURRENT_MAX; in axp20x_usb_power_prop_writeable()
|
D | qcom_smbb.c | 497 enum power_supply_property psp, in smbb_usbin_get_property() argument 503 switch (psp) { in smbb_usbin_get_property() 525 enum power_supply_property psp, in smbb_usbin_set_property() argument 531 switch (psp) { in smbb_usbin_set_property() 545 enum power_supply_property psp, in smbb_dcin_get_property() argument 551 switch (psp) { in smbb_dcin_get_property() 573 enum power_supply_property psp, in smbb_dcin_set_property() argument 579 switch (psp) { in smbb_dcin_set_property() 593 enum power_supply_property psp) in smbb_charger_writable_property() argument 595 return psp == POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT; in smbb_charger_writable_property() [all …]
|
D | axp20x_battery.c | 184 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()
|
D | generic-adc-battery.c | 114 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()
|
D | power_supply_sysfs.c | 121 enum power_supply_property psp = attr - power_supply_attrs; in power_supply_show_property() local 124 if (psp == POWER_SUPPLY_PROP_TYPE) { in power_supply_show_property() 127 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()
|
D | pmu_battery.c | 34 enum power_supply_property psp, in pmu_get_ac_prop() argument 37 switch (psp) { in pmu_get_ac_prop() 86 enum power_supply_property psp, in pmu_bat_get_property() argument 92 switch (psp) { in pmu_bat_get_property()
|
D | goldfish_battery.c | 68 enum power_supply_property psp, in goldfish_ac_get_property() argument 74 switch (psp) { in goldfish_ac_get_property() 86 enum power_supply_property psp, in goldfish_battery_get_property() argument 92 switch (psp) { in goldfish_battery_get_property()
|
D | sbs-manager.c | 96 enum power_supply_property psp, in sbsm_get_property() argument 102 switch (psp) { in sbsm_get_property() 139 enum power_supply_property psp) in sbsm_prop_is_writeable() argument 143 return (psp == POWER_SUPPLY_PROP_CHARGE_TYPE) && data->is_ltc1760; in sbsm_prop_is_writeable() 147 enum power_supply_property psp, in sbsm_set_property() argument 154 switch (psp) { in sbsm_set_property()
|
D | test_power.c | 43 enum power_supply_property psp, in test_power_get_ac_property() argument 46 switch (psp) { in test_power_get_ac_property() 57 enum power_supply_property psp, in test_power_get_usb_property() argument 60 switch (psp) { in test_power_get_usb_property() 71 enum power_supply_property psp, in test_power_get_battery_property() argument 74 switch (psp) { in test_power_get_battery_property()
|
D | bq24735-charger.c | 69 enum power_supply_property psp) in bq24735_charger_property_is_writeable() argument 71 switch (psp) { in bq24735_charger_property_is_writeable() 253 enum power_supply_property psp, in bq24735_charger_get_property() argument 258 switch (psp) { in bq24735_charger_get_property() 283 enum power_supply_property psp, in bq24735_charger_set_property() argument 289 switch (psp) { in bq24735_charger_set_property()
|
D | pcf50633-charger.c | 288 enum power_supply_property psp, in adapter_get_property() argument 294 switch (psp) { in adapter_get_property() 306 enum power_supply_property psp, in usb_get_property() argument 314 switch (psp) { in usb_get_property() 327 enum power_supply_property psp, in ac_get_property() argument 335 switch (psp) { in ac_get_property()
|
D | ipaq_micro_battery.c | 132 enum power_supply_property psp, in micro_batt_get_property() argument 137 switch (psp) { in micro_batt_get_property() 180 enum power_supply_property psp, in micro_ac_get_property() argument 185 switch (psp) { in micro_ac_get_property()
|
D | wm8350_power.c | 251 enum power_supply_property psp, in wm8350_ac_get_prop() argument 257 switch (psp) { in wm8350_ac_get_prop() 281 enum power_supply_property psp, in wm8350_usb_get_prop() argument 287 switch (psp) { in wm8350_usb_get_prop() 347 enum power_supply_property psp, in wm8350_bat_get_property() argument 353 switch (psp) { in wm8350_bat_get_property()
|
D | max8925_power.c | 196 enum power_supply_property psp, in max8925_ac_get_prop() argument 202 switch (psp) { in max8925_ac_get_prop() 230 enum power_supply_property psp, in max8925_usb_get_prop() argument 236 switch (psp) { in max8925_usb_get_prop() 264 enum power_supply_property psp, in max8925_bat_get_prop() argument 270 switch (psp) { in max8925_bat_get_prop()
|
/Linux-v4.19/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-v4.19/drivers/staging/greybus/ |
D | power_supply.c | 107 static int get_psp_from_gb_prop(int gb_prop, enum power_supply_property *psp) in get_psp_from_gb_prop() argument 306 *psp = (enum power_supply_property)prop; in get_psp_from_gb_prop() 317 enum power_supply_property psp) in get_psy_prop() argument 322 if (gbpsy->props[i].prop == psp) in get_psy_prop() 328 enum power_supply_property psp) in is_psy_prop_writeable() argument 332 prop = get_psy_prop(gbpsy, psp); in is_psy_prop_writeable() 338 static int is_prop_valint(enum power_supply_property psp) in is_prop_valint() argument 340 return ((psp < POWER_SUPPLY_PROP_MODEL_NAME) ? 1 : 0); in is_prop_valint() 514 enum power_supply_property psp; in gb_power_supply_prop_descriptors_get() local 540 ret = get_psp_from_gb_prop(resp->props[i].property, &psp); in gb_power_supply_prop_descriptors_get() [all …]
|
/Linux-v4.19/include/linux/ |
D | power_supply.h | 227 enum power_supply_property psp, 230 enum power_supply_property psp, 238 enum power_supply_property psp); 365 enum power_supply_property psp, 368 enum power_supply_property psp, 371 enum power_supply_property psp); 399 static inline bool power_supply_is_amp_property(enum power_supply_property psp) in power_supply_is_amp_property() argument 401 switch (psp) { in power_supply_is_amp_property() 425 static inline bool power_supply_is_watt_property(enum power_supply_property psp) in power_supply_is_watt_property() argument 427 switch (psp) { in power_supply_is_watt_property()
|