Lines Matching refs:work
119 struct firmload_work *work = container_of(wk, struct firmload_work, in request_firmware_work() local
125 ret = request_firmware(&fw, work->flw_name, work->flw_device); in request_firmware_work()
130 (*work->flw_callback)(fw, work->flw_cookie); in request_firmware_work()
140 if (work->flw_module) in request_firmware_work()
141 module_rele(work->flw_module); in request_firmware_work()
150 struct firmload_work *work; in request_firmware_nowait() local
153 work = kzalloc(sizeof(*work), gfp); in request_firmware_nowait()
154 if (work == NULL) in request_firmware_nowait()
168 work->flw_name = namedup; in request_firmware_nowait()
169 work->flw_callback = callback; in request_firmware_nowait()
170 work->flw_cookie = cookie; in request_firmware_nowait()
171 work->flw_device = device; in request_firmware_nowait()
172 work->flw_module = module; in request_firmware_nowait()
173 INIT_WORK(&work->flw_work, request_firmware_work); in request_firmware_nowait()
176 schedule_work(&work->flw_work); in request_firmware_nowait()
181 fail1: kfree(work); in request_firmware_nowait()