Lines Matching refs:frames
120 void *frames;
304 cf = op->frames + op->cfsiz * op->currframe;
350 * (consisting of bcm_msg_head + x CAN frames)
353 struct canfd_frame *frames, int has_timestamp)
379 /* CAN frames starting here */
382 skb_put_data(skb, frames, datalen);
565 struct canfd_frame *cf = op->frames + op->cfsiz * index;
618 /* clear received CAN frames to indicate 'nothing received' */
724 /* send reply for RTR-request (placed in op->frames[0]) */
760 if ((get_u64(op->frames, 0) & get_u64(rxframe, 0)) ==
761 (get_u64(op->frames, 0) &
762 get_u64(op->frames + op->cfsiz * i, 0))) {
795 if ((op->frames) && (op->frames != &op->sframe))
796 kfree(op->frames);
914 bcm_send_to_user(op, msg_head, op->frames, 0);
931 /* we need a real device to send frames */
949 * Do we need more space for the CAN frames than currently
956 /* update CAN frames content */
959 cf = op->frames + op->cfsiz * i;
1017 /* create array for CAN frames and copy the data */
1019 op->frames = kmalloc_array(msg_head->nframes,
1022 if (!op->frames) {
1027 op->frames = &op->sframe;
1031 cf = op->frames + op->cfsiz * i;
1100 if (op->frames != &op->sframe)
1101 kfree(op->frames);
1143 * Do we need more space for the CAN frames than currently
1151 /* update CAN frames content */
1152 err = memcpy_from_msg(op->frames, msg,
1179 /* create array for CAN frames and copy the data */
1180 op->frames = kmalloc_array(msg_head->nframes,
1183 if (!op->frames) {
1188 /* create and init array for received CAN frames */
1193 kfree(op->frames);
1199 op->frames = &op->sframe;
1204 err = memcpy_from_msg(op->frames, msg,
1207 if (op->frames != &op->sframe)
1208 kfree(op->frames);
1240 struct canfd_frame *frame0 = op->frames;
1324 /* we need a real device to send frames */