Lines Matching defs:sect
440 int sect;
489 for (sect = 0; sect < le32toh(fileheader->nsections); sect++) {
490 if (txp_download_fw_section(sc, secthead, sect))
545 const struct txp_fw_section_header *sect, int sectnum)
555 if (sect->nbytes == 0)
559 rseg = ((const uint8_t *)sect) - ((const uint8_t *)tc990image);
566 rseg += le32toh(sect->nbytes);
573 if (txp_dma_malloc(sc, le32toh(sect->nbytes), &dma, 0)) {
578 memcpy(dma.dma_vaddr, ((const uint8_t *)sect) + sizeof(*sect),
579 le32toh(sect->nbytes));
587 m.m_len = le32toh(sect->nbytes);
591 csum = in_cksum(&m, le32toh(sect->nbytes));
592 if (csum != sect->cksum) {
594 sectnum, sect->cksum, csum);
603 WRITE_REG(sc, TXP_H2A_1, le32toh(sect->nbytes));
604 WRITE_REG(sc, TXP_H2A_2, le32toh(sect->cksum));
605 WRITE_REG(sc, TXP_H2A_3, le32toh(sect->addr));