| /kernel/linux/linux-4.19/drivers/net/ethernet/atheros/alx/ |
| D | hw.c | 39 #include "hw.h" 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 [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/ |
| D | hw.c | 39 #include "hw.h" 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 [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/intel/i40e/ |
| D | i40e_adminq.c | 10 static void i40e_resume_aq(struct i40e_hw *hw); 14 * @hw: pointer to the hardware structure 18 static void i40e_adminq_init_regs(struct i40e_hw *hw) in i40e_adminq_init_regs() argument 21 if (i40e_is_vf(hw)) { in i40e_adminq_init_regs() 22 hw->aq.asq.tail = I40E_VF_ATQT1; in i40e_adminq_init_regs() 23 hw->aq.asq.head = I40E_VF_ATQH1; in i40e_adminq_init_regs() 24 hw->aq.asq.len = I40E_VF_ATQLEN1; in i40e_adminq_init_regs() 25 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs() 26 hw->aq.asq.bah = I40E_VF_ATQBAH1; in i40e_adminq_init_regs() 27 hw->aq.arq.tail = I40E_VF_ARQT1; in i40e_adminq_init_regs() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
| D | i40e_adminq.c | 10 static void i40e_resume_aq(struct i40e_hw *hw); 14 * @hw: pointer to the hardware structure 18 static void i40e_adminq_init_regs(struct i40e_hw *hw) in i40e_adminq_init_regs() argument 21 if (i40e_is_vf(hw)) { in i40e_adminq_init_regs() 22 hw->aq.asq.tail = I40E_VF_ATQT1; in i40e_adminq_init_regs() 23 hw->aq.asq.head = I40E_VF_ATQH1; in i40e_adminq_init_regs() 24 hw->aq.asq.len = I40E_VF_ATQLEN1; in i40e_adminq_init_regs() 25 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs() 26 hw->aq.asq.bah = I40E_VF_ATQBAH1; in i40e_adminq_init_regs() 27 hw->aq.arq.tail = I40E_VF_ARQT1; in i40e_adminq_init_regs() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_phy.c | 12 static void ixgbe_i2c_start(struct ixgbe_hw *hw); 13 static void ixgbe_i2c_stop(struct ixgbe_hw *hw); 14 static s32 ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data); 15 static s32 ixgbe_clock_out_i2c_byte(struct ixgbe_hw *hw, u8 data); 16 static s32 ixgbe_get_i2c_ack(struct ixgbe_hw *hw); 17 static s32 ixgbe_clock_in_i2c_bit(struct ixgbe_hw *hw, bool *data); 18 static s32 ixgbe_clock_out_i2c_bit(struct ixgbe_hw *hw, bool data); 19 static void ixgbe_raise_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 20 static void ixgbe_lower_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 21 static s32 ixgbe_set_i2c_data(struct ixgbe_hw *hw, u32 *i2cctl, bool data); [all …]
|
| D | ixgbe_x540.c | 19 static s32 ixgbe_update_flash_X540(struct ixgbe_hw *hw); 20 static s32 ixgbe_poll_flash_update_done_X540(struct ixgbe_hw *hw); 21 static s32 ixgbe_get_swfw_sync_semaphore(struct ixgbe_hw *hw); 22 static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw); 24 enum ixgbe_media_type ixgbe_get_media_type_X540(struct ixgbe_hw *hw) in ixgbe_get_media_type_X540() argument 29 s32 ixgbe_get_invariants_X540(struct ixgbe_hw *hw) in ixgbe_get_invariants_X540() argument 31 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() 32 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X540() 43 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_X540() 50 * @hw: pointer to hardware structure [all …]
|
| D | ixgbe_common.c | 13 static s32 ixgbe_acquire_eeprom(struct ixgbe_hw *hw); 14 static s32 ixgbe_get_eeprom_semaphore(struct ixgbe_hw *hw); 15 static void ixgbe_release_eeprom_semaphore(struct ixgbe_hw *hw); 16 static s32 ixgbe_ready_eeprom(struct ixgbe_hw *hw); 17 static void ixgbe_standby_eeprom(struct ixgbe_hw *hw); 18 static void ixgbe_shift_out_eeprom_bits(struct ixgbe_hw *hw, u16 data, 20 static u16 ixgbe_shift_in_eeprom_bits(struct ixgbe_hw *hw, u16 count); 21 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 22 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 23 static void ixgbe_release_eeprom(struct ixgbe_hw *hw); [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_phy.c | 11 static void ixgbe_i2c_start(struct ixgbe_hw *hw); 12 static void ixgbe_i2c_stop(struct ixgbe_hw *hw); 13 static s32 ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data); 14 static s32 ixgbe_clock_out_i2c_byte(struct ixgbe_hw *hw, u8 data); 15 static s32 ixgbe_get_i2c_ack(struct ixgbe_hw *hw); 16 static s32 ixgbe_clock_in_i2c_bit(struct ixgbe_hw *hw, bool *data); 17 static s32 ixgbe_clock_out_i2c_bit(struct ixgbe_hw *hw, bool data); 18 static void ixgbe_raise_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 19 static void ixgbe_lower_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 20 static s32 ixgbe_set_i2c_data(struct ixgbe_hw *hw, u32 *i2cctl, bool data); [all …]
|
| D | ixgbe_x540.c | 19 static s32 ixgbe_update_flash_X540(struct ixgbe_hw *hw); 20 static s32 ixgbe_poll_flash_update_done_X540(struct ixgbe_hw *hw); 21 static s32 ixgbe_get_swfw_sync_semaphore(struct ixgbe_hw *hw); 22 static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw); 24 enum ixgbe_media_type ixgbe_get_media_type_X540(struct ixgbe_hw *hw) in ixgbe_get_media_type_X540() argument 29 s32 ixgbe_get_invariants_X540(struct ixgbe_hw *hw) in ixgbe_get_invariants_X540() argument 31 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() 32 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X540() 43 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_X540() 50 * @hw: pointer to hardware structure [all …]
|
| D | ixgbe_common.c | 13 static s32 ixgbe_acquire_eeprom(struct ixgbe_hw *hw); 14 static s32 ixgbe_get_eeprom_semaphore(struct ixgbe_hw *hw); 15 static void ixgbe_release_eeprom_semaphore(struct ixgbe_hw *hw); 16 static s32 ixgbe_ready_eeprom(struct ixgbe_hw *hw); 17 static void ixgbe_standby_eeprom(struct ixgbe_hw *hw); 18 static void ixgbe_shift_out_eeprom_bits(struct ixgbe_hw *hw, u16 data, 20 static u16 ixgbe_shift_in_eeprom_bits(struct ixgbe_hw *hw, u16 count); 21 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 22 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 23 static void ixgbe_release_eeprom(struct ixgbe_hw *hw); [all …]
|
| /kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/ |
| D | mISDNinfineon.c | 103 spinlock_t lock; /* HW access lock */ 267 struct inf_hw *hw = dev_id; in diva_irq() local 270 spin_lock(&hw->lock); in diva_irq() 271 val = inb((u32)hw->cfg.start + DIVA_PCI_CTRL); in diva_irq() 273 spin_unlock(&hw->lock); in diva_irq() 276 hw->irqcnt++; in diva_irq() 277 mISDNipac_irq(&hw->ipac, irqloops); in diva_irq() 278 spin_unlock(&hw->lock); in diva_irq() 285 struct inf_hw *hw = dev_id; in diva20x_irq() local 288 spin_lock(&hw->lock); in diva20x_irq() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/meson/ |
| D | meson8b.c | 57 .hw.init = &(struct clk_init_data){ 97 .hw.init = &(struct clk_init_data){ 116 .hw.init = &(struct clk_init_data){ 120 &meson8b_fixed_pll_dco.hw 163 .hw.init = &(struct clk_init_data){ 183 .hw.init = &(struct clk_init_data){ 187 &meson8b_hdmi_pll_dco.hw 201 .hw.init = &(struct clk_init_data){ 205 &meson8b_hdmi_pll_dco.hw 241 .hw.init = &(struct clk_init_data){ [all …]
|
| D | g12a.c | 62 .hw.init = &(struct clk_init_data){ 79 .hw.init = &(struct clk_init_data){ 83 &g12a_fixed_pll_dco.hw 127 .hw.init = &(struct clk_init_data){ 146 .hw.init = &(struct clk_init_data){ 150 &g12a_sys_pll_dco.hw 186 .hw.init = &(struct clk_init_data){ 205 .hw.init = &(struct clk_init_data){ 209 &g12b_sys1_pll_dco.hw 221 .hw.init = &(struct clk_init_data) { [all …]
|
| D | gxbb.c | 118 .hw.init = &(struct clk_init_data){ 135 .hw.init = &(struct clk_init_data){ 139 &gxbb_fixed_pll_dco.hw 152 .hw.init = &(struct clk_init_data){ 195 .hw.init = &(struct clk_init_data){ 199 &gxbb_hdmi_pll_pre_mult.hw 249 .hw.init = &(struct clk_init_data){ 271 .hw.init = &(struct clk_init_data){ 275 &gxbb_hdmi_pll_dco.hw 289 .hw.init = &(struct clk_init_data){ [all …]
|
| /kernel/linux/linux-4.19/drivers/isdn/hardware/mISDN/ |
| D | mISDNinfineon.c | 118 spinlock_t lock; /* HW access lock */ 282 struct inf_hw *hw = dev_id; in diva_irq() local 285 spin_lock(&hw->lock); in diva_irq() 286 val = inb((u32)hw->cfg.start + DIVA_PCI_CTRL); in diva_irq() 288 spin_unlock(&hw->lock); in diva_irq() 291 hw->irqcnt++; in diva_irq() 292 mISDNipac_irq(&hw->ipac, irqloops); in diva_irq() 293 spin_unlock(&hw->lock); in diva_irq() 300 struct inf_hw *hw = dev_id; in diva20x_irq() local 303 spin_lock(&hw->lock); in diva20x_irq() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/intel/i40evf/ |
| D | i40e_adminq.c | 22 * @hw: pointer to the hardware structure 26 static void i40e_adminq_init_regs(struct i40e_hw *hw) in i40e_adminq_init_regs() argument 29 if (i40e_is_vf(hw)) { in i40e_adminq_init_regs() 30 hw->aq.asq.tail = I40E_VF_ATQT1; in i40e_adminq_init_regs() 31 hw->aq.asq.head = I40E_VF_ATQH1; in i40e_adminq_init_regs() 32 hw->aq.asq.len = I40E_VF_ATQLEN1; in i40e_adminq_init_regs() 33 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs() 34 hw->aq.asq.bah = I40E_VF_ATQBAH1; in i40e_adminq_init_regs() 35 hw->aq.arq.tail = I40E_VF_ARQT1; in i40e_adminq_init_regs() 36 hw->aq.arq.head = I40E_VF_ARQH1; in i40e_adminq_init_regs() [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/sprd/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/ |
| D | iavf_adminq.c | 12 * @hw: pointer to the hardware structure 16 static void iavf_adminq_init_regs(struct iavf_hw *hw) in iavf_adminq_init_regs() argument 19 hw->aq.asq.tail = IAVF_VF_ATQT1; in iavf_adminq_init_regs() 20 hw->aq.asq.head = IAVF_VF_ATQH1; in iavf_adminq_init_regs() 21 hw->aq.asq.len = IAVF_VF_ATQLEN1; in iavf_adminq_init_regs() 22 hw->aq.asq.bal = IAVF_VF_ATQBAL1; in iavf_adminq_init_regs() 23 hw->aq.asq.bah = IAVF_VF_ATQBAH1; in iavf_adminq_init_regs() 24 hw->aq.arq.tail = IAVF_VF_ARQT1; in iavf_adminq_init_regs() 25 hw->aq.arq.head = IAVF_VF_ARQH1; in iavf_adminq_init_regs() 26 hw->aq.arq.len = IAVF_VF_ARQLEN1; in iavf_adminq_init_regs() [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/atheros/atl1c/ |
| D | atl1c_hw.c | 32 int atl1c_check_eeprom_exist(struct atl1c_hw *hw) in atl1c_check_eeprom_exist() argument 36 AT_READ_REG(hw, REG_TWSI_DEBUG, &data); in atl1c_check_eeprom_exist() 40 AT_READ_REG(hw, REG_MASTER_CTRL, &data); in atl1c_check_eeprom_exist() 46 void atl1c_hw_set_mac_addr(struct atl1c_hw *hw, u8 *mac_addr) in atl1c_hw_set_mac_addr() argument 58 AT_WRITE_REG_ARRAY(hw, REG_MAC_STA_ADDR, 0, value); in atl1c_hw_set_mac_addr() 62 AT_WRITE_REG_ARRAY(hw, REG_MAC_STA_ADDR, 1, value); in atl1c_hw_set_mac_addr() 66 static bool atl1c_read_current_addr(struct atl1c_hw *hw, u8 *eth_addr) in atl1c_read_current_addr() argument 70 AT_READ_REG(hw, REG_MAC_STA_ADDR, &addr[0]); in atl1c_read_current_addr() 71 AT_READ_REG(hw, REG_MAC_STA_ADDR + 4, &addr[1]); in atl1c_read_current_addr() 83 static int atl1c_get_permanent_address(struct atl1c_hw *hw) in atl1c_get_permanent_address() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1c/ |
| 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 …]
|
| /kernel/linux/linux-4.19/drivers/spi/ |
| D | spi-au1550.c | 61 void (*rx_word)(struct au1550_spi *hw); 62 void (*tx_word)(struct au1550_spi *hw); 64 irqreturn_t (*irq_callback)(struct au1550_spi *hw); 99 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw); 111 static u32 au1550_spi_baudcfg(struct au1550_spi *hw, unsigned speed_hz) in au1550_spi_baudcfg() argument 113 u32 mainclk_hz = hw->pdata->mainclk_hz; in au1550_spi_baudcfg() 134 static inline void au1550_spi_mask_ack_all(struct au1550_spi *hw) in au1550_spi_mask_ack_all() argument 136 hw->regs->psc_spimsk = in au1550_spi_mask_ack_all() 142 hw->regs->psc_spievent = in au1550_spi_mask_ack_all() 149 static void au1550_spi_reset_fifos(struct au1550_spi *hw) in au1550_spi_reset_fifos() argument [all …]
|
| D | spi-nuc900.c | 72 struct nuc900_spi *hw = to_hw(spi); in nuc900_slave_select() local 78 spin_lock_irqsave(&hw->lock, flags); in nuc900_slave_select() 80 val = __raw_readl(hw->regs + USI_SSR); in nuc900_slave_select() 92 __raw_writel(val, hw->regs + USI_SSR); in nuc900_slave_select() 94 val = __raw_readl(hw->regs + USI_CNT); in nuc900_slave_select() 101 __raw_writel(val, hw->regs + USI_CNT); in nuc900_slave_select() 103 spin_unlock_irqrestore(&hw->lock, flags); in nuc900_slave_select() 119 static void nuc900_spi_setup_txnum(struct nuc900_spi *hw, unsigned int txnum) in nuc900_spi_setup_txnum() argument 124 spin_lock_irqsave(&hw->lock, flags); in nuc900_spi_setup_txnum() 126 val = __raw_readl(hw->regs + USI_CNT) & ~TXNUM; in nuc900_spi_setup_txnum() [all …]
|
| /kernel/linux/linux-5.10/drivers/spi/ |
| D | spi-au1550.c | 52 void (*rx_word)(struct au1550_spi *hw); 53 void (*tx_word)(struct au1550_spi *hw); 55 irqreturn_t (*irq_callback)(struct au1550_spi *hw); 90 static void au1550_spi_bits_handlers_set(struct au1550_spi *hw, int bpw); 102 static u32 au1550_spi_baudcfg(struct au1550_spi *hw, unsigned speed_hz) in au1550_spi_baudcfg() argument 104 u32 mainclk_hz = hw->pdata->mainclk_hz; in au1550_spi_baudcfg() 125 static inline void au1550_spi_mask_ack_all(struct au1550_spi *hw) in au1550_spi_mask_ack_all() argument 127 hw->regs->psc_spimsk = in au1550_spi_mask_ack_all() 133 hw->regs->psc_spievent = in au1550_spi_mask_ack_all() 140 static void au1550_spi_reset_fifos(struct au1550_spi *hw) in au1550_spi_reset_fifos() argument [all …]
|
| /kernel/linux/linux-4.19/drivers/scsi/csiostor/ |
| D | csio_init.c | 69 struct csio_hw *hw = file->private_data - mem; in csio_mem_read() local 84 ret = hw->chip_ops->chip_mc_read(hw, 0, pos, in csio_mem_read() 87 ret = hw->chip_ops->chip_edc_read(hw, mem, pos, in csio_mem_read() 113 void csio_add_debugfs_mem(struct csio_hw *hw, const char *name, in csio_add_debugfs_mem() argument 116 debugfs_create_file_size(name, S_IRUSR, hw->debugfs_root, in csio_add_debugfs_mem() 117 (void *)hw + idx, &csio_mem_debugfs_fops, in csio_add_debugfs_mem() 121 static int csio_setup_debugfs(struct csio_hw *hw) in csio_setup_debugfs() argument 125 if (IS_ERR_OR_NULL(hw->debugfs_root)) in csio_setup_debugfs() 128 i = csio_rd_reg32(hw, MA_TARGET_MEM_ENABLE_A); in csio_setup_debugfs() 130 csio_add_debugfs_mem(hw, "edc0", MEM_EDC0, 5); in csio_setup_debugfs() [all …]
|
| /kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
| D | csio_init.c | 69 struct csio_hw *hw = file->private_data - mem; in csio_mem_read() local 84 ret = hw->chip_ops->chip_mc_read(hw, 0, pos, in csio_mem_read() 87 ret = hw->chip_ops->chip_edc_read(hw, mem, pos, in csio_mem_read() 113 void csio_add_debugfs_mem(struct csio_hw *hw, const char *name, in csio_add_debugfs_mem() argument 116 debugfs_create_file_size(name, S_IRUSR, hw->debugfs_root, in csio_add_debugfs_mem() 117 (void *)hw + idx, &csio_mem_debugfs_fops, in csio_add_debugfs_mem() 121 static int csio_setup_debugfs(struct csio_hw *hw) in csio_setup_debugfs() argument 125 if (IS_ERR_OR_NULL(hw->debugfs_root)) in csio_setup_debugfs() 128 i = csio_rd_reg32(hw, MA_TARGET_MEM_ENABLE_A); in csio_setup_debugfs() 130 csio_add_debugfs_mem(hw, "edc0", MEM_EDC0, 5); in csio_setup_debugfs() [all …]
|