Home
last modified time | relevance | path

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

12345678910>>...33

/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
141 static int any_notifier(struct notifier_block *nb, in any_notifier() argument
144 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, struct mlx5_event_nb, nb); in any_notifier()
156 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, struct mlx5_event_nb, nb); in temp_warn()
218 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, struct mlx5_event_nb, nb); in port_module()
307 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, in pcie_core()
309 nb); in pcie_core()
332 struct mlx5_event_nb *event_nb = mlx5_nb_cof(nb, struct mlx5_event_nb, nb); in forward_event()
375 events->notifiers[i].nb = events_nbs_ref[i]; in mlx5_events_start()
377 mlx5_eq_notifier_register(dev, &events->notifiers[i].nb); in mlx5_events_start()
[all …]
/linux/include/linux/
A Dextcon.h200 struct notifier_block *nb);
202 struct notifier_block *nb);
205 struct notifier_block *nb);
208 struct notifier_block *nb);
211 struct notifier_block *nb);
213 struct notifier_block *nb);
216 struct notifier_block *nb);
219 struct notifier_block *nb);
265 struct notifier_block *nb) in devm_extcon_register_notifier() argument
281 struct notifier_block *nb) in extcon_unregister_notifier_all() argument
[all …]
A Dmemory.h117 static inline int register_memory_notifier(struct notifier_block *nb) in register_memory_notifier() argument
121 static inline void unregister_memory_notifier(struct notifier_block *nb) in unregister_memory_notifier() argument
133 #define register_hotmemory_notifier(nb) ({ (void)(nb); 0; }) argument
134 #define unregister_hotmemory_notifier(nb) ({ (void)(nb); }) argument
136 extern int register_memory_notifier(struct notifier_block *nb);
137 extern void unregister_memory_notifier(struct notifier_block *nb);
162 #define register_hotmemory_notifier(nb) register_memory_notifier(nb) argument
163 #define unregister_hotmemory_notifier(nb) unregister_memory_notifier(nb) argument
A 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 notifier_block *nb);
156 struct notifier_block *nb);
158 struct notifier_block *nb);
160 struct notifier_block *nb);
A Ddevfreq.h184 struct notifier_block nb; member
253 struct notifier_block *nb,
256 struct notifier_block *nb,
260 struct notifier_block *nb,
264 struct notifier_block *nb,
319 struct notifier_block nb; member
393 struct notifier_block *nb, in devfreq_register_notifier() argument
400 struct notifier_block *nb, in devfreq_unregister_notifier() argument
408 struct notifier_block *nb, in devm_devfreq_register_notifier() argument
416 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/tools/lib/bpf/
A 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()
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()
205 libbpf_smp_store_release(prod->producer, *prod->producer + nb); in xsk_ring_prod__submit()
210 __u32 entries = xsk_cons_nb_avail(cons, nb); in xsk_ring_cons__peek()
222 cons->cached_cons -= nb; in xsk_ring_cons__cancel()
[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/arch/x86/events/amd/
A Dcore.c358 return nb && nb->nb_id != -1; in amd_has_nb()
494 struct amd_nb *nb; in amd_alloc_nb() local
498 if (!nb) in amd_alloc_nb()
501 nb->nb_id = -1; in amd_alloc_nb()
510 return nb; in amd_alloc_nb()
533 struct amd_nb *nb; in amd_pmu_cpu_starting() local
546 if (WARN_ON_ONCE(!nb)) in amd_pmu_cpu_starting()
549 if (nb->nb_id == nb_id) { in amd_pmu_cpu_starting()
551 cpuc->amd_nb = nb; in amd_pmu_cpu_starting()
572 if (nb->nb_id == -1 || --nb->refcnt == 0) in amd_pmu_cpu_dead()
[all …]
/linux/drivers/platform/chrome/
A 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/drivers/gpu/drm/nouveau/nvkm/engine/device/
A Dacpi.c30 nvkm_acpi_ntfy(struct notifier_block *nb, unsigned long val, void *data) in nvkm_acpi_ntfy() argument
33 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/iio/imu/inv_icm42600/
A 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()
517 if (st->fifo.nb.gyro > 0) { in inv_icm42600_buffer_fifo_parse()
550 if (st->fifo.nb.total == 0) in inv_icm42600_buffer_hwfifo_flush()
556 st->fifo.nb.total, st->fifo.nb.gyro, in inv_icm42600_buffer_hwfifo_flush()
[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/kernel/
A Dnotifier.c69 struct notifier_block *nb, *next_nb; in notifier_call_chain() local
71 nb = rcu_dereference_raw(*nl); in notifier_call_chain()
73 while (nb && nr_to_call) { in notifier_call_chain()
74 next_nb = rcu_dereference_raw(nb->next); in notifier_call_chain()
79 nb = next_nb; in notifier_call_chain()
83 ret = nb->notifier_call(nb, val, v); in notifier_call_chain()
90 nb = next_nb; in notifier_call_chain()
533 int register_die_notifier(struct notifier_block *nb) in register_die_notifier() argument
535 return atomic_notifier_chain_register(&die_chain, nb); in register_die_notifier()
539 int unregister_die_notifier(struct notifier_block *nb) in unregister_die_notifier() argument
[all …]
/linux/arch/x86/mm/
A 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/drivers/iio/imu/inv_mpu6050/
A 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/fs/vboxsf/
A Dutils.c396 if (nb < 0) { in vboxsf_path_from_dentry()
401 path += nb; in vboxsf_path_from_dentry()
405 if (nb < 0) { in vboxsf_path_from_dentry()
410 out += nb; in vboxsf_path_from_dentry()
454 int nb; in vboxsf_nlscpy() local
458 if (nb < 0) in vboxsf_nlscpy()
461 in += nb; in vboxsf_nlscpy()
465 if (nb < 0) in vboxsf_nlscpy()
466 return nb; in vboxsf_nlscpy()
468 out += nb; in vboxsf_nlscpy()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
A 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/arch/x86/kernel/cpu/
A Dcacheinfo.c163 struct amd_northbridge *nb; member
308 struct amd_l3_cache *l3 = &nb->l3_cache; in amd_calc_l3_indices()
386 if (!nb->l3_cache.subcaches[i]) in amd_l3_disable_index()
419 ret = amd_get_l3_disable_slot(nb, slot); in amd_set_l3_disable_slot()
423 if (index > nb->l3_cache.indices) in amd_set_l3_disable_slot()
566 if (this_leaf->level < 3 || !nb) in cache_get_priv_group()
569 if (nb && nb->l3_cache.indices) in cache_get_priv_group()
584 this_leaf->nb = node_to_amd_nb(node); in amd_init_l3_cache()
585 if (this_leaf->nb && !this_leaf->nb->l3_cache.indices) in amd_init_l3_cache()
586 amd_calc_l3_indices(this_leaf->nb); in amd_init_l3_cache()
[all …]
/linux/drivers/devfreq/
A Dgovernor_passive.c102 static int devfreq_passive_notifier_call(struct notifier_block *nb, in devfreq_passive_notifier_call() argument
106 = container_of(nb, struct devfreq_passive_data, nb); in devfreq_passive_notifier_call()
140 struct notifier_block *nb = &p_data->nb; in devfreq_passive_event_handler() local
151 nb->notifier_call = devfreq_passive_notifier_call; in devfreq_passive_event_handler()
152 ret = devfreq_register_notifier(parent, nb, in devfreq_passive_event_handler()
156 WARN_ON(devfreq_unregister_notifier(parent, nb, in devfreq_passive_event_handler()
/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/arch/x86/kernel/
A Damd_nb.c239 struct amd_northbridge *nb; in amd_cache_northbridges() local
279 if (!nb) in amd_cache_northbridges()
282 amd_northbridges.nb = nb; in amd_cache_northbridges()
418 pci_read_config_dword(nb->link, 0x1d4, &reset); in amd_set_subcaches()
419 pci_read_config_dword(nb->misc, 0x1b8, &ban); in amd_set_subcaches()
425 pci_read_config_dword(nb->misc, 0x1b8, &reg); in amd_set_subcaches()
426 pci_write_config_dword(nb->misc, 0x1b8, reg & ~0x180000); in amd_set_subcaches()
433 pci_write_config_dword(nb->link, 0x1d4, mask); in amd_set_subcaches()
436 pci_read_config_dword(nb->link, 0x1d4, &reg); in amd_set_subcaches()
438 pci_read_config_dword(nb->misc, 0x1b8, &reg); in amd_set_subcaches()
[all …]

Completed in 40 milliseconds

12345678910>>...33