Lines Matching refs:buf
37 unsigned char buf[4]; in ds1672_get_datetime() local
43 .buf = &addr in ds1672_get_datetime()
49 .buf = buf in ds1672_get_datetime()
61 __func__, buf[0], buf[1], buf[2], buf[3]); in ds1672_get_datetime()
63 time = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; in ds1672_get_datetime()
78 unsigned char buf[6]; in ds1672_set_mmss() local
80 buf[0] = DS1672_REG_CNT_BASE; in ds1672_set_mmss()
81 buf[1] = secs & 0x000000FF; in ds1672_set_mmss()
82 buf[2] = (secs & 0x0000FF00) >> 8; in ds1672_set_mmss()
83 buf[3] = (secs & 0x00FF0000) >> 16; in ds1672_set_mmss()
84 buf[4] = (secs & 0xFF000000) >> 24; in ds1672_set_mmss()
85 buf[5] = 0; /* set control reg to enable counting */ in ds1672_set_mmss()
87 xfer = i2c_master_send(client, buf, 6); in ds1672_set_mmss()
114 .buf = &addr in ds1672_get_control()
120 .buf = status in ds1672_get_control()
135 char *buf) in show_control() argument
145 return sprintf(buf, "%s\n", (control & DS1672_REG_CONTROL_EOSC) in show_control()