Searched refs:decimals (Results 1 – 2 of 2) sorted by relevance
46 u8 decimals[MAXLEN]; member126 u8 decimals = 0; in update_display_visual() local157 for (i = 0; i < sizeof(mydev->decimals); i++) in update_display_visual()158 decimals |= mydev->decimals[i] << i; in update_display_visual()165 (0 * 0x100) + decimals, /* decimals */ in update_display_visual()236 for (i = 0; i < sizeof(mydev->decimals); i++) { in show_attr_decimals()237 pos = sizeof(mydev->decimals) - 1 - i; in show_attr_decimals()238 if (mydev->decimals[i] == 0) in show_attr_decimals()240 else if (mydev->decimals[i] == 1) in show_attr_decimals()246 buf[sizeof(mydev->decimals)] = '\n'; in show_attr_decimals()[all …]
3381 long decimals = -1; in strict_strtoul_scaled() local3382 while (isdigit(*cp) || (*cp == '.' && decimals < 0)) { in strict_strtoul_scaled()3384 decimals = 0; in strict_strtoul_scaled()3385 else if (decimals < scale) { in strict_strtoul_scaled()3389 if (decimals >= 0) in strict_strtoul_scaled()3390 decimals++; in strict_strtoul_scaled()3398 if (decimals < 0) in strict_strtoul_scaled()3399 decimals = 0; in strict_strtoul_scaled()3400 while (decimals < scale) { in strict_strtoul_scaled()3402 decimals ++; in strict_strtoul_scaled()