Lines Matching refs:frames
107 struct can_frame *frames; member
246 struct can_frame *cf = &op->frames[op->currframe]; in bcm_can_tx()
289 struct can_frame *frames, int has_timestamp) in bcm_send_to_user() argument
308 memcpy(skb_put(skb, datalen), frames, datalen); in bcm_send_to_user()
494 if ((GET_U64(&op->frames[index]) & GET_U64(rxdata)) != in bcm_rx_cmp_to_index()
495 (GET_U64(&op->frames[index]) & GET_U64(&op->last_frames[index]))) { in bcm_rx_cmp_to_index()
677 if ((GET_U64(&op->frames[0]) & GET_U64(rxframe)) == in bcm_rx_handler()
678 (GET_U64(&op->frames[0]) & in bcm_rx_handler()
679 GET_U64(&op->frames[i]))) { in bcm_rx_handler()
717 if ((op->frames) && (op->frames != &op->sframe)) in bcm_remove_op()
718 kfree(op->frames); in bcm_remove_op()
820 bcm_send_to_user(op, msg_head, op->frames, 0); in bcm_read_op()
860 err = memcpy_from_msg((u8 *)&op->frames[i], msg, CFSIZ); in bcm_tx_setup()
862 if (op->frames[i].can_dlc > 8) in bcm_tx_setup()
870 op->frames[i].can_id = msg_head->can_id; in bcm_tx_setup()
885 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_tx_setup()
887 if (!op->frames) { in bcm_tx_setup()
892 op->frames = &op->sframe; in bcm_tx_setup()
895 err = memcpy_from_msg((u8 *)&op->frames[i], msg, CFSIZ); in bcm_tx_setup()
897 if (op->frames[i].can_dlc > 8) in bcm_tx_setup()
901 if (op->frames != &op->sframe) in bcm_tx_setup()
902 kfree(op->frames); in bcm_tx_setup()
909 op->frames[i].can_id = msg_head->can_id; in bcm_tx_setup()
1024 err = memcpy_from_msg((u8 *)op->frames, msg, in bcm_rx_setup()
1049 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1051 if (!op->frames) { in bcm_rx_setup()
1060 kfree(op->frames); in bcm_rx_setup()
1066 op->frames = &op->sframe; in bcm_rx_setup()
1071 err = memcpy_from_msg((u8 *)op->frames, msg, in bcm_rx_setup()
1074 if (op->frames != &op->sframe) in bcm_rx_setup()
1075 kfree(op->frames); in bcm_rx_setup()
1128 (op->frames[0].can_id == op->can_id)) in bcm_rx_setup()
1129 op->frames[0].can_id = op->can_id & ~CAN_RTR_FLAG; in bcm_rx_setup()