Home
last modified time | relevance | path

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

1234567

/linux/drivers/net/ethernet/intel/e1000e/
H A Dphy.c63 s32 ret_val = 0; in e1000e_get_phy_id() local
71 ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); in e1000e_get_phy_id()
72 if (ret_val) in e1000e_get_phy_id()
73 return ret_val; in e1000e_get_phy_id()
77 ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); in e1000e_get_phy_id()
78 if (ret_val) in e1000e_get_phy_id()
79 return ret_val; in e1000e_get_phy_id()
101 s32 ret_val; in e1000e_phy_reset_dsp() local
103 ret_val = e1e_wphy(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in e1000e_phy_reset_dsp()
104 if (ret_val) in e1000e_phy_reset_dsp()
[all …]
H A D80003es2lan.c41 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()
238 s32 ret_val; in e1000_acquire_nvm_80003es2lan() local
240 ret_val = e1000_acquire_swfw_sync_80003es2lan(hw, E1000_SWFW_EEP_SM); in e1000_acquire_nvm_80003es2lan()
241 if (ret_val) in e1000_acquire_nvm_80003es2lan()
242 return ret_val; in e1000_acquire_nvm_80003es2lan()
244 ret_val = e1000e_acquire_nvm(hw); in e1000_acquire_nvm_80003es2lan()
246 if (ret_val) in e1000_acquire_nvm_80003es2lan()
249 return ret_val; in e1000_acquire_nvm_80003es2lan()
[all …]
H A Dich8lan.c180 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()
299 s32 ret_val; in e1000_init_phy_workarounds_pchlan() local
[all …]
H A D82571.c48 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 …]
H A Dmac.c141 s32 ret_val; in e1000_check_alt_mac_addr_generic() local
145 ret_val = e1000_read_nvm(hw, NVM_COMPAT, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
146 if (ret_val) in e1000_check_alt_mac_addr_generic()
147 return ret_val; in e1000_check_alt_mac_addr_generic()
153 ret_val = e1000_read_nvm(hw, NVM_ALT_MAC_ADDR_PTR, 1, in e1000_check_alt_mac_addr_generic()
155 if (ret_val) { in e1000_check_alt_mac_addr_generic()
157 return ret_val; in e1000_check_alt_mac_addr_generic()
169 ret_val = e1000_read_nvm(hw, offset, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
170 if (ret_val) { in e1000_check_alt_mac_addr_generic()
172 return ret_val; in e1000_check_alt_mac_addr_generic()
[all …]
H A Dnvm.c295 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 …]
/linux/drivers/net/ethernet/intel/igb/
H A De1000_phy.c57 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 …]
H A De1000_mbx.c20 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 …]
H A De1000_82575.c122 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 …]
H A De1000_i210.c122 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 …]
H A De1000_mac.c29 s32 ret_val; in igb_get_bus_info_pcie() local
35 ret_val = igb_read_pcie_cap_reg(hw, in igb_get_bus_info_pcie()
38 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 …]
H A De1000_nvm.c131 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 …]
/linux/drivers/net/ethernet/intel/e1000/
H A De1000_hw.c382 s32 ret_val; in e1000_reset_hw() local
476 ret_val = e1000_get_auto_rd_done(hw); in e1000_reset_hw()
477 if (ret_val) in e1000_reset_hw()
478 return ret_val; in e1000_reset_hw()
529 s32 ret_val; in e1000_init_hw() local
534 ret_val = e1000_id_led_init(hw); in e1000_init_hw()
535 if (ret_val) { in e1000_init_hw()
537 return ret_val; in e1000_init_hw()
608 ret_val = e1000_setup_link(hw); in e1000_init_hw()
636 return ret_val; in e1000_init_hw()
[all …]
/linux/drivers/net/ethernet/intel/igc/
H A Digc_phy.c35 s32 ret_val = 0; in igc_get_phy_id() local
38 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id()
39 if (ret_val) in igc_get_phy_id()
44 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id()
45 if (ret_val) in igc_get_phy_id()
52 return ret_val; in igc_get_phy_id()
68 s32 ret_val = 0; in igc_phy_has_link() local
75 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link()
76 if (ret_val && usec_interval > 0) { in igc_phy_has_link()
86 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); in igc_phy_has_link()
[all …]
H A Digc_nvm.c17 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 …]
/linux/net/netlabel/
H A Dnetlabel_calipso.c95 int ret_val; in netlbl_calipso_add_pass() local
103 ret_val = calipso_doi_add(doi_def, audit_info); in netlbl_calipso_add_pass()
104 if (ret_val != 0) in netlbl_calipso_add_pass()
107 return ret_val; in netlbl_calipso_add_pass()
122 int ret_val = -EINVAL; in netlbl_calipso_add() local
136 ret_val = netlbl_calipso_add_pass(info, &audit_info); in netlbl_calipso_add()
139 if (ret_val == 0) in netlbl_calipso_add()
142 return ret_val; in netlbl_calipso_add()
157 int ret_val; in netlbl_calipso_list() local
164 ret_val = -EINVAL; in netlbl_calipso_list()
[all …]
H A Dnetlabel_cipso_v4.c124 int ret_val = -EINVAL; in netlbl_cipsov4_add_std() local
152 ret_val = netlbl_cipsov4_add_common(info, doi_def); in netlbl_cipsov4_add_std()
153 if (ret_val != 0) in netlbl_cipsov4_add_std()
155 ret_val = -EINVAL; in netlbl_cipsov4_add_std()
192 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
199 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
268 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
276 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
305 ret_val = cipso_v4_doi_add(doi_def, audit_info); in netlbl_cipsov4_add_std()
306 if (ret_val != 0) in netlbl_cipsov4_add_std()
[all …]
H A Dnetlabel_kapi.c101 int ret_val = -ENOMEM; in netlbl_cfg_unlbl_map_add() local
137 ret_val = netlbl_af4list_add(&map4->list, in netlbl_cfg_unlbl_map_add()
139 if (ret_val != 0) in netlbl_cfg_unlbl_map_add()
158 ret_val = netlbl_af6list_add(&map6->list, in netlbl_cfg_unlbl_map_add()
160 if (ret_val != 0) in netlbl_cfg_unlbl_map_add()
172 ret_val = -EINVAL; in netlbl_cfg_unlbl_map_add()
176 ret_val = netlbl_domhsh_add(entry, audit_info); in netlbl_cfg_unlbl_map_add()
177 if (ret_val != 0) in netlbl_cfg_unlbl_map_add()
188 return ret_val; in netlbl_cfg_unlbl_map_add()
329 int ret_val = -ENOMEM; in netlbl_cfg_cipsov4_map_add() local
[all …]
/linux/drivers/misc/
H A Dapds9802als.c71 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 …]
/linux/drivers/media/pci/cx25821/
H A Dcx25821-medusa-video.c78 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 …]
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Dmbx.c129 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 …]
/linux/drivers/net/ethernet/atheros/atl1e/
H A Datl1e_hw.c285 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 …]
/linux/net/ipv4/
H A Dcipso_ipv4.c300 int ret_val = -EPERM; in cipso_v4_cache_add() local
316 ret_val = -ENOMEM; in cipso_v4_cache_add()
343 return ret_val; in cipso_v4_cache_add()
385 int ret_val = -EINVAL; in cipso_v4_doi_add() local
423 ret_val = -EEXIST; in cipso_v4_doi_add()
428 ret_val = 0; in cipso_v4_doi_add()
449 doi, type_str, ret_val == 0 ? 1 : 0); in cipso_v4_doi_add()
453 return ret_val; in cipso_v4_doi_add()
512 int ret_val; in cipso_v4_doi_remove() local
520 ret_val = -ENOENT; in cipso_v4_doi_remove()
[all …]
/linux/net/ipv6/
H A Dcalipso.c267 int ret_val = -EPERM; in calipso_cache_add() local
283 ret_val = -ENOMEM; in calipso_cache_add()
310 return ret_val; in calipso_cache_add()
351 int ret_val = -EINVAL; in calipso_doi_add() local
367 ret_val = -EEXIST; in calipso_doi_add()
372 ret_val = 0; in calipso_doi_add()
388 doi, type_str, ret_val == 0 ? 1 : 0); in calipso_doi_add()
392 return ret_val; in calipso_doi_add()
439 int ret_val; in calipso_doi_remove() local
447 ret_val = -ENOENT; in calipso_doi_remove()
[all …]
/linux/drivers/net/ethernet/intel/igbvf/
H A Dmbx.c71 s32 ret_val = -E1000_ERR_MBX; in e1000_read_posted_mbx() local
76 ret_val = e1000_poll_for_msg(hw); in e1000_read_posted_mbx()
79 if (!ret_val) in e1000_read_posted_mbx()
80 ret_val = mbx->ops.read(hw, msg, size); in e1000_read_posted_mbx()
82 return ret_val; in e1000_read_posted_mbx()
97 s32 ret_val = -E1000_ERR_MBX; in e1000_write_posted_mbx() local
104 ret_val = mbx->ops.write(hw, msg, size); in e1000_write_posted_mbx()
107 if (!ret_val) in e1000_write_posted_mbx()
108 ret_val = e1000_poll_for_ack(hw); in e1000_write_posted_mbx()
110 return ret_val; in e1000_write_posted_mbx()
[all …]

1234567