Searched refs:rtc_dd (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/rtc/ |
H A D | rtc-pm8xxx.c | 71 static int pm8xxx_rtc_read_nvmem_offset(struct pm8xxx_rtc *rtc_dd) in pm8xxx_rtc_read_nvmem_offset() argument 77 buf = nvmem_cell_read(rtc_dd->nvmem_cell, &len); in pm8xxx_rtc_read_nvmem_offset() 80 dev_dbg(rtc_dd->dev, "failed to read nvmem offset: %d\n", rc); in pm8xxx_rtc_read_nvmem_offset() 85 dev_dbg(rtc_dd->dev, "unexpected nvmem cell size %zu\n", len); in pm8xxx_rtc_read_nvmem_offset() 90 rtc_dd->offset = get_unaligned_le32(buf); in pm8xxx_rtc_read_nvmem_offset() 97 static int pm8xxx_rtc_write_nvmem_offset(struct pm8xxx_rtc *rtc_dd, u32 offset) in pm8xxx_rtc_write_nvmem_offset() argument 104 rc = nvmem_cell_write(rtc_dd->nvmem_cell, buf, sizeof(buf)); in pm8xxx_rtc_write_nvmem_offset() 106 dev_dbg(rtc_dd->dev, "failed to write nvmem offset: %d\n", rc); in pm8xxx_rtc_write_nvmem_offset() 113 static int pm8xxx_rtc_read_offset(struct pm8xxx_rtc *rtc_dd) in pm8xxx_rtc_read_offset() argument 115 if (!rtc_dd->nvmem_cell) in pm8xxx_rtc_read_offset() [all …]
|