Lines Matching refs:fw_work
1268 struct firmware_work *fw_work; in request_firmware_work_func() local
1271 fw_work = container_of(work, struct firmware_work, work); in request_firmware_work_func()
1273 _request_firmware(&fw, fw_work->name, fw_work->device, in request_firmware_work_func()
1274 fw_work->opt_flags); in request_firmware_work_func()
1275 fw_work->cont(fw, fw_work->context); in request_firmware_work_func()
1276 put_device(fw_work->device); /* taken in request_firmware_nowait() */ in request_firmware_work_func()
1278 module_put(fw_work->module); in request_firmware_work_func()
1279 kfree_const(fw_work->name); in request_firmware_work_func()
1280 kfree(fw_work); in request_firmware_work_func()
1312 struct firmware_work *fw_work; in request_firmware_nowait() local
1314 fw_work = kzalloc(sizeof(struct firmware_work), gfp); in request_firmware_nowait()
1315 if (!fw_work) in request_firmware_nowait()
1318 fw_work->module = module; in request_firmware_nowait()
1319 fw_work->name = kstrdup_const(name, gfp); in request_firmware_nowait()
1320 if (!fw_work->name) { in request_firmware_nowait()
1321 kfree(fw_work); in request_firmware_nowait()
1324 fw_work->device = device; in request_firmware_nowait()
1325 fw_work->context = context; in request_firmware_nowait()
1326 fw_work->cont = cont; in request_firmware_nowait()
1327 fw_work->opt_flags = FW_OPT_NOWAIT | FW_OPT_FALLBACK | in request_firmware_nowait()
1331 kfree_const(fw_work->name); in request_firmware_nowait()
1332 kfree(fw_work); in request_firmware_nowait()
1336 get_device(fw_work->device); in request_firmware_nowait()
1337 INIT_WORK(&fw_work->work, request_firmware_work_func); in request_firmware_nowait()
1338 schedule_work(&fw_work->work); in request_firmware_nowait()