#include <linux/fs.h> /** * mod_firmware_load - load sound driver firmware * @fn: filename * @fp: return for the buffer. * * Load the firmware for a sound module (up to 128K) into a buffer. * The buffer is returned in *fp. It is allocated with vmalloc so is * virtually linear and not DMAable. The caller should free it with * vfree when finished. * * The length of the buffer is returned on a successful load, the * value zero on a failure. * * Caution: This API is not recommended. Firmware should be loaded via * request_firmware. */ static inline int mod_firmware_load(const char *fn, char **fp) { loff_t size; int err; err = kernel_read_file_from_path((char *)fn, (void **)fp, &size, 131072, READING_FIRMWARE); if (err < 0) return 0; return size; } i/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='f3b20313aef93f9cfda76fec2c05625f88510f18'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/drivers/usb/musb/musbhsdma.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/drivers/usb/musb/musbhsdma.h?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/drivers/usb/musb/musbhsdma.h?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/drivers/usb/musb/musbhsdma.h?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/drivers/usb/musb/musbhsdma.h'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='f3b20313aef93f9cfda76fec2c05625f88510f18'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>drivers</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>usb</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/musb?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>musb</a>/<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/musb/musbhsdma.h?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18'>musbhsdma.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/drivers/usb/musb/musbhsdma.h?h=nds-private-remove&id=f3b20313aef93f9cfda76fec2c05625f88510f18&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>