Home
last modified time | relevance | path

Searched refs:ret_val (Results 1 – 25 of 114) sorted by relevance

12345

/drivers/net/ethernet/intel/e1000e/
Dphy.c80 s32 ret_val = 0; in e1000e_get_phy_id() local
88 ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); in e1000e_get_phy_id()
89 if (ret_val) in e1000e_get_phy_id()
90 return ret_val; in e1000e_get_phy_id()
94 ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); in e1000e_get_phy_id()
95 if (ret_val) in e1000e_get_phy_id()
96 return ret_val; in e1000e_get_phy_id()
118 s32 ret_val; in e1000e_phy_reset_dsp() local
120 ret_val = e1e_wphy(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in e1000e_phy_reset_dsp()
121 if (ret_val) in e1000e_phy_reset_dsp()
[all …]
D80003es2lan.c59 s32 ret_val; in e1000_init_phy_params_80003es2lan() local
75 ret_val = e1000e_get_phy_id(hw); in e1000_init_phy_params_80003es2lan()
81 return ret_val; in e1000_init_phy_params_80003es2lan()
257 s32 ret_val; in e1000_acquire_nvm_80003es2lan() local
259 ret_val = e1000_acquire_swfw_sync_80003es2lan(hw, E1000_SWFW_EEP_SM); in e1000_acquire_nvm_80003es2lan()
260 if (ret_val) in e1000_acquire_nvm_80003es2lan()
261 return ret_val; in e1000_acquire_nvm_80003es2lan()
263 ret_val = e1000e_acquire_nvm(hw); in e1000_acquire_nvm_80003es2lan()
265 if (ret_val) in e1000_acquire_nvm_80003es2lan()
268 return ret_val; in e1000_acquire_nvm_80003es2lan()
[all …]
Dich8lan.c198 s32 ret_val = 0; in e1000_phy_is_accessible_pchlan() local
203 ret_val = e1e_rphy_locked(hw, MII_PHYSID1, &phy_reg); in e1000_phy_is_accessible_pchlan()
204 if (ret_val || (phy_reg == 0xFFFF)) in e1000_phy_is_accessible_pchlan()
208 ret_val = e1e_rphy_locked(hw, MII_PHYSID2, &phy_reg); in e1000_phy_is_accessible_pchlan()
209 if (ret_val || (phy_reg == 0xFFFF)) { in e1000_phy_is_accessible_pchlan()
231 ret_val = e1000_set_mdio_slow_mode_hv(hw); in e1000_phy_is_accessible_pchlan()
232 if (!ret_val) in e1000_phy_is_accessible_pchlan()
233 ret_val = e1000e_get_phy_id(hw); in e1000_phy_is_accessible_pchlan()
237 if (ret_val) in e1000_phy_is_accessible_pchlan()
310 s32 ret_val; in e1000_init_phy_workarounds_pchlan() local
[all …]
D82571.c66 s32 ret_val; in e1000_init_phy_params_82571() local
101 ret_val = e1000_get_phy_id_82571(hw); in e1000_init_phy_params_82571()
102 if (ret_val) { in e1000_init_phy_params_82571()
104 return ret_val; in e1000_init_phy_params_82571()
112 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
116 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
121 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
124 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
128 if (ret_val) in e1000_init_phy_params_82571()
131 return ret_val; in e1000_init_phy_params_82571()
[all …]
Dmac.c161 s32 ret_val; in e1000_check_alt_mac_addr_generic() local
165 ret_val = e1000_read_nvm(hw, NVM_COMPAT, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
166 if (ret_val) in e1000_check_alt_mac_addr_generic()
167 return ret_val; in e1000_check_alt_mac_addr_generic()
173 ret_val = e1000_read_nvm(hw, NVM_ALT_MAC_ADDR_PTR, 1, in e1000_check_alt_mac_addr_generic()
175 if (ret_val) { in e1000_check_alt_mac_addr_generic()
177 return ret_val; in e1000_check_alt_mac_addr_generic()
189 ret_val = e1000_read_nvm(hw, offset, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
190 if (ret_val) { in e1000_check_alt_mac_addr_generic()
192 return ret_val; in e1000_check_alt_mac_addr_generic()
[all …]
Dnvm.c313 s32 ret_val = 0; in e1000e_read_nvm_eerd() local
329 ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_READ); in e1000e_read_nvm_eerd()
330 if (ret_val) { in e1000e_read_nvm_eerd()
331 e_dbg("NVM read error: %d\n", ret_val); in e1000e_read_nvm_eerd()
338 return ret_val; in e1000e_read_nvm_eerd()
356 s32 ret_val = -E1000_ERR_NVM; in e1000e_write_nvm_spi() local
371 ret_val = nvm->ops.acquire(hw); in e1000e_write_nvm_spi()
372 if (ret_val) in e1000e_write_nvm_spi()
373 return ret_val; in e1000e_write_nvm_spi()
375 ret_val = e1000_ready_nvm_eeprom(hw); in e1000e_write_nvm_spi()
[all …]
Dmanage.c115 s32 ret_val, hdr_csum, csum; in e1000e_enable_tx_pkt_filtering() local
129 ret_val = e1000_mng_enable_host_if(hw); in e1000e_enable_tx_pkt_filtering()
130 if (ret_val) { in e1000e_enable_tx_pkt_filtering()
270 s32 ret_val; in e1000e_mng_write_dhcp_info() local
280 ret_val = e1000_mng_enable_host_if(hw); in e1000e_mng_write_dhcp_info()
281 if (ret_val) in e1000e_mng_write_dhcp_info()
282 return ret_val; in e1000e_mng_write_dhcp_info()
285 ret_val = e1000_mng_host_if_write(hw, buffer, length, in e1000e_mng_write_dhcp_info()
287 if (ret_val) in e1000e_mng_write_dhcp_info()
288 return ret_val; in e1000e_mng_write_dhcp_info()
[all …]
/drivers/net/ethernet/intel/igb/
De1000_phy.c77 s32 ret_val = 0; in igb_get_phy_id() local
84 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id()
85 if (ret_val) in igb_get_phy_id()
90 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id()
91 if (ret_val) in igb_get_phy_id()
98 return ret_val; in igb_get_phy_id()
109 s32 ret_val = 0; in igb_phy_reset_dsp() local
114 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp()
115 if (ret_val) in igb_phy_reset_dsp()
118 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp()
[all …]
De1000_82575.c117 s32 ret_val; in igb_check_for_link_media_swap() local
122 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); in igb_check_for_link_media_swap()
123 if (ret_val) in igb_check_for_link_media_swap()
124 return ret_val; in igb_check_for_link_media_swap()
126 ret_val = phy->ops.read_reg(hw, E1000_M88E1112_STATUS, &data); in igb_check_for_link_media_swap()
127 if (ret_val) in igb_check_for_link_media_swap()
128 return ret_val; in igb_check_for_link_media_swap()
134 ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 1); in igb_check_for_link_media_swap()
135 if (ret_val) in igb_check_for_link_media_swap()
136 return ret_val; in igb_check_for_link_media_swap()
[all …]
De1000_mbx.c38 s32 ret_val = -E1000_ERR_MBX; in igb_read_mbx() local
45 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in igb_read_mbx()
47 return ret_val; in igb_read_mbx()
62 s32 ret_val = 0; in igb_write_mbx() local
65 ret_val = -E1000_ERR_MBX; in igb_write_mbx()
68 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in igb_write_mbx()
70 return ret_val; in igb_write_mbx()
83 s32 ret_val = -E1000_ERR_MBX; in igb_check_for_msg() local
86 ret_val = mbx->ops.check_for_msg(hw, mbx_id); in igb_check_for_msg()
88 return ret_val; in igb_check_for_msg()
[all …]
De1000_i210.c142 s32 ret_val = 0; in igb_acquire_swfw_sync_i210() local
147 ret_val = -E1000_ERR_SWFW_SYNC; in igb_acquire_swfw_sync_i210()
163 ret_val = -E1000_ERR_SWFW_SYNC; in igb_acquire_swfw_sync_i210()
172 return ret_val; in igb_acquire_swfw_sync_i210()
253 s32 ret_val = 0; in igb_write_nvm_srwr() local
261 ret_val = -E1000_ERR_NVM; in igb_write_nvm_srwr()
275 ret_val = 0; in igb_write_nvm_srwr()
281 if (ret_val) { in igb_write_nvm_srwr()
288 return ret_val; in igb_write_nvm_srwr()
388 s32 ret_val = 0; in igb_read_invm_i210() local
[all …]
De1000_mac.c48 s32 ret_val; in igb_get_bus_info_pcie() local
54 ret_val = igb_read_pcie_cap_reg(hw, in igb_get_bus_info_pcie()
57 if (ret_val) { in igb_get_bus_info_pcie()
200 s32 ret_val = 0; in igb_vfta_set() local
206 ret_val = -E1000_ERR_CONFIG; in igb_vfta_set()
219 return ret_val; in igb_vfta_set()
236 s32 ret_val = 0; in igb_check_alt_mac_addr() local
246 ret_val = hw->nvm.ops.read(hw, NVM_ALT_MAC_ADDR_PTR, 1, in igb_check_alt_mac_addr()
248 if (ret_val) { in igb_check_alt_mac_addr()
267 ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); in igb_check_alt_mac_addr()
[all …]
De1000_nvm.c150 s32 ret_val = -E1000_ERR_NVM; in igb_poll_eerd_eewr_done() local
159 ret_val = 0; in igb_poll_eerd_eewr_done()
166 return ret_val; in igb_poll_eerd_eewr_done()
181 s32 ret_val = 0; in igb_acquire_nvm() local
199 ret_val = -E1000_ERR_NVM; in igb_acquire_nvm()
202 return ret_val; in igb_acquire_nvm()
274 s32 ret_val = 0; in igb_ready_nvm_eeprom() local
306 ret_val = -E1000_ERR_NVM; in igb_ready_nvm_eeprom()
312 return ret_val; in igb_ready_nvm_eeprom()
328 s32 ret_val; in igb_read_nvm_spi() local
[all …]
/drivers/net/ethernet/intel/e1000/
De1000_hw.c157 u32 ret_val; in e1000_phy_init_script() local
166 ret_val = e1000_read_phy_reg(hw, 0x2F5B, &phy_saved_data); in e1000_phy_init_script()
408 s32 ret_val; in e1000_reset_hw() local
502 ret_val = e1000_get_auto_rd_done(hw); in e1000_reset_hw()
503 if (ret_val) in e1000_reset_hw()
504 return ret_val; in e1000_reset_hw()
555 s32 ret_val; in e1000_init_hw() local
560 ret_val = e1000_id_led_init(hw); in e1000_init_hw()
561 if (ret_val) { in e1000_init_hw()
563 return ret_val; in e1000_init_hw()
[all …]
/drivers/misc/
Dapds9802als.c83 int ret_val; in als_lux0_input_data_show() local
96 ret_val = als_wait_for_data_ready(dev); in als_lux0_input_data_show()
97 if (ret_val < 0) in als_lux0_input_data_show()
102 ret_val = temp; in als_lux0_input_data_show()
105 ret_val = i2c_smbus_read_byte_data(client, 0x8D); /* MSB data */ in als_lux0_input_data_show()
106 if (ret_val < 0) in als_lux0_input_data_show()
112 temp = (ret_val << 8) | temp; in als_lux0_input_data_show()
117 return ret_val; in als_lux0_input_data_show()
125 int ret_val; in als_sensing_range_store() local
128 ret_val = kstrtoul(buf, 10, &val); in als_sensing_range_store()
[all …]
Disl29020.c53 int ret_val, val; in als_lux_input_data_show() local
68 ret_val = i2c_smbus_read_byte_data(client, 0x01); /* LSB data */ in als_lux_input_data_show()
71 if (ret_val < 0) { in als_lux_input_data_show()
73 return ret_val; in als_lux_input_data_show()
76 ret_val |= temp << 8; in als_lux_input_data_show()
81 lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536; in als_lux_input_data_show()
89 int ret_val; in als_sensing_range_store() local
92 ret_val = kstrtoul(buf, 10, &val); in als_sensing_range_store()
93 if (ret_val) in als_sensing_range_store()
94 return ret_val; in als_sensing_range_store()
[all …]
/drivers/media/pci/cx25821/
Dcx25821-medusa-video.c92 int ret_val = 0; in medusa_initialize_ntsc() local
104 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
112 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
119 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
123 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
131 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
139 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
151 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
158 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
171 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], in medusa_initialize_ntsc()
[all …]
/drivers/net/ethernet/atheros/atl1e/
Datl1e_hw.c298 s32 ret_val; in atl1e_phy_setup_autoneg_adv() local
365 ret_val = atl1e_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl1e_phy_setup_autoneg_adv()
366 if (ret_val) in atl1e_phy_setup_autoneg_adv()
367 return ret_val; in atl1e_phy_setup_autoneg_adv()
370 ret_val = atl1e_write_phy_reg(hw, MII_CTRL1000, in atl1e_phy_setup_autoneg_adv()
372 if (ret_val) in atl1e_phy_setup_autoneg_adv()
373 return ret_val; in atl1e_phy_setup_autoneg_adv()
390 int ret_val; in atl1e_phy_commit() local
395 ret_val = atl1e_write_phy_reg(hw, MII_BMCR, phy_data); in atl1e_phy_commit()
396 if (ret_val) { in atl1e_phy_commit()
[all …]
/drivers/net/ethernet/intel/ixgbevf/
Dmbx.c88 s32 ret_val = -IXGBE_ERR_MBX; in ixgbevf_read_posted_mbx() local
93 ret_val = ixgbevf_poll_for_msg(hw); in ixgbevf_read_posted_mbx()
96 if (!ret_val) in ixgbevf_read_posted_mbx()
97 ret_val = mbx->ops.read(hw, msg, size); in ixgbevf_read_posted_mbx()
99 return ret_val; in ixgbevf_read_posted_mbx()
114 s32 ret_val = -IXGBE_ERR_MBX; in ixgbevf_write_posted_mbx() local
121 ret_val = mbx->ops.write(hw, msg, size); in ixgbevf_write_posted_mbx()
124 if (!ret_val) in ixgbevf_write_posted_mbx()
125 ret_val = ixgbevf_poll_for_ack(hw); in ixgbevf_write_posted_mbx()
127 return ret_val; in ixgbevf_write_posted_mbx()
[all …]
/drivers/net/ethernet/intel/igbvf/
Dmbx.c93 s32 ret_val = -E1000_ERR_MBX; in e1000_read_posted_mbx() local
98 ret_val = e1000_poll_for_msg(hw); in e1000_read_posted_mbx()
101 if (!ret_val) in e1000_read_posted_mbx()
102 ret_val = mbx->ops.read(hw, msg, size); in e1000_read_posted_mbx()
104 return ret_val; in e1000_read_posted_mbx()
119 s32 ret_val = -E1000_ERR_MBX; in e1000_write_posted_mbx() local
126 ret_val = mbx->ops.write(hw, msg, size); in e1000_write_posted_mbx()
129 if (!ret_val) in e1000_write_posted_mbx()
130 ret_val = e1000_poll_for_ack(hw); in e1000_write_posted_mbx()
132 return ret_val; in e1000_write_posted_mbx()
[all …]
Dvf.c126 u32 ret_val = -E1000_ERR_MAC_INIT; in e1000_reset_hw_vf() local
152 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_reset_hw_vf()
153 if (!ret_val) { in e1000_reset_hw_vf()
158 ret_val = -E1000_ERR_MAC_INIT; in e1000_reset_hw_vf()
162 return ret_val; in e1000_reset_hw_vf()
311 s32 ret_val; in e1000_rar_set_vf() local
316 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); in e1000_rar_set_vf()
318 if (!ret_val) in e1000_rar_set_vf()
319 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_rar_set_vf()
324 if (!ret_val && in e1000_rar_set_vf()
[all …]
/drivers/scsi/qla4xxx/
Dql4_83xx.c29 int ret_val = QLA_SUCCESS; in qla4_83xx_set_win_base() local
36 ret_val = QLA_ERROR; in qla4_83xx_set_win_base()
39 return ret_val; in qla4_83xx_set_win_base()
45 int ret_val; in qla4_83xx_rd_reg_indirect() local
47 ret_val = qla4_83xx_set_win_base(ha, addr); in qla4_83xx_rd_reg_indirect()
49 if (ret_val == QLA_SUCCESS) in qla4_83xx_rd_reg_indirect()
55 return ret_val; in qla4_83xx_rd_reg_indirect()
61 int ret_val; in qla4_83xx_wr_reg_indirect() local
63 ret_val = qla4_83xx_set_win_base(ha, addr); in qla4_83xx_wr_reg_indirect()
65 if (ret_val == QLA_SUCCESS) in qla4_83xx_wr_reg_indirect()
[all …]
/drivers/char/agp/
Dcompat_ioctl.c209 int ret_val = -ENOTTY; in compat_agp_ioctl() local
215 ret_val = -EINVAL; in compat_agp_ioctl()
220 ret_val = -EBUSY; in compat_agp_ioctl()
225 ret_val = -EPERM; in compat_agp_ioctl()
232 ret_val = -EBUSY; in compat_agp_ioctl()
239 ret_val = compat_agpioc_info_wrap(curr_priv, (void __user *) arg); in compat_agp_ioctl()
243 ret_val = agpioc_acquire_wrap(curr_priv); in compat_agp_ioctl()
247 ret_val = agpioc_release_wrap(curr_priv); in compat_agp_ioctl()
251 ret_val = agpioc_setup_wrap(curr_priv, (void __user *) arg); in compat_agp_ioctl()
255 ret_val = compat_agpioc_reserve_wrap(curr_priv, (void __user *) arg); in compat_agp_ioctl()
[all …]
/drivers/scsi/qla2xxx/
Dqla_nx2.c58 int ret_val = QLA_SUCCESS; in qla8044_set_win_base() local
69 ret_val = QLA_FUNCTION_FAILED; in qla8044_set_win_base()
71 return ret_val; in qla8044_set_win_base()
77 int ret_val = QLA_SUCCESS; in qla8044_rd_reg_indirect() local
80 ret_val = qla8044_set_win_base(vha, addr); in qla8044_rd_reg_indirect()
81 if (!ret_val) in qla8044_rd_reg_indirect()
86 return ret_val; in qla8044_rd_reg_indirect()
92 int ret_val = QLA_SUCCESS; in qla8044_wr_reg_indirect() local
95 ret_val = qla8044_set_win_base(vha, addr); in qla8044_wr_reg_indirect()
96 if (!ret_val) in qla8044_wr_reg_indirect()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_mbx.c194 s32 ret_val; in ixgbe_read_posted_mbx() local
199 ret_val = ixgbe_poll_for_msg(hw, mbx_id); in ixgbe_read_posted_mbx()
200 if (ret_val) in ixgbe_read_posted_mbx()
201 return ret_val; in ixgbe_read_posted_mbx()
221 s32 ret_val; in ixgbe_write_posted_mbx() local
228 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in ixgbe_write_posted_mbx()
229 if (ret_val) in ixgbe_write_posted_mbx()
230 return ret_val; in ixgbe_write_posted_mbx()
359 s32 ret_val; in ixgbe_write_mbx_pf() local
363 ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_number); in ixgbe_write_mbx_pf()
[all …]

12345