Home
last modified time | relevance | path

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

12345678

/titanic_50/usr/src/uts/common/io/e1000api/
H A De1000_phy.c221 s32 ret_val = E1000_SUCCESS; in e1000_get_phy_id() local
231 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id()
232 if (ret_val) in e1000_get_phy_id()
233 return ret_val; in e1000_get_phy_id()
237 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id()
238 if (ret_val) in e1000_get_phy_id()
239 return ret_val; in e1000_get_phy_id()
261 s32 ret_val; in e1000_phy_reset_dsp_generic() local
268 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in e1000_phy_reset_dsp_generic()
269 if (ret_val) in e1000_phy_reset_dsp_generic()
[all …]
H A De1000_80003es2lan.c92 s32 ret_val; in e1000_init_phy_params_80003es2lan() local
127 ret_val = e1000_get_phy_id(hw); in e1000_init_phy_params_80003es2lan()
133 return ret_val; in e1000_init_phy_params_80003es2lan()
364 s32 ret_val; in e1000_acquire_nvm_80003es2lan() local
368 ret_val = e1000_acquire_swfw_sync_80003es2lan(hw, E1000_SWFW_EEP_SM); in e1000_acquire_nvm_80003es2lan()
369 if (ret_val) in e1000_acquire_nvm_80003es2lan()
370 return ret_val; in e1000_acquire_nvm_80003es2lan()
372 ret_val = e1000_acquire_nvm_generic(hw); in e1000_acquire_nvm_80003es2lan()
374 if (ret_val) in e1000_acquire_nvm_80003es2lan()
377 return ret_val; in e1000_acquire_nvm_80003es2lan()
[all …]
H A De1000_ich8lan.c204 s32 ret_val = 0; in e1000_phy_is_accessible_pchlan() local
209 ret_val = hw->phy.ops.read_reg_locked(hw, PHY_ID1, &phy_reg); in e1000_phy_is_accessible_pchlan()
210 if (ret_val || (phy_reg == 0xFFFF)) in e1000_phy_is_accessible_pchlan()
214 ret_val = hw->phy.ops.read_reg_locked(hw, PHY_ID2, &phy_reg); in e1000_phy_is_accessible_pchlan()
215 if (ret_val || (phy_reg == 0xFFFF)) { in e1000_phy_is_accessible_pchlan()
237 ret_val = e1000_set_mdio_slow_mode_hv(hw); in e1000_phy_is_accessible_pchlan()
238 if (!ret_val) in e1000_phy_is_accessible_pchlan()
239 ret_val = e1000_get_phy_id(hw); in e1000_phy_is_accessible_pchlan()
243 if (ret_val) in e1000_phy_is_accessible_pchlan()
320 s32 ret_val; in e1000_init_phy_workarounds_pchlan() local
[all …]
H A De1000_i210.c57 s32 ret_val; in e1000_acquire_nvm_i210() local
61 ret_val = e1000_acquire_swfw_sync_i210(hw, E1000_SWFW_EEP_SM); in e1000_acquire_nvm_i210()
63 return ret_val; in e1000_acquire_nvm_i210()
93 s32 ret_val = E1000_SUCCESS; in e1000_acquire_swfw_sync_i210() local
100 ret_val = -E1000_ERR_SWFW_SYNC; in e1000_acquire_swfw_sync_i210()
119 ret_val = -E1000_ERR_SWFW_SYNC; in e1000_acquire_swfw_sync_i210()
129 return ret_val; in e1000_acquire_swfw_sync_i210()
327 s32 ret_val = E1000_SUCCESS; in e1000_write_nvm_srwr() local
338 ret_val = -E1000_ERR_NVM; in e1000_write_nvm_srwr()
352 ret_val = E1000_SUCCESS; in e1000_write_nvm_srwr()
[all …]
H A De1000_82541.c88 s32 ret_val; in e1000_init_phy_params_82541() local
110 ret_val = e1000_get_phy_id(hw); in e1000_init_phy_params_82541()
111 if (ret_val) in e1000_init_phy_params_82541()
116 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82541()
121 return ret_val; in e1000_init_phy_params_82541()
131 s32 ret_val = E1000_SUCCESS; in e1000_init_nvm_params_82541() local
182 ret_val = nvm->ops.read(hw, NVM_CFG, 1, &size); in e1000_init_nvm_params_82541()
183 if (ret_val) in e1000_init_nvm_params_82541()
212 return ret_val; in e1000_init_nvm_params_82541()
379 s32 ret_val; in e1000_init_hw_82541() local
[all …]
H A De1000_mbx.c75 s32 ret_val = -E1000_ERR_MBX; in e1000_read_mbx() local
84 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in e1000_read_mbx()
86 return ret_val; in e1000_read_mbx()
101 s32 ret_val = E1000_SUCCESS; in e1000_write_mbx() local
106 ret_val = -E1000_ERR_MBX; in e1000_write_mbx()
109 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in e1000_write_mbx()
111 return ret_val; in e1000_write_mbx()
124 s32 ret_val = -E1000_ERR_MBX; in e1000_check_for_msg() local
129 ret_val = mbx->ops.check_for_msg(hw, mbx_id); in e1000_check_for_msg()
131 return ret_val; in e1000_check_for_msg()
[all …]
H A De1000_82575.c167 s32 ret_val = E1000_SUCCESS; in e1000_init_phy_params_82575() local
228 ret_val = e1000_get_phy_id_82575(hw); in e1000_init_phy_params_82575()
257 ret_val = phy->ops.write_reg(hw, in e1000_init_phy_params_82575()
260 if (ret_val) in e1000_init_phy_params_82575()
263 ret_val = phy->ops.read_reg(hw, in e1000_init_phy_params_82575()
266 if (ret_val) in e1000_init_phy_params_82575()
277 ret_val = e1000_initialize_M88E1512_phy(hw); in e1000_init_phy_params_82575()
278 if (ret_val) in e1000_init_phy_params_82575()
282 ret_val = e1000_initialize_M88E1543_phy(hw); in e1000_init_phy_params_82575()
283 if (ret_val) in e1000_init_phy_params_82575()
[all …]
H A De1000_82540.c69 s32 ret_val; in e1000_init_phy_params_82540() local
89 ret_val = e1000_get_phy_id(hw); in e1000_init_phy_params_82540()
90 if (ret_val) in e1000_init_phy_params_82540()
104 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82540()
110 return ret_val; in e1000_init_phy_params_82540()
161 s32 ret_val = E1000_SUCCESS; in e1000_init_mac_params_82540() local
216 ret_val = -E1000_ERR_CONFIG; in e1000_init_mac_params_82540()
246 return ret_val; in e1000_init_mac_params_82540()
273 s32 ret_val = E1000_SUCCESS; in e1000_reset_hw_82540() local
319 return ret_val; in e1000_reset_hw_82540()
[all …]
H A De1000_82543.c87 s32 ret_val = E1000_SUCCESS; in e1000_init_phy_params_82543() local
127 ret_val = phy->ops.reset(hw); in e1000_init_phy_params_82543()
128 if (ret_val) { in e1000_init_phy_params_82543()
135 ret_val = e1000_get_phy_id(hw); in e1000_init_phy_params_82543()
136 if (ret_val) in e1000_init_phy_params_82543()
143 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82543()
149 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82543()
154 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82543()
160 return ret_val; in e1000_init_phy_params_82543()
386 bool ret_val; in e1000_init_phy_disabled_82543() local
[all …]
H A De1000_nvm.c444 s32 ret_val; in e1000_read_nvm_spi() local
459 ret_val = nvm->ops.acquire(hw); in e1000_read_nvm_spi()
460 if (ret_val) in e1000_read_nvm_spi()
461 return ret_val; in e1000_read_nvm_spi()
463 ret_val = e1000_ready_nvm_eeprom(hw); in e1000_read_nvm_spi()
464 if (ret_val) in e1000_read_nvm_spi()
488 return ret_val; in e1000_read_nvm_spi()
505 s32 ret_val; in e1000_read_nvm_microwire() local
519 ret_val = nvm->ops.acquire(hw); in e1000_read_nvm_microwire()
520 if (ret_val) in e1000_read_nvm_microwire()
[all …]
H A De1000_82571.c97 s32 ret_val; in e1000_init_phy_params_82571() local
168 ret_val = e1000_get_phy_id_82571(hw); in e1000_init_phy_params_82571()
169 if (ret_val) { in e1000_init_phy_params_82571()
171 return ret_val; in e1000_init_phy_params_82571()
179 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
183 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
188 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
191 ret_val = -E1000_ERR_PHY; in e1000_init_phy_params_82571()
195 if (ret_val) in e1000_init_phy_params_82571()
198 return ret_val; in e1000_init_phy_params_82571()
[all …]
H A De1000_mac.c182 s32 ret_val = E1000_SUCCESS; in e1000_get_bus_info_pci_generic() local
221 return ret_val; in e1000_get_bus_info_pci_generic()
236 s32 ret_val; in e1000_get_bus_info_pcie_generic() local
243 ret_val = e1000_read_pcie_cap_reg(hw, PCIE_LINK_STATUS, in e1000_get_bus_info_pcie_generic()
245 if (ret_val) { in e1000_get_bus_info_pcie_generic()
403 s32 ret_val; in e1000_check_alt_mac_addr_generic() local
409 ret_val = hw->nvm.ops.read(hw, NVM_COMPAT, 1, &nvm_data); in e1000_check_alt_mac_addr_generic()
410 if (ret_val) in e1000_check_alt_mac_addr_generic()
411 return ret_val; in e1000_check_alt_mac_addr_generic()
423 ret_val = hw->nvm.ops.read(hw, NVM_ALT_MAC_ADDR_PTR, 1, in e1000_check_alt_mac_addr_generic()
[all …]
/titanic_50/usr/src/lib/libsmedia/library/common/
H A Dl_generic.c53 int32_t ret_val; in smedia_get_device_info() local
55 ret_val = call_function((rmedia_handle_t *)handle, in smedia_get_device_info()
60 return (ret_val); in smedia_get_device_info()
66 int32_t ret_val; in smedia_free_device_info() local
68 ret_val = call_function((rmedia_handle_t *)handle, in smedia_free_device_info()
73 return (ret_val); in smedia_free_device_info()
79 int32_t ret_val; in smedia_get_medium_property() local
81 ret_val = call_function((rmedia_handle_t *)handle, in smedia_get_medium_property()
85 return (ret_val); in smedia_get_medium_property()
91 int32_t ret_val; in smedia_set_protection_status() local
[all …]
/titanic_50/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_mbx.c50 s32 ret_val = IXGBE_ERR_MBX; in ixgbe_read_mbx() local
59 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in ixgbe_read_mbx()
61 return ret_val; in ixgbe_read_mbx()
76 s32 ret_val = IXGBE_SUCCESS; in ixgbe_write_mbx() local
81 ret_val = IXGBE_ERR_MBX; in ixgbe_write_mbx()
85 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in ixgbe_write_mbx()
87 return ret_val; in ixgbe_write_mbx()
100 s32 ret_val = IXGBE_ERR_MBX; in ixgbe_check_for_msg() local
105 ret_val = mbx->ops.check_for_msg(hw, mbx_id); in ixgbe_check_for_msg()
107 return ret_val; in ixgbe_check_for_msg()
[all …]
/titanic_50/usr/src/lib/libpkg/common/
H A Dckparam.c56 int ret_val = 0; /* return value */ in ckparam() local
59 ret_val = proc_name(param, value); in ckparam()
62 ret_val = proc_arch(param, value); in ckparam()
65 ret_val = proc_version(param, value); in ckparam()
68 ret_val = proc_category(param, value); in ckparam()
72 return (ret_val); in ckparam()
78 int ret_val; in proc_name() local
80 if (!(ret_val = isnull(param, value))) { in proc_name()
81 ret_val += too_long(param, value, MAXLEN); in proc_name()
82 ret_val += not_ascii(param, value); in proc_name()
[all …]
/titanic_50/usr/src/uts/common/io/1394/targets/dcam1394/
H A Ddcam_param.c1124 int ret_val; in param_brightness_get() local
1131 ret_val = feature_get(softc_p, feature_csr_offs, in param_brightness_get()
1134 return (ret_val); in param_brightness_get()
1144 int ret_val; in param_brightness_set() local
1149 ret_val = feature_set(softc_p, feature_csr_offs, subparam, val); in param_brightness_set()
1151 return (ret_val); in param_brightness_set()
1161 int ret_val; in param_exposure_get() local
1168 ret_val = feature_get(softc_p, feature_csr_offs, in param_exposure_get()
1171 return (ret_val); in param_exposure_get()
1181 int ret_val; in param_exposure_set() local
[all …]
/titanic_50/usr/src/lib/libfsmgt/common/
H A Dcmd.c84 int ret_val; in cmd_execute_command() local
159 ret_val = 0; in cmd_execute_command()
160 return (ret_val); in cmd_execute_command()
184 char *ret_val; in cmd_execute_command_and_retrieve_string() local
257 ret_val = cmd_retrieve_string(output[0], &err); in cmd_execute_command_and_retrieve_string()
266 ret_val = cmd_retrieve_string(output[0], &err); in cmd_execute_command_and_retrieve_string()
271 return (ret_val); in cmd_execute_command_and_retrieve_string()
292 char *ret_val; in cmd_retrieve_string() local
305 ret_val = (char *)calloc((size_t)1, (size_t)sizeof (char)); in cmd_retrieve_string()
306 ret_val[0] = '\0'; in cmd_retrieve_string()
[all …]
/titanic_50/usr/src/grub/grub-0.97/netboot/
H A De1000.c1111 int32_t ret_val; local
1202 ret_val = e1000_setup_link(hw);
1220 return ret_val;
1232 int32_t ret_val; local
1247 if ((ret_val = e1000_read_eeprom(hw, EEPROM_SERDES_AMPLITUDE, 1,
1249 return ret_val;
1255 if((ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_EXT_CTRL,
1257 return ret_val;
1278 int32_t ret_val; local
1341 ret_val = (hw->media_type == e1000_media_type_copper) ?
[all …]
/titanic_50/usr/src/lib/iconv_modules/ko/common/
H A Dutf_to_euc_main.c55 size_t ret_val = 0; in _icv_iconv() local
82 ret_val = (size_t)-1; in _icv_iconv()
94 ret_val = (size_t)-1; in _icv_iconv()
101 ret_val = (size_t)-1; in _icv_iconv()
115 ret_val = (size_t)-1; in _icv_iconv()
128 ret_val += 1; in _icv_iconv()
139 ret_val = (size_t)-1; in _icv_iconv()
146 ret_val = (size_t)-1; in _icv_iconv()
160 ret_val = (size_t)-1; in _icv_iconv()
171 ret_val += 1; in _icv_iconv()
[all …]
H A Dutf_to_uhang_main.c54 size_t ret_val = 0; in _icv_iconv() local
80 ret_val = (size_t)-1; in _icv_iconv()
90 ret_val = (size_t)-1; in _icv_iconv()
97 ret_val = (size_t)-1; in _icv_iconv()
119 ret_val = (size_t)-1; in _icv_iconv()
124 ret_val += 2; in _icv_iconv()
135 ret_val = (size_t)-1; in _icv_iconv()
142 ret_val = (size_t)-1; in _icv_iconv()
164 ret_val = (size_t)-1; in _icv_iconv()
169 ret_val += 2; in _icv_iconv()
[all …]
H A Dutf_to_njh_main.c55 size_t ret_val = 0; in _icv_iconv() local
82 ret_val = (size_t)-1; in _icv_iconv()
94 ret_val = (size_t)-1; in _icv_iconv()
101 ret_val = (size_t)-1; in _icv_iconv()
123 ret_val = (size_t)-1; in _icv_iconv()
128 ret_val += 2; in _icv_iconv()
152 ret_val = (size_t)-1; in _icv_iconv()
159 ret_val = (size_t)-1; in _icv_iconv()
170 ret_val = (size_t)-1; in _icv_iconv()
176 ret_val += offset; in _icv_iconv()
[all …]
/titanic_50/usr/src/uts/common/kiconv/kiconv_ko/
H A Dkiconv_ko.c49 uchar_t *ob, uchar_t *obtail, size_t *ret_val);
51 uchar_t *ob, uchar_t *obtail, size_t *ret_val);
53 size_t *ret_val, kiconv_table_array_t *table, size_t nitems);
92 size_t ret_val; in kiconv_fr_euckr() local
107 ret_val = 0; in kiconv_fr_euckr()
148 sz = ko_to_utf8(euckr_val, ob, obtail, &ret_val, in kiconv_fr_euckr()
164 return (ret_val); in kiconv_fr_euckr()
179 size_t ret_val; in kiconvstr_fr_euckr() local
184 ret_val = 0; in kiconvstr_fr_euckr()
220 sz = ko_to_utf8(euckr_val, ob, obtail, &ret_val, in kiconvstr_fr_euckr()
[all …]
/titanic_50/usr/src/uts/common/kiconv/kiconv_tc/
H A Dkiconv_tc.c70 uchar_t *obtail, size_t *ret_val);
73 uchar_t *ob, uchar_t *obtail, size_t *ret_val);
75 uchar_t *ob, uchar_t *obtail, size_t *ret_val);
77 uchar_t *ibtail, uchar_t *ob, uchar_t *obtail, size_t *ret_val);
79 uchar_t *ob, uchar_t *obtail, size_t *ret_val);
81 size_t *ret_val);
83 uchar_t *obtail, size_t *ret_val);
85 uchar_t *obtail, size_t *ret_val);
87 uchar_t *ob, uchar_t *obtail, size_t *ret_val);
142 size_t ret_val; in kiconv_fr_big5_common() local
[all …]
/titanic_50/usr/src/cmd/smserverd/
H A Dsmediad.c338 int32_t ret_val; in get_sector_size() local
351 ret_val = do_uscsi_cmd(fd, in get_sector_size()
353 if (ret_val || ucmd.uscsi_status) { in get_sector_size()
355 ret_val, ucmd.uscsi_status, errno); in get_sector_size()
465 int32_t ret_val; in do_uscsi_cmd() local
481 ret_val = ioctl(file, USCSICMD, uscsi_cmd); in do_uscsi_cmd()
482 if (ret_val == 0 && uscsi_cmd->uscsi_status == 0) { in do_uscsi_cmd()
483 return (ret_val); in do_uscsi_cmd()
515 int32_t ret_val; in get_device_type_scsi() local
530 ret_val = do_uscsi_cmd(fd, &ucmd, USCSI_READ|USCSI_RQENABLE); in get_device_type_scsi()
[all …]
/titanic_50/usr/src/lib/iconv_modules/th_TH/common/
H A Dutf_to_euc_main.c55 size_t ret_val = 0; in _icv_iconv() local
82 ret_val = (size_t)-1; in _icv_iconv()
94 ret_val = (size_t)-1; in _icv_iconv()
102 ret_val = (size_t)-1; in _icv_iconv()
108 ret_val = (size_t)-1; in _icv_iconv()
114 ret_val = (size_t)-1; in _icv_iconv()
135 ret_val = (size_t)-1; in _icv_iconv()
139 ret_val += 1; in _icv_iconv()
175 ret_val = (size_t)-1; in _icv_iconv()
186 ret_val = (size_t)-1; in _icv_iconv()
[all …]

12345678