Lines Matching defs:offset
224 u8 (*bank) (u8 offset);
225 u8 (*bit) (u8 offset);
256 static unsigned char adp5589_bank(unsigned char offset)
258 return offset >> 3;
261 static unsigned char adp5589_bit(unsigned char offset)
263 return 1u << (offset & 0x7);
293 static unsigned char adp5585_bank(unsigned char offset)
295 return offset > ADP5585_MAX_ROW_NUM;
298 static unsigned char adp5585_bit(unsigned char offset)
300 return (offset > ADP5585_MAX_ROW_NUM) ?
301 1u << (offset - ADP5585_COL_SHIFT) : 1u << offset;