/Linux-v6.1/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-timestamp.c | 16 const struct mcp251xfd_priv *priv; in mcp251xfd_timestamp_read() 20 priv = container_of(cc, struct mcp251xfd_priv, cc); in mcp251xfd_timestamp_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_skb_set_timestamp(const struct mcp251xfd_priv *priv, in mcp251xfd_skb_set_timestamp() 52 void mcp251xfd_timestamp_init(struct mcp251xfd_priv *priv) in mcp251xfd_timestamp_init() 68 void mcp251xfd_timestamp_stop(struct mcp251xfd_priv *priv) in mcp251xfd_timestamp_stop()
|
D | mcp251xfd-core.c | 95 mcp251xfd_get_model_str(const struct mcp251xfd_priv *priv) in mcp251xfd_get_model_str() 140 static inline int mcp251xfd_vdd_enable(const struct mcp251xfd_priv *priv) in mcp251xfd_vdd_enable() 148 static inline int mcp251xfd_vdd_disable(const struct mcp251xfd_priv *priv) in mcp251xfd_vdd_disable() 157 mcp251xfd_transceiver_enable(const struct mcp251xfd_priv *priv) in mcp251xfd_transceiver_enable() 166 mcp251xfd_transceiver_disable(const struct mcp251xfd_priv *priv) in mcp251xfd_transceiver_disable() 174 static int mcp251xfd_clks_and_vdd_enable(const struct mcp251xfd_priv *priv) in mcp251xfd_clks_and_vdd_enable() 193 static int mcp251xfd_clks_and_vdd_disable(const struct mcp251xfd_priv *priv) in mcp251xfd_clks_and_vdd_disable() 212 mcp251xfd_chip_get_mode(const struct mcp251xfd_priv *priv, u8 *mode) in mcp251xfd_chip_get_mode() 227 __mcp251xfd_chip_set_mode(const struct mcp251xfd_priv *priv, in __mcp251xfd_chip_set_mode() 282 mcp251xfd_chip_set_mode(const struct mcp251xfd_priv *priv, in mcp251xfd_chip_set_mode() [all …]
|
D | mcp251xfd.h | 605 struct mcp251xfd_priv { struct 661 mcp251xfd_is_##_model(const struct mcp251xfd_priv *priv) \ argument 671 static inline bool mcp251xfd_is_fd_mode(const struct mcp251xfd_priv *priv) in mcp251xfd_is_fd_mode() 770 mcp251xfd_spi_cmd_write(const struct mcp251xfd_priv *priv, in mcp251xfd_spi_cmd_write() 789 static inline int mcp251xfd_get_timestamp(const struct mcp251xfd_priv *priv, in mcp251xfd_get_timestamp() 814 mcp251xfd_tx_tail_get_from_chip(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_tail_get_from_chip() 831 static inline u8 mcp251xfd_get_tef_head(const struct mcp251xfd_priv *priv) in mcp251xfd_get_tef_head() 836 static inline u8 mcp251xfd_get_tef_tail(const struct mcp251xfd_priv *priv) in mcp251xfd_get_tef_tail() 841 static inline u8 mcp251xfd_get_tef_len(const struct mcp251xfd_priv *priv) in mcp251xfd_get_tef_len() 846 static inline u8 mcp251xfd_get_tef_linear_len(const struct mcp251xfd_priv *priv) in mcp251xfd_get_tef_linear_len() [all …]
|
D | mcp251xfd-rx.c | 20 mcp251xfd_rx_head_get_from_chip(const struct mcp251xfd_priv *priv, in mcp251xfd_rx_head_get_from_chip() 39 mcp251xfd_rx_tail_get_from_chip(const struct mcp251xfd_priv *priv, in mcp251xfd_rx_tail_get_from_chip() 58 mcp251xfd_check_rx_tail(const struct mcp251xfd_priv *priv, in mcp251xfd_check_rx_tail() 83 mcp251xfd_rx_ring_update(const struct mcp251xfd_priv *priv, in mcp251xfd_rx_ring_update() 109 mcp251xfd_hw_rx_obj_to_skb(const struct mcp251xfd_priv *priv, in mcp251xfd_hw_rx_obj_to_skb() 156 mcp251xfd_handle_rxif_one(struct mcp251xfd_priv *priv, in mcp251xfd_handle_rxif_one() 184 mcp251xfd_rx_obj_read(const struct mcp251xfd_priv *priv, in mcp251xfd_rx_obj_read() 201 mcp251xfd_handle_rxif_ring(struct mcp251xfd_priv *priv, in mcp251xfd_handle_rxif_ring() 251 int mcp251xfd_handle_rxif(struct mcp251xfd_priv *priv) in mcp251xfd_handle_rxif()
|
D | mcp251xfd-tef.c | 20 mcp251xfd_tef_tail_get_from_chip(const struct mcp251xfd_priv *priv, in mcp251xfd_tef_tail_get_from_chip() 35 static int mcp251xfd_check_tef_tail(const struct mcp251xfd_priv *priv) in mcp251xfd_check_tef_tail() 59 mcp251xfd_handle_tefif_recover(const struct mcp251xfd_priv *priv, const u32 seq) in mcp251xfd_handle_tefif_recover() 87 mcp251xfd_handle_tefif_one(struct mcp251xfd_priv *priv, in mcp251xfd_handle_tefif_one() 123 static int mcp251xfd_tef_ring_update(struct mcp251xfd_priv *priv) in mcp251xfd_tef_ring_update() 148 mcp251xfd_tef_obj_read(const struct mcp251xfd_priv *priv, in mcp251xfd_tef_obj_read() 171 static inline void mcp251xfd_ecc_tefif_successful(struct mcp251xfd_priv *priv) in mcp251xfd_ecc_tefif_successful() 178 int mcp251xfd_handle_tefif(struct mcp251xfd_priv *priv) in mcp251xfd_handle_tefif()
|
D | mcp251xfd-regmap.c | 29 struct mcp251xfd_priv *priv = spi_get_drvdata(spi); in mcp251xfd_regmap_nocrc_gather_write() 51 mcp251xfd_update_bits_read_reg(const struct mcp251xfd_priv *priv, in mcp251xfd_update_bits_read_reg() 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() [all …]
|
D | mcp251xfd-ring.c | 21 mcp251xfd_cmd_prepare_write_reg(const struct mcp251xfd_priv *priv, in mcp251xfd_cmd_prepare_write_reg() 57 mcp251xfd_ring_init_tef(struct mcp251xfd_priv *priv, u16 *base) in mcp251xfd_ring_init_tef() 123 mcp251xfd_tx_ring_init_tx_obj(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_ring_init_tx_obj() 159 mcp251xfd_ring_init_tx(struct mcp251xfd_priv *priv, u16 *base, u8 *fifo_nr) in mcp251xfd_ring_init_tx() 189 mcp251xfd_ring_init_rx(struct mcp251xfd_priv *priv, u16 *base, u8 *fifo_nr) in mcp251xfd_ring_init_rx() 277 int mcp251xfd_ring_init(struct mcp251xfd_priv *priv) in mcp251xfd_ring_init() 384 void mcp251xfd_ring_free(struct mcp251xfd_priv *priv) in mcp251xfd_ring_free() 396 struct mcp251xfd_priv *priv = container_of(t, struct mcp251xfd_priv, in mcp251xfd_rx_irq_timer() 410 struct mcp251xfd_priv *priv = container_of(t, struct mcp251xfd_priv, in mcp251xfd_tx_irq_timer() 451 int mcp251xfd_ring_alloc(struct mcp251xfd_priv *priv) in mcp251xfd_ring_alloc()
|
D | mcp251xfd-ethtool.c | 20 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() 60 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_ring_get_coalesce() 90 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_ring_set_coalesce() 130 void mcp251xfd_ethtool_init(struct mcp251xfd_priv *priv) in mcp251xfd_ethtool_init()
|
D | mcp251xfd-dump.c | 64 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()
|
D | mcp251xfd-chip-fifo.c | 20 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()
|
D | mcp251xfd-tx.c | 31 mcp251xfd_tx_obj_from_skb(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_obj_from_skb() 134 static int mcp251xfd_tx_obj_write(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_obj_write() 140 static bool mcp251xfd_tx_busy(const struct mcp251xfd_priv *priv, in mcp251xfd_tx_busy() 168 struct mcp251xfd_priv *priv = netdev_priv(ndev); in mcp251xfd_start_xmit()
|