Lines Matching refs:layr
21 #define container_obj(layr) container_of(layr, struct cfsrvl, layer) argument
23 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt);
24 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt);
39 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt) in cfvei_receive() argument
43 caif_assert(layr->up != NULL); in cfvei_receive()
44 caif_assert(layr->receive != NULL); in cfvei_receive()
45 caif_assert(layr->ctrlcmd != NULL); in cfvei_receive()
55 ret = layr->up->receive(layr->up, pkt); in cfvei_receive()
58 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfvei_receive()
62 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfvei_receive()
75 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfvei_transmit() argument
80 struct cfsrvl *service = container_obj(layr); in cfvei_transmit()
83 caif_assert(layr->dn != NULL); in cfvei_transmit()
84 caif_assert(layr->dn->transmit != NULL); in cfvei_transmit()
97 return layr->dn->transmit(layr->dn, pkt); in cfvei_transmit()