Lines Matching defs:snd
343 struct plip_local *snd,
353 struct plip_local *snd, struct plip_local *rcv);
369 struct plip_local *snd = &nl->snd_data;
376 if ((r = (*f)(nl->dev, nl, snd, rcv)) != OK &&
377 (r = plip_bh_timeout_error(nl->dev, nl, snd, rcv, r)) != OK) {
401 struct plip_local *snd, struct plip_local *rcv,
428 dev->name, snd->state, c0);
456 snd->state = PLIP_PK_DONE;
457 if (snd->skb) {
458 dev_kfree_skb(snd->skb);
459 snd->skb = NULL;
476 struct plip_local *snd, struct plip_local *rcv)
587 struct plip_local *snd, struct plip_local *rcv)
604 if (snd->state != PLIP_PK_DONE) {
682 if (snd->state != PLIP_PK_DONE) {
748 struct plip_local *snd, struct plip_local *rcv)
755 if (snd->skb == NULL || (lbuf = snd->skb->data) == NULL) {
757 snd->state = PLIP_PK_DONE;
758 snd->skb = NULL;
762 switch (snd->state) {
798 snd->state = PLIP_PK_LENGTH_LSB;
799 snd->nibble = PLIP_NB_BEGIN;
812 &snd->nibble, snd->length.b.lsb))
814 snd->state = PLIP_PK_LENGTH_MSB;
818 &snd->nibble, snd->length.b.msb))
820 snd->state = PLIP_PK_DATA;
821 snd->byte = 0;
822 snd->checksum = 0;
827 &snd->nibble, lbuf[snd->byte]))
829 } while (++snd->byte < snd->length.h);
831 snd->checksum += lbuf[--snd->byte];
832 } while (snd->byte);
833 snd->state = PLIP_PK_CHECKSUM;
837 &snd->nibble, snd->checksum))
840 dev->stats.tx_bytes += snd->skb->len;
841 dev_kfree_skb(snd->skb);
843 snd->state = PLIP_PK_DONE;
848 snd->skb = NULL;
863 struct plip_local *snd, struct plip_local *rcv)
881 struct plip_local *snd, struct plip_local *rcv)
958 struct plip_local *snd = &nl->snd_data;
982 snd->skb = skb;
983 snd->length.h = skb->len;
984 snd->state = PLIP_PK_TRIGGER;
1111 struct plip_local *snd = &nl->snd_data;
1135 snd->state = PLIP_PK_DONE;
1136 if (snd->skb) {
1137 dev_kfree_skb(snd->skb);
1138 snd->skb = NULL;