Lines Matching refs:addr
96 static int ds1631_read_1(device_t dev, uint32_t addr, uint8_t reg,
98 static int ds1631_read_2(device_t dev, uint32_t addr, uint8_t reg,
100 static int ds1631_write(device_t dev, uint32_t addr, uint8_t reg,
121 ds1631_write(device_t dev, uint32_t addr, uint8_t reg, uint8_t *buff, int len)
127 { addr, IIC_M_WR, 0, buf }
148 ds1631_read_1(device_t dev, uint32_t addr, uint8_t reg, uint8_t *data)
154 { addr, IIC_M_WR, 1, ® },
155 { addr, IIC_M_RD, 1, buf },
176 ds1631_read_2(device_t dev, uint32_t addr, uint8_t reg, uint16_t *data)
182 { addr, IIC_M_WR, 1, ® },
183 { addr, IIC_M_RD, 2, buf },
253 ds1631_init(device_t dev, uint32_t addr)
261 err = ds1631_read_1(dev, addr, DS1631_CONTROL, &conf);
269 err = ds1631_write(dev, addr, DS1631_STOP, &conf, 0);
277 err = ds1631_write(dev, addr, DS1631_CONTROL, &conf, sizeof(conf));
284 err = ds1631_write(dev, addr, DS1631_START, &conf, 0);