Home
last modified time | relevance | path

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

/linux-4.4.14/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 …]
Dethtool.c262 int ret_val = 0; in e1000_set_settings() local
272 ret_val = -EINVAL; in e1000_set_settings()
282 ret_val = -EOPNOTSUPP; in e1000_set_settings()
289 ret_val = -EINVAL; in e1000_set_settings()
312 ret_val = -EINVAL; in e1000_set_settings()
339 return ret_val; in e1000_set_settings()
502 int ret_val = 0; in e1000_get_eeprom() local
521 ret_val = e1000_read_nvm(hw, first_word, in e1000_get_eeprom()
526 ret_val = e1000_read_nvm(hw, first_word + i, 1, in e1000_get_eeprom()
528 if (ret_val) in e1000_get_eeprom()
[all …]
Dptp.c46 s32 ret_val; in e1000e_phc_adjfreq() local
57 ret_val = e1000e_get_base_timinca(adapter, &timinca); in e1000e_phc_adjfreq()
58 if (ret_val) in e1000e_phc_adjfreq()
59 return ret_val; in e1000e_phc_adjfreq()
Dnetdev.c627 s32 ret_val = __ew32_prepare(hw); in e1000e_update_rdt_wa() local
631 if (unlikely(!ret_val && (i != readl(rx_ring->tail)))) { in e1000e_update_rdt_wa()
644 s32 ret_val = __ew32_prepare(hw); in e1000e_update_tdt_wa() local
648 if (unlikely(!ret_val && (i != readl(tx_ring->tail)))) { in e1000e_update_tdt_wa()
3047 s32 ret_val; in e1000_setup_rctl() local
3050 ret_val = e1000_lv_jumbo_workaround_ich8lan(hw, true); in e1000_setup_rctl()
3052 ret_val = e1000_lv_jumbo_workaround_ich8lan(hw, false); in e1000_setup_rctl()
3054 if (ret_val) in e1000_setup_rctl()
3596 s32 ret_val; in e1000e_config_hwtstamp() local
3736 ret_val = e1000e_get_base_timinca(adapter, &regval); in e1000e_config_hwtstamp()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/igb/
De1000_phy.c77 s32 ret_val = 0; in igb_get_phy_id() local
80 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id()
81 if (ret_val) in igb_get_phy_id()
86 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id()
87 if (ret_val) in igb_get_phy_id()
94 return ret_val; in igb_get_phy_id()
105 s32 ret_val = 0; in igb_phy_reset_dsp() local
110 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp()
111 if (ret_val) in igb_phy_reset_dsp()
114 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); in igb_phy_reset_dsp()
[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_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_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 …]
Digb_ethtool.c722 int ret_val = 0; in igb_get_eeprom() local
739 ret_val = hw->nvm.ops.read(hw, first_word, in igb_get_eeprom()
744 ret_val = hw->nvm.ops.read(hw, first_word + i, 1, in igb_get_eeprom()
746 if (ret_val) in igb_get_eeprom()
759 return ret_val; in igb_get_eeprom()
769 int max_len, first_word, last_word, ret_val = 0; in igb_set_eeprom() local
797 ret_val = hw->nvm.ops.read(hw, first_word, 1, in igb_set_eeprom()
801 if (((eeprom->offset + eeprom->len) & 1) && (ret_val == 0)) { in igb_set_eeprom()
805 ret_val = hw->nvm.ops.read(hw, last_word, 1, in igb_set_eeprom()
818 ret_val = hw->nvm.ops.write(hw, first_word, in igb_set_eeprom()
[all …]
Digb_main.c2237 s32 ret_val; in igb_probe() local
2597 ret_val = igb_read_part_string(hw, part_str, in igb_probe()
2600 ret_val = -E1000_ERR_INVM_VALUE_NOT_FOUND; in igb_probe()
2603 if (ret_val) in igb_probe()
5654 int ret_val; in igb_notify_dca() local
5656 ret_val = driver_for_each_device(&igb_driver.driver, NULL, &event, in igb_notify_dca()
5659 return ret_val ? NOTIFY_BAD : NOTIFY_DONE; in igb_notify_dca()
/linux-4.4.14/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 …]
De1000_ethtool.c448 int ret_val = 0; in e1000_get_eeprom() local
465 ret_val = e1000_read_eeprom(hw, first_word, in e1000_get_eeprom()
470 ret_val = e1000_read_eeprom(hw, first_word + i, 1, in e1000_get_eeprom()
472 if (ret_val) in e1000_get_eeprom()
485 return ret_val; in e1000_get_eeprom()
495 int max_len, first_word, last_word, ret_val = 0; in e1000_set_eeprom() local
518 ret_val = e1000_read_eeprom(hw, first_word, 1, in e1000_set_eeprom()
522 if (((eeprom->offset + eeprom->len) & 1) && (ret_val == 0)) { in e1000_set_eeprom()
526 ret_val = e1000_read_eeprom(hw, last_word, 1, in e1000_set_eeprom()
539 ret_val = e1000_write_eeprom(hw, first_word, in e1000_set_eeprom()
[all …]
De1000_main.c4840 int ret_val = pci_set_mwi(adapter->pdev); in e1000_pci_set_mwi() local
4842 if (ret_val) in e1000_pci_set_mwi()
/linux-4.4.14/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 …]
/linux-4.4.14/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 …]
/linux-4.4.14/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 …]
Dvf.c74 s32 ret_val = IXGBE_ERR_INVALID_MAC_ADDR; in ixgbevf_reset_hw_vf() local
108 ret_val = mbx->ops.read_posted(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); in ixgbevf_reset_hw_vf()
109 if (ret_val) in ixgbevf_reset_hw_vf()
110 return ret_val; in ixgbevf_reset_hw_vf()
232 s32 ret_val; in ixgbevf_set_uc_addr_vf() local
244 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); in ixgbevf_set_uc_addr_vf()
246 if (!ret_val) in ixgbevf_set_uc_addr_vf()
247 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in ixgbevf_set_uc_addr_vf()
251 if (!ret_val) in ixgbevf_set_uc_addr_vf()
254 ret_val = -ENOMEM; in ixgbevf_set_uc_addr_vf()
[all …]
/linux-4.4.14/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 …]
Datl1e_ethtool.c215 int ret_val = 0; in atl1e_get_eeprom() local
245 return ret_val; in atl1e_get_eeprom()
256 int ret_val = 0; in atl1e_set_eeprom() local
277 ret_val = -EIO; in atl1e_set_eeprom()
288 ret_val = -EIO; in atl1e_set_eeprom()
299 ret_val = -EIO; in atl1e_set_eeprom()
305 return ret_val; in atl1e_set_eeprom()
/linux-4.4.14/net/netlabel/
Dnetlabel_mgmt.c95 int ret_val = -EINVAL; in netlbl_mgmt_add_common() local
108 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
144 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
152 ret_val = -EINVAL; in netlbl_mgmt_add_common()
157 ret_val = -EINVAL; in netlbl_mgmt_add_common()
165 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
175 ret_val = netlbl_af4list_add(&map->list, &addrmap->list4); in netlbl_mgmt_add_common()
176 if (ret_val != 0) { in netlbl_mgmt_add_common()
191 ret_val = -ENOMEM; in netlbl_mgmt_add_common()
199 ret_val = -EINVAL; in netlbl_mgmt_add_common()
[all …]
Dnetlabel_cipso_v4.c144 int ret_val = -EINVAL; in netlbl_cipsov4_add_std() local
166 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
171 ret_val = netlbl_cipsov4_add_common(info, doi_def); in netlbl_cipsov4_add_std()
172 if (ret_val != 0) in netlbl_cipsov4_add_std()
174 ret_val = -EINVAL; in netlbl_cipsov4_add_std()
210 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
217 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
284 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
292 ret_val = -ENOMEM; in netlbl_cipsov4_add_std()
321 ret_val = cipso_v4_doi_add(doi_def, audit_info); in netlbl_cipsov4_add_std()
[all …]
Dnetlabel_kapi.c108 int ret_val = -ENOMEM; in netlbl_cfg_unlbl_map_add() local
143 ret_val = netlbl_af4list_add(&map4->list, in netlbl_cfg_unlbl_map_add()
145 if (ret_val != 0) in netlbl_cfg_unlbl_map_add()
164 ret_val = netlbl_af6list_add(&map6->list, in netlbl_cfg_unlbl_map_add()
166 if (ret_val != 0) in netlbl_cfg_unlbl_map_add()
178 ret_val = -EINVAL; in netlbl_cfg_unlbl_map_add()
182 ret_val = netlbl_domhsh_add(entry, audit_info); in netlbl_cfg_unlbl_map_add()
183 if (ret_val != 0) in netlbl_cfg_unlbl_map_add()
194 return ret_val; in netlbl_cfg_unlbl_map_add()
335 int ret_val = -ENOMEM; in netlbl_cfg_cipsov4_map_add() local
[all …]
Dnetlabel_unlabeled.c255 int ret_val; in netlbl_unlhsh_add_addr4() local
268 ret_val = netlbl_af4list_add(&entry->list, &iface->addr4_list); in netlbl_unlhsh_add_addr4()
271 if (ret_val != 0) in netlbl_unlhsh_add_addr4()
273 return ret_val; in netlbl_unlhsh_add_addr4()
295 int ret_val; in netlbl_unlhsh_add_addr6() local
312 ret_val = netlbl_af6list_add(&entry->list, &iface->addr6_list); in netlbl_unlhsh_add_addr6()
315 if (ret_val != 0) in netlbl_unlhsh_add_addr6()
391 int ret_val; in netlbl_unlhsh_add() local
407 ret_val = -ENODEV; in netlbl_unlhsh_add()
419 ret_val = -ENOMEM; in netlbl_unlhsh_add()
[all …]
Dnetlabel_user.c64 int ret_val; in netlbl_netlink_init() local
66 ret_val = netlbl_mgmt_genl_init(); in netlbl_netlink_init()
67 if (ret_val != 0) in netlbl_netlink_init()
68 return ret_val; in netlbl_netlink_init()
70 ret_val = netlbl_cipsov4_genl_init(); in netlbl_netlink_init()
71 if (ret_val != 0) in netlbl_netlink_init()
72 return ret_val; in netlbl_netlink_init()
Dnetlabel_domainhash.c368 int ret_val = 0; in netlbl_domhsh_add() local
377 ret_val = netlbl_domhsh_validate(entry); in netlbl_domhsh_add()
378 if (ret_val != 0) in netlbl_domhsh_add()
379 return ret_val; in netlbl_domhsh_add()
407 ret_val, audit_info); in netlbl_domhsh_add()
412 ret_val, audit_info); in netlbl_domhsh_add()
416 ret_val, audit_info); in netlbl_domhsh_add()
431 ret_val = -EEXIST; in netlbl_domhsh_add()
439 ret_val = -EEXIST; in netlbl_domhsh_add()
448 ret_val = netlbl_af4list_add(iter4, old_list4); in netlbl_domhsh_add()
[all …]
/linux-4.4.14/net/ipv4/
Dcipso_ipv4.c384 int ret_val = -EPERM; in cipso_v4_cache_add() local
400 ret_val = -ENOMEM; in cipso_v4_cache_add()
427 return ret_val; in cipso_v4_cache_add()
469 int ret_val = -EINVAL; in cipso_v4_doi_add() local
507 ret_val = -EEXIST; in cipso_v4_doi_add()
512 ret_val = 0; in cipso_v4_doi_add()
533 doi, type_str, ret_val == 0 ? 1 : 0); in cipso_v4_doi_add()
537 return ret_val; in cipso_v4_doi_add()
595 int ret_val; in cipso_v4_doi_remove() local
603 ret_val = -ENOENT; in cipso_v4_doi_remove()
[all …]
/linux-4.4.14/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 …]
Dnetdev.c1816 s32 ret_val = E1000_SUCCESS; in igbvf_has_link() local
1823 ret_val = hw->mac.ops.check_for_link(hw); in igbvf_has_link()
1827 if (ret_val && time_after(jiffies, adapter->last_reset + (10 * HZ))) in igbvf_has_link()
/linux-4.4.14/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 …]
Dql4_nx.c1196 int ret_val = QLA_SUCCESS; in qla4_8xxx_ms_mem_write_128b() local
1200 ret_val = QLA_ERROR; in qla4_8xxx_ms_mem_write_128b()
1207 ret_val = ha->isp_ops->wr_reg_indirect(ha, MD_MIU_TEST_AGT_ADDR_HI, 0); in qla4_8xxx_ms_mem_write_128b()
1208 if (ret_val == QLA_ERROR) { in qla4_8xxx_ms_mem_write_128b()
1219 ret_val = QLA_ERROR; in qla4_8xxx_ms_mem_write_128b()
1223 ret_val = ha->isp_ops->wr_reg_indirect(ha, in qla4_8xxx_ms_mem_write_128b()
1227 ret_val |= ha->isp_ops->wr_reg_indirect(ha, in qla4_8xxx_ms_mem_write_128b()
1230 ret_val |= ha->isp_ops->wr_reg_indirect(ha, in qla4_8xxx_ms_mem_write_128b()
1233 ret_val |= ha->isp_ops->wr_reg_indirect(ha, in qla4_8xxx_ms_mem_write_128b()
1236 ret_val |= ha->isp_ops->wr_reg_indirect(ha, in qla4_8xxx_ms_mem_write_128b()
[all …]
/linux-4.4.14/sound/soc/intel/atom/sst/
Dsst_loader.c185 int ret_val = 0; in sst_parse_module_memcpy() local
219 ret_val = sst_fill_memcpy_list(memcpy_list, in sst_parse_module_memcpy()
222 if (ret_val) in sst_parse_module_memcpy()
223 return ret_val; in sst_parse_module_memcpy()
244 int ret_val; in sst_parse_fw_memcpy() local
246 ret_val = sst_validate_fw_image(ctx, size, &module, &num_modules); in sst_parse_fw_memcpy()
247 if (ret_val) in sst_parse_fw_memcpy()
248 return ret_val; in sst_parse_fw_memcpy()
251 ret_val = sst_parse_module_memcpy(ctx, module, fw_list); in sst_parse_fw_memcpy()
252 if (ret_val) in sst_parse_fw_memcpy()
[all …]
Dsst_drv_interface.c672 int ret_val = 0; in sst_send_byte_stream() local
677 ret_val = pm_runtime_get_sync(ctx->dev); in sst_send_byte_stream()
678 if (ret_val < 0) { in sst_send_byte_stream()
680 return ret_val; in sst_send_byte_stream()
683 ret_val = sst_send_byte_stream_mrfld(ctx, bytes); in sst_send_byte_stream()
686 return ret_val; in sst_send_byte_stream()
733 int ret_val; in sst_register() local
736 ret_val = sst_register_dsp(&sst_dsp_device); in sst_register()
737 if (ret_val) in sst_register()
740 return ret_val; in sst_register()
/linux-4.4.14/sound/soc/intel/atom/
Dsst-mfld-platform-pcm.c237 int ret_val = 0; in sst_platform_alloc_stream() local
249 ret_val = sst_fill_stream_params(substream, ctx, &str_params, false); in sst_platform_alloc_stream()
250 if (ret_val < 0) in sst_platform_alloc_stream()
251 return ret_val; in sst_platform_alloc_stream()
255 ret_val = stream->ops->open(sst->dev, &str_params); in sst_platform_alloc_stream()
256 if (ret_val <= 0) in sst_platform_alloc_stream()
257 return ret_val; in sst_platform_alloc_stream()
260 return ret_val; in sst_platform_alloc_stream()
285 int ret_val; in sst_platform_init_stream() local
293 ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info); in sst_platform_init_stream()
[all …]
Dsst-mfld-platform-compress.c53 int ret_val = 0; in sst_platform_compr_open() local
66 ret_val = -ENODEV; in sst_platform_compr_open()
80 return ret_val; in sst_platform_compr_open()
86 int ret_val = 0, str_id; in sst_platform_compr_free() local
95 ret_val = stream->compr_ops->close(sst->dev, str_id); in sst_platform_compr_free()
98 pr_debug("%s: %d\n", __func__, ret_val); in sst_platform_compr_free()
/linux-4.4.14/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 …]
Dfrontend.c953 int ret_val = -ENOTTY; in agp_ioctl() local
960 ret_val = -EINVAL; in agp_ioctl()
965 ret_val = -EBUSY; in agp_ioctl()
970 ret_val = -EPERM; in agp_ioctl()
977 ret_val = -EBUSY; in agp_ioctl()
984 ret_val = agpioc_info_wrap(curr_priv, (void __user *) arg); in agp_ioctl()
988 ret_val = agpioc_acquire_wrap(curr_priv); in agp_ioctl()
992 ret_val = agpioc_release_wrap(curr_priv); in agp_ioctl()
996 ret_val = agpioc_setup_wrap(curr_priv, (void __user *) arg); in agp_ioctl()
1000 ret_val = agpioc_reserve_wrap(curr_priv, (void __user *) arg); in agp_ioctl()
[all …]
Dgeneric.c413 int ret_val; in agp_bind_memory() local
427 ret_val = curr->bridge->driver->insert_memory(curr, pg_start, curr->type); in agp_bind_memory()
429 if (ret_val != 0) in agp_bind_memory()
430 return ret_val; in agp_bind_memory()
453 int ret_val; in agp_unbind_memory() local
463 ret_val = curr->bridge->driver->remove_memory(curr, curr->pg_start, curr->type); in agp_unbind_memory()
465 if (ret_val != 0) in agp_unbind_memory()
466 return ret_val; in agp_unbind_memory()
/linux-4.4.14/sound/soc/intel/boards/
Dmfld_machine.c244 int ret_val; in mfld_init() local
258 ret_val = snd_soc_card_jack_new(runtime->card, in mfld_init()
262 if (ret_val) { in mfld_init()
264 return ret_val; in mfld_init()
267 ret_val = snd_soc_jack_add_zones(&mfld_jack, in mfld_init()
269 if (ret_val) { in mfld_init()
271 return ret_val; in mfld_init()
280 return ret_val; in mfld_init()
367 int ret_val = 0, irq; in snd_mfld_mc_probe() local
397 ret_val = devm_request_threaded_irq(&pdev->dev, irq, in snd_mfld_mc_probe()
[all …]
Dbyt-max98090.c143 int ret_val = 0; in byt_max98090_probe() local
154 ret_val = devm_snd_soc_register_card(&pdev->dev, &byt_max98090_card); in byt_max98090_probe()
155 if (ret_val) { in byt_max98090_probe()
157 "snd_soc_register_card failed %d\n", ret_val); in byt_max98090_probe()
158 return ret_val; in byt_max98090_probe()
161 return ret_val; in byt_max98090_probe()
Dbytcr_rt5640.c191 int ret_val = 0; in snd_byt_mc_probe() local
196 ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_byt); in snd_byt_mc_probe()
197 if (ret_val) { in snd_byt_mc_probe()
198 dev_err(&pdev->dev, "devm_snd_soc_register_card failed %d\n", ret_val); in snd_byt_mc_probe()
199 return ret_val; in snd_byt_mc_probe()
202 return ret_val; in snd_byt_mc_probe()
Dcht_bsw_max98090_ti.c290 int ret_val = 0; in snd_cht_mc_probe() local
313 ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_cht); in snd_cht_mc_probe()
314 if (ret_val) { in snd_cht_mc_probe()
316 "snd_soc_register_card failed %d\n", ret_val); in snd_cht_mc_probe()
317 return ret_val; in snd_cht_mc_probe()
320 return ret_val; in snd_cht_mc_probe()
Dcht_bsw_rt5672.c331 int ret_val = 0; in snd_cht_mc_probe() local
335 ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_cht); in snd_cht_mc_probe()
336 if (ret_val) { in snd_cht_mc_probe()
338 "snd_soc_register_card failed %d\n", ret_val); in snd_cht_mc_probe()
339 return ret_val; in snd_cht_mc_probe()
342 return ret_val; in snd_cht_mc_probe()
Dcht_bsw_rt5645.c336 int ret_val = 0; in snd_cht_mc_probe() local
364 ret_val = devm_snd_soc_register_card(&pdev->dev, card); in snd_cht_mc_probe()
365 if (ret_val) { in snd_cht_mc_probe()
367 "snd_soc_register_card failed %d\n", ret_val); in snd_cht_mc_probe()
368 return ret_val; in snd_cht_mc_probe()
371 return ret_val; in snd_cht_mc_probe()
/linux-4.4.14/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 …]
Dixgbe_common.c121 s32 ret_val = 0; in ixgbe_setup_fc() local
150 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &reg_bp); in ixgbe_setup_fc()
151 if (ret_val) in ixgbe_setup_fc()
152 return ret_val; in ixgbe_setup_fc()
252 ret_val = hw->mac.ops.prot_autoc_write(hw, reg_bp, locked); in ixgbe_setup_fc()
253 if (ret_val) in ixgbe_setup_fc()
254 return ret_val; in ixgbe_setup_fc()
263 return ret_val; in ixgbe_setup_fc()
277 s32 ret_val; in ixgbe_start_hw_generic() local
299 ret_val = ixgbe_setup_fc(hw); in ixgbe_start_hw_generic()
[all …]
Dixgbe_82599.c128 s32 ret_val; in ixgbe_setup_sfp_modules_82599() local
136 ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, &list_offset, in ixgbe_setup_sfp_modules_82599()
138 if (ret_val) in ixgbe_setup_sfp_modules_82599()
139 return ret_val; in ixgbe_setup_sfp_modules_82599()
142 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_setup_sfp_modules_82599()
144 if (ret_val) in ixgbe_setup_sfp_modules_82599()
166 ret_val = hw->mac.ops.prot_autoc_write(hw, in ixgbe_setup_sfp_modules_82599()
170 if (ret_val) { in ixgbe_setup_sfp_modules_82599()
204 s32 ret_val; in prot_autoc_read_82599() local
209 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in prot_autoc_read_82599()
[all …]
Dixgbe_82598.c125 s32 ret_val; in ixgbe_init_phy_ops_82598() local
149 ret_val = phy->ops.identify_sfp(hw); in ixgbe_init_phy_ops_82598()
150 if (ret_val) in ixgbe_init_phy_ops_82598()
151 return ret_val; in ixgbe_init_phy_ops_82598()
156 ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, in ixgbe_init_phy_ops_82598()
159 if (ret_val) in ixgbe_init_phy_ops_82598()
184 s32 ret_val; in ixgbe_start_hw_82598() local
186 ret_val = ixgbe_start_hw_generic(hw); in ixgbe_start_hw_82598()
205 if (ret_val) in ixgbe_start_hw_82598()
206 return ret_val; in ixgbe_start_hw_82598()
Dixgbe_phy.c1032 s32 ret_val; in ixgbe_reset_phy_nl() local
1059 ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, &list_offset, in ixgbe_reset_phy_nl()
1061 if (ret_val) in ixgbe_reset_phy_nl()
1062 return ret_val; in ixgbe_reset_phy_nl()
1064 ret_val = hw->eeprom.ops.read(hw, data_offset, &block_crc); in ixgbe_reset_phy_nl()
1070 ret_val = hw->eeprom.ops.read(hw, data_offset, &eword); in ixgbe_reset_phy_nl()
1071 if (ret_val) in ixgbe_reset_phy_nl()
1085 ret_val = hw->eeprom.ops.read(hw, data_offset++, in ixgbe_reset_phy_nl()
1087 if (ret_val) in ixgbe_reset_phy_nl()
1090 ret_val = hw->eeprom.ops.read(hw, data_offset, in ixgbe_reset_phy_nl()
[all …]
Dixgbe_x540.c184 s32 ret_val; in ixgbe_start_hw_X540() local
186 ret_val = ixgbe_start_hw_generic(hw); in ixgbe_start_hw_X540()
187 if (ret_val) in ixgbe_start_hw_X540()
188 return ret_val; in ixgbe_start_hw_X540()
Dixgbe_ethtool.c830 int ret_val = 0; in ixgbe_get_eeprom() local
846 ret_val = hw->eeprom.ops.read_buffer(hw, first_word, eeprom_len, in ixgbe_get_eeprom()
856 return ret_val; in ixgbe_get_eeprom()
866 int max_len, first_word, last_word, ret_val = 0; in ixgbe_set_eeprom() local
890 ret_val = hw->eeprom.ops.read(hw, first_word, &eeprom_buff[0]); in ixgbe_set_eeprom()
891 if (ret_val) in ixgbe_set_eeprom()
901 ret_val = hw->eeprom.ops.read(hw, last_word, in ixgbe_set_eeprom()
903 if (ret_val) in ixgbe_set_eeprom()
916 ret_val = hw->eeprom.ops.write_buffer(hw, first_word, in ixgbe_set_eeprom()
921 if (ret_val == 0) in ixgbe_set_eeprom()
[all …]
Dixgbe_x550.c1973 s32 ret_val; in ixgbe_init_phy_ops_X550em() local
1990 ret_val = ixgbe_setup_kr_speed_x550em(hw, speed); in ixgbe_init_phy_ops_X550em()
1995 ret_val = phy->ops.identify(hw); in ixgbe_init_phy_ops_X550em()
2029 ret_val = ixgbe_setup_kr_speed_x550em(hw, speed); in ixgbe_init_phy_ops_X550em()
2044 return ret_val; in ixgbe_init_phy_ops_X550em()
Dixgbe_main.c9368 int ret_val; in ixgbe_notify_dca() local
9370 ret_val = driver_for_each_device(&ixgbe_driver.driver, NULL, &event, in ixgbe_notify_dca()
9373 return ret_val ? NOTIFY_BAD : NOTIFY_DONE; in ixgbe_notify_dca()
/linux-4.4.14/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 …]
/linux-4.4.14/drivers/infiniband/core/
Dumem_rbtree.c80 int ret_val = 0; in rbt_ib_umem_for_each_in_range() local
85 return ret_val; in rbt_ib_umem_for_each_in_range()
90 ret_val = cb(umem->umem, start, last, cookie) || ret_val; in rbt_ib_umem_for_each_in_range()
93 return ret_val; in rbt_ib_umem_for_each_in_range()
Dumem_odp.c244 int ret_val; in ib_umem_odp_get() local
257 ret_val = -EINVAL; in ib_umem_odp_get()
264 ret_val = -ENOMEM; in ib_umem_odp_get()
276 ret_val = -ENOMEM; in ib_umem_odp_get()
283 ret_val = -ENOMEM; in ib_umem_odp_get()
318 ret_val = mmu_notifier_register(&context->mn, mm); in ib_umem_odp_get()
320 if (ret_val) { in ib_umem_odp_get()
321 pr_err("Failed to register mmu_notifier %d\n", ret_val); in ib_umem_odp_get()
322 ret_val = -EBUSY; in ib_umem_odp_get()
347 return ret_val; in ib_umem_odp_get()
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Dodm_HWConfig.c69 s8 ret_val; in odm_EVMdbToPercentage() local
71 ret_val = Value; in odm_EVMdbToPercentage()
73 if (ret_val >= 0) in odm_EVMdbToPercentage()
74 ret_val = 0; in odm_EVMdbToPercentage()
75 if (ret_val <= -33) in odm_EVMdbToPercentage()
76 ret_val = -33; in odm_EVMdbToPercentage()
78 ret_val = 0 - ret_val; in odm_EVMdbToPercentage()
79 ret_val *= 3; in odm_EVMdbToPercentage()
81 if (ret_val == 99) in odm_EVMdbToPercentage()
82 ret_val = 100; in odm_EVMdbToPercentage()
[all …]
/linux-4.4.14/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_dma.c194 u32 ret_val = 0; in sxgbe_tx_dma_int_status() local
200 ret_val |= handle_tx; in sxgbe_tx_dma_int_status()
207 ret_val |= tx_bump_tc; in sxgbe_tx_dma_int_status()
213 ret_val |= tx_hard_error; in sxgbe_tx_dma_int_status()
219 ret_val |= tx_hard_error; in sxgbe_tx_dma_int_status()
258 return ret_val; in sxgbe_tx_dma_int_status()
266 u32 ret_val = 0; in sxgbe_rx_dma_int_status() local
272 ret_val |= handle_rx; in sxgbe_rx_dma_int_status()
279 ret_val |= rx_bump_tc; in sxgbe_rx_dma_int_status()
285 ret_val |= rx_hard_error; in sxgbe_rx_dma_int_status()
[all …]
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Dodm_HWConfig.c73 s8 ret_val; in odm_EVMdbToPercentage() local
75 ret_val = Value; in odm_EVMdbToPercentage()
77 if (ret_val >= 0) in odm_EVMdbToPercentage()
78 ret_val = 0; in odm_EVMdbToPercentage()
79 if (ret_val <= -33) in odm_EVMdbToPercentage()
80 ret_val = -33; in odm_EVMdbToPercentage()
82 ret_val = 0 - ret_val; in odm_EVMdbToPercentage()
83 ret_val *= 3; in odm_EVMdbToPercentage()
85 if (ret_val == 99) in odm_EVMdbToPercentage()
86 ret_val = 100; in odm_EVMdbToPercentage()
[all …]
/linux-4.4.14/drivers/ata/
Dpata_at91.c122 int ret_val; in calc_smc_vals() local
139 ret_val = adjust_smc_value(setup, range_setup, ARRAY_SIZE(range_setup)); in calc_smc_vals()
140 if (ret_val < 0) in calc_smc_vals()
143 *cycle += ret_val; in calc_smc_vals()
145 ret_val = adjust_smc_value(pulse, range_pulse, ARRAY_SIZE(range_pulse)); in calc_smc_vals()
146 if (ret_val < 0) in calc_smc_vals()
149 *cycle += ret_val; in calc_smc_vals()
151 ret_val = adjust_smc_value(cycle, range_cycle, ARRAY_SIZE(range_cycle)); in calc_smc_vals()
152 if (ret_val < 0) in calc_smc_vals()
161 ret_val = adjust_smc_value(cs_pulse, range_pulse, in calc_smc_vals()
[all …]
/linux-4.4.14/drivers/net/phy/
Dmdio-mux.c103 int r, ret_val; in mdio_mux_init() local
118 ret_val = -ENOMEM; in mdio_mux_init()
124 ret_val = -EPROBE_DEFER; in mdio_mux_init()
134 ret_val = -ENODEV; in mdio_mux_init()
146 ret_val = -ENOMEM; in mdio_mux_init()
155 ret_val = -ENOMEM; in mdio_mux_init()
188 return ret_val; in mdio_mux_init()
/linux-4.4.14/drivers/gpu/vga/
Dvgaarb.c922 int ret_val; in vga_arb_write() local
944 ret_val = -EPROTO; in vga_arb_write()
948 ret_val = -EPROTO; in vga_arb_write()
954 ret_val = -ENODEV; in vga_arb_write()
971 ret_val = count; in vga_arb_write()
984 ret_val = -EPROTO; in vga_arb_write()
997 ret_val = -ENODEV; in vga_arb_write()
1006 ret_val = -EINVAL; in vga_arb_write()
1011 ret_val = -EINVAL; in vga_arb_write()
1016 ret_val = -EINVAL; in vga_arb_write()
[all …]
/linux-4.4.14/arch/alpha/kernel/
Dsmc37c669.c1228 unsigned int ret_val = FALSE; in SMC37c669_enable_device() local
1260 ret_val = TRUE; in SMC37c669_enable_device()
1289 ret_val = TRUE; in SMC37c669_enable_device()
1337 ret_val = TRUE; in SMC37c669_enable_device()
1385 ret_val = TRUE; in SMC37c669_enable_device()
1411 ret_val = TRUE; in SMC37c669_enable_device()
1420 return ret_val; in SMC37c669_enable_device()
1456 unsigned int ret_val = FALSE; in SMC37c669_disable_device() local
1484 ret_val = TRUE; in SMC37c669_disable_device()
1509 ret_val = TRUE; in SMC37c669_disable_device()
[all …]
/linux-4.4.14/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_api.c69 s32 ret_val; in pch_gbe_plat_init_hw() local
71 ret_val = pch_gbe_phy_get_id(hw); in pch_gbe_plat_init_hw()
72 if (ret_val) { in pch_gbe_plat_init_hw()
76 return ret_val; in pch_gbe_plat_init_hw()
83 return ret_val; in pch_gbe_plat_init_hw()
Dpch_gbe_main.c2241 int ret_val; in pch_gbe_set_mac() local
2244 ret_val = -EADDRNOTAVAIL; in pch_gbe_set_mac()
2249 ret_val = 0; in pch_gbe_set_mac()
2251 netdev_dbg(netdev, "ret_val : 0x%08x\n", ret_val); in pch_gbe_set_mac()
2257 return ret_val; in pch_gbe_set_mac()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dtrx.c53 int ret_val; in odm_cfo() local
56 ret_val = 0 - value; in odm_cfo()
57 ret_val = (ret_val << 1) + (ret_val >> 1); in odm_cfo()
59 ret_val = ret_val | BIT(12); in odm_cfo()
61 ret_val = value; in odm_cfo()
62 ret_val = (ret_val << 1) + (ret_val >> 1); in odm_cfo()
64 return ret_val; in odm_cfo()
69 char ret_val = value; in _rtl8821ae_evm_dbm_jaguar() local
72 if (ret_val == -128) in _rtl8821ae_evm_dbm_jaguar()
73 ret_val = 127; in _rtl8821ae_evm_dbm_jaguar()
[all …]
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/
Datl2.c1172 int ret_val; in atl2_check_link() local
1194 ret_val = atl2_get_speed_and_duplex(hw, &speed, &duplex); in atl2_check_link()
1195 if (ret_val) in atl2_check_link()
1196 return ret_val; in atl2_check_link()
1545 u32 ret_val; in atl2_suspend() local
1547 ret_val = atl2_get_speed_and_duplex(hw, &speed, &duplex); in atl2_suspend()
1548 if (ret_val) { in atl2_suspend()
1927 int ret_val = 0; in atl2_get_eeprom() local
1948 ret_val = -EIO; in atl2_get_eeprom()
1958 return ret_val; in atl2_get_eeprom()
[all …]
Datl1.c656 s32 ret_val; in atl1_phy_reset() local
683 ret_val = atl1_write_phy_reg(hw, MII_BMCR, phy_data); in atl1_phy_reset()
684 if (ret_val) { in atl1_phy_reset()
702 return ret_val; in atl1_phy_reset()
714 s32 ret_val; in atl1_phy_setup_autoneg_adv() local
772 ret_val = atl1_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); in atl1_phy_setup_autoneg_adv()
773 if (ret_val) in atl1_phy_setup_autoneg_adv()
774 return ret_val; in atl1_phy_setup_autoneg_adv()
776 ret_val = atl1_write_phy_reg(hw, MII_ATLX_CR, mii_1000t_ctrl_reg); in atl1_phy_setup_autoneg_adv()
777 if (ret_val) in atl1_phy_setup_autoneg_adv()
[all …]
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dtrx.c64 char ret_val; in _rtl92c_evm_db_to_percentage() local
65 ret_val = value; in _rtl92c_evm_db_to_percentage()
67 if (ret_val >= 0) in _rtl92c_evm_db_to_percentage()
68 ret_val = 0; in _rtl92c_evm_db_to_percentage()
70 if (ret_val <= -33) in _rtl92c_evm_db_to_percentage()
71 ret_val = -33; in _rtl92c_evm_db_to_percentage()
73 ret_val = 0 - ret_val; in _rtl92c_evm_db_to_percentage()
74 ret_val *= 3; in _rtl92c_evm_db_to_percentage()
76 if (ret_val == 99) in _rtl92c_evm_db_to_percentage()
77 ret_val = 100; in _rtl92c_evm_db_to_percentage()
[all …]
/linux-4.4.14/drivers/scsi/
Dgdth_proc.c11 int ret_val = -EINVAL; in gdth_set_info() local
19 ret_val = gdth_set_asc_info(host, buffer, length, ha); in gdth_set_info()
23 return ret_val; in gdth_set_info()
564 char *ret_val; in gdth_ioctl_alloc() local
573 ret_val = ha->pscratch; in gdth_ioctl_alloc()
576 ret_val = NULL; in gdth_ioctl_alloc()
580 ret_val = pci_alloc_consistent(ha->pdev, size, &dma_addr); in gdth_ioctl_alloc()
585 return ret_val; in gdth_ioctl_alloc()
605 int ret_val; in gdth_ioctl_check_bin() local
609 ret_val = FALSE; in gdth_ioctl_check_bin()
[all …]
Dips.c1798 int ret_val = 0; in ips_fill_scb_sg_single() local
1804 ret_val = -1; in ips_fill_scb_sg_single()
1823 return ret_val; in ips_fill_scb_sg_single()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dmac.c611 char ret_val; in _rtl92c_evm_db_to_percentage() local
613 ret_val = value; in _rtl92c_evm_db_to_percentage()
614 if (ret_val >= 0) in _rtl92c_evm_db_to_percentage()
615 ret_val = 0; in _rtl92c_evm_db_to_percentage()
616 if (ret_val <= -33) in _rtl92c_evm_db_to_percentage()
617 ret_val = -33; in _rtl92c_evm_db_to_percentage()
618 ret_val = 0 - ret_val; in _rtl92c_evm_db_to_percentage()
619 ret_val *= 3; in _rtl92c_evm_db_to_percentage()
620 if (ret_val == 99) in _rtl92c_evm_db_to_percentage()
621 ret_val = 100; in _rtl92c_evm_db_to_percentage()
[all …]
/linux-4.4.14/drivers/usb/gadget/udc/
Damd5536udc.c613 int ret_val = 0; in udc_free_dma_chain() local
631 return ret_val; in udc_free_dma_chain()
2123 irqreturn_t ret_val = IRQ_NONE; in udc_data_out_isr() local
2146 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2156 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2175 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2189 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2317 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2331 return ret_val; in udc_data_out_isr()
2337 irqreturn_t ret_val = IRQ_NONE; in udc_data_in_isr() local
[all …]
Ddummy_hcd.c1564 int ret_val = 1; in handle_control_request() local
1578 ret_val = 0; in handle_control_request()
1582 ret_val = 0; in handle_control_request()
1600 ret_val = -EOPNOTSUPP; in handle_control_request()
1607 ret_val = -EOPNOTSUPP; in handle_control_request()
1614 ret_val = -EOPNOTSUPP; in handle_control_request()
1617 ret_val = -EOPNOTSUPP; in handle_control_request()
1619 if (ret_val == 0) { in handle_control_request()
1627 ret_val = -EOPNOTSUPP; in handle_control_request()
1631 ret_val = 0; in handle_control_request()
[all …]
/linux-4.4.14/drivers/char/
Dtlclk.c283 unsigned long ret_val; in show_current_ref() local
287 ret_val = ((inb(TLCLK_REG1) & 0x08) >> 3); in show_current_ref()
290 return sprintf(buf, "0x%lX\n", ret_val); in show_current_ref()
299 unsigned long ret_val; in show_telclock_version() local
303 ret_val = inb(TLCLK_REG5); in show_telclock_version()
306 return sprintf(buf, "0x%lX\n", ret_val); in show_telclock_version()
315 unsigned long ret_val; in show_alarms() local
319 ret_val = (inb(TLCLK_REG2) & 0xf0); in show_alarms()
322 return sprintf(buf, "0x%lX\n", ret_val); in show_alarms()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dtrx.c63 char ret_val = value; in _rtl92d_evm_db_to_percentage() local
65 if (ret_val >= 0) in _rtl92d_evm_db_to_percentage()
66 ret_val = 0; in _rtl92d_evm_db_to_percentage()
67 if (ret_val <= -33) in _rtl92d_evm_db_to_percentage()
68 ret_val = -33; in _rtl92d_evm_db_to_percentage()
69 ret_val = 0 - ret_val; in _rtl92d_evm_db_to_percentage()
70 ret_val *= 3; in _rtl92d_evm_db_to_percentage()
71 if (ret_val == 99) in _rtl92d_evm_db_to_percentage()
72 ret_val = 100; in _rtl92d_evm_db_to_percentage()
73 return ret_val; in _rtl92d_evm_db_to_percentage()
/linux-4.4.14/drivers/firmware/
Dqcom_scm-32.c484 __le32 ret_val = 0; in __qcom_scm_is_call_available() local
487 sizeof(svc_cmd), &ret_val, sizeof(ret_val)); in __qcom_scm_is_call_available()
491 return le32_to_cpu(ret_val); in __qcom_scm_is_call_available()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/
Dstats.c42 char ret_val = clamp(-value, 0, 33) * 3; in rtl_evm_db_to_percentage() local
44 if (ret_val == 99) in rtl_evm_db_to_percentage()
45 ret_val = 100; in rtl_evm_db_to_percentage()
47 return ret_val; in rtl_evm_db_to_percentage()
/linux-4.4.14/drivers/staging/rtl8712/
Drtl8712_recv.c682 s8 ret_val; in evm_db2percentage() local
684 ret_val = value; in evm_db2percentage()
685 if (ret_val >= 0) in evm_db2percentage()
686 ret_val = 0; in evm_db2percentage()
687 if (ret_val <= -33) in evm_db2percentage()
688 ret_val = -33; in evm_db2percentage()
689 ret_val = -ret_val; in evm_db2percentage()
690 ret_val *= 3; in evm_db2percentage()
691 if (ret_val == 99) in evm_db2percentage()
692 ret_val = 100; in evm_db2percentage()
[all …]
/linux-4.4.14/drivers/usb/serial/
Dmos7720.c287 int ret_val; in send_deferred_urbs() local
326 ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); in send_deferred_urbs()
328 if (ret_val) { in send_deferred_urbs()
329 dev_err(dev, "usb_submit_urb() failed: %d\n", ret_val); in send_deferred_urbs()
358 int ret_val; in write_parport_reg_nonblock() local
418 ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); in write_parport_reg_nonblock()
420 if (ret_val) { in write_parport_reg_nonblock()
422 "%s: submit_urb() failed: %d\n", __func__, ret_val); in write_parport_reg_nonblock()
427 return ret_val; in write_parport_reg_nonblock()
1921 int ret_val; in mos7720_startup() local
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_common.c491 s32 ret_val = 0; in fm10k_get_host_state_generic() local
507 ret_val = FM10K_ERR_RESET_REQUESTED; in fm10k_get_host_state_generic()
513 ret_val = FM10K_ERR_RESET_REQUESTED; in fm10k_get_host_state_generic()
532 return ret_val; in fm10k_get_host_state_generic()
Dfm10k_pf.c1602 s32 ret_val = 0; in fm10k_get_host_state_pf() local
1611 ret_val = fm10k_get_host_state_generic(hw, switch_ready); in fm10k_get_host_state_pf()
1612 if (ret_val) in fm10k_get_host_state_pf()
1617 ret_val = fm10k_request_lport_map_pf(hw); in fm10k_get_host_state_pf()
1620 return ret_val; in fm10k_get_host_state_pf()
/linux-4.4.14/drivers/net/ethernet/atheros/atl1c/
Datl1c_hw.c607 int ret_val; in atl1c_phy_init() local
617 ret_val = atl1c_phy_setup_adv(hw); in atl1c_phy_init()
618 if (ret_val) { in atl1c_phy_init()
622 return ret_val; in atl1c_phy_init()
644 ret_val = atl1c_write_phy_reg(hw, MII_BMCR, mii_bmcr_data); in atl1c_phy_init()
645 if (ret_val) in atl1c_phy_init()
646 return ret_val; in atl1c_phy_init()
Datl1c_ethtool.c191 int ret_val = 0; in atl1c_get_eeprom() local
222 return ret_val; in atl1c_get_eeprom()
/linux-4.4.14/drivers/gpu/drm/gma500/
Dpsb_drv.h789 uint32_t ret_val = 0; in MRST_MSG_READ32() local
792 pci_read_config_dword(pci_root, 0xD4, &ret_val); in MRST_MSG_READ32()
794 return ret_val; in MRST_MSG_READ32()
807 uint32_t ret_val = 0; in MDFLD_MSG_READ32() local
810 pci_read_config_dword(pci_root, 0xD4, &ret_val); in MDFLD_MSG_READ32()
812 return ret_val; in MDFLD_MSG_READ32()
Dcdv_device.c191 uint32_t ret_val = 0; in CDV_MSG_READ32() local
194 pci_read_config_dword(pci_root, 0xD4, &ret_val); in CDV_MSG_READ32()
196 return ret_val; in CDV_MSG_READ32()
/linux-4.4.14/drivers/regulator/
Dmax8973-regulator.c261 int ret_val; in max8973_set_ramp_delay() local
266 ret_val = 12000; in max8973_set_ramp_delay()
269 ret_val = 25000; in max8973_set_ramp_delay()
272 ret_val = 50000; in max8973_set_ramp_delay()
275 ret_val = 200000; in max8973_set_ramp_delay()
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c727 int ret_val; in acpi_os_wait_semaphore() local
804 while (((ret_val = sem_timedwait(sem, &time)) == -1) in acpi_os_wait_semaphore()
809 if (ret_val != 0) { in acpi_os_wait_semaphore()
/linux-4.4.14/drivers/hid/
Dhid-sensor-hub.c290 int ret_val = 0; in sensor_hub_input_attr_get_raw_value() local
317 ret_val = *(u8 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
320 ret_val = *(u16 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
323 ret_val = *(u32 *)hsdev->pending.raw_data; in sensor_hub_input_attr_get_raw_value()
326 ret_val = 0; in sensor_hub_input_attr_get_raw_value()
333 return ret_val; in sensor_hub_input_attr_get_raw_value()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c984 int ret_val = 0, len, offset; in i40e_get_eeprom() local
1005 ret_val = i40e_nvmupd_command(hw, cmd, bytes, &errno); in i40e_get_eeprom()
1006 if (ret_val && (hw->debug_mask & I40E_DEBUG_NVM)) in i40e_get_eeprom()
1009 ret_val, hw->aq.asq_last_status, errno, in i40e_get_eeprom()
1023 ret_val = i40e_acquire_nvm(hw, I40E_RESOURCE_READ); in i40e_get_eeprom()
1024 if (ret_val) { in i40e_get_eeprom()
1027 ret_val, hw->aq.asq_last_status); in i40e_get_eeprom()
1041 ret_val = i40e_aq_read_nvm(hw, 0x0, offset, len, in i40e_get_eeprom()
1044 if (ret_val && hw->aq.asq_last_status == I40E_AQ_RC_EPERM) { in i40e_get_eeprom()
1049 } else if (ret_val && in i40e_get_eeprom()
[all …]
/linux-4.4.14/drivers/net/ethernet/freescale/
Ducc_geth.c1318 int ret_val; in adjust_enet_interface() local
1393 ret_val = init_preamble_length(ug_info->prel, &ug_regs->maccfg2); in adjust_enet_interface()
1394 if (ret_val != 0) { in adjust_enet_interface()
1397 return ret_val; in adjust_enet_interface()
2368 int ret_val = -EINVAL; in ucc_geth_startup() local
2465 ret_val = init_inter_frame_gap_params(ug_info->nonBackToBackIfgPart1, in ucc_geth_startup()
2471 if (ret_val != 0) { in ucc_geth_startup()
2474 return ret_val; in ucc_geth_startup()
2479 ret_val = init_half_duplex_params(ug_info->altBeb, in ucc_geth_startup()
2487 if (ret_val != 0) { in ucc_geth_startup()
[all …]
/linux-4.4.14/drivers/pci/hotplug/
Dcpqphp_nvram.c172 int ret_val; in access_EV() local
185 : "=c" (*buf_size), "=a" (ret_val) in access_EV()
191 return((ret_val & 0xFF00) >> 8); in access_EV()
/linux-4.4.14/drivers/net/hyperv/
Dnetvsc_drv.c390 u32 ret_val = TRANSPORT_INFO_NOT_IP; in get_net_transport_info() local
403 ret_val = TRANSPORT_INFO_IPV4_TCP; in get_net_transport_info()
405 ret_val = TRANSPORT_INFO_IPV4_UDP; in get_net_transport_info()
408 ret_val = TRANSPORT_INFO_IPV6_TCP; in get_net_transport_info()
410 ret_val = TRANSPORT_INFO_IPV6_UDP; in get_net_transport_info()
414 return ret_val; in get_net_transport_info()
Dnetvsc.c686 int ret_val = NETVSC_INVALID_INDEX; in netvsc_get_next_send_section() local
699 ret_val = (index + (i * BITS_PER_LONG)); in netvsc_get_next_send_section()
702 return ret_val; in netvsc_get_next_send_section()
/linux-4.4.14/drivers/tty/
Dcyclades.c2640 int ret_val = 0; in cy_ioctl() local
2655 ret_val = -EFAULT; in cy_ioctl()
2661 ret_val = get_threshold(info, argp); in cy_ioctl()
2664 ret_val = set_threshold(info, arg); in cy_ioctl()
2667 ret_val = put_user(info->default_threshold, in cy_ioctl()
2674 ret_val = get_timeout(info, argp); in cy_ioctl()
2677 ret_val = set_timeout(info, arg); in cy_ioctl()
2680 ret_val = put_user(info->default_timeout, in cy_ioctl()
2690 ret_val = info->rflow; in cy_ioctl()
2696 ret_val = info->rtsdtr_inv; in cy_ioctl()
[all …]
/linux-4.4.14/arch/x86/xen/
Dsetup.c459 unsigned long ret_val = 0; in xen_foreach_remap_area() local
484 ret_val = func(start_pfn, end_pfn, nr_pages, in xen_foreach_remap_area()
485 ret_val); in xen_foreach_remap_area()
490 return ret_val; in xen_foreach_remap_area()
/linux-4.4.14/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c374 int ret_val = 0; in ixgb_get_eeprom() local
377 ret_val = -EINVAL; in ixgb_get_eeprom()
386 ret_val = -EINVAL; in ixgb_get_eeprom()
409 return ret_val; in ixgb_get_eeprom()
/linux-4.4.14/drivers/video/backlight/
Dadp8860_bl.c565 uint16_t ret_val; in adp8860_bl_ambient_light_level_show() local
569 ret_val = reg_val; in adp8860_bl_ambient_light_level_show()
577 ret_val += (reg_val & 0x1F) << 8; in adp8860_bl_ambient_light_level_show()
579 return sprintf(buf, "%u\n", ret_val); in adp8860_bl_ambient_light_level_show()
Dadp8870_bl.c747 uint16_t ret_val; in adp8870_bl_ambient_light_level_show() local
755 ret_val = reg_val; in adp8870_bl_ambient_light_level_show()
763 ret_val += (reg_val & 0x1F) << 8; in adp8870_bl_ambient_light_level_show()
765 return sprintf(buf, "%u\n", ret_val); in adp8870_bl_ambient_light_level_show()
/linux-4.4.14/drivers/cpufreq/
Dpowernow-k8.c736 int ret_val = -ENODEV; in powernow_k8_cpu_init_acpi() local
772 ret_val = fill_powernow_table_fidvid(data, powernow_table); in powernow_k8_cpu_init_acpi()
773 if (ret_val) in powernow_k8_cpu_init_acpi()
788 ret_val = -ENOMEM; in powernow_k8_cpu_init_acpi()
804 return ret_val; in powernow_k8_cpu_init_acpi()
/linux-4.4.14/scripts/kconfig/
Dzconf.lex.c1530 int ret_val; in yy_get_next_buffer() local
1625 ret_val = EOB_ACT_END_OF_FILE; in yy_get_next_buffer()
1631 ret_val = EOB_ACT_LAST_MATCH; in yy_get_next_buffer()
1638 ret_val = EOB_ACT_CONTINUE_SCAN; in yy_get_next_buffer()
1654 return ret_val; in yy_get_next_buffer()
Dzconf.lex.c_shipped1530 int ret_val;
1625 ret_val = EOB_ACT_END_OF_FILE;
1631 ret_val = EOB_ACT_LAST_MATCH;
1638 ret_val = EOB_ACT_CONTINUE_SCAN;
1654 return ret_val;
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/
Drtl_core.c1999 char ret_val; in rtl92e_evm_db_to_percent() local
2001 ret_val = value; in rtl92e_evm_db_to_percent()
2003 if (ret_val >= 0) in rtl92e_evm_db_to_percent()
2004 ret_val = 0; in rtl92e_evm_db_to_percent()
2005 if (ret_val <= -33) in rtl92e_evm_db_to_percent()
2006 ret_val = -33; in rtl92e_evm_db_to_percent()
2007 ret_val = 0 - ret_val; in rtl92e_evm_db_to_percent()
2008 ret_val *= 3; in rtl92e_evm_db_to_percent()
2009 if (ret_val == 99) in rtl92e_evm_db_to_percent()
2010 ret_val = 100; in rtl92e_evm_db_to_percent()
[all …]
/linux-4.4.14/drivers/scsi/csiostor/
Dcsio_mb.c587 enum fw_retval *ret_val, in csio_mb_iq_alloc_write_rsp() argument
592 *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); in csio_mb_iq_alloc_write_rsp()
593 if (*ret_val == FW_SUCCESS) { in csio_mb_iq_alloc_write_rsp()
773 struct csio_mb *mbp, enum fw_retval *ret_val, in csio_mb_eq_ofld_alloc_write_rsp() argument
778 *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); in csio_mb_eq_ofld_alloc_write_rsp()
780 if (*ret_val == FW_SUCCESS) { in csio_mb_eq_ofld_alloc_write_rsp()
/linux-4.4.14/drivers/xen/xen-pciback/
Dconf_space.c145 u32 *ret_val) in xen_pcibk_config_read() argument
204 *ret_val = value; in xen_pcibk_config_read()
Dpciback.h80 u32 *ret_val);
/linux-4.4.14/drivers/hv/
Dvmbus_drv.c1197 int ret_val = -ENODEV; in vmbus_acpi_add() local
1220 ret_val = 0; in vmbus_acpi_add()
1224 if (ret_val) in vmbus_acpi_add()
1226 return ret_val; in vmbus_acpi_add()
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c747 int ret_val = 0; in check_txq_status() local
759 ret_val++; in check_txq_status()
765 ret_val = 1; in check_txq_status()
767 return ret_val; in check_txq_status()
1683 int ret_val = 0; in octeon_setup_droq() local
1687 ret_val = octeon_create_droq(oct, q_no, num_descs, desc_size, app_ctx); in octeon_setup_droq()
1688 if (ret_val == -1) in octeon_setup_droq()
1689 return ret_val; in octeon_setup_droq()
1691 if (ret_val == 1) { in octeon_setup_droq()
1706 return ret_val; in octeon_setup_droq()
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c496 int i, j, lc, good_cnt, ret_val = 0; in __lb_run_test() local
529 ret_val = NIC_LB_TEST_TX_CNT_ERR; in __lb_run_test()
543 ret_val = NIC_LB_TEST_RX_CNT_ERR; in __lb_run_test()
557 return ret_val; in __lb_run_test()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_acpi.c89 u8 ret_val; /* return value */ member
628 switch (atcs_output.ret_val) { in amdgpu_acpi_pcie_performance_request()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_acpi.c89 u8 ret_val; /* return value */ member
633 switch (atcs_output.ret_val) { in radeon_acpi_pcie_performance_request()
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dwmm.c1063 u8 ret_val; in mwifiex_wmm_compute_drv_pkt_delay() local
1071 ret_val = (u8) (min(queue_delay, priv->wmm.drv_pkt_delay_max) >> 1); in mwifiex_wmm_compute_drv_pkt_delay()
1074 "%d ms sent to FW\n", queue_delay, ret_val); in mwifiex_wmm_compute_drv_pkt_delay()
1076 return ret_val; in mwifiex_wmm_compute_drv_pkt_delay()
/linux-4.4.14/drivers/staging/rtl8192u/
Dr8192U_core.c4187 char ret_val; in rtl819x_evm_dbtopercentage() local
4189 ret_val = value; in rtl819x_evm_dbtopercentage()
4191 if (ret_val >= 0) in rtl819x_evm_dbtopercentage()
4192 ret_val = 0; in rtl819x_evm_dbtopercentage()
4193 if (ret_val <= -33) in rtl819x_evm_dbtopercentage()
4194 ret_val = -33; in rtl819x_evm_dbtopercentage()
4195 ret_val = 0 - ret_val; in rtl819x_evm_dbtopercentage()
4196 ret_val *= 3; in rtl819x_evm_dbtopercentage()
4197 if (ret_val == 99) in rtl819x_evm_dbtopercentage()
4198 ret_val = 100; in rtl819x_evm_dbtopercentage()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.h393 u8 devad, u16 reg, u16 *ret_val);
Dbnx2x_ethtool.c1299 static int bnx2x_nvram_read_dword(struct bnx2x *bp, u32 offset, __be32 *ret_val, in bnx2x_nvram_read_dword() argument
1324 *ret_val = 0; in bnx2x_nvram_read_dword()
1336 *ret_val = cpu_to_be32(val); in bnx2x_nvram_read_dword()
Dbnx2x_link.c2635 u16 reg, u16 *ret_val) in bnx2x_cl22_read() argument
2657 *ret_val = (u16)(val & EMAC_MDIO_COMM_DATA); in bnx2x_cl22_read()
2665 *ret_val = 0; in bnx2x_cl22_read()
2676 u8 devad, u16 reg, u16 *ret_val) in bnx2x_cl45_read() argument
2709 *ret_val = 0; in bnx2x_cl45_read()
2724 *ret_val = (u16)(val & EMAC_MDIO_COMM_DATA); in bnx2x_cl45_read()
2731 *ret_val = 0; in bnx2x_cl45_read()
3195 u8 devad, u16 reg, u16 *ret_val) in bnx2x_phy_read() argument
3205 reg, ret_val); in bnx2x_phy_read()
/linux-4.4.14/drivers/usb/dwc2/
Dhcd.c905 enum dwc2_transaction_type ret_val = DWC2_TRANSACTION_NONE; in dwc2_hcd_select_transactions() local
934 ret_val = DWC2_TRANSACTION_PERIODIC; in dwc2_hcd_select_transactions()
969 if (ret_val == DWC2_TRANSACTION_NONE) in dwc2_hcd_select_transactions()
970 ret_val = DWC2_TRANSACTION_NON_PERIODIC; in dwc2_hcd_select_transactions()
972 ret_val = DWC2_TRANSACTION_ALL; in dwc2_hcd_select_transactions()
978 return ret_val; in dwc2_hcd_select_transactions()
/linux-4.4.14/drivers/message/fusion/
Dmptctl.c466 int ret_val = -1; in mptctl_timeout_expired() local
490 ret_val = mptctl_do_taskmgmt(ioc, in mptctl_timeout_expired()
494 ret_val = mptctl_do_taskmgmt(ioc, in mptctl_timeout_expired()
497 if (!ret_val) in mptctl_timeout_expired()
502 ret_val = mptctl_do_taskmgmt(ioc, in mptctl_timeout_expired()
505 if (!ret_val) in mptctl_timeout_expired()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_bsg.c2541 int ret_val = 0; in lpfcdiag_loop_get_xri() local
2584 ret_val = -ENOMEM; in lpfcdiag_loop_get_xri()
2626 ret_val = -EIO; in lpfcdiag_loop_get_xri()
2638 ret_val = (time_left) ? -EINTR : -ETIMEDOUT; in lpfcdiag_loop_get_xri()
2665 return ret_val; in lpfcdiag_loop_get_xri()
2855 int ret_val = 0; in lpfcdiag_loop_post_rxbufs() local
2871 ret_val = -ENOMEM; in lpfcdiag_loop_post_rxbufs()
2929 ret_val = -EIO; in lpfcdiag_loop_post_rxbufs()
2943 ret_val = -EIO; in lpfcdiag_loop_post_rxbufs()
2962 return ret_val; in lpfcdiag_loop_post_rxbufs()
Dlpfc_scsi.c4691 int ring_number, ret_val; in lpfc_abort_handler() local
4796 ret_val = __lpfc_sli_issue_iocb(phba, pring_s4->ringno, in lpfc_abort_handler()
4800 ret_val = __lpfc_sli_issue_iocb(phba, LPFC_FCP_RING, in lpfc_abort_handler()
4807 if (ret_val == IOCB_ERROR) { in lpfc_abort_handler()
Dlpfc_sli.c10070 int errcnt = 0, ret_val = 0; in lpfc_sli_abort_iocb() local
10122 ret_val = lpfc_sli_issue_iocb(phba, pring->ringno, in lpfc_sli_abort_iocb()
10124 if (ret_val == IOCB_ERROR) { in lpfc_sli_abort_iocb()
10166 int sum, i, ret_val; in lpfc_sli_abort_taskmgmt() local
10242 ret_val = __lpfc_sli_issue_iocb(phba, pring_s4->ringno, in lpfc_sli_abort_taskmgmt()
10246 ret_val = __lpfc_sli_issue_iocb(phba, pring->ringno, in lpfc_sli_abort_taskmgmt()
10251 if (ret_val == IOCB_ERROR) in lpfc_sli_abort_taskmgmt()
/linux-4.4.14/drivers/staging/wilc1000/
Dlinux_wlan.c428 u8 ret_val = 0; in linux_wlan_get_num_conn_ifcs() local
432 ret_val++; in linux_wlan_get_num_conn_ifcs()
434 return ret_val; in linux_wlan_get_num_conn_ifcs()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dmac80211_if.c1406 uint callbacks, ret_val = 0; in brcms_down() local
1409 ret_val = brcms_c_down(wl->wlc); in brcms_down()
1410 callbacks = atomic_read(&wl->callbacks) - ret_val; in brcms_down()
/linux-4.4.14/scripts/dtc/
Ddtc-lexer.lex.c_shipped1383 int ret_val;
1478 ret_val = EOB_ACT_END_OF_FILE;
1484 ret_val = EOB_ACT_LAST_MATCH;
1491 ret_val = EOB_ACT_CONTINUE_SCAN;
1507 return ret_val;
/linux-4.4.14/scripts/genksyms/
Dlex.lex.c_shipped1050 int ret_val;
1145 ret_val = EOB_ACT_END_OF_FILE;
1151 ret_val = EOB_ACT_LAST_MATCH;
1158 ret_val = EOB_ACT_CONTINUE_SCAN;
1174 return ret_val;
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_sas_base.c2542 int ret_val; in megasas_generic_reset() local
2555 ret_val = megasas_wait_for_outstanding(instance); in megasas_generic_reset()
2556 if (ret_val == SUCCESS) in megasas_generic_reset()
2561 return ret_val; in megasas_generic_reset()
5073 int ret_val; in megasas_register_aen() local
5124 ret_val = megasas_issue_blocked_abort_cmd(instance, in megasas_register_aen()
5128 if (ret_val) { in megasas_register_aen()
5131 return ret_val; in megasas_register_aen()
/linux-4.4.14/drivers/scsi/isci/
Drequest.c789 u32 ret_val = 0; in sci_req_tx_bytes() local
800 ret_val = readl(scu_reg_base + in sci_req_tx_bytes()
805 return ret_val; in sci_req_tx_bytes()
/linux-4.4.14/drivers/net/ethernet/cavium/thunder/
Dthunder_bgx.c930 void *context, void **ret_val) in bgx_acpi_match_id() argument
/linux-4.4.14/arch/x86/kvm/
Dmmu.c2823 pfn_t pfn, unsigned access, int *ret_val) in handle_abnormal_pfn() argument
2829 *ret_val = kvm_handle_bad_page(vcpu, gfn, pfn); in handle_abnormal_pfn()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dbnx2.c4252 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags) in bnx2_nvram_read_dword() argument
4285 memcpy(ret_val, &v, 4); in bnx2_nvram_read_dword()