Lines Matching refs:pw
589 u16 *pw = (u16 *)cfg - 1; in chk_cfg() local
603 type = le16_to_cpu(*pw--); in chk_cfg()
604 size = le16_to_cpu(*pw--); in chk_cfg()
613 *flash_ver = le32_to_cpu(*(u32 *)(pw - 1)); in chk_cfg()
616 pw -= size / sizeof(u16); in chk_cfg()
669 u16 *pw; in calc_fi_checksum() local
672 pw = (u16 *)((u8 *)fi + fc->fi_hdr_len), in calc_fi_checksum()
675 len--, pw++) in calc_fi_checksum()
676 cksum = cksum + le16_to_cpu(*pw); in calc_fi_checksum()
1044 u16 *pw; in esas2r_read_flash_rev() local
1051 pw = (u16 *)(bytes + sz); in esas2r_read_flash_rev()
1057 while (pw >= pwstart) { in esas2r_read_flash_rev()
1058 pw--; in esas2r_read_flash_rev()
1059 type = le16_to_cpu(*pw); in esas2r_read_flash_rev()
1060 pw--; in esas2r_read_flash_rev()
1061 size = le16_to_cpu(*pw); in esas2r_read_flash_rev()
1062 pw -= size / 2; in esas2r_read_flash_rev()
1066 || pw < pwstart) in esas2r_read_flash_rev()
1070 a->flash_ver = le32_to_cpu(*(u32 *)pw); in esas2r_read_flash_rev()