/drivers/net/ethernet/intel/e1000e/ |
D | phy.c | 62 s32 ret_val = 0; in e1000e_get_phy_id() local 70 ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); in e1000e_get_phy_id() 71 if (ret_val) in e1000e_get_phy_id() 72 return ret_val; in e1000e_get_phy_id() 76 ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); in e1000e_get_phy_id() 77 if (ret_val) in e1000e_get_phy_id() 78 return ret_val; in e1000e_get_phy_id() 100 s32 ret_val; in e1000e_phy_reset_dsp() local 102 ret_val = e1e_wphy(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in e1000e_phy_reset_dsp() 103 if (ret_val) in e1000e_phy_reset_dsp() [all …]
|
D | 80003es2lan.c | 41 s32 ret_val; in e1000_init_phy_params_80003es2lan() local 57 ret_val = e1000e_get_phy_id(hw); in e1000_init_phy_params_80003es2lan() 63 return ret_val; in e1000_init_phy_params_80003es2lan() 239 s32 ret_val; in e1000_acquire_nvm_80003es2lan() local 241 ret_val = e1000_acquire_swfw_sync_80003es2lan(hw, E1000_SWFW_EEP_SM); in e1000_acquire_nvm_80003es2lan() 242 if (ret_val) in e1000_acquire_nvm_80003es2lan() 243 return ret_val; in e1000_acquire_nvm_80003es2lan() 245 ret_val = e1000e_acquire_nvm(hw); in e1000_acquire_nvm_80003es2lan() 247 if (ret_val) in e1000_acquire_nvm_80003es2lan() 250 return ret_val; in e1000_acquire_nvm_80003es2lan() [all …]
|
D | ich8lan.c | 180 s32 ret_val = 0; in e1000_phy_is_accessible_pchlan() local 185 ret_val = e1e_rphy_locked(hw, MII_PHYSID1, &phy_reg); in e1000_phy_is_accessible_pchlan() 186 if (ret_val || (phy_reg == 0xFFFF)) in e1000_phy_is_accessible_pchlan() 190 ret_val = e1e_rphy_locked(hw, MII_PHYSID2, &phy_reg); in e1000_phy_is_accessible_pchlan() 191 if (ret_val || (phy_reg == 0xFFFF)) { in e1000_phy_is_accessible_pchlan() 213 ret_val = e1000_set_mdio_slow_mode_hv(hw); in e1000_phy_is_accessible_pchlan() 214 if (!ret_val) in e1000_phy_is_accessible_pchlan() 215 ret_val = e1000e_get_phy_id(hw); in e1000_phy_is_accessible_pchlan() 219 if (ret_val) in e1000_phy_is_accessible_pchlan() 292 s32 ret_val; in e1000_init_phy_workarounds_pchlan() local [all …]
|
D | 82571.c | 48 s32 ret_val; in e1000_init_phy_params_82571() local 83 ret_val = e1000_get_phy_id_82571(hw); in e1000_init_phy_params_82571() 84 if (ret_val) { in e1000_init_phy_params_82571() 86 return ret_val; in e1000_init_phy_params_82571() 94 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571() 98 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571() 103 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571() 106 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571() 110 if (ret_val) in e1000_init_phy_params_82571() 113 return ret_val; in e1000_init_phy_params_82571() [all …]
|
D | mac.c | 143 s32 ret_val; in e1000_check_alt_mac_addr_generic() local 147 ret_val = e1000_read_nvm(hw, NVM_COMPAT, 1, &nvm_data); in e1000_check_alt_mac_addr_generic() 148 if (ret_val) in e1000_check_alt_mac_addr_generic() 149 return ret_val; in e1000_check_alt_mac_addr_generic() 155 ret_val = e1000_read_nvm(hw, NVM_ALT_MAC_ADDR_PTR, 1, in e1000_check_alt_mac_addr_generic() 157 if (ret_val) { in e1000_check_alt_mac_addr_generic() 159 return ret_val; in e1000_check_alt_mac_addr_generic() 171 ret_val = e1000_read_nvm(hw, offset, 1, &nvm_data); in e1000_check_alt_mac_addr_generic() 172 if (ret_val) { in e1000_check_alt_mac_addr_generic() 174 return ret_val; in e1000_check_alt_mac_addr_generic() [all …]
|
D | nvm.c | 295 s32 ret_val = 0; in e1000e_read_nvm_eerd() local 311 ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_READ); in e1000e_read_nvm_eerd() 312 if (ret_val) { in e1000e_read_nvm_eerd() 313 e_dbg("NVM read error: %d\n", ret_val); in e1000e_read_nvm_eerd() 320 return ret_val; in e1000e_read_nvm_eerd() 338 s32 ret_val = -E1000_ERR_NVM; in e1000e_write_nvm_spi() local 353 ret_val = nvm->ops.acquire(hw); in e1000e_write_nvm_spi() 354 if (ret_val) in e1000e_write_nvm_spi() 355 return ret_val; in e1000e_write_nvm_spi() 357 ret_val = e1000_ready_nvm_eeprom(hw); in e1000e_write_nvm_spi() [all …]
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_phy.c | 57 s32 ret_val = 0; in igb_get_phy_id() local 64 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 65 if (ret_val) in igb_get_phy_id() 70 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() 71 if (ret_val) in igb_get_phy_id() 78 return ret_val; in igb_get_phy_id() 89 s32 ret_val = 0; in igb_phy_reset_dsp() local 94 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp() 95 if (ret_val) in igb_phy_reset_dsp() 98 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp() [all …]
|
D | e1000_82575.c | 122 s32 ret_val; in igb_check_for_link_media_swap() local 127 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); in igb_check_for_link_media_swap() 128 if (ret_val) in igb_check_for_link_media_swap() 129 return ret_val; in igb_check_for_link_media_swap() 131 ret_val = phy->ops.read_reg(hw, E1000_M88E1112_STATUS, &data); in igb_check_for_link_media_swap() 132 if (ret_val) in igb_check_for_link_media_swap() 133 return ret_val; in igb_check_for_link_media_swap() 139 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 1); in igb_check_for_link_media_swap() 140 if (ret_val) in igb_check_for_link_media_swap() 141 return ret_val; in igb_check_for_link_media_swap() [all …]
|
D | e1000_mbx.c | 20 s32 ret_val = -E1000_ERR_MBX; in igb_read_mbx() local 27 ret_val = mbx->ops.read(hw, msg, size, mbx_id, unlock); in igb_read_mbx() 29 return ret_val; in igb_read_mbx() 44 s32 ret_val = 0; in igb_write_mbx() local 47 ret_val = -E1000_ERR_MBX; in igb_write_mbx() 50 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in igb_write_mbx() 52 return ret_val; in igb_write_mbx() 65 s32 ret_val = -E1000_ERR_MBX; in igb_check_for_msg() local 68 ret_val = mbx->ops.check_for_msg(hw, mbx_id); in igb_check_for_msg() 70 return ret_val; in igb_check_for_msg() [all …]
|
D | e1000_i210.c | 122 s32 ret_val = 0; in igb_acquire_swfw_sync_i210() local 127 ret_val = -E1000_ERR_SWFW_SYNC; in igb_acquire_swfw_sync_i210() 143 ret_val = -E1000_ERR_SWFW_SYNC; in igb_acquire_swfw_sync_i210() 152 return ret_val; in igb_acquire_swfw_sync_i210() 233 s32 ret_val = 0; in igb_write_nvm_srwr() local 241 ret_val = -E1000_ERR_NVM; in igb_write_nvm_srwr() 255 ret_val = 0; in igb_write_nvm_srwr() 261 if (ret_val) { in igb_write_nvm_srwr() 268 return ret_val; in igb_write_nvm_srwr() 369 s32 ret_val = 0; in igb_read_invm_i210() local [all …]
|
D | e1000_mac.c | 28 s32 ret_val; in igb_get_bus_info_pcie() local 34 ret_val = igb_read_pcie_cap_reg(hw, in igb_get_bus_info_pcie() 37 if (ret_val) { in igb_get_bus_info_pcie() 290 s32 ret_val = 0; in igb_check_alt_mac_addr() local 300 ret_val = hw->nvm.ops.read(hw, NVM_ALT_MAC_ADDR_PTR, 1, in igb_check_alt_mac_addr() 302 if (ret_val) { in igb_check_alt_mac_addr() 321 ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); in igb_check_alt_mac_addr() 322 if (ret_val) { in igb_check_alt_mac_addr() 344 return ret_val; in igb_check_alt_mac_addr() 610 s32 ret_val; in igb_check_for_copper_link() local [all …]
|
D | e1000_nvm.c | 131 s32 ret_val = -E1000_ERR_NVM; in igb_poll_eerd_eewr_done() local 140 ret_val = 0; in igb_poll_eerd_eewr_done() 147 return ret_val; in igb_poll_eerd_eewr_done() 162 s32 ret_val = 0; in igb_acquire_nvm() local 180 ret_val = -E1000_ERR_NVM; in igb_acquire_nvm() 183 return ret_val; in igb_acquire_nvm() 255 s32 ret_val = 0; in igb_ready_nvm_eeprom() local 287 ret_val = -E1000_ERR_NVM; in igb_ready_nvm_eeprom() 293 return ret_val; in igb_ready_nvm_eeprom() 309 s32 ret_val; in igb_read_nvm_spi() local [all …]
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_hw.c | 381 s32 ret_val; in e1000_reset_hw() local 475 ret_val = e1000_get_auto_rd_done(hw); in e1000_reset_hw() 476 if (ret_val) in e1000_reset_hw() 477 return ret_val; in e1000_reset_hw() 528 s32 ret_val; in e1000_init_hw() local 533 ret_val = e1000_id_led_init(hw); in e1000_init_hw() 534 if (ret_val) { in e1000_init_hw() 536 return ret_val; in e1000_init_hw() 607 ret_val = e1000_setup_link(hw); in e1000_init_hw() 635 return ret_val; in e1000_init_hw() [all …]
|
/drivers/net/ethernet/intel/igc/ |
D | igc_phy.c | 34 s32 ret_val = 0; in igc_get_phy_id() local 37 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 38 if (ret_val) in igc_get_phy_id() 43 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 44 if (ret_val) in igc_get_phy_id() 51 return ret_val; in igc_get_phy_id() 67 s32 ret_val = 0; in igc_phy_has_link() local 74 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link() 75 if (ret_val && usec_interval > 0) { in igc_phy_has_link() 85 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link() [all …]
|
D | igc_mac.c | 24 s32 ret_val = 0; in igc_disable_pcie_master() local 41 ret_val = -IGC_ERR_MASTER_REQUESTS_PENDING; in igc_disable_pcie_master() 46 return ret_val; in igc_disable_pcie_master() 121 s32 ret_val = 0; in igc_setup_link() local 144 ret_val = hw->mac.ops.setup_physical_interface(hw); in igc_setup_link() 145 if (ret_val) in igc_setup_link() 160 ret_val = igc_set_fc_watermarks(hw); in igc_setup_link() 163 return ret_val; in igc_setup_link() 178 s32 ret_val = 0; in igc_force_mac_fc() local 219 ret_val = -IGC_ERR_CONFIG; in igc_force_mac_fc() [all …]
|
D | igc_nvm.c | 17 s32 ret_val = -IGC_ERR_NVM; in igc_poll_eerd_eewr_done() local 28 ret_val = 0; in igc_poll_eerd_eewr_done() 35 return ret_val; in igc_poll_eerd_eewr_done() 50 s32 ret_val = 0; in igc_acquire_nvm() local 67 ret_val = -IGC_ERR_NVM; in igc_acquire_nvm() 70 return ret_val; in igc_acquire_nvm() 101 s32 ret_val = 0; in igc_read_nvm_eerd() local 109 ret_val = -IGC_ERR_NVM; in igc_read_nvm_eerd() 118 ret_val = igc_poll_eerd_eewr_done(hw, IGC_NVM_POLL_READ); in igc_read_nvm_eerd() 119 if (ret_val) in igc_read_nvm_eerd() [all …]
|
D | igc_base.c | 21 s32 ret_val; in igc_reset_hw_base() local 27 ret_val = igc_disable_pcie_master(hw); in igc_reset_hw_base() 28 if (ret_val) in igc_reset_hw_base() 45 ret_val = igc_get_auto_rd_done(hw); in igc_reset_hw_base() 46 if (ret_val) { in igc_reset_hw_base() 58 return ret_val; in igc_reset_hw_base() 110 s32 ret_val = 0; in igc_setup_copper_link_base() local 118 ret_val = igc_setup_copper_link(hw); in igc_setup_copper_link_base() 120 return ret_val; in igc_setup_copper_link_base() 159 s32 ret_val = 0; in igc_init_phy_params_base() local [all …]
|
D | igc_i225.c | 114 s32 ret_val = 0; in igc_acquire_swfw_sync_i225() local 119 ret_val = -IGC_ERR_SWFW_SYNC; in igc_acquire_swfw_sync_i225() 135 ret_val = -IGC_ERR_SWFW_SYNC; in igc_acquire_swfw_sync_i225() 144 return ret_val; in igc_acquire_swfw_sync_i225() 229 s32 ret_val = -IGC_ERR_NVM; in igc_write_nvm_srwr() local 239 return ret_val; in igc_write_nvm_srwr() 243 ret_val = -IGC_ERR_NVM; in igc_write_nvm_srwr() 253 ret_val = 0; in igc_write_nvm_srwr() 259 if (ret_val) { in igc_write_nvm_srwr() 265 return ret_val; in igc_write_nvm_srwr() [all …]
|
/drivers/misc/ |
D | apds9802als.c | 71 int ret_val; in als_lux0_input_data_show() local 84 ret_val = als_wait_for_data_ready(dev); in als_lux0_input_data_show() 85 if (ret_val < 0) in als_lux0_input_data_show() 90 ret_val = temp; in als_lux0_input_data_show() 93 ret_val = i2c_smbus_read_byte_data(client, 0x8D); /* MSB data */ in als_lux0_input_data_show() 94 if (ret_val < 0) in als_lux0_input_data_show() 100 temp = (ret_val << 8) | temp; in als_lux0_input_data_show() 105 return ret_val; in als_lux0_input_data_show() 113 int ret_val; in als_sensing_range_store() local 116 ret_val = kstrtoul(buf, 10, &val); in als_sensing_range_store() [all …]
|
D | isl29020.c | 42 int ret_val, val; in als_lux_input_data_show() local 57 ret_val = i2c_smbus_read_byte_data(client, 0x01); /* LSB data */ in als_lux_input_data_show() 60 if (ret_val < 0) { in als_lux_input_data_show() 62 return ret_val; in als_lux_input_data_show() 65 ret_val |= temp << 8; in als_lux_input_data_show() 70 lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536; in als_lux_input_data_show() 78 int ret_val; in als_sensing_range_store() local 81 ret_val = kstrtoul(buf, 10, &val); in als_sensing_range_store() 82 if (ret_val) in als_sensing_range_store() 83 return ret_val; in als_sensing_range_store() [all …]
|
/drivers/media/pci/cx25821/ |
D | cx25821-medusa-video.c | 78 int ret_val = 0; in medusa_initialize_ntsc() local 90 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 98 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 105 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 109 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 117 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 125 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 137 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 144 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() 157 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc() [all …]
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | mbx.c | 129 s32 ret_val = IXGBE_ERR_MBX; in ixgbevf_check_for_bit_vf() local 132 ret_val = 0; in ixgbevf_check_for_bit_vf() 134 return ret_val; in ixgbevf_check_for_bit_vf() 145 s32 ret_val = IXGBE_ERR_MBX; in ixgbevf_check_for_msg_vf() local 148 ret_val = 0; in ixgbevf_check_for_msg_vf() 152 return ret_val; in ixgbevf_check_for_msg_vf() 163 s32 ret_val = IXGBE_ERR_MBX; in ixgbevf_check_for_ack_vf() local 166 ret_val = 0; in ixgbevf_check_for_ack_vf() 171 return ret_val; in ixgbevf_check_for_ack_vf() 182 s32 ret_val = IXGBE_ERR_MBX; in ixgbevf_check_for_rst_vf() local [all …]
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_hw.c | 285 s32 ret_val; in atl1e_phy_setup_autoneg_adv() local 352 ret_val = atl1e_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl1e_phy_setup_autoneg_adv() 353 if (ret_val) in atl1e_phy_setup_autoneg_adv() 354 return ret_val; in atl1e_phy_setup_autoneg_adv() 357 ret_val = atl1e_write_phy_reg(hw, MII_CTRL1000, in atl1e_phy_setup_autoneg_adv() 359 if (ret_val) in atl1e_phy_setup_autoneg_adv() 360 return ret_val; in atl1e_phy_setup_autoneg_adv() 377 int ret_val; in atl1e_phy_commit() local 382 ret_val = atl1e_write_phy_reg(hw, MII_BMCR, phy_data); in atl1e_phy_commit() 383 if (ret_val) { in atl1e_phy_commit() [all …]
|
/drivers/net/ethernet/intel/igbvf/ |
D | mbx.c | 70 s32 ret_val = -E1000_ERR_MBX; in e1000_read_posted_mbx() local 75 ret_val = e1000_poll_for_msg(hw); in e1000_read_posted_mbx() 78 if (!ret_val) in e1000_read_posted_mbx() 79 ret_val = mbx->ops.read(hw, msg, size); in e1000_read_posted_mbx() 81 return ret_val; in e1000_read_posted_mbx() 96 s32 ret_val = -E1000_ERR_MBX; in e1000_write_posted_mbx() local 103 ret_val = mbx->ops.write(hw, msg, size); in e1000_write_posted_mbx() 106 if (!ret_val) in e1000_write_posted_mbx() 107 ret_val = e1000_poll_for_ack(hw); in e1000_write_posted_mbx() 109 return ret_val; in e1000_write_posted_mbx() [all …]
|
D | vf.c | 108 u32 ret_val = -E1000_ERR_MAC_INIT; in e1000_reset_hw_vf() local 134 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_reset_hw_vf() 135 if (!ret_val) { in e1000_reset_hw_vf() 144 ret_val = -E1000_ERR_MAC_INIT; in e1000_reset_hw_vf() 149 return ret_val; in e1000_reset_hw_vf() 217 s32 ret_val; in e1000_update_mc_addr_list_vf() local 238 ret_val = mbx->ops.write_posted(hw, msgbuf, E1000_VFMAILBOX_SIZE); in e1000_update_mc_addr_list_vf() 239 if (!ret_val) in e1000_update_mc_addr_list_vf() 283 s32 ret_val; in e1000_rlpml_set_vf() local 288 ret_val = mbx->ops.write_posted(hw, msgbuf, 2); in e1000_rlpml_set_vf() [all …]
|