Lines Matching refs:cytherm

70 	struct usb_cytherm *cytherm = usb_get_intfdata(intf);       in brightness_show()  local
72 return sprintf(buf, "%i", cytherm->brightness); in brightness_show()
79 struct usb_cytherm *cytherm = usb_get_intfdata(intf); in brightness_store() local
88 cytherm->brightness = simple_strtoul(buf, NULL, 10); in brightness_store()
90 if (cytherm->brightness > 0xFF) in brightness_store()
91 cytherm->brightness = 0xFF; in brightness_store()
92 else if (cytherm->brightness < 0) in brightness_store()
93 cytherm->brightness = 0; in brightness_store()
96 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS, in brightness_store()
97 cytherm->brightness, buffer, 8); 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()
104 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in brightness_store()
120 struct usb_cytherm *cytherm = usb_get_intfdata(intf); in temp_show() local
132 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); 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()
140 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in temp_show()
157 struct usb_cytherm *cytherm = usb_get_intfdata(intf); in button_show() local
167 retval = vendor_command(cytherm->udev, READ_RAM, BUTTON, 0, buffer, 8); in button_show()
169 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in button_show()
186 struct usb_cytherm *cytherm = usb_get_intfdata(intf); in port0_show() local
195 retval = vendor_command(cytherm->udev, READ_PORT, 0, 0, buffer, 8); in port0_show()
197 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port0_show()
210 struct usb_cytherm *cytherm = usb_get_intfdata(intf); in port0_store() local
227 retval = vendor_command(cytherm->udev, WRITE_PORT, 0, in port0_store()
230 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port0_store()
241 struct usb_cytherm *cytherm = usb_get_intfdata(intf); in port1_show() local
250 retval = vendor_command(cytherm->udev, READ_PORT, 1, 0, buffer, 8); in port1_show()
252 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port1_show()
265 struct usb_cytherm *cytherm = usb_get_intfdata(intf); in port1_store() local
282 retval = vendor_command(cytherm->udev, WRITE_PORT, 1, in port1_store()
285 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in port1_store()
301 ATTRIBUTE_GROUPS(cytherm);