Lines Matching defs:retval
45 int retval;
48 retval = i2c_smbus_read_byte_data(client, SMB_PROTOCOL_VERSION_ADDRESS);
49 if (retval < 0) {
51 return retval;
54 return retval + 1;
64 int retval;
66 retval = i2c_smbus_write_block_data(client, commandcode, len, buf);
70 len, commandcode, retval, (int)len, buf);
72 return retval;
86 int retval = 0;
114 retval = smb_block_write(xport, i + 0x80, &new_map, sizeof(new_map));
115 if (retval < 0) {
129 if (retval < 0)
130 return retval;
139 int retval = 0;
153 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len,
155 if (retval < 0)
158 retval = smb_block_write(xport, commandcode,
160 if (retval < 0)
170 return retval;
180 int retval;
182 retval = i2c_smbus_read_block_data(client, commandcode, buf);
183 if (retval < 0)
184 return retval;
186 return retval;
194 int retval;
205 retval = rmi_smb_get_command_code(xport, rmiaddr, block_len,
207 if (retval < 0)
210 retval = smb_block_read(xport, commandcode,
212 if (retval < 0)
221 retval = 0;
225 return retval;