• Home
  • Raw
  • Download

Lines Matching refs:layr

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