Lines Matching refs:data
12 u8 data; in twl4030_input_power_button() local
15 TWL4030_PM_MASTER_STS_HW_CONDITIONS, &data); in twl4030_input_power_button()
17 if (data & TWL4030_PM_MASTER_STS_HW_CONDITIONS_PWON) in twl4030_input_power_button()
25 u8 data; in twl4030_input_charger() local
28 TWL4030_PM_MASTER_STS_HW_CONDITIONS, &data); in twl4030_input_charger()
30 if (data & TWL4030_PM_MASTER_STS_HW_CONDITIONS_CHG) in twl4030_input_charger()
38 u8 data; in twl4030_input_usb() local
41 TWL4030_PM_MASTER_STS_HW_CONDITIONS, &data); in twl4030_input_usb()
43 if (data & TWL4030_PM_MASTER_STS_HW_CONDITIONS_USB || in twl4030_input_usb()
44 data & TWL4030_PM_MASTER_STS_HW_CONDITIONS_VBUS) in twl4030_input_usb()
52 u8 data; in twl4030_keypad_scan() local
56 TWL4030_KEYPAD_KEYP_CTRL_REG, &data); in twl4030_keypad_scan()
58 data |= TWL4030_KEYPAD_CTRL_SOFT_NRST | TWL4030_KEYPAD_CTRL_KBD_ON; in twl4030_keypad_scan()
59 data &= ~TWL4030_KEYPAD_CTRL_SOFTMODEN; in twl4030_keypad_scan()
62 TWL4030_KEYPAD_KEYP_CTRL_REG, data); in twl4030_keypad_scan()
65 data = 0xff & ~(1 << c); in twl4030_keypad_scan()
67 TWL4030_KEYPAD_KBC_REG, data); in twl4030_keypad_scan()
69 data = 0xff; in twl4030_keypad_scan()
71 TWL4030_KEYPAD_KBR_REG, &data); in twl4030_keypad_scan()
74 matrix[c * 8 + r] = !(data & (1 << r)); in twl4030_keypad_scan()
77 data = 0xff & ~(TWL4030_KEYPAD_CTRL_SOFT_NRST); in twl4030_keypad_scan()
79 TWL4030_KEYPAD_KEYP_CTRL_REG, data); in twl4030_keypad_scan()