Lines Matching refs:size

152 	uint32_t size;		/* Size in bytes */  member
180 uint32_t size; member
215 static uint32_t ape_host_view_addr_get(uint32_t bnxt_view_addr, uint32_t size) in ape_host_view_addr_get() argument
220 for (; region->size != 0; region++) { in ape_host_view_addr_get()
224 if (bnxt_view_addr >= (region->c_base + region->size)) in ape_host_view_addr_get()
227 if (size > (region->c_base + region->size - bnxt_view_addr)) { in ape_host_view_addr_get()
229 bnxt_view_addr, size); in ape_host_view_addr_get()
423 size_t size = 0; in ape_section_copy() local
440 size = ape_section_uncompress(section_data, in ape_section_copy()
444 if (size >= work_buff_size) { in ape_section_copy()
448 if (size < section->org_data_len) { in ape_section_copy()
451 section->org_data_len, size); in ape_section_copy()
459 size = section->org_data_len; in ape_section_copy()
462 checksum = CRC32(CRC32_INIT_VAL, (const char *)src, size); in ape_section_copy()
465 for (i = 0; i < size / sizeof(uint32_t); i++) in ape_section_copy()
474 dst = ape_host_view_addr_get(section->dest_addr, size); in ape_section_copy()
482 size = size / sizeof(uint32_t); in ape_section_copy()
483 memcpy32_helper(src, dst, size, INC_SRC_ADDR); in ape_section_copy()
494 uint32_t size = section->org_data_len; in ape_section_zero() local
501 dst = ape_host_view_addr_get(section->dest_addr, size); in ape_section_zero()
512 size = size / sizeof(uint32_t); in ape_section_zero()
513 memcpy32_helper((uintptr_t)&zero, dst, size, !INC_SRC_ADDR); in ape_section_zero()
587 size_t size = 0; in bnxt_crash_config() local
607 item->size = crash_len | BNXT_CRASH_INFO_VALID; in bnxt_crash_config()
618 item->size &= ~BNXT_CRASH_INFO_VALID; in bnxt_crash_config()
620 size = sizeof(struct nitro_crash_addr_info) / sizeof(uint32_t); in bnxt_crash_config()
623 memcpy32_helper(src, dst, size, INC_SRC_ADDR); in bnxt_crash_config()
626 item->size |= BNXT_CRASH_INFO_VALID; in bnxt_crash_config()
628 offsetof(struct nitro_crash_addr_item, size); in bnxt_crash_config()
629 bnxt_write32_multiple(dst, (uintptr_t)&item->size, 1, 1); in bnxt_crash_config()
638 uint32_t size = 0; in bnxt_load_fw() local
658 size = bnxt_src_image_info.bnxt_cfg_len; in bnxt_load_fw()
659 size = size / sizeof(uint32_t); in bnxt_load_fw()
660 memcpy32_helper(src, dst, size, INC_SRC_ADDR); in bnxt_load_fw()
664 size = bnxt_src_image_info.bnxt_bspd_cfg_len; in bnxt_load_fw()
667 size = size / sizeof(uint32_t); in bnxt_load_fw()
668 memcpy32_helper(src, dst, size, INC_SRC_ADDR); in bnxt_load_fw()