Home | History | Annotate | Download | only in i2c

Lines Matching refs:sm

135 	const struct strtc_model *sm;
142 sm = dce->data;
143 if (sm->sm_model == model)
144 return sm;
153 const struct strtc_model *sm = NULL;
156 sm = dce->data;
158 return sm;
185 const struct strtc_model *sm;
187 if ((sm = strtc_model_by_compat(ia)) == NULL)
188 sm = strtc_model_by_number(device_cfdata(self)->cf_flags);
190 if (sm == NULL) {
196 sm->sm_nvram_size ? "/NVRAM" : "");
197 aprint_normal(": M41T%d Real-time Clock%s\n", sm->sm_model,
198 sm->sm_nvram_size ? "/NVRAM" : "");
202 sc->sc_model = sm;
254 const struct strtc_model * const sm = sc->sc_model;
256 if (uio->uio_offset >= sm->sm_nvram_size)
262 while (uio->uio_resid && uio->uio_offset < sm->sm_nvram_size) {
264 cmdbuf[0] = a + sm->sm_nvram_start;
295 const struct strtc_model * const sm = sc->sc_model;
297 if (uio->uio_offset >= sm->sm_nvram_size)
303 while (uio->uio_resid && uio->uio_offset < sm->sm_nvram_size) {
305 cmdbuf[0] = a + sm->sm_nvram_start;