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