• Home
  • Raw
  • Download

Lines Matching refs:cf

178 							 struct can_frame *cf)  in mcba_usb_get_free_ctx()  argument
188 if (cf) in mcba_usb_get_free_ctx()
309 struct can_frame *cf = (struct can_frame *)skb->data; in mcba_usb_start_xmit() local
321 ctx = mcba_usb_get_free_ctx(priv, cf); in mcba_usb_start_xmit()
325 if (cf->can_id & CAN_EFF_FLAG) { in mcba_usb_start_xmit()
331 sid |= (cf->can_id & 0x1ffc0000) >> 13; in mcba_usb_start_xmit()
333 sid |= (cf->can_id & 0x30000) >> 16; in mcba_usb_start_xmit()
337 put_unaligned_be16(cf->can_id & 0xffff, &usb_msg.eid); in mcba_usb_start_xmit()
342 put_unaligned_be16((cf->can_id & CAN_SFF_MASK) << 5, in mcba_usb_start_xmit()
347 usb_msg.dlc = cf->len; in mcba_usb_start_xmit()
349 memcpy(usb_msg.data, cf->data, usb_msg.dlc); in mcba_usb_start_xmit()
351 if (cf->can_id & CAN_RTR_FLAG) in mcba_usb_start_xmit()
416 struct can_frame *cf; in mcba_usb_process_can() local
421 skb = alloc_can_skb(priv->netdev, &cf); in mcba_usb_process_can()
431 cf->can_id = CAN_EFF_FLAG; in mcba_usb_process_can()
434 cf->can_id |= (sid & 0xffe0) << 13; in mcba_usb_process_can()
436 cf->can_id |= (sid & 3) << 16; in mcba_usb_process_can()
438 cf->can_id |= get_unaligned_be16(&msg->eid); in mcba_usb_process_can()
443 cf->can_id = (sid & 0xffe0) >> 5; in mcba_usb_process_can()
446 cf->len = can_cc_dlc2len(msg->dlc & MCBA_DLC_MASK); in mcba_usb_process_can()
449 cf->can_id |= CAN_RTR_FLAG; in mcba_usb_process_can()
451 memcpy(cf->data, msg->data, cf->len); in mcba_usb_process_can()
453 stats->rx_bytes += cf->len; in mcba_usb_process_can()