Searched refs:decimals (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/usb/misc/
H A Dusbsevseg.c45 u8 decimals[MAXLEN]; member in struct:usb_sevsegdev
125 u8 decimals = 0; update_display_visual() local
156 for (i = 0; i < sizeof(mydev->decimals); i++) update_display_visual()
157 decimals |= mydev->decimals[i] << i; update_display_visual()
164 (0 * 0x100) + decimals, /* decimals */ update_display_visual()
235 for (i = 0; i < sizeof(mydev->decimals); i++) { show_attr_decimals()
236 pos = sizeof(mydev->decimals) - 1 - i; show_attr_decimals()
237 if (mydev->decimals[i] == 0) show_attr_decimals()
239 else if (mydev->decimals[i] == 1) show_attr_decimals()
245 buf[sizeof(mydev->decimals)] = '\n'; show_attr_decimals()
246 return sizeof(mydev->decimals) + 1; show_attr_decimals()
257 if (end > sizeof(mydev->decimals)) set_attr_decimals()
264 memset(mydev->decimals, 0, sizeof(mydev->decimals)); set_attr_decimals()
267 mydev->decimals[end-1-i] = 1; set_attr_decimals()
274 static DEVICE_ATTR(decimals, S_IRUGO | S_IWUSR, show_attr_decimals, set_attr_decimals);
/linux-4.1.27/drivers/md/
H A Dmd.c3252 long decimals = -1; strict_strtoul_scaled() local
3253 while (isdigit(*cp) || (*cp == '.' && decimals < 0)) { strict_strtoul_scaled()
3255 decimals = 0; strict_strtoul_scaled()
3256 else if (decimals < scale) { strict_strtoul_scaled()
3260 if (decimals >= 0) strict_strtoul_scaled()
3261 decimals++; strict_strtoul_scaled()
3269 if (decimals < 0) strict_strtoul_scaled()
3270 decimals = 0; strict_strtoul_scaled()
3271 while (decimals < scale) { strict_strtoul_scaled()
3273 decimals ++; strict_strtoul_scaled()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_file_ops.c1731 * decimals of 9s, with this ordering), given how much else happens qib_do_user_init()

Completed in 230 milliseconds