Home
last modified time | relevance | path

Searched refs:fd_mode (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-ram.c64 const bool fd_mode) in can_ram_get_layout() argument
71 num_tx = config->tx.def[fd_mode]; in can_ram_get_layout()
75 ram_free -= config->tx.size[fd_mode] * num_tx; in can_ram_get_layout()
77 num_rx = ram_free / config->rx.size[fd_mode]; in can_ram_get_layout()
85 ram_free -= config->tx.size[fd_mode] * config->tx.min; in can_ram_get_layout()
86 num_rx = ram_free / config->rx.size[fd_mode]; in can_ram_get_layout()
89 ram_free -= config->rx.size[fd_mode] * config->rx.min; in can_ram_get_layout()
90 num_tx = ram_free / config->tx.size[fd_mode]; in can_ram_get_layout()
129 ram_free = config->size - config->rx.size[fd_mode] * num_rx; in can_ram_get_layout()
130 num_tx = ram_free / config->tx.size[fd_mode]; in can_ram_get_layout()
H A Dmcp251xfd-ethtool.c21 const bool fd_mode = mcp251xfd_is_fd_mode(priv); in mcp251xfd_ring_get_ringparam() local
24 can_ram_get_layout(&layout, &mcp251xfd_ram_config, NULL, NULL, fd_mode); in mcp251xfd_ring_get_ringparam()
39 const bool fd_mode = mcp251xfd_is_fd_mode(priv); in mcp251xfd_ring_set_ringparam() local
42 can_ram_get_layout(&layout, &mcp251xfd_ram_config, ring, NULL, fd_mode); in mcp251xfd_ring_set_ringparam()
92 const bool fd_mode = mcp251xfd_is_fd_mode(priv); in mcp251xfd_ring_set_coalesce() local
99 can_ram_get_layout(&layout, &mcp251xfd_ram_config, &ring, ec, fd_mode); in mcp251xfd_ring_set_coalesce()
H A Dmcp251xfd-ram.h60 const bool fd_mode);
H A Dmcp251xfd-ring.c472 const bool fd_mode = mcp251xfd_is_fd_mode(priv); in mcp251xfd_ring_alloc() local
479 if (fd_mode != test_bit(MCP251XFD_FLAGS_FD_MODE, priv->flags)) { in mcp251xfd_ring_alloc()
494 can_ram_get_layout(&layout, &mcp251xfd_ram_config, &ring, &ec, fd_mode); in mcp251xfd_ring_alloc()
503 if (fd_mode) { in mcp251xfd_ring_alloc()
/openbmc/qemu/net/can/
H A Dcan_socketcan.c108 if (!ch->bus_client.fd_mode) { in can_host_socketcan_read()
141 if (!ch->bus_client.fd_mode) { in can_host_socketcan_receive()
238 c->parent.bus_client.fd_mode = true; in can_host_socketcan_connect()
/openbmc/qemu/include/net/
H A Dcan_emu.h105 bool fd_mode; member
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.h696 u8 fd_mode; member
H A Dhclge_main.c5390 static int hclge_get_fd_mode(struct hclge_dev *hdev, u8 *fd_mode) in hclge_get_fd_mode() argument
5406 *fd_mode = req->mode; in hclge_get_fd_mode()
5488 ret = hclge_get_fd_mode(hdev, &hdev->fd_cfg.fd_mode); in hclge_init_fd_config()
5492 switch (hdev->fd_cfg.fd_mode) { in hclge_init_fd_config()
5502 hdev->fd_cfg.fd_mode); in hclge_init_fd_config()
5519 if (hdev->fd_cfg.fd_mode == HCLGE_FD_MODE_DEPTH_2K_WIDTH_400B_STAGE_1) { in hclge_init_fd_config()
6008 if (hdev->fd_cfg.fd_mode != in hclge_fd_check_ext_tuple()
6155 if (hdev->fd_cfg.fd_mode != in hclge_fd_check_spec()