Lines Matching full:layer

35 	struct cflayer layer;  member
161 caifd->layer.up-> in caif_flow_cb()
162 ctrlcmd(caifd->layer.up, in caif_flow_cb()
164 caifd->layer.id); in caif_flow_cb()
168 static int transmit(struct cflayer *layer, struct cfpkt *pkt) in transmit() argument
172 container_of(layer, struct caif_device_entry, layer); in transmit()
230 caifd->layer.up->ctrlcmd(caifd->layer.up, in transmit()
232 caifd->layer.id); in transmit()
259 if (!caifd || !caifd->layer.up || !caifd->layer.up->receive || in receive()
270 err = caifd->layer.up->receive(caifd->layer.up, pkt); in receive()
296 if (!caifd || !caifd->layer.up || !caifd->layer.up->ctrlcmd) { in dev_flowctrl()
304 caifd->layer.up->ctrlcmd(caifd->layer.up, in dev_flowctrl()
308 caifd->layer.id); in dev_flowctrl()
314 struct cflayer **layer, in caif_enroll_dev() argument
329 *layer = &caifd->layer; in caif_enroll_dev()
346 strscpy(caifd->layer.name, dev->name, in caif_enroll_dev()
347 sizeof(caifd->layer.name)); in caif_enroll_dev()
348 caifd->layer.transmit = transmit; in caif_enroll_dev()
351 &caifd->layer, in caif_enroll_dev()
371 struct cflayer *layer, *link_support; in caif_device_notify() local
401 &layer, NULL); in caif_device_notify()
417 cfcnfg_set_phy_state(cfg, &caifd->layer, true); in caif_device_notify()
426 if (!caifd || !caifd->layer.up || !caifd->layer.up->ctrlcmd) { in caif_device_notify()
431 cfcnfg_set_phy_state(cfg, &caifd->layer, false); in caif_device_notify()
435 caifd->layer.up->ctrlcmd(caifd->layer.up, in caif_device_notify()
437 caifd->layer.id); in caif_device_notify()
482 cfcnfg_del_phy_layer(cfg, &caifd->layer) != 0) { in caif_device_notify()
534 cfcnfg_set_phy_state(cfg, &caifd->layer, false); in caif_exit_net()
538 cfcnfg_del_phy_layer(cfg, &caifd->layer) != 0)) { in caif_exit_net()