Lines Matching defs:abuf
165 struct apr_rx_buf *abuf;
174 abuf = kzalloc(sizeof(*abuf) + len, GFP_ATOMIC);
175 if (!abuf)
178 abuf->len = len;
179 memcpy(abuf->buf, buf, len);
182 list_add_tail(&abuf->node, &apr->rx_list);
190 static int apr_do_rx_callback(struct packet_router *apr, struct apr_rx_buf *abuf)
199 void *buf = abuf->buf;
200 int len = abuf->len;
262 static int gpr_do_rx_callback(struct packet_router *gpr, struct apr_rx_buf *abuf)
269 void *buf = abuf->buf;
270 int len = abuf->len;
318 struct apr_rx_buf *abuf, *b;
322 list_for_each_entry_safe(abuf, b, &apr->rx_list, node) {
325 apr_do_rx_callback(apr, abuf);
328 gpr_do_rx_callback(apr, abuf);
334 list_del(&abuf->node);
336 kfree(abuf);