/titanic_41/usr/src/uts/common/io/e1000api/ |
H A D | e1000_nvm.c | 47 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_ops_generic() local 51 nvm->ops.init_params = e1000_null_ops_generic; in e1000_init_nvm_ops_generic() 52 nvm->ops.acquire = e1000_null_ops_generic; in e1000_init_nvm_ops_generic() 53 nvm->ops.read = e1000_null_read_nvm; in e1000_init_nvm_ops_generic() 54 nvm->ops.release = e1000_null_nvm_generic; in e1000_init_nvm_ops_generic() 55 nvm->ops.reload = e1000_reload_nvm_generic; in e1000_init_nvm_ops_generic() 56 nvm->ops.update = e1000_null_ops_generic; in e1000_init_nvm_ops_generic() 57 nvm->ops.valid_led_default = e1000_null_led_default; in e1000_init_nvm_ops_generic() 58 nvm->ops.validate = e1000_null_ops_generic; in e1000_init_nvm_ops_generic() 59 nvm->ops.write = e1000_null_write_nvm; in e1000_init_nvm_ops_generic() [all …]
|
H A D | e1000_i210.c | 165 s32 timeout = hw->nvm.word_size + 1; in e1000_get_hw_semaphore_i210() 249 if (hw->nvm.ops.acquire(hw) == E1000_SUCCESS) { in e1000_read_nvm_srrd_i210() 252 hw->nvm.ops.release(hw); in e1000_read_nvm_srrd_i210() 294 if (hw->nvm.ops.acquire(hw) == E1000_SUCCESS) { in e1000_write_nvm_srwr_i210() 297 hw->nvm.ops.release(hw); in e1000_write_nvm_srwr_i210() 324 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_write_nvm_srwr() local 335 if ((offset >= nvm->word_size) || (words > (nvm->word_size - offset)) || in e1000_write_nvm_srwr() 505 if (hw->nvm.ops.acquire(hw) == E1000_SUCCESS) { in e1000_validate_nvm_checksum_i210() 512 read_op_ptr = hw->nvm.ops.read; in e1000_validate_nvm_checksum_i210() 513 hw->nvm.ops.read = e1000_read_nvm_eerd; in e1000_validate_nvm_checksum_i210() [all …]
|
H A D | e1000_82540.c | 119 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82540() local 124 nvm->type = e1000_nvm_eeprom_microwire; in e1000_init_nvm_params_82540() 125 nvm->delay_usec = 50; in e1000_init_nvm_params_82540() 126 nvm->opcode_bits = 3; in e1000_init_nvm_params_82540() 127 switch (nvm->override) { in e1000_init_nvm_params_82540() 129 nvm->address_bits = 8; in e1000_init_nvm_params_82540() 130 nvm->word_size = 256; in e1000_init_nvm_params_82540() 133 nvm->address_bits = 6; in e1000_init_nvm_params_82540() 134 nvm->word_size = 64; in e1000_init_nvm_params_82540() 137 nvm->address_bits = eecd & E1000_EECD_SIZE ? 8 : 6; in e1000_init_nvm_params_82540() [all …]
|
H A D | e1000_82541.c | 130 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82541() local 137 switch (nvm->override) { in e1000_init_nvm_params_82541() 139 nvm->type = e1000_nvm_eeprom_spi; in e1000_init_nvm_params_82541() 143 nvm->type = e1000_nvm_eeprom_spi; in e1000_init_nvm_params_82541() 147 nvm->type = e1000_nvm_eeprom_microwire; in e1000_init_nvm_params_82541() 151 nvm->type = e1000_nvm_eeprom_microwire; in e1000_init_nvm_params_82541() 155 nvm->type = eecd & E1000_EECD_TYPE in e1000_init_nvm_params_82541() 161 if (nvm->type == e1000_nvm_eeprom_spi) { in e1000_init_nvm_params_82541() 162 nvm->address_bits = (eecd & E1000_EECD_ADDR_BITS) in e1000_init_nvm_params_82541() 164 nvm->delay_usec = 1; in e1000_init_nvm_params_82541() [all …]
|
H A D | e1000_82542.c | 76 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82542() local 80 nvm->address_bits = 6; in e1000_init_nvm_params_82542() 81 nvm->delay_usec = 50; in e1000_init_nvm_params_82542() 82 nvm->opcode_bits = 3; in e1000_init_nvm_params_82542() 83 nvm->type = e1000_nvm_eeprom_microwire; in e1000_init_nvm_params_82542() 84 nvm->word_size = 64; in e1000_init_nvm_params_82542() 87 nvm->ops.read = e1000_read_nvm_microwire; in e1000_init_nvm_params_82542() 88 nvm->ops.release = e1000_stop_nvm; in e1000_init_nvm_params_82542() 89 nvm->ops.write = e1000_write_nvm_microwire; in e1000_init_nvm_params_82542() 90 nvm->ops.update = e1000_update_nvm_checksum_generic; in e1000_init_nvm_params_82542() [all …]
|
H A D | e1000_82571.c | 207 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82571() local 213 nvm->opcode_bits = 8; in e1000_init_nvm_params_82571() 214 nvm->delay_usec = 1; in e1000_init_nvm_params_82571() 215 switch (nvm->override) { in e1000_init_nvm_params_82571() 217 nvm->page_size = 32; in e1000_init_nvm_params_82571() 218 nvm->address_bits = 16; in e1000_init_nvm_params_82571() 221 nvm->page_size = 8; in e1000_init_nvm_params_82571() 222 nvm->address_bits = 8; in e1000_init_nvm_params_82571() 225 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_82571() 226 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_82571() [all …]
|
H A D | e1000_80003es2lan.c | 142 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_80003es2lan() local 148 nvm->opcode_bits = 8; in e1000_init_nvm_params_80003es2lan() 149 nvm->delay_usec = 1; in e1000_init_nvm_params_80003es2lan() 150 switch (nvm->override) { in e1000_init_nvm_params_80003es2lan() 152 nvm->page_size = 32; in e1000_init_nvm_params_80003es2lan() 153 nvm->address_bits = 16; in e1000_init_nvm_params_80003es2lan() 156 nvm->page_size = 8; in e1000_init_nvm_params_80003es2lan() 157 nvm->address_bits = 8; in e1000_init_nvm_params_80003es2lan() 160 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_80003es2lan() 161 nvm->address_bits = eecd & E1000_EECD_ADDR_BITS ? 16 : 8; in e1000_init_nvm_params_80003es2lan() [all …]
|
H A D | e1000_82575.c | 327 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82575() local 347 nvm->word_size = 1 << size; in e1000_init_nvm_params_82575() 349 nvm->opcode_bits = 8; in e1000_init_nvm_params_82575() 350 nvm->delay_usec = 1; in e1000_init_nvm_params_82575() 352 switch (nvm->override) { in e1000_init_nvm_params_82575() 354 nvm->page_size = 32; in e1000_init_nvm_params_82575() 355 nvm->address_bits = 16; in e1000_init_nvm_params_82575() 358 nvm->page_size = 8; in e1000_init_nvm_params_82575() 359 nvm->address_bits = 8; in e1000_init_nvm_params_82575() 362 nvm->page_size = eecd & E1000_EECD_ADDR_BITS ? 32 : 8; in e1000_init_nvm_params_82575() [all …]
|
H A D | e1000_api.c | 74 if (hw->nvm.ops.init_params) { in e1000_init_nvm_params() 75 ret_val = hw->nvm.ops.init_params(hw); in e1000_init_nvm_params() 1227 if (hw->nvm.ops.validate) in e1000_validate_nvm_checksum() 1228 return hw->nvm.ops.validate(hw); in e1000_validate_nvm_checksum() 1242 if (hw->nvm.ops.update) in e1000_update_nvm_checksum() 1243 return hw->nvm.ops.update(hw); in e1000_update_nvm_checksum() 1257 if (hw->nvm.ops.reload) in e1000_reload_nvm() 1258 hw->nvm.ops.reload(hw); in e1000_reload_nvm() 1273 if (hw->nvm.ops.read) in e1000_read_nvm() 1274 return hw->nvm.ops.read(hw, offset, words, data); in e1000_read_nvm() [all …]
|
H A D | e1000_82543.c | 169 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_82543() local 173 nvm->type = e1000_nvm_eeprom_microwire; in e1000_init_nvm_params_82543() 174 nvm->word_size = 64; in e1000_init_nvm_params_82543() 175 nvm->delay_usec = 50; in e1000_init_nvm_params_82543() 176 nvm->address_bits = 6; in e1000_init_nvm_params_82543() 177 nvm->opcode_bits = 3; in e1000_init_nvm_params_82543() 180 nvm->ops.read = e1000_read_nvm_microwire; in e1000_init_nvm_params_82543() 181 nvm->ops.update = e1000_update_nvm_checksum_generic; in e1000_init_nvm_params_82543() 182 nvm->ops.valid_led_default = e1000_valid_led_default_generic; in e1000_init_nvm_params_82543() 183 nvm->ops.validate = e1000_validate_nvm_checksum_generic; in e1000_init_nvm_params_82543() [all …]
|
H A D | e1000_ich8lan.c | 616 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_init_nvm_params_ich8lan() local 624 nvm->type = e1000_nvm_flash_sw; in e1000_init_nvm_params_ich8lan() 640 nvm->flash_base_addr = sector_base_addr << FLASH_SECTOR_ADDR_SHIFT; in e1000_init_nvm_params_ich8lan() 645 nvm->flash_bank_size = ((sector_end_addr - sector_base_addr) in e1000_init_nvm_params_ich8lan() 647 nvm->flash_bank_size /= 2; in e1000_init_nvm_params_ich8lan() 649 nvm->flash_bank_size /= sizeof(u16); in e1000_init_nvm_params_ich8lan() 651 nvm->word_size = E1000_SHADOW_RAM_WORDS; in e1000_init_nvm_params_ich8lan() 654 for (i = 0; i < nvm->word_size; i++) { in e1000_init_nvm_params_ich8lan() 663 nvm->ops.acquire = e1000_acquire_nvm_ich8lan; in e1000_init_nvm_params_ich8lan() 664 nvm->ops.release = e1000_release_nvm_ich8lan; in e1000_init_nvm_params_ich8lan() [all …]
|
H A D | e1000_vf.c | 80 hw->nvm.type = e1000_nvm_none; in e1000_init_nvm_params_vf() 81 hw->nvm.ops.acquire = e1000_acquire_vf; in e1000_init_nvm_params_vf() 82 hw->nvm.ops.release = e1000_release_vf; in e1000_init_nvm_params_vf() 149 hw->nvm.ops.init_params = e1000_init_nvm_params_vf; in e1000_init_function_pointers_vf()
|
H A D | e1000_mac.c | 409 ret_val = hw->nvm.ops.read(hw, NVM_COMPAT, 1, &nvm_data); in e1000_check_alt_mac_addr_generic() 423 ret_val = hw->nvm.ops.read(hw, NVM_ALT_MAC_ADDR_PTR, 1, in e1000_check_alt_mac_addr_generic() 444 ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); in e1000_check_alt_mac_addr_generic() 965 ret_val = hw->nvm.ops.read(hw, in e1000_set_default_fc_generic() 970 ret_val = hw->nvm.ops.read(hw, in e1000_set_default_fc_generic() 1718 s32 timeout = hw->nvm.word_size + 1; in e1000_get_hw_semaphore_generic() 1820 ret_val = hw->nvm.ops.read(hw, NVM_ID_LED_SETTINGS, 1, data); in e1000_valid_led_default_generic() 1849 ret_val = hw->nvm.ops.valid_led_default(hw, &data); in e1000_id_led_init_generic()
|
H A D | e1000_hw.h | 995 struct e1000_nvm_info nvm; member
|
/titanic_41/usr/src/uts/common/io/i40e/core/ |
H A D | i40e_nvm.c | 61 struct i40e_nvm_info *nvm = &hw->nvm; in i40e_init_nvm() local 75 nvm->sr_size = BIT(sr_size) * I40E_SR_WORDS_IN_1KB; in i40e_init_nvm() 81 nvm->timeout = I40E_MAX_NVM_TIMEOUT; in i40e_init_nvm() 82 nvm->blank_nvm_mode = FALSE; in i40e_init_nvm() 84 nvm->blank_nvm_mode = TRUE; in i40e_init_nvm() 109 if (hw->nvm.blank_nvm_mode) in i40e_acquire_nvm() 118 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() 136 hw->nvm.hw_semaphore_timeout = in i40e_acquire_nvm() 142 hw->nvm.hw_semaphore_timeout = 0; in i40e_acquire_nvm() 166 if (hw->nvm.blank_nvm_mode) in i40e_release_nvm() [all …]
|
H A D | i40e_adminq.c | 625 &hw->nvm.version); in i40e_init_adminq() 628 hw->nvm.eetrack = (eetrack_hi << 16) | eetrack_lo; in i40e_init_adminq() 634 hw->nvm.oem_ver = ((u32)oem_hi << 16) | oem_lo; in i40e_init_adminq()
|
H A D | i40e_type.h | 623 struct i40e_nvm_info nvm; member
|
/titanic_41/usr/src/lib/scsi/libses/common/ |
H A D | ses_subr.c | 137 __ses_set_errno(ses_errno_t err, const char *nvm) in __ses_set_errno() argument 139 if (nvm == NULL) { in __ses_set_errno() 142 (void) strlcpy(_ses_nverr_member, nvm, in __ses_set_errno()
|