Lines Matching refs:cf

496 	struct can_frame *cf;
501 skb = alloc_can_err_skb(ndev, &cf);
509 cf->can_id |= CAN_ERR_BUSOFF;
518 cf->can_id |= CAN_ERR_CRTL;
520 cf->data[1] |= CAN_ERR_CRTL_RX_WARNING;
522 cf->data[1] |= CAN_ERR_CRTL_TX_WARNING;
530 cf->can_id |= CAN_ERR_CRTL;
532 cf->data[1] |= CAN_ERR_CRTL_RX_PASSIVE;
534 cf->data[1] |= CAN_ERR_CRTL_TX_PASSIVE;
542 cf->data[2] |= CAN_ERR_PROT_STUFF;
547 cf->data[2] |= CAN_ERR_PROT_FORM;
552 cf->can_id |= CAN_ERR_ACK;
558 cf->data[2] |= CAN_ERR_PROT_BIT;
563 cf->data[2] |= CAN_ERR_PROT_LOC_CRC_SEQ |
572 cf->data[6] = errc & PCH_TEC;
573 cf->data[7] = (errc & PCH_REC) >> 8;
579 stats->rx_bytes += cf->can_dlc;
622 struct can_frame *cf;
631 skb = alloc_can_err_skb(ndev, &cf);
635 cf->can_id |= CAN_ERR_CRTL;
636 cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW;
649 struct can_frame *cf;
679 skb = alloc_can_skb(priv->ndev, &cf);
690 cf->can_id = id | CAN_EFF_FLAG;
693 cf->can_id = id;
697 cf->can_id |= CAN_RTR_FLAG;
699 cf->can_dlc = get_can_dlc((ioread32(&priv->regs->
702 for (i = 0; i < cf->can_dlc; i += 2) {
704 cf->data[i] = data_reg;
705 cf->data[i + 1] = data_reg >> 8;
712 stats->rx_bytes += cf->can_dlc;
896 struct can_frame *cf = (struct can_frame *)skb->data;
918 if (cf->can_id & CAN_EFF_FLAG) {
919 iowrite32(cf->can_id & 0xffff, &priv->regs->ifregs[1].id1);
920 id2 = ((cf->can_id >> 16) & 0x1fff) | PCH_ID2_XTD;
923 id2 = (cf->can_id & CAN_SFF_MASK) << 2;
929 if (!(cf->can_id & CAN_RTR_FLAG))
935 for (i = 0; i < cf->can_dlc; i += 2) {
936 iowrite16(cf->data[i] | (cf->data[i + 1] << 8),
943 iowrite32(cf->can_dlc | PCH_IF_MCONT_NEWDAT | PCH_IF_MCONT_TXRQXT |