Lines Matching defs:layer
17 #define container_obj(layr) container_of(layr, struct cfctrl, serv.layer)
42 caif_assert(offsetof(struct cfctrl, serv.layer) == 0);
48 this->serv.layer.receive = cfctrl_recv;
49 sprintf(this->serv.layer.name, "ctrl");
50 this->serv.layer.ctrlcmd = cfctrl_ctrlcmd;
57 return &this->serv.layer;
60 void cfctrl_remove(struct cflayer *layer)
63 struct cfctrl *ctrl = container_obj(layer);
71 kfree(layer);
163 struct cfctrl_rsp *cfctrl_get_respfuncs(struct cflayer *layer)
165 struct cfctrl *this = container_obj(layer);
172 info->channel_id = cfctrl->serv.layer.id;
176 void cfctrl_enum_req(struct cflayer *layer, u8 physlinkid)
179 struct cfctrl *cfctrl = container_obj(layer);
180 struct cflayer *dn = cfctrl->serv.layer.dn;
189 caif_assert(offsetof(struct cfctrl, serv.layer) == 0);
199 int cfctrl_linkup_request(struct cflayer *layer,
203 struct cfctrl *cfctrl = container_obj(layer);
211 struct cflayer *dn = cfctrl->serv.layer.dn;
218 if (cfctrl_cancel_req(layer, user_layer) > 0) {
298 count = cfctrl_cancel_req(&cfctrl->serv.layer,
308 int cfctrl_linkdown_req(struct cflayer *layer, u8 channelid,
313 struct cfctrl *cfctrl = container_obj(layer);
314 struct cflayer *dn = cfctrl->serv.layer.dn;
354 static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt)
362 struct cfctrl *cfctrl = container_obj(layer);
505 cfctrl->res.reject_rsp(cfctrl->serv.layer.up,
511 layer.up, linkid,
524 cfctrl->res.linkdestroy_rsp(cfctrl->serv.layer.up, linkid);
564 pr_debug("Received flow off in control layer\n");