MAX_UNITS
static int options[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1, };
if (card_number >= MAX_UNITS)
if (global_use_mmio < 0 && (unit >= MAX_UNITS || use_mmio[unit] < 0)) {
} else if (unit < MAX_UNITS && use_mmio[unit] >= 0)
else if (card_idx < MAX_UNITS) {
if (card_idx < MAX_UNITS) {
if (card_idx < MAX_UNITS &&
(vp->card_idx >= MAX_UNITS || hw_checksums[vp->card_idx] == -1)) {
static int options[MAX_UNITS] = { [0 ... MAX_UNITS-1] = -1 };
static int full_duplex[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
static int hw_checksums[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
static int flow_ctrl[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
static int enable_wol[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
static int use_mmio[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
if (fnd_cnt < MAX_UNITS) {
static int full_duplex[MAX_UNITS];
static int options[MAX_UNITS];
static int speed_duplex[MAX_UNITS] = { 0, };
static bool coalesce[MAX_UNITS] = { [ 0 ... MAX_UNITS-1] = true };
static bool dynamic_ipg[MAX_UNITS] = { [ 0 ... MAX_UNITS-1] = false };
static int options[MAX_UNITS];
static int full_duplex[MAX_UNITS];
static int homepna[MAX_UNITS];
if (cards_found < MAX_UNITS && homepna[cards_found])
if ((cards_found >= MAX_UNITS) ||
((cards_found >= MAX_UNITS) || full_duplex[cards_found]))
if (board_idx >= 0 && board_idx < MAX_UNITS) {
static int full_duplex[MAX_UNITS];
static int options[MAX_UNITS];
static int mtu[MAX_UNITS]; /* Jumbo MTU for interfaces. */
int i, option = find_cnt < MAX_UNITS ? options[find_cnt] : 0;
if (find_cnt < MAX_UNITS && full_duplex[find_cnt] > 0)
static int options[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
if (card_idx < MAX_UNITS) {
static int mtu[MAX_UNITS];
static int vlan[MAX_UNITS];
static int jumbo[MAX_UNITS];
static char *media[MAX_UNITS];
static char *media[MAX_UNITS];
if (card_idx < MAX_UNITS) {
static int options[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
static int full_duplex[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
option = card_idx < MAX_UNITS ? options[card_idx] : 0;
if (card_idx < MAX_UNITS && full_duplex[card_idx] > 0)
option = find_cnt < MAX_UNITS ? options[find_cnt] : 0;
static int options[MAX_UNITS];
if (find_cnt < MAX_UNITS && full_duplex[find_cnt])
static int full_duplex[MAX_UNITS];
static int rx_params[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
static int tx_params[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
option = card_idx < MAX_UNITS ? options[card_idx] : 0;
if (card_idx < MAX_UNITS && full_duplex[card_idx] > 0)
rx_int_var = card_idx < MAX_UNITS ? rx_params[card_idx] : -1;
tx_int_var = card_idx < MAX_UNITS ? tx_params[card_idx] : -1;
static int options[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
int i, option = find_cnt < MAX_UNITS ? options[find_cnt] : 0;
if (find_cnt < MAX_UNITS && full_duplex[find_cnt] > 0)
static int options[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
option = (board_idx >= MAX_UNITS) ? 0 : media[board_idx];
if (board_idx < MAX_UNITS && full_duplex[board_idx] > 0)
static int media[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
static int options[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
} else if (card_idx >= 0 && card_idx < MAX_UNITS) {
static int N[MAX_UNITS] = OPTION_DEFAULT;\
if (velocity_nics >= MAX_UNITS) {
#define OPTION_DEFAULT { [0 ... MAX_UNITS-1] = -1}