Home
last modified time | relevance | path

Searched refs:ena_dev (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/amazon/ena/
Dena_com.c69 static int ena_com_mem_addr_set(struct ena_com_dev *ena_dev, in ena_com_mem_addr_set() argument
73 if ((addr & GENMASK_ULL(ena_dev->dma_addr_bits - 1, 0)) != addr) { in ena_com_mem_addr_set()
74 netdev_err(ena_dev->net_device, in ena_com_mem_addr_set()
87 struct ena_com_dev *ena_dev = admin_queue->ena_dev; in ena_com_admin_init_sq() local
95 netdev_err(ena_dev->net_device, "Memory allocation failed\n"); in ena_com_admin_init_sq()
110 struct ena_com_dev *ena_dev = admin_queue->ena_dev; in ena_com_admin_init_cq() local
118 netdev_err(ena_dev->net_device, "Memory allocation failed\n"); in ena_com_admin_init_cq()
128 static int ena_com_admin_init_aenq(struct ena_com_dev *ena_dev, in ena_com_admin_init_aenq() argument
131 struct ena_com_aenq *aenq = &ena_dev->aenq; in ena_com_admin_init_aenq()
135 ena_dev->aenq.q_depth = ENA_ASYNC_QUEUE_DEPTH; in ena_com_admin_init_aenq()
[all …]
Dena_com.h218 struct ena_com_dev *ena_dev; member
377 int ena_com_mmio_reg_read_request_init(struct ena_com_dev *ena_dev);
383 void ena_com_set_mmio_read_mode(struct ena_com_dev *ena_dev,
390 void ena_com_mmio_reg_read_request_write_dev_addr(struct ena_com_dev *ena_dev);
395 void ena_com_mmio_reg_read_request_destroy(struct ena_com_dev *ena_dev);
406 int ena_com_admin_init(struct ena_com_dev *ena_dev,
416 void ena_com_admin_destroy(struct ena_com_dev *ena_dev);
424 int ena_com_dev_reset(struct ena_com_dev *ena_dev,
435 int ena_com_create_io_queue(struct ena_com_dev *ena_dev,
442 void ena_com_destroy_io_queue(struct ena_com_dev *ena_dev, u16 qid);
[all …]
Dena_ethtool.c171 ptr = (u64 *)&adapter->ena_dev->admin_queue.stats + in ena_dev_admin_queue_stats()
215 struct ena_com_dev *dev = adapter->ena_dev; in ena_get_ethtool_stats()
229 bool supported = ena_com_get_cap(adapter->ena_dev, ENA_ADMIN_ENI_STATS); in ena_get_hw_stats_count()
321 struct ena_com_dev *dev = adapter->ena_dev; in ena_get_ethtool_strings()
334 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_get_link_ksettings() local
339 rc = ena_com_get_link_params(ena_dev, &feat_resp); in ena_get_link_ksettings()
368 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_get_coalesce() local
370 if (!ena_com_interrupt_moderation_supported(ena_dev)) in ena_get_coalesce()
374 ena_com_get_nonadaptive_moderation_interval_tx(ena_dev) * in ena_get_coalesce()
375 ena_dev->intr_delay_resolution; in ena_get_coalesce()
[all …]
Dena_netdev.c123 ret = ena_com_set_dev_mtu(adapter->ena_dev, new_mtu); in ena_change_mtu()
680 ring->ena_dev = adapter->ena_dev; in ena_init_io_rings_common()
691 struct ena_com_dev *ena_dev; in ena_init_io_rings() local
695 ena_dev = adapter->ena_dev; in ena_init_io_rings()
706 txr->tx_max_header_size = ena_dev->tx_max_header_size; in ena_init_io_rings()
707 txr->tx_mem_queue_type = ena_dev->tx_mem_queue_type; in ena_init_io_rings()
710 ena_com_get_nonadaptive_moderation_interval_tx(ena_dev); in ena_init_io_rings()
724 ena_com_get_nonadaptive_moderation_interval_rx(ena_dev); in ena_init_io_rings()
1250 ena_com_destroy_io_queue(adapter->ena_dev, ena_qid); in ena_destroy_all_tx_queues()
1262 ena_com_destroy_io_queue(adapter->ena_dev, ena_qid); in ena_destroy_all_rx_queues()
[all …]
Dena_netdev.h239 struct ena_com_dev *ena_dev; member
311 struct ena_com_dev *ena_dev; member