Lines Matching defs:bit
53 * to_sas_gpio_gp_bit - given the gpio frame data find the byte/bit position of 'od'
54 * @od: od bit to find
58 * @bit: bit position of 'od' in the returned byte
63 * "In GPIO_TX[1], bit 0 of byte 3 contains the first bit (i.e., OD0.0)
64 * and bit 7 of byte 0 contains the 32nd bit (i.e., OD10.1).
66 * In GPIO_TX[2], bit 0 of byte 3 contains the 33rd bit (i.e., OD10.2)
67 * and bit 7 of byte 0 contains the 64th bit (i.e., OD21.0)."
74 static u8 *to_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count, u8 *bit)
95 *bit = od & ((1 << 3) - 1);
103 u8 bit;
105 byte = to_sas_gpio_gp_bit(od, data, index, count, &bit);
109 return (*byte >> bit) & 1;