Lines Matching refs:layr

16 #define container_obj(layr) ((struct cfserl *) layr)  argument
29 static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt);
30 static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
31 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
51 struct cfserl *layr = container_obj(l); in cfserl_receive() local
62 spin_lock(&layr->sync); in cfserl_receive()
64 if (layr->incomplete_frm != NULL) { in cfserl_receive()
65 layr->incomplete_frm = in cfserl_receive()
66 cfpkt_append(layr->incomplete_frm, newpkt, expectlen); in cfserl_receive()
67 pkt = layr->incomplete_frm; in cfserl_receive()
69 spin_unlock(&layr->sync); in cfserl_receive()
75 layr->incomplete_frm = NULL; in cfserl_receive()
79 if (layr->usestx) { in cfserl_receive()
88 layr->incomplete_frm = NULL; in cfserl_receive()
89 spin_unlock(&layr->sync); in cfserl_receive()
104 if (layr->usestx) in cfserl_receive()
106 layr->incomplete_frm = pkt; in cfserl_receive()
107 spin_unlock(&layr->sync); in cfserl_receive()
122 if (!layr->usestx) { in cfserl_receive()
125 layr->incomplete_frm = NULL; in cfserl_receive()
127 spin_unlock(&layr->sync); in cfserl_receive()
135 if (layr->usestx) in cfserl_receive()
137 layr->incomplete_frm = pkt; in cfserl_receive()
138 spin_unlock(&layr->sync); in cfserl_receive()
152 spin_unlock(&layr->sync); in cfserl_receive()
153 ret = layr->layer.up->receive(layr->layer.up, pkt); in cfserl_receive()
154 spin_lock(&layr->sync); in cfserl_receive()
156 if (layr->usestx) { in cfserl_receive()
171 spin_unlock(&layr->sync); in cfserl_receive()
177 struct cfserl *layr = container_obj(layer); in cfserl_transmit() local
179 if (layr->usestx) in cfserl_transmit()
184 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfserl_ctrlcmd() argument
187 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfserl_ctrlcmd()