Lines Matching refs:dn
65 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) in cfmuxl_set_dnlayer() argument
70 list_add_rcu(&dn->node, &muxl->frml_list); in cfmuxl_set_dnlayer()
107 struct cflayer *dn; in cfmuxl_remove_dnlayer() local
112 dn = get_from_id(&muxl->frml_list, phyid); in cfmuxl_remove_dnlayer()
113 if (dn == NULL) in cfmuxl_remove_dnlayer()
116 list_del_rcu(&dn->node); in cfmuxl_remove_dnlayer()
117 caif_assert(dn != NULL); in cfmuxl_remove_dnlayer()
120 return dn; in cfmuxl_remove_dnlayer()
139 struct cflayer *dn; in get_dn() local
141 dn = rcu_dereference(muxl->dn_cache[idx]); in get_dn()
142 if (dn == NULL || dn->id != dev_info->id) { in get_dn()
144 dn = get_from_id(&muxl->frml_list, dev_info->id); in get_dn()
145 rcu_assign_pointer(muxl->dn_cache[idx], dn); in get_dn()
148 return dn; in get_dn()
216 struct cflayer *dn; in cfmuxl_transmit() local
222 dn = get_dn(muxl, info->dev_info); in cfmuxl_transmit()
223 if (dn == NULL) { in cfmuxl_transmit()
236 cffrml_hold(dn); in cfmuxl_transmit()
240 err = dn->transmit(dn, pkt); in cfmuxl_transmit()
242 cffrml_put(dn); in cfmuxl_transmit()