Lines Matching refs:CFSIZ
134 #define CFSIZ sizeof(struct can_frame) macro
258 skb = alloc_skb(CFSIZ + sizeof(struct can_skb_priv), gfp_any()); in bcm_can_tx()
266 memcpy(skb_put(skb, CFSIZ), cf, CFSIZ); in bcm_can_tx()
295 unsigned int datalen = head->nframes * CFSIZ; in bcm_send_to_user()
438 memcpy(lastdata, rxdata, CFSIZ); in bcm_rx_update_and_send()
555 memset(op->last_frames, 0, op->nframes * CFSIZ); in bcm_rx_timeout_handler()
860 err = memcpy_from_msg((u8 *)&op->frames[i], msg, CFSIZ); in bcm_tx_setup()
885 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_tx_setup()
895 err = memcpy_from_msg((u8 *)&op->frames[i], msg, CFSIZ); in bcm_tx_setup()
979 return msg_head->nframes * CFSIZ + MHSIZ; in bcm_tx_setup()
1025 msg_head->nframes * CFSIZ); in bcm_rx_setup()
1030 memset(op->last_frames, 0, msg_head->nframes * CFSIZ); in bcm_rx_setup()
1049 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1057 op->last_frames = kzalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1072 msg_head->nframes * CFSIZ); in bcm_rx_setup()
1186 return msg_head->nframes * CFSIZ + MHSIZ; in bcm_rx_setup()
1202 skb = alloc_skb(CFSIZ + sizeof(struct can_skb_priv), GFP_KERNEL); in bcm_tx_send()
1208 err = memcpy_from_msg(skb_put(skb, CFSIZ), msg, CFSIZ); in bcm_tx_send()
1230 return CFSIZ + MHSIZ; in bcm_tx_send()
1248 if (size < MHSIZ || (size - MHSIZ) % CFSIZ) in bcm_sendmsg()
1328 if ((msg_head.nframes != 1) || (size != CFSIZ + MHSIZ)) in bcm_sendmsg()