Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 25 of 63) sorted by relevance

123

/net/ipv4/
Dxfrm4_protocol.c40 #define for_each_protocol_rcu(head, handler) \ argument
41 for (handler = rcu_dereference(head); \
42 handler != NULL; \
43 handler = rcu_dereference(handler->next)) \
48 struct xfrm4_protocol *handler; in xfrm4_rcv_cb() local
54 for_each_protocol_rcu(*head, handler) in xfrm4_rcv_cb()
55 if ((ret = handler->cb_handler(skb, err)) <= 0) in xfrm4_rcv_cb()
65 struct xfrm4_protocol *handler; in xfrm4_rcv_encap() local
75 for_each_protocol_rcu(*head, handler) in xfrm4_rcv_encap()
76 if ((ret = handler->input_handler(skb, nexthdr, spi, encap_type)) != -EINVAL) in xfrm4_rcv_encap()
[all …]
Dtunnel4.c31 int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_register() argument
37 int priority = handler->priority; in xfrm4_tunnel_register()
51 handler->next = *pprev; in xfrm4_tunnel_register()
52 rcu_assign_pointer(*pprev, handler); in xfrm4_tunnel_register()
63 int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family) in xfrm4_tunnel_deregister() argument
75 if (t == handler) { in xfrm4_tunnel_deregister()
76 *pprev = handler->next; in xfrm4_tunnel_deregister()
90 #define for_each_tunnel_rcu(head, handler) \ argument
91 for (handler = rcu_dereference(head); \
92 handler != NULL; \
[all …]
Dinet_diag.c61 static void inet_diag_unlock_handler(const struct inet_diag_handler *handler) in inet_diag_unlock_handler() argument
95 const struct inet_diag_handler *handler; in inet_sk_attr_size() local
98 handler = inet_diag_table[req->sdiag_protocol]; in inet_sk_attr_size()
99 if (handler && handler->idiag_get_aux_size) in inet_sk_attr_size()
100 aux = handler->idiag_get_aux_size(sk, net_admin); in inet_sk_attr_size()
167 const struct inet_diag_handler *handler; in inet_sk_diag_fill() local
174 handler = inet_diag_table[req->sdiag_protocol]; in inet_sk_diag_fill()
175 BUG_ON(!handler); in inet_sk_diag_fill()
219 handler->idiag_get_info(sk, r, NULL); in inet_sk_diag_fill()
245 if ((ext & (1 << (INET_DIAG_INFO - 1))) && handler->idiag_info_size) { in inet_sk_diag_fill()
[all …]
Dicmp.c189 bool (*handler)(struct sk_buff *skb); member
1068 success = icmp_pointers[icmph->type].handler(skb); in icmp_rcv()
1116 .handler = ping_rcv,
1119 .handler = icmp_discard,
1123 .handler = icmp_discard,
1127 .handler = icmp_unreach,
1131 .handler = icmp_unreach,
1135 .handler = icmp_redirect,
1139 .handler = icmp_discard,
1143 .handler = icmp_discard,
[all …]
Dgre_demux.c153 if (!proto || !proto->handler) in gre_rcv()
155 ret = proto->handler(skb); in gre_rcv()
188 .handler = gre_rcv,
Dxfrm4_tunnel.c65 .handler = xfrm_tunnel_rcv,
72 .handler = xfrm_tunnel_rcv,
Dip_vti.c429 .handler = vti_rcv_proto,
437 .handler = vti_rcv_proto,
445 .handler = vti_rcv_proto,
453 .handler = vti_rcv_tunnel,
/net/ipv6/
Dxfrm6_protocol.c40 #define for_each_protocol_rcu(head, handler) \ argument
41 for (handler = rcu_dereference(head); \
42 handler != NULL; \
43 handler = rcu_dereference(handler->next)) \
48 struct xfrm6_protocol *handler; in xfrm6_rcv_cb() local
54 for_each_protocol_rcu(*proto_handlers(protocol), handler) in xfrm6_rcv_cb()
55 if ((ret = handler->cb_handler(skb, err)) <= 0) in xfrm6_rcv_cb()
64 struct xfrm6_protocol *handler; in xfrm6_esp_rcv() local
68 for_each_protocol_rcu(esp6_handlers, handler) in xfrm6_esp_rcv()
69 if ((ret = handler->handler(skb)) != -EINVAL) in xfrm6_esp_rcv()
[all …]
Dtunnel6.c26 int xfrm6_tunnel_register(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_register() argument
31 int priority = handler->priority; in xfrm6_tunnel_register()
45 handler->next = *pprev; in xfrm6_tunnel_register()
46 rcu_assign_pointer(*pprev, handler); in xfrm6_tunnel_register()
57 int xfrm6_tunnel_deregister(struct xfrm6_tunnel *handler, unsigned short family) in xfrm6_tunnel_deregister() argument
69 if (t == handler) { in xfrm6_tunnel_deregister()
70 *pprev = handler->next; in xfrm6_tunnel_deregister()
84 #define for_each_tunnel_rcu(head, handler) \ argument
85 for (handler = rcu_dereference(head); \
86 handler != NULL; \
[all …]
Dxfrm6_tunnel.c304 .handler = xfrm6_tunnel_rcv,
310 .handler = xfrm6_tunnel_rcv,
/net/iucv/
Diucv.c767 int iucv_register(struct iucv_handler *handler, int smp) in iucv_register() argument
782 INIT_LIST_HEAD(&handler->paths); in iucv_register()
785 list_add_tail(&handler->list, &iucv_handler_list); in iucv_register()
801 void iucv_unregister(struct iucv_handler *handler, int smp) in iucv_unregister() argument
808 list_del_init(&handler->list); in iucv_unregister()
810 list_for_each_entry_safe(p, n, &handler->paths, list) { in iucv_unregister()
864 int iucv_path_accept(struct iucv_path *path, struct iucv_handler *handler, in iucv_path_accept() argument
911 int iucv_path_connect(struct iucv_path *path, struct iucv_handler *handler, in iucv_path_connect() argument
948 path->handler = handler; in iucv_path_connect()
950 list_add_tail(&path->list, &handler->paths); in iucv_path_connect()
[all …]
/net/wireless/
Dwext-priv.c139 iw_handler handler, struct net_device *dev, in ioctl_private_iw_point() argument
168 err = handler(dev, info, (union iwreq_data *) iwp, extra); in ioctl_private_iw_point()
189 iw_handler handler) in ioctl_private_call() argument
199 ret = handler(dev, info, &(iwr->u), (char *) &(iwr->u)); in ioctl_private_call()
202 handler, dev, info, extra_size); in ioctl_private_call()
215 iw_handler handler) in compat_private_call() argument
225 ret = handler(dev, info, &(iwr->u), (char *) &(iwr->u)); in compat_private_call()
236 handler, dev, info, extra_size); in compat_private_call()
Dwext-core.c718 iw_handler handler, struct net_device *dev, in ioctl_standard_iw_point() argument
838 err = handler(dev, info, (union iwreq_data *) iwp, extra); in ioctl_standard_iw_point()
922 iw_handler handler; in wireless_process_ioctl() local
949 handler = get_handler(dev, cmd); in wireless_process_ioctl()
950 if (handler) { in wireless_process_ioctl()
953 return standard(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
955 return private(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
1001 iw_handler handler) in ioctl_standard_call() argument
1015 ret = handler(dev, info, &(iwr->u), NULL); in ioctl_standard_call()
1023 handler, dev, info); in ioctl_standard_call()
[all …]
/net/smc/
Dsmc_wr.c42 smc_wr_tx_handler handler; member
106 if (pnd_snd.handler) in smc_wr_tx_process_cqe()
107 pnd_snd.handler(&pnd_snd.priv, link, wc->status); in smc_wr_tx_process_cqe()
169 smc_wr_tx_handler handler, in smc_wr_tx_get_free_slot() argument
203 wr_pend->handler = handler; in smc_wr_tx_get_free_slot()
315 int smc_wr_rx_register_handler(struct smc_wr_rx_handler *handler) in smc_wr_rx_register_handler() argument
321 hash_for_each_possible(smc_wr_rx_hash, h_iter, list, handler->type) { in smc_wr_rx_register_handler()
322 if (h_iter->type == handler->type) { in smc_wr_rx_register_handler()
327 hash_add(smc_wr_rx_hash, &handler->list, handler->type); in smc_wr_rx_register_handler()
340 struct smc_wr_rx_handler *handler; in smc_wr_rx_demultiplex() local
[all …]
Dsmc_llc.c721 .handler = smc_llc_rx_handler,
725 .handler = smc_llc_rx_handler,
729 .handler = smc_llc_rx_handler,
733 .handler = smc_llc_rx_handler,
737 .handler = smc_llc_rx_handler,
741 .handler = smc_llc_rx_handler,
745 .handler = smc_llc_rx_handler,
749 .handler = NULL,
755 struct smc_wr_rx_handler *handler; in smc_llc_init() local
758 for (handler = smc_llc_rx_handlers; handler->handler; handler++) { in smc_llc_init()
[all …]
Dsmc_cdc.c384 .handler = smc_cdc_rx_handler,
388 .handler = NULL,
394 struct smc_wr_rx_handler *handler; in smc_cdc_init() local
397 for (handler = smc_cdc_rx_handlers; handler->handler; handler++) { in smc_cdc_init()
398 INIT_HLIST_NODE(&handler->list); in smc_cdc_init()
399 rc = smc_wr_rx_register_handler(handler); in smc_cdc_init()
Dsmc_wr.h46 void (*handler)(struct ib_wc *, void *); member
86 int smc_wr_tx_get_free_slot(struct smc_link *link, smc_wr_tx_handler handler,
100 int smc_wr_rx_register_handler(struct smc_wr_rx_handler *handler);
/net/llc/
Dllc_input.c42 void llc_add_pack(int type, void (*handler)(struct llc_sap *sap, in llc_add_pack()
47 llc_type_handlers[type - 1] = handler; in llc_add_pack()
57 void llc_set_station_handler(void (*handler)(struct sk_buff *skb)) in llc_set_station_handler()
60 if (handler) in llc_set_station_handler()
63 llc_station_handler = handler; in llc_set_station_handler()
65 if (!handler) in llc_set_station_handler()
/net/netfilter/
Dnf_conntrack_sip.c1433 const struct sip_handler *handler; in process_sip_response() local
1435 handler = &sip_handlers[i]; in process_sip_response()
1436 if (handler->response == NULL) in process_sip_response()
1438 if (*datalen < matchend + handler->len || in process_sip_response()
1439 strncasecmp(*dptr + matchend, handler->method, handler->len)) in process_sip_response()
1441 return handler->response(skb, protoff, dataoff, dptr, datalen, in process_sip_response()
1474 const struct sip_handler *handler; in process_sip_request() local
1476 handler = &sip_handlers[i]; in process_sip_request()
1477 if (handler->request == NULL) in process_sip_request()
1479 if (*datalen < handler->len + 2 || in process_sip_request()
[all …]
/net/rfkill/
Dinput.c218 static int rfkill_connect(struct input_handler *handler, struct input_dev *dev, in rfkill_connect() argument
229 handle->handler = handler; in rfkill_connect()
/net/xfrm/
Dxfrm_interface.c764 .handler = xfrm6_rcv,
771 .handler = xfrm6_rcv,
778 .handler = xfrm6_rcv,
785 .handler = xfrm4_rcv,
793 .handler = xfrm4_rcv,
801 .handler = xfrm4_rcv,
/net/ncsi/
Dncsi-cmd.c233 int (*handler)(struct sk_buff *skb, member
327 if (ncsi_cmd_handlers[i].handler) in ncsi_xmit_cmd()
362 ret = nch->handler(nr->cmd, nca); in ncsi_xmit_cmd()
Dncsi-aen.c200 int (*handler)(struct ncsi_dev_priv *ndp, member
237 ret = nah->handler(ndp, h); in ncsi_aen_handler()
/net/rds/
Drdma_transport.c194 static int rds_rdma_listen_init_common(rdma_cm_event_handler handler, in rds_rdma_listen_init_common() argument
201 cm_id = rdma_create_id(&init_net, handler, NULL, in rds_rdma_listen_init_common()
/net/bluetooth/
Dhci_sock.c1473 const struct hci_mgmt_handler *handler; in hci_mgmt_cmd() local
1522 handler = &chan->handlers[opcode]; in hci_mgmt_cmd()
1525 !(handler->flags & HCI_MGMT_UNTRUSTED)) { in hci_mgmt_cmd()
1548 !(handler->flags & HCI_MGMT_UNCONFIGURED)) { in hci_mgmt_cmd()
1555 no_hdev = (handler->flags & HCI_MGMT_NO_HDEV); in hci_mgmt_cmd()
1562 var_len = (handler->flags & HCI_MGMT_VAR_LEN); in hci_mgmt_cmd()
1563 if ((var_len && len < handler->data_len) || in hci_mgmt_cmd()
1564 (!var_len && len != handler->data_len)) { in hci_mgmt_cmd()
1575 err = handler->func(sk, hdev, cp, len); in hci_mgmt_cmd()

123