Lines Matching refs:lcs_hdr
1826 struct lcs_header *lcs_hdr;
1830 lcs_hdr = (struct lcs_header *) buffer->data;
1831 if (lcs_hdr->offset == LCS_ILLEGAL_OFFSET) {
1837 while (lcs_hdr->offset != 0) {
1838 if (lcs_hdr->offset <= 0 ||
1839 lcs_hdr->offset > LCS_IOBUFFERSIZE ||
1840 lcs_hdr->offset < offset) {
1847 if (lcs_hdr->type == LCS_FRAME_TYPE_CONTROL)
1849 lcs_get_control(card, (struct lcs_cmd *) lcs_hdr);
1850 else if (lcs_hdr->type == LCS_FRAME_TYPE_ENET ||
1851 lcs_hdr->type == LCS_FRAME_TYPE_TR ||
1852 lcs_hdr->type == LCS_FRAME_TYPE_FDDI)
1854 lcs_get_skb(card, (char *)(lcs_hdr + 1),
1855 lcs_hdr->offset - offset -
1861 offset = lcs_hdr->offset;
1862 lcs_hdr->offset = LCS_ILLEGAL_OFFSET;
1863 lcs_hdr = (struct lcs_header *) (buffer->data + offset);