Lines Matching refs:frames

107 	struct can_frame *frames;  member
251 struct can_frame *cf = &op->frames[op->currframe]; in bcm_can_tx()
294 struct can_frame *frames, int has_timestamp) in bcm_send_to_user() argument
313 memcpy(skb_put(skb, datalen), frames, datalen); in bcm_send_to_user()
499 if ((GET_U64(&op->frames[index]) & GET_U64(rxdata)) != in bcm_rx_cmp_to_index()
500 (GET_U64(&op->frames[index]) & GET_U64(&op->last_frames[index]))) { in bcm_rx_cmp_to_index()
682 if ((GET_U64(&op->frames[0]) & GET_U64(rxframe)) == in bcm_rx_handler()
683 (GET_U64(&op->frames[0]) & in bcm_rx_handler()
684 GET_U64(&op->frames[i]))) { in bcm_rx_handler()
722 if ((op->frames) && (op->frames != &op->sframe)) in bcm_remove_op()
723 kfree(op->frames); in bcm_remove_op()
825 bcm_send_to_user(op, msg_head, op->frames, 0); in bcm_read_op()
865 err = memcpy_from_msg((u8 *)&op->frames[i], msg, CFSIZ); in bcm_tx_setup()
867 if (op->frames[i].can_dlc > 8) in bcm_tx_setup()
875 op->frames[i].can_id = msg_head->can_id; in bcm_tx_setup()
890 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_tx_setup()
892 if (!op->frames) { in bcm_tx_setup()
897 op->frames = &op->sframe; in bcm_tx_setup()
900 err = memcpy_from_msg((u8 *)&op->frames[i], msg, CFSIZ); in bcm_tx_setup()
902 if (op->frames[i].can_dlc > 8) in bcm_tx_setup()
906 if (op->frames != &op->sframe) in bcm_tx_setup()
907 kfree(op->frames); in bcm_tx_setup()
914 op->frames[i].can_id = msg_head->can_id; in bcm_tx_setup()
1029 err = memcpy_from_msg((u8 *)op->frames, msg, in bcm_rx_setup()
1054 op->frames = kmalloc(msg_head->nframes * CFSIZ, in bcm_rx_setup()
1056 if (!op->frames) { in bcm_rx_setup()
1065 kfree(op->frames); in bcm_rx_setup()
1071 op->frames = &op->sframe; in bcm_rx_setup()
1076 err = memcpy_from_msg((u8 *)op->frames, msg, in bcm_rx_setup()
1079 if (op->frames != &op->sframe) in bcm_rx_setup()
1080 kfree(op->frames); in bcm_rx_setup()
1133 (op->frames[0].can_id == op->can_id)) in bcm_rx_setup()
1134 op->frames[0].can_id = op->can_id & ~CAN_RTR_FLAG; in bcm_rx_setup()