Searched refs:dev_spec (Results 1 - 14 of 14) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
H A Dich8lan.c320 hw->dev_spec.ich8lan.ulp_state = e1000_ulp_state_unknown; e1000_init_phy_workarounds_pchlan()
603 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_init_nvm_params_ich8lan() local
659 dev_spec->shadow_ram[i].modified = false; e1000_init_nvm_params_ich8lan()
660 dev_spec->shadow_ram[i].value = 0xFFFF; e1000_init_nvm_params_ich8lan()
806 * Enable/disable EEE based on setting in dev_spec structure, the duplex of
818 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_set_eee_pchlan() local
849 if (!dev_spec->eee_disable) { e1000_set_eee_pchlan()
852 &dev_spec->eee_lp_ability); e1000_set_eee_pchlan()
864 if (adv & dev_spec->eee_lp_ability & I82579_EEE_1000_SUPPORTED) e1000_set_eee_pchlan()
867 if (adv & dev_spec->eee_lp_ability & I82579_EEE_100_SUPPORTED) { e1000_set_eee_pchlan()
876 dev_spec->eee_lp_ability &= e1000_set_eee_pchlan()
1099 (hw->dev_spec.ich8lan.ulp_state == e1000_ulp_state_on)) e1000_enable_ulp_lpt_lp()
1211 hw->dev_spec.ich8lan.ulp_state = e1000_ulp_state_on; e1000_enable_ulp_lpt_lp()
1243 (hw->dev_spec.ich8lan.ulp_state == e1000_ulp_state_off)) e1000_disable_ulp_lpt_lp()
1353 hw->dev_spec.ich8lan.ulp_state = e1000_ulp_state_off; e1000_disable_ulp_lpt_lp()
1508 hw->dev_spec.ich8lan.eee_lp_ability = 0; e1000_check_for_copper_link_ich8lan()
2166 bool k1_enable = hw->dev_spec.ich8lan.nvm_k1_enabled; e1000_k1_gig_workaround_hv()
3173 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_read_nvm_spt() local
3203 if (dev_spec->shadow_ram[offset + i].modified) { e1000_read_nvm_spt()
3205 dev_spec->shadow_ram[offset + i].value; e1000_read_nvm_spt()
3222 if (!(dev_spec->shadow_ram[offset + i].modified) || e1000_read_nvm_spt()
3223 !(dev_spec->shadow_ram[offset + i + 1].modified)) { e1000_read_nvm_spt()
3231 if (dev_spec->shadow_ram[offset + i].modified) e1000_read_nvm_spt()
3233 dev_spec->shadow_ram[offset + i].value; e1000_read_nvm_spt()
3236 if (dev_spec->shadow_ram[offset + i].modified) e1000_read_nvm_spt()
3238 dev_spec->shadow_ram[offset + i + 1].value; e1000_read_nvm_spt()
3266 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_read_nvm_ich8lan() local
3292 if (dev_spec->shadow_ram[offset + i].modified) { e1000_read_nvm_ich8lan()
3293 data[i] = dev_spec->shadow_ram[offset + i].value; e1000_read_nvm_ich8lan()
3661 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_write_nvm_ich8lan() local
3673 dev_spec->shadow_ram[offset + i].modified = true; e1000_write_nvm_ich8lan()
3674 dev_spec->shadow_ram[offset + i].value = data[i]; e1000_write_nvm_ich8lan()
3696 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_update_nvm_checksum_spt() local
3742 if (dev_spec->shadow_ram[i].modified) { e1000_update_nvm_checksum_spt()
3744 dword |= (dev_spec->shadow_ram[i].value & 0xffff); e1000_update_nvm_checksum_spt()
3746 if (dev_spec->shadow_ram[i + 1].modified) { e1000_update_nvm_checksum_spt()
3748 dword |= ((dev_spec->shadow_ram[i + 1].value & 0xffff) e1000_update_nvm_checksum_spt()
3828 dev_spec->shadow_ram[i].modified = false; e1000_update_nvm_checksum_spt()
3829 dev_spec->shadow_ram[i].value = 0xFFFF; e1000_update_nvm_checksum_spt()
3864 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_update_nvm_checksum_ich8lan() local
3902 if (dev_spec->shadow_ram[i].modified) { e1000_update_nvm_checksum_ich8lan()
3903 data = dev_spec->shadow_ram[i].value; e1000_update_nvm_checksum_ich8lan()
3979 dev_spec->shadow_ram[i].modified = false; e1000_update_nvm_checksum_ich8lan()
3980 dev_spec->shadow_ram[i].value = 0xFFFF; e1000_update_nvm_checksum_ich8lan()
4591 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_reset_hw_ich8lan() local
4631 dev_spec->nvm_k1_enabled = true; e1000_reset_hw_ich8lan()
4633 dev_spec->nvm_k1_enabled = false; e1000_reset_hw_ich8lan()
5072 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_kmrn_lock_loss_workaround_ich8lan() local
5078 if (!dev_spec->kmrn_lock_loss_workaround_enabled) e1000_kmrn_lock_loss_workaround_ich8lan()
5133 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000e_set_kmrn_lock_loss_workaround_ich8lan() local
5140 dev_spec->kmrn_lock_loss_workaround_enabled = state; e1000e_set_kmrn_lock_loss_workaround_ich8lan()
5241 struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan; e1000_suspend_workarounds_ich8lan() local
5265 if (!dev_spec->eee_disable) { e1000_suspend_workarounds_ich8lan()
5281 (dev_spec->eee_lp_ability & e1000_suspend_workarounds_ich8lan()
H A D80003es2lan.c386 if (hw->dev_spec.e80003es2lan.mdic_wa_enable) { e1000_read_phy_reg_gg82563_80003es2lan()
455 if (hw->dev_spec.e80003es2lan.mdic_wa_enable) { e1000_write_phy_reg_gg82563_80003es2lan()
815 hw->dev_spec.e80003es2lan.mdic_wa_enable = true; e1000_init_hw_80003es2lan()
823 hw->dev_spec.e80003es2lan.mdic_wa_enable = false; e1000_init_hw_80003es2lan()
H A D82571.c326 hw->dev_spec.e82571.smb_counter = 0; e1000_init_mac_params_82571()
466 if (hw->dev_spec.e82571.smb_counter > 2) e1000_get_hw_semaphore_82571()
481 hw->dev_spec.e82571.smb_counter++; e1000_get_hw_semaphore_82571()
1705 return hw->dev_spec.e82571.laa_is_present; e1000e_get_laa_state_82571()
1720 hw->dev_spec.e82571.laa_is_present = state; e1000e_set_laa_state_82571()
H A Dhw.h691 } dev_spec; member in struct:e1000_hw
H A Dethtool.c2215 edata->eee_enabled = !hw->dev_spec.ich8lan.eee_disable; e1000e_get_eee()
2257 hw->dev_spec.ich8lan.eee_disable = !edata->eee_enabled; e1000e_set_eee()
H A Dnetdev.c4108 hw->dev_spec.ich8lan.eee_disable ? e1000e_reset()
6335 adapter->eee_advert && hw->dev_spec.ich8lan.eee_lp_ability) { __e1000_shutdown()
6344 hw->dev_spec.ich8lan.eee_lp_ability & __e1000_shutdown()
6348 hw->dev_spec.ich8lan.eee_lp_ability & __e1000_shutdown()
6612 eee_lp = adapter->hw.dev_spec.ich8lan.eee_lp_ability; e1000e_pm_runtime_idle()
6615 adapter->hw.dev_spec.ich8lan.eee_lp_ability = eee_lp; e1000e_pm_runtime_idle()
/linux-4.4.14/drivers/net/ethernet/intel/igb/
H A De1000_82575.c147 if (port && (hw->dev_spec._82575.media_port != port)) { igb_check_for_link_media_swap()
148 hw->dev_spec._82575.media_port = port; igb_check_for_link_media_swap()
149 hw->dev_spec._82575.media_changed = true; igb_check_for_link_media_swap()
396 struct e1000_dev_spec_82575 *dev_spec = &hw->dev_spec._82575; igb_init_mac_params_82575() local
439 dev_spec->eee_disable = false; igb_init_mac_params_82575()
441 dev_spec->eee_disable = true; igb_init_mac_params_82575()
444 dev_spec->clear_semaphore_once = true; igb_init_mac_params_82575()
460 hw->dev_spec._82575.mas_capable = true; igb_init_mac_params_82575()
478 struct e1000_dev_spec_82575 *dev_spec = &hw->dev_spec._82575; igb_set_sfp_media_type_82575() local
479 struct e1000_sfp_flags *eth_flags = &dev_spec->eth_flags; igb_set_sfp_media_type_82575()
512 dev_spec->module_plugged = true; igb_set_sfp_media_type_82575()
516 dev_spec->sgmii_active = true; igb_set_sfp_media_type_82575()
519 dev_spec->sgmii_active = true; igb_set_sfp_media_type_82575()
539 struct e1000_dev_spec_82575 *dev_spec = &hw->dev_spec._82575; igb_get_invariants_82575() local
606 dev_spec->sgmii_active = false; igb_get_invariants_82575()
607 dev_spec->module_plugged = false; igb_get_invariants_82575()
620 dev_spec->sgmii_active = true; igb_get_invariants_82575()
636 dev_spec->sgmii_active = true; igb_get_invariants_82575()
643 if (dev_spec->eth_flags.e100_base_fx) igb_get_invariants_82575()
1780 struct e1000_dev_spec_82575 *dev_spec = &hw->dev_spec._82575; igb_sgmii_active_82575() local
1781 return dev_spec->sgmii_active; igb_sgmii_active_82575()
2239 bool global_device_reset = hw->dev_spec._82575.global_device_reset; igb_reset_hw_82580()
2241 hw->dev_spec._82575.global_device_reset = false; igb_reset_hw_82580()
2578 * Enable/disable EEE based on setting in dev_spec structure.
2592 if (!(hw->dev_spec._82575.eee_disable)) { igb_set_eee_i350()
2634 * Enable/disable EEE legacy mode based on setting in dev_spec structure.
2648 if (!hw->dev_spec._82575.eee_disable) { igb_set_eee_i354()
H A Digb_ethtool.c141 struct e1000_dev_spec_82575 *dev_spec = &hw->dev_spec._82575; igb_get_settings() local
142 struct e1000_sfp_flags *eth_flags = &dev_spec->eth_flags; igb_get_settings()
395 if (hw->dev_spec._82575.eth_flags.e100_base_fx) igb_set_pauseparam()
1987 if (adapter->hw.dev_spec._82575.mas_capable) igb_diag_test()
2620 if (!hw->dev_spec._82575.eee_disable) igb_get_eee()
2666 edata->eee_enabled = !hw->dev_spec._82575.eee_disable; igb_get_eee()
2734 if (hw->dev_spec._82575.eee_disable != !edata->eee_enabled) { igb_set_eee()
2735 hw->dev_spec._82575.eee_disable = !edata->eee_enabled; igb_set_eee()
H A De1000_i210.c62 if (hw->dev_spec._82575.clear_semaphore_once) { igb_get_hw_semaphore_i210()
63 hw->dev_spec._82575.clear_semaphore_once = false; igb_get_hw_semaphore_i210()
H A De1000_hw.h548 } dev_spec; member in struct:e1000_hw
H A Digb_main.c1764 (!hw->dev_spec._82575.eee_disable)) igb_up()
2573 if (hw->dev_spec._82575.mas_capable) igb_probe()
2619 (!hw->dev_spec._82575.eee_disable)) { igb_probe()
2630 (!hw->dev_spec._82575.eee_disable)) { igb_probe()
4242 if (hw->dev_spec._82575.media_changed) { igb_watchdog_task()
4243 hw->dev_spec._82575.media_changed = false; igb_watchdog_task()
4275 adapter->hw.dev_spec._82575.eee_disable = true; igb_watchdog_task()
5115 hw->dev_spec._82575.global_device_reset = true; igb_tx_timeout()
/linux-4.4.14/drivers/net/ethernet/intel/igbvf/
H A Dmbx.c146 v2p_mailbox |= hw->dev_spec.vf.v2p_mailbox; e1000_read_v2p_mailbox()
147 hw->dev_spec.vf.v2p_mailbox |= v2p_mailbox & E1000_V2PMAILBOX_R2C_BITS; e1000_read_v2p_mailbox()
168 hw->dev_spec.vf.v2p_mailbox &= ~mask; e1000_check_for_bit_vf()
H A Dvf.h249 } dev_spec; member in struct:e1000_hw
/linux-4.4.14/drivers/scsi/
H A Dscsi_debug.c2007 unsigned char dev_spec; resp_mode_sense() local
2034 dev_spec = (DEV_READONLY(target) ? 0x80 : 0x0) | 0x10; resp_mode_sense()
2036 dev_spec = 0x0; resp_mode_sense()
2038 arr[2] = dev_spec; resp_mode_sense()
2042 arr[3] = dev_spec; resp_mode_sense()

Completed in 471 milliseconds