Lines Matching full:alert

22 	struct work_struct	alert;  member
23 struct i2c_client *ara; /* Alert response address */
52 if (driver->alert) { in smbus_do_alert()
54 driver->alert(client, data->type, data->data); in smbus_do_alert()
57 dev_warn(&client->dev, "no driver alert()!\n"); in smbus_do_alert()
61 dev_dbg(&client->dev, "alert with no driver\n"); in smbus_do_alert()
69 /* Same as above, but call back all drivers with alert handler */
87 if (driver->alert) in smbus_do_alert_force()
88 driver->alert(client, data->type, data->data); in smbus_do_alert_force()
96 * The alert IRQ handler needs to hand work off to a task which can issue
101 struct i2c_smbus_alert *alert = d; in smbus_alert() local
105 ara = alert->ara; in smbus_alert()
130 /* Notify driver for the device which issued the alert */ in smbus_alert()
134 * If we read the same address more than once, and the alert in smbus_alert()
137 * time calling the alert handlers of all devices connected to in smbus_alert()
141 * Note: This assumes that a driver with alert handler handles in smbus_alert()
142 * the alert properly and clears it if necessary. in smbus_alert()
157 struct i2c_smbus_alert *alert; in smbalert_work() local
159 alert = container_of(work, struct i2c_smbus_alert, alert); in smbalert_work()
161 smbus_alert(0, alert); in smbalert_work()
169 struct i2c_smbus_alert *alert; in smbalert_probe() local
175 alert = devm_kzalloc(&ara->dev, sizeof(struct i2c_smbus_alert), in smbalert_probe()
177 if (!alert) in smbalert_probe()
198 INIT_WORK(&alert->alert, smbalert_work); in smbalert_probe()
199 alert->ara = ara; in smbalert_probe()
203 irqflags, "smbus_alert", alert); in smbalert_probe()
208 i2c_set_clientdata(ara, alert); in smbalert_probe()
217 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara); in smbalert_remove() local
219 cancel_work_sync(&alert->alert); in smbalert_remove()
238 * i2c_handle_smbus_alert - Handle an SMBus alert
243 * handler. It will schedule the alert work, in turn calling the
244 * corresponding I2C device driver's alert function.
251 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara); in i2c_handle_smbus_alert() local
253 return schedule_work(&alert->alert); in i2c_handle_smbus_alert()