Lines Matching defs:buf
38 static int _read_reg(struct w1_slave *sl, u8 address, unsigned char* buf)
43 sl, (unsigned int)address, buf);
45 if (!buf)
60 *buf = w1_read_8(sl->master);
68 struct bin_attribute *bin_attr, char *buf, loff_t off,
73 bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
76 return _read_reg(kobj_to_w1_slave(kobj), W1_F29_REG_LOGIG_STATE, buf);
80 struct bin_attribute *bin_attr, char *buf,
85 bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
89 W1_F29_REG_OUTPUT_LATCH_STATE, buf);
93 struct bin_attribute *bin_attr, char *buf,
98 bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
102 W1_F29_REG_ACTIVITY_LATCH_STATE, buf);
106 struct bin_attribute *bin_attr, char *buf,
111 bin_attr->attr.name, kobj, (unsigned int)off, count, buf);
115 W1_F29_REG_COND_SEARCH_SELECT_MASK, buf);
121 char *buf, loff_t off, size_t count)
126 W1_F29_REG_COND_SEARCH_POL_SELECT, buf);
130 struct bin_attribute *bin_attr, char *buf,
136 W1_F29_REG_CONTROL_AND_STATUS, buf);
163 struct bin_attribute *bin_attr, char *buf,
183 w1_buf[1] = *buf;
184 w1_buf[2] = ~(*buf);
189 optional_read_back_valid(sl, *buf)) {
213 struct bin_attribute *bin_attr, char *buf,
243 struct bin_attribute *bin_attr, char *buf,
262 w1_buf[3] = *buf;
273 if (w1_read_8(sl->master) == *buf) {