Lines Matching full:service

30 	struct cfsrvl *service = container_obj(layr);  in cfservl_ctrlcmd()  local
37 service->open = true; in cfservl_ctrlcmd()
42 service->open = false; in cfservl_ctrlcmd()
46 if (phyid != service->dev_info.id) in cfservl_ctrlcmd()
48 if (service->modem_flow_on) in cfservl_ctrlcmd()
51 service->phy_flow_on = false; in cfservl_ctrlcmd()
54 if (phyid != service->dev_info.id) in cfservl_ctrlcmd()
56 if (service->modem_flow_on) { in cfservl_ctrlcmd()
61 service->phy_flow_on = true; in cfservl_ctrlcmd()
64 if (service->phy_flow_on) { in cfservl_ctrlcmd()
68 service->modem_flow_on = false; in cfservl_ctrlcmd()
71 if (service->phy_flow_on) { in cfservl_ctrlcmd()
75 service->modem_flow_on = true; in cfservl_ctrlcmd()
89 service->phy_flow_on = true; in cfservl_ctrlcmd()
96 struct cfsrvl *service = container_obj(layr); in cfservl_modemcmd() local
102 if (!service->supports_flowctrl) in cfservl_modemcmd()
121 info->channel_id = service->layer.id; in cfservl_modemcmd()
123 info->dev_info = &service->dev_info; in cfservl_modemcmd()
142 info->channel_id = service->layer.id; in cfservl_modemcmd()
144 info->dev_info = &service->dev_info; in cfservl_modemcmd()
156 struct cfsrvl *service = container_of(layer, struct cfsrvl, layer); in cfsrvl_release() local
157 kfree(service); in cfsrvl_release()
160 void cfsrvl_init(struct cfsrvl *service, in cfsrvl_init() argument
166 service->open = false; in cfsrvl_init()
167 service->modem_flow_on = true; in cfsrvl_init()
168 service->phy_flow_on = true; in cfsrvl_init()
169 service->layer.id = channel_id; in cfsrvl_init()
170 service->layer.ctrlcmd = cfservl_ctrlcmd; in cfsrvl_init()
171 service->layer.modemcmd = cfservl_modemcmd; in cfsrvl_init()
172 service->dev_info = *dev_info; in cfsrvl_init()
173 service->supports_flowctrl = supports_flowctrl; in cfsrvl_init()
174 service->release = cfsrvl_release; in cfsrvl_init()
177 bool cfsrvl_ready(struct cfsrvl *service, int *err) in cfsrvl_ready() argument
179 if (!service->open) { in cfsrvl_ready()
212 struct cfsrvl *service; in caif_client_register_refcnt() local
216 service = container_of(adapt_layer->dn, struct cfsrvl, layer); in caif_client_register_refcnt()
217 service->hold = hold; in caif_client_register_refcnt()
218 service->put = put; in caif_client_register_refcnt()