Home
last modified time | relevance | path

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

12345678

/linux-6.1.9/drivers/net/ethernet/intel/e1000e/
Dphy.c62 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 …]
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()
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 …]
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()
292 s32 ret_val; in e1000_init_phy_workarounds_pchlan() local
[all …]
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 …]
Dmac.c143 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 …]
/linux-6.1.9/drivers/net/ethernet/intel/igb/
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 …]
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 …]
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 …]
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 …]
De1000_mac.c28 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 …]
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-6.1.9/drivers/net/ethernet/intel/igc/
Digc_phy.c34 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 …]
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-6.1.9/drivers/net/ethernet/intel/e1000/
De1000_hw.c381 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 …]
/linux-6.1.9/net/netlabel/
Dnetlabel_calipso.c73 int ret_val; in netlbl_calipso_add_pass() local
81 ret_val = calipso_doi_add(doi_def, audit_info); in netlbl_calipso_add_pass()
82 if (ret_val != 0) in netlbl_calipso_add_pass()
85 return ret_val; in netlbl_calipso_add_pass()
101 int ret_val = -EINVAL; in netlbl_calipso_add() local
111 ret_val = netlbl_calipso_add_pass(info, &audit_info); in netlbl_calipso_add()
114 if (ret_val == 0) in netlbl_calipso_add()
117 return ret_val; in netlbl_calipso_add()
132 int ret_val; in netlbl_calipso_list() local
139 ret_val = -EINVAL; in netlbl_calipso_list()
[all …]
Dnetlabel_mgmt.c80 int ret_val = -EINVAL; in netlbl_mgmt_add_common() local
96 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
155 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
163 ret_val = -EINVAL; in netlbl_mgmt_add_common()
168 ret_val = -EINVAL; in netlbl_mgmt_add_common()
176 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
187 ret_val = netlbl_af4list_add(&map->list, &addrmap->list4); in netlbl_mgmt_add_common()
188 if (ret_val != 0) in netlbl_mgmt_add_common()
202 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
210 ret_val = -EINVAL; in netlbl_mgmt_add_common()
[all …]
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 …]
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-6.1.9/drivers/misc/
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 …]
Disl29020.c42 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 …]
/linux-6.1.9/drivers/media/pci/cx25821/
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-6.1.9/drivers/net/ethernet/intel/ixgbevf/
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-6.1.9/drivers/net/ethernet/atheros/atl1e/
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-6.1.9/net/ipv4/
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-6.1.9/net/ipv6/
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 …]

12345678