Lines Matching refs:dsp_code

23 short hpi_dsp_code_open(u32 adapter, void *os_data, struct dsp_code *dsp_code,  in hpi_dsp_code_open()  argument
72 dsp_code->pvt = kmalloc(sizeof(*dsp_code->pvt), GFP_KERNEL); in hpi_dsp_code_open()
73 if (!dsp_code->pvt) { in hpi_dsp_code_open()
78 dsp_code->pvt->dev = dev; in hpi_dsp_code_open()
79 dsp_code->pvt->firmware = firmware; in hpi_dsp_code_open()
80 dsp_code->header = header; in hpi_dsp_code_open()
81 dsp_code->block_length = header.size / sizeof(u32); in hpi_dsp_code_open()
82 dsp_code->word_count = sizeof(header) / sizeof(u32); in hpi_dsp_code_open()
88 dsp_code->block_length = 0; in hpi_dsp_code_open()
93 void hpi_dsp_code_close(struct dsp_code *dsp_code) in hpi_dsp_code_close() argument
96 release_firmware(dsp_code->pvt->firmware); in hpi_dsp_code_close()
97 kfree(dsp_code->pvt); in hpi_dsp_code_close()
101 void hpi_dsp_code_rewind(struct dsp_code *dsp_code) in hpi_dsp_code_rewind() argument
104 dsp_code->word_count = sizeof(struct code_header) / sizeof(u32); in hpi_dsp_code_rewind()
108 short hpi_dsp_code_read_word(struct dsp_code *dsp_code, u32 *pword) in hpi_dsp_code_read_word() argument
110 if (dsp_code->word_count + 1 > dsp_code->block_length) in hpi_dsp_code_read_word()
113 *pword = ((u32 *)(dsp_code->pvt->firmware->data))[dsp_code-> in hpi_dsp_code_read_word()
115 dsp_code->word_count++; in hpi_dsp_code_read_word()
121 struct dsp_code *dsp_code, u32 **ppblock) in hpi_dsp_code_read_block() argument
123 if (dsp_code->word_count + words_requested > dsp_code->block_length) in hpi_dsp_code_read_block()
127 ((u32 *)(dsp_code->pvt->firmware->data)) + in hpi_dsp_code_read_block()
128 dsp_code->word_count; in hpi_dsp_code_read_block()
129 dsp_code->word_count += words_requested; in hpi_dsp_code_read_block()