Searched refs:firmware_buf (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/staging/rtl8192u/
H A Dr819xU_firmware.c252 if (fw_entry->size > sizeof(pfirmware->firmware_buf)) { init_firmware()
258 memcpy(pfirmware->firmware_buf, fw_entry->data, fw_entry->size); init_firmware()
259 mapped_file = pfirmware->firmware_buf; init_firmware()
262 memset(pfirmware->firmware_buf, 0, 128); init_firmware()
263 memcpy(&pfirmware->firmware_buf[128], fw_entry->data, fw_entry->size); init_firmware()
264 mapped_file = pfirmware->firmware_buf; init_firmware()
270 mapped_file = pfirmware->firmware_buf; init_firmware()
H A Dr8192U.h423 u8 firmware_buf[RTL8190_MAX_FIRMWARE_CODE_SIZE]; member in struct:_rt_firmware
/linux-4.4.14/drivers/base/
H A Dfirmware_class.c116 /* firmware_buf instance will be added into the below list */
137 struct firmware_buf { struct
166 #define to_fwbuf(d) container_of(d, struct firmware_buf, ref)
179 static struct firmware_buf *__allocate_fw_buf(const char *fw_name, __allocate_fw_buf()
182 struct firmware_buf *buf; __allocate_fw_buf()
206 static struct firmware_buf *__fw_lookup_buf(const char *fw_name) __fw_lookup_buf()
208 struct firmware_buf *tmp; __fw_lookup_buf()
219 struct firmware_buf **buf) fw_lookup_and_allocate_buf()
221 struct firmware_buf *tmp; fw_lookup_and_allocate_buf()
244 struct firmware_buf *buf = to_fwbuf(ref);
268 static void fw_free_buf(struct firmware_buf *buf) fw_free_buf()
294 static int fw_read_file_contents(struct file *file, struct firmware_buf *fw_buf) fw_read_file_contents()
326 struct firmware_buf *buf) fw_get_filesystem_firmware()
387 static void fw_set_page_data(struct firmware_buf *buf, struct firmware *fw) fw_set_page_data()
470 struct firmware_buf *buf;
479 static void __fw_load_abort(struct firmware_buf *buf) __fw_load_abort()
495 struct firmware_buf *buf = fw_priv->buf; fw_load_abort()
515 struct firmware_buf, fw_shutdown_notify()
617 static int fw_map_pages_buf(struct firmware_buf *buf) fw_map_pages_buf()
647 struct firmware_buf *fw_buf; firmware_loading_store()
724 struct firmware_buf *buf; firmware_data_read()
764 struct firmware_buf *buf = fw_priv->buf; fw_realloc_buffer()
819 struct firmware_buf *buf; firmware_data_write()
919 struct firmware_buf *buf = fw_priv->buf; _request_firmware_load()
984 struct firmware_buf *buf; kill_requests_without_uevent()
985 struct firmware_buf *next; kill_requests_without_uevent()
1015 /* wait until the shared firmware_buf becomes ready (or error) */ sync_cached_firmware_buf()
1016 static int sync_cached_firmware_buf(struct firmware_buf *buf) sync_cached_firmware_buf()
1034 /* prepare firmware and firmware_buf structs;
1043 struct firmware_buf *buf; _request_firmware_prepare()
1082 struct firmware_buf *buf = fw->priv; assign_firmware_buf()
1376 static struct firmware_buf *fw_lookup_buf(const char *fw_name) fw_lookup_buf()
1378 struct firmware_buf *tmp; fw_lookup_buf()
1401 struct firmware_buf *buf; uncache_firmware()
/linux-4.4.14/drivers/net/usb/
H A Dkaweth.c243 __u8 *firmware_buf; member in struct:kaweth_device
411 memcpy(kaweth->firmware_buf, fw->data, fw->size); kaweth_download_firmware()
415 kaweth->firmware_buf[2] = (data_len & 0xFF) - 7; kaweth_download_firmware()
416 kaweth->firmware_buf[3] = data_len >> 8; kaweth_download_firmware()
417 kaweth->firmware_buf[4] = type; kaweth_download_firmware()
418 kaweth->firmware_buf[5] = interrupt; kaweth_download_firmware()
420 netdev_dbg(kaweth->net, "High: %i, Low:%i\n", kaweth->firmware_buf[3], kaweth_download_firmware()
421 kaweth->firmware_buf[2]); kaweth_download_firmware()
425 kaweth->firmware_buf, kaweth); kaweth_download_firmware()
434 (void *)kaweth->firmware_buf, kaweth_download_firmware()
445 kaweth->firmware_buf[0] = 0xB6; kaweth_trigger_firmware()
446 kaweth->firmware_buf[1] = 0xC3; kaweth_trigger_firmware()
447 kaweth->firmware_buf[2] = 0x01; kaweth_trigger_firmware()
448 kaweth->firmware_buf[3] = 0x00; kaweth_trigger_firmware()
449 kaweth->firmware_buf[4] = 0x06; kaweth_trigger_firmware()
450 kaweth->firmware_buf[5] = interrupt; kaweth_trigger_firmware()
451 kaweth->firmware_buf[6] = 0x00; kaweth_trigger_firmware()
452 kaweth->firmware_buf[7] = 0x00; kaweth_trigger_firmware()
462 (void *)kaweth->firmware_buf, kaweth_trigger_firmware()
1050 kaweth->firmware_buf = (__u8 *)__get_free_page(GFP_KERNEL); kaweth_probe()
1096 free_page((unsigned long)kaweth->firmware_buf); kaweth_probe()
/linux-4.4.14/drivers/media/usb/gspca/
H A Dvicam.c243 u8 *firmware_buf; sd_init() local
252 firmware_buf = kmalloc(PAGE_SIZE, GFP_KERNEL); sd_init()
253 if (!firmware_buf) { sd_init()
258 memcpy(firmware_buf, rec->data, be16_to_cpu(rec->len)); sd_init()
259 ret = vicam_control_msg(gspca_dev, 0xff, 0, 0, firmware_buf, sd_init()
265 kfree(firmware_buf); sd_init()
/linux-4.4.14/drivers/staging/rtl8723au/hal/
H A Drtl8723a_hal_init.c203 u8 *firmware_buf = NULL; rtl8723a_FirmwareDownload() local
251 firmware_buf = kmemdup(fw->data, fw->size, GFP_KERNEL); rtl8723a_FirmwareDownload()
254 if (!firmware_buf) { rtl8723a_FirmwareDownload()
258 buf = firmware_buf; rtl8723a_FirmwareDownload()
261 pFwHdr = (struct rt_8723a_firmware_hdr *)firmware_buf; rtl8723a_FirmwareDownload()
327 kfree(firmware_buf); rtl8723a_FirmwareDownload()

Completed in 526 milliseconds