Lines Matching refs:oneshot_data
29 struct oneshot_trig_data *oneshot_data = led_trigger_get_drvdata(dev); in led_shot() local
33 oneshot_data->invert); in led_shot()
41 struct oneshot_trig_data *oneshot_data = led_trigger_get_drvdata(dev); in led_invert_show() local
43 return sprintf(buf, "%u\n", oneshot_data->invert); in led_invert_show()
50 struct oneshot_trig_data *oneshot_data = led_trigger_get_drvdata(dev); in led_invert_store() local
58 oneshot_data->invert = !!state; in led_invert_store()
60 if (oneshot_data->invert) in led_invert_store()
160 struct oneshot_trig_data *oneshot_data; in oneshot_trig_activate() local
162 oneshot_data = kzalloc(sizeof(*oneshot_data), GFP_KERNEL); in oneshot_trig_activate()
163 if (!oneshot_data) in oneshot_trig_activate()
166 led_set_trigger_data(led_cdev, oneshot_data); in oneshot_trig_activate()
182 struct oneshot_trig_data *oneshot_data = led_get_trigger_data(led_cdev); in oneshot_trig_deactivate() local
184 kfree(oneshot_data); in oneshot_trig_deactivate()