Home
last modified time | relevance | path

Searched refs:hw (Results 1 – 25 of 2833) sorted by relevance

12345678910>>...114

/openbmc/linux/drivers/clk/sprd/
H A Dums512-clk.c555 { .hw = &clk_1m.hw },
703 { .hw = &rco_4m.hw },
717 { .hw = &rco_4m.hw },
768 { .hw = &rco_4m.hw },
789 { .hw = &rco_4m.hw },
816 { .hw = &rco_4m.hw },
845 { .hw = &rco_4m.hw },
879 { .hw = &rco_4m.hw },
889 { .hw = &rco_4m.hw },
898 { .hw = &rco_4m.hw },
[all …]
H A Dsc9863a-clk.c331 { .hw = &rco_4m.hw },
332 { .hw = &rco_25m.hw },
342 { .hw = &rco_4m.hw },
343 { .hw = &rco_25m.hw },
394 { .hw = &rco_4m.hw },
415 { .hw = &rco_4m.hw },
430 { .hw = &rco_4m.hw },
445 { .hw = &rco_4m.hw },
452 { .hw = &rco_4m.hw },
460 { .hw = &rco_4m.hw },
[all …]
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_phy.c242 hw->phy.ops.read_reg(hw, in ixgbe_probe_phy()
410 if (!hw->phy.reset_if_overtemp && hw->phy.ops.check_overtemp(hw)) in ixgbe_reset_phy_generic()
433 status = hw->phy.ops.read_reg(hw, in ixgbe_reset_phy_generic()
827 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_mii_bus_read_c22() local
844 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_mii_bus_read_c45() local
1205 hw->phy.ops.setup_link(hw); in ixgbe_setup_phy_link_speed_generic()
1550 hw->mac.ops.set_lan_id(hw); in ixgbe_identify_sfp_module_generic()
1817 hw->mac.ops.set_lan_id(hw); in ixgbe_identify_qsfp_module_generic()
1864 hw->phy.ops.read_i2c_eeprom(hw, in ixgbe_identify_qsfp_module_generic()
1868 hw->phy.ops.read_i2c_eeprom(hw, in ixgbe_identify_qsfp_module_generic()
[all …]
H A Dixgbe_common.c277 hw->phy.media_type = hw->mac.ops.get_media_type(hw); in ixgbe_start_hw_generic()
280 hw->phy.ops.identify(hw); in ixgbe_start_hw_generic()
283 hw->mac.ops.clear_vfta(hw); in ixgbe_start_hw_generic()
286 hw->mac.ops.clear_hw_cntrs(hw); in ixgbe_start_hw_generic()
474 hw->phy.ops.identify(hw); in ixgbe_clear_hw_cntrs_generic()
668 hw->mac.ops.set_lan_id(hw); in ixgbe_get_bus_info_generic()
724 hw->mac.ops.disable_rx(hw); in ixgbe_stop_adapter_generic()
1932 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbe_init_rx_addrs_generic()
2151 hw->mac.ops.fc_autoneg(hw); in ixgbe_fc_enable_generic()
2725 hw->mac.ops.enable_rx(hw); in ixgbe_enable_rx_dma_generic()
[all …]
H A Dixgbe_x540.c57 return hw->phy.ops.setup_link_speed(hw, speed, in ixgbe_setup_mac_link_X540()
76 status = hw->mac.ops.stop_adapter(hw); in ixgbe_reset_hw_X540()
94 hw->mac.ops.release_swfw_sync(hw, swfw_mask); in ixgbe_reset_hw_X540()
125 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X540()
133 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_X540()
136 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_X540()
143 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_X540()
147 hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_X540()
155 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix, in ixgbe_reset_hw_X540()
198 eec = IXGBE_READ_REG(hw, IXGBE_EEC(hw)); in ixgbe_init_eeprom_params_X540()
[all …]
H A Dixgbe_82599.c927 status = hw->phy.ops.init(hw); in ixgbe_reset_hw_82599()
943 hw->phy.ops.reset(hw); in ixgbe_reset_hw_82599()
1043 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_82599()
1051 hw->mac.ops.init_rx_addrs(hw); in ixgbe_reset_hw_82599()
1054 hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr); in ixgbe_reset_hw_82599()
1061 hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599()
1065 hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index, in ixgbe_reset_hw_82599()
1073 hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix, in ixgbe_reset_hw_82599()
1849 hw->mac.ops.enable_rx(hw); in ixgbe_enable_rx_dma_82599()
1851 hw->mac.ops.disable_rx(hw); in ixgbe_enable_rx_dma_82599()
[all …]
H A Dixgbe_x550.c96 return hw->link.ops.read_link_unlocked(hw, hw->link.addr, reg, value); in ixgbe_read_cs4227()
109 return hw->link.ops.write_link_unlocked(hw, hw->link.addr, reg, value); in ixgbe_write_cs4227()
1003 hw->eeprom.ops.init_params(hw); in ixgbe_calc_checksum_X550()
1247 hw->mac.ops.set_lan_id(hw); in ixgbe_get_bus_info_X550em()
1680 status = hw->link.ops.write_link(hw, hw->link.addr, reg_slice, in ixgbe_setup_mac_link_sfp_x550em()
3148 status = hw->phy.ops.read_reg(hw, in ixgbe_enter_lplu_t_x550em()
3247 hw->mac.ops.set_lan_id(hw); in ixgbe_init_phy_ops_X550em()
3465 status = hw->phy.ops.init(hw); in ixgbe_reset_hw_X550em()
3487 hw->phy.ops.reset(hw); in ixgbe_reset_hw_X550em()
3540 hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr); in ixgbe_reset_hw_X550em()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_adminq.c270 wr32(hw, hw->aq.asq.head, 0); in i40e_config_asq_regs()
271 wr32(hw, hw->aq.asq.tail, 0); in i40e_config_asq_regs()
274 wr32(hw, hw->aq.asq.len, (hw->aq.num_asq_entries | in i40e_config_asq_regs()
299 wr32(hw, hw->aq.arq.head, 0); in i40e_config_arq_regs()
300 wr32(hw, hw->aq.arq.tail, 0); in i40e_config_arq_regs()
303 wr32(hw, hw->aq.arq.len, (hw->aq.num_arq_entries | in i40e_config_arq_regs()
309 wr32(hw, hw->aq.arq.tail, hw->aq.num_arq_entries - 1); in i40e_config_arq_regs()
457 wr32(hw, hw->aq.asq.len, 0); in i40e_shutdown_asq()
458 wr32(hw, hw->aq.asq.bal, 0); in i40e_shutdown_asq()
459 wr32(hw, hw->aq.asq.bah, 0); in i40e_shutdown_asq()
[all …]
/openbmc/linux/drivers/net/ethernet/atheros/alx/
H A Dhw.c389 alx_write_mem32(hw, ALX_MAC_CTRL, hw->rx_ctrl); in alx_stop_mac()
480 alx_write_mem32(hw, ALX_MAC_CTRL, hw->rx_ctrl); in alx_reset_mac()
641 alx_write_mem32(hw, ALX_MAC_CTRL, hw->rx_ctrl); in alx_cfg_mac_flowcontrol()
855 cfg = ethadv_to_hw_cfg(hw, hw->adv_cfg); in alx_phy_configured()
937 alx_set_macaddr(hw, hw->mac_addr); in alx_configure_basic()
946 alx_write_mem32(hw, ALX_SMB_TIMER, hw->smb_timer * 500UL); in alx_configure_basic()
958 alx_write_mem32(hw, ALX_TINT_TPD_THRSHLD, hw->ith_tpd); in alx_configure_basic()
959 alx_write_mem32(hw, ALX_TINT_TIMER, hw->imt); in alx_configure_basic()
1052 if (alx_read_phy_reg(hw, MII_PHYSID1, &hw->phy_id[0]) || in alx_get_phy_info()
1053 alx_read_phy_reg(hw, MII_PHYSID2, &hw->phy_id[1])) in alx_get_phy_info()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-altera-core.c96 txd = hw->tx[hw->count]; in altera_spi_tx_word()
99 txd = (hw->tx[hw->count * 2] in altera_spi_tx_word()
100 | (hw->tx[hw->count * 2 + 1] << 8)); in altera_spi_tx_word()
103 txd = (hw->tx[hw->count * 4] in altera_spi_tx_word()
104 | (hw->tx[hw->count * 4 + 1] << 8) in altera_spi_tx_word()
105 | (hw->tx[hw->count * 4 + 2] << 16) in altera_spi_tx_word()
123 hw->rx[hw->count] = rxd; in altera_spi_rx_word()
126 hw->rx[hw->count * 2] = rxd; in altera_spi_rx_word()
130 hw->rx[hw->count * 4] = rxd; in altera_spi_rx_word()
165 while (hw->count < hw->len) { in altera_spi_txrx()
[all …]
H A Dspi-au1550.c356 hw->rx = hw->dma_rx_tmpbuf; in au1550_spi_dma_txrxb()
365 hw->tx = hw->rx; in au1550_spi_dma_txrxb()
459 hw->rx_count = hw->len; in au1550_spi_dma_irq_callback()
460 hw->tx_count = hw->len; in au1550_spi_dma_irq_callback()
519 hw->tx_word(hw); in au1550_spi_pio_txrxb()
594 hw->rx_word(hw); in au1550_spi_pio_irq_callback()
598 hw->tx_word(hw); in au1550_spi_pio_irq_callback()
627 if (hw->rx_count >= hw->len) { in au1550_spi_pio_irq_callback()
646 return hw->irq_callback(hw); in au1550_spi_irq()
897 free_irq(hw->irq, hw); in au1550_spi_probe()
[all …]
H A Dspi-oc-tiny.c77 writel(hw->mode, hw->base + TINY_SPI_CONTROL); in tiny_spi_setup_transfer()
87 hw->baud = tiny_spi_baud(spi, hw->speed_hz); in tiny_spi_setup()
124 writeb(hw->txp ? *hw->txp++ : 0, in tiny_spi_txrx_bufs()
127 writeb(hw->txp ? *hw->txp++ : 0, in tiny_spi_txrx_bufs()
132 writeb(hw->txp ? *hw->txp++ : 0, in tiny_spi_txrx_bufs()
163 if (hw->rxc + 1 == hw->len) { in tiny_spi_irq()
165 *hw->rxp++ = readb(hw->base + TINY_SPI_RXDATA); in tiny_spi_irq()
166 hw->rxc++; in tiny_spi_irq()
170 *hw->rxp++ = readb(hw->base + TINY_SPI_TXDATA); in tiny_spi_irq()
172 if (hw->txc < hw->len) { in tiny_spi_irq()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_adminq.c262 wr32(hw, hw->aq.asq.head, 0); in iavf_config_asq_regs()
263 wr32(hw, hw->aq.asq.tail, 0); in iavf_config_asq_regs()
266 wr32(hw, hw->aq.asq.len, (hw->aq.num_asq_entries | in iavf_config_asq_regs()
291 wr32(hw, hw->aq.arq.head, 0); in iavf_config_arq_regs()
292 wr32(hw, hw->aq.arq.tail, 0); in iavf_config_arq_regs()
295 wr32(hw, hw->aq.arq.len, (hw->aq.num_arq_entries | in iavf_config_arq_regs()
301 wr32(hw, hw->aq.arq.tail, hw->aq.num_arq_entries - 1); in iavf_config_arq_regs()
460 wr32(hw, hw->aq.asq.len, 0); in iavf_shutdown_asq()
461 wr32(hw, hw->aq.asq.bal, 0); in iavf_shutdown_asq()
462 wr32(hw, hw->aq.asq.bah, 0); in iavf_shutdown_asq()
[all …]
/openbmc/linux/drivers/clk/meson/
H A Dmeson8b.c681 { .hw = &meson8b_sys_pll.hw, },
807 { .hw = &meson8b_fclk_div4.hw, },
808 { .hw = &meson8b_fclk_div3.hw, },
809 { .hw = &meson8b_fclk_div5.hw, },
810 { .hw = &meson8b_fclk_div7.hw, },
1871 { .hw = &meson8b_mpll2.hw, },
1872 { .hw = &meson8b_mpll1.hw, },
1873 { .hw = &meson8b_fclk_div7.hw, },
1874 { .hw = &meson8b_fclk_div4.hw, },
1875 { .hw = &meson8b_fclk_div3.hw, },
[all …]
H A Dg12a.c367 { .hw = &g12a_fclk_div2.hw },
368 { .hw = &g12a_fclk_div3.hw },
387 { .hw = &g12a_fclk_div2.hw },
388 { .hw = &g12a_fclk_div3.hw },
551 { .hw = &g12a_fclk_div2.hw },
552 { .hw = &g12a_fclk_div3.hw },
718 { .hw = &sm1_gp1_pll.hw },
738 { .hw = &sm1_gp1_pll.hw },
2421 { .hw = &g12a_mpll1.hw },
2422 { .hw = &g12a_mpll2.hw },
[all …]
H A Dgxbb.c887 { .hw = &gxbb_fclk_div7.hw },
888 { .hw = &gxbb_mpll1.hw },
889 { .hw = &gxbb_mpll2.hw },
960 { .hw = &gxbb_clk81.hw },
1008 { .hw = &gxbb_gp0_pll.hw },
1009 { .hw = &gxbb_mpll2.hw },
1010 { .hw = &gxbb_mpll1.hw },
2570 { .hw = &gxbb_vdec_1.hw },
2572 { .hw = &gxbb_mpll0.hw },
2573 { .hw = &gxbb_mpll1.hw },
[all …]
/openbmc/u-boot/drivers/net/
H A De1000.c1887 hw-> in e1000_init_hw()
2131 hw->original_fc = hw->fc; in e1000_setup_link()
2172 E1000_WRITE_REG(hw, FCTTV, hw->fc_pause_time); in e1000_setup_link()
2190 E1000_WRITE_REG(hw, FCRTH, hw->fc_high_water); in e1000_setup_link()
2192 E1000_WRITE_REG(hw, FCRTL, hw->fc_low_water); in e1000_setup_link()
2193 E1000_WRITE_REG(hw, FCRTH, hw->fc_high_water); in e1000_setup_link()
4028 E1000_WRITE_REG(hw, TXCW, hw->txcw); in e1000_check_for_link()
5711 struct e1000_hw *hw = malloc(sizeof(*hw)); in e1000_initialize() local
5715 free(hw); in e1000_initialize()
5721 memset(hw, 0, sizeof(*hw)); in e1000_initialize()
[all …]
/openbmc/linux/drivers/isdn/hardware/mISDN/
H A DmISDNinfineon.c477 hw->ipac.write_reg(hw, IPAC_CONF, hw->ipac.conf); in ipac_chip_reset()
599 ret = request_irq(hw->irq, hw->ci->irqfunc, IRQF_SHARED, hw->name, hw); in init_irq()
618 hw->irq, hw->irqcnt); in init_irq()
625 free_irq(hw->irq, hw); in init_irq()
659 hw->cfg.size = pci_resource_len(hw->pdev, hw->ci->cfg_bar); in setup_io()
677 hw->cfg.p = ioremap(hw->cfg.start, hw->cfg.size); in setup_io()
707 hw->addr.p = ioremap(hw->addr.start, hw->addr.size); in setup_io()
733 hw->isac.a.p = hw->addr.p; in setup_io()
735 hw->hscx.a.p = hw->addr.p; in setup_io()
740 hw->isac.a.p = hw->addr.p; in setup_io()
[all …]
/openbmc/linux/drivers/scsi/csiostor/
H A Dcsio_isr.c51 if (unlikely(!hw)) in csio_nondata_isr()
330 intx_q = csio_get_q(hw, hw->intr_iq_idx); in csio_fcoe_isr()
363 CSIO_PCI_BUS(hw), CSIO_PCI_DEV(hw), CSIO_PCI_FUNC(hw)); in csio_add_msix_desc()
368 CSIO_PCI_BUS(hw), CSIO_PCI_DEV(hw), CSIO_PCI_FUNC(hw)); in csio_add_msix_desc()
375 CSIO_PCI_BUS(hw), CSIO_PCI_DEV(hw), in csio_add_msix_desc()
433 csio_err(hw, in csio_request_irqs()
474 csio_dbg(hw, "Reduced sqsets to %d\n", hw->num_sqsets); in csio_reduce_sqsets()
505 .priv = hw, in csio_enable_msix()
565 if (hw->cfg_niq < (hw->num_sqsets + extra)) { in csio_intr_enable()
568 csio_reduce_sqsets(hw, hw->cfg_niq - extra); in csio_intr_enable()
[all …]
H A Dcsio_init.c83 ret = hw->chip_ops->chip_mc_read(hw, 0, pos, in csio_mem_read()
86 ret = hw->chip_ops->chip_edc_read(hw, mem, pos, in csio_mem_read()
133 hw->chip_ops->chip_dfs_create_ext_mem(hw); in csio_setup_debugfs()
267 rv = csio_wr_iq_create(hw, NULL, hw->intr_iq_idx, in csio_create_queues()
276 rv = csio_wr_iq_create(hw, NULL, hw->fwevt_iq_idx, in csio_create_queues()
347 hw->num_sqsets = num_online_cpus() * hw->num_pports; in csio_config_queues()
359 hw->num_sqsets, hw->num_scsi_msix_cpus); in csio_config_queues()
520 if (!hw) in csio_hw_alloc()
546 csio_dbg(hw, "hw:%p\n", hw); in csio_hw_alloc()
548 return hw; in csio_hw_alloc()
[all …]
H A Dcsio_hw.c1415 hw->cfg_niq, hw->cfg_neq); in csio_get_device_params()
2782 hw->prev_evt = hw->cur_evt; in csio_hws_uninit()
2807 hw->prev_evt = hw->cur_evt; in csio_hws_configuring()
2845 hw->prev_evt = hw->cur_evt; in csio_hws_initializing()
2886 hw->prev_evt = hw->cur_evt; in csio_hws_ready()
2932 hw->prev_evt = hw->cur_evt; in csio_hws_quiescing()
2992 hw->prev_evt = hw->cur_evt; in csio_hws_quiesced()
3017 hw->prev_evt = hw->cur_evt; in csio_hws_resetting()
3043 hw->prev_evt = hw->cur_evt; in csio_hws_removing()
3078 hw->prev_evt = hw->cur_evt; in csio_hws_pcierr()
[all …]
/openbmc/linux/drivers/net/ethernet/atheros/atl1c/
H A Datl1c_hw.c79 if (atl1c_read_current_addr(hw, hw->perm_mac_addr)) in atl1c_get_permanent_address()
85 if (hw->nic_type == athr_l1c || hw->nic_type == athr_l2c) { in atl1c_get_permanent_address()
95 if (hw->nic_type == athr_l2c_b || hw->nic_type == athr_l2c_b2) { in atl1c_get_permanent_address()
119 if ((hw->nic_type == athr_l1c || hw->nic_type == athr_l2c)) { in atl1c_get_permanent_address()
134 if (atl1c_read_current_addr(hw, hw->perm_mac_addr)) in atl1c_get_permanent_address()
191 memcpy(hw->mac_addr, hw->perm_mac_addr, sizeof(hw->perm_mac_addr)); in atl1c_read_mac_addr()
314 hw->hibernate) in atl1c_read_phy_core()
362 hw->hibernate) in atl1c_write_phy_core()
544 hw->nic_type == athr_l1d || hw->nic_type == athr_l1d_2 ? in atl1c_phy_reset()
603 (atl1c_read_phy_reg(hw, MII_PHYSID2, &hw->phy_id2) != 0)) { in atl1c_phy_init()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/e1000/
H A De1000_hw.c588 if (hw->dma_fairness && hw->mac_type <= e1000_82543) { in e1000_init_hw()
726 hw->original_fc = hw->fc; in e1000_setup_link()
1105 hw->mdix = 1; in e1000_copper_link_igp_setup()
3423 if (!hw->autoneg && (hw->mdix == 0 || hw->mdix == 3)) { in e1000_validate_mdi_setting()
4249 hw->mac_addr[i] = hw->perm_mac_addr[i]; in e1000_read_mac_addr()
4269 e1000_rar_set(hw, hw->mac_addr, 0); in e1000_init_rx_addrs()
4424 hw->ledctl_mode1 = hw->ledctl_default; in e1000_id_led_init()
4425 hw->ledctl_mode2 = hw->ledctl_default; in e1000_id_led_init()
4766 if ((hw->collision_delta * hw->ifs_ratio) > hw->tx_packet_delta) { in e1000_update_adaptive()
4769 if (hw->current_ifs_val < hw->ifs_max_val) { in e1000_update_adaptive()
[all …]
/openbmc/linux/drivers/clk/sunxi-ng/
H A Dccu-sun5i.c34 .hw.init = CLK_HW_INIT("pll-core",
106 .hw.init = CLK_HW_INIT("pll-ve",
607 &pll_audio_base_clk.common.hw
624 &pll_video0_clk.common.hw,
627 &pll_video1_clk.common.hw,
697 [CLK_TS] = &ts_clk.common.hw,
698 [CLK_SS] = &ss_clk.common.hw,
702 [CLK_IR] = &ir_clk.common.hw,
723 [CLK_VE] = &ve_clk.common.hw,
831 [CLK_SS] = &ss_clk.common.hw,
[all …]
/openbmc/linux/drivers/clk/qcom/
H A Dclk-rpmh.c51 struct clk_hw hw; member
313 if (clk_hw_is_prepared(hw)) in clk_rpmh_bcm_set_rate()
399 [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
400 [RPMH_CE_CLK] = &clk_rpmh_ce.hw,
414 [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
415 [RPMH_PKA_CLK] = &clk_rpmh_pka.hw,
435 [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
436 [RPMH_CE_CLK] = &clk_rpmh_ce.hw,
452 [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
473 [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw,
[all …]

12345678910>>...114