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);
43 static int cfutill_receive(struct cflayer *layr, struct cfpkt *pkt) in cfutill_receive() argument
46 struct cfsrvl *service = container_obj(layr); in cfutill_receive()
47 caif_assert(layr != NULL); in cfutill_receive()
48 caif_assert(layr->up != NULL); in cfutill_receive()
49 caif_assert(layr->up->receive != NULL); in cfutill_receive()
50 caif_assert(layr->up->ctrlcmd != NULL); in cfutill_receive()
59 return layr->up->receive(layr->up, pkt); in cfutill_receive()
61 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfutill_receive()
65 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfutill_receive()
70 layr->ctrlcmd(layr, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, 0); in cfutill_receive()
81 static int cfutill_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfutill_transmit() argument
86 struct cfsrvl *service = container_obj(layr); in cfutill_transmit()
87 caif_assert(layr != NULL); in cfutill_transmit()
88 caif_assert(layr->dn != NULL); in cfutill_transmit()
89 caif_assert(layr->dn->transmit != NULL); in cfutill_transmit()
103 ret = layr->dn->transmit(layr->dn, pkt); in cfutill_transmit()