/net/l2tp/ |
D | l2tp_debugfs.c | 48 static void l2tp_dfs_next_tunnel(struct l2tp_dfs_seq_data *pd) in l2tp_dfs_next_tunnel() argument 50 pd->tunnel = l2tp_tunnel_find_nth(pd->net, pd->tunnel_idx); in l2tp_dfs_next_tunnel() 51 pd->tunnel_idx++; in l2tp_dfs_next_tunnel() 54 static void l2tp_dfs_next_session(struct l2tp_dfs_seq_data *pd) in l2tp_dfs_next_session() argument 56 pd->session = l2tp_session_find_nth(pd->tunnel, pd->session_idx); in l2tp_dfs_next_session() 57 pd->session_idx++; in l2tp_dfs_next_session() 59 if (pd->session == NULL) { in l2tp_dfs_next_session() 60 pd->session_idx = 0; in l2tp_dfs_next_session() 61 l2tp_dfs_next_tunnel(pd); in l2tp_dfs_next_session() 68 struct l2tp_dfs_seq_data *pd = SEQ_START_TOKEN; in l2tp_dfs_seq_start() local [all …]
|
D | l2tp_ppp.c | 1566 static void pppol2tp_next_tunnel(struct net *net, struct pppol2tp_seq_data *pd) in pppol2tp_next_tunnel() argument 1569 pd->tunnel = l2tp_tunnel_find_nth(net, pd->tunnel_idx); in pppol2tp_next_tunnel() 1570 pd->tunnel_idx++; in pppol2tp_next_tunnel() 1572 if (pd->tunnel == NULL) in pppol2tp_next_tunnel() 1576 if (pd->tunnel->version < 3) in pppol2tp_next_tunnel() 1581 static void pppol2tp_next_session(struct net *net, struct pppol2tp_seq_data *pd) in pppol2tp_next_session() argument 1583 pd->session = l2tp_session_find_nth(pd->tunnel, pd->session_idx); in pppol2tp_next_session() 1584 pd->session_idx++; in pppol2tp_next_session() 1586 if (pd->session == NULL) { in pppol2tp_next_session() 1587 pd->session_idx = 0; in pppol2tp_next_session() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_proto.c | 70 struct ip_vs_proto_data *pd = in register_ip_vs_proto_netns() local 73 if (!pd) in register_ip_vs_proto_netns() 76 pd->pp = pp; /* For speed issues */ in register_ip_vs_proto_netns() 77 pd->next = ipvs->proto_data_table[hash]; in register_ip_vs_proto_netns() 78 ipvs->proto_data_table[hash] = pd; in register_ip_vs_proto_netns() 79 atomic_set(&pd->appcnt, 0); /* Init app counter */ in register_ip_vs_proto_netns() 82 int ret = pp->init_netns(net, pd); in register_ip_vs_proto_netns() 85 ipvs->proto_data_table[hash] = pd->next; in register_ip_vs_proto_netns() 86 kfree(pd); in register_ip_vs_proto_netns() 119 unregister_ip_vs_proto_netns(struct net *net, struct ip_vs_proto_data *pd) in unregister_ip_vs_proto_netns() argument [all …]
|
D | ip_vs_proto_tcp.c | 35 tcp_conn_schedule(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, in tcp_conn_schedule() argument 72 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in tcp_conn_schedule() 75 *verdict = ip_vs_leave(svc, skb, pd, iph); in tcp_conn_schedule() 447 static void tcp_timeout_change(struct ip_vs_proto_data *pd, int flags) in tcp_timeout_change() argument 457 pd->tcp_state_table = (on ? tcp_states_dos : tcp_states); in tcp_timeout_change() 474 set_tcp_state(struct ip_vs_proto_data *pd, struct ip_vs_conn *cp, in set_tcp_state() argument 498 pd->tcp_state_table[state_off+state_idx].next_state[cp->state]; in set_tcp_state() 506 pd->pp->name, in set_tcp_state() 536 if (likely(pd)) in set_tcp_state() 537 cp->timeout = pd->timeout_table[cp->state = new_state]; in set_tcp_state() [all …]
|
D | ip_vs_proto_udp.c | 32 udp_conn_schedule(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, in udp_conn_schedule() argument 67 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in udp_conn_schedule() 70 *verdict = ip_vs_leave(svc, skb, pd, iph); in udp_conn_schedule() 358 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(net, IPPROTO_UDP); in udp_register_app() local 369 atomic_inc(&pd->appcnt); in udp_register_app() 379 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(net, IPPROTO_UDP); in udp_unregister_app() local 381 atomic_dec(&pd->appcnt); in udp_unregister_app() 449 struct ip_vs_proto_data *pd) in udp_state_transition() argument 451 if (unlikely(!pd)) { in udp_state_transition() 456 cp->timeout = pd->timeout_table[IP_VS_UDP_S_NORMAL]; in udp_state_transition() [all …]
|
D | ip_vs_proto_sctp.c | 12 sctp_conn_schedule(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, in sctp_conn_schedule() argument 56 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); in sctp_conn_schedule() 59 *verdict = ip_vs_leave(svc, skb, pd, iph); in sctp_conn_schedule() 369 set_sctp_state(struct ip_vs_proto_data *pd, struct ip_vs_conn *cp, in set_sctp_state() argument 432 pd->pp->name, in set_sctp_state() 456 if (likely(pd)) in set_sctp_state() 457 cp->timeout = pd->timeout_table[cp->state = next_state]; in set_sctp_state() 464 const struct sk_buff *skb, struct ip_vs_proto_data *pd) in sctp_state_transition() argument 467 set_sctp_state(pd, cp, direction, skb); in sctp_state_transition() 484 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(net, IPPROTO_SCTP); in sctp_register_app() local [all …]
|
D | ip_vs_core.c | 199 struct ip_vs_proto_data *pd) in ip_vs_set_state() argument 201 if (likely(pd->pp->state_transition)) in ip_vs_set_state() 202 pd->pp->state_transition(cp, direction, skb, pd); in ip_vs_set_state() 408 struct ip_vs_proto_data *pd, int *ignored, in ip_vs_schedule() argument 411 struct ip_vs_protocol *pp = pd->pp; in ip_vs_schedule() 523 struct ip_vs_proto_data *pd, struct ip_vs_iphdr *iph) in ip_vs_leave() argument 577 ip_vs_set_state(cp, IP_VS_DIR_INPUT, skb, pd); in ip_vs_leave() 580 ret = cp->packet_xmit(skb, cp, pd->pp, iph); in ip_vs_leave() 1054 handle_response(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, in handle_response() argument 1057 struct ip_vs_protocol *pp = pd->pp; in handle_response() [all …]
|
D | ip_vs_conn.c | 645 struct ip_vs_proto_data *pd; in ip_vs_try_bind_dest() local 671 pd = ip_vs_proto_data_get(ip_vs_conn_net(cp), cp->protocol); in ip_vs_try_bind_dest() 672 if (pd && atomic_read(&pd->appcnt)) in ip_vs_try_bind_dest() 673 ip_vs_bind_app(cp, pd->pp); in ip_vs_try_bind_dest() 879 struct ip_vs_proto_data *pd = ip_vs_proto_data_get(p->net, in ip_vs_conn_new() local 956 if (unlikely(pd && atomic_read(&pd->appcnt))) in ip_vs_conn_new() 957 ip_vs_bind_app(cp, pd->pp); in ip_vs_conn_new()
|
D | ip_vs_ctl.c | 2177 struct ip_vs_proto_data *pd; in ip_vs_set_timeout() local 2187 pd = ip_vs_proto_data_get(net, IPPROTO_TCP); in ip_vs_set_timeout() 2188 pd->timeout_table[IP_VS_TCP_S_ESTABLISHED] in ip_vs_set_timeout() 2193 pd = ip_vs_proto_data_get(net, IPPROTO_TCP); in ip_vs_set_timeout() 2194 pd->timeout_table[IP_VS_TCP_S_FIN_WAIT] in ip_vs_set_timeout() 2201 pd = ip_vs_proto_data_get(net, IPPROTO_UDP); in ip_vs_set_timeout() 2202 pd->timeout_table[IP_VS_UDP_S_NORMAL] in ip_vs_set_timeout() 2545 struct ip_vs_proto_data *pd; in __ip_vs_get_timeouts() local 2551 pd = ip_vs_proto_data_get(net, IPPROTO_TCP); in __ip_vs_get_timeouts() 2552 u->tcp_timeout = pd->timeout_table[IP_VS_TCP_S_ESTABLISHED] / HZ; in __ip_vs_get_timeouts() [all …]
|
D | ip_vs_proto_ah_esp.c | 110 ah_esp_conn_schedule(int af, struct sk_buff *skb, struct ip_vs_proto_data *pd, in ah_esp_conn_schedule() argument
|
D | ip_vs_sync.c | 921 struct ip_vs_proto_data *pd; in ip_vs_proc_conn() local 923 pd = ip_vs_proto_data_get(net, protocol); in ip_vs_proc_conn() 924 if (!(flags & IP_VS_CONN_F_TEMPLATE) && pd && pd->timeout_table) in ip_vs_proc_conn() 925 cp->timeout = pd->timeout_table[state]; in ip_vs_proc_conn()
|
/net/dsa/ |
D | dsa.c | 80 struct dsa_chip_data *pd = dst->pd->chip + index; in dsa_switch_setup() local 91 drv = dsa_switch_probe(host_dev, pd->sw_addr, &name); in dsa_switch_setup() 110 ds->pd = dst->pd->chip + index; in dsa_switch_setup() 120 name = pd->port_names[i]; in dsa_switch_setup() 219 slave_dev = dsa_slave_create(ds, parent, i, pd->port_names[i]); in dsa_switch_setup() 224 index, i, pd->port_names[i]); in dsa_switch_setup() 298 for (i = 0; i < dst->pd->nr_chips; i++) { in dsa_link_poll_work() 372 static int dsa_of_setup_routing_table(struct dsa_platform_data *pd, in dsa_of_setup_routing_table() argument 394 if (link_sw_addr >= pd->nr_chips) in dsa_of_setup_routing_table() 399 cd->rtable = kmalloc(pd->nr_chips * sizeof(s8), GFP_KERNEL); in dsa_of_setup_routing_table() [all …]
|
D | slave.c | 47 ds->index, ds->pd->sw_addr); in dsa_slave_mii_bus_init() 455 struct dsa_chip_data *cd = ds->pd; in dsa_slave_phy_setup() 554 slave_dev->dev.of_node = ds->pd->port_dn[port]; in dsa_slave_create()
|
D | tag_dsa.c | 118 if (source_device >= dst->pd->nr_chips) in dsa_rcv()
|
D | tag_edsa.c | 131 if (source_device >= dst->pd->nr_chips) in edsa_rcv()
|
/net/rds/ |
D | iw.c | 89 rds_iwdev->pd = ib_alloc_pd(device); in rds_iw_add_one() 90 if (IS_ERR(rds_iwdev->pd)) in rds_iw_add_one() 94 rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd, in rds_iw_add_one() 121 ib_dealloc_pd(rds_iwdev->pd); in rds_iw_add_one() 152 while (ib_dealloc_pd(rds_iwdev->pd)) { in rds_iw_remove_one() 153 rdsdebug("Failed to dealloc pd %p\n", rds_iwdev->pd); in rds_iw_remove_one()
|
D | ib.c | 104 if (rds_ibdev->pd) in rds_ib_dev_free() 105 ib_dealloc_pd(rds_ibdev->pd); in rds_ib_dev_free() 161 rds_ibdev->pd = ib_alloc_pd(device); in rds_ib_add_one() 162 if (IS_ERR(rds_ibdev->pd)) { in rds_ib_add_one() 163 rds_ibdev->pd = NULL; in rds_ib_add_one() 167 rds_ibdev->mr = ib_get_dma_mr(rds_ibdev->pd, IB_ACCESS_LOCAL_WRITE); in rds_ib_add_one()
|
D | ib.h | 175 struct ib_pd *pd; member
|
D | iw.h | 183 struct ib_pd *pd; member
|
D | ib_rdma.c | 341 ibmr->fmr = ib_alloc_fmr(rds_ibdev->pd, in rds_ib_alloc_fmr()
|
D | iw_cm.c | 268 ic->i_pd = rds_iwdev->pd; in rds_iw_setup_qp()
|
D | ib_cm.c | 291 ic->i_pd = rds_ibdev->pd; in rds_ib_setup_qp()
|
D | iw_rdma.c | 670 mr = ib_alloc_fast_reg_mr(rds_iwdev->pd, pool->max_message_size);
|
/net/9p/ |
D | trans_rdma.c | 94 struct ib_pd *pd; member 382 if (rdma->pd && !IS_ERR(rdma->pd)) in rdma_destroy_trans() 383 ib_dealloc_pd(rdma->pd); in rdma_destroy_trans() 680 rdma->pd = ib_alloc_pd(rdma->cm_id->device); in rdma_create_trans() 681 if (IS_ERR(rdma->pd)) in rdma_create_trans() 689 rdma->dma_mr = ib_get_dma_mr(rdma->pd, IB_ACCESS_LOCAL_WRITE); in rdma_create_trans() 707 err = rdma_create_qp(rdma->cm_id, rdma->pd, &qp_attr); in rdma_create_trans()
|
/net/sctp/ |
D | ulpevent.c | 736 struct sctp_pdapi_event *pd; in sctp_ulpevent_make_pdapi() local 745 pd = (struct sctp_pdapi_event *) in sctp_ulpevent_make_pdapi() 754 pd->pdapi_type = SCTP_PARTIAL_DELIVERY_EVENT; in sctp_ulpevent_make_pdapi() 755 pd->pdapi_flags = 0; in sctp_ulpevent_make_pdapi() 763 pd->pdapi_length = sizeof(struct sctp_pdapi_event); in sctp_ulpevent_make_pdapi() 769 pd->pdapi_indication = indication; in sctp_ulpevent_make_pdapi() 776 pd->pdapi_assoc_id = sctp_assoc2id(asoc); in sctp_ulpevent_make_pdapi()
|