Lines Matching refs:lcs_hdr
1789 struct lcs_header *lcs_hdr; in lcs_get_frames_cb() local
1793 lcs_hdr = (struct lcs_header *) buffer->data; in lcs_get_frames_cb()
1794 if (lcs_hdr->offset == LCS_ILLEGAL_OFFSET) { in lcs_get_frames_cb()
1800 while (lcs_hdr->offset != 0) { in lcs_get_frames_cb()
1801 if (lcs_hdr->offset <= 0 || in lcs_get_frames_cb()
1802 lcs_hdr->offset > LCS_IOBUFFERSIZE || in lcs_get_frames_cb()
1803 lcs_hdr->offset < offset) { in lcs_get_frames_cb()
1810 if (lcs_hdr->type == LCS_FRAME_TYPE_CONTROL) in lcs_get_frames_cb()
1812 lcs_get_control(card, (struct lcs_cmd *) lcs_hdr); in lcs_get_frames_cb()
1813 else if (lcs_hdr->type == LCS_FRAME_TYPE_ENET || in lcs_get_frames_cb()
1814 lcs_hdr->type == LCS_FRAME_TYPE_TR || in lcs_get_frames_cb()
1815 lcs_hdr->type == LCS_FRAME_TYPE_FDDI) in lcs_get_frames_cb()
1817 lcs_get_skb(card, (char *)(lcs_hdr + 1), in lcs_get_frames_cb()
1818 lcs_hdr->offset - offset - in lcs_get_frames_cb()
1824 offset = lcs_hdr->offset; in lcs_get_frames_cb()
1825 lcs_hdr->offset = LCS_ILLEGAL_OFFSET; in lcs_get_frames_cb()
1826 lcs_hdr = (struct lcs_header *) (buffer->data + offset); in lcs_get_frames_cb()