Lines Matching refs:fw
60 struct firmware *fw; in request_firmware() local
64 fw = kmem_alloc(sizeof(*fw), KM_SLEEP); in request_firmware()
80 fw->size = firmware_get_size(handle); in request_firmware()
81 fw->data = firmware_malloc(fw->size); in request_firmware()
84 ret = -firmware_read(handle, 0, fw->data, fw->size); in request_firmware()
90 *fwp = fw; in request_firmware()
93 fail1: firmware_free(fw->data, fw->size); in request_firmware()
95 kmem_free(fw, sizeof(*fw)); in request_firmware()
121 const struct firmware *fw; in request_firmware_work() local
125 ret = request_firmware(&fw, work->flw_name, work->flw_device); in request_firmware_work()
127 fw = NULL; in request_firmware_work()
130 (*work->flw_callback)(fw, work->flw_cookie); in request_firmware_work()
186 release_firmware(const struct firmware *fw) in release_firmware() argument
189 if (fw != NULL) { in release_firmware()
190 firmware_free(fw->data, fw->size); in release_firmware()
191 kmem_free(__UNCONST(fw), sizeof(*fw)); in release_firmware()