• Home
  • Raw
  • Download

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,
56 struct cfserl *layr = container_obj(l); in cfserl_receive() local
67 spin_lock(&layr->sync); in cfserl_receive()
69 if (layr->incomplete_frm != NULL) { in cfserl_receive()
70 layr->incomplete_frm = in cfserl_receive()
71 cfpkt_append(layr->incomplete_frm, newpkt, expectlen); in cfserl_receive()
72 pkt = layr->incomplete_frm; in cfserl_receive()
74 spin_unlock(&layr->sync); in cfserl_receive()
80 layr->incomplete_frm = NULL; in cfserl_receive()
84 if (layr->usestx) { in cfserl_receive()
93 layr->incomplete_frm = NULL; in cfserl_receive()
94 spin_unlock(&layr->sync); in cfserl_receive()
109 if (layr->usestx) in cfserl_receive()
111 layr->incomplete_frm = pkt; in cfserl_receive()
112 spin_unlock(&layr->sync); in cfserl_receive()
127 if (!layr->usestx) { in cfserl_receive()
130 layr->incomplete_frm = NULL; in cfserl_receive()
132 spin_unlock(&layr->sync); in cfserl_receive()
140 if (layr->usestx) in cfserl_receive()
142 layr->incomplete_frm = pkt; in cfserl_receive()
143 spin_unlock(&layr->sync); in cfserl_receive()
157 spin_unlock(&layr->sync); in cfserl_receive()
158 ret = layr->layer.up->receive(layr->layer.up, pkt); in cfserl_receive()
159 spin_lock(&layr->sync); in cfserl_receive()
161 if (layr->usestx) { in cfserl_receive()
176 spin_unlock(&layr->sync); in cfserl_receive()
182 struct cfserl *layr = container_obj(layer); in cfserl_transmit() local
184 if (layr->usestx) in cfserl_transmit()
189 static void cfserl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, in cfserl_ctrlcmd() argument
192 layr->up->ctrlcmd(layr->up, ctrl, phyid); in cfserl_ctrlcmd()