• Home
  • Raw
  • Download

Lines Matching refs:cf

469 	struct can_frame *cf = (struct can_frame *)skb->data;  in ti_hecc_xmit()  local
490 data = cf->len | (get_tx_head_prio(priv) << 8); in ti_hecc_xmit()
491 if (cf->can_id & CAN_RTR_FLAG) /* Remote transmission request */ in ti_hecc_xmit()
495 if (cf->can_id & CAN_EFF_FLAG) /* Extended frame format */ in ti_hecc_xmit()
496 data = (cf->can_id & CAN_EFF_MASK) | HECC_CANMID_IDE; in ti_hecc_xmit()
498 data = (cf->can_id & CAN_SFF_MASK) << 18; in ti_hecc_xmit()
501 be32_to_cpu(*(__be32 *)(cf->data))); in ti_hecc_xmit()
502 if (cf->len > 4) in ti_hecc_xmit()
504 be32_to_cpu(*(__be32 *)(cf->data + 4))); in ti_hecc_xmit()
506 *(u32 *)(cf->data + 4) = 0; in ti_hecc_xmit()
535 struct can_frame *cf; in ti_hecc_mailbox_read() local
545 skb = alloc_can_skb(offload->dev, &cf); in ti_hecc_mailbox_read()
553 cf->can_id = (data & CAN_EFF_MASK) | CAN_EFF_FLAG; in ti_hecc_mailbox_read()
555 cf->can_id = (data >> 18) & CAN_SFF_MASK; in ti_hecc_mailbox_read()
559 cf->can_id |= CAN_RTR_FLAG; in ti_hecc_mailbox_read()
560 cf->len = can_cc_dlc2len(data & 0xF); in ti_hecc_mailbox_read()
563 *(__be32 *)(cf->data) = cpu_to_be32(data); in ti_hecc_mailbox_read()
564 if (cf->len > 4) { in ti_hecc_mailbox_read()
566 *(__be32 *)(cf->data + 4) = cpu_to_be32(data); in ti_hecc_mailbox_read()
597 struct can_frame *cf; in ti_hecc_error() local
604 skb = alloc_can_err_skb(ndev, &cf); in ti_hecc_error()
614 cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT; in ti_hecc_error()
616 cf->data[2] |= CAN_ERR_PROT_FORM; in ti_hecc_error()
618 cf->data[2] |= CAN_ERR_PROT_BIT; in ti_hecc_error()
620 cf->data[2] |= CAN_ERR_PROT_STUFF; in ti_hecc_error()
622 cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ; in ti_hecc_error()
624 cf->data[3] = CAN_ERR_PROT_LOC_ACK; in ti_hecc_error()
643 struct can_frame *cf; in ti_hecc_change_state() local
648 skb = alloc_can_err_skb(priv->ndev, &cf); in ti_hecc_change_state()
654 can_change_state(priv->ndev, cf, tx_state, rx_state); in ti_hecc_change_state()
657 cf->can_id |= CAN_ERR_CNT; in ti_hecc_change_state()
658 cf->data[6] = hecc_read(priv, HECC_CANTEC); in ti_hecc_change_state()
659 cf->data[7] = hecc_read(priv, HECC_CANREC); in ti_hecc_change_state()