Lines Matching defs:lp
56 struct lp8788 *lp;
103 static void lp8788_rtc_unlock(struct lp8788 *lp)
105 lp8788_write_byte(lp, LP8788_RTC_UNLOCK, RTC_UNLOCK);
106 lp8788_write_byte(lp, LP8788_RTC_UNLOCK, RTC_LATCH);
112 struct lp8788 *lp = rtc->lp;
116 lp8788_rtc_unlock(lp);
118 ret = lp8788_read_multi_bytes(lp, LP8788_RTC_SEC, data, LPTIME_MAX);
136 struct lp8788 *lp = rtc->lp;
142 dev_err(lp->dev, "invalid year: %d\n", year);
155 ret = lp8788_write_byte(lp, LP8788_RTC_SEC + i, data[i]);
166 struct lp8788 *lp = rtc->lp;
172 ret = lp8788_read_multi_bytes(lp, addr, data, LPTIME_MAX);
191 struct lp8788 *lp = rtc->lp;
198 dev_err(lp->dev, "invalid year: %d\n", year);
212 ret = lp8788_write_byte(lp, addr, data[i]);
220 return lp8788_update_bits(lp, addr, LP8788_ALM_EN_M,
227 struct lp8788 *lp = rtc->lp;
236 return lp8788_update_bits(lp, LP8788_INTEN_3, mask, enable << shift);
259 struct lp8788 *lp = rtc->lp;
260 struct irq_domain *irqdm = lp->irqdm;
284 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent);
292 rtc->lp = lp;
293 rtc->alarm = lp->pdata ? lp->pdata->alarm_sel : DEFAULT_ALARM_SEL;
306 dev_warn(lp->dev, "no rtc irq handler\n");