Home
last modified time | relevance | path

Searched refs:dl (Results 1 – 6 of 6) sorted by relevance

/net/dsa/
Ddsa2.c290 struct dsa_link *dl; in dsa_link_touch() local
294 list_for_each_entry(dl, &dst->rtable, list) in dsa_link_touch()
295 if (dl->dp == dp && dl->link_dp == link_dp) in dsa_link_touch()
296 return dl; in dsa_link_touch()
298 dl = kzalloc(sizeof(*dl), GFP_KERNEL); in dsa_link_touch()
299 if (!dl) in dsa_link_touch()
302 dl->dp = dp; in dsa_link_touch()
303 dl->link_dp = link_dp; in dsa_link_touch()
305 INIT_LIST_HEAD(&dl->list); in dsa_link_touch()
306 list_add_tail(&dl->list, &dst->rtable); in dsa_link_touch()
[all …]
Ddsa.c353 int dsa_devlink_param_get(struct devlink *dl, u32 id, in dsa_devlink_param_get() argument
356 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_param_get()
365 int dsa_devlink_param_set(struct devlink *dl, u32 id, in dsa_devlink_param_set() argument
368 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_param_set()
/net/802/
Dp8022.c25 static int p8022_request(struct datalink_proto *dl, struct sk_buff *skb, in p8022_request() argument
28 llc_build_and_send_ui_pkt(dl->sap, skb, dest, dl->sap->laddr.lsap); in p8022_request()
Dpsnap.c81 static int snap_request(struct datalink_proto *dl, in snap_request() argument
84 memcpy(skb_push(skb, 5), dl->type, 5); in snap_request()
/net/bluetooth/rfcomm/
Dtty.c506 struct rfcomm_dev_list_req *dl; in rfcomm_get_dev_list() local
519 size = sizeof(*dl) + dev_num * sizeof(*di); in rfcomm_get_dev_list()
521 dl = kzalloc(size, GFP_KERNEL); in rfcomm_get_dev_list()
522 if (!dl) in rfcomm_get_dev_list()
525 di = dl->dev_info; in rfcomm_get_dev_list()
545 dl->dev_num = n; in rfcomm_get_dev_list()
546 size = sizeof(*dl) + n * sizeof(*di); in rfcomm_get_dev_list()
548 err = copy_to_user(arg, dl, size); in rfcomm_get_dev_list()
549 kfree(dl); in rfcomm_get_dev_list()
/net/bluetooth/
Dhci_core.c2120 struct hci_dev_list_req *dl; in hci_get_dev_list() local
2131 size = sizeof(*dl) + dev_num * sizeof(*dr); in hci_get_dev_list()
2133 dl = kzalloc(size, GFP_KERNEL); in hci_get_dev_list()
2134 if (!dl) in hci_get_dev_list()
2137 dr = dl->dev_req; in hci_get_dev_list()
2158 dl->dev_num = n; in hci_get_dev_list()
2159 size = sizeof(*dl) + n * sizeof(*dr); in hci_get_dev_list()
2161 err = copy_to_user(arg, dl, size); in hci_get_dev_list()
2162 kfree(dl); in hci_get_dev_list()