Lines Matching refs:index
160 * @index: register index on the chip
164 u8 kempld_read8(struct kempld_device_data *pld, u8 index)
166 iowrite8(index, pld->io_index);
174 * @index: register index on the chip
179 void kempld_write8(struct kempld_device_data *pld, u8 index, u8 data)
181 iowrite8(index, pld->io_index);
189 * @index: register index on the chip
193 u16 kempld_read16(struct kempld_device_data *pld, u8 index)
195 return kempld_read8(pld, index) | kempld_read8(pld, index + 1) << 8;
202 * @index: register index on the chip
207 void kempld_write16(struct kempld_device_data *pld, u8 index, u16 data)
209 kempld_write8(pld, index, (u8)data);
210 kempld_write8(pld, index + 1, (u8)(data >> 8));
217 * @index: register index on the chip
221 u32 kempld_read32(struct kempld_device_data *pld, u8 index)
223 return kempld_read16(pld, index) | kempld_read16(pld, index + 2) << 16;
230 * @index: register index on the chip
235 void kempld_write32(struct kempld_device_data *pld, u8 index, u32 data)
237 kempld_write16(pld, index, (u16)data);
238 kempld_write16(pld, index + 2, (u16)(data >> 16));