Home
last modified time | relevance | path

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

12345678910>>...34

/linux-6.1.9/net/x25/
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 = from_timer(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 del_timer(&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 …]
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-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Devents.c11 struct mlx5_nb nb; member
31 {.nb.notifier_call = any_notifier, .event_type = MLX5_EVENT_TYPE_NOTIFY_ANY },
32 {.nb.notifier_call = temp_warn, .event_type = MLX5_EVENT_TYPE_TEMP_WARN_EVENT },
33 {.nb.notifier_call = port_module, .event_type = MLX5_EVENT_TYPE_PORT_MODULE_EVENT },
34 {.nb.notifier_call = pcie_core, .event_type = MLX5_EVENT_TYPE_GENERAL_EVENT },
37 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_PORT_CHANGE },
38 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_GENERAL_EVENT },
39 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_OBJECT_CHANGE },
41 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_DCT_DRAINED },
42 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_PATH_MIG },
[all …]
/linux-6.1.9/include/linux/
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 …]
Dmemory.h124 static inline int register_memory_notifier(struct notifier_block *nb) in register_memory_notifier() argument
128 static inline void unregister_memory_notifier(struct notifier_block *nb) in unregister_memory_notifier() argument
140 #define register_hotmemory_notifier(nb) ({ (void)(nb); 0; }) argument
141 #define unregister_hotmemory_notifier(nb) ({ (void)(nb); }) argument
143 extern int register_memory_notifier(struct notifier_block *nb);
144 extern void unregister_memory_notifier(struct notifier_block *nb);
169 #define register_hotmemory_notifier(nb) register_memory_notifier(nb) argument
170 #define unregister_hotmemory_notifier(nb) unregister_memory_notifier(nb) argument
Dnotifier.h51 typedef int (*notifier_fn_t)(struct notifier_block *nb,
145 struct notifier_block *nb);
147 struct notifier_block *nb);
149 struct notifier_block *nb);
151 struct notifier_block *nb);
154 struct atomic_notifier_head *nh, struct notifier_block *nb);
156 struct blocking_notifier_head *nh, struct notifier_block *nb);
159 struct notifier_block *nb);
161 struct notifier_block *nb);
163 struct notifier_block *nb);
[all …]
Ddevfreq.h187 struct notifier_block nb; member
260 struct notifier_block *nb,
263 struct notifier_block *nb,
267 struct notifier_block *nb,
271 struct notifier_block *nb,
337 struct notifier_block nb; member
412 struct notifier_block *nb, in devfreq_register_notifier() argument
419 struct notifier_block *nb, in devfreq_unregister_notifier() argument
427 struct notifier_block *nb, in devm_devfreq_register_notifier() argument
435 struct notifier_block *nb, in devm_devfreq_unregister_notifier() argument
/linux-6.1.9/net/core/
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()
83 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() argument
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()
99 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier() argument
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/
Dxsk.h157 static inline __u32 xsk_prod_nb_free(struct xsk_ring_prod *r, __u32 nb) in xsk_prod_nb_free() argument
161 if (free_entries >= nb) in xsk_prod_nb_free()
177 static inline __u32 xsk_cons_nb_avail(struct xsk_ring_cons *r, __u32 nb) in xsk_cons_nb_avail() argument
186 return (entries > nb) ? nb : entries; in xsk_cons_nb_avail()
189 static inline __u32 xsk_ring_prod__reserve(struct xsk_ring_prod *prod, __u32 nb, __u32 *idx) in xsk_ring_prod__reserve() argument
191 if (xsk_prod_nb_free(prod, nb) < nb) in xsk_ring_prod__reserve()
195 prod->cached_prod += nb; in xsk_ring_prod__reserve()
197 return nb; in xsk_ring_prod__reserve()
200 static inline void xsk_ring_prod__submit(struct xsk_ring_prod *prod, __u32 nb) in xsk_ring_prod__submit() argument
205 libbpf_smp_store_release(prod->producer, *prod->producer + nb); in xsk_ring_prod__submit()
[all …]
/linux-6.1.9/drivers/extcon/
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-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/device/
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-6.1.9/drivers/platform/chrome/
Dcros_usbpd_notify.c23 struct notifier_block nb; member
36 int cros_usbpd_register_notify(struct notifier_block *nb) in cros_usbpd_register_notify() argument
39 nb); in cros_usbpd_register_notify()
50 void cros_usbpd_unregister_notify(struct notifier_block *nb) in cros_usbpd_unregister_notify() argument
52 blocking_notifier_chain_unregister(&cros_usbpd_notifier_list, nb); in cros_usbpd_unregister_notify()
165 static int cros_usbpd_notify_plat(struct notifier_block *nb, in cros_usbpd_notify_plat() argument
169 struct cros_usbpd_notify_data *pdnotify = container_of(nb, in cros_usbpd_notify_plat()
170 struct cros_usbpd_notify_data, nb); in cros_usbpd_notify_plat()
198 pdnotify->nb.notifier_call = cros_usbpd_notify_plat; in cros_usbpd_notify_probe_plat()
203 &pdnotify->nb); in cros_usbpd_notify_probe_plat()
[all …]
/linux-6.1.9/drivers/input/misc/
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-6.1.9/drivers/devfreq/
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()
268 ret = cpufreq_register_notifier(&p_data->nb, CPUFREQ_TRANSITION_NOTIFIER); 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
[all …]
/linux-6.1.9/arch/x86/mm/
Damdtopology.c61 int i, j, nb; in amd_numa_init() local
68 nb = find_northbridge(); in amd_numa_init()
69 if (nb < 0) in amd_numa_init()
70 return nb; in amd_numa_init()
72 pr_info("Scanning NUMA topology in Northbridge %d\n", nb); in amd_numa_init()
74 reg = read_pci_config(0, nb, 0, 0x60); in amd_numa_init()
85 base = read_pci_config(0, nb, 1, 0x40 + i*8); in amd_numa_init()
86 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in amd_numa_init()
/linux-6.1.9/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_ring.c29 s64 timestamp, size_t nb) in inv_mpu6050_update_period() argument
43 } else if (nb == 1) { in inv_mpu6050_update_period()
65 interval = (nb - 1) * st->chip_period * divider; in inv_mpu6050_update_period()
126 size_t i, nb; in inv_mpu6050_read_fifo() local
172 nb = 3 * bytes_per_datum; in inv_mpu6050_read_fifo()
173 if (fifo_count >= st->hw->fifo_size - nb) { in inv_mpu6050_read_fifo()
179 nb = fifo_count / bytes_per_datum; in inv_mpu6050_read_fifo()
180 inv_mpu6050_update_period(st, pf->timestamp, nb); in inv_mpu6050_read_fifo()
181 for (i = 0; i < nb; ++i) { in inv_mpu6050_read_fifo()
/linux-6.1.9/fs/jfs/
Djfs_extent.c19 static s64 extRoundDown(s64 nb);
303 s64 nb, nblks, daddr, max; in extBalloc() local
316 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc()
318 nb = nblks = *nblocks; in extBalloc()
321 while ((rc = dbAlloc(ip, hint, nb, &daddr)) != 0) { in extBalloc()
329 nb = min(nblks, extRoundDown(nb)); in extBalloc()
332 if (nb < nbperpage) in extBalloc()
336 *nblocks = nb; in extBalloc()
368 static s64 extRoundDown(s64 nb) in extRoundDown() argument
374 if (m & nb) in extRoundDown()
[all …]
/linux-6.1.9/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_buffer.c459 st->fifo.nb.gyro = 0; in inv_icm42600_buffer_fifo_read()
460 st->fifo.nb.accel = 0; in inv_icm42600_buffer_fifo_read()
461 st->fifo.nb.total = 0; in inv_icm42600_buffer_fifo_read()
496 st->fifo.nb.gyro++; in inv_icm42600_buffer_fifo_read()
498 st->fifo.nb.accel++; in inv_icm42600_buffer_fifo_read()
499 st->fifo.nb.total++; in inv_icm42600_buffer_fifo_read()
510 if (st->fifo.nb.total == 0) in inv_icm42600_buffer_fifo_parse()
515 inv_icm42600_timestamp_interrupt(ts, st->fifo.period, st->fifo.nb.total, in inv_icm42600_buffer_fifo_parse()
516 st->fifo.nb.gyro, st->timestamp.gyro); in inv_icm42600_buffer_fifo_parse()
517 if (st->fifo.nb.gyro > 0) { in inv_icm42600_buffer_fifo_parse()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/sf/
Dvhca_event.c14 struct mlx5_nb nb; member
103 mlx5_vhca_state_change_notifier(struct notifier_block *nb, unsigned long type, void *data) in mlx5_vhca_state_change_notifier() argument
106 mlx5_nb_cof(nb, struct mlx5_vhca_state_notifier, nb); in mlx5_vhca_state_change_notifier()
146 MLX5_NB_INIT(&notifier->nb, mlx5_vhca_state_change_notifier, VHCA_STATE_CHANGE); in mlx5_vhca_event_init()
167 mlx5_eq_notifier_register(dev, &notifier->nb); in mlx5_vhca_event_start()
178 mlx5_eq_notifier_unregister(dev, &notifier->nb); in mlx5_vhca_event_stop()
181 int mlx5_vhca_event_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb) in mlx5_vhca_event_notifier_register() argument
185 return blocking_notifier_chain_register(&dev->priv.vhca_state_notifier->n_head, nb); in mlx5_vhca_event_notifier_register()
188 void mlx5_vhca_event_notifier_unregister(struct mlx5_core_dev *dev, struct notifier_block *nb) in mlx5_vhca_event_notifier_unregister() argument
190 blocking_notifier_chain_unregister(&dev->priv.vhca_state_notifier->n_head, nb); in mlx5_vhca_event_notifier_unregister()
/linux-6.1.9/kernel/
Dreboot.c52 struct notifier_block nb; member
99 int register_reboot_notifier(struct notifier_block *nb) in register_reboot_notifier() argument
101 return blocking_notifier_chain_register(&reboot_notifier_list, nb); in register_reboot_notifier()
114 int unregister_reboot_notifier(struct notifier_block *nb) in unregister_reboot_notifier() argument
116 return blocking_notifier_chain_unregister(&reboot_notifier_list, nb); in unregister_reboot_notifier()
125 int devm_register_reboot_notifier(struct device *dev, struct notifier_block *nb) in devm_register_reboot_notifier() argument
135 ret = register_reboot_notifier(nb); in devm_register_reboot_notifier()
137 *rcnb = nb; in devm_register_reboot_notifier()
191 int register_restart_handler(struct notifier_block *nb) in register_restart_handler() argument
193 return atomic_notifier_chain_register(&restart_handler_list, nb); in register_restart_handler()
[all …]
Dnotifier.c73 struct notifier_block *nb, *next_nb; in notifier_call_chain() local
75 nb = rcu_dereference_raw(*nl); in notifier_call_chain()
77 while (nb && nr_to_call) { in notifier_call_chain()
78 next_nb = rcu_dereference_raw(nb->next); in notifier_call_chain()
81 if (unlikely(!func_ptr_is_kernel_text(nb->notifier_call))) { in notifier_call_chain()
83 nb = next_nb; in notifier_call_chain()
87 ret = nb->notifier_call(nb, val, v); in notifier_call_chain()
94 nb = next_nb; in notifier_call_chain()
597 int register_die_notifier(struct notifier_block *nb) in register_die_notifier() argument
599 return atomic_notifier_chain_register(&die_chain, nb); in register_die_notifier()
[all …]
/linux-6.1.9/arch/powerpc/xmon/
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-6.1.9/net/bridge/
Dbr_switchdev.c287 br_switchdev_fdb_replay_one(struct net_bridge *br, struct notifier_block *nb, in br_switchdev_fdb_replay_one() argument
296 err = nb->notifier_call(nb, action, &item); in br_switchdev_fdb_replay_one()
302 bool adding, struct notifier_block *nb) in br_switchdev_fdb_replay() argument
309 if (!nb) in br_switchdev_fdb_replay()
325 err = br_switchdev_fdb_replay_one(br, nb, fdb, action, ctx); in br_switchdev_fdb_replay()
337 struct notifier_block *nb, in br_switchdev_vlan_attr_replay() argument
366 err = nb->notifier_call(nb, SWITCHDEV_PORT_ATTR_SET, in br_switchdev_vlan_attr_replay()
378 br_switchdev_vlan_replay_one(struct notifier_block *nb, in br_switchdev_vlan_replay_one() argument
394 err = nb->notifier_call(nb, action, &obj_info); in br_switchdev_vlan_replay_one()
398 static int br_switchdev_vlan_replay_group(struct notifier_block *nb, in br_switchdev_vlan_replay_group() argument
[all …]
/linux-6.1.9/fs/vboxsf/
Dutils.c369 int path_len, out_len, nb; in vboxsf_path_from_dentry() local
396 nb = sbi->nls->char2uni(path, path_len, &uni); in vboxsf_path_from_dentry()
397 if (nb < 0) { in vboxsf_path_from_dentry()
402 path += nb; in vboxsf_path_from_dentry()
403 path_len -= nb; in vboxsf_path_from_dentry()
405 nb = utf32_to_utf8(uni, out, out_len); in vboxsf_path_from_dentry()
406 if (nb < 0) { in vboxsf_path_from_dentry()
411 out += nb; in vboxsf_path_from_dentry()
412 out_len -= nb; in vboxsf_path_from_dentry()
455 int nb; in vboxsf_nlscpy() local
[all …]
/linux-6.1.9/drivers/crypto/ccree/
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()

12345678910>>...34