• Home
  • Raw
  • Download

Lines Matching refs:cfsiz

112 	int cfsiz;  member
276 struct canfd_frame *cf = op->frames + op->cfsiz * op->currframe; in bcm_can_tx()
289 skb = alloc_skb(op->cfsiz + sizeof(struct can_skb_priv), gfp_any()); in bcm_can_tx()
297 skb_put_data(skb, cf, op->cfsiz); in bcm_can_tx()
326 unsigned int datalen = head->nframes * op->cfsiz; in bcm_send_to_user()
470 memcpy(lastdata, rxdata, op->cfsiz); in bcm_rx_update_and_send()
513 struct canfd_frame *cf = op->frames + op->cfsiz * index; in bcm_rx_cmp_to_index()
514 struct canfd_frame *lcf = op->last_frames + op->cfsiz * index; in bcm_rx_cmp_to_index()
567 memset(op->last_frames, 0, op->nframes * op->cfsiz); in bcm_rx_timeout_handler()
590 struct canfd_frame *lcf = op->last_frames + op->cfsiz * index; in bcm_rx_do_flush()
652 if (skb->len != op->cfsiz) in bcm_rx_handler()
695 get_u64(op->frames + op->cfsiz * i, 0))) { in bcm_rx_handler()
891 cf = op->frames + op->cfsiz * i; in bcm_tx_setup()
892 err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz); in bcm_tx_setup()
920 op->cfsiz = CFSIZ(msg_head->flags); in bcm_tx_setup()
926 op->cfsiz, in bcm_tx_setup()
937 cf = op->frames + op->cfsiz * i; in bcm_tx_setup()
938 err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz); in bcm_tx_setup()
1021 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1077 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1082 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1099 op->cfsiz = CFSIZ(msg_head->flags); in bcm_rx_setup()
1105 op->cfsiz, in bcm_rx_setup()
1114 op->cfsiz, in bcm_rx_setup()
1129 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1238 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1245 int cfsiz) in bcm_tx_send() argument
1255 skb = alloc_skb(cfsiz + sizeof(struct can_skb_priv), GFP_KERNEL); in bcm_tx_send()
1261 err = memcpy_from_msg(skb_put(skb, cfsiz), msg, cfsiz); in bcm_tx_send()
1283 return cfsiz + MHSIZ; in bcm_tx_send()
1295 int cfsiz; in bcm_sendmsg() local
1310 cfsiz = CFSIZ(msg_head.flags); in bcm_sendmsg()
1311 if ((size - MHSIZ) % cfsiz) in bcm_sendmsg()
1385 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()
1388 ret = bcm_tx_send(msg, ifindex, sk, cfsiz); in bcm_sendmsg()