Lines Matching refs:set_data
215 struct set_schib_struct *set_data; in cmf_set_schib_release() local
217 set_data = container_of(kref, struct set_schib_struct, kref); in cmf_set_schib_release()
218 kfree(set_data); in cmf_set_schib_release()
226 struct set_schib_struct *set_data; in set_schib_wait() local
234 set_data = kzalloc(sizeof(struct set_schib_struct), GFP_ATOMIC); in set_schib_wait()
235 if (!set_data) { in set_schib_wait()
239 init_waitqueue_head(&set_data->wait); in set_schib_wait()
240 kref_init(&set_data->kref); in set_schib_wait()
241 set_data->mme = mme; in set_schib_wait()
242 set_data->mbfc = mbfc; in set_schib_wait()
243 set_data->address = address; in set_schib_wait()
256 set_data->ret = CMF_PENDING; in set_schib_wait()
257 cdev->private->cmb_wait = set_data; in set_schib_wait()
260 if (wait_event_interruptible(set_data->wait, in set_schib_wait()
261 set_data->ret != CMF_PENDING)) { in set_schib_wait()
263 if (set_data->ret == CMF_PENDING) { in set_schib_wait()
264 set_data->ret = -ERESTARTSYS; in set_schib_wait()
272 ret = set_data->ret; in set_schib_wait()
274 kref_put(&set_data->kref, cmf_set_schib_release); in set_schib_wait()
282 struct set_schib_struct *set_data; in retry_set_schib() local
284 set_data = cdev->private->cmb_wait; in retry_set_schib()
285 if (!set_data) { in retry_set_schib()
289 kref_get(&set_data->kref); in retry_set_schib()
290 set_data->ret = set_schib(cdev, set_data->mme, set_data->mbfc, in retry_set_schib()
291 set_data->address); in retry_set_schib()
292 wake_up(&set_data->wait); in retry_set_schib()
293 kref_put(&set_data->kref, cmf_set_schib_release); in retry_set_schib()