| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-net.c | 55 pdata->hw_ops.tx_start_xmit(channel, ring); in xlgmac_maybe_stop_tx_queue() 209 struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; in xlgmac_enable_rx_tx_ints() local 225 hw_ops->enable_int(channel, int_id); in xlgmac_enable_rx_tx_ints() 231 struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; in xlgmac_disable_rx_tx_ints() local 247 hw_ops->disable_int(channel, int_id); in xlgmac_disable_rx_tx_ints() 256 struct xlgmac_hw_ops *hw_ops; in xlgmac_isr() local 259 hw_ops = &pdata->hw_ops; in xlgmac_isr() 333 hw_ops->tx_mmc_int(pdata); in xlgmac_isr() 337 hw_ops->rx_mmc_int(pdata); in xlgmac_isr() 563 struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; in xlgmac_start() local [all …]
|
| H A D | dwc-xlgmac-hw.c | 3065 void xlgmac_init_hw_ops(struct xlgmac_hw_ops *hw_ops) in xlgmac_init_hw_ops() argument 3067 hw_ops->init = xlgmac_hw_init; in xlgmac_init_hw_ops() 3068 hw_ops->exit = xlgmac_hw_exit; in xlgmac_init_hw_ops() 3070 hw_ops->tx_complete = xlgmac_tx_complete; in xlgmac_init_hw_ops() 3072 hw_ops->enable_tx = xlgmac_enable_tx; in xlgmac_init_hw_ops() 3073 hw_ops->disable_tx = xlgmac_disable_tx; in xlgmac_init_hw_ops() 3074 hw_ops->enable_rx = xlgmac_enable_rx; in xlgmac_init_hw_ops() 3075 hw_ops->disable_rx = xlgmac_disable_rx; in xlgmac_init_hw_ops() 3077 hw_ops->dev_xmit = xlgmac_dev_xmit; in xlgmac_init_hw_ops() 3078 hw_ops->dev_read = xlgmac_dev_read; in xlgmac_init_hw_ops() [all …]
|
| H A D | dwc-xlgmac-ethtool.c | 171 struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; in xlgmac_ethtool_set_coalesce() local 176 rx_riwt = hw_ops->usec_to_riwt(pdata, rx_usecs); in xlgmac_ethtool_set_coalesce() 191 hw_ops->config_rx_coalesce(pdata); in xlgmac_ethtool_set_coalesce() 194 hw_ops->config_tx_coalesce(pdata); in xlgmac_ethtool_set_coalesce() 243 pdata->hw_ops.read_mmc_stats(pdata); in xlgmac_ethtool_get_ethtool_stats()
|
| H A D | dwc-xlgmac-desc.c | 419 struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; in xlgmac_tx_desc_init() local 450 hw_ops->tx_desc_init(channel); in xlgmac_tx_desc_init() 456 struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; in xlgmac_rx_desc_init() local 489 hw_ops->rx_desc_init(channel); in xlgmac_rx_desc_init()
|
| H A D | dwc-xlgmac-common.c | 62 xlgmac_init_hw_ops(&pdata->hw_ops); in xlgmac_init_all_ops() 67 struct xlgmac_hw_ops *hw_ops = &pdata->hw_ops; in xlgmac_init() local 85 hw_ops->exit(pdata); in xlgmac_init() 219 pdata->rx_riwt = hw_ops->usec_to_riwt(pdata, XLGMAC_INIT_DMA_RX_USECS); in xlgmac_init()
|
| /linux/sound/soc/amd/ps/ |
| H A D | acp63.h | 136 #define ACP_HW_OPS(acp_data, cb) ((acp_data)->hw_ops->cb) 353 struct acp_hw_ops *hw_ops; member 383 void acp63_hw_init_ops(struct acp_hw_ops *hw_ops); 384 void acp70_hw_init_ops(struct acp_hw_ops *hw_ops); 388 if (adata && adata->hw_ops && adata->hw_ops->acp_init) in acp_hw_init() 395 if (adata && adata->hw_ops && adata->hw_ops->acp_deinit) in acp_hw_deinit() 402 if (adata && adata->hw_ops && adata->hw_ops->acp_get_config) in acp_hw_get_config() 408 if (adata && adata->hw_ops && adata->hw_ops->acp_sdw_dma_irq_thread) in acp_hw_sdw_dma_irq_thread() 416 if (adata && adata->hw_ops && adata->hw_ops->acp_suspend) in acp_hw_suspend() 425 if (adata && adata->hw_ops && adata->hw_ops->acp_resume) in acp_hw_resume() [all …]
|
| H A D | ps-common.c | 247 void acp63_hw_init_ops(struct acp_hw_ops *hw_ops) in acp63_hw_init_ops() argument 249 hw_ops->acp_init = acp63_init; in acp63_hw_init_ops() 250 hw_ops->acp_deinit = acp63_deinit; in acp63_hw_init_ops() 251 hw_ops->acp_get_config = acp63_get_config; in acp63_hw_init_ops() 252 hw_ops->acp_sdw_dma_irq_thread = acp63_sdw_dma_irq_thread; in acp63_hw_init_ops() 253 hw_ops->acp_suspend = snd_acp63_suspend; in acp63_hw_init_ops() 254 hw_ops->acp_resume = snd_acp63_resume; in acp63_hw_init_ops() 255 hw_ops->acp_suspend_runtime = snd_acp63_suspend; in acp63_hw_init_ops() 256 hw_ops->acp_resume_runtime = snd_acp63_runtime_resume; in acp63_hw_init_ops() 483 void acp70_hw_init_ops(struct acp_hw_ops *hw_ops) in acp70_hw_init_ops() argument [all …]
|
| /linux/drivers/net/ethernet/marvell/octeon_ep/ |
| H A D | octep_cn9k_pf.c | 670 oct->hw_ops.setup_iq_regs(oct, i); in octep_reinit_regs_cn93_pf() 673 oct->hw_ops.setup_oq_regs(oct, i); in octep_reinit_regs_cn93_pf() 675 oct->hw_ops.enable_interrupts(oct); in octep_reinit_regs_cn93_pf() 676 oct->hw_ops.enable_io_queues(oct); in octep_reinit_regs_cn93_pf() 876 oct->hw_ops.setup_iq_regs = octep_setup_iq_regs_cn93_pf; in octep_device_setup_cn93_pf() 877 oct->hw_ops.setup_oq_regs = octep_setup_oq_regs_cn93_pf; in octep_device_setup_cn93_pf() 878 oct->hw_ops.setup_mbox_regs = octep_setup_mbox_regs_cn93_pf; in octep_device_setup_cn93_pf() 880 oct->hw_ops.mbox_intr_handler = octep_pfvf_mbox_intr_handler_cn93_pf; in octep_device_setup_cn93_pf() 881 oct->hw_ops.oei_intr_handler = octep_oei_intr_handler_cn93_pf; in octep_device_setup_cn93_pf() 882 oct->hw_ops.ire_intr_handler = octep_ire_intr_handler_cn93_pf; in octep_device_setup_cn93_pf() [all …]
|
| H A D | octep_cnxk_pf.c | 711 oct->hw_ops.setup_iq_regs(oct, i); in octep_reinit_regs_cnxk_pf() 714 oct->hw_ops.setup_oq_regs(oct, i); in octep_reinit_regs_cnxk_pf() 716 oct->hw_ops.enable_interrupts(oct); in octep_reinit_regs_cnxk_pf() 717 oct->hw_ops.enable_io_queues(oct); in octep_reinit_regs_cnxk_pf() 915 oct->hw_ops.setup_iq_regs = octep_setup_iq_regs_cnxk_pf; in octep_device_setup_cnxk_pf() 916 oct->hw_ops.setup_oq_regs = octep_setup_oq_regs_cnxk_pf; in octep_device_setup_cnxk_pf() 917 oct->hw_ops.setup_mbox_regs = octep_setup_mbox_regs_cnxk_pf; in octep_device_setup_cnxk_pf() 919 oct->hw_ops.mbox_intr_handler = octep_pfvf_mbox_intr_handler_cnxk_pf; in octep_device_setup_cnxk_pf() 920 oct->hw_ops.oei_intr_handler = octep_oei_intr_handler_cnxk_pf; in octep_device_setup_cnxk_pf() 921 oct->hw_ops.ire_intr_handler = octep_ire_intr_handler_cnxk_pf; in octep_device_setup_cnxk_pf() [all …]
|
| H A D | octep_main.c | 174 return oct->hw_ops.mbox_intr_handler(oct); in octep_mbox_intr_handler() 189 return oct->hw_ops.oei_intr_handler(oct); in octep_oei_intr_handler() 204 return oct->hw_ops.ire_intr_handler(oct); in octep_ire_intr_handler() 219 return oct->hw_ops.ore_intr_handler(oct); in octep_ore_intr_handler() 234 return oct->hw_ops.vfire_intr_handler(oct); in octep_vfire_intr_handler() 249 return oct->hw_ops.vfore_intr_handler(oct); in octep_vfore_intr_handler() 264 return oct->hw_ops.dma_intr_handler(oct); in octep_dma_intr_handler() 279 return oct->hw_ops.dma_vf_intr_handler(oct); in octep_dma_vf_intr_handler() 294 return oct->hw_ops.pp_vf_intr_handler(oct); in octep_pp_vf_intr_handler() 309 return oct->hw_ops.misc_intr_handler(oct); in octep_misc_intr_handler() [all …]
|
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic.h | 521 struct qlcnic_hardware_ops *hw_ops; member 1545 (adapter->ahw->hw_ops->read_reg)(adapter, off, err) 1548 adapter->ahw->hw_ops->write_reg(adapter, off, val) 1853 return adapter->ahw->hw_ops->encap_rx_offload(adapter); in qlcnic_encap_rx_offload() 1858 return adapter->ahw->hw_ops->encap_tx_offload(adapter); in qlcnic_encap_tx_offload() 1869 adapter->ahw->hw_ops->read_crb(adapter, buf, offset, size); in qlcnic_read_crb() 1875 adapter->ahw->hw_ops->write_crb(adapter, buf, offset, size); in qlcnic_write_crb() 1881 return adapter->ahw->hw_ops->get_mac_address(adapter, mac, function); in qlcnic_get_mac_address() 1886 return adapter->ahw->hw_ops->setup_intr(adapter); in qlcnic_setup_intr() 1892 return adapter->ahw->hw_ops->alloc_mbx_args(mbx, adapter, arg); in qlcnic_alloc_mbx_args() [all …]
|
| /linux/drivers/net/ethernet/marvell/octeon_ep_vf/ |
| H A D | octep_vf_cn9k.c | 297 oct->hw_ops.setup_iq_regs(oct, i); in octep_vf_reinit_regs_cn93() 300 oct->hw_ops.setup_oq_regs(oct, i); in octep_vf_reinit_regs_cn93() 302 oct->hw_ops.enable_interrupts(oct); in octep_vf_reinit_regs_cn93() 303 oct->hw_ops.enable_io_queues(oct); in octep_vf_reinit_regs_cn93() 467 oct->hw_ops.setup_iq_regs = octep_vf_setup_iq_regs_cn93; in octep_vf_device_setup_cn93() 468 oct->hw_ops.setup_oq_regs = octep_vf_setup_oq_regs_cn93; in octep_vf_device_setup_cn93() 469 oct->hw_ops.setup_mbox_regs = octep_vf_setup_mbox_regs_cn93; in octep_vf_device_setup_cn93() 471 oct->hw_ops.ioq_intr_handler = octep_vf_ioq_intr_handler_cn93; in octep_vf_device_setup_cn93() 472 oct->hw_ops.reinit_regs = octep_vf_reinit_regs_cn93; in octep_vf_device_setup_cn93() 474 oct->hw_ops.enable_interrupts = octep_vf_enable_interrupts_cn93; in octep_vf_device_setup_cn93() [all …]
|
| H A D | octep_vf_cnxk.c | 340 oct->hw_ops.setup_iq_regs(oct, i); in octep_vf_reinit_regs_cnxk() 343 oct->hw_ops.setup_oq_regs(oct, i); in octep_vf_reinit_regs_cnxk() 345 oct->hw_ops.enable_interrupts(oct); in octep_vf_reinit_regs_cnxk() 346 oct->hw_ops.enable_io_queues(oct); in octep_vf_reinit_regs_cnxk() 510 oct->hw_ops.setup_iq_regs = octep_vf_setup_iq_regs_cnxk; in octep_vf_device_setup_cnxk() 511 oct->hw_ops.setup_oq_regs = octep_vf_setup_oq_regs_cnxk; in octep_vf_device_setup_cnxk() 512 oct->hw_ops.setup_mbox_regs = octep_vf_setup_mbox_regs_cnxk; in octep_vf_device_setup_cnxk() 514 oct->hw_ops.ioq_intr_handler = octep_vf_ioq_intr_handler_cnxk; in octep_vf_device_setup_cnxk() 515 oct->hw_ops.reinit_regs = octep_vf_reinit_regs_cnxk; in octep_vf_device_setup_cnxk() 517 oct->hw_ops.enable_interrupts = octep_vf_enable_interrupts_cnxk; in octep_vf_device_setup_cnxk() [all …]
|
| /linux/sound/i2c/ |
| H A D | i2c.c | 159 if (bus->hw_ops.bit->start) in snd_i2c_bit_hw_start() 160 bus->hw_ops.bit->start(bus); in snd_i2c_bit_hw_start() 165 if (bus->hw_ops.bit->stop) in snd_i2c_bit_hw_stop() 166 bus->hw_ops.bit->stop(bus); in snd_i2c_bit_hw_stop() 171 if (bus->hw_ops.bit->direction) in snd_i2c_bit_direction() 172 bus->hw_ops.bit->direction(bus, clock, data); in snd_i2c_bit_direction() 177 bus->hw_ops.bit->setlines(bus, clock, data); in snd_i2c_bit_set() 183 if (bus->hw_ops.bit->getclock) 184 return bus->hw_ops.bit->getclock(bus); 191 return bus->hw_ops.bit->getdata(bus, ack); in snd_i2c_bit_data()
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | hw.h | 154 const struct ath12k_hw_ops *hw_ops; member 233 if (hw->hw_ops->get_hw_mac_from_pdev_id) in ath12k_hw_get_mac_from_pdev_id() 234 return hw->hw_ops->get_hw_mac_from_pdev_id(pdev_idx); in ath12k_hw_get_mac_from_pdev_id() 242 if (hw->hw_ops->mac_id_to_pdev_id) in ath12k_hw_mac_id_to_pdev_id() 243 return hw->hw_ops->mac_id_to_pdev_id(hw, mac_id); in ath12k_hw_mac_id_to_pdev_id() 251 if (hw->hw_ops->mac_id_to_srng_id) in ath12k_hw_mac_id_to_srng_id() 252 return hw->hw_ops->mac_id_to_srng_id(hw, mac_id); in ath12k_hw_mac_id_to_srng_id()
|
| /linux/drivers/clk/ti/ |
| H A D | gate.c | 92 const struct clk_hw_omap_ops *hw_ops) in _register_gate() argument 109 clk_hw->ops = hw_ops; in _register_gate() 128 const struct clk_hw_omap_ops *hw_ops) in _of_ti_gate_clk_setup() argument 160 enable_bit, clk_gate_flags, ops, hw_ops); in _of_ti_gate_clk_setup() 168 const struct clk_hw_omap_ops *hw_ops) in _of_ti_composite_gate_clk_setup() argument 180 gate->ops = hw_ops; in _of_ti_composite_gate_clk_setup()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | mca_v3_0.c | 61 .hw_ops = &mca_v3_0_mp0_hw_ops, 81 .hw_ops = &mca_v3_0_mp1_hw_ops, 101 .hw_ops = &mca_v3_0_mpio_hw_ops,
|
| H A D | amdgpu_umc.c | 125 if (adev->umc.ras && adev->umc.ras->ras_block.hw_ops && in amdgpu_umc_handle_bad_pages() 126 adev->umc.ras->ras_block.hw_ops->query_ras_error_count) in amdgpu_umc_handle_bad_pages() 127 adev->umc.ras->ras_block.hw_ops->query_ras_error_count(adev, in amdgpu_umc_handle_bad_pages() 130 if (adev->umc.ras && adev->umc.ras->ras_block.hw_ops && in amdgpu_umc_handle_bad_pages() 131 adev->umc.ras->ras_block.hw_ops->query_ras_error_address && in amdgpu_umc_handle_bad_pages() 150 adev->umc.ras->ras_block.hw_ops->query_ras_error_address(adev, in amdgpu_umc_handle_bad_pages()
|
| H A D | amdgpu_ras.c | 1108 if (adev->umc.ras && adev->umc.ras->ras_block.hw_ops && in amdgpu_ras_get_ecc_info() 1109 adev->umc.ras->ras_block.hw_ops->query_ras_error_count) in amdgpu_ras_get_ecc_info() 1110 adev->umc.ras->ras_block.hw_ops->query_ras_error_count(adev, err_data); in amdgpu_ras_get_ecc_info() 1115 if (adev->umc.ras && adev->umc.ras->ras_block.hw_ops && in amdgpu_ras_get_ecc_info() 1116 adev->umc.ras->ras_block.hw_ops->query_ras_error_address) in amdgpu_ras_get_ecc_info() 1117 adev->umc.ras->ras_block.hw_ops->query_ras_error_address(adev, err_data); in amdgpu_ras_get_ecc_info() 1461 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_query_error_status_helper() 1467 if (block_obj->hw_ops->query_ras_error_count) in amdgpu_ras_query_error_status_helper() 1468 block_obj->hw_ops->query_ras_error_count(adev, err_data); in amdgpu_ras_query_error_status_helper() 1473 if (block_obj->hw_ops->query_ras_error_status) in amdgpu_ras_query_error_status_helper() [all …]
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | hw.h | 152 const struct ath11k_hw_ops *hw_ops; member 306 if (hw->hw_ops->get_hw_mac_from_pdev_id) in ath11k_hw_get_mac_from_pdev_id() 307 return hw->hw_ops->get_hw_mac_from_pdev_id(pdev_idx); in ath11k_hw_get_mac_from_pdev_id() 315 if (hw->hw_ops->mac_id_to_pdev_id) in ath11k_hw_mac_id_to_pdev_id() 316 return hw->hw_ops->mac_id_to_pdev_id(hw, mac_id); in ath11k_hw_mac_id_to_pdev_id() 324 if (hw->hw_ops->mac_id_to_srng_id) in ath11k_hw_mac_id_to_srng_id() 325 return hw->hw_ops->mac_id_to_srng_id(hw, mac_id); in ath11k_hw_mac_id_to_srng_id()
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_crtc.c | 394 const struct lsdc_crtc_hw_ops *ops = lcrtc->hw_ops; in lsdc_crtc_reset() 446 return lcrtc->hw_ops->get_vblank_counter(lcrtc); in lsdc_crtc_get_vblank_counter() 456 lcrtc->hw_ops->enable_vblank(lcrtc); in lsdc_crtc_enable_vblank() 468 lcrtc->hw_ops->disable_vblank(lcrtc); in lsdc_crtc_disable_vblank() 555 lcrtc->hw_ops->get_scan_pos(lcrtc, &x, &y); in lsdc_crtc_show_scan_position() 566 if (lcrtc->hw_ops->get_vblank_counter) in lsdc_crtc_show_vblank_counter() 568 lcrtc->hw_ops->get_vblank_counter(lcrtc)); in lsdc_crtc_show_vblank_counter() 640 const struct lsdc_crtc_hw_ops *ops = lcrtc->hw_ops; in lsdc_crtc_man_op_write() 809 const struct lsdc_crtc_hw_ops *crtc_hw_ops = lcrtc->hw_ops; in lsdc_crtc_mode_set_nofb() 865 lcrtc->hw_ops->enable(lcrtc); in lsdc_crtc_atomic_enable() [all …]
|
| /linux/drivers/accel/amdxdna/ |
| H A D | aie2_pm.c | 38 ret = ndev->priv->hw_ops.set_dpm(ndev, dpm_level); in aie2_pm_set_dpm() 52 ret = ndev->priv->hw_ops.set_dpm(ndev, ndev->dpm_level); in aie2_pm_init() 67 ret = ndev->priv->hw_ops.set_dpm(ndev, ndev->max_dpm_level); in aie2_pm_init()
|
| /linux/drivers/soundwire/ |
| H A D | intel.h | 32 const struct sdw_intel_hw_ops *hw_ops; member 133 #define SDW_INTEL_CHECK_OPS(sdw, cb) ((sdw) && (sdw)->link_res && (sdw)->link_res->hw_ops && \ 134 (sdw)->link_res->hw_ops->cb) 135 #define SDW_INTEL_OPS(sdw, cb) ((sdw)->link_res->hw_ops->cb)
|
| H A D | intel_auxdevice.c | 90 if (sdw->link_res->hw_ops->bpt_send_async) in generic_bpt_send_async() 91 return sdw->link_res->hw_ops->bpt_send_async(sdw, slave, msg); in generic_bpt_send_async() 100 if (sdw->link_res->hw_ops->bpt_wait) in generic_bpt_wait() 101 return sdw->link_res->hw_ops->bpt_wait(sdw, slave, msg); in generic_bpt_wait() 110 return sdw->link_res->hw_ops->pre_bank_switch(sdw); in generic_pre_bank_switch() 118 return sdw->link_res->hw_ops->post_bank_switch(sdw); in generic_post_bank_switch() 146 if (sdw->link_res->hw_ops->program_sdi && wake_capable) in generic_new_peripheral_assigned() 147 sdw->link_res->hw_ops->program_sdi(sdw, dev_num); in generic_new_peripheral_assigned()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_ptp.c | 594 const struct aq_hw_ops *hw_ops; in aq_ptp_hwtstamp_config_set() local 597 hw_ops = aq_nic->aq_hw_ops; in aq_ptp_hwtstamp_config_set() 601 if (hw_ops->hw_filter_l3l4_set) { in aq_ptp_hwtstamp_config_set() 602 err = hw_ops->hw_filter_l3l4_set(aq_nic->aq_hw, in aq_ptp_hwtstamp_config_set() 605 if (!err && hw_ops->hw_filter_l2_set) { in aq_ptp_hwtstamp_config_set() 606 err = hw_ops->hw_filter_l2_set(aq_nic->aq_hw, in aq_ptp_hwtstamp_config_set() 612 if (hw_ops->hw_filter_l3l4_set) { in aq_ptp_hwtstamp_config_set() 613 err = hw_ops->hw_filter_l3l4_set(aq_nic->aq_hw, in aq_ptp_hwtstamp_config_set() 616 if (!err && hw_ops->hw_filter_l2_clear) { in aq_ptp_hwtstamp_config_set() 617 err = hw_ops->hw_filter_l2_clear(aq_nic->aq_hw, in aq_ptp_hwtstamp_config_set()
|