Lines Matching refs:fw
19 static bool fw_copy_to_prealloc_buf(struct firmware *fw, in fw_copy_to_prealloc_buf() argument
24 if (size < fw->size) in fw_copy_to_prealloc_buf()
26 memcpy(buf, fw->data, fw->size); in fw_copy_to_prealloc_buf()
47 bool firmware_request_builtin(struct firmware *fw, const char *name) in firmware_request_builtin() argument
51 if (!fw) in firmware_request_builtin()
56 fw->size = b_fw->size; in firmware_request_builtin()
57 fw->data = b_fw->data; in firmware_request_builtin()
86 bool firmware_request_builtin_buf(struct firmware *fw, const char *name, in firmware_request_builtin_buf() argument
89 if (!firmware_request_builtin(fw, name)) in firmware_request_builtin_buf()
92 return fw_copy_to_prealloc_buf(fw, buf, size); in firmware_request_builtin_buf()
95 bool firmware_is_builtin(const struct firmware *fw) in firmware_is_builtin() argument
100 if (fw->data == b_fw->data) in firmware_is_builtin()