Lines Matching defs:muxl
46 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id);
67 struct cfmuxl *muxl = (struct cfmuxl *) layr;
69 spin_lock_bh(&muxl->transmit_lock);
70 list_add_rcu(&dn->node, &muxl->frml_list);
71 spin_unlock_bh(&muxl->transmit_lock);
88 struct cfmuxl *muxl = container_obj(layr);
91 spin_lock_bh(&muxl->receive_lock);
94 old = get_from_id(&muxl->srvl_list, linkid);
98 list_add_rcu(&up->node, &muxl->srvl_list);
99 spin_unlock_bh(&muxl->receive_lock);
106 struct cfmuxl *muxl = container_obj(layr);
110 spin_lock_bh(&muxl->transmit_lock);
111 RCU_INIT_POINTER(muxl->dn_cache[idx], NULL);
112 dn = get_from_id(&muxl->frml_list, phyid);
119 spin_unlock_bh(&muxl->transmit_lock);
123 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id)
127 up = rcu_dereference(muxl->up_cache[idx]);
129 spin_lock_bh(&muxl->receive_lock);
130 up = get_from_id(&muxl->srvl_list, id);
131 rcu_assign_pointer(muxl->up_cache[idx], up);
132 spin_unlock_bh(&muxl->receive_lock);
137 static struct cflayer *get_dn(struct cfmuxl *muxl, struct dev_info *dev_info)
141 dn = rcu_dereference(muxl->dn_cache[idx]);
143 spin_lock_bh(&muxl->transmit_lock);
144 dn = get_from_id(&muxl->frml_list, dev_info->id);
145 rcu_assign_pointer(muxl->dn_cache[idx], dn);
146 spin_unlock_bh(&muxl->transmit_lock);
154 struct cfmuxl *muxl = container_obj(layr);
162 spin_lock_bh(&muxl->receive_lock);
163 up = get_from_id(&muxl->srvl_list, id);
167 RCU_INIT_POINTER(muxl->up_cache[idx], NULL);
170 spin_unlock_bh(&muxl->receive_lock);
177 struct cfmuxl *muxl = container_obj(layr);
186 up = get_up(muxl, id);
213 struct cfmuxl *muxl = container_obj(layr);
222 dn = get_dn(muxl, info->dev_info);
249 struct cfmuxl *muxl = container_obj(layr);
253 list_for_each_entry_rcu(layer, &muxl->srvl_list, node) {