Lines Matching refs:chip_data
218 struct htcpld_chip *chip_data = gpiochip_get_data(chip); in htcpld_chip_set() local
221 client = chip_data->client; in htcpld_chip_set()
225 spin_lock_irqsave(&chip_data->lock, flags); in htcpld_chip_set()
227 chip_data->cache_out |= (1 << offset); in htcpld_chip_set()
229 chip_data->cache_out &= ~(1 << offset); in htcpld_chip_set()
230 spin_unlock_irqrestore(&chip_data->lock, flags); in htcpld_chip_set()
232 schedule_work(&(chip_data->set_val_work)); in htcpld_chip_set()
237 struct htcpld_chip *chip_data; in htcpld_chip_set_ni() local
240 chip_data = container_of(work, struct htcpld_chip, set_val_work); in htcpld_chip_set_ni()
241 client = chip_data->client; in htcpld_chip_set_ni()
242 i2c_smbus_read_byte_data(client, chip_data->cache_out); in htcpld_chip_set_ni()
247 struct htcpld_chip *chip_data = gpiochip_get_data(chip); in htcpld_chip_get() local
251 cache = chip_data->cache_out; in htcpld_chip_get()
253 cache = chip_data->cache_in; in htcpld_chip_get()
279 struct htcpld_chip *chip_data = gpiochip_get_data(chip); in htcpld_chip_to_irq() local
281 if (offset < chip_data->nirqs) in htcpld_chip_to_irq()
282 return chip_data->irq_start + offset; in htcpld_chip_to_irq()
289 struct htcpld_chip *chip_data = i2c_get_clientdata(client); in htcpld_chip_reset() local
290 if (!chip_data) in htcpld_chip_reset()
294 client, (chip_data->cache_out = chip_data->reset)); in htcpld_chip_reset()