Lines Matching refs:shdr
432 struct mtk_stp_hdr *shdr; in mtk_stp_split() local
448 shdr = (struct mtk_stp_hdr *)&bdev->stp_pad[2]; in mtk_stp_split()
449 bdev->stp_dlen = be16_to_cpu(shdr->dlen) & 0x0fff; in mtk_stp_split()
452 if (shdr->prefix != 0x80 || bdev->stp_dlen > 2048) { in mtk_stp_split()
454 shdr->prefix, bdev->stp_dlen); in mtk_stp_split()
867 struct mtk_stp_hdr *shdr; in btmtkuart_send_frame() local
874 if (unlikely(skb_headroom(skb) < sizeof(*shdr)) || in btmtkuart_send_frame()
876 err = pskb_expand_head(skb, sizeof(*shdr), MTK_STP_TLR_SIZE, in btmtkuart_send_frame()
884 shdr = skb_push(skb, sizeof(*shdr)); in btmtkuart_send_frame()
885 shdr->prefix = 0x80; in btmtkuart_send_frame()
886 shdr->dlen = cpu_to_be16((dlen & 0x0fff) | (type << 12)); in btmtkuart_send_frame()
887 shdr->cs = 0; /* MT7622 doesn't care about checksum value */ in btmtkuart_send_frame()