Lines Matching refs:retval
82 int retval; in brightness_store() local
96 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS, in brightness_store()
98 if (retval) in brightness_store()
99 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store()
101 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS_SEM, in brightness_store()
103 if (retval) in brightness_store()
104 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store()
122 int retval; in temp_show() local
132 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); in temp_show()
133 if (retval) in temp_show()
134 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in temp_show()
138 retval = vendor_command(cytherm->udev, READ_RAM, SIGN, 0, buffer, 8); in temp_show()
139 if (retval) in temp_show()
140 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in temp_show()
159 int retval; in button_show() local
167 retval = vendor_command(cytherm->udev, READ_RAM, BUTTON, 0, buffer, 8); in button_show()
168 if (retval) in button_show()
169 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in button_show()
171 retval = buffer[1]; in button_show()
175 if (retval) in button_show()
188 int retval; in port0_show() local
195 retval = vendor_command(cytherm->udev, READ_PORT, 0, 0, buffer, 8); in port0_show()
196 if (retval) in port0_show()
197 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port0_show()
199 retval = buffer[1]; in port0_show()
203 return sprintf(buf, "%d", retval); in port0_show()
213 int retval; in port0_store() local
227 retval = vendor_command(cytherm->udev, WRITE_PORT, 0, in port0_store()
229 if (retval) in port0_store()
230 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port0_store()
243 int retval; in port1_show() local
250 retval = vendor_command(cytherm->udev, READ_PORT, 1, 0, buffer, 8); in port1_show()
251 if (retval) in port1_show()
252 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port1_show()
254 retval = buffer[1]; in port1_show()
258 return sprintf(buf, "%d", retval); in port1_show()
268 int retval; in port1_store() local
282 retval = vendor_command(cytherm->udev, WRITE_PORT, 1, in port1_store()
284 if (retval) in port1_store()
285 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port1_store()
308 int retval = -ENOMEM; in cytherm_probe() local
325 return retval; in cytherm_probe()