Home
last modified time | relevance | path

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

/linux-4.1.27/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()
308 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()
3053 s32 ret_val; in e1000_setup_rctl() local
3056 ret_val = e1000_lv_jumbo_workaround_ich8lan(hw, true); in e1000_setup_rctl()
3058 ret_val = e1000_lv_jumbo_workaround_ich8lan(hw, false); in e1000_setup_rctl()
3060 if (ret_val) in e1000_setup_rctl()
3588 s32 ret_val; in e1000e_config_hwtstamp() local
3728 ret_val = e1000e_get_base_timinca(adapter, &regval); in e1000e_config_hwtstamp()
[all …]
/linux-4.1.27/drivers/net/ethernet/intel/igb/
De1000_phy.c83 s32 ret_val = 0; in igb_get_phy_id() local
86 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id()
87 if (ret_val) in igb_get_phy_id()
92 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id()
93 if (ret_val) in igb_get_phy_id()
100 return ret_val; in igb_get_phy_id()
111 s32 ret_val = 0; in igb_phy_reset_dsp() local
116 ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in igb_phy_reset_dsp()
117 if (ret_val) in igb_phy_reset_dsp()
120 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.c1847 s32 ret_val = 0; in igb_enable_mas() local
1851 return ret_val; in igb_enable_mas()
1861 return ret_val; in igb_enable_mas()
1867 return ret_val; in igb_enable_mas()
2248 s32 ret_val; in igb_probe() local
2608 ret_val = igb_read_part_string(hw, part_str, in igb_probe()
2611 ret_val = -E1000_ERR_INVM_VALUE_NOT_FOUND; in igb_probe()
2614 if (ret_val) in igb_probe()
5662 int ret_val; in igb_notify_dca() local
5664 ret_val = driver_for_each_device(&igb_driver.driver, NULL, &event, in igb_notify_dca()
[all …]
/linux-4.1.27/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.c4845 int ret_val = pci_set_mwi(adapter->pdev); in e1000_pci_set_mwi() local
4847 if (ret_val) in e1000_pci_set_mwi()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.c1815 s32 ret_val = E1000_SUCCESS; in igbvf_has_link() local
1822 ret_val = hw->mac.ops.check_for_link(hw); in igbvf_has_link()
1826 if (ret_val && time_after(jiffies, adapter->last_reset + (10 * HZ))) in igbvf_has_link()
/linux-4.1.27/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.1.27/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.c669 int ret_val = 0; in sst_send_byte_stream() local
674 ret_val = pm_runtime_get_sync(ctx->dev); in sst_send_byte_stream()
675 if (ret_val < 0) in sst_send_byte_stream()
676 return ret_val; in sst_send_byte_stream()
678 ret_val = sst_send_byte_stream_mrfld(ctx, bytes); in sst_send_byte_stream()
681 return ret_val; in sst_send_byte_stream()
728 int ret_val; in sst_register() local
731 ret_val = sst_register_dsp(&sst_dsp_device); in sst_register()
732 if (ret_val) in sst_register()
735 return ret_val; in sst_register()
/linux-4.1.27/sound/soc/intel/atom/
Dsst-mfld-platform-pcm.c238 int ret_val = 0; in sst_platform_alloc_stream() local
250 ret_val = sst_fill_stream_params(substream, ctx, &str_params, false); in sst_platform_alloc_stream()
251 if (ret_val < 0) in sst_platform_alloc_stream()
252 return ret_val; in sst_platform_alloc_stream()
256 ret_val = stream->ops->open(sst->dev, &str_params); in sst_platform_alloc_stream()
257 if (ret_val <= 0) in sst_platform_alloc_stream()
258 return ret_val; in sst_platform_alloc_stream()
261 return ret_val; in sst_platform_alloc_stream()
286 int ret_val; in sst_platform_init_stream() local
294 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.1.27/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.1.27/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.c142 int ret_val = 0; in byt_max98090_probe() local
153 ret_val = devm_snd_soc_register_card(&pdev->dev, &byt_max98090_card); in byt_max98090_probe()
154 if (ret_val) { in byt_max98090_probe()
156 "snd_soc_register_card failed %d\n", ret_val); in byt_max98090_probe()
157 return ret_val; in byt_max98090_probe()
160 return ret_val; in byt_max98090_probe()
Dbytcr_rt5640.c200 int ret_val = 0; in snd_byt_mc_probe() local
205 ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_byt); in snd_byt_mc_probe()
206 if (ret_val) { in snd_byt_mc_probe()
207 dev_err(&pdev->dev, "devm_snd_soc_register_card failed %d\n", ret_val); in snd_byt_mc_probe()
208 return ret_val; in snd_byt_mc_probe()
211 return ret_val; in snd_byt_mc_probe()
Dcht_bsw_rt5645.c292 int ret_val = 0; in snd_cht_mc_probe() local
301 ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_cht); in snd_cht_mc_probe()
302 if (ret_val) { in snd_cht_mc_probe()
304 "snd_soc_register_card failed %d\n", ret_val); in snd_cht_mc_probe()
305 return ret_val; in snd_cht_mc_probe()
308 return ret_val; in snd_cht_mc_probe()
Dcht_bsw_rt5672.c340 int ret_val = 0; in snd_cht_mc_probe() local
344 ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_cht); in snd_cht_mc_probe()
345 if (ret_val) { in snd_cht_mc_probe()
347 "snd_soc_register_card failed %d\n", ret_val); in snd_cht_mc_probe()
348 return ret_val; in snd_cht_mc_probe()
351 return ret_val; in snd_cht_mc_probe()
/linux-4.1.27/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.c114 s32 ret_val = 0; in ixgbe_setup_fc() local
143 ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &reg_bp); in ixgbe_setup_fc()
144 if (ret_val) in ixgbe_setup_fc()
145 return ret_val; in ixgbe_setup_fc()
245 ret_val = hw->mac.ops.prot_autoc_write(hw, reg_bp, locked); in ixgbe_setup_fc()
246 if (ret_val) in ixgbe_setup_fc()
247 return ret_val; in ixgbe_setup_fc()
256 return ret_val; in ixgbe_setup_fc()
270 s32 ret_val; in ixgbe_start_hw_generic() local
292 ret_val = ixgbe_setup_fc(hw); in ixgbe_start_hw_generic()
[all …]
Dixgbe_82599.c126 s32 ret_val; in ixgbe_setup_sfp_modules_82599() local
134 ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, &list_offset, in ixgbe_setup_sfp_modules_82599()
136 if (ret_val) in ixgbe_setup_sfp_modules_82599()
137 return ret_val; in ixgbe_setup_sfp_modules_82599()
140 ret_val = hw->mac.ops.acquire_swfw_sync(hw, in ixgbe_setup_sfp_modules_82599()
142 if (ret_val) in ixgbe_setup_sfp_modules_82599()
164 ret_val = hw->mac.ops.prot_autoc_write(hw, in ixgbe_setup_sfp_modules_82599()
168 if (ret_val) { in ixgbe_setup_sfp_modules_82599()
202 s32 ret_val; in prot_autoc_read_82599() local
207 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.c942 s32 ret_val; in ixgbe_reset_phy_nl() local
969 ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, &list_offset, in ixgbe_reset_phy_nl()
971 if (ret_val) in ixgbe_reset_phy_nl()
972 return ret_val; in ixgbe_reset_phy_nl()
974 ret_val = hw->eeprom.ops.read(hw, data_offset, &block_crc); in ixgbe_reset_phy_nl()
980 ret_val = hw->eeprom.ops.read(hw, data_offset, &eword); in ixgbe_reset_phy_nl()
981 if (ret_val) in ixgbe_reset_phy_nl()
995 ret_val = hw->eeprom.ops.read(hw, data_offset++, in ixgbe_reset_phy_nl()
997 if (ret_val) in ixgbe_reset_phy_nl()
1000 ret_val = hw->eeprom.ops.read(hw, data_offset, in ixgbe_reset_phy_nl()
[all …]
Dixgbe_x550.c700 s32 ret_val; in ixgbe_setup_sfp_modules_X550em() local
737 ret_val = hw->phy.ops.write_i2c_combined(hw, IXGBE_CS4227, reg_slice, in ixgbe_setup_sfp_modules_X550em()
740 if (ret_val) in ixgbe_setup_sfp_modules_X550em()
741 ret_val = hw->phy.ops.write_i2c_combined(hw, 0x80, reg_slice, in ixgbe_setup_sfp_modules_X550em()
744 return ret_val; in ixgbe_setup_sfp_modules_X550em()
1101 s32 ret_val; in ixgbe_init_phy_ops_X550em() local
1117 ret_val = phy->ops.identify(hw); in ixgbe_init_phy_ops_X550em()
1142 return ret_val; in ixgbe_init_phy_ops_X550em()
Dixgbe_x540.c179 s32 ret_val; in ixgbe_start_hw_X540() local
181 ret_val = ixgbe_start_hw_generic(hw); in ixgbe_start_hw_X540()
182 if (ret_val) in ixgbe_start_hw_X540()
183 return ret_val; in ixgbe_start_hw_X540()
Dixgbe_ethtool.c822 int ret_val = 0; in ixgbe_get_eeprom() local
838 ret_val = hw->eeprom.ops.read_buffer(hw, first_word, eeprom_len, in ixgbe_get_eeprom()
848 return ret_val; in ixgbe_get_eeprom()
858 int max_len, first_word, last_word, ret_val = 0; in ixgbe_set_eeprom() local
882 ret_val = hw->eeprom.ops.read(hw, first_word, &eeprom_buff[0]); in ixgbe_set_eeprom()
883 if (ret_val) in ixgbe_set_eeprom()
893 ret_val = hw->eeprom.ops.read(hw, last_word, in ixgbe_set_eeprom()
895 if (ret_val) in ixgbe_set_eeprom()
908 ret_val = hw->eeprom.ops.write_buffer(hw, first_word, in ixgbe_set_eeprom()
913 if (ret_val == 0) in ixgbe_set_eeprom()
[all …]
Dixgbe_main.c9111 int ret_val; in ixgbe_notify_dca() local
9113 ret_val = driver_for_each_device(&ixgbe_driver.driver, NULL, &event, in ixgbe_notify_dca()
9116 return ret_val ? NOTIFY_BAD : NOTIFY_DONE; in ixgbe_notify_dca()
/linux-4.1.27/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.1.27/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.1.27/drivers/ata/
Dpata_at91.c111 int ret_val; in calc_smc_vals() local
128 ret_val = adjust_smc_value(setup, range_setup, ARRAY_SIZE(range_setup)); in calc_smc_vals()
129 if (ret_val < 0) in calc_smc_vals()
132 *cycle += ret_val; in calc_smc_vals()
134 ret_val = adjust_smc_value(pulse, range_pulse, ARRAY_SIZE(range_pulse)); in calc_smc_vals()
135 if (ret_val < 0) in calc_smc_vals()
138 *cycle += ret_val; in calc_smc_vals()
140 ret_val = adjust_smc_value(cycle, range_cycle, ARRAY_SIZE(range_cycle)); in calc_smc_vals()
141 if (ret_val < 0) in calc_smc_vals()
150 ret_val = adjust_smc_value(cs_pulse, range_pulse, in calc_smc_vals()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/gpu/vga/
Dvgaarb.c914 int ret_val; in vga_arb_write() local
936 ret_val = -EPROTO; in vga_arb_write()
940 ret_val = -EPROTO; in vga_arb_write()
946 ret_val = -ENODEV; in vga_arb_write()
963 ret_val = count; in vga_arb_write()
976 ret_val = -EPROTO; in vga_arb_write()
989 ret_val = -ENODEV; in vga_arb_write()
998 ret_val = -EINVAL; in vga_arb_write()
1003 ret_val = -EINVAL; in vga_arb_write()
1008 ret_val = -EINVAL; in vga_arb_write()
[all …]
/linux-4.1.27/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.1.27/drivers/net/phy/
Dmdio-mux.c103 int r, ret_val; in mdio_mux_init() local
118 ret_val = -EPROBE_DEFER; in mdio_mux_init()
124 ret_val = -ENOMEM; in mdio_mux_init()
134 ret_val = -ENODEV; in mdio_mux_init()
146 ret_val = -ENOMEM; in mdio_mux_init()
178 return ret_val; in mdio_mux_init()
/linux-4.1.27/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.1.27/drivers/net/wireless/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.1.27/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.1.27/drivers/net/wireless/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.1.27/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.c1802 int ret_val = 0; in ips_fill_scb_sg_single() local
1808 ret_val = -1; in ips_fill_scb_sg_single()
1827 return ret_val; in ips_fill_scb_sg_single()
/linux-4.1.27/drivers/usb/gadget/udc/
Damd5536udc.c853 int ret_val = 0; in udc_free_dma_chain() local
872 return ret_val; in udc_free_dma_chain()
2047 irqreturn_t ret_val = IRQ_NONE; in udc_data_out_isr() local
2070 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2080 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2099 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2113 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2241 ret_val = IRQ_HANDLED; in udc_data_out_isr()
2255 return ret_val; in udc_data_out_isr()
2261 irqreturn_t ret_val = IRQ_NONE; in udc_data_in_isr() local
[all …]
Ddummy_hcd.c1485 int ret_val = 1; in handle_control_request() local
1499 ret_val = 0; in handle_control_request()
1503 ret_val = 0; in handle_control_request()
1521 ret_val = -EOPNOTSUPP; in handle_control_request()
1528 ret_val = -EOPNOTSUPP; in handle_control_request()
1535 ret_val = -EOPNOTSUPP; in handle_control_request()
1538 ret_val = -EOPNOTSUPP; in handle_control_request()
1540 if (ret_val == 0) { in handle_control_request()
1548 ret_val = -EOPNOTSUPP; in handle_control_request()
1552 ret_val = 0; in handle_control_request()
[all …]
/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8192cu/
Dmac.c729 char ret_val; in _rtl92c_evm_db_to_percentage() local
731 ret_val = value; in _rtl92c_evm_db_to_percentage()
732 if (ret_val >= 0) in _rtl92c_evm_db_to_percentage()
733 ret_val = 0; in _rtl92c_evm_db_to_percentage()
734 if (ret_val <= -33) in _rtl92c_evm_db_to_percentage()
735 ret_val = -33; in _rtl92c_evm_db_to_percentage()
736 ret_val = 0 - ret_val; in _rtl92c_evm_db_to_percentage()
737 ret_val *= 3; in _rtl92c_evm_db_to_percentage()
738 if (ret_val == 99) in _rtl92c_evm_db_to_percentage()
739 ret_val = 100; in _rtl92c_evm_db_to_percentage()
[all …]
/linux-4.1.27/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.1.27/drivers/net/wireless/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.1.27/drivers/net/wireless/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.1.27/drivers/staging/rtl8712/
Drtl8712_recv.c679 s8 ret_val; in evm_db2percentage() local
681 ret_val = value; in evm_db2percentage()
682 if (ret_val >= 0) in evm_db2percentage()
683 ret_val = 0; in evm_db2percentage()
684 if (ret_val <= -33) in evm_db2percentage()
685 ret_val = -33; in evm_db2percentage()
686 ret_val = -ret_val; in evm_db2percentage()
687 ret_val *= 3; in evm_db2percentage()
688 if (ret_val == 99) in evm_db2percentage()
689 ret_val = 100; in evm_db2percentage()
[all …]
/linux-4.1.27/drivers/usb/serial/
Dmos7720.c286 int ret_val; in send_deferred_urbs() local
325 ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); in send_deferred_urbs()
327 if (ret_val) { in send_deferred_urbs()
328 dev_err(dev, "usb_submit_urb() failed: %d\n", ret_val); in send_deferred_urbs()
357 int ret_val; in write_parport_reg_nonblock() local
417 ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); in write_parport_reg_nonblock()
419 if (ret_val) { in write_parport_reg_nonblock()
421 "%s: submit_urb() failed: %d\n", __func__, ret_val); in write_parport_reg_nonblock()
426 return ret_val; in write_parport_reg_nonblock()
1898 int ret_val; in mos7720_startup() local
[all …]
/linux-4.1.27/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.c1576 s32 ret_val = 0; in fm10k_get_host_state_pf() local
1585 ret_val = fm10k_get_host_state_generic(hw, switch_ready); in fm10k_get_host_state_pf()
1586 if (ret_val) in fm10k_get_host_state_pf()
1591 ret_val = fm10k_request_lport_map_pf(hw); in fm10k_get_host_state_pf()
1594 return ret_val; in fm10k_get_host_state_pf()
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c913 int ret_val = 0, len, offset; in i40e_get_eeprom() local
934 ret_val = i40e_nvmupd_command(hw, cmd, bytes, &errno); in i40e_get_eeprom()
935 if (ret_val && in i40e_get_eeprom()
940 ret_val, hw->aq.asq_last_status, errno, in i40e_get_eeprom()
954 ret_val = i40e_acquire_nvm(hw, I40E_RESOURCE_READ); in i40e_get_eeprom()
955 if (ret_val) { in i40e_get_eeprom()
958 ret_val, hw->aq.asq_last_status); in i40e_get_eeprom()
972 ret_val = i40e_aq_read_nvm(hw, 0x0, offset, len, in i40e_get_eeprom()
975 if (ret_val && hw->aq.asq_last_status == I40E_AQ_RC_EPERM) { in i40e_get_eeprom()
980 } else if (ret_val && in i40e_get_eeprom()
[all …]
/linux-4.1.27/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.1.27/drivers/net/hyperv/
Dnetvsc_drv.c347 u32 ret_val = TRANSPORT_INFO_NOT_IP; in get_net_transport_info() local
360 ret_val = TRANSPORT_INFO_IPV4_TCP; in get_net_transport_info()
362 ret_val = TRANSPORT_INFO_IPV4_UDP; in get_net_transport_info()
365 ret_val = TRANSPORT_INFO_IPV6_TCP; in get_net_transport_info()
367 ret_val = TRANSPORT_INFO_IPV6_UDP; in get_net_transport_info()
371 return ret_val; in get_net_transport_info()
Dnetvsc.c675 int ret_val = NETVSC_INVALID_INDEX; in netvsc_get_next_send_section() local
688 ret_val = (index + (i * BITS_PER_LONG)); in netvsc_get_next_send_section()
691 return ret_val; in netvsc_get_next_send_section()
/linux-4.1.27/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.1.27/drivers/net/ethernet/freescale/
Ducc_geth.c1318 int ret_val; in adjust_enet_interface() local
1391 ret_val = init_preamble_length(ug_info->prel, &ug_regs->maccfg2); in adjust_enet_interface()
1392 if (ret_val != 0) { in adjust_enet_interface()
1395 return ret_val; in adjust_enet_interface()
2362 int ret_val = -EINVAL; in ucc_geth_startup() local
2459 ret_val = init_inter_frame_gap_params(ug_info->nonBackToBackIfgPart1, in ucc_geth_startup()
2465 if (ret_val != 0) { in ucc_geth_startup()
2468 return ret_val; in ucc_geth_startup()
2473 ret_val = init_half_duplex_params(ug_info->altBeb, in ucc_geth_startup()
2481 if (ret_val != 0) { in ucc_geth_startup()
[all …]
/linux-4.1.27/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.1.27/drivers/staging/ft1000/ft1000-usb/
Dft1000_hw.c667 int i, ret_val; in init_ft1000_netdev() local
689 ret_val = kstrtou8(card_nr, 10, &gCardIndex); in init_ft1000_netdev()
690 if (ret_val) { in init_ft1000_netdev()
699 ret_val = -ENXIO; in init_ft1000_netdev()
745 ret_val = -ENOMEM; in init_ft1000_netdev()
751 ret_val = -ENOMEM; in init_ft1000_netdev()
771 return ret_val; in init_ft1000_netdev()
/linux-4.1.27/drivers/tty/
Dcyclades.c2649 int ret_val = 0; in cy_ioctl() local
2664 ret_val = -EFAULT; in cy_ioctl()
2670 ret_val = get_threshold(info, argp); in cy_ioctl()
2673 ret_val = set_threshold(info, arg); in cy_ioctl()
2676 ret_val = put_user(info->default_threshold, in cy_ioctl()
2683 ret_val = get_timeout(info, argp); in cy_ioctl()
2686 ret_val = set_timeout(info, arg); in cy_ioctl()
2689 ret_val = put_user(info->default_timeout, in cy_ioctl()
2699 ret_val = info->rflow; in cy_ioctl()
2705 ret_val = info->rtsdtr_inv; in cy_ioctl()
[all …]
/linux-4.1.27/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.1.27/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.1.27/scripts/kconfig/
Dzconf.lex.c1477 int ret_val; in yy_get_next_buffer() local
1572 ret_val = EOB_ACT_END_OF_FILE; in yy_get_next_buffer()
1578 ret_val = EOB_ACT_LAST_MATCH; in yy_get_next_buffer()
1585 ret_val = EOB_ACT_CONTINUE_SCAN; in yy_get_next_buffer()
1601 return ret_val; in yy_get_next_buffer()
Dzconf.lex.c_shipped1477 int ret_val;
1572 ret_val = EOB_ACT_END_OF_FILE;
1578 ret_val = EOB_ACT_LAST_MATCH;
1585 ret_val = EOB_ACT_CONTINUE_SCAN;
1601 return ret_val;
/linux-4.1.27/drivers/cpufreq/
Dpowernow-k8.c743 int ret_val = -ENODEV; in powernow_k8_cpu_init_acpi() local
779 ret_val = fill_powernow_table_fidvid(data, powernow_table); in powernow_k8_cpu_init_acpi()
780 if (ret_val) in powernow_k8_cpu_init_acpi()
795 ret_val = -ENOMEM; in powernow_k8_cpu_init_acpi()
811 return ret_val; in powernow_k8_cpu_init_acpi()
/linux-4.1.27/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.1.27/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.1.27/drivers/staging/rtl8192e/rtl8192e/
Drtl_core.c2274 char ret_val; in rtl819x_evm_dbtopercentage() local
2276 ret_val = value; in rtl819x_evm_dbtopercentage()
2278 if (ret_val >= 0) in rtl819x_evm_dbtopercentage()
2279 ret_val = 0; in rtl819x_evm_dbtopercentage()
2280 if (ret_val <= -33) in rtl819x_evm_dbtopercentage()
2281 ret_val = -33; in rtl819x_evm_dbtopercentage()
2282 ret_val = 0 - ret_val; in rtl819x_evm_dbtopercentage()
2283 ret_val *= 3; in rtl819x_evm_dbtopercentage()
2284 if (ret_val == 99) in rtl819x_evm_dbtopercentage()
2285 ret_val = 100; in rtl819x_evm_dbtopercentage()
[all …]
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dwmm.c920 u8 ret_val; in mwifiex_wmm_compute_drv_pkt_delay() local
928 ret_val = (u8) (min(queue_delay, priv->wmm.drv_pkt_delay_max) >> 1); in mwifiex_wmm_compute_drv_pkt_delay()
931 " %d ms sent to FW\n", queue_delay, ret_val); in mwifiex_wmm_compute_drv_pkt_delay()
933 return ret_val; in mwifiex_wmm_compute_drv_pkt_delay()
/linux-4.1.27/drivers/hv/
Dvmbus_drv.c1008 int ret_val = -ENODEV; in vmbus_acpi_add() local
1031 ret_val = 0; in vmbus_acpi_add()
1035 return ret_val; in vmbus_acpi_add()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_acpi.c90 u8 ret_val; /* return value */ member
634 switch (atcs_output.ret_val) { in radeon_acpi_pcie_performance_request()
/linux-4.1.27/drivers/staging/rtl8192u/
Dr8192U_core.c3909 char ret_val; in rtl819x_evm_dbtopercentage() local
3911 ret_val = value; in rtl819x_evm_dbtopercentage()
3913 if (ret_val >= 0) in rtl819x_evm_dbtopercentage()
3914 ret_val = 0; in rtl819x_evm_dbtopercentage()
3915 if (ret_val <= -33) in rtl819x_evm_dbtopercentage()
3916 ret_val = -33; in rtl819x_evm_dbtopercentage()
3917 ret_val = 0 - ret_val; in rtl819x_evm_dbtopercentage()
3918 ret_val *= 3; in rtl819x_evm_dbtopercentage()
3919 if (ret_val == 99) in rtl819x_evm_dbtopercentage()
3920 ret_val = 100; in rtl819x_evm_dbtopercentage()
[all …]
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.h391 u8 devad, u16 reg, u16 *ret_val);
Dbnx2x_ethtool.c1271 static int bnx2x_nvram_read_dword(struct bnx2x *bp, u32 offset, __be32 *ret_val, in bnx2x_nvram_read_dword() argument
1296 *ret_val = 0; in bnx2x_nvram_read_dword()
1308 *ret_val = cpu_to_be32(val); in bnx2x_nvram_read_dword()
Dbnx2x_link.c2633 u16 reg, u16 *ret_val) in bnx2x_cl22_read() argument
2655 *ret_val = (u16)(val & EMAC_MDIO_COMM_DATA); in bnx2x_cl22_read()
2663 *ret_val = 0; in bnx2x_cl22_read()
2674 u8 devad, u16 reg, u16 *ret_val) in bnx2x_cl45_read() argument
2707 *ret_val = 0; in bnx2x_cl45_read()
2722 *ret_val = (u16)(val & EMAC_MDIO_COMM_DATA); in bnx2x_cl45_read()
2729 *ret_val = 0; in bnx2x_cl45_read()
3193 u8 devad, u16 reg, u16 *ret_val) in bnx2x_phy_read() argument
3203 reg, ret_val); in bnx2x_phy_read()
/linux-4.1.27/drivers/usb/dwc2/
Dhcd.c903 enum dwc2_transaction_type ret_val = DWC2_TRANSACTION_NONE; in dwc2_hcd_select_transactions() local
932 ret_val = DWC2_TRANSACTION_PERIODIC; in dwc2_hcd_select_transactions()
967 if (ret_val == DWC2_TRANSACTION_NONE) in dwc2_hcd_select_transactions()
968 ret_val = DWC2_TRANSACTION_NON_PERIODIC; in dwc2_hcd_select_transactions()
970 ret_val = DWC2_TRANSACTION_ALL; in dwc2_hcd_select_transactions()
976 return ret_val; in dwc2_hcd_select_transactions()
/linux-4.1.27/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.1.27/drivers/scsi/lpfc/
Dlpfc_bsg.c2543 int ret_val = 0; in lpfcdiag_loop_get_xri() local
2586 ret_val = -ENOMEM; in lpfcdiag_loop_get_xri()
2628 ret_val = -EIO; in lpfcdiag_loop_get_xri()
2640 ret_val = (time_left) ? -EINTR : -ETIMEDOUT; in lpfcdiag_loop_get_xri()
2667 return ret_val; in lpfcdiag_loop_get_xri()
2857 int ret_val = 0; in lpfcdiag_loop_post_rxbufs() local
2873 ret_val = -ENOMEM; in lpfcdiag_loop_post_rxbufs()
2931 ret_val = -EIO; in lpfcdiag_loop_post_rxbufs()
2945 ret_val = -EIO; in lpfcdiag_loop_post_rxbufs()
2964 return ret_val; in lpfcdiag_loop_post_rxbufs()
Dlpfc_scsi.c4660 int ring_number, ret_val; in lpfc_abort_handler() local
4765 ret_val = __lpfc_sli_issue_iocb(phba, pring_s4->ringno, in lpfc_abort_handler()
4769 ret_val = __lpfc_sli_issue_iocb(phba, LPFC_FCP_RING, in lpfc_abort_handler()
4776 if (ret_val == IOCB_ERROR) { in lpfc_abort_handler()
Dlpfc_sli.c10088 int errcnt = 0, ret_val = 0; in lpfc_sli_abort_iocb() local
10140 ret_val = lpfc_sli_issue_iocb(phba, pring->ringno, in lpfc_sli_abort_iocb()
10142 if (ret_val == IOCB_ERROR) { in lpfc_sli_abort_iocb()
10184 int sum, i, ret_val; in lpfc_sli_abort_taskmgmt() local
10260 ret_val = __lpfc_sli_issue_iocb(phba, pring_s4->ringno, in lpfc_sli_abort_taskmgmt()
10264 ret_val = __lpfc_sli_issue_iocb(phba, pring->ringno, in lpfc_sli_abort_taskmgmt()
10269 if (ret_val == IOCB_ERROR) in lpfc_sli_abort_taskmgmt()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dmac80211_if.c1410 uint callbacks, ret_val = 0; in brcms_down() local
1413 ret_val = brcms_c_down(wl->wlc); in brcms_down()
1414 callbacks = atomic_read(&wl->callbacks) - ret_val; in brcms_down()
/linux-4.1.27/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.1.27/scripts/dtc/
Ddtc-lexer.lex.c_shipped1354 int ret_val;
1449 ret_val = EOB_ACT_END_OF_FILE;
1455 ret_val = EOB_ACT_LAST_MATCH;
1462 ret_val = EOB_ACT_CONTINUE_SCAN;
1478 return ret_val;
/linux-4.1.27/drivers/scsi/megaraid/
Dmegaraid_sas_base.c2446 int ret_val; in megasas_generic_reset() local
2460 ret_val = megasas_wait_for_outstanding(instance); in megasas_generic_reset()
2461 if (ret_val == SUCCESS) in megasas_generic_reset()
2466 return ret_val; in megasas_generic_reset()
4857 int ret_val; in megasas_register_aen() local
4908 ret_val = megasas_issue_blocked_abort_cmd(instance, in megasas_register_aen()
4912 if (ret_val) { in megasas_register_aen()
4915 return ret_val; in megasas_register_aen()
/linux-4.1.27/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.1.27/arch/x86/kvm/
Dmmu.c2847 pfn_t pfn, unsigned access, int *ret_val) in handle_abnormal_pfn() argument
2853 *ret_val = kvm_handle_bad_page(vcpu, gfn, pfn); in handle_abnormal_pfn()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dbnx2.c4234 bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags) in bnx2_nvram_read_dword() argument
4267 memcpy(ret_val, &v, 4); in bnx2_nvram_read_dword()