Lines Matching refs:sect
602 int sect;
654 for (sect = 0; sect < le32toh(fileheader->nsections); sect++) {
655 if ((error = txp_download_fw_section(sc, secthead, sect)) != 0)
707 struct txp_fw_section_header *sect, int sectnum)
720 if (le32toh(sect->nbytes) == 0)
724 rseg = ((uint8_t *)sect) - ((uint8_t *)tc990image);
732 rseg += le32toh(sect->nbytes);
745 0, &sec_map, (void **)&sec_buf, le32toh(sect->nbytes), &sec_paddr);
749 bcopy(((uint8_t *)sect) + sizeof(*sect), sec_buf,
750 le32toh(sect->nbytes));
757 m.m_len = le32toh(sect->nbytes);
760 csum = in_cksum(&m, le32toh(sect->nbytes));
761 if (csum != sect->cksum) {
764 sectnum, le16toh(sect->cksum), csum);
771 WRITE_REG(sc, TXP_H2A_1, le32toh(sect->nbytes));
773 WRITE_REG(sc, TXP_H2A_2, le16toh(sect->cksum));
775 WRITE_REG(sc, TXP_H2A_3, le32toh(sect->addr));