Lines Matching +full:0 +full:x00280000

12 	HNS_OP_RESET_FUNC               = 0x1,
13 HNS_OP_SERDES_LP_FUNC = 0x2,
14 HNS_OP_LED_SET_FUNC = 0x3,
15 HNS_OP_GET_PORT_TYPE_FUNC = 0x4,
16 HNS_OP_GET_SFP_STAT_FUNC = 0x5,
17 HNS_OP_LOCATE_LED_SET_FUNC = 0x6,
21 HNS_DSAF_RESET_FUNC = 0x1,
22 HNS_PPE_RESET_FUNC = 0x2,
23 HNS_XGE_RESET_FUNC = 0x4,
24 HNS_GE_RESET_FUNC = 0x5,
25 HNS_DSAF_CHN_RESET_FUNC = 0x6,
26 HNS_ROCE_RESET_FUNC = 0x7,
30 GUID_INIT(0x1A85AA1A, 0xE293, 0x415E,
31 0x8E, 0x28, 0x8D, 0x69, 0x0A, 0x0F, 0x82, 0x0A);
43 u32 ret = 0; in dsaf_read_sub()
64 obj_args[0].integer.type = ACPI_TYPE_INTEGER; in hns_dsaf_acpi_ledctrl_by_port()
65 obj_args[0].integer.value = link; in hns_dsaf_acpi_ledctrl_by_port()
76 &hns_dsaf_acpi_dsm_guid, 0, op_type, &argv4); in hns_dsaf_acpi_ledctrl_by_port()
93 obj_args[0].integer.type = ACPI_TYPE_INTEGER; in hns_dsaf_acpi_locate_ledctrl_by_port()
94 obj_args[0].integer.value = locate; in hns_dsaf_acpi_locate_ledctrl_by_port()
103 &hns_dsaf_acpi_dsm_guid, 0, op_type, &argv4); in hns_dsaf_acpi_locate_ledctrl_by_port()
116 int speed_reg = 0; in hns_cpld_set_led()
146 value = (mac_cb->cpld_led_value) & (0x1 << DSAF_LED_ANCHOR_B); in hns_cpld_set_led()
186 0, mac_cb->mac_id, 0); in cpld_led_reset_acpi()
192 u32 val = 0; in cpld_set_led_id()
196 return 0; in cpld_set_led_id()
221 return 0; in cpld_set_led_id()
245 return 0; in cpld_set_led_id_acpi()
256 obj_args[0].integer.type = ACPI_TYPE_INTEGER; in hns_dsaf_acpi_srst_by_port()
257 obj_args[0].integer.value = port_type; in hns_dsaf_acpi_srst_by_port()
268 &hns_dsaf_acpi_dsm_guid, 0, op_type, &argv4); in hns_dsaf_acpi_srst_by_port()
299 0, dereset); in hns_dsaf_rst_acpi()
305 u32 reg_val = 0; in hns_dsaf_xge_srst_by_port()
312 reg_val |= 0x2082082 << dsaf_dev->mac_cb[port]->port_rst_off; in hns_dsaf_xge_srst_by_port()
389 HNS_ROCE_RESET_FUNC, 0, dereset); in hns_dsaf_roce_srst_acpi()
407 reg_val_1 = 0x1 << port; in hns_dsaf_ge_srst_by_port()
411 0x1041041 : 0x2082082; in hns_dsaf_ge_srst_by_port()
428 reg_val_1 = 0x15540; in hns_dsaf_ge_srst_by_port()
429 reg_val_2 = AE_IS_VER1(dsaf_dev->dsaf_ver) ? 0x100 : 0x40; in hns_dsaf_ge_srst_by_port()
460 u32 reg_val = 0; in hns_ppe_srst_by_port()
496 reg_val = 0x100 << dsaf_dev->reset_offset; in hns_ppe_com_srst()
524 if (mac_id >= 0 && mac_id <= 3) in hns_mac_get_phy_if()
558 &hns_dsaf_acpi_dsm_guid, 0, in hns_mac_get_phy_if_acpi()
576 u32 val = 0; in hns_mac_get_sfp_prsnt()
589 return 0; in hns_mac_get_sfp_prsnt()
605 &hns_dsaf_acpi_dsm_guid, 0, in hns_mac_get_sfp_prsnt_acpi()
615 return 0; in hns_mac_get_sfp_prsnt_acpi()
622 * return 0 == success
627 0, /* mac 0 -> lane 0 */ in hns_mac_config_sds_loopback()
633 0, /* mac 6 -> lane 0 */ in hns_mac_config_sds_loopback()
636 #define RX_CSR(lane, reg) ((0x4080 + (reg) * 0x0002 + (lane) * 0x0200) * 2) in hns_mac_config_sds_loopback()
637 u64 reg_offset = RX_CSR(lane_id[mac_cb->mac_id], 0); in hns_mac_config_sds_loopback()
639 int sfp_prsnt = 0; in hns_mac_config_sds_loopback()
651 u32 origin = 0; in hns_mac_config_sds_loopback()
654 #define HILINK_ACCESS_SEL_CFG 0x40008 in hns_mac_config_sds_loopback()
662 HILINK_ACCESS_SEL_CFG, 0); in hns_mac_config_sds_loopback()
677 (mac_cb->mac_id <= 3 ? 0x00280000 : 0x00200000); in hns_mac_config_sds_loopback()
681 return 0; in hns_mac_config_sds_loopback()
690 obj_args[0].integer.type = ACPI_TYPE_INTEGER; in hns_mac_config_sds_loopback_acpi()
691 obj_args[0].integer.value = mac_cb->mac_id; in hns_mac_config_sds_loopback_acpi()
700 &hns_dsaf_acpi_dsm_guid, 0, in hns_mac_config_sds_loopback_acpi()
711 return 0; in hns_mac_config_sds_loopback_acpi()