Lines Matching defs:header
287 u32 header[2];
292 u32 header[2];
748 p->header[1] |= KVASER_PCIEFD_TPACKET_SMS;
751 p->header[0] |= KVASER_PCIEFD_RPACKET_RTR;
754 p->header[0] |= KVASER_PCIEFD_RPACKET_IDE;
756 p->header[0] |= cf->can_id & CAN_EFF_MASK;
757 p->header[1] |= can_len2dlc(cf->len) << KVASER_PCIEFD_RPACKET_DLC_SHIFT;
758 p->header[1] |= KVASER_PCIEFD_TPACKET_AREQ;
761 p->header[1] |= KVASER_PCIEFD_RPACKET_FDF;
763 p->header[1] |= KVASER_PCIEFD_RPACKET_BRS;
765 p->header[1] |= KVASER_PCIEFD_RPACKET_ESI;
768 p->header[1] |= seq & KVASER_PCIEFD_PACKET_SEQ_MSK;
798 /* Write header to fifo */
799 iowrite32(packet.header[0],
801 iowrite32(packet.header[1],
1171 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7;
1179 if (p->header[1] & KVASER_PCIEFD_RPACKET_FDF) {
1186 if (p->header[1] & KVASER_PCIEFD_RPACKET_BRS)
1189 if (p->header[1] & KVASER_PCIEFD_RPACKET_ESI)
1199 cf->can_id = p->header[0] & CAN_EFF_MASK;
1200 if (p->header[0] & KVASER_PCIEFD_RPACKET_IDE)
1203 cf->len = can_dlc2len(p->header[1] >> KVASER_PCIEFD_RPACKET_DLC_SHIFT);
1205 if (p->header[0] & KVASER_PCIEFD_RPACKET_RTR)
1252 if (p->header[0] & KVASER_PCIEFD_SPACK_BOFF ||
1253 p->header[0] & KVASER_PCIEFD_SPACK_IRM)
1257 else if (p->header[1] & KVASER_PCIEFD_SPACK_EPLR)
1261 else if (p->header[1] & KVASER_PCIEFD_SPACK_EWLR)
1285 bec.txerr = p->header[0] & 0xff;
1286 bec.rxerr = (p->header[0] >> KVASER_PCIEFD_SPACK_RXERR_SHIFT) & 0xff;
1308 if (p->header[1] & KVASER_PCIEFD_EPACK_DIR_TX)
1341 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7;
1365 bec.txerr = p->header[0] & 0xff;
1366 bec.rxerr = (p->header[0] >> KVASER_PCIEFD_SPACK_RXERR_SHIFT) & 0xff;
1420 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7;
1431 if (p->header[0] & KVASER_PCIEFD_SPACK_IRM &&
1432 p->header[0] & KVASER_PCIEFD_SPACK_RMCD &&
1433 p->header[1] & KVASER_PCIEFD_SPACK_AUTO &&
1434 cmdseq == (p->header[1] & KVASER_PCIEFD_PACKET_SEQ_MSK) &&
1443 } else if (p->header[0] & KVASER_PCIEFD_SPACK_IDET &&
1444 p->header[0] & KVASER_PCIEFD_SPACK_IRM &&
1445 cmdseq == (p->header[1] & KVASER_PCIEFD_PACKET_SEQ_MSK) &&
1454 } else if (!(p->header[1] & KVASER_PCIEFD_SPACK_AUTO) &&
1455 cmdseq == (p->header[1] & KVASER_PCIEFD_PACKET_SEQ_MSK)) {
1463 } else if (p->header[0] & KVASER_PCIEFD_SPACK_RMCD &&
1477 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7;
1485 if (p->header[0] & KVASER_PCIEFD_APACKET_FLU) {
1493 int echo_idx = p->header[0] & KVASER_PCIEFD_PACKET_SEQ_MSK;
1517 if (p->header[0] & KVASER_PCIEFD_APACKET_ABL) {
1541 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7;
1548 if (p->header[0] & KVASER_PCIEFD_APACKET_CT)
1551 if (p->header[0] & KVASER_PCIEFD_APACKET_NACK) {
1556 if (p->header[0] & KVASER_PCIEFD_APACKET_FLU) {
1559 int echo_idx = p->header[0] & KVASER_PCIEFD_PACKET_SEQ_MSK;
1583 u8 ch_id = (p->header[1] >> KVASER_PCIEFD_PACKET_CHID_SHIFT) & 0x7;
1614 p->header[0] = le32_to_cpu(buffer[pos++]);
1615 p->header[1] = le32_to_cpu(buffer[pos++]);
1622 type = (p->header[1] >> KVASER_PCIEFD_PACKET_TYPE_SHIFT) & 0xf;
1626 if (!(p->header[0] & KVASER_PCIEFD_RPACKET_RTR)) {
1629 data_len = can_dlc2len(p->header[1] >>
1677 /* Point to the next packet header, if any */