| /freebsd-13.1/sys/dev/igc/ |
| H A D | igc_phy.c | 32 phy->ops.read_reg = igc_null_read_reg; in igc_init_phy_ops_generic() 141 if (!phy->ops.read_reg) in igc_get_phy_id() 144 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id() 150 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id() 307 ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, in igc_phy_setup_autoneg() 666 if (!hw->phy.ops.read_reg) in igc_set_d3_lplu_state_generic() 685 ret_val = phy->ops.read_reg(hw, in igc_set_d3_lplu_state_generic() 698 ret_val = phy->ops.read_reg(hw, in igc_set_d3_lplu_state_generic() 774 if (!hw->phy.ops.read_reg) in igc_wait_autoneg() 813 if (!hw->phy.ops.read_reg) in igc_phy_has_link_generic() [all …]
|
| H A D | igc_mac.c | 731 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in igc_config_fc_after_link_up_generic() 734 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in igc_config_fc_after_link_up_generic() 749 ret_val = hw->phy.ops.read_reg(hw, PHY_AUTONEG_ADV, in igc_config_fc_after_link_up_generic() 753 ret_val = hw->phy.ops.read_reg(hw, PHY_LP_ABILITY, in igc_config_fc_after_link_up_generic()
|
| H A D | igc_api.c | 456 if (hw->phy.ops.read_reg) in igc_read_phy_reg() 457 return hw->phy.ops.read_reg(hw, offset, data); in igc_read_phy_reg()
|
| H A D | igc_hw.h | 388 s32 (*read_reg)(struct igc_hw *, u32, u16 *); member
|
| /freebsd-13.1/sys/dev/e1000/ |
| H A D | e1000_phy.c | 87 phy->ops.read_reg = e1000_null_read_reg; in e1000_init_phy_ops_generic() 234 if (!phy->ops.read_reg) in e1000_get_phy_id() 1443 ret_val = phy->ops.read_reg(hw, in e1000_copper_link_setup_igp() 2096 if (!hw->phy.ops.read_reg) in e1000_set_d3_lplu_state_generic() 2115 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_generic() 2128 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_generic() 2271 ret_val = phy->ops.read_reg(hw, offset, &data); in e1000_check_polarity_igp() 2329 if (!hw->phy.ops.read_reg) in e1000_wait_autoneg() 2368 if (!hw->phy.ops.read_reg) in e1000_phy_has_link_generic() 2836 if (!hw->phy.ops.read_reg) in e1000_phy_sw_reset_generic() [all …]
|
| H A D | e1000_82541.c | 104 phy->ops.read_reg = e1000_read_phy_reg_igp; in e1000_init_phy_params_82541() 392 ret_val = hw->phy.ops.read_reg(hw, IGP01E1000_GMII_FIFO, in e1000_init_hw_82541() 467 ret_val = phy->ops.read_reg(hw, PHY_AUTONEG_EXP, &data); in e1000_get_link_up_info_82541() 474 ret_val = phy->ops.read_reg(hw, PHY_LP_ABILITY, &data); in e1000_get_link_up_info_82541() 706 ret_val = phy->ops.read_reg(hw, in e1000_config_dsp_after_link_change_82541() 736 ret_val = phy->ops.read_reg(hw, PHY_1000T_STATUS, in e1000_config_dsp_after_link_change_82541() 763 ret_val = phy->ops.read_reg(hw, 0x2F5B, in e1000_config_dsp_after_link_change_82541() 780 ret_val = phy->ops.read_reg(hw, in e1000_config_dsp_after_link_change_82541() 981 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_82541() 994 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_82541() [all …]
|
| H A D | e1000_80003es2lan.c | 120 phy->ops.read_reg = e1000_read_phy_reg_gg82563_80003es2lan; in e1000_init_phy_params_80003es2lan() 598 if (!(hw->phy.ops.read_reg)) in e1000_phy_force_speed_duplex_80003es2lan() 615 ret_val = hw->phy.ops.read_reg(hw, PHY_CONTROL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan() 654 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_MAC_SPEC_CTRL, in e1000_phy_force_speed_duplex_80003es2lan() 693 if (!(hw->phy.ops.read_reg)) in e1000_get_cable_length_80003es2lan() 997 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_SPEC_CTRL, &data); in e1000_copper_link_setup_gg82563_80003es2lan() 1083 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, in e1000_copper_link_setup_gg82563_80003es2lan() 1230 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, in e1000_cfg_kmrn_10_100_80003es2lan() 1235 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, in e1000_cfg_kmrn_10_100_80003es2lan() 1281 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, in e1000_cfg_kmrn_1000_80003es2lan() [all …]
|
| H A D | e1000_82571.c | 124 phy->ops.read_reg = e1000_read_phy_reg_igp; in e1000_init_phy_params_82571() 137 phy->ops.read_reg = e1000_read_phy_reg_m88; in e1000_init_phy_params_82571() 152 phy->ops.read_reg = e1000_read_phy_reg_bm2; in e1000_init_phy_params_82571() 484 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id_82571() 490 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id_82571() 879 if (!(phy->ops.read_reg)) in e1000_set_d0_lplu_state_82571() 894 ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d0_lplu_state_82571() 913 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82571() 926 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82571() 1392 ret_val = hw->phy.ops.read_reg(hw, E1000_RECEIVE_ERROR_COUNTER, in e1000_check_phy_82574() [all …]
|
| H A D | e1000_82540.c | 83 phy->ops.read_reg = e1000_read_phy_reg_m88; in e1000_init_phy_params_82540() 431 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, in e1000_setup_copper_link_82540() 540 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_PAGE_SELECT, in e1000_set_vco_speed_82540() 549 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); in e1000_set_vco_speed_82540() 564 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); in e1000_set_vco_speed_82540()
|
| H A D | e1000_ich8lan.c | 468 phy->ops.read_reg = e1000_read_phy_reg_hv; in e1000_init_phy_params_pchlan() 563 phy->ops.read_reg = e1000_read_phy_reg_igp; in e1000_init_phy_params_ich8lan() 578 phy->ops.read_reg = e1000_read_phy_reg_bm; in e1000_init_phy_params_ich8lan() 618 phy->ops.read_reg = e1000_read_phy_reg_bm; in e1000_init_phy_params_ich8lan() 2881 hw->phy.ops.read_reg(hw, HV_PM_CTRL, &data); in e1000_lv_jumbo_workaround_ich8lan() 3263 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_ich8lan() 3287 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_ich8lan() 3300 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_ich8lan() 3355 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_ich8lan() 3368 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_ich8lan() [all …]
|
| H A D | e1000_82575.c | 201 phy->ops.read_reg = e1000_read_phy_reg_sgmii_82575; in e1000_init_phy_params_82575() 208 phy->ops.read_reg = e1000_read_phy_reg_82580; in e1000_init_phy_params_82575() 213 phy->ops.read_reg = e1000_read_phy_reg_gs40g; in e1000_init_phy_params_82575() 217 phy->ops.read_reg = e1000_read_phy_reg_igp; in e1000_init_phy_params_82575() 289 ret_val = phy->ops.read_reg(hw, E1000_M88E1112_MAC_CTRL_1, in e1000_init_phy_params_82575() 767 if (!(hw->phy.ops.read_reg)) in e1000_set_d0_lplu_state_82575() 782 ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d0_lplu_state_82575() 800 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82575() 813 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82575() 2564 ret_val = hw->phy.ops.read_reg(hw, E1000_EMIDATA, data); in __e1000_access_emi_reg() [all …]
|
| H A D | e1000_82543.c | 111 phy->ops.read_reg = (hw->mac.type == e1000_82543) in e1000_init_phy_params_82543() 803 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_polarity_reversal_workaround_82543() 807 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_polarity_reversal_workaround_82543() 1412 if (!(hw->phy.ops.read_reg)) in e1000_config_mac_to_phy_82543() 1424 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); in e1000_config_mac_to_phy_82543()
|
| H A D | e1000_mac.c | 1397 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_config_fc_after_link_up_generic() 1400 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_config_fc_after_link_up_generic() 1415 ret_val = hw->phy.ops.read_reg(hw, PHY_AUTONEG_ADV, in e1000_config_fc_after_link_up_generic() 1419 ret_val = hw->phy.ops.read_reg(hw, PHY_LP_ABILITY, in e1000_config_fc_after_link_up_generic()
|
| H A D | e1000_api.c | 1026 if (hw->phy.ops.read_reg) in e1000_read_phy_reg() 1027 return hw->phy.ops.read_reg(hw, offset, data); in e1000_read_phy_reg()
|
| H A D | e1000_hw.h | 781 s32 (*read_reg)(struct e1000_hw *, u32, u16 *); member
|
| /freebsd-13.1/sys/dev/iicbus/ |
| H A D | nxprtc.c | 293 read_reg(struct nxprtc_softc *sc, uint8_t reg, uint8_t *val) in read_reg() function 320 if ((err = read_reg(sc, sc->secaddr, &sec)) != 0) in read_timeregs() 322 if ((err = read_reg(sc, sc->tmcaddr, &tmr1)) != 0) in read_timeregs() 324 if ((err = read_reg(sc, sc->tmcaddr, &tmr2)) != 0) in read_timeregs() 422 if ((err = read_reg(sc, PCF8523_R_CS3, &cs3)) != 0) { in pcf8523_battery_check() 534 err = read_reg(sc, PCF2127_R_AGING_OFFSET, &freqadj); in pcf8523_start() 570 if ((err = read_reg(sc, PCF8523_R_TMR_CLKOUT, &clkout)) != 0) in pcf8523_start_timer() 600 if ((err = read_reg(sc, PCF2127_R_TMR_CTL, &tmrctl)) != 0) in pcf2127_start_timer() 667 if ((err = read_reg(sc, PCF8563_R_TMR_CTRL, &tmrctl)) != 0) in pcf8563_start_timer() 760 err = read_reg(sc, PCF85xx_R_CS1, &cs1); in nxprtc_gettime() [all …]
|
| H A D | ds13rtc.c | 206 read_reg(struct ds13rtc_softc *sc, uint8_t reg, uint8_t *val) in read_reg() function 314 if (read_reg(sc, sc->osfaddr, &statreg) != 0) { in ds13rtc_start() 329 if (read_reg(sc, sc->secaddr + 2, &statreg) != 0) { in ds13rtc_start() 358 if ((err = read_reg(sc, sc->osfaddr, &statreg)) != 0) { in ds13rtc_gettime() 459 if ((err = read_reg(sc, sc->osfaddr, &statreg)) != 0) in ds13rtc_settime()
|
| /freebsd-13.1/sys/dev/ixgbe/ |
| H A D | ixgbe_phy.c | 257 phy->ops.read_reg = ixgbe_read_phy_reg_generic; in ixgbe_init_phy_ops_generic() 303 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY, in ixgbe_probe_phy() 409 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_ID_HIGH, in ixgbe_validate_phy_addr() 535 status = hw->phy.ops.read_reg(hw, in ixgbe_reset_phy_generic() 547 status = hw->phy.ops.read_reg(hw, in ixgbe_reset_phy_generic() 584 hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_CONTROL, in ixgbe_restart_auto_neg() 1018 status = hw->phy.ops.read_reg(hw, in ixgbe_check_phy_link_tnx() 1115 status = hw->phy.ops.read_reg(hw, TNX_FW_REV, in ixgbe_get_phy_firmware_version_tnx() 1134 status = hw->phy.ops.read_reg(hw, AQ_FW_REV, in ixgbe_get_phy_firmware_version_generic() 1160 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_XS_CONTROL, in ixgbe_reset_phy_nl() [all …]
|
| H A D | ixgbe_x550.c | 503 hw->phy.ops.read_reg = NULL; in ixgbe_identify_phy_fw() 2075 status = hw->phy.ops.read_reg(hw, in ixgbe_enable_lasi_ext_t_x550em() 2303 hw->phy.ops.read_reg = NULL; in ixgbe_init_phy_ops_X550em() 2347 phy->ops.read_reg = ixgbe_read_phy_reg_x550em; in ixgbe_init_phy_ops_X550em() 2352 phy->ops.read_reg = ixgbe_read_phy_reg_x550em; in ixgbe_init_phy_ops_X550em() 2573 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em() 2585 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em() 2799 ret_val = hw->phy.ops.read_reg(hw, reg_slice, in ixgbe_setup_mac_link_sfp_x550a() 2816 ret_val = hw->phy.ops.read_reg(hw, reg_slice, in ixgbe_setup_mac_link_sfp_x550a() 3015 status = hw->phy.ops.read_reg(hw, in ixgbe_setup_internal_phy_t_x550em() [all …]
|
| H A D | ixgbe_82598.c | 616 hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS, in ixgbe_validate_link_ready() 660 hw->phy.ops.read_reg(hw, 0xC79F, IXGBE_TWINAX_DEV, &link_reg); in ixgbe_check_mac_link_82598() 661 hw->phy.ops.read_reg(hw, 0xC79F, IXGBE_TWINAX_DEV, &link_reg); in ixgbe_check_mac_link_82598() 662 hw->phy.ops.read_reg(hw, 0xC00C, IXGBE_TWINAX_DEV, in ixgbe_check_mac_link_82598() 674 hw->phy.ops.read_reg(hw, 0xC79F, in ixgbe_check_mac_link_82598() 677 hw->phy.ops.read_reg(hw, 0xC00C, in ixgbe_check_mac_link_82598() 1245 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY, in ixgbe_get_supported_physical_layer_82598()
|
| H A D | ixgbe_common.c | 281 hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_ADVT, in ixgbe_setup_fc_generic() 622 hw->phy.ops.read_reg(hw, IXGBE_PCRC8ECL, in ixgbe_clear_hw_cntrs_generic() 624 hw->phy.ops.read_reg(hw, IXGBE_PCRC8ECH, in ixgbe_clear_hw_cntrs_generic() 626 hw->phy.ops.read_reg(hw, IXGBE_LDPCECL, in ixgbe_clear_hw_cntrs_generic() 628 hw->phy.ops.read_reg(hw, IXGBE_LDPCECH, in ixgbe_clear_hw_cntrs_generic() 3084 hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_ADVT, in ixgbe_fc_autoneg_copper() 3087 hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_LP, in ixgbe_fc_autoneg_copper()
|
| H A D | ixgbe_x540.c | 345 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY, in ixgbe_get_supported_physical_layer_X540()
|
| /freebsd-13.1/sys/dev/sume/ |
| H A D | if_sume.c | 169 read_reg(struct sume_adapter *adapter, int offset) in read_reg() function 332 vect0 = read_reg(adapter, RIFFA_IRQ_REG0_OFF); in sume_intr_handler() 379 len = read_reg(adapter, RIFFA_CHNL_REG(ch, in sume_intr_handler() 432 recv->offlast = read_reg(adapter, in sume_intr_handler() 435 recv->len = read_reg(adapter, RIFFA_CHNL_REG(ch, in sume_intr_handler() 496 len = read_reg(adapter, RIFFA_CHNL_REG(ch, in sume_intr_handler() 533 read_reg(adapter, RIFFA_CHNL_REG(ch, in sume_intr_handler() 631 reg = read_reg(adapter, RIFFA_INFO_REG_OFF); in sume_probe_riffa_pci() 1392 read_reg(adapter, RIFFA_INFO_REG_OFF); in sume_local_timer() 1468 read_reg(adapter, RIFFA_INFO_REG_OFF); in sume_attach()
|
| /freebsd-13.1/sys/dev/flash/ |
| H A D | qspi_if.m | 70 METHOD int read_reg {
|
| /freebsd-13.1/usr.sbin/cxgbetool/ |
| H A D | cxgbetool.c | 182 read_reg(long addr, int size, long long *val) in read_reg() function 262 rc = read_reg(addr, size, &val); in register_io() 2315 rc = read_reg(A_TP_CMM_TCB_BASE, 4, &val); in read_tcb() 2409 rc = read_reg(0x9800, 4, &val); in show_tracers()
|