Lines Matching full: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) in to_sas_gpio_gp_bit() argument
84 if (od < index * 32) in to_sas_gpio_gp_bit()
87 od -= index * 32; in to_sas_gpio_gp_bit()
88 reg = od >> 5; in to_sas_gpio_gp_bit()
93 od &= (1 << 5) - 1; in to_sas_gpio_gp_bit()
94 byte = 3 - (od >> 3); in to_sas_gpio_gp_bit()
95 *bit = od & ((1 << 3) - 1); in to_sas_gpio_gp_bit()
100 int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count) in try_test_sas_gpio_gp_bit() argument
105 byte = to_sas_gpio_gp_bit(od, data, index, count, &bit); in try_test_sas_gpio_gp_bit()