/net/netfilter/ |
D | nft_rbtree.c | 38 const struct rb_node *parent; in nft_rbtree_lookup() local 43 parent = priv->root.rb_node; in nft_rbtree_lookup() 44 while (parent != NULL) { in nft_rbtree_lookup() 45 rbe = rb_entry(parent, struct nft_rbtree_elem, node); in nft_rbtree_lookup() 49 parent = parent->rb_left; in nft_rbtree_lookup() 52 parent = parent->rb_right; in nft_rbtree_lookup() 56 parent = parent->rb_left; in nft_rbtree_lookup() 84 struct rb_node *parent, **p; in __nft_rbtree_insert() local 88 parent = NULL; in __nft_rbtree_insert() 91 parent = *p; in __nft_rbtree_insert() [all …]
|
/net/sched/ |
D | sch_htb.c | 112 struct htb_class *parent; /* parent class */ member 272 struct rb_node **p = &root->rb_node, *parent = NULL; in htb_add_to_id_tree() local 276 parent = *p; in htb_add_to_id_tree() 277 c = rb_entry(parent, struct htb_class, node[prio]); in htb_add_to_id_tree() 280 p = &parent->rb_right; in htb_add_to_id_tree() 282 p = &parent->rb_left; in htb_add_to_id_tree() 284 rb_link_node(&cl->node[prio], parent, p); in htb_add_to_id_tree() 298 struct rb_node **p = &q->hlevel[cl->level].wait_pq.rb_node, *parent = NULL; in htb_add_to_wait_tree() local 310 parent = *p; in htb_add_to_wait_tree() 311 c = rb_entry(parent, struct htb_class, pq_node); in htb_add_to_wait_tree() [all …]
|
D | sch_fq.c | 153 struct rb_node **p = &q->delayed.rb_node, *parent = NULL; in fq_flow_set_throttled() local 158 parent = *p; in fq_flow_set_throttled() 159 aux = container_of(parent, struct fq_flow, rate_node); in fq_flow_set_throttled() 161 p = &parent->rb_right; in fq_flow_set_throttled() 163 p = &parent->rb_left; in fq_flow_set_throttled() 165 rb_link_node(&f->rate_node, parent, p); in fq_flow_set_throttled() 194 struct rb_node **p, *parent; in fq_gc() local 198 parent = NULL; in fq_gc() 200 parent = *p; in fq_gc() 202 f = container_of(parent, struct fq_flow, fq_node); in fq_gc() [all …]
|
D | sch_hfsc.c | 197 struct rb_node *parent = NULL; in eltree_insert() local 201 parent = *p; in eltree_insert() 202 cl1 = rb_entry(parent, struct hfsc_class, el_node); in eltree_insert() 204 p = &parent->rb_right; in eltree_insert() 206 p = &parent->rb_left; in eltree_insert() 208 rb_link_node(&cl->el_node, parent, p); in eltree_insert() 262 struct rb_node *parent = NULL; in vttree_insert() local 266 parent = *p; in vttree_insert() 267 cl1 = rb_entry(parent, struct hfsc_class, vt_node); in vttree_insert() 269 p = &parent->rb_right; in vttree_insert() [all …]
|
D | sch_atm.c | 48 struct atm_qdisc_data *parent; /* parent qdisc */ member 123 unsigned long parent, u32 classid) in atm_tc_bind_filter() argument 164 struct atm_qdisc_data *p = VCC2FLOW(vcc)->parent; in sch_atm_pop() 185 static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, in atm_tc_change() argument 198 "flow %p,opt %p)\n", sch, p, classid, parent, flow, opt); in atm_tc_change() 202 if (parent && parent != TC_H_ROOT && parent != sch->handle) in atm_tc_change() 286 flow->parent = p; in atm_tc_change()
|
D | cls_api.c | 129 u32 parent; in tc_ctl_tfilter() local 157 parent = t->tcm_parent; in tc_ctl_tfilter() 176 if (!parent) { in tc_ctl_tfilter() 178 parent = q->handle; in tc_ctl_tfilter() 194 if (TC_H_MIN(parent)) { in tc_ctl_tfilter() 195 cl = cops->get(q, parent); in tc_ctl_tfilter() 273 tp->classid = parent; in tc_ctl_tfilter()
|
/net/dsa/ |
D | slave.c | 53 ds->slave_mii_bus->parent = ds->master_dev; in dsa_slave_mii_bus_init() 63 return p->parent->dst->master_netdev->ifindex; in dsa_slave_get_iflink() 74 struct net_device *master = p->parent->dst->master_netdev; in dsa_slave_open() 75 struct dsa_switch *ds = p->parent; in dsa_slave_open() 130 struct net_device *master = p->parent->dst->master_netdev; in dsa_slave_close() 131 struct dsa_switch *ds = p->parent; in dsa_slave_close() 158 struct net_device *master = p->parent->dst->master_netdev; in dsa_slave_change_rx_flags() 173 struct net_device *master = p->parent->dst->master_netdev; in dsa_slave_set_rx_mode() 182 struct net_device *master = p->parent->dst->master_netdev; in dsa_slave_set_mac_address() 253 struct dsa_switch *ds = p->parent; in dsa_slave_port_vlan_add() [all …]
|
D | dsa.c | 215 static int dsa_switch_setup_one(struct dsa_switch *ds, struct device *parent) in dsa_switch_setup_one() argument 309 ds->slave_mii_bus = devm_mdiobus_alloc(parent); in dsa_switch_setup_one() 328 ret = dsa_slave_create(ds, parent, i, pd->port_names[i]); in dsa_switch_setup_one() 377 struct device *parent, struct device *host_dev) in dsa_switch_setup() argument 401 ds = devm_kzalloc(parent, sizeof(*ds) + drv->priv_size, GFP_KERNEL); in dsa_switch_setup() 412 ret = dsa_switch_setup_one(ds, parent); in dsa_switch_setup() 545 static struct device *dev_find_class(struct device *parent, char *class) in dev_find_class() argument 547 if (dev_is_class(parent, class)) { in dev_find_class() 548 get_device(parent); in dev_find_class() 549 return parent; in dev_find_class() [all …]
|
D | dsa_priv.h | 37 struct dsa_switch *parent; member 62 int dsa_slave_create(struct dsa_switch *ds, struct device *parent,
|
/net/bluetooth/rfcomm/ |
D | sock.c | 65 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change() local 81 parent = bt_sk(sk)->parent; in rfcomm_sk_state_change() 82 if (parent) { in rfcomm_sk_state_change() 87 parent->sk_data_ready(parent); in rfcomm_sk_state_change() 98 if (parent && sock_flag(sk, SOCK_ZAPPED)) { in rfcomm_sk_state_change() 175 static void rfcomm_sock_cleanup_listen(struct sock *parent) in rfcomm_sock_cleanup_listen() argument 179 BT_DBG("parent %p", parent); in rfcomm_sock_cleanup_listen() 182 while ((sk = bt_accept_dequeue(parent, NULL))) { in rfcomm_sock_cleanup_listen() 187 parent->sk_state = BT_CLOSED; in rfcomm_sock_cleanup_listen() 188 sock_set_flag(parent, SOCK_ZAPPED); in rfcomm_sock_cleanup_listen() [all …]
|
/net/ipv4/ |
D | inet_lro.c | 155 lro_desc->parent = skb; in lro_init_desc() 188 struct sk_buff *parent = lro_desc->parent; in lro_add_common() local 206 parent->len); in lro_add_common() 208 parent->len += tcp_data_len; in lro_add_common() 209 parent->data_len += tcp_data_len; in lro_add_common() 217 struct sk_buff *parent = lro_desc->parent; in lro_add_packet() local 223 parent->truesize += skb->truesize; in lro_add_packet() 228 skb_shinfo(parent)->frag_list = skb; in lro_add_packet() 283 skb_shinfo(lro_desc->parent)->gso_size = lro_desc->mss; in lro_flush() 286 netif_receive_skb(lro_desc->parent); in lro_flush() [all …]
|
/net/bluetooth/ |
D | l2cap_sock.c | 44 static void l2cap_sock_init(struct sock *sk, struct sock *parent); 1216 static void l2cap_sock_cleanup_listen(struct sock *parent) in l2cap_sock_cleanup_listen() argument 1220 BT_DBG("parent %p state %s", parent, in l2cap_sock_cleanup_listen() 1221 state_to_string(parent->sk_state)); in l2cap_sock_cleanup_listen() 1224 while ((sk = bt_accept_dequeue(parent, NULL))) { in l2cap_sock_cleanup_listen() 1244 struct sock *sk, *parent = chan->data; in l2cap_sock_new_connection_cb() local 1246 lock_sock(parent); in l2cap_sock_new_connection_cb() 1249 if (sk_acceptq_is_full(parent)) { in l2cap_sock_new_connection_cb() 1250 BT_DBG("backlog full %d", parent->sk_ack_backlog); in l2cap_sock_new_connection_cb() 1251 release_sock(parent); in l2cap_sock_new_connection_cb() [all …]
|
D | sco.c | 185 struct sock *parent) in __sco_chan_add() argument 192 if (parent) in __sco_chan_add() 193 bt_accept_enqueue(parent, sk); in __sco_chan_add() 197 struct sock *parent) in sco_chan_add() argument 205 __sco_chan_add(conn, sk, parent); in sco_chan_add() 369 static void sco_sock_cleanup_listen(struct sock *parent) in sco_sock_cleanup_listen() argument 373 BT_DBG("parent %p", parent); in sco_sock_cleanup_listen() 376 while ((sk = bt_accept_dequeue(parent, NULL))) { in sco_sock_cleanup_listen() 381 parent->sk_state = BT_CLOSED; in sco_sock_cleanup_listen() 382 sock_set_flag(parent, SOCK_ZAPPED); in sco_sock_cleanup_listen() [all …]
|
D | af_bluetooth.c | 184 void bt_accept_enqueue(struct sock *parent, struct sock *sk) in bt_accept_enqueue() argument 186 BT_DBG("parent %p, sk %p", parent, sk); in bt_accept_enqueue() 189 list_add_tail(&bt_sk(sk)->accept_q, &bt_sk(parent)->accept_q); in bt_accept_enqueue() 190 bt_sk(sk)->parent = parent; in bt_accept_enqueue() 191 parent->sk_ack_backlog++; in bt_accept_enqueue() 200 bt_sk(sk)->parent->sk_ack_backlog--; in bt_accept_unlink() 201 bt_sk(sk)->parent = NULL; in bt_accept_unlink() 206 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) in bt_accept_dequeue() argument 211 BT_DBG("parent %p", parent); in bt_accept_dequeue() 213 list_for_each_safe(p, n, &bt_sk(parent)->accept_q) { in bt_accept_dequeue() [all …]
|
/net/sunrpc/ |
D | rpc_pipe.c | 614 struct dentry *parent; in rpc_rmdir() local 618 parent = dget_parent(dentry); in rpc_rmdir() 619 dir = d_inode(parent); in rpc_rmdir() 623 dput(parent); in rpc_rmdir() 647 static struct dentry *__rpc_lookup_create_exclusive(struct dentry *parent, in __rpc_lookup_create_exclusive() argument 651 struct dentry *dentry = d_hash_and_lookup(parent, &q); in __rpc_lookup_create_exclusive() 653 dentry = d_alloc(parent, &q); in __rpc_lookup_create_exclusive() 666 static void __rpc_depopulate(struct dentry *parent, in __rpc_depopulate() argument 670 struct inode *dir = d_inode(parent); in __rpc_depopulate() 678 dentry = d_hash_and_lookup(parent, &name); in __rpc_depopulate() [all …]
|
/net/rxrpc/ |
D | ar-connection.c | 76 struct rb_node *p, *parent, **pp; in rxrpc_get_bundle() local 118 parent = NULL; in rxrpc_get_bundle() 120 parent = *pp; in rxrpc_get_bundle() 121 bundle = rb_entry(parent, struct rxrpc_conn_bundle, node); in rxrpc_get_bundle() 135 rb_link_node(&bundle->node, parent, pp); in rxrpc_get_bundle() 231 struct rb_node *parent, **p; in rxrpc_assign_connection_id() local 247 parent = NULL; in rxrpc_assign_connection_id() 251 parent = *p; in rxrpc_assign_connection_id() 252 xconn = rb_entry(parent, struct rxrpc_connection, node); in rxrpc_assign_connection_id() 268 rb_link_node(&conn->node, parent, p); in rxrpc_assign_connection_id() [all …]
|
D | ar-call.c | 323 struct rb_node *p, *parent, **pp; in rxrpc_get_client_call() local 364 parent = NULL; in rxrpc_get_client_call() 366 parent = *pp; in rxrpc_get_client_call() 367 call = rb_entry(parent, struct rxrpc_call, sock_node); in rxrpc_get_client_call() 382 rb_link_node(&call->sock_node, parent, pp); in rxrpc_get_client_call() 421 struct rb_node **p, *parent; in rxrpc_incoming_call() local 487 parent = NULL; in rxrpc_incoming_call() 489 parent = *p; in rxrpc_incoming_call() 490 call = rb_entry(parent, struct rxrpc_call, conn_node); in rxrpc_incoming_call() 507 rb_link_node(&call->conn_node, parent, p); in rxrpc_incoming_call()
|
/net/core/ |
D | netclassid_cgroup.c | 46 struct cgroup_cls_state *parent = css_cls_state(css->parent); in cgrp_css_online() local 48 if (parent) in cgrp_css_online() 49 cs->classid = parent->classid; in cgrp_css_online()
|
D | gen_estimator.c | 153 struct rb_node **p = &est_root.rb_node, *parent = NULL; in gen_add_node() local 158 parent = *p; in gen_add_node() 159 e = rb_entry(parent, struct gen_estimator, node); in gen_add_node() 162 p = &parent->rb_right; in gen_add_node() 164 p = &parent->rb_left; in gen_add_node() 166 rb_link_node(&est->node, parent, p); in gen_add_node()
|
/net/irda/ |
D | irda_device.c | 220 if (task->parent) { in irda_task_kick() 222 if (task->parent->state == IRDA_TASK_CHILD_WAIT) { in irda_task_kick() 223 task->parent->state = IRDA_TASK_CHILD_DONE; in irda_task_kick() 226 del_timer(&task->parent->timer); in irda_task_kick() 229 irda_task_kick(task->parent); in irda_task_kick()
|
/net/802/ |
D | garp.c | 153 struct rb_node *parent = app->gid.rb_node; in garp_attr_lookup() local 157 while (parent) { in garp_attr_lookup() 158 attr = rb_entry(parent, struct garp_attr, node); in garp_attr_lookup() 161 parent = parent->rb_left; in garp_attr_lookup() 163 parent = parent->rb_right; in garp_attr_lookup() 173 struct rb_node *parent = NULL, **p = &app->gid.rb_node; in garp_attr_create() local 178 parent = *p; in garp_attr_create() 179 attr = rb_entry(parent, struct garp_attr, node); in garp_attr_create() 182 p = &parent->rb_left; in garp_attr_create() 184 p = &parent->rb_right; in garp_attr_create() [all …]
|
D | mrp.c | 242 struct rb_node *parent = app->mad.rb_node; in mrp_attr_lookup() local 246 while (parent) { in mrp_attr_lookup() 247 attr = rb_entry(parent, struct mrp_attr, node); in mrp_attr_lookup() 250 parent = parent->rb_left; in mrp_attr_lookup() 252 parent = parent->rb_right; in mrp_attr_lookup() 262 struct rb_node *parent = NULL, **p = &app->mad.rb_node; in mrp_attr_create() local 267 parent = *p; in mrp_attr_create() 268 attr = rb_entry(parent, struct mrp_attr, node); in mrp_attr_create() 271 p = &parent->rb_left; in mrp_attr_create() 273 p = &parent->rb_right; in mrp_attr_create() [all …]
|
/net/wimax/ |
D | debugfs.c | 31 #define __debugfs_register(prefix, name, parent) \ argument 33 result = d_level_register_debugfs(prefix, name, parent); \ 43 struct device *dev = net_dev->dev.parent; in wimax_debugfs_add()
|
/net/nfc/ |
D | llcp_sock.c | 394 sk_acceptq_removed(llcp_sock->parent); in nfc_llcp_accept_unlink() 395 llcp_sock->parent = NULL; in nfc_llcp_accept_unlink() 400 void nfc_llcp_accept_enqueue(struct sock *parent, struct sock *sk) in nfc_llcp_accept_enqueue() argument 403 struct nfc_llcp_sock *llcp_sock_parent = nfc_llcp_sock(parent); in nfc_llcp_accept_enqueue() 410 llcp_sock->parent = parent; in nfc_llcp_accept_enqueue() 411 sk_acceptq_added(parent); in nfc_llcp_accept_enqueue() 414 struct sock *nfc_llcp_accept_dequeue(struct sock *parent, in nfc_llcp_accept_dequeue() argument 420 llcp_parent = nfc_llcp_sock(parent); in nfc_llcp_accept_dequeue() 444 sk_acceptq_removed(parent); in nfc_llcp_accept_dequeue() 538 static inline unsigned int llcp_accept_poll(struct sock *parent) in llcp_accept_poll() argument [all …]
|
/net/rds/ |
D | connection.c | 126 struct rds_connection *conn, *parent = NULL; in __rds_conn_create() local 140 parent = conn; in __rds_conn_create() 141 conn = parent->c_passive; in __rds_conn_create() 222 if (parent) { in __rds_conn_create() 224 if (parent->c_passive) { in __rds_conn_create() 227 conn = parent->c_passive; in __rds_conn_create() 229 parent->c_passive = conn; in __rds_conn_create()
|