Lines Matching refs:abuf
83 struct apr_rx_buf *abuf;
92 abuf = kzalloc(sizeof(*abuf) + len, GFP_ATOMIC);
93 if (!abuf)
96 abuf->len = len;
97 memcpy(abuf->buf, buf, len);
100 list_add_tail(&abuf->node, &apr->rx_list);
108 static int apr_do_rx_callback(struct packet_router *apr, struct apr_rx_buf *abuf)
117 void *buf = abuf->buf;
118 int len = abuf->len;
183 struct apr_rx_buf *abuf, *b;
187 list_for_each_entry_safe(abuf, b, &apr->rx_list, node) {
190 apr_do_rx_callback(apr, abuf);
196 list_del(&abuf->node);
198 kfree(abuf);