Lines Matching refs:offload
259 struct can_rx_offload offload; member
615 can_rx_offload_irq_queue_err_skb(&priv->offload, skb); in flexcan_irq_bus_err()
655 can_rx_offload_irq_queue_err_skb(&priv->offload, skb); in flexcan_irq_state()
658 static inline struct flexcan_priv *rx_offload_to_priv(struct can_rx_offload *offload) in rx_offload_to_priv() argument
660 return container_of(offload, struct flexcan_priv, offload); in rx_offload_to_priv()
663 static unsigned int flexcan_mailbox_read(struct can_rx_offload *offload, in flexcan_mailbox_read() argument
667 struct flexcan_priv *priv = rx_offload_to_priv(offload); in flexcan_mailbox_read()
687 offload->dev->stats.rx_over_errors++; in flexcan_mailbox_read()
688 offload->dev->stats.rx_errors++; in flexcan_mailbox_read()
761 ret = can_rx_offload_irq_offload_timestamp(&priv->offload, in flexcan_irq()
769 can_rx_offload_irq_offload_fifo(&priv->offload); in flexcan_irq()
938 reg_mcr |= FLEXCAN_MCR_MAXMB(priv->offload.mb_last); in flexcan_chip_start()
992 for (i = priv->offload.mb_first; i <= priv->offload.mb_last; i++) in flexcan_chip_start()
1122 can_rx_offload_enable(&priv->offload); in flexcan_open()
1144 can_rx_offload_disable(&priv->offload); in flexcan_close()
1370 priv->offload.mailbox_read = flexcan_mailbox_read; in flexcan_probe()
1375 priv->offload.mb_first = FLEXCAN_RX_MB_OFF_TIMESTAMP_FIRST; in flexcan_probe()
1376 priv->offload.mb_last = FLEXCAN_RX_MB_OFF_TIMESTAMP_LAST; in flexcan_probe()
1378 imask = GENMASK_ULL(priv->offload.mb_last, priv->offload.mb_first); in flexcan_probe()
1382 err = can_rx_offload_add_timestamp(dev, &priv->offload); in flexcan_probe()
1386 err = can_rx_offload_add_fifo(dev, &priv->offload, FLEXCAN_NAPI_WEIGHT); in flexcan_probe()
1416 can_rx_offload_del(&priv->offload); in flexcan_remove()