Lines Matching refs:client
73 pcf8583_detach(struct i2c_client *client) in pcf8583_detach() argument
75 i2c_detach_client(client); in pcf8583_detach()
76 kfree(client); in pcf8583_detach()
81 pcf8583_get_datetime(struct i2c_client *client, struct rtc_tm *dt) in pcf8583_get_datetime() argument
85 { client->addr, 0, 1, addr }, in pcf8583_get_datetime()
86 { client->addr, I2C_M_RD, 6, buf } in pcf8583_get_datetime()
92 ret = i2c_transfer(client->adapter, msgs, 2); in pcf8583_get_datetime()
114 pcf8583_set_datetime(struct i2c_client *client, struct rtc_tm *dt, int datetoo) in pcf8583_set_datetime() argument
120 buf[1] = DAT(client) | 0x80; in pcf8583_set_datetime()
132 ret = i2c_master_send(client, (char *)buf, len); in pcf8583_set_datetime()
136 buf[1] = DAT(client); in pcf8583_set_datetime()
137 i2c_master_send(client, (char *)buf, 2); in pcf8583_set_datetime()
143 pcf8583_get_ctrl(struct i2c_client *client, unsigned char *ctrl) in pcf8583_get_ctrl() argument
145 *ctrl = DAT(client); in pcf8583_get_ctrl()
150 pcf8583_set_ctrl(struct i2c_client *client, unsigned char *ctrl) in pcf8583_set_ctrl() argument
156 DAT(client) = *ctrl; in pcf8583_set_ctrl()
158 return i2c_master_send(client, (char *)buf, 2); in pcf8583_set_ctrl()
162 pcf8583_read_mem(struct i2c_client *client, struct mem *mem) in pcf8583_read_mem() argument
166 { client->addr, 0, 1, addr }, in pcf8583_read_mem()
167 { client->addr, I2C_M_RD, 0, mem->data } in pcf8583_read_mem()
176 return i2c_transfer(client->adapter, msgs, 2) == 2 ? 0 : -EIO; in pcf8583_read_mem()
180 pcf8583_write_mem(struct i2c_client *client, struct mem *mem) in pcf8583_write_mem() argument
184 { client->addr, 0, 1, addr }, in pcf8583_write_mem()
185 { client->addr, 0, 0, mem->data } in pcf8583_write_mem()
194 return i2c_transfer(client->adapter, msgs, 2) == 2 ? 0 : -EIO; in pcf8583_write_mem()
198 pcf8583_command(struct i2c_client *client, unsigned int cmd, void *arg) in pcf8583_command() argument
202 return pcf8583_get_datetime(client, arg); in pcf8583_command()
205 return pcf8583_set_datetime(client, arg, 0); in pcf8583_command()
208 return pcf8583_set_datetime(client, arg, 1); in pcf8583_command()
211 return pcf8583_get_ctrl(client, arg); in pcf8583_command()
214 return pcf8583_set_ctrl(client, arg); in pcf8583_command()
217 return pcf8583_read_mem(client, arg); in pcf8583_command()
220 return pcf8583_write_mem(client, arg); in pcf8583_command()