Lines Matching refs:cros_chctl_priv
40 struct cros_chctl_priv { struct
87 static int cros_chctl_configure_ec(struct cros_chctl_priv *priv) in cros_chctl_configure_ec()
122 static struct cros_chctl_priv *cros_chctl_attr_to_priv(struct attribute *attr, in cros_chctl_attr_to_priv()
127 return container_of(dev_attr, struct cros_chctl_priv, device_attrs[idx]); in cros_chctl_attr_to_priv()
130 static ssize_t cros_chctl_store_threshold(struct device *dev, struct cros_chctl_priv *priv, in cros_chctl_store_threshold()
168 struct cros_chctl_priv *priv = cros_chctl_attr_to_priv(&attr->attr, in charge_control_start_threshold_show()
179 struct cros_chctl_priv *priv = cros_chctl_attr_to_priv(&attr->attr, in charge_control_start_threshold_store()
189 struct cros_chctl_priv *priv = cros_chctl_attr_to_priv(&attr->attr, in charge_control_end_threshold_show()
199 struct cros_chctl_priv *priv = cros_chctl_attr_to_priv(&attr->attr, in charge_control_end_threshold_store()
208 struct cros_chctl_priv *priv = cros_chctl_attr_to_priv(&attr->attr, in charge_behaviour_show()
219 struct cros_chctl_priv *priv = cros_chctl_attr_to_priv(&attr->attr, in charge_behaviour_store()
239 struct cros_chctl_priv *priv = cros_chctl_attr_to_priv(attr, n); in cros_chtl_attr_is_visible()
251 struct cros_chctl_priv *priv = container_of(hook, struct cros_chctl_priv, battery_hook); in cros_chctl_add_battery()
262 struct cros_chctl_priv *priv = container_of(hook, struct cros_chctl_priv, battery_hook); in cros_chctl_remove_battery()
290 struct cros_chctl_priv *priv; in cros_chctl_probe()