lanai.c (05668381140309088443bf5dc53add4104610fbb) lanai.c (0c1cca1d8e0d58775dad43374f925e6cddf1bebc)
1/* lanai.c -- Copyright 1999-2003 by Mitchell Blank Jr <mitch@sfgoth.com>
2 *
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU General Public License
5 * as published by the Free Software Foundation; either version
6 * 2 of the License, or (at your option) any later version.
7 *
8 * This driver supports ATM cards based on the Efficient "Lanai"

--- 1468 unchanged lines hidden (view full) ---

1477 vfree(lanai->vccs);
1478#endif
1479}
1480
1481/* Allocate a fresh lanai_vcc, with the appropriate things cleared */
1482static inline struct lanai_vcc *new_lanai_vcc(void)
1483{
1484 struct lanai_vcc *lvcc;
1/* lanai.c -- Copyright 1999-2003 by Mitchell Blank Jr <mitch@sfgoth.com>
2 *
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU General Public License
5 * as published by the Free Software Foundation; either version
6 * 2 of the License, or (at your option) any later version.
7 *
8 * This driver supports ATM cards based on the Efficient "Lanai"

--- 1468 unchanged lines hidden (view full) ---

1477 vfree(lanai->vccs);
1478#endif
1479}
1480
1481/* Allocate a fresh lanai_vcc, with the appropriate things cleared */
1482static inline struct lanai_vcc *new_lanai_vcc(void)
1483{
1484 struct lanai_vcc *lvcc;
1485 lvcc = (struct lanai_vcc *) kmalloc(sizeof(*lvcc), GFP_KERNEL);
1485 lvcc = kzalloc(sizeof(*lvcc), GFP_KERNEL);
1486 if (likely(lvcc != NULL)) {
1486 if (likely(lvcc != NULL)) {
1487 lvcc->vbase = NULL;
1488 lvcc->rx.atmvcc = lvcc->tx.atmvcc = NULL;
1489 lvcc->nref = 0;
1490 memset(&lvcc->stats, 0, sizeof lvcc->stats);
1491 lvcc->rx.buf.start = lvcc->tx.buf.start = NULL;
1492 skb_queue_head_init(&lvcc->tx.backlog);
1493#ifdef DEBUG
1487 skb_queue_head_init(&lvcc->tx.backlog);
1488#ifdef DEBUG
1494 lvcc->tx.unqueue = NULL;
1495 lvcc->vci = -1;
1496#endif
1497 }
1498 return lvcc;
1499}
1500
1501static int lanai_get_sized_buffer(struct lanai_dev *lanai,
1502 struct lanai_buffer *buf, int max_sdu, int multiplier,

--- 1182 unchanged lines hidden ---
1489 lvcc->vci = -1;
1490#endif
1491 }
1492 return lvcc;
1493}
1494
1495static int lanai_get_sized_buffer(struct lanai_dev *lanai,
1496 struct lanai_buffer *buf, int max_sdu, int multiplier,

--- 1182 unchanged lines hidden ---