usr/src/cmd/ndmpd/tlm/tlm_lib.c
1106
scsi_get_devtype(char *adapter, int sid, int lun)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1127
scsi_dev_exists(char *adapter, int sid, int lun)
usr/src/cmd/ndmpd/tlm/tlm_lib.c
1155
scsi_get_adapter(int adapter)
usr/src/grub/grub-0.97/netboot/e1000_hw.h
1620
#define TBI_ACCEPT(adapter, status, errors, length, last_byte) \
usr/src/grub/grub-0.97/netboot/e1000_hw.h
1621
((adapter)->tbi_compatibility_on && \
usr/src/grub/grub-0.97/netboot/e1000_hw.h
1625
(((length) > ((adapter)->min_frame_size - VLAN_TAG_SIZE)) && \
usr/src/grub/grub-0.97/netboot/e1000_hw.h
1626
((length) <= ((adapter)->max_frame_size + 1))) : \
usr/src/grub/grub-0.97/netboot/e1000_hw.h
1627
(((length) > (adapter)->min_frame_size) && \
usr/src/grub/grub-0.97/netboot/e1000_hw.h
1628
((length) <= ((adapter)->max_frame_size + VLAN_TAG_SIZE + 1)))))
usr/src/uts/common/io/chxge/com/ch_mac.c
108
if (t1_is_asic(mac->adapter)) {
usr/src/uts/common/io/chxge/com/ch_mac.c
116
mac_intr = t1_read_reg_4(mac->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/ch_mac.c
118
t1_write_reg_4(mac->adapter, A_PL_ENABLE, mac_intr);
usr/src/uts/common/io/chxge/com/ch_mac.c
120
mac_intr = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
123
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
134
if (t1_is_asic(mac->adapter)) {
usr/src/uts/common/io/chxge/com/ch_mac.c
142
t1_write_reg_4(mac->adapter, A_PL_CAUSE,
usr/src/uts/common/io/chxge/com/ch_mac.c
145
mac_intr = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
148
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
159
data32_lo = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
161
data32_hi = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
179
data32 = t1_read_reg_4(mac->adapter, MAC_REG_CSR(idx));
usr/src/uts/common/io/chxge/com/ch_mac.c
180
t1_write_reg_4(mac->adapter, MAC_REG_CSR(idx),
usr/src/uts/common/io/chxge/com/ch_mac.c
184
data32 = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
193
adapter_name(mac->adapter), idx);
usr/src/uts/common/io/chxge/com/ch_mac.c
204
val = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
209
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
220
data32 = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
246
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
255
val = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
261
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
270
val = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
276
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
284
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
293
u32 data32 = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
296
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
306
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
319
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
322
*p++ = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
371
static struct cmac *mac_create(adapter_t *adapter, int index)
usr/src/uts/common/io/chxge/com/ch_mac.c
387
mac->adapter = adapter;
usr/src/uts/common/io/chxge/com/ch_mac.c
389
data32 = t1_read_reg_4(adapter, MAC_REG_CSR(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
393
t1_write_reg_4(adapter, MAC_REG_CSR(mac->instance->index), data32);
usr/src/uts/common/io/chxge/com/ch_mac.c
397
t1_write_reg_4(adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
401
data32 = t1_read_reg_4(adapter, MAC_REG_IDLO(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
406
t1_write_reg_4(adapter, MAC_REG_IDLO(mac->instance->index),
usr/src/uts/common/io/chxge/com/ch_mac.c
408
t1_write_reg_4(adapter, MAC_REG_IDHI(mac->instance->index),
usr/src/uts/common/io/chxge/com/ch_mac.c
82
if (t1_is_asic(mac->adapter)) {
usr/src/uts/common/io/chxge/com/ch_mac.c
90
mac_intr = t1_read_reg_4(mac->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/ch_mac.c
92
t1_write_reg_4(mac->adapter, A_PL_ENABLE, mac_intr);
usr/src/uts/common/io/chxge/com/ch_mac.c
94
mac_intr = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
97
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_subr.c
1001
for_each_port(adapter, i) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1002
adapter->port[i].mac->ops->interrupt_enable(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
1004
adapter->port[i].phy->ops->interrupt_enable(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
1009
if (t1_is_asic(adapter)) {
usr/src/uts/common/io/chxge/com/ch_subr.c
101
t1_tpi_write(adapter_t *adapter, u32 addr, u32 value)
usr/src/uts/common/io/chxge/com/ch_subr.c
1010
u32 pl_intr = t1_read_reg_4(adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/ch_subr.c
1013
(void) t1_os_pci_write_config_4(adapter, A_PCICFG_INTR_ENABLE,
usr/src/uts/common/io/chxge/com/ch_subr.c
1016
adapter->slow_intr_mask |= F_PL_INTR_EXT | F_PL_INTR_PCIX;
usr/src/uts/common/io/chxge/com/ch_subr.c
1018
t1_write_reg_4(adapter, A_PL_ENABLE, pl_intr);
usr/src/uts/common/io/chxge/com/ch_subr.c
1024
t1_interrupts_disable(adapter_t * adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
1028
(void) t1_sge_intr_disable(adapter->sge);
usr/src/uts/common/io/chxge/com/ch_subr.c
1029
t1_tp_intr_disable(adapter->tp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1031
if (adapter->mc4) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1032
t1_ulp_intr_disable(adapter->ulp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1033
t1_mc3_intr_disable(adapter->mc3);
usr/src/uts/common/io/chxge/com/ch_subr.c
1034
t1_mc4_intr_disable(adapter->mc4);
usr/src/uts/common/io/chxge/com/ch_subr.c
1035
t1_mc5_intr_disable(adapter->mc5);
usr/src/uts/common/io/chxge/com/ch_subr.c
1038
if (adapter->espi)
usr/src/uts/common/io/chxge/com/ch_subr.c
1039
t1_espi_intr_disable(adapter->espi);
usr/src/uts/common/io/chxge/com/ch_subr.c
1042
for_each_port(adapter, i) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1043
adapter->port[i].mac->ops->interrupt_disable(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
1045
adapter->port[i].phy->ops->interrupt_disable(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
105
TPI_LOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1050
if (t1_is_asic(adapter))
usr/src/uts/common/io/chxge/com/ch_subr.c
1051
t1_write_reg_4(adapter, A_PL_ENABLE, 0);
usr/src/uts/common/io/chxge/com/ch_subr.c
1054
(void) t1_os_pci_write_config_4(adapter, A_PCICFG_INTR_ENABLE, 0);
usr/src/uts/common/io/chxge/com/ch_subr.c
1056
adapter->slow_intr_mask = 0;
usr/src/uts/common/io/chxge/com/ch_subr.c
106
ret = __t1_tpi_write(adapter, addr, value);
usr/src/uts/common/io/chxge/com/ch_subr.c
1061
t1_interrupts_clear(adapter_t * adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
1065
(void) t1_sge_intr_clear(adapter->sge);
usr/src/uts/common/io/chxge/com/ch_subr.c
1066
t1_tp_intr_clear(adapter->tp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1068
if (adapter->mc4) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1069
t1_ulp_intr_clear(adapter->ulp);
usr/src/uts/common/io/chxge/com/ch_subr.c
107
TPI_UNLOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1070
t1_mc3_intr_clear(adapter->mc3);
usr/src/uts/common/io/chxge/com/ch_subr.c
1071
t1_mc4_intr_clear(adapter->mc4);
usr/src/uts/common/io/chxge/com/ch_subr.c
1072
t1_mc5_intr_clear(adapter->mc5);
usr/src/uts/common/io/chxge/com/ch_subr.c
1075
if (adapter->espi)
usr/src/uts/common/io/chxge/com/ch_subr.c
1076
t1_espi_intr_clear(adapter->espi);
usr/src/uts/common/io/chxge/com/ch_subr.c
1079
for_each_port(adapter, i) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1080
adapter->port[i].mac->ops->interrupt_clear(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
1082
adapter->port[i].phy->ops->interrupt_clear(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
1087
if (t1_is_asic(adapter)) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1088
u32 pl_intr = t1_read_reg_4(adapter, A_PL_CAUSE);
usr/src/uts/common/io/chxge/com/ch_subr.c
1090
t1_write_reg_4(adapter, A_PL_CAUSE,
usr/src/uts/common/io/chxge/com/ch_subr.c
1095
(void) t1_os_pci_write_config_4(adapter, A_PCICFG_INTR_CAUSE,
usr/src/uts/common/io/chxge/com/ch_subr.c
1102
static int asic_slow_intr(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
1104
u32 cause = t1_read_reg_4(adapter, A_PL_CAUSE);
usr/src/uts/common/io/chxge/com/ch_subr.c
1106
cause &= adapter->slow_intr_mask;
usr/src/uts/common/io/chxge/com/ch_subr.c
1110
(void) t1_sge_intr_error_handler(adapter->sge);
usr/src/uts/common/io/chxge/com/ch_subr.c
1112
(void) t1_tp_intr_handler(adapter->tp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1115
(void) t1_mc3_intr_handler(adapter->mc3);
usr/src/uts/common/io/chxge/com/ch_subr.c
1117
(void) t1_mc4_intr_handler(adapter->mc4);
usr/src/uts/common/io/chxge/com/ch_subr.c
1119
(void) t1_ulp_intr_handler(adapter->ulp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1121
(void) t1_mc5_intr_handler(adapter->mc5);
usr/src/uts/common/io/chxge/com/ch_subr.c
1124
(void) t1_espi_intr_handler(adapter->espi);
usr/src/uts/common/io/chxge/com/ch_subr.c
1126
(void) t1_pci_intr_handler(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1128
t1_os_elmer0_ext_intr(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1131
t1_write_reg_4(adapter, A_PL_CAUSE, cause);
usr/src/uts/common/io/chxge/com/ch_subr.c
1132
(void) t1_read_reg_4(adapter, A_PL_CAUSE); /* flush writes */
usr/src/uts/common/io/chxge/com/ch_subr.c
1137
t1_slow_intr_handler(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
1140
if (!t1_is_asic(adapter))
usr/src/uts/common/io/chxge/com/ch_subr.c
1141
return (fpga_slow_intr(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
1143
return (asic_slow_intr(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
1148
power_sequence_xpak(adapter_t * adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
115
__t1_tpi_read(adapter_t *adapter, u32 addr, u32 *valp)
usr/src/uts/common/io/chxge/com/ch_subr.c
1154
(void) t1_tpi_read(adapter, A_ELMER0_GPI_STAT, &mod_detect);
usr/src/uts/common/io/chxge/com/ch_subr.c
1157
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &gpo);
usr/src/uts/common/io/chxge/com/ch_subr.c
1159
(void) t1_tpi_write(adapter, A_ELMER0_GPO, gpo);
usr/src/uts/common/io/chxge/com/ch_subr.c
1163
int __devinit t1_get_board_rev(adapter_t *adapter, const struct board_info *bi,
usr/src/uts/common/io/chxge/com/ch_subr.c
1171
u32 val = t1_read_reg_4(adapter, A_TP_PC_CONFIG);
usr/src/uts/common/io/chxge/com/ch_subr.c
1189
static int board_init(adapter_t *adapter, const struct board_info *bi)
usr/src/uts/common/io/chxge/com/ch_subr.c
119
t1_write_reg_4(adapter, A_TPI_ADDR, addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
1197
t1_tpi_par(adapter, 0xf);
usr/src/uts/common/io/chxge/com/ch_subr.c
1198
(void) t1_tpi_write(adapter, A_ELMER0_GPO, 0x800);
usr/src/uts/common/io/chxge/com/ch_subr.c
120
t1_write_reg_4(adapter, A_TPI_CSR, 0);
usr/src/uts/common/io/chxge/com/ch_subr.c
1201
t1_tpi_par(adapter, 0xf);
usr/src/uts/common/io/chxge/com/ch_subr.c
1202
(void) t1_tpi_write(adapter, A_ELMER0_GPO, 0x1800);
usr/src/uts/common/io/chxge/com/ch_subr.c
1208
power_sequence_xpak(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1213
t1_tpi_par(adapter, 0xf);
usr/src/uts/common/io/chxge/com/ch_subr.c
1214
(void) t1_tpi_write(adapter, A_ELMER0_GPO, 0x804);
usr/src/uts/common/io/chxge/com/ch_subr.c
1218
t1_tpi_par(adapter, 0xf);
usr/src/uts/common/io/chxge/com/ch_subr.c
1219
(void) t1_tpi_write(adapter, A_ELMER0_GPO, 0x1804);
usr/src/uts/common/io/chxge/com/ch_subr.c
122
tpi_busy = t1_wait_op_done(adapter, A_TPI_CSR, F_TPIRDY, 1,
usr/src/uts/common/io/chxge/com/ch_subr.c
1231
t1_init_hw_modules(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
1234
const struct board_info *bi = board_info(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1237
if (adapter->mc3 && t1_mc3_init(adapter->mc3, bi->clock_mc3))
usr/src/uts/common/io/chxge/com/ch_subr.c
1239
if (adapter->mc4 && t1_mc4_init(adapter->mc4, bi->clock_mc4))
usr/src/uts/common/io/chxge/com/ch_subr.c
1241
if (adapter->mc5 && t1_mc5_init(adapter->mc5,
usr/src/uts/common/io/chxge/com/ch_subr.c
1242
adapter->params.mc5.nservers,
usr/src/uts/common/io/chxge/com/ch_subr.c
1243
adapter->params.mc5.nroutes, 1, 0))
usr/src/uts/common/io/chxge/com/ch_subr.c
1245
if (adapter->ulp && t1_ulp_init(adapter->ulp,
usr/src/uts/common/io/chxge/com/ch_subr.c
1246
adapter->params.tp.pm_tx_base))
usr/src/uts/common/io/chxge/com/ch_subr.c
1249
if (!adapter->mc4) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1250
u32 val = t1_read_reg_4(adapter, A_MC4_CFG);
usr/src/uts/common/io/chxge/com/ch_subr.c
1252
t1_write_reg_4(adapter, A_MC4_CFG, val | F_READY | F_MC4_SLOW);
usr/src/uts/common/io/chxge/com/ch_subr.c
1253
t1_write_reg_4(adapter, A_MC5_CONFIG,
usr/src/uts/common/io/chxge/com/ch_subr.c
1258
if (adapter->cspi && t1_cspi_init(adapter->cspi))
usr/src/uts/common/io/chxge/com/ch_subr.c
1261
if (adapter->espi && t1_espi_init(adapter->espi, bi->chip_mac,
usr/src/uts/common/io/chxge/com/ch_subr.c
1265
if (t1_tp_reset(adapter->tp, &adapter->params.tp, bi->clock_core))
usr/src/uts/common/io/chxge/com/ch_subr.c
1268
err = t1_sge_configure(adapter->sge, &adapter->params.sge);
usr/src/uts/common/io/chxge/com/ch_subr.c
127
adapter_name(adapter), addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
1273
(void) t1_tp_set_coalescing_size(adapter->tp,
usr/src/uts/common/io/chxge/com/ch_subr.c
1274
min(adapter->params.sge.large_buf_capacity,
usr/src/uts/common/io/chxge/com/ch_subr.c
1285
static void __devinit get_pci_mode(adapter_t *adapter, struct pci_params *p)
usr/src/uts/common/io/chxge/com/ch_subr.c
129
*valp = t1_read_reg_4(adapter, A_TPI_RD_DATA);
usr/src/uts/common/io/chxge/com/ch_subr.c
1290
(void) t1_os_pci_read_config_4(adapter, A_PCICFG_MODE, &pci_mode);
usr/src/uts/common/io/chxge/com/ch_subr.c
1300
t1_free_sw_modules(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
1304
for_each_port(adapter, i) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1305
struct cmac *mac = adapter->port[i].mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
1306
struct cphy *phy = adapter->port[i].phy;
usr/src/uts/common/io/chxge/com/ch_subr.c
1314
if (adapter->sge)
usr/src/uts/common/io/chxge/com/ch_subr.c
1315
(void) t1_sge_destroy(adapter->sge);
usr/src/uts/common/io/chxge/com/ch_subr.c
1316
if (adapter->tp)
usr/src/uts/common/io/chxge/com/ch_subr.c
1317
t1_tp_destroy(adapter->tp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1318
if (adapter->espi)
usr/src/uts/common/io/chxge/com/ch_subr.c
1319
t1_espi_destroy(adapter->espi);
usr/src/uts/common/io/chxge/com/ch_subr.c
1321
if (adapter->mc5)
usr/src/uts/common/io/chxge/com/ch_subr.c
1322
t1_mc5_destroy(adapter->mc5);
usr/src/uts/common/io/chxge/com/ch_subr.c
1323
if (adapter->mc3)
usr/src/uts/common/io/chxge/com/ch_subr.c
1324
t1_mc3_destroy(adapter->mc3);
usr/src/uts/common/io/chxge/com/ch_subr.c
1325
if (adapter->mc4)
usr/src/uts/common/io/chxge/com/ch_subr.c
1326
t1_mc4_destroy(adapter->mc4);
usr/src/uts/common/io/chxge/com/ch_subr.c
1327
if (adapter->ulp)
usr/src/uts/common/io/chxge/com/ch_subr.c
1328
t1_ulp_destroy(adapter->ulp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1331
if (adapter->cspi)
usr/src/uts/common/io/chxge/com/ch_subr.c
1332
t1_cspi_destroy(adapter->cspi);
usr/src/uts/common/io/chxge/com/ch_subr.c
134
t1_tpi_read(adapter_t *adapter, u32 addr, u32 *valp)
usr/src/uts/common/io/chxge/com/ch_subr.c
1371
int __devinit t1_init_sw_modules(adapter_t *adapter,
usr/src/uts/common/io/chxge/com/ch_subr.c
1376
adapter->params.brd_info = bi;
usr/src/uts/common/io/chxge/com/ch_subr.c
1377
adapter->params.nports = bi->port_number;
usr/src/uts/common/io/chxge/com/ch_subr.c
1378
adapter->params.stats_update_period = bi->gmac->stats_update_period;
usr/src/uts/common/io/chxge/com/ch_subr.c
138
TPI_LOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1380
adapter->sge = t1_sge_create(adapter, &adapter->params.sge);
usr/src/uts/common/io/chxge/com/ch_subr.c
1381
if (!adapter->sge) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1383
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
139
ret = __t1_tpi_read(adapter, addr, valp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1395
adapter->mc3 = t1_mc3_create(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1396
if (!adapter->mc3) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1398
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
140
TPI_UNLOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1402
adapter->mc4 = t1_mc4_create(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1403
if (!adapter->mc4) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1405
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
1409
if (!adapter->params.mc5.mode)
usr/src/uts/common/io/chxge/com/ch_subr.c
1410
adapter->params.mc5.mode = MC5_MODE_144_BIT;
usr/src/uts/common/io/chxge/com/ch_subr.c
1411
adapter->mc5 = t1_mc5_create(adapter,
usr/src/uts/common/io/chxge/com/ch_subr.c
1412
adapter->params.mc5.mode);
usr/src/uts/common/io/chxge/com/ch_subr.c
1413
if (!adapter->mc5) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1415
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
1419
adapter->ulp = t1_ulp_create(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1420
if (!adapter->ulp) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1422
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
1426
adapter->params.tp.pm_size = t1_mc3_get_size(adapter->mc3);
usr/src/uts/common/io/chxge/com/ch_subr.c
1427
adapter->params.tp.cm_size = t1_mc4_get_size(adapter->mc4);
usr/src/uts/common/io/chxge/com/ch_subr.c
1429
adapter->params.mc5.nservers = DEFAULT_SERVER_REGION_LEN;
usr/src/uts/common/io/chxge/com/ch_subr.c
1430
adapter->params.mc5.nroutes = DEFAULT_RT_REGION_LEN;
usr/src/uts/common/io/chxge/com/ch_subr.c
1432
init_mtus(adapter->params.mtus);
usr/src/uts/common/io/chxge/com/ch_subr.c
1437
if (bi->clock_cspi && !(adapter->cspi = t1_cspi_create(adapter))) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1439
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
1444
if (bi->espi_nports && !(adapter->espi = t1_espi_create(adapter))) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1446
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
1450
adapter->tp = t1_tp_create(adapter, &adapter->params.tp);
usr/src/uts/common/io/chxge/com/ch_subr.c
1451
if (!adapter->tp) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1453
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
1457
(void) board_init(adapter, bi);
usr/src/uts/common/io/chxge/com/ch_subr.c
1458
bi->mdio_ops->init(adapter, bi);
usr/src/uts/common/io/chxge/com/ch_subr.c
1460
bi->gphy->reset(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1462
bi->gmac->reset(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1464
for_each_port(adapter, i) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1469
adapter->port[i].phy = bi->gphy->create(adapter, phy_addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
147
static void t1_tpi_par(adapter_t *adapter, u32 value)
usr/src/uts/common/io/chxge/com/ch_subr.c
1471
if (!adapter->port[i].phy) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1473
adapter_name(adapter), i);
usr/src/uts/common/io/chxge/com/ch_subr.c
1477
adapter->port[i].mac = mac = bi->gmac->create(adapter, i);
usr/src/uts/common/io/chxge/com/ch_subr.c
1480
adapter_name(adapter), i);
usr/src/uts/common/io/chxge/com/ch_subr.c
1488
if (!t1_is_asic(adapter) || bi->chip_mac == CHBT_MAC_DUMMY)
usr/src/uts/common/io/chxge/com/ch_subr.c
149
t1_write_reg_4(adapter, A_TPI_PAR, V_TPIPAR(value));
usr/src/uts/common/io/chxge/com/ch_subr.c
1490
else if (vpd_macaddress_get(adapter, i, hw_addr)) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1492
port_name(adapter, i));
usr/src/uts/common/io/chxge/com/ch_subr.c
1495
t1_os_set_hw_addr(adapter, i, hw_addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
1496
init_link_config(&adapter->port[i].link_config, bi);
usr/src/uts/common/io/chxge/com/ch_subr.c
1499
get_pci_mode(adapter, &adapter->params.pci);
usr/src/uts/common/io/chxge/com/ch_subr.c
1500
t1_interrupts_clear(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
1504
t1_free_sw_modules(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
158
link_changed(adapter_t *adapter, int port_id)
usr/src/uts/common/io/chxge/com/ch_subr.c
161
struct cphy *phy = adapter->port[port_id].phy;
usr/src/uts/common/io/chxge/com/ch_subr.c
162
struct link_config *lc = &adapter->port[port_id].link_config;
usr/src/uts/common/io/chxge/com/ch_subr.c
173
struct cmac *mac = adapter->port[port_id].mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
178
t1_os_link_changed(adapter, port_id, link_ok, speed, duplex, fc);
usr/src/uts/common/io/chxge/com/ch_subr.c
181
static int t1_pci_intr_handler(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
185
(void) t1_os_pci_read_config_4(adapter, A_PCICFG_INTR_CAUSE,
usr/src/uts/common/io/chxge/com/ch_subr.c
189
(void) t1_os_pci_write_config_4(adapter, A_PCICFG_INTR_CAUSE,
usr/src/uts/common/io/chxge/com/ch_subr.c
191
t1_fatal_err(adapter); /* PCI errors are fatal */
usr/src/uts/common/io/chxge/com/ch_subr.c
202
static int fpga_phy_intr_handler(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
205
u32 cause = t1_read_reg_4(adapter, FPGA_GMAC_ADDR_INTERRUPT_CAUSE);
usr/src/uts/common/io/chxge/com/ch_subr.c
207
for_each_port(adapter, p)
usr/src/uts/common/io/chxge/com/ch_subr.c
209
struct cphy *phy = adapter->port[p].phy;
usr/src/uts/common/io/chxge/com/ch_subr.c
213
link_changed(adapter, p);
usr/src/uts/common/io/chxge/com/ch_subr.c
215
t1_write_reg_4(adapter, FPGA_GMAC_ADDR_INTERRUPT_CAUSE, cause);
usr/src/uts/common/io/chxge/com/ch_subr.c
222
static int fpga_slow_intr(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
224
u32 cause = t1_read_reg_4(adapter, A_PL_CAUSE);
usr/src/uts/common/io/chxge/com/ch_subr.c
228
(void) t1_sge_intr_error_handler(adapter->sge);
usr/src/uts/common/io/chxge/com/ch_subr.c
231
(void) fpga_phy_intr_handler(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
238
u32 tp_cause = t1_read_reg_4(adapter,
usr/src/uts/common/io/chxge/com/ch_subr.c
242
t1_mc5_intr_handler(adapter->mc5);
usr/src/uts/common/io/chxge/com/ch_subr.c
245
t1_write_reg_4(adapter, FPGA_TP_ADDR_INTERRUPT_CAUSE,
usr/src/uts/common/io/chxge/com/ch_subr.c
250
(void) t1_mc3_intr_handler(adapter->mc3);
usr/src/uts/common/io/chxge/com/ch_subr.c
253
(void) t1_pci_intr_handler(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
257
t1_write_reg_4(adapter, A_PL_CAUSE, cause);
usr/src/uts/common/io/chxge/com/ch_subr.c
265
static void fpga_mdio_init(adapter_t *adapter, const struct board_info *bi)
usr/src/uts/common/io/chxge/com/ch_subr.c
268
t1_write_reg_4(adapter, A_MI0_CLK, V_MI0_CLK_DIV(3));
usr/src/uts/common/io/chxge/com/ch_subr.c
274
static int fpga_mdio_read(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
281
if (t1_read_reg_4(adapter, A_MI0_CSR) & F_MI0_BUSY) {
usr/src/uts/common/io/chxge/com/ch_subr.c
283
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
286
t1_write_reg_4(adapter, A_MI0_ADDR,
usr/src/uts/common/io/chxge/com/ch_subr.c
288
*val = t1_read_reg_4(adapter, A_MI0_DATA_EXT);
usr/src/uts/common/io/chxge/com/ch_subr.c
293
static int fpga_mdio_write(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
300
if (t1_read_reg_4(adapter, A_MI0_CSR) & F_MI0_BUSY) {
usr/src/uts/common/io/chxge/com/ch_subr.c
302
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
305
t1_write_reg_4(adapter, A_MI0_ADDR,
usr/src/uts/common/io/chxge/com/ch_subr.c
307
t1_write_reg_4(adapter, A_MI0_DATA_EXT, val);
usr/src/uts/common/io/chxge/com/ch_subr.c
321
static int mi1_wait_until_ready(adapter_t *adapter, int mi1_reg)
usr/src/uts/common/io/chxge/com/ch_subr.c
328
(void) __t1_tpi_read(adapter, mi1_reg, &val);
usr/src/uts/common/io/chxge/com/ch_subr.c
335
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/ch_subr.c
342
static void mi1_mdio_init(adapter_t *adapter, const struct board_info *bi)
usr/src/uts/common/io/chxge/com/ch_subr.c
350
(void) t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_CFG, val);
usr/src/uts/common/io/chxge/com/ch_subr.c
357
static int mi1_mdio_read(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
365
TPI_LOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
366
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_ADDR, addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
367
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_OP,
usr/src/uts/common/io/chxge/com/ch_subr.c
369
(void) mi1_wait_until_ready(adapter, A_ELMER0_PORT0_MI1_OP);
usr/src/uts/common/io/chxge/com/ch_subr.c
370
(void) __t1_tpi_read(adapter, A_ELMER0_PORT0_MI1_DATA, valp);
usr/src/uts/common/io/chxge/com/ch_subr.c
371
TPI_UNLOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
375
static int mi1_mdio_write(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
383
TPI_LOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
384
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_ADDR, addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
385
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_DATA, val);
usr/src/uts/common/io/chxge/com/ch_subr.c
386
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_OP,
usr/src/uts/common/io/chxge/com/ch_subr.c
388
(void) mi1_wait_until_ready(adapter, A_ELMER0_PORT0_MI1_OP);
usr/src/uts/common/io/chxge/com/ch_subr.c
389
TPI_UNLOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
404
static int mi1_mdio_ext_readinc(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
409
TPI_LOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
412
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_ADDR, addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
413
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_DATA, reg_addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
414
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_OP,
usr/src/uts/common/io/chxge/com/ch_subr.c
416
(void) mi1_wait_until_ready(adapter, A_ELMER0_PORT0_MI1_OP);
usr/src/uts/common/io/chxge/com/ch_subr.c
419
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_OP,
usr/src/uts/common/io/chxge/com/ch_subr.c
421
(void) mi1_wait_until_ready(adapter, A_ELMER0_PORT0_MI1_OP);
usr/src/uts/common/io/chxge/com/ch_subr.c
424
(void) __t1_tpi_read(adapter, A_ELMER0_PORT0_MI1_DATA, valp);
usr/src/uts/common/io/chxge/com/ch_subr.c
425
TPI_UNLOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
430
static int mi1_mdio_ext_read(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
435
TPI_LOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
438
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_ADDR, addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
439
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_DATA, reg_addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
440
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_OP,
usr/src/uts/common/io/chxge/com/ch_subr.c
442
(void) mi1_wait_until_ready(adapter, A_ELMER0_PORT0_MI1_OP);
usr/src/uts/common/io/chxge/com/ch_subr.c
445
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_OP,
usr/src/uts/common/io/chxge/com/ch_subr.c
447
(void) mi1_wait_until_ready(adapter, A_ELMER0_PORT0_MI1_OP);
usr/src/uts/common/io/chxge/com/ch_subr.c
450
(void) __t1_tpi_read(adapter, A_ELMER0_PORT0_MI1_DATA, valp);
usr/src/uts/common/io/chxge/com/ch_subr.c
451
TPI_UNLOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
455
static int mi1_mdio_ext_write(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
460
TPI_LOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
463
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_ADDR, addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
464
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_DATA, reg_addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
465
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_OP,
usr/src/uts/common/io/chxge/com/ch_subr.c
467
(void) mi1_wait_until_ready(adapter, A_ELMER0_PORT0_MI1_OP);
usr/src/uts/common/io/chxge/com/ch_subr.c
470
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_DATA, val);
usr/src/uts/common/io/chxge/com/ch_subr.c
471
(void) __t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_OP,
usr/src/uts/common/io/chxge/com/ch_subr.c
473
(void) mi1_wait_until_ready(adapter, A_ELMER0_PORT0_MI1_OP);
usr/src/uts/common/io/chxge/com/ch_subr.c
474
TPI_UNLOCK(adapter);
usr/src/uts/common/io/chxge/com/ch_subr.c
61
int t1_wait_op_done(adapter_t *adapter, int reg, u32 mask, int polarity,
usr/src/uts/common/io/chxge/com/ch_subr.c
65
u32 val = t1_read_reg_4(adapter, reg) & mask;
usr/src/uts/common/io/chxge/com/ch_subr.c
758
t1_seeprom_read(adapter_t *adapter, u32 addr, u32 *data)
usr/src/uts/common/io/chxge/com/ch_subr.c
766
(void) t1_os_pci_write_config_2(adapter, A_PCICFG_VPD_ADDR, (u16)addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
769
(void) t1_os_pci_read_config_2(adapter,
usr/src/uts/common/io/chxge/com/ch_subr.c
775
adapter_name(adapter), addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
778
(void) t1_os_pci_read_config_4(adapter, A_PCICFG_VPD_DATA, data);
usr/src/uts/common/io/chxge/com/ch_subr.c
783
static int t1_eeprom_vpd_get(adapter_t *adapter, chelsio_vpd_t *vpd)
usr/src/uts/common/io/chxge/com/ch_subr.c
788
ret = t1_seeprom_read(adapter, addr,
usr/src/uts/common/io/chxge/com/ch_subr.c
797
static int vpd_macaddress_get(adapter_t *adapter, int index, u8 mac_addr[])
usr/src/uts/common/io/chxge/com/ch_subr.c
801
if (t1_eeprom_vpd_get(adapter, &vpd))
usr/src/uts/common/io/chxge/com/ch_subr.c
827
if (fc == ((PAUSE_RX | PAUSE_TX) & !is_T2(mac->adapter)))
usr/src/uts/common/io/chxge/com/ch_subr.c
84
__t1_tpi_write(adapter_t *adapter, u32 addr, u32 value)
usr/src/uts/common/io/chxge/com/ch_subr.c
864
elmer0_ext_intr_handler(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
870
(void) t1_tpi_read(adapter, A_ELMER0_INT_CAUSE, &cause);
usr/src/uts/common/io/chxge/com/ch_subr.c
872
switch (board_info(adapter)->board) {
usr/src/uts/common/io/chxge/com/ch_subr.c
877
for_each_port(adapter, i) {
usr/src/uts/common/io/chxge/com/ch_subr.c
88
t1_write_reg_4(adapter, A_TPI_ADDR, addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
881
phy = adapter->port[i].phy;
usr/src/uts/common/io/chxge/com/ch_subr.c
884
link_changed(adapter, i);
usr/src/uts/common/io/chxge/com/ch_subr.c
89
t1_write_reg_4(adapter, A_TPI_WR_DATA, value);
usr/src/uts/common/io/chxge/com/ch_subr.c
890
phy = adapter->port[0].phy;
usr/src/uts/common/io/chxge/com/ch_subr.c
893
link_changed(adapter, 0);
usr/src/uts/common/io/chxge/com/ch_subr.c
90
t1_write_reg_4(adapter, A_TPI_CSR, F_TPIWR);
usr/src/uts/common/io/chxge/com/ch_subr.c
904
for_each_port(adapter, p) {
usr/src/uts/common/io/chxge/com/ch_subr.c
905
phy = adapter->port[p].phy;
usr/src/uts/common/io/chxge/com/ch_subr.c
908
link_changed(adapter, p);
usr/src/uts/common/io/chxge/com/ch_subr.c
917
phy = adapter->port[0].phy;
usr/src/uts/common/io/chxge/com/ch_subr.c
92
tpi_busy = t1_wait_op_done(adapter, A_TPI_CSR, F_TPIRDY, 1,
usr/src/uts/common/io/chxge/com/ch_subr.c
920
link_changed(adapter, 0);
usr/src/uts/common/io/chxge/com/ch_subr.c
925
CH_DBG(adapter, INTR, "External interrupt cause 0x%x\n",
usr/src/uts/common/io/chxge/com/ch_subr.c
928
struct cmac *mac = adapter->port[0].mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
935
(void) t1_tpi_read(adapter, A_ELMER0_GPI_STAT,
usr/src/uts/common/io/chxge/com/ch_subr.c
937
CH_MSG(adapter, INFO, LINK, "XPAK %s\n",
usr/src/uts/common/io/chxge/com/ch_subr.c
943
if (adapter->params.nports == 1) {
usr/src/uts/common/io/chxge/com/ch_subr.c
945
struct cmac *mac = adapter->port[0].mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
953
for_each_port(adapter, i) {
usr/src/uts/common/io/chxge/com/ch_subr.c
957
phy = adapter->port[i].phy;
usr/src/uts/common/io/chxge/com/ch_subr.c
96
adapter_name(adapter), addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
960
link_changed(adapter, i);
usr/src/uts/common/io/chxge/com/ch_subr.c
966
(void) t1_tpi_write(adapter, A_ELMER0_INT_CAUSE, cause);
usr/src/uts/common/io/chxge/com/ch_subr.c
972
t1_interrupts_enable(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ch_subr.c
976
adapter->slow_intr_mask = F_PL_INTR_SGE_ERR | F_PL_INTR_TP;
usr/src/uts/common/io/chxge/com/ch_subr.c
977
(void) t1_sge_intr_enable(adapter->sge);
usr/src/uts/common/io/chxge/com/ch_subr.c
978
t1_tp_intr_enable(adapter->tp);
usr/src/uts/common/io/chxge/com/ch_subr.c
980
if (adapter->mc4) {
usr/src/uts/common/io/chxge/com/ch_subr.c
981
adapter->slow_intr_mask |= F_PL_INTR_MC3 | F_PL_INTR_MC4 |
usr/src/uts/common/io/chxge/com/ch_subr.c
988
t1_ulp_intr_disable(adapter->ulp);
usr/src/uts/common/io/chxge/com/ch_subr.c
990
t1_mc3_intr_enable(adapter->mc3);
usr/src/uts/common/io/chxge/com/ch_subr.c
991
t1_mc4_intr_enable(adapter->mc4);
usr/src/uts/common/io/chxge/com/ch_subr.c
992
t1_mc5_intr_enable(adapter->mc5);
usr/src/uts/common/io/chxge/com/ch_subr.c
995
if (adapter->espi) {
usr/src/uts/common/io/chxge/com/ch_subr.c
996
adapter->slow_intr_mask |= F_PL_INTR_ESPI;
usr/src/uts/common/io/chxge/com/ch_subr.c
997
t1_espi_intr_enable(adapter->espi);
usr/src/uts/common/io/chxge/com/common.h
204
static inline int t1_is_asic(const adapter_t *adapter)
usr/src/uts/common/io/chxge/com/common.h
206
return adapter->params.is_asic;
usr/src/uts/common/io/chxge/com/common.h
209
static inline int adapter_matches_type(const adapter_t *adapter,
usr/src/uts/common/io/chxge/com/common.h
212
return adapter->params.chip_version == version &&
usr/src/uts/common/io/chxge/com/common.h
213
adapter->params.chip_revision == revision;
usr/src/uts/common/io/chxge/com/common.h
220
static inline int vlan_tso_capable(const adapter_t *adapter)
usr/src/uts/common/io/chxge/com/common.h
222
return !t1_is_T1B(adapter);
usr/src/uts/common/io/chxge/com/common.h
225
#define for_each_port(adapter, iter) \
usr/src/uts/common/io/chxge/com/common.h
226
for (iter = 0; iter < (adapter)->params.nports; ++iter)
usr/src/uts/common/io/chxge/com/common.h
228
#define board_info(adapter) ((adapter)->params.brd_info)
usr/src/uts/common/io/chxge/com/common.h
229
#define is_10G(adapter) (board_info(adapter)->caps & SUPPORTED_10000baseT_Full)
usr/src/uts/common/io/chxge/com/common.h
236
int __t1_tpi_read(adapter_t *adapter, u32 addr, u32 *valp);
usr/src/uts/common/io/chxge/com/common.h
237
int __t1_tpi_write(adapter_t *adapter, u32 addr, u32 value);
usr/src/uts/common/io/chxge/com/common.h
238
int t1_tpi_write(adapter_t *adapter, u32 addr, u32 value);
usr/src/uts/common/io/chxge/com/common.h
239
int t1_tpi_read(adapter_t *adapter, u32 addr, u32 *value);
usr/src/uts/common/io/chxge/com/common.h
240
int t1_wait_op_done(adapter_t *adapter, int reg, u32 mask, int polarity,
usr/src/uts/common/io/chxge/com/common.h
243
void t1_interrupts_enable(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/common.h
244
void t1_interrupts_disable(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/common.h
245
void t1_interrupts_clear(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/common.h
246
int elmer0_ext_intr_handler(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/common.h
247
int t1_slow_intr_handler(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/common.h
253
int t1_seeprom_read(adapter_t *adapter, u32 addr, u32 *data);
usr/src/uts/common/io/chxge/com/common.h
254
int t1_get_board_rev(adapter_t *adapter, const struct board_info *bi,
usr/src/uts/common/io/chxge/com/common.h
256
int t1_init_hw_modules(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/common.h
257
int t1_init_sw_modules(adapter_t *adapter, const struct board_info *bi);
usr/src/uts/common/io/chxge/com/common.h
258
void t1_free_sw_modules(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/common.h
259
void t1_fatal_err(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/common.h
260
void link_changed(adapter_t *adapter, int port_id);
usr/src/uts/common/io/chxge/com/cphy.h
101
return cphy->mdio_read(cphy->adapter, cphy->addr, mmd, reg, valp);
usr/src/uts/common/io/chxge/com/cphy.h
107
return cphy->mdio_write(cphy->adapter, cphy->addr, mmd, reg, val);
usr/src/uts/common/io/chxge/com/cphy.h
123
static inline void cphy_init(struct cphy *phy, adapter_t *adapter,
usr/src/uts/common/io/chxge/com/cphy.h
127
phy->adapter = adapter;
usr/src/uts/common/io/chxge/com/cphy.h
139
struct cphy *(*create)(adapter_t *adapter, int phy_addr,
usr/src/uts/common/io/chxge/com/cphy.h
146
int (*reset)(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/cphy.h
32
void (*init)(adapter_t *adapter, const struct board_info *bi);
usr/src/uts/common/io/chxge/com/cphy.h
33
int (*read)(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/cphy.h
35
int (*write)(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/cphy.h
78
adapter_t *adapter; /* associated adapter */
usr/src/uts/common/io/chxge/com/cphy.h
90
int (*mdio_read)(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/cphy.h
92
int (*mdio_write)(adapter_t *adapter, int phy_addr, int mmd_addr,
usr/src/uts/common/io/chxge/com/cspi.c
31
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/cspi.c
36
t1_write_reg_4(cspi->adapter, A_CSPI_INTR_ENABLE, 0xffffffff);
usr/src/uts/common/io/chxge/com/cspi.c
42
t1_write_reg_4(cspi->adapter, A_CSPI_INTR_ENABLE, 0);
usr/src/uts/common/io/chxge/com/cspi.c
48
*status = t1_read_reg_4(cspi->adapter, A_CSPI_INTR_STATUS);
usr/src/uts/common/io/chxge/com/cspi.c
58
adapter_t *adapter = cspi->adapter;
usr/src/uts/common/io/chxge/com/cspi.c
60
t1_write_reg_4(adapter, A_CSPI_CALENDAR_LEN, 15);
usr/src/uts/common/io/chxge/com/cspi.c
61
t1_write_reg_4(adapter, A_CSPI_FIFO_STATUS_ENABLE, 1);
usr/src/uts/common/io/chxge/com/cspi.c
65
struct pecspi *t1_cspi_create(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/cspi.c
70
cspi->adapter = adapter;
usr/src/uts/common/io/chxge/com/espi.c
100
CH_ERR("%s: ESPI clock not ready\n", adapter_name(adapter));
usr/src/uts/common/io/chxge/com/espi.c
104
t1_write_reg_4(adapter, A_ESPI_RX_RESET, F_ESPI_RX_CORE_RST);
usr/src/uts/common/io/chxge/com/espi.c
107
(void) tricn_write(adapter, 0, 0, 0, TRICN_CNFG, 0x81);
usr/src/uts/common/io/chxge/com/espi.c
108
(void) tricn_write(adapter, 0, 1, 0, TRICN_CNFG, 0x81);
usr/src/uts/common/io/chxge/com/espi.c
109
(void) tricn_write(adapter, 0, 2, 0, TRICN_CNFG, 0x81);
usr/src/uts/common/io/chxge/com/espi.c
111
for (i=1; i<= 8; i++) (void) tricn_write(adapter, 0, 0, i, TRICN_CNFG, 0xf1);
usr/src/uts/common/io/chxge/com/espi.c
112
for (i=1; i<= 2; i++) (void) tricn_write(adapter, 0, 1, i, TRICN_CNFG, 0xf1);
usr/src/uts/common/io/chxge/com/espi.c
113
for (i=1; i<= 3; i++) (void) tricn_write(adapter, 0, 2, i, TRICN_CNFG, 0xe1);
usr/src/uts/common/io/chxge/com/espi.c
114
(void) tricn_write(adapter, 0, 2, 4, TRICN_CNFG, 0xf1);
usr/src/uts/common/io/chxge/com/espi.c
115
(void) tricn_write(adapter, 0, 2, 5, TRICN_CNFG, 0xe1);
usr/src/uts/common/io/chxge/com/espi.c
116
(void) tricn_write(adapter, 0, 2, 6, TRICN_CNFG, 0xf1);
usr/src/uts/common/io/chxge/com/espi.c
117
(void) tricn_write(adapter, 0, 2, 7, TRICN_CNFG, 0x80);
usr/src/uts/common/io/chxge/com/espi.c
118
(void) tricn_write(adapter, 0, 2, 8, TRICN_CNFG, 0xf1);
usr/src/uts/common/io/chxge/com/espi.c
120
t1_write_reg_4(adapter, A_ESPI_RX_RESET, F_ESPI_RX_CORE_RST | F_ESPI_RX_LNK_RST);
usr/src/uts/common/io/chxge/com/espi.c
127
u32 enable, pl_intr = t1_read_reg_4(espi->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/espi.c
136
enable = t1_is_T1B(espi->adapter) ? 0 : ESPI_INTR_MASK;
usr/src/uts/common/io/chxge/com/espi.c
137
t1_write_reg_4(espi->adapter, A_ESPI_INTR_ENABLE, enable);
usr/src/uts/common/io/chxge/com/espi.c
138
t1_write_reg_4(espi->adapter, A_PL_ENABLE, pl_intr | F_PL_INTR_ESPI);
usr/src/uts/common/io/chxge/com/espi.c
143
(void) t1_read_reg_4(espi->adapter, A_ESPI_DIP2_ERR_COUNT);
usr/src/uts/common/io/chxge/com/espi.c
144
t1_write_reg_4(espi->adapter, A_ESPI_INTR_STATUS, 0xffffffff);
usr/src/uts/common/io/chxge/com/espi.c
145
t1_write_reg_4(espi->adapter, A_PL_CAUSE, F_PL_INTR_ESPI);
usr/src/uts/common/io/chxge/com/espi.c
150
u32 pl_intr = t1_read_reg_4(espi->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/espi.c
152
t1_write_reg_4(espi->adapter, A_ESPI_INTR_ENABLE, 0);
usr/src/uts/common/io/chxge/com/espi.c
153
t1_write_reg_4(espi->adapter, A_PL_ENABLE, pl_intr & ~F_PL_INTR_ESPI);
usr/src/uts/common/io/chxge/com/espi.c
158
u32 status = t1_read_reg_4(espi->adapter, A_ESPI_INTR_STATUS);
usr/src/uts/common/io/chxge/com/espi.c
172
(void) t1_read_reg_4(espi->adapter, A_ESPI_DIP2_ERR_COUNT);
usr/src/uts/common/io/chxge/com/espi.c
179
if (status && t1_is_T1B(espi->adapter))
usr/src/uts/common/io/chxge/com/espi.c
181
t1_write_reg_4(espi->adapter, A_ESPI_INTR_STATUS, status);
usr/src/uts/common/io/chxge/com/espi.c
190
static void espi_setup_for_pm3393(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/espi.c
192
u32 wmark = t1_is_T1B(adapter) ? 0x4000 : 0x3200;
usr/src/uts/common/io/chxge/com/espi.c
194
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN0, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
195
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN1, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
196
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN2, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
197
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN3, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
198
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK, 0x100);
usr/src/uts/common/io/chxge/com/espi.c
199
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK, wmark);
usr/src/uts/common/io/chxge/com/espi.c
200
t1_write_reg_4(adapter, A_ESPI_CALENDAR_LENGTH, 3);
usr/src/uts/common/io/chxge/com/espi.c
201
t1_write_reg_4(adapter, A_ESPI_TRAIN, 0x08000008);
usr/src/uts/common/io/chxge/com/espi.c
202
t1_write_reg_4(adapter, A_PORT_CONFIG,
usr/src/uts/common/io/chxge/com/espi.c
206
static void espi_setup_for_vsc7321(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/espi.c
209
u32 wmark = t1_is_T1B(adapter) ? 0x4000 : 0x3200;
usr/src/uts/common/io/chxge/com/espi.c
211
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN0, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
212
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN1, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
213
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN2, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
214
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN3, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
215
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK, 0x100);
usr/src/uts/common/io/chxge/com/espi.c
216
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK, wmark);
usr/src/uts/common/io/chxge/com/espi.c
217
t1_write_reg_4(adapter, A_ESPI_CALENDAR_LENGTH, 3);
usr/src/uts/common/io/chxge/com/espi.c
218
t1_write_reg_4(adapter, A_PORT_CONFIG,
usr/src/uts/common/io/chxge/com/espi.c
221
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN0, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
222
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN1, 0x1f401f4);
usr/src/uts/common/io/chxge/com/espi.c
223
t1_write_reg_4(adapter, A_ESPI_SCH_TOKEN2, 0x1f4);
usr/src/uts/common/io/chxge/com/espi.c
224
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK, 0xa00);
usr/src/uts/common/io/chxge/com/espi.c
225
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK, 0x1ff);
usr/src/uts/common/io/chxge/com/espi.c
226
t1_write_reg_4(adapter, A_ESPI_CALENDAR_LENGTH, 1);
usr/src/uts/common/io/chxge/com/espi.c
227
t1_write_reg_4(adapter, A_PORT_CONFIG,
usr/src/uts/common/io/chxge/com/espi.c
230
t1_write_reg_4(adapter, A_ESPI_TRAIN, 0x08000008);
usr/src/uts/common/io/chxge/com/espi.c
236
static void espi_setup_for_ixf1010(adapter_t *adapter, int nports)
usr/src/uts/common/io/chxge/com/espi.c
238
t1_write_reg_4(adapter, A_ESPI_CALENDAR_LENGTH, 1);
usr/src/uts/common/io/chxge/com/espi.c
240
if (is_T2(adapter)) {
usr/src/uts/common/io/chxge/com/espi.c
241
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK,
usr/src/uts/common/io/chxge/com/espi.c
243
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK,
usr/src/uts/common/io/chxge/com/espi.c
246
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK,
usr/src/uts/common/io/chxge/com/espi.c
248
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK,
usr/src/uts/common/io/chxge/com/espi.c
252
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_FULL_WATERMARK,
usr/src/uts/common/io/chxge/com/espi.c
254
t1_write_reg_4(adapter, A_ESPI_RX_FIFO_ALMOST_EMPTY_WATERMARK,
usr/src/uts/common/io/chxge/com/espi.c
257
t1_write_reg_4(adapter, A_PORT_CONFIG,
usr/src/uts/common/io/chxge/com/espi.c
264
adapter_t *adapter = espi->adapter;
usr/src/uts/common/io/chxge/com/espi.c
267
t1_write_reg_4(adapter, A_ESPI_TRAIN, 0);
usr/src/uts/common/io/chxge/com/espi.c
269
if (is_T2(adapter)) {
usr/src/uts/common/io/chxge/com/espi.c
270
t1_write_reg_4(adapter, A_ESPI_MISC_CONTROL,
usr/src/uts/common/io/chxge/com/espi.c
273
t1_write_reg_4(adapter, A_ESPI_MAXBURST1_MAXBURST2,
usr/src/uts/common/io/chxge/com/espi.c
276
t1_write_reg_4(adapter, A_ESPI_MAXBURST1_MAXBURST2, 0x800100);
usr/src/uts/common/io/chxge/com/espi.c
279
espi_setup_for_pm3393(adapter);
usr/src/uts/common/io/chxge/com/espi.c
281
espi_setup_for_vsc7321(adapter);
usr/src/uts/common/io/chxge/com/espi.c
284
espi_setup_for_ixf1010(adapter, nports);
usr/src/uts/common/io/chxge/com/espi.c
288
t1_write_reg_4(adapter, A_ESPI_FIFO_STATUS_ENABLE,
usr/src/uts/common/io/chxge/com/espi.c
291
if (is_T2(adapter)) {
usr/src/uts/common/io/chxge/com/espi.c
292
(void) tricn_init(adapter);
usr/src/uts/common/io/chxge/com/espi.c
297
espi->misc_ctrl = t1_read_reg_4(adapter, A_ESPI_MISC_CONTROL);
usr/src/uts/common/io/chxge/com/espi.c
300
if (adapter->params.nports == 1)
usr/src/uts/common/io/chxge/com/espi.c
302
t1_write_reg_4(adapter, A_ESPI_MISC_CONTROL, espi->misc_ctrl);
usr/src/uts/common/io/chxge/com/espi.c
31
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/espi.c
311
if (is_T2(espi->adapter)) {
usr/src/uts/common/io/chxge/com/espi.c
317
struct peespi *t1_espi_create(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/espi.c
322
espi->adapter = adapter;
usr/src/uts/common/io/chxge/com/espi.c
326
void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val)
usr/src/uts/common/io/chxge/com/espi.c
328
struct peespi *espi = adapter->espi;
usr/src/uts/common/io/chxge/com/espi.c
330
if (!is_T2(adapter))
usr/src/uts/common/io/chxge/com/espi.c
335
t1_write_reg_4(adapter, A_ESPI_MISC_CONTROL, espi->misc_ctrl);
usr/src/uts/common/io/chxge/com/espi.c
339
u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait)
usr/src/uts/common/io/chxge/com/espi.c
341
struct peespi *espi = adapter->espi;
usr/src/uts/common/io/chxge/com/espi.c
344
if (!is_T2(adapter)) return 0;
usr/src/uts/common/io/chxge/com/espi.c
353
t1_write_reg_4(adapter, A_ESPI_MISC_CONTROL,
usr/src/uts/common/io/chxge/com/espi.c
355
sel = t1_read_reg_4(adapter, A_ESPI_SCH_TOKEN3);
usr/src/uts/common/io/chxge/com/espi.c
356
t1_write_reg_4(adapter, A_ESPI_MISC_CONTROL,
usr/src/uts/common/io/chxge/com/espi.c
360
sel = t1_read_reg_4(adapter, A_ESPI_SCH_TOKEN3);
usr/src/uts/common/io/chxge/com/espi.c
371
t1_espi_get_mon_t204(adapter_t *adapter, u32 *valp, u8 wait)
usr/src/uts/common/io/chxge/com/espi.c
373
struct peespi *espi = adapter->espi;
usr/src/uts/common/io/chxge/com/espi.c
374
u8 i, nport = (u8)adapter->params.nports;
usr/src/uts/common/io/chxge/com/espi.c
384
t1_write_reg_4(adapter, A_ESPI_MISC_CONTROL, espi->misc_ctrl);
usr/src/uts/common/io/chxge/com/espi.c
388
t1_write_reg_4(adapter, A_ESPI_MISC_CONTROL,
usr/src/uts/common/io/chxge/com/espi.c
391
*valp = t1_read_reg_4(adapter, A_ESPI_SCH_TOKEN3);
usr/src/uts/common/io/chxge/com/espi.c
394
t1_write_reg_4(adapter, A_ESPI_MISC_CONTROL, espi->misc_ctrl);
usr/src/uts/common/io/chxge/com/espi.c
47
static int tricn_write(adapter_t *adapter, int bundle_addr, int module_addr,
usr/src/uts/common/io/chxge/com/espi.c
52
t1_write_reg_4(adapter, A_ESPI_CMD_ADDR, V_WRITE_DATA(wr_data) |
usr/src/uts/common/io/chxge/com/espi.c
57
t1_write_reg_4(adapter, A_ESPI_GOSTAT, 0);
usr/src/uts/common/io/chxge/com/espi.c
59
busy = t1_wait_op_done(adapter, A_ESPI_GOSTAT, F_ESPI_CMD_BUSY, 0,
usr/src/uts/common/io/chxge/com/espi.c
63
CH_ERR("%s: TRICN write timed out\n", adapter_name(adapter));
usr/src/uts/common/io/chxge/com/espi.c
69
static int tricn_read(adapter_t *adapter, int bundle_addr, int module_addr,
usr/src/uts/common/io/chxge/com/espi.c
75
t1_write_reg_4(adapter, A_ESPI_CMD_ADDR,
usr/src/uts/common/io/chxge/com/espi.c
80
t1_write_reg_4(adapter, A_ESPI_GOSTAT, 0);
usr/src/uts/common/io/chxge/com/espi.c
83
status = t1_read_reg_4(adapter, A_ESPI_GOSTAT);
usr/src/uts/common/io/chxge/com/espi.c
88
CH_ERR("%s: TRICN read timed out\n", adapter_name(adapter));
usr/src/uts/common/io/chxge/com/espi.c
95
static int tricn_init(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/espi.c
99
if (!(t1_read_reg_4(adapter, A_ESPI_RX_RESET) & F_RX_CLK_STATUS)) {
usr/src/uts/common/io/chxge/com/espi.h
42
struct peespi *t1_espi_create(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/espi.h
52
void t1_espi_set_misc_ctrl(adapter_t *adapter, u32 val);
usr/src/uts/common/io/chxge/com/espi.h
53
u32 t1_espi_get_mon(adapter_t *adapter, u32 addr, u8 wait);
usr/src/uts/common/io/chxge/com/gmac.h
107
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/gmac.h
114
struct cmac *(*create)(adapter_t *adapter, int index);
usr/src/uts/common/io/chxge/com/ixf1010.c
167
(void) t1_tpi_read(mac->adapter, REG_PORT_ENABLE, &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
169
(void) t1_tpi_write(mac->adapter, REG_PORT_ENABLE, val);
usr/src/uts/common/io/chxge/com/ixf1010.c
173
(void) t1_tpi_read((mac)->adapter, MACREG(mac, REG_##name), &val); \
usr/src/uts/common/io/chxge/com/ixf1010.c
236
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MACADDR_LOW), addr_lo);
usr/src/uts/common/io/chxge/com/ixf1010.c
237
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MACADDR_HIGH), addr_hi);
usr/src/uts/common/io/chxge/com/ixf1010.c
245
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_MACADDR_LOW), &addr_lo);
usr/src/uts/common/io/chxge/com/ixf1010.c
246
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_MACADDR_HIGH), &addr_hi);
usr/src/uts/common/io/chxge/com/ixf1010.c
267
adapter_t *adapter = mac->adapter;
usr/src/uts/common/io/chxge/com/ixf1010.c
271
(void) t1_tpi_read(adapter, MACREG(mac, REG_RX_FILTER), &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
279
(void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), new_mode);
usr/src/uts/common/io/chxge/com/ixf1010.c
282
(void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_LOW), 0);
usr/src/uts/common/io/chxge/com/ixf1010.c
283
(void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_HIGH), 0);
usr/src/uts/common/io/chxge/com/ixf1010.c
290
(void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_LOW), addr_lo);
usr/src/uts/common/io/chxge/com/ixf1010.c
291
(void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_HIGH), addr_hi);
usr/src/uts/common/io/chxge/com/ixf1010.c
303
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MAX_FRAME_SIZE),
usr/src/uts/common/io/chxge/com/ixf1010.c
320
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_RGMII_SPEED), val);
usr/src/uts/common/io/chxge/com/ixf1010.c
323
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_FC_ENABLE), &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
329
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_FC_ENABLE), val);
usr/src/uts/common/io/chxge/com/ixf1010.c
341
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_RGMII_SPEED),
usr/src/uts/common/io/chxge/com/ixf1010.c
346
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_FC_ENABLE), &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
360
adapter_t *adapter = mac->adapter;
usr/src/uts/common/io/chxge/com/ixf1010.c
362
(void) t1_tpi_read(adapter, MACREG(mac, REG_DIVERSE_CONFIG), &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
364
(void) t1_tpi_write(adapter, MACREG(mac, REG_DIVERSE_CONFIG), val);
usr/src/uts/common/io/chxge/com/ixf1010.c
366
(void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), 3);
usr/src/uts/common/io/chxge/com/ixf1010.c
368
(void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), 2);
usr/src/uts/common/io/chxge/com/ixf1010.c
370
(void) t1_tpi_read(adapter, REG_RX_ERR_DROP, &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
372
(void) t1_tpi_write(adapter, REG_RX_ERR_DROP, val);
usr/src/uts/common/io/chxge/com/ixf1010.c
382
(void) t1_tpi_read(adapter, REG_PORT_ENABLE, &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
384
(void) t1_tpi_write(adapter, REG_PORT_ENABLE, val);
usr/src/uts/common/io/chxge/com/ixf1010.c
387
if (is_T2(adapter)) {
usr/src/uts/common/io/chxge/com/ixf1010.c
390
(void) t1_tpi_write(adapter, RX_FIFO_HIGH_WATERMARK_BASE + index, 0x740);
usr/src/uts/common/io/chxge/com/ixf1010.c
391
(void) t1_tpi_write(adapter, RX_FIFO_LOW_WATERMARK_BASE + index, 0x730);
usr/src/uts/common/io/chxge/com/ixf1010.c
392
(void) t1_tpi_write(adapter, TX_FIFO_HIGH_WATERMARK_BASE + index, 0x600);
usr/src/uts/common/io/chxge/com/ixf1010.c
393
(void) t1_tpi_write(adapter, TX_FIFO_LOW_WATERMARK_BASE + index, 0x1d0);
usr/src/uts/common/io/chxge/com/ixf1010.c
394
(void) t1_tpi_write(adapter, TX_FIFO_XFER_THRES_BASE + index, 0x1100);
usr/src/uts/common/io/chxge/com/ixf1010.c
400
(void) t1_tpi_write(adapter,
usr/src/uts/common/io/chxge/com/ixf1010.c
490
static int ixf1010_mac_reset(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ixf1010.c
494
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
497
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/ixf1010.c
501
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/ixf1010.c
504
(void) t1_tpi_write(adapter, REG_PORT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/ixf1010.c
508
static struct cmac *ixf1010_mac_create(adapter_t *adapter, int index)
usr/src/uts/common/io/chxge/com/ixf1010.c
523
mac->adapter = adapter;
usr/src/uts/common/io/chxge/com/ixf1010.c
526
(void) t1_tpi_read(adapter, REG_JTAG_ID, &val);
usr/src/uts/common/io/chxge/com/mc3.c
101
t1_write_reg_4(mc3->adapter, A_PL_CAUSE,
usr/src/uts/common/io/chxge/com/mc3.c
109
adapter_t *adapter = mc3->adapter;
usr/src/uts/common/io/chxge/com/mc3.c
114
if (!t1_is_asic(adapter))
usr/src/uts/common/io/chxge/com/mc3.c
117
cause = t1_read_reg_4(adapter, cause_reg);
usr/src/uts/common/io/chxge/com/mc3.c
123
adapter_name(adapter),
usr/src/uts/common/io/chxge/com/mc3.c
124
G_MC3_CE_ADDR(t1_read_reg_4(adapter, A_MC3_CE_ADDR)),
usr/src/uts/common/io/chxge/com/mc3.c
125
t1_read_reg_4(adapter, A_MC3_CE_DATA0),
usr/src/uts/common/io/chxge/com/mc3.c
126
t1_read_reg_4(adapter, A_MC3_CE_DATA1),
usr/src/uts/common/io/chxge/com/mc3.c
127
t1_read_reg_4(adapter, A_MC3_CE_DATA2),
usr/src/uts/common/io/chxge/com/mc3.c
128
t1_read_reg_4(adapter, A_MC3_CE_DATA3),
usr/src/uts/common/io/chxge/com/mc3.c
129
t1_read_reg_4(adapter, A_MC3_CE_DATA4));
usr/src/uts/common/io/chxge/com/mc3.c
136
adapter_name(adapter),
usr/src/uts/common/io/chxge/com/mc3.c
137
G_MC3_UE_ADDR(t1_read_reg_4(adapter, A_MC3_UE_ADDR)),
usr/src/uts/common/io/chxge/com/mc3.c
138
t1_read_reg_4(adapter, A_MC3_UE_DATA0),
usr/src/uts/common/io/chxge/com/mc3.c
139
t1_read_reg_4(adapter, A_MC3_UE_DATA1),
usr/src/uts/common/io/chxge/com/mc3.c
140
t1_read_reg_4(adapter, A_MC3_UE_DATA2),
usr/src/uts/common/io/chxge/com/mc3.c
141
t1_read_reg_4(adapter, A_MC3_UE_DATA3),
usr/src/uts/common/io/chxge/com/mc3.c
142
t1_read_reg_4(adapter, A_MC3_UE_DATA4));
usr/src/uts/common/io/chxge/com/mc3.c
147
CH_ALERT("%s: MC3 parity error 0x%x\n", adapter_name(adapter),
usr/src/uts/common/io/chxge/com/mc3.c
153
CH_ALERT("%s: MC3 address error\n", adapter_name(adapter));
usr/src/uts/common/io/chxge/com/mc3.c
157
t1_fatal_err(adapter);
usr/src/uts/common/io/chxge/com/mc3.c
159
if (t1_is_T1B(adapter)) {
usr/src/uts/common/io/chxge/com/mc3.c
164
t1_write_reg_4(adapter, A_MC3_INT_ENABLE, cause);
usr/src/uts/common/io/chxge/com/mc3.c
166
t1_write_reg_4(adapter, A_MC3_INT_ENABLE, MC3_INTR_MASK);
usr/src/uts/common/io/chxge/com/mc3.c
168
t1_write_reg_4(adapter, cause_reg, cause);
usr/src/uts/common/io/chxge/com/mc3.c
173
#define is_MC3A(adapter) (!t1_is_T1B(adapter))
usr/src/uts/common/io/chxge/com/mc3.c
180
static int wrreg_wait(adapter_t *adapter, unsigned int addr, u32 val)
usr/src/uts/common/io/chxge/com/mc3.c
182
t1_write_reg_4(adapter, addr, val);
usr/src/uts/common/io/chxge/com/mc3.c
183
val = t1_read_reg_4(adapter, addr); /* flush */
usr/src/uts/common/io/chxge/com/mc3.c
184
if (!(t1_read_reg_4(adapter, addr) & F_BUSY))
usr/src/uts/common/io/chxge/com/mc3.c
187
adapter_name(adapter), addr);
usr/src/uts/common/io/chxge/com/mc3.c
197
adapter_t *adapter = mc3->adapter;
usr/src/uts/common/io/chxge/com/mc3.c
200
val = t1_read_reg_4(adapter, A_MC3_CFG);
usr/src/uts/common/io/chxge/com/mc3.c
201
width = is_MC3A(adapter) ? G_MC3_WIDTH(val) : 0;
usr/src/uts/common/io/chxge/com/mc3.c
202
fast_asic = t1_is_asic(adapter) && !(val & F_MC3_SLOW);
usr/src/uts/common/io/chxge/com/mc3.c
225
t1_write_reg_4(adapter, A_MC3_CFG, val);
usr/src/uts/common/io/chxge/com/mc3.c
227
val = t1_read_reg_4(adapter, A_MC3_CFG);
usr/src/uts/common/io/chxge/com/mc3.c
228
t1_write_reg_4(adapter, A_MC3_CFG, val | F_CLK_ENABLE);
usr/src/uts/common/io/chxge/com/mc3.c
229
val = t1_read_reg_4(adapter, A_MC3_CFG); /* flush */
usr/src/uts/common/io/chxge/com/mc3.c
232
val = t1_read_reg_4(adapter, A_MC3_STROBE);
usr/src/uts/common/io/chxge/com/mc3.c
233
if (is_MC3A(adapter)) {
usr/src/uts/common/io/chxge/com/mc3.c
234
t1_write_reg_4(adapter, A_MC3_STROBE,
usr/src/uts/common/io/chxge/com/mc3.c
241
t1_write_reg_4(adapter, A_MC3_STROBE,
usr/src/uts/common/io/chxge/com/mc3.c
248
val = t1_read_reg_4(adapter, A_MC3_STROBE);
usr/src/uts/common/io/chxge/com/mc3.c
252
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/mc3.c
259
if (wrreg_wait(adapter, A_MC3_PRECHARG, 0))
usr/src/uts/common/io/chxge/com/mc3.c
263
if (wrreg_wait(adapter, A_MC3_EXT_MODE, fast_asic ? 0 : 1))
usr/src/uts/common/io/chxge/com/mc3.c
267
if (wrreg_wait(adapter, A_MC3_MODE, fast_asic ? 0x161 : 0x21))
usr/src/uts/common/io/chxge/com/mc3.c
271
if (wrreg_wait(adapter, A_MC3_PRECHARG, 0))
usr/src/uts/common/io/chxge/com/mc3.c
275
val = t1_read_reg_4(adapter, A_MC3_REFRESH);
usr/src/uts/common/io/chxge/com/mc3.c
276
if (wrreg_wait(adapter, A_MC3_REFRESH, val & ~F_REFRESH_ENABLE))
usr/src/uts/common/io/chxge/com/mc3.c
280
if (wrreg_wait(adapter, A_MC3_REFRESH, val & ~F_REFRESH_ENABLE))
usr/src/uts/common/io/chxge/com/mc3.c
284
if (wrreg_wait(adapter, A_MC3_MODE, fast_asic ? 0x61 : 0x21))
usr/src/uts/common/io/chxge/com/mc3.c
293
t1_write_reg_4(adapter, A_MC3_REFRESH,
usr/src/uts/common/io/chxge/com/mc3.c
295
(void) t1_read_reg_4(adapter, A_MC3_REFRESH); /* flush */
usr/src/uts/common/io/chxge/com/mc3.c
297
t1_write_reg_4(adapter, A_MC3_ECC_CNTL,
usr/src/uts/common/io/chxge/com/mc3.c
301
t1_write_reg_4(adapter, A_MC3_BIST_ADDR_BEG, 0);
usr/src/uts/common/io/chxge/com/mc3.c
302
t1_write_reg_4(adapter, A_MC3_BIST_ADDR_END, (mc3->size << width) - 1);
usr/src/uts/common/io/chxge/com/mc3.c
303
t1_write_reg_4(adapter, A_MC3_BIST_DATA, 0);
usr/src/uts/common/io/chxge/com/mc3.c
304
t1_write_reg_4(adapter, A_MC3_BIST_OP, V_OP(1) | 0x1f0);
usr/src/uts/common/io/chxge/com/mc3.c
305
(void) t1_read_reg_4(adapter, A_MC3_BIST_OP); /* flush */
usr/src/uts/common/io/chxge/com/mc3.c
310
val = t1_read_reg_4(adapter, A_MC3_BIST_OP);
usr/src/uts/common/io/chxge/com/mc3.c
313
CH_ERR("%s: MC3 BIST timed out\n", adapter_name(adapter));
usr/src/uts/common/io/chxge/com/mc3.c
318
val = t1_read_reg_4(adapter, A_MC3_CFG);
usr/src/uts/common/io/chxge/com/mc3.c
319
t1_write_reg_4(adapter, A_MC3_CFG, val | F_READY);
usr/src/uts/common/io/chxge/com/mc3.c
326
static unsigned int __devinit mc3_calc_size(const adapter_t *adapter, u32 cfg)
usr/src/uts/common/io/chxge/com/mc3.c
332
unsigned int capacity_in_MB = is_MC3A(adapter) ?
usr/src/uts/common/io/chxge/com/mc3.c
339
struct pemc3 * __devinit t1_mc3_create(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/mc3.c
344
mc3->adapter = adapter;
usr/src/uts/common/io/chxge/com/mc3.c
345
mc3->size = mc3_calc_size(adapter,
usr/src/uts/common/io/chxge/com/mc3.c
346
t1_read_reg_4(adapter, A_MC3_CFG));
usr/src/uts/common/io/chxge/com/mc3.c
35
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/mc3.c
46
u32 en = t1_read_reg_4(mc3->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/mc3.c
48
if (t1_is_asic(mc3->adapter)) {
usr/src/uts/common/io/chxge/com/mc3.c
49
t1_write_reg_4(mc3->adapter, A_MC3_INT_ENABLE, MC3_INTR_MASK);
usr/src/uts/common/io/chxge/com/mc3.c
50
t1_write_reg_4(mc3->adapter, A_PL_ENABLE, en | F_PL_INTR_MC3);
usr/src/uts/common/io/chxge/com/mc3.c
53
t1_write_reg_4(mc3->adapter, FPGA_MC3_REG_INTRENABLE,
usr/src/uts/common/io/chxge/com/mc3.c
55
t1_write_reg_4(mc3->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/mc3.c
63
u32 pl_intr = t1_read_reg_4(mc3->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/mc3.c
65
if (t1_is_asic(mc3->adapter)) {
usr/src/uts/common/io/chxge/com/mc3.c
66
t1_write_reg_4(mc3->adapter, A_MC3_INT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/mc3.c
67
t1_write_reg_4(mc3->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/mc3.c
71
t1_write_reg_4(mc3->adapter, FPGA_MC3_REG_INTRENABLE, 0);
usr/src/uts/common/io/chxge/com/mc3.c
72
t1_write_reg_4(mc3->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/mc3.c
80
if (t1_is_asic(mc3->adapter)) {
usr/src/uts/common/io/chxge/com/mc3.c
81
if (t1_is_T1B(mc3->adapter)) {
usr/src/uts/common/io/chxge/com/mc3.c
88
old_en = t1_read_reg_4(mc3->adapter, A_MC3_INT_ENABLE);
usr/src/uts/common/io/chxge/com/mc3.c
89
t1_write_reg_4(mc3->adapter, A_MC3_INT_ENABLE,
usr/src/uts/common/io/chxge/com/mc3.c
91
t1_write_reg_4(mc3->adapter, A_MC3_INT_ENABLE, old_en);
usr/src/uts/common/io/chxge/com/mc3.c
93
t1_write_reg_4(mc3->adapter, A_MC3_INT_CAUSE,
usr/src/uts/common/io/chxge/com/mc3.c
96
t1_write_reg_4(mc3->adapter, A_PL_CAUSE, F_PL_INTR_MC3);
usr/src/uts/common/io/chxge/com/mc3.c
99
t1_write_reg_4(mc3->adapter, FPGA_MC3_REG_INTRCAUSE,
usr/src/uts/common/io/chxge/com/mc3.h
40
struct pemc3 *t1_mc3_create(adapter_t * adapter);
usr/src/uts/common/io/chxge/com/mc4.c
100
val = t1_read_reg_4(adapter, A_MC4_STROBE);
usr/src/uts/common/io/chxge/com/mc4.c
101
t1_write_reg_4(adapter, A_MC4_STROBE,
usr/src/uts/common/io/chxge/com/mc4.c
112
if (t1_is_asic(adapter) && !slow_mode) {
usr/src/uts/common/io/chxge/com/mc4.c
113
val = t1_read_reg_4(adapter, A_MC4_STROBE);
usr/src/uts/common/io/chxge/com/mc4.c
114
t1_write_reg_4(adapter, A_MC4_STROBE,
usr/src/uts/common/io/chxge/com/mc4.c
121
val = t1_read_reg_4(adapter, A_MC4_STROBE);
usr/src/uts/common/io/chxge/com/mc4.c
125
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/mc4.c
134
ext_mode = t1_is_asic(adapter) && !slow_mode ? 0 : 1;
usr/src/uts/common/io/chxge/com/mc4.c
135
if (wrreg_wait(adapter, A_MC4_EXT_MODE, ext_mode))
usr/src/uts/common/io/chxge/com/mc4.c
139
if (wrreg_wait(adapter, A_MC4_MODE, 0x32))
usr/src/uts/common/io/chxge/com/mc4.c
143
val = t1_read_reg_4(adapter, A_MC4_REFRESH);
usr/src/uts/common/io/chxge/com/mc4.c
144
if (wrreg_wait(adapter, A_MC4_REFRESH, val & ~F_REFRESH_ENABLE))
usr/src/uts/common/io/chxge/com/mc4.c
148
if (wrreg_wait(adapter, A_MC4_REFRESH, val & ~F_REFRESH_ENABLE))
usr/src/uts/common/io/chxge/com/mc4.c
157
t1_write_reg_4(adapter, A_MC4_REFRESH,
usr/src/uts/common/io/chxge/com/mc4.c
159
(void) t1_read_reg_4(adapter, A_MC4_REFRESH); /* flush */
usr/src/uts/common/io/chxge/com/mc4.c
161
t1_write_reg_4(adapter, A_MC4_ECC_CNTL,
usr/src/uts/common/io/chxge/com/mc4.c
165
t1_write_reg_4(adapter, A_MC4_BIST_ADDR_BEG, 0);
usr/src/uts/common/io/chxge/com/mc4.c
166
t1_write_reg_4(adapter, A_MC4_BIST_ADDR_END, (mc4->size << width) - 1);
usr/src/uts/common/io/chxge/com/mc4.c
167
t1_write_reg_4(adapter, A_MC4_BIST_DATA, 0);
usr/src/uts/common/io/chxge/com/mc4.c
168
t1_write_reg_4(adapter, A_MC4_BIST_OP, V_OP(1) | 0x1f0);
usr/src/uts/common/io/chxge/com/mc4.c
169
(void) t1_read_reg_4(adapter, A_MC4_BIST_OP); /* flush */
usr/src/uts/common/io/chxge/com/mc4.c
174
val = t1_read_reg_4(adapter, A_MC4_BIST_OP);
usr/src/uts/common/io/chxge/com/mc4.c
177
CH_ERR("%s: MC4 BIST timed out\n", adapter_name(adapter));
usr/src/uts/common/io/chxge/com/mc4.c
182
val = t1_read_reg_4(adapter, A_MC4_CFG);
usr/src/uts/common/io/chxge/com/mc4.c
183
t1_write_reg_4(adapter, A_MC4_CFG, val | F_READY);
usr/src/uts/common/io/chxge/com/mc4.c
184
val = t1_read_reg_4(adapter, A_MC4_CFG); /* flush */
usr/src/uts/common/io/chxge/com/mc4.c
191
struct pemc4 * __devinit t1_mc4_create(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/mc4.c
196
mc4->adapter = adapter;
usr/src/uts/common/io/chxge/com/mc4.c
197
mc4->size = mc4_calc_size(adapter);
usr/src/uts/common/io/chxge/com/mc4.c
214
if (t1_is_asic(mc4->adapter)) {
usr/src/uts/common/io/chxge/com/mc4.c
215
t1_write_reg_4(mc4->adapter, A_MC4_INT_ENABLE, MC4_INT_MASK);
usr/src/uts/common/io/chxge/com/mc4.c
217
pl_intr = t1_read_reg_4(mc4->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/mc4.c
218
t1_write_reg_4(mc4->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/mc4.c
227
if (t1_is_asic(mc4->adapter)) {
usr/src/uts/common/io/chxge/com/mc4.c
228
t1_write_reg_4(mc4->adapter, A_MC4_INT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/mc4.c
230
pl_intr = t1_read_reg_4(mc4->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/mc4.c
231
t1_write_reg_4(mc4->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/mc4.c
238
if (t1_is_asic(mc4->adapter)) {
usr/src/uts/common/io/chxge/com/mc4.c
239
t1_write_reg_4(mc4->adapter, A_MC4_INT_CAUSE, 0xffffffff);
usr/src/uts/common/io/chxge/com/mc4.c
240
t1_write_reg_4(mc4->adapter, A_PL_CAUSE, F_PL_INTR_MC4);
usr/src/uts/common/io/chxge/com/mc4.c
246
adapter_t *adapter = mc4->adapter;
usr/src/uts/common/io/chxge/com/mc4.c
247
u32 cause = t1_read_reg_4(adapter, A_MC4_INT_CAUSE);
usr/src/uts/common/io/chxge/com/mc4.c
253
adapter_name(adapter),
usr/src/uts/common/io/chxge/com/mc4.c
254
G_MC4_CE_ADDR(t1_read_reg_4(adapter, A_MC4_CE_ADDR)),
usr/src/uts/common/io/chxge/com/mc4.c
255
t1_read_reg_4(adapter, A_MC4_CE_DATA0),
usr/src/uts/common/io/chxge/com/mc4.c
256
t1_read_reg_4(adapter, A_MC4_CE_DATA1),
usr/src/uts/common/io/chxge/com/mc4.c
257
t1_read_reg_4(adapter, A_MC4_CE_DATA2),
usr/src/uts/common/io/chxge/com/mc4.c
258
t1_read_reg_4(adapter, A_MC4_CE_DATA3),
usr/src/uts/common/io/chxge/com/mc4.c
259
t1_read_reg_4(adapter, A_MC4_CE_DATA4));
usr/src/uts/common/io/chxge/com/mc4.c
266
adapter_name(adapter),
usr/src/uts/common/io/chxge/com/mc4.c
267
G_MC4_UE_ADDR(t1_read_reg_4(adapter, A_MC4_UE_ADDR)),
usr/src/uts/common/io/chxge/com/mc4.c
268
t1_read_reg_4(adapter, A_MC4_UE_DATA0),
usr/src/uts/common/io/chxge/com/mc4.c
269
t1_read_reg_4(adapter, A_MC4_UE_DATA1),
usr/src/uts/common/io/chxge/com/mc4.c
270
t1_read_reg_4(adapter, A_MC4_UE_DATA2),
usr/src/uts/common/io/chxge/com/mc4.c
271
t1_read_reg_4(adapter, A_MC4_UE_DATA3),
usr/src/uts/common/io/chxge/com/mc4.c
272
t1_read_reg_4(adapter, A_MC4_UE_DATA4));
usr/src/uts/common/io/chxge/com/mc4.c
277
CH_ALERT("%s: MC4 address error\n", adapter_name(adapter));
usr/src/uts/common/io/chxge/com/mc4.c
281
t1_fatal_err(adapter);
usr/src/uts/common/io/chxge/com/mc4.c
283
t1_write_reg_4(mc4->adapter, A_MC4_INT_CAUSE, cause);
usr/src/uts/common/io/chxge/com/mc4.c
299
adapter_t *adap = mc4->adapter;
usr/src/uts/common/io/chxge/com/mc4.c
33
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/mc4.c
44
#define is_MC4A(adapter) (!t1_is_T1B(adapter))
usr/src/uts/common/io/chxge/com/mc4.c
47
static unsigned int __devinit mc4_calc_size(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/mc4.c
49
u32 mc4_cfg = t1_read_reg_4(adapter, A_MC4_CFG);
usr/src/uts/common/io/chxge/com/mc4.c
50
unsigned int width = is_MC4A(adapter) ? G_MC4A_WIDTH(mc4_cfg) :
usr/src/uts/common/io/chxge/com/mc4.c
62
static int wrreg_wait(adapter_t *adapter, unsigned int addr, u32 val)
usr/src/uts/common/io/chxge/com/mc4.c
66
t1_write_reg_4(adapter, addr, val);
usr/src/uts/common/io/chxge/com/mc4.c
67
val = t1_read_reg_4(adapter, addr); /* flush */
usr/src/uts/common/io/chxge/com/mc4.c
69
if (!(t1_read_reg_4(adapter, addr) & F_BUSY))
usr/src/uts/common/io/chxge/com/mc4.c
75
adapter_name(adapter), addr);
usr/src/uts/common/io/chxge/com/mc4.c
86
adapter_t *adapter = mc4->adapter;
usr/src/uts/common/io/chxge/com/mc4.c
89
val = t1_read_reg_4(adapter, A_MC4_CFG);
usr/src/uts/common/io/chxge/com/mc4.c
90
t1_write_reg_4(adapter, A_MC4_CFG, val | F_POWER_UP);
usr/src/uts/common/io/chxge/com/mc4.c
91
val = t1_read_reg_4(adapter, A_MC4_CFG); /* flush */
usr/src/uts/common/io/chxge/com/mc4.c
93
if (is_MC4A(adapter)) {
usr/src/uts/common/io/chxge/com/mc4.h
39
struct pemc4 *t1_mc4_create(adapter_t *adapter);
usr/src/uts/common/io/chxge/com/mc5.c
105
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/mc5.c
125
static int mc5_cmd_write(adapter_t *adapter, u32 cmd)
usr/src/uts/common/io/chxge/com/mc5.c
127
t1_write_reg_4(adapter, A_MC5_DBGI_REQ_CMD, cmd);
usr/src/uts/common/io/chxge/com/mc5.c
128
return t1_wait_op_done(adapter, A_MC5_DBGI_RSP_STATUS,
usr/src/uts/common/io/chxge/com/mc5.c
141
t1_write_reg_4(mc5->adapter, A_MC5_ROUTING_TABLE_INDEX, rtbl_base);
usr/src/uts/common/io/chxge/com/mc5.c
147
return t1_read_reg_4(mc5->adapter, A_MC5_ROUTING_TABLE_INDEX);
usr/src/uts/common/io/chxge/com/mc5.c
161
t1_write_reg_4(mc5->adapter, A_MC5_SERVER_INDEX, server_base);
usr/src/uts/common/io/chxge/com/mc5.c
167
return t1_read_reg_4(mc5->adapter, A_MC5_SERVER_INDEX);
usr/src/uts/common/io/chxge/com/mc5.c
178
static inline void dbgi_wr_addr3(adapter_t *adapter, u32 v1, u32 v2, u32 v3)
usr/src/uts/common/io/chxge/com/mc5.c
180
t1_write_reg_4(adapter, A_MC5_DBGI_REQ_ADDR0, v1);
usr/src/uts/common/io/chxge/com/mc5.c
181
t1_write_reg_4(adapter, A_MC5_DBGI_REQ_ADDR1, v2);
usr/src/uts/common/io/chxge/com/mc5.c
182
t1_write_reg_4(adapter, A_MC5_DBGI_REQ_ADDR2, v3);
usr/src/uts/common/io/chxge/com/mc5.c
185
static inline void dbgi_wr_data3(adapter_t *adapter, u32 v1, u32 v2, u32 v3)
usr/src/uts/common/io/chxge/com/mc5.c
187
t1_write_reg_4(adapter, A_MC5_DBGI_REQ_DATA0, v1);
usr/src/uts/common/io/chxge/com/mc5.c
188
t1_write_reg_4(adapter, A_MC5_DBGI_REQ_DATA1, v2);
usr/src/uts/common/io/chxge/com/mc5.c
189
t1_write_reg_4(adapter, A_MC5_DBGI_REQ_DATA2, v3);
usr/src/uts/common/io/chxge/com/mc5.c
192
static inline void dbgi_rd_rsp3(adapter_t *adapter, u32 *v1, u32 *v2, u32 *v3)
usr/src/uts/common/io/chxge/com/mc5.c
194
*v1 = t1_read_reg_4(adapter, A_MC5_DBGI_RSP_DATA0);
usr/src/uts/common/io/chxge/com/mc5.c
195
*v2 = t1_read_reg_4(adapter, A_MC5_DBGI_RSP_DATA1);
usr/src/uts/common/io/chxge/com/mc5.c
196
*v3 = t1_read_reg_4(adapter, A_MC5_DBGI_RSP_DATA2);
usr/src/uts/common/io/chxge/com/mc5.c
204
static int mc5_write(adapter_t *adapter, u32 addr_lo, u32 cmd)
usr/src/uts/common/io/chxge/com/mc5.c
206
t1_write_reg_4(adapter, A_MC5_DBGI_REQ_ADDR0, addr_lo);
usr/src/uts/common/io/chxge/com/mc5.c
207
if (mc5_cmd_write(adapter, cmd) == 0)
usr/src/uts/common/io/chxge/com/mc5.c
210
adapter_name(adapter), addr_lo);
usr/src/uts/common/io/chxge/com/mc5.c
218
adapter_t *adap = mc5->adapter;
usr/src/uts/common/io/chxge/com/mc5.c
251
adapter_t *adap = mc5->adapter;
usr/src/uts/common/io/chxge/com/mc5.c
316
adapter_t *adap = mc5->adapter;
usr/src/uts/common/io/chxge/com/mc5.c
381
t1_write_reg_4(mc5->adapter, A_MC5_CONFIG,
usr/src/uts/common/io/chxge/com/mc5.c
389
t1_write_reg_4(mc5->adapter, A_MC5_CONFIG,
usr/src/uts/common/io/chxge/com/mc5.c
407
adapter_t *adap = mc5->adapter;
usr/src/uts/common/io/chxge/com/mc5.c
466
adapter_t *adap = mc5->adapter;
usr/src/uts/common/io/chxge/com/mc5.c
507
if (!t1_is_asic(mc5->adapter)) {
usr/src/uts/common/io/chxge/com/mc5.c
514
t1_write_reg_4(mc5->adapter, A_MC5_INT_ENABLE, mask);
usr/src/uts/common/io/chxge/com/mc5.c
518
u32 pl_intr = t1_read_reg_4(mc5->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/mc5.c
520
t1_write_reg_4(mc5->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/mc5.c
522
t1_write_reg_4(mc5->adapter, A_MC5_INT_ENABLE,
usr/src/uts/common/io/chxge/com/mc5.c
531
if (!t1_is_asic(mc5->adapter))
usr/src/uts/common/io/chxge/com/mc5.c
532
t1_write_reg_4(mc5->adapter, A_MC5_INT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/mc5.c
536
u32 pl_intr = t1_read_reg_4(mc5->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/mc5.c
538
t1_write_reg_4(mc5->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/mc5.c
540
t1_write_reg_4(mc5->adapter, A_MC5_INT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/mc5.c
547
if (!t1_is_asic(mc5->adapter)) {
usr/src/uts/common/io/chxge/com/mc5.c
548
t1_write_reg_4(mc5->adapter, A_MC5_INT_CAUSE, 0xffffffff);
usr/src/uts/common/io/chxge/com/mc5.c
552
t1_write_reg_4(mc5->adapter, A_PL_CAUSE, F_PL_INTR_MC5);
usr/src/uts/common/io/chxge/com/mc5.c
553
t1_write_reg_4(mc5->adapter, A_MC5_INT_CAUSE, 0xffffffff);
usr/src/uts/common/io/chxge/com/mc5.c
562
adapter_t *adap = mc5->adapter;
usr/src/uts/common/io/chxge/com/mc5.c
632
struct pemc5 * __devinit t1_mc5_create(adapter_t *adapter, int mode)
usr/src/uts/common/io/chxge/com/mc5.c
643
mc5->adapter = adapter;
usr/src/uts/common/io/chxge/com/mc5.c
646
cfg = t1_read_reg_4(adapter, A_MC5_CONFIG);
usr/src/uts/common/io/chxge/com/mc5.c
694
u32 cfg = t1_read_reg_4(mc5->adapter, A_MC5_CONFIG);
usr/src/uts/common/io/chxge/com/mc5.c
695
t1_write_reg_4(mc5->adapter, A_MC5_CONFIG,
usr/src/uts/common/io/chxge/com/mc5.c
700
t1_write_reg_4(mc5->adapter, A_MC5_LIP_RAM_DATA, p[i]);
usr/src/uts/common/io/chxge/com/mc5.c
701
t1_write_reg_4(mc5->adapter, A_MC5_LIP_RAM_ADDR, 0x100 + i);
usr/src/uts/common/io/chxge/com/mc5.c
705
t1_write_reg_4(mc5->adapter, A_MC5_CONFIG, cfg | F_COMPRESSION_ENABLE);
usr/src/uts/common/io/chxge/com/mc5.h
58
struct pemc5 *t1_mc5_create(adapter_t *adapter, int mode);
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
101
if (is_T2(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
104
(void) t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer);
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
115
if (t1_is_asic(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
118
(void) t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer);
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
120
if (is_T2(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
123
(void) t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer);
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
136
if (t1_is_asic(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
137
(void) t1_tpi_read(cphy->adapter, A_ELMER0_INT_CAUSE, &elmer);
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
139
if (is_T2(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
142
(void) t1_tpi_write(cphy->adapter, A_ELMER0_INT_CAUSE, elmer);
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
395
static struct cphy *mv88e1xxx_phy_create(adapter_t *adapter, int phy_addr,
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
402
cphy_init(cphy, adapter, phy_addr, &mv88e1xxx_ops, mdio_ops);
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
405
if ((board_info(adapter)->caps & SUPPORTED_TP) &&
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
406
board_info(adapter)->chip_phy == CHBT_PHY_88E1111) {
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
416
if (is_T2(adapter)) {
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
425
static int mv88e1xxx_phy_reset(adapter_t* adapter)
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
96
if (t1_is_asic(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88e1xxx.c
99
(void) t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer);
usr/src/uts/common/io/chxge/com/mv88x201x.c
100
(void) t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer);
usr/src/uts/common/io/chxge/com/mv88x201x.c
134
if (t1_is_asic(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88x201x.c
135
(void) t1_tpi_read(cphy->adapter, A_ELMER0_INT_CAUSE, &elmer);
usr/src/uts/common/io/chxge/com/mv88x201x.c
137
(void) t1_tpi_write(cphy->adapter, A_ELMER0_INT_CAUSE, elmer);
usr/src/uts/common/io/chxge/com/mv88x201x.c
216
static struct cphy *mv88x201x_phy_create(adapter_t *adapter, int phy_addr,
usr/src/uts/common/io/chxge/com/mv88x201x.c
225
cphy_init(cphy, adapter, phy_addr, &mv88x201x_ops, mdio_ops);
usr/src/uts/common/io/chxge/com/mv88x201x.c
241
static int mv88x201x_phy_reset(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/mv88x201x.c
245
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/mv88x201x.c
247
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/mv88x201x.c
250
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val | 4);
usr/src/uts/common/io/chxge/com/mv88x201x.c
254
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/mv88x201x.c
256
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/mv88x201x.c
79
if (t1_is_asic(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88x201x.c
82
(void) t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer);
usr/src/uts/common/io/chxge/com/mv88x201x.c
84
(void) t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer);
usr/src/uts/common/io/chxge/com/mv88x201x.c
95
if (t1_is_asic(cphy->adapter)) {
usr/src/uts/common/io/chxge/com/mv88x201x.c
98
(void) t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer);
usr/src/uts/common/io/chxge/com/my3126.c
101
(void) t1_tpi_read(adapter,
usr/src/uts/common/io/chxge/com/my3126.c
103
(void) t1_tpi_read(adapter,
usr/src/uts/common/io/chxge/com/my3126.c
110
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/my3126.c
114
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/my3126.c
136
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/my3126.c
139
if (!is_T2(cphy->adapter))
usr/src/uts/common/io/chxge/com/my3126.c
142
adapter = cphy->adapter;
usr/src/uts/common/io/chxge/com/my3126.c
154
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/my3126.c
205
static struct cphy *my3126_phy_create(adapter_t *adapter, int phy_addr,
usr/src/uts/common/io/chxge/com/my3126.c
211
cphy_init(cphy, adapter, phy_addr, &my3126_ops, mdio_ops);
usr/src/uts/common/io/chxge/com/my3126.c
213
if (is_T2(adapter)) {
usr/src/uts/common/io/chxge/com/my3126.c
214
ch_init_cyclic(adapter, &cphy->phy_update_cyclic,
usr/src/uts/common/io/chxge/com/my3126.c
223
static int my3126_phy_reset(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/my3126.c
227
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/my3126.c
229
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/my3126.c
232
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val | 4);
usr/src/uts/common/io/chxge/com/my3126.c
236
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/my3126.c
238
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/my3126.c
45
if (!is_T2(cphy->adapter))
usr/src/uts/common/io/chxge/com/my3126.c
48
(void) t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo);
usr/src/uts/common/io/chxge/com/my3126.c
56
if (is_T2(cphy->adapter))
usr/src/uts/common/io/chxge/com/my3126.c
76
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/my3126.c
79
if (!is_T2(cphy->adapter))
usr/src/uts/common/io/chxge/com/my3126.c
82
adapter = cphy->adapter;
usr/src/uts/common/io/chxge/com/my3126.c
89
link_changed(adapter, 0);
usr/src/uts/common/io/chxge/com/my3126.c
99
(void) t1_tpi_write(adapter, OFFSET(SUNI1x10GEXP_REG_MSTAT_CONTROL),
usr/src/uts/common/io/chxge/com/pm3393.c
101
(void) t1_tpi_write(cmac->adapter, OFFSET(reg), data32);
usr/src/uts/common/io/chxge/com/pm3393.c
159
(void) t1_tpi_read(cmac->adapter, A_ELMER0_INT_ENABLE, &elmer);
usr/src/uts/common/io/chxge/com/pm3393.c
161
(void) t1_tpi_write(cmac->adapter, A_ELMER0_INT_ENABLE, elmer);
usr/src/uts/common/io/chxge/com/pm3393.c
165
pl_intr = t1_read_reg_4(cmac->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/pm3393.c
167
t1_write_reg_4(cmac->adapter, A_PL_ENABLE, pl_intr);
usr/src/uts/common/io/chxge/com/pm3393.c
198
(void) t1_tpi_read(cmac->adapter, A_ELMER0_INT_ENABLE, &elmer);
usr/src/uts/common/io/chxge/com/pm3393.c
200
(void) t1_tpi_write(cmac->adapter, A_ELMER0_INT_ENABLE, elmer);
usr/src/uts/common/io/chxge/com/pm3393.c
241
(void) t1_tpi_read(cmac->adapter, A_ELMER0_INT_CAUSE, &elmer);
usr/src/uts/common/io/chxge/com/pm3393.c
243
(void) t1_tpi_write(cmac->adapter, A_ELMER0_INT_CAUSE, elmer);
usr/src/uts/common/io/chxge/com/pm3393.c
247
pl_intr = t1_read_reg_4(cmac->adapter, A_PL_CAUSE);
usr/src/uts/common/io/chxge/com/pm3393.c
249
t1_write_reg_4(cmac->adapter, A_PL_CAUSE, pl_intr);
usr/src/uts/common/io/chxge/com/pm3393.c
266
CH_DBG(cmac->adapter, INTR, "PM3393 intr cause 0x%x\n",
usr/src/uts/common/io/chxge/com/pm3393.c
392
extern void link_changed(adapter_t *adapter, int port_id);
usr/src/uts/common/io/chxge/com/pm3393.c
393
link_changed(cmac->adapter, 0);
usr/src/uts/common/io/chxge/com/pm3393.c
556
(void) t1_tpi_read((mac)->adapter, OFFSET(name), &val0); \
usr/src/uts/common/io/chxge/com/pm3393.c
557
(void) t1_tpi_read((mac)->adapter, OFFSET(((name)+1)), &val1); \
usr/src/uts/common/io/chxge/com/pm3393.c
558
(void) t1_tpi_read((mac)->adapter, OFFSET(((name)+2)), &val2); \
usr/src/uts/common/io/chxge/com/pm3393.c
729
static struct cmac *pm3393_mac_create(adapter_t *adapter, int index)
usr/src/uts/common/io/chxge/com/pm3393.c
739
cmac->adapter = adapter;
usr/src/uts/common/io/chxge/com/pm3393.c
742
(void) t1_tpi_write(adapter, OFFSET(0x0001), 0x00008000);
usr/src/uts/common/io/chxge/com/pm3393.c
743
(void) t1_tpi_write(adapter, OFFSET(0x0001), 0x00000000);
usr/src/uts/common/io/chxge/com/pm3393.c
744
(void) t1_tpi_write(adapter, OFFSET(0x2308), 0x00009800);
usr/src/uts/common/io/chxge/com/pm3393.c
745
(void) t1_tpi_write(adapter, OFFSET(0x2305), 0x00001001); /* PL4IO Enable */
usr/src/uts/common/io/chxge/com/pm3393.c
746
(void) t1_tpi_write(adapter, OFFSET(0x2320), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
747
(void) t1_tpi_write(adapter, OFFSET(0x2321), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
748
(void) t1_tpi_write(adapter, OFFSET(0x2322), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
749
(void) t1_tpi_write(adapter, OFFSET(0x2323), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
750
(void) t1_tpi_write(adapter, OFFSET(0x2324), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
751
(void) t1_tpi_write(adapter, OFFSET(0x2325), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
752
(void) t1_tpi_write(adapter, OFFSET(0x2326), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
753
(void) t1_tpi_write(adapter, OFFSET(0x2327), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
754
(void) t1_tpi_write(adapter, OFFSET(0x2328), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
755
(void) t1_tpi_write(adapter, OFFSET(0x2329), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
756
(void) t1_tpi_write(adapter, OFFSET(0x232a), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
757
(void) t1_tpi_write(adapter, OFFSET(0x232b), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
758
(void) t1_tpi_write(adapter, OFFSET(0x232c), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
759
(void) t1_tpi_write(adapter, OFFSET(0x232d), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
760
(void) t1_tpi_write(adapter, OFFSET(0x232e), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
761
(void) t1_tpi_write(adapter, OFFSET(0x232f), 0x00008800);
usr/src/uts/common/io/chxge/com/pm3393.c
762
(void) t1_tpi_write(adapter, OFFSET(0x230d), 0x00009c00);
usr/src/uts/common/io/chxge/com/pm3393.c
763
(void) t1_tpi_write(adapter, OFFSET(0x2304), 0x00000202); /* PL4IO Calendar Repetitions */
usr/src/uts/common/io/chxge/com/pm3393.c
765
(void) t1_tpi_write(adapter, OFFSET(0x3200), 0x00008080); /* EFLX Enable */
usr/src/uts/common/io/chxge/com/pm3393.c
766
(void) t1_tpi_write(adapter, OFFSET(0x3210), 0x00000000); /* EFLX Channel Deprovision */
usr/src/uts/common/io/chxge/com/pm3393.c
767
(void) t1_tpi_write(adapter, OFFSET(0x3203), 0x00000000); /* EFLX Low Limit */
usr/src/uts/common/io/chxge/com/pm3393.c
768
(void) t1_tpi_write(adapter, OFFSET(0x3204), 0x00000040); /* EFLX High Limit */
usr/src/uts/common/io/chxge/com/pm3393.c
769
(void) t1_tpi_write(adapter, OFFSET(0x3205), 0x000002cc); /* EFLX Almost Full */
usr/src/uts/common/io/chxge/com/pm3393.c
770
(void) t1_tpi_write(adapter, OFFSET(0x3206), 0x00000199); /* EFLX Almost Empty */
usr/src/uts/common/io/chxge/com/pm3393.c
771
(void) t1_tpi_write(adapter, OFFSET(0x3207), 0x00000240); /* EFLX Cut Through Threshold */
usr/src/uts/common/io/chxge/com/pm3393.c
772
(void) t1_tpi_write(adapter, OFFSET(0x3202), 0x00000000); /* EFLX Indirect Register Update */
usr/src/uts/common/io/chxge/com/pm3393.c
773
(void) t1_tpi_write(adapter, OFFSET(0x3210), 0x00000001); /* EFLX Channel Provision */
usr/src/uts/common/io/chxge/com/pm3393.c
774
(void) t1_tpi_write(adapter, OFFSET(0x3208), 0x0000ffff); /* EFLX Undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
775
(void) t1_tpi_write(adapter, OFFSET(0x320a), 0x0000ffff); /* EFLX Undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
776
(void) t1_tpi_write(adapter, OFFSET(0x320c), 0x0000ffff); /* EFLX enable overflow interrupt The other bit are undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
777
(void) t1_tpi_write(adapter, OFFSET(0x320e), 0x0000ffff); /* EFLX Undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
779
(void) t1_tpi_write(adapter, OFFSET(0x2200), 0x0000c000); /* IFLX Configuration - enable */
usr/src/uts/common/io/chxge/com/pm3393.c
780
(void) t1_tpi_write(adapter, OFFSET(0x2201), 0x00000000); /* IFLX Channel Deprovision */
usr/src/uts/common/io/chxge/com/pm3393.c
781
(void) t1_tpi_write(adapter, OFFSET(0x220e), 0x00000000); /* IFLX Low Limit */
usr/src/uts/common/io/chxge/com/pm3393.c
782
(void) t1_tpi_write(adapter, OFFSET(0x220f), 0x00000100); /* IFLX High Limit */
usr/src/uts/common/io/chxge/com/pm3393.c
783
(void) t1_tpi_write(adapter, OFFSET(0x2210), 0x00000c00); /* IFLX Almost Full Limit */
usr/src/uts/common/io/chxge/com/pm3393.c
784
(void) t1_tpi_write(adapter, OFFSET(0x2211), 0x00000599); /* IFLX Almost Empty Limit */
usr/src/uts/common/io/chxge/com/pm3393.c
785
(void) t1_tpi_write(adapter, OFFSET(0x220d), 0x00000000); /* IFLX Indirect Register Update */
usr/src/uts/common/io/chxge/com/pm3393.c
786
(void) t1_tpi_write(adapter, OFFSET(0x2201), 0x00000001); /* IFLX Channel Provision */
usr/src/uts/common/io/chxge/com/pm3393.c
787
(void) t1_tpi_write(adapter, OFFSET(0x2203), 0x0000ffff); /* IFLX Undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
788
(void) t1_tpi_write(adapter, OFFSET(0x2205), 0x0000ffff); /* IFLX Undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
789
(void) t1_tpi_write(adapter, OFFSET(0x2209), 0x0000ffff); /* IFLX Enable overflow interrupt. The other bit are undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
791
(void) t1_tpi_write(adapter, OFFSET(0x2241), 0xfffffffe); /* PL4MOS Undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
792
(void) t1_tpi_write(adapter, OFFSET(0x2242), 0x0000ffff); /* PL4MOS Undocumented */
usr/src/uts/common/io/chxge/com/pm3393.c
793
(void) t1_tpi_write(adapter, OFFSET(0x2243), 0x00000008); /* PL4MOS Starving Burst Size */
usr/src/uts/common/io/chxge/com/pm3393.c
794
(void) t1_tpi_write(adapter, OFFSET(0x2244), 0x00000008); /* PL4MOS Hungry Burst Size */
usr/src/uts/common/io/chxge/com/pm3393.c
795
(void) t1_tpi_write(adapter, OFFSET(0x2245), 0x00000008); /* PL4MOS Transfer Size */
usr/src/uts/common/io/chxge/com/pm3393.c
796
(void) t1_tpi_write(adapter, OFFSET(0x2240), 0x00000005); /* PL4MOS Disable */
usr/src/uts/common/io/chxge/com/pm3393.c
798
(void) t1_tpi_write(adapter, OFFSET(0x2280), 0x00002103); /* PL4ODP Training Repeat and SOP rule */
usr/src/uts/common/io/chxge/com/pm3393.c
799
(void) t1_tpi_write(adapter, OFFSET(0x2284), 0x00000000); /* PL4ODP MAX_T setting */
usr/src/uts/common/io/chxge/com/pm3393.c
801
(void) t1_tpi_write(adapter, OFFSET(0x3280), 0x00000087); /* PL4IDU Enable data forward, port state machine. Set ALLOW_NON_ZERO_OLB */
usr/src/uts/common/io/chxge/com/pm3393.c
802
(void) t1_tpi_write(adapter, OFFSET(0x3282), 0x0000001f); /* PL4IDU Enable Dip4 check error interrupts */
usr/src/uts/common/io/chxge/com/pm3393.c
804
(void) t1_tpi_write(adapter, OFFSET(0x3040), 0x0c32); /* # TXXG Config */
usr/src/uts/common/io/chxge/com/pm3393.c
806
(void) t1_tpi_write(adapter, OFFSET(0x304d), 0x8000);
usr/src/uts/common/io/chxge/com/pm3393.c
807
(void) t1_tpi_write(adapter, OFFSET(0x2040), 0x059c); /* # RXXG Config */
usr/src/uts/common/io/chxge/com/pm3393.c
808
(void) t1_tpi_write(adapter, OFFSET(0x2049), 0x0001); /* # RXXG Cut Through */
usr/src/uts/common/io/chxge/com/pm3393.c
809
(void) t1_tpi_write(adapter, OFFSET(0x2070), 0x0000); /* # Disable promiscuous mode */
usr/src/uts/common/io/chxge/com/pm3393.c
813
(void) t1_tpi_write(adapter, OFFSET(0x206e), 0x0000); /* # Disable Match Enable bit */
usr/src/uts/common/io/chxge/com/pm3393.c
814
(void) t1_tpi_write(adapter, OFFSET(0x204a), 0xffff); /* # low addr */
usr/src/uts/common/io/chxge/com/pm3393.c
815
(void) t1_tpi_write(adapter, OFFSET(0x204b), 0xffff); /* # mid addr */
usr/src/uts/common/io/chxge/com/pm3393.c
816
(void) t1_tpi_write(adapter, OFFSET(0x204c), 0xffff); /* # high addr */
usr/src/uts/common/io/chxge/com/pm3393.c
817
(void) t1_tpi_write(adapter, OFFSET(0x206e), 0x0009); /* # Enable Match Enable bit */
usr/src/uts/common/io/chxge/com/pm3393.c
819
(void) t1_tpi_write(adapter, OFFSET(0x0003), 0x0000); /* # NO SOP/ PAD_EN setup */
usr/src/uts/common/io/chxge/com/pm3393.c
820
(void) t1_tpi_write(adapter, OFFSET(0x0100), 0x0ff0); /* # RXEQB disabled */
usr/src/uts/common/io/chxge/com/pm3393.c
821
(void) t1_tpi_write(adapter, OFFSET(0x0101), 0x0f0f); /* # No Preemphasis */
usr/src/uts/common/io/chxge/com/pm3393.c
826
static int pm3393_mac_reset(adapter_t * adapter)
usr/src/uts/common/io/chxge/com/pm3393.c
868
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/pm3393.c
870
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/pm3393.c
883
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/pm3393.c
894
(void) t1_tpi_read(adapter, OFFSET(SUNI1x10GEXP_REG_DEVICE_STATUS), &val);
usr/src/uts/common/io/chxge/com/pm3393.c
917
CH_DBG(adapter, HW,
usr/src/uts/common/io/chxge/com/pm3393.c
95
(void) t1_tpi_read(cmac->adapter, OFFSET(reg), data32);
usr/src/uts/common/io/chxge/com/tp.c
103
static void tp_set_tcp_time_params(adapter_t *adapter, unsigned int tp_clk)
usr/src/uts/common/io/chxge/com/tp.c
105
u32 tps = t1_tp_ticks_per_sec(adapter, tp_clk);
usr/src/uts/common/io/chxge/com/tp.c
109
t1_write_reg_4(adapter, A_TP_2MSL, (1 SECONDS)/2);
usr/src/uts/common/io/chxge/com/tp.c
110
t1_write_reg_4(adapter, A_TP_RXT_MIN, (1 SECONDS)/4);
usr/src/uts/common/io/chxge/com/tp.c
111
t1_write_reg_4(adapter, A_TP_RXT_MAX, 64 SECONDS);
usr/src/uts/common/io/chxge/com/tp.c
112
t1_write_reg_4(adapter, A_TP_PERS_MIN, (1 SECONDS)/2);
usr/src/uts/common/io/chxge/com/tp.c
113
t1_write_reg_4(adapter, A_TP_PERS_MAX, 64 SECONDS);
usr/src/uts/common/io/chxge/com/tp.c
114
t1_write_reg_4(adapter, A_TP_KEEP_IDLE, 7200 SECONDS);
usr/src/uts/common/io/chxge/com/tp.c
115
t1_write_reg_4(adapter, A_TP_KEEP_INTVL, 75 SECONDS);
usr/src/uts/common/io/chxge/com/tp.c
116
t1_write_reg_4(adapter, A_TP_INIT_SRTT, 3 SECONDS);
usr/src/uts/common/io/chxge/com/tp.c
117
t1_write_reg_4(adapter, A_TP_FINWAIT2_TIME, 60 SECONDS);
usr/src/uts/common/io/chxge/com/tp.c
118
t1_write_reg_4(adapter, A_TP_FAST_FINWAIT2_TIME, 3 SECONDS);
usr/src/uts/common/io/chxge/com/tp.c
122
tp_scnt = t1_read_reg_4(adapter, A_TP_SHIFT_CNT);
usr/src/uts/common/io/chxge/com/tp.c
125
t1_write_reg_4(adapter, A_TP_SHIFT_CNT, tp_scnt);
usr/src/uts/common/io/chxge/com/tp.c
128
t1_write_reg_4(adapter, A_TP_DACK_TIME,
usr/src/uts/common/io/chxge/com/tp.c
129
tp_delayed_ack_ticks(adapter, tp_clk) / 5);
usr/src/uts/common/io/chxge/com/tp.c
139
val = t1_read_reg_4(tp->adapter, A_TP_PARA_REG3);
usr/src/uts/common/io/chxge/com/tp.c
141
if (tp->adapter->params.nports > 1)
usr/src/uts/common/io/chxge/com/tp.c
145
u32 v = t1_is_T1B(tp->adapter) ? 0 : V_MAX_RX_SIZE(size);
usr/src/uts/common/io/chxge/com/tp.c
148
t1_write_reg_4(tp->adapter, A_TP_PARA_REG2,
usr/src/uts/common/io/chxge/com/tp.c
155
t1_write_reg_4(tp->adapter, A_TP_PARA_REG3, val);
usr/src/uts/common/io/chxge/com/tp.c
284
struct petp * __devinit t1_tp_create(adapter_t *adapter, struct tp_params *p)
usr/src/uts/common/io/chxge/com/tp.c
290
tp->adapter = adapter;
usr/src/uts/common/io/chxge/com/tp.c
302
if (adapter->params.nports == 1)
usr/src/uts/common/io/chxge/com/tp.c
317
u32 tp_intr = t1_read_reg_4(tp->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/tp.c
320
if (!t1_is_asic(tp->adapter)) {
usr/src/uts/common/io/chxge/com/tp.c
322
t1_write_reg_4(tp->adapter, FPGA_TP_ADDR_INTERRUPT_ENABLE,
usr/src/uts/common/io/chxge/com/tp.c
324
t1_write_reg_4(tp->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/tp.c
330
t1_write_reg_4(tp->adapter, A_TP_INT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/tp.c
331
t1_write_reg_4(tp->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/tp.c
338
u32 tp_intr = t1_read_reg_4(tp->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/tp.c
34
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/tp.c
341
if (!t1_is_asic(tp->adapter)) {
usr/src/uts/common/io/chxge/com/tp.c
343
t1_write_reg_4(tp->adapter, FPGA_TP_ADDR_INTERRUPT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/tp.c
344
t1_write_reg_4(tp->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/tp.c
349
t1_write_reg_4(tp->adapter, A_TP_INT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/tp.c
350
t1_write_reg_4(tp->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/tp.c
358
if (!t1_is_asic(tp->adapter)) {
usr/src/uts/common/io/chxge/com/tp.c
359
t1_write_reg_4(tp->adapter, FPGA_TP_ADDR_INTERRUPT_CAUSE,
usr/src/uts/common/io/chxge/com/tp.c
361
t1_write_reg_4(tp->adapter, A_PL_CAUSE, FPGA_PCIX_INTERRUPT_TP);
usr/src/uts/common/io/chxge/com/tp.c
365
t1_write_reg_4(tp->adapter, A_TP_INT_CAUSE, 0xffffffff);
usr/src/uts/common/io/chxge/com/tp.c
366
t1_write_reg_4(tp->adapter, A_PL_CAUSE, F_PL_INTR_TP);
usr/src/uts/common/io/chxge/com/tp.c
375
if (!t1_is_asic(tp->adapter))
usr/src/uts/common/io/chxge/com/tp.c
379
cause = t1_read_reg_4(tp->adapter, A_TP_INT_CAUSE);
usr/src/uts/common/io/chxge/com/tp.c
380
t1_write_reg_4(tp->adapter, A_TP_INT_CAUSE, cause);
usr/src/uts/common/io/chxge/com/tp.c
386
u32 val = t1_read_reg_4(tp->adapter, A_TP_GLOBAL_CONFIG);
usr/src/uts/common/io/chxge/com/tp.c
392
t1_write_reg_4(tp->adapter, A_TP_GLOBAL_CONFIG, val);
usr/src/uts/common/io/chxge/com/tp.c
417
adapter_t *adapter = tp->adapter;
usr/src/uts/common/io/chxge/com/tp.c
419
tp_init(adapter, p, tp_clk);
usr/src/uts/common/io/chxge/com/tp.c
422
tp_pm_configure(adapter, p);
usr/src/uts/common/io/chxge/com/tp.c
423
tp_cm_configure(adapter, p->cm_size);
usr/src/uts/common/io/chxge/com/tp.c
425
t1_write_reg_4(adapter, A_TP_RESET, F_CM_MEMMGR_INIT);
usr/src/uts/common/io/chxge/com/tp.c
426
busy = t1_wait_op_done(adapter, A_TP_RESET, F_CM_MEMMGR_INIT,
usr/src/uts/common/io/chxge/com/tp.c
431
t1_write_reg_4(adapter, A_TP_RESET, F_TP_RESET);
usr/src/uts/common/io/chxge/com/tp.c
434
adapter_name(adapter));
usr/src/uts/common/io/chxge/com/tp.c
50
static void tp_pm_configure(adapter_t *adapter, struct tp_params *p)
usr/src/uts/common/io/chxge/com/tp.c
62
t1_write_reg_4(adapter, A_TP_PM_SIZE, p->pm_size);
usr/src/uts/common/io/chxge/com/tp.c
63
t1_write_reg_4(adapter, A_TP_PM_RX_BASE, p->pm_rx_base);
usr/src/uts/common/io/chxge/com/tp.c
64
t1_write_reg_4(adapter, A_TP_PM_TX_BASE, p->pm_tx_base);
usr/src/uts/common/io/chxge/com/tp.c
65
t1_write_reg_4(adapter, A_TP_PM_DEFRAG_BASE, p->pm_size);
usr/src/uts/common/io/chxge/com/tp.c
66
t1_write_reg_4(adapter, A_TP_PM_RX_PG_SIZE, p->pm_rx_pg_size);
usr/src/uts/common/io/chxge/com/tp.c
67
t1_write_reg_4(adapter, A_TP_PM_RX_MAX_PGS, p->pm_rx_num_pgs);
usr/src/uts/common/io/chxge/com/tp.c
68
t1_write_reg_4(adapter, A_TP_PM_TX_PG_SIZE, p->pm_tx_pg_size);
usr/src/uts/common/io/chxge/com/tp.c
69
t1_write_reg_4(adapter, A_TP_PM_TX_MAX_PGS, p->pm_tx_num_pgs);
usr/src/uts/common/io/chxge/com/tp.c
72
static void tp_cm_configure(adapter_t *adapter, u32 cm_size)
usr/src/uts/common/io/chxge/com/tp.c
77
t1_write_reg_4(adapter, A_TP_CM_SIZE, cm_size);
usr/src/uts/common/io/chxge/com/tp.c
78
t1_write_reg_4(adapter, A_TP_CM_MM_BASE, mm_base);
usr/src/uts/common/io/chxge/com/tp.c
79
t1_write_reg_4(adapter, A_TP_CM_TIMER_BASE, (cm_size >> 2) * 3);
usr/src/uts/common/io/chxge/com/tp.c
80
t1_write_reg_4(adapter, A_TP_CM_MM_P_FLST_BASE,
usr/src/uts/common/io/chxge/com/tp.c
82
t1_write_reg_4(adapter, A_TP_CM_MM_TX_FLST_BASE,
usr/src/uts/common/io/chxge/com/tp.c
84
t1_write_reg_4(adapter, A_TP_CM_MM_RX_FLST_BASE,
usr/src/uts/common/io/chxge/com/tp.c
86
t1_write_reg_4(adapter, A_TP_CM_MM_MAX_P, 0x40000);
usr/src/uts/common/io/chxge/com/tp.h
84
struct petp *t1_tp_create(adapter_t *adapter, struct tp_params *p);
usr/src/uts/common/io/chxge/com/ulp.c
110
t1_fatal_err(ulp->adapter);
usr/src/uts/common/io/chxge/com/ulp.c
113
t1_write_reg_4(ulp->adapter, A_ULP_INT_CAUSE, cause);
usr/src/uts/common/io/chxge/com/ulp.c
120
adapter_t *adapter = ulp->adapter;
usr/src/uts/common/io/chxge/com/ulp.c
133
t1_write_reg_4(adapter, A_ULP_HREG_INDEX, i);
usr/src/uts/common/io/chxge/com/ulp.c
134
t1_write_reg_4(adapter, A_ULP_HREG_DATA, 0);
usr/src/uts/common/io/chxge/com/ulp.c
137
t1_write_reg_4(adapter, A_ULP_ULIMIT, pm_tx_base);
usr/src/uts/common/io/chxge/com/ulp.c
138
t1_write_reg_4(adapter, A_ULP_TAGMASK, (pm_tx_base << 1) - 1);
usr/src/uts/common/io/chxge/com/ulp.c
140
if (!t1_is_T1B(adapter)) {
usr/src/uts/common/io/chxge/com/ulp.c
142
t1_write_reg_4(adapter, A_ULP_HREG_INDEX, 0);
usr/src/uts/common/io/chxge/com/ulp.c
144
t1_write_reg_4(adapter, A_ULP_PIO_CTRL, 1);
usr/src/uts/common/io/chxge/com/ulp.c
149
struct peulp *t1_ulp_create(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/ulp.c
154
ulp->adapter = adapter;
usr/src/uts/common/io/chxge/com/ulp.c
31
adapter_t *adapter;
usr/src/uts/common/io/chxge/com/ulp.c
44
if (t1_is_asic(ulp->adapter)) {
usr/src/uts/common/io/chxge/com/ulp.c
45
u32 pl_intr = t1_read_reg_4(ulp->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/ulp.c
47
t1_write_reg_4(ulp->adapter, A_ULP_INT_ENABLE, ULP_INTR_MASK);
usr/src/uts/common/io/chxge/com/ulp.c
48
t1_write_reg_4(ulp->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/ulp.c
55
if (t1_is_asic(ulp->adapter)) {
usr/src/uts/common/io/chxge/com/ulp.c
56
t1_write_reg_4(ulp->adapter, A_PL_CAUSE, F_PL_INTR_ULP);
usr/src/uts/common/io/chxge/com/ulp.c
57
t1_write_reg_4(ulp->adapter, A_ULP_INT_CAUSE, 0xffffffff);
usr/src/uts/common/io/chxge/com/ulp.c
63
if (t1_is_asic(ulp->adapter)) {
usr/src/uts/common/io/chxge/com/ulp.c
64
u32 pl_intr = t1_read_reg_4(ulp->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/ulp.c
66
t1_write_reg_4(ulp->adapter, A_PL_ENABLE,
usr/src/uts/common/io/chxge/com/ulp.c
68
t1_write_reg_4(ulp->adapter, A_ULP_INT_ENABLE, 0);
usr/src/uts/common/io/chxge/com/ulp.c
74
u32 cause = t1_read_reg_4(ulp->adapter, A_ULP_INT_CAUSE);
usr/src/uts/common/io/chxge/com/ulp.h
47
struct peulp *t1_ulp_create(adapter_t * adapter);
usr/src/uts/common/io/chxge/com/vsc7321.c
104
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/vsc7321.c
219
static void run_table(adapter_t *adapter, struct init_table *ib, int len)
usr/src/uts/common/io/chxge/com/vsc7321.c
227
vsc_write( adapter, ib[i].addr, ib[i].data );
usr/src/uts/common/io/chxge/com/vsc7321.c
233
static int vsc7321_mac_reset(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/vsc7321.c
238
static struct cmac *vsc7321_mac_create(adapter_t *adapter, int index)
usr/src/uts/common/io/chxge/com/vsc7321.c
250
mac->adapter = adapter;
usr/src/uts/common/io/chxge/com/vsc7321.c
254
vsc7321_full_reset(adapter);
usr/src/uts/common/io/chxge/com/vsc7321.c
261
(void) t1_tpi_read(adapter, (REG_LOCAL_STATUS << 2) + 4, &vlo);
usr/src/uts/common/io/chxge/com/vsc7321.c
263
(void) t1_tpi_read(adapter, REG_LOCAL_STATUS << 2, &vhi);
usr/src/uts/common/io/chxge/com/vsc7321.c
269
vsc_read(adapter, REG_CHIP_ID, &val);
usr/src/uts/common/io/chxge/com/vsc7321.c
272
CH_ERR("%s: Didn't find a VSC 7321.\n", adapter_name(adapter));
usr/src/uts/common/io/chxge/com/vsc7321.c
279
run_table(adapter, vsc7321_reset, DIMOF(vsc7321_reset));
usr/src/uts/common/io/chxge/com/vsc7321.c
322
vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port), addr_lo);
usr/src/uts/common/io/chxge/com/vsc7321.c
323
vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port), addr_hi);
usr/src/uts/common/io/chxge/com/vsc7321.c
332
vsc_read(mac->adapter, REG_MAC_LOW_ADDR(port), &addr_lo);
usr/src/uts/common/io/chxge/com/vsc7321.c
333
vsc_read(mac->adapter, REG_MAC_HIGH_ADDR(port), &addr_hi);
usr/src/uts/common/io/chxge/com/vsc7321.c
349
run_table(mac->adapter, vsc7321_portinit[index],
usr/src/uts/common/io/chxge/com/vsc7321.c
380
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7321.c
385
vsc_write(mac->adapter, REG_MODE_CFG(port), val);
usr/src/uts/common/io/chxge/com/vsc7321.c
394
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7321.c
399
vsc_write(mac->adapter, REG_MODE_CFG(port), val);
usr/src/uts/common/io/chxge/com/vsc7321.c
64
static void vsc_read(adapter_t *adapter, u32 addr, u32 *val)
usr/src/uts/common/io/chxge/com/vsc7321.c
68
(void) t1_tpi_read(adapter, (addr << 2) + 4, &vlo);
usr/src/uts/common/io/chxge/com/vsc7321.c
71
(void) t1_tpi_read(adapter, (REG_LOCAL_STATUS << 2) + 4, &vlo);
usr/src/uts/common/io/chxge/com/vsc7321.c
72
(void) t1_tpi_read(adapter, REG_LOCAL_STATUS << 2, &vhi);
usr/src/uts/common/io/chxge/com/vsc7321.c
76
(void) t1_tpi_read(adapter, (REG_LOCAL_DATA << 2) + 4, &vlo);
usr/src/uts/common/io/chxge/com/vsc7321.c
77
(void) t1_tpi_read(adapter, REG_LOCAL_DATA << 2, &vhi);
usr/src/uts/common/io/chxge/com/vsc7321.c
82
static void vsc_write(adapter_t *adapter, u32 addr, u32 data)
usr/src/uts/common/io/chxge/com/vsc7321.c
84
(void) t1_tpi_write(adapter, (addr << 2) + 4, data & 0xFFFF);
usr/src/uts/common/io/chxge/com/vsc7321.c
85
(void) t1_tpi_write(adapter, addr << 2, (data >> 16) & 0xFFFF);
usr/src/uts/common/io/chxge/com/vsc7321.c
89
static void vsc7321_full_reset(adapter_t* adapter)
usr/src/uts/common/io/chxge/com/vsc7321.c
93
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/vsc7321.c
95
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/vsc7321.c
98
if (is_10G(adapter)) {
usr/src/uts/common/io/chxge/com/vsc7326.c
100
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/vsc7326.c
104
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/vsc7326.c
106
vsc_write(adapter, REG_SW_RESET, 0x80000001);
usr/src/uts/common/io/chxge/com/vsc7326.c
109
vsc_read(adapter, REG_SW_RESET, &result);
usr/src/uts/common/io/chxge/com/vsc7326.c
238
static void run_table(adapter_t *adapter, struct init_table *ib, int len)
usr/src/uts/common/io/chxge/com/vsc7326.c
247
vsc_write( adapter, ib[i].addr, ib[i].data );
usr/src/uts/common/io/chxge/com/vsc7326.c
252
static int bist_rd(adapter_t *adapter, int moduleid, int address)
usr/src/uts/common/io/chxge/com/vsc7326.c
266
vsc_write(adapter, REG_RAM_BIST_CMD, data);
usr/src/uts/common/io/chxge/com/vsc7326.c
270
vsc_read(adapter, REG_RAM_BIST_RESULT, &result);
usr/src/uts/common/io/chxge/com/vsc7326.c
279
static int bist_wr(adapter_t *adapter, int moduleid, int address, int value)
usr/src/uts/common/io/chxge/com/vsc7326.c
296
vsc_write(adapter, REG_RAM_BIST_CMD, data);
usr/src/uts/common/io/chxge/com/vsc7326.c
300
vsc_read(adapter, REG_RAM_BIST_CMD, &result);
usr/src/uts/common/io/chxge/com/vsc7326.c
309
static int run_bist(adapter_t *adapter, int moduleid)
usr/src/uts/common/io/chxge/com/vsc7326.c
312
(void) bist_wr(adapter,moduleid, 0x00, 0x02);
usr/src/uts/common/io/chxge/com/vsc7326.c
313
(void) bist_wr(adapter,moduleid, 0x01, 0x01);
usr/src/uts/common/io/chxge/com/vsc7326.c
318
static int check_bist(adapter_t *adapter, int moduleid)
usr/src/uts/common/io/chxge/com/vsc7326.c
323
result = bist_rd(adapter,moduleid, 0x02);
usr/src/uts/common/io/chxge/com/vsc7326.c
324
column = ((bist_rd(adapter,moduleid, 0x0e)<<8) +
usr/src/uts/common/io/chxge/com/vsc7326.c
325
(bist_rd(adapter,moduleid, 0x0d)));
usr/src/uts/common/io/chxge/com/vsc7326.c
332
static int enable_mem(adapter_t *adapter, int moduleid)
usr/src/uts/common/io/chxge/com/vsc7326.c
335
(void) bist_wr(adapter,moduleid, 0x00, 0x00);
usr/src/uts/common/io/chxge/com/vsc7326.c
339
static int run_bist_all(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/vsc7326.c
344
vsc_write(adapter, REG_MEM_BIST, 0x5);
usr/src/uts/common/io/chxge/com/vsc7326.c
345
vsc_read(adapter, REG_MEM_BIST, &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
348
vsc_write(adapter, REG_DEV_SETUP(port), 0x0);
usr/src/uts/common/io/chxge/com/vsc7326.c
352
vsc_write(adapter, REG_SPI4_MISC, 0x00040409);
usr/src/uts/common/io/chxge/com/vsc7326.c
355
(void) run_bist(adapter,13);
usr/src/uts/common/io/chxge/com/vsc7326.c
356
(void) run_bist(adapter,14);
usr/src/uts/common/io/chxge/com/vsc7326.c
357
(void) run_bist(adapter,20);
usr/src/uts/common/io/chxge/com/vsc7326.c
358
(void) run_bist(adapter,21);
usr/src/uts/common/io/chxge/com/vsc7326.c
360
(void) check_bist(adapter,13);
usr/src/uts/common/io/chxge/com/vsc7326.c
361
(void) check_bist(adapter,14);
usr/src/uts/common/io/chxge/com/vsc7326.c
362
(void) check_bist(adapter,20);
usr/src/uts/common/io/chxge/com/vsc7326.c
363
(void) check_bist(adapter,21);
usr/src/uts/common/io/chxge/com/vsc7326.c
365
(void) enable_mem(adapter,13);
usr/src/uts/common/io/chxge/com/vsc7326.c
366
(void) enable_mem(adapter,14);
usr/src/uts/common/io/chxge/com/vsc7326.c
367
(void) enable_mem(adapter,20);
usr/src/uts/common/io/chxge/com/vsc7326.c
368
(void) enable_mem(adapter,21);
usr/src/uts/common/io/chxge/com/vsc7326.c
370
vsc_write(adapter, REG_SPI4_MISC, 0x60040400);
usr/src/uts/common/io/chxge/com/vsc7326.c
373
vsc_write(adapter, REG_DEV_SETUP(port), 0x1);
usr/src/uts/common/io/chxge/com/vsc7326.c
376
vsc_write(adapter, REG_MEM_BIST, 0x0);
usr/src/uts/common/io/chxge/com/vsc7326.c
411
vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
413
vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
416
vsc_read(mac->adapter, REG_ING_FFILT_UM_EN, &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
418
vsc_write(mac->adapter, REG_ING_FFILT_UM_EN, val | (port << 28));
usr/src/uts/common/io/chxge/com/vsc7326.c
420
vsc_write(mac->adapter, REG_ING_FFILT_MASK0,
usr/src/uts/common/io/chxge/com/vsc7326.c
422
vsc_write(mac->adapter, REG_ING_FFILT_MASK1,
usr/src/uts/common/io/chxge/com/vsc7326.c
424
vsc_write(mac->adapter, REG_ING_FFILT_MASK2,
usr/src/uts/common/io/chxge/com/vsc7326.c
434
vsc_read(mac->adapter, REG_MAC_LOW_ADDR(port), &addr_lo);
usr/src/uts/common/io/chxge/com/vsc7326.c
435
vsc_read(mac->adapter, REG_MAC_HIGH_ADDR(port), &addr_hi);
usr/src/uts/common/io/chxge/com/vsc7326.c
451
run_table(mac->adapter, vsc7326_portinit[index],
usr/src/uts/common/io/chxge/com/vsc7326.c
462
vsc_read(mac->adapter, REG_ING_FFILT_UM_EN, &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
470
vsc_write(mac->adapter, REG_ING_FFILT_UM_EN, v);
usr/src/uts/common/io/chxge/com/vsc7326.c
482
vsc_write(mac->adapter, REG_MAX_LEN(port), mtu + 14 + 4);
usr/src/uts/common/io/chxge/com/vsc7326.c
499
vsc_read(mac->adapter, REG_MODE_CFG(port), &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
506
vsc_write(mac->adapter, REG_MODE_CFG(port), v);
usr/src/uts/common/io/chxge/com/vsc7326.c
514
vsc_write(mac->adapter, REG_DEV_SETUP(port), v | 1); /* reset */
usr/src/uts/common/io/chxge/com/vsc7326.c
515
vsc_write(mac->adapter, REG_DEV_SETUP(port), v);
usr/src/uts/common/io/chxge/com/vsc7326.c
516
vsc_read(mac->adapter, REG_DBG(port), &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
524
vsc_write(mac->adapter, REG_DBG(port), v);
usr/src/uts/common/io/chxge/com/vsc7326.c
526
vsc_write(mac->adapter, REG_TX_IFG(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
53
static void vsc_read(adapter_t *adapter, u32 addr, u32 *val)
usr/src/uts/common/io/chxge/com/vsc7326.c
538
vsc_write(mac->adapter, REG_MODE_CFG(port), enable);
usr/src/uts/common/io/chxge/com/vsc7326.c
542
vsc_read(mac->adapter, REG_PAUSE_CFG(port), &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
551
vsc_write(mac->adapter, REG_PAUSE_CFG(port), v);
usr/src/uts/common/io/chxge/com/vsc7326.c
560
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
565
vsc_write(mac->adapter, REG_MODE_CFG(port), val);
usr/src/uts/common/io/chxge/com/vsc7326.c
577
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
58
MAC_LOCK(adapter->mac_lock);
usr/src/uts/common/io/chxge/com/vsc7326.c
582
vsc_write(mac->adapter, REG_MODE_CFG(port), val);
usr/src/uts/common/io/chxge/com/vsc7326.c
583
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
587
vsc_write(mac->adapter, CRA(4, port, i), 0);
usr/src/uts/common/io/chxge/com/vsc7326.c
59
(void) t1_tpi_read(adapter, (addr << 2) + 4, &vlo);
usr/src/uts/common/io/chxge/com/vsc7326.c
599
vsc_read(mac->adapter, addr, &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
62
(void) t1_tpi_read(adapter, (REG_LOCAL_STATUS << 2) + 4, &vlo);
usr/src/uts/common/io/chxge/com/vsc7326.c
63
(void) t1_tpi_read(adapter, REG_LOCAL_STATUS << 2, &vhi);
usr/src/uts/common/io/chxge/com/vsc7326.c
70
(void) t1_tpi_read(adapter, (REG_LOCAL_DATA << 2) + 4, &vlo);
usr/src/uts/common/io/chxge/com/vsc7326.c
71
(void) t1_tpi_read(adapter, REG_LOCAL_DATA << 2, &vhi);
usr/src/uts/common/io/chxge/com/vsc7326.c
722
static struct cmac *vsc7326_mac_create(adapter_t *adapter, int index)
usr/src/uts/common/io/chxge/com/vsc7326.c
733
mac->adapter = adapter;
usr/src/uts/common/io/chxge/com/vsc7326.c
743
(void) t1_tpi_read(adapter, (REG_LOCAL_STATUS << 2) + 4, &vlo);
usr/src/uts/common/io/chxge/com/vsc7326.c
745
(void) t1_tpi_read(adapter, REG_LOCAL_STATUS << 2, &vhi);
usr/src/uts/common/io/chxge/com/vsc7326.c
753
static int vsc7326_mac_reset(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/vsc7326.c
755
vsc7326_full_reset(adapter);
usr/src/uts/common/io/chxge/com/vsc7326.c
756
(void) run_bist_all(adapter);
usr/src/uts/common/io/chxge/com/vsc7326.c
757
run_table(adapter, vsc7326_reset, DIMOF(vsc7326_reset));
usr/src/uts/common/io/chxge/com/vsc7326.c
78
MAC_UNLOCK(adapter->mac_lock);
usr/src/uts/common/io/chxge/com/vsc7326.c
81
static void vsc_write(adapter_t *adapter, u32 addr, u32 data)
usr/src/uts/common/io/chxge/com/vsc7326.c
83
MAC_LOCK(adapter->mac_lock);
usr/src/uts/common/io/chxge/com/vsc7326.c
84
(void) t1_tpi_write(adapter, (addr << 2) + 4, data & 0xFFFF);
usr/src/uts/common/io/chxge/com/vsc7326.c
85
(void) t1_tpi_write(adapter, addr << 2, (data >> 16) & 0xFFFF);
usr/src/uts/common/io/chxge/com/vsc7326.c
89
MAC_UNLOCK(adapter->mac_lock);
usr/src/uts/common/io/chxge/com/vsc7326.c
93
static void vsc7326_full_reset(adapter_t* adapter)
usr/src/uts/common/io/chxge/com/vsc7326.c
98
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/xpak.c
108
static struct cphy *xpak_phy_create(adapter_t * adapter, int phy_addr,
usr/src/uts/common/io/chxge/com/xpak.c
117
cphy->adapter = adapter;
usr/src/uts/common/io/chxge/com/xpak.c
123
static int xpak_phy_reset(adapter_t *adapter)
usr/src/uts/common/io/chxge/com/xpak.c
127
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/xpak.c
129
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/com/xpak.c
136
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val | 4);
usr/src/uts/common/io/chxge/com/xpak.c
142
(void) t1_tpi_read(adapter, A_ELMER0_GPO, &val);
usr/src/uts/common/io/chxge/com/xpak.c
144
(void) t1_tpi_write(adapter, A_ELMER0_GPO, val);
usr/src/uts/common/io/chxge/glue.c
397
t1_fatal_err(ch_t *adapter)
usr/src/uts/common/io/chxge/glue.c
399
if (adapter->ch_flags & PEINITDONE) {
usr/src/uts/common/io/chxge/glue.c
400
(void) sge_stop(adapter->sge);
usr/src/uts/common/io/chxge/glue.c
401
t1_interrupts_disable(adapter);
usr/src/uts/common/io/chxge/glue.c
404
adapter_name(adapter));
usr/src/uts/common/io/chxge/glue.c
478
ch_init_cyclic(void *adapter, p_ch_cyclic_t cyclic,
usr/src/uts/common/io/chxge/osdep.h
109
void t1_os_elmer0_ext_intr(adapter_t *adapter);
usr/src/uts/common/io/chxge/osdep.h
111
void t1_os_link_changed(ch_t *adapter, int port_id, int link_status,
usr/src/uts/common/io/chxge/osdep.h
121
#define port_name(adapter, i) "chxge"
usr/src/uts/common/io/chxge/pe.c
1512
ext_intr_task(ch_t *adapter)
usr/src/uts/common/io/chxge/pe.c
1516
(void) elmer0_ext_intr_handler(adapter);
usr/src/uts/common/io/chxge/pe.c
1519
t1_write_reg_4(adapter, A_PL_CAUSE, F_PL_INTR_EXT);
usr/src/uts/common/io/chxge/pe.c
1520
enable = t1_read_reg_4(adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/pe.c
1521
t1_write_reg_4(adapter, A_PL_ENABLE, enable | F_PL_INTR_EXT);
usr/src/uts/common/io/chxge/pe.c
1522
adapter->slow_intr_mask |= F_PL_INTR_EXT;
usr/src/uts/common/io/chxge/pe.c
1529
t1_os_elmer0_ext_intr(ch_t *adapter)
usr/src/uts/common/io/chxge/pe.c
1531
u32 enable = t1_read_reg_4(adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/pe.c
1533
adapter->slow_intr_mask &= ~F_PL_INTR_EXT;
usr/src/uts/common/io/chxge/pe.c
1534
t1_write_reg_4(adapter, A_PL_ENABLE, enable & ~F_PL_INTR_EXT);
usr/src/uts/common/io/chxge/pe.c
1536
schedule_work(&adapter->ext_intr_handler_task);
usr/src/uts/common/io/chxge/pe.c
1538
ext_intr_task(adapter);
usr/src/uts/common/io/chxge/pe.c
1591
update_mtu_tab(ch_t *adapter)
usr/src/uts/common/io/chxge/pe.c
1596
int mtu = (unsigned int)adapter->params.mtus[i];
usr/src/uts/common/io/chxge/pe.c
1598
t1_write_reg_4(adapter, MTUREG(i), mtu);
usr/src/uts/common/io/chxge/pe.c
88
static void update_mtu_tab(ch_t *adapter);
usr/src/uts/common/io/chxge/sge.c
100
static inline void setup_ring_params(ch_t *adapter, u64 addr, u32 size,
usr/src/uts/common/io/chxge/sge.c
1017
peobj *adapter = sge->obj;
usr/src/uts/common/io/chxge/sge.c
1030
adapter->txxg_cfg1 |=
usr/src/uts/common/io/chxge/sge.c
1032
(void) t1_tpi_write(adapter,
usr/src/uts/common/io/chxge/sge.c
1034
adapter->txxg_cfg1);
usr/src/uts/common/io/chxge/sge.c
1035
adapter->pause_on = 1;
usr/src/uts/common/io/chxge/sge.c
1036
adapter->pause_time = gethrtime();
usr/src/uts/common/io/chxge/sge.c
1039
} else if ((adapter->pause_on) &&
usr/src/uts/common/io/chxge/sge.c
1043
adapter->txxg_cfg1 &= ~SUNI1x10GEXP_BITMSK_TXXG_HOSTPAUSE;
usr/src/uts/common/io/chxge/sge.c
1044
(void) t1_tpi_write(adapter,
usr/src/uts/common/io/chxge/sge.c
1046
adapter->txxg_cfg1);
usr/src/uts/common/io/chxge/sge.c
1047
adapter->pause_on = 0;
usr/src/uts/common/io/chxge/sge.c
1048
time = (gethrtime() - adapter->pause_time)/1000;
usr/src/uts/common/io/chxge/sge.c
1503
setup_ring_params(ch_t *adapter, u64 addr, u32 size, int base_reg_lo,
usr/src/uts/common/io/chxge/sge.c
1506
t1_write_reg_4(adapter, base_reg_lo, (u32)addr);
usr/src/uts/common/io/chxge/sge.c
1507
t1_write_reg_4(adapter, base_reg_hi, addr >> 32);
usr/src/uts/common/io/chxge/sge.c
1508
t1_write_reg_4(adapter, size_reg, size);
usr/src/uts/common/io/chxge/sge.c
1640
t1_sge_set_ptimeout(adapter_t *adapter, u32 val)
usr/src/uts/common/io/chxge/sge.c
1642
pesge *sge = adapter->sge;
usr/src/uts/common/io/chxge/sge.c
1644
if (is_T2(adapter))
usr/src/uts/common/io/chxge/sge.c
1650
t1_sge_get_ptimeout(adapter_t *adapter)
usr/src/uts/common/io/chxge/sge.c
1652
pesge *sge = adapter->sge;
usr/src/uts/common/io/chxge/sge.c
1654
return (is_T2(adapter) ? sge->ptimeout : 0);
usr/src/uts/common/io/chxge/sge.c
226
t1_espi_workaround(ch_t *adapter)
usr/src/uts/common/io/chxge/sge.c
228
pesge *sge = adapter->sge;
usr/src/uts/common/io/chxge/sge.c
235
seop = t1_espi_get_mon(adapter, 0x930, 0);
usr/src/uts/common/io/chxge/sge.c
239
rv = pe_start(adapter, (mblk_t *)sge->pskb,
usr/src/uts/common/io/chxge/sge.c
252
if (mutex_tryenter(&adapter->ch_intr)) {
usr/src/uts/common/io/chxge/sge.c
255
mutex_exit(&adapter->ch_intr);
usr/src/uts/common/io/chxge/sge.c
587
peobj *adapter = sge->obj;
usr/src/uts/common/io/chxge/sge.c
604
t1_write_reg_4(adapter, A_PL_CAUSE, F_PL_INTR_SGE_DATA);
usr/src/uts/common/io/chxge/sge.c
624
t1_write_reg_4(adapter, A_SG_RSPQUEUECREDIT, n);
usr/src/uts/common/io/chxge/sge.c
652
if ((adapter->ch_blked) &&
usr/src/uts/common/io/chxge/sge.c
655
adapter->ch_blked = 0;
usr/src/uts/common/io/chxge/sge.c
656
ch_gld_ok(adapter);
usr/src/uts/common/io/chxge/sge.c
710
if (adapter->ch_tx_overflow_mutex)
usr/src/uts/common/io/chxge/sge.c
711
mutex_enter(adapter->ch_tx_overflow_mutex);
usr/src/uts/common/io/chxge/sge.c
712
if (adapter->ch_blked &&
usr/src/uts/common/io/chxge/sge.c
715
adapter->ch_blked = 0;
usr/src/uts/common/io/chxge/sge.c
716
if (adapter->ch_tx_overflow_cv)
usr/src/uts/common/io/chxge/sge.c
717
cv_broadcast(adapter->ch_tx_overflow_cv);
usr/src/uts/common/io/chxge/sge.c
718
ch_gld_ok(adapter);
usr/src/uts/common/io/chxge/sge.c
720
if (adapter->ch_tx_overflow_mutex)
usr/src/uts/common/io/chxge/sge.c
721
mutex_exit(adapter->ch_tx_overflow_mutex);
usr/src/uts/common/io/chxge/sge.c
724
if (adapter->ch_blked &&
usr/src/uts/common/io/chxge/sge.c
727
adapter->ch_blked = 0;
usr/src/uts/common/io/chxge/sge.c
728
ch_gld_ok(adapter);
usr/src/uts/common/io/chxge/sge.c
737
t1_write_reg_4(adapter, A_SG_SLEEPING, cidx);
usr/src/uts/common/io/chxge/sge.c
742
ret = t1_slow_intr_handler(adapter);
usr/src/uts/common/io/chxge/sge.c
805
peobj *adapter = sge->obj;
usr/src/uts/common/io/chxge/sge.c
842
if ((offload == 0) && adapter->pause_on) {
usr/src/uts/common/io/chxge/sge.c
850
} else if (((adapter->pause_on ||
usr/src/uts/common/io/chxge/sge.c
914
if (likely(toe_running(adapter))) {
usr/src/uts/common/io/chxge/sge.c
918
if (sz == SGE_SM_BUF_SZ(adapter))
usr/src/uts/common/io/chxge/sge.c
919
index = adapter->ch_sm_index;
usr/src/uts/common/io/chxge/sge.c
921
index = adapter->ch_big_index;
usr/src/uts/common/io/chxge/sge.c
924
if (adapter->toe_rcv)
usr/src/uts/common/io/chxge/sge.c
925
adapter->toe_rcv(adapter->ch_toeinst, skb);
usr/src/uts/common/io/chxge/sge.c
931
adapter->ch_name, *skb->b_rptr);
usr/src/uts/common/io/chxge/sge.c
941
adapter->ch_name, *skb->b_rptr);
usr/src/uts/common/io/chxge/sge.c
961
if (sz == SGE_SM_BUF_SZ(adapter)) {
usr/src/uts/common/io/chxge/sge.c
963
&buffers_in_use[adapter->ch_sm_index]);
usr/src/uts/common/io/chxge/sge.c
966
&buffers_in_use[adapter->ch_big_index]);
usr/src/uts/common/io/chxge/sge.c
974
if (adapter->toe_tunnel) {
usr/src/uts/common/io/chxge/sge.c
975
rv = adapter->toe_tunnel(adapter->ch_toeinst, skb);
usr/src/uts/common/io/chxge/sge.c
989
if (adapter->ch_config.cksum_enabled &&
usr/src/uts/common/io/chxge/sge.c
997
ch_send_up(adapter, skb, cksum, flg);
usr/src/uts/common/io/cxgbe/common/common.c
115
int t4_wr_mbox(struct adapter *adap, int mbox, const void *cmd,
usr/src/uts/common/io/cxgbe/common/common.c
121
unsigned int core_ticks_per_usec(const struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/common.c
38
int t4_wr_mbox_ns(struct adapter *adap, int mbox, const void *cmd,
usr/src/uts/common/io/cxgbe/common/common.c
44
int t4_wr_mbox_timeout(struct adapter *adap, int mbox,
usr/src/uts/common/io/cxgbe/common/common.c
52
unsigned int dack_ticks_to_usec(const struct adapter *adap,
usr/src/uts/common/io/cxgbe/common/common.c
58
unsigned int us_to_core_ticks(const struct adapter *adap,
usr/src/uts/common/io/cxgbe/common/common.c
6
int t4_memory_rw(struct adapter *adap, int win,
usr/src/uts/common/io/cxgbe/common/common.c
64
int is_offload(const struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/common.h
540
#define for_each_port(adapter, iter) \
usr/src/uts/common/io/cxgbe/common/common.h
541
for (iter = 0; iter < (adapter)->params.nports; ++iter)
usr/src/uts/common/io/cxgbe/common/common.h
543
int is_offload(const struct adapter *adap);
usr/src/uts/common/io/cxgbe/common/common.h
544
unsigned int core_ticks_per_usec(const struct adapter *adap);
usr/src/uts/common/io/cxgbe/common/common.h
545
unsigned int us_to_core_ticks(const struct adapter *adap,
usr/src/uts/common/io/cxgbe/common/common.h
547
unsigned int dack_ticks_to_usec(const struct adapter *adap,
usr/src/uts/common/io/cxgbe/common/common.h
549
void t4_set_reg_field(struct adapter *adap, unsigned int addr, u32 mask, u32 val);
usr/src/uts/common/io/cxgbe/common/common.h
551
void t4_record_mbox_marker(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/common.h
553
int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd,
usr/src/uts/common/io/cxgbe/common/common.h
555
int t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size,
usr/src/uts/common/io/cxgbe/common/common.h
558
int t4_wr_mbox_timeout(struct adapter *adap, int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
561
int t4_wr_mbox(struct adapter *adap, int mbox, const void *cmd,
usr/src/uts/common/io/cxgbe/common/common.h
563
int t4_wr_mbox_ns(struct adapter *adap, int mbox, const void *cmd,
usr/src/uts/common/io/cxgbe/common/common.h
565
void t4_read_indirect(struct adapter *adap, unsigned int addr_reg,
usr/src/uts/common/io/cxgbe/common/common.h
568
void t4_write_indirect(struct adapter *adap, unsigned int addr_reg,
usr/src/uts/common/io/cxgbe/common/common.h
572
void t4_hw_pci_read_cfg4(adapter_t *adapter, int reg, u32 *val);
usr/src/uts/common/io/cxgbe/common/common.h
576
void t4_intr_enable(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
577
void t4_intr_disable(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
578
int t4_slow_intr_handler(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
592
int t4_link_l1cfg_core(struct adapter *adapter, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
595
static inline int t4_link_l1cfg(struct adapter *adapter, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
599
return t4_link_l1cfg_core(adapter, mbox, port, lc, rcap,
usr/src/uts/common/io/cxgbe/common/common.h
602
static inline int t4_link_l1cfg_ns(struct adapter *adapter, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
606
return t4_link_l1cfg_core(adapter, mbox, port, lc, rcap,
usr/src/uts/common/io/cxgbe/common/common.h
610
int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port);
usr/src/uts/common/io/cxgbe/common/common.h
612
int t4_seeprom_wp(struct adapter *adapter, int enable);
usr/src/uts/common/io/cxgbe/common/common.h
613
int t4_get_raw_vpd_params(struct adapter *adapter, struct vpd_params *p);
usr/src/uts/common/io/cxgbe/common/common.h
614
int t4_get_vpd_params(struct adapter *adapter, struct vpd_params *p);
usr/src/uts/common/io/cxgbe/common/common.h
615
int t4_get_pfres(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
616
int t4_read_flash(struct adapter *adapter, unsigned int addr, unsigned int nwords,
usr/src/uts/common/io/cxgbe/common/common.h
618
int t4_write_flash(struct adapter *adapter, unsigned int addr,
usr/src/uts/common/io/cxgbe/common/common.h
620
int t4_load_fw(struct adapter *adapter, const u8 *fw_data, unsigned int size,
usr/src/uts/common/io/cxgbe/common/common.h
622
int t4_load_phy_fw(struct adapter *adap,
usr/src/uts/common/io/cxgbe/common/common.h
626
int t4_phy_fw_ver(struct adapter *adap, int *phy_fw_ver);
usr/src/uts/common/io/cxgbe/common/common.h
627
int t4_fwcache(struct adapter *adap, enum fw_params_param_dev_fwcache op);
usr/src/uts/common/io/cxgbe/common/common.h
628
int t5_fw_init_extern_mem(struct adapter *adap);
usr/src/uts/common/io/cxgbe/common/common.h
630
int t4_erase_sf(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
632
int t4_load_bootcfg(struct adapter *adapter, const u8 *cfg_data, unsigned int size);
usr/src/uts/common/io/cxgbe/common/common.h
633
int t4_read_bootcfg(struct adapter *adap, u8 *cfg_data, unsigned int size);
usr/src/uts/common/io/cxgbe/common/common.h
634
int t4_load_boot(struct adapter *adap, u8 *boot_data,
usr/src/uts/common/io/cxgbe/common/common.h
636
int t4_flash_erase_sectors(struct adapter *adapter, int start, int end);
usr/src/uts/common/io/cxgbe/common/common.h
637
int t4_flash_cfg_addr(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
638
int t4_check_fw_version(struct adapter *adap);
usr/src/uts/common/io/cxgbe/common/common.h
639
int t4_load_cfg(struct adapter *adapter, const u8 *cfg_data, unsigned int size);
usr/src/uts/common/io/cxgbe/common/common.h
640
int t4_get_fw_version(struct adapter *adapter, u32 *vers);
usr/src/uts/common/io/cxgbe/common/common.h
641
int t4_get_bs_version(struct adapter *adapter, u32 *vers);
usr/src/uts/common/io/cxgbe/common/common.h
642
int t4_get_tp_version(struct adapter *adapter, u32 *vers);
usr/src/uts/common/io/cxgbe/common/common.h
643
int t4_get_exprom_version(struct adapter *adapter, u32 *vers);
usr/src/uts/common/io/cxgbe/common/common.h
644
int t4_get_scfg_version(struct adapter *adapter, u32 *vers);
usr/src/uts/common/io/cxgbe/common/common.h
645
int t4_get_vpd_version(struct adapter *adapter, u32 *vers);
usr/src/uts/common/io/cxgbe/common/common.h
646
int t4_get_version_info(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
647
void t4_dump_version_info(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
648
int t4_prep_fw(struct adapter *adap, struct fw_info *fw_info,
usr/src/uts/common/io/cxgbe/common/common.h
652
int t4_wait_dev_ready(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
653
enum chip_type t4_get_chip_type(struct adapter *adap, int ver);
usr/src/uts/common/io/cxgbe/common/common.h
654
int t4_prep_adapter(struct adapter *adapter, bool reset);
usr/src/uts/common/io/cxgbe/common/common.h
655
int t4_prep_pf(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
656
int t4_prep_master_pf(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
657
int t4_shutdown_adapter(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
660
int t4_bar2_sge_qregs(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/common.h
667
int t4_init_devlog_params(struct adapter *adapter, int fw_attach);
usr/src/uts/common/io/cxgbe/common/common.h
668
int t4_init_sge_params(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
669
int t4_init_tp_params(struct adapter *adap, bool sleep_ok);
usr/src/uts/common/io/cxgbe/common/common.h
670
int t4_filter_field_shift(const struct adapter *adap, int filter_sel);
usr/src/uts/common/io/cxgbe/common/common.h
671
int t4_create_filter_info(const struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/common.h
677
int t4_init_rss_mode(struct adapter *adap, int mbox);
usr/src/uts/common/io/cxgbe/common/common.h
682
int t4_port_init(struct adapter *adap, int mbox, int pf, int vf);
usr/src/uts/common/io/cxgbe/common/common.h
683
int t4_mirror_init(struct adapter *adap, int mbox, int pf, int vf,
usr/src/uts/common/io/cxgbe/common/common.h
685
void t4_fatal_err(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
686
void t4_db_full(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
687
void t4_db_dropped(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
688
int t4_set_trace_filter(struct adapter *adapter, const struct trace_params *tp,
usr/src/uts/common/io/cxgbe/common/common.h
690
void t4_get_trace_filter(struct adapter *adapter, struct trace_params *tp,
usr/src/uts/common/io/cxgbe/common/common.h
692
unsigned int t4_chip_rss_size(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
693
int t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
695
int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode,
usr/src/uts/common/io/cxgbe/common/common.h
697
int t4_config_vi_rss(struct adapter *adapter, int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
700
int t4_read_rss(struct adapter *adapter, u16 *entries);
usr/src/uts/common/io/cxgbe/common/common.h
701
void t4_read_rss_key(struct adapter *adapter, u32 *key, bool sleep_ok);
usr/src/uts/common/io/cxgbe/common/common.h
702
void t4_write_rss_key(struct adapter *adap, const u32 *key, int idx,
usr/src/uts/common/io/cxgbe/common/common.h
704
void t4_read_rss_pf_config(struct adapter *adapter, unsigned int index,
usr/src/uts/common/io/cxgbe/common/common.h
706
void t4_write_rss_pf_config(struct adapter *adapter, unsigned int index,
usr/src/uts/common/io/cxgbe/common/common.h
708
void t4_read_rss_vf_config(struct adapter *adapter, unsigned int index,
usr/src/uts/common/io/cxgbe/common/common.h
710
u32 t4_read_rss_pf_map(struct adapter *adapter, bool sleep_ok);
usr/src/uts/common/io/cxgbe/common/common.h
711
u32 t4_read_rss_pf_mask(struct adapter *adapter, bool sleep_ok);
usr/src/uts/common/io/cxgbe/common/common.h
712
unsigned int t4_get_mps_bg_map(struct adapter *adapter, int pidx);
usr/src/uts/common/io/cxgbe/common/common.h
713
unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx);
usr/src/uts/common/io/cxgbe/common/common.h
714
unsigned int t4_get_tp_ch_map(struct adapter *adapter, int pidx);
usr/src/uts/common/io/cxgbe/common/common.h
715
int t4_mps_set_active_ports(struct adapter *adap, unsigned int port_mask);
usr/src/uts/common/io/cxgbe/common/common.h
716
int t4_read_tcb(struct adapter *adap, int win, int tid, u32 tcb[TCB_SIZE/4]);
usr/src/uts/common/io/cxgbe/common/common.h
717
void t4_pmtx_get_stats(struct adapter *adap, u32 cnt[], u64 cycles[]);
usr/src/uts/common/io/cxgbe/common/common.h
718
void t4_pmrx_get_stats(struct adapter *adap, u32 cnt[], u64 cycles[]);
usr/src/uts/common/io/cxgbe/common/common.h
719
void t4_read_cimq_cfg(struct adapter *adap, u16 *base, u16 *size, u16 *thres);
usr/src/uts/common/io/cxgbe/common/common.h
720
int t4_read_cim_ibq(struct adapter *adap, unsigned int qid, u32 *data, size_t n);
usr/src/uts/common/io/cxgbe/common/common.h
721
int t4_read_cim_obq(struct adapter *adap, unsigned int qid, u32 *data, size_t n);
usr/src/uts/common/io/cxgbe/common/common.h
722
int t4_cim_read(struct adapter *adap, unsigned int addr, unsigned int n,
usr/src/uts/common/io/cxgbe/common/common.h
724
int t4_cim_write(struct adapter *adap, unsigned int addr, unsigned int n,
usr/src/uts/common/io/cxgbe/common/common.h
726
int t4_cim_read_la(struct adapter *adap, u32 *la_buf, unsigned int *wrptr);
usr/src/uts/common/io/cxgbe/common/common.h
727
void t4_cim_read_pif_la(struct adapter *adap, u32 *pif_req, u32 *pif_rsp,
usr/src/uts/common/io/cxgbe/common/common.h
729
void t4_cim_read_ma_la(struct adapter *adap, u32 *ma_req, u32 *ma_rsp);
usr/src/uts/common/io/cxgbe/common/common.h
730
int t4_get_flash_params(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
732
u32 t4_read_pcie_cfg4(struct adapter *adap, int reg, int drv_fw_attach);
usr/src/uts/common/io/cxgbe/common/common.h
733
int t4_get_util_window(struct adapter *adap, int drv_fw_attach);
usr/src/uts/common/io/cxgbe/common/common.h
734
void t4_setup_memwin(struct adapter *adap, u32 memwin_base, u32 window);
usr/src/uts/common/io/cxgbe/common/common.h
735
void t4_idma_monitor_init(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/common.h
737
void t4_idma_monitor(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/common.h
740
int t4_set_vf_mac_acl(struct adapter *adapter, unsigned int vf,
usr/src/uts/common/io/cxgbe/common/common.h
745
int t4_memory_rw_addr(struct adapter *adap, int win,
usr/src/uts/common/io/cxgbe/common/common.h
748
int t4_memory_rw_mtype(struct adapter *adap, int win,
usr/src/uts/common/io/cxgbe/common/common.h
752
int t4_memory_rw(struct adapter *adap, int win,
usr/src/uts/common/io/cxgbe/common/common.h
758
extern unsigned int t4_get_regs_len(struct adapter *adapter);
usr/src/uts/common/io/cxgbe/common/common.h
759
extern void t4_get_regs(struct adapter *adap, void *buf, size_t buf_size);
usr/src/uts/common/io/cxgbe/common/common.h
762
void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p);
usr/src/uts/common/io/cxgbe/common/common.h
763
void t4_get_port_stats_offset(struct adapter *adap, int idx,
usr/src/uts/common/io/cxgbe/common/common.h
766
void t4_get_lb_stats(struct adapter *adap, int idx, struct lb_port_stats *p);
usr/src/uts/common/io/cxgbe/common/common.h
767
void t4_clr_port_stats(struct adapter *adap, int idx);
usr/src/uts/common/io/cxgbe/common/common.h
769
void t4_read_mtu_tbl(struct adapter *adap, u16 *mtus, u8 *mtu_log);
usr/src/uts/common/io/cxgbe/common/common.h
770
void t4_read_cong_tbl(struct adapter *adap, u16 incr[NMTUS][NCCTRL_WIN]);
usr/src/uts/common/io/cxgbe/common/common.h
771
void t4_read_pace_tbl(struct adapter *adap, unsigned int pace_vals[NTX_SCHED]);
usr/src/uts/common/io/cxgbe/common/common.h
772
void t4_get_tx_sched(struct adapter *adap, unsigned int sched, unsigned int *kbps,
usr/src/uts/common/io/cxgbe/common/common.h
774
void t4_tp_wr_bits_indirect(struct adapter *adap, unsigned int addr,
usr/src/uts/common/io/cxgbe/common/common.h
776
void t4_tp_read_la(struct adapter *adap, u64 *la_buf, unsigned int *wrptr);
usr/src/uts/common/io/cxgbe/common/common.h
777
void t4_tp_get_err_stats(struct adapter *adap, struct tp_err_stats *st,
usr/src/uts/common/io/cxgbe/common/common.h
779
void t4_tp_get_cpl_stats(struct adapter *adap, struct tp_cpl_stats *st,
usr/src/uts/common/io/cxgbe/common/common.h
781
void t4_tp_get_rdma_stats(struct adapter *adap, struct tp_rdma_stats *st,
usr/src/uts/common/io/cxgbe/common/common.h
783
void t4_get_usm_stats(struct adapter *adap, struct tp_usm_stats *st,
usr/src/uts/common/io/cxgbe/common/common.h
785
void t4_tp_get_tcp_stats(struct adapter *adap, struct tp_tcp_stats *v4,
usr/src/uts/common/io/cxgbe/common/common.h
787
void t4_get_fcoe_stats(struct adapter *adap, unsigned int idx,
usr/src/uts/common/io/cxgbe/common/common.h
789
void t4_load_mtus(struct adapter *adap, const unsigned short *mtus,
usr/src/uts/common/io/cxgbe/common/common.h
792
void t4_ulprx_read_la(struct adapter *adap, u32 *la_buf);
usr/src/uts/common/io/cxgbe/common/common.h
794
void t4_get_chan_txrate(struct adapter *adap, u64 *nic_rate, u64 *ofld_rate);
usr/src/uts/common/io/cxgbe/common/common.h
795
int t4_set_filter_mode(struct adapter *adap, unsigned int mode_map,
usr/src/uts/common/io/cxgbe/common/common.h
800
int t4_fw_hello(struct adapter *adap, unsigned int mbox, unsigned int evt_mbox,
usr/src/uts/common/io/cxgbe/common/common.h
802
int t4_fw_bye(struct adapter *adap, unsigned int mbox);
usr/src/uts/common/io/cxgbe/common/common.h
803
int t4_fw_reset(struct adapter *adap, unsigned int mbox, int reset);
usr/src/uts/common/io/cxgbe/common/common.h
804
int t4_fw_upgrade(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
806
int t4_fl_pkt_align(struct adapter *adap, bool is_packed);
usr/src/uts/common/io/cxgbe/common/common.h
807
int t4_fixup_host_params_compat(struct adapter *adap, unsigned int page_size,
usr/src/uts/common/io/cxgbe/common/common.h
810
int t4_fixup_host_params(struct adapter *adap, unsigned int page_size,
usr/src/uts/common/io/cxgbe/common/common.h
812
int t4_fw_initialize(struct adapter *adap, unsigned int mbox);
usr/src/uts/common/io/cxgbe/common/common.h
813
int t4_query_params(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
816
int t4_query_params_ns(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
819
int t4_query_params_rw(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
822
int t4_set_params_timeout(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
826
int t4_set_params(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
829
int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
834
int t4_alloc_vi_func(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
839
int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port,
usr/src/uts/common/io/cxgbe/common/common.h
842
int t4_free_vi(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
845
int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
848
int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
851
int t4_free_mac_filt(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
854
int t4_free_encap_mac_filt(struct adapter *adap, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
856
int t4_free_raw_mac_filt(struct adapter *adap, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
859
int t4_alloc_raw_mac_filt(struct adapter *adap, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
862
int t4_alloc_encap_mac_filt(struct adapter *adap, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
866
int t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
868
int t4_del_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
870
int t4_add_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
872
int t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
874
int t4_enable_vi_params(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
876
int t4_enable_pi_params(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
879
int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
881
int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/common.h
883
int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
usr/src/uts/common/io/cxgbe/common/common.h
885
int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
usr/src/uts/common/io/cxgbe/common/common.h
887
int t4_i2c_io(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
891
int t4_i2c_rd(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
895
int t4_i2c_wr(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
899
int t4_iq_stop(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
902
int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
905
int t4_eth_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
907
int t4_ctrl_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
909
int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/common.h
911
int t4_sge_ctxt_rd(struct adapter *adap, unsigned int mbox, unsigned int cid,
usr/src/uts/common/io/cxgbe/common/common.h
913
int t4_sge_ctxt_rd_bd(struct adapter *adap, unsigned int cid, enum ctxt_type ctype,
usr/src/uts/common/io/cxgbe/common/common.h
915
int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox, int ctxt_type);
usr/src/uts/common/io/cxgbe/common/common.h
916
int t4_read_sge_dbqtimers(struct adapter *adap, unsigned int ndbqtimers,
usr/src/uts/common/io/cxgbe/common/common.h
923
int t4_handle_fw_rpl(struct adapter *adap, const __be64 *rpl);
usr/src/uts/common/io/cxgbe/common/common.h
924
int t4_fwaddrspace_write(struct adapter *adap, unsigned int mbox, u32 addr, u32 val);
usr/src/uts/common/io/cxgbe/common/common.h
926
int t4_sched_config(struct adapter *adapter, int type, int minmaxen);
usr/src/uts/common/io/cxgbe/common/common.h
927
int t4_sched_params(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/common.h
933
int t4_read_sched_params(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/common.h
939
int t4_config_watchdog(struct adapter *adapter, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/common.h
942
int t4_get_devlog_level(struct adapter *adapter, unsigned int *level);
usr/src/uts/common/io/cxgbe/common/common.h
943
int t4_set_devlog_level(struct adapter *adapter, unsigned int level);
usr/src/uts/common/io/cxgbe/common/common.h
945
void t4_sge_decode_idma_state(struct adapter *adapter, int state);
usr/src/uts/common/io/cxgbe/common/common.h
947
void t4_tp_pio_read(struct adapter *adap, u32 *buff, u32 nregs,
usr/src/uts/common/io/cxgbe/common/common.h
949
void t4_tp_pio_write(struct adapter *adap, u32 *buff, u32 nregs,
usr/src/uts/common/io/cxgbe/common/common.h
951
void t4_tp_tm_pio_read(struct adapter *adap, u32 *buff, u32 nregs,
usr/src/uts/common/io/cxgbe/common/common.h
953
void t4_tp_mib_read(struct adapter *adap, u32 *buff, u32 nregs,
usr/src/uts/common/io/cxgbe/common/common.h
955
int t4_configure_ringbb(struct adapter *adap);
usr/src/uts/common/io/cxgbe/common/common.h
956
int t4_configure_add_smac(struct adapter *adap);
usr/src/uts/common/io/cxgbe/common/common.h
957
int t4_set_vlan_acl(struct adapter *adap, unsigned int mbox, unsigned int vf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10002
enum chip_type t4_get_chip_type(struct adapter *adap, int ver)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10048
int t4_prep_pf(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10052
ret = t4_wait_dev_ready(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10056
get_pci_mode(adapter, &adapter->params.pci);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10061
t4_os_pci_read_cfg2(adapter, PCI_DEVICE_ID, &adapter->params.pci.device_id);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10062
t4_os_pci_read_cfg2(adapter, PCI_VENDOR_ID, &adapter->params.pci.vendor_id);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10064
ver = CHELSIO_PCI_ID_VER(adapter->params.pci.device_id);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10065
adapter->params.chip = t4_get_chip_type(adapter, ver);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10066
if (is_t4(adapter->params.chip)) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10067
adapter->params.arch.sge_fl_db = F_DBPRIO;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10068
adapter->params.arch.mps_tcam_size =
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10070
adapter->params.arch.mps_rplc_size = 128;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10071
adapter->params.arch.nchan = NCHAN;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10072
adapter->params.arch.pm_stats_cnt = PM_NSTATS;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10073
adapter->params.arch.vfcount = 128;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10077
adapter->params.arch.cng_ch_bits_log = 2;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10078
} else if (is_t5(adapter->params.chip)) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10079
adapter->params.arch.sge_fl_db = F_DBPRIO | F_DBTYPE;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10080
adapter->params.arch.mps_tcam_size =
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10082
adapter->params.arch.mps_rplc_size = 128;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10083
adapter->params.arch.nchan = NCHAN;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10084
adapter->params.arch.pm_stats_cnt = PM_NSTATS;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10085
adapter->params.arch.vfcount = 128;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10086
adapter->params.arch.cng_ch_bits_log = 2;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10087
} else if (is_t6(adapter->params.chip)) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10088
adapter->params.arch.sge_fl_db = 0;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10089
adapter->params.arch.mps_tcam_size =
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10091
adapter->params.arch.mps_rplc_size = 256;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10092
adapter->params.arch.nchan = 2;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10093
adapter->params.arch.pm_stats_cnt = T6_PM_NSTATS;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10094
adapter->params.arch.vfcount = 256;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10098
adapter->params.arch.cng_ch_bits_log = 3;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10100
CH_ERR(adapter, "Device %d is not supported\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10101
adapter->params.pci.device_id);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10105
adapter->params.pci.vpd_cap_addr =
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10106
t4_os_find_pci_capability(adapter, PCI_CAP_ID_VPD);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10108
if (is_fpga(adapter->params.chip)) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10110
adapter->params.cim_la_size = 2 * CIMLA_SIZE;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10113
adapter->params.cim_la_size = CIMLA_SIZE;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10116
init_cong_ctrl(adapter->params.a_wnd, adapter->params.b_wnd);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10121
adapter->params.nports = 1;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10122
adapter->params.portvec = 1;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10123
adapter->params.vpd.cclk = 50000;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10126
set_pcie_completion_timeout(adapter, 0xd);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10135
int t4_prep_master_pf(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10139
ret = t4_prep_pf(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10143
ret = t4_get_flash_params(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10145
CH_ERR(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10161
int t4_prep_adapter(struct adapter *adapter, bool reset)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10163
return t4_prep_master_pf(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10178
int t4_shutdown_adapter(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10182
t4_intr_disable(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10183
t4_write_reg(adapter, A_DBG_GPIO_EN, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10184
for_each_port(adapter, port) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10185
u32 a_port_cfg = is_t4(adapter->params.chip) ?
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10189
t4_write_reg(adapter, a_port_cfg,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10190
t4_read_reg(adapter, a_port_cfg)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10193
t4_set_reg_field(adapter, A_SGE_CONTROL, F_GLOBALENABLE, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
102
const int ret = t4_seeprom_read(adapter, addr, valp);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10224
int t4_bar2_sge_qregs(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10238
if (!user && is_t4(adapter->params.chip))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10243
page_shift = adapter->params.sge.hps + 10;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10249
? adapter->params.sge.eq_qpp
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10250
: adapter->params.sge.iq_qpp);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10298
int t4_init_devlog_params(struct adapter *adap, int fw_attach)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1033
int t4_memory_rw_mtype(struct adapter *adap, int win, int mtype, u32 maddr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10363
int t4_init_sge_params(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10365
struct sge_params *sge_params = &adapter->params.sge;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10371
hps = t4_read_reg(adapter, A_SGE_HOST_PAGE_SIZE);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10373
(S_HOSTPAGESIZEPF1 - S_HOSTPAGESIZEPF0) * adapter->pf);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10379
(S_QUEUESPERPAGEPF1 - S_QUEUESPERPAGEPF0) * adapter->pf);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10380
qpp = t4_read_reg(adapter, A_SGE_EGRESS_QUEUES_PER_PAGE_PF);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10382
qpp = t4_read_reg(adapter, A_SGE_INGRESS_QUEUES_PER_PAGE_PF);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10395
int t4_init_tp_params(struct adapter *adap, bool sleep_ok)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10490
int t4_filter_field_shift(const struct adapter *adap, int filter_sel)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10566
int t4_create_filter_info(const struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10573
const struct tp_params *tp = &adapter->params.tp;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10665
int t4_init_rss_mode(struct adapter *adap, int mbox)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1068
u32 t4_read_pcie_cfg4(struct adapter *adap, int reg, int drv_fw_attach)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10690
struct adapter *adapter = pi->adapter;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10694
ret = t4_alloc_vi(pi->adapter, mbox, port, pf, vf, 1, NULL, NULL,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10704
if (adapter->params.viid_smt_extn_support) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10713
CH_INFO(pi->adapter, "Port %d Traffic Mirror PF = %u; VF = %u\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10718
int t4_mirror_init(struct adapter *adap, int mbox, int pf, int vf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10761
struct adapter *adapter = pi->adapter;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10762
unsigned int fw_caps = adapter->params.fw_caps_support;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10783
ret = t4_set_params(adapter, mbox, pf, vf, 1, ¶m, &val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10785
adapter->params.fw_caps_support = fw_caps;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10797
ret = t4_wr_mbox(pi->adapter, mbox, &cmd, sizeof(cmd), &cmd);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10827
ret = t4_alloc_vi(pi->adapter, mbox, port, pf, vf, 1, mac,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10838
if (adapter->params.viid_smt_extn_support) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10851
pi->rx_cchan = t4_get_tp_e2c_map(pi->adapter, port);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10881
int t4_port_init(struct adapter *adap, int mbox, int pf, int vf)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10912
void t4_read_cimq_cfg(struct adapter *adap, u16 *base, u16 *size, u16 *thres)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10948
int t4_read_cim_ibq(struct adapter *adap, unsigned int qid, u32 *data, size_t n)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10990
int t4_read_cim_obq(struct adapter *adap, unsigned int qid, u32 *data, size_t n)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11031
int t4_cim_read(struct adapter *adap, unsigned int addr, unsigned int n,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11058
int t4_cim_write(struct adapter *adap, unsigned int addr, unsigned int n,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11075
static int t4_cim_write1(struct adapter *adap, unsigned int addr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11091
int t4_cim_read_la(struct adapter *adap, u32 *la_buf, unsigned int *wrptr)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11160
void t4_tp_read_la(struct adapter *adap, u64 *la_buf, unsigned int *wrptr)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1119
static int t4_get_window(struct adapter *adap, u64 pci_base, u64 pci_mask, u64 memwin_base, int drv_fw_attach)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11214
void t4_idma_monitor_init(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11229
idma->idma_1s_thresh = core_ticks_per_usec(adapter) * 1000000; /* 1s */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11240
void t4_idma_monitor(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11253
t4_write_reg(adapter, A_SGE_DEBUG_INDEX, 13);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11254
idma_same_state_cnt[0] = t4_read_reg(adapter, A_SGE_DEBUG_DATA_HIGH);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11255
idma_same_state_cnt[1] = t4_read_reg(adapter, A_SGE_DEBUG_DATA_LOW);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11268
CH_WARN(adapter, "SGE idma%d, queue %u, "
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11306
t4_write_reg(adapter, A_SGE_DEBUG_INDEX, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11307
debug0 = t4_read_reg(adapter, A_SGE_DEBUG_DATA_LOW);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11310
t4_write_reg(adapter, A_SGE_DEBUG_INDEX, 11);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11311
debug11 = t4_read_reg(adapter, A_SGE_DEBUG_DATA_LOW);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11314
CH_WARN(adapter, "SGE idma%u, queue %u, potentially stuck in "
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11319
t4_sge_decode_idma_state(adapter, idma->idma_state[i]);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11330
int t4_set_vf_mac_acl(struct adapter *adapter, unsigned int vf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11339
V_FW_ACL_MAC_CMD_PFN(adapter->pf) |
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11346
switch (adapter->pf) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11361
return t4_wr_mbox(adapter, adapter->mbox, &cmd, sizeof(cmd), &cmd);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11375
void t4_read_pace_tbl(struct adapter *adap, unsigned int pace_vals[NTX_SCHED])
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11396
void t4_get_tx_sched(struct adapter *adap, unsigned int sched, unsigned int *kbps,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11433
int t4_load_cfg(struct adapter *adap, const u8 *cfg_data, unsigned int size)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1146
int t4_get_util_window(struct adapter *adap, int drv_fw_attach)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11491
int t5_fw_init_extern_mem(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1156
void t4_setup_memwin(struct adapter *adap, u32 memwin_base, u32 window)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
116
static inline int t4_os_pci_write_seeprom(adapter_t *adapter, int addr, u32 val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11665
int t4_erase_sf(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11694
int t4_load_boot(struct adapter *adap, u8 *boot_data,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1170
unsigned int t4_get_regs_len(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1172
unsigned int chip_version = CHELSIO_CHIP_VERSION(adapter->params.chip);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
118
const int ret = t4_seeprom_write(adapter, addr, val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11823
static int t4_flash_bootcfg_addr(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11829
if (adapter->params.sf_size < FLASH_BOOTCFG_START + FLASH_BOOTCFG_MAX_SIZE)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1183
CH_ERR(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11835
int t4_load_bootcfg(struct adapter *adap,const u8 *cfg_data, unsigned int size)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11896
int t4_read_bootcfg(struct adapter *adap, u8 *cfg_data, unsigned int size)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11942
int t4_set_filter_mode(struct adapter *adap, unsigned int mode_map,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
11967
void t4_clr_port_stats(struct adapter *adap, int idx)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
1198
void t4_get_regs(struct adapter *adap, void *buf, size_t buf_size)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12005
int t4_i2c_io(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12055
int t4_i2c_rd(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12063
int t4_i2c_wr(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12081
int t4_sge_ctxt_rd(struct adapter *adap, unsigned int mbox, unsigned int cid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12125
int t4_sge_ctxt_rd_bd(struct adapter *adap, unsigned int cid, enum ctxt_type ctype,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12138
int t4_sched_config(struct adapter *adapter, int type, int minmaxen)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12152
return t4_wr_mbox_meat(adapter,adapter->mbox, &cmd, sizeof(cmd),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12156
int t4_sched_params(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12185
return t4_wr_mbox_meat(adapter,adapter->mbox, &cmd, sizeof(cmd),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12189
int t4_read_sched_params(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12208
ret = t4_wr_mbox_meat(adapter, adapter->mbox, &cmd, sizeof(cmd),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12241
int t4_config_watchdog(struct adapter *adapter, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12268
return t4_wr_mbox(adapter, mbox, &wdog, sizeof wdog, NULL);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12271
int t4_get_devlog_level(struct adapter *adapter, unsigned int *level)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12280
ret = t4_wr_mbox(adapter, adapter->mbox, &devlog_cmd,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12289
int t4_set_devlog_level(struct adapter *adapter, unsigned int level)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12299
return t4_wr_mbox(adapter, adapter->mbox, &devlog_cmd,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
123
static inline int t4_os_pci_set_vpd_size(struct adapter *adapter, size_t len)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12303
int t4_configure_add_smac(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12334
int t4_configure_ringbb(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12377
int t4_set_vlan_acl(struct adapter *adap, unsigned int mbox, unsigned int vf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12420
int t4_del_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
12469
int t4_add_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
145
static int t4_wait_op_done_val(struct adapter *adapter, int reg, u32 mask,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
149
u32 val = t4_read_reg(adapter, reg);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
163
static inline int t4_wait_op_done(struct adapter *adapter, int reg, u32 mask,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
166
return t4_wait_op_done_val(adapter, reg, mask, polarity, attempts,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
180
void t4_set_reg_field(struct adapter *adapter, unsigned int addr, u32 mask,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
183
u32 v = t4_read_reg(adapter, addr) & ~mask;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
185
t4_write_reg(adapter, addr, v | val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
186
(void) t4_read_reg(adapter, addr); /* flush */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
201
void t4_read_indirect(struct adapter *adap, unsigned int addr_reg,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
224
void t4_write_indirect(struct adapter *adap, unsigned int addr_reg,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
244
void t4_hw_pci_read_cfg4(struct adapter *adap, int reg, u32 *val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
275
static void t4_report_fw_error(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
300
static void get_mbox_rpl(struct adapter *adap, __be64 *rpl, int nflit,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3056
static int t4_seeprom_wait(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3058
unsigned int base = adapter->params.pci.vpd_cap_addr;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3065
if (!adapter->vpd_busy)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3077
t4_os_pci_read_cfg2(adapter, base + PCI_VPD_ADDR, &val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3083
if ((val & PCI_VPD_ADDR_F) == adapter->vpd_flag) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3084
adapter->vpd_busy = 0;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
310
static void fw_asrt(struct adapter *adap, struct fw_debug_cmd *asrt)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3109
int t4_seeprom_read(struct adapter *adapter, u32 addr, u32 *data)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3111
unsigned int base = adapter->params.pci.vpd_cap_addr;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3124
ret = t4_seeprom_wait(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3126
CH_ERR(adapter, "VPD still busy from previous operation\n");
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3136
t4_os_pci_write_cfg2(adapter, base + PCI_VPD_ADDR, (u16)addr);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3137
adapter->vpd_busy = 1;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3138
adapter->vpd_flag = PCI_VPD_ADDR_F;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3139
ret = t4_seeprom_wait(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3141
CH_ERR(adapter, "VPD read of address %#x failed\n", addr);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3149
t4_os_pci_read_cfg4(adapter, base + PCI_VPD_DATA, data);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3164
int t4_seeprom_write(struct adapter *adapter, u32 addr, u32 data)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3166
unsigned int base = adapter->params.pci.vpd_cap_addr;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3181
ret = t4_seeprom_wait(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3183
CH_ERR(adapter, "VPD still busy from previous operation\n");
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3193
t4_os_pci_write_cfg4(adapter, base + PCI_VPD_DATA,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3195
t4_os_pci_write_cfg2(adapter, base + PCI_VPD_ADDR,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3197
adapter->vpd_busy = 1;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3198
adapter->vpd_flag = 0;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3199
ret = t4_seeprom_wait(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3201
CH_ERR(adapter, "VPD write of address %#x failed\n", addr);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3209
t4_os_pci_write_cfg4(adapter, base + PCI_VPD_DATA, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3213
t4_seeprom_read(adapter, EEPROM_STAT_ADDR, &stats_reg);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3258
int t4_seeprom_wp(struct adapter *adapter, int enable)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3260
return t4_os_pci_write_seeprom(adapter, EEPROM_STAT_ADDR, enable ? 0xc : 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3323
int t4_get_raw_vpd_params(struct adapter *adapter, struct vpd_params *p)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3339
ret = t4_os_pci_set_vpd_size(adapter, VPD_SIZE);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3346
ret = t4_os_pci_read_seeprom(adapter, VPD_BASE, (u32 *)(vpd));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3359
ret = t4_os_pci_read_seeprom(adapter, addr+i, (u32 *)(vpd+i));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3368
CH_ERR(adapter, "missing VPD keyword " name "\n"); \
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3379
CH_ERR(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
341
static void t4_record_mbox(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3419
int t4_get_vpd_params(struct adapter *adapter, struct vpd_params *p)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3427
ret = t4_get_raw_vpd_params(adapter, p);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3437
ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
345
struct mbox_cmd_log *log = adapter->mbox_log;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3454
int t4_get_pfres(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3456
struct pf_resources *pfres = &adapter->params.pfres;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3469
V_FW_PFVF_CMD_PFN(adapter->pf) |
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3472
v = t4_wr_mbox(adapter, adapter->mbox, &cmd, sizeof(cmd), &rpl);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3525
static int sf1_read(struct adapter *adapter, unsigned int byte_cnt, int cont,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3532
if (t4_read_reg(adapter, A_SF_OP) & F_BUSY)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3534
t4_write_reg(adapter, A_SF_OP,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3536
ret = t4_wait_op_done(adapter, A_SF_OP, F_BUSY, 0, SF_ATTEMPTS, 5);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3538
*valp = t4_read_reg(adapter, A_SF_DATA);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3554
static int sf1_write(struct adapter *adapter, unsigned int byte_cnt, int cont,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3559
if (t4_read_reg(adapter, A_SF_OP) & F_BUSY)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3561
t4_write_reg(adapter, A_SF_DATA, val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3562
t4_write_reg(adapter, A_SF_OP, V_SF_LOCK(lock) |
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3564
return t4_wait_op_done(adapter, A_SF_OP, F_BUSY, 0, SF_ATTEMPTS, 5);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3575
static int flash_wait_op(struct adapter *adapter, int attempts, int ch_delay)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3581
if ((ret = sf1_write(adapter, 1, 1, 1, SF_RD_STATUS)) != 0 ||
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3582
(ret = sf1_read(adapter, 1, 0, 1, &status)) != 0)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3590
if (adapter->flags & K_CRASH)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3612
int t4_read_flash(struct adapter *adapter, unsigned int addr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3617
if (addr + nwords * sizeof(u32) > adapter->params.sf_size || (addr & 3))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3622
if ((ret = sf1_write(adapter, 4, 1, 0, addr)) != 0 ||
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3623
(ret = sf1_read(adapter, 1, 1, 0, data)) != 0)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3627
ret = sf1_read(adapter, 4, nwords > 1, nwords == 1, data);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3629
t4_write_reg(adapter, A_SF_OP, 0); /* unlock SF */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3651
int t4_write_flash(struct adapter *adapter, unsigned int addr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3658
if (addr >= adapter->params.sf_size || offset + n > SF_PAGE_SIZE)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3663
if ((ret = sf1_write(adapter, 1, 0, 1, SF_WR_ENABLE)) != 0 ||
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3664
(ret = sf1_write(adapter, 4, 1, 1, val)) != 0)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3675
ret = sf1_write(adapter, c, c != left, 1, val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3679
ret = flash_wait_op(adapter, 8, 1);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3683
t4_write_reg(adapter, A_SF_OP, 0); /* unlock SF */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3686
ret = t4_read_flash(adapter, addr & ~0xff, ARRAY_SIZE(buf), buf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3692
CH_ERR(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3700
t4_write_reg(adapter, A_SF_OP, 0); /* unlock SF */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3711
int t4_get_fw_version(struct adapter *adapter, u32 *vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3713
return t4_read_flash(adapter, FLASH_FW_START +
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3725
int t4_get_bs_version(struct adapter *adapter, u32 *vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3727
return t4_read_flash(adapter, FLASH_FWBOOTSTRAP_START +
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3739
int t4_get_tp_version(struct adapter *adapter, u32 *vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3741
return t4_read_flash(adapter, FLASH_FW_START +
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3756
int t4_get_exprom_version(struct adapter *adapter, u32 *vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3766
ret = t4_read_flash(adapter, FLASH_EXP_ROM_START,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3806
int t4_get_scfg_version(struct adapter *adapter, u32 *vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3813
ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
384
void t4_record_mbox_marker(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3841
int t4_get_vpd_version(struct adapter *adapter, u32 *vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3848
ret = t4_query_params(adapter, adapter->mbox, adapter->pf, 0,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3864
int t4_get_version_info(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3875
FIRST_RET(t4_get_fw_version(adapter, &adapter->params.fw_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3876
FIRST_RET(t4_get_bs_version(adapter, &adapter->params.bs_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3877
FIRST_RET(t4_get_tp_version(adapter, &adapter->params.tp_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3878
FIRST_RET(t4_get_exprom_version(adapter, &adapter->params.er_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3879
FIRST_RET(t4_get_scfg_version(adapter, &adapter->params.scfg_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3880
FIRST_RET(t4_get_vpd_version(adapter, &adapter->params.vpd_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3895
void t4_dump_version_info(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3900
CH_INFO(adapter, "Chelsio %s rev %d\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3901
adapter->params.vpd.id,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3902
CHELSIO_CHIP_RELEASE(adapter->params.chip));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3903
CH_INFO(adapter, "S/N: %s, P/N: %s\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3904
adapter->params.vpd.sn,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3905
adapter->params.vpd.pn);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3910
if (!adapter->params.fw_vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3911
CH_WARN(adapter, "No firmware loaded\n");
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3913
CH_INFO(adapter, "Firmware version: %u.%u.%u.%u\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3914
G_FW_HDR_FW_VER_MAJOR(adapter->params.fw_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3915
G_FW_HDR_FW_VER_MINOR(adapter->params.fw_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3916
G_FW_HDR_FW_VER_MICRO(adapter->params.fw_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3917
G_FW_HDR_FW_VER_BUILD(adapter->params.fw_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3923
if (!adapter->params.bs_vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3924
CH_INFO(adapter, "No bootstrap loaded\n");
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3926
CH_INFO(adapter, "Bootstrap version: %u.%u.%u.%u\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3927
G_FW_HDR_FW_VER_MAJOR(adapter->params.bs_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3928
G_FW_HDR_FW_VER_MINOR(adapter->params.bs_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3929
G_FW_HDR_FW_VER_MICRO(adapter->params.bs_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3930
G_FW_HDR_FW_VER_BUILD(adapter->params.bs_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3935
if (!adapter->params.tp_vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3936
CH_WARN(adapter, "No TP Microcode loaded\n");
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3938
CH_INFO(adapter, "TP Microcode version: %u.%u.%u.%u\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3939
G_FW_HDR_FW_VER_MAJOR(adapter->params.tp_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3940
G_FW_HDR_FW_VER_MINOR(adapter->params.tp_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3941
G_FW_HDR_FW_VER_MICRO(adapter->params.tp_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3942
G_FW_HDR_FW_VER_BUILD(adapter->params.tp_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3947
if (!adapter->params.er_vers)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3948
CH_INFO(adapter, "No Expansion ROM loaded\n");
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3950
CH_INFO(adapter, "Expansion ROM version: %u.%u.%u.%u\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3951
G_FW_HDR_FW_VER_MAJOR(adapter->params.er_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3952
G_FW_HDR_FW_VER_MINOR(adapter->params.er_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3953
G_FW_HDR_FW_VER_MICRO(adapter->params.er_vers),
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3954
G_FW_HDR_FW_VER_BUILD(adapter->params.er_vers));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3960
CH_INFO(adapter, "Serial Configuration version: %x\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3961
adapter->params.scfg_vers);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3966
CH_INFO(adapter, "VPD version: %x\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3967
adapter->params.vpd_vers);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
3978
int t4_check_fw_version(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
400
t4_record_mbox(adapter, marker_cmd, marker_cmd_size, 0, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4052
static int should_install_fs_fw(struct adapter *adap, int card_fw_usable,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4096
int t4_prep_fw(struct adapter *adap, struct fw_info *fw_info,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4195
int t4_flash_erase_sectors(struct adapter *adapter, int start, int end)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4199
if (end >= adapter->params.sf_nsec)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4203
if ((ret = sf1_write(adapter, 1, 0, 1, SF_WR_ENABLE)) != 0 ||
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4204
(ret = sf1_write(adapter, 4, 0, 1,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4206
(ret = flash_wait_op(adapter, 14, 500)) != 0) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4207
CH_ERR(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4214
t4_write_reg(adapter, A_SF_OP, 0); /* unlock SF */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4226
int t4_flash_cfg_addr(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4232
if (adapter->params.sf_size < FLASH_CFG_START + FLASH_CFG_MAX_SIZE)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4243
static int t4_fw_matches_chip(const struct adapter *adap,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4270
int t4_load_fw(struct adapter *adap, const u8 *fw_data, unsigned int size,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4374
int t4_phy_fw_ver(struct adapter *adap, int *phy_fw_ver)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
438
int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4418
int t4_load_phy_fw(struct adapter *adap,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
45
t4_os_pci_read_cfg1(struct adapter *sc, int reg, uint8_t *val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4517
int t4_fwcache(struct adapter *adap, enum fw_params_param_dev_fwcache op)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4536
void t4_cim_read_pif_la(struct adapter *adap, u32 *pif_req, u32 *pif_rsp,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4570
void t4_cim_read_ma_la(struct adapter *adap, u32 *ma_req, u32 *ma_rsp)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4591
void t4_ulprx_read_la(struct adapter *adap, u32 *la_buf)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4606
typedef void (*int_handler_t)(struct adapter *adap);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4629
static int t4_handle_intr_status(struct adapter *adapter, unsigned int reg,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4634
unsigned int status = t4_read_reg(adapter, reg);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4641
CH_ALERT(adapter, "%s (0x%x)\n", acts->msg,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4644
CH_WARN_RATELIMIT(adapter, "%s (0x%x)\n", acts->msg,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4647
acts->int_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4652
t4_write_reg(adapter, reg, status);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4659
static void pcie_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4759
if (is_t4(adapter->params.chip))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4760
fat = t4_handle_intr_status(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4763
t4_handle_intr_status(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4766
t4_handle_intr_status(adapter, A_PCIE_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4769
fat = t4_handle_intr_status(adapter, A_PCIE_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4772
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4778
static void tp_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4786
if (t4_handle_intr_status(adapter, A_TP_INT_CAUSE, tp_intr_info))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4787
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4793
static void sge_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4843
perr = t4_read_reg(adapter, A_SGE_INT_CAUSE1);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4846
CH_ALERT(adapter, "SGE Cause1 Parity Error %#x\n", perr);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4848
perr = t4_read_reg(adapter, A_SGE_INT_CAUSE2);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4851
CH_ALERT(adapter, "SGE Cause2 Parity Error %#x\n", perr);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4853
if (CHELSIO_CHIP_VERSION(adapter->params.chip) >= CHELSIO_T5) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4854
perr = t4_read_reg(adapter, A_SGE_INT_CAUSE5);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4857
CH_ALERT(adapter, "SGE Cause5 Parity Error %#x\n", perr);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4861
v |= t4_handle_intr_status(adapter, A_SGE_INT_CAUSE3, sge_intr_info);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4862
if (CHELSIO_CHIP_VERSION(adapter->params.chip) <= CHELSIO_T5)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4863
v |= t4_handle_intr_status(adapter, A_SGE_INT_CAUSE3,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4866
v |= t4_handle_intr_status(adapter, A_SGE_INT_CAUSE3,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4869
err = t4_read_reg(adapter, A_SGE_ERROR_STATS);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4871
CH_ERR(adapter, "SGE error for queue %u\n", G_ERROR_QID(err));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4873
CH_ERR(adapter, "SGE UNCAPTURED_ERROR set (clearing)\n");
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4874
t4_write_reg(adapter, A_SGE_ERROR_STATS, F_ERROR_QID_VALID |
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4879
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4890
static void cim_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4937
fw_err = t4_read_reg(adapter, A_PCIE_FW);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4939
t4_report_fw_error(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4947
val = t4_read_reg(adapter, A_CIM_HOST_INT_CAUSE);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4951
t4_write_reg(adapter, A_CIM_HOST_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4954
fat = t4_handle_intr_status(adapter, A_CIM_HOST_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4956
t4_handle_intr_status(adapter, A_CIM_HOST_UPACC_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4959
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4965
static void ulprx_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4974
if (t4_handle_intr_status(adapter, A_ULP_RX_INT_CAUSE, ulprx_intr_info))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4975
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4981
static void ulptx_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4996
if (t4_handle_intr_status(adapter, A_ULP_TX_INT_CAUSE, ulptx_intr_info))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
4997
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5003
static void pmtx_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5019
if (t4_handle_intr_status(adapter, A_PM_TX_INT_CAUSE, pmtx_intr_info))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5020
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5026
static void pmrx_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5039
if (t4_handle_intr_status(adapter, A_PM_RX_INT_CAUSE, pmrx_intr_info))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5040
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5046
static void cplsw_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5058
if (t4_handle_intr_status(adapter, A_CPL_INTR_CAUSE, cplsw_intr_info))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5059
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5065
static void le_intr_handler(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5097
static void mps_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
51
t4_os_pci_write_cfg1(struct adapter *sc, int reg, uint8_t val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5155
fat = t4_handle_intr_status(adapter, A_MPS_RX_PERR_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5157
t4_handle_intr_status(adapter, A_MPS_TX_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5158
is_t6(adapter->params.chip)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5161
t4_handle_intr_status(adapter, A_MPS_TRC_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5163
t4_handle_intr_status(adapter, A_MPS_STAT_PERR_INT_CAUSE_SRAM,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5165
t4_handle_intr_status(adapter, A_MPS_STAT_PERR_INT_CAUSE_TX_FIFO,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5167
t4_handle_intr_status(adapter, A_MPS_STAT_PERR_INT_CAUSE_RX_FIFO,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5169
t4_handle_intr_status(adapter, A_MPS_CLS_INT_CAUSE,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5172
t4_write_reg(adapter, A_MPS_INT_CAUSE, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5173
t4_read_reg(adapter, A_MPS_INT_CAUSE); /* flush */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5175
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5184
static void mem_intr_handler(struct adapter *adapter, int idx)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5194
if (is_t4(adapter->params.chip)) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5206
v = t4_read_reg(adapter, addr) & MEM_INT_MASK;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5208
CH_ALERT(adapter, "%s FIFO parity error\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5211
u32 cnt = G_ECC_CECNT(t4_read_reg(adapter, cnt_addr));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5214
t4_edc_err_read(adapter, idx);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5216
t4_write_reg(adapter, cnt_addr, V_ECC_CECNT(M_ECC_CECNT));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5217
CH_WARN_RATELIMIT(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5222
CH_ALERT(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5225
t4_write_reg(adapter, addr, v);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5227
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5233
static void ma_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5235
u32 v, status = t4_read_reg(adapter, A_MA_INT_CAUSE);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5238
CH_ALERT(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5240
t4_read_reg(adapter, A_MA_PARITY_ERROR_STATUS1));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5241
if (is_t5(adapter->params.chip))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5242
CH_ALERT(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5244
t4_read_reg(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5248
v = t4_read_reg(adapter, A_MA_INT_WRAP_STATUS);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5249
CH_ALERT(adapter, "MA address wrap-around error by "
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5254
t4_write_reg(adapter, A_MA_INT_CAUSE, status);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5255
t4_fatal_err(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5261
static void smb_intr_handler(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5277
static void ncsi_intr_handler(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5294
static void xgmac_intr_handler(struct adapter *adap, int port)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5322
static void pl_perr_intr_handler(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5363
static void pl_intr_handler(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5394
int t4_slow_intr_handler(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5400
u32 raw_cause = t4_read_reg(adapter, A_PL_INT_CAUSE);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5401
u32 enable = t4_read_reg(adapter, A_PL_INT_ENABLE);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5408
t4_write_reg(adapter, A_PL_INT_ENABLE, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5409
(void)t4_read_reg(adapter, A_PL_INT_ENABLE); /* flush */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5412
cim_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5414
mps_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5416
ncsi_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5418
pl_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5420
smb_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5422
xgmac_intr_handler(adapter, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5424
xgmac_intr_handler(adapter, 1);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5426
xgmac_intr_handler(adapter, 2);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5428
xgmac_intr_handler(adapter, 3);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5430
pcie_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5432
mem_intr_handler(adapter, MEM_MC);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5433
if (is_t5(adapter->params.chip) && (cause & F_MC1))
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5434
mem_intr_handler(adapter, MEM_MC1);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5436
mem_intr_handler(adapter, MEM_EDC0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5438
mem_intr_handler(adapter, MEM_EDC1);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5440
le_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5442
tp_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5444
ma_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5446
pmtx_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5448
pmrx_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5450
ulprx_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5452
cplsw_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5454
sge_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5456
ulptx_intr_handler(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5459
t4_write_reg(adapter, A_PL_INT_CAUSE, raw_cause & GLBL_INTR_MASK);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5464
t4_write_reg(adapter, A_PL_INT_ENABLE, enable);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5465
(void)t4_read_reg(adapter, A_PL_INT_ENABLE); /* flush */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5482
void t4_intr_enable(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5485
u32 whoami = t4_read_reg(adapter, A_PL_WHOAMI);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5486
u32 pf = (CHELSIO_CHIP_VERSION(adapter->params.chip) <= CHELSIO_T5
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5490
if (CHELSIO_CHIP_VERSION(adapter->params.chip) <= CHELSIO_T5)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5494
t4_write_reg(adapter, A_SGE_INT_ENABLE3, F_ERR_CPL_EXCEED_IQE_SIZE |
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5501
t4_write_reg(adapter, MYPF_REG(A_PL_PF_INT_ENABLE), PF_INTR_MASK);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5502
t4_set_reg_field(adapter, A_PL_INT_MAP0, 0, 1 << pf);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5513
void t4_intr_disable(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5515
u32 whoami = t4_read_reg(adapter, A_PL_WHOAMI);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5516
u32 pf = (CHELSIO_CHIP_VERSION(adapter->params.chip) <= CHELSIO_T5
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5520
t4_write_reg(adapter, MYPF_REG(A_PL_PF_INT_ENABLE), 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5521
t4_set_reg_field(adapter, A_PL_INT_MAP0, 1 << pf, 0);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5524
unsigned int t4_chip_rss_size(struct adapter *adap)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5549
int t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5615
ret = t4_wr_mbox(adapter, mbox, &cmd, sizeof(cmd), NULL);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5631
int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5649
return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5664
int t4_config_vi_rss(struct adapter *adapter, int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5681
return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5685
static int rd_rss_row(struct adapter *adap, int row, u32 *val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5699
int t4_read_rss(struct adapter *adapter, u16 *map)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
57
t4_os_pci_read_cfg2(struct adapter *sc, int reg, uint16_t *val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5704
nentries = t4_chip_rss_size(adapter);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5706
ret = rd_rss_row(adapter, i, &val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5727
static int t4_tp_fw_ldst_rw(struct adapter *adap, int cmd, u32 *vals,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5771
static void t4_tp_indirect_rw(struct adapter *adap, u32 reg_addr, u32 reg_data,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5818
void t4_tp_pio_read(struct adapter *adap, u32 *buff, u32 nregs,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5835
void t4_tp_pio_write(struct adapter *adap, u32 *buff, u32 nregs,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5852
void t4_tp_tm_pio_read(struct adapter *adap, u32 *buff, u32 nregs,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5869
void t4_tp_mib_read(struct adapter *adap, u32 *buff, u32 nregs, u32 start_index,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5884
void t4_read_rss_key(struct adapter *adap, u32 *key, bool sleep_ok)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5900
void t4_write_rss_key(struct adapter *adap, const u32 *key, int idx,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5937
void t4_read_rss_pf_config(struct adapter *adapter, unsigned int index,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5940
t4_tp_pio_read(adapter, valp, 1, A_TP_RSS_PF0_CONFIG + index, sleep_ok);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5953
void t4_write_rss_pf_config(struct adapter *adapter, unsigned int index,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5956
t4_tp_pio_write(adapter, &val, 1, A_TP_RSS_PF0_CONFIG + index,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5971
void t4_read_rss_vf_config(struct adapter *adapter, unsigned int index,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5976
if (CHELSIO_CHIP_VERSION(adapter->params.chip) <= CHELSIO_T5) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5986
vrt = t4_read_reg(adapter, A_TP_RSS_CONFIG_VRT);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5989
t4_write_reg(adapter, A_TP_RSS_CONFIG_VRT, vrt);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5994
t4_tp_pio_read(adapter, vfl, 1, A_TP_RSS_VFL_CONFIG, sleep_ok);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
5995
t4_tp_pio_read(adapter, vfh, 1, A_TP_RSS_VFH_CONFIG, sleep_ok);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6005
u32 t4_read_rss_pf_map(struct adapter *adapter, bool sleep_ok)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6009
t4_tp_pio_read(adapter, &pfmap, 1, A_TP_RSS_PF_MAP, sleep_ok);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6021
u32 t4_read_rss_pf_mask(struct adapter *adapter, bool sleep_ok)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6025
t4_tp_pio_read(adapter, &pfmask, 1, A_TP_RSS_PF_MSK, sleep_ok);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6040
void t4_tp_get_tcp_stats(struct adapter *adap, struct tp_tcp_stats *v4,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6078
void t4_tp_get_err_stats(struct adapter *adap, struct tp_err_stats *st,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6119
void t4_tp_get_cpl_stats(struct adapter *adap, struct tp_cpl_stats *st,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6136
void t4_tp_get_rdma_stats(struct adapter *adap, struct tp_rdma_stats *st,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6152
void t4_get_fcoe_stats(struct adapter *adap, unsigned int idx,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6177
void t4_get_usm_stats(struct adapter *adap, struct tp_usm_stats *st,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6197
void t4_read_mtu_tbl(struct adapter *adap, u16 *mtus, u8 *mtu_log)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6220
void t4_read_cong_tbl(struct adapter *adap, u16 incr[NMTUS][NCCTRL_WIN])
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6242
void t4_tp_wr_bits_indirect(struct adapter *adap, unsigned int addr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
63
t4_os_pci_write_cfg2(struct adapter *sc, int reg, uint16_t val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6309
void t4_load_mtus(struct adapter *adap, const unsigned short *mtus,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6351
static u64 chan_rate(struct adapter *adap, unsigned int bytes256)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6367
void t4_get_chan_txrate(struct adapter *adap, u64 *nic_rate, u64 *ofld_rate)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6402
int t4_set_trace_filter(struct adapter *adap, const struct trace_params *tp, int idx,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6479
void t4_get_trace_filter(struct adapter *adap, struct trace_params *tp, int idx,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6523
int t4_read_tcb(struct adapter *adap, int win, int tid, u32 tcb[TCB_SIZE/4])
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6549
void t4_pmtx_get_stats(struct adapter *adap, u32 cnt[], u64 cycles[])
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6576
void t4_pmrx_get_stats(struct adapter *adap, u32 cnt[], u64 cycles[])
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6604
static inline unsigned int compute_mps_bg_map(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6609
chip_version = CHELSIO_CHIP_VERSION(adapter->params.chip);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
661
static int t4_wr_mbox_meat_timeout_panic(struct adapter *adap, int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6610
nports = 1 << G_NUMPORTS(t4_read_reg(adapter, A_MPS_CMN_CTL));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6629
CH_ERR(adapter, "Need MPS Buffer Group Map for Chip %0x, Nports %d\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6644
unsigned int t4_get_mps_bg_map(struct adapter *adapter, int pidx)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6649
nports = 1 << G_NUMPORTS(t4_read_reg(adapter, A_MPS_CMN_CTL));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6651
CH_WARN(adapter, "MPS Port Index %d >= Nports %d\n", pidx, nports);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6657
mps_bg_map = adapter->params.mps_bg_map;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6671
if (adapter->flags & FW_OK) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6677
ret = t4_query_params_ns(adapter, adapter->mbox, adapter->pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6696
mps_bg_map[pidx] = compute_mps_bg_map(adapter, pidx);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6705
unsigned int t4_get_tp_e2c_map(struct adapter *adapter, int pidx)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6707
unsigned int nports = 1 << G_NUMPORTS(t4_read_reg(adapter, A_MPS_CMN_CTL));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6712
CH_WARN(adapter, "TP E2C Channel Port Index %d >= Nports %d\n", pidx, nports);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6721
ret = t4_query_params_ns(adapter, adapter->mbox, adapter->pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6737
unsigned int t4_get_tp_ch_map(struct adapter *adapter, int pidx)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6739
unsigned int chip_version = CHELSIO_CHIP_VERSION(adapter->params.chip);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6740
unsigned int nports = 1 << G_NUMPORTS(t4_read_reg(adapter, A_MPS_CMN_CTL));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6743
CH_WARN(adapter, "TP Port Index %d >= Nports %d\n", pidx, nports);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6770
CH_ERR(adapter, "Need TP Channel Map for Chip %0x, Nports %d\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6820
void t4_get_port_stats_offset(struct adapter *adap, int idx,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6842
void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
69
t4_os_pci_read_cfg4(struct adapter *sc, int reg, uint32_t *val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
6940
void t4_get_lb_stats(struct adapter *adap, int idx, struct lb_port_stats *p)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7011
int t4_fwaddrspace_write(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7041
int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7075
int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7101
void t4_sge_decode_idma_state(struct adapter *adapter, int state)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7216
unsigned int chip_version = CHELSIO_CHIP_VERSION(adapter->params.chip);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7238
CH_ERR(adapter, "Unsupported chip version %d\n", chip_version);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7243
CH_WARN(adapter, "idma state %s\n", sge_idma_decode[state]);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7245
CH_WARN(adapter, "idma state %d unknown\n", state);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7248
CH_WARN(adapter, "SGE register %#x value %#x\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7249
sge_regs[i], t4_read_reg(adapter, sge_regs[i]));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7260
int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox, int ctxt_type)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7290
int t4_read_sge_dbqtimers(struct adapter *adap, unsigned int ndbqtimers,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7332
int t4_fw_hello(struct adapter *adap, unsigned int mbox, unsigned int evt_mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7458
int t4_fw_bye(struct adapter *adap, unsigned int mbox)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7475
int t4_fw_reset(struct adapter *adap, unsigned int mbox, int reset)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
75
t4_os_pci_write_cfg4(struct adapter *sc, int reg, uint32_t val)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7501
static int t4_fw_halt(struct adapter *adap, unsigned int mbox, int force)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7566
static int t4_fw_restart(struct adapter *adap, unsigned int mbox, int reset)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7629
int t4_fw_upgrade(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7699
int t4_fl_pkt_align(struct adapter *adap, bool is_packed)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7759
int t4_fixup_host_params_compat(struct adapter *adap,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
790
int t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7915
int t4_fixup_host_params(struct adapter *adap, unsigned int page_size,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7930
int t4_fw_initialize(struct adapter *adap, unsigned int mbox)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7954
int t4_query_params_rw(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
7995
int t4_query_params(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8003
int t4_query_params_ns(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8025
int t4_set_params_timeout(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
804
static int t4_edc_err_read(struct adapter *adap, int idx)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8064
int t4_set_params(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8093
int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8140
int t4_alloc_vi_func(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8208
int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8227
int t4_free_vi(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8258
int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8306
int t4_alloc_encap_mac_filt(struct adapter *adap, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8354
int t4_alloc_raw_mac_filt(struct adapter *adap, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8417
int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8499
int t4_free_encap_mac_filt(struct adapter *adap, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8542
int t4_free_raw_mac_filt(struct adapter *adap, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8590
int t4_free_mac_filt(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
86
int t4_seeprom_read(struct adapter *adapter, u32 addr, u32 *data);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
865
int t4_memory_rw_addr(struct adapter *adap, int win, u32 addr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8674
int t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8692
int t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
87
int t4_seeprom_write(struct adapter *adapter, u32 addr, u32 data);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8721
int t4_enable_vi_params(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8748
int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8769
int t4_enable_pi_params(struct adapter *adap, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8791
int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8820
int t4_iq_stop(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8851
int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8879
int t4_eth_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8904
int t4_ctrl_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8929
int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9172
CH_ERR(pi->adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9186
CH_ERR(pi->adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9355
int t4_link_l1cfg_core(struct adapter *adapter, unsigned int mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9359
unsigned int fw_caps = adapter->params.fw_caps_support;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9378
ret = t4_wr_mbox_meat_timeout(adapter, mbox, &cmd, sizeof(cmd), NULL,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9388
CH_ERR(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9405
int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9529
struct adapter *adapter = pi->adapter;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9569
CH_ERR(adapter, "Handle Port Information: Bad Command/Action %#x\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9609
t4_os_portmod_changed(adapter, pi->port_id);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9617
CH_WARN_RATELIMIT(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9627
t4_os_link_changed(adapter, pi->port_id, link_ok);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9644
ret = t4_link_l1cfg_ns(adapter, adapter->mbox, pi->lport, lc,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9647
CH_WARN(adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9665
unsigned int fw_caps = pi->adapter->params.fw_caps_support;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9678
ret = t4_wr_mbox(pi->adapter, pi->adapter->mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9701
unsigned int fw_caps = pi->adapter->params.fw_caps_support;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9717
ret = t4_wr_mbox(pi->adapter, pi->adapter->mbox,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9751
int t4_handle_fw_rpl(struct adapter *adap, const __be64 *rpl)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9794
static void get_pci_mode(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9800
pcie_cap = t4_os_find_pci_capability(adapter, PCI_CAP_ID_EXP);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9802
t4_os_pci_read_cfg2(adapter, pcie_cap + PCI_EXP_LNKSTA, &val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9816
int t4_wait_dev_ready(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9820
whoami = t4_read_reg(adapter, A_PL_WHOAMI);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9825
whoami = t4_read_reg(adapter, A_PL_WHOAMI);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9829
CH_ERR(adapter, "Device didn't become ready for access, "
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9839
int t4_get_flash_params(struct adapter *adapter)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9861
ret = sf1_write(adapter, 1, 1, 0, SF_RD_ID);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9863
ret = sf1_read(adapter, 3, 0, 1, &flashid);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9864
t4_write_reg(adapter, A_SF_OP, 0); /* unlock SF */
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9873
adapter->params.sf_size =
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9875
adapter->params.sf_nsec =
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9876
adapter->params.sf_size / SF_SEC_SIZE;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
99
static inline int t4_os_pci_read_seeprom(adapter_t *adapter, int addr,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9959
CH_WARN(adapter, "Unknown Flash Part, ID = %#x, assuming 4MB\n", flashid);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9966
adapter->params.sf_size = size;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9967
adapter->params.sf_nsec = size / SF_SEC_SIZE;
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9975
if (adapter->params.sf_size < FLASH_MIN_SIZE)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9976
CH_WARN(adapter, "WARNING: Flash Part ID %#x, size %#x < %#x\n",
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9977
flashid, adapter->params.sf_size, FLASH_MIN_SIZE);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9982
static void set_pcie_completion_timeout(struct adapter *adapter,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9988
pcie_cap = t4_os_find_pci_capability(adapter, PCI_CAP_ID_EXP);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9990
t4_os_pci_read_cfg2(adapter, pcie_cap + PCI_EXP_DEVCTL2, &val);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
9993
t4_os_pci_write_cfg2(adapter, pcie_cap + PCI_EXP_DEVCTL2, val);
usr/src/uts/common/io/cxgbe/shared/osdep.h
140
struct adapter;
usr/src/uts/common/io/cxgbe/shared/osdep.h
142
int t4_os_find_pci_capability(struct adapter *, uint8_t);
usr/src/uts/common/io/cxgbe/shared/osdep.h
143
void t4_os_portmod_changed(struct adapter *, int);
usr/src/uts/common/io/cxgbe/shared/osdep.h
144
void t4_os_set_hw_addr(struct adapter *, int, const uint8_t *);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
200
struct adapter *adapter; /* associated adapter */
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
40
struct adapter;
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
41
typedef struct adapter adapter_t;
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
573
txq = &pi->adapter->sge.txq[pi->first_txq]; \
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
576
rxq = &pi->adapter->sge.rxq[pi->first_rxq]; \
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
584
static inline void t4_mbox_list_add(struct adapter *adap,
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
592
static inline void t4_mbox_list_del(struct adapter *adap,
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
601
t4_mbox_list_first_entry(struct adapter *adap)
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
607
adap2pinfo(struct adapter *sc, int idx)
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
631
static inline unsigned int t4_use_ldst(struct adapter *adap)
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
636
static inline void t4_db_full(struct adapter *adap) {}
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
637
static inline void t4_db_dropped(struct adapter *adap) {}
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
658
uint32_t t4_read_reg(struct adapter *, uint32_t);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
659
void t4_write_reg(struct adapter *, uint32_t, uint32_t);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
660
uint64_t t4_read_reg64(struct adapter *, uint32_t);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
661
void t4_write_reg64(struct adapter *, uint32_t, uint64_t);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
668
void t4_sge_init(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
669
int t4_alloc_fwq(struct adapter *);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
670
int t4_free_fwq(struct adapter *);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
679
int t4_mgmt_tx(struct adapter *sc, mblk_t *m);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
687
void t4_os_link_changed(struct adapter *sc, int idx, int link_stat);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
692
uint8_t t4_choose_holdoff_timer(struct adapter *, uint_t);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
693
int8_t t4_choose_holdoff_pktcnt(struct adapter *, int);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
694
uint_t t4_choose_dbq_timer(struct adapter *, uint_t);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
697
int t4_ioctl(struct adapter *sc, int cmd, void *data, int mode);
usr/src/uts/common/io/cxgbe/t4nex/adapter.h
83
struct adapter *adapter;
usr/src/uts/common/io/cxgbe/t4nex/cudbg.h
395
struct adapter *adap; /* Pointer to adapter structure
usr/src/uts/common/io/cxgbe/t4nex/cudbg_flash_utils.c
170
struct adapter *adap = cudbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_flash_utils.c
260
write_flash(struct adapter *adap, u32 start_sec, void *data, u32 size)
usr/src/uts/common/io/cxgbe/t4nex/cudbg_flash_utils.c
348
struct adapter *adap = cudbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_flash_utils.c
485
read_flash(struct adapter *adap, u32 start_sec , void *data, u32 size,
usr/src/uts/common/io/cxgbe/t4nex/cudbg_flash_utils.c
59
int write_flash(struct adapter *adap, u32 start_sec, void *data, u32 size);
usr/src/uts/common/io/cxgbe/t4nex/cudbg_flash_utils.c
60
int read_flash(struct adapter *adap, u32 start_sec , void *data, u32 size,
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1168
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1202
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1247
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1282
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1349
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1393
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1429
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1462
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1500
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1533
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
155
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1567
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1610
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1643
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1672
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1701
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1740
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1779
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1852
get_max_ctxt_qid(struct adapter *padap,
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
1943
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2055
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2210
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
230
struct adapter *adap = cudbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2331
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2383
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2417
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2484
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2553
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2609
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2661
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2818
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2867
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2893
check_busy_bit(struct adapter *padap)
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2914
cim_ha_rreg(struct adapter *padap, u32 addr, u32 *val)
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2934
dump_up_cim(struct adapter *padap, struct cudbg_init *pdbg_init,
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
295
struct adapter *padap = cudbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
2965
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3094
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3181
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3257
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3404
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3441
mps_rpl_backdoor(struct adapter *padap, struct fw_ldst_mps_rplc *mps_rplc)
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3474
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3640
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3677
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3738
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3852
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3930
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
3988
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
4063
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
4183
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
4234
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
4341
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
639
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
676
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
712
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
747
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
796
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
829
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
863
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_lib.c
909
fill_meminfo(struct adapter *padap,
usr/src/uts/common/io/cxgbe/t4nex/cudbg_wtp.c
1314
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_wtp.c
270
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_wtp.c
290
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_wtp.c
307
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/cudbg_wtp.c
950
struct adapter *padap = pdbg_init->adap;
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
120
reg_block_dump(struct adapter *sc, uint8_t *buf, unsigned int start,
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
136
mk_adap_vers(const struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
143
regdump(struct adapter *sc, void *data, int flags)
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
1754
get_devlog(struct adapter *sc, void *data, int flags)
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
1811
flash_fw(struct adapter *sc, void *data, int flags)
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
1846
get_cudbg(struct adapter *sc, void *data, int flags)
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
33
static int pci_rw(struct adapter *sc, void *data, int flags, int write);
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
34
static int reg_rw(struct adapter *sc, void *data, int flags, int write);
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
35
static void reg_block_dump(struct adapter *sc, uint8_t *buf, unsigned int start,
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
37
static int regdump(struct adapter *sc, void *data, int flags);
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
38
static int get_devlog(struct adapter *sc, void *data, int flags);
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
39
static int flash_fw(struct adapter *, void *, int);
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
40
static int get_cudbg(struct adapter *, void *, int);
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
43
t4_ioctl(struct adapter *sc, int cmd, void *data, int mode)
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
76
pci_rw(struct adapter *sc, void *data, int flags, int write)
usr/src/uts/common/io/cxgbe/t4nex/t4_ioctl.c
98
reg_rw(struct adapter *sc, void *data, int flags, int write)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1016
rxq = &pi->adapter->sge.rxq[pi->first_rxq + ring_index];
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1034
&pi->adapter->sge.txq[pi->first_txq + ring_index];
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1053
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1089
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1125
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1185
if (!pi->adapter->props.multi_rings) {
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1359
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
140
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1708
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1711
ADAPTER_LOCK_ASSERT_OWNED(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1775
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1778
ADAPTER_LOCK_ASSERT_OWNED(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1807
t4_convert_holdoff_timer(struct adapter *sc, uint_t idx)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1814
t4_convert_holdoff_pktcnt(struct adapter *sc, int idx)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1825
t4_convert_dbq_timer(struct adapter *sc, uint_t idx)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1835
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1887
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1939
t4_choose_holdoff_timer(struct adapter *sc, uint_t target_us)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1959
t4_choose_holdoff_pktcnt(struct adapter *sc, int target_cnt)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
1984
t4_choose_dbq_timer(struct adapter *sc, uint_t target_us)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
2007
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
2149
ADAPTER_LOCK(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
2166
ADAPTER_UNLOCK(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
2176
if (pi->adapter->props.multi_rings)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
2183
t4_os_link_changed(struct adapter *sc, int idx, int link_stat)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
2200
if (pi->adapter->props.multi_rings)
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
372
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
727
ADAPTER_LOCK(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
729
ADAPTER_UNLOCK(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
739
ADAPTER_LOCK(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
741
ADAPTER_UNLOCK(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
748
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
767
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
810
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
819
if (pi->adapter->props.multi_rings && pi->macaddr_cnt) {
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
848
ADAPTER_LOCK(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_mac.c
850
ADAPTER_UNLOCK(pi->adapter);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1105
validate_mt_off_len(struct adapter *sc, int mtype, uint32_t off, int len,
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1159
memwin_info(struct adapter *sc, int win, uint32_t *base, uint32_t *aperture)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1179
upload_config_file(struct adapter *sc, uint32_t *mt, uint32_t *ma)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
120
struct adapter *sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1280
partition_resources(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1345
adap__pre_init_tweaks(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1367
get_params__pre_init(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1433
get_params__post_init(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1536
set_params__post_init(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1550
t4_setup_adapter_memwin(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1607
t4_position_memwin(struct adapter *sc, int n, uint32_t addr)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1634
prop_lookup_int(struct adapter *sc, char *name, int defval)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1650
init_driver_props(struct adapter *sc, struct driver_properties *p)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
171
struct adapter *sc = NULL;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1775
remove_extra_props(struct adapter *sc, int n10g, int n1g)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
1798
cfg_itype_and_nqueues(struct adapter *sc, int n10g, int n1g,
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2000
add_child_node(struct adapter *sc, int idx)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2033
remove_child_node(struct adapter *sc, int idx)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2110
setup_kstats(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2196
setup_wc_kstats(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2227
struct adapter *sc = ksp->ks_private;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2277
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2343
if (!t4_cver_ge(pi->adapter, CHELSIO_T6)) {
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2382
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2455
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2483
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2507
t4_fatal_err(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2516
t4_os_find_pci_capability(struct adapter *sc, uint8_t cap)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2538
t4_os_portmod_changed(struct adapter *sc, int idx)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2566
t4_os_set_hw_addr(struct adapter *sc, int idx, const uint8_t *hw_addr)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2572
t4_read_reg(struct adapter *sc, uint32_t reg)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2575
DTRACE_PROBE3(t4__reg__read, struct adapter *, sc, uint32_t, reg,
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2581
t4_write_reg(struct adapter *sc, uint32_t reg, uint32_t val)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2583
DTRACE_PROBE3(t4__reg__write, struct adapter *, sc, uint32_t, reg,
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2589
t4_read_reg64(struct adapter *sc, uint32_t reg)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2592
DTRACE_PROBE3(t4__reg__read, struct adapter *, sc, uint32_t, reg,
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2598
t4_write_reg64(struct adapter *sc, uint32_t reg, uint64_t val)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2600
DTRACE_PROBE3(t4__reg__write, struct adapter *, sc, uint32_t, reg,
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2606
t4_sensor_read(struct adapter *sc, uint32_t diag, uint32_t *valp)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2632
struct adapter *sc = arg;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2656
struct adapter *sc = arg;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2721
struct adapter *sc = arg;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2896
rc = ddi_soft_state_init(&t4_soft_state, sizeof (struct adapter), 0);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
386
pi->adapter = sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
616
struct adapter *sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
70
static unsigned int getpf(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
71
static int prep_firmware(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
72
static int upload_config_file(struct adapter *sc, uint32_t *mt, uint32_t *ma);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
73
static int partition_resources(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
737
struct adapter *sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
74
static int adap__pre_init_tweaks(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
75
static int get_params__pre_init(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
76
static int get_params__post_init(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
77
static int set_params__post_init(struct adapter *);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
78
static void t4_setup_adapter_memwin(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
79
static int validate_mt_off_len(struct adapter *, int, uint32_t, int,
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
792
struct adapter *sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
81
static uint32_t t4_position_memwin(struct adapter *, int, uint32_t);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
82
static int init_driver_props(struct adapter *sc, struct driver_properties *p);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
83
static int remove_extra_props(struct adapter *sc, int n10g, int n1g);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
835
struct adapter *sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
84
static int cfg_itype_and_nqueues(struct adapter *sc, int n10g, int n1g,
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
86
static int add_child_node(struct adapter *sc, int idx);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
87
static int remove_child_node(struct adapter *sc, int idx);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
875
struct adapter *sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
88
static kstat_t *setup_kstats(struct adapter *sc);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
89
static kstat_t *setup_wc_kstats(struct adapter *);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
891
struct adapter *sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
906
struct adapter *sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
921
getpf(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
945
prep_firmware(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
100
static int alloc_eq(struct adapter *sc, struct port_info *pi,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
102
static int free_eq(struct adapter *sc, struct sge_eq *eq);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
105
static int alloc_dma_memory(struct adapter *sc, size_t len, int flags,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1090
init_iq(struct sge_iq *iq, struct adapter *sc, int tmr_idx, int8_t pktc_idx,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1097
iq->adapter = sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
110
static int alloc_desc_ring(struct adapter *sc, size_t len, int rw,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1135
struct adapter *sc = iq->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
114
static int alloc_tx_copybuffer(struct adapter *sc, size_t len,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
120
static int refill_fl(struct adapter *sc, struct sge_fl *fl, int nbufs);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
122
static void add_fl_to_sfl(struct adapter *sc, struct sge_fl *fl);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
124
static mblk_t *get_fl_payload(struct adapter *sc, struct sge_fl *fl,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1246
iq->adapter = sc;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1308
struct adapter *sc = iq->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1361
t4_alloc_fwq(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1381
t4_free_fwq(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1393
t4_get_tp_ch_map(pi->adapter, pi->tx_chan));
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1420
eth_eq_alloc(struct adapter *sc, struct port_info *pi, struct sge_eq *eq)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
149
static inline void ring_fl_db(struct adapter *sc, struct sge_fl *fl);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1495
alloc_eq(struct adapter *sc, struct port_info *pi, struct sge_eq *eq)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1543
free_eq(struct adapter *sc, struct sge_eq *eq)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1573
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1621
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1703
alloc_dma_memory(struct adapter *sc, size_t len, int flags,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
177
t4_iqmap_slot(struct adapter *sc, uint_t cntxt_id)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1773
alloc_desc_ring(struct adapter *sc, size_t len, int rw,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1791
alloc_tx_copybuffer(struct adapter *sc, size_t len,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1832
refill_fl(struct adapter *sc, struct sge_fl *fl, int nbufs)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
185
t4_eqmap_slot(struct adapter *sc, uint_t cntxt_id)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1910
struct adapter *sc = arg;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1930
add_fl_to_sfl(struct adapter *sc, struct sge_fl *fl)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
1968
get_fl_payload(struct adapter *sc, struct sge_fl *fl, uint32_t len_newbuf,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
207
t4_sge_init(struct adapter *sc)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
2699
if (t4_cver_eq(pi->adapter, CHELSIO_T4))
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
2713
CHELSIO_CHIP_VERSION(pi->adapter->params.chip), &ctrl1)) {
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
2730
V_TXPKT_INTF(pi->tx_chan) | V_TXPKT_PF(pi->adapter->pf));
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
2821
CHELSIO_CHIP_VERSION(pi->adapter->params.chip), &ctrl)) {
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
2865
V_TXPKT_INTF(pi->tx_chan) | V_TXPKT_PF(pi->adapter->pf));
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
2917
struct adapter *sc = txq->port->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3112
cxgb_printf(iq->adapter->dip, CE_WARN,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3127
struct adapter *sc = iq->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3152
struct adapter *sc = iq->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3190
ring_fl_db(struct adapter *sc, struct sge_fl *fl)
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3249
struct adapter *sc = iq->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3451
#define GET_STAT(name) t4_read_reg64(pi->adapter, \
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3453
#define GET_STAT_COM(name) t4_read_reg64(pi->adapter, \
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
3456
bgmap = G_NUMPORTS(t4_read_reg(pi->adapter, A_MPS_CMN_CTL));
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
349
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
380
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
405
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
563
struct adapter *sc = iq->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
579
struct adapter *sc = pi->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
606
t4_write_reg(iq->adapter, MYPF_REG(A_SGE_PF_GTS), value);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
626
t4_write_reg(iq->adapter, MYPF_REG(A_SGE_PF_GTS), value);
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
658
if (iq->adapter->props.multi_rings) {
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
675
struct adapter *sc = (struct adapter *)arg1;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
698
struct adapter *sc = iq->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
812
struct adapter *sc = iq->adapter;
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
88
static inline void init_iq(struct sge_iq *iq, struct adapter *sc, int tmr_idx,
usr/src/uts/common/io/cxgbe/t4nex/t4_sge.c
98
static int eth_eq_alloc(struct adapter *sc, struct port_info *pi,
usr/src/uts/common/io/e1000g/e1000_osdep.h
215
struct e1000g *adapter;
usr/src/uts/common/io/e1000g/e1000g_alloc.c
1134
Adapter = tx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_alloc.c
1253
Adapter = rx_data->rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_alloc.c
1290
Adapter = rx_data->rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_alloc.c
1331
Adapter = rx_data->rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_alloc.c
1473
Adapter = tx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_alloc.c
279
Adapter = tx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_alloc.c
484
Adapter = rx_data->rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_main.c
1901
struct e1000g *adapter;
usr/src/uts/common/io/e1000g/e1000g_main.c
1903
adapter = rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_main.c
1905
rw_enter(&adapter->chip_lock, RW_READER);
usr/src/uts/common/io/e1000g/e1000g_main.c
1907
if (adapter->e1000g_state & E1000G_SUSPENDED) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1908
rw_exit(&adapter->chip_lock);
usr/src/uts/common/io/e1000g/e1000g_main.c
1915
rw_exit(&adapter->chip_lock);
usr/src/uts/common/io/e1000g/e1000g_main.c
2905
struct e1000g *adapter = (struct e1000g *)arg;
usr/src/uts/common/io/e1000g/e1000g_main.c
2906
e1000g_rx_ring_t *rx_ring = adapter->rx_ring;
usr/src/uts/common/io/e1000g/e1000g_main.c
2918
adapter->poll_mode = B_FALSE;
usr/src/uts/common/io/e1000g/e1000g_main.c
2926
struct e1000g *adapter = (struct e1000g *)arg;
usr/src/uts/common/io/e1000g/e1000g_main.c
2927
e1000g_rx_ring_t *rx_ring = adapter->rx_ring;
usr/src/uts/common/io/e1000g/e1000g_main.c
2935
adapter->poll_mode = B_TRUE;
usr/src/uts/common/io/e1000g/e1000g_main.c
2951
struct e1000g *adapter = rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_main.c
2952
struct e1000_hw *hw = &adapter->shared;
usr/src/uts/common/io/e1000g/e1000g_main.c
2955
rw_enter(&adapter->chip_lock, RW_READER);
usr/src/uts/common/io/e1000g/e1000g_main.c
2957
if (adapter->e1000g_state & E1000G_SUSPENDED) {
usr/src/uts/common/io/e1000g/e1000g_main.c
2958
rw_exit(&adapter->chip_lock);
usr/src/uts/common/io/e1000g/e1000g_main.c
2976
rw_exit(&adapter->chip_lock);
usr/src/uts/common/io/e1000g/e1000g_main.c
2984
struct e1000g *adapter = rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_main.c
2985
struct e1000_hw *hw = &adapter->shared;
usr/src/uts/common/io/e1000g/e1000g_main.c
2987
rw_enter(&adapter->chip_lock, RW_READER);
usr/src/uts/common/io/e1000g/e1000g_main.c
2989
if (adapter->e1000g_state & E1000G_SUSPENDED) {
usr/src/uts/common/io/e1000g/e1000g_main.c
2990
rw_exit(&adapter->chip_lock);
usr/src/uts/common/io/e1000g/e1000g_main.c
3001
rw_exit(&adapter->chip_lock);
usr/src/uts/common/io/e1000g/e1000g_main.c
436
Adapter->tx_ring->adapter = Adapter;
usr/src/uts/common/io/e1000g/e1000g_main.c
437
Adapter->rx_ring->adapter = Adapter;
usr/src/uts/common/io/e1000g/e1000g_main.c
442
osdep->adapter = Adapter;
usr/src/uts/common/io/e1000g/e1000g_rx.c
123
Adapter = rx_data->rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_rx.c
388
Adapter = rx_data->rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_rx.c
463
Adapter = rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_stat.c
939
struct e1000g *Adapter = rx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_sw.h
756
struct e1000g *adapter;
usr/src/uts/common/io/e1000g/e1000g_sw.h
818
struct e1000g *adapter;
usr/src/uts/common/io/e1000g/e1000g_tx.c
1022
Adapter = tx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_tx.c
1278
else if (len1 > tx_ring->adapter->tx_bcopy_thresh)
usr/src/uts/common/io/e1000g/e1000g_tx.c
1376
e1000g_log(tx_ring->adapter, CE_WARN,
usr/src/uts/common/io/e1000g/e1000g_tx.c
1509
struct e1000_hw *hw = &tx_ring->adapter->shared;
usr/src/uts/common/io/e1000g/e1000g_tx.c
1640
Adapter = tx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_tx.c
546
Adapter = tx_ring->adapter;
usr/src/uts/common/io/e1000g/e1000g_tx.c
608
Adapter = tx_ring->adapter;
usr/src/uts/common/io/igb/igb_debug.h
48
#define IGB_DEBUGLOG_0(adapter, fmt) \
usr/src/uts/common/io/igb/igb_debug.h
49
igb_log((adapter), (IGB_LOG_INFO), (fmt))
usr/src/uts/common/io/igb/igb_debug.h
50
#define IGB_DEBUGLOG_1(adapter, fmt, d1) \
usr/src/uts/common/io/igb/igb_debug.h
51
igb_log((adapter), (IGB_LOG_INFO), (fmt), (d1))
usr/src/uts/common/io/igb/igb_debug.h
52
#define IGB_DEBUGLOG_2(adapter, fmt, d1, d2) \
usr/src/uts/common/io/igb/igb_debug.h
53
igb_log((adapter), (IGB_LOG_INFO), (fmt), (d1), (d2))
usr/src/uts/common/io/igb/igb_debug.h
54
#define IGB_DEBUGLOG_3(adapter, fmt, d1, d2, d3) \
usr/src/uts/common/io/igb/igb_debug.h
55
igb_log((adapter), (IGB_LOG_INFO), (fmt), (d1), (d2), (d3))
usr/src/uts/common/io/ixgbe/ixgbe_debug.c
150
ixgbe_dump_addr(void *adapter, char *tag, const uint8_t *addr)
usr/src/uts/common/io/ixgbe/ixgbe_debug.c
152
ixgbe_t *ixgbe = (ixgbe_t *)adapter;
usr/src/uts/common/io/ixgbe/ixgbe_debug.c
38
ixgbe_dump_interrupt(void *adapter, char *tag)
usr/src/uts/common/io/ixgbe/ixgbe_debug.c
40
ixgbe_t *ixgbe = (ixgbe_t *)adapter;
usr/src/uts/common/io/ixgbe/ixgbe_debug.c
427
ixgbe_dump_regs(void *adapter)
usr/src/uts/common/io/ixgbe/ixgbe_debug.c
429
ixgbe_t *ixgbe = (ixgbe_t *)adapter;
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
48
#define IXGBE_DEBUGLOG_0(adapter, fmt) \
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
49
ixgbe_log((adapter), (fmt))
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
50
#define IXGBE_DEBUGLOG_1(adapter, fmt, d1) \
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
51
ixgbe_log((adapter), (fmt), (d1))
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
52
#define IXGBE_DEBUGLOG_2(adapter, fmt, d1, d2) \
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
53
ixgbe_log((adapter), (fmt), (d1), (d2))
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
54
#define IXGBE_DEBUGLOG_3(adapter, fmt, d1, d2, d3) \
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
55
ixgbe_log((adapter), (fmt), (d1), (d2), (d3))
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
56
#define IXGBE_DEBUGLOG_6(adapter, fmt, d1, d2, d3, d4, d5, d6) \
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
57
ixgbe_log((adapter), (fmt), (d1), (d2), (d3), (d4), (d5), (d6))
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
61
#define IXGBE_DEBUGLOG_0(adapter, fmt)
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
62
#define IXGBE_DEBUGLOG_1(adapter, fmt, d1)
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
63
#define IXGBE_DEBUGLOG_2(adapter, fmt, d1, d2)
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
64
#define IXGBE_DEBUGLOG_3(adapter, fmt, d1, d2, d3)
usr/src/uts/common/io/ixgbe/ixgbe_debug.h
65
#define IXGBE_DEBUGLOG_6(adapter, fmt, d1, d2, d3, d4, d5, d6)
usr/src/uts/common/io/ntxn/niu.c
102
long phy = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
112
if (phy_lock(adapter) != 0)
usr/src/uts/common/io/ntxn/niu.c
119
adapter->unm_nic_hw_read_wx(adapter, UNM_NIU_GB_MAC_CONFIG_0(0),
usr/src/uts/common/io/ntxn/niu.c
128
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
136
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_MII_MGMT_ADDR(0),
usr/src/uts/common/io/ntxn/niu.c
140
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_MII_MGMT_COMMAND(0),
usr/src/uts/common/io/ntxn/niu.c
145
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_MII_MGMT_COMMAND(0),
usr/src/uts/common/io/ntxn/niu.c
150
adapter->unm_nic_hw_read_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
157
adapter->unm_nic_hw_read_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
164
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
167
phy_unlock(adapter);
usr/src/uts/common/io/ntxn/niu.c
177
unm_niu_macaddr_get(struct unm_adapter_s *adapter, unsigned char *addr)
usr/src/uts/common/io/ntxn/niu.c
180
int phy = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
187
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/niu.c
188
if (adapter->curr_window != 0) {
usr/src/uts/common/io/ntxn/niu.c
189
adapter->unm_nic_pci_change_crbwindow(adapter, 0);
usr/src/uts/common/io/ntxn/niu.c
192
result = UNM_NIC_PCI_READ_32((void *)pci_base_offset(adapter,
usr/src/uts/common/io/ntxn/niu.c
195
adapter, UNM_NIU_GB_STATION_ADDR_0(phy)))) << 16;
usr/src/uts/common/io/ntxn/niu.c
199
adapter->unm_nic_pci_change_crbwindow(adapter, 1);
usr/src/uts/common/io/ntxn/niu.c
201
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/niu.c
211
unm_niu_macaddr_set(struct unm_adapter_s *adapter, unm_ethernet_macaddr_t addr)
usr/src/uts/common/io/ntxn/niu.c
214
int phy = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
221
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_STATION_ADDR_1(phy),
usr/src/uts/common/io/ntxn/niu.c
225
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_STATION_ADDR_0(phy),
usr/src/uts/common/io/ntxn/niu.c
232
unm_niu_enable_gbe_port(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/niu.c
237
native_t port = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
246
if (adapter->link_speed != MBPS_10 &&
usr/src/uts/common/io/ntxn/niu.c
247
adapter->link_speed != MBPS_100 &&
usr/src/uts/common/io/ntxn/niu.c
248
adapter->link_speed != MBPS_1000) {
usr/src/uts/common/io/ntxn/niu.c
250
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/niu.c
255
adapter->link_speed = MBPS_1000;
usr/src/uts/common/io/ntxn/niu.c
261
port_mode = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/niu.c
267
adapter);
usr/src/uts/common/io/ntxn/niu.c
269
adapter);
usr/src/uts/common/io/ntxn/niu.c
274
adapter);
usr/src/uts/common/io/ntxn/niu.c
286
adapter);
usr/src/uts/common/io/ntxn/niu.c
296
switch (adapter->link_speed) {
usr/src/uts/common/io/ntxn/niu.c
301
(port), &mac_cfg1, adapter);
usr/src/uts/common/io/ntxn/niu.c
306
&zero, adapter);
usr/src/uts/common/io/ntxn/niu.c
309
&one, adapter);
usr/src/uts/common/io/ntxn/niu.c
316
&mac_cfg1, adapter);
usr/src/uts/common/io/ntxn/niu.c
321
&zero, adapter);
usr/src/uts/common/io/ntxn/niu.c
324
&one, adapter);
usr/src/uts/common/io/ntxn/niu.c
335
&mii_cfg, adapter);
usr/src/uts/common/io/ntxn/niu.c
343
&mac_cfg0, adapter);
usr/src/uts/common/io/ntxn/niu.c
351
unm_niu_disable_gbe_port(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/niu.c
353
native_t port = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
362
if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
usr/src/uts/common/io/ntxn/niu.c
363
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
366
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
373
unm_niu_disable_xg_port(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/niu.c
375
native_t port = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
381
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/niu.c
384
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_XGE_CONFIG_0,
usr/src/uts/common/io/ntxn/niu.c
389
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_XGE_CONFIG_0 +
usr/src/uts/common/io/ntxn/niu.c
398
unm_niu_set_promiscuous_mode(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/niu.c
401
native_t port = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
412
adapter->unm_nic_hw_read_wx(adapter, UNM_NIU_GB_MAC_CONFIG_0(port),
usr/src/uts/common/io/ntxn/niu.c
415
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_MAC_CONFIG_0(port),
usr/src/uts/common/io/ntxn/niu.c
421
adapter->unm_crb_writelit_adapter(adapter, UNM_NIU_FRAME_COUNT_SELECT,
usr/src/uts/common/io/ntxn/niu.c
425
adapter->unm_nic_hw_read_wx(adapter, UNM_NIU_FRAME_COUNT,
usr/src/uts/common/io/ntxn/niu.c
442
adapter->unm_nic_hw_read_wx(adapter, UNM_NIU_GB_DROP_WRONGADDR,
usr/src/uts/common/io/ntxn/niu.c
461
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_DROP_WRONGADDR,
usr/src/uts/common/io/ntxn/niu.c
467
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_MAC_CONFIG_0(port),
usr/src/uts/common/io/ntxn/niu.c
478
unm_niu_xg_macaddr_set(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/niu.c
481
int phy = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
492
port_mode = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/niu.c
495
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
500
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
503
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
508
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
516
port_mode = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/niu.c
519
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
524
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
527
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
532
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
54
static int phy_lock(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/niu.c
546
unm_niu_xg_set_promiscuous_mode(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/niu.c
551
native_t port = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
559
port_mode = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/niu.c
564
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
568
adapter->unm_nic_hw_read_wx(adapter, UNM_NIU_XGE_CONFIG_0 +
usr/src/uts/common/io/ntxn/niu.c
571
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_XGE_CONFIG_0 +
usr/src/uts/common/io/ntxn/niu.c
575
if ((adapter->ahw.boardcfg.board_type !=
usr/src/uts/common/io/ntxn/niu.c
577
(adapter->ahw.boardcfg.board_type !=
usr/src/uts/common/io/ntxn/niu.c
581
adapter->unm_crb_writelit_adapter(adapter,
usr/src/uts/common/io/ntxn/niu.c
586
adapter->unm_crb_writelit_adapter(adapter,
usr/src/uts/common/io/ntxn/niu.c
590
adapter->unm_nic_hw_read_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
602
adapter->unm_nic_hw_read_wx(adapter,
usr/src/uts/common/io/ntxn/niu.c
609
adapter->unm_crb_writelit_adapter(adapter,
usr/src/uts/common/io/ntxn/niu.c
61
adapter->unm_nic_pci_read_immediate(adapter,
usr/src/uts/common/io/ntxn/niu.c
615
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_XGE_CONFIG_0 +
usr/src/uts/common/io/ntxn/niu.c
623
unm_niu_xg_set_tx_flow_ctl(struct unm_adapter_s *adapter, int enable)
usr/src/uts/common/io/ntxn/niu.c
625
int port = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
631
adapter->unm_nic_hw_read_wx(adapter, UNM_NIU_XG_PAUSE_CTL, ®, 4);
usr/src/uts/common/io/ntxn/niu.c
637
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_XG_PAUSE_CTL, ®, 4);
usr/src/uts/common/io/ntxn/niu.c
643
unm_niu_gbe_set_tx_flow_ctl(struct unm_adapter_s *adapter, int enable)
usr/src/uts/common/io/ntxn/niu.c
645
int port = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
651
adapter->unm_nic_hw_read_wx(adapter, UNM_NIU_GB_PAUSE_CTL, ®, 4);
usr/src/uts/common/io/ntxn/niu.c
667
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_PAUSE_CTL, ®, 4);
usr/src/uts/common/io/ntxn/niu.c
673
unm_niu_gbe_set_rx_flow_ctl(struct unm_adapter_s *adapter, int enable)
usr/src/uts/common/io/ntxn/niu.c
675
int port = adapter->physical_port;
usr/src/uts/common/io/ntxn/niu.c
681
adapter->unm_nic_hw_read_wx(adapter, UNM_NIU_GB_MAC_CONFIG_0(port),
usr/src/uts/common/io/ntxn/niu.c
684
adapter->unm_nic_hw_write_wx(adapter, UNM_NIU_GB_MAC_CONFIG_0(port),
usr/src/uts/common/io/ntxn/niu.c
70
adapter->unm_crb_writelit_adapter(adapter, UNM_PHY_LOCK_ID,
usr/src/uts/common/io/ntxn/niu.c
76
phy_unlock(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/niu.c
81
adapter->unm_nic_pci_read_immediate(adapter,
usr/src/uts/common/io/ntxn/niu.c
99
unm_niu_gbe_phy_read(struct unm_adapter_s *adapter, long reg,
usr/src/uts/common/io/ntxn/unm_gem.c
1001
"failed\n", adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
1006
ret = ddi_intr_get_nintrs(adapter->dip, type, &count);
usr/src/uts/common/io/ntxn/unm_gem.c
1011
ret = ddi_intr_get_nintrs(adapter->dip, type, &count);
usr/src/uts/common/io/ntxn/unm_gem.c
1019
adapter->intr_type = type;
usr/src/uts/common/io/ntxn/unm_gem.c
1020
adapter->flags &= ~(UNM_NIC_MSI_ENABLED | UNM_NIC_MSIX_ENABLED);
usr/src/uts/common/io/ntxn/unm_gem.c
1022
adapter->flags |= UNM_NIC_MSI_ENABLED;
usr/src/uts/common/io/ntxn/unm_gem.c
1025
ret = ddi_intr_get_navail(adapter->dip, type, &avail);
usr/src/uts/common/io/ntxn/unm_gem.c
1032
ret = ddi_intr_alloc(adapter->dip, &adapter->intr_handle,
usr/src/uts/common/io/ntxn/unm_gem.c
1039
ret = ddi_intr_get_pri(adapter->intr_handle, &adapter->intr_pri);
usr/src/uts/common/io/ntxn/unm_gem.c
1045
ret = ddi_intr_add_handler(adapter->intr_handle, unm_intr,
usr/src/uts/common/io/ntxn/unm_gem.c
1046
(caddr_t)adapter, NULL);
usr/src/uts/common/io/ntxn/unm_gem.c
1049
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
1050
(void) ddi_intr_free(adapter->intr_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
1061
unm_destroy_intr(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
1064
if (adapter->intr_type == DDI_INTR_TYPE_MSI)
usr/src/uts/common/io/ntxn/unm_gem.c
1065
(void) ddi_intr_block_disable(&adapter->intr_handle, 1);
usr/src/uts/common/io/ntxn/unm_gem.c
1067
(void) ddi_intr_disable(adapter->intr_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
1069
(void) ddi_intr_remove_handler(adapter->intr_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
1070
(void) ddi_intr_free(adapter->intr_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
1076
netxen_set_port_mode(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
1080
int btype = adapter->ahw.boardcfg.board_type, data = 0;
usr/src/uts/common/io/ntxn/unm_gem.c
1090
adapter->unm_nic_hw_write_wx(adapter, UNM_PORT_MODE_ADDR,
usr/src/uts/common/io/ntxn/unm_gem.c
1099
adapter->unm_nic_hw_write_wx(adapter, UNM_WOL_PORT_MODE,
usr/src/uts/common/io/ntxn/unm_gem.c
1105
netxen_pcie_strap_init(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
1107
ddi_acc_handle_t pcihdl = adapter->pci_cfg_handle;
usr/src/uts/common/io/ntxn/unm_gem.c
1110
adapter->unm_nic_hw_read_wx(adapter, UNM_PCIE_REG(PCIE_CHICKEN3),
usr/src/uts/common/io/ntxn/unm_gem.c
1117
adapter->unm_nic_hw_write_wx(adapter, UNM_PCIE_REG(PCIE_CHICKEN3),
usr/src/uts/common/io/ntxn/unm_gem.c
1125
netxen_read_mac_addr(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
1131
if (get_flash_mac_addr(adapter, mac_addr) != 0)
usr/src/uts/common/io/ntxn/unm_gem.c
1134
if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
usr/src/uts/common/io/ntxn/unm_gem.c
1135
p = (unsigned char *)&mac_addr[adapter->ahw.pci_func];
usr/src/uts/common/io/ntxn/unm_gem.c
1137
p = (unsigned char *)&mac_addr[adapter->portnum];
usr/src/uts/common/io/ntxn/unm_gem.c
1140
adapter->mac_addr[i] = p[5 - i];
usr/src/uts/common/io/ntxn/unm_gem.c
1142
if (unm_nic_macaddr_set(adapter, adapter->mac_addr) != 0)
usr/src/uts/common/io/ntxn/unm_gem.c
1151
unm_adapter *adapter;
usr/src/uts/common/io/ntxn/unm_gem.c
1164
adapter = kmem_zalloc(sizeof (unm_adapter), KM_SLEEP);
usr/src/uts/common/io/ntxn/unm_gem.c
1165
adapter->dip = dip;
usr/src/uts/common/io/ntxn/unm_gem.c
1166
ddi_set_driver_private(dip, adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1167
adapter->instance = ddi_get_instance(dip);
usr/src/uts/common/io/ntxn/unm_gem.c
1169
adapter->name = ddi_driver_name(dip);
usr/src/uts/common/io/ntxn/unm_gem.c
1171
ret = pci_config_setup(dip, &adapter->pci_cfg_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
1174
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
1178
ret = unm_pci_cfg_init(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1182
ret = unm_pci_map_setup(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1186
if (unm_initialize_intr(adapter) != DDI_SUCCESS)
usr/src/uts/common/io/ntxn/unm_gem.c
1189
rw_init(&adapter->adapter_lock, NULL,
usr/src/uts/common/io/ntxn/unm_gem.c
1190
RW_DRIVER, DDI_INTR_PRI(adapter->intr_pri));
usr/src/uts/common/io/ntxn/unm_gem.c
1191
mutex_init(&adapter->tx_lock, NULL,
usr/src/uts/common/io/ntxn/unm_gem.c
1192
MUTEX_DRIVER, (DDI_INTR_PRI(adapter->intr_pri)));
usr/src/uts/common/io/ntxn/unm_gem.c
1193
mutex_init(&adapter->lock, NULL,
usr/src/uts/common/io/ntxn/unm_gem.c
1194
MUTEX_DRIVER, (DDI_INTR_PRI(adapter->intr_pri)));
usr/src/uts/common/io/ntxn/unm_gem.c
1196
adapter->portnum = (int8_t)adapter->ahw.pci_func;
usr/src/uts/common/io/ntxn/unm_gem.c
1202
adapter->curr_window = 255;
usr/src/uts/common/io/ntxn/unm_gem.c
1204
adapter->fw_major = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_gem.c
1207
if (adapter->fw_major < 4)
usr/src/uts/common/io/ntxn/unm_gem.c
1208
adapter->max_rds_rings = 3;
usr/src/uts/common/io/ntxn/unm_gem.c
1210
adapter->max_rds_rings = 2;
usr/src/uts/common/io/ntxn/unm_gem.c
1212
STRUCT_COPY(adapter->gc_dma_attr_desc, unm_dma_attr_desc);
usr/src/uts/common/io/ntxn/unm_gem.c
1213
STRUCT_COPY(adapter->gc_attr_desc, unm_buf_attr);
usr/src/uts/common/io/ntxn/unm_gem.c
1215
ret = unm_nic_get_board_info(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1218
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
1223
switch (adapter->ahw.boardcfg.board_type) {
usr/src/uts/common/io/ntxn/unm_gem.c
1226
if (adapter->ahw.pci_func >= 2) {
usr/src/uts/common/io/ntxn/unm_gem.c
1227
adapter->portnum = adapter->ahw.pci_func - 2;
usr/src/uts/common/io/ntxn/unm_gem.c
1233
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_gem.c
1234
temp = UNM_CRB_READ_VAL_ADAPTER(UNM_MIU_MN_CONTROL, adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1235
adapter->ahw.cut_through = NX_IS_SYSTEM_CUT_THROUGH(temp);
usr/src/uts/common/io/ntxn/unm_gem.c
1236
if (adapter->ahw.pci_func == 0)
usr/src/uts/common/io/ntxn/unm_gem.c
1239
if (adapter->portnum == 0)
usr/src/uts/common/io/ntxn/unm_gem.c
1243
unm_check_options(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1246
int first_boot = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_gem.c
1249
if (check_hw_init(adapter) != 0) {
usr/src/uts/common/io/ntxn/unm_gem.c
1251
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
1255
if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
usr/src/uts/common/io/ntxn/unm_gem.c
1256
netxen_set_port_mode(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1260
adapter->unm_nic_hw_write_wx(adapter, CRB_CMDPEG_STATE,
usr/src/uts/common/io/ntxn/unm_gem.c
1262
if (pinit_from_rom(adapter, 0) != 0)
usr/src/uts/common/io/ntxn/unm_gem.c
1267
ret = load_from_flash(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1272
if (ret = unm_initialize_dummy_dma(adapter))
usr/src/uts/common/io/ntxn/unm_gem.c
1280
adapter->unm_nic_hw_write_wx(adapter, CRB_DRIVER_VERSION,
usr/src/uts/common/io/ntxn/unm_gem.c
1285
(NX_IS_REVISION_P2(adapter->ahw.revision_id)))
usr/src/uts/common/io/ntxn/unm_gem.c
1286
adapter->unm_nic_pci_write_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_gem.c
1290
if (phantom_init(adapter, 0) != DDI_SUCCESS)
usr/src/uts/common/io/ntxn/unm_gem.c
1294
if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
usr/src/uts/common/io/ntxn/unm_gem.c
1295
netxen_pcie_strap_init(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1300
adapter->physical_port = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_gem.c
1301
i = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_gem.c
1302
CRB_V2P(adapter->portnum));
usr/src/uts/common/io/ntxn/unm_gem.c
1304
adapter->physical_port = (uint16_t)i;
usr/src/uts/common/io/ntxn/unm_gem.c
1306
adapter->ahw.linkup = 0;
usr/src/uts/common/io/ntxn/unm_gem.c
1308
if (receive_peg_ready(adapter)) {
usr/src/uts/common/io/ntxn/unm_gem.c
1313
if (netxen_read_mac_addr(adapter))
usr/src/uts/common/io/ntxn/unm_gem.c
1315
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
1317
unm_nic_flash_print(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1320
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_gem.c
1323
unm_nic_driver_name, adapter->portnum);
usr/src/uts/common/io/ntxn/unm_gem.c
1328
unm_nic_driver_name, adapter->portnum);
usr/src/uts/common/io/ntxn/unm_gem.c
1333
ret = unm_register_mac(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1336
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
1344
unm_free_dummy_dma(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1346
unm_destroy_intr(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1348
ddi_regs_map_free(&(adapter->regs_handle));
usr/src/uts/common/io/ntxn/unm_gem.c
1349
ddi_regs_map_free(&(adapter->db_handle));
usr/src/uts/common/io/ntxn/unm_gem.c
1351
pci_config_teardown(&adapter->pci_cfg_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
1353
kmem_free(adapter, sizeof (unm_adapter));
usr/src/uts/common/io/ntxn/unm_gem.c
1360
unm_adapter *adapter = (unm_adapter *)ddi_get_driver_private(dip);
usr/src/uts/common/io/ntxn/unm_gem.c
1362
if (adapter == NULL)
usr/src/uts/common/io/ntxn/unm_gem.c
1367
unm_fini_kstats(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1368
adapter->kstats[0] = NULL;
usr/src/uts/common/io/ntxn/unm_gem.c
1370
if (adapter->pci_cfg_handle != NULL)
usr/src/uts/common/io/ntxn/unm_gem.c
1371
pci_config_teardown(&adapter->pci_cfg_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
1373
unm_nd_cleanup(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1374
unm_nic_remove(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1378
return (unm_nic_suspend(adapter));
usr/src/uts/common/io/ntxn/unm_gem.c
1388
create_rxtx_rings(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
1394
adapter->cmd_buf_arr = (struct unm_cmd_buffer *)kmem_zalloc(
usr/src/uts/common/io/ntxn/unm_gem.c
1395
sizeof (struct unm_cmd_buffer) * adapter->MaxTxDescCount,
usr/src/uts/common/io/ntxn/unm_gem.c
1399
recv_ctx = &adapter->recv_ctx[i];
usr/src/uts/common/io/ntxn/unm_gem.c
1401
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_gem.c
1403
if (unm_create_rx_ring(adapter, rcv_desc) !=
usr/src/uts/common/io/ntxn/unm_gem.c
1409
if (unm_alloc_tx_dmahdl(adapter) != DDI_SUCCESS)
usr/src/uts/common/io/ntxn/unm_gem.c
1412
if (unm_alloc_tx_buffers(adapter) != DDI_SUCCESS)
usr/src/uts/common/io/ntxn/unm_gem.c
1418
unm_free_tx_dmahdl(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1420
kmem_free(adapter->cmd_buf_arr, sizeof (struct unm_cmd_buffer) *
usr/src/uts/common/io/ntxn/unm_gem.c
1421
adapter->MaxTxDescCount);
usr/src/uts/common/io/ntxn/unm_gem.c
1423
recv_ctx = &adapter->recv_ctx[i];
usr/src/uts/common/io/ntxn/unm_gem.c
1425
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_gem.c
1435
destroy_rxtx_rings(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
1441
unm_free_tx_buffers(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1442
unm_free_tx_dmahdl(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
1445
recv_ctx = &adapter->recv_ctx[ctx];
usr/src/uts/common/io/ntxn/unm_gem.c
1446
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_gem.c
145
check_hw_init(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
1453
if (adapter->cmd_buf_arr != NULL)
usr/src/uts/common/io/ntxn/unm_gem.c
1454
kmem_free(adapter->cmd_buf_arr,
usr/src/uts/common/io/ntxn/unm_gem.c
1455
sizeof (struct unm_cmd_buffer) * adapter->MaxTxDescCount);
usr/src/uts/common/io/ntxn/unm_gem.c
150
adapter->unm_nic_hw_read_wx(adapter, UNM_CAM_RAM(0x1fc), &val, 4);
usr/src/uts/common/io/ntxn/unm_gem.c
153
adapter->unm_nic_hw_read_wx(adapter, UNM_ROMUSB_GLB_SW_RESET,
usr/src/uts/common/io/ntxn/unm_gem.c
158
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_gem.c
160
adapter->unm_nic_pci_write_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_gem.c
162
adapter->unm_nic_pci_write_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_gem.c
171
unm_get_flash_block(unm_adapter *adapter, int base, int size, uint32_t *buf)
usr/src/uts/common/io/ntxn/unm_gem.c
179
if (rom_fast_read(adapter, addr, (int *)ptr32) == -1)
usr/src/uts/common/io/ntxn/unm_gem.c
187
if (rom_fast_read(adapter, addr, &local) == -1)
usr/src/uts/common/io/ntxn/unm_gem.c
198
get_flash_mac_addr(struct unm_adapter_s *adapter, u64 mac[])
usr/src/uts/common/io/ntxn/unm_gem.c
202
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_gem.c
208
int pci_func = adapter->ahw.pci_func;
usr/src/uts/common/io/ntxn/unm_gem.c
213
adapter->unm_nic_hw_read_wx(adapter, crbaddr, &temp, 4);
usr/src/uts/common/io/ntxn/unm_gem.c
216
adapter->unm_nic_hw_read_wx(adapter, crbaddr+4,
usr/src/uts/common/io/ntxn/unm_gem.c
224
adapter->unm_nic_hw_read_wx(adapter, crbaddr+4,
usr/src/uts/common/io/ntxn/unm_gem.c
233
if (unm_get_flash_block(adapter, USER_START +
usr/src/uts/common/io/ntxn/unm_gem.c
239
if (unm_get_flash_block(adapter, USER_START_OLD +
usr/src/uts/common/io/ntxn/unm_gem.c
252
unm_initialize_dummy_dma(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
257
if (unm_pci_alloc_consistent(adapter, UNM_HOST_DUMMY_DMA_SIZE,
usr/src/uts/common/io/ntxn/unm_gem.c
258
(caddr_t *)&adapter->dummy_dma.addr, &cookie,
usr/src/uts/common/io/ntxn/unm_gem.c
259
&adapter->dummy_dma.dma_handle,
usr/src/uts/common/io/ntxn/unm_gem.c
260
&adapter->dummy_dma.acc_handle) != DDI_SUCCESS) {
usr/src/uts/common/io/ntxn/unm_gem.c
262
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
266
adapter->dummy_dma.phys_addr = cookie.dmac_laddress;
usr/src/uts/common/io/ntxn/unm_gem.c
268
hi = (adapter->dummy_dma.phys_addr >> 32) & 0xffffffff;
usr/src/uts/common/io/ntxn/unm_gem.c
269
lo = adapter->dummy_dma.phys_addr & 0xffffffff;
usr/src/uts/common/io/ntxn/unm_gem.c
271
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_gem.c
272
adapter->unm_nic_hw_write_wx(adapter, CRB_HOST_DUMMY_BUF_ADDR_HI,
usr/src/uts/common/io/ntxn/unm_gem.c
274
adapter->unm_nic_hw_write_wx(adapter, CRB_HOST_DUMMY_BUF_ADDR_LO,
usr/src/uts/common/io/ntxn/unm_gem.c
276
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_gem.c
278
adapter->unm_nic_hw_write_wx(adapter, CRB_HOST_DUMMY_BUF,
usr/src/uts/common/io/ntxn/unm_gem.c
281
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_gem.c
287
unm_free_dummy_dma(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
289
if (adapter->dummy_dma.addr) {
usr/src/uts/common/io/ntxn/unm_gem.c
290
unm_pci_free_consistent(&adapter->dummy_dma.dma_handle,
usr/src/uts/common/io/ntxn/unm_gem.c
291
&adapter->dummy_dma.acc_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
292
adapter->dummy_dma.addr = NULL;
usr/src/uts/common/io/ntxn/unm_gem.c
297
unm_pci_cfg_init(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
310
hwcontext = &adapter->ahw;
usr/src/uts/common/io/ntxn/unm_gem.c
311
pci_cfg_hdl = adapter->pci_cfg_handle;
usr/src/uts/common/io/ntxn/unm_gem.c
312
dip = adapter->dip;
usr/src/uts/common/io/ntxn/unm_gem.c
318
adapter->name, adapter->instance, vendor_id);
usr/src/uts/common/io/ntxn/unm_gem.c
326
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
343
adapter->name, adapter->instance, base_class, sub_class,
usr/src/uts/common/io/ntxn/unm_gem.c
356
"is unsupported\n", adapter->name, adapter->instance,
usr/src/uts/common/io/ntxn/unm_gem.c
382
adapter->legacy_intr.int_vec_bit = legacy_intrp->int_vec_bit;
usr/src/uts/common/io/ntxn/unm_gem.c
383
adapter->legacy_intr.tgt_status_reg = legacy_intrp->tgt_status_reg;
usr/src/uts/common/io/ntxn/unm_gem.c
384
adapter->legacy_intr.tgt_mask_reg = legacy_intrp->tgt_mask_reg;
usr/src/uts/common/io/ntxn/unm_gem.c
385
adapter->legacy_intr.pci_int_reg = legacy_intrp->pci_int_reg;
usr/src/uts/common/io/ntxn/unm_gem.c
391
unm_free_tx_dmahdl(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
396
mutex_enter(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_gem.c
397
nodep = &adapter->tx_dma_hdls[0];
usr/src/uts/common/io/ntxn/unm_gem.c
399
for (i = 0; i < adapter->MaxTxDescCount + EXTRA_HANDLES; i++) {
usr/src/uts/common/io/ntxn/unm_gem.c
408
adapter->dmahdl_pool = NULL;
usr/src/uts/common/io/ntxn/unm_gem.c
409
adapter->freehdls = 0;
usr/src/uts/common/io/ntxn/unm_gem.c
410
mutex_exit(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_gem.c
414
unm_alloc_tx_dmahdl(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
417
unm_dmah_node_t *nodep = &adapter->tx_dma_hdls[0];
usr/src/uts/common/io/ntxn/unm_gem.c
419
mutex_enter(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_gem.c
420
for (i = 0; i < adapter->MaxTxDescCount + EXTRA_HANDLES; i++) {
usr/src/uts/common/io/ntxn/unm_gem.c
421
if (ddi_dma_alloc_handle(adapter->dip, &unm_dma_attr_cmddesc,
usr/src/uts/common/io/ntxn/unm_gem.c
423
mutex_exit(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_gem.c
432
adapter->dmahdl_pool = nodep - 1;
usr/src/uts/common/io/ntxn/unm_gem.c
433
adapter->freehdls = i;
usr/src/uts/common/io/ntxn/unm_gem.c
434
mutex_exit(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_gem.c
439
unm_free_tx_dmahdl(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
441
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
465
unm_alloc_dma_mem(unm_adapter *adapter, int size, uint_t dma_flag,
usr/src/uts/common/io/ntxn/unm_gem.c
473
ret = ddi_dma_alloc_handle(adapter->dip,
usr/src/uts/common/io/ntxn/unm_gem.c
478
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
483
size, &adapter->gc_attr_desc,
usr/src/uts/common/io/ntxn/unm_gem.c
489
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
495
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
504
"%d, %d\n", adapter->name, adapter->instance, ret,
usr/src/uts/common/io/ntxn/unm_gem.c
521
unm_free_tx_buffers(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
528
cmd_buf = &adapter->cmd_buf_arr[0];
usr/src/uts/common/io/ntxn/unm_gem.c
530
for (i = 0; i < adapter->MaxTxDescCount; i++) {
usr/src/uts/common/io/ntxn/unm_gem.c
542
adapter->freecmds = 0;
usr/src/uts/common/io/ntxn/unm_gem.c
546
unm_alloc_tx_buffers(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
552
cmd_buf = &adapter->cmd_buf_arr[0];
usr/src/uts/common/io/ntxn/unm_gem.c
553
size = adapter->maxmtu;
usr/src/uts/common/io/ntxn/unm_gem.c
555
for (i = 0; i < adapter->MaxTxDescCount; i++) {
usr/src/uts/common/io/ntxn/unm_gem.c
557
ret = unm_alloc_dma_mem(adapter, size,
usr/src/uts/common/io/ntxn/unm_gem.c
566
adapter->freecmds = adapter->MaxTxDescCount;
usr/src/uts/common/io/ntxn/unm_gem.c
571
cmd_buf = &adapter->cmd_buf_arr[0];
usr/src/uts/common/io/ntxn/unm_gem.c
578
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
589
unm_adapter *adapter = rx_buffer->adapter;
usr/src/uts/common/io/ntxn/unm_gem.c
596
adapter->stats.desballocfailed++;
usr/src/uts/common/io/ntxn/unm_gem.c
631
unm_create_rx_ring(unm_adapter *adapter, unm_rcv_desc_ctx_t *rcv_desc)
usr/src/uts/common/io/ntxn/unm_gem.c
638
sreoff = adapter->ahw.cut_through ? 0 : IP_ALIGNMENT_BYTES;
usr/src/uts/common/io/ntxn/unm_gem.c
648
ret = unm_alloc_dma_mem(adapter, rcv_desc->buf_size,
usr/src/uts/common/io/ntxn/unm_gem.c
665
adapter->stats.desballocfailed++;
usr/src/uts/common/io/ntxn/unm_gem.c
667
rx_buffer->adapter = adapter;
usr/src/uts/common/io/ntxn/unm_gem.c
681
MUTEX_DRIVER, (DDI_INTR_PRI(adapter->intr_pri)));
usr/src/uts/common/io/ntxn/unm_gem.c
683
MUTEX_DRIVER, (DDI_INTR_PRI(adapter->intr_pri)));
usr/src/uts/common/io/ntxn/unm_gem.c
700
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
705
unm_check_options(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
710
uint8_t revid = adapter->ahw.revision_id;
usr/src/uts/common/io/ntxn/unm_gem.c
711
dev_info_t *dip = adapter->dip;
usr/src/uts/common/io/ntxn/unm_gem.c
724
adapter->tx_bcopy_threshold = ddi_prop_get_int(DDI_DEV_T_ANY,
usr/src/uts/common/io/ntxn/unm_gem.c
727
adapter->rx_bcopy_threshold = ddi_prop_get_int(DDI_DEV_T_ANY,
usr/src/uts/common/io/ntxn/unm_gem.c
734
adapter->MaxTxDescCount = tx_desc;
usr/src/uts/common/io/ntxn/unm_gem.c
738
adapter->name, adapter->instance, MAX_CMD_DESCRIPTORS_HOST,
usr/src/uts/common/io/ntxn/unm_gem.c
740
adapter->MaxTxDescCount = MAX_CMD_DESCRIPTORS_HOST;
usr/src/uts/common/io/ntxn/unm_gem.c
747
adapter->MaxRxDescCount = rx_desc;
usr/src/uts/common/io/ntxn/unm_gem.c
751
adapter->name, adapter->instance, MAX_RCV_DESCRIPTORS,
usr/src/uts/common/io/ntxn/unm_gem.c
753
adapter->MaxRxDescCount = MAX_RCV_DESCRIPTORS;
usr/src/uts/common/io/ntxn/unm_gem.c
760
adapter->MaxJumboRxDescCount = rx_jdesc;
usr/src/uts/common/io/ntxn/unm_gem.c
764
adapter->name, adapter->instance, MAX_JUMBO_RCV_DESCRIPTORS,
usr/src/uts/common/io/ntxn/unm_gem.c
766
adapter->MaxJumboRxDescCount = MAX_JUMBO_RCV_DESCRIPTORS;
usr/src/uts/common/io/ntxn/unm_gem.c
773
adapter->MaxLroRxDescCount = (adapter->fw_major < 4) ? 2 : 0;
usr/src/uts/common/io/ntxn/unm_gem.c
775
adapter->mtu = ddi_prop_get_int(DDI_DEV_T_ANY, dip,
usr/src/uts/common/io/ntxn/unm_gem.c
778
if (adapter->mtu < MTU_SIZE) {
usr/src/uts/common/io/ntxn/unm_gem.c
78
extern int unm_register_mac(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
780
adapter->mtu = MTU_SIZE;
usr/src/uts/common/io/ntxn/unm_gem.c
782
adapter->maxmtu = NX_IS_REVISION_P2(revid) ? P2_MAX_MTU : P3_MAX_MTU;
usr/src/uts/common/io/ntxn/unm_gem.c
783
if (adapter->mtu > adapter->maxmtu) {
usr/src/uts/common/io/ntxn/unm_gem.c
784
cmn_err(CE_WARN, "Lowering mtu to %d\n", adapter->maxmtu);
usr/src/uts/common/io/ntxn/unm_gem.c
785
adapter->mtu = adapter->maxmtu;
usr/src/uts/common/io/ntxn/unm_gem.c
788
adapter->maxmtu = adapter->mtu + NX_MAX_ETHERHDR;
usr/src/uts/common/io/ntxn/unm_gem.c
79
extern void unm_fini_kstats(unm_adapter* adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
794
if (adapter->mtu <= MTU_SIZE)
usr/src/uts/common/io/ntxn/unm_gem.c
795
adapter->MaxJumboRxDescCount = NX_MIN_DRIVER_RDS_SIZE;
usr/src/uts/common/io/ntxn/unm_gem.c
798
recv_ctx = &adapter->recv_ctx[i];
usr/src/uts/common/io/ntxn/unm_gem.c
80
extern void unm_nic_remove(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
800
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_gem.c
806
adapter->MaxRxDescCount;
usr/src/uts/common/io/ntxn/unm_gem.c
807
if (adapter->ahw.cut_through) {
usr/src/uts/common/io/ntxn/unm_gem.c
822
adapter->MaxJumboRxDescCount;
usr/src/uts/common/io/ntxn/unm_gem.c
823
if (adapter->ahw.cut_through) {
usr/src/uts/common/io/ntxn/unm_gem.c
842
adapter->MaxLroRxDescCount;
usr/src/uts/common/io/ntxn/unm_gem.c
894
unm_pci_map_setup(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
903
dev_info_t *dip = adapter->dip;
usr/src/uts/common/io/ntxn/unm_gem.c
905
adapter->ahw.qdr_sn_window = adapter->ahw.ddr_mn_window = -1;
usr/src/uts/common/io/ntxn/unm_gem.c
912
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
917
regsize, &unm_dev_attr, &adapter->regs_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
920
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
932
vector128M(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
940
vector128M(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
945
adapter->ahw.ddr_mn_window = adapter->ahw.qdr_sn_window = 0;
usr/src/uts/common/io/ntxn/unm_gem.c
946
adapter->ahw.mn_win_crb = 0x100000 + PCIX_MN_WINDOW +
usr/src/uts/common/io/ntxn/unm_gem.c
947
(adapter->ahw.pci_func * 0x20);
usr/src/uts/common/io/ntxn/unm_gem.c
948
if (adapter->ahw.pci_func < 4)
usr/src/uts/common/io/ntxn/unm_gem.c
949
adapter->ahw.ms_win_crb = 0x100000 + PCIX_SN_WINDOW +
usr/src/uts/common/io/ntxn/unm_gem.c
950
(adapter->ahw.pci_func * 0x20);
usr/src/uts/common/io/ntxn/unm_gem.c
952
adapter->ahw.ms_win_crb = 0x100000 + PCIX_SN_WINDOW +
usr/src/uts/common/io/ntxn/unm_gem.c
953
0xA0 + ((adapter->ahw.pci_func - 4) * 0x10);
usr/src/uts/common/io/ntxn/unm_gem.c
954
vector2M(adapter);
usr/src/uts/common/io/ntxn/unm_gem.c
957
adapter->name, adapter->instance, regsize);
usr/src/uts/common/io/ntxn/unm_gem.c
958
ddi_regs_map_free(&adapter->regs_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
962
adapter->ahw.pci_base0 = (unsigned long)mem_ptr0;
usr/src/uts/common/io/ntxn/unm_gem.c
963
adapter->ahw.pci_len0 = pci_len0;
usr/src/uts/common/io/ntxn/unm_gem.c
964
adapter->ahw.pci_base1 = (unsigned long)mem_ptr1;
usr/src/uts/common/io/ntxn/unm_gem.c
965
adapter->ahw.pci_len1 = SECOND_PAGE_GROUP_SIZE;
usr/src/uts/common/io/ntxn/unm_gem.c
966
adapter->ahw.pci_base2 = (unsigned long)mem_ptr2;
usr/src/uts/common/io/ntxn/unm_gem.c
967
adapter->ahw.pci_len2 = THIRD_PAGE_GROUP_SIZE;
usr/src/uts/common/io/ntxn/unm_gem.c
968
adapter->ahw.crb_base =
usr/src/uts/common/io/ntxn/unm_gem.c
969
PCI_OFFSET_SECOND_RANGE(adapter, UNM_PCI_CRBSPACE);
usr/src/uts/common/io/ntxn/unm_gem.c
971
adapter->ahw.first_page_group_start = first_page_group_start;
usr/src/uts/common/io/ntxn/unm_gem.c
972
adapter->ahw.first_page_group_end = first_page_group_end;
usr/src/uts/common/io/ntxn/unm_gem.c
977
dbsize, &unm_dev_attr, &adapter->db_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
980
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_gem.c
981
ddi_regs_map_free(&adapter->regs_handle);
usr/src/uts/common/io/ntxn/unm_gem.c
985
adapter->ahw.db_base = (unsigned long)db_base;
usr/src/uts/common/io/ntxn/unm_gem.c
986
adapter->ahw.db_len = dbsize;
usr/src/uts/common/io/ntxn/unm_gem.c
992
unm_initialize_intr(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_gem.c
998
ret = ddi_intr_get_supported_types(adapter->dip, &type);
usr/src/uts/common/io/ntxn/unm_ndd.c
185
unm_param_register(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_ndd.c
195
dip = adapter->dip;
usr/src/uts/common/io/ntxn/unm_ndd.c
196
nddpp = &adapter->nd_data_p;
usr/src/uts/common/io/ntxn/unm_ndd.c
199
if (adapter->ahw.board_type == UNM_NIC_XGBE)
usr/src/uts/common/io/ntxn/unm_ndd.c
210
ndp = &adapter->nd_params[tmplp->ndp_info];
usr/src/uts/common/io/ntxn/unm_ndd.c
248
if (adapter->ahw.board_type == UNM_NIC_XGBE) {
usr/src/uts/common/io/ntxn/unm_ndd.c
262
unm_nd_init(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_ndd.c
273
if (unm_param_register(adapter) != DDI_SUCCESS)
usr/src/uts/common/io/ntxn/unm_ndd.c
284
dip = adapter->dip;
usr/src/uts/common/io/ntxn/unm_ndd.c
291
adapter->param_adv_autoneg = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
292
adapter->param_adv_10000fdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
293
adapter->param_adv_1000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
294
adapter->param_adv_1000hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
295
adapter->param_adv_100fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
296
adapter->param_adv_100hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
297
adapter->param_adv_10fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
298
adapter->param_adv_10hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
302
adapter->param_adv_autoneg = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
303
adapter->param_adv_1000fdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
304
adapter->param_adv_1000hdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
305
adapter->param_adv_100fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
306
adapter->param_adv_100hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
307
adapter->param_adv_10fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
308
adapter->param_adv_10hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
312
adapter->param_adv_autoneg = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
313
adapter->param_adv_1000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
314
adapter->param_adv_1000hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
315
adapter->param_adv_100fdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
316
adapter->param_adv_100hdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
317
adapter->param_adv_10fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
318
adapter->param_adv_10hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
322
adapter->param_adv_autoneg = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
323
adapter->param_adv_1000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
324
adapter->param_adv_1000hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
325
adapter->param_adv_100fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
326
adapter->param_adv_100hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
327
adapter->param_adv_10fdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
328
adapter->param_adv_10hdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
346
adapter->param_adv_autoneg = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
347
adapter->param_adv_10000fdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
348
adapter->param_adv_1000fdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
349
adapter->param_adv_1000hdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
350
adapter->param_adv_100fdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
351
adapter->param_adv_100hdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
352
adapter->param_adv_10fdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
353
adapter->param_adv_10hdx = 1;
usr/src/uts/common/io/ntxn/unm_ndd.c
361
adapter->param_adv_1000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
362
adapter->param_adv_1000hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
363
adapter->param_adv_100fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
364
adapter->param_adv_100hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
365
adapter->param_adv_10fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
366
adapter->param_adv_10hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
370
adapter->param_adv_10000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
371
adapter->param_adv_100fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
372
adapter->param_adv_100hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
373
adapter->param_adv_10fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
374
adapter->param_adv_10hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
378
adapter->param_adv_10000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
379
adapter->param_adv_1000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
380
adapter->param_adv_1000hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
381
adapter->param_adv_10fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
382
adapter->param_adv_10hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
386
adapter->param_adv_10000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
387
adapter->param_adv_1000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
388
adapter->param_adv_1000hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
389
adapter->param_adv_100fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
390
adapter->param_adv_100hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
397
adapter->param_adv_1000hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
398
adapter->param_adv_100hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
399
adapter->param_adv_10hdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
403
adapter->param_adv_10000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
404
adapter->param_adv_1000fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
405
adapter->param_adv_100fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
406
adapter->param_adv_10fdx = 0;
usr/src/uts/common/io/ntxn/unm_ndd.c
417
adapter->param_adv_autoneg,
usr/src/uts/common/io/ntxn/unm_ndd.c
418
adapter->param_adv_pause, adapter->param_adv_asym_pause,
usr/src/uts/common/io/ntxn/unm_ndd.c
419
adapter->param_adv_10000fdx,
usr/src/uts/common/io/ntxn/unm_ndd.c
420
adapter->param_adv_1000fdx, adapter->param_adv_1000hdx,
usr/src/uts/common/io/ntxn/unm_ndd.c
421
adapter->param_adv_100fdx, adapter->param_adv_100hdx,
usr/src/uts/common/io/ntxn/unm_ndd.c
422
adapter->param_adv_10fdx, adapter->param_adv_10hdx));
usr/src/uts/common/io/ntxn/unm_ndd.c
428
unm_nd_ioctl(unm_adapter *adapter, queue_t *wq, mblk_t *mp, struct iocblk *iocp)
usr/src/uts/common/io/ntxn/unm_ndd.c
434
(void *)adapter, (void *)wq, (void *)mp, (void *)iocp));
usr/src/uts/common/io/ntxn/unm_ndd.c
453
ok = nd_getset(wq, adapter->nd_data_p, mp);
usr/src/uts/common/io/ntxn/unm_ndd.c
463
if (adapter->param_loop_mode != UNM_LOOP_NONE) {
usr/src/uts/common/io/ntxn/unm_ndd.c
468
ok = nd_getset(wq, adapter->nd_data_p, mp);
usr/src/uts/common/io/ntxn/unm_ndd.c
485
adapter->nd_params[PARAM_ADV_AUTONEG_CAP].ndp_val,
usr/src/uts/common/io/ntxn/unm_ndd.c
486
adapter->nd_params[PARAM_ADV_AUTONEG_CAP].ndp_info));
usr/src/uts/common/io/ntxn/unm_ndd.c
498
unm_nd_cleanup(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_ndd.c
500
nd_free(&adapter->nd_data_p);
usr/src/uts/common/io/ntxn/unm_nic.h
106
#define CRB_NORMALIZE(adapter, reg) \
usr/src/uts/common/io/ntxn/unm_nic.h
107
(void *)(unsigned long)(pci_base_offset(adapter, CRB_NORMAL(reg)))
usr/src/uts/common/io/ntxn/unm_nic.h
109
#define DB_NORMALIZE(adapter, off) \
usr/src/uts/common/io/ntxn/unm_nic.h
110
(void *)((unsigned long)adapter->ahw.db_base + (off))
usr/src/uts/common/io/ntxn/unm_nic.h
125
ddi_put32(adapter->db_handle, (uint32_t *)(ADDRESS), (DATA))
usr/src/uts/common/io/ntxn/unm_nic.h
132
ddi_get8(adapter->regs_handle, (uint8_t *)(ADDRESS))
usr/src/uts/common/io/ntxn/unm_nic.h
134
ddi_get16(adapter->regs_handle, (uint16_t *)(ADDRESS))
usr/src/uts/common/io/ntxn/unm_nic.h
136
ddi_get32(adapter->regs_handle, (uint32_t *)(ADDRESS))
usr/src/uts/common/io/ntxn/unm_nic.h
138
ddi_get64(adapter->regs_handle, (uint64_t *)(ADDRESS))
usr/src/uts/common/io/ntxn/unm_nic.h
141
ddi_put8(adapter->regs_handle, (uint8_t *)(ADDRESS), (DATA))
usr/src/uts/common/io/ntxn/unm_nic.h
143
ddi_put16(adapter->regs_handle, (uint16_t *)(ADDRESS), (DATA))
usr/src/uts/common/io/ntxn/unm_nic.h
145
ddi_put32(adapter->regs_handle, (uint32_t *)(ADDRESS), (DATA))
usr/src/uts/common/io/ntxn/unm_nic.h
147
ddi_put64(adapter->regs_handle, (uint64_t *)(ADDRESS), (DATA))
usr/src/uts/common/io/ntxn/unm_nic.h
207
unm_adapter *adapter;
usr/src/uts/common/io/ntxn/unm_nic.h
235
struct unm_adapter_s *adapter;
usr/src/uts/common/io/ntxn/unm_nic.h
590
#define PCI_OFFSET_FIRST_RANGE(adapter, off) \
usr/src/uts/common/io/ntxn/unm_nic.h
591
((adapter)->ahw.pci_base0 + off)
usr/src/uts/common/io/ntxn/unm_nic.h
592
#define PCI_OFFSET_SECOND_RANGE(adapter, off) \
usr/src/uts/common/io/ntxn/unm_nic.h
593
((adapter)->ahw.pci_base1 + off - SECOND_PAGE_GROUP_START)
usr/src/uts/common/io/ntxn/unm_nic.h
594
#define PCI_OFFSET_THIRD_RANGE(adapter, off) \
usr/src/uts/common/io/ntxn/unm_nic.h
595
((adapter)->ahw.pci_base2 + off - THIRD_PAGE_GROUP_START)
usr/src/uts/common/io/ntxn/unm_nic.h
597
#define pci_base_offset(adapter, off) \
usr/src/uts/common/io/ntxn/unm_nic.h
598
((((off) < ((adapter)->ahw.first_page_group_end)) && \
usr/src/uts/common/io/ntxn/unm_nic.h
599
((off) >= ((adapter)->ahw.first_page_group_start))) ? \
usr/src/uts/common/io/ntxn/unm_nic.h
600
((adapter)->ahw.pci_base0 + (off)) : \
usr/src/uts/common/io/ntxn/unm_nic.h
603
((adapter)->ahw.pci_base1 + \
usr/src/uts/common/io/ntxn/unm_nic.h
607
((adapter)->ahw.pci_base2 + (off) - \
usr/src/uts/common/io/ntxn/unm_nic.h
628
int unm_nic_get_board_info(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
629
void _unm_nic_write_crb(struct unm_adapter_s *adapter, uint32_t index,
usr/src/uts/common/io/ntxn/unm_nic.h
631
void unm_nic_write_crb(struct unm_adapter_s *adapter, uint32_t index,
usr/src/uts/common/io/ntxn/unm_nic.h
633
void _unm_nic_read_crb(struct unm_adapter_s *adapter, uint32_t index,
usr/src/uts/common/io/ntxn/unm_nic.h
635
void unm_nic_read_crb(struct unm_adapter_s *adapter, uint32_t index,
usr/src/uts/common/io/ntxn/unm_nic.h
638
int _unm_nic_hw_write(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
640
int unm_nic_hw_write(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
642
int _unm_nic_hw_read(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
644
int unm_nic_hw_read(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
646
void _unm_nic_hw_block_read(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
648
void unm_nic_hw_block_read(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
650
void _unm_nic_hw_block_write(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
652
void unm_nic_hw_block_write(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
654
int unm_nic_pci_mem_write(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
656
void unm_nic_mem_block_read(struct unm_adapter_s *adapter, u64 off,
usr/src/uts/common/io/ntxn/unm_nic.h
658
void unm_nic_mem_block_write(struct unm_adapter_s *adapter, u64 off,
usr/src/uts/common/io/ntxn/unm_nic.h
660
int unm_nic_hw_read_ioctl(unm_adapter *adapter, u64 off, void *data, int len);
usr/src/uts/common/io/ntxn/unm_nic.h
661
int unm_nic_hw_write_ioctl(unm_adapter *adapter, u64 off, void *data, int len);
usr/src/uts/common/io/ntxn/unm_nic.h
663
void unm_tcl_resetall(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
664
void unm_tcl_phaninit(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
665
void unm_tcl_postimage(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
666
int unm_nic_set_mtu(struct unm_adapter_s *adapter, int new_mtu);
usr/src/uts/common/io/ntxn/unm_nic.h
667
long unm_nic_phy_read(unm_adapter *adapter, long reg, __uint32_t *);
usr/src/uts/common/io/ntxn/unm_nic.h
668
long unm_nic_init_port(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
670
struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
672
struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
674
struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
675
void unm_nic_stop_port(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
676
int unm_nic_set_promisc_mode(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
677
int unm_nic_unset_promisc_mode(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
680
void unm_nic_pci_change_crbwindow_128M(unm_adapter *adapter, uint32_t wndw);
usr/src/uts/common/io/ntxn/unm_nic.h
682
int unm_nic_hw_write_wx_128M(unm_adapter *adapter, u64 off, void *data,
usr/src/uts/common/io/ntxn/unm_nic.h
684
int unm_nic_hw_read_wx_128M(unm_adapter *adapter, u64 off, void *data, int len);
usr/src/uts/common/io/ntxn/unm_nic.h
685
int unm_nic_hw_write_ioctl_128M(unm_adapter *adapter, u64 off, void *data,
usr/src/uts/common/io/ntxn/unm_nic.h
687
int unm_nic_hw_read_ioctl_128M(unm_adapter *adapter, u64 off, void *data,
usr/src/uts/common/io/ntxn/unm_nic.h
689
int unm_nic_pci_mem_write_128M(struct unm_adapter_s *adapter, u64 off,
usr/src/uts/common/io/ntxn/unm_nic.h
691
int unm_nic_pci_mem_read_128M(struct unm_adapter_s *adapter, u64 off,
usr/src/uts/common/io/ntxn/unm_nic.h
693
void unm_nic_pci_write_normalize_128M(unm_adapter *adapter, u64 off, u32 data);
usr/src/uts/common/io/ntxn/unm_nic.h
694
u32 unm_nic_pci_read_normalize_128M(unm_adapter *adapter, u64 off);
usr/src/uts/common/io/ntxn/unm_nic.h
695
int unm_nic_pci_write_immediate_128M(unm_adapter *adapter, u64 off, u32 *data);
usr/src/uts/common/io/ntxn/unm_nic.h
696
int unm_nic_pci_read_immediate_128M(unm_adapter *adapter, u64 off, u32 *data);
usr/src/uts/common/io/ntxn/unm_nic.h
697
unsigned long long unm_nic_pci_set_window_128M(unm_adapter *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
699
int unm_nic_clear_statistics_128M(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
700
int unm_nic_fill_statistics_128M(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
703
void unm_nic_pci_change_crbwindow_2M(unm_adapter *adapter, uint32_t wndw);
usr/src/uts/common/io/ntxn/unm_nic.h
705
int unm_nic_hw_write_wx_2M(unm_adapter *adapter, u64 off, void *data, int len);
usr/src/uts/common/io/ntxn/unm_nic.h
706
int unm_nic_pci_mem_write_2M(struct unm_adapter_s *adapter, u64 off,
usr/src/uts/common/io/ntxn/unm_nic.h
708
int unm_nic_pci_mem_read_2M(struct unm_adapter_s *adapter, u64 off,
usr/src/uts/common/io/ntxn/unm_nic.h
710
int unm_nic_hw_read_wx_2M(unm_adapter *adapter, u64 off, void *data, int len);
usr/src/uts/common/io/ntxn/unm_nic.h
711
void unm_nic_pci_write_normalize_2M(unm_adapter *adapter, u64 off, u32 data);
usr/src/uts/common/io/ntxn/unm_nic.h
712
u32 unm_nic_pci_read_normalize_2M(unm_adapter *adapter, u64 off);
usr/src/uts/common/io/ntxn/unm_nic.h
713
int unm_nic_pci_write_immediate_2M(unm_adapter *adapter, u64 off, u32 *data);
usr/src/uts/common/io/ntxn/unm_nic.h
714
int unm_nic_pci_read_immediate_2M(unm_adapter *adapter, u64 off, u32 *data);
usr/src/uts/common/io/ntxn/unm_nic.h
715
unsigned long long unm_nic_pci_set_window_2M(unm_adapter *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
717
int unm_nic_clear_statistics_2M(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
718
int unm_nic_fill_statistics_2M(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
720
void nx_p3_nic_set_multi(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
723
int phantom_init(struct unm_adapter_s *adapter, int first_time);
usr/src/uts/common/io/ntxn/unm_nic.h
724
int load_from_flash(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
725
int pinit_from_rom(unm_adapter *adapter, int verbose);
usr/src/uts/common/io/ntxn/unm_nic.h
726
int rom_fast_read(struct unm_adapter_s *adapter, int addr, int *valp);
usr/src/uts/common/io/ntxn/unm_nic.h
729
void unm_nic_handle_phy_intr(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
732
native_t unm_niu_set_promiscuous_mode(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
734
native_t unm_niu_xg_set_promiscuous_mode(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
737
int unm_niu_xg_macaddr_set(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
739
native_t unm_niu_disable_xg_port(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
742
native_t unm_niu_enable_gbe_port(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
743
native_t unm_niu_disable_gbe_port(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
745
int unm_niu_macaddr_get(struct unm_adapter_s *adapter, unsigned char *addr);
usr/src/uts/common/io/ntxn/unm_nic.h
746
int unm_niu_macaddr_set(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
749
int unm_niu_xg_set_tx_flow_ctl(struct unm_adapter_s *adapter, int enable);
usr/src/uts/common/io/ntxn/unm_nic.h
750
int unm_niu_gbe_set_rx_flow_ctl(struct unm_adapter_s *adapter, int enable);
usr/src/uts/common/io/ntxn/unm_nic.h
751
int unm_niu_gbe_set_tx_flow_ctl(struct unm_adapter_s *adapter, int enable);
usr/src/uts/common/io/ntxn/unm_nic.h
757
int netxen_create_rxtx(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
758
void netxen_destroy_rxtx(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
759
int nx_fw_cmd_set_mtu(struct unm_adapter_s *adapter, int mtu);
usr/src/uts/common/io/ntxn/unm_nic.h
762
int receive_peg_ready(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
763
void unm_nic_update_cmd_producer(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic.h
772
int unm_nd_init(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
773
enum ioc_reply unm_nd_ioctl(unm_adapter *adapter, queue_t *wq,
usr/src/uts/common/io/ntxn/unm_nic.h
775
void unm_nd_cleanup(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
778
void unm_destroy_intr(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_nic.h
779
void unm_free_dummy_dma(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
114
netxen_api_lock(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
120
unm_nic_read_w0(adapter,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
135
unm_nic_reg_write(adapter, NETXEN_API_LOCK_ID, NX_OS_API_LOCK_DRIVER);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
141
netxen_api_unlock(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
146
unm_nic_read_w0(adapter,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
151
netxen_poll_rsp(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
163
adapter->unm_nic_hw_read_wx(adapter, NX_CDRP_CRB_OFFSET,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
173
netxen_issue_cmd(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
183
if (netxen_api_lock(adapter))
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
186
unm_nic_reg_write(adapter, NX_SIGN_CRB_OFFSET,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
189
unm_nic_reg_write(adapter, NX_ARG1_CRB_OFFSET,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
192
unm_nic_reg_write(adapter, NX_ARG2_CRB_OFFSET,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
195
unm_nic_reg_write(adapter, NX_ARG3_CRB_OFFSET,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
198
unm_nic_reg_write(adapter, NX_CDRP_CRB_OFFSET,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
201
rsp = netxen_poll_rsp(adapter);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
209
adapter->unm_nic_hw_read_wx(adapter, NX_ARG1_CRB_OFFSET,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
218
netxen_api_unlock(adapter);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
224
nx_fw_cmd_set_mtu(struct unm_adapter_s *adapter, int mtu)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
227
struct unm_recv_context_s *recv_ctx = &adapter->recv_ctx[0];
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
230
rcode = netxen_issue_cmd(adapter,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
231
adapter->ahw.pci_func,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
245
nx_fw_cmd_create_rx_ctx(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
247
unm_recv_context_t *recv_ctx = &adapter->recv_ctx[0];
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
266
nrds_rings = adapter->max_rds_rings;
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
274
if (unm_pci_alloc_consistent(adapter, rq_size, (caddr_t *)&addr,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
280
if (unm_pci_alloc_consistent(adapter, rsp_size, (caddr_t *)&addr,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
322
prq_sds[0].ring_size = HOST_TO_LE_32(adapter->MaxRxDescCount);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
331
err = netxen_issue_cmd(adapter,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
332
adapter->ahw.pci_func,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
361
adapter->interrupt_crb = UNM_NIC_REG(reg - 0x200);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
375
nx_fw_cmd_destroy_rx_ctx(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
377
struct unm_recv_context_s *recv_ctx = &adapter->recv_ctx[0];
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
379
if (netxen_issue_cmd(adapter,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
380
adapter->ahw.pci_func,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
393
nx_fw_cmd_create_tx_ctx(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
409
if (unm_pci_alloc_consistent(adapter, rq_size, (caddr_t *)&rq_addr,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
415
if (unm_pci_alloc_consistent(adapter, rsp_size, (caddr_t *)&rsp_addr,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
439
prq->dummy_dma_addr = HOST_TO_LE_64(adapter->dummy_dma.phys_addr);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
441
offset = adapter->ctxDesc_physAddr + sizeof (RingContext);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
447
HOST_TO_LE_64(adapter->ahw.cmdDesc_physAddr);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
449
prq_cds->ring_size = HOST_TO_LE_32(adapter->MaxTxDescCount);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
452
err = netxen_issue_cmd(adapter,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
453
adapter->ahw.pci_func,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
462
adapter->crb_addr_cmd_producer =
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
465
adapter->tx_state =
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
468
adapter->tx_context_id =
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
485
nx_fw_cmd_destroy_tx_ctx(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
487
if (netxen_issue_cmd(adapter,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
488
adapter->ahw.pci_func,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
490
adapter->tx_context_id,
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
577
netxen_init_old_ctx(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
579
hardware_context *hw = &adapter->ahw;
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
582
int ctx, ring, func_id = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
585
adapter->ctxDesc->CmdRingAddrLo = hw->cmdDesc_physAddr & 0xffffffffUL;
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
586
adapter->ctxDesc->CmdRingAddrHi = ((U64)hw->cmdDesc_physAddr >> 32);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
587
adapter->ctxDesc->CmdRingSize = adapter->MaxTxDescCount;
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
590
recv_ctx = &adapter->recv_ctx[ctx];
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
592
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
595
adapter->ctxDesc->RcvContext[ring].RcvRingAddrLo =
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
597
adapter->ctxDesc->RcvContext[ring].RcvRingAddrHi =
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
599
adapter->ctxDesc->RcvContext[ring].RcvRingSize =
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
603
recv_crb_registers[adapter->portnum].
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
607
adapter->ctxDesc->StsRingAddrLo =
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
609
adapter->ctxDesc->StsRingAddrHi =
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
611
adapter->ctxDesc->StsRingSize = adapter->MaxRxDescCount;
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
614
recv_crb_registers[adapter->portnum].crb_sts_consumer;
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
617
adapter->interrupt_crb = sw_int_mask[adapter->portnum];
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
619
temp = lower32(adapter->ctxDesc_physAddr);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
620
adapter->unm_nic_hw_write_wx(adapter, CRB_CTX_ADDR_REG_LO(func_id),
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
622
temp = upper32(adapter->ctxDesc_physAddr);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
623
adapter->unm_nic_hw_write_wx(adapter, CRB_CTX_ADDR_REG_HI(func_id),
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
626
adapter->unm_nic_hw_write_wx(adapter, CRB_CTX_SIGNATURE_REG(func_id),
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
633
netxen_destroy_rxtx(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
635
if (adapter->fw_major >= 4) {
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
636
nx_fw_cmd_destroy_tx_ctx(adapter);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
637
nx_fw_cmd_destroy_rx_ctx(adapter);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
642
netxen_create_rxtx(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
646
if (adapter->fw_major >= 4) {
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
647
err = nx_fw_cmd_create_rx_ctx(adapter);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
650
err = nx_fw_cmd_create_tx_ctx(adapter);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
652
nx_fw_cmd_destroy_rx_ctx(adapter);
usr/src/uts/common/io/ntxn/unm_nic_ctx.c
655
return (netxen_init_old_ctx(adapter));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1003
adapter->ahw.ddr_mn_window = window;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1004
adapter->unm_nic_hw_write_wx(adapter, adapter->ahw.mn_win_crb |
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1006
adapter->unm_nic_hw_read_wx(adapter, adapter->ahw.mn_win_crb |
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1025
adapter->ahw.ddr_mn_window = window;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1026
adapter->unm_nic_hw_write_wx(adapter, adapter->ahw.mn_win_crb |
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1028
adapter->unm_nic_hw_read_wx(adapter, adapter->ahw.mn_win_crb |
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1043
adapter->ahw.qdr_sn_window = window;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1044
adapter->unm_nic_hw_write_wx(adapter, adapter->ahw.ms_win_crb |
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1046
adapter->unm_nic_hw_read_wx(adapter, adapter->ahw.ms_win_crb |
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1063
adapter->name, adapter->instance, __FUNCTION__);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1072
unm_nic_pci_is_same_window(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1078
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1090
if (adapter->ahw.ddr_mn_window == window) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1101
if (adapter->ahw.qdr_sn_window == window) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1110
unm_nic_pci_mem_read_direct(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1133
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1139
if (((start = adapter->unm_nic_pci_set_window(adapter, off)) == -1UL) ||
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1140
(unm_nic_pci_is_same_window(adapter, off + size -1) == 0)) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1141
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1147
addr = (void *) (uptr_t)(pci_base_offset(adapter, start));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1149
addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 + start);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1169
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1174
unm_nic_pci_mem_write_direct(struct unm_adapter_s *adapter, u64 off,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1197
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1203
if (((start = adapter->unm_nic_pci_set_window(adapter, off)) == -1UL) ||
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1204
(unm_nic_pci_is_same_window(adapter, off + size -1) == 0)) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1205
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1211
addr = (void *) (uptr_t)(pci_base_offset(adapter, start));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1213
addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 + start);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1232
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1238
unm_nic_pci_mem_write_128M(struct unm_adapter_s *adapter, u64 off, void *data,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1249
if (unm_nic_pci_mem_bound_check(adapter, off, size) == 0)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1250
return (unm_nic_pci_mem_write_direct(adapter, off, data, size));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1258
mem_crb = (uptr_t)(pci_base_offset(adapter, UNM_CRB_DDR_NET));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1262
if (adapter->unm_nic_pci_mem_read(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1291
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1292
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1325
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1326
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1331
unm_nic_pci_mem_read_128M(struct unm_adapter_s *adapter, u64 off, void *data,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1342
if (unm_nic_pci_mem_bound_check(adapter, off, size) == 0)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1343
return (unm_nic_pci_mem_read_direct(adapter, off, data, size));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1352
mem_crb = (uptr_t)(pci_base_offset(adapter, UNM_CRB_DDR_NET));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1354
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1355
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1391
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1392
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1424
unm_nic_pci_mem_write_2M(struct unm_adapter_s *adapter, u64 off, void *data,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1439
if (unm_nic_pci_mem_bound_check(adapter, off, size) == 0)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1440
return (unm_nic_pci_mem_write_direct(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1452
if (adapter->unm_nic_pci_mem_read(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1488
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1491
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1494
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1497
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1500
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1503
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1507
adapter->unm_nic_hw_read_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1528
unm_nic_pci_mem_read_2M(struct unm_adapter_s *adapter, u64 off, void *data,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1545
if (unm_nic_pci_mem_bound_check(adapter, off, size) == 0)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1546
return (unm_nic_pci_mem_read_direct(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1563
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1566
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1569
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1572
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1576
adapter->unm_nic_hw_read_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1592
adapter->unm_nic_hw_read_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1629
unm_crb_writelit_adapter_2M(struct unm_adapter_s *adapter, unsigned long off,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1632
return (unm_nic_hw_write_wx_2M(adapter, off, &data, 4));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1636
unm_crb_writelit_adapter_128M(struct unm_adapter_s *adapter, unsigned long off,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1642
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1643
UNM_NIC_PCI_WRITE_32(data, CRB_NORMALIZE(adapter, off));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1644
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1647
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1648
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1649
addr = (void *) (pci_base_offset(adapter, off));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1651
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1652
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1659
unm_nic_get_board_info(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1668
boardinfo = &adapter->ahw.boardcfg;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1672
if (rom_fast_read(adapter, addr, (int *)ptr32) == -1) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1696
adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1706
adapter->ahw.board_type = UNM_NIC_GBE;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1720
adapter->ahw.board_type = UNM_NIC_XGBE;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1725
adapter->ahw.board_type = UNM_NIC_GBE;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1731
adapter->ahw.board_type = UNM_NIC_GBE;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1734
if (adapter->portnum < 2)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1735
adapter->ahw.board_type = UNM_NIC_XGBE;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1737
adapter->ahw.board_type = UNM_NIC_GBE;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1751
unm_nic_macaddr_set(struct unm_adapter_s *adapter, __uint8_t *addr)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1757
if (NX_IS_REVISION_P3(adapter->ahw.revision_id))
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1760
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1766
if (unm_niu_macaddr_set(adapter, addr) != 0)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1769
(void) unm_niu_macaddr_get(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1779
ret = unm_niu_xg_macaddr_set(adapter, addr);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1792
unm_nic_set_mtu(struct unm_adapter_s *adapter, int new_mtu)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1794
long port = adapter->physical_port;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1798
if (adapter->ahw.revision_id >= NX_P3_A2)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1799
return (nx_fw_cmd_set_mtu(adapter, new_mtu));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1802
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1804
unm_nic_write_w0(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1805
UNM_NIU_GB_MAX_FRAME_SIZE(adapter->physical_port),
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1811
adapter->unm_nic_hw_read_wx(adapter, UNM_PORT_MODE_ADDR,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1814
unm_nic_write_w0(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1817
if (adapter->physical_port == 0) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1818
unm_nic_write_w0(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1822
unm_nic_write_w0(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1838
unm_nic_set_promisc_mode(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1842
if (adapter->promisc)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1845
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1847
ret = unm_niu_set_promiscuous_mode(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1852
ret = unm_niu_xg_set_promiscuous_mode(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1864
adapter->promisc = 1;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1870
unm_nic_unset_promisc_mode(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1877
if (adapter->ahw.revision_id >= NX_P3_A2) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1881
if (!adapter->promisc)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1884
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1886
ret = unm_niu_set_promiscuous_mode(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1891
ret = unm_niu_xg_set_promiscuous_mode(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1903
adapter->promisc = 0;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1909
unm_nic_phy_read(unm_adapter *adapter, long reg, __uint32_t *readval)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1913
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1915
ret = unm_niu_gbe_phy_read(adapter, reg, readval);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1933
unm_nic_init_port(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1935
long portnum = adapter->physical_port;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1940
unm_nic_set_link_parameters(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1942
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1944
ret = unm_niu_enable_gbe_port(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1948
adapter->unm_nic_hw_read_wx(adapter, UNM_PORT_MODE_ADDR,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1951
ret = unm_niu_enable_gbe_port(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1953
adapter->unm_crb_writelit_adapter(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1956
(0x10000 * portnum), ®, adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1957
if (adapter->ahw.revision_id < NX_P3_A2)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1959
adapter->unm_crb_writelit_adapter(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1973
unm_nic_stop_port(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1976
(void) mac_unregister(adapter->mach);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1978
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1980
(void) unm_niu_disable_gbe_port(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1984
(void) unm_niu_disable_xg_port(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1995
struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
1997
(void) adapter->unm_nic_hw_write_wx(adapter, off, data, 4);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2002
struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2004
return (adapter->unm_nic_hw_read_wx(adapter, off, data, 4));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2008
unm_crb_read_val_adapter(unsigned long off, struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2012
adapter->unm_nic_hw_read_wx(adapter, off, &data, 4);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2017
unm_nic_set_link_parameters(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2024
unm_nic_read_w0(adapter, UNM_NIU_MODE, (uint32_t *)&mode);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2026
adapter->unm_nic_hw_read_wx(adapter, UNM_PORT_MODE_ADDR,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2029
adapter->link_speed = MBPS_1000;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2030
adapter->link_duplex = LINK_DUPLEX_FULL;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2032
if (unm_nic_phy_read(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2037
case 0: adapter->link_speed = MBPS_10;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2039
case 1: adapter->link_speed = MBPS_100;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2041
case 2: adapter->link_speed = MBPS_1000;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2044
adapter->link_speed = defval;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2048
case 0: adapter->link_duplex = LINK_DUPLEX_HALF;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2050
case 1: adapter->link_duplex = LINK_DUPLEX_FULL;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2053
adapter->link_duplex = defval;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2057
adapter->link_speed = defval;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2058
adapter->link_duplex = defval;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2061
adapter->link_speed = defval;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2062
adapter->link_duplex = defval;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2069
unm_nic_flash_print(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2072
unm_board_info_t *board_info = &(adapter->ahw.boardcfg);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2095
if (rom_fast_read(adapter, addr, ptr32) == -1) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2115
nx_nic_send_cmd_descs(unm_adapter *adapter, cmdDescType0_t *cmd_desc_arr,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2124
UNM_SPIN_LOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2125
producer = adapter->cmdProducer;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2128
pbuf = &adapter->cmd_buf_arr[producer];
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2131
(void) memcpy(&adapter->ahw.cmdDescHead[producer],
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2133
unm_desc_dma_sync(adapter->ahw.cmd_desc_dma_handle, producer,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2134
1, adapter->MaxTxDescCount, sizeof (cmdDescType0_t),
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2136
producer = get_next_index(producer, adapter->MaxTxDescCount);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2140
adapter->cmdProducer = adapter->ahw.cmdProducer = producer;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2141
adapter->freecmds -= i;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2143
unm_nic_update_cmd_producer(adapter, producer);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2145
UNM_SPIN_UNLOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2158
nx_p3_sre_macaddr_change(unm_adapter *adapter, u8 *addr, u8 op)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2167
req.req_hdr |= ((u64)adapter->portnum << 16);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2172
rv = nx_nic_send_cmd_descs(adapter, (cmdDescType0_t *)&req, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2175
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2179
nx_p3_nic_set_promisc(unm_adapter *adapter, u32 mode)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2187
req.req_hdr |= ((u64)adapter->portnum << 16);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2190
return (nx_nic_send_cmd_descs(adapter, (cmdDescType0_t *)&req, 1));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2197
nx_p3_nic_set_multi(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2201
if (nx_p3_nic_set_promisc(adapter, VPORT_MISS_MODE_ACCEPT_ALL))
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2204
nx_p3_sre_macaddr_change(adapter, adapter->mac_addr, NETXEN_MAC_ADD);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
2205
nx_p3_sre_macaddr_change(adapter, bcast_addr, NETXEN_MAC_ADD);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
311
crb_win_lock(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
318
adapter->unm_nic_hw_read_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
324
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
334
adapter->unm_crb_writelit_adapter(adapter, UNM_CRB_WIN_LOCK_ID,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
335
adapter->portnum);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
339
crb_win_unlock(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
343
adapter->unm_nic_hw_read_wx(adapter, UNM_PCIE_REG(PCIE_SEM7_UNLOCK),
usr/src/uts/common/io/ntxn/unm_nic_hw.c
351
unm_nic_pci_change_crbwindow_128M(unm_adapter *adapter, uint32_t wndw)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
357
if (adapter->curr_window == wndw) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
369
offset = PCI_OFFSET_SECOND_RANGE(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
370
UNM_PCIX_PH_REG(PCIE_CRB_WINDOW_REG(adapter->ahw.pci_func)));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
383
adapter->curr_window = wndw;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
392
unm_nic_pci_change_crbwindow_2M(unm_adapter *adapter, uint32_t wndw)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
398
unm_nic_get_crbwindow(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
400
return (adapter->curr_window);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
411
unm_nic_pci_get_crb_addr_2M(unm_adapter *adapter, u64 *off, int len)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
422
adapter->ahw.pci_base0;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
439
adapter->ahw.pci_base0;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
454
unm_nic_pci_set_crbwindow_2M(unm_adapter *adapter, u64 *off)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
458
adapter->crb_win = CRB_HI(*off);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
459
UNM_NIC_PCI_WRITE_32(adapter->crb_win, (void *) (CRB_WINDOW_2M +
usr/src/uts/common/io/ntxn/unm_nic_hw.c
460
adapter->ahw.pci_base0));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
466
(CRB_WINDOW_2M + adapter->ahw.pci_base0));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
467
if (win_read != adapter->crb_win) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
469
"(0x%x), off=0x%llx\n", __FUNCTION__, adapter->crb_win,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
473
adapter->ahw.pci_base0;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
477
unm_nic_hw_write_ioctl_128M(unm_adapter *adapter, u64 off, void *data, int len)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
483
addr = CRB_NORMALIZE(adapter, off);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
486
if (adapter->ahw.pci_len0 == 0)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
488
addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 +
usr/src/uts/common/io/ntxn/unm_nic_hw.c
491
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
493
addr = (void *) (uptr_t)(pci_base_offset(adapter, off));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
496
addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 +
usr/src/uts/common/io/ntxn/unm_nic_hw.c
499
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
500
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
526
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
528
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
529
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
539
unm_nic_hw_write_wx_128M(unm_adapter *adapter, u64 off, void *data, int len)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
549
addr = CRB_NORMALIZE(adapter, off);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
550
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
552
addr = (void *) (uptr_t)(pci_base_offset(adapter, off));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
553
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
554
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
560
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
562
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
563
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
592
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
594
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
595
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
605
unm_nic_pci_write_normalize_128M(unm_adapter *adapter, u64 off, u32 data)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
607
UNM_NIC_PCI_WRITE_32(data, CRB_NORMALIZE(adapter, off));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
614
unm_nic_pci_read_normalize_128M(unm_adapter *adapter, u64 off)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
616
return (UNM_NIC_PCI_READ_32(CRB_NORMALIZE(adapter, off)));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
623
unm_nic_pci_write_immediate_128M(unm_adapter *adapter, u64 off, u32 *data)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
626
(void *) (uptr_t)(PCI_OFFSET_SECOND_RANGE(adapter, off)));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
634
unm_nic_pci_read_immediate_128M(unm_adapter *adapter, u64 off, u32 *data)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
637
(uptr_t)(pci_base_offset(adapter, off)));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
645
unm_nic_pci_write_normalize_2M(unm_adapter *adapter, u64 off, u32 data)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
649
adapter->unm_nic_hw_write_wx(adapter, off, &temp, 4);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
656
unm_nic_pci_read_normalize_2M(unm_adapter *adapter, u64 off)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
660
adapter->unm_nic_hw_read_wx(adapter, off, &temp, 4);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
669
unm_nic_pci_write_immediate_2M(unm_adapter *adapter, u64 off, u32 *data)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
673
adapter->unm_nic_hw_write_wx(adapter, off, &temp, 4);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
682
unm_nic_pci_read_immediate_2M(unm_adapter *adapter, u64 off, u32 *data)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
686
adapter->unm_nic_hw_read_wx(adapter, off, &temp, 4);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
698
unm_nic_hw_write_wx_2M(unm_adapter *adapter, u64 off, void *data, int len)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
702
rv = unm_nic_pci_get_crb_addr_2M(adapter, &off, len);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
710
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
711
crb_win_lock(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
712
unm_nic_pci_set_crbwindow_2M(adapter, &off);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
738
crb_win_unlock(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
739
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
746
unm_nic_hw_read_ioctl_128M(unm_adapter *adapter, u64 off, void *data, int len)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
752
addr = CRB_NORMALIZE(adapter, off);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
755
if (adapter->ahw.pci_len0 == 0)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
757
addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 +
usr/src/uts/common/io/ntxn/unm_nic_hw.c
760
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
762
addr = (void *) (uptr_t)(pci_base_offset(adapter, off));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
765
addr = (void *) ((uint8_t *)adapter->ahw.pci_base0 +
usr/src/uts/common/io/ntxn/unm_nic_hw.c
768
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
769
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
796
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
798
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
799
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
806
unm_nic_hw_read_wx_2M(unm_adapter *adapter, u64 off, void *data, int len)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
810
rv = unm_nic_pci_get_crb_addr_2M(adapter, &off, len);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
818
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
819
crb_win_lock(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
820
unm_nic_pci_set_crbwindow_2M(adapter, &off);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
847
crb_win_unlock(adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
848
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
855
unm_nic_hw_read_wx_128M(unm_adapter *adapter, u64 off, void *data, int len)
usr/src/uts/common/io/ntxn/unm_nic_hw.c
861
addr = CRB_NORMALIZE(adapter, off);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
862
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
864
addr = (void *) (uptr_t)(pci_base_offset(adapter, off));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
865
UNM_WRITE_LOCK_IRQS(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
866
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
871
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
873
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
874
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
904
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
906
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
907
UNM_WRITE_UNLOCK_IRQR(&adapter->adapter_lock, flags);
usr/src/uts/common/io/ntxn/unm_nic_hw.c
923
unm_nic_pci_mem_bound_check(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
938
unm_nic_pci_set_window_128M(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
944
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
964
if (adapter->ahw.qdr_sn_window != window) {
usr/src/uts/common/io/ntxn/unm_nic_hw.c
965
adapter->ahw.qdr_sn_window = window;
usr/src/uts/common/io/ntxn/unm_nic_hw.c
967
(void *) (uptr_t)(PCI_OFFSET_SECOND_RANGE(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
969
adapter->ahw.pci_func)))));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
972
(uptr_t)(PCI_OFFSET_SECOND_RANGE(adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.c
974
adapter->ahw.pci_func)))));
usr/src/uts/common/io/ntxn/unm_nic_hw.c
994
unm_nic_pci_set_window_2M(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_hw.h
100
void unm_nic_get_serial_num(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.h
72
addr = (void *)(pci_base_offset(adapter, (X))); \
usr/src/uts/common/io/ntxn/unm_nic_hw.h
76
addr = (void *)(pci_base_offset(adapter, (X))); \
usr/src/uts/common/io/ntxn/unm_nic_hw.h
91
adapter->unm_crb_writelit_adapter( \
usr/src/uts/common/io/ntxn/unm_nic_hw.h
97
void unm_nic_set_link_parameters(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.h
98
long xge_mdio_init(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic_hw.h
99
void unm_nic_flash_print(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
165
rom_lock(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_init.c
172
unm_nic_read_w0(adapter, UNM_PCIE_REG(PCIE_SEM2_LOCK), &done);
usr/src/uts/common/io/ntxn/unm_nic_init.c
177
adapter->name, adapter->instance, done, timeout);
usr/src/uts/common/io/ntxn/unm_nic_init.c
182
unm_nic_reg_write(adapter, UNM_ROM_LOCK_ID, ROM_LOCK_DRIVER);
usr/src/uts/common/io/ntxn/unm_nic_init.c
187
rom_unlock(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_init.c
192
unm_nic_read_w0(adapter, UNM_PCIE_REG(PCIE_SEM2_UNLOCK), &val);
usr/src/uts/common/io/ntxn/unm_nic_init.c
196
wait_rom_done(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_init.c
202
unm_nic_reg_read(adapter, UNM_ROMUSB_GLB_STATUS, &done);
usr/src/uts/common/io/ntxn/unm_nic_init.c
215
do_rom_fast_read(unm_adapter *adapter, int addr, int *valp)
usr/src/uts/common/io/ntxn/unm_nic_init.c
217
unm_nic_reg_write(adapter, UNM_ROMUSB_ROM_ADDRESS, addr);
usr/src/uts/common/io/ntxn/unm_nic_init.c
218
unm_nic_reg_write(adapter, UNM_ROMUSB_ROM_ABYTE_CNT, 3);
usr/src/uts/common/io/ntxn/unm_nic_init.c
220
unm_nic_reg_write(adapter, UNM_ROMUSB_ROM_DUMMY_BYTE_CNT, 0);
usr/src/uts/common/io/ntxn/unm_nic_init.c
221
unm_nic_reg_write(adapter, UNM_ROMUSB_ROM_INSTR_OPCODE, 0xb);
usr/src/uts/common/io/ntxn/unm_nic_init.c
222
if (wait_rom_done(adapter) != DDI_SUCCESS) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
228
unm_nic_reg_write(adapter, UNM_ROMUSB_ROM_ABYTE_CNT, 0);
usr/src/uts/common/io/ntxn/unm_nic_init.c
230
unm_nic_reg_write(adapter, UNM_ROMUSB_ROM_DUMMY_BYTE_CNT, 0);
usr/src/uts/common/io/ntxn/unm_nic_init.c
232
unm_nic_reg_read(adapter, UNM_ROMUSB_ROM_RDATA, valp);
usr/src/uts/common/io/ntxn/unm_nic_init.c
237
rom_fast_read(struct unm_adapter_s *adapter, int addr, int *valp)
usr/src/uts/common/io/ntxn/unm_nic_init.c
241
if (rom_lock(adapter) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
247
ret = do_rom_fast_read(adapter, addr, valp);
usr/src/uts/common/io/ntxn/unm_nic_init.c
253
rom_unlock(adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
258
pinit_from_rom(struct unm_adapter_s *adapter, int verbose)
usr/src/uts/common/io/ntxn/unm_nic_init.c
265
status = unm_nic_get_board_info(adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
270
UNM_CRB_WRITELIT_ADAPTER(UNM_ROMUSB_GLB_SW_RESET, 0xffffffff, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
274
if (rom_fast_read(adapter, 0x4008, &val) == 0)
usr/src/uts/common/io/ntxn/unm_nic_init.c
278
if (rom_fast_read(adapter, 0x400c, &val) == 0)
usr/src/uts/common/io/ntxn/unm_nic_init.c
282
if (rom_fast_read(adapter, 0x4010, &val) == 0)
usr/src/uts/common/io/ntxn/unm_nic_init.c
288
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
289
if (rom_fast_read(adapter, 0, &n) != 0 ||
usr/src/uts/common/io/ntxn/unm_nic_init.c
291
rom_fast_read(adapter, 4, &n) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
300
if (rom_fast_read(adapter, 0, &n) != 0 ||
usr/src/uts/common/io/ntxn/unm_nic_init.c
328
if (rom_fast_read(adapter, 8*i + 4*offset, &val) != 0 ||
usr/src/uts/common/io/ntxn/unm_nic_init.c
329
rom_fast_read(adapter, 8*i + 4*offset + 4, &addr) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
352
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
391
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
397
adapter->unm_nic_hw_write_wx(adapter, off, &buf[i].data, 4);
usr/src/uts/common/io/ntxn/unm_nic_init.c
411
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
413
adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
415
(val & 0xffffff0f), adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
419
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_D+0xec, 0x1e, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
421
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_D+0x4c, 8, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
423
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_I+0x4c, 8, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
427
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_0+0x8, 0, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
428
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_0+0xc, 0, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
430
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_1+0x8, 0, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
431
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_1+0xc, 0, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
433
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_2+0x8, 0, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
434
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_2+0xc, 0, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
436
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_3+0x8, 0, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
437
UNM_CRB_WRITELIT_ADAPTER(UNM_CRB_PEG_NET_3+0xc, 0, adapter);
usr/src/uts/common/io/ntxn/unm_nic_init.c
443
phantom_init(struct unm_adapter_s *adapter, int pegtune_val)
usr/src/uts/common/io/ntxn/unm_nic_init.c
450
val = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_nic_init.c
462
val = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_nic_init.c
474
load_from_flash(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_init.c
482
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
484
adapter->unm_nic_hw_write_wx(adapter, UNM_ROMUSB_GLB_CAS_RST,
usr/src/uts/common/io/ntxn/unm_nic_init.c
489
if (rom_fast_read(adapter, flashaddr, (int *)&data) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
495
adapter->unm_nic_pci_mem_write(adapter, memaddr, &data, 4);
usr/src/uts/common/io/ntxn/unm_nic_init.c
501
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_init.c
503
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_init.c
505
adapter->unm_nic_hw_write_wx(adapter, UNM_ROMUSB_GLB_SW_RESET,
usr/src/uts/common/io/ntxn/unm_nic_init.c
509
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_init.c
512
adapter->unm_nic_hw_write_wx(adapter, UNM_ROMUSB_GLB_CAS_RST,
usr/src/uts/common/io/ntxn/unm_nic_init.c
516
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
100
val >>= (adapter->portnum * 8);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
104
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
106
if (adapter->ahw.linkup && (val1 != linkupval)) {
usr/src/uts/common/io/ntxn/unm_nic_isr.c
109
adapter->name, adapter->portnum);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
110
mac_link_update(adapter->mach, LINK_STATE_DOWN);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
111
adapter->ahw.linkup = 0;
usr/src/uts/common/io/ntxn/unm_nic_isr.c
112
} else if ((adapter->ahw.linkup == 0) && (val1 == linkupval)) {
usr/src/uts/common/io/ntxn/unm_nic_isr.c
115
adapter->name, adapter->portnum);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
116
mac_link_update(adapter->mach, LINK_STATE_UP);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
117
adapter->ahw.linkup = 1;
usr/src/uts/common/io/ntxn/unm_nic_isr.c
119
if (adapter->ahw.board_type == UNM_NIC_GBE)
usr/src/uts/common/io/ntxn/unm_nic_isr.c
120
unm_nic_set_link_parameters(adapter);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
127
unm_nic_driver_name, adapter->portnum));
usr/src/uts/common/io/ntxn/unm_nic_isr.c
55
unm_nic_isr_other(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_isr.c
57
u32 portno = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_nic_isr.c
58
u32 val, linkup, qg_linksup = adapter->ahw.linkup;
usr/src/uts/common/io/ntxn/unm_nic_isr.c
60
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
61
adapter->unm_nic_hw_read_wx(adapter, CRB_XG_STATE, &val, 4);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
62
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
64
linkup = 1 & (val >> adapter->physical_port);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
65
adapter->ahw.linkup = linkup;
usr/src/uts/common/io/ntxn/unm_nic_isr.c
70
mac_link_update(adapter->mach, linkup);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
72
unm_nic_set_link_parameters(adapter);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
77
unm_nic_handle_phy_intr(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_isr.c
81
switch (adapter->ahw.board_type) {
usr/src/uts/common/io/ntxn/unm_nic_isr.c
83
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_isr.c
84
unm_nic_isr_other(adapter);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
91
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
92
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_isr.c
93
adapter->unm_nic_hw_read_wx(adapter, CRB_XG_STATE_P3,
usr/src/uts/common/io/ntxn/unm_nic_isr.c
95
val1 = XG_LINK_STATE_P3(adapter->ahw.pci_func, val);
usr/src/uts/common/io/ntxn/unm_nic_isr.c
98
adapter->unm_nic_hw_read_wx(adapter, CRB_XG_STATE,
usr/src/uts/common/io/ntxn/unm_nic_main.c
100
static void unm_post_rx_buffers_nodb(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1003
hwdesc->u3.s1.port = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1006
hwdesc->u3.s1.ctx_id = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_nic_main.c
102
static mblk_t *unm_process_rcv(unm_adapter *adapter, statusDesc_t *desc);
usr/src/uts/common/io/ntxn/unm_nic_main.c
104
static int unm_process_cmd_ring(struct unm_adapter_s *adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1043
adapter->cmdProducer = get_next_index(producer, MaxTxDescCount);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1044
hw->cmdProducer = adapter->cmdProducer;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1045
unm_nic_update_cmd_producer(adapter, adapter->cmdProducer);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1047
adapter->stats.txbytes += pktinfo->total_len;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1048
adapter->stats.xmitfinished++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1049
adapter->stats.txmapped++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1050
UNM_SPIN_UNLOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
106
static int unm_nic_do_ioctl(unm_adapter *adapter, queue_t *q, mblk_t *mp);
usr/src/uts/common/io/ntxn/unm_nic_main.c
107
static void unm_nic_ioctl(struct unm_adapter_s *adapter, int cmd, queue_t *q,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1076
unm_return_dma_handle(adapter, head, tail, hdl_reserved);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1078
UNM_SPIN_UNLOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1083
unm_nic_xmit_frame(unm_adapter *adapter, mblk_t *mp)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1088
adapter->stats.xmitcalled++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1092
if (pktinfo.total_len <= adapter->tx_bcopy_threshold ||
usr/src/uts/common/io/ntxn/unm_nic_main.c
1097
status = unm_send_mapped(adapter, mp, &pktinfo);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1100
if (pktinfo.total_len <= adapter->maxmtu)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1101
return (unm_send_copy(adapter, mp, &pktinfo));
usr/src/uts/common/io/ntxn/unm_nic_main.c
1105
adapter->stats.txdropped++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1113
unm_nic_check_temp(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1118
if ((adapter->ahw.revision_id == NX_P3_A2) ||
usr/src/uts/common/io/ntxn/unm_nic_main.c
1119
(adapter->ahw.revision_id == NX_P3_A0))
usr/src/uts/common/io/ntxn/unm_nic_main.c
1122
temp = adapter->unm_nic_pci_read_normalize(adapter, CRB_TEMP_STATE);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1133
if (adapter->temp == NX_TEMP_NORMAL) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
1139
if (adapter->temp == NX_TEMP_WARN) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
1146
adapter->temp = temp_state;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1153
unm_adapter *adapter = v;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1155
if ((adapter->portnum == 0) && unm_nic_check_temp(adapter)) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
1163
unm_nic_handle_phy_intr(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1168
adapter->watchdog_timer = timeout(&unm_watchdog,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1169
adapter, 2 * drv_usectohz(1000000));
usr/src/uts/common/io/ntxn/unm_nic_main.c
1173
static void unm_nic_clear_stats(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1175
(void) memset(&adapter->stats, 0, sizeof (adapter->stats));
usr/src/uts/common/io/ntxn/unm_nic_main.c
1179
unm_nic_poll(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1183
adapter->stats.polled++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1186
tx_complete = unm_process_cmd_ring(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1187
work_done = unm_process_rcv_ring(adapter, NX_RX_MAXBUFS);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1191
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1192
unm_nic_enable_int(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1193
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1200
unm_adapter *adapter = (unm_adapter *)(uintptr_t)data;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1202
if (unm_nic_clear_int(adapter))
usr/src/uts/common/io/ntxn/unm_nic_main.c
1205
unm_nic_poll(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1228
unm_process_rcv(unm_adapter *adapter, statusDesc_t *desc)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1230
unm_recv_context_t *recv_ctx = &(adapter->recv_ctx[0]);
usr/src/uts/common/io/ntxn/unm_nic_main.c
125
unm_pci_alloc_consistent(unm_adapter *adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1258
pkt_length + poff + (adapter->ahw.cut_through ? 0 :
usr/src/uts/common/io/ntxn/unm_nic_main.c
1265
docopy = (pkt_length <= adapter->rx_bcopy_threshold) ? 1 : 0;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1274
adapter->stats.rxbufshort++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1279
adapter->stats.allocbfailed++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1286
adapter->stats.rxcopyed++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1294
adapter->stats.desballocfailed++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1300
adapter->stats.rxmapped++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1306
adapter->stats.csummed++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1314
adapter->stats.no_rcv++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1315
adapter->stats.rxbytes += pkt_length;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1316
adapter->stats.uphappy++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1327
unm_process_rcv_ring(unm_adapter *adapter, int max)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1329
unm_recv_context_t *recv_ctx = &(adapter->recv_ctx[0]);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1339
adapter->MaxRxDescCount, sizeof (statusDesc_t),
usr/src/uts/common/io/ntxn/unm_nic_main.c
1347
mp = unm_process_rcv(adapter, desc);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1350
consumer = (consumer + 1) % adapter->MaxRxDescCount;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1353
mac_rx(adapter->mach, NULL, mp);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1356
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
1358
unm_post_rx_buffers_nodb(adapter, ring);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1363
count, adapter->MaxRxDescCount, sizeof (statusDesc_t),
usr/src/uts/common/io/ntxn/unm_nic_main.c
1369
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1370
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1372
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1380
unm_process_cmd_ring(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
139
err = ddi_dma_alloc_handle(adapter->dip,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1390
(void) ddi_dma_sync(adapter->ctxDesc_dma_handle, sizeof (RingContext),
usr/src/uts/common/io/ntxn/unm_nic_main.c
1393
last_consumer = adapter->lastCmdConsumer;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1394
consumer = *(adapter->cmdConsumer);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1397
buffer = &adapter->cmd_buf_arr[last_consumer];
usr/src/uts/common/io/ntxn/unm_nic_main.c
140
&adapter->gc_dma_attr_desc,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1424
adapter->MaxTxDescCount);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1432
UNM_SPIN_LOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1433
adapter->lastCmdConsumer = last_consumer;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1434
adapter->freecmds += count;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1437
doresched = adapter->resched_needed;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1439
adapter->resched_needed = 0;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1442
unm_return_dma_handle(adapter, head, tail, free_hdls);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1444
UNM_SPIN_UNLOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1447
mac_tx_update(adapter->mach);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1450
(void) ddi_dma_sync(adapter->ctxDesc_dma_handle, sizeof (RingContext),
usr/src/uts/common/io/ntxn/unm_nic_main.c
1453
consumer = *(adapter->cmdConsumer);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1454
done = (adapter->lastCmdConsumer == consumer);
usr/src/uts/common/io/ntxn/unm_nic_main.c
149
size, &adapter->gc_attr_desc,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1499
post_rx_doorbell(struct unm_adapter_s *adapter, uint32_t ringid, int count)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1512
msg.CtxId = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1515
(void *)(DB_NORMALIZE(adapter, UNM_RCV_PRODUCER_OFFSET)));
usr/src/uts/common/io/ntxn/unm_nic_main.c
1519
unm_post_rx_buffers(struct unm_adapter_s *adapter, uint32_t ringid)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1521
unm_recv_context_t *recv_ctx = &(adapter->recv_ctx[0]);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1551
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1552
adapter->unm_nic_hw_write_wx(adapter, rcv_desc->host_rx_producer,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1554
if (adapter->fw_major < 4)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1555
post_rx_doorbell(adapter, ringid, count);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1556
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1562
unm_post_rx_buffers_nodb(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1565
unm_recv_context_t *recv_ctx = &(adapter->recv_ctx[0]);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1582
adapter->stats.outofrxbuf++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1600
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1601
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1603
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1608
unm_nic_fill_statistics_128M(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1612
if (adapter->ahw.board_type == UNM_NIC_XGBE) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
1613
UNM_WRITE_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1614
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1648
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1649
UNM_WRITE_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1651
UNM_SPIN_LOCK_ISR(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1652
unm_stats->tx_bytes = adapter->stats.txbytes;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1653
unm_stats->tx_packets = adapter->stats.xmitedframes +
usr/src/uts/common/io/ntxn/unm_nic_main.c
1654
adapter->stats.xmitfinished;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1655
unm_stats->rx_bytes = adapter->stats.rxbytes;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1656
unm_stats->rx_packets = adapter->stats.no_rcv;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1657
unm_stats->rx_errors = adapter->stats.rcvdbadmsg;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1658
unm_stats->tx_errors = adapter->stats.nocmddescriptor;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1659
unm_stats->rx_short_length_error = adapter->stats.uplcong;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1660
unm_stats->rx_long_length_error = adapter->stats.uphcong;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1663
UNM_SPIN_UNLOCK_ISR(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1669
unm_nic_fill_statistics_2M(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1672
if (adapter->ahw.board_type == UNM_NIC_XGBE) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
1673
(void) unm_nic_hw_read_wx_2M(adapter, UNM_NIU_XGE_TX_BYTE_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1675
(void) unm_nic_hw_read_wx_2M(adapter, UNM_NIU_XGE_TX_FRAME_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1677
(void) unm_nic_hw_read_wx_2M(adapter, UNM_NIU_XGE_RX_BYTE_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1679
(void) unm_nic_hw_read_wx_2M(adapter, UNM_NIU_XGE_RX_FRAME_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1681
(void) unm_nic_hw_read_wx_2M(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1683
(void) unm_nic_hw_read_wx_2M(adapter, UNM_NIU_XGE_CRC_ERROR_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1685
(void) unm_nic_hw_read_wx_2M(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1688
(void) unm_nic_hw_read_wx_2M(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1692
UNM_SPIN_LOCK_ISR(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1693
unm_stats->tx_bytes = adapter->stats.txbytes;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1694
unm_stats->tx_packets = adapter->stats.xmitedframes +
usr/src/uts/common/io/ntxn/unm_nic_main.c
1695
adapter->stats.xmitfinished;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1696
unm_stats->rx_bytes = adapter->stats.rxbytes;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1697
unm_stats->rx_packets = adapter->stats.no_rcv;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1698
unm_stats->rx_errors = adapter->stats.rcvdbadmsg;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1699
unm_stats->tx_errors = adapter->stats.nocmddescriptor;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1700
unm_stats->rx_short_length_error = adapter->stats.uplcong;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1701
unm_stats->rx_long_length_error = adapter->stats.uphcong;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1704
UNM_SPIN_UNLOCK_ISR(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1710
unm_nic_clear_statistics_128M(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1715
UNM_WRITE_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1716
unm_nic_pci_change_crbwindow_128M(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1735
unm_nic_pci_change_crbwindow_128M(adapter, 1);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1736
UNM_WRITE_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1737
unm_nic_clear_stats(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1742
unm_nic_clear_statistics_2M(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1746
(void) unm_nic_hw_write_wx_2M(adapter, UNM_NIU_XGE_TX_BYTE_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1748
(void) unm_nic_hw_write_wx_2M(adapter, UNM_NIU_XGE_TX_FRAME_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1750
(void) unm_nic_hw_write_wx_2M(adapter, UNM_NIU_XGE_RX_BYTE_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1752
(void) unm_nic_hw_write_wx_2M(adapter, UNM_NIU_XGE_RX_FRAME_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1754
(void) unm_nic_hw_write_wx_2M(adapter, UNM_NIU_XGE_AGGR_ERROR_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1756
(void) unm_nic_hw_write_wx_2M(adapter, UNM_NIU_XGE_CRC_ERROR_CNT,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1758
(void) unm_nic_hw_write_wx_2M(adapter, UNM_NIU_XGE_OVERSIZE_FRAME_ERR,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1760
(void) unm_nic_hw_write_wx_2M(adapter, UNM_NIU_XGE_UNDERSIZE_FRAME_ERR,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1762
unm_nic_clear_stats(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1771
unm_nic_ioctl(struct unm_adapter_s *adapter, int cmd, queue_t *q, mblk_t *mp)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1777
(void) unm_nic_do_ioctl(adapter, q, mp);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1802
unm_nic_resume(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1805
adapter->watchdog_timer = timeout((void (*)(void *))&unm_watchdog,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1806
(void *) adapter, 50000);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1808
if (adapter->intr_type == DDI_INTR_TYPE_MSI)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1809
(void) ddi_intr_block_enable(&adapter->intr_handle, 1);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1811
(void) ddi_intr_enable(adapter->intr_handle);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1812
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1813
unm_nic_enable_int(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1814
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1816
mac_link_update(adapter->mach, LINK_STATE_UP);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1822
unm_nic_suspend(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1824
mac_link_update(adapter->mach, LINK_STATE_DOWN);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1826
(void) untimeout(adapter->watchdog_timer);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1828
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1829
unm_nic_disable_int(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1830
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1831
if (adapter->intr_type == DDI_INTR_TYPE_MSI)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1832
(void) ddi_intr_block_disable(&adapter->intr_handle, 1);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1834
(void) ddi_intr_disable(adapter->intr_handle);
usr/src/uts/common/io/ntxn/unm_nic_main.c
1840
unm_nic_do_ioctl(unm_adapter *adapter, queue_t *wq, mblk_t *mp)
usr/src/uts/common/io/ntxn/unm_nic_main.c
1866
if ((retval = adapter->unm_nic_hw_read_ioctl(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1879
if ((data.rv = adapter->unm_nic_hw_write_ioctl(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1891
if ((data.rv = adapter->unm_nic_pci_mem_read(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1903
if ((data.rv = adapter->unm_nic_pci_mem_write(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1919
if (adapter->pci_cfg_handle != NULL) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
1920
conf_handle = adapter->pci_cfg_handle;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1922
} else if ((retval = pci_config_setup(adapter->dip,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1929
adapter->pci_cfg_handle = conf_handle;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1950
if (adapter->pci_cfg_handle != NULL) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
1951
conf_handle = adapter->pci_cfg_handle;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1952
} else if ((retval = pci_config_setup(adapter->dip,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1958
adapter->pci_cfg_handle = conf_handle;
usr/src/uts/common/io/ntxn/unm_nic_main.c
1979
data.rv = adapter->unm_nic_fill_statistics(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
1986
data.rv = adapter->unm_nic_clear_statistics(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2001
efuse_chip_id = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2004
efuse_chip_id |= adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2011
cmn_err(CE_WARN, "%s%d: bad command %d\n", adapter->name,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2012
adapter->instance, data.cmd);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2068
unm_adapter *adapter;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2074
adapter = ksp->ks_private;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2077
(knp++)->value.ui32 = adapter->freehdls;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2078
(knp++)->value.ui64 = adapter->freecmds;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2079
(knp++)->value.ui64 = adapter->tx_bcopy_threshold;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2080
(knp++)->value.ui64 = adapter->rx_bcopy_threshold;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2082
(knp++)->value.ui64 = adapter->stats.xmitcalled;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2083
(knp++)->value.ui64 = adapter->stats.xmitedframes;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2084
(knp++)->value.ui64 = adapter->stats.xmitfinished;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2085
(knp++)->value.ui64 = adapter->stats.txbytes;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2086
(knp++)->value.ui64 = adapter->stats.txcopyed;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2087
(knp++)->value.ui64 = adapter->stats.txmapped;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2088
(knp++)->value.ui64 = adapter->stats.outoftxdmahdl;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2089
(knp++)->value.ui64 = adapter->stats.outofcmddesc;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2090
(knp++)->value.ui64 = adapter->stats.txdropped;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2091
(knp++)->value.ui64 = adapter->stats.polled;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2092
(knp++)->value.ui64 = adapter->stats.uphappy;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2093
(knp++)->value.ui64 = adapter->stats.updropped;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2094
(knp++)->value.ui64 = adapter->stats.csummed;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2095
(knp++)->value.ui64 = adapter->stats.no_rcv;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2096
(knp++)->value.ui64 = adapter->stats.rxbytes;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2097
(knp++)->value.ui64 = adapter->stats.rxcopyed;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2098
(knp++)->value.ui64 = adapter->stats.rxmapped;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2099
(knp++)->value.ui64 = adapter->stats.desballocfailed;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2100
(knp++)->value.ui64 = adapter->stats.outofrxbuf;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2101
(knp++)->value.ui64 = adapter->stats.promiscmode;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2102
(knp++)->value.ui64 = adapter->stats.rxbufshort;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2103
(knp++)->value.ui64 = adapter->stats.allocbfailed;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2109
unm_setup_named_kstat(unm_adapter *adapter, int instance, char *name,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2124
ksp->ks_private = adapter;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2153
unm_init_kstats(unm_adapter* adapter, int instance)
usr/src/uts/common/io/ntxn/unm_nic_main.c
2155
adapter->kstats[0] = unm_setup_named_kstat(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
216
unm_nic_disable_int(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
2161
unm_fini_kstats(unm_adapter* adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
2164
if (adapter->kstats[0] != NULL) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2165
kstat_delete(adapter->kstats[0]);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2166
adapter->kstats[0] = NULL;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2171
unm_nic_set_pauseparam(unm_adapter *adapter, unm_pauseparam_t *pause)
usr/src/uts/common/io/ntxn/unm_nic_main.c
2175
if (adapter->ahw.board_type == UNM_NIC_GBE) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2176
if (unm_niu_gbe_set_rx_flow_ctl(adapter, pause->rx_pause))
usr/src/uts/common/io/ntxn/unm_nic_main.c
2179
if (unm_niu_gbe_set_tx_flow_ctl(adapter, pause->tx_pause))
usr/src/uts/common/io/ntxn/unm_nic_main.c
2182
} else if (adapter->ahw.board_type == UNM_NIC_XGBE) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2183
if (unm_niu_xg_set_tx_flow_ctl(adapter, pause->tx_pause))
usr/src/uts/common/io/ntxn/unm_nic_main.c
2197
unm_adapter *adapter = arg;
usr/src/uts/common/io/ntxn/unm_nic_main.c
220
adapter->unm_nic_hw_write_wx(adapter, adapter->interrupt_crb,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2200
UNM_SPIN_LOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2201
if (adapter->is_up == UNM_ADAPTER_UP_MAGIC) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2202
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2206
if (create_rxtx_rings(adapter) != DDI_SUCCESS) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2207
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2211
if (init_firmware(adapter) != DDI_SUCCESS) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2212
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2214
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2218
unm_nic_clear_stats(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2220
if (unm_nic_hw_resources(adapter) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2221
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2223
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2227
if (adapter->fw_major < 4) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2228
adapter->crb_addr_cmd_producer =
usr/src/uts/common/io/ntxn/unm_nic_main.c
2229
crb_cmd_producer[adapter->portnum];
usr/src/uts/common/io/ntxn/unm_nic_main.c
2230
adapter->crb_addr_cmd_consumer =
usr/src/uts/common/io/ntxn/unm_nic_main.c
2231
crb_cmd_consumer[adapter->portnum];
usr/src/uts/common/io/ntxn/unm_nic_main.c
2232
unm_nic_update_cmd_producer(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2233
unm_nic_update_cmd_consumer(adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2236
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2237
if (unm_post_rx_buffers(adapter, ring) != DDI_SUCCESS) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2238
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2243
if (unm_nic_macaddr_set(adapter, adapter->mac_addr) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2244
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2246
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_main.c
225
unm_nic_clear_int(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
2250
if (unm_nic_init_port(adapter) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2251
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2253
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2257
unm_nic_set_link_parameters(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2262
if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2263
if (unm_nic_set_promisc_mode(adapter) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2264
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2266
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2270
nx_p3_nic_set_multi(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2272
adapter->stats.promiscmode = 1;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2274
if (unm_nic_set_mtu(adapter, adapter->mtu) != 0) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2275
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2277
adapter->name, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2281
adapter->watchdog_timer = timeout((void (*)(void *))&unm_watchdog,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2282
(void *)adapter, 0);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2284
adapter->is_up = UNM_ADAPTER_UP_MAGIC;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2286
if (adapter->intr_type == DDI_INTR_TYPE_MSI)
usr/src/uts/common/io/ntxn/unm_nic_main.c
2287
(void) ddi_intr_block_enable(&adapter->intr_handle, 1);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2289
(void) ddi_intr_enable(adapter->intr_handle);
usr/src/uts/common/io/ntxn/unm_nic_main.c
229
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2290
unm_nic_enable_int(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2292
UNM_SPIN_UNLOCK(&adapter->lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2296
unm_nic_stop_port(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2298
unm_free_hw_resources(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2300
destroy_rxtx_rings(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
232
if (!UNM_IS_MSI_FAMILY(adapter)) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2333
struct unm_adapter_s *adapter = arg;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2335
err = on ? unm_nic_set_promisc_mode(adapter) :
usr/src/uts/common/io/ntxn/unm_nic_main.c
2336
unm_nic_unset_promisc_mode(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2348
struct unm_adapter_s *adapter = arg;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2349
struct unm_adapter_stats *portstat = &adapter->stats;
usr/src/uts/common/io/ntxn/unm_nic_main.c
235
adapter->unm_nic_pci_read_immediate(adapter, ISR_INT_VECTOR,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2353
if (adapter->ahw.board_type == UNM_NIC_XGBE) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
238
if (!(status & adapter->legacy_intr.int_vec_bit)) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
239
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2419
struct unm_adapter_s *adapter = arg;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2423
if (unm_nic_macaddr_set(adapter, (uint8_t *)mac))
usr/src/uts/common/io/ntxn/unm_nic_main.c
2425
bcopy(mac, adapter->mac_addr, ETHERADDRL);
usr/src/uts/common/io/ntxn/unm_nic_main.c
243
if (adapter->ahw.revision_id >= NX_P3_B1) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2433
unm_adapter *adapter = arg;
usr/src/uts/common/io/ntxn/unm_nic_main.c
244
adapter->unm_nic_pci_read_immediate(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2440
if (unm_nic_xmit_frame(adapter, mp) != B_TRUE) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2445
adapter->stats.xmitedframes++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2456
struct unm_adapter_s *adapter = (struct unm_adapter_s *)arg;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2463
status = unm_nd_ioctl(adapter, wq, mp, iocp);
usr/src/uts/common/io/ntxn/unm_nic_main.c
247
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2487
unm_nic_ioctl(adapter, cmd, wq, mp);
usr/src/uts/common/io/ntxn/unm_nic_main.c
250
} else if (NX_IS_REVISION_P2(adapter->ahw.revision_id)) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
251
our_int = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
2544
unm_register_mac(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
255
if ((our_int & (0x80 << adapter->portnum)) == 0) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2550
dev_info_t *dip = adapter->dip;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2558
macp->m_driver = adapter;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2560
macp->m_instance = adapter->instance;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2561
macp->m_src_addr = adapter->mac_addr;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2564
macp->m_max_sdu = adapter->mtu;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2569
ret = mac_register(macp, &adapter->mach);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2573
adapter->portnum);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2577
unm_init_kstats(adapter, adapter->instance);
usr/src/uts/common/io/ntxn/unm_nic_main.c
258
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
2580
if (unm_nd_init(adapter)) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2585
pause.rx_pause = adapter->nd_params[PARAM_ADV_PAUSE_CAP].ndp_val;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2586
pause.tx_pause = adapter->nd_params[PARAM_ADV_ASYM_PAUSE_CAP].ndp_val;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2588
if (unm_nic_set_pauseparam(adapter, &pause)) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
2592
adapter->nd_params[PARAM_PAUSE_CAP].ndp_val = pause.rx_pause;
usr/src/uts/common/io/ntxn/unm_nic_main.c
2593
adapter->nd_params[PARAM_ASYM_PAUSE_CAP].ndp_val = pause.tx_pause;
usr/src/uts/common/io/ntxn/unm_nic_main.c
262
temp = our_int & ~((u32)(0x80 << adapter->portnum));
usr/src/uts/common/io/ntxn/unm_nic_main.c
263
adapter->unm_nic_pci_write_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
267
if (adapter->fw_major < 4)
usr/src/uts/common/io/ntxn/unm_nic_main.c
268
unm_nic_disable_int(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
272
adapter->unm_nic_pci_write_immediate(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
273
adapter->legacy_intr.tgt_status_reg, &temp);
usr/src/uts/common/io/ntxn/unm_nic_main.c
275
adapter->unm_nic_pci_read_immediate(adapter, ISR_INT_VECTOR,
usr/src/uts/common/io/ntxn/unm_nic_main.c
282
adapter->unm_nic_pci_read_immediate(adapter, ISR_INT_VECTOR,
usr/src/uts/common/io/ntxn/unm_nic_main.c
284
} else if (adapter->flags & UNM_NIC_MSI_ENABLED) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
287
adapter->unm_nic_pci_write_immediate(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
288
msi_tgt_status[adapter->ahw.pci_func], &temp);
usr/src/uts/common/io/ntxn/unm_nic_main.c
291
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
297
unm_nic_enable_int(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
301
adapter->unm_nic_hw_write_wx(adapter, adapter->interrupt_crb,
usr/src/uts/common/io/ntxn/unm_nic_main.c
304
if (!UNM_IS_MSI_FAMILY(adapter)) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
307
adapter->unm_nic_pci_write_immediate(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
308
adapter->legacy_intr.tgt_mask_reg, &mask);
usr/src/uts/common/io/ntxn/unm_nic_main.c
313
unm_free_hw_resources(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
319
if (adapter->context_alloced == 1) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
320
netxen_destroy_rxtx(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
321
adapter->context_alloced = 0;
usr/src/uts/common/io/ntxn/unm_nic_main.c
324
if (adapter->ctxDesc != NULL) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
325
unm_pci_free_consistent(&adapter->ctxDesc_dma_handle,
usr/src/uts/common/io/ntxn/unm_nic_main.c
326
&adapter->ctxDesc_acc_handle);
usr/src/uts/common/io/ntxn/unm_nic_main.c
327
adapter->ctxDesc = NULL;
usr/src/uts/common/io/ntxn/unm_nic_main.c
330
if (adapter->ahw.cmdDescHead != NULL) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
331
unm_pci_free_consistent(&adapter->ahw.cmd_desc_dma_handle,
usr/src/uts/common/io/ntxn/unm_nic_main.c
332
&adapter->ahw.cmd_desc_acc_handle);
usr/src/uts/common/io/ntxn/unm_nic_main.c
333
adapter->ahw.cmdDesc_physAddr = 0;
usr/src/uts/common/io/ntxn/unm_nic_main.c
334
adapter->ahw.cmdDescHead = NULL;
usr/src/uts/common/io/ntxn/unm_nic_main.c
338
recv_ctx = &adapter->recv_ctx[ctx];
usr/src/uts/common/io/ntxn/unm_nic_main.c
339
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
362
cleanup_adapter(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
364
ddi_regs_map_free(&(adapter->regs_handle));
usr/src/uts/common/io/ntxn/unm_nic_main.c
365
ddi_regs_map_free(&(adapter->db_handle));
usr/src/uts/common/io/ntxn/unm_nic_main.c
366
kmem_free(adapter, sizeof (unm_adapter));
usr/src/uts/common/io/ntxn/unm_nic_main.c
370
unm_nic_remove(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
372
mac_link_update(adapter->mach, LINK_STATE_DOWN);
usr/src/uts/common/io/ntxn/unm_nic_main.c
373
unm_nic_stop_port(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
375
if (adapter->interrupt_crb) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
376
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
377
unm_nic_disable_int(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
378
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
380
(void) untimeout(adapter->watchdog_timer);
usr/src/uts/common/io/ntxn/unm_nic_main.c
382
unm_free_hw_resources(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
384
if (adapter->is_up == UNM_ADAPTER_UP_MAGIC)
usr/src/uts/common/io/ntxn/unm_nic_main.c
385
destroy_rxtx_rings(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
387
if (adapter->portnum == 0)
usr/src/uts/common/io/ntxn/unm_nic_main.c
388
unm_free_dummy_dma(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
390
unm_destroy_intr(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
392
ddi_set_driver_private(adapter->dip, NULL);
usr/src/uts/common/io/ntxn/unm_nic_main.c
393
cleanup_adapter(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
397
init_firmware(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
402
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
403
state = adapter->unm_nic_pci_read_normalize(adapter, CRB_CMDPEG_STATE);
usr/src/uts/common/io/ntxn/unm_nic_main.c
404
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
412
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
413
state = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
415
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
421
adapter->name, adapter->instance, state);
usr/src/uts/common/io/ntxn/unm_nic_main.c
426
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
428
adapter->unm_nic_hw_write_wx(adapter, CRB_NIC_CAPABILITIES_HOST,
usr/src/uts/common/io/ntxn/unm_nic_main.c
431
adapter->unm_nic_hw_write_wx(adapter, CRB_NIC_MSI_MODE_HOST,
usr/src/uts/common/io/ntxn/unm_nic_main.c
434
adapter->unm_nic_hw_write_wx(adapter, CRB_MPORT_MODE, &tempout, 4);
usr/src/uts/common/io/ntxn/unm_nic_main.c
436
adapter->unm_nic_hw_write_wx(adapter, CRB_CMDPEG_STATE, &tempout, 4);
usr/src/uts/common/io/ntxn/unm_nic_main.c
437
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
448
receive_peg_ready(struct unm_adapter_s *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
454
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
455
state = adapter->unm_nic_pci_read_normalize(adapter, CRB_RCVPEG_STATE);
usr/src/uts/common/io/ntxn/unm_nic_main.c
456
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
462
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
463
state = adapter->unm_nic_pci_read_normalize(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
465
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
484
unm_nic_hw_resources(unm_adapter *adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
486
hardware_context *hw = &adapter->ahw;
usr/src/uts/common/io/ntxn/unm_nic_main.c
495
if (err = receive_peg_ready(adapter))
usr/src/uts/common/io/ntxn/unm_nic_main.c
500
err = unm_pci_alloc_consistent(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
502
&adapter->ctxDesc_dma_handle,
usr/src/uts/common/io/ntxn/unm_nic_main.c
503
&adapter->ctxDesc_acc_handle);
usr/src/uts/common/io/ntxn/unm_nic_main.c
509
adapter->ctxDesc_physAddr = cookie.dmac_laddress;
usr/src/uts/common/io/ntxn/unm_nic_main.c
513
adapter->ctxDesc = (RingContext *) addr;
usr/src/uts/common/io/ntxn/unm_nic_main.c
514
adapter->ctxDesc->CtxId = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_nic_main.c
515
adapter->ctxDesc->CMD_CONSUMER_OFFSET =
usr/src/uts/common/io/ntxn/unm_nic_main.c
516
adapter->ctxDesc_physAddr + sizeof (RingContext);
usr/src/uts/common/io/ntxn/unm_nic_main.c
517
adapter->cmdConsumer =
usr/src/uts/common/io/ntxn/unm_nic_main.c
520
ASSERT(!((unsigned long)adapter->ctxDesc_physAddr & 0x3f));
usr/src/uts/common/io/ntxn/unm_nic_main.c
525
size = (sizeof (cmdDescType0_t) * adapter->MaxTxDescCount);
usr/src/uts/common/io/ntxn/unm_nic_main.c
526
err = unm_pci_alloc_consistent(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
539
recv_ctx = &adapter->recv_ctx[ctx];
usr/src/uts/common/io/ntxn/unm_nic_main.c
541
size = (sizeof (statusDesc_t)* adapter->MaxRxDescCount);
usr/src/uts/common/io/ntxn/unm_nic_main.c
542
err = unm_pci_alloc_consistent(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
558
for (ring = 0; ring < adapter->max_rds_rings; ring++) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
561
size = (sizeof (rcvDesc_t) * adapter->MaxRxDescCount);
usr/src/uts/common/io/ntxn/unm_nic_main.c
562
err = unm_pci_alloc_consistent(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
579
if (err = netxen_create_rxtx(adapter))
usr/src/uts/common/io/ntxn/unm_nic_main.c
581
adapter->context_alloced = 1;
usr/src/uts/common/io/ntxn/unm_nic_main.c
588
unm_free_hw_resources(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
615
unm_nic_update_cmd_producer(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
620
if (adapter->crb_addr_cmd_producer) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
621
UNM_READ_LOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
622
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
623
adapter->crb_addr_cmd_producer, &data, 4);
usr/src/uts/common/io/ntxn/unm_nic_main.c
624
UNM_READ_UNLOCK(&adapter->adapter_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
629
unm_nic_update_cmd_consumer(struct unm_adapter_s *adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
634
if (adapter->crb_addr_cmd_consumer)
usr/src/uts/common/io/ntxn/unm_nic_main.c
635
adapter->unm_nic_hw_write_wx(adapter,
usr/src/uts/common/io/ntxn/unm_nic_main.c
636
adapter->crb_addr_cmd_consumer, &data, 4);
usr/src/uts/common/io/ntxn/unm_nic_main.c
764
unm_send_copy(struct unm_adapter_s *adapter, mblk_t *mp, pktinfo_t *pktinfo)
usr/src/uts/common/io/ntxn/unm_nic_main.c
776
hw = &adapter->ahw;
usr/src/uts/common/io/ntxn/unm_nic_main.c
777
MaxTxDescCount = adapter->MaxTxDescCount;
usr/src/uts/common/io/ntxn/unm_nic_main.c
779
UNM_SPIN_LOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
782
if (find_diff_among(adapter->cmdProducer, adapter->lastCmdConsumer,
usr/src/uts/common/io/ntxn/unm_nic_main.c
784
adapter->stats.outofcmddesc++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
785
adapter->resched_needed = 1;
usr/src/uts/common/io/ntxn/unm_nic_main.c
787
UNM_SPIN_UNLOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
790
adapter->freecmds -= no_of_desc;
usr/src/uts/common/io/ntxn/unm_nic_main.c
792
producer = adapter->cmdProducer;
usr/src/uts/common/io/ntxn/unm_nic_main.c
794
adapter->cmdProducer = get_index_range(adapter->cmdProducer,
usr/src/uts/common/io/ntxn/unm_nic_main.c
799
pbuf = &adapter->cmd_buf_arr[producer];
usr/src/uts/common/io/ntxn/unm_nic_main.c
826
hwdesc->u3.s1.port = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_nic_main.c
827
hwdesc->u3.s1.ctx_id = adapter->portnum;
usr/src/uts/common/io/ntxn/unm_nic_main.c
843
hw->cmdProducer = adapter->cmdProducer;
usr/src/uts/common/io/ntxn/unm_nic_main.c
844
unm_nic_update_cmd_producer(adapter, adapter->cmdProducer);
usr/src/uts/common/io/ntxn/unm_nic_main.c
846
adapter->stats.txbytes += pktinfo->total_len;
usr/src/uts/common/io/ntxn/unm_nic_main.c
847
adapter->stats.xmitfinished++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
848
adapter->stats.txcopyed++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
849
UNM_SPIN_UNLOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
857
unm_return_dma_handle(unm_adapter *adapter, unm_dmah_node_t *head,
usr/src/uts/common/io/ntxn/unm_nic_main.c
861
tail->next = adapter->dmahdl_pool;
usr/src/uts/common/io/ntxn/unm_nic_main.c
862
adapter->dmahdl_pool = head;
usr/src/uts/common/io/ntxn/unm_nic_main.c
863
adapter->freehdls += num;
usr/src/uts/common/io/ntxn/unm_nic_main.c
867
unm_reserve_dma_handle(unm_adapter* adapter)
usr/src/uts/common/io/ntxn/unm_nic_main.c
871
dmah = adapter->dmahdl_pool;
usr/src/uts/common/io/ntxn/unm_nic_main.c
873
adapter->dmahdl_pool = dmah->next;
usr/src/uts/common/io/ntxn/unm_nic_main.c
875
adapter->freehdls--;
usr/src/uts/common/io/ntxn/unm_nic_main.c
883
unm_send_mapped(struct unm_adapter_s *adapter, mblk_t *mp, pktinfo_t *pktinfo)
usr/src/uts/common/io/ntxn/unm_nic_main.c
902
MaxTxDescCount = adapter->MaxTxDescCount;
usr/src/uts/common/io/ntxn/unm_nic_main.c
904
UNM_SPIN_LOCK(&adapter->tx_lock);
usr/src/uts/common/io/ntxn/unm_nic_main.c
912
dmah = unm_reserve_dma_handle(adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
914
adapter->stats.outoftxdmahdl++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
97
extern int create_rxtx_rings(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
971
hw = &adapter->ahw;
usr/src/uts/common/io/ntxn/unm_nic_main.c
975
if (find_diff_among(adapter->cmdProducer, adapter->lastCmdConsumer,
usr/src/uts/common/io/ntxn/unm_nic_main.c
98
extern void destroy_rxtx_rings(unm_adapter *adapter);
usr/src/uts/common/io/ntxn/unm_nic_main.c
981
if (pktinfo->total_len > adapter->maxmtu) {
usr/src/uts/common/io/ntxn/unm_nic_main.c
982
adapter->stats.outofcmddesc++;
usr/src/uts/common/io/ntxn/unm_nic_main.c
983
adapter->resched_needed = 1;
usr/src/uts/common/io/ntxn/unm_nic_main.c
988
adapter->freecmds -= no_of_desc;
usr/src/uts/common/io/ntxn/unm_nic_main.c
991
producer = adapter->cmdProducer;
usr/src/uts/common/io/ntxn/unm_nic_main.c
995
pbuf = &adapter->cmd_buf_arr[producer];
usr/src/uts/common/io/rsm/rsm.c
1061
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
1081
adapter = rsmka_lookup_adapter(adapter_devname, instance);
usr/src/uts/common/io/rsm/rsm.c
1085
return (adapter);
usr/src/uts/common/io/rsm/rsm.c
1679
rsmshare_get(rsm_memseg_id_t key, rsm_node_id_t node, adapter_t *adapter,
usr/src/uts/common/io/rsm/rsm.c
1704
(p->rsmrc_adapter == adapter) &&
usr/src/uts/common/io/rsm/rsm.c
2313
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
2318
adapter = rsm_getadapter(msg, mode);
usr/src/uts/common/io/rsm/rsm.c
2319
if (adapter == NULL) {
usr/src/uts/common/io/rsm/rsm.c
2327
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
2333
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
2346
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
2381
seg->s_adapter = adapter;
usr/src/uts/common/io/rsm/rsm.c
2384
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
2403
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
2411
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
2465
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
2542
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
2543
e = adapter->rsmpi_ops->rsm_rebind(
usr/src/uts/common/io/rsm/rsm.c
2716
int acl_len, adapter_t *adapter)
usr/src/uts/common/io/rsm/rsm.c
2734
acl[i].ae_addr = adapter->hwaddr;
usr/src/uts/common/io/rsm/rsm.c
2736
hwaddr = get_remote_hwaddr(adapter,
usr/src/uts/common/io/rsm/rsm.c
2858
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
2973
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
2977
e = rsmpiacl_create(acl, &rsmpi_acl, acl_len, adapter);
usr/src/uts/common/io/rsm/rsm.c
3004
e = adapter->rsmpi_ops->rsm_seg_create(
usr/src/uts/common/io/rsm/rsm.c
3005
adapter->rsmpi_handle,
usr/src/uts/common/io/rsm/rsm.c
3036
e = adapter->rsmpi_ops->rsm_publish(
usr/src/uts/common/io/rsm/rsm.c
3043
adapter->rsmpi_ops->rsm_seg_destroy(seg->s_handle.out);
usr/src/uts/common/io/rsm/rsm.c
3110
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
3181
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
3185
e = rsmpiacl_create(new_acl, &rsmpi_new_acl, new_acl_len, adapter);
usr/src/uts/common/io/rsm/rsm.c
3199
e = adapter->rsmpi_ops->rsm_republish(seg->s_handle.out,
usr/src/uts/common/io/rsm/rsm.c
3267
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
3352
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
3363
e = adapter->rsmpi_ops->rsm_unpublish(seg->s_handle.out);
usr/src/uts/common/io/rsm/rsm.c
3400
e = adapter->rsmpi_ops->rsm_seg_destroy(seg->s_handle.out);
usr/src/uts/common/io/rsm/rsm.c
4183
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
4203
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
4212
e = adapter->rsmpi_ops->rsm_unpublish(
usr/src/uts/common/io/rsm/rsm.c
4217
e = adapter->rsmpi_ops->rsm_seg_destroy(
usr/src/uts/common/io/rsm/rsm.c
4428
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
4440
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
4452
e = adapter->rsmpi_ops->
usr/src/uts/common/io/rsm/rsm.c
4469
e = adapter->rsmpi_ops->rsm_unmap(seg->s_handle.in);
usr/src/uts/common/io/rsm/rsm.c
4474
e = adapter->rsmpi_ops->
usr/src/uts/common/io/rsm/rsm.c
4741
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
4763
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
4767
hwaddr = get_remote_hwaddr(adapter, sharedp->rsmsi_node);
usr/src/uts/common/io/rsm/rsm.c
4769
e = adapter->rsmpi_ops->rsm_connect(
usr/src/uts/common/io/rsm/rsm.c
4770
adapter->rsmpi_handle, hwaddr,
usr/src/uts/common/io/rsm/rsm.c
4812
e = adapter->rsmpi_ops->rsm_map(
usr/src/uts/common/io/rsm/rsm.c
4852
err = adapter->rsmpi_ops->
usr/src/uts/common/io/rsm/rsm.c
5296
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
5407
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsm.c
5477
e = adapter->rsmpi_ops->rsm_send(ipc_handle, &is,
usr/src/uts/common/io/rsm/rsm.c
5491
e = adapter->rsmpi_ops->rsm_send(ipc_handle, &is,
usr/src/uts/common/io/rsm/rsm.c
5528
e = adapter->rsmpi_ops->rsm_send(ipc_handle, &is, NULL);
usr/src/uts/common/io/rsm/rsm.c
5617
e = adapter->rsmpi_ops->rsm_send(ipc_handle, &is,
usr/src/uts/common/io/rsm/rsm.c
5631
e = adapter->rsmpi_ops->rsm_send(ipc_handle, &is,
usr/src/uts/common/io/rsm/rsm.c
5875
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
5886
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsm.c
5890
my_nodeid, adapter->hwaddr, path->remote_node,
usr/src/uts/common/io/rsm/rsm.c
5911
msg.rsmipc_adapter_hwaddr = adapter->hwaddr;
usr/src/uts/common/io/rsm/rsm.c
5925
e = adapter->rsmpi_ops->rsm_send(ipc_handle, &is, NULL);
usr/src/uts/common/io/rsm/rsm.c
6093
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
6100
adapter = rsm_getadapter(msg, mode);
usr/src/uts/common/io/rsm/rsm.c
6101
if (adapter == NULL) {
usr/src/uts/common/io/rsm/rsm.c
6107
if ((adapter == &loopback_adapter) && (msg->nodeid != my_nodeid)) {
usr/src/uts/common/io/rsm/rsm.c
6108
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6122
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6141
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6153
seg->s_adapter = adapter;
usr/src/uts/common/io/rsm/rsm.c
6161
sharedp = rsmshare_get(msg->key, msg->nodeid, adapter, seg);
usr/src/uts/common/io/rsm/rsm.c
6192
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6227
addr = get_remote_hwaddr(adapter, msg->nodeid);
usr/src/uts/common/io/rsm/rsm.c
6236
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6243
addr = adapter->hwaddr;
usr/src/uts/common/io/rsm/rsm.c
6268
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6282
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6322
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6362
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6394
e = adapter->rsmpi_ops->rsm_connect(
usr/src/uts/common/io/rsm/rsm.c
6395
adapter->rsmpi_handle,
usr/src/uts/common/io/rsm/rsm.c
6404
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
6503
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
6548
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
6551
err = adapter->rsmpi_ops->
usr/src/uts/common/io/rsm/rsm.c
6602
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
6632
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
6655
e = adapter->rsmpi_ops->
usr/src/uts/common/io/rsm/rsm.c
6923
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
6939
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
6947
e = adapter->rsmpi_ops->
usr/src/uts/common/io/rsm/rsm.c
6948
rsm_open_barrier_ctrl(adapter->rsmpi_handle, &msg->bar);
usr/src/uts/common/io/rsm/rsm.c
6951
e = adapter->rsmpi_ops->rsm_order_barrier(&msg->bar);
usr/src/uts/common/io/rsm/rsm.c
6954
e = adapter->rsmpi_ops->rsm_close_barrier(&msg->bar);
usr/src/uts/common/io/rsm/rsm.c
7749
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
7757
adapter = rsm_getadapter(msg, mode);
usr/src/uts/common/io/rsm/rsm.c
7758
if (adapter == NULL) {
usr/src/uts/common/io/rsm/rsm.c
7768
msg->hwaddr = adapter->hwaddr;
usr/src/uts/common/io/rsm/rsm.c
7770
addr = get_remote_hwaddr(adapter, msg->nodeid);
usr/src/uts/common/io/rsm/rsm.c
7780
if (msg->hwaddr == adapter->hwaddr) {
usr/src/uts/common/io/rsm/rsm.c
7783
node = get_remote_nodeid(adapter, msg->hwaddr);
usr/src/uts/common/io/rsm/rsm.c
7796
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
7849
rsmattr_ddi_copyout(adapter_t *adapter, caddr_t arg, int mode)
usr/src/uts/common/io/rsm/rsm.c
7866
adapter->rsm_attr.attr_direct_access_sizes;
usr/src/uts/common/io/rsm/rsm.c
7868
adapter->rsm_attr.attr_atomic_sizes;
usr/src/uts/common/io/rsm/rsm.c
7870
adapter->rsm_attr.attr_page_size;
usr/src/uts/common/io/rsm/rsm.c
7871
if (adapter->rsm_attr.attr_max_export_segment_size >
usr/src/uts/common/io/rsm/rsm.c
7877
adapter->rsm_attr.attr_max_export_segment_size;
usr/src/uts/common/io/rsm/rsm.c
7878
if (adapter->rsm_attr.attr_tot_export_segment_size >
usr/src/uts/common/io/rsm/rsm.c
7884
adapter->rsm_attr.attr_tot_export_segment_size;
usr/src/uts/common/io/rsm/rsm.c
7885
if (adapter->rsm_attr.attr_max_export_segments >
usr/src/uts/common/io/rsm/rsm.c
7891
adapter->rsm_attr.attr_max_export_segments;
usr/src/uts/common/io/rsm/rsm.c
7892
if (adapter->rsm_attr.attr_max_import_map_size >
usr/src/uts/common/io/rsm/rsm.c
7898
adapter->rsm_attr.attr_max_import_map_size;
usr/src/uts/common/io/rsm/rsm.c
7899
if (adapter->rsm_attr.attr_tot_import_map_size >
usr/src/uts/common/io/rsm/rsm.c
7905
adapter->rsm_attr.attr_tot_import_map_size;
usr/src/uts/common/io/rsm/rsm.c
7906
if (adapter->rsm_attr.attr_max_import_segments >
usr/src/uts/common/io/rsm/rsm.c
7912
adapter->rsm_attr.attr_max_import_segments;
usr/src/uts/common/io/rsm/rsm.c
7914
adapter->rsm_attr.attr_controller_addr;
usr/src/uts/common/io/rsm/rsm.c
7927
adapter->rsm_attr.attr_direct_access_sizes;
usr/src/uts/common/io/rsm/rsm.c
7929
adapter->rsm_attr.attr_atomic_sizes;
usr/src/uts/common/io/rsm/rsm.c
7931
adapter->rsm_attr.attr_page_size;
usr/src/uts/common/io/rsm/rsm.c
7933
adapter->rsm_attr.attr_max_export_segment_size;
usr/src/uts/common/io/rsm/rsm.c
7935
adapter->rsm_attr.attr_tot_export_segment_size;
usr/src/uts/common/io/rsm/rsm.c
7937
adapter->rsm_attr.attr_max_export_segments;
usr/src/uts/common/io/rsm/rsm.c
7939
adapter->rsm_attr.attr_max_import_map_size;
usr/src/uts/common/io/rsm/rsm.c
7941
adapter->rsm_attr.attr_tot_import_map_size;
usr/src/uts/common/io/rsm/rsm.c
7943
adapter->rsm_attr.attr_max_import_segments;
usr/src/uts/common/io/rsm/rsm.c
7945
adapter->rsm_attr.attr_controller_addr;
usr/src/uts/common/io/rsm/rsm.c
7966
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
8004
adapter = rsm_getadapter(&msg, mode);
usr/src/uts/common/io/rsm/rsm.c
8005
if (adapter == NULL) {
usr/src/uts/common/io/rsm/rsm.c
8010
error = rsmattr_ddi_copyout(adapter, msg.arg, mode);
usr/src/uts/common/io/rsm/rsm.c
8011
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsm.c
8563
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
8725
adapter = seg->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
8735
error = adapter->rsmpi_ops->rsm_map(
usr/src/uts/common/io/rsm/rsm.c
8824
(void) adapter->rsmpi_ops->
usr/src/uts/common/io/rsm/rsm.c
9157
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsm.c
9263
adapter = segp->s_adapter;
usr/src/uts/common/io/rsm/rsm.c
9275
ret = adapter->rsmpi_ops->rsm_seg_create(
usr/src/uts/common/io/rsm/rsm.c
9276
adapter->rsmpi_handle, &segp->s_handle.out,
usr/src/uts/common/io/rsm/rsm.c
9303
ret = adapter->rsmpi_ops->rsm_publish(
usr/src/uts/common/io/rsm/rsm.c
9314
adapter->rsmpi_ops->rsm_seg_destroy(segp->s_handle.out);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1408
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1467
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1471
adapter->rsmpi_ops->rsm_sendq_destroy(
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1736
adapter_t *adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1751
(p->rsmrc_adapter == adapter)) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1895
rsmka_release_adapter(adapter_t *adapter)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1900
if (adapter == &loopback_adapter) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1906
mutex_enter(&adapter->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1909
ADAPTER_RELE_NOLOCK(adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1916
if (adapter->ref_cnt == 1) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1917
mutex_exit(&adapter->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1919
mutex_destroy(&adapter->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1920
kmem_free(adapter->hdlr_argp, sizeof (srv_handler_arg_t));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1921
kmem_free(adapter, sizeof (adapter_t));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1924
mutex_exit(&adapter->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1937
link_adapter(adapter_t *adapter)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1947
mutex_enter(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1949
listhead = adapter->listhead;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1951
listhead->next_adapter = adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1952
adapter->next = current;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1953
ADAPTER_HOLD(adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1955
adapter->listhead->adapter_count++;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1957
mutex_exit(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1977
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1982
adapter = kmem_zalloc(sizeof (adapter_t), KM_SLEEP);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1983
adapter->instance = instance;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1984
adapter->hwaddr = hwaddr;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1985
adapter->rsmpi_handle = handle;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1986
adapter->rsmpi_ops = ops;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1987
adapter->hdlr_argp = hdlr_argp;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1988
mutex_init(&adapter->mutex, NULL, MUTEX_DEFAULT, NULL);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1989
ADAPTER_HOLD(adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1997
adapter->listhead = listhead;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
1999
link_adapter(adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2003
return (adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2025
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2029
adapter = rsmka_lookup_adapter(adapter_devname, adapter_instance);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2030
ASSERT(adapter != NULL);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2032
mutex_enter(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2035
current = adapter->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2050
mutex_exit(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2051
ADAPTER_RELE(adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2068
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2076
adapter = rsmka_lookup_adapter(adapter_devname, adapter_instance);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2082
if (adapter == NULL)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2085
mutex_enter(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2088
current = adapter->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2102
mutex_exit(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2104
rsmka_release_adapter(adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2119
adapter_t *adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2126
mutex_enter(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2128
first_path = adapter->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2129
adapter->next_path = path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2132
adapter->listhead->path_count++;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2134
mutex_exit(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2150
adapter_t *adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2162
current = adapter->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2175
adapter->next_path = current->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2279
get_remote_nodeid(adapter_t *adapter, rsm_addr_t remote_hwaddr)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2283
path_t *current = adapter->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2287
mutex_enter(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2299
mutex_exit(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2312
get_remote_hwaddr(adapter_t *adapter, rsm_node_id_t remote_node)
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2316
path_t *current = adapter->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2320
mutex_enter(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2330
mutex_exit(&adapter->listhead->mutex);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2666
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2674
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2683
rval = adapter->rsmpi_ops->rsm_sendq_create(adapter->rsmpi_handle,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2799
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2845
adapter = listhead->next_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2846
while (adapter != NULL) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2868
adapter->instance);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2869
connection->hdr.local_hwaddr = adapter->hwaddr;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2873
path = adapter->next_path;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
2886
adapter = adapter->next;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
311
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
377
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
381
adapter->rsmpi_ops->
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
532
adapter = path->local_adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
533
adapter->rsmpi_ops->rsm_sendq_destroy(
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
660
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
745
adapter = init_adapter(name, instance, hwaddr,
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
749
adapter->rsm_attr = *attr;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
758
"rsmka_add_adapter: adapter = %lx\n", adapter));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
763
return ((void *)adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
774
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
787
adapter = (adapter_t *)cookie;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
789
adapter = rsmka_lookup_adapter(name, instance);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
794
ADAPTER_RELE(adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
796
ASSERT(adapter->next_path == NULL);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
798
listhead = adapter->listhead;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
808
if (adapter->instance == current->instance) {
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
871
adapter_t *adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
880
adapter = (adapter_t *)cookie;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
881
ADAPTER_HOLD(adapter);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
883
adapter = rsmka_lookup_adapter(adapter_name, adapter_instance);
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
887
"rsmka_add_path: adapter = %lx\n", adapter));
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
901
path->local_adapter = adapter;
usr/src/uts/common/io/rsm/rsmka_pathmanager.c
929
ADAPTER_RELE(adapter);
usr/src/uts/common/pcmcia/cs/cs.c
7392
gpai->flags = sp->adapter.flags;
usr/src/uts/common/pcmcia/cs/cs.c
7393
(void) strcpy(gpai->name, sp->adapter.name);
usr/src/uts/common/pcmcia/cs/cs.c
7394
gpai->major = sp->adapter.major;
usr/src/uts/common/pcmcia/cs/cs.c
7395
gpai->minor = sp->adapter.minor;
usr/src/uts/common/pcmcia/cs/cs.c
7396
gpai->instance = sp->adapter.instance;
usr/src/uts/common/pcmcia/cs/cs.c
7397
gpai->number = sp->adapter.number;
usr/src/uts/common/pcmcia/cs/cs.c
7398
gpai->num_sockets = sp->adapter.num_sockets;
usr/src/uts/common/pcmcia/cs/cs.c
7399
gpai->first_socket = sp->adapter.first_socket;
usr/src/uts/common/pcmcia/cs/cs.c
7461
mls->PhyAdapter = sp->adapter.number;
usr/src/uts/common/pcmcia/cs/cs.c
8120
sp->adapter.flags = 0;
usr/src/uts/common/pcmcia/cs/cs.c
8121
(void) strcpy(sp->adapter.name, gcad->adapter_info.name);
usr/src/uts/common/pcmcia/cs/cs.c
8122
sp->adapter.major = gcad->adapter_info.major;
usr/src/uts/common/pcmcia/cs/cs.c
8123
sp->adapter.minor = gcad->adapter_info.minor;
usr/src/uts/common/pcmcia/cs/cs.c
8124
sp->adapter.instance = ddi_get_instance(gcad->dip);
usr/src/uts/common/pcmcia/cs/cs.c
8125
sp->adapter.number = gcad->adapter_info.number;
usr/src/uts/common/pcmcia/cs/cs.c
8126
sp->adapter.num_sockets = gcad->adapter_info.num_sockets;
usr/src/uts/common/pcmcia/cs/cs.c
8127
sp->adapter.first_socket = gcad->adapter_info.first_socket;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1141
pcmcia_init_adapter(anp_t *adapter, dev_info_t *dip)
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1153
pcmcia_adapters[i]->pca_iblock = adapter->an_iblock;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1154
pcmcia_adapters[i]->pca_idev = adapter->an_idev;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1155
pcmcia_adapters[i]->pca_if = ls_if = adapter->an_if;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1243
pcmcia_sockets[n]->ls_intr_pri = adapter->an_ipl;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1251
MUTEX_DRIVER, *adapter->an_iblock);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1448
pcm_adapter_callback(dev_info_t *dip, int adapter, int event, int socket)
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1455
(void *)dip, adapter, event, socket);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1460
if (adapter >= pcmcia_num_adapters || adapter < 0) {
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1464
adapter, pcmcia_num_adapters);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
1470
socket = pcm_phys_to_log_socket(pcmcia_adapters[adapter], socket);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3423
SSGetAdapter(get_adapter_t *adapter)
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3428
adapter->state = (unsigned)0xFFFFFFFF;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3429
adapter->SCRouting = 0xFFFFFFFF;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3434
adapter->state &= info.state;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3435
adapter->SCRouting &= info.SCRouting;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3552
SSInquireAdapter(inquire_adapter_t *adapter)
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3554
adapter->NumSockets = pcmcia_num_sockets;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3555
adapter->NumWindows = pcmcia_num_windows;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3556
adapter->NumEDCs = 0;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3562
adapter->AdpCaps = 0; /* need to fix these */
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3568
adapter->ActiveHigh = 0;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3569
adapter->ActiveLow = 0;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3570
adapter->power_entry = pcmcia_power_table; /* until we resolve this */
usr/src/uts/common/pcmcia/nexus/pcmcia.c
3571
adapter->NumPower = pcmcia_num_power;
usr/src/uts/common/pcmcia/nexus/pcmcia.c
375
pcmcia_attach(dev_info_t *dip, anp_t *adapter)
usr/src/uts/common/pcmcia/nexus/pcmcia.c
382
(void *)dip, (void *)adapter);
usr/src/uts/common/pcmcia/nexus/pcmcia.c
423
pcmcia_init_adapter(adapter, dip);
usr/src/uts/common/pcmcia/sys/cs_priv.h
461
cs_adapter_t adapter; /* adapter info */
usr/src/uts/common/sys/rsm/rsm_in.h
148
struct adapter *rsmrc_adapter; /* controller number */
usr/src/uts/common/sys/rsm/rsmka_path_int.h
151
struct adapter *local_adapter;
usr/src/uts/common/sys/rsm/rsmka_path_int.h
171
struct adapter *next;
usr/src/uts/common/sys/rsm/rsmka_path_int.h
250
#define ADAPTER_HOLD(adapter) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
251
mutex_enter(&((adapter)->mutex)); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
252
(adapter)->ref_cnt++; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
253
ASSERT((adapter)->ref_cnt != 0); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
254
mutex_exit(&((adapter)->mutex)); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
257
#define ADAPTER_RELE(adapter) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
258
mutex_enter(&((adapter)->mutex)); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
259
(adapter)->ref_cnt--; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
260
ASSERT((adapter)->ref_cnt >= 0); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
261
mutex_exit(&((adapter)->mutex)); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
264
#define ADAPTER_RELE_NOLOCK(adapter) { \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
265
ASSERT(MUTEX_HELD(&(adapter)->mutex)); \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
266
(adapter)->ref_cnt--; \
usr/src/uts/common/sys/rsm/rsmka_path_int.h
267
ASSERT((adapter)->ref_cnt >= 0); \
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
1422
amd8111s_tx_drain(struct LayerPointers *adapter)
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
1424
struct tx_desc *pTx_desc = adapter->pMil->pNonphysical->TxDescQStart;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
1438
adapter->pOdl->statistics.tx_draintime = i;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
259
amd8111s_set_loop_mode(struct LayerPointers *adapter, uint32_t mode)
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
265
if (mode == adapter->pOdl->loopback_mode)
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
278
mdlStopChip(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
279
if (adapter->pOdl->loopback_mode == AMD8111S_LB_INTERNAL_MAC) {
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
281
WRITE_REG32(adapter, adapter->pMdl->Mem_Address + CMD2,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
283
WRITE_REG32(adapter, adapter->pMdl->Mem_Address + CMD3,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
287
WRITE_REG32(adapter, adapter->pMdl->Mem_Address + CMD2,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
291
amd8111s_reset(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
292
adapter->pOdl->LinkStatus = LINK_STATE_DOWN;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
293
adapter->pOdl->rx_fcs_stripped = B_FALSE;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
294
mdlStartChip(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
299
mdlStopChip(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
300
amd8111s_reset(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
301
SetIntrCoalesc(adapter, B_FALSE);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
302
mdlPHYAutoNegotiation(adapter, PHY_FORCE_FD_100);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
303
WRITE_REG32(adapter, adapter->pMdl->Mem_Address + CMD2,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
305
adapter->pOdl->LinkStatus = LINK_STATE_UP;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
306
adapter->pMdl->Speed = 100;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
307
adapter->pMdl->FullDuplex = B_TRUE;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
309
mac_link_update(adapter->pOdl->mh, LINK_STATE_UP);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
311
adapter->pOdl->rx_fcs_stripped = B_TRUE;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
313
mdlStartChip(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
318
mdlStopChip(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
319
amd8111s_reset(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
320
SetIntrCoalesc(adapter, B_FALSE);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
321
mdlPHYAutoNegotiation(adapter, PHY_FORCE_FD_10);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
322
WRITE_REG32(adapter, adapter->pMdl->Mem_Address + CMD2,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
324
adapter->pOdl->LinkStatus = LINK_STATE_UP;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
325
adapter->pMdl->Speed = 10;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
326
adapter->pMdl->FullDuplex = B_TRUE;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
328
mac_link_update(adapter->pOdl->mh, LINK_STATE_UP);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
330
adapter->pOdl->rx_fcs_stripped = B_TRUE;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
332
mdlStartChip(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
337
mdlStopChip(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
338
amd8111s_reset(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
339
SetIntrCoalesc(adapter, B_FALSE);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
341
WRITE_REG32(adapter, adapter->pMdl->Mem_Address + CMD3,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
343
WRITE_REG32(adapter, adapter->pMdl->Mem_Address + CMD2,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
346
WRITE_REG32(adapter, adapter->pMdl->Mem_Address + CMD3,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
349
adapter->pOdl->LinkStatus = LINK_STATE_UP;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
350
adapter->pMdl->FullDuplex = B_TRUE;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
352
mac_link_update(adapter->pOdl->mh, LINK_STATE_UP);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
354
adapter->pOdl->rx_fcs_stripped = B_TRUE;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
356
mdlStartChip(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
364
adapter->pOdl->loopback_mode = mode;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
368
amd8111s_loopback_ioctl(struct LayerPointers *adapter, struct iocblk *iocp,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
386
amd8111s_log(adapter, CE_NOTE,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
392
amd8111s_log(adapter, CE_NOTE,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
402
amd8111s_log(adapter, CE_NOTE,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
412
amd8111s_log(adapter, CE_NOTE,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
417
*lbmp = adapter->pOdl->loopback_mode;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
422
amd8111s_log(adapter, CE_NOTE,
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
427
amd8111s_set_loop_mode(adapter, *lbmp);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
437
struct LayerPointers *adapter;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
442
adapter = arg;
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
444
ASSERT(adapter);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
445
if (adapter == NULL) {
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
456
status = amd8111s_loopback_ioctl(adapter, iocp, mp);
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
658
amd8111s_log(struct LayerPointers *adapter, int level, char *fmt, ...)
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
664
if (adapter != NULL) {
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
666
ddi_get_instance(adapter->pOdl->devinfo));
usr/src/uts/intel/io/amd8111s/amd8111s_main.c
97
static void amd8111s_log(struct LayerPointers *adapter, int level,