Lines Matching refs:cpu_to_le32
405 *(__le32 *)bytes = cpu_to_le32(v);
602 __le32 entries = cpu_to_le32(directory->num_entries);
606 __le32 offs = cpu_to_le32(directory->findex) +
607 (i * cpu_to_le32(directory->entry_size));
608 __le32 tab_type = cpu_to_le32(*((u32 *)&unirom[offs] + 8));
632 entries = cpu_to_le32(directory->num_entries);
633 entry_size = cpu_to_le32(directory->entry_size);
634 tab_size = cpu_to_le32(directory->findex) + (entries * entry_size);
648 __le32 idx = cpu_to_le32(*((int *)&unirom[adapter->file_prd_off] +
659 tab_size = cpu_to_le32(tab_desc->findex) +
660 (cpu_to_le32(tab_desc->entry_size) * (idx + 1));
665 offs = cpu_to_le32(tab_desc->findex) +
666 (cpu_to_le32(tab_desc->entry_size) * (idx));
669 data_size = cpu_to_le32(descr->findex) + cpu_to_le32(descr->size);
683 __le32 idx = cpu_to_le32(*((int *)&unirom[adapter->file_prd_off] +
694 tab_size = cpu_to_le32(tab_desc->findex) +
695 (cpu_to_le32(tab_desc->entry_size) * (idx + 1));
700 offs = cpu_to_le32(tab_desc->findex) +
701 (cpu_to_le32(tab_desc->entry_size) * (idx));
703 data_size = cpu_to_le32(descr->findex) + cpu_to_le32(descr->size);
728 entries = cpu_to_le32(ptab_descr->num_entries);
729 entry_size = cpu_to_le32(ptab_descr->entry_size);
730 tab_size = cpu_to_le32(ptab_descr->findex) + (entries * entry_size);
742 offs = cpu_to_le32(ptab_descr->findex) +
743 (i * cpu_to_le32(ptab_descr->entry_size));
744 flags = cpu_to_le32(*((int *)&unirom[offs] + NX_UNI_FLAGS_OFF));
745 file_chiprev = cpu_to_le32(*((int *)&unirom[offs] +
799 int idx = cpu_to_le32(*((int *)&unirom[adapter->file_prd_off] +
809 offs = cpu_to_le32(tab_desc->findex) +
810 (cpu_to_le32(tab_desc->entry_size) * idx);
821 offs = cpu_to_le32((nx_get_data_desc(adapter,
834 offs = cpu_to_le32((nx_get_data_desc(adapter,
845 return cpu_to_le32((nx_get_data_desc(adapter,
849 return cpu_to_le32(
866 ver_str = fw->data + cpu_to_le32(fw_data_desc->findex) +
867 cpu_to_le32(fw_data_desc->size) - 17;
883 return cpu_to_le32(*(u32 *)&fw->data[NX_FW_VERSION_OFFSET]);
893 bios_ver = cpu_to_le32(*((u32 *) (&fw->data[prd_off])
898 return cpu_to_le32(*(u32 *)&fw->data[NX_BIOS_VERSION_OFFSET]);
1086 val = cpu_to_le32(*(u32 *)&fw->data[NX_FW_MAGIC_OFFSET]);
1824 pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size);
1883 pdesc->buffer_length = cpu_to_le32(rds_ring->dma_size);