Lines Matching defs:od
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
60 * returns NULL if 'od' is not in 'data'
70 * although 'od' is renamed 'id' for 'input data'.
72 * SFF-8489 defines the behavior of the LEDs in response to the 'od' values.
74 static u8 *to_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count, u8 *bit)
84 if (od < index * 32)
87 od -= index * 32;
88 reg = od >> 5;
93 od &= (1 << 5) - 1;
94 byte = 3 - (od >> 3);
95 *bit = od & ((1 << 3) - 1);
100 int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count)
105 byte = to_sas_gpio_gp_bit(od, data, index, count, &bit);