Lines Matching refs:table
374 const struct efx_nic_reg_table *table; in efx_nic_get_regs_len() local
384 for (table = efx_nic_reg_tables; in efx_nic_get_regs_len()
385 table < efx_nic_reg_tables + ARRAY_SIZE(efx_nic_reg_tables); in efx_nic_get_regs_len()
386 table++) in efx_nic_get_regs_len()
387 if (efx->type->revision >= table->min_revision && in efx_nic_get_regs_len()
388 efx->type->revision <= table->max_revision) in efx_nic_get_regs_len()
389 len += table->rows * min_t(size_t, table->step, 16); in efx_nic_get_regs_len()
397 const struct efx_nic_reg_table *table; in efx_nic_get_regs() local
409 for (table = efx_nic_reg_tables; in efx_nic_get_regs()
410 table < efx_nic_reg_tables + ARRAY_SIZE(efx_nic_reg_tables); in efx_nic_get_regs()
411 table++) { in efx_nic_get_regs()
414 if (!(efx->type->revision >= table->min_revision && in efx_nic_get_regs()
415 efx->type->revision <= table->max_revision)) in efx_nic_get_regs()
418 size = min_t(size_t, table->step, 16); in efx_nic_get_regs()
420 for (i = 0; i < table->rows; i++) { in efx_nic_get_regs()
421 switch (table->step) { in efx_nic_get_regs()
423 efx_readd(efx, buf, table->offset + 4 * i); in efx_nic_get_regs()
427 efx->membase + table->offset, in efx_nic_get_regs()
431 efx_reado_table(efx, buf, table->offset, i); in efx_nic_get_regs()
434 efx_reado_table(efx, buf, table->offset, 2 * i); in efx_nic_get_regs()