Lines Matching refs:frames
117 void *frames;
276 struct canfd_frame *cf = op->frames + op->cfsiz * op->currframe;
317 * (consisting of bcm_msg_head + x CAN frames)
320 struct canfd_frame *frames, int has_timestamp)
336 /* CAN frames starting here */
339 skb_put_data(skb, frames, datalen);
513 struct canfd_frame *cf = op->frames + op->cfsiz * index;
566 /* clear received CAN frames to indicate 'nothing received' */
666 /* send reply for RTR-request (placed in op->frames[0]) */
693 if ((get_u64(op->frames, 0) & get_u64(rxframe, 0)) ==
694 (get_u64(op->frames, 0) &
695 get_u64(op->frames + op->cfsiz * i, 0))) {
727 if ((op->frames) && (op->frames != &op->sframe))
728 kfree(op->frames);
846 bcm_send_to_user(op, msg_head, op->frames, 0);
863 /* we need a real device to send frames */
881 * Do we need more space for the CAN frames than currently
888 /* update CAN frames content */
891 cf = op->frames + op->cfsiz * i;
923 /* create array for CAN frames and copy the data */
925 op->frames = kmalloc_array(msg_head->nframes,
928 if (!op->frames) {
933 op->frames = &op->sframe;
937 cf = op->frames + op->cfsiz * i;
1024 if (op->frames != &op->sframe)
1025 kfree(op->frames);
1067 * Do we need more space for the CAN frames than currently
1075 /* update CAN frames content */
1076 err = memcpy_from_msg(op->frames, msg,
1103 /* create array for CAN frames and copy the data */
1104 op->frames = kmalloc_array(msg_head->nframes,
1107 if (!op->frames) {
1112 /* create and init array for received CAN frames */
1117 kfree(op->frames);
1123 op->frames = &op->sframe;
1128 err = memcpy_from_msg(op->frames, msg,
1131 if (op->frames != &op->sframe)
1132 kfree(op->frames);
1167 struct canfd_frame *frame0 = op->frames;
1251 /* we need a real device to send frames */