Lines Matching defs:hdr
1466 struct rfcomm_cmd_hdr *hdr;
1493 hdr = mtod(m, struct rfcomm_cmd_hdr *);
1494 hdr->address = RFCOMM_MKADDRESS(cr, dlci);
1495 hdr->control = RFCOMM_MKCONTROL(type, 1); /* PF = 1 */
1496 hdr->length = (0x00 << 1) | 0x01; /* len = 0x00, EA = 1 */
1499 fcs = FCS(fcs, hdr->address);
1500 fcs = FCS(fcs, hdr->control);
1501 fcs = FCS(fcs, hdr->length);
1503 hdr->fcs = fcs;
1532 uint8_t fcs, *hdr;
1570 hdr = mtod(m0, uint8_t *);
1573 *hdr = RFCOMM_MKADDRESS((IS_INITIATOR(rs) ? 1 : 0),
1575 fcs = FCS(0xff, *hdr);
1576 hdr++;
1579 *hdr = RFCOMM_MKCONTROL(RFCOMM_FRAME_UIH, (credits > 0 ? 1 : 0));
1580 fcs = FCS(fcs, *hdr);
1581 hdr++;
1584 *hdr++ = ((len << 1) & 0xfe) | 0x01; /* 7 bits, EA = 1 */
1586 *hdr++ = ((len << 1) & 0xfe); /* 7 bits, EA = 0 */
1587 *hdr++ = ((len >> 7) & 0xff); /* 8 bits, no EA */
1591 *hdr++ = (uint8_t)credits;
1593 m0->m_len = hdr - mtod(m0, uint8_t *);
1644 uint8_t *hdr;
1651 hdr = mtod(m, uint8_t *);
1657 *hdr++ = RFCOMM_MKMCC_TYPE(cr, type);
1669 *hdr++ = ((len << 1) & 0xfe) | 0x01; /* 7 bits, EA = 1 */
1671 *hdr++ = ((len << 1) & 0xfe); /* 7 bits, EA = 0 */
1672 *hdr++ = ((len >> 6) & 0xfe) | 0x01; /* 7 bits, EA = 1 */
1674 *hdr++ = ((len << 1) & 0xfe); /* 7 bits, EA = 0 */
1675 *hdr++ = ((len >> 6) & 0xfe); /* 7 bits, EA = 0 */
1676 *hdr++ = ((len >> 13) & 0x02) | 0x01; /* 1 bit, EA = 1 */
1686 hlen = hdr - mtod(m, uint8_t *);