Searched refs:nb (Results 1 – 9 of 9) sorted by relevance
26 static int notifier_err_inject_callback(struct notifier_block *nb, in notifier_err_inject_callback() argument31 container_of(nb, struct notifier_err_inject, nb); in notifier_err_inject_callback()57 err_inject->nb.notifier_call = notifier_err_inject_callback; in notifier_err_inject_init()58 err_inject->nb.priority = priority; in notifier_err_inject_init()
30 err = register_memory_notifier(&memory_notifier_err_inject.nb); in err_inject_init()39 unregister_memory_notifier(&memory_notifier_err_inject.nb); in err_inject_exit()
31 err = register_pm_notifier(&pm_notifier_err_inject.nb); in err_inject_init()40 unregister_pm_notifier(&pm_notifier_err_inject.nb); in err_inject_exit()
32 err = register_hotcpu_notifier(&cpu_notifier_err_inject.nb); in err_inject_init()41 unregister_hotcpu_notifier(&cpu_notifier_err_inject.nb); in err_inject_exit()
33 err = of_reconfig_notifier_register(&reconfig_err_inject.nb); in err_inject_init()42 of_reconfig_notifier_unregister(&reconfig_err_inject.nb); in err_inject_exit()
15 struct notifier_block nb; member
739 static int dma_debug_device_change(struct notifier_block *nb, unsigned long action, void *data) in dma_debug_device_change() argument771 struct notifier_block *nb; in dma_debug_add_bus() local776 nb = kzalloc(sizeof(struct notifier_block), GFP_KERNEL); in dma_debug_add_bus()777 if (nb == NULL) { in dma_debug_add_bus()782 nb->notifier_call = dma_debug_device_change; in dma_debug_add_bus()784 bus_register_notifier(bus, nb); in dma_debug_add_bus()
161 static int __cpuinit percpu_counter_hotcpu_callback(struct notifier_block *nb, in percpu_counter_hotcpu_callback() argument
840 unsigned nb; /* number of bit length codes */ in inflate_dynamic() local872 nb = 4 + ((unsigned)b & 0xf); /* number of bit length codes */ in inflate_dynamic()887 for (j = 0; j < nb; j++) in inflate_dynamic()