| /linux/drivers/clk/sprd/ |
| H A D | ums512-clk.c | 82 [CLK_26M_AUD] = &clk_26m_aud.hw, 83 [CLK_13M] = &clk_13m.hw, 84 [CLK_6M5] = &clk_6m5.hw, 85 [CLK_4M3] = &clk_4m3.hw, 86 [CLK_2M] = &clk_2m.hw, 87 [CLK_1M] = &clk_1m.hw, 88 [CLK_250K] = &clk_250k.hw, 89 [CLK_RCO_25M] = &rco_25m.hw, 90 [CLK_RCO_4M] = &rco_4m.hw, 91 [CLK_RCO_2M] = &rco_2m.hw, [all …]
|
| H A D | sc9863a-clk.c | 57 [CLK_MPLL0_GATE] = &mpll0_gate.common.hw, 58 [CLK_DPLL0_GATE] = &dpll0_gate.common.hw, 59 [CLK_LPLL_GATE] = &lpll_gate.common.hw, 60 [CLK_GPLL_GATE] = &gpll_gate.common.hw, 61 [CLK_DPLL1_GATE] = &dpll1_gate.common.hw, 62 [CLK_MPLL1_GATE] = &mpll1_gate.common.hw, 63 [CLK_MPLL2_GATE] = &mpll2_gate.common.hw, 64 [CLK_ISPPLL_GATE] = &isppll_gate.common.hw, 93 static CLK_FIXED_FACTOR_HW(twpll_768m, "twpll-768m", &twpll.common.hw, 2, 1, 0); 94 static CLK_FIXED_FACTOR_HW(twpll_384m, "twpll-384m", &twpll.common.hw, 4, 1, 0); [all …]
|
| /linux/drivers/net/ethernet/atheros/alx/ |
| H A D | hw.c | 46 static int alx_wait_mdio_idle(struct alx_hw *hw) in alx_wait_mdio_idle() argument 52 val = alx_read_mem32(hw, ALX_MDIO); in alx_wait_mdio_idle() 61 static int alx_read_phy_core(struct alx_hw *hw, bool ext, u8 dev, in alx_read_phy_core() argument 70 clk_sel = hw->link_speed != SPEED_UNKNOWN ? in alx_read_phy_core() 77 alx_write_mem32(hw, ALX_MDIO_EXTN, val); in alx_read_phy_core() 88 alx_write_mem32(hw, ALX_MDIO, val); in alx_read_phy_core() 90 err = alx_wait_mdio_idle(hw); in alx_read_phy_core() 93 val = alx_read_mem32(hw, ALX_MDIO); in alx_read_phy_core() 98 static int alx_write_phy_core(struct alx_hw *hw, bool ext, u8 dev, in alx_write_phy_core() argument 104 clk_sel = hw->link_speed != SPEED_UNKNOWN ? in alx_write_phy_core() [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_adminq.c | 9 static void i40e_resume_aq(struct i40e_hw *hw); 15 static int i40e_alloc_adminq_asq_ring(struct i40e_hw *hw) in i40e_alloc_adminq_asq_ring() argument 19 ret_code = i40e_allocate_dma_mem(hw, &hw->aq.asq.desc_buf, in i40e_alloc_adminq_asq_ring() 20 (hw->aq.num_asq_entries * in i40e_alloc_adminq_asq_ring() 26 ret_code = i40e_allocate_virt_mem(hw, &hw->aq.asq.cmd_buf, in i40e_alloc_adminq_asq_ring() 27 (hw->aq.num_asq_entries * in i40e_alloc_adminq_asq_ring() 30 i40e_free_dma_mem(hw, &hw->aq.asq.desc_buf); in i40e_alloc_adminq_asq_ring() 41 static int i40e_alloc_adminq_arq_ring(struct i40e_hw *hw) in i40e_alloc_adminq_arq_ring() argument 45 ret_code = i40e_allocate_dma_mem(hw, &hw->aq.arq.desc_buf, in i40e_alloc_adminq_arq_ring() 46 (hw->aq.num_arq_entries * in i40e_alloc_adminq_arq_ring() [all …]
|
| H A D | i40e_nvm.c | 19 int i40e_init_nvm(struct i40e_hw *hw) in i40e_init_nvm() argument 21 struct i40e_nvm_info *nvm = &hw->nvm; in i40e_init_nvm() 29 gens = rd32(hw, I40E_GLNVM_GENS); in i40e_init_nvm() 35 fla = rd32(hw, I40E_GLNVM_FLA); in i40e_init_nvm() 43 i40e_debug(hw, I40E_DEBUG_NVM, "NVM init error: unsupported blank mode.\n"); in i40e_init_nvm() 57 int i40e_acquire_nvm(struct i40e_hw *hw, in i40e_acquire_nvm() argument 64 if (hw->nvm.blank_nvm_mode) in i40e_acquire_nvm() 67 ret_code = i40e_aq_request_resource(hw, I40E_NVM_RESOURCE_ID, access, in i40e_acquire_nvm() 70 gtime = rd32(hw, I40E_GLVFGEN_TIMER); in i40e_acquire_nvm() 73 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() [all …]
|
| /linux/drivers/clk/meson/ |
| H A D | meson8b.c | 155 .hw.init = &(struct clk_init_data){ 174 .hw.init = &(struct clk_init_data){ 178 &meson8b_fixed_pll_dco.hw 191 .hw.init = &(struct clk_init_data){ 274 .hw.init = &(struct clk_init_data){ 279 &hdmi_pll_dco_in.hw 292 .hw.init = &(struct clk_init_data){ 296 &meson8b_hdmi_pll_dco.hw 310 .hw.init = &(struct clk_init_data){ 314 &meson8b_hdmi_pll_dco.hw [all …]
|
| H A D | gxbb.c | 151 .hw.init = &(struct clk_init_data){ 168 .hw.init = &(struct clk_init_data){ 172 &gxbb_fixed_pll_dco.hw 185 .hw.init = &(struct clk_init_data){ 228 .hw.init = &(struct clk_init_data){ 232 &gxbb_hdmi_pll_pre_mult.hw 282 .hw.init = &(struct clk_init_data){ 304 .hw.init = &(struct clk_init_data){ 308 &gxbb_hdmi_pll_dco.hw 322 .hw.init = &(struct clk_init_data){ [all …]
|
| H A D | a9-peripherals.c | 384 .hw.init = &(struct clk_init_data) { 388 &a9_sc_pre.hw 491 .hw.init = &(struct clk_init_data){ 495 &a9_dspa_0.hw, 496 &a9_dspa_1.hw 507 { .hw = &a9_dspa.hw }, 511 { .hw = &a9_isp.hw }, 524 .hw.init = &(struct clk_init_data) { 528 &a9_usb_48m_pre.hw 568 .hw.init = &(struct clk_init_data) { [all …]
|
| H A D | axg.c | 143 .hw.init = &(struct clk_init_data){ 160 .hw.init = &(struct clk_init_data){ 164 &axg_fixed_pll_dco.hw 202 .hw.init = &(struct clk_init_data){ 219 .hw.init = &(struct clk_init_data){ 223 &axg_sys_pll_dco.hw 307 .hw.init = &(struct clk_init_data){ 324 .hw.init = &(struct clk_init_data){ 328 &axg_gp0_pll_dco.hw 380 .hw.init = &(struct clk_init_data){ [all …]
|
| H A D | c3-peripherals.c | 65 .hw.init = &(struct clk_init_data) { 109 .hw.init = &(struct clk_init_data) { 113 &c3_rtc_xtal_clkin.hw 120 { .hw = &c3_rtc_32k_div.hw }, 121 { .hw = &c3_rtc_xtal_clkin.hw } 130 .hw.init = &(struct clk_init_data) { 144 .hw.init = &(struct clk_init_data) { 148 &c3_rtc_32k_sel.hw 157 { .hw = &c3_rtc_32k.hw }, 167 .hw.init = &(struct clk_init_data) { [all …]
|
| /linux/drivers/clk/qcom/ |
| H A D | clk-rpmh.c | 38 * @hw: handle between common and hardware-specific interfaces 52 struct clk_hw hw; member 85 .hw.init = &(struct clk_init_data){ \ 103 .hw.init = &(struct clk_init_data){ \ 127 .hw.init = &(struct clk_init_data){ \ 135 return container_of(_hw, struct clk_rpmh, hw); in to_clk_rpmh() 214 static int clk_rpmh_prepare(struct clk_hw *hw) in clk_rpmh_prepare() argument 216 struct clk_rpmh *c = to_clk_rpmh(hw); in clk_rpmh_prepare() 226 static void clk_rpmh_unprepare(struct clk_hw *hw) in clk_rpmh_unprepare() argument 228 struct clk_rpmh *c = to_clk_rpmh(hw); in clk_rpmh_unprepare() 235 clk_rpmh_recalc_rate(struct clk_hw * hw,unsigned long prate) clk_rpmh_recalc_rate() argument 292 clk_rpmh_bcm_prepare(struct clk_hw * hw) clk_rpmh_bcm_prepare() argument 299 clk_rpmh_bcm_unprepare(struct clk_hw * hw) clk_rpmh_bcm_unprepare() argument 306 clk_rpmh_bcm_set_rate(struct clk_hw * hw,unsigned long rate,unsigned long parent_rate) clk_rpmh_bcm_set_rate() argument 322 clk_rpmh_bcm_recalc_rate(struct clk_hw * hw,unsigned long prate) clk_rpmh_bcm_recalc_rate() argument [all...] |
| /linux/drivers/spi/ |
| H A D | spi-altera-core.c | 43 static int altr_spi_writel(struct altera_spi *hw, unsigned int reg, in altr_spi_writel() argument 48 ret = regmap_write(hw->regmap, hw->regoff + reg, val); in altr_spi_writel() 50 dev_err(hw->dev, "fail to write reg 0x%x val 0x%x: %d\n", in altr_spi_writel() 56 static int altr_spi_readl(struct altera_spi *hw, unsigned int reg, in altr_spi_readl() argument 61 ret = regmap_read(hw->regmap, hw->regoff + reg, val); in altr_spi_readl() 63 dev_err(hw->dev, "fail to read reg 0x%x: %d\n", reg, ret); in altr_spi_readl() 75 struct altera_spi *hw = altera_spi_to_hw(spi); in altera_spi_set_cs() local 78 hw->imr &= ~ALTERA_SPI_CONTROL_SSO_MSK; in altera_spi_set_cs() 79 altr_spi_writel(hw, ALTERA_SPI_CONTROL, hw->imr); in altera_spi_set_cs() 80 altr_spi_writel(hw, ALTERA_SPI_TARGET_SEL, 0); in altera_spi_set_cs() [all …]
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_adminq.c | 12 * @hw: pointer to the hardware structure 14 static enum iavf_status iavf_alloc_adminq_asq_ring(struct iavf_hw *hw) in iavf_alloc_adminq_asq_ring() argument 18 ret_code = iavf_allocate_dma_mem(hw, &hw->aq.asq.desc_buf, in iavf_alloc_adminq_asq_ring() 20 (hw->aq.num_asq_entries * in iavf_alloc_adminq_asq_ring() 26 ret_code = iavf_allocate_virt_mem(hw, &hw->aq.asq.cmd_buf, in iavf_alloc_adminq_asq_ring() 27 (hw->aq.num_asq_entries * in iavf_alloc_adminq_asq_ring() 30 iavf_free_dma_mem(hw, &hw in iavf_alloc_adminq_asq_ring() 41 iavf_alloc_adminq_arq_ring(struct iavf_hw * hw) iavf_alloc_adminq_arq_ring() argument 61 iavf_free_adminq_asq(struct iavf_hw * hw) iavf_free_adminq_asq() argument 73 iavf_free_adminq_arq(struct iavf_hw * hw) iavf_free_adminq_arq() argument 82 iavf_alloc_arq_bufs(struct iavf_hw * hw) iavf_alloc_arq_bufs() argument 150 iavf_alloc_asq_bufs(struct iavf_hw * hw) iavf_alloc_asq_bufs() argument 191 iavf_free_arq_bufs(struct iavf_hw * hw) iavf_free_arq_bufs() argument 210 iavf_free_asq_bufs(struct iavf_hw * hw) iavf_free_asq_bufs() argument 235 iavf_config_asq_regs(struct iavf_hw * hw) iavf_config_asq_regs() argument 264 iavf_config_arq_regs(struct iavf_hw * hw) iavf_config_arq_regs() argument 303 iavf_init_asq(struct iavf_hw * hw) iavf_init_asq() argument 368 iavf_init_arq(struct iavf_hw * hw) iavf_init_arq() argument 425 iavf_shutdown_asq(struct iavf_hw * hw) iavf_shutdown_asq() argument 459 iavf_shutdown_arq(struct iavf_hw * hw) iavf_shutdown_arq() argument 498 iavf_init_adminq(struct iavf_hw * hw) iavf_init_adminq() argument 539 iavf_shutdown_adminq(struct iavf_hw * hw) iavf_shutdown_adminq() argument 556 iavf_clean_asq(struct iavf_hw * hw) iavf_clean_asq() argument 598 iavf_asq_done(struct iavf_hw * hw) iavf_asq_done() argument 617 iavf_asq_send_command(struct iavf_hw * hw,struct libie_aq_desc * desc,void * buff,u16 buff_size,struct iavf_asq_cmd_details * cmd_details) iavf_asq_send_command() argument 830 iavf_clean_arq_element(struct iavf_hw * hw,struct iavf_arq_event_info * e,u16 * pending) iavf_clean_arq_element() argument [all...] |
| /linux/drivers/scsi/csiostor/ |
| H A D | csio_isr.c | 47 struct csio_hw *hw = (struct csio_hw *) dev_id; in csio_nondata_isr() local 51 if (unlikely(!hw)) in csio_nondata_isr() 54 if (unlikely(pci_channel_offline(hw->pdev))) { in csio_nondata_isr() 55 CSIO_INC_STATS(hw, n_pcich_offline); in csio_nondata_isr() 59 spin_lock_irqsave(&hw->lock, flags); in csio_nondata_isr() 60 csio_hw_slow_intr_handler(hw); in csio_nondata_isr() 61 rv = csio_mb_isr_handler(hw); in csio_nondata_isr() 63 if (rv == 0 && !(hw->flags & CSIO_HWF_FWEVT_PENDING)) { in csio_nondata_isr() 64 hw->flags |= CSIO_HWF_FWEVT_PENDING; in csio_nondata_isr() 65 spin_unlock_irqrestore(&hw->lock, flags); in csio_nondata_isr() [all …]
|
| H A D | csio_hw.c | 95 static void csio_hws_ready(struct csio_hw *hw, enum csio_hw_ev) 96 __must_hold(&hw->lock); 103 static void csio_hw_initialize(struct csio_hw *hw); 104 static void csio_evtq_stop(struct csio_hw *hw); 105 static void csio_evtq_start(struct csio_hw *hw); 107 int csio_is_hw_ready(struct csio_hw *hw) in csio_is_hw_ready() 109 return csio_match_state(hw, csio_hws_ready); in csio_is_hw_ready() 112 int csio_is_hw_removing(struct csio_hw *hw) in csio_is_hw_removing() 114 return csio_match_state(hw, csio_hws_removing); in csio_is_hw_removing() 120 * @hw 106 csio_is_hw_ready(struct csio_hw * hw) csio_is_hw_ready() argument 111 csio_is_hw_removing(struct csio_hw * hw) csio_is_hw_removing() argument 133 csio_hw_wait_op_done_val(struct csio_hw * hw,int reg,uint32_t mask,int polarity,int attempts,int delay,uint32_t * valp) csio_hw_wait_op_done_val() argument 163 csio_hw_tp_wr_bits_indirect(struct csio_hw * hw,unsigned int addr,unsigned int mask,unsigned int val) csio_hw_tp_wr_bits_indirect() argument 172 csio_set_reg_field(struct csio_hw * hw,uint32_t reg,uint32_t mask,uint32_t value) csio_set_reg_field() argument 184 csio_memory_write(struct csio_hw * hw,int mtype,u32 addr,u32 len,u32 * buf) csio_memory_write() argument 212 csio_hw_seeprom_read(struct csio_hw * hw,uint32_t addr,uint32_t * data) csio_hw_seeprom_read() argument 303 csio_hw_get_vpd_params(struct csio_hw * hw,struct csio_vpd * p) csio_hw_get_vpd_params() argument 392 csio_hw_sf1_read(struct csio_hw * hw,uint32_t byte_cnt,int32_t cont,int32_t lock,uint32_t * valp) csio_hw_sf1_read() argument 424 csio_hw_sf1_write(struct csio_hw * hw,uint32_t byte_cnt,uint32_t cont,int32_t lock,uint32_t val) csio_hw_sf1_write() argument 449 csio_hw_flash_wait_op(struct csio_hw * hw,int32_t attempts,int32_t delay) csio_hw_flash_wait_op() argument 486 csio_hw_read_flash(struct csio_hw * hw,uint32_t addr,uint32_t nwords,uint32_t * data,int32_t byte_oriented) csio_hw_read_flash() argument 527 csio_hw_write_flash(struct csio_hw * hw,uint32_t addr,uint32_t n,const uint8_t * data) csio_hw_write_flash() argument 590 csio_hw_flash_erase_sectors(struct csio_hw * hw,int32_t start,int32_t end) csio_hw_flash_erase_sectors() argument 620 csio_hw_print_fw_version(struct csio_hw * hw,char * str) csio_hw_print_fw_version() argument 637 csio_hw_get_fw_version(struct csio_hw * hw,uint32_t * vers) csio_hw_get_fw_version() argument 652 csio_hw_get_tp_version(struct csio_hw * hw,u32 * vers) csio_hw_get_tp_version() argument 668 csio_hw_fw_dload(struct csio_hw * hw,uint8_t * fw_data,uint32_t size) csio_hw_fw_dload() argument 762 csio_hw_get_flash_params(struct csio_hw * hw) csio_hw_get_flash_params() argument 882 csio_hw_dev_ready(struct csio_hw * hw) csio_hw_dev_ready() argument 916 csio_do_hello(struct csio_hw * hw,enum csio_dev_state * state) csio_do_hello() argument 1063 csio_do_bye(struct csio_hw * hw) csio_do_bye() argument 1103 csio_do_reset(struct csio_hw * hw,bool fw_rst) csio_do_reset() argument 1143 csio_hw_validate_caps(struct csio_hw * hw,struct csio_mb * mbp) csio_hw_validate_caps() argument 1180 csio_hw_fw_halt(struct csio_hw * hw,uint32_t mbox,int32_t force) csio_hw_fw_halt() argument 1259 csio_hw_fw_restart(struct csio_hw * hw,uint32_t mbox,int32_t reset) csio_hw_fw_restart() argument 1322 csio_hw_fw_upgrade(struct csio_hw * hw,uint32_t mbox,const u8 * fw_data,uint32_t size,int32_t force) csio_hw_fw_upgrade() argument 1354 csio_get_device_params(struct csio_hw * hw) csio_get_device_params() argument 1443 csio_config_device_caps(struct csio_hw * hw) csio_config_device_caps() argument 1776 csio_enable_ports(struct csio_hw * hw) csio_enable_ports() argument 1873 csio_get_fcoe_resinfo(struct csio_hw * hw) csio_get_fcoe_resinfo() argument 1925 csio_hw_check_fwconfig(struct csio_hw * hw,u32 * param) csio_hw_check_fwconfig() argument 1968 csio_hw_flash_config(struct csio_hw * hw,u32 * fw_cfg_param,char * path) csio_hw_flash_config() argument 2052 csio_hw_use_fwconfig(struct csio_hw * hw,int reset,u32 * fw_cfg_param) csio_hw_use_fwconfig() argument 2245 csio_should_install_fs_fw(struct csio_hw * hw,int card_fw_usable,int k,int c) csio_should_install_fs_fw() argument 2314 csio_hw_prep_fw(struct csio_hw * hw,struct fw_info * fw_info,const u8 * fw_data,unsigned int fw_size,struct fw_hdr * card_fw,enum csio_dev_state state,int * reset) csio_hw_prep_fw() argument 2406 csio_hw_flash_fw(struct csio_hw * hw,int * reset) csio_hw_flash_fw() argument 2460 csio_hw_check_fwver(struct csio_hw * hw) csio_hw_check_fwver() argument 2477 csio_hw_configure(struct csio_hw * hw) csio_hw_configure() argument 2606 csio_hw_initialize(struct csio_hw * hw) csio_hw_initialize() argument 2679 csio_hw_intr_enable(struct csio_hw * hw) csio_hw_intr_enable() argument 2737 csio_hw_intr_disable(struct csio_hw * hw) csio_hw_intr_disable() argument 2761 csio_hw_fatal_err(struct csio_hw * hw) csio_hw_fatal_err() argument 2780 csio_hws_uninit(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_uninit() argument 2805 csio_hws_configuring(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_configuring() argument 2843 csio_hws_initializing(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_initializing() argument 2881 csio_hws_ready(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_ready() argument 2930 csio_hws_quiescing(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_quiescing() argument 2990 csio_hws_quiesced(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_quiesced() argument 3015 csio_hws_resetting(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_resetting() argument 3041 csio_hws_removing(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_removing() argument 3076 csio_hws_pcierr(struct csio_hw * hw,enum csio_hw_ev evt) csio_hws_pcierr() argument 3113 csio_handle_intr_status(struct csio_hw * hw,unsigned int reg,const struct intr_info * acts) csio_handle_intr_status() argument 3141 csio_tp_intr_handler(struct csio_hw * hw) csio_tp_intr_handler() argument 3156 csio_sge_intr_handler(struct csio_hw * hw) csio_sge_intr_handler() argument 3211 csio_cim_intr_handler(struct csio_hw * hw) csio_cim_intr_handler() argument 3268 csio_ulprx_intr_handler(struct csio_hw * hw) csio_ulprx_intr_handler() argument 3283 csio_ulptx_intr_handler(struct csio_hw * hw) csio_ulptx_intr_handler() argument 3305 csio_pmtx_intr_handler(struct csio_hw * hw) csio_pmtx_intr_handler() argument 3328 csio_pmrx_intr_handler(struct csio_hw * hw) csio_pmrx_intr_handler() argument 3348 csio_cplsw_intr_handler(struct csio_hw * hw) csio_cplsw_intr_handler() argument 3367 csio_le_intr_handler(struct csio_hw * hw) csio_le_intr_handler() argument 3398 csio_mps_intr_handler(struct csio_hw * hw) csio_mps_intr_handler() argument 3471 csio_mem_intr_handler(struct csio_hw * hw,int idx) csio_mem_intr_handler() argument 3506 csio_ma_intr_handler(struct csio_hw * hw) csio_ma_intr_handler() argument 3526 csio_smb_intr_handler(struct csio_hw * hw) csio_smb_intr_handler() argument 3542 csio_ncsi_intr_handler(struct csio_hw * hw) csio_ncsi_intr_handler() argument 3559 csio_xgmac_intr_handler(struct csio_hw * hw,int port) csio_xgmac_intr_handler() argument 3578 csio_pl_intr_handler(struct csio_hw * hw) csio_pl_intr_handler() argument 3599 csio_hw_slow_intr_handler(struct csio_hw * hw) csio_hw_slow_intr_handler() argument 3698 struct csio_hw *hw = (struct csio_hw *)data; csio_mberr_worker() local 3742 struct csio_hw *hw = mbm->hw; csio_hw_mb_timer() local 3765 csio_hw_mbm_cleanup(struct csio_hw * hw) csio_hw_mbm_cleanup() argument 3780 csio_enqueue_evt(struct csio_hw * hw,enum csio_evt type,void * evt_msg,uint16_t len) csio_enqueue_evt() argument 3816 csio_enqueue_evt_lock(struct csio_hw * hw,enum csio_evt type,void * evt_msg,uint16_t len,bool msg_sg) csio_enqueue_evt_lock() argument 3872 csio_free_evt(struct csio_hw * hw,struct csio_evt_msg * evt_entry) csio_free_evt() argument 3885 csio_evtq_flush(struct csio_hw * hw) csio_evtq_flush() argument 3899 csio_evtq_stop(struct csio_hw * hw) csio_evtq_stop() argument 3905 csio_evtq_start(struct csio_hw * hw) csio_evtq_start() argument 3911 csio_evtq_cleanup(struct csio_hw * hw) csio_evtq_cleanup() argument 3933 csio_process_fwevtq_entry(struct csio_hw * hw,void * wr,uint32_t len,struct csio_fl_dma_buf * flb,void * priv) csio_process_fwevtq_entry() argument 3977 struct csio_hw *hw = container_of(work, struct csio_hw, evtq_work); csio_evtq_worker() local 4059 csio_fwevtq_handler(struct csio_hw * hw) csio_fwevtq_handler() argument 4146 struct csio_hw *hw = mgmtm->hw; csio_mgmtm_cleanup() local 4188 csio_mgmtm_init(struct csio_mgmtm * mgmtm,struct csio_hw * hw) csio_mgmtm_init() argument 4226 csio_hw_start(struct csio_hw * hw) csio_hw_start() argument 4241 csio_hw_stop(struct csio_hw * hw) csio_hw_stop() argument 4261 csio_hw_reset(struct csio_hw * hw) csio_hw_reset() argument 4287 csio_hw_get_device_id(struct csio_hw * hw) csio_hw_get_device_id() argument 4311 csio_hw_set_description(struct csio_hw * hw,uint16_t ven_id,uint16_t dev_id) csio_hw_set_description() argument 4339 csio_hw_init(struct csio_hw * hw) csio_hw_init() argument 4427 csio_hw_exit(struct csio_hw * hw) csio_hw_exit() argument [all...] |
| H A D | csio_init.c | 68 struct csio_hw *hw = file->private_data - mem; in csio_mem_read() local 83 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() 112 void csio_add_debugfs_mem(struct csio_hw *hw, const char *name, in csio_add_debugfs_mem() argument 115 debugfs_create_file_size(name, S_IRUSR, hw->debugfs_root, in csio_add_debugfs_mem() 116 (void *)hw + idx, &csio_mem_debugfs_fops, in csio_add_debugfs_mem() 120 static int csio_setup_debugfs(struct csio_hw *hw) in csio_setup_debugfs() argument 124 if (IS_ERR_OR_NULL(hw->debugfs_root)) in csio_setup_debugfs() 127 i = csio_rd_reg32(hw, MA_TARGET_MEM_ENABLE_A); in csio_setup_debugfs() 129 csio_add_debugfs_mem(hw, "edc0", MEM_EDC0, 5); in csio_setup_debugfs() [all …]
|
| /linux/drivers/net/ethernet/atheros/atl1c/ |
| H A D | atl1c_hw.c | 19 int atl1c_check_eeprom_exist(struct atl1c_hw *hw) in atl1c_check_eeprom_exist() argument 23 AT_READ_REG(hw, REG_TWSI_DEBUG, &data); in atl1c_check_eeprom_exist() 27 AT_READ_REG(hw, REG_MASTER_CTRL, &data); in atl1c_check_eeprom_exist() 33 void atl1c_hw_set_mac_addr(struct atl1c_hw *hw, u8 *mac_addr) in atl1c_hw_set_mac_addr() argument 45 AT_WRITE_REG_ARRAY(hw, REG_MAC_STA_ADDR, 0, value); in atl1c_hw_set_mac_addr() 49 AT_WRITE_REG_ARRAY(hw, REG_MAC_STA_ADDR, 1, value); in atl1c_hw_set_mac_addr() 53 static bool atl1c_read_current_addr(struct atl1c_hw *hw, u8 *eth_addr) in atl1c_read_current_addr() argument 57 AT_READ_REG(hw, REG_MAC_STA_ADDR, &addr[0]); in atl1c_read_current_addr() 58 AT_READ_REG(hw, REG_MAC_STA_ADDR + 4, &addr[1]); in atl1c_read_current_addr() 70 static int atl1c_get_permanent_address(struct atl1c_hw *hw) in atl1c_get_permanent_address() argument [all …]
|
| /linux/drivers/clk/sophgo/ |
| H A D | clk-cv1800.c | 71 { .hw = &clk_mipimpll.common.hw }, 75 { .hw = &clk_mipimpll.common.hw }, 79 { .hw = &clk_fpll.common.hw }, 167 { .hw = &clk_cam0pll.common.hw }, 187 { .hw = &clk_tpll.common.hw }, 1464 struct clk_hw *hw = desc->clks_data->hws[i]; cv1800_clk_init_ctrl() local [all...] |
| /linux/drivers/clk/sunxi-ng/ |
| H A D | ccu-sun5i.c | 34 .hw.init = CLK_HW_INIT("pll-core", 74 .hw.init = CLK_HW_INIT("pll-audio-base", 91 .hw.init = CLK_HW_INIT("pll-video0", 106 .hw.init = CLK_HW_INIT("pll-ve", 119 .hw.init = CLK_HW_INIT("pll-ddr-base", 134 .hw.init = CLK_HW_INIT("pll-ddr-other", "pll-ddr-base", 148 .hw.init = CLK_HW_INIT("pll-periph", 165 .hw.init = CLK_HW_INIT("pll-video1", 190 .hw.init = CLK_HW_INIT_PARENTS("cpu", 214 .hw.init = CLK_HW_INIT_PARENTS("ahb", [all …]
|
| H A D | ccu-sun55i-a523.c | 54 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-ddr0", osc24M, 74 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-periph0-4x", 90 &pll_periph0_4x_clk.common.hw 96 &pll_periph0_2x_clk.common.hw 103 &pll_periph0_480M_clk.common.hw 118 &pll_periph0_150M_clk.hw 129 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-periph1-4x", 136 &pll_periph1_4x_clk.common.hw 146 &pll_periph1_2x_clk.common.hw 159 &pll_periph1_480M_clk.common.hw [all...] |
| H A D | ccu-sun4i-a10.c | 38 .hw.init = CLK_HW_INIT("pll-core", 73 .hw.init = CLK_HW_INIT("pll-audio-base", 91 .hw.init = CLK_HW_INIT("pll-video0", 106 .hw.init = CLK_HW_INIT("pll-ve", 119 .hw.init = CLK_HW_INIT("pll-ve", 132 .hw.init = CLK_HW_INIT("pll-ddr-base", 146 .hw.init = CLK_HW_INIT("pll-ddr-other", "pll-ddr-base", 158 .hw.init = CLK_HW_INIT("pll-periph-base", 166 &pll_periph_base_clk.common.hw, 177 .hw.init = CLK_HW_INIT("pll-periph-sata", [all …]
|
| /linux/drivers/net/ethernet/marvell/ |
| H A D | sky2.c | 151 static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val) in gm_phy_write() argument 155 gma_write16(hw, port, GM_SMI_DATA, val); in gm_phy_write() 156 gma_write16(hw, port, GM_SMI_CTRL, in gm_phy_write() 160 u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL); in gm_phy_write() 170 dev_warn(&hw->pdev->dev, "%s: phy write timeout\n", hw->dev[port]->name); in gm_phy_write() 174 dev_err(&hw->pdev->dev, "%s: phy I/O error\n", hw->dev[port]->name); in gm_phy_write() 178 static int __gm_phy_read(struct sky2_hw *hw, unsigned port, u16 reg, u16 *val) in __gm_phy_read() argument 182 gma_write16(hw, por in __gm_phy_read() 205 gm_phy_read(struct sky2_hw * hw,unsigned port,u16 reg) gm_phy_read() argument 213 sky2_power_on(struct sky2_hw * hw) sky2_power_on() argument 262 sky2_power_aux(struct sky2_hw * hw) sky2_power_aux() argument 284 sky2_gmac_reset(struct sky2_hw * hw,unsigned port) sky2_gmac_reset() argument 326 sky2_phy_init(struct sky2_hw * hw,unsigned port) sky2_phy_init() argument 696 sky2_phy_power_up(struct sky2_hw * hw,unsigned port) sky2_phy_power_up() argument 717 sky2_phy_power_down(struct sky2_hw * hw,unsigned port) sky2_phy_power_down() argument 789 struct sky2_hw *hw = sky2->hw; sky2_enable_rx_tx() local 810 struct sky2_hw *hw = sky2->hw; sky2_wol_init() local 879 sky2_set_tx_stfwd(struct sky2_hw * hw,unsigned port) sky2_set_tx_stfwd() argument 898 sky2_mac_init(struct sky2_hw * hw,unsigned port) sky2_mac_init() argument 1037 sky2_ramset(struct sky2_hw * hw,u16 q,u32 start,u32 space) sky2_ramset() argument 1077 sky2_qset(struct sky2_hw * hw,u16 q) sky2_qset() argument 1088 sky2_prefetch_init(struct sky2_hw * hw,u32 qaddr,dma_addr_t addr,u32 last) sky2_prefetch_init() argument 1126 sky2_put_idx(struct sky2_hw * hw,unsigned q,u16 idx) sky2_put_idx() argument 1285 struct sky2_hw *hw = sky2->hw; rx_set_rss() local 1326 struct sky2_hw *hw = sky2->hw; sky2_rx_stop() local 1370 struct sky2_hw *hw = sky2->hw; sky2_ioctl() local 1407 struct sky2_hw *hw = sky2->hw; sky2_vlan_mode() local 1432 sky2_rx_pad(const struct sky2_hw * hw) sky2_rx_pad() argument 1487 struct sky2_hw *hw = sky2->hw; sky2_alloc_rx_skbs() local 1520 struct sky2_hw *hw = sky2->hw; sky2_rx_start() local 1595 struct sky2_hw *hw = sky2->hw; sky2_alloc_buffers() local 1624 struct sky2_hw *hw = sky2->hw; sky2_free_buffers() local 1648 struct sky2_hw *hw = sky2->hw; sky2_hw_up() local 1711 sky2_setup_irq(struct sky2_hw * hw,const char * name) sky2_setup_irq() argument 1737 struct sky2_hw *hw = sky2->hw; sky2_open() local 1827 struct sky2_hw *hw = sky2->hw; sky2_xmit_frame() local 2039 sky2_tx_reset(struct sky2_hw * hw,unsigned port) sky2_tx_reset() argument 2065 struct sky2_hw *hw = sky2->hw; sky2_hw_down() local 2114 struct sky2_hw *hw = sky2->hw; sky2_close() local 2149 sky2_phy_speed(const struct sky2_hw * hw,u16 aux) sky2_phy_speed() argument 2173 struct sky2_hw *hw = sky2->hw; sky2_link_up() local 2205 struct sky2_hw *hw = sky2->hw; sky2_link_down() local 2235 struct sky2_hw *hw = sky2->hw; sky2_autoneg_done() local 2296 sky2_phy_intr(struct sky2_hw * hw,unsigned port) sky2_phy_intr() argument 2337 sky2_qlink_intr(struct sky2_hw * hw) sky2_qlink_intr() argument 2363 struct sky2_hw *hw = sky2->hw; sky2_tx_timeout() local 2379 struct sky2_hw *hw = sky2->hw; sky2_change_mtu() local 2638 sky2_rx_done(struct sky2_hw * hw,unsigned port,unsigned packets,unsigned bytes) sky2_rx_done() argument 2702 sky2_status_intr(struct sky2_hw * hw,int to_do,u16 idx) sky2_status_intr() argument 2802 sky2_hw_error(struct sky2_hw * hw,unsigned port,u32 status) sky2_hw_error() argument 2842 sky2_hw_intr(struct sky2_hw * hw) sky2_hw_intr() argument 2889 sky2_mac_intr(struct sky2_hw * hw,unsigned port) sky2_mac_intr() argument 2915 sky2_le_error(struct sky2_hw * hw,unsigned port,u16 q) sky2_le_error() argument 2930 struct sky2_hw *hw = sky2->hw; sky2_rx_hung() local 2962 struct sky2_hw *hw = timer_container_of(hw, t, watchdog_timer); sky2_watchdog() local 2993 sky2_err_intr(struct sky2_hw * hw,u32 status) sky2_err_intr() argument 3022 struct sky2_hw *hw = container_of(napi, struct sky2_hw, napi); sky2_poll() local 3055 struct sky2_hw *hw = dev_id; sky2_intr() local 3082 sky2_mhz(const struct sky2_hw * hw) sky2_mhz() argument 3109 sky2_us2clk(const struct sky2_hw * hw,u32 us) sky2_us2clk() argument 3114 sky2_clk2us(const struct sky2_hw * hw,u32 clk) sky2_clk2us() argument 3120 sky2_init(struct sky2_hw * hw) sky2_init() argument 3228 sky2_reset(struct sky2_hw * hw) sky2_reset() argument 3456 sky2_all_down(struct sky2_hw * hw) sky2_all_down() argument 3481 sky2_all_up(struct sky2_hw * hw) sky2_all_up() argument 3509 struct sky2_hw *hw = container_of(work, struct sky2_hw, restart_work); sky2_restart() local 3520 sky2_wol_supported(const struct sky2_hw * hw) sky2_wol_supported() argument 3536 struct sky2_hw *hw = sky2->hw; sky2_set_wol() local 3558 sky2_supported_modes(const struct sky2_hw * hw) sky2_supported_modes() argument 3579 struct sky2_hw *hw = sky2->hw; sky2_get_link_ksettings() local 3611 const struct sky2_hw *hw = sky2->hw; sky2_set_link_ksettings() local 3760 struct sky2_hw *hw = sky2->hw; sky2_phy_stats() local 3810 struct sky2_hw *hw = sky2->hw; sky2_set_mac_address() local 3843 struct sky2_hw *hw = sky2->hw; sky2_set_multicast() local 3889 struct sky2_hw *hw = sky2->hw; sky2_get_stats() local 3933 struct sky2_hw *hw = sky2->hw; sky2_led() local 4057 struct sky2_hw *hw = sky2->hw; sky2_get_coalesce() local 4094 struct sky2_hw *hw = sky2->hw; sky2_set_coalesce() local 4189 sky2_reg_access_ok(struct sky2_hw * hw,unsigned int b) sky2_reg_access_ok() argument 4263 struct sky2_hw *hw = sky2->hw; sky2_get_eeprom_len() local 4306 const struct sky2_hw *hw = sky2->hw; sky2_fix_features() local 4388 struct sky2_hw *hw = sky2->hw; sky2_debug_show() local 4586 sky2_init_netdev(struct sky2_hw * hw,unsigned port,int highmem,int wol) sky2_init_netdev() argument 4693 struct sky2_hw *hw = dev_id; sky2_test_intr() local 4710 sky2_test_msi(struct sky2_hw * hw) sky2_test_msi() argument 4814 struct sky2_hw *hw; sky2_probe() local 5005 struct sky2_hw *hw = pci_get_drvdata(pdev); sky2_remove() local 5047 struct sky2_hw *hw = dev_get_drvdata(dev); sky2_suspend() local 5077 struct sky2_hw *hw = pci_get_drvdata(pdev); sky2_resume() local 5113 struct sky2_hw *hw = pci_get_drvdata(pdev); sky2_shutdown() local [all...] |
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_82598.c | 19 static int ixgbe_setup_copper_link_82598(struct ixgbe_hw *hw, 22 static int ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, 35 static void ixgbe_set_pcie_completion_timeout(struct ixgbe_hw *hw) in ixgbe_set_pcie_completion_timeout() argument 37 u32 gcr = IXGBE_READ_REG(hw, IXGBE_GCR); in ixgbe_set_pcie_completion_timeout() 40 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout() 61 pcie_devctl2 = ixgbe_read_pci_cfg_word(hw, IXGBE_PCI_DEVICE_CONTROL2); in ixgbe_set_pcie_completion_timeout() 63 ixgbe_write_pci_cfg_word(hw, IXGBE_PCI_DEVICE_CONTROL2, pcie_devctl2); in ixgbe_set_pcie_completion_timeout() 67 IXGBE_WRITE_REG(hw, IXGBE_GCR, gcr); in ixgbe_set_pcie_completion_timeout() 70 static int ixgbe_get_invariants_82598(struct ixgbe_hw *hw) in ixgbe_get_invariants_82598() argument 72 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82598() [all …]
|
| /linux/drivers/vdpa/ifcvf/ |
| H A D | ifcvf_base.c | 13 u16 ifcvf_set_vq_vector(struct ifcvf_hw *hw, u16 qid, int vector) in ifcvf_set_vq_vector() argument 15 struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; in ifcvf_set_vq_vector() 23 u16 ifcvf_set_config_vector(struct ifcvf_hw *hw, int vector) in ifcvf_set_config_vector() argument 25 struct virtio_pci_common_cfg __iomem *cfg = hw->common_cfg; in ifcvf_set_config_vector() 32 static void __iomem *get_cap_addr(struct ifcvf_hw *hw, in get_cap_addr() argument 43 IFCVF_DBG(hw->pdev, in get_cap_addr() 48 if (offset + length > pci_resource_len(hw->pdev, bar)) { in get_cap_addr() 49 IFCVF_DBG(hw->pdev, in get_cap_addr() 55 return hw->base[bar] + offset; in get_cap_addr() 72 u16 ifcvf_get_vq_size(struct ifcvf_hw *hw, u16 qid) in ifcvf_get_vq_size() argument [all …]
|
| /linux/drivers/net/ethernet/intel/e1000e/ |
| H A D | phy.c | 7 static s32 e1000_wait_autoneg(struct e1000_hw *hw); 8 static s32 e1000_access_phy_wakeup_reg_bm(struct e1000_hw *hw, u32 offset, 11 static s32 e1000_access_phy_debug_regs_hv(struct e1000_hw *hw, u32 offset, 44 s32 e1000e_check_reset_block_generic(struct e1000_hw *hw) in e1000e_check_reset_block_generic() argument 60 s32 e1000e_get_phy_id(struct e1000_hw *hw) in e1000e_get_phy_id() argument 62 struct e1000_phy_info *phy = &hw->phy; in e1000e_get_phy_id() 71 ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); in e1000e_get_phy_id() 77 ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); in e1000e_get_phy_id() 99 s32 e1000e_phy_reset_dsp(struct e1000_hw *hw) in e1000e_phy_reset_dsp() argument 103 ret_val = e1e_wphy(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in e1000e_phy_reset_dsp() [all …]
|