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);
42 static int cfvei_receive(struct cflayer *layr, struct cfpkt *pkt) in cfvei_receive() argument
46 caif_assert(layr->up != NULL); in cfvei_receive()
47 caif_assert(layr->receive != NULL); in cfvei_receive()
48 caif_assert(layr->ctrlcmd != NULL); in cfvei_receive()
58 ret = layr->up->receive(layr->up, pkt); in cfvei_receive()
61 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfvei_receive()
65 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfvei_receive()
78 static int cfvei_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfvei_transmit() argument
83 struct cfsrvl *service = container_obj(layr); in cfvei_transmit()
86 caif_assert(layr->dn != NULL); in cfvei_transmit()
87 caif_assert(layr->dn->transmit != NULL); in cfvei_transmit()
99 ret = layr->dn->transmit(layr->dn, pkt); in cfvei_transmit()