Lines Matching refs:fw_work
1249 struct firmware_work *fw_work; in request_firmware_work_func() local
1252 fw_work = container_of(work, struct firmware_work, work); in request_firmware_work_func()
1254 _request_firmware(&fw, fw_work->name, fw_work->device, in request_firmware_work_func()
1255 fw_work->opt_flags); in request_firmware_work_func()
1256 fw_work->cont(fw, fw_work->context); in request_firmware_work_func()
1257 put_device(fw_work->device); /* taken in request_firmware_nowait() */ in request_firmware_work_func()
1259 module_put(fw_work->module); in request_firmware_work_func()
1260 kfree(fw_work); in request_firmware_work_func()
1292 struct firmware_work *fw_work; in request_firmware_nowait() local
1294 fw_work = kzalloc(sizeof(struct firmware_work), gfp); in request_firmware_nowait()
1295 if (!fw_work) in request_firmware_nowait()
1298 fw_work->module = module; in request_firmware_nowait()
1299 fw_work->name = name; in request_firmware_nowait()
1300 fw_work->device = device; in request_firmware_nowait()
1301 fw_work->context = context; in request_firmware_nowait()
1302 fw_work->cont = cont; in request_firmware_nowait()
1303 fw_work->opt_flags = FW_OPT_NOWAIT | FW_OPT_FALLBACK | in request_firmware_nowait()
1307 kfree(fw_work); in request_firmware_nowait()
1311 get_device(fw_work->device); in request_firmware_nowait()
1312 INIT_WORK(&fw_work->work, request_firmware_work_func); in request_firmware_nowait()
1313 schedule_work(&fw_work->work); in request_firmware_nowait()