Lines Matching refs:cpu_to_le32

291 	return cpu_to_le32(chk);  in p54u_lm87_chksum()
344 reg->addr = cpu_to_le32(P54U_DEV_BASE); in p54u_tx_net2280()
345 reg->val = cpu_to_le32(ISL38XX_DEV_INT_DATA); in p54u_tx_net2280()
526 hdr->fw_load_addr = cpu_to_le32(ISL38XX_DEV_FIRMWARE_ADDR); in p54u_upload_firmware_3887()
527 hdr->fw_length = cpu_to_le32(priv->fw->size); in p54u_upload_firmware_3887()
528 hdr->crc = cpu_to_le32(~crc32_le(~0, (void *)&hdr->fw_load_addr, in p54u_upload_firmware_3887()
569 *((__le32 *)buf) = cpu_to_le32(~crc32_le(~0, priv->fw->data, in p54u_upload_firmware_3887()
643 cpu_to_le32((u32)(unsigned long)addr), data);\ in p54u_upload_firmware_net2280()
651 cpu_to_le32((u32)(unsigned long)addr), &reg);\ in p54u_upload_firmware_net2280()
658 reg |= cpu_to_le32(P54U_BRG_POWER_DOWN); in p54u_upload_firmware_net2280()
659 reg &= cpu_to_le32(~P54U_BRG_POWER_UP); in p54u_upload_firmware_net2280()
665 reg |= cpu_to_le32(P54U_BRG_POWER_UP); in p54u_upload_firmware_net2280()
666 reg &= cpu_to_le32(~P54U_BRG_POWER_DOWN); in p54u_upload_firmware_net2280()
672 cpu_to_le32(NET2280_CLK_30Mhz | in p54u_upload_firmware_net2280()
679 cpu_to_le32(PCI_COMMAND_MEMORY | in p54u_upload_firmware_net2280()
683 cpu_to_le32(NET2280_BASE)); in p54u_upload_firmware_net2280()
686 reg |= cpu_to_le32(PCI_STATUS_REC_MASTER_ABORT); in p54u_upload_firmware_net2280()
693 cpu_to_le32(NET2280_CLEAR_NAK_OUT_PACKETS_MODE)); in p54u_upload_firmware_net2280()
695 cpu_to_le32(NET2280_CLEAR_NAK_OUT_PACKETS_MODE)); in p54u_upload_firmware_net2280()
698 cpu_to_le32(NET2280_BASE2)); in p54u_upload_firmware_net2280()
703 cpu_to_le32(PCI_COMMAND_MEMORY | in p54u_upload_firmware_net2280()
708 cpu_to_le32(P54U_DEV_BASE)); in p54u_upload_firmware_net2280()
712 cpu_to_le32(NET2280_PCI_INTA_INTERRUPT)); in p54u_upload_firmware_net2280()
718 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RESET); in p54u_upload_firmware_net2280()
719 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RAMBOOT); in p54u_upload_firmware_net2280()
720 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_CLKRUN); in p54u_upload_firmware_net2280()
725 reg |= cpu_to_le32(ISL38XX_CTRL_STAT_RESET); in p54u_upload_firmware_net2280()
730 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RESET); in p54u_upload_firmware_net2280()
755 cpu_to_le32(0xc0000f00)); in p54u_upload_firmware_net2280()
761 cpu_to_le32(1)); in p54u_upload_firmware_net2280()
765 cpu_to_le32(block_len)); in p54u_upload_firmware_net2280()
768 cpu_to_le32(offset)); in p54u_upload_firmware_net2280()
771 cpu_to_le32(NET2280_EPA_FIFO_PCI_ADDR)); in p54u_upload_firmware_net2280()
773 cpu_to_le32(block_len >> 2)); in p54u_upload_firmware_net2280()
775 cpu_to_le32(ISL38XX_DMA_MASTER_CONTROL_TRIGGER)); in p54u_upload_firmware_net2280()
781 if (!(reg & cpu_to_le32(ISL38XX_DMA_STATUS_DONE)) || in p54u_upload_firmware_net2280()
782 !(reg & cpu_to_le32(ISL38XX_DMA_STATUS_READY))) { in p54u_upload_firmware_net2280()
789 cpu_to_le32(NET2280_FIFO_FLUSH)); in p54u_upload_firmware_net2280()
798 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RESET); in p54u_upload_firmware_net2280()
799 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_CLKRUN); in p54u_upload_firmware_net2280()
800 reg |= cpu_to_le32(ISL38XX_CTRL_STAT_RAMBOOT); in p54u_upload_firmware_net2280()
805 reg |= cpu_to_le32(ISL38XX_CTRL_STAT_RESET); in p54u_upload_firmware_net2280()
808 reg &= cpu_to_le32(~ISL38XX_CTRL_STAT_RESET); in p54u_upload_firmware_net2280()
818 cpu_to_le32(ISL38XX_INT_IDENT_INIT)); in p54u_upload_firmware_net2280()
821 cpu_to_le32(NET2280_PCI_INTA_INTERRUPT)); in p54u_upload_firmware_net2280()
824 cpu_to_le32(NET2280_PCI_INTA_INTERRUPT_ENABLE | in p54u_upload_firmware_net2280()
828 cpu_to_le32(ISL38XX_DEV_INT_RESET)); in p54u_upload_firmware_net2280()
839 if (!(reg & cpu_to_le32(ISL38XX_INT_IDENT_INIT))) in p54u_upload_firmware_net2280()
844 cpu_to_le32(NET2280_PCI_INTA_INTERRUPT)); in p54u_upload_firmware_net2280()