Lines Matching refs:layer

16 #define container_obj(layr) container_of(layr, struct cfctrl, serv.layer)
41 caif_assert(offsetof(struct cfctrl, serv.layer) == 0); in cfctrl_create()
47 this->serv.layer.receive = cfctrl_recv; in cfctrl_create()
48 sprintf(this->serv.layer.name, "ctrl"); in cfctrl_create()
49 this->serv.layer.ctrlcmd = cfctrl_ctrlcmd; in cfctrl_create()
56 return &this->serv.layer; in cfctrl_create()
59 void cfctrl_remove(struct cflayer *layer) in cfctrl_remove() argument
62 struct cfctrl *ctrl = container_obj(layer); in cfctrl_remove()
70 kfree(layer); in cfctrl_remove()
162 struct cfctrl_rsp *cfctrl_get_respfuncs(struct cflayer *layer) in cfctrl_get_respfuncs() argument
164 struct cfctrl *this = container_obj(layer); in cfctrl_get_respfuncs()
171 info->channel_id = cfctrl->serv.layer.id; in init_info()
175 void cfctrl_enum_req(struct cflayer *layer, u8 physlinkid) in cfctrl_enum_req() argument
177 struct cfctrl *cfctrl = container_obj(layer); in cfctrl_enum_req()
179 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_enum_req()
186 caif_assert(offsetof(struct cfctrl, serv.layer) == 0); in cfctrl_enum_req()
195 int cfctrl_linkup_request(struct cflayer *layer, in cfctrl_linkup_request() argument
199 struct cfctrl *cfctrl = container_obj(layer); in cfctrl_linkup_request()
207 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_linkup_request()
214 if (cfctrl_cancel_req(layer, user_layer) > 0) { in cfctrl_linkup_request()
289 count = cfctrl_cancel_req(&cfctrl->serv.layer, in cfctrl_linkup_request()
299 int cfctrl_linkdown_req(struct cflayer *layer, u8 channelid, in cfctrl_linkdown_req() argument
303 struct cfctrl *cfctrl = container_obj(layer); in cfctrl_linkdown_req()
305 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_linkdown_req()
345 static int cfctrl_recv(struct cflayer *layer, struct cfpkt *pkt) in cfctrl_recv() argument
354 struct cfctrl *cfctrl = container_obj(layer); in cfctrl_recv()
502 cfctrl->res.reject_rsp(cfctrl->serv.layer.up, in cfctrl_recv()
508 layer.up, linkid, in cfctrl_recv()
522 cfctrl->res.linkdestroy_rsp(cfctrl->serv.layer.up, linkid); in cfctrl_recv()