Lines Matching defs:block
487 struct snd_sof_blk_hdr *block;
495 block = (struct snd_sof_blk_hdr *)((u8 *)module + sizeof(*module));
501 if (remaining < sizeof(*block)) {
506 /* minus header size of block */
507 remaining -= sizeof(*block);
509 if (block->size == 0) {
511 "warning: block %d size zero\n", count);
513 block->type, block->offset);
517 switch (block->type) {
524 offset = block->offset;
525 bar = snd_sof_dsp_get_bar_index(sdev, block->type);
528 "error: no BAR mapping for block type 0x%x\n",
529 block->type);
534 dev_err(sdev->dev, "error: bad type 0x%x for block 0x%x\n",
535 block->type, count);
540 "block %d type 0x%x size 0x%x ==> offset 0x%x\n",
541 count, block->type, block->size, offset);
543 /* checking block->size to avoid unaligned access */
544 if (block->size % sizeof(u32)) {
545 dev_err(sdev->dev, "error: invalid block size 0x%x\n",
546 block->size);
550 block + 1, block->size);
552 if (remaining < block->size) {
557 /* minus body size of block */
558 remaining -= block->size;
559 /* next block */
560 block = (struct snd_sof_blk_hdr *)((u8 *)block + sizeof(*block)
561 + block->size);