Lines Matching refs:alert
21 struct work_struct alert;
50 if (driver->alert)
51 driver->alert(client, data->type, data->data);
53 dev_warn(&client->dev, "no driver alert()!\n");
55 dev_dbg(&client->dev, "alert with no driver\n");
63 * The alert IRQ handler needs to hand work off to a task which can issue
68 struct i2c_smbus_alert *alert = d;
71 ara = alert->ara;
96 /* Notify driver for the device which issued the alert */
106 struct i2c_smbus_alert *alert;
108 alert = container_of(work, struct i2c_smbus_alert, alert);
110 smbus_alert(0, alert);
119 struct i2c_smbus_alert *alert;
123 alert = devm_kzalloc(&ara->dev, sizeof(struct i2c_smbus_alert),
125 if (!alert)
136 INIT_WORK(&alert->alert, smbalert_work);
137 alert->ara = ara;
143 "smbus_alert", alert);
148 i2c_set_clientdata(ara, alert);
157 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara);
159 cancel_work_sync(&alert->alert);
179 * i2c_handle_smbus_alert - Handle an SMBus alert
184 * handler. It will schedule the alert work, in turn calling the
185 * corresponding I2C device driver's alert function.
192 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara);
194 return schedule_work(&alert->alert);