rxtx
static void sbdma_channel_start(struct sbmacdma *d, int rxtx);
static void sbdma_channel_start(struct sbmacdma *d, int rxtx)
struct prestera_rxtx *rxtx;
struct prestera_sdma *sdma = &sw->rxtx->sdma;
struct prestera_sdma *sdma = &sw->rxtx->sdma;
struct prestera_rxtx *rxtx;
rxtx = kzalloc_obj(*rxtx);
if (!rxtx)
sw->rxtx = rxtx;
kfree(rxtx);
kfree(sw->rxtx);
return prestera_sdma_xmit(&port->sw->rxtx->sdma, skb);
MLXSW_ITEM32(reg, pmlp, rxtx, 0x00, 31, 1);
static int firm_purge(struct usb_serial_port *port, __u8 rxtx);
static int firm_purge(struct usb_serial_port *port, __u8 rxtx)
purge_command.what = rxtx;
u8 rxtx[0x1];
struct rxtx rxtx; /* loop back buffer */
if (mdev_state->s[index].rxtx.count <
mdev_state->s[index].rxtx.fifo[
mdev_state->s[index].rxtx.head] = data;
mdev_state->s[index].rxtx.count++;
CIRCULAR_BUF_INC_IDX(mdev_state->s[index].rxtx.head);
(mdev_state->s[index].rxtx.count ==
(mdev_state->s[index].rxtx.head ==
mdev_state->s[index].rxtx.tail)) {
mdev_state->s[index].rxtx.count = 0;
mdev_state->s[index].rxtx.head = 0;
mdev_state->s[index].rxtx.tail = 0;
if (mdev_state->s[index].rxtx.head !=
mdev_state->s[index].rxtx.tail) {
*buf = mdev_state->s[index].rxtx.fifo[
mdev_state->s[index].rxtx.tail];
mdev_state->s[index].rxtx.count--;
CIRCULAR_BUF_INC_IDX(mdev_state->s[index].rxtx.tail);
if (mdev_state->s[index].rxtx.head ==
mdev_state->s[index].rxtx.tail) {
(mdev_state->s[index].rxtx.count >=
(mdev_state->s[index].rxtx.head ==
mdev_state->s[index].rxtx.tail))
if (mdev_state->s[index].rxtx.head !=
mdev_state->s[index].rxtx.tail)
if (mdev_state->s[index].rxtx.head ==
mdev_state->s[index].rxtx.tail)
if (mdev_state->s[index].rxtx.count <