Lines Matching refs:regs
423 static int pr_check_range(struct mchp_espi_saf *regs, const struct espi_saf_pr *pr) in pr_check_range() argument
430 if (regs->SAF_PROT_RG[pr->pr_num].START != (pr->start >> 12)) { in pr_check_range()
434 if (regs->SAF_PROT_RG[pr->pr_num].LIMIT != (limit >> 12)) { in pr_check_range()
441 static int pr_check_enable(struct mchp_espi_saf *regs, const struct espi_saf_pr *pr) in pr_check_enable() argument
444 if (regs->SAF_PROT_RG[pr->pr_num].LIMIT > regs->SAF_PROT_RG[pr->pr_num].START) { in pr_check_enable()
448 if (regs->SAF_PROT_RG[pr->pr_num].START > regs->SAF_PROT_RG[pr->pr_num].LIMIT) { in pr_check_enable()
456 static int pr_check_lock(struct mchp_espi_saf *regs, const struct espi_saf_pr *pr) in pr_check_lock() argument
459 if (regs->SAF_PROT_LOCK & BIT(pr->pr_num)) { in pr_check_lock()
463 if (!(regs->SAF_PROT_LOCK & BIT(pr->pr_num))) { in pr_check_lock()
474 static int pr_check_master_bm(struct mchp_espi_saf *regs, const struct espi_saf_pr *pr) in pr_check_master_bm() argument
476 if (regs->SAF_PROT_RG[pr->pr_num].WEBM != (pr->master_bm_we | BIT(0))) { in pr_check_master_bm()
480 if (regs->SAF_PROT_RG[pr->pr_num].RDBM != (pr->master_bm_rd | BIT(0))) { in pr_check_master_bm()