Lines Matching refs:dword
119 static void hermon_flash_cfi_byte(uint8_t *ch, uint32_t dword, int i);
120 static void hermon_flash_cfi_dword(uint32_t *dword, uint8_t *ch, int i);
1577 /* Write the sector, one dword at a time */
1677 uint32_t dword;
1678 } dword;
1771 * Our lowest write granularity on SPI is a dword.
1773 * dword that contains this byte, modify this byte,
1774 * and write the dword back out.
1777 /* Determine dword offset and byte offset within the dword */
1784 /* Read in dword */
1785 if ((status = hermon_flash_read_quadlet(state, &dword.dword,
1790 dword.bytes[byte_offset] = data;
1792 /* Write modified dword back out */
1794 dword.dword);
2749 hermon_flash_cfi_byte(uint8_t *ch, uint32_t dword, int i)
2751 ch[i] = (uint8_t)((dword & 0xFF000000) >> 24);
2752 ch[i+1] = (uint8_t)((dword & 0x00FF0000) >> 16);
2753 ch[i+2] = (uint8_t)((dword & 0x0000FF00) >> 8);
2754 ch[i+3] = (uint8_t)((dword & 0x000000FF));
2758 hermon_flash_cfi_dword(uint32_t *dword, uint8_t *ch, int i)
2760 *dword = (uint32_t)