Lines Matching full:alert
29 struct work_struct alert; member
30 struct i2c_client *ara; /* Alert response address */
58 if (driver->alert) in smbus_do_alert()
59 driver->alert(client, data->type, data->data); in smbus_do_alert()
61 dev_warn(&client->dev, "no driver alert()!\n"); in smbus_do_alert()
63 dev_dbg(&client->dev, "alert with no driver\n"); in smbus_do_alert()
71 * The alert IRQ handler needs to hand work off to a task which can issue
76 struct i2c_smbus_alert *alert = d; in smbus_alert() local
80 ara = alert->ara; in smbus_alert()
110 /* Notify driver for the device which issued the alert */ in smbus_alert()
121 struct i2c_smbus_alert *alert; in smbalert_work() local
123 alert = container_of(work, struct i2c_smbus_alert, alert); in smbalert_work()
125 smbus_alert(0, alert); in smbalert_work()
134 struct i2c_smbus_alert *alert; in smbalert_probe() local
138 alert = devm_kzalloc(&ara->dev, sizeof(struct i2c_smbus_alert), in smbalert_probe()
140 if (!alert) in smbalert_probe()
151 INIT_WORK(&alert->alert, smbalert_work); in smbalert_probe()
152 alert->ara = ara; in smbalert_probe()
158 "smbus_alert", alert); in smbalert_probe()
163 i2c_set_clientdata(ara, alert); in smbalert_probe()
172 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara); in smbalert_remove() local
174 cancel_work_sync(&alert->alert); in smbalert_remove()
194 * i2c_handle_smbus_alert - Handle an SMBus alert
199 * handler. It will schedule the alert work, in turn calling the
200 * corresponding I2C device driver's alert function.
207 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara); in i2c_handle_smbus_alert() local
209 return schedule_work(&alert->alert); in i2c_handle_smbus_alert()