Lines Matching refs:frames
113 void *frames; member
252 struct canfd_frame *cf = op->frames + op->cfsiz * op->currframe; in bcm_can_tx()
295 struct canfd_frame *frames, int has_timestamp) in bcm_send_to_user() argument
314 skb_put_data(skb, frames, datalen); in bcm_send_to_user()
487 struct canfd_frame *cf = op->frames + op->cfsiz * index; in bcm_rx_cmp_to_index()
693 if ((get_u64(op->frames, 0) & get_u64(rxframe, 0)) == in bcm_rx_handler()
694 (get_u64(op->frames, 0) & in bcm_rx_handler()
695 get_u64(op->frames + op->cfsiz * i, 0))) { in bcm_rx_handler()
743 if ((op->frames) && (op->frames != &op->sframe)) in bcm_remove_op()
744 kfree(op->frames); in bcm_remove_op()
851 bcm_send_to_user(op, msg_head, op->frames, 0); in bcm_read_op()
892 cf = op->frames + op->cfsiz * i; in bcm_tx_setup()
926 op->frames = kmalloc_array(msg_head->nframes, in bcm_tx_setup()
929 if (!op->frames) { in bcm_tx_setup()
934 op->frames = &op->sframe; in bcm_tx_setup()
938 cf = op->frames + op->cfsiz * i; in bcm_tx_setup()
950 if (op->frames != &op->sframe) in bcm_tx_setup()
951 kfree(op->frames); in bcm_tx_setup()
1071 err = memcpy_from_msg(op->frames, msg, in bcm_rx_setup()
1099 op->frames = kmalloc_array(msg_head->nframes, in bcm_rx_setup()
1102 if (!op->frames) { in bcm_rx_setup()
1112 kfree(op->frames); in bcm_rx_setup()
1118 op->frames = &op->sframe; in bcm_rx_setup()
1123 err = memcpy_from_msg(op->frames, msg, in bcm_rx_setup()
1126 if (op->frames != &op->sframe) in bcm_rx_setup()
1127 kfree(op->frames); in bcm_rx_setup()
1168 struct canfd_frame *frame0 = op->frames; in bcm_rx_setup()