Lines Matching refs:fw_work
1189 struct firmware_work *fw_work; in request_firmware_work_func() local
1192 fw_work = container_of(work, struct firmware_work, work); in request_firmware_work_func()
1194 _request_firmware(&fw, fw_work->name, fw_work->device, NULL, 0, 0, in request_firmware_work_func()
1195 fw_work->opt_flags); in request_firmware_work_func()
1196 fw_work->cont(fw, fw_work->context); in request_firmware_work_func()
1197 put_device(fw_work->device); /* taken in request_firmware_nowait() */ in request_firmware_work_func()
1199 module_put(fw_work->module); in request_firmware_work_func()
1200 kfree_const(fw_work->name); in request_firmware_work_func()
1201 kfree(fw_work); in request_firmware_work_func()
1210 struct firmware_work *fw_work; in _request_firmware_nowait() local
1212 fw_work = kzalloc(sizeof(struct firmware_work), gfp); in _request_firmware_nowait()
1213 if (!fw_work) in _request_firmware_nowait()
1216 fw_work->module = module; in _request_firmware_nowait()
1217 fw_work->name = kstrdup_const(name, gfp); in _request_firmware_nowait()
1218 if (!fw_work->name) { in _request_firmware_nowait()
1219 kfree(fw_work); in _request_firmware_nowait()
1222 fw_work->device = device; in _request_firmware_nowait()
1223 fw_work->context = context; in _request_firmware_nowait()
1224 fw_work->cont = cont; in _request_firmware_nowait()
1225 fw_work->opt_flags = FW_OPT_NOWAIT | in _request_firmware_nowait()
1230 kfree_const(fw_work->name); in _request_firmware_nowait()
1231 kfree(fw_work); in _request_firmware_nowait()
1236 kfree_const(fw_work->name); in _request_firmware_nowait()
1237 kfree(fw_work); in _request_firmware_nowait()
1241 get_device(fw_work->device); in _request_firmware_nowait()
1242 INIT_WORK(&fw_work->work, request_firmware_work_func); in _request_firmware_nowait()
1243 schedule_work(&fw_work->work); in _request_firmware_nowait()