Home
last modified time | relevance | path

Searched refs:MAX_UNITS (Results 1 – 18 of 18) sorted by relevance

/openbmc/linux/drivers/net/ethernet/amd/
H A Damd8111e.h556 #define MAX_UNITS 8 /* Maximum number of devices possible */ macro
796 static int speed_duplex[MAX_UNITS] = { 0, };
797 static bool coalesce[MAX_UNITS] = { [ 0 ... MAX_UNITS-1] = true };
798 static bool dynamic_ipg[MAX_UNITS] = { [ 0 ... MAX_UNITS-1] = false };
H A Dpcnet32.c140 #define MAX_UNITS 8 /* More are supported, limit only on options */ macro
141 static int options[MAX_UNITS];
142 static int full_duplex[MAX_UNITS];
143 static int homepna[MAX_UNITS];
1680 if (cards_found < MAX_UNITS && homepna[cards_found]) in pcnet32_probe1()
1869 if ((cards_found >= MAX_UNITS) || in pcnet32_probe1()
1888 ((cards_found >= MAX_UNITS) || full_duplex[cards_found])) in pcnet32_probe1()
/openbmc/linux/drivers/net/ethernet/3com/
H A D3c59x.c786 #define MAX_UNITS 8 macro
787 static int options[MAX_UNITS] = { [0 ... MAX_UNITS-1] = -1 };
788 static int full_duplex[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
789 static int hw_checksums[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
790 static int flow_ctrl[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
791 static int enable_wol[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
792 static int use_mmio[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
1017 } else if (unit < MAX_UNITS && use_mmio[unit] >= 0) in vortex_init_one()
1137 else if (card_idx < MAX_UNITS) { in vortex_probe1()
1242 if (card_idx < MAX_UNITS) { in vortex_probe1()
[all …]
H A D3c515.c79 #define MAX_UNITS 8 macro
394 static int options[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1, };
595 if (card_number >= MAX_UNITS) in corkscrew_setup()
/openbmc/linux/drivers/net/ethernet/8390/
H A Dne2k-pci.c40 #define MAX_UNITS 8 macro
43 static int full_duplex[MAX_UNITS];
44 static int options[MAX_UNITS];
374 if (fnd_cnt < MAX_UNITS) { in ne2k_pci_init_one()
/openbmc/linux/drivers/net/ethernet/packetengines/
H A Dhamachi.c85 #define MAX_UNITS 8 /* More are supported, limit only on options */ macro
86 static int options[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
87 static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
103 static int rx_params[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
104 static int tx_params[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
666 option = card_idx < MAX_UNITS ? options[card_idx] : 0; in hamachi_init_one()
707 if (card_idx < MAX_UNITS && full_duplex[card_idx] > 0) in hamachi_init_one()
722 rx_int_var = card_idx < MAX_UNITS ? rx_params[card_idx] : -1; in hamachi_init_one()
723 tx_int_var = card_idx < MAX_UNITS ? tx_params[card_idx] : -1; in hamachi_init_one()
H A Dyellowfin.c60 #define MAX_UNITS 8 /* More are supported, limit only on options */ macro
61 static int options[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
62 static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
378 int i, option = find_cnt < MAX_UNITS ? options[find_cnt] : 0; in yellowfin_init_one()
471 if (find_cnt < MAX_UNITS && full_duplex[find_cnt] > 0) in yellowfin_init_one()
/openbmc/u-boot/drivers/net/
H A Drtl8169.c67 #define MAX_UNITS 8 macro
68 static int media[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
992 option = (board_idx >= MAX_UNITS) ? 0 : media[board_idx]; in rtl_init()
/openbmc/linux/drivers/net/ethernet/dlink/
H A Ddl2k.c20 #define MAX_UNITS 8 macro
21 static int mtu[MAX_UNITS];
22 static int vlan[MAX_UNITS];
23 static int jumbo[MAX_UNITS];
24 static char *media[MAX_UNITS];
155 if (card_idx < MAX_UNITS) { in rio_probe1()
H A Dsundance.c53 #define MAX_UNITS 8 macro
54 static char *media[MAX_UNITS];
625 if (card_idx < MAX_UNITS) { in sundance_probe1()
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Dwinbond-840.c81 #define MAX_UNITS 8 /* More are supported, limit only on options */ macro
82 static int options[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
83 static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
357 int i, option = find_cnt < MAX_UNITS ? options[find_cnt] : 0; in w840_probe1()
417 if (find_cnt < MAX_UNITS && full_duplex[find_cnt] > 0) in w840_probe1()
H A Dtulip_core.c38 #define MAX_UNITS 8 macro
40 static int full_duplex[MAX_UNITS];
41 static int options[MAX_UNITS];
42 static int mtu[MAX_UNITS]; /* Jumbo MTU for interfaces. */
1634 if (board_idx >= 0 && board_idx < MAX_UNITS) { in tulip_init_one()
/openbmc/linux/drivers/net/ethernet/
H A Dfealnx.c43 #define MAX_UNITS 8 /* More are supported, limit only on options */ macro
44 static int options[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
45 static int full_duplex[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
495 option = card_idx < MAX_UNITS ? options[card_idx] : 0; in fealnx_init_one()
626 if (card_idx < MAX_UNITS && full_duplex[card_idx] > 0) in fealnx_init_one()
/openbmc/linux/drivers/net/ethernet/smsc/
H A Depic100.c38 #define MAX_UNITS 8 /* More are supported, limit only on options */ macro
39 static int options[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
40 static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
395 } else if (card_idx >= 0 && card_idx < MAX_UNITS) { in epic_init_one()
/openbmc/linux/drivers/net/ethernet/realtek/
H A D8139too.c146 #define MAX_UNITS 8 macro
147 static int media[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
148 static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
1078 option = (board_idx >= MAX_UNITS) ? 0 : media[board_idx]; in rtl8139_init_one()
1085 if (board_idx < MAX_UNITS && full_duplex[board_idx] > 0) in rtl8139_init_one()
/openbmc/linux/drivers/net/ethernet/via/
H A Dvia-velocity.h29 #define MAX_UNITS 8 macro
30 #define OPTION_DEFAULT { [0 ... MAX_UNITS-1] = -1}
H A Dvia-velocity.c259 static int N[MAX_UNITS] = OPTION_DEFAULT;\
2774 if (velocity_nics >= MAX_UNITS) { in velocity_probe()
/openbmc/linux/drivers/net/ethernet/natsemi/
H A Dnatsemi.c91 #define MAX_UNITS 8 /* More are supported, limit only on options */ macro
92 static int options[MAX_UNITS];
93 static int full_duplex[MAX_UNITS];
918 option = find_cnt < MAX_UNITS ? options[find_cnt] : 0; in natsemi_probe1()
928 if (find_cnt < MAX_UNITS && full_duplex[find_cnt]) in natsemi_probe1()