Home
last modified time | relevance | path

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

12345678910>>...26

/linux/net/x25/
H A Dx25_link.c36 static void x25_transmit_restart_confirmation(struct x25_neigh *nb);
37 static void x25_transmit_restart_request(struct x25_neigh *nb);
42 static inline void x25_start_t20timer(struct x25_neigh *nb) in x25_start_t20timer() argument
44 mod_timer(&nb->t20timer, jiffies + nb->t20); in x25_start_t20timer()
49 struct x25_neigh *nb = timer_container_of(nb, t, t20timer); in x25_t20timer_expiry() local
51 x25_transmit_restart_request(nb); in x25_t20timer_expiry()
53 x25_start_t20timer(nb); in x25_t20timer_expiry()
56 static inline void x25_stop_t20timer(struct x25_neigh *nb) in x25_stop_t20timer() argument
58 timer_delete(&nb->t20timer); in x25_stop_t20timer()
64 void x25_link_control(struct sk_buff *skb, struct x25_neigh *nb, in x25_link_control() argument
[all …]
H A Dx25_dev.c26 static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb) in x25_receive_data() argument
43 x25_link_control(skb, nb, frametype); in x25_receive_data()
50 if ((sk = x25_find_socket(lci, nb)) != NULL) { in x25_receive_data()
69 return x25_rx_call_request(skb, nb, lci); in x25_receive_data()
76 if (x25_forward_data(lci, nb, skb)) { in x25_receive_data()
98 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()
127 if (x25_receive_data(skb, nb)) { in x25_lapb_receive_frame()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Devents.c12 struct mlx5_nb nb; member
32 {.nb.notifier_call = any_notifier, .event_type = MLX5_EVENT_TYPE_NOTIFY_ANY },
33 {.nb.notifier_call = temp_warn, .event_type = MLX5_EVENT_TYPE_TEMP_WARN_EVENT },
34 {.nb.notifier_call = port_module, .event_type = MLX5_EVENT_TYPE_PORT_MODULE_EVENT },
35 {.nb.notifier_call = pcie_core, .event_type = MLX5_EVENT_TYPE_GENERAL_EVENT },
38 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_PORT_CHANGE },
39 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_GENERAL_EVENT },
40 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_OBJECT_CHANGE },
42 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_DCT_DRAINED },
43 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_PATH_MIG },
[all …]
/linux/tools/testing/selftests/bpf/
H 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()
118 static inline __u32 xsk_ring_prod__reserve(struct xsk_ring_prod *prod, __u32 nb, __u32 *idx) in xsk_ring_prod__reserve() argument
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()
129 xsk_ring_prod__submit(struct xsk_ring_prod * prod,__u32 nb) xsk_ring_prod__submit() argument
137 xsk_ring_prod__cancel(struct xsk_ring_prod * prod,__u32 nb) xsk_ring_prod__cancel() argument
142 xsk_ring_cons__peek(struct xsk_ring_cons * cons,__u32 nb,__u32 * idx) xsk_ring_cons__peek() argument
154 xsk_ring_cons__cancel(struct xsk_ring_cons * cons,__u32 nb) xsk_ring_cons__cancel() argument
159 xsk_ring_cons__release(struct xsk_ring_cons * cons,__u32 nb) xsk_ring_cons__release() argument
[all...]
/linux/include/linux/
H 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);
254 unsigned int id, struct notifier_block *nb) in extcon_register_notifier() argument
260 unsigned int id, struct notifier_block *nb) in extcon_unregister_notifier() argument
[all …]
H 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 …]
H A Ddevfreq.h192 struct notifier_block nb; member
265 struct notifier_block *nb,
268 struct notifier_block *nb,
272 struct notifier_block *nb,
276 struct notifier_block *nb,
340 struct notifier_block nb; member
414 struct notifier_block *nb, in devfreq_register_notifier() argument
421 struct notifier_block *nb, in devfreq_unregister_notifier() argument
429 struct notifier_block *nb, in devm_devfreq_register_notifier() argument
437 struct notifier_block *nb, in devm_devfreq_unregister_notifier() argument
/linux/drivers/extcon/
H 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/
H 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/platform/x86/lenovo/
H A Dwmi-events.c46 int lwmi_events_register_notifier(struct notifier_block *nb) in lwmi_events_register_notifier() argument
48 return blocking_notifier_chain_register(&events_chain_head, nb); in lwmi_events_register_notifier()
62 int lwmi_events_unregister_notifier(struct notifier_block *nb) in lwmi_events_unregister_notifier() argument
64 return blocking_notifier_chain_unregister(&events_chain_head, nb); in lwmi_events_unregister_notifier()
80 struct notifier_block *nb = data; in devm_lwmi_events_unregister_notifier() local
82 lwmi_events_unregister_notifier(nb); in devm_lwmi_events_unregister_notifier()
98 struct notifier_block *nb) in devm_lwmi_events_register_notifier() argument
102 ret = lwmi_events_register_notifier(nb); in devm_lwmi_events_register_notifier()
106 return devm_add_action_or_reset(dev, devm_lwmi_events_unregister_notifier, nb); in devm_lwmi_events_register_notifier()
/linux/net/core/
H A Dlock_debug.c12 int netdev_debug_event(struct notifier_block *nb, unsigned long event, in netdev_debug_event() argument
80 struct notifier_block *nb; in rtnl_net_debug_net_init() local
82 nb = net_generic(net, rtnl_net_debug_net_id); in rtnl_net_debug_net_init()
83 nb->notifier_call = netdev_debug_event; in rtnl_net_debug_net_init()
85 return register_netdevice_notifier_net(net, nb); in rtnl_net_debug_net_init()
90 struct notifier_block *nb; in rtnl_net_debug_net_exit() local
92 nb = net_generic(net, rtnl_net_debug_net_id); in rtnl_net_debug_net_exit()
93 unregister_netdevice_notifier_net(net, nb); in rtnl_net_debug_net_exit()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H 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/lib/kunit/
H 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/drivers/input/misc/
H 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/fs/xfs/
H A Dxfs_fsops.c52 xfs_rfsblock_t nb = mp->m_sb.sb_dblocks + delta; in xfs_resizefs_init_new_ags() local
63 id->agsize = nb - (id->agno * in xfs_resizefs_init_new_ags()
99 xfs_rfsblock_t nb, nb_div, nb_mod; in xfs_growfs_data_private() local
106 nb = in->newblocks; in xfs_growfs_data_private()
107 error = xfs_sb_validate_fsb_count(&mp->m_sb, nb); in xfs_growfs_data_private()
111 if (nb > mp->m_sb.sb_dblocks) { in xfs_growfs_data_private()
113 XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1), in xfs_growfs_data_private()
121 error = xfs_growfs_check_rtgeom(mp, nb, mp->m_sb.sb_rblocks, in xfs_growfs_data_private()
126 nb_div = nb; in xfs_growfs_data_private()
131 nb = nb_div * mp->m_sb.sb_agblocks; in xfs_growfs_data_private()
[all …]
/linux/kernel/
H A Dnotifier.c70 struct notifier_block *nb, *next_nb; in notifier_call_chain() local
72 nb = rcu_dereference_raw(*nl); in notifier_call_chain()
74 while (nb && nr_to_call) { in notifier_call_chain()
75 next_nb = rcu_dereference_raw(nb->next); in notifier_call_chain()
78 if (unlikely(!func_ptr_is_kernel_text(nb->notifier_call))) { in notifier_call_chain()
80 nb = next_nb; in notifier_call_chain()
84 trace_notifier_run((void *)nb->notifier_call); in notifier_call_chain()
85 ret = nb->notifier_call(nb, val, v); in notifier_call_chain()
92 nb = next_nb; in notifier_call_chain()
592 int register_die_notifier(struct notifier_block *nb) in register_die_notifier() argument
[all …]
/linux/fs/jfs/
H A Djfs_extent.c19 static s64 extRoundDown(s64 nb);
313 s64 nb, nblks, daddr, max; in extBalloc() local
331 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc()
333 nb = nblks = *nblocks; in extBalloc()
336 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
344 nb = min(nblks, extRoundDown(nb)); in extBalloc()
347 if (nb < nbperpage) in extBalloc()
351 *nblocks = nb; in extBalloc()
383 static s64 extRoundDown(s64 nb) in extRoundDown() argument
389 if (m & nb) in extRoundDown()
[all …]
/linux/arch/powerpc/xmon/
H 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/pci/pwrctrl/
H A Dcore.c14 static int pci_pwrctrl_notify(struct notifier_block *nb, unsigned long action, in pci_pwrctrl_notify() argument
17 struct pci_pwrctrl *pwrctrl = container_of(nb, struct pci_pwrctrl, nb); in pci_pwrctrl_notify()
85 pwrctrl->nb.notifier_call = pci_pwrctrl_notify; in pci_pwrctrl_device_set_ready()
86 ret = bus_register_notifier(&pci_bus_type, &pwrctrl->nb); in pci_pwrctrl_device_set_ready()
112 bus_unregister_notifier(&pci_bus_type, &pwrctrl->nb); in pci_pwrctrl_device_unset_ready()
/linux/fs/vboxsf/
H A Dutils.c370 int path_len, out_len, nb; in vboxsf_path_from_dentry() local
397 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry()
398 if (nb < 0) { in vboxsf_path_from_dentry()
403 path += nb; in vboxsf_path_from_dentry()
404 path_len -= nb; in vboxsf_path_from_dentry()
406 nb = utf32_to_utf8(uni, out, out_len); in vboxsf_path_from_dentry()
407 if (nb < 0) { in vboxsf_path_from_dentry()
412 out += nb; in vboxsf_path_from_dentry()
413 out_len -= nb; in vboxsf_path_from_dentry()
454 int nb; in vboxsf_nlscpy() local
[all …]
/linux/net/bridge/
H A Dbr_switchdev.c303 br_switchdev_fdb_replay_one(struct net_bridge *br, struct notifier_block *nb, in br_switchdev_fdb_replay_one() argument
312 err = nb->notifier_call(nb, action, &item); in br_switchdev_fdb_replay_one()
318 bool adding, struct notifier_block *nb) in br_switchdev_fdb_replay() argument
325 if (!nb) in br_switchdev_fdb_replay()
341 err = br_switchdev_fdb_replay_one(br, nb, fdb, action, ctx); in br_switchdev_fdb_replay()
353 struct notifier_block *nb, in br_switchdev_vlan_attr_replay() argument
382 err = nb->notifier_call(nb, SWITCHDEV_PORT_ATTR_SET, in br_switchdev_vlan_attr_replay()
394 br_switchdev_vlan_replay_one(struct notifier_block *nb, in br_switchdev_vlan_replay_one() argument
410 err = nb->notifier_call(nb, action, &obj_info); in br_switchdev_vlan_replay_one()
414 static int br_switchdev_vlan_replay_group(struct notifier_block *nb, in br_switchdev_vlan_replay_group() argument
[all …]
/linux/drivers/crypto/ccree/
H 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/iio/imu/inv_mpu6050/
H A Dinv_mpu_ring.c55 size_t i, nb; in inv_mpu6050_read_fifo() local
91 nb = 3 * bytes_per_datum; in inv_mpu6050_read_fifo()
92 if (fifo_count >= st->hw->fifo_size - nb) { in inv_mpu6050_read_fifo()
98 nb = fifo_count / bytes_per_datum; in inv_mpu6050_read_fifo()
99 fifo_count = nb * bytes_per_datum; in inv_mpu6050_read_fifo()
100 if (nb == 0) in inv_mpu6050_read_fifo()
111 for (i = 0; i < nb; ++i) { in inv_mpu6050_read_fifo()
/linux/drivers/platform/x86/uniwill/
H A Duniwill-wmi.c32 struct notifier_block *nb = data; in devm_uniwill_wmi_unregister_notifier() local
34 blocking_notifier_chain_unregister(&uniwill_wmi_chain_head, nb); in devm_uniwill_wmi_unregister_notifier()
37 int devm_uniwill_wmi_register_notifier(struct device *dev, struct notifier_block *nb) in devm_uniwill_wmi_register_notifier() argument
41 ret = blocking_notifier_chain_register(&uniwill_wmi_chain_head, nb); in devm_uniwill_wmi_register_notifier()
45 return devm_add_action_or_reset(dev, devm_uniwill_wmi_unregister_notifier, nb); in devm_uniwill_wmi_register_notifier()
/linux/include/linux/mlx5/
H A Deq.h26 struct notifier_block *nb);
28 struct notifier_block *nb);
51 struct notifier_block nb; member
56 (container_of(container_of(ptr, struct mlx5_nb, nb), type, member))
59 (name)->nb.notifier_call = handler; \

12345678910>>...26