Lines Matching full:adapter

40  * for another adapter), then it should be returned instead.
101 ena_rss_init_default(struct ena_adapter *adapter) in ena_rss_init_default() argument
103 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_rss_init_default()
104 device_t dev = adapter->pdev; in ena_rss_init_default()
115 qid = rss_get_indirection_to_bucket(i) % adapter->num_io_queues; in ena_rss_init_default()
117 qid = i % adapter->num_io_queues; in ena_rss_init_default()
150 rc = ena_rss_indir_init(adapter); in ena_rss_init_default()
161 ena_rss_configure(struct ena_adapter *adapter) in ena_rss_configure() argument
163 struct ena_com_dev *ena_dev = adapter->ena_dev; in ena_rss_configure()
168 rc = ena_rss_init_default(adapter); in ena_rss_configure()
170 ena_log(adapter->pdev, ERR, in ena_rss_configure()
173 ENA_FLAG_CLEAR_ATOMIC(ENA_FLAG_RSS_ACTIVE, adapter); in ena_rss_configure()
199 struct ena_adapter *adapter; in ena_rss_init_default_deferred() local
212 adapter = devclass_get_softc(dc, max); in ena_rss_init_default_deferred()
213 if (adapter != NULL) { in ena_rss_init_default_deferred()
214 rc = ena_rss_init_default(adapter); in ena_rss_init_default_deferred()
215 ENA_FLAG_SET_ATOMIC(ENA_FLAG_RSS_ACTIVE, adapter); in ena_rss_init_default_deferred()
217 ena_log(adapter->pdev, WARN, in ena_rss_init_default_deferred()
221 adapter); in ena_rss_init_default_deferred()
230 ena_rss_indir_get(struct ena_adapter *adapter, uint32_t *table) in ena_rss_indir_get() argument
234 rc = ena_com_indirect_table_get(adapter->ena_dev, table); in ena_rss_indir_get()
237 device_printf(adapter->pdev, in ena_rss_indir_get()
240 device_printf(adapter->pdev, in ena_rss_indir_get()
252 ena_rss_indir_set(struct ena_adapter *adapter, uint32_t *table) in ena_rss_indir_set() argument
257 rc = ena_com_indirect_table_fill_entry(adapter->ena_dev, i, in ena_rss_indir_set()
260 device_printf(adapter->pdev, in ena_rss_indir_set()
266 rc = ena_com_indirect_table_set(adapter->ena_dev); in ena_rss_indir_set()
268 device_printf(adapter->pdev, in ena_rss_indir_set()
271 device_printf(adapter->pdev, "Cannot set indirection table\n"); in ena_rss_indir_set()
277 ena_rss_indir_init(struct ena_adapter *adapter) in ena_rss_indir_init() argument
279 struct ena_indir *indir = adapter->rss_indir; in ena_rss_indir_init()
283 adapter->rss_indir = indir = malloc(sizeof(struct ena_indir), in ena_rss_indir_init()
286 rc = ena_rss_indir_get(adapter, indir->table); in ena_rss_indir_init()
288 free(adapter->rss_indir, M_DEVBUF); in ena_rss_indir_init()
289 adapter->rss_indir = NULL; in ena_rss_indir_init()