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()
344 reg_val_1 = 0x1 << port; in hns_dsaf_ge_srst_by_port()
348 0x1041041 : 0x2082082; in hns_dsaf_ge_srst_by_port()
365 reg_val_1 = 0x15540; in hns_dsaf_ge_srst_by_port()
366 reg_val_2 = AE_IS_VER1(dsaf_dev->dsaf_ver) ? 0x100 : 0x40; in hns_dsaf_ge_srst_by_port()
397 u32 reg_val = 0; in hns_ppe_srst_by_port()
433 reg_val = 0x100 << dsaf_dev->reset_offset; in hns_ppe_com_srst()
461 if (mac_id >= 0 && mac_id <= 3) in hns_mac_get_phy_if()
495 &hns_dsaf_acpi_dsm_guid, 0, in hns_mac_get_phy_if_acpi()
513 u32 val = 0; in hns_mac_get_sfp_prsnt()
526 return 0; in hns_mac_get_sfp_prsnt()
542 &hns_dsaf_acpi_dsm_guid, 0, in hns_mac_get_sfp_prsnt_acpi()
552 return 0; in hns_mac_get_sfp_prsnt_acpi()
559 * return 0 == success
564 0, /* mac 0 -> lane 0 */ in hns_mac_config_sds_loopback()
570 0, /* mac 6 -> lane 0 */ in hns_mac_config_sds_loopback()
573 #define RX_CSR(lane, reg) ((0x4080 + (reg) * 0x0002 + (lane) * 0x0200) * 2) in hns_mac_config_sds_loopback()
574 u64 reg_offset = RX_CSR(lane_id[mac_cb->mac_id], 0); in hns_mac_config_sds_loopback()
576 int sfp_prsnt = 0; in hns_mac_config_sds_loopback()
588 u32 origin = 0; in hns_mac_config_sds_loopback()
591 #define HILINK_ACCESS_SEL_CFG 0x40008 in hns_mac_config_sds_loopback()
599 HILINK_ACCESS_SEL_CFG, 0); in hns_mac_config_sds_loopback()
614 (mac_cb->mac_id <= 3 ? 0x00280000 : 0x00200000); in hns_mac_config_sds_loopback()
618 return 0; in hns_mac_config_sds_loopback()
627 obj_args[0].integer.type = ACPI_TYPE_INTEGER; in hns_mac_config_sds_loopback_acpi()
628 obj_args[0].integer.value = mac_cb->mac_id; in hns_mac_config_sds_loopback_acpi()
637 &hns_dsaf_acpi_dsm_guid, 0, in hns_mac_config_sds_loopback_acpi()
648 return 0; in hns_mac_config_sds_loopback_acpi()