Lines Matching refs:menelaus

761 	struct menelaus_chip *menelaus =  in menelaus_work()  local
763 void (*handler)(struct menelaus_chip *menelaus); in menelaus_work()
769 & ~menelaus->mask2) << 8; in menelaus_work()
771 & ~menelaus->mask1; in menelaus_work()
779 mutex_lock(&menelaus->lock); in menelaus_work()
782 handler = menelaus->handlers[irq]; in menelaus_work()
784 handler(menelaus); in menelaus_work()
786 mutex_unlock(&menelaus->lock); in menelaus_work()
789 enable_irq(menelaus->client->irq); in menelaus_work()
797 struct menelaus_chip *menelaus = _menelaus; in menelaus_irq() local
800 (void)schedule_work(&menelaus->work); in menelaus_irq()
1146 struct menelaus_chip *menelaus; in menelaus_probe() local
1158 menelaus = devm_kzalloc(&client->dev, sizeof(*menelaus), GFP_KERNEL); in menelaus_probe()
1159 if (!menelaus) in menelaus_probe()
1162 i2c_set_clientdata(client, menelaus); in menelaus_probe()
1164 the_menelaus = menelaus; in menelaus_probe()
1165 menelaus->client = client; in menelaus_probe()
1179 menelaus->mask1 = 0xff; in menelaus_probe()
1180 menelaus->mask2 = 0xff; in menelaus_probe()
1187 DRIVER_NAME, menelaus); in menelaus_probe()
1195 mutex_init(&menelaus->lock); in menelaus_probe()
1196 INIT_WORK(&menelaus->work, menelaus_work); in menelaus_probe()
1204 menelaus->vcore_hw_mode = 1; in menelaus_probe()
1206 menelaus->vcore_hw_mode = 0; in menelaus_probe()
1214 menelaus_rtc_init(menelaus); in menelaus_probe()
1218 free_irq(client->irq, menelaus); in menelaus_probe()
1219 flush_work(&menelaus->work); in menelaus_probe()
1225 struct menelaus_chip *menelaus = i2c_get_clientdata(client); in menelaus_remove() local
1227 free_irq(client->irq, menelaus); in menelaus_remove()
1228 flush_work(&menelaus->work); in menelaus_remove()