Lines Matching refs:id
46 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id);
75 static struct cflayer *get_from_id(struct list_head *list, u16 id)
79 if (lyr->id == id)
93 /* Two entries with same id is wrong, so remove old layer from mux */
123 static struct cflayer *get_up(struct cfmuxl *muxl, u16 id)
126 int idx = id % UP_CACHE_SIZE;
128 if (up == NULL || up->id != id) {
130 up = get_from_id(&muxl->srvl_list, id);
140 int idx = dev_info->id % DN_CACHE_SIZE;
142 if (dn == NULL || dn->id != dev_info->id) {
144 dn = get_from_id(&muxl->frml_list, dev_info->id);
151 struct cflayer *cfmuxl_remove_uplayer(struct cflayer *layr, u8 id)
155 int idx = id % UP_CACHE_SIZE;
157 if (id == 0) {
163 up = get_from_id(&muxl->srvl_list, id);
178 u8 id;
180 if (cfpkt_extr_head(pkt, &id, 1) < 0) {
186 up = get_up(muxl, id);
190 " up == NULL", id, id);
225 info->dev_info->id, info->dev_info->id);
259 layer->id != 0)
260 cfmuxl_remove_uplayer(layr, layer->id);