Lines Matching refs:decimals
41 u8 decimals[MAXLEN]; member
111 u8 decimals = 0; in update_display_visual() local
129 for (i = 0; i < sizeof(mydev->decimals); i++) in update_display_visual()
130 decimals |= mydev->decimals[i] << i; in update_display_visual()
134 (0 * 0x100) + decimals, /* decimals */ in update_display_visual()
203 for (i = 0; i < sizeof(mydev->decimals); i++) { in decimals_show()
204 pos = sizeof(mydev->decimals) - 1 - i; in decimals_show()
205 if (mydev->decimals[i] == 0) in decimals_show()
207 else if (mydev->decimals[i] == 1) in decimals_show()
213 buf[sizeof(mydev->decimals)] = '\n'; in decimals_show()
214 return sizeof(mydev->decimals) + 1; in decimals_show()
225 if (end > sizeof(mydev->decimals)) in decimals_store()
232 memset(mydev->decimals, 0, sizeof(mydev->decimals)); in decimals_store()
235 mydev->decimals[end-1-i] = 1; in decimals_store()
242 static DEVICE_ATTR_RW(decimals);