Lines Matching refs:bit
153 static int __update_power_state(struct mid_pwr *pwr, int reg, int bit, int new) in __update_power_state() argument
161 curstate = (power >> bit) & 3; in __update_power_state()
166 mid_pwr_set_state(pwr, reg, (power & ~(3 << bit)) | (new << bit)); in __update_power_state()
175 curstate = (power >> bit) & 3; in __update_power_state()
214 pci_power_t state, int id, int reg, int bit) in __set_power_state() argument
222 ret = __update_power_state(pwr, reg, bit, (__force int)state); in __set_power_state()
235 int id, reg, bit; in mid_pwr_set_power_state() local
243 bit = (id * LSS_PWS_BITS) % 32; in mid_pwr_set_power_state()
252 ret = __set_power_state(pwr, pdev, state, id, reg, bit); in mid_pwr_set_power_state()
274 int id, reg, bit; in intel_mid_pci_get_power_state() local
285 bit = (id * LSS_PWS_BITS) % 32; in intel_mid_pci_get_power_state()
287 return (__force pci_power_t)((power >> bit) & 3); in intel_mid_pci_get_power_state()