Lines Matching refs:lcs_hdr
1815 struct lcs_header *lcs_hdr; in lcs_get_frames_cb() local
1819 lcs_hdr = (struct lcs_header *) buffer->data; in lcs_get_frames_cb()
1820 if (lcs_hdr->offset == LCS_ILLEGAL_OFFSET) { in lcs_get_frames_cb()
1826 while (lcs_hdr->offset != 0) { in lcs_get_frames_cb()
1827 if (lcs_hdr->offset <= 0 || in lcs_get_frames_cb()
1828 lcs_hdr->offset > LCS_IOBUFFERSIZE || in lcs_get_frames_cb()
1829 lcs_hdr->offset < offset) { in lcs_get_frames_cb()
1836 if (lcs_hdr->type == LCS_FRAME_TYPE_CONTROL) in lcs_get_frames_cb()
1838 lcs_get_control(card, (struct lcs_cmd *) lcs_hdr); in lcs_get_frames_cb()
1839 else if (lcs_hdr->type == LCS_FRAME_TYPE_ENET || in lcs_get_frames_cb()
1840 lcs_hdr->type == LCS_FRAME_TYPE_TR || in lcs_get_frames_cb()
1841 lcs_hdr->type == LCS_FRAME_TYPE_FDDI) in lcs_get_frames_cb()
1843 lcs_get_skb(card, (char *)(lcs_hdr + 1), in lcs_get_frames_cb()
1844 lcs_hdr->offset - offset - in lcs_get_frames_cb()
1850 offset = lcs_hdr->offset; in lcs_get_frames_cb()
1851 lcs_hdr->offset = LCS_ILLEGAL_OFFSET; in lcs_get_frames_cb()
1852 lcs_hdr = (struct lcs_header *) (buffer->data + offset); in lcs_get_frames_cb()