Lines Matching defs:hdrp
788 bth5_hdr_t *hdrp = mtod(m, bth5_hdr_t *);
796 hdrp->flags |= BTH5_FLAGS_CRC_PRESENT;
798 BTH5_SET_PLEN(hdrp, pldlen);
799 BTH5_SET_CSUM(hdrp);
827 bth5_hdr_t *hdrp = mtod(m, bth5_hdr_t *);
842 ((hdrp->flags & BTH5_FLAGS_CRC_PRESENT) ? sizeof(crc) : 0);
848 if (hdrp->csum != BTH5_GET_CSUM(hdrp)) {
853 if (BTH5_GET_PLEN(hdrp) != pldlen) {
858 if (hdrp->flags & BTH5_FLAGS_CRC_PRESENT) {
936 bth5_hdr_t *hdrp;
948 hdrp = mtod(m, bth5_hdr_t *);
949 if (hdrp->ident == BTH5_CHANNEL_LE) {
976 hdrp = mtod(m, bth5_hdr_t *);
977 hdrp->flags |= BTH5_FLAGS_PROTOCOL_REL; /* Reliable */
1003 hdrp = mtod(m, bth5_hdr_t *);
1004 hdrp->flags |=
1021 bth5_hdr_t *hdrp = mtod(m, bth5_hdr_t *);
1022 const u_int rxack = BTH5_FLAGS_ACK(hdrp->flags);
1025 device_xname(sc->sc_dev), hdrp->flags, hdrp->ident, rxack));
1036 if (BTH5_FLAGS_SEQ(hdrp->flags) == 0 &&
1037 hdrp->ident == BTH5_IDENT_ACKPKT &&
1038 BTH5_GET_PLEN(hdrp) == 0) {
1039 sc->sc_seq_txseq = BTH5_FLAGS_ACK(hdrp->flags);
1046 if (hdrp->flags & BTH5_FLAGS_PROTOCOL_REL)
1065 bth5_hdr_t *hdrp;
1070 hdrp = mtod(m, bth5_hdr_t *);
1079 memset(hdrp, 0, sizeof(bth5_hdr_t));
1183 bth5_hdr_t *hdrp;
1213 hdrp = mtod(m, bth5_hdr_t *);
1214 memset(hdrp, 0, sizeof(bth5_hdr_t));
1215 hdrp->flags |= sc->sc_seq_txseq;
1216 hdrp->ident = protocol_id;
1256 bth5_hdr_t *hdrp;
1267 hdrp = mtod(m, bth5_hdr_t *);
1268 if (BTH5_FLAGS_SEQ(hdrp->flags) == seqno) {
1411 bth5_hdr_t *hdrp;
1437 hdrp = mtod(m, bth5_hdr_t *);
1438 memset(hdrp, 0, sizeof(bth5_hdr_t));
1439 hdrp->ident = protocol_id;