Home
last modified time | relevance | path

Searched refs:mcp251xfd_priv (Results 1 – 11 of 11) sorted by relevance

/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-timestamp.c16 const struct mcp251xfd_priv *priv; in mcp251xfd_timestamp_raw_read()
20 priv = container_of(cc, struct mcp251xfd_priv, cc); in mcp251xfd_timestamp_raw_read()
33 struct mcp251xfd_priv *priv; in mcp251xfd_timestamp_work()
35 priv = container_of(delayed_work, struct mcp251xfd_priv, timestamp); in mcp251xfd_timestamp_work()
42 void mcp251xfd_timestamp_init(struct mcp251xfd_priv *priv) in mcp251xfd_timestamp_init()
54 void mcp251xfd_timestamp_start(struct mcp251xfd_priv *priv) in mcp251xfd_timestamp_start()
61 void mcp251xfd_timestamp_stop(struct mcp251xfd_priv *priv) in mcp251xfd_timestamp_stop()
H A Dmcp251xfd-core.c95 mcp251xfd_get_model_str(const struct mcp251xfd_priv *priv) in mcp251xfd_get_model_str()
806 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_set_mode()
834 const struct mcp251xfd_priv *priv = netdev_priv(ndev); in __mcp251xfd_get_berr_counter()
854 const struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_get_berr_counter()
1423 struct mcp251xfd_priv *_priv = (priv); \
1436 struct mcp251xfd_priv *priv = dev_id; in mcp251xfd_irq()
1596 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_open()
1670 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_stop()
2008 struct mcp251xfd_priv *priv; in mcp251xfd_probe()
2066 ndev = alloc_candev(sizeof(struct mcp251xfd_priv), in mcp251xfd_probe()
[all …]
H A Dmcp251xfd-rx.c30 mcp251xfd_rx_tail_get_from_chip(const struct mcp251xfd_priv *priv, in mcp251xfd_rx_tail_get_from_chip()
49 mcp251xfd_check_rx_tail(const struct mcp251xfd_priv *priv, in mcp251xfd_check_rx_tail()
74 mcp251xfd_get_rx_len(const struct mcp251xfd_priv *priv, in mcp251xfd_get_rx_len()
120 mcp251xfd_hw_rx_obj_to_skb(const struct mcp251xfd_priv *priv, in mcp251xfd_hw_rx_obj_to_skb()
165 mcp251xfd_handle_rxif_one(struct mcp251xfd_priv *priv, in mcp251xfd_handle_rxif_one()
212 mcp251xfd_rx_obj_read(const struct mcp251xfd_priv *priv, in mcp251xfd_rx_obj_read()
229 mcp251xfd_handle_rxif_ring_uinc(const struct mcp251xfd_priv *priv, in mcp251xfd_handle_rxif_ring_uinc()
262 mcp251xfd_handle_rxif_ring(struct mcp251xfd_priv *priv, in mcp251xfd_handle_rxif_ring()
308 int mcp251xfd_handle_rxif(struct mcp251xfd_priv *priv) in mcp251xfd_handle_rxif()
H A Dmcp251xfd.h617 struct mcp251xfd_priv { struct
677 mcp251xfd_is_##_model(const struct mcp251xfd_priv *priv) \ argument
793 mcp251xfd_spi_cmd_write(const struct mcp251xfd_priv *priv, in mcp251xfd_spi_cmd_write()
951 void mcp251xfd_ethtool_init(struct mcp251xfd_priv *priv);
952 int mcp251xfd_regmap_init(struct mcp251xfd_priv *priv);
954 int mcp251xfd_ring_init(struct mcp251xfd_priv *priv);
955 void mcp251xfd_ring_free(struct mcp251xfd_priv *priv);
956 int mcp251xfd_ring_alloc(struct mcp251xfd_priv *priv);
957 int mcp251xfd_handle_rxif(struct mcp251xfd_priv *priv);
958 int mcp251xfd_handle_tefif(struct mcp251xfd_priv *priv);
[all …]
H A Dmcp251xfd-tef.c25 mcp251xfd_tef_tail_get_from_chip(const struct mcp251xfd_priv *priv, in mcp251xfd_tef_tail_get_from_chip()
40 static int mcp251xfd_check_tef_tail(const struct mcp251xfd_priv *priv) in mcp251xfd_check_tef_tail()
64 mcp251xfd_handle_tefif_one(struct mcp251xfd_priv *priv, in mcp251xfd_handle_tefif_one()
112 mcp251xfd_get_tef_len(struct mcp251xfd_priv *priv, u8 *len_p) in mcp251xfd_get_tef_len()
156 mcp251xfd_tef_obj_read(const struct mcp251xfd_priv *priv, in mcp251xfd_tef_obj_read()
179 static inline void mcp251xfd_ecc_tefif_successful(struct mcp251xfd_priv *priv) in mcp251xfd_ecc_tefif_successful()
186 int mcp251xfd_handle_tefif(struct mcp251xfd_priv *priv) in mcp251xfd_handle_tefif()
H A Dmcp251xfd-tx.c31 mcp251xfd_tx_obj_from_skb(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_obj_from_skb()
134 static void mcp251xfd_tx_failure_drop(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_failure_drop()
156 struct mcp251xfd_priv *priv = container_of(work, struct mcp251xfd_priv, in mcp251xfd_tx_obj_write_sync()
167 static int mcp251xfd_tx_obj_write(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_obj_write()
173 static bool mcp251xfd_tx_busy(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_busy()
206 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_start_xmit()
H A Dmcp251xfd-regmap.c29 struct mcp251xfd_priv *priv = spi_get_drvdata(spi); in mcp251xfd_regmap_nocrc_gather_write()
87 struct mcp251xfd_priv *priv = spi_get_drvdata(spi); in mcp251xfd_regmap_nocrc_update_bits()
154 struct mcp251xfd_priv *priv = spi_get_drvdata(spi); in mcp251xfd_regmap_nocrc_read()
204 struct mcp251xfd_priv *priv = spi_get_drvdata(spi); in mcp251xfd_regmap_crc_gather_write()
264 mcp251xfd_regmap_crc_read_one(struct mcp251xfd_priv *priv, in mcp251xfd_regmap_crc_read_one()
287 struct mcp251xfd_priv *priv = spi_get_drvdata(spi); in mcp251xfd_regmap_crc_read()
467 mcp251xfd_regmap_use_nocrc(struct mcp251xfd_priv *priv) in mcp251xfd_regmap_use_nocrc()
474 mcp251xfd_regmap_use_crc(struct mcp251xfd_priv *priv) in mcp251xfd_regmap_use_crc()
481 mcp251xfd_regmap_init_nocrc(struct mcp251xfd_priv *priv) in mcp251xfd_regmap_init_nocrc()
534 mcp251xfd_regmap_init_crc(struct mcp251xfd_priv *priv) in mcp251xfd_regmap_init_crc()
[all …]
H A Dmcp251xfd-ethtool.c20 const struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_ring_get_ringparam()
38 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_ring_set_ringparam()
61 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_ring_get_coalesce()
91 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_ring_set_coalesce()
131 void mcp251xfd_ethtool_init(struct mcp251xfd_priv *priv) in mcp251xfd_ethtool_init()
H A Dmcp251xfd-dump.c64 static void mcp251xfd_dump_registers(const struct mcp251xfd_priv *priv, in mcp251xfd_dump_registers()
117 static void mcp251xfd_dump_tef_ring(const struct mcp251xfd_priv *priv, in mcp251xfd_dump_tef_ring()
151 static void mcp251xfd_dump_rx_ring_one(const struct mcp251xfd_priv *priv, in mcp251xfd_dump_rx_ring_one()
184 static void mcp251xfd_dump_rx_ring(const struct mcp251xfd_priv *priv, in mcp251xfd_dump_rx_ring()
194 static void mcp251xfd_dump_tx_ring(const struct mcp251xfd_priv *priv, in mcp251xfd_dump_tx_ring()
227 static void mcp251xfd_dump_end(const struct mcp251xfd_priv *priv, in mcp251xfd_dump_end()
241 void mcp251xfd_dump(const struct mcp251xfd_priv *priv) in mcp251xfd_dump()
H A Dmcp251xfd-ring.c21 mcp251xfd_cmd_prepare_write_reg(const struct mcp251xfd_priv *priv, in mcp251xfd_cmd_prepare_write_reg()
67 mcp251xfd_ring_init_tef(struct mcp251xfd_priv *priv, u16 *base) in mcp251xfd_ring_init_tef()
133 mcp251xfd_tx_ring_init_tx_obj(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_ring_init_tx_obj()
169 mcp251xfd_ring_init_tx(struct mcp251xfd_priv *priv, u16 *base, u8 *fifo_nr) in mcp251xfd_ring_init_tx()
199 mcp251xfd_ring_init_rx(struct mcp251xfd_priv *priv, u16 *base, u8 *fifo_nr) in mcp251xfd_ring_init_rx()
288 int mcp251xfd_ring_init(struct mcp251xfd_priv *priv) in mcp251xfd_ring_init()
403 void mcp251xfd_ring_free(struct mcp251xfd_priv *priv) in mcp251xfd_ring_free()
415 struct mcp251xfd_priv *priv = container_of(t, struct mcp251xfd_priv, in mcp251xfd_rx_irq_timer()
429 struct mcp251xfd_priv *priv = container_of(t, struct mcp251xfd_priv, in mcp251xfd_tx_irq_timer()
470 int mcp251xfd_ring_alloc(struct mcp251xfd_priv *priv) in mcp251xfd_ring_alloc()
H A Dmcp251xfd-chip-fifo.c20 mcp251xfd_chip_rx_fifo_init_one(const struct mcp251xfd_priv *priv, in mcp251xfd_chip_rx_fifo_init_one()
49 mcp251xfd_chip_rx_filter_init_one(const struct mcp251xfd_priv *priv, in mcp251xfd_chip_rx_filter_init_one()
63 int mcp251xfd_chip_fifo_init(const struct mcp251xfd_priv *priv) in mcp251xfd_chip_fifo_init()