Lines Matching refs:ea
2452 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_store_ulong() local
2459 *(unsigned long *)(ea->var) = new; in device_store_ulong()
2469 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_show_ulong() local
2470 return sysfs_emit(buf, "%lx\n", *(unsigned long *)(ea->var)); in device_show_ulong()
2478 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_store_int() local
2488 *(int *)(ea->var) = new; in device_store_int()
2498 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_show_int() local
2500 return sysfs_emit(buf, "%d\n", *(int *)(ea->var)); in device_show_int()
2507 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_store_bool() local
2509 if (kstrtobool(buf, ea->var) < 0) in device_store_bool()
2519 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_show_bool() local
2521 return sysfs_emit(buf, "%d\n", *(bool *)(ea->var)); in device_show_bool()
2528 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_show_string() local
2530 return sysfs_emit(buf, "%s\n", (char *)ea->var); in device_show_string()