/linux-3.4.99/net/x25/ |
D | x25_link.c | 39 static void x25_transmit_restart_confirmation(struct x25_neigh *nb); 40 static void x25_transmit_restart_request(struct x25_neigh *nb); 45 static inline void x25_start_t20timer(struct x25_neigh *nb) in x25_start_t20timer() argument 47 mod_timer(&nb->t20timer, jiffies + nb->t20); in x25_start_t20timer() 52 struct x25_neigh *nb = (struct x25_neigh *)param; in x25_t20timer_expiry() local 54 x25_transmit_restart_request(nb); in x25_t20timer_expiry() 56 x25_start_t20timer(nb); in x25_t20timer_expiry() 59 static inline void x25_stop_t20timer(struct x25_neigh *nb) in x25_stop_t20timer() argument 61 del_timer(&nb->t20timer); in x25_stop_t20timer() 64 static inline int x25_t20timer_pending(struct x25_neigh *nb) in x25_t20timer_pending() argument [all …]
|
D | x25_dev.c | 29 static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb) in x25_receive_data() argument 46 x25_link_control(skb, nb, frametype); in x25_receive_data() 53 if ((sk = x25_find_socket(lci, nb)) != NULL) { in x25_receive_data() 72 return x25_rx_call_request(skb, nb, lci); in x25_receive_data() 79 if (x25_forward_data(lci, nb, skb)) { in x25_receive_data() 101 struct x25_neigh *nb; in x25_lapb_receive_frame() local 115 nb = x25_get_neigh(dev); in x25_lapb_receive_frame() 116 if (!nb) { in x25_lapb_receive_frame() 128 if (x25_receive_data(skb, nb)) { in x25_lapb_receive_frame() 129 x25_neigh_put(nb); in x25_lapb_receive_frame() [all …]
|
/linux-3.4.99/include/linux/ |
D | cpu.h | 128 extern int register_cpu_notifier(struct notifier_block *nb); 129 extern void unregister_cpu_notifier(struct notifier_block *nb); 133 extern int register_cpu_notifier(struct notifier_block *nb); 135 static inline int register_cpu_notifier(struct notifier_block *nb) in register_cpu_notifier() argument 141 static inline void unregister_cpu_notifier(struct notifier_block *nb) in unregister_cpu_notifier() argument 155 static inline int register_cpu_notifier(struct notifier_block *nb) in register_cpu_notifier() argument 160 static inline void unregister_cpu_notifier(struct notifier_block *nb) in unregister_cpu_notifier() argument 183 #define register_hotcpu_notifier(nb) register_cpu_notifier(nb) argument 184 #define unregister_hotcpu_notifier(nb) unregister_cpu_notifier(nb) argument 208 #define register_hotcpu_notifier(nb) ({ (void)(nb); 0; }) argument [all …]
|
D | memory.h | 87 static inline int register_memory_notifier(struct notifier_block *nb) in register_memory_notifier() argument 91 static inline void unregister_memory_notifier(struct notifier_block *nb) in unregister_memory_notifier() argument 98 static inline int register_memory_isolate_notifier(struct notifier_block *nb) in register_memory_isolate_notifier() argument 102 static inline void unregister_memory_isolate_notifier(struct notifier_block *nb) in unregister_memory_isolate_notifier() argument 110 extern int register_memory_notifier(struct notifier_block *nb); 111 extern void unregister_memory_notifier(struct notifier_block *nb); 112 extern int register_memory_isolate_notifier(struct notifier_block *nb); 113 extern void unregister_memory_isolate_notifier(struct notifier_block *nb);
|
D | notifier.h | 116 struct notifier_block *nb); 118 struct notifier_block *nb); 120 struct notifier_block *nb); 122 struct notifier_block *nb); 126 struct notifier_block *nb); 129 struct notifier_block *nb); 131 struct notifier_block *nb); 133 struct notifier_block *nb); 135 struct notifier_block *nb);
|
D | cpu_pm.h | 70 int cpu_pm_register_notifier(struct notifier_block *nb); 71 int cpu_pm_unregister_notifier(struct notifier_block *nb); 79 static inline int cpu_pm_register_notifier(struct notifier_block *nb) in cpu_pm_register_notifier() argument 84 static inline int cpu_pm_unregister_notifier(struct notifier_block *nb) in cpu_pm_unregister_notifier() argument
|
/linux-3.4.99/arch/x86/kernel/cpu/ |
D | perf_event_amd.c | 181 struct amd_nb *nb = cpuc->amd_nb; in amd_has_nb() local 183 return nb && nb->nb_id != -1; in amd_has_nb() 190 struct amd_nb *nb = cpuc->amd_nb; in amd_put_event_constraints() local 208 if (nb->owners[i] == event) { in amd_put_event_constraints() 209 cmpxchg(nb->owners+i, event, NULL); in amd_put_event_constraints() 255 struct amd_nb *nb = cpuc->amd_nb; in amd_get_event_constraints() local 280 if (k == -1 && !nb->owners[i]) in amd_get_event_constraints() 284 if (nb->owners[i] == event) in amd_get_event_constraints() 307 old = cmpxchg(nb->owners+i, NULL, event); in amd_get_event_constraints() 315 return &nb->event_constraints[i]; in amd_get_event_constraints() [all …]
|
D | intel_cacheinfo.c | 159 struct amd_northbridge *nb; member 306 static void __cpuinit amd_calc_l3_indices(struct amd_northbridge *nb) in amd_calc_l3_indices() argument 308 struct amd_l3_cache *l3 = &nb->l3_cache; in amd_calc_l3_indices() 312 pci_read_config_dword(nb->misc, 0x1C4, &val); in amd_calc_l3_indices() 338 this_leaf->nb = node_to_amd_nb(node); in amd_init_l3_cache() 339 if (this_leaf->nb && !this_leaf->nb->l3_cache.indices) in amd_init_l3_cache() 340 amd_calc_l3_indices(this_leaf->nb); in amd_init_l3_cache() 350 int amd_get_l3_disable_slot(struct amd_northbridge *nb, unsigned slot) in amd_get_l3_disable_slot() argument 354 pci_read_config_dword(nb->misc, 0x1BC + slot * 4, ®); in amd_get_l3_disable_slot() 368 if (!this_leaf->base.nb || !amd_nb_has_feature(AMD_NB_L3_INDEX_DISABLE)) in show_cache_disable() [all …]
|
/linux-3.4.99/arch/x86/kernel/ |
D | amd_nb.c | 52 struct amd_northbridge *nb; in amd_cache_northbridges() local 65 nb = kzalloc(i * sizeof(struct amd_northbridge), GFP_KERNEL); in amd_cache_northbridges() 66 if (!nb) in amd_cache_northbridges() 69 amd_northbridges.nb = nb; in amd_cache_northbridges() 171 struct amd_northbridge *nb = node_to_amd_nb(amd_get_nb_id(cpu)); in amd_set_subcaches() local 180 pci_read_config_dword(nb->link, 0x1d4, &reset); in amd_set_subcaches() 181 pci_read_config_dword(nb->misc, 0x1b8, &ban); in amd_set_subcaches() 187 pci_read_config_dword(nb->misc, 0x1b8, ®); in amd_set_subcaches() 188 pci_write_config_dword(nb->misc, 0x1b8, reg & ~0x180000); in amd_set_subcaches() 195 pci_write_config_dword(nb->link, 0x1d4, mask); in amd_set_subcaches() [all …]
|
/linux-3.4.99/arch/powerpc/kernel/ |
D | align.c | 268 unsigned int reg, unsigned int nb, in emulate_multiple() argument 282 if (unlikely((nb > 4) || !user_mode(regs))) in emulate_multiple() 289 nb = regs->xer & 127; in emulate_multiple() 290 if (nb == 0) in emulate_multiple() 300 nb = (instr >> 11) & 0x1f; in emulate_multiple() 301 if (nb == 0) in emulate_multiple() 302 nb = 32; in emulate_multiple() 304 if (nb + reg * 4 > 128) { in emulate_multiple() 305 nb0 = nb + reg * 4 - 128; in emulate_multiple() 306 nb = 128 - reg * 4; in emulate_multiple() [all …]
|
/linux-3.4.99/arch/x86/mm/ |
D | amdtopology.c | 77 int i, j, nb; in amd_numa_init() local 84 nb = find_northbridge(); in amd_numa_init() 85 if (nb < 0) in amd_numa_init() 86 return nb; in amd_numa_init() 88 pr_info("Scanning NUMA topology in Northbridge %d\n", nb); in amd_numa_init() 90 reg = read_pci_config(0, nb, 0, 0x60); in amd_numa_init() 101 base = read_pci_config(0, nb, 1, 0x40 + i*8); in amd_numa_init() 102 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init()
|
/linux-3.4.99/kernel/ |
D | notifier.c | 79 struct notifier_block *nb, *next_nb; in notifier_call_chain() local 81 nb = rcu_dereference_raw(*nl); in notifier_call_chain() 83 while (nb && nr_to_call) { in notifier_call_chain() 84 next_nb = rcu_dereference_raw(nb->next); in notifier_call_chain() 87 if (unlikely(!func_ptr_is_kernel_text(nb->notifier_call))) { in notifier_call_chain() 89 nb = next_nb; in notifier_call_chain() 93 ret = nb->notifier_call(nb, val, v); in notifier_call_chain() 100 nb = next_nb; in notifier_call_chain() 544 int register_die_notifier(struct notifier_block *nb) in register_die_notifier() argument 547 return atomic_notifier_chain_register(&die_chain, nb); in register_die_notifier() [all …]
|
/linux-3.4.99/include/acpi/ |
D | button.h | 7 extern int acpi_lid_notifier_register(struct notifier_block *nb); 8 extern int acpi_lid_notifier_unregister(struct notifier_block *nb); 11 static inline int acpi_lid_notifier_register(struct notifier_block *nb) in acpi_lid_notifier_register() argument 15 static inline int acpi_lid_notifier_unregister(struct notifier_block *nb) in acpi_lid_notifier_unregister() argument
|
/linux-3.4.99/include/net/ |
D | dcbevent.h | 28 extern int register_dcbevent_notifier(struct notifier_block *nb); 29 extern int unregister_dcbevent_notifier(struct notifier_block *nb); 33 register_dcbevent_notifier(struct notifier_block *nb) in register_dcbevent_notifier() argument 38 static inline int unregister_dcbevent_notifier(struct notifier_block *nb) in unregister_dcbevent_notifier() argument
|
/linux-3.4.99/net/dcb/ |
D | dcbevent.c | 26 int register_dcbevent_notifier(struct notifier_block *nb) in register_dcbevent_notifier() argument 28 return atomic_notifier_chain_register(&dcbevent_notif_chain, nb); in register_dcbevent_notifier() 32 int unregister_dcbevent_notifier(struct notifier_block *nb) in unregister_dcbevent_notifier() argument 34 return atomic_notifier_chain_unregister(&dcbevent_notif_chain, nb); in unregister_dcbevent_notifier()
|
/linux-3.4.99/drivers/video/ |
D | fb_notify.c | 23 int fb_register_client(struct notifier_block *nb) in fb_register_client() argument 25 return blocking_notifier_chain_register(&fb_notifier_list, nb); in fb_register_client() 33 int fb_unregister_client(struct notifier_block *nb) in fb_unregister_client() argument 35 return blocking_notifier_chain_unregister(&fb_notifier_list, nb); in fb_unregister_client()
|
/linux-3.4.99/net/core/ |
D | netevent.c | 32 int register_netevent_notifier(struct notifier_block *nb) in register_netevent_notifier() argument 36 err = atomic_notifier_chain_register(&netevent_notif_chain, nb); in register_netevent_notifier() 51 int unregister_netevent_notifier(struct notifier_block *nb) in unregister_netevent_notifier() argument 53 return atomic_notifier_chain_unregister(&netevent_notif_chain, nb); in unregister_netevent_notifier()
|
/linux-3.4.99/sound/oss/ |
D | vwsnd.c | 1873 static void pcm_copy_in(vwsnd_port_t *rport, int swidx, int hwidx, int nb) in pcm_copy_in() argument 1882 ASSERT(nb > 0 && (nb % 32) == 0); in pcm_copy_in() 1884 ASSERT(swidx >= 0 && swidx + nb <= rport->swbuf_size); in pcm_copy_in() 1885 ASSERT(hwidx >= 0 && hwidx + nb <= rport->hwbuf_size); in pcm_copy_in() 1891 char *end = src + nb; in pcm_copy_in() 1895 memcpy(dst, src, nb); in pcm_copy_in() 1898 static void pcm_copy_out(vwsnd_port_t *wport, int swidx, int hwidx, int nb) in pcm_copy_out() argument 1904 ASSERT(nb > 0 && (nb % 32) == 0); in pcm_copy_out() 1908 ASSERT(swidx >= 0 && swidx + nb <= wport->swbuf_size); in pcm_copy_out() 1909 ASSERT(hwidx >= 0 && hwidx + nb <= wport->hwbuf_size); in pcm_copy_out() [all …]
|
/linux-3.4.99/drivers/staging/tidspbridge/include/dspbridge/ |
D | ntfy.h | 89 struct notifier_block *nb; in ntfy_delete() local 92 nb = ntfy_obj->head.head; in ntfy_delete() 93 while (nb) { in ntfy_delete() 94 ne = container_of(nb, struct ntfy_event, noti_block); in ntfy_delete() 95 nb = nb->next; in ntfy_delete()
|
/linux-3.4.99/drivers/usb/core/ |
D | notify.c | 27 void usb_register_notify(struct notifier_block *nb) in usb_register_notify() argument 29 blocking_notifier_chain_register(&usb_notifier_list, nb); in usb_register_notify() 40 void usb_unregister_notify(struct notifier_block *nb) in usb_unregister_notify() argument 42 blocking_notifier_chain_unregister(&usb_notifier_list, nb); in usb_unregister_notify()
|
/linux-3.4.99/fs/jfs/ |
D | jfs_dmap.c | 108 static int blkstol2(s64 nb); 336 int nb, rc; in dbFree() local 358 for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { in dbFree() 376 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); in dbFree() 379 if ((rc = dbFreeDmap(bmp, dp, blkno, nb))) { in dbFree() 1125 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local 1171 for (rembits = nblocks; rembits > 0; rembits -= nb, dbitno += nb) { in dbAllocNext() 1176 nb = min(rembits, DBWORD - wbitno); in dbAllocNext() 1180 if (nb < DBWORD) { in dbAllocNext() 1183 mask = (ONES << (DBWORD - nb) >> wbitno); in dbAllocNext() [all …]
|
D | jfs_extent.c | 35 static s64 extRoundDown(s64 nb); 513 s64 nb, nblks, daddr, max; in extBalloc() local 526 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc() 528 nb = nblks = *nblocks; in extBalloc() 531 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc() 539 nb = min(nblks, extRoundDown(nb)); in extBalloc() 542 if (nb < nbperpage) in extBalloc() 546 *nblocks = nb; in extBalloc() 636 static s64 extRoundDown(s64 nb) in extRoundDown() argument 642 if (m & nb) in extRoundDown() [all …]
|
/linux-3.4.99/drivers/acpi/ |
D | hed.c | 42 int register_acpi_hed_notifier(struct notifier_block *nb) in register_acpi_hed_notifier() argument 44 return blocking_notifier_chain_register(&acpi_hed_notify_list, nb); in register_acpi_hed_notifier() 48 void unregister_acpi_hed_notifier(struct notifier_block *nb) in unregister_acpi_hed_notifier() argument 50 blocking_notifier_chain_unregister(&acpi_hed_notify_list, nb); in unregister_acpi_hed_notifier()
|
/linux-3.4.99/fs/xfs/ |
D | xfs_fsops.c | 136 xfs_rfsblock_t nb, nb_mod; in xfs_growfs_data_private() local 143 nb = in->newblocks; in xfs_growfs_data_private() 145 if (nb < mp->m_sb.sb_dblocks || pct < 0 || pct > 100) in xfs_growfs_data_private() 147 if ((error = xfs_sb_validate_fsb_count(&mp->m_sb, nb))) in xfs_growfs_data_private() 151 XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1), in xfs_growfs_data_private() 157 new = nb; /* use new as a temporary here */ in xfs_growfs_data_private() 162 nb = (xfs_rfsblock_t)nagcount * mp->m_sb.sb_agblocks; in xfs_growfs_data_private() 163 if (nb < mp->m_sb.sb_dblocks) in xfs_growfs_data_private() 166 new = nb - mp->m_sb.sb_dblocks; in xfs_growfs_data_private() 208 nb - in xfs_growfs_data_private() [all …]
|
/linux-3.4.99/arch/x86/include/asm/ |
D | intel_scu_ipc.h | 55 static inline void intel_scu_notifier_add(struct notifier_block *nb) in intel_scu_notifier_add() argument 57 blocking_notifier_chain_register(&intel_scu_notifier, nb); in intel_scu_notifier_add() 60 static inline void intel_scu_notifier_remove(struct notifier_block *nb) in intel_scu_notifier_remove() argument 62 blocking_notifier_chain_unregister(&intel_scu_notifier, nb); in intel_scu_notifier_remove()
|