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()
700 get_u64(op->frames + op->cfsiz * i, 0))) { in bcm_rx_handler()
896 cf = op->frames + op->cfsiz * i; in bcm_tx_setup()
897 err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz); in bcm_tx_setup()
925 op->cfsiz = CFSIZ(msg_head->flags); in bcm_tx_setup()
931 op->cfsiz, in bcm_tx_setup()
942 cf = op->frames + op->cfsiz * i; in bcm_tx_setup()
943 err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz); in bcm_tx_setup()
1026 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_tx_setup()
1082 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1087 memset(op->last_frames, 0, msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1104 op->cfsiz = CFSIZ(msg_head->flags); in bcm_rx_setup()
1110 op->cfsiz, in bcm_rx_setup()
1119 op->cfsiz, in bcm_rx_setup()
1134 msg_head->nframes * op->cfsiz); in bcm_rx_setup()
1243 return msg_head->nframes * op->cfsiz + MHSIZ; in bcm_rx_setup()
1250 int cfsiz) in bcm_tx_send() argument
1260 skb = alloc_skb(cfsiz + sizeof(struct can_skb_priv), GFP_KERNEL); in bcm_tx_send()
1266 err = memcpy_from_msg(skb_put(skb, cfsiz), msg, cfsiz); in bcm_tx_send()
1288 return cfsiz + MHSIZ; in bcm_tx_send()
1300 int cfsiz; in bcm_sendmsg() local
1315 cfsiz = CFSIZ(msg_head.flags); in bcm_sendmsg()
1316 if ((size - MHSIZ) % cfsiz) in bcm_sendmsg()
1390 if ((msg_head.nframes != 1) || (size != cfsiz + MHSIZ)) in bcm_sendmsg()
1393 ret = bcm_tx_send(msg, ifindex, sk, cfsiz); in bcm_sendmsg()