Lines Matching refs:state
73 /* Report current ebook switch state through input layer */
76 unsigned char state;
78 if (olpc_ec_cmd(EC_READ_EB_MODE, NULL, 0, &state, 1)) {
79 pr_err(PFX "failed to get ebook state\n");
83 if (test_bit(SW_TABLET_MODE, ebook_switch_idev->sw) == !!state)
86 input_report_switch(ebook_switch_idev, SW_TABLET_MODE, state);
114 int state;
116 state = cs5535_gpio_isset(OLPC_GPIO_LID, GPIO_READ_BACK);
117 lid_open = !state ^ !lid_inverted; /* x ^^ y */
118 if (!state)
124 /* Report current lid switch state through input layer */
266 static int xo1_sci_suspend(struct platform_device *pdev, pm_message_t state)