Lines Matching refs:layr
17 #define container_obj(layr) ((struct cfsrvl *) layr) argument
24 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt);
40 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt) in cfutill_receive() argument
43 struct cfsrvl *service = container_obj(layr); in cfutill_receive()
44 caif_assert(layr != NULL); in cfutill_receive()
45 caif_assert(layr->up != NULL); in cfutill_receive()
46 caif_assert(layr->up->receive != NULL); in cfutill_receive()
47 caif_assert(layr->up->ctrlcmd != NULL); in cfutill_receive()
56 return layr->up->receive(layr->up, pkt); in cfutill_receive()
58 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfutill_receive()
62 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfutill_receive()
67 layr->ctrlcmd(layr, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, 0); in cfutill_receive()
78 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfutill_transmit() argument
83 struct cfsrvl *service = container_obj(layr); in cfutill_transmit()
84 caif_assert(layr != NULL); in cfutill_transmit()
85 caif_assert(layr->dn != NULL); in cfutill_transmit()
86 caif_assert(layr->dn->transmit != NULL); in cfutill_transmit()
103 return layr->dn->transmit(layr->dn, pkt); in cfutill_transmit()