Lines Matching defs:base
88 void __iomem *base;
212 data = readl(sen->data->base + SPRD_THM_TEMP(sen->id)) &
232 ret = readl_poll_timeout(thm->base + SPRD_THM_CTL, val,
239 sprd_thm_update_bits(thm->base + SPRD_THM_CTL, SPRD_THM_MON_EN,
241 sprd_thm_update_bits(thm->base + SPRD_THM_CTL, SPRD_THM_SET_RDY,
251 return readl_poll_timeout(thm->base + SPRD_THM_INTERNAL_STS1, val,
274 writel(SPRD_THM_INT_CLR_MASK, thm->base + SPRD_THM_INT_CLR);
275 sprd_thm_update_bits(thm->base + SPRD_THM_INT_EN,
277 sprd_thm_update_bits(thm->base + SPRD_THM_CTL,
291 sprd_thm_update_bits(thm->base + SPRD_THM_INT_EN,
296 sprd_thm_update_bits(thm->base + SPRD_THM_THRES(sen->id),
302 sprd_thm_update_bits(thm->base + SPRD_THM_CTL, SPRD_THM_SEN(sen->id),
309 sprd_thm_update_bits(thm->base + SPRD_THM_DET_PERIOD,
313 sprd_thm_update_bits(thm->base + SPRD_THM_MON_CTL,
317 sprd_thm_update_bits(thm->base + SPRD_THM_MON_PERIOD,
352 thm->base = devm_platform_ioremap_resource(pdev, 0);
353 if (IS_ERR(thm->base))
354 return PTR_ERR(thm->base);
453 sprd_thm_update_bits(thm->base + SPRD_THM_CTL,
457 sprd_thm_update_bits(thm->base + SPRD_THM_CTL,
480 sprd_thm_update_bits(thm->base + SPRD_THM_CTL,
489 writel(SPRD_THM_INT_CLR_MASK, thm->base + SPRD_THM_INT_CLR);
490 sprd_thm_update_bits(thm->base + SPRD_THM_CTL,