Lines Matching refs:rated_capacity
42 static unsigned int rated_capacity; variable
43 module_param(rated_capacity, uint, 0644);
44 MODULE_PARM_DESC(rated_capacity, "rated battery capacity, 10*mAh or index");
103 int rated_capacity; /* units of µAh */ member
319 di->rated_capacity = rated_capacities[ in ds2760_battery_read_status()
322 di->rated_capacity = di->raw[DS2760_RATED_CAPACITY] * 10; in ds2760_battery_read_status()
324 di->rated_capacity *= 1000; /* convert to µAh */ in ds2760_battery_read_status()
334 di->full_active_uAh = di->rated_capacity / 1000L; in ds2760_battery_read_status()
446 unsigned char rated_capacity) in ds2760_battery_write_rated_capacity() argument
448 if (rated_capacity == di->raw[DS2760_RATED_CAPACITY]) in ds2760_battery_write_rated_capacity()
451 w1_ds2760_write(di->dev, &rated_capacity, DS2760_RATED_CAPACITY, 1); in ds2760_battery_write_rated_capacity()
568 val->intval = di->rated_capacity; in ds2760_battery_get_property()
724 rated_capacity = tmp / 10; /* property is in mAh */ in w1_ds2760_add_slave()
742 if (rated_capacity) in w1_ds2760_add_slave()
743 ds2760_battery_write_rated_capacity(di, rated_capacity); in w1_ds2760_add_slave()