Lines Matching refs:layout

22 	struct can_ram_layout layout;  in mcp251xfd_ring_get_ringparam()  local
24 can_ram_get_layout(&layout, &mcp251xfd_ram_config, NULL, NULL, fd_mode); in mcp251xfd_ring_get_ringparam()
25 ring->rx_max_pending = layout.max_rx; in mcp251xfd_ring_get_ringparam()
26 ring->tx_max_pending = layout.max_tx; in mcp251xfd_ring_get_ringparam()
40 struct can_ram_layout layout; in mcp251xfd_ring_set_ringparam() local
42 can_ram_get_layout(&layout, &mcp251xfd_ram_config, ring, NULL, fd_mode); in mcp251xfd_ring_set_ringparam()
43 if ((layout.cur_rx != priv->rx_obj_num || in mcp251xfd_ring_set_ringparam()
44 layout.cur_tx != priv->tx->obj_num) && in mcp251xfd_ring_set_ringparam()
48 priv->rx_obj_num = layout.cur_rx; in mcp251xfd_ring_set_ringparam()
49 priv->rx_obj_num_coalesce_irq = layout.rx_coalesce; in mcp251xfd_ring_set_ringparam()
50 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_ringparam()
51 priv->tx_obj_num_coalesce_irq = layout.tx_coalesce; in mcp251xfd_ring_set_ringparam()
97 struct can_ram_layout layout; in mcp251xfd_ring_set_coalesce() local
99 can_ram_get_layout(&layout, &mcp251xfd_ram_config, &ring, ec, fd_mode); in mcp251xfd_ring_set_coalesce()
101 if ((layout.rx_coalesce != priv->rx_obj_num_coalesce_irq || in mcp251xfd_ring_set_coalesce()
103 layout.tx_coalesce != priv->tx_obj_num_coalesce_irq || in mcp251xfd_ring_set_coalesce()
108 priv->rx_obj_num = layout.cur_rx; in mcp251xfd_ring_set_coalesce()
109 priv->rx_obj_num_coalesce_irq = layout.rx_coalesce; in mcp251xfd_ring_set_coalesce()
112 priv->tx->obj_num = layout.cur_tx; in mcp251xfd_ring_set_coalesce()
113 priv->tx_obj_num_coalesce_irq = layout.tx_coalesce; in mcp251xfd_ring_set_coalesce()
133 struct can_ram_layout layout; in mcp251xfd_ethtool_init() local
137 can_ram_get_layout(&layout, &mcp251xfd_ram_config, NULL, NULL, false); in mcp251xfd_ethtool_init()
138 priv->rx_obj_num = layout.default_rx; in mcp251xfd_ethtool_init()
139 priv->tx->obj_num = layout.default_tx; in mcp251xfd_ethtool_init()