Lines Matching refs:CFSIZ
139 #define CFSIZ sizeof(struct can_frame) macro
263 skb = alloc_skb(CFSIZ + sizeof(struct can_skb_priv), gfp_any()); in bcm_can_tx()
271 memcpy(skb_put(skb, CFSIZ), cf, CFSIZ); in bcm_can_tx()
300 unsigned int datalen = head->nframes * CFSIZ; in bcm_send_to_user()
443 memcpy(lastdata, rxdata, CFSIZ); in bcm_rx_update_and_send()
560 memset(op->last_frames, 0, op->nframes * CFSIZ); in bcm_rx_timeout_handler()
865 err = memcpy_from_msg((u8 *)&op->frames[i], msg, CFSIZ); in bcm_tx_setup()
890 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_tx_setup()
900 err = memcpy_from_msg((u8 *)&op->frames[i], msg, CFSIZ); in bcm_tx_setup()
984 return msg_head->nframes * CFSIZ + MHSIZ; in bcm_tx_setup()
1030 msg_head->nframes * CFSIZ); in bcm_rx_setup()
1035 memset(op->last_frames, 0, msg_head->nframes * CFSIZ); in bcm_rx_setup()
1054 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1062 op->last_frames = kzalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1077 msg_head->nframes * CFSIZ); in bcm_rx_setup()
1191 return msg_head->nframes * CFSIZ + MHSIZ; in bcm_rx_setup()
1207 skb = alloc_skb(CFSIZ + sizeof(struct can_skb_priv), GFP_KERNEL); in bcm_tx_send()
1213 err = memcpy_from_msg(skb_put(skb, CFSIZ), msg, CFSIZ); in bcm_tx_send()
1235 return CFSIZ + MHSIZ; in bcm_tx_send()
1253 if (size < MHSIZ || (size - MHSIZ) % CFSIZ) in bcm_sendmsg()
1333 if ((msg_head.nframes != 1) || (size != CFSIZ + MHSIZ)) in bcm_sendmsg()