Lines Matching full:od
56 * to_sas_gpio_gp_bit - given the gpio frame data find the byte/bit position of 'od'
57 * @od: od bit to find
61 * @bit: bit position of 'od' in the returned byte
63 * returns NULL if 'od' is not in 'data'
73 * although 'od' is renamed 'id' for 'input data'.
75 * SFF-8489 defines the behavior of the LEDs in response to the 'od' values.
77 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
87 if (od < index * 32) in to_sas_gpio_gp_bit()
90 od -= index * 32; in to_sas_gpio_gp_bit()
91 reg = od >> 5; in to_sas_gpio_gp_bit()
96 od &= (1 << 5) - 1; in to_sas_gpio_gp_bit()
97 byte = 3 - (od >> 3); in to_sas_gpio_gp_bit()
98 *bit = od & ((1 << 3) - 1); in to_sas_gpio_gp_bit()
103 int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count) in try_test_sas_gpio_gp_bit() argument
108 byte = to_sas_gpio_gp_bit(od, data, index, count, &bit); in try_test_sas_gpio_gp_bit()