Lines Matching refs:zpodd

21 struct zpodd {  struct
108 struct zpodd *zpodd = dev->zpodd; in zpready() local
132 if (zpodd->mech_type == ODD_MECH_TYPE_SLOT) in zpready()
148 struct zpodd *zpodd = dev->zpodd; in zpodd_on_suspend() local
152 zpodd->zp_sampled = false; in zpodd_on_suspend()
153 zpodd->zp_ready = false; in zpodd_on_suspend()
157 if (!zpodd->zp_sampled) { in zpodd_on_suspend()
158 zpodd->zp_sampled = true; in zpodd_on_suspend()
159 zpodd->last_ready = jiffies; in zpodd_on_suspend()
163 expires = zpodd->last_ready + in zpodd_on_suspend()
168 zpodd->zp_ready = true; in zpodd_on_suspend()
173 struct zpodd *zpodd = dev->zpodd; in zpodd_zpready() local
174 return zpodd->zp_ready; in zpodd_zpready()
187 struct zpodd *zpodd = dev->zpodd; in zpodd_enable_run_wake() local
191 zpodd->powered_off = true; in zpodd_enable_run_wake()
198 struct zpodd *zpodd = dev->zpodd; in zpodd_disable_run_wake() local
200 if (zpodd->powered_off) in zpodd_disable_run_wake()
221 struct zpodd *zpodd = dev->zpodd; in zpodd_post_poweron() local
223 if (!zpodd->powered_off) in zpodd_post_poweron()
226 zpodd->powered_off = false; in zpodd_post_poweron()
228 if (zpodd->from_notify) { in zpodd_post_poweron()
229 zpodd->from_notify = false; in zpodd_post_poweron()
230 if (zpodd->mech_type == ODD_MECH_TYPE_DRAWER) in zpodd_post_poweron()
234 zpodd->zp_sampled = false; in zpodd_post_poweron()
235 zpodd->zp_ready = false; in zpodd_post_poweron()
243 struct zpodd *zpodd = ata_dev->zpodd; in zpodd_wake_dev() local
247 zpodd->from_notify = true; in zpodd_wake_dev()
269 struct zpodd *zpodd; in zpodd_init() local
271 if (dev->zpodd || !adev || !acpi_device_can_poweroff(adev)) in zpodd_init()
278 zpodd = kzalloc(sizeof(struct zpodd), GFP_KERNEL); in zpodd_init()
279 if (!zpodd) in zpodd_init()
282 zpodd->mech_type = mech_type; in zpodd_init()
285 zpodd->dev = dev; in zpodd_init()
286 dev->zpodd = zpodd; in zpodd_init()
293 kfree(dev->zpodd); in zpodd_exit()
294 dev->zpodd = NULL; in zpodd_exit()