Lines Matching refs:cur_opmode
246 enum gp2ap020a00f_opmode cur_opmode; member
420 data->cur_opmode = op; in gp2ap020a00f_set_operation_mode()
478 if (data->cur_opmode == GP2AP020A00F_OPMODE_SHUTDOWN) in gp2ap020a00f_alter_opmode()
483 if (data->cur_opmode == GP2AP020A00F_OPMODE_ALS_AND_PS) in gp2ap020a00f_alter_opmode()
501 if (data->cur_opmode != GP2AP020A00F_OPMODE_SHUTDOWN) in gp2ap020a00f_exec_cmd()
507 if (data->cur_opmode != GP2AP020A00F_OPMODE_SHUTDOWN) in gp2ap020a00f_exec_cmd()
513 if (data->cur_opmode != GP2AP020A00F_OPMODE_SHUTDOWN) in gp2ap020a00f_exec_cmd()
519 if (data->cur_opmode == GP2AP020A00F_OPMODE_PROX_DETECT) in gp2ap020a00f_exec_cmd()
536 if (data->cur_opmode == GP2AP020A00F_OPMODE_PROX_DETECT) in gp2ap020a00f_exec_cmd()
553 if (data->cur_opmode == GP2AP020A00F_OPMODE_PROX_DETECT) in gp2ap020a00f_exec_cmd()
569 if (data->cur_opmode == GP2AP020A00F_OPMODE_PROX_DETECT) in gp2ap020a00f_exec_cmd()
599 if (data->cur_opmode == GP2AP020A00F_OPMODE_PROX_DETECT) in gp2ap020a00f_exec_cmd()
630 data->cur_opmode == GP2AP020A00F_OPMODE_PS) in gp2ap020a00f_exec_cmd()
657 data->cur_opmode == GP2AP020A00F_OPMODE_PS) in gp2ap020a00f_exec_cmd()
887 if (priv->cur_opmode != GP2AP020A00F_OPMODE_PROX_DETECT) { in gp2ap020a00f_thresh_event_handler()
943 if (priv->cur_opmode == GP2AP020A00F_OPMODE_READ_RAW_CLEAR || in gp2ap020a00f_thresh_event_handler()
944 priv->cur_opmode == GP2AP020A00F_OPMODE_READ_RAW_IR || in gp2ap020a00f_thresh_event_handler()
945 priv->cur_opmode == GP2AP020A00F_OPMODE_READ_RAW_PROXIMITY) { in gp2ap020a00f_thresh_event_handler()
1515 data->cur_opmode = GP2AP020A00F_OPMODE_SHUTDOWN; in gp2ap020a00f_probe()