psp 62 arch/ia64/include/asm/unwind.h unsigned long psp; /* previous sp value */ psp 158 arch/ia64/include/asm/unwind.h *valp = (info)->psp; psp 378 arch/ia64/kernel/mca_drv.c pal_processor_state_info_t *psp = psp 403 arch/ia64/kernel/mca_drv.c if (psp->tc || psp->cc || psp->rc || psp->uc) psp 581 arch/ia64/kernel/mca_drv.c pal_processor_state_info_t *psp = psp 584 arch/ia64/kernel/mca_drv.c if (psp->bc && pbci->eb && pbci->bsi == 0) { psp 606 arch/ia64/kernel/mca_drv.c } else if (psp->cc && !psp->bc) { /* Cache error */ psp 657 arch/ia64/kernel/mca_drv.c pal_processor_state_info_t *psp = psp 668 arch/ia64/kernel/mca_drv.c if (psp->cm == 1) psp 674 arch/ia64/kernel/mca_drv.c if (psp->us || psp->ci == 0) psp 680 arch/ia64/kernel/mca_drv.c if (psp->tc && !(psp->cc || psp->bc || psp->rc || psp->uc)) psp 691 arch/ia64/kernel/mca_drv.c if (psp->cc == 0 && (psp->bc == 0 || pbci == NULL)) psp 161 arch/ia64/kernel/unwind.c offsetof(struct unw_frame_info, psp)/8, psp 273 arch/ia64/kernel/unwind.c info->pt = (unsigned long) ((struct pt_regs *) info->psp - 1); psp 1678 arch/ia64/kernel/unwind.c insn.dst = offsetof(struct unw_frame_info, psp)/8; psp 1785 arch/ia64/kernel/unwind.c s[dst] = state->psp + val; psp 1942 arch/ia64/kernel/unwind.c info->sp = info->psp; psp 2037 arch/ia64/kernel/unwind.c info->sp = info->psp = stktop; psp 439 arch/sparc/kernel/process_64.c static unsigned long clone_stackframe(unsigned long csp, unsigned long psp) psp 441 arch/sparc/kernel/process_64.c bool stack_64bit = test_thread_64bit_stack(psp); psp 446 arch/sparc/kernel/process_64.c psp += STACK_BIAS; psp 447 arch/sparc/kernel/process_64.c __get_user(fp, &(((struct reg_window __user *)psp)->ins[6])); psp 452 arch/sparc/kernel/process_64.c __get_user(fp, &(((struct reg_window32 __user *)psp)->ins[6])); psp 460 arch/sparc/kernel/process_64.c distance = fp - psp; psp 462 arch/sparc/kernel/process_64.c if (copy_in_user((void __user *) rval, (void __user *) psp, distance)) psp 128 drivers/acpi/ac.c enum power_supply_property psp, psp 139 drivers/acpi/ac.c switch (psp) { psp 217 drivers/acpi/battery.c enum power_supply_property psp, psp 226 drivers/acpi/battery.c } else if (psp != POWER_SUPPLY_PROP_PRESENT) psp 228 drivers/acpi/battery.c switch (psp) { psp 135 drivers/acpi/sbs.c enum power_supply_property psp, psp 139 drivers/acpi/sbs.c switch (psp) { psp 163 drivers/acpi/sbs.c enum power_supply_property psp, psp 168 drivers/acpi/sbs.c if ((!battery->present) && psp != POWER_SUPPLY_PROP_PRESENT) psp 172 drivers/acpi/sbs.c switch (psp) { psp 58 drivers/crypto/ccp/psp-dev.c struct psp_device *psp; psp 60 drivers/crypto/ccp/psp-dev.c psp = devm_kzalloc(dev, sizeof(*psp), GFP_KERNEL); psp 61 drivers/crypto/ccp/psp-dev.c if (!psp) psp 64 drivers/crypto/ccp/psp-dev.c psp->dev = dev; psp 65 drivers/crypto/ccp/psp-dev.c psp->sp = sp; psp 67 drivers/crypto/ccp/psp-dev.c snprintf(psp->name, sizeof(psp->name), "psp-%u", sp->ord); psp 69 drivers/crypto/ccp/psp-dev.c return psp; psp 74 drivers/crypto/ccp/psp-dev.c struct psp_device *psp = data; psp 79 drivers/crypto/ccp/psp-dev.c status = ioread32(psp->io_regs + psp->vdata->intsts_reg); psp 86 drivers/crypto/ccp/psp-dev.c reg = ioread32(psp->io_regs + psp->vdata->cmdresp_reg); psp 88 drivers/crypto/ccp/psp-dev.c psp->sev_int_rcvd = 1; psp 89 drivers/crypto/ccp/psp-dev.c wake_up(&psp->sev_int_queue); psp 94 drivers/crypto/ccp/psp-dev.c iowrite32(status, psp->io_regs + psp->vdata->intsts_reg); psp 99 drivers/crypto/ccp/psp-dev.c static int sev_wait_cmd_ioc(struct psp_device *psp, psp 104 drivers/crypto/ccp/psp-dev.c ret = wait_event_timeout(psp->sev_int_queue, psp 105 drivers/crypto/ccp/psp-dev.c psp->sev_int_rcvd, timeout * HZ); psp 109 drivers/crypto/ccp/psp-dev.c *reg = ioread32(psp->io_regs + psp->vdata->cmdresp_reg); psp 152 drivers/crypto/ccp/psp-dev.c struct psp_device *psp = psp_master; psp 156 drivers/crypto/ccp/psp-dev.c if (!psp) psp 166 drivers/crypto/ccp/psp-dev.c dev_dbg(psp->dev, "sev command id %#x buffer 0x%08x%08x timeout %us\n", psp 172 drivers/crypto/ccp/psp-dev.c iowrite32(phys_lsb, psp->io_regs + psp->vdata->cmdbuff_addr_lo_reg); psp 173 drivers/crypto/ccp/psp-dev.c iowrite32(phys_msb, psp->io_regs + psp->vdata->cmdbuff_addr_hi_reg); psp 175 drivers/crypto/ccp/psp-dev.c psp->sev_int_rcvd = 0; psp 180 drivers/crypto/ccp/psp-dev.c iowrite32(reg, psp->io_regs + psp->vdata->cmdresp_reg); psp 183 drivers/crypto/ccp/psp-dev.c ret = sev_wait_cmd_ioc(psp, ®, psp_timeout); psp 188 drivers/crypto/ccp/psp-dev.c dev_err(psp->dev, "sev command %#x timed out, disabling PSP \n", cmd); psp 200 drivers/crypto/ccp/psp-dev.c dev_dbg(psp->dev, "sev command %#x failed (%#010x)\n", psp 224 drivers/crypto/ccp/psp-dev.c struct psp_device *psp = psp_master; psp 227 drivers/crypto/ccp/psp-dev.c if (!psp) psp 230 drivers/crypto/ccp/psp-dev.c if (psp->sev_state == SEV_STATE_INIT) psp 233 drivers/crypto/ccp/psp-dev.c rc = __sev_do_cmd_locked(SEV_CMD_INIT, &psp->init_cmd_buf, error); psp 237 drivers/crypto/ccp/psp-dev.c psp->sev_state = SEV_STATE_INIT; psp 238 drivers/crypto/ccp/psp-dev.c dev_dbg(psp->dev, "SEV firmware initialized\n"); psp 890 drivers/crypto/ccp/psp-dev.c static int sev_misc_init(struct psp_device *psp) psp 892 drivers/crypto/ccp/psp-dev.c struct device *dev = psp->dev; psp 923 drivers/crypto/ccp/psp-dev.c init_waitqueue_head(&psp->sev_int_queue); psp 924 drivers/crypto/ccp/psp-dev.c psp->sev_misc = misc_dev; psp 930 drivers/crypto/ccp/psp-dev.c static int psp_check_sev_support(struct psp_device *psp) psp 933 drivers/crypto/ccp/psp-dev.c if (!(ioread32(psp->io_regs + psp->vdata->feature_reg) & 1)) { psp 934 drivers/crypto/ccp/psp-dev.c dev_dbg(psp->dev, "psp does not support SEV\n"); psp 944 drivers/crypto/ccp/psp-dev.c struct psp_device *psp; psp 948 drivers/crypto/ccp/psp-dev.c psp = psp_alloc_struct(sp); psp 949 drivers/crypto/ccp/psp-dev.c if (!psp) psp 952 drivers/crypto/ccp/psp-dev.c sp->psp_data = psp; psp 954 drivers/crypto/ccp/psp-dev.c psp->vdata = (struct psp_vdata *)sp->dev_vdata->psp_vdata; psp 955 drivers/crypto/ccp/psp-dev.c if (!psp->vdata) { psp 961 drivers/crypto/ccp/psp-dev.c psp->io_regs = sp->io_map; psp 963 drivers/crypto/ccp/psp-dev.c ret = psp_check_sev_support(psp); psp 968 drivers/crypto/ccp/psp-dev.c iowrite32(0, psp->io_regs + psp->vdata->inten_reg); psp 969 drivers/crypto/ccp/psp-dev.c iowrite32(-1, psp->io_regs + psp->vdata->intsts_reg); psp 972 drivers/crypto/ccp/psp-dev.c ret = sp_request_psp_irq(psp->sp, psp_irq_handler, psp->name, psp); psp 978 drivers/crypto/ccp/psp-dev.c ret = sev_misc_init(psp); psp 986 drivers/crypto/ccp/psp-dev.c iowrite32(-1, psp->io_regs + psp->vdata->inten_reg); psp 993 drivers/crypto/ccp/psp-dev.c sp_free_psp_irq(psp->sp, psp); psp 1009 drivers/crypto/ccp/psp-dev.c struct psp_device *psp = sp->psp_data; psp 1011 drivers/crypto/ccp/psp-dev.c if (!psp) psp 1014 drivers/crypto/ccp/psp-dev.c if (psp->sev_misc) psp 1017 drivers/crypto/ccp/psp-dev.c sp_free_psp_irq(sp, psp); psp 944 drivers/gpu/drm/amd/amdgpu/amdgpu.h struct psp_context psp; psp 2637 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c mutex_init(&adev->psp.mutex); psp 271 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->ver = adev->psp.ta_fw_version; psp 272 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->feature = adev->psp.ta_xgmi_ucode_version; psp 274 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->ver = adev->psp.ta_fw_version; psp 275 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->feature = adev->psp.ta_ras_ucode_version; psp 285 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->ver = adev->psp.sos_fw_version; psp 286 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->feature = adev->psp.sos_feature_version; psp 289 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->ver = adev->psp.asd_fw_version; psp 290 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c fw_info->feature = adev->psp.asd_feature_version; psp 42 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct psp_context *psp = &adev->psp; psp 49 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_v3_1_set_psp_funcs(psp); psp 50 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->autoload_supported = false; psp 53 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_v10_0_set_psp_funcs(psp); psp 54 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->autoload_supported = false; psp 58 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_v11_0_set_psp_funcs(psp); psp 59 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->autoload_supported = false; psp 64 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_v11_0_set_psp_funcs(psp); psp 65 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->autoload_supported = true; psp 68 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_v12_0_set_psp_funcs(psp); psp 74 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->adev = adev; psp 82 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct psp_context *psp = &adev->psp; psp 85 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_init_microcode(psp); psp 98 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c release_firmware(adev->psp.sos_fw); psp 99 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c adev->psp.sos_fw = NULL; psp 100 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c release_firmware(adev->psp.asd_fw); psp 101 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c adev->psp.asd_fw = NULL; psp 102 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (adev->psp.ta_fw) { psp 103 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c release_firmware(adev->psp.ta_fw); psp 104 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c adev->psp.ta_fw = NULL; psp 109 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c int psp_wait_for(struct psp_context *psp, uint32_t reg_index, psp 114 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct amdgpu_device *adev = psp->adev; psp 132 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_cmd_submit_buf(struct psp_context *psp, psp 140 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c mutex_lock(&psp->mutex); psp 142 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memset(psp->cmd_buf_mem, 0, PSP_CMD_BUFFER_SIZE); psp 144 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memcpy(psp->cmd_buf_mem, cmd, sizeof(struct psp_gfx_cmd_resp)); psp 146 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index = atomic_inc_return(&psp->fence_value); psp 147 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit(psp, psp->cmd_buf_mc_addr, fence_mc_addr, index); psp 149 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c atomic_dec(&psp->fence_value); psp 150 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c mutex_unlock(&psp->mutex); psp 154 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c while (*((unsigned int *)psp->fence_buf) != index) { psp 167 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp->cmd_buf_mem->resp.status || !timeout) { psp 172 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->cmd_buf_mem->resp.status & GFX_CMD_STATUS_MASK); psp 174 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c mutex_unlock(&psp->mutex); psp 180 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c cmd->resp.session_id = psp->cmd_buf_mem->resp.session_id; psp 183 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ucode->tmr_mc_addr_lo = psp->cmd_buf_mem->resp.fw_addr_lo; psp 184 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ucode->tmr_mc_addr_hi = psp->cmd_buf_mem->resp.fw_addr_hi; psp 186 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c mutex_unlock(&psp->mutex); psp 191 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static void psp_prep_tmr_cmd_buf(struct psp_context *psp, psp 195 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp_support_vmr_ring(psp)) psp 214 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_load_toc(struct psp_context *psp, psp 224 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 225 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memcpy(psp->fw_pri_buf, psp->toc_start_addr, psp->toc_bin_size); psp 227 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_prep_load_toc_cmd_buf(cmd, psp->fw_pri_mc_addr, psp->toc_bin_size); psp 229 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 230 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 232 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c *tmr_size = psp->cmd_buf_mem->resp.tmr_size; psp 238 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_tmr_init(struct psp_context *psp) psp 256 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp->toc_start_addr && psp 257 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->toc_bin_size && psp 258 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fw_pri_buf) { psp 259 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_load_toc(psp, &tmr_size); psp 266 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c pptr = amdgpu_sriov_vf(psp->adev) ? &tmr_buf : NULL; psp 267 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = amdgpu_bo_create_kernel(psp->adev, tmr_size, PSP_TMR_SIZE, psp 269 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->tmr_bo, &psp->tmr_mc_addr, pptr); psp 274 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_tmr_load(struct psp_context *psp) psp 283 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_prep_tmr_cmd_buf(psp, cmd, psp->tmr_mc_addr, psp 284 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_size(psp->tmr_bo)); psp 286 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_size(psp->tmr_bo), psp->tmr_mc_addr); psp 288 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 289 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 316 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_asd_init(struct psp_context *psp) psp 324 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = amdgpu_bo_create_kernel(psp->adev, PSP_ASD_SHARED_MEM_SIZE, psp 326 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->asd_shared_bo, psp 327 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->asd_shared_mc_addr, psp 328 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->asd_shared_buf); psp 333 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_asd_load(struct psp_context *psp) psp 342 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (amdgpu_sriov_vf(psp->adev)) psp 349 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 350 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memcpy(psp->fw_pri_buf, psp->asd_start_addr, psp->asd_ucode_size); psp 352 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_prep_asd_cmd_buf(cmd, psp->fw_pri_mc_addr, psp->asd_shared_mc_addr, psp 353 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->asd_ucode_size, PSP_ASD_SHARED_MEM_SIZE); psp 355 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 356 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 371 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c int psp_reg_program(struct psp_context *psp, enum psp_reg_prog_id reg, psp 385 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp->fence_buf_mc_addr); psp 405 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_xgmi_init_shared_buf(struct psp_context *psp) psp 413 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = amdgpu_bo_create_kernel(psp->adev, PSP_XGMI_SHARED_MEM_SIZE, psp 415 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->xgmi_context.xgmi_shared_bo, psp 416 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->xgmi_context.xgmi_shared_mc_addr, psp 417 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->xgmi_context.xgmi_shared_buf); psp 422 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_xgmi_load(struct psp_context *psp) psp 430 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (amdgpu_sriov_vf(psp->adev)) psp 437 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 438 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memcpy(psp->fw_pri_buf, psp->ta_xgmi_start_addr, psp->ta_xgmi_ucode_size); psp 440 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_prep_xgmi_ta_load_cmd_buf(cmd, psp->fw_pri_mc_addr, psp 441 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->xgmi_context.xgmi_shared_mc_addr, psp 442 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->ta_xgmi_ucode_size, PSP_XGMI_SHARED_MEM_SIZE); psp 444 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 445 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 448 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->xgmi_context.initialized = 1; psp 449 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->xgmi_context.session_id = cmd->resp.session_id; psp 464 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_xgmi_unload(struct psp_context *psp) psp 472 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (amdgpu_sriov_vf(psp->adev)) psp 479 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_prep_xgmi_ta_unload_cmd_buf(cmd, psp->xgmi_context.session_id); psp 481 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 482 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 499 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c int psp_xgmi_invoke(struct psp_context *psp, uint32_t ta_cmd_id) psp 507 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (amdgpu_sriov_vf(psp->adev)) psp 515 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->xgmi_context.session_id); psp 517 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 518 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 525 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_xgmi_terminate(struct psp_context *psp) psp 529 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (!psp->xgmi_context.initialized) psp 532 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_xgmi_unload(psp); psp 536 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->xgmi_context.initialized = 0; psp 539 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_free_kernel(&psp->xgmi_context.xgmi_shared_bo, psp 540 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->xgmi_context.xgmi_shared_mc_addr, psp 541 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->xgmi_context.xgmi_shared_buf); psp 546 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_xgmi_initialize(struct psp_context *psp) psp 551 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (!psp->adev->psp.ta_fw) psp 554 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (!psp->xgmi_context.initialized) { psp 555 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_xgmi_init_shared_buf(psp); psp 561 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_xgmi_load(psp); psp 566 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c xgmi_cmd = (struct ta_xgmi_shared_memory *)(psp->xgmi_context.xgmi_shared_buf); psp 570 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_xgmi_invoke(psp, xgmi_cmd->cmd_id); psp 590 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_ras_init_shared_buf(struct psp_context *psp) psp 598 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = amdgpu_bo_create_kernel(psp->adev, PSP_RAS_SHARED_MEM_SIZE, psp 600 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->ras.ras_shared_bo, psp 601 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->ras.ras_shared_mc_addr, psp 602 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->ras.ras_shared_buf); psp 607 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_ras_load(struct psp_context *psp) psp 615 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (amdgpu_sriov_vf(psp->adev)) psp 622 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 623 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memcpy(psp->fw_pri_buf, psp->ta_ras_start_addr, psp->ta_ras_ucode_size); psp 625 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_prep_ras_ta_load_cmd_buf(cmd, psp->fw_pri_mc_addr, psp 626 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->ras.ras_shared_mc_addr, psp 627 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->ta_ras_ucode_size, PSP_RAS_SHARED_MEM_SIZE); psp 629 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 630 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 633 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->ras.ras_initialized = 1; psp 634 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->ras.session_id = cmd->resp.session_id; psp 649 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_ras_unload(struct psp_context *psp) psp 657 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (amdgpu_sriov_vf(psp->adev)) psp 664 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_prep_ras_ta_unload_cmd_buf(cmd, psp->ras.session_id); psp 666 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 667 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 684 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c int psp_ras_invoke(struct psp_context *psp, uint32_t ta_cmd_id) psp 692 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (amdgpu_sriov_vf(psp->adev)) psp 700 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->ras.session_id); psp 702 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 703 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 710 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c int psp_ras_enable_features(struct psp_context *psp, psp 716 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (!psp->ras.ras_initialized) psp 719 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ras_cmd = (struct ta_ras_shared_memory *)psp->ras.ras_shared_buf; psp 729 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ras_invoke(psp, ras_cmd->cmd_id); psp 736 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_ras_terminate(struct psp_context *psp) psp 740 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (!psp->ras.ras_initialized) psp 743 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ras_unload(psp); psp 747 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->ras.ras_initialized = 0; psp 750 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_free_kernel(&psp->ras.ras_shared_bo, psp 751 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->ras.ras_shared_mc_addr, psp 752 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->ras.ras_shared_buf); psp 757 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_ras_initialize(struct psp_context *psp) psp 761 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (!psp->ras.ras_initialized) { psp 762 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ras_init_shared_buf(psp); psp 767 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ras_load(psp); psp 775 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_hw_start(struct psp_context *psp) psp 777 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct amdgpu_device *adev = psp->adev; psp 781 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp->kdb_bin_size && psp 782 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c (psp->funcs->bootloader_load_kdb != NULL)) { psp 783 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_bootloader_load_kdb(psp); psp 790 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_bootloader_load_sysdrv(psp); psp 796 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_bootloader_load_sos(psp); psp 803 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ring_create(psp, PSP_RING_TYPE__KM); psp 809 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_tmr_init(psp); psp 815 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_tmr_load(psp); psp 821 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_asd_init(psp); psp 827 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_asd_load(psp); psp 834 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_xgmi_initialize(psp); psp 839 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c dev_err(psp->adev->dev, psp 843 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp->adev->psp.ta_fw) { psp 844 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ras_initialize(psp); psp 846 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c dev_err(psp->adev->dev, psp 949 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static void psp_print_fw_hdr(struct psp_context *psp, psp 952 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct amdgpu_device *adev = psp->adev; psp 1017 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_execute_np_fw_load(struct psp_context *psp, psp 1022 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_prep_load_ip_fw_cmd_buf(ucode, psp->cmd); psp 1026 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, ucode, psp->cmd, psp 1027 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 1032 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c static int psp_np_fw_load(struct psp_context *psp) psp 1036 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct amdgpu_device* adev = psp->adev; psp 1038 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp->autoload_supported) { psp 1043 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_execute_np_fw_load(psp, ucode); psp 1055 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c (psp_smu_reload_quirk(psp) || psp->autoload_supported)) psp 1071 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp->autoload_supported && psp 1081 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_print_fw_hdr(psp, ucode); psp 1083 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_execute_np_fw_load(psp, ucode); psp 1089 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_rlc_autoload(psp); psp 1108 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct psp_context *psp = &adev->psp; psp 1111 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_ring_stop(psp, PSP_RING_TYPE__KM); /* should not destroy ring, only stop */ psp 1115 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->cmd = kzalloc(sizeof(struct psp_gfx_cmd_resp), GFP_KERNEL); psp 1116 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (!psp->cmd) psp 1120 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (!amdgpu_sriov_vf(psp->adev)) { psp 1123 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->fw_pri_bo, psp 1124 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->fw_pri_mc_addr, psp 1125 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->fw_pri_buf); psp 1132 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->fence_buf_bo, psp 1133 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->fence_buf_mc_addr, psp 1134 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->fence_buf); psp 1140 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->cmd_buf_bo, &psp->cmd_buf_mc_addr, psp 1141 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c (void **)&psp->cmd_buf_mem); psp 1145 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c memset(psp->fence_buf, 0, PSP_FENCE_BUFFER_SIZE); psp 1147 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ring_init(psp, PSP_RING_TYPE__KM); psp 1154 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_hw_start(psp); psp 1158 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_np_fw_load(psp); psp 1205 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct psp_context *psp = &adev->psp; psp 1210 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->xgmi_context.initialized == 1) psp 1211 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_xgmi_terminate(psp); psp 1213 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp->adev->psp.ta_fw) psp 1214 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_ras_terminate(psp); psp 1216 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp_ring_destroy(psp, PSP_RING_TYPE__KM); psp 1218 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c pptr = amdgpu_sriov_vf(psp->adev) ? &tmr_buf : NULL; psp 1219 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_free_kernel(&psp->tmr_bo, &psp->tmr_mc_addr, pptr); psp 1220 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_free_kernel(&psp->fw_pri_bo, psp 1221 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->fw_pri_mc_addr, &psp->fw_pri_buf); psp 1222 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_free_kernel(&psp->fence_buf_bo, psp 1223 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->fence_buf_mc_addr, &psp->fence_buf); psp 1224 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_free_kernel(&psp->asd_shared_bo, &psp->asd_shared_mc_addr, psp 1225 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c &psp->asd_shared_buf); psp 1226 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c amdgpu_bo_free_kernel(&psp->cmd_buf_bo, &psp->cmd_buf_mc_addr, psp 1227 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c (void **)&psp->cmd_buf_mem); psp 1229 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c kfree(psp->cmd); psp 1230 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->cmd = NULL; psp 1239 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct psp_context *psp = &adev->psp; psp 1242 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->xgmi_context.initialized == 1) { psp 1243 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_xgmi_terminate(psp); psp 1250 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (psp->adev->psp.ta_fw) { psp 1251 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ras_terminate(psp); psp 1258 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_ring_stop(psp, PSP_RING_TYPE__KM); psp 1271 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c struct psp_context *psp = &adev->psp; psp 1277 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_hw_start(psp); psp 1281 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_np_fw_load(psp); psp 1302 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c mutex_lock(&adev->psp.mutex); psp 1303 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_mode1_reset(&adev->psp); psp 1304 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c mutex_unlock(&adev->psp.mutex); psp 1309 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c int psp_rlc_autoload_start(struct psp_context *psp) psp 1314 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c if (amdgpu_sriov_vf(psp->adev)) psp 1323 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ret = psp_cmd_submit_buf(psp, NULL, cmd, psp 1324 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c psp->fence_buf_mc_addr); psp 1339 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c return psp_execute_np_fw_load(&adev->psp, &ucode); psp 1354 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c return psp_compare_sram_data(&adev->psp, ucode, ucode_type); psp 81 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*init_microcode)(struct psp_context *psp); psp 82 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*bootloader_load_kdb)(struct psp_context *psp); psp 83 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*bootloader_load_sysdrv)(struct psp_context *psp); psp 84 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*bootloader_load_sos)(struct psp_context *psp); psp 85 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*ring_init)(struct psp_context *psp, enum psp_ring_type ring_type); psp 86 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*ring_create)(struct psp_context *psp, psp 88 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*ring_stop)(struct psp_context *psp, psp 90 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*ring_destroy)(struct psp_context *psp, psp 92 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*cmd_submit)(struct psp_context *psp, psp 95 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h bool (*compare_sram_data)(struct psp_context *psp, psp 98 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h bool (*smu_reload_quirk)(struct psp_context *psp); psp 99 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*mode1_reset)(struct psp_context *psp); psp 100 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*xgmi_get_node_id)(struct psp_context *psp, uint64_t *node_id); psp 101 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*xgmi_get_hive_id)(struct psp_context *psp, uint64_t *hive_id); psp 102 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*xgmi_get_topology_info)(struct psp_context *psp, int number_devices, psp 104 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*xgmi_set_topology_info)(struct psp_context *psp, int number_devices, psp 106 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h bool (*support_vmr_ring)(struct psp_context *psp); psp 107 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*ras_trigger_error)(struct psp_context *psp, psp 109 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*ras_cure_posion)(struct psp_context *psp, uint64_t *mode_ptr); psp 110 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int (*rlc_autoload_start)(struct psp_context *psp); psp 220 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_ring_init(psp, type) (psp)->funcs->ring_init((psp), (type)) psp 221 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_ring_create(psp, type) (psp)->funcs->ring_create((psp), (type)) psp 222 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_ring_stop(psp, type) (psp)->funcs->ring_stop((psp), (type)) psp 223 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_ring_destroy(psp, type) ((psp)->funcs->ring_destroy((psp), (type))) psp 224 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_cmd_submit(psp, cmd_mc, fence_mc, index) \ psp 225 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h (psp)->funcs->cmd_submit((psp), (cmd_mc), (fence_mc), (index)) psp 226 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_compare_sram_data(psp, ucode, type) \ psp 227 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h (psp)->funcs->compare_sram_data((psp), (ucode), (type)) psp 228 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_init_microcode(psp) \ psp 229 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->init_microcode ? (psp)->funcs->init_microcode((psp)) : 0) psp 230 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_bootloader_load_kdb(psp) \ psp 231 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->bootloader_load_kdb ? (psp)->funcs->bootloader_load_kdb((psp)) : 0) psp 232 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_bootloader_load_sysdrv(psp) \ psp 233 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->bootloader_load_sysdrv ? (psp)->funcs->bootloader_load_sysdrv((psp)) : 0) psp 234 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_bootloader_load_sos(psp) \ psp 235 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->bootloader_load_sos ? (psp)->funcs->bootloader_load_sos((psp)) : 0) psp 236 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_smu_reload_quirk(psp) \ psp 237 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->smu_reload_quirk ? (psp)->funcs->smu_reload_quirk((psp)) : false) psp 238 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_support_vmr_ring(psp) \ psp 239 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->support_vmr_ring ? (psp)->funcs->support_vmr_ring((psp)) : false) psp 240 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_mode1_reset(psp) \ psp 241 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->mode1_reset ? (psp)->funcs->mode1_reset((psp)) : false) psp 242 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_xgmi_get_node_id(psp, node_id) \ psp 243 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->xgmi_get_node_id ? (psp)->funcs->xgmi_get_node_id((psp), (node_id)) : -EINVAL) psp 244 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_xgmi_get_hive_id(psp, hive_id) \ psp 245 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->xgmi_get_hive_id ? (psp)->funcs->xgmi_get_hive_id((psp), (hive_id)) : -EINVAL) psp 246 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_xgmi_get_topology_info(psp, num_device, topology) \ psp 247 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->xgmi_get_topology_info ? \ psp 248 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h (psp)->funcs->xgmi_get_topology_info((psp), (num_device), (topology)) : -EINVAL) psp 249 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_xgmi_set_topology_info(psp, num_device, topology) \ psp 250 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->xgmi_set_topology_info ? \ psp 251 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h (psp)->funcs->xgmi_set_topology_info((psp), (num_device), (topology)) : -EINVAL) psp 252 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_rlc_autoload(psp) \ psp 253 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->rlc_autoload_start ? (psp)->funcs->rlc_autoload_start((psp)) : 0) psp 257 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_ras_trigger_error(psp, info) \ psp 258 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->ras_trigger_error ? \ psp 259 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h (psp)->funcs->ras_trigger_error((psp), (info)) : -EINVAL) psp 260 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h #define psp_ras_cure_posion(psp, addr) \ psp 261 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h ((psp)->funcs->ras_cure_posion ? \ psp 262 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h (psp)->funcs->ras_cure_posion(psp, (addr)) : -EINVAL) psp 267 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h extern int psp_wait_for(struct psp_context *psp, uint32_t reg_index, psp 277 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int psp_xgmi_invoke(struct psp_context *psp, uint32_t ta_cmd_id); psp 279 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int psp_ras_invoke(struct psp_context *psp, uint32_t ta_cmd_id); psp 280 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int psp_ras_enable_features(struct psp_context *psp, psp 283 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int psp_rlc_autoload_start(struct psp_context *psp); psp 286 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h int psp_reg_program(struct psp_context *psp, enum psp_reg_prog_id reg, psp 472 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c ret = psp_ras_enable_features(&adev->psp, &info, enable); psp 661 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c ret = psp_ras_trigger_error(&adev->psp, &block_info); psp 470 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h #define amdgpu_ras_get_context(adev) ((adev)->psp.ras.ras) psp 471 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h #define amdgpu_ras_set_context(adev, ras_con) ((adev)->psp.ras.ras = (ras_con)) psp 157 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c adev->psp.ras.ras->eeprom_control.tbl_byte_sum = psp 158 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c __calc_hdr_byte_sum(&adev->psp.ras.ras->eeprom_control); psp 163 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c adev->psp.ras.ras->eeprom_control.next_addr = EEPROM_RECORD_START; psp 405 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c FW_VERSION_ATTR(sos_fw_version, 0444, psp.sos_fw_version); psp 406 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c FW_VERSION_ATTR(asd_fw_version, 0444, psp.asd_fw_version); psp 407 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c FW_VERSION_ATTR(ta_ras_fw_version, 0444, psp.ta_fw_version); psp 408 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c FW_VERSION_ATTR(ta_xgmi_fw_version, 0444, psp.ta_fw_version); psp 254 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h struct psp_firmware_header_v1_0 psp; psp 301 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c ret = psp_xgmi_set_topology_info(&adev->psp, psp 303 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c &adev->psp.xgmi_context.top_info); psp 317 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c struct psp_xgmi_topology_info *top = &adev->psp.xgmi_context.top_info; psp 339 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c ret = psp_xgmi_get_hive_id(&adev->psp, &adev->gmc.xgmi.hive_id); psp 346 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c ret = psp_xgmi_get_node_id(&adev->psp, &adev->gmc.xgmi.node_id); psp 366 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c top_info = &adev->psp.xgmi_context.top_info; psp 378 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c top_info = &tmp_adev->psp.xgmi_context.top_info; psp 390 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c ret = psp_xgmi_get_topology_info(&tmp_adev->psp, count, psp 391 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c &tmp_adev->psp.xgmi_context.top_info); psp 1990 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c ret = amdgpu_bo_create_reserved(adev, adev->psp.toc_bin_size, PAGE_SIZE, psp 2001 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c memcpy(adev->gfx.rlc.rlc_toc_buf, adev->psp.toc_start_addr, adev->psp.toc_bin_size); psp 6088 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ret = psp_ras_trigger_error(&adev->psp, &block_info); psp 44 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c static int psp_v10_0_init_microcode(struct psp_context *psp) psp 46 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct amdgpu_device *adev = psp->adev; psp 67 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c err = request_firmware(&adev->psp.asd_fw, fw_name, adev->dev); psp 71 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c err = amdgpu_ucode_validate(adev->psp.asd_fw); psp 75 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data; psp 76 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c adev->psp.asd_fw_version = le32_to_cpu(hdr->header.ucode_version); psp 77 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c adev->psp.asd_feature_version = le32_to_cpu(hdr->ucode_feature_version); psp 78 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c adev->psp.asd_ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); psp 79 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c adev->psp.asd_start_addr = (uint8_t *)hdr + psp 88 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c release_firmware(adev->psp.asd_fw); psp 89 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c adev->psp.asd_fw = NULL; psp 95 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c static int psp_v10_0_ring_init(struct psp_context *psp, psp 100 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct amdgpu_device *adev = psp->adev; psp 102 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ring = &psp->km_ring; psp 121 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c static int psp_v10_0_ring_create(struct psp_context *psp, psp 126 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct psp_ring *ring = &psp->km_ring; psp 127 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct amdgpu_device *adev = psp->adev; psp 147 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 153 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c static int psp_v10_0_ring_stop(struct psp_context *psp, psp 158 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct amdgpu_device *adev = psp->adev; psp 168 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 174 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c static int psp_v10_0_ring_destroy(struct psp_context *psp, psp 178 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct psp_ring *ring = &psp->km_ring; psp 179 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct amdgpu_device *adev = psp->adev; psp 181 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c ret = psp_v10_0_ring_stop(psp, ring_type); psp 192 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c static int psp_v10_0_cmd_submit(struct psp_context *psp, psp 197 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct psp_gfx_rb_frame * write_frame = psp->km_ring.ring_mem; psp 198 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct psp_ring *ring = &psp->km_ring; psp 202 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct amdgpu_device *adev = psp->adev; psp 326 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c static bool psp_v10_0_compare_sram_data(struct psp_context *psp, psp 336 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c struct amdgpu_device *adev = psp->adev; psp 362 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c static int psp_v10_0_mode1_reset(struct psp_context *psp) psp 379 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c void psp_v10_0_set_psp_funcs(struct psp_context *psp) psp 381 drivers/gpu/drm/amd/amdgpu/psp_v10_0.c psp->funcs = &psp_v10_0_funcs; psp 30 drivers/gpu/drm/amd/amdgpu/psp_v10_0.h void psp_v10_0_set_psp_funcs(struct psp_context *psp); psp 61 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_init_microcode(struct psp_context *psp) psp 63 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 96 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c err = request_firmware(&adev->psp.sos_fw, fw_name, adev->dev); psp 100 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c err = amdgpu_ucode_validate(adev->psp.sos_fw); psp 104 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c sos_hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data; psp 109 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.sos_fw_version = le32_to_cpu(sos_hdr->header.ucode_version); psp 110 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.sos_feature_version = le32_to_cpu(sos_hdr->ucode_feature_version); psp 111 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.sos_bin_size = le32_to_cpu(sos_hdr->sos_size_bytes); psp 112 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.sys_bin_size = le32_to_cpu(sos_hdr->sos_offset_bytes); psp 113 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.sys_start_addr = (uint8_t *)sos_hdr + psp 115 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.sos_start_addr = (uint8_t *)adev->psp.sys_start_addr + psp 118 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c sos_hdr_v1_1 = (const struct psp_firmware_header_v1_1 *)adev->psp.sos_fw->data; psp 119 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.toc_bin_size = le32_to_cpu(sos_hdr_v1_1->toc_size_bytes); psp 120 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.toc_start_addr = (uint8_t *)adev->psp.sys_start_addr + psp 122 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.kdb_bin_size = le32_to_cpu(sos_hdr_v1_1->kdb_size_bytes); psp 123 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.kdb_start_addr = (uint8_t *)adev->psp.sys_start_addr + psp 127 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c sos_hdr_v1_2 = (const struct psp_firmware_header_v1_2 *)adev->psp.sos_fw->data; psp 128 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.kdb_bin_size = le32_to_cpu(sos_hdr_v1_2->kdb_size_bytes); psp 129 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.kdb_start_addr = (uint8_t *)adev->psp.sys_start_addr + psp 141 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c err = request_firmware(&adev->psp.asd_fw, fw_name, adev->dev); psp 145 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c err = amdgpu_ucode_validate(adev->psp.asd_fw); psp 149 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c asd_hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data; psp 150 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.asd_fw_version = le32_to_cpu(asd_hdr->header.ucode_version); psp 151 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.asd_feature_version = le32_to_cpu(asd_hdr->ucode_feature_version); psp 152 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.asd_ucode_size = le32_to_cpu(asd_hdr->header.ucode_size_bytes); psp 153 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.asd_start_addr = (uint8_t *)asd_hdr + psp 159 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c err = request_firmware(&adev->psp.ta_fw, fw_name, adev->dev); psp 161 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c release_firmware(adev->psp.ta_fw); psp 162 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_fw = NULL; psp 166 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c err = amdgpu_ucode_validate(adev->psp.ta_fw); psp 170 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ta_hdr = (const struct ta_firmware_header_v1_0 *)adev->psp.ta_fw->data; psp 171 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_xgmi_ucode_version = le32_to_cpu(ta_hdr->ta_xgmi_ucode_version); psp 172 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_xgmi_ucode_size = le32_to_cpu(ta_hdr->ta_xgmi_size_bytes); psp 173 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_xgmi_start_addr = (uint8_t *)ta_hdr + psp 175 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_fw_version = le32_to_cpu(ta_hdr->header.ucode_version); psp 176 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_ras_ucode_version = le32_to_cpu(ta_hdr->ta_ras_ucode_version); psp 177 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_ras_ucode_size = le32_to_cpu(ta_hdr->ta_ras_size_bytes); psp 178 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_ras_start_addr = (uint8_t *)adev->psp.ta_xgmi_start_addr + psp 194 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c release_firmware(adev->psp.ta_fw); psp 195 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.ta_fw = NULL; psp 197 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c release_firmware(adev->psp.asd_fw); psp 198 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.asd_fw = NULL; psp 202 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c release_firmware(adev->psp.sos_fw); psp 203 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c adev->psp.sos_fw = NULL; psp 208 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_bootloader_load_kdb(struct psp_context *psp) psp 212 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 220 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c psp->sos_fw_version = RREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_58); psp 221 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c dev_info(adev->dev, "sos fw version = 0x%x.\n", psp->sos_fw_version); psp 226 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 231 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 234 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c memcpy(psp->fw_pri_buf, psp->kdb_start_addr, psp->kdb_bin_size); psp 238 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c (uint32_t)(psp->fw_pri_mc_addr >> 20)); psp 244 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 250 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_bootloader_load_sysdrv(struct psp_context *psp) psp 254 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 262 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c psp->sos_fw_version = RREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_58); psp 263 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c dev_info(adev->dev, "sos fw version = 0x%x.\n", psp->sos_fw_version); psp 268 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 273 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 276 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c memcpy(psp->fw_pri_buf, psp->sys_start_addr, psp->sys_bin_size); psp 280 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c (uint32_t)(psp->fw_pri_mc_addr >> 20)); psp 288 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 294 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_bootloader_load_sos(struct psp_context *psp) psp 298 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 309 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 314 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 317 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c memcpy(psp->fw_pri_buf, psp->sos_start_addr, psp->sos_bin_size); psp 321 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c (uint32_t)(psp->fw_pri_mc_addr >> 20)); psp 328 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_81), psp 335 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static void psp_v11_0_reroute_ih(struct psp_context *psp) psp 337 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 350 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 362 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 366 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_ring_init(struct psp_context *psp, psp 371 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 373 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c psp_v11_0_reroute_ih(psp); psp 375 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ring = &psp->km_ring; psp 394 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static bool psp_v11_0_support_vmr_ring(struct psp_context *psp) psp 396 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c if (amdgpu_sriov_vf(psp->adev) && psp->sos_fw_version > 0x80045) psp 401 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_ring_stop(struct psp_context *psp, psp 405 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 408 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c if (psp_v11_0_support_vmr_ring(psp)) psp 419 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c if (psp_v11_0_support_vmr_ring(psp)) psp 420 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), psp 423 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 429 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_ring_create(struct psp_context *psp, psp 434 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct psp_ring *ring = &psp->km_ring; psp 435 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 437 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c if (psp_v11_0_support_vmr_ring(psp)) { psp 438 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_v11_0_ring_stop(psp, ring_type); psp 459 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), psp 481 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 489 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_ring_destroy(struct psp_context *psp, psp 493 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct psp_ring *ring = &psp->km_ring; psp 494 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 496 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_v11_0_ring_stop(psp, ring_type); psp 507 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_cmd_submit(struct psp_context *psp, psp 512 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct psp_gfx_rb_frame *write_frame = psp->km_ring.ring_mem; psp 513 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct psp_ring *ring = &psp->km_ring; psp 517 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 522 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c if (psp_v11_0_support_vmr_ring(psp)) psp 554 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c if (psp_v11_0_support_vmr_ring(psp)) { psp 660 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static bool psp_v11_0_compare_sram_data(struct psp_context *psp, psp 670 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 695 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_mode1_reset(struct psp_context *psp) psp 699 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c struct amdgpu_device *adev = psp->adev; psp 703 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, offset, 0x80000000, 0x8000FFFF, false); psp 717 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_wait_for(psp, offset, 0x80000000, 0x80000000, false); psp 733 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_xgmi_get_topology_info(struct psp_context *psp, psp 745 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c xgmi_cmd = (struct ta_xgmi_shared_memory*)psp->xgmi_context.xgmi_shared_buf; psp 761 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_xgmi_invoke(psp, TA_COMMAND_XGMI__GET_GET_TOPOLOGY_INFO); psp 778 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_xgmi_set_topology_info(struct psp_context *psp, psp 788 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c xgmi_cmd = (struct ta_xgmi_shared_memory*)psp->xgmi_context.xgmi_shared_buf; psp 803 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c return psp_xgmi_invoke(psp, TA_COMMAND_XGMI__SET_TOPOLOGY_INFO); psp 806 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_xgmi_get_hive_id(struct psp_context *psp, uint64_t *hive_id) psp 811 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c xgmi_cmd = (struct ta_xgmi_shared_memory*)psp->xgmi_context.xgmi_shared_buf; psp 817 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_xgmi_invoke(psp, xgmi_cmd->cmd_id); psp 826 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_xgmi_get_node_id(struct psp_context *psp, uint64_t *node_id) psp 831 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c xgmi_cmd = (struct ta_xgmi_shared_memory*)psp->xgmi_context.xgmi_shared_buf; psp 837 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_xgmi_invoke(psp, xgmi_cmd->cmd_id); psp 846 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_ras_trigger_error(struct psp_context *psp, psp 852 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c if (!psp->ras.ras_initialized) psp 855 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ras_cmd = (struct ta_ras_shared_memory *)psp->ras.ras_shared_buf; psp 861 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_ras_invoke(psp, ras_cmd->cmd_id); psp 868 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_ras_cure_posion(struct psp_context *psp, uint64_t *mode_ptr) psp 875 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c if (!psp->ras.ras_initialized) psp 878 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ras_cmd = (struct ta_ras_shared_memory *)psp->ras.ras_shared_buf; psp 884 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c ret = psp_ras_invoke(psp, ras_cmd->cmd_id); psp 894 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c static int psp_v11_0_rlc_autoload_start(struct psp_context *psp) psp 896 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c return psp_rlc_autoload_start(psp); psp 921 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c void psp_v11_0_set_psp_funcs(struct psp_context *psp) psp 923 drivers/gpu/drm/amd/amdgpu/psp_v11_0.c psp->funcs = &psp_v11_0_funcs; psp 28 drivers/gpu/drm/amd/amdgpu/psp_v11_0.h void psp_v11_0_set_psp_funcs(struct psp_context *psp); psp 44 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_init_microcode(struct psp_context *psp) psp 46 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 63 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c err = request_firmware(&adev->psp.asd_fw, fw_name, adev->dev); psp 67 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c err = amdgpu_ucode_validate(adev->psp.asd_fw); psp 71 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c asd_hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data; psp 72 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c adev->psp.asd_fw_version = le32_to_cpu(asd_hdr->header.ucode_version); psp 73 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c adev->psp.asd_feature_version = le32_to_cpu(asd_hdr->ucode_feature_version); psp 74 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c adev->psp.asd_ucode_size = le32_to_cpu(asd_hdr->header.ucode_size_bytes); psp 75 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c adev->psp.asd_start_addr = (uint8_t *)asd_hdr + psp 81 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c release_firmware(adev->psp.asd_fw); psp 82 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c adev->psp.asd_fw = NULL; psp 87 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_bootloader_load_sysdrv(struct psp_context *psp) psp 91 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 99 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c psp->sos_fw_version = RREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_58); psp 100 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c printk("sos fw version = 0x%x.\n", psp->sos_fw_version); psp 105 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 110 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 113 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c memcpy(psp->fw_pri_buf, psp->sys_start_addr, psp->sys_bin_size); psp 117 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c (uint32_t)(psp->fw_pri_mc_addr >> 20)); psp 125 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 131 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_bootloader_load_sos(struct psp_context *psp) psp 135 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 146 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 151 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 154 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c memcpy(psp->fw_pri_buf, psp->sos_start_addr, psp->sos_bin_size); psp 158 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c (uint32_t)(psp->fw_pri_mc_addr >> 20)); psp 165 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_81), psp 172 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static void psp_v12_0_reroute_ih(struct psp_context *psp) psp 174 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 187 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 199 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 203 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_ring_init(struct psp_context *psp, psp 208 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 210 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c psp_v12_0_reroute_ih(psp); psp 212 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ring = &psp->km_ring; psp 231 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static bool psp_v12_0_support_vmr_ring(struct psp_context *psp) psp 233 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c if (amdgpu_sriov_vf(psp->adev) && psp->sos_fw_version > 0x80045) psp 238 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_ring_create(struct psp_context *psp, psp 243 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct psp_ring *ring = &psp->km_ring; psp 244 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 246 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c if (psp_v12_0_support_vmr_ring(psp)) { psp 262 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), psp 284 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 291 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_ring_stop(struct psp_context *psp, psp 295 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 298 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c if (psp_v12_0_support_vmr_ring(psp)) psp 309 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c if (psp_v12_0_support_vmr_ring(psp)) psp 310 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_101), psp 313 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 319 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_ring_destroy(struct psp_context *psp, psp 323 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct psp_ring *ring = &psp->km_ring; psp 324 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 326 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_v12_0_ring_stop(psp, ring_type); psp 337 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_cmd_submit(struct psp_context *psp, psp 342 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct psp_gfx_rb_frame *write_frame = psp->km_ring.ring_mem; psp 343 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct psp_ring *ring = &psp->km_ring; psp 347 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 352 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c if (psp_v12_0_support_vmr_ring(psp)) psp 384 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c if (psp_v12_0_support_vmr_ring(psp)) { psp 480 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static bool psp_v12_0_compare_sram_data(struct psp_context *psp, psp 490 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 515 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c static int psp_v12_0_mode1_reset(struct psp_context *psp) psp 519 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c struct amdgpu_device *adev = psp->adev; psp 523 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, offset, 0x80000000, 0x8000FFFF, false); psp 537 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c ret = psp_wait_for(psp, offset, 0x80000000, 0x80000000, false); psp 562 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c void psp_v12_0_set_psp_funcs(struct psp_context *psp) psp 564 drivers/gpu/drm/amd/amdgpu/psp_v12_0.c psp->funcs = &psp_v12_0_funcs; psp 28 drivers/gpu/drm/amd/amdgpu/psp_v12_0.h void psp_v12_0_set_psp_funcs(struct psp_context *psp); psp 55 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static bool psp_v3_1_support_vmr_ring(struct psp_context *psp); psp 56 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_ring_stop(struct psp_context *psp, psp 59 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_init_microcode(struct psp_context *psp) psp 61 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 80 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c err = request_firmware(&adev->psp.sos_fw, fw_name, adev->dev); psp 84 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c err = amdgpu_ucode_validate(adev->psp.sos_fw); psp 88 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.sos_fw->data; psp 89 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.sos_fw_version = le32_to_cpu(hdr->header.ucode_version); psp 90 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.sos_feature_version = le32_to_cpu(hdr->ucode_feature_version); psp 91 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.sos_bin_size = le32_to_cpu(hdr->sos_size_bytes); psp 92 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.sys_bin_size = le32_to_cpu(hdr->header.ucode_size_bytes) - psp 94 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.sys_start_addr = (uint8_t *)hdr + psp 96 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.sos_start_addr = (uint8_t *)adev->psp.sys_start_addr + psp 100 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c err = request_firmware(&adev->psp.asd_fw, fw_name, adev->dev); psp 104 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c err = amdgpu_ucode_validate(adev->psp.asd_fw); psp 108 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c hdr = (const struct psp_firmware_header_v1_0 *)adev->psp.asd_fw->data; psp 109 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.asd_fw_version = le32_to_cpu(hdr->header.ucode_version); psp 110 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.asd_feature_version = le32_to_cpu(hdr->ucode_feature_version); psp 111 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.asd_ucode_size = le32_to_cpu(hdr->header.ucode_size_bytes); psp 112 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.asd_start_addr = (uint8_t *)hdr + psp 121 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c release_firmware(adev->psp.sos_fw); psp 122 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.sos_fw = NULL; psp 123 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c release_firmware(adev->psp.asd_fw); psp 124 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c adev->psp.asd_fw = NULL; psp 130 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_bootloader_load_sysdrv(struct psp_context *psp) psp 134 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 145 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 150 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 153 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c memcpy(psp->fw_pri_buf, psp->sys_start_addr, psp->sys_bin_size); psp 157 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c (uint32_t)(psp->fw_pri_mc_addr >> 20)); psp 165 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 175 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c if (ver == adev->psp.sos_fw_version) psp 183 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c if (sos_old_versions[i] == adev->psp.sos_fw_version) psp 190 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_bootloader_load_sos(struct psp_context *psp) psp 194 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 202 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c psp->sos_fw_version = RREG32_SOC15(MP0, 0, mmMP0_SMN_C2PMSG_58); psp 203 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c printk("sos fw version = 0x%x.\n", psp->sos_fw_version); psp 208 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_35), psp 213 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c memset(psp->fw_pri_buf, 0, PSP_1_MEG); psp 216 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c memcpy(psp->fw_pri_buf, psp->sos_start_addr, psp->sos_bin_size); psp 220 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c (uint32_t)(psp->fw_pri_mc_addr >> 20)); psp 227 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_81), psp 238 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_ring_init(struct psp_context *psp, psp 243 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 245 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ring = &psp->km_ring; psp 264 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static void psp_v3_1_reroute_ih(struct psp_context *psp) psp 266 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 279 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 291 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, mmMP0_SMN_C2PMSG_64), psp 295 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_ring_create(struct psp_context *psp, psp 300 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct psp_ring *ring = &psp->km_ring; psp 301 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 303 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c psp_v3_1_reroute_ih(psp); psp 305 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c if (psp_v3_1_support_vmr_ring(psp)) { psp 306 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_v3_1_ring_stop(psp, ring_type); psp 328 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, psp 351 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, SOC15_REG_OFFSET(MP0, 0, psp 359 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_ring_stop(struct psp_context *psp, psp 364 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 366 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c if (psp_v3_1_support_vmr_ring(psp)) { psp 375 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, psp 387 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, psp 395 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_ring_destroy(struct psp_context *psp, psp 399 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct psp_ring *ring = &psp->km_ring; psp 400 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 402 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_v3_1_ring_stop(psp, ring_type); psp 413 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_cmd_submit(struct psp_context *psp, psp 418 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct psp_gfx_rb_frame * write_frame = psp->km_ring.ring_mem; psp 419 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct psp_ring *ring = &psp->km_ring; psp 423 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 428 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c if (psp_v3_1_support_vmr_ring(psp)) psp 460 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c if (psp_v3_1_support_vmr_ring(psp)) { psp 558 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static bool psp_v3_1_compare_sram_data(struct psp_context *psp, psp 568 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 593 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static bool psp_v3_1_smu_reload_quirk(struct psp_context *psp) psp 595 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 602 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static int psp_v3_1_mode1_reset(struct psp_context *psp) psp 606 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c struct amdgpu_device *adev = psp->adev; psp 610 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, offset, 0x80000000, 0x8000FFFF, false); psp 624 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c ret = psp_wait_for(psp, offset, 0x80000000, 0x80000000, false); psp 636 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c static bool psp_v3_1_support_vmr_ring(struct psp_context *psp) psp 638 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c if (amdgpu_sriov_vf(psp->adev)) psp 659 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c void psp_v3_1_set_psp_funcs(struct psp_context *psp) psp 661 drivers/gpu/drm/amd/amdgpu/psp_v3_1.c psp->funcs = &psp_v3_1_funcs; psp 35 drivers/gpu/drm/amd/amdgpu/psp_v3_1.h void psp_v3_1_set_psp_funcs(struct psp_context *psp); psp 4224 drivers/gpu/drm/amd/amdgpu/si_dpm.c pi->psp = BSP(pi->pbsp) | BSU(pi->pbsu); psp 5436 drivers/gpu/drm/amd/amdgpu/si_dpm.c cpu_to_be32(pi->psp); psp 581 drivers/gpu/drm/amd/amdgpu/si_dpm.h u32 psp; psp 560 drivers/gpu/drm/amd/amdgpu/soc15.c if (adev->psp.sos_fw_version >= 0x80067) psp 54 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL, ih_rb_cntl)) { psp 68 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING1, psp 84 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING2, psp 110 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL, ih_rb_cntl)) { psp 129 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING1, psp 149 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING2, psp 248 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL, ih_rb_cntl)) { psp 287 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING1, psp 314 drivers/gpu/drm/amd/amdgpu/vega10_ih.c if (psp_reg_program(&adev->psp, PSP_REG_IH_RB_CNTL_RING2, psp 2306 drivers/gpu/drm/radeon/ni_dpm.c cpu_to_be32(pi->psp); psp 312 drivers/gpu/drm/radeon/rv770_dpm.c cpu_to_be32(pi->psp); psp 833 drivers/gpu/drm/radeon/rv770_dpm.c pi->psp = BSP(pi->pbsp) | BSU(pi->pbsu); psp 125 drivers/gpu/drm/radeon/rv770_dpm.h u32 psp; psp 3759 drivers/gpu/drm/radeon/si_dpm.c pi->psp = BSP(pi->pbsp) | BSU(pi->pbsu); psp 4974 drivers/gpu/drm/radeon/si_dpm.c cpu_to_be32(pi->psp); psp 330 drivers/gpu/drm/radeon/sumo_dpm.c pi->psp = BSP(pi->pbsp) | BSU(pi->pbsu); psp 337 drivers/gpu/drm/radeon/sumo_dpm.c WREG32(CG_BSP_0, pi->psp); psp 357 drivers/gpu/drm/radeon/sumo_dpm.c WREG32(CG_BSP_0 + (i * 4), pi->psp); psp 360 drivers/gpu/drm/radeon/sumo_dpm.c WREG32(CG_BSP_0 + (BOOST_DPM_LEVEL * 4), pi->psp); psp 112 drivers/gpu/drm/radeon/sumo_dpm.h u32 psp; psp 532 drivers/hid/hid-asus.c enum power_supply_property psp, psp 538 drivers/hid/hid-asus.c switch (psp) { psp 548 drivers/hid/hid-asus.c if (psp == POWER_SUPPLY_PROP_STATUS) psp 1237 drivers/hid/hid-logitech-hidpp.c enum power_supply_property psp, psp 1243 drivers/hid/hid-logitech-hidpp.c switch(psp) { psp 2297 drivers/hid/hid-sony.c enum power_supply_property psp, psp 2311 drivers/hid/hid-sony.c switch (psp) { psp 312 drivers/hid/hid-steam.c enum power_supply_property psp, psp 326 drivers/hid/hid-steam.c switch (psp) { psp 200 drivers/hid/hid-wiimote-modules.c enum power_supply_property psp, psp 207 drivers/hid/hid-wiimote-modules.c if (psp == POWER_SUPPLY_PROP_SCOPE) { psp 210 drivers/hid/hid-wiimote-modules.c } else if (psp != POWER_SUPPLY_PROP_CAPACITY) { psp 1688 drivers/hid/wacom_sys.c enum power_supply_property psp, psp 1694 drivers/hid/wacom_sys.c switch (psp) { psp 833 drivers/misc/genwqe/card_ddcb.c pddcb->psp = (((req->cmd.asiv_length / 8) << 4) | psp 60 drivers/misc/genwqe/card_ddcb.h u8 psp; /* Protection Section Pointer */ psp 554 drivers/platform/x86/compal-laptop.c enum power_supply_property psp, psp 559 drivers/platform/x86/compal-laptop.c switch (psp) { psp 633 drivers/platform/x86/compal-laptop.c enum power_supply_property psp, psp 638 drivers/platform/x86/compal-laptop.c switch (psp) { psp 653 drivers/platform/x86/compal-laptop.c enum power_supply_property psp) psp 655 drivers/platform/x86/compal-laptop.c switch (psp) { psp 804 drivers/power/supply/88pm860x_battery.c enum power_supply_property psp, psp 811 drivers/power/supply/88pm860x_battery.c switch (psp) { psp 870 drivers/power/supply/88pm860x_battery.c enum power_supply_property psp, psp 875 drivers/power/supply/88pm860x_battery.c switch (psp) { psp 592 drivers/power/supply/88pm860x_charger.c enum power_supply_property psp, psp 597 drivers/power/supply/88pm860x_charger.c switch (psp) { psp 820 drivers/power/supply/ab8500_btemp.c enum power_supply_property psp, psp 825 drivers/power/supply/ab8500_btemp.c switch (psp) { psp 2874 drivers/power/supply/ab8500_charger.c enum power_supply_property psp, psp 2882 drivers/power/supply/ab8500_charger.c switch (psp) { psp 2941 drivers/power/supply/ab8500_charger.c enum power_supply_property psp, psp 2949 drivers/power/supply/ab8500_charger.c switch (psp) { psp 2086 drivers/power/supply/ab8500_fg.c enum power_supply_property psp, psp 2098 drivers/power/supply/ab8500_fg.c switch (psp) { psp 1712 drivers/power/supply/abx500_chargalg.c enum power_supply_property psp, psp 1717 drivers/power/supply/abx500_chargalg.c switch (psp) { psp 533 drivers/power/supply/adp5061.c enum power_supply_property psp, psp 540 drivers/power/supply/adp5061.c switch (psp) { psp 617 drivers/power/supply/adp5061.c enum power_supply_property psp, psp 622 drivers/power/supply/adp5061.c switch (psp) { psp 647 drivers/power/supply/adp5061.c enum power_supply_property psp) psp 649 drivers/power/supply/adp5061.c switch (psp) { psp 58 drivers/power/supply/axp20x_ac_power.c enum power_supply_property psp, psp 64 drivers/power/supply/axp20x_ac_power.c switch (psp) { psp 154 drivers/power/supply/axp20x_ac_power.c enum power_supply_property psp, psp 159 drivers/power/supply/axp20x_ac_power.c switch (psp) { psp 184 drivers/power/supply/axp20x_ac_power.c enum power_supply_property psp) psp 186 drivers/power/supply/axp20x_ac_power.c return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN || psp 187 drivers/power/supply/axp20x_ac_power.c psp == POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT; psp 184 drivers/power/supply/axp20x_battery.c enum power_supply_property psp, psp 191 drivers/power/supply/axp20x_battery.c switch (psp) { psp 453 drivers/power/supply/axp20x_battery.c enum power_supply_property psp, psp 458 drivers/power/supply/axp20x_battery.c switch (psp) { psp 492 drivers/power/supply/axp20x_battery.c enum power_supply_property psp) psp 494 drivers/power/supply/axp20x_battery.c return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN || psp 495 drivers/power/supply/axp20x_battery.c psp == POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN || psp 496 drivers/power/supply/axp20x_battery.c psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT || psp 497 drivers/power/supply/axp20x_battery.c psp == POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT_MAX; psp 161 drivers/power/supply/axp20x_usb_power.c enum power_supply_property psp, union power_supply_propval *val) psp 167 drivers/power/supply/axp20x_usb_power.c switch (psp) { psp 232 drivers/power/supply/axp20x_usb_power.c switch (psp) { psp 340 drivers/power/supply/axp20x_usb_power.c enum power_supply_property psp, psp 345 drivers/power/supply/axp20x_usb_power.c switch (psp) { psp 363 drivers/power/supply/axp20x_usb_power.c enum power_supply_property psp) psp 365 drivers/power/supply/axp20x_usb_power.c return psp == POWER_SUPPLY_PROP_VOLTAGE_MIN || psp 366 drivers/power/supply/axp20x_usb_power.c psp == POWER_SUPPLY_PROP_CURRENT_MAX; psp 358 drivers/power/supply/axp288_charger.c enum power_supply_property psp, psp 365 drivers/power/supply/axp288_charger.c switch (psp) { psp 393 drivers/power/supply/axp288_charger.c enum power_supply_property psp, psp 399 drivers/power/supply/axp288_charger.c switch (psp) { psp 451 drivers/power/supply/axp288_charger.c enum power_supply_property psp) psp 455 drivers/power/supply/axp288_charger.c switch (psp) { psp 558 drivers/power/supply/axp288_fuel_gauge.c enum power_supply_property psp) psp 562 drivers/power/supply/axp288_fuel_gauge.c switch (psp) { psp 518 drivers/power/supply/bd70528-charger.c enum power_supply_property psp, psp 524 drivers/power/supply/bd70528-charger.c switch (psp) { psp 557 drivers/power/supply/bd70528-charger.c enum power_supply_property psp) psp 559 drivers/power/supply/bd70528-charger.c switch (psp) { psp 676 drivers/power/supply/bd70528-charger.c enum power_supply_property psp, psp 681 drivers/power/supply/bd70528-charger.c switch (psp) { psp 997 drivers/power/supply/bq2415x_charger.c enum power_supply_property psp, psp 1003 drivers/power/supply/bq2415x_charger.c switch (psp) { psp 1070 drivers/power/supply/bq24190_charger.c enum power_supply_property psp, union power_supply_propval *val) psp 1075 drivers/power/supply/bq24190_charger.c dev_dbg(bdi->dev, "prop: %d\n", psp); psp 1081 drivers/power/supply/bq24190_charger.c switch (psp) { psp 1141 drivers/power/supply/bq24190_charger.c enum power_supply_property psp, psp 1147 drivers/power/supply/bq24190_charger.c dev_dbg(bdi->dev, "prop: %d\n", psp); psp 1153 drivers/power/supply/bq24190_charger.c switch (psp) { psp 1183 drivers/power/supply/bq24190_charger.c enum power_supply_property psp) psp 1185 drivers/power/supply/bq24190_charger.c switch (psp) { psp 1402 drivers/power/supply/bq24190_charger.c enum power_supply_property psp, union power_supply_propval *val) psp 1408 drivers/power/supply/bq24190_charger.c dev_dbg(bdi->dev, "prop: %d\n", psp); psp 1414 drivers/power/supply/bq24190_charger.c switch (psp) { psp 1447 drivers/power/supply/bq24190_charger.c enum power_supply_property psp, psp 1454 drivers/power/supply/bq24190_charger.c dev_dbg(bdi->dev, "prop: %d\n", psp); psp 1460 drivers/power/supply/bq24190_charger.c switch (psp) { psp 1478 drivers/power/supply/bq24190_charger.c enum power_supply_property psp) psp 1482 drivers/power/supply/bq24190_charger.c switch (psp) { psp 303 drivers/power/supply/bq24257_charger.c enum power_supply_property psp, psp 313 drivers/power/supply/bq24257_charger.c switch (psp) { psp 411 drivers/power/supply/bq24257_charger.c enum power_supply_property psp) psp 413 drivers/power/supply/bq24257_charger.c switch (psp) { psp 69 drivers/power/supply/bq24735-charger.c enum power_supply_property psp) psp 71 drivers/power/supply/bq24735-charger.c switch (psp) { psp 253 drivers/power/supply/bq24735-charger.c enum power_supply_property psp, psp 258 drivers/power/supply/bq24735-charger.c switch (psp) { psp 283 drivers/power/supply/bq24735-charger.c enum power_supply_property psp, psp 289 drivers/power/supply/bq24735-charger.c switch (psp) { psp 362 drivers/power/supply/bq25890_charger.c enum power_supply_property psp, psp 373 drivers/power/supply/bq25890_charger.c switch (psp) { psp 1761 drivers/power/supply/bq27xxx_battery.c enum power_supply_property psp, psp 1774 drivers/power/supply/bq27xxx_battery.c if (psp != POWER_SUPPLY_PROP_PRESENT && di->cache.flags < 0) psp 1777 drivers/power/supply/bq27xxx_battery.c switch (psp) { psp 883 drivers/power/supply/charger-manager.c enum power_supply_property psp, psp 892 drivers/power/supply/charger-manager.c switch (psp) { psp 92 drivers/power/supply/collie_battery.c enum power_supply_property psp, psp 99 drivers/power/supply/collie_battery.c && psp != POWER_SUPPLY_PROP_PRESENT) { psp 103 drivers/power/supply/collie_battery.c switch (psp) { psp 432 drivers/power/supply/cpcap-battery.c enum power_supply_property psp, psp 449 drivers/power/supply/cpcap-battery.c switch (psp) { psp 218 drivers/power/supply/cpcap-charger.c enum power_supply_property psp, psp 223 drivers/power/supply/cpcap-charger.c switch (psp) { psp 365 drivers/power/supply/cros_usbpd-charger.c enum power_supply_property psp, psp 375 drivers/power/supply/cros_usbpd-charger.c switch (psp) { psp 407 drivers/power/supply/cros_usbpd-charger.c switch (psp) { psp 452 drivers/power/supply/cros_usbpd-charger.c enum power_supply_property psp, psp 470 drivers/power/supply/cros_usbpd-charger.c switch (psp) { psp 510 drivers/power/supply/cros_usbpd-charger.c enum power_supply_property psp) psp 514 drivers/power/supply/cros_usbpd-charger.c switch (psp) { psp 339 drivers/power/supply/da9030_battery.c enum power_supply_property psp, psp 344 drivers/power/supply/da9030_battery.c switch (psp) { psp 493 drivers/power/supply/da9052-battery.c enum power_supply_property psp, psp 504 drivers/power/supply/da9052-battery.c if (illegal && psp != POWER_SUPPLY_PROP_PRESENT) psp 507 drivers/power/supply/da9052-battery.c switch (psp) { psp 110 drivers/power/supply/da9150-charger.c enum power_supply_property psp, psp 116 drivers/power/supply/da9150-charger.c switch (psp) { psp 322 drivers/power/supply/da9150-charger.c enum power_supply_property psp, psp 328 drivers/power/supply/da9150-charger.c switch (psp) { psp 310 drivers/power/supply/da9150-fg.c enum power_supply_property psp, psp 316 drivers/power/supply/da9150-fg.c switch (psp) { psp 545 drivers/power/supply/ds2760_battery.c enum power_supply_property psp, psp 550 drivers/power/supply/ds2760_battery.c switch (psp) { psp 560 drivers/power/supply/ds2760_battery.c switch (psp) { psp 596 drivers/power/supply/ds2760_battery.c enum power_supply_property psp, psp 601 drivers/power/supply/ds2760_battery.c switch (psp) { psp 620 drivers/power/supply/ds2760_battery.c enum power_supply_property psp) psp 622 drivers/power/supply/ds2760_battery.c switch (psp) { psp 376 drivers/power/supply/ds2780_battery.c enum power_supply_property psp, psp 382 drivers/power/supply/ds2780_battery.c switch (psp) { psp 378 drivers/power/supply/ds2781_battery.c enum power_supply_property psp, psp 384 drivers/power/supply/ds2781_battery.c switch (psp) { psp 114 drivers/power/supply/generic-adc-battery.c static enum gab_chan_type gab_prop_to_chan(enum power_supply_property psp) psp 116 drivers/power/supply/generic-adc-battery.c switch (psp) { psp 130 drivers/power/supply/generic-adc-battery.c static int read_channel(struct gab *adc_bat, enum power_supply_property psp, psp 136 drivers/power/supply/generic-adc-battery.c chan_index = gab_prop_to_chan(psp); psp 145 drivers/power/supply/generic-adc-battery.c enum power_supply_property psp, union power_supply_propval *val) psp 161 drivers/power/supply/generic-adc-battery.c switch (psp) { psp 174 drivers/power/supply/generic-adc-battery.c ret = read_channel(adc_bat, psp, &result); psp 63 drivers/power/supply/goldfish_battery.c enum power_supply_property psp, psp 69 drivers/power/supply/goldfish_battery.c switch (psp) { psp 87 drivers/power/supply/goldfish_battery.c enum power_supply_property psp, psp 93 drivers/power/supply/goldfish_battery.c switch (psp) { psp 47 drivers/power/supply/gpio-charger.c enum power_supply_property psp, union power_supply_propval *val) psp 51 drivers/power/supply/gpio-charger.c switch (psp) { psp 25 drivers/power/supply/ingenic-battery.c enum power_supply_property psp, psp 32 drivers/power/supply/ingenic-battery.c switch (psp) { psp 129 drivers/power/supply/ipaq_micro_battery.c enum power_supply_property psp, psp 134 drivers/power/supply/ipaq_micro_battery.c switch (psp) { psp 177 drivers/power/supply/ipaq_micro_battery.c enum power_supply_property psp, psp 182 drivers/power/supply/ipaq_micro_battery.c switch (psp) { psp 305 drivers/power/supply/isp1704_charger.c enum power_supply_property psp, psp 310 drivers/power/supply/isp1704_charger.c switch (psp) { psp 38 drivers/power/supply/lego_ev3_battery.c enum power_supply_property psp, psp 44 drivers/power/supply/lego_ev3_battery.c switch (psp) { psp 92 drivers/power/supply/lego_ev3_battery.c enum power_supply_property psp, psp 97 drivers/power/supply/lego_ev3_battery.c switch (psp) { psp 127 drivers/power/supply/lego_ev3_battery.c enum power_supply_property psp) psp 131 drivers/power/supply/lego_ev3_battery.c return psp == POWER_SUPPLY_PROP_TECHNOLOGY && psp 307 drivers/power/supply/lp8727_charger.c enum power_supply_property psp, psp 312 drivers/power/supply/lp8727_charger.c if (psp != POWER_SUPPLY_PROP_ONLINE) psp 333 drivers/power/supply/lp8727_charger.c enum power_supply_property psp, psp 341 drivers/power/supply/lp8727_charger.c switch (psp) { psp 144 drivers/power/supply/lp8788-charger.c enum power_supply_property psp, psp 150 drivers/power/supply/lp8788-charger.c switch (psp) { psp 333 drivers/power/supply/lp8788-charger.c enum power_supply_property psp, psp 338 drivers/power/supply/lp8788-charger.c switch (psp) { psp 42 drivers/power/supply/lt3651-charger.c enum power_supply_property psp, union power_supply_propval *val) psp 46 drivers/power/supply/lt3651-charger.c switch (psp) { psp 387 drivers/power/supply/ltc2941-battery-gauge.c enum power_supply_property psp, psp 392 drivers/power/supply/ltc2941-battery-gauge.c switch (psp) { psp 407 drivers/power/supply/ltc2941-battery-gauge.c struct power_supply *psy, enum power_supply_property psp) psp 409 drivers/power/supply/ltc2941-battery-gauge.c switch (psp) { psp 411 drivers/power/supply/max14577_charger.c enum power_supply_property psp, psp 417 drivers/power/supply/max14577_charger.c switch (psp) { psp 211 drivers/power/supply/max14656_charger_detector.c enum power_supply_property psp, psp 216 drivers/power/supply/max14656_charger_detector.c switch (psp) { psp 48 drivers/power/supply/max17040_battery.c enum power_supply_property psp, psp 53 drivers/power/supply/max17040_battery.c switch (psp) { psp 229 drivers/power/supply/max17042_battery.c enum power_supply_property psp, psp 241 drivers/power/supply/max17042_battery.c switch (psp) { psp 419 drivers/power/supply/max17042_battery.c enum power_supply_property psp, psp 428 drivers/power/supply/max17042_battery.c switch (psp) { psp 465 drivers/power/supply/max17042_battery.c enum power_supply_property psp) psp 469 drivers/power/supply/max17042_battery.c switch (psp) { psp 128 drivers/power/supply/max1721x_battery.c enum power_supply_property psp, psp 135 drivers/power/supply/max1721x_battery.c switch (psp) { psp 191 drivers/power/supply/max77650-charger.c enum power_supply_property psp, psp 197 drivers/power/supply/max77650-charger.c switch (psp) { psp 211 drivers/power/supply/max77693_charger.c enum power_supply_property psp, psp 218 drivers/power/supply/max77693_charger.c switch (psp) { psp 37 drivers/power/supply/max8903_charger.c enum power_supply_property psp, psp 42 drivers/power/supply/max8903_charger.c switch (psp) { psp 194 drivers/power/supply/max8925_power.c enum power_supply_property psp, psp 200 drivers/power/supply/max8925_power.c switch (psp) { psp 228 drivers/power/supply/max8925_power.c enum power_supply_property psp, psp 234 drivers/power/supply/max8925_power.c switch (psp) { psp 262 drivers/power/supply/max8925_power.c enum power_supply_property psp, psp 268 drivers/power/supply/max8925_power.c switch (psp) { psp 30 drivers/power/supply/max8997_charger.c enum power_supply_property psp, psp 38 drivers/power/supply/max8997_charger.c switch (psp) { psp 30 drivers/power/supply/max8998_charger.c enum power_supply_property psp, psp 38 drivers/power/supply/max8998_charger.c switch (psp) { psp 65 drivers/power/supply/olpc_battery.c enum power_supply_property psp, psp 71 drivers/power/supply/olpc_battery.c switch (psp) { psp 335 drivers/power/supply/olpc_battery.c enum power_supply_property psp, psp 355 drivers/power/supply/olpc_battery.c psp != POWER_SUPPLY_PROP_PRESENT) psp 358 drivers/power/supply/olpc_battery.c switch (psp) { psp 280 drivers/power/supply/pcf50633-charger.c enum power_supply_property psp, psp 286 drivers/power/supply/pcf50633-charger.c switch (psp) { psp 298 drivers/power/supply/pcf50633-charger.c enum power_supply_property psp, psp 306 drivers/power/supply/pcf50633-charger.c switch (psp) { psp 319 drivers/power/supply/pcf50633-charger.c enum power_supply_property psp, psp 327 drivers/power/supply/pcf50633-charger.c switch (psp) { psp 54 drivers/power/supply/pda_power.c enum power_supply_property psp, psp 57 drivers/power/supply/pda_power.c switch (psp) { psp 602 drivers/power/supply/pm2301_charger.c enum power_supply_property psp, psp 609 drivers/power/supply/pm2301_charger.c switch (psp) { psp 31 drivers/power/supply/pmu_battery.c enum power_supply_property psp, psp 34 drivers/power/supply/pmu_battery.c switch (psp) { psp 83 drivers/power/supply/pmu_battery.c enum power_supply_property psp, psp 89 drivers/power/supply/pmu_battery.c switch (psp) { psp 773 drivers/power/supply/power_supply_core.c enum power_supply_property psp, psp 782 drivers/power/supply/power_supply_core.c return psy->desc->get_property(psy, psp, val); psp 787 drivers/power/supply/power_supply_core.c enum power_supply_property psp, psp 793 drivers/power/supply/power_supply_core.c return psy->desc->set_property(psy, psp, val); psp 798 drivers/power/supply/power_supply_core.c enum power_supply_property psp) psp 804 drivers/power/supply/power_supply_core.c return psy->desc->property_is_writeable(psy, psp); psp 120 drivers/power/supply/power_supply_sysfs.c enum power_supply_property psp = attr - power_supply_attrs; psp 123 drivers/power/supply/power_supply_sysfs.c if (psp == POWER_SUPPLY_PROP_TYPE) { psp 126 drivers/power/supply/power_supply_sysfs.c ret = power_supply_get_property(psy, psp, &value); psp 140 drivers/power/supply/power_supply_sysfs.c switch (psp) { psp 189 drivers/power/supply/power_supply_sysfs.c enum power_supply_property psp = attr - power_supply_attrs; psp 192 drivers/power/supply/power_supply_sysfs.c switch (psp) { psp 231 drivers/power/supply/power_supply_sysfs.c ret = power_supply_set_property(psy, psp, &value); psp 489 drivers/power/supply/qcom_smbb.c enum power_supply_property psp, psp 495 drivers/power/supply/qcom_smbb.c switch (psp) { psp 517 drivers/power/supply/qcom_smbb.c enum power_supply_property psp, psp 523 drivers/power/supply/qcom_smbb.c switch (psp) { psp 537 drivers/power/supply/qcom_smbb.c enum power_supply_property psp, psp 543 drivers/power/supply/qcom_smbb.c switch (psp) { psp 565 drivers/power/supply/qcom_smbb.c enum power_supply_property psp, psp 571 drivers/power/supply/qcom_smbb.c switch (psp) { psp 585 drivers/power/supply/qcom_smbb.c enum power_supply_property psp) psp 587 drivers/power/supply/qcom_smbb.c return psp == POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT; psp 591 drivers/power/supply/qcom_smbb.c enum power_supply_property psp, psp 602 drivers/power/supply/qcom_smbb.c switch (psp) { psp 661 drivers/power/supply/qcom_smbb.c enum power_supply_property psp, psp 667 drivers/power/supply/qcom_smbb.c switch (psp) { psp 683 drivers/power/supply/qcom_smbb.c enum power_supply_property psp) psp 685 drivers/power/supply/qcom_smbb.c switch (psp) { psp 36 drivers/power/supply/rt5033_battery.c enum power_supply_property psp) psp 43 drivers/power/supply/rt5033_battery.c switch (psp) { psp 69 drivers/power/supply/rt5033_battery.c enum power_supply_property psp, psp 74 drivers/power/supply/rt5033_battery.c switch (psp) { psp 79 drivers/power/supply/rt5033_battery.c psp); psp 612 drivers/power/supply/rt9455_charger.c enum power_supply_property psp, psp 617 drivers/power/supply/rt9455_charger.c switch (psp) { psp 148 drivers/power/supply/rx51_battery.c enum power_supply_property psp, psp 153 drivers/power/supply/rx51_battery.c switch (psp) { psp 73 drivers/power/supply/s3c_adc_battery.c enum power_supply_property psp, psp 93 drivers/power/supply/s3c_adc_battery.c switch (psp) { psp 141 drivers/power/supply/s3c_adc_battery.c enum power_supply_property psp, psp 207 drivers/power/supply/s3c_adc_battery.c switch (psp) { psp 67 drivers/power/supply/sbs-battery.c .psp = _psp, \ psp 74 drivers/power/supply/sbs-battery.c enum power_supply_property psp; psp 312 drivers/power/supply/sbs-battery.c struct i2c_client *client, enum power_supply_property psp, psp 321 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_PRESENT) { psp 328 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_PRESENT) psp 338 drivers/power/supply/sbs-battery.c struct i2c_client *client, enum power_supply_property psp, psp 350 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_PRESENT) psp 357 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_PRESENT) psp 373 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_PRESENT) { psp 379 drivers/power/supply/sbs-battery.c } else if (psp == POWER_SUPPLY_PROP_HEALTH) { psp 394 drivers/power/supply/sbs-battery.c int reg_offset, enum power_supply_property psp, psp 411 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_CAPACITY_LEVEL) { psp 425 drivers/power/supply/sbs-battery.c } else if (psp != POWER_SUPPLY_PROP_STATUS) { psp 446 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_STATUS) psp 448 drivers/power/supply/sbs-battery.c else if (psp == POWER_SUPPLY_PROP_CAPACITY) psp 461 drivers/power/supply/sbs-battery.c int reg_offset, enum power_supply_property psp, char *val) psp 474 drivers/power/supply/sbs-battery.c enum power_supply_property psp, union power_supply_propval *val) psp 480 drivers/power/supply/sbs-battery.c switch (psp) { psp 517 drivers/power/supply/sbs-battery.c "%s: no need for unit conversion %d\n", __func__, psp); psp 548 drivers/power/supply/sbs-battery.c int reg_offset, enum power_supply_property psp, psp 554 drivers/power/supply/sbs-battery.c if (power_supply_is_amp_property(psp)) psp 591 drivers/power/supply/sbs-battery.c enum power_supply_property psp) psp 595 drivers/power/supply/sbs-battery.c if (psp == sbs_data[count].psp) psp 599 drivers/power/supply/sbs-battery.c "%s: Invalid Property - %d\n", __func__, psp); psp 605 drivers/power/supply/sbs-battery.c enum power_supply_property psp, psp 616 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_PRESENT) { psp 625 drivers/power/supply/sbs-battery.c switch (psp) { psp 630 drivers/power/supply/sbs-battery.c psp, val); psp 632 drivers/power/supply/sbs-battery.c ret = sbs_get_battery_presence_and_health(client, psp, psp 636 drivers/power/supply/sbs-battery.c if (psp == POWER_SUPPLY_PROP_PRESENT) psp 650 drivers/power/supply/sbs-battery.c ret = sbs_get_property_index(client, psp); psp 659 drivers/power/supply/sbs-battery.c ret = sbs_get_battery_capacity(client, ret, psp, val); psp 678 drivers/power/supply/sbs-battery.c ret = sbs_get_property_index(client, psp); psp 682 drivers/power/supply/sbs-battery.c ret = sbs_get_battery_property(client, ret, psp, val); psp 686 drivers/power/supply/sbs-battery.c ret = sbs_get_property_index(client, psp); psp 690 drivers/power/supply/sbs-battery.c ret = sbs_get_battery_string_property(client, ret, psp, psp 696 drivers/power/supply/sbs-battery.c ret = sbs_get_property_index(client, psp); psp 700 drivers/power/supply/sbs-battery.c ret = sbs_get_battery_string_property(client, ret, psp, psp 723 drivers/power/supply/sbs-battery.c sbs_unit_adjustment(client, psp, val); psp 727 drivers/power/supply/sbs-battery.c "%s: property = %d, value = %x\n", __func__, psp, val->intval); psp 45 drivers/power/supply/sbs-charger.c enum power_supply_property psp, psp 53 drivers/power/supply/sbs-charger.c switch (psp) { psp 93 drivers/power/supply/sbs-manager.c enum power_supply_property psp, psp 99 drivers/power/supply/sbs-manager.c switch (psp) { psp 136 drivers/power/supply/sbs-manager.c enum power_supply_property psp) psp 140 drivers/power/supply/sbs-manager.c return (psp == POWER_SUPPLY_PROP_CHARGE_TYPE) && data->is_ltc1760; psp 144 drivers/power/supply/sbs-manager.c enum power_supply_property psp, psp 151 drivers/power/supply/sbs-manager.c switch (psp) { psp 203 drivers/power/supply/sc2731_charger.c enum power_supply_property psp, psp 216 drivers/power/supply/sc2731_charger.c switch (psp) { psp 239 drivers/power/supply/sc2731_charger.c enum power_supply_property psp, psp 248 drivers/power/supply/sc2731_charger.c switch (psp) { psp 290 drivers/power/supply/sc2731_charger.c enum power_supply_property psp) psp 294 drivers/power/supply/sc2731_charger.c switch (psp) { psp 510 drivers/power/supply/sc27xx_fuel_gauge.c enum power_supply_property psp, psp 519 drivers/power/supply/sc27xx_fuel_gauge.c switch (psp) { psp 608 drivers/power/supply/sc27xx_fuel_gauge.c enum power_supply_property psp, psp 616 drivers/power/supply/sc27xx_fuel_gauge.c switch (psp) { psp 645 drivers/power/supply/sc27xx_fuel_gauge.c enum power_supply_property psp) psp 647 drivers/power/supply/sc27xx_fuel_gauge.c return psp == POWER_SUPPLY_PROP_CAPACITY || psp 648 drivers/power/supply/sc27xx_fuel_gauge.c psp == POWER_SUPPLY_PROP_CALIBRATE; psp 40 drivers/power/supply/test_power.c enum power_supply_property psp, psp 43 drivers/power/supply/test_power.c switch (psp) { psp 54 drivers/power/supply/test_power.c enum power_supply_property psp, psp 57 drivers/power/supply/test_power.c switch (psp) { psp 68 drivers/power/supply/test_power.c enum power_supply_property psp, psp 71 drivers/power/supply/test_power.c switch (psp) { psp 91 drivers/power/supply/tosa_battery.c enum power_supply_property psp, psp 98 drivers/power/supply/tosa_battery.c && psp != POWER_SUPPLY_PROP_PRESENT) { psp 102 drivers/power/supply/tosa_battery.c switch (psp) { psp 125 drivers/power/supply/tps65090-charger.c enum power_supply_property psp, psp 130 drivers/power/supply/tps65090-charger.c if (psp == POWER_SUPPLY_PROP_ONLINE) { psp 105 drivers/power/supply/tps65217_charger.c enum power_supply_property psp, psp 110 drivers/power/supply/tps65217_charger.c if (psp == POWER_SUPPLY_PROP_ONLINE) { psp 790 drivers/power/supply/twl4030_charger.c enum power_supply_property psp, psp 820 drivers/power/supply/twl4030_charger.c switch (psp) { psp 889 drivers/power/supply/twl4030_charger.c enum power_supply_property psp, psp 894 drivers/power/supply/twl4030_charger.c switch (psp) { psp 910 drivers/power/supply/twl4030_charger.c enum power_supply_property psp) psp 912 drivers/power/supply/twl4030_charger.c switch (psp) { psp 108 drivers/power/supply/twl4030_madc_battery.c enum power_supply_property psp, psp 113 drivers/power/supply/twl4030_madc_battery.c switch (psp) { psp 373 drivers/power/supply/ucs1002_power.c enum power_supply_property psp, psp 378 drivers/power/supply/ucs1002_power.c switch (psp) { psp 403 drivers/power/supply/ucs1002_power.c enum power_supply_property psp, psp 408 drivers/power/supply/ucs1002_power.c switch (psp) { psp 419 drivers/power/supply/ucs1002_power.c enum power_supply_property psp) psp 421 drivers/power/supply/ucs1002_power.c switch (psp) { psp 82 drivers/power/supply/wilco-charger.c enum power_supply_property psp, psp 90 drivers/power/supply/wilco-charger.c switch (psp) { psp 119 drivers/power/supply/wilco-charger.c enum power_supply_property psp, psp 125 drivers/power/supply/wilco-charger.c switch (psp) { psp 149 drivers/power/supply/wilco-charger.c enum power_supply_property psp) psp 113 drivers/power/supply/wm831x_backup.c enum power_supply_property psp, psp 124 drivers/power/supply/wm831x_backup.c switch (psp) { psp 70 drivers/power/supply/wm831x_power.c enum power_supply_property psp, psp 77 drivers/power/supply/wm831x_power.c switch (psp) { psp 101 drivers/power/supply/wm831x_power.c enum power_supply_property psp, psp 108 drivers/power/supply/wm831x_power.c switch (psp) { psp 433 drivers/power/supply/wm831x_power.c enum power_supply_property psp, psp 440 drivers/power/supply/wm831x_power.c switch (psp) { psp 248 drivers/power/supply/wm8350_power.c enum power_supply_property psp, psp 254 drivers/power/supply/wm8350_power.c switch (psp) { psp 278 drivers/power/supply/wm8350_power.c enum power_supply_property psp, psp 284 drivers/power/supply/wm8350_power.c switch (psp) { psp 344 drivers/power/supply/wm8350_power.c enum power_supply_property psp, psp 350 drivers/power/supply/wm8350_power.c switch (psp) { psp 46 drivers/power/supply/wm97xx_battery.c enum power_supply_property psp, psp 51 drivers/power/supply/wm97xx_battery.c switch (psp) { psp 41 drivers/power/supply/z2_battery.c enum power_supply_property psp, psp 47 drivers/power/supply/z2_battery.c switch (psp) { psp 609 drivers/regulator/act8865-regulator.c enum power_supply_property psp, union power_supply_propval *val) psp 614 drivers/regulator/act8865-regulator.c switch (psp) { psp 106 drivers/staging/greybus/power_supply.c static int get_psp_from_gb_prop(int gb_prop, enum power_supply_property *psp) psp 305 drivers/staging/greybus/power_supply.c *psp = (enum power_supply_property)prop; psp 316 drivers/staging/greybus/power_supply.c enum power_supply_property psp) psp 321 drivers/staging/greybus/power_supply.c if (gbpsy->props[i].prop == psp) psp 327 drivers/staging/greybus/power_supply.c enum power_supply_property psp) psp 331 drivers/staging/greybus/power_supply.c prop = get_psy_prop(gbpsy, psp); psp 337 drivers/staging/greybus/power_supply.c static int is_prop_valint(enum power_supply_property psp) psp 339 drivers/staging/greybus/power_supply.c return ((psp < POWER_SUPPLY_PROP_MODEL_NAME) ? 1 : 0); psp 513 drivers/staging/greybus/power_supply.c enum power_supply_property psp; psp 539 drivers/staging/greybus/power_supply.c ret = get_psp_from_gb_prop(resp->props[i].property, &psp); psp 564 drivers/staging/greybus/power_supply.c ret = get_psp_from_gb_prop(resp->props[i].property, &psp); psp 569 drivers/staging/greybus/power_supply.c gbpsy->props[i - r].prop = psp; psp 571 drivers/staging/greybus/power_supply.c gbpsy->props_raw[i - r] = psp; psp 590 drivers/staging/greybus/power_supply.c enum power_supply_property psp) psp 599 drivers/staging/greybus/power_supply.c prop = get_psy_prop(gbpsy, psp); psp 623 drivers/staging/greybus/power_supply.c enum power_supply_property psp, psp 628 drivers/staging/greybus/power_supply.c prop = get_psy_prop(gbpsy, psp); psp 637 drivers/staging/greybus/power_supply.c enum power_supply_property psp, psp 640 drivers/staging/greybus/power_supply.c switch (psp) { psp 658 drivers/staging/greybus/power_supply.c enum power_supply_property psp, psp 668 drivers/staging/greybus/power_supply.c if (is_prop_valint(psp)) psp 669 drivers/staging/greybus/power_supply.c ret = __gb_power_supply_property_get(gbpsy, psp, val); psp 671 drivers/staging/greybus/power_supply.c ret = __gb_power_supply_property_strval_get(gbpsy, psp, val); psp 674 drivers/staging/greybus/power_supply.c dev_err(&connection->bundle->dev, "get property %u\n", psp); psp 754 drivers/staging/greybus/power_supply.c enum power_supply_property psp, psp 761 drivers/staging/greybus/power_supply.c return _gb_power_supply_property_get(gbpsy, psp, val); psp 765 drivers/staging/greybus/power_supply.c enum power_supply_property psp, psp 777 drivers/staging/greybus/power_supply.c prop = get_psy_prop(gbpsy, psp); psp 801 drivers/staging/greybus/power_supply.c enum power_supply_property psp, psp 806 drivers/staging/greybus/power_supply.c return gb_power_supply_property_set(gbpsy, psp, val->intval); psp 810 drivers/staging/greybus/power_supply.c enum power_supply_property psp) psp 814 drivers/staging/greybus/power_supply.c return is_psy_prop_writeable(gbpsy, psp); psp 223 drivers/staging/nvec/nvec_power.c enum power_supply_property psp, psp 228 drivers/staging/nvec/nvec_power.c switch (psp) { psp 239 drivers/staging/nvec/nvec_power.c enum power_supply_property psp, psp 244 drivers/staging/nvec/nvec_power.c switch (psp) { psp 4584 drivers/usb/typec/tcpm/tcpm.c enum power_supply_property psp, psp 4590 drivers/usb/typec/tcpm/tcpm.c switch (psp) { psp 4641 drivers/usb/typec/tcpm/tcpm.c enum power_supply_property psp, psp 4647 drivers/usb/typec/tcpm/tcpm.c switch (psp) { psp 4673 drivers/usb/typec/tcpm/tcpm.c enum power_supply_property psp) psp 4675 drivers/usb/typec/tcpm/tcpm.c switch (psp) { psp 238 include/linux/power_supply.h enum power_supply_property psp, psp 241 include/linux/power_supply.h enum power_supply_property psp, psp 249 include/linux/power_supply.h enum power_supply_property psp); psp 397 include/linux/power_supply.h enum power_supply_property psp, psp 400 include/linux/power_supply.h enum power_supply_property psp, psp 403 include/linux/power_supply.h enum power_supply_property psp); psp 431 include/linux/power_supply.h static inline bool power_supply_is_amp_property(enum power_supply_property psp) psp 433 include/linux/power_supply.h switch (psp) { psp 457 include/linux/power_supply.h static inline bool power_supply_is_watt_property(enum power_supply_property psp) psp 459 include/linux/power_supply.h switch (psp) { psp 49 sound/soc/pxa/pxa-ssp.c uint32_t psp; psp 147 sound/soc/pxa/pxa-ssp.c priv->psp = __raw_readl(ssp->mmio_base + SSPSP); psp 166 sound/soc/pxa/pxa-ssp.c __raw_writel(priv->psp, ssp->mmio_base + SSPSP);