Lines Matching refs:layr
17 #define container_obj(layr) ((struct cfsrvl *) layr) argument
24 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt);
25 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt);
44 static int cfdgml_receive(struct cflayer *layr, struct cfpkt *pkt) in cfdgml_receive() argument
49 caif_assert(layr->up != NULL); in cfdgml_receive()
50 caif_assert(layr->receive != NULL); in cfdgml_receive()
51 caif_assert(layr->ctrlcmd != NULL); in cfdgml_receive()
65 ret = layr->up->receive(layr->up, pkt); in cfdgml_receive()
71 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_OFF_IND, 0); in cfdgml_receive()
75 layr->ctrlcmd(layr, CAIF_CTRLCMD_FLOW_ON_IND, 0); in cfdgml_receive()
85 static int cfdgml_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfdgml_transmit() argument
90 struct cfsrvl *service = container_obj(layr); in cfdgml_transmit()
111 ret = layr->dn->transmit(layr->dn, pkt); in cfdgml_transmit()