Lines Matching full:peripheral

65 	struct regmap		*peripheral;	/* peripheral registers */  member
70 .name = "peripheral-registers",
82 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SCLK, 0); in meson_rtc_sclk_pulse()
84 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SCLK, in meson_rtc_sclk_pulse()
90 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI, in meson_rtc_send_bit()
108 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN, 0); in meson_rtc_set_dir()
109 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI, 0); in meson_rtc_set_dir()
111 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SDI, 0); in meson_rtc_set_dir()
123 regmap_read(rtc->peripheral, RTC_ADDR1, &tmp); in meson_rtc_get_data()
137 regmap_update_bits(rtc->peripheral, RTC_ADDR0, val, 0); in meson_rtc_get_bus()
141 if (!regmap_read_poll_timeout(rtc->peripheral, RTC_ADDR1, val, in meson_rtc_get_bus()
167 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN, in meson_rtc_serial_bus_reg_read()
186 regmap_update_bits(rtc->peripheral, RTC_ADDR0, RTC_ADDR0_LINE_SEN, in meson_rtc_serial_bus_reg_write()
213 regmap_write(rtc->peripheral, RTC_REG4, in meson_rtc_write_static()
218 regmap_update_bits(rtc->peripheral, RTC_ADDR0, in meson_rtc_write_static()
222 return regmap_read_poll_timeout(rtc->peripheral, RTC_REG4, tmp, in meson_rtc_write_static()
317 rtc->peripheral = devm_regmap_init_mmio(dev, base, in meson_rtc_probe()
319 if (IS_ERR(rtc->peripheral)) { in meson_rtc_probe()
320 dev_err(dev, "failed to create peripheral regmap\n"); in meson_rtc_probe()
321 return PTR_ERR(rtc->peripheral); in meson_rtc_probe()