Lines Matching full:shutdown
107 struct dtm_shutdown *shutdown; in pika_dtm_register_shutdown() local
109 shutdown = kmalloc(sizeof(struct dtm_shutdown), GFP_KERNEL); in pika_dtm_register_shutdown()
110 if (shutdown == NULL) in pika_dtm_register_shutdown()
113 shutdown->func = func; in pika_dtm_register_shutdown()
114 shutdown->arg = arg; in pika_dtm_register_shutdown()
116 list_add(&shutdown->list, &dtm_shutdown_list); in pika_dtm_register_shutdown()
123 struct dtm_shutdown *shutdown; in pika_dtm_unregister_shutdown() local
125 list_for_each_entry(shutdown, &dtm_shutdown_list, list) in pika_dtm_unregister_shutdown()
126 if (shutdown->func == func && shutdown->arg == arg) { in pika_dtm_unregister_shutdown()
127 list_del(&shutdown->list); in pika_dtm_unregister_shutdown()
128 kfree(shutdown); in pika_dtm_unregister_shutdown()
137 struct dtm_shutdown *shutdown; in temp_isr() local
144 /* Run through the shutdown list. */ in temp_isr()
145 list_for_each_entry(shutdown, &dtm_shutdown_list, list) in temp_isr()
146 shutdown->func(shutdown->arg); in temp_isr()
148 printk(KERN_EMERG "\n\nCritical Temperature Shutdown\n\n"); in temp_isr()