Lines Matching defs:chip_data
241 struct htcpld_chip *chip_data;
244 chip_data = container_of(chip, struct htcpld_chip, chip_out);
245 if (!chip_data)
248 client = chip_data->client;
252 spin_lock_irqsave(&chip_data->lock, flags);
254 chip_data->cache_out |= (1 << offset);
256 chip_data->cache_out &= ~(1 << offset);
257 spin_unlock_irqrestore(&chip_data->lock, flags);
259 schedule_work(&(chip_data->set_val_work));
264 struct htcpld_chip *chip_data;
267 chip_data = container_of(work, struct htcpld_chip, set_val_work);
268 client = chip_data->client;
269 i2c_smbus_read_byte_data(client, chip_data->cache_out);
274 struct htcpld_chip *chip_data;
279 chip_data = container_of(chip, struct htcpld_chip, chip_out);
280 if (!chip_data) {
283 chip_data = container_of(chip, struct htcpld_chip, chip_in);
284 if (!chip_data)
291 val = (chip_data->cache_out >> offset) & 1;
294 val = (chip_data->cache_in >> offset) & 1;
321 struct htcpld_chip *chip_data;
323 chip_data = container_of(chip, struct htcpld_chip, chip_in);
325 if (offset < chip_data->nirqs)
326 return chip_data->irq_start + offset;
333 struct htcpld_chip *chip_data = i2c_get_clientdata(client);
334 if (!chip_data)
338 client, (chip_data->cache_out = chip_data->reset));