Lines Matching refs:muxl
45 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id);
66 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_set_uplayer() local
67 spin_lock(&muxl->receive_lock); in cfmuxl_set_uplayer()
69 list_add(&up->node, &muxl->srvl_list); in cfmuxl_set_uplayer()
70 spin_unlock(&muxl->receive_lock); in cfmuxl_set_uplayer()
78 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_is_phy_inuse() local
80 spin_lock(&muxl->receive_lock); in cfmuxl_is_phy_inuse()
82 list_for_each(node, &muxl->srvl_list) { in cfmuxl_is_phy_inuse()
90 spin_unlock(&muxl->receive_lock); in cfmuxl_is_phy_inuse()
98 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_get_phyid() local
99 spin_lock(&muxl->receive_lock); in cfmuxl_get_phyid()
100 up = get_up(muxl, channel_id); in cfmuxl_get_phyid()
105 spin_unlock(&muxl->receive_lock); in cfmuxl_get_phyid()
111 struct cfmuxl *muxl = (struct cfmuxl *) layr; in cfmuxl_set_dnlayer() local
112 spin_lock(&muxl->transmit_lock); in cfmuxl_set_dnlayer()
113 list_add(&dn->node, &muxl->frml_list); in cfmuxl_set_dnlayer()
114 spin_unlock(&muxl->transmit_lock); in cfmuxl_set_dnlayer()
132 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_remove_dnlayer() local
134 spin_lock(&muxl->transmit_lock); in cfmuxl_remove_dnlayer()
135 memset(muxl->dn_cache, 0, sizeof(muxl->dn_cache)); in cfmuxl_remove_dnlayer()
136 dn = get_from_id(&muxl->frml_list, phyid); in cfmuxl_remove_dnlayer()
138 spin_unlock(&muxl->transmit_lock); in cfmuxl_remove_dnlayer()
143 spin_unlock(&muxl->transmit_lock); in cfmuxl_remove_dnlayer()
148 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id) in get_up() argument
152 up = muxl->up_cache[idx]; in get_up()
154 up = get_from_id(&muxl->srvl_list, id); in get_up()
155 muxl->up_cache[idx] = up; in get_up()
161 static struct cflayer *get_dn(struct cfmuxl *muxl, struct dev_info *dev_info) in get_dn() argument
165 dn = muxl->dn_cache[idx]; in get_dn()
167 dn = get_from_id(&muxl->frml_list, dev_info->id); in get_dn()
168 muxl->dn_cache[idx] = dn; in get_dn()
176 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_remove_uplayer() local
177 spin_lock(&muxl->receive_lock); in cfmuxl_remove_uplayer()
178 up = get_up(muxl, id); in cfmuxl_remove_uplayer()
181 memset(muxl->up_cache, 0, sizeof(muxl->up_cache)); in cfmuxl_remove_uplayer()
185 spin_unlock(&muxl->receive_lock); in cfmuxl_remove_uplayer()
192 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_receive() local
201 spin_lock(&muxl->receive_lock); in cfmuxl_receive()
202 up = get_up(muxl, id); in cfmuxl_receive()
203 spin_unlock(&muxl->receive_lock); in cfmuxl_receive()
223 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_transmit() local
227 dn = get_dn(muxl, cfpkt_info(pkt)->dev_info); in cfmuxl_transmit()
246 struct cfmuxl *muxl = container_obj(layr); in cfmuxl_ctrlcmd() local
249 list_for_each_safe(node, next, &muxl->srvl_list) { in cfmuxl_ctrlcmd()