/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.h | 201 struct mlxsw_sp_nexthop *nh); 202 bool mlxsw_sp_nexthop_is_forward(const struct mlxsw_sp_nexthop *nh); 203 unsigned char *mlxsw_sp_nexthop_ha(struct mlxsw_sp_nexthop *nh); 204 int mlxsw_sp_nexthop_indexes(struct mlxsw_sp_nexthop *nh, u32 *p_adj_index, 206 struct mlxsw_sp_rif *mlxsw_sp_nexthop_rif(struct mlxsw_sp_nexthop *nh); 207 bool mlxsw_sp_nexthop_group_has_ipip(struct mlxsw_sp_nexthop *nh); 208 #define mlxsw_sp_nexthop_for_each(nh, router) \ argument 209 for (nh = mlxsw_sp_nexthop_next(router, NULL); nh; \ 210 nh = mlxsw_sp_nexthop_next(router, nh)) 212 struct mlxsw_sp_nexthop *nh, u64 *p_counter); [all …]
|
D | spectrum_router.c | 2955 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_alloc() argument 2964 if (mlxsw_sp_flow_counter_alloc(mlxsw_sp, &nh->counter_index)) in mlxsw_sp_nexthop_counter_alloc() 2967 nh->counter_valid = true; in mlxsw_sp_nexthop_counter_alloc() 2971 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_free() argument 2973 if (!nh->counter_valid) in mlxsw_sp_nexthop_counter_free() 2975 mlxsw_sp_flow_counter_free(mlxsw_sp, nh->counter_index); in mlxsw_sp_nexthop_counter_free() 2976 nh->counter_valid = false; in mlxsw_sp_nexthop_counter_free() 2980 struct mlxsw_sp_nexthop *nh, u64 *p_counter) in mlxsw_sp_nexthop_counter_get() argument 2982 if (!nh->counter_valid) in mlxsw_sp_nexthop_counter_get() 2985 return mlxsw_sp_flow_counter_get(mlxsw_sp, nh->counter_index, in mlxsw_sp_nexthop_counter_get() [all …]
|
D | spectrum_dpipe.c | 911 struct mlxsw_sp_nexthop *nh; in mlxsw_sp_dpipe_table_adj_size() local 914 mlxsw_sp_nexthop_for_each(nh, mlxsw_sp->router) in mlxsw_sp_dpipe_table_adj_size() 915 if (mlxsw_sp_nexthop_is_forward(nh) && in mlxsw_sp_dpipe_table_adj_size() 916 !mlxsw_sp_nexthop_group_has_ipip(nh)) in mlxsw_sp_dpipe_table_adj_size() 1065 struct mlxsw_sp_nexthop *nh, in mlxsw_sp_dpipe_table_adj_entry_fill() argument 1068 struct mlxsw_sp_rif *rif = mlxsw_sp_nexthop_rif(nh); in mlxsw_sp_dpipe_table_adj_entry_fill() 1069 unsigned char *ha = mlxsw_sp_nexthop_ha(nh); in mlxsw_sp_dpipe_table_adj_entry_fill() 1075 mlxsw_sp_nexthop_indexes(nh, &adj_index, &adj_size, &adj_hash_index); in mlxsw_sp_dpipe_table_adj_entry_fill() 1078 err = mlxsw_sp_nexthop_counter_get(mlxsw_sp, nh, &entry->counter); in mlxsw_sp_dpipe_table_adj_entry_fill() 1089 struct mlxsw_sp_nexthop *nh; in mlxsw_sp_dpipe_table_adj_entries_get() local [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | pci_irq.c | 31 struct atomic_notifier_head nh; member 148 free_irq(irq->irqn, &irq->nh); in mlx5_system_free_irq() 191 static irqreturn_t irq_int_handler(int irq, void *nh) in irq_int_handler() argument 193 atomic_notifier_call_chain(nh, 0, NULL); in irq_int_handler() 228 ATOMIC_INIT_NOTIFIER_HEAD(&irq->nh); in irq_request() 232 &irq->nh); in irq_request() 255 free_irq(irq->irqn, &irq->nh); in irq_request() 271 ret = atomic_notifier_chain_register(&irq->nh, nb); in mlx5_irq_attach_nb() 281 err = atomic_notifier_chain_unregister(&irq->nh, nb); in mlx5_irq_detach_nb()
|
D | lag_mp.c | 147 struct fib_nh *nh = fib_info_nh(fi, 0); in mlx5_lag_fib_route_event() local 148 struct net_device *nh_dev = nh->fib_nh_dev; in mlx5_lag_fib_route_event() 286 if (fi->nh) in mlx5_lag_fib_event()
|
D | eq.c | 53 struct atomic_notifier_head nh[MLX5_EVENT_TYPE_MAX]; member 224 atomic_notifier_call_chain(&eqt->nh[eqe->type], eqe->type, eqe); in mlx5_eq_async_int() 225 atomic_notifier_call_chain(&eqt->nh[MLX5_EVENT_TYPE_NOTIFY_ANY], eqe->type, eqe); in mlx5_eq_async_int() 456 ATOMIC_INIT_NOTIFIER_HEAD(&eq_table->nh[i]); in mlx5_eq_table_init() 1060 return atomic_notifier_chain_register(&eqt->nh[nb->event_type], &nb->nb); in mlx5_eq_notifier_register() 1068 return atomic_notifier_chain_unregister(&eqt->nh[nb->event_type], &nb->nb); in mlx5_eq_notifier_unregister()
|
/drivers/net/vxlan/ |
D | vxlan_core.c | 84 struct nexthop __rcu *nh; member 182 if (rcu_access_pointer(fdb->nh)) in first_remote_rcu() 189 if (rcu_access_pointer(fdb->nh)) in first_remote_rtnl() 266 struct nexthop *nh; in vxlan_fdb_info() local 281 nh = rcu_dereference(fdb->nh); in vxlan_fdb_info() 282 if (nh) { in vxlan_fdb_info() 283 nh_family = nexthop_get_family(nh); in vxlan_fdb_info() 284 nh_id = nh->id; in vxlan_fdb_info() 292 } else if (nh) { in vxlan_fdb_info() 312 if (nh) { in vxlan_fdb_info() [all …]
|
/drivers/platform/surface/aggregator/ |
D | controller.c | 148 static int ssam_nfblk_call_chain(struct ssam_nf_head *nh, struct ssam_event *event) in ssam_nfblk_call_chain() argument 153 idx = srcu_read_lock(&nh->srcu); in ssam_nfblk_call_chain() 155 list_for_each_entry_rcu(nf, &nh->head, base.node, in ssam_nfblk_call_chain() 156 srcu_read_lock_held(&nh->srcu)) { in ssam_nfblk_call_chain() 164 srcu_read_unlock(&nh->srcu, idx); in ssam_nfblk_call_chain() 180 static int ssam_nfblk_insert(struct ssam_nf_head *nh, struct ssam_notifier_block *nb) in ssam_nfblk_insert() argument 186 list_for_each(h, &nh->head) { in ssam_nfblk_insert() 215 static bool ssam_nfblk_find(struct ssam_nf_head *nh, struct ssam_notifier_block *nb) in ssam_nfblk_find() argument 220 list_for_each_entry(p, &nh->head, node) { in ssam_nfblk_find() 247 static int ssam_nf_head_init(struct ssam_nf_head *nh) in ssam_nf_head_init() argument [all …]
|
/drivers/extcon/ |
D | extcon.c | 453 raw_notifier_call_chain(&edev->nh[index], state, edev); in extcon_sync() 933 ret = raw_notifier_chain_register(&edev->nh[idx], nb); in extcon_register_notifier() 962 ret = raw_notifier_chain_unregister(&edev->nh[idx], nb); in extcon_unregister_notifier() 1255 edev->nh = kcalloc(edev->max_supported, sizeof(*edev->nh), in extcon_dev_register() 1257 if (!edev->nh) { in extcon_dev_register() 1264 RAW_INIT_NOTIFIER_HEAD(&edev->nh[index]); in extcon_dev_register() 1285 kfree(edev->nh); in extcon_dev_register() 1347 kfree(edev->nh); in extcon_dev_unregister()
|
D | extcon.h | 50 struct raw_notifier_head *nh; member
|
/drivers/platform/surface/ |
D | surface_acpi_notify.c | 46 struct blocking_notifier_head nh; member 52 .nh = BLOCKING_NOTIFIER_INIT(san_rqsg_if.nh), 123 return blocking_notifier_chain_register(&san_rqsg_if.nh, nb); in san_dgpu_notifier_register() 133 return blocking_notifier_chain_unregister(&san_rqsg_if.nh, nb); in san_dgpu_notifier_unregister() 141 ret = blocking_notifier_call_chain(&san_rqsg_if.nh, evt->command, evt); in san_dgpu_notifier_call()
|
/drivers/pwm/ |
D | pwm-iqs620a.c | 175 ret = blocking_notifier_chain_unregister(&iqs620_pwm->iqs62x->nh, in iqs620_pwm_notifier_unregister() 214 ret = blocking_notifier_chain_register(&iqs620_pwm->iqs62x->nh, in iqs620_pwm_probe()
|
/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 2271 const struct fib_nh *nh; in ofdpa_port_fib_ipv4() local 2286 nh = fib_info_nh(fi, 0); in ofdpa_port_fib_ipv4() 2287 nh_on_port = (nh->fib_nh_dev == ofdpa_port->dev); in ofdpa_port_fib_ipv4() 2288 has_gw = !!nh->fib_nh_gw4; in ofdpa_port_fib_ipv4() 2292 nh->fib_nh_gw4, &index); in ofdpa_port_fib_ipv4() 2725 struct fib_nh *nh; in ofdpa_fib4_add() local 2730 nh = fib_info_nh(fen_info->fi, 0); in ofdpa_fib4_add() 2731 ofdpa_port = ofdpa_port_dev_lower_find(nh->fib_nh_dev, rocker); in ofdpa_fib4_add() 2739 nh->fib_nh_flags |= RTNH_F_OFFLOAD; in ofdpa_fib4_add() 2748 struct fib_nh *nh; in ofdpa_fib4_del() local [all …]
|
D | rocker_main.c | 2191 if (fen_info->fi->nh) { in rocker_router_fib_event()
|
/drivers/iio/position/ |
D | iqs624-pos.c | 105 ret = blocking_notifier_chain_unregister(&iqs624_pos->iqs62x->nh, in iqs624_pos_notifier_unregister() 258 ret = blocking_notifier_chain_register(&iqs624_pos->iqs62x->nh, in iqs624_pos_probe()
|
/drivers/of/ |
D | unittest.c | 353 struct node_hash *nh; in of_unittest_check_phandles() local 361 hash_for_each_possible(phandle_ht, nh, node, np->phandle) { in of_unittest_check_phandles() 362 if (nh->np->phandle == np->phandle) { in of_unittest_check_phandles() 364 np->phandle, nh->np, np); in of_unittest_check_phandles() 370 nh = kzalloc(sizeof(*nh), GFP_KERNEL); in of_unittest_check_phandles() 371 if (!nh) in of_unittest_check_phandles() 374 nh->np = np; in of_unittest_check_phandles() 375 hash_add(phandle_ht, &nh->node, np->phandle); in of_unittest_check_phandles() 382 hash_for_each_safe(phandle_ht, i, tmp, nh, node) { in of_unittest_check_phandles() 383 hash_del(&nh->node); in of_unittest_check_phandles() [all …]
|
/drivers/input/keyboard/ |
D | iqs62x-keys.c | 302 ret = blocking_notifier_chain_register(&iqs62x_keys->iqs62x->nh, in iqs62x_keys_probe() 315 ret = blocking_notifier_chain_unregister(&iqs62x_keys->iqs62x->nh, in iqs62x_keys_remove()
|
/drivers/iio/light/ |
D | iqs621-als.c | 198 ret = blocking_notifier_chain_unregister(&iqs621_als->iqs62x->nh, in iqs621_als_notifier_unregister() 591 ret = blocking_notifier_chain_register(&iqs621_als->iqs62x->nh, in iqs621_als_probe()
|
/drivers/mfd/ |
D | iqs62x.c | 565 ret = blocking_notifier_call_chain(&iqs62x->nh, event_flags, in iqs62x_irq() 911 BLOCKING_INIT_NOTIFIER_HEAD(&iqs62x->nh); in iqs62x_probe()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_softmac.c | 140 int nh; in enqueue_mgmt() local 142 nh = (ieee->mgmt_queue_head + 1) % MGMT_QUEUE_NUM; in enqueue_mgmt() 151 ieee->mgmt_queue_head = nh; in enqueue_mgmt() 152 ieee->mgmt_queue_ring[nh] = skb; in enqueue_mgmt()
|
/drivers/staging/rtl8192e/ |
D | rtllib_softmac.c | 130 int nh; in enqueue_mgmt() local 132 nh = (ieee->mgmt_queue_head + 1) % MGMT_QUEUE_NUM; in enqueue_mgmt() 140 ieee->mgmt_queue_head = nh; in enqueue_mgmt() 141 ieee->mgmt_queue_ring[nh] = skb; in enqueue_mgmt()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_encap.c | 1554 if (fen_info->fi->nh) in mlx5e_init_fib_work_ipv4()
|
/drivers/block/drbd/ |
D | drbd_nl.c | 4613 struct drbd_notification_header nh = { in nla_put_notification_header() local 4617 return drbd_notification_header_to_skb(msg, &nh, true); in nla_put_notification_header()
|