• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/i2c/

Lines Matching refs:alert

34 	struct work_struct	alert;
60 if (client->driver->alert)
61 client->driver->alert(client, data->flag);
63 dev_warn(&client->dev, "no driver alert()!\n");
65 dev_dbg(&client->dev, "alert with no driver\n");
73 * The alert IRQ handler needs to hand work off to a task which can issue
78 struct i2c_smbus_alert *alert;
82 alert = container_of(work, struct i2c_smbus_alert, alert);
83 ara = alert->ara;
112 /* Notify driver for the device which issued the alert */
119 if (!alert->alert_edge_triggered)
120 enable_irq(alert->irq);
125 struct i2c_smbus_alert *alert = d;
128 if (!alert->alert_edge_triggered)
131 schedule_work(&alert->alert);
140 struct i2c_smbus_alert *alert;
144 alert = kzalloc(sizeof(struct i2c_smbus_alert), GFP_KERNEL);
145 if (!alert)
148 alert->alert_edge_triggered = setup->alert_edge_triggered;
149 alert->irq = setup->irq;
150 INIT_WORK(&alert->alert, smbus_alert);
151 alert->ara = ara;
155 0, "smbus_alert", alert);
157 kfree(alert);
162 i2c_set_clientdata(ara, alert);
172 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara);
174 cancel_work_sync(&alert->alert);
176 kfree(alert);
196 * i2c_setup_smbus_alert - Setup SMBus alert support
198 * @setup: setup data for the SMBus alert handler
201 * Setup handling of the SMBus alert protocol on a given I2C bus segment.
208 * If triggering the alert seems to wedge the system, you probably
228 * i2c_handle_smbus_alert - Handle an SMBus alert
233 * handler. It will schedule the alert work, in turn calling the
234 * corresponding I2C device driver's alert function.
241 struct i2c_smbus_alert *alert = i2c_get_clientdata(ara);
243 return schedule_work(&alert->alert);