Lines Matching refs:layer
22 struct cflayer layer; member
34 void cfserl_release(struct cflayer *layer) in cfserl_release() argument
36 kfree(layer); in cfserl_release()
44 caif_assert(offsetof(struct cfserl, layer) == 0); in cfserl_create()
45 this->layer.receive = cfserl_receive; in cfserl_create()
46 this->layer.transmit = cfserl_transmit; in cfserl_create()
47 this->layer.ctrlcmd = cfserl_ctrlcmd; in cfserl_create()
50 snprintf(this->layer.name, CAIF_LAYER_NAME_SZ, "ser1"); in cfserl_create()
51 return &this->layer; in cfserl_create()
158 ret = layr->layer.up->receive(layr->layer.up, pkt); in cfserl_receive()
180 static int cfserl_transmit(struct cflayer *layer, struct cfpkt *newpkt) in cfserl_transmit() argument
182 struct cfserl *layr = container_obj(layer); in cfserl_transmit()
186 return layer->dn->transmit(layer->dn, newpkt); in cfserl_transmit()