Lines Matching refs:htonl
81 fw_dump->fw_major_version = htonl(ha->fw_major_version); in qla2xxx_prep_dump()
82 fw_dump->fw_minor_version = htonl(ha->fw_minor_version); in qla2xxx_prep_dump()
83 fw_dump->fw_subminor_version = htonl(ha->fw_subminor_version); in qla2xxx_prep_dump()
84 fw_dump->fw_attributes = htonl(ha->fw_attributes); in qla2xxx_prep_dump()
86 fw_dump->vendor = htonl(ha->pdev->vendor); in qla2xxx_prep_dump()
87 fw_dump->device = htonl(ha->pdev->device); in qla2xxx_prep_dump()
88 fw_dump->subsystem_vendor = htonl(ha->pdev->subsystem_vendor); in qla2xxx_prep_dump()
89 fw_dump->subsystem_device = htonl(ha->pdev->subsystem_device); in qla2xxx_prep_dump()
297 *buf++ = htonl(RD_REG_DWORD(dmp_reg)); in qla24xx_read_window()
484 fcec->type = htonl(DUMP_CHAIN_FCE); in qla25xx_copy_fce()
485 fcec->chain_size = htonl(sizeof(struct qla2xxx_fce_chain) + in qla25xx_copy_fce()
487 fcec->size = htonl(fce_calc_size(ha->fce_bufs)); in qla25xx_copy_fce()
488 fcec->addr_l = htonl(LSD(ha->fce_dma)); in qla25xx_copy_fce()
489 fcec->addr_h = htonl(MSD(ha->fce_dma)); in qla25xx_copy_fce()
493 *iter_reg++ = htonl(ha->fce_mb[cnt]); in qla25xx_copy_fce()
525 q->type = htonl(DUMP_CHAIN_QUEUE); in qla2xxx_copy_atioqueues()
526 q->chain_size = htonl( in qla2xxx_copy_atioqueues()
534 qh->queue = htonl(TYPE_ATIO_QUEUE); in qla2xxx_copy_atioqueues()
535 qh->number = htonl(que); in qla2xxx_copy_atioqueues()
536 qh->size = htonl(aqp->length * sizeof(request_t)); in qla2xxx_copy_atioqueues()
569 q->type = htonl(DUMP_CHAIN_QUEUE); in qla25xx_copy_mqueues()
570 q->chain_size = htonl( in qla25xx_copy_mqueues()
578 qh->queue = htonl(TYPE_REQUEST_QUEUE); in qla25xx_copy_mqueues()
579 qh->number = htonl(que); in qla25xx_copy_mqueues()
580 qh->size = htonl(req->length * sizeof(request_t)); in qla25xx_copy_mqueues()
597 q->type = htonl(DUMP_CHAIN_QUEUE); in qla25xx_copy_mqueues()
598 q->chain_size = htonl( in qla25xx_copy_mqueues()
606 qh->queue = htonl(TYPE_RESPONSE_QUEUE); in qla25xx_copy_mqueues()
607 qh->number = htonl(que); in qla25xx_copy_mqueues()
608 qh->size = htonl(rsp->length * sizeof(response_t)); in qla25xx_copy_mqueues()
632 mq->type = htonl(DUMP_CHAIN_MQ); in qla25xx_copy_mq()
633 mq->chain_size = htonl(sizeof(struct qla2xxx_mq_chain)); in qla25xx_copy_mq()
637 mq->count = htonl(que_cnt); in qla25xx_copy_mq()
642 htonl(RD_REG_DWORD(®->isp25mq.req_q_in)); in qla25xx_copy_mq()
644 htonl(RD_REG_DWORD(®->isp25mq.req_q_out)); in qla25xx_copy_mq()
646 htonl(RD_REG_DWORD(®->isp25mq.rsp_q_in)); in qla25xx_copy_mq()
648 htonl(RD_REG_DWORD(®->isp25mq.rsp_q_out)); in qla25xx_copy_mq()
1091 fw->host_status = htonl(RD_REG_DWORD(®->host_status)); in qla24xx_fw_dump()
1102 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg)); in qla24xx_fw_dump()
1112 fw->shadow_reg[0] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla24xx_fw_dump()
1115 fw->shadow_reg[1] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla24xx_fw_dump()
1118 fw->shadow_reg[2] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla24xx_fw_dump()
1121 fw->shadow_reg[3] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla24xx_fw_dump()
1124 fw->shadow_reg[4] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla24xx_fw_dump()
1127 fw->shadow_reg[5] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla24xx_fw_dump()
1130 fw->shadow_reg[6] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla24xx_fw_dump()
1174 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla24xx_fw_dump()
1180 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla24xx_fw_dump()
1186 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla24xx_fw_dump()
1286 ha->fw_dump->version |= htonl(DUMP_CHAIN_VARIANT); in qla24xx_fw_dump()
1287 *last_chain |= htonl(DUMP_CHAIN_LAST); in qla24xx_fw_dump()
1344 ha->fw_dump->version = htonl(2); in qla25xx_fw_dump()
1346 fw->host_status = htonl(RD_REG_DWORD(®->host_status)); in qla25xx_fw_dump()
1364 fw->pcie_regs[0] = htonl(RD_REG_DWORD(dmp_reg)); in qla25xx_fw_dump()
1366 fw->pcie_regs[1] = htonl(RD_REG_DWORD(dmp_reg)); in qla25xx_fw_dump()
1368 fw->pcie_regs[2] = htonl(RD_REG_DWORD(dmp_reg)); in qla25xx_fw_dump()
1369 fw->pcie_regs[3] = htonl(RD_REG_DWORD(®->iobase_window)); in qla25xx_fw_dump()
1377 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg)); in qla25xx_fw_dump()
1387 fw->shadow_reg[0] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1390 fw->shadow_reg[1] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1393 fw->shadow_reg[2] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1396 fw->shadow_reg[3] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1399 fw->shadow_reg[4] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1402 fw->shadow_reg[5] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1405 fw->shadow_reg[6] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1408 fw->shadow_reg[7] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1411 fw->shadow_reg[8] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1414 fw->shadow_reg[9] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1417 fw->shadow_reg[10] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla25xx_fw_dump()
1421 fw->risc_io_reg = htonl(RD_REG_DWORD(®->iobase_window)); in qla25xx_fw_dump()
1490 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla25xx_fw_dump()
1496 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla25xx_fw_dump()
1502 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla25xx_fw_dump()
1610 ha->fw_dump->version |= htonl(DUMP_CHAIN_VARIANT); in qla25xx_fw_dump()
1611 *last_chain |= htonl(DUMP_CHAIN_LAST); in qla25xx_fw_dump()
1669 fw->host_status = htonl(RD_REG_DWORD(®->host_status)); in qla81xx_fw_dump()
1687 fw->pcie_regs[0] = htonl(RD_REG_DWORD(dmp_reg)); in qla81xx_fw_dump()
1689 fw->pcie_regs[1] = htonl(RD_REG_DWORD(dmp_reg)); in qla81xx_fw_dump()
1691 fw->pcie_regs[2] = htonl(RD_REG_DWORD(dmp_reg)); in qla81xx_fw_dump()
1692 fw->pcie_regs[3] = htonl(RD_REG_DWORD(®->iobase_window)); in qla81xx_fw_dump()
1700 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg)); in qla81xx_fw_dump()
1710 fw->shadow_reg[0] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1713 fw->shadow_reg[1] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1716 fw->shadow_reg[2] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1719 fw->shadow_reg[3] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1722 fw->shadow_reg[4] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1725 fw->shadow_reg[5] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1728 fw->shadow_reg[6] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1731 fw->shadow_reg[7] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1734 fw->shadow_reg[8] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1737 fw->shadow_reg[9] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1740 fw->shadow_reg[10] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla81xx_fw_dump()
1744 fw->risc_io_reg = htonl(RD_REG_DWORD(®->iobase_window)); in qla81xx_fw_dump()
1813 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla81xx_fw_dump()
1819 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla81xx_fw_dump()
1825 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla81xx_fw_dump()
1936 ha->fw_dump->version |= htonl(DUMP_CHAIN_VARIANT); in qla81xx_fw_dump()
1937 *last_chain |= htonl(DUMP_CHAIN_LAST); in qla81xx_fw_dump()
1994 fw->host_status = htonl(RD_REG_DWORD(®->host_status)); in qla83xx_fw_dump()
2032 fw->pcie_regs[0] = htonl(RD_REG_DWORD(dmp_reg)); in qla83xx_fw_dump()
2034 fw->pcie_regs[1] = htonl(RD_REG_DWORD(dmp_reg)); in qla83xx_fw_dump()
2036 fw->pcie_regs[2] = htonl(RD_REG_DWORD(dmp_reg)); in qla83xx_fw_dump()
2037 fw->pcie_regs[3] = htonl(RD_REG_DWORD(®->iobase_window)); in qla83xx_fw_dump()
2045 fw->host_reg[cnt] = htonl(RD_REG_DWORD(dmp_reg)); in qla83xx_fw_dump()
2055 fw->shadow_reg[0] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2058 fw->shadow_reg[1] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2061 fw->shadow_reg[2] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2064 fw->shadow_reg[3] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2067 fw->shadow_reg[4] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2070 fw->shadow_reg[5] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2073 fw->shadow_reg[6] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2076 fw->shadow_reg[7] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2079 fw->shadow_reg[8] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2082 fw->shadow_reg[9] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2085 fw->shadow_reg[10] = htonl(RD_REG_DWORD(®->iobase_sdata)); in qla83xx_fw_dump()
2089 fw->risc_io_reg = htonl(RD_REG_DWORD(®->iobase_window)); in qla83xx_fw_dump()
2190 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla83xx_fw_dump()
2196 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla83xx_fw_dump()
2202 *iter_reg++ = htonl(RD_REG_DWORD(dmp_reg)); in qla83xx_fw_dump()
2447 ha->fw_dump->version |= htonl(DUMP_CHAIN_VARIANT); in qla83xx_fw_dump()
2448 *last_chain |= htonl(DUMP_CHAIN_LAST); in qla83xx_fw_dump()