Lines Matching refs:self
33 int hw_atl2_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops)
37 self->fw_ver_actual = hw_atl2_utils_get_fw_version(self);
39 if (hw_atl_utils_ver_match(HW_ATL2_FW_VER_1X, self->fw_ver_actual)) {
43 self->fw_ver_actual);
46 aq_pr_trace("Detect ATL2FW %x\n", self->fw_ver_actual);
47 self->aq_fw_ops = *fw_ops;
48 err = self->aq_fw_ops->init(self);
50 self->chip_features |= ATL_HW_CHIP_ANTIGUA;
55 static bool hw_atl2_mcp_boot_complete(struct aq_hw_s *self)
59 rbl_status = hw_atl2_mif_mcp_boot_reg_get(self);
64 if (hw_atl2_mif_host_req_int_get(self) & HW_ATL2_MCP_HOST_REQ_INT_READY)
70 int hw_atl2_utils_soft_reset(struct aq_hw_s *self)
77 hw_atl2_mif_host_req_int_clr(self, 0x01);
82 hw_atl2_mif_mcp_boot_reg_set(self, rbl_request);
85 err = readx_poll_timeout_atomic(hw_atl2_mif_mcp_boot_reg_get, self,
95 err = readx_poll_timeout_atomic(hw_atl2_mcp_boot_complete, self,
105 rbl_status = hw_atl2_mif_mcp_boot_reg_get(self);
113 if (hw_atl2_mif_host_req_int_get(self) &
120 if (self->aq_fw_ops) {
121 err = self->aq_fw_ops->init(self);