Home
last modified time | relevance | path

Searched refs:nb (Results 1 - 25 of 1605) sorted by relevance

12345678910>>...65

/kernel/linux/linux-6.6/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 = 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
64 x25_link_control(struct sk_buff *skb, struct x25_neigh *nb, unsigned short frametype) x25_link_control() argument
132 x25_transmit_restart_request(struct x25_neigh *nb) x25_transmit_restart_request() argument
159 x25_transmit_restart_confirmation(struct x25_neigh *nb) x25_transmit_restart_confirmation() argument
185 x25_transmit_clear_request(struct x25_neigh *nb, unsigned int lci, unsigned char cause) x25_transmit_clear_request() argument
212 x25_transmit_link(struct sk_buff *skb, struct x25_neigh *nb) x25_transmit_link() argument
233 x25_link_established(struct x25_neigh *nb) x25_link_established() argument
250 x25_link_terminated(struct x25_neigh *nb) x25_link_terminated() argument
265 struct x25_neigh *nb = kmalloc(sizeof(*nb), GFP_ATOMIC); x25_link_device_up() local
299 __x25_remove_neigh(struct x25_neigh *nb) __x25_remove_neigh() argument
312 struct x25_neigh *nb; x25_link_device_down() local
334 struct x25_neigh *nb, *use = NULL; x25_get_neigh() local
356 struct x25_neigh *nb; x25_subscr_ioctl() local
407 struct x25_neigh *nb; x25_link_free() local
[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()
85 x25_transmit_clear_request(nb, lci, 0x0D); 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()
148 x25_establish_link(struct x25_neigh *nb) x25_establish_link() argument
173 x25_terminate_link(struct x25_neigh *nb) x25_terminate_link() argument
195 x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) x25_send_frame() argument
[all...]
/kernel/linux/linux-5.10/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 = 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
61 x25_t20timer_pending(struct x25_neigh *nb) x25_t20timer_pending() argument
69 x25_link_control(struct sk_buff *skb, struct x25_neigh *nb, unsigned short frametype) x25_link_control() argument
112 x25_transmit_restart_request(struct x25_neigh *nb) x25_transmit_restart_request() argument
139 x25_transmit_restart_confirmation(struct x25_neigh *nb) x25_transmit_restart_confirmation() argument
165 x25_transmit_clear_request(struct x25_neigh *nb, unsigned int lci, unsigned char cause) x25_transmit_clear_request() argument
192 x25_transmit_link(struct sk_buff *skb, struct x25_neigh *nb) x25_transmit_link() argument
213 x25_link_established(struct x25_neigh *nb) x25_link_established() argument
232 x25_link_terminated(struct x25_neigh *nb) x25_link_terminated() argument
244 struct x25_neigh *nb = kmalloc(sizeof(*nb), GFP_ATOMIC); x25_link_device_up() local
278 __x25_remove_neigh(struct x25_neigh *nb) __x25_remove_neigh() argument
294 struct x25_neigh *nb; x25_link_device_down() local
316 struct x25_neigh *nb, *use = NULL; x25_get_neigh() local
341 struct x25_neigh *nb; x25_subscr_ioctl() local
392 struct x25_neigh *nb; x25_link_free() local
[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()
85 x25_transmit_clear_request(nb, lci, 0x0D); 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()
148 x25_establish_link(struct x25_neigh *nb) x25_establish_link() argument
177 x25_terminate_link(struct x25_neigh *nb) x25_terminate_link() argument
203 x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) x25_send_frame() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A 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 },
40 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_DCT_DRAINED },
41 {.nb.notifier_call = forward_event, .event_type = MLX5_EVENT_TYPE_PATH_MIG },
42 {.nb
137 any_notifier(struct notifier_block *nb, unsigned long type, void *data) any_notifier() argument
150 temp_warn(struct notifier_block *nb, unsigned long type, void *data) temp_warn() argument
212 port_module(struct notifier_block *nb, unsigned long type, void *data) port_module() argument
301 pcie_core(struct notifier_block *nb, unsigned long type, void *data) pcie_core() argument
326 forward_event(struct notifier_block *nb, unsigned long event, void *data) forward_event() argument
386 mlx5_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb) mlx5_notifier_register() argument
394 mlx5_notifier_unregister(struct mlx5_core_dev *dev, struct notifier_block *nb) mlx5_notifier_unregister() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/
H A 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
144 any_notifier(struct notifier_block *nb, unsigned long type, void *data) any_notifier() argument
157 temp_warn(struct notifier_block *nb, unsigned long type, void *data) temp_warn() argument
219 port_module(struct notifier_block *nb, unsigned long type, void *data) port_module() argument
308 pcie_core(struct notifier_block *nb, unsigned long type, void *data) pcie_core() argument
333 forward_event(struct notifier_block *nb, unsigned long event, void *data) forward_event() argument
397 mlx5_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb) mlx5_notifier_register() argument
405 mlx5_notifier_unregister(struct mlx5_core_dev *dev, struct notifier_block *nb) mlx5_notifier_unregister() argument
421 mlx5_blocking_notifier_register(struct mlx5_core_dev *dev, struct notifier_block *nb) mlx5_blocking_notifier_register() argument
429 mlx5_blocking_notifier_unregister(struct mlx5_core_dev *dev, struct notifier_block *nb) mlx5_blocking_notifier_unregister() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dextcon.h196 * extcon_register_notifier(*edev, id, *nb) : Register a notifier block
198 * extcon_register_notifier_all(*edev, *nb) : Register a notifier block
202 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);
253 extcon_register_notifier(struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) extcon_register_notifier() argument
259 extcon_unregister_notifier(struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) extcon_unregister_notifier() argument
265 devm_extcon_register_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_register_notifier() argument
272 devm_extcon_unregister_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_unregister_notifier() argument
276 extcon_register_notifier_all(struct extcon_dev *edev, struct notifier_block *nb) extcon_register_notifier_all() argument
282 extcon_unregister_notifier_all(struct extcon_dev *edev, struct notifier_block *nb) extcon_unregister_notifier_all() argument
288 devm_extcon_register_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_register_notifier_all() argument
295 devm_extcon_unregister_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_unregister_notifier_all() 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...]
/kernel/linux/linux-5.10/include/linux/
H A Dextcon.h196 * extcon_register_notifier(*edev, id, *nb) : Register a notifier block
198 * extcon_register_notifier_all(*edev, *nb) : Register a notifier block
202 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);
253 extcon_register_notifier(struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) extcon_register_notifier() argument
259 extcon_unregister_notifier(struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) extcon_unregister_notifier() argument
265 devm_extcon_register_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_register_notifier() argument
272 devm_extcon_unregister_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_unregister_notifier() argument
276 extcon_register_notifier_all(struct extcon_dev *edev, struct notifier_block *nb) extcon_register_notifier_all() argument
282 extcon_unregister_notifier_all(struct extcon_dev *edev, struct notifier_block *nb) extcon_unregister_notifier_all() argument
288 devm_extcon_register_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_register_notifier_all() argument
295 devm_extcon_unregister_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_unregister_notifier_all() argument
332 extcon_register_interest(struct extcon_specific_cable_nb *obj, const char *extcon_name, const char *cable_name, struct notifier_block *nb) extcon_register_interest() argument
[all...]
H A Dmemory.h69 static inline int register_memory_notifier(struct notifier_block *nb) in register_memory_notifier() argument
73 static inline void unregister_memory_notifier(struct notifier_block *nb) in unregister_memory_notifier() argument
81 extern int register_memory_notifier(struct notifier_block *nb);
82 extern void unregister_memory_notifier(struct notifier_block *nb);
101 #define register_hotmemory_notifier(nb) register_memory_notifier(nb)
102 #define unregister_hotmemory_notifier(nb) unregister_memory_notifier(nb)
106 #define register_hotmemory_notifier(nb) ({ (void)(nb);
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/net/core/
H 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()
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()
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 register_fib_notifier(struct net *net, struct notifier_block *nb, void (*cb)(struct notifier_block *nb), struct netlink_ext_ack *extack) register_fib_notifier() argument
121 unregister_fib_notifier(struct net *net, struct notifier_block *nb) unregister_fib_notifier() argument
[all...]
/kernel/linux/linux-6.6/net/core/
H 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()
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()
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 register_fib_notifier(struct net *net, struct notifier_block *nb, void (*cb)(struct notifier_block *nb), struct netlink_ext_ack *extack) register_fib_notifier() argument
121 unregister_fib_notifier(struct net *net, struct notifier_block *nb) unregister_fib_notifier() argument
[all...]
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dxsk.h85 static inline __u32 xsk_prod_nb_free(struct xsk_ring_prod *r, __u32 nb) in xsk_prod_nb_free() argument
89 if (free_entries >= nb) in xsk_prod_nb_free()
104 static inline __u32 xsk_cons_nb_avail(struct xsk_ring_cons *r, __u32 nb) in xsk_cons_nb_avail() argument
113 return (entries > nb) ? nb : entries; in xsk_cons_nb_avail()
117 size_t nb, __u32 *idx) in xsk_ring_prod__reserve()
119 if (xsk_prod_nb_free(prod, nb) < nb) in xsk_ring_prod__reserve()
123 prod->cached_prod += nb; in xsk_ring_prod__reserve()
125 return nb; in xsk_ring_prod__reserve()
116 xsk_ring_prod__reserve(struct xsk_ring_prod *prod, size_t nb, __u32 *idx) xsk_ring_prod__reserve() argument
128 xsk_ring_prod__submit(struct xsk_ring_prod *prod, size_t nb) xsk_ring_prod__submit() argument
138 xsk_ring_cons__peek(struct xsk_ring_cons *cons, size_t nb, __u32 *idx) xsk_ring_cons__peek() argument
156 xsk_ring_cons__release(struct xsk_ring_cons *cons, size_t nb) xsk_ring_cons__release() argument
[all...]
/kernel/linux/linux-5.10/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()
160 * @nb: a notifier block to be registered
166 * Note that the second parameter given to the callback of nb (val) is
173 unsigned int id, struct notifier_block *nb) in devm_extcon_register_notifier()
183 ret = extcon_register_notifier(edev, id, nb); in devm_extcon_register_notifier()
191 ptr->nb = nb; in devm_extcon_register_notifier()
204 * @nb
172 devm_extcon_register_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_register_notifier() argument
206 devm_extcon_unregister_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_unregister_notifier() argument
228 devm_extcon_register_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_register_notifier_all() argument
260 devm_extcon_unregister_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_unregister_notifier_all() argument
[all...]
/kernel/linux/linux-6.6/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()
160 * @nb: a notifier block to be registered
166 * Note that the second parameter given to the callback of nb (val) is
173 unsigned int id, struct notifier_block *nb) in devm_extcon_register_notifier()
183 ret = extcon_register_notifier(edev, id, nb); in devm_extcon_register_notifier()
191 ptr->nb = nb; in devm_extcon_register_notifier()
204 * @nb
172 devm_extcon_register_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_register_notifier() argument
206 devm_extcon_unregister_notifier(struct device *dev, struct extcon_dev *edev, unsigned int id, struct notifier_block *nb) devm_extcon_unregister_notifier() argument
228 devm_extcon_register_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_register_notifier_all() argument
260 devm_extcon_unregister_notifier_all(struct device *dev, struct extcon_dev *edev, struct notifier_block *nb) devm_extcon_unregister_notifier_all() argument
[all...]
/kernel/linux/linux-6.6/drivers/vfio/pci/pds/
H A Dpci_drv.c65 static int pds_vfio_pci_notify_handler(struct notifier_block *nb, in pds_vfio_pci_notify_handler() argument
69 container_of(nb, struct pds_vfio_pci_device, nb); in pds_vfio_pci_notify_handler()
101 struct notifier_block *nb = &pds_vfio->nb; in pds_vfio_pci_register_event_handler() local
104 if (!nb->notifier_call) { in pds_vfio_pci_register_event_handler()
105 nb->notifier_call = pds_vfio_pci_notify_handler; in pds_vfio_pci_register_event_handler()
106 err = pdsc_register_notify(nb); in pds_vfio_pci_register_event_handler()
108 nb->notifier_call = NULL; in pds_vfio_pci_register_event_handler()
123 if (pds_vfio->nb in pds_vfio_pci_unregister_event_handler()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/engine/device/
H 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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/platform/chrome/
H A Dcros_usbpd_notify.c23 struct notifier_block nb; member
28 * @nb: Notifier block pointer to register
36 int cros_usbpd_register_notify(struct notifier_block *nb) in cros_usbpd_register_notify() argument
39 nb); in cros_usbpd_register_notify()
45 * @nb: Notifier block pointer to unregister
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()
[all...]
/kernel/linux/linux-6.6/fs/jfs/
H 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()
368 * nb
373 extRoundDown(s64 nb) extRoundDown() argument
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/arch/x86/events/amd/
H A Dcore.c356 struct amd_nb *nb = cpuc->amd_nb; in amd_has_nb() local
358 return nb && nb->nb_id != -1; in amd_has_nb()
385 struct amd_nb *nb = cpuc->amd_nb; in __amd_put_nb_event_constraints() local
397 if (cmpxchg(nb->owners + i, event, NULL) == event) in __amd_put_nb_event_constraints()
443 struct amd_nb *nb = cpuc->amd_nb; in __amd_get_nb_event_constraints() local
466 old = cmpxchg(nb->owners + idx, NULL, event); in __amd_get_nb_event_constraints()
467 else if (nb->owners[idx] == event) in __amd_get_nb_event_constraints()
478 cmpxchg(nb->owners + new, event, NULL); in __amd_get_nb_event_constraints()
489 return &nb in __amd_get_nb_event_constraints()
494 struct amd_nb *nb; amd_alloc_nb() local
533 struct amd_nb *nb; amd_pmu_cpu_starting() local
570 struct amd_nb *nb = cpuhw->amd_nb; amd_pmu_cpu_dead() local
[all...]
/kernel/linux/linux-5.10/drivers/iio/imu/inv_icm42600/
H 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()
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 in inv_icm42600_buffer_fifo_parse()
[all...]

Completed in 12 milliseconds

12345678910>>...65