Lines Matching defs:layr
20 #define container_obj(layr) container_of(layr, struct cffrml, layer)
28 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt);
29 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt);
30 static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
82 static int cffrml_receive(struct cflayer *layr, struct cfpkt *pkt)
89 this = container_obj(layr);
128 if (layr->up == NULL) {
134 return layr->up->receive(layr->up, pkt);
137 static int cffrml_transmit(struct cflayer *layr, struct cfpkt *pkt)
143 struct cffrml *this = container_obj(layr);
161 if (layr->dn == NULL) {
166 return layr->dn->transmit(layr->dn, pkt);
169 static void cffrml_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl,
172 if (layr->up && layr->up->ctrlcmd)
173 layr->up->ctrlcmd(layr->up, ctrl, layr->id);
176 void cffrml_put(struct cflayer *layr)
178 struct cffrml *this = container_obj(layr);
179 if (layr != NULL && this->pcpu_refcnt != NULL)
183 void cffrml_hold(struct cflayer *layr)
185 struct cffrml *this = container_obj(layr);
186 if (layr != NULL && this->pcpu_refcnt != NULL)
190 int cffrml_refcnt_read(struct cflayer *layr)
193 struct cffrml *this = container_obj(layr);