Home
last modified time | relevance | path

Searched refs:read_reg (Results 1 – 25 of 38) sorted by relevance

12

/freebsd-14.2/sys/dev/igc/
H A Digc_phy.c30 phy->ops.read_reg = igc_null_read_reg; in igc_init_phy_ops_generic()
139 if (!phy->ops.read_reg) in igc_get_phy_id()
142 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igc_get_phy_id()
148 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igc_get_phy_id()
305 ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, in igc_phy_setup_autoneg()
662 if (!hw->phy.ops.read_reg) in igc_set_d3_lplu_state_generic()
681 ret_val = phy->ops.read_reg(hw, in igc_set_d3_lplu_state_generic()
694 ret_val = phy->ops.read_reg(hw, in igc_set_d3_lplu_state_generic()
770 if (!hw->phy.ops.read_reg) in igc_wait_autoneg()
809 if (!hw->phy.ops.read_reg) in igc_phy_has_link_generic()
[all …]
H A Digc_mac.c729 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in igc_config_fc_after_link_up_generic()
732 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in igc_config_fc_after_link_up_generic()
747 ret_val = hw->phy.ops.read_reg(hw, PHY_AUTONEG_ADV, in igc_config_fc_after_link_up_generic()
751 ret_val = hw->phy.ops.read_reg(hw, PHY_LP_ABILITY, in igc_config_fc_after_link_up_generic()
H A Digc_api.c454 if (hw->phy.ops.read_reg) in igc_read_phy_reg()
455 return hw->phy.ops.read_reg(hw, offset, data); in igc_read_phy_reg()
/freebsd-14.2/sys/dev/e1000/
H A De1000_phy.c86 phy->ops.read_reg = e1000_null_read_reg; in e1000_init_phy_ops_generic()
233 if (!phy->ops.read_reg) in e1000_get_phy_id()
1442 ret_val = phy->ops.read_reg(hw, in e1000_copper_link_setup_igp()
2095 if (!hw->phy.ops.read_reg) in e1000_set_d3_lplu_state_generic()
2114 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_generic()
2127 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_generic()
2270 ret_val = phy->ops.read_reg(hw, offset, &data); in e1000_check_polarity_igp()
2328 if (!hw->phy.ops.read_reg) in e1000_wait_autoneg()
2367 if (!hw->phy.ops.read_reg) in e1000_phy_has_link_generic()
2835 if (!hw->phy.ops.read_reg) in e1000_phy_sw_reset_generic()
[all …]
H A De1000_82541.c103 phy->ops.read_reg = e1000_read_phy_reg_igp; in e1000_init_phy_params_82541()
391 ret_val = hw->phy.ops.read_reg(hw, IGP01E1000_GMII_FIFO, in e1000_init_hw_82541()
466 ret_val = phy->ops.read_reg(hw, PHY_AUTONEG_EXP, &data); in e1000_get_link_up_info_82541()
473 ret_val = phy->ops.read_reg(hw, PHY_LP_ABILITY, &data); in e1000_get_link_up_info_82541()
705 ret_val = phy->ops.read_reg(hw, in e1000_config_dsp_after_link_change_82541()
735 ret_val = phy->ops.read_reg(hw, PHY_1000T_STATUS, in e1000_config_dsp_after_link_change_82541()
762 ret_val = phy->ops.read_reg(hw, 0x2F5B, in e1000_config_dsp_after_link_change_82541()
779 ret_val = phy->ops.read_reg(hw, in e1000_config_dsp_after_link_change_82541()
980 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_82541()
993 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_82541()
[all …]
H A De1000_80003es2lan.c119 phy->ops.read_reg = e1000_read_phy_reg_gg82563_80003es2lan; in e1000_init_phy_params_80003es2lan()
597 if (!(hw->phy.ops.read_reg)) in e1000_phy_force_speed_duplex_80003es2lan()
614 ret_val = hw->phy.ops.read_reg(hw, PHY_CONTROL, &phy_data); in e1000_phy_force_speed_duplex_80003es2lan()
653 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_MAC_SPEC_CTRL, in e1000_phy_force_speed_duplex_80003es2lan()
692 if (!(hw->phy.ops.read_reg)) in e1000_get_cable_length_80003es2lan()
996 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_SPEC_CTRL, &data); in e1000_copper_link_setup_gg82563_80003es2lan()
1082 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, in e1000_copper_link_setup_gg82563_80003es2lan()
1229 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, in e1000_cfg_kmrn_10_100_80003es2lan()
1234 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, in e1000_cfg_kmrn_10_100_80003es2lan()
1280 ret_val = hw->phy.ops.read_reg(hw, GG82563_PHY_KMRN_MODE_CTRL, in e1000_cfg_kmrn_1000_80003es2lan()
[all …]
H A De1000_82571.c123 phy->ops.read_reg = e1000_read_phy_reg_igp; in e1000_init_phy_params_82571()
136 phy->ops.read_reg = e1000_read_phy_reg_m88; in e1000_init_phy_params_82571()
151 phy->ops.read_reg = e1000_read_phy_reg_bm2; in e1000_init_phy_params_82571()
483 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in e1000_get_phy_id_82571()
489 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in e1000_get_phy_id_82571()
878 if (!(phy->ops.read_reg)) in e1000_set_d0_lplu_state_82571()
893 ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d0_lplu_state_82571()
912 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82571()
925 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82571()
1391 ret_val = hw->phy.ops.read_reg(hw, E1000_RECEIVE_ERROR_COUNTER, in e1000_check_phy_82574()
[all …]
H A De1000_82540.c82 phy->ops.read_reg = e1000_read_phy_reg_m88; in e1000_init_phy_params_82540()
430 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, in e1000_setup_copper_link_82540()
539 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_PAGE_SELECT, in e1000_set_vco_speed_82540()
548 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); in e1000_set_vco_speed_82540()
563 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); in e1000_set_vco_speed_82540()
H A De1000_ich8lan.c471 phy->ops.read_reg = e1000_read_phy_reg_hv; in e1000_init_phy_params_pchlan()
567 phy->ops.read_reg = e1000_read_phy_reg_igp; in e1000_init_phy_params_ich8lan()
582 phy->ops.read_reg = e1000_read_phy_reg_bm; in e1000_init_phy_params_ich8lan()
622 phy->ops.read_reg = e1000_read_phy_reg_bm; in e1000_init_phy_params_ich8lan()
2885 hw->phy.ops.read_reg(hw, HV_PM_CTRL, &data); in e1000_lv_jumbo_workaround_ich8lan()
3267 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_ich8lan()
3291 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_ich8lan()
3304 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_ich8lan()
3359 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_ich8lan()
3372 ret_val = phy->ops.read_reg(hw, in e1000_set_d3_lplu_state_ich8lan()
[all …]
H A De1000_82575.c200 phy->ops.read_reg = e1000_read_phy_reg_sgmii_82575; in e1000_init_phy_params_82575()
207 phy->ops.read_reg = e1000_read_phy_reg_82580; in e1000_init_phy_params_82575()
212 phy->ops.read_reg = e1000_read_phy_reg_gs40g; in e1000_init_phy_params_82575()
216 phy->ops.read_reg = e1000_read_phy_reg_igp; in e1000_init_phy_params_82575()
288 ret_val = phy->ops.read_reg(hw, E1000_M88E1112_MAC_CTRL_1, in e1000_init_phy_params_82575()
766 if (!(hw->phy.ops.read_reg)) in e1000_set_d0_lplu_state_82575()
781 ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CONFIG, in e1000_set_d0_lplu_state_82575()
799 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82575()
812 ret_val = phy->ops.read_reg(hw, in e1000_set_d0_lplu_state_82575()
2563 ret_val = hw->phy.ops.read_reg(hw, E1000_EMIDATA, data); in __e1000_access_emi_reg()
[all …]
H A De1000_82543.c110 phy->ops.read_reg = (hw->mac.type == e1000_82543) in e1000_init_phy_params_82543()
802 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_polarity_reversal_workaround_82543()
806 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_polarity_reversal_workaround_82543()
1411 if (!(hw->phy.ops.read_reg)) in e1000_config_mac_to_phy_82543()
1423 ret_val = hw->phy.ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); in e1000_config_mac_to_phy_82543()
H A De1000_mac.c1396 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_config_fc_after_link_up_generic()
1399 ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &mii_status_reg); in e1000_config_fc_after_link_up_generic()
1414 ret_val = hw->phy.ops.read_reg(hw, PHY_AUTONEG_ADV, in e1000_config_fc_after_link_up_generic()
1418 ret_val = hw->phy.ops.read_reg(hw, PHY_LP_ABILITY, in e1000_config_fc_after_link_up_generic()
H A De1000_api.c1044 if (hw->phy.ops.read_reg) in e1000_read_phy_reg()
1045 return hw->phy.ops.read_reg(hw, offset, data); in e1000_read_phy_reg()
/freebsd-14.2/sys/dev/iicbus/rtc/
H A Dnxprtc.c291 read_reg(struct nxprtc_softc *sc, uint8_t reg, uint8_t *val) in read_reg() function
318 if ((err = read_reg(sc, sc->secaddr, &sec)) != 0) in read_timeregs()
320 if ((err = read_reg(sc, sc->tmcaddr, &tmr1)) != 0) in read_timeregs()
322 if ((err = read_reg(sc, sc->tmcaddr, &tmr2)) != 0) in read_timeregs()
420 if ((err = read_reg(sc, PCF8523_R_CS3, &cs3)) != 0) { in pcf8523_battery_check()
532 err = read_reg(sc, PCF2127_R_AGING_OFFSET, &freqadj); in pcf8523_start()
568 if ((err = read_reg(sc, PCF8523_R_TMR_CLKOUT, &clkout)) != 0) in pcf8523_start_timer()
598 if ((err = read_reg(sc, PCF2127_R_TMR_CTL, &tmrctl)) != 0) in pcf2127_start_timer()
665 if ((err = read_reg(sc, PCF8563_R_TMR_CTRL, &tmrctl)) != 0) in pcf8563_start_timer()
758 err = read_reg(sc, PCF85xx_R_CS1, &cs1); in nxprtc_gettime()
[all …]
H A Dds13rtc.c204 read_reg(struct ds13rtc_softc *sc, uint8_t reg, uint8_t *val) in read_reg() function
312 if (read_reg(sc, sc->osfaddr, &statreg) != 0) { in ds13rtc_start()
327 if (read_reg(sc, sc->secaddr + 2, &statreg) != 0) { in ds13rtc_start()
356 if ((err = read_reg(sc, sc->osfaddr, &statreg)) != 0) { in ds13rtc_gettime()
457 if ((err = read_reg(sc, sc->osfaddr, &statreg)) != 0) in ds13rtc_settime()
/freebsd-14.2/sys/dev/ixgbe/
H A Dixgbe_phy.c256 phy->ops.read_reg = ixgbe_read_phy_reg_generic; in ixgbe_init_phy_ops_generic()
302 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY, in ixgbe_probe_phy()
408 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_ID_HIGH, in ixgbe_validate_phy_addr()
533 status = hw->phy.ops.read_reg(hw, in ixgbe_reset_phy_generic()
545 status = hw->phy.ops.read_reg(hw, in ixgbe_reset_phy_generic()
582 hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_CONTROL, in ixgbe_restart_auto_neg()
1016 status = hw->phy.ops.read_reg(hw, in ixgbe_check_phy_link_tnx()
1113 status = hw->phy.ops.read_reg(hw, TNX_FW_REV, in ixgbe_get_phy_firmware_version_tnx()
1132 status = hw->phy.ops.read_reg(hw, AQ_FW_REV, in ixgbe_get_phy_firmware_version_generic()
1158 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_XS_CONTROL, in ixgbe_reset_phy_nl()
[all …]
H A Dixgbe_x550.c501 hw->phy.ops.read_reg = NULL; in ixgbe_identify_phy_fw()
2003 status = hw->phy.ops.read_reg(hw, in ixgbe_enable_lasi_ext_t_x550em()
2231 hw->phy.ops.read_reg = NULL; in ixgbe_init_phy_ops_X550em()
2275 phy->ops.read_reg = ixgbe_read_phy_reg_x550em; in ixgbe_init_phy_ops_X550em()
2280 phy->ops.read_reg = ixgbe_read_phy_reg_x550em; in ixgbe_init_phy_ops_X550em()
2501 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
2513 status = hw->phy.ops.read_reg(hw, in ixgbe_init_ext_t_x550em()
2727 ret_val = hw->phy.ops.read_reg(hw, reg_slice, in ixgbe_setup_mac_link_sfp_x550a()
2744 ret_val = hw->phy.ops.read_reg(hw, reg_slice, in ixgbe_setup_mac_link_sfp_x550a()
2943 status = hw->phy.ops.read_reg(hw, in ixgbe_setup_internal_phy_t_x550em()
[all …]
H A Dixgbe_82598.c615 hw->phy.ops.read_reg(hw, IXGBE_MDIO_AUTO_NEG_STATUS, in ixgbe_validate_link_ready()
659 hw->phy.ops.read_reg(hw, 0xC79F, IXGBE_TWINAX_DEV, &link_reg); in ixgbe_check_mac_link_82598()
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, 0xC00C, IXGBE_TWINAX_DEV, in ixgbe_check_mac_link_82598()
673 hw->phy.ops.read_reg(hw, 0xC79F, in ixgbe_check_mac_link_82598()
676 hw->phy.ops.read_reg(hw, 0xC00C, in ixgbe_check_mac_link_82598()
1244 hw->phy.ops.read_reg(hw, IXGBE_MDIO_PHY_EXT_ABILITY, in ixgbe_get_supported_physical_layer_82598()
/freebsd-14.2/sys/dev/flash/flexspi/
H A Dflex_spi.c133 read_reg(struct flex_spi_softc *sc, uint32_t offset) in read_reg() function
154 reg = read_reg(sc, offset); in reg_read_poll_tout()
306 reg = read_reg(sc, FSPI_RFDR); in flex_spi_read_rxfifo()
308 reg = read_reg(sc, FSPI_RFDR + 4); in flex_spi_read_rxfifo()
376 reg = read_reg(sc, FSPI_IPRXFCR); in flex_spi_do_op()
403 reg = read_reg(sc, FSPI_INTR); in flex_spi_do_op()
638 reg = read_reg(sc, FSPI_MCR0); in flex_spi_default_setup()
662 reg = read_reg(sc, FSPI_MCR2); in flex_spi_default_setup()
759 reg = read_reg(sc, FSPI_INTR); in flex_spi_attach()
/freebsd-14.2/sys/dev/sume/
H A Dif_sume.c167 read_reg(struct sume_adapter *adapter, int offset) in read_reg() function
330 vect0 = read_reg(adapter, RIFFA_IRQ_REG0_OFF); in sume_intr_handler()
377 len = read_reg(adapter, RIFFA_CHNL_REG(ch, in sume_intr_handler()
430 recv->offlast = read_reg(adapter, in sume_intr_handler()
433 recv->len = read_reg(adapter, RIFFA_CHNL_REG(ch, in sume_intr_handler()
494 len = read_reg(adapter, RIFFA_CHNL_REG(ch, in sume_intr_handler()
531 read_reg(adapter, RIFFA_CHNL_REG(ch, in sume_intr_handler()
629 reg = read_reg(adapter, RIFFA_INFO_REG_OFF); in sume_probe_riffa_pci()
1373 read_reg(adapter, RIFFA_INFO_REG_OFF); in sume_local_timer()
1446 read_reg(adapter, RIFFA_INFO_REG_OFF); in sume_attach()
/freebsd-14.2/sys/compat/linuxkpi/common/src/
H A Dlinux_mhi.c77 CHECK_FIELD(read_reg); in linuxkpi_mhi_register_controller()
/freebsd-14.2/sys/compat/linuxkpi/common/include/linux/
H A Dmhi.h96 int (*read_reg)(struct mhi_controller *, void __iomem *, uint32_t *); member
/freebsd-14.2/sys/contrib/dev/rtw88/
H A Ddebug.c39 } read_reg; member
117 len = debugfs_priv->read_reg.len; in rtw_debugfs_get_read_reg()
118 addr = debugfs_priv->read_reg.addr; in rtw_debugfs_get_read_reg()
219 debugfs_priv->read_reg.addr = addr; in rtw_debugfs_set_read_reg()
220 debugfs_priv->read_reg.len = len; in rtw_debugfs_set_read_reg()
1257 rtw_debugfs_add_rw(read_reg); in rtw_debugfs_init()
/freebsd-14.2/sys/dev/flash/
H A Dqspi_if.m69 METHOD int read_reg {
/freebsd-14.2/sys/contrib/dev/athk/ath11k/
H A Dmhi.c436 mhi_ctrl->read_reg = ath11k_mhi_op_read_reg; in ath11k_mhi_register()

12