Lines Matching refs:cfctrl
15 #include <net/caif/cfctrl.h>
17 #define container_obj(layr) container_of(layr, struct cfctrl, serv.layer)
22 static int handle_loop(struct cfctrl *ctrl,
27 static int handle_loop(struct cfctrl *ctrl,
38 struct cfctrl *this =
39 kzalloc(sizeof(struct cfctrl), GFP_ATOMIC);
42 caif_assert(offsetof(struct cfctrl, serv.layer) == 0);
63 struct cfctrl *ctrl = container_obj(layer);
129 static void cfctrl_insert_req(struct cfctrl *ctrl,
140 static struct cfctrl_request_info *cfctrl_remove_req(struct cfctrl *ctrl,
165 struct cfctrl *this = container_obj(layer);
169 static void init_info(struct caif_payload_info *info, struct cfctrl *cfctrl)
172 info->channel_id = cfctrl->serv.layer.id;
173 info->dev_info = &cfctrl->serv.dev_info;
179 struct cfctrl *cfctrl = container_obj(layer);
180 struct cflayer *dn = cfctrl->serv.layer.dn;
189 caif_assert(offsetof(struct cfctrl, serv.layer) == 0);
190 init_info(cfpkt_info(pkt), cfctrl);
192 cfctrl->serv.dev_info.id = physlinkid;
203 struct cfctrl *cfctrl = container_obj(layer);
211 struct cflayer *dn = cfctrl->serv.layer.dn;
284 cfctrl_insert_req(cfctrl, req);
285 init_info(cfpkt_info(pkt), cfctrl);
298 count = cfctrl_cancel_req(&cfctrl->serv.layer,
313 struct cfctrl *cfctrl = container_obj(layer);
314 struct cflayer *dn = cfctrl->serv.layer.dn;
325 init_info(cfpkt_info(pkt), cfctrl);
330 cfctrl->loop_linkused[channelid] = 0;
338 struct cfctrl *ctrl = container_obj(layr);
362 struct cfctrl *cfctrl = container_obj(layer);
371 if (handle_loop(cfctrl, cmd, pkt) != 0)
498 spin_lock_bh(&cfctrl->info_list_lock);
499 req = cfctrl_remove_req(cfctrl, &rsp);
505 cfctrl->res.reject_rsp(cfctrl->serv.layer.up,
510 cfctrl->res.linksetup_rsp(cfctrl->serv.
519 spin_unlock_bh(&cfctrl->info_list_lock);
524 cfctrl->res.linkdestroy_rsp(cfctrl->serv.layer.up, linkid);
528 cfctrl->res.linkerror_ind();
531 cfctrl->res.enum_rsp();
534 cfctrl->res.sleep_rsp();
537 cfctrl->res.wake_rsp();
540 cfctrl->res.restart_rsp();
543 cfctrl->res.radioset_rsp();
558 struct cfctrl *this = container_obj(layr);
590 static int handle_loop(struct cfctrl *ctrl, int cmd, struct cfpkt *pkt)