Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 25 of 912) sorted by relevance

12345678910>>...37

/linux/net/x25/
A Dx25_link.c44 mod_timer(&nb->t20timer, jiffies + nb->t20); in x25_start_t20timer()
49 struct x25_neigh *nb = from_timer(nb, t, t20timer); in x25_t20timer_expiry() local
71 switch (nb->state) { in x25_link_control()
93 switch (nb->state) { in x25_link_control()
265 struct x25_neigh *nb = kmalloc(sizeof(*nb), GFP_ATOMIC); in x25_link_device_up() local
267 if (!nb) in x25_link_device_up()
274 nb->dev = dev; in x25_link_device_up()
276 nb->extended = 0; in x25_link_device_up()
339 use = nb; in x25_get_neigh()
393 x25_neigh_put(nb); in x25_subscr_ioctl()
[all …]
A Dx25_dev.c98 struct x25_neigh *nb; in x25_lapb_receive_frame() local
112 nb = x25_get_neigh(dev); in x25_lapb_receive_frame()
113 if (!nb) { in x25_lapb_receive_frame()
119 x25_neigh_put(nb); in x25_lapb_receive_frame()
128 x25_neigh_put(nb); in x25_lapb_receive_frame()
141 x25_neigh_put(nb); in x25_lapb_receive_frame()
153 switch (nb->dev->type) { in x25_establish_link()
168 skb->dev = nb->dev; in x25_establish_link()
191 skb->dev = nb->dev; in x25_terminate_link()
201 switch (nb->dev->type) { in x25_send_frame()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Devents.c11 struct mlx5_nb nb; member
144 static int any_notifier(struct notifier_block *nb, in any_notifier() argument
147 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, struct mlx5_event_nb, nb); in any_notifier()
159 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, struct mlx5_event_nb, nb); in temp_warn()
221 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, struct mlx5_event_nb, nb); in port_module()
310 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, in pcie_core()
312 nb); in pcie_core()
335 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, struct mlx5_event_nb, nb); in forward_event()
378 events->notifiers[i].nb = events_nbs_ref[i]; in mlx5_events_start()
380 mlx5_eq_notifier_register(dev, &events->notifiers[i].nb); in mlx5_events_start()
[all …]
/linux/tools/testing/selftests/bpf/
A Dxsk.h86 static inline __u32 xsk_prod_nb_free(struct xsk_ring_prod *r, __u32 nb) in xsk_prod_nb_free() argument
90 if (free_entries >= nb) in xsk_prod_nb_free()
106 static inline __u32 xsk_cons_nb_avail(struct xsk_ring_cons *r, __u32 nb) in xsk_cons_nb_avail() argument
115 return (entries > nb) ? nb : entries; in xsk_cons_nb_avail()
120 if (xsk_prod_nb_free(prod, nb) < nb) in xsk_ring_prod__reserve()
124 prod->cached_prod += nb; in xsk_ring_prod__reserve()
126 return nb; in xsk_ring_prod__reserve()
134 __atomic_store_n(prod->producer, *prod->producer + nb, __ATOMIC_RELEASE); in xsk_ring_prod__submit()
139 prod->cached_prod -= nb; in xsk_ring_prod__cancel()
144 __u32 entries = xsk_cons_nb_avail(cons, nb); in xsk_ring_cons__peek()
[all …]
/linux/include/linux/
A Dextcon.h202 struct notifier_block *nb);
204 struct notifier_block *nb);
207 struct notifier_block *nb);
210 struct notifier_block *nb);
213 struct notifier_block *nb);
215 struct notifier_block *nb);
218 struct notifier_block *nb);
221 struct notifier_block *nb);
267 struct notifier_block *nb) in devm_extcon_register_notifier() argument
274 struct notifier_block *nb) { } in devm_extcon_unregister_notifier() argument
[all …]
A Dnotifier.h51 typedef int (*notifier_fn_t)(struct notifier_block *nb,
147 struct notifier_block *nb);
149 struct notifier_block *nb);
151 struct notifier_block *nb);
153 struct notifier_block *nb);
156 struct atomic_notifier_head *nh, struct notifier_block *nb);
158 struct blocking_notifier_head *nh, struct notifier_block *nb);
161 struct notifier_block *nb);
163 struct notifier_block *nb);
165 struct notifier_block *nb);
[all …]
A Ddevfreq.h188 struct notifier_block nb; member
261 struct notifier_block *nb,
264 struct notifier_block *nb,
268 struct notifier_block *nb,
272 struct notifier_block *nb,
336 struct notifier_block nb; member
410 struct notifier_block *nb, in devfreq_register_notifier() argument
417 struct notifier_block *nb, in devfreq_unregister_notifier() argument
425 struct notifier_block *nb, in devm_devfreq_register_notifier() argument
433 struct notifier_block *nb, in devm_devfreq_unregister_notifier() argument
/linux/net/core/
A Dfib_notifier.c18 int call_fib_notifier(struct notifier_block *nb, in call_fib_notifier() argument
24 err = nb->notifier_call(nb, event_type, info); in call_fib_notifier()
60 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() argument
71 err = ops->fib_dump(net, nb, extack); in fib_net_dump()
84 void (*cb)(struct notifier_block *nb), in fib_dump_is_consistent() argument
89 atomic_notifier_chain_register(&fn_net->fib_chain, nb); in fib_dump_is_consistent()
92 atomic_notifier_chain_unregister(&fn_net->fib_chain, nb); in fib_dump_is_consistent()
94 cb(nb); in fib_dump_is_consistent()
100 void (*cb)(struct notifier_block *nb), in register_fib_notifier() argument
109 err = fib_net_dump(net, nb, extack); in register_fib_notifier()
[all …]
/linux/drivers/extcon/
A Ddevres.c35 struct notifier_block *nb; member
42 extcon_unregister_notifier(this->edev, this->id, this->nb); in devm_extcon_dev_notifier_unreg()
49 extcon_unregister_notifier_all(this->edev, this->nb); in devm_extcon_dev_notifier_all_unreg()
173 unsigned int id, struct notifier_block *nb) in devm_extcon_register_notifier() argument
183 ret = extcon_register_notifier(edev, id, nb); in devm_extcon_register_notifier()
191 ptr->nb = nb; in devm_extcon_register_notifier()
208 struct notifier_block *nb) in devm_extcon_unregister_notifier() argument
229 struct notifier_block *nb) in devm_extcon_register_notifier_all() argument
239 ret = extcon_register_notifier_all(edev, nb); in devm_extcon_register_notifier_all()
246 ptr->nb = nb; in devm_extcon_register_notifier_all()
[all …]
/linux/drivers/vfio/pci/pds/
A Dpci_drv.c46 static int pds_vfio_pci_notify_handler(struct notifier_block *nb, in pds_vfio_pci_notify_handler() argument
50 container_of(nb, struct pds_vfio_pci_device, nb); in pds_vfio_pci_notify_handler()
82 struct notifier_block *nb = &pds_vfio->nb; in pds_vfio_pci_register_event_handler() local
85 if (!nb->notifier_call) { in pds_vfio_pci_register_event_handler()
86 nb->notifier_call = pds_vfio_pci_notify_handler; in pds_vfio_pci_register_event_handler()
87 err = pdsc_register_notify(nb); in pds_vfio_pci_register_event_handler()
89 nb->notifier_call = NULL; in pds_vfio_pci_register_event_handler()
104 if (pds_vfio->nb.notifier_call) { in pds_vfio_pci_unregister_event_handler()
105 pdsc_unregister_notify(&pds_vfio->nb); in pds_vfio_pci_unregister_event_handler()
106 pds_vfio->nb.notifier_call = NULL; in pds_vfio_pci_unregister_event_handler()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
A Dacpi.c31 nvkm_acpi_ntfy(struct notifier_block *nb, unsigned long val, void *data) in nvkm_acpi_ntfy() argument
33 struct nvkm_device *device = container_of(nb, typeof(*device), acpi.nb); in nvkm_acpi_ntfy()
47 unregister_acpi_notifier(&device->acpi.nb); in nvkm_acpi_fini()
55 device->acpi.nb.notifier_call = nvkm_acpi_ntfy; in nvkm_acpi_init()
56 register_acpi_notifier(&device->acpi.nb); in nvkm_acpi_init()
/linux/drivers/platform/chrome/
A Dcros_usbpd_notify.c24 struct notifier_block nb; member
37 int cros_usbpd_register_notify(struct notifier_block *nb) in cros_usbpd_register_notify() argument
40 nb); in cros_usbpd_register_notify()
51 void cros_usbpd_unregister_notify(struct notifier_block *nb) in cros_usbpd_unregister_notify() argument
53 blocking_notifier_chain_unregister(&cros_usbpd_notifier_list, nb); in cros_usbpd_unregister_notify()
164 static int cros_usbpd_notify_plat(struct notifier_block *nb, in cros_usbpd_notify_plat() argument
168 struct cros_usbpd_notify_data *pdnotify = container_of(nb, in cros_usbpd_notify_plat()
169 struct cros_usbpd_notify_data, nb); in cros_usbpd_notify_plat()
197 pdnotify->nb.notifier_call = cros_usbpd_notify_plat; in cros_usbpd_notify_probe_plat()
202 &pdnotify->nb); in cros_usbpd_notify_probe_plat()
[all …]
/linux/drivers/input/misc/
A Drave-sp-pwrbutton.c19 struct notifier_block nb; member
22 static int rave_sp_power_button_event(struct notifier_block *nb, in rave_sp_power_button_event() argument
26 container_of(nb, struct rave_sp_power_button, nb); in rave_sp_power_button_event()
65 pb->nb.notifier_call = rave_sp_power_button_event; in rave_sp_pwrbutton_probe()
66 pb->nb.priority = 128; in rave_sp_pwrbutton_probe()
68 error = devm_rave_sp_register_event_notifier(dev, &pb->nb); in rave_sp_pwrbutton_probe()
/linux/lib/kunit/
A Dplatform.c136 struct notifier_block nb; member
139 static int kunit_platform_device_probe_notify(struct notifier_block *nb, in kunit_platform_device_probe_notify() argument
145 knb = container_of(nb, struct kunit_platform_device_probe_nb, nb); in kunit_platform_device_probe_notify()
154 static void kunit_platform_device_probe_nb_remove(void *nb) in kunit_platform_device_probe_nb_remove() argument
156 bus_unregister_notifier(&platform_bus_type, nb); in kunit_platform_device_probe_nb_remove()
215 knb->nb.notifier_call = kunit_platform_device_probe_notify; in kunit_platform_device_prepare_wait_for_probe()
228 bus_register_notifier(&platform_bus_type, &knb->nb); in kunit_platform_device_prepare_wait_for_probe()
231 return kunit_add_action_or_reset(test, kunit_platform_device_probe_nb_remove, &knb->nb); in kunit_platform_device_prepare_wait_for_probe()
/linux/arch/x86/mm/
A Damdtopology.c62 int i, j, nb; in amd_numa_init() local
67 nb = find_northbridge(); in amd_numa_init()
68 if (nb < 0) in amd_numa_init()
69 return nb; in amd_numa_init()
71 pr_info("Scanning NUMA topology in Northbridge %d\n", nb); in amd_numa_init()
73 reg = read_pci_config(0, nb, 0, 0x60); in amd_numa_init()
84 base = read_pci_config(0, nb, 1, 0x40 + i*8); in amd_numa_init()
85 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init()
/linux/drivers/devfreq/
A Dgovernor_passive.c201 static int cpufreq_passive_notifier_call(struct notifier_block *nb, in cpufreq_passive_notifier_call() argument
205 container_of(nb, struct devfreq_passive_data, nb); in cpufreq_passive_notifier_call()
240 if (p_data->nb.notifier_call) { in cpufreq_passive_unregister_notifier()
241 ret = cpufreq_unregister_notifier(&p_data->nb, in cpufreq_passive_unregister_notifier()
267 p_data->nb.notifier_call = cpufreq_passive_notifier_call; in cpufreq_passive_register_notifier()
271 p_data->nb.notifier_call = NULL; in cpufreq_passive_register_notifier()
337 static int devfreq_passive_notifier_call(struct notifier_block *nb, in devfreq_passive_notifier_call() argument
341 = container_of(nb, struct devfreq_passive_data, nb); in devfreq_passive_notifier_call()
374 struct notifier_block *nb = &p_data->nb; in devfreq_passive_unregister_notifier() local
384 struct notifier_block *nb = &p_data->nb; in devfreq_passive_register_notifier() local
[all …]
/linux/fs/xfs/
A Dxfs_fsops.c59 id->agsize = nb - (id->agno * in xfs_resizefs_init_new_ags()
95 xfs_rfsblock_t nb, nb_div, nb_mod; in xfs_growfs_data_private() local
102 nb = in->newblocks; in xfs_growfs_data_private()
107 if (nb > mp->m_sb.sb_dblocks) { in xfs_growfs_data_private()
116 nb_div = nb; in xfs_growfs_data_private()
121 nb = nb_div * mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
128 delta = nb - mp->m_sb.sb_dblocks; in xfs_growfs_data_private()
241 xfs_extlen_t nb; in xfs_growfs_log_private() local
243 nb = in->newblocks; in xfs_growfs_log_private()
244 if (nb < XFS_MIN_LOG_BLOCKS || nb < XFS_B_TO_FSB(mp, XFS_MIN_LOG_BYTES)) in xfs_growfs_log_private()
[all …]
/linux/fs/jfs/
A Djfs_extent.c19 static s64 extRoundDown(s64 nb);
303 s64 nb, nblks, daddr, max; in extBalloc() local
321 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc()
323 nb = nblks = *nblocks; in extBalloc()
326 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
334 nb = min(nblks, extRoundDown(nb)); in extBalloc()
337 if (nb < nbperpage) in extBalloc()
341 *nblocks = nb; in extBalloc()
373 static s64 extRoundDown(s64 nb) in extRoundDown() argument
379 if (m & nb) in extRoundDown()
[all …]
/linux/kernel/
A Dnotifier.c78 struct notifier_block *nb, *next_nb; in notifier_call_chain() local
80 nb = rcu_dereference_raw(*nl); in notifier_call_chain()
82 while (nb && nr_to_call) { in notifier_call_chain()
83 next_nb = rcu_dereference_raw(nb->next); in notifier_call_chain()
88 nb = next_nb; in notifier_call_chain()
92 trace_notifier_run((void *)nb->notifier_call); in notifier_call_chain()
93 ret = nb->notifier_call(nb, val, v); in notifier_call_chain()
100 nb = next_nb; in notifier_call_chain()
600 int register_die_notifier(struct notifier_block *nb) in register_die_notifier() argument
602 return atomic_notifier_chain_register(&die_chain, nb); in register_die_notifier()
[all …]
A Dreboot.c52 struct notifier_block nb; member
145 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier()
147 *rcnb = nb; in devm_register_reboot_notifier()
335 handler = container_of(nb, struct sys_off_handler, nb); in sys_off_notify()
440 handler->nb.priority = priority; in register_sys_off_handler()
448 &handler->nb); in register_sys_off_handler()
451 &handler->nb); in register_sys_off_handler()
455 &handler->nb); in register_sys_off_handler()
458 &handler->nb); in register_sys_off_handler()
485 &handler->nb); in unregister_sys_off_handler()
[all …]
/linux/arch/powerpc/xmon/
A Dnonstdio.c38 static int xmon_write(const char *ptr, int nb) in xmon_write() argument
44 if (nb <= 0) in xmon_write()
48 return nb; in xmon_write()
75 return nb; in xmon_write()
80 return rv + udbg_write(p, nb - (p - ptr)); in xmon_write()
147 char *xmon_gets(char *str, int nb) in xmon_gets() argument
152 for (p = str; p < str + nb - 1; ) { in xmon_gets()
/linux/drivers/crypto/ccree/
A Dcc_fips.c15 struct notifier_block nb; member
53 static int cc_ree_fips_failure(struct notifier_block *nb, unsigned long unused1, in cc_ree_fips_failure() argument
57 container_of(nb, struct cc_fips_handle, nb); in cc_ree_fips_failure()
74 atomic_notifier_chain_unregister(&fips_fail_notif_chain, &fips_h->nb); in cc_fips_fini()
148 fips_h->nb.notifier_call = cc_ree_fips_failure; in cc_fips_init()
149 atomic_notifier_chain_register(&fips_fail_notif_chain, &fips_h->nb); in cc_fips_init()
/linux/drivers/pci/pwrctl/
A Dcore.c14 static int pci_pwrctl_notify(struct notifier_block *nb, unsigned long action, in pci_pwrctl_notify() argument
17 struct pci_pwrctl *pwrctl = container_of(nb, struct pci_pwrctl, nb); in pci_pwrctl_notify()
94 pwrctl->nb.notifier_call = pci_pwrctl_notify; in pci_pwrctl_device_set_ready()
95 ret = bus_register_notifier(&pci_bus_type, &pwrctl->nb); in pci_pwrctl_device_set_ready()
119 bus_unregister_notifier(&pci_bus_type, &pwrctl->nb); in pci_pwrctl_device_unset_ready()
/linux/arch/x86/include/asm/
A Diosf_mbi.h168 int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb);
175 int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb);
187 struct notifier_block *nb);
226 int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb) in iosf_mbi_register_pmic_bus_access_notifier() argument
232 int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb) in iosf_mbi_unregister_pmic_bus_access_notifier() argument
238 iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb) in iosf_mbi_unregister_pmic_bus_access_notifier_unlocked() argument
/linux/include/net/
A Dfib_notifier.h32 int (*fib_dump)(struct net *net, struct notifier_block *nb,
38 int call_fib_notifier(struct notifier_block *nb,
43 int register_fib_notifier(struct net *net, struct notifier_block *nb,
44 void (*cb)(struct notifier_block *nb),
46 int unregister_fib_notifier(struct net *net, struct notifier_block *nb);

Completed in 54 milliseconds

12345678910>>...37