/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_phy.c | 36 static void ixgbe_i2c_start(struct ixgbe_hw *hw); 37 static void ixgbe_i2c_stop(struct ixgbe_hw *hw); 38 static s32 ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data); 39 static s32 ixgbe_clock_out_i2c_byte(struct ixgbe_hw *hw, u8 data); 40 static s32 ixgbe_get_i2c_ack(struct ixgbe_hw *hw); 41 static s32 ixgbe_clock_in_i2c_bit(struct ixgbe_hw *hw, bool *data); 42 static s32 ixgbe_clock_out_i2c_bit(struct ixgbe_hw *hw, bool data); 43 static void ixgbe_raise_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 44 static void ixgbe_lower_i2c_clk(struct ixgbe_hw *hw, u32 *i2cctl); 45 static s32 ixgbe_set_i2c_data(struct ixgbe_hw *hw, u32 *i2cctl, bool data); [all …]
|
D | ixgbe_common.c | 38 static s32 ixgbe_acquire_eeprom(struct ixgbe_hw *hw); 39 static s32 ixgbe_get_eeprom_semaphore(struct ixgbe_hw *hw); 40 static void ixgbe_release_eeprom_semaphore(struct ixgbe_hw *hw); 41 static s32 ixgbe_ready_eeprom(struct ixgbe_hw *hw); 42 static void ixgbe_standby_eeprom(struct ixgbe_hw *hw); 43 static void ixgbe_shift_out_eeprom_bits(struct ixgbe_hw *hw, u16 data, 45 static u16 ixgbe_shift_in_eeprom_bits(struct ixgbe_hw *hw, u16 count); 46 static void ixgbe_raise_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 47 static void ixgbe_lower_eeprom_clk(struct ixgbe_hw *hw, u32 *eec); 48 static void ixgbe_release_eeprom(struct ixgbe_hw *hw); [all …]
|
D | ixgbe_x540.c | 44 static s32 ixgbe_update_flash_X540(struct ixgbe_hw *hw); 45 static s32 ixgbe_poll_flash_update_done_X540(struct ixgbe_hw *hw); 46 static s32 ixgbe_get_swfw_sync_semaphore(struct ixgbe_hw *hw); 47 static void ixgbe_release_swfw_sync_semaphore(struct ixgbe_hw *hw); 49 enum ixgbe_media_type ixgbe_get_media_type_X540(struct ixgbe_hw *hw) in ixgbe_get_media_type_X540() argument 54 s32 ixgbe_get_invariants_X540(struct ixgbe_hw *hw) in ixgbe_get_invariants_X540() argument 56 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X540() 57 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X540() 60 if (!ixgbe_mng_present(hw)) in ixgbe_get_invariants_X540() 69 mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw); in ixgbe_get_invariants_X540() [all …]
|
D | ixgbe_82599.c | 44 static void ixgbe_disable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 45 static void ixgbe_enable_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 46 static void ixgbe_flap_tx_laser_multispeed_fiber(struct ixgbe_hw *hw); 49 static s32 ixgbe_setup_mac_link_smartspeed(struct ixgbe_hw *hw, 52 static void ixgbe_stop_mac_link_on_d3_82599(struct ixgbe_hw *hw); 53 static s32 ixgbe_start_mac_link_82599(struct ixgbe_hw *hw, 55 static s32 ixgbe_setup_mac_link_82599(struct ixgbe_hw *hw, 58 static s32 ixgbe_setup_copper_link_82599(struct ixgbe_hw *hw, 61 static s32 ixgbe_verify_fw_version_82599(struct ixgbe_hw *hw); 62 static s32 ixgbe_read_i2c_byte_82599(struct ixgbe_hw *hw, u8 byte_offset, [all …]
|
D | ixgbe_x550.c | 29 static s32 ixgbe_get_invariants_X550_x(struct ixgbe_hw *hw) in ixgbe_get_invariants_X550_x() argument 31 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_X550_x() 32 struct ixgbe_phy_info *phy = &hw->phy; in ixgbe_get_invariants_X550_x() 35 ixgbe_get_invariants_X540(hw); in ixgbe_get_invariants_X550_x() 37 if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper) in ixgbe_get_invariants_X550_x() 46 static void ixgbe_setup_mux_ctl(struct ixgbe_hw *hw) in ixgbe_setup_mux_ctl() argument 48 u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_setup_mux_ctl() 50 if (hw->bus.lan_id) { in ixgbe_setup_mux_ctl() 55 IXGBE_WRITE_REG(hw, IXGBE_ESDP, esdp); in ixgbe_setup_mux_ctl() 56 IXGBE_WRITE_FLUSH(hw); in ixgbe_setup_mux_ctl() [all …]
|
D | ixgbe_82598.c | 43 static s32 ixgbe_setup_copper_link_82598(struct ixgbe_hw *hw, 46 static s32 ixgbe_read_i2c_eeprom_82598(struct ixgbe_hw *hw, u8 byte_offset, 59 static void ixgbe_set_pcie_completion_timeout(struct ixgbe_hw *hw) in ixgbe_set_pcie_completion_timeout() argument 61 u32 gcr = IXGBE_READ_REG(hw, IXGBE_GCR); in ixgbe_set_pcie_completion_timeout() 64 if (ixgbe_removed(hw->hw_addr)) in ixgbe_set_pcie_completion_timeout() 85 pcie_devctl2 = ixgbe_read_pci_cfg_word(hw, IXGBE_PCI_DEVICE_CONTROL2); in ixgbe_set_pcie_completion_timeout() 87 ixgbe_write_pci_cfg_word(hw, IXGBE_PCI_DEVICE_CONTROL2, pcie_devctl2); in ixgbe_set_pcie_completion_timeout() 91 IXGBE_WRITE_REG(hw, IXGBE_GCR, gcr); in ixgbe_set_pcie_completion_timeout() 94 static s32 ixgbe_get_invariants_82598(struct ixgbe_hw *hw) in ixgbe_get_invariants_82598() argument 96 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_get_invariants_82598() [all …]
|
D | ixgbe_common.h | 35 u16 ixgbe_get_pcie_msix_count_generic(struct ixgbe_hw *hw); 36 s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw); 37 s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw); 38 s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw); 39 s32 ixgbe_start_hw_gen2(struct ixgbe_hw *hw); 40 s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw); 41 s32 ixgbe_read_pba_string_generic(struct ixgbe_hw *hw, u8 *pba_num, 43 s32 ixgbe_get_mac_addr_generic(struct ixgbe_hw *hw, u8 *mac_addr); 46 s32 ixgbe_get_bus_info_generic(struct ixgbe_hw *hw); 47 void ixgbe_set_lan_id_multi_port_pcie(struct ixgbe_hw *hw); [all …]
|
D | ixgbe_mbx.c | 43 s32 ixgbe_read_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) in ixgbe_read_mbx() argument 45 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_mbx() 54 return mbx->ops.read(hw, msg, size, mbx_id); in ixgbe_read_mbx() 66 s32 ixgbe_write_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) in ixgbe_write_mbx() argument 68 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_mbx() 76 return mbx->ops.write(hw, msg, size, mbx_id); in ixgbe_write_mbx() 86 s32 ixgbe_check_for_msg(struct ixgbe_hw *hw, u16 mbx_id) in ixgbe_check_for_msg() argument 88 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_msg() 93 return mbx->ops.check_for_msg(hw, mbx_id); in ixgbe_check_for_msg() 103 s32 ixgbe_check_for_ack(struct ixgbe_hw *hw, u16 mbx_id) in ixgbe_check_for_ack() argument [all …]
|
D | ixgbe_dcb_82598.c | 41 s32 ixgbe_dcb_config_rx_arbiter_82598(struct ixgbe_hw *hw, in ixgbe_dcb_config_rx_arbiter_82598() argument 51 reg = IXGBE_READ_REG(hw, IXGBE_RUPPBMR) | IXGBE_RUPPBMR_MQA; in ixgbe_dcb_config_rx_arbiter_82598() 52 IXGBE_WRITE_REG(hw, IXGBE_RUPPBMR, reg); in ixgbe_dcb_config_rx_arbiter_82598() 54 reg = IXGBE_READ_REG(hw, IXGBE_RMCS); in ixgbe_dcb_config_rx_arbiter_82598() 62 IXGBE_WRITE_REG(hw, IXGBE_RMCS, reg); in ixgbe_dcb_config_rx_arbiter_82598() 74 IXGBE_WRITE_REG(hw, IXGBE_RT2CR(i), reg); in ixgbe_dcb_config_rx_arbiter_82598() 77 reg = IXGBE_READ_REG(hw, IXGBE_RDRXCTL); in ixgbe_dcb_config_rx_arbiter_82598() 81 IXGBE_WRITE_REG(hw, IXGBE_RDRXCTL, reg); in ixgbe_dcb_config_rx_arbiter_82598() 83 reg = IXGBE_READ_REG(hw, IXGBE_RXCTRL); in ixgbe_dcb_config_rx_arbiter_82598() 86 IXGBE_WRITE_REG(hw, IXGBE_RXCTRL, reg); in ixgbe_dcb_config_rx_arbiter_82598() [all …]
|
D | ixgbe_ethtool.c | 158 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_get_settings() local 164 hw->mac.ops.get_link_capabilities(hw, &supported_link, &autoneg); in ixgbe_get_settings() 177 if (hw->phy.autoneg_advertised) { in ixgbe_get_settings() 178 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_100_FULL) in ixgbe_get_settings() 180 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_10GB_FULL) in ixgbe_get_settings() 182 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_2_5GB_FULL) in ixgbe_get_settings() 184 if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_1GB_FULL) in ixgbe_get_settings() 195 if (hw->phy.multispeed_fiber && !autoneg) { in ixgbe_get_settings() 211 switch (adapter->hw.phy.type) { in ixgbe_get_settings() 233 switch (adapter->hw.phy.sfp_type) { in ixgbe_get_settings() [all …]
|
D | ixgbe_main.c | 178 static bool ixgbe_check_cfg_remove(struct ixgbe_hw *hw, struct pci_dev *pdev); 199 ixgbe_check_cfg_remove(&adapter->hw, parent_dev)) in ixgbe_read_pci_cfg_word_parent() 206 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_get_parent_bus_info() local 210 hw->bus.type = ixgbe_bus_type_pci_express; in ixgbe_get_parent_bus_info() 221 hw->bus.width = ixgbe_convert_bus_width(link_status); in ixgbe_get_parent_bus_info() 222 hw->bus.speed = ixgbe_convert_bus_speed(link_status); in ixgbe_get_parent_bus_info() 236 static inline bool ixgbe_pcie_from_parent(struct ixgbe_hw *hw) in ixgbe_pcie_from_parent() argument 238 switch (hw->device_id) { in ixgbe_pcie_from_parent() 250 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_check_minimum_link() local 260 if (hw->bus.type == ixgbe_bus_type_internal) in ixgbe_check_minimum_link() [all …]
|
D | ixgbe_dcb_82599.c | 44 s32 ixgbe_dcb_config_rx_arbiter_82599(struct ixgbe_hw *hw, in ixgbe_dcb_config_rx_arbiter_82599() argument 61 IXGBE_WRITE_REG(hw, IXGBE_RTRPCS, reg); in ixgbe_dcb_config_rx_arbiter_82599() 67 IXGBE_WRITE_REG(hw, IXGBE_RTRUP2TC, reg); in ixgbe_dcb_config_rx_arbiter_82599() 80 IXGBE_WRITE_REG(hw, IXGBE_RTRPT4C(i), reg); in ixgbe_dcb_config_rx_arbiter_82599() 88 IXGBE_WRITE_REG(hw, IXGBE_RTRPCS, reg); in ixgbe_dcb_config_rx_arbiter_82599() 103 s32 ixgbe_dcb_config_tx_desc_arbiter_82599(struct ixgbe_hw *hw, in ixgbe_dcb_config_tx_desc_arbiter_82599() argument 114 IXGBE_WRITE_REG(hw, IXGBE_RTTDQSEL, i); in ixgbe_dcb_config_tx_desc_arbiter_82599() 115 IXGBE_WRITE_REG(hw, IXGBE_RTTDT1C, 0); in ixgbe_dcb_config_tx_desc_arbiter_82599() 131 IXGBE_WRITE_REG(hw, IXGBE_RTTDT2C(i), reg); in ixgbe_dcb_config_tx_desc_arbiter_82599() 139 IXGBE_WRITE_REG(hw, IXGBE_RTTDCS, reg); in ixgbe_dcb_config_tx_desc_arbiter_82599() [all …]
|
D | ixgbe_phy.h | 143 s32 ixgbe_identify_phy_generic(struct ixgbe_hw *hw); 144 s32 ixgbe_reset_phy_generic(struct ixgbe_hw *hw); 145 s32 ixgbe_read_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr, 147 s32 ixgbe_write_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr, 149 s32 ixgbe_read_phy_reg_mdi(struct ixgbe_hw *hw, u32 reg_addr, 151 s32 ixgbe_write_phy_reg_mdi(struct ixgbe_hw *hw, u32 reg_addr, 153 s32 ixgbe_setup_phy_link_generic(struct ixgbe_hw *hw); 154 s32 ixgbe_setup_phy_link_speed_generic(struct ixgbe_hw *hw, 157 s32 ixgbe_get_copper_link_capabilities_generic(struct ixgbe_hw *hw, 160 bool ixgbe_check_reset_blocked(struct ixgbe_hw *hw); [all …]
|
D | ixgbe_ptp.c | 121 struct ixgbe_hw *hw = &adapter->hw; in ixgbe_ptp_setup_sdp() local 127 (hw->mac.type == ixgbe_mac_X540)) { in ixgbe_ptp_setup_sdp() 130 IXGBE_WRITE_REG(hw, IXGBE_TSAUXC, 0x0); in ixgbe_ptp_setup_sdp() 131 IXGBE_WRITE_FLUSH(hw); in ixgbe_ptp_setup_sdp() 133 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); in ixgbe_ptp_setup_sdp() 159 clock_edge |= (u64)IXGBE_READ_REG(hw, IXGBE_SYSTIML); in ixgbe_ptp_setup_sdp() 160 clock_edge |= (u64)IXGBE_READ_REG(hw, IXGBE_SYSTIMH) << 32; in ixgbe_ptp_setup_sdp() 170 IXGBE_WRITE_REG(hw, IXGBE_CLKTIML, clktiml); in ixgbe_ptp_setup_sdp() 171 IXGBE_WRITE_REG(hw, IXGBE_CLKTIMH, clktimh); in ixgbe_ptp_setup_sdp() 172 IXGBE_WRITE_REG(hw, IXGBE_TRGTTIML0, trgttiml); in ixgbe_ptp_setup_sdp() [all …]
|
/linux-4.4.14/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-altera.c | 71 struct altera_spi *hw = altera_spi_to_hw(spi); in altera_spi_chipsel() local 77 hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel() 78 hw->imr |= ALTERA_SPI_CONTROL_SSO_MSK; in altera_spi_chipsel() 79 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel() 83 hw->imr &= ~ALTERA_SPI_CONTROL_SSO_MSK; in altera_spi_chipsel() 84 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel() 85 writel(0, hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel() 91 hw->imr &= ~ALTERA_SPI_CONTROL_SSO_MSK; in altera_spi_chipsel() 92 writel(hw->imr, hw->base + ALTERA_SPI_CONTROL); in altera_spi_chipsel() 97 hw->base + ALTERA_SPI_SLAVE_SEL); in altera_spi_chipsel() [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 …]
|
D | spi-oc-tiny.c | 67 struct tiny_spi *hw = tiny_spi_to_hw(spi); in tiny_spi_baud() local 69 return min(DIV_ROUND_UP(hw->freq, hz * 2), (1U << hw->baudwidth)) - 1; in tiny_spi_baud() 74 struct tiny_spi *hw = tiny_spi_to_hw(spi); in tiny_spi_chipselect() local 76 if (hw->gpio_cs_count > 0) { in tiny_spi_chipselect() 77 gpio_set_value(hw->gpio_cs[spi->chip_select], in tiny_spi_chipselect() 85 struct tiny_spi *hw = tiny_spi_to_hw(spi); in tiny_spi_setup_transfer() local 86 unsigned int baud = hw->baud; in tiny_spi_setup_transfer() 89 if (t->speed_hz && t->speed_hz != hw->speed_hz) in tiny_spi_setup_transfer() 92 writel(baud, hw->base + TINY_SPI_BAUD); in tiny_spi_setup_transfer() 93 writel(hw->mode, hw->base + TINY_SPI_CONTROL); in tiny_spi_setup_transfer() [all …]
|
D | spi-s3c24xx.c | 100 struct s3c24xx_spi *hw = to_hw(spi); in s3c24xx_spi_chipsel() local 107 hw->set_cs(hw->pdata, spi->chip_select, cspol^1); in s3c24xx_spi_chipsel() 108 writeb(cs->spcon, hw->regs + S3C2410_SPCON); in s3c24xx_spi_chipsel() 113 hw->regs + S3C2410_SPCON); in s3c24xx_spi_chipsel() 114 hw->set_cs(hw->pdata, spi->chip_select, cspol); in s3c24xx_spi_chipsel() 122 struct s3c24xx_spi *hw = to_hw(spi); in s3c24xx_spi_update_state() local 147 clk = clk_get_rate(hw->clk); in s3c24xx_spi_update_state() 167 struct s3c24xx_spi *hw = to_hw(spi); in s3c24xx_spi_setupxfer() local 172 writeb(cs->sppre, hw->regs + S3C2410_SPPRE); in s3c24xx_spi_setupxfer() 180 struct s3c24xx_spi *hw = to_hw(spi); in s3c24xx_spi_setup() local [all …]
|
D | spi-sc18is602.c | 55 static int sc18is602_wait_ready(struct sc18is602 *hw, int len) in sc18is602_wait_ready() argument 58 int usecs = 1000000 * len / hw->speed + 1; in sc18is602_wait_ready() 62 err = i2c_master_recv(hw->client, dummy, 1); in sc18is602_wait_ready() 70 static int sc18is602_txrx(struct sc18is602 *hw, struct spi_message *msg, in sc18is602_txrx() argument 76 if (hw->tlen == 0) { in sc18is602_txrx() 78 hw->buffer[0] = 1 << msg->spi->chip_select; in sc18is602_txrx() 79 hw->tlen = 1; in sc18is602_txrx() 80 hw->rindex = 0; in sc18is602_txrx() 88 memcpy(&hw->buffer[hw->tlen], t->tx_buf, len); in sc18is602_txrx() 89 hw->tlen += len; in sc18is602_txrx() [all …]
|
D | spi-ppc4xx.c | 147 struct ppc4xx_spi *hw; in spi_ppc4xx_txrx() local 153 hw = spi_master_get_devdata(spi->master); in spi_ppc4xx_txrx() 155 hw->tx = t->tx_buf; in spi_ppc4xx_txrx() 156 hw->rx = t->rx_buf; in spi_ppc4xx_txrx() 157 hw->len = t->len; in spi_ppc4xx_txrx() 158 hw->count = 0; in spi_ppc4xx_txrx() 161 data = hw->tx ? hw->tx[0] : 0; in spi_ppc4xx_txrx() 162 out_8(&hw->regs->txd, data); in spi_ppc4xx_txrx() 163 out_8(&hw->regs->cr, SPI_PPC4XX_CR_STR); in spi_ppc4xx_txrx() 164 wait_for_completion(&hw->done); in spi_ppc4xx_txrx() [all …]
|
D | spi-clps711x.c | 52 struct spi_clps711x_data *hw = spi_master_get_devdata(master); in spi_clps711x_prepare_message() local 56 return regmap_update_bits(hw->syscon, SYSCON_OFFSET, SYSCON3_ADCCKNSEN, in spi_clps711x_prepare_message() 65 struct spi_clps711x_data *hw = spi_master_get_devdata(master); in spi_clps711x_transfer_one() local 68 clk_set_rate(hw->spi_clk, xfer->speed_hz ? : spi->max_speed_hz); in spi_clps711x_transfer_one() 70 hw->len = xfer->len; in spi_clps711x_transfer_one() 71 hw->bpw = xfer->bits_per_word; in spi_clps711x_transfer_one() 72 hw->tx_buf = (u8 *)xfer->tx_buf; in spi_clps711x_transfer_one() 73 hw->rx_buf = (u8 *)xfer->rx_buf; in spi_clps711x_transfer_one() 76 data = hw->tx_buf ? *hw->tx_buf++ : 0; in spi_clps711x_transfer_one() 77 writel(data | SYNCIO_FRMLEN(hw->bpw) | SYNCIO_TXFRMEN, hw->syncio); in spi_clps711x_transfer_one() [all …]
|
/linux-4.4.14/drivers/scsi/csiostor/ |
D | csio_hw.c | 102 static void csio_hw_initialize(struct csio_hw *hw); 103 static void csio_evtq_stop(struct csio_hw *hw); 104 static void csio_evtq_start(struct csio_hw *hw); 106 int csio_is_hw_ready(struct csio_hw *hw) in csio_is_hw_ready() argument 108 return csio_match_state(hw, csio_hws_ready); in csio_is_hw_ready() 111 int csio_is_hw_removing(struct csio_hw *hw) in csio_is_hw_removing() argument 113 return csio_match_state(hw, csio_hws_removing); in csio_is_hw_removing() 133 csio_hw_wait_op_done_val(struct csio_hw *hw, int reg, uint32_t mask, in csio_hw_wait_op_done_val() argument 138 val = csio_rd_reg32(hw, reg); in csio_hw_wait_op_done_val() 163 csio_hw_tp_wr_bits_indirect(struct csio_hw *hw, unsigned int addr, in csio_hw_tp_wr_bits_indirect() argument [all …]
|
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 …]
|
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 …]
|
D | csio_wr.c | 57 csio_get_flbuf_size(struct csio_hw *hw, struct csio_sge *sge, uint32_t reg) in csio_get_flbuf_size() argument 59 sge->sge_fl_buf_size[reg] = csio_rd_reg32(hw, SGE_FL_BUFFER_SIZE0_A + in csio_get_flbuf_size() 72 csio_wr_qstat_pgsz(struct csio_hw *hw) in csio_wr_qstat_pgsz() argument 74 return (hw->wrm.sge.sge_control & EGRSTATUSPAGESIZE_F) ? 128 : 64; in csio_wr_qstat_pgsz() 79 csio_wr_ring_fldb(struct csio_hw *hw, struct csio_q *flq) in csio_wr_ring_fldb() argument 87 csio_wr_reg32(hw, DBPRIO_F | QID_V(flq->un.fl.flid) | in csio_wr_ring_fldb() 96 csio_wr_sge_intr_enable(struct csio_hw *hw, uint16_t iqid) in csio_wr_sge_intr_enable() argument 98 csio_wr_reg32(hw, CIDXINC_V(0) | in csio_wr_sge_intr_enable() 114 csio_wr_fill_fl(struct csio_hw *hw, struct csio_q *flq) in csio_wr_fill_fl() argument 116 struct csio_wrm *wrm = csio_hw_to_wrm(hw); in csio_wr_fill_fl() [all …]
|
D | csio_hw_t5.c | 38 csio_t5_set_mem_win(struct csio_hw *hw, uint32_t win) in csio_t5_set_mem_win() argument 59 csio_wr_reg32(hw, mem_win_base | BIR_V(0) | in csio_t5_set_mem_win() 62 csio_rd_reg32(hw, in csio_t5_set_mem_win() 72 csio_t5_pcie_intr_handler(struct csio_hw *hw) in csio_t5_pcie_intr_handler() argument 136 fat = csio_handle_intr_status(hw, in csio_t5_pcie_intr_handler() 139 csio_handle_intr_status(hw, in csio_t5_pcie_intr_handler() 142 csio_handle_intr_status(hw, PCIE_INT_CAUSE_A, pcie_intr_info); in csio_t5_pcie_intr_handler() 144 csio_hw_fatal_err(hw); in csio_t5_pcie_intr_handler() 155 csio_t5_flash_cfg_addr(struct csio_hw *hw) in csio_t5_flash_cfg_addr() argument 173 csio_t5_mc_read(struct csio_hw *hw, int idx, uint32_t addr, __be32 *data, in csio_t5_mc_read() argument [all …]
|
D | csio_mb.c | 76 csio_mb_hello(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_hello() argument 82 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_hello() 108 csio_mb_process_hello_rsp(struct csio_hw *hw, struct csio_mb *mbp, in csio_mb_process_hello_rsp() argument 118 hw->fwrev = ntohl(rsp->fwrev); in csio_mb_process_hello_rsp() 140 csio_mb_bye(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_bye() argument 145 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_bye() 162 csio_mb_reset(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_reset() argument 168 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_reset() 193 csio_mb_params(struct csio_hw *hw, struct csio_mb *mbp, uint32_t tmo, in csio_mb_params() argument 203 CSIO_INIT_MBP(mbp, cmdp, tmo, hw, cbfn, 1); in csio_mb_params() [all …]
|
D | csio_lnode.c | 115 csio_ln_lookup_by_portid(struct csio_hw *hw, uint8_t portid) in csio_ln_lookup_by_portid() argument 117 struct csio_lnode *ln = hw->rln; in csio_ln_lookup_by_portid() 121 list_for_each(tmp, &hw->sln_head) { in csio_ln_lookup_by_portid() 138 csio_ln_lookup_by_vnpi(struct csio_hw *hw, uint32_t vnp_id) in csio_ln_lookup_by_vnpi() argument 143 if (list_empty(&hw->sln_head)) { in csio_ln_lookup_by_vnpi() 144 CSIO_INC_STATS(hw, n_lnlkup_miss); in csio_ln_lookup_by_vnpi() 148 list_for_each(tmp1, &hw->sln_head) { in csio_ln_lookup_by_vnpi() 166 CSIO_INC_STATS(hw, n_lnlkup_miss); in csio_ln_lookup_by_vnpi() 178 csio_lnode_lookup_by_wwpn(struct csio_hw *hw, uint8_t *wwpn) in csio_lnode_lookup_by_wwpn() argument 183 if (list_empty(&hw->sln_head)) { in csio_lnode_lookup_by_wwpn() [all …]
|
/linux-4.4.14/drivers/net/ethernet/atheros/alx/ |
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 …]
|
D | ethtool.c | 109 static u32 alx_get_supported_speeds(struct alx_hw *hw) in alx_get_supported_speeds() argument 116 if (alx_hw_giga(hw)) in alx_get_supported_speeds() 131 struct alx_hw *hw = &alx->hw; in alx_get_settings() local 137 if (alx_hw_giga(hw)) in alx_get_settings() 139 ecmd->supported |= alx_get_supported_speeds(hw); in alx_get_settings() 142 if (hw->adv_cfg & ADVERTISED_Autoneg) in alx_get_settings() 143 ecmd->advertising |= hw->adv_cfg; in alx_get_settings() 148 if (hw->adv_cfg & ADVERTISED_Autoneg) in alx_get_settings() 154 if (hw->flowctrl & ALX_FC_ANEG && hw->adv_cfg & ADVERTISED_Autoneg) { in alx_get_settings() 155 if (hw->flowctrl & ALX_FC_RX) { in alx_get_settings() [all …]
|
D | main.c | 60 dma_unmap_single(&alx->hw.pdev->dev, in alx_free_txbuf() 92 dma = dma_map_single(&alx->hw.pdev->dev, in alx_refill_rx_ring() 95 if (dma_mapping_error(&alx->hw.pdev->dev, dma)) { in alx_refill_rx_ring() 124 alx_write_mem16(&alx->hw, ALX_RFD_PIDX, cur); in alx_refill_rx_ring() 147 hw_read_idx = alx_read_mem16(&alx->hw, ALX_TPD_PRI0_CIDX); in alx_clean_tx_irq() 211 dma_unmap_single(&alx->hw.pdev->dev, in alx_clean_rx_irq() 268 struct alx_hw *hw = &alx->hw; in alx_poll() local 284 alx_write_mem32(hw, ALX_IMR, alx->int_mask); in alx_poll() 287 alx_post_write(hw); in alx_poll() 294 struct alx_hw *hw = &alx->hw; in alx_intr_handle() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/ |
D | i40e_adminq.c | 49 static void i40e_adminq_init_regs(struct i40e_hw *hw) in i40e_adminq_init_regs() argument 52 if (i40e_is_vf(hw)) { in i40e_adminq_init_regs() 53 hw->aq.asq.tail = I40E_VF_ATQT1; in i40e_adminq_init_regs() 54 hw->aq.asq.head = I40E_VF_ATQH1; in i40e_adminq_init_regs() 55 hw->aq.asq.len = I40E_VF_ATQLEN1; in i40e_adminq_init_regs() 56 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs() 57 hw->aq.asq.bah = I40E_VF_ATQBAH1; in i40e_adminq_init_regs() 58 hw->aq.arq.tail = I40E_VF_ARQT1; in i40e_adminq_init_regs() 59 hw->aq.arq.head = I40E_VF_ARQH1; in i40e_adminq_init_regs() 60 hw->aq.arq.len = I40E_VF_ARQLEN1; in i40e_adminq_init_regs() [all …]
|
D | i40e_prototype.h | 42 i40e_status i40evf_init_adminq(struct i40e_hw *hw); 43 i40e_status i40evf_shutdown_adminq(struct i40e_hw *hw); 44 void i40e_adminq_init_ring_data(struct i40e_hw *hw); 45 i40e_status i40evf_clean_arq_element(struct i40e_hw *hw, 48 i40e_status i40evf_asq_send_command(struct i40e_hw *hw, 53 bool i40evf_asq_done(struct i40e_hw *hw); 56 void i40evf_debug_aq(struct i40e_hw *hw, enum i40e_debug_mask mask, 59 void i40e_idle_aq(struct i40e_hw *hw); 60 void i40evf_resume_aq(struct i40e_hw *hw); 61 bool i40evf_check_asq_alive(struct i40e_hw *hw); [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/i40e/ |
D | i40e_adminq.c | 33 static void i40e_resume_aq(struct i40e_hw *hw); 51 static void i40e_adminq_init_regs(struct i40e_hw *hw) in i40e_adminq_init_regs() argument 54 if (i40e_is_vf(hw)) { in i40e_adminq_init_regs() 55 hw->aq.asq.tail = I40E_VF_ATQT1; in i40e_adminq_init_regs() 56 hw->aq.asq.head = I40E_VF_ATQH1; in i40e_adminq_init_regs() 57 hw->aq.asq.len = I40E_VF_ATQLEN1; in i40e_adminq_init_regs() 58 hw->aq.asq.bal = I40E_VF_ATQBAL1; in i40e_adminq_init_regs() 59 hw->aq.asq.bah = I40E_VF_ATQBAH1; in i40e_adminq_init_regs() 60 hw->aq.arq.tail = I40E_VF_ARQT1; in i40e_adminq_init_regs() 61 hw->aq.arq.head = I40E_VF_ARQH1; in i40e_adminq_init_regs() [all …]
|
D | i40e_nvm.c | 39 i40e_status i40e_init_nvm(struct i40e_hw *hw) in i40e_init_nvm() argument 41 struct i40e_nvm_info *nvm = &hw->nvm; in i40e_init_nvm() 49 gens = rd32(hw, I40E_GLNVM_GENS); in i40e_init_nvm() 56 fla = rd32(hw, I40E_GLNVM_FLA); in i40e_init_nvm() 64 i40e_debug(hw, I40E_DEBUG_NVM, "NVM init error: unsupported blank mode.\n"); in i40e_init_nvm() 78 i40e_status i40e_acquire_nvm(struct i40e_hw *hw, in i40e_acquire_nvm() argument 85 if (hw->nvm.blank_nvm_mode) in i40e_acquire_nvm() 88 ret_code = i40e_aq_request_resource(hw, I40E_NVM_RESOURCE_ID, access, in i40e_acquire_nvm() 91 gtime = rd32(hw, I40E_GLVFGEN_TIMER); in i40e_acquire_nvm() 94 hw->nvm.hw_semaphore_timeout = I40E_MS_TO_GTIME(time_left) + gtime; in i40e_acquire_nvm() [all …]
|
D | i40e_prototype.h | 42 i40e_status i40e_init_adminq(struct i40e_hw *hw); 43 i40e_status i40e_shutdown_adminq(struct i40e_hw *hw); 44 void i40e_adminq_init_ring_data(struct i40e_hw *hw); 45 i40e_status i40e_clean_arq_element(struct i40e_hw *hw, 48 i40e_status i40e_asq_send_command(struct i40e_hw *hw, 55 void i40e_debug_aq(struct i40e_hw *hw, enum i40e_debug_mask mask, 58 void i40e_idle_aq(struct i40e_hw *hw); 59 bool i40e_check_asq_alive(struct i40e_hw *hw); 60 i40e_status i40e_aq_queue_shutdown(struct i40e_hw *hw, bool unloading); 61 const char *i40e_aq_str(struct i40e_hw *hw, enum i40e_admin_queue_err aq_err); [all …]
|
D | i40e_lan_hmc.c | 99 i40e_status i40e_init_lan_hmc(struct i40e_hw *hw, u32 txq_num, in i40e_init_lan_hmc() argument 108 hw->hmc.signature = I40E_HMC_INFO_SIGNATURE; in i40e_init_lan_hmc() 109 hw->hmc.hmc_fn_id = hw->pf_id; in i40e_init_lan_hmc() 112 ret_code = i40e_allocate_virt_mem(hw, &hw->hmc.hmc_obj_virt_mem, in i40e_init_lan_hmc() 116 hw->hmc.hmc_obj = (struct i40e_hmc_obj_info *) in i40e_init_lan_hmc() 117 hw->hmc.hmc_obj_virt_mem.va; in i40e_init_lan_hmc() 120 full_obj = &hw->hmc.hmc_obj[I40E_HMC_LAN_FULL]; in i40e_init_lan_hmc() 127 obj = &hw->hmc.hmc_obj[I40E_HMC_LAN_TX]; in i40e_init_lan_hmc() 128 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc() 131 size_exp = rd32(hw, I40E_GLHMC_LANTXOBJSZ); in i40e_init_lan_hmc() [all …]
|
D | i40e_ptp.c | 61 struct i40e_hw *hw = &pf->hw; in i40e_ptp_read() local 66 lo = rd32(hw, I40E_PRTTSYN_TIME_L); in i40e_ptp_read() 67 hi = rd32(hw, I40E_PRTTSYN_TIME_H); in i40e_ptp_read() 85 struct i40e_hw *hw = &pf->hw; in i40e_ptp_write() local 91 wr32(hw, I40E_PRTTSYN_TIME_L, ns & 0xFFFFFFFF); in i40e_ptp_write() 92 wr32(hw, I40E_PRTTSYN_TIME_H, ns >> 32); in i40e_ptp_write() 123 struct i40e_hw *hw = &pf->hw; in i40e_ptp_adjfreq() local 144 wr32(hw, I40E_PRTTSYN_INC_L, adj & 0xFFFFFFFF); in i40e_ptp_adjfreq() 145 wr32(hw, I40E_PRTTSYN_INC_H, adj >> 32); in i40e_ptp_adjfreq() 243 struct i40e_hw *hw = &pf->hw; in i40e_ptp_rx_hang() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_hw.c | 43 static u32 ixgb_hash_mc_addr(struct ixgb_hw *hw, u8 * mc_addr); 45 static void ixgb_mta_set(struct ixgb_hw *hw, u32 hash_value); 47 static void ixgb_get_bus_info(struct ixgb_hw *hw); 49 static bool ixgb_link_reset(struct ixgb_hw *hw); 51 static void ixgb_optics_reset(struct ixgb_hw *hw); 53 static void ixgb_optics_reset_bcm(struct ixgb_hw *hw); 55 static ixgb_phy_type ixgb_identify_phy(struct ixgb_hw *hw); 57 static void ixgb_clear_hw_cntrs(struct ixgb_hw *hw); 59 static void ixgb_clear_vfta(struct ixgb_hw *hw); 61 static void ixgb_init_rx_addrs(struct ixgb_hw *hw); [all …]
|
D | ixgb_ee.c | 34 static u16 ixgb_shift_in_bits(struct ixgb_hw *hw); 36 static void ixgb_shift_out_bits(struct ixgb_hw *hw, 39 static void ixgb_standby_eeprom(struct ixgb_hw *hw); 41 static bool ixgb_wait_eeprom_command(struct ixgb_hw *hw); 43 static void ixgb_cleanup_eeprom(struct ixgb_hw *hw); 52 ixgb_raise_clock(struct ixgb_hw *hw, in ixgb_raise_clock() argument 59 IXGB_WRITE_REG(hw, EECD, *eecd_reg); in ixgb_raise_clock() 60 IXGB_WRITE_FLUSH(hw); in ixgb_raise_clock() 71 ixgb_lower_clock(struct ixgb_hw *hw, in ixgb_lower_clock() argument 78 IXGB_WRITE_REG(hw, EECD, *eecd_reg); in ixgb_lower_clock() [all …]
|
/linux-4.4.14/drivers/isdn/hardware/mISDN/ |
D | mISDNinfineon.c | 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() 304 val = readb(hw->cfg.p); in diva20x_irq() [all …]
|
D | hfcsusb.c | 55 static void hfcsusb_ph_command(struct hfcsusb *hw, u_char command); 56 static void release_hw(struct hfcsusb *hw); 57 static void reset_hfcsusb(struct hfcsusb *hw); 58 static void setPortMode(struct hfcsusb *hw); 59 static void hfcsusb_start_endpoint(struct hfcsusb *hw, int channel); 60 static void hfcsusb_stop_endpoint(struct hfcsusb *hw, int channel); 63 static void hfcsusb_ph_info(struct hfcsusb *hw); 67 ctrl_start_transfer(struct hfcsusb *hw) in ctrl_start_transfer() argument 70 printk(KERN_DEBUG "%s: %s\n", hw->name, __func__); in ctrl_start_transfer() 72 if (hw->ctrl_cnt) { in ctrl_start_transfer() [all …]
|
D | hfcpci.c | 145 struct hfcPCI_hw hw; member 155 hc->hw.int_m2 |= HFCPCI_IRQ_ENABLE; in enable_hwirq() 156 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in enable_hwirq() 162 hc->hw.int_m2 &= ~((u_char)HFCPCI_IRQ_ENABLE); in disable_hwirq() 163 Write_hfc(hc, HFCPCI_INT_M2, hc->hw.int_m2); in disable_hwirq() 174 del_timer(&hc->hw.timer); in release_io_hfcpci() 175 pci_free_consistent(hc->pdev, 0x8000, hc->hw.fifos, hc->hw.dmahandle); in release_io_hfcpci() 176 iounmap(hc->hw.pci_io); in release_io_hfcpci() 185 if (hc->hw.protocol == ISDN_P_NT_S0) { in hfcpci_setmode() 186 hc->hw.clkdel = CLKDEL_NT; /* ST-Bit delay for NT-Mode */ in hfcpci_setmode() [all …]
|
D | iohelper.h | 40 struct hws *hw = p; \ 41 return inb(hw->ap.port + off); \ 44 struct hws *hw = p; \ 45 outb(val, hw->ap.port + off); \ 48 struct hws *hw = p; \ 49 insb(hw->ap.port + off, dp, size); \ 52 struct hws *hw = p; \ 53 outsb(hw->ap.port + off, dp, size); \ 58 struct hws *hw = p; \ 59 outb(off, hw->ap.ale); \ [all …]
|
/linux-4.4.14/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 …]
|
D | atl1c_main.c | 55 static int atl1c_stop_mac(struct atl1c_hw *hw); 56 static void atl1c_disable_l0s_l1(struct atl1c_hw *hw); 57 static void atl1c_set_aspm(struct atl1c_hw *hw, u16 link_speed); 63 static int atl1c_reset_mac(struct atl1c_hw *hw); 75 static void atl1c_pcie_patch(struct atl1c_hw *hw) in atl1c_pcie_patch() argument 80 AT_READ_REG(hw, REG_MASTER_CTRL, &mst_data); in atl1c_pcie_patch() 82 AT_WRITE_REG(hw, REG_MASTER_CTRL, mst_data); in atl1c_pcie_patch() 85 if (hw->nic_type == athr_l1c || hw->nic_type == athr_l2c) { in atl1c_pcie_patch() 86 AT_READ_REG(hw, REG_PCIE_PHYMISC, &data); in atl1c_pcie_patch() 88 AT_WRITE_REG(hw, REG_PCIE_PHYMISC, data); in atl1c_pcie_patch() [all …]
|
D | atl1c_ethtool.c | 33 struct atl1c_hw *hw = &adapter->hw; in atl1c_get_settings() local 41 if (hw->link_cap_flags & ATL1C_LINK_CAP_1000M) in atl1c_get_settings() 46 ecmd->advertising |= hw->autoneg_advertised; in atl1c_get_settings() 71 struct atl1c_hw *hw = &adapter->hw; in atl1c_set_settings() local 103 if (hw->autoneg_advertised != autoneg_advertised) { in atl1c_set_settings() 104 hw->autoneg_advertised = autoneg_advertised; in atl1c_set_settings() 105 if (atl1c_restart_autoneg(hw) != 0) { in atl1c_set_settings() 138 struct atl1c_hw *hw = &adapter->hw; in atl1c_get_regs() local 145 AT_READ_REG(hw, REG_PM_CTRL, p++); in atl1c_get_regs() 146 AT_READ_REG(hw, REG_MAC_HALF_DUPLX_CTRL, p++); in atl1c_get_regs() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000/ |
D | e1000_hw.c | 35 static s32 e1000_check_downshift(struct e1000_hw *hw); 36 static s32 e1000_check_polarity(struct e1000_hw *hw, 38 static void e1000_clear_hw_cntrs(struct e1000_hw *hw); 39 static void e1000_clear_vfta(struct e1000_hw *hw); 40 static s32 e1000_config_dsp_after_link_change(struct e1000_hw *hw, 42 static s32 e1000_config_fc_after_link_up(struct e1000_hw *hw); 43 static s32 e1000_detect_gig_phy(struct e1000_hw *hw); 44 static s32 e1000_get_auto_rd_done(struct e1000_hw *hw); 45 static s32 e1000_get_cable_length(struct e1000_hw *hw, u16 *min_length, 47 static s32 e1000_get_phy_cfg_done(struct e1000_hw *hw); [all …]
|
D | e1000_ethtool.c | 110 struct e1000_hw *hw = &adapter->hw; in e1000_get_settings() local 112 if (hw->media_type == e1000_media_type_copper) { in e1000_get_settings() 122 if (hw->autoneg == 1) { in e1000_get_settings() 125 ecmd->advertising |= hw->autoneg_advertised; in e1000_get_settings() 129 ecmd->phy_address = hw->phy_addr; in e1000_get_settings() 131 if (hw->mac_type == e1000_82543) in e1000_get_settings() 147 if (hw->mac_type >= e1000_82545) in e1000_get_settings() 154 e1000_get_speed_and_duplex(hw, &adapter->link_speed, in e1000_get_settings() 170 ecmd->autoneg = ((hw->media_type == e1000_media_type_fiber) || in e1000_get_settings() 171 hw->autoneg) ? AUTONEG_ENABLE : AUTONEG_DISABLE; in e1000_get_settings() [all …]
|
/linux-4.4.14/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_api.c | 53 static void pch_gbe_plat_get_bus_info(struct pch_gbe_hw *hw) in pch_gbe_plat_get_bus_info() argument 55 hw->bus.type = pch_gbe_bus_type_pci_express; in pch_gbe_plat_get_bus_info() 56 hw->bus.speed = pch_gbe_bus_speed_2500; in pch_gbe_plat_get_bus_info() 57 hw->bus.width = pch_gbe_bus_width_pcie_x1; in pch_gbe_plat_get_bus_info() 67 static s32 pch_gbe_plat_init_hw(struct pch_gbe_hw *hw) in pch_gbe_plat_init_hw() argument 71 ret_val = pch_gbe_phy_get_id(hw); in pch_gbe_plat_init_hw() 73 struct pch_gbe_adapter *adapter = pch_gbe_hw_to_adapter(hw); in pch_gbe_plat_init_hw() 78 pch_gbe_phy_init_setting(hw); in pch_gbe_plat_init_hw() 81 pch_gbe_phy_set_rgmii(hw); in pch_gbe_plat_init_hw() 102 static void pch_gbe_plat_init_function_pointers(struct pch_gbe_hw *hw) in pch_gbe_plat_init_function_pointers() argument [all …]
|
D | pch_gbe_phy.c | 106 s32 pch_gbe_phy_get_id(struct pch_gbe_hw *hw) in pch_gbe_phy_get_id() argument 108 struct pch_gbe_adapter *adapter = pch_gbe_hw_to_adapter(hw); in pch_gbe_phy_get_id() 109 struct pch_gbe_phy_info *phy = &hw->phy; in pch_gbe_phy_get_id() 114 ret = pch_gbe_phy_read_reg_miic(hw, PHY_ID1, &phy_id1); in pch_gbe_phy_get_id() 117 ret = pch_gbe_phy_read_reg_miic(hw, PHY_ID2, &phy_id2); in pch_gbe_phy_get_id() 142 s32 pch_gbe_phy_read_reg_miic(struct pch_gbe_hw *hw, u32 offset, u16 *data) in pch_gbe_phy_read_reg_miic() argument 144 struct pch_gbe_phy_info *phy = &hw->phy; in pch_gbe_phy_read_reg_miic() 147 struct pch_gbe_adapter *adapter = pch_gbe_hw_to_adapter(hw); in pch_gbe_phy_read_reg_miic() 153 *data = pch_gbe_mac_ctrl_miim(hw, phy->addr, PCH_GBE_HAL_MIIM_READ, in pch_gbe_phy_read_reg_miic() 167 s32 pch_gbe_phy_write_reg_miic(struct pch_gbe_hw *hw, u32 offset, u16 data) in pch_gbe_phy_write_reg_miic() argument [all …]
|
D | pch_gbe_param.c | 284 struct pch_gbe_hw *hw = &adapter->hw; in pch_gbe_check_copper_options() local 324 hw->phy.autoneg_advertised = opt.def; in pch_gbe_check_copper_options() 329 hw->phy.autoneg_advertised = tmp; in pch_gbe_check_copper_options() 335 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 339 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 340 hw->mac.link_duplex = DUPLEX_HALF; in pch_gbe_check_copper_options() 347 hw->mac.autoneg = hw->mac.fc_autoneg = 1; in pch_gbe_check_copper_options() 348 hw->phy.autoneg_advertised = PHY_ADVERTISE_10_HALF | in pch_gbe_check_copper_options() 350 hw->mac.link_speed = SPEED_10; in pch_gbe_check_copper_options() 351 hw->mac.link_duplex = DUPLEX_HALF; in pch_gbe_check_copper_options() [all …]
|
D | pch_gbe_main.c | 282 static inline void pch_gbe_mac_load_mac_addr(struct pch_gbe_hw *hw) in pch_gbe_mac_load_mac_addr() argument 284 iowrite32(0x01, &hw->reg->MAC_ADDR_LOAD); in pch_gbe_mac_load_mac_addr() 293 s32 pch_gbe_mac_read_mac_addr(struct pch_gbe_hw *hw) in pch_gbe_mac_read_mac_addr() argument 295 struct pch_gbe_adapter *adapter = pch_gbe_hw_to_adapter(hw); in pch_gbe_mac_read_mac_addr() 298 adr1a = ioread32(&hw->reg->mac_adr[0].high); in pch_gbe_mac_read_mac_addr() 299 adr1b = ioread32(&hw->reg->mac_adr[0].low); in pch_gbe_mac_read_mac_addr() 301 hw->mac.addr[0] = (u8)(adr1a & 0xFF); in pch_gbe_mac_read_mac_addr() 302 hw->mac.addr[1] = (u8)((adr1a >> 8) & 0xFF); in pch_gbe_mac_read_mac_addr() 303 hw->mac.addr[2] = (u8)((adr1a >> 16) & 0xFF); in pch_gbe_mac_read_mac_addr() 304 hw->mac.addr[3] = (u8)((adr1a >> 24) & 0xFF); in pch_gbe_mac_read_mac_addr() [all …]
|
/linux-4.4.14/drivers/tty/ipwireless/ |
D | hardware.c | 30 static void ipw_send_setup_packet(struct ipw_hardware *hw); 36 static void handle_received_CTRL_packet(struct ipw_hardware *hw, 403 static void do_send_fragment(struct ipw_hardware *hw, unsigned char *data, in do_send_fragment() argument 410 BUG_ON(length > hw->ll_mtu); in do_send_fragment() 415 spin_lock_irqsave(&hw->lock, flags); in do_send_fragment() 417 hw->tx_ready = 0; in do_send_fragment() 420 if (hw->hw_version == HW_VERSION_1) { in do_send_fragment() 421 outw((unsigned short) length, hw->base_port + IODWR); in do_send_fragment() 430 outw(raw_data, hw->base_port + IODWR); in do_send_fragment() 433 outw(DCR_TXDONE, hw->base_port + IODCR); in do_send_fragment() [all …]
|
/linux-4.4.14/drivers/staging/wlan-ng/ |
D | prism2sta.c | 245 hfa384x_t *hw = (hfa384x_t *) wlandev->priv; in prism2sta_txframe() local 253 return hfa384x_drvr_txframe(hw, skb, p80211_hdr, p80211_wep); in prism2sta_txframe() 282 hfa384x_t *hw = (hfa384x_t *) wlandev->priv; in prism2sta_mlmerequest() local 372 qualmsg->link.data = le16_to_cpu(hw->qual.CQ_currBSS); in prism2sta_mlmerequest() 373 qualmsg->level.data = le16_to_cpu(hw->qual.ASL_currBSS); in prism2sta_mlmerequest() 374 qualmsg->noise.data = le16_to_cpu(hw->qual.ANL_currFC); in prism2sta_mlmerequest() 375 qualmsg->txrate.data = hw->txrate; in prism2sta_mlmerequest() 412 hfa384x_t *hw = (hfa384x_t *) wlandev->priv; in prism2sta_ifstate() local 428 result = hfa384x_drvr_start(hw); in prism2sta_ifstate() 442 hfa384x_cmd_initialize(hw); in prism2sta_ifstate() [all …]
|
D | hfa384x_usb.c | 163 static int submit_rx_urb(hfa384x_t *hw, gfp_t flags); 165 static int submit_tx_urb(hfa384x_t *hw, struct urb *tx_urb, gfp_t flags); 183 static void hfa384x_usbin_ctlx(hfa384x_t *hw, hfa384x_usbin_t *usbin, 189 static void hfa384x_usbctlxq_run(hfa384x_t *hw); 201 static int hfa384x_usbctlx_submit(hfa384x_t *hw, hfa384x_usbctlx_t *ctlx); 203 static void unlocked_usbctlx_complete(hfa384x_t *hw, hfa384x_usbctlx_t *ctlx); 210 hfa384x_usbctlx_complete_sync(hfa384x_t *hw, 215 unlocked_usbctlx_cancel_async(hfa384x_t *hw, hfa384x_usbctlx_t *ctlx); 217 static void hfa384x_cb_status(hfa384x_t *hw, const hfa384x_usbctlx_t *ctlx); 219 static void hfa384x_cb_rrid(hfa384x_t *hw, const hfa384x_usbctlx_t *ctlx); [all …]
|
D | prism2usb.c | 65 hfa384x_t *hw = NULL; in prism2sta_probe_usb() local 75 hw = wlandev->priv; in prism2sta_probe_usb() 84 hfa384x_create(hw, dev); in prism2sta_probe_usb() 85 hw->wlandev = wlandev; in prism2sta_probe_usb() 94 result = hfa384x_corereset(hw, in prism2sta_probe_usb() 127 kfree(hw); in prism2sta_probe_usb() 146 hfa384x_t *hw = wlandev->priv; in prism2sta_disconnect_usb() local 148 if (!hw) in prism2sta_disconnect_usb() 151 spin_lock_irqsave(&hw->ctlxq.lock, flags); in prism2sta_disconnect_usb() 154 list_splice_init(&hw->ctlxq.reapable, &cleanlist); in prism2sta_disconnect_usb() [all …]
|
D | prism2mgmt.c | 119 hfa384x_t *hw = wlandev->priv; in prism2mgmt_scan() local 128 if (HFA384x_FIRMWARE_VERSION(hw->ident_sta_fw.major, in prism2mgmt_scan() 129 hw->ident_sta_fw.minor, in prism2mgmt_scan() 130 hw->ident_sta_fw.variant) < in prism2mgmt_scan() 142 result = hfa384x_drvr_getconfig16(hw, in prism2mgmt_scan() 154 result = hfa384x_drvr_setconfig16(hw, in prism2mgmt_scan() 167 if (HFA384x_FIRMWARE_VERSION(hw->ident_sta_fw.major, in prism2mgmt_scan() 168 hw->ident_sta_fw.minor, in prism2mgmt_scan() 169 hw->ident_sta_fw.variant) > in prism2mgmt_scan() 177 hfa384x_drvr_setconfig16(hw, HFA384x_RID_CNFPASSIVESCANCTRL, in prism2mgmt_scan() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | phy.c | 24 static s32 e1000_wait_autoneg(struct e1000_hw *hw); 25 static s32 e1000_access_phy_wakeup_reg_bm(struct e1000_hw *hw, u32 offset, 28 static s32 e1000_access_phy_debug_regs_hv(struct e1000_hw *hw, u32 offset, 61 s32 e1000e_check_reset_block_generic(struct e1000_hw *hw) in e1000e_check_reset_block_generic() argument 77 s32 e1000e_get_phy_id(struct e1000_hw *hw) in e1000e_get_phy_id() argument 79 struct e1000_phy_info *phy = &hw->phy; in e1000e_get_phy_id() 88 ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); in e1000e_get_phy_id() 94 ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); in e1000e_get_phy_id() 116 s32 e1000e_phy_reset_dsp(struct e1000_hw *hw) in e1000e_phy_reset_dsp() argument 120 ret_val = e1e_wphy(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); in e1000e_phy_reset_dsp() [all …]
|
D | ich8lan.c | 115 static void e1000_clear_hw_cntrs_ich8lan(struct e1000_hw *hw); 116 static void e1000_initialize_hw_bits_ich8lan(struct e1000_hw *hw); 117 static s32 e1000_erase_flash_bank_ich8lan(struct e1000_hw *hw, u32 bank); 118 static s32 e1000_retry_write_flash_byte_ich8lan(struct e1000_hw *hw, 120 static s32 e1000_read_flash_byte_ich8lan(struct e1000_hw *hw, u32 offset, 122 static s32 e1000_read_flash_word_ich8lan(struct e1000_hw *hw, u32 offset, 124 static s32 e1000_read_flash_data_ich8lan(struct e1000_hw *hw, u32 offset, 126 static s32 e1000_read_flash_data32_ich8lan(struct e1000_hw *hw, u32 offset, 128 static s32 e1000_read_flash_dword_ich8lan(struct e1000_hw *hw, 130 static s32 e1000_write_flash_data32_ich8lan(struct e1000_hw *hw, [all …]
|
D | mac.h | 25 s32 e1000e_blink_led_generic(struct e1000_hw *hw); 26 s32 e1000e_check_for_copper_link(struct e1000_hw *hw); 27 s32 e1000e_check_for_fiber_link(struct e1000_hw *hw); 28 s32 e1000e_check_for_serdes_link(struct e1000_hw *hw); 29 s32 e1000e_cleanup_led_generic(struct e1000_hw *hw); 30 s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw); 31 s32 e1000e_disable_pcie_master(struct e1000_hw *hw); 32 s32 e1000e_force_mac_fc(struct e1000_hw *hw); 33 s32 e1000e_get_auto_rd_done(struct e1000_hw *hw); 34 s32 e1000e_get_bus_info_pcie(struct e1000_hw *hw); [all …]
|
D | 80003es2lan.c | 39 static s32 e1000_setup_copper_link_80003es2lan(struct e1000_hw *hw); 40 static s32 e1000_acquire_swfw_sync_80003es2lan(struct e1000_hw *hw, u16 mask); 41 static void e1000_release_swfw_sync_80003es2lan(struct e1000_hw *hw, u16 mask); 42 static void e1000_initialize_hw_bits_80003es2lan(struct e1000_hw *hw); 43 static void e1000_clear_hw_cntrs_80003es2lan(struct e1000_hw *hw); 44 static s32 e1000_cfg_kmrn_1000_80003es2lan(struct e1000_hw *hw); 45 static s32 e1000_cfg_kmrn_10_100_80003es2lan(struct e1000_hw *hw, u16 duplex); 46 static s32 e1000_read_kmrn_reg_80003es2lan(struct e1000_hw *hw, u32 offset, 48 static s32 e1000_write_kmrn_reg_80003es2lan(struct e1000_hw *hw, u32 offset, 50 static void e1000_power_down_phy_copper_80003es2lan(struct e1000_hw *hw); [all …]
|
D | phy.h | 25 s32 e1000e_check_downshift(struct e1000_hw *hw); 26 s32 e1000_check_polarity_m88(struct e1000_hw *hw); 27 s32 e1000_check_polarity_igp(struct e1000_hw *hw); 28 s32 e1000_check_polarity_ife(struct e1000_hw *hw); 29 s32 e1000e_check_reset_block_generic(struct e1000_hw *hw); 30 s32 e1000e_copper_link_setup_igp(struct e1000_hw *hw); 31 s32 e1000e_copper_link_setup_m88(struct e1000_hw *hw); 32 s32 e1000e_phy_force_speed_duplex_igp(struct e1000_hw *hw); 33 s32 e1000e_phy_force_speed_duplex_m88(struct e1000_hw *hw); 34 s32 e1000_phy_force_speed_duplex_ife(struct e1000_hw *hw); [all …]
|
D | 82571.c | 40 static s32 e1000_get_phy_id_82571(struct e1000_hw *hw); 41 static s32 e1000_setup_copper_link_82571(struct e1000_hw *hw); 42 static s32 e1000_setup_fiber_serdes_link_82571(struct e1000_hw *hw); 43 static s32 e1000_check_for_serdes_link_82571(struct e1000_hw *hw); 44 static s32 e1000_write_nvm_eewr_82571(struct e1000_hw *hw, u16 offset, 46 static s32 e1000_fix_nvm_checksum_82571(struct e1000_hw *hw); 47 static void e1000_initialize_hw_bits_82571(struct e1000_hw *hw); 48 static void e1000_clear_hw_cntrs_82571(struct e1000_hw *hw); 49 static bool e1000_check_mng_mode_82574(struct e1000_hw *hw); 50 static s32 e1000_led_on_82574(struct e1000_hw *hw); [all …]
|
D | mac.c | 32 s32 e1000e_get_bus_info_pcie(struct e1000_hw *hw) in e1000e_get_bus_info_pcie() argument 34 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() 35 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 36 struct e1000_adapter *adapter = hw->adapter; in e1000e_get_bus_info_pcie() 51 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie() 64 void e1000_set_lan_id_multi_port_pcie(struct e1000_hw *hw) in e1000_set_lan_id_multi_port_pcie() argument 66 struct e1000_bus_info *bus = &hw->bus; in e1000_set_lan_id_multi_port_pcie() 82 void e1000_set_lan_id_single_port(struct e1000_hw *hw) in e1000_set_lan_id_single_port() argument 84 struct e1000_bus_info *bus = &hw->bus; in e1000_set_lan_id_single_port() 96 void e1000_clear_vfta_generic(struct e1000_hw *hw) in e1000_clear_vfta_generic() argument [all …]
|
D | nvm.c | 31 static void e1000_raise_eec_clk(struct e1000_hw *hw, u32 *eecd) in e1000_raise_eec_clk() argument 36 udelay(hw->nvm.delay_usec); in e1000_raise_eec_clk() 46 static void e1000_lower_eec_clk(struct e1000_hw *hw, u32 *eecd) in e1000_lower_eec_clk() argument 51 udelay(hw->nvm.delay_usec); in e1000_lower_eec_clk() 64 static void e1000_shift_out_eec_bits(struct e1000_hw *hw, u16 data, u16 count) in e1000_shift_out_eec_bits() argument 66 struct e1000_nvm_info *nvm = &hw->nvm; in e1000_shift_out_eec_bits() 85 e1000_raise_eec_clk(hw, &eecd); in e1000_shift_out_eec_bits() 86 e1000_lower_eec_clk(hw, &eecd); in e1000_shift_out_eec_bits() 106 static u16 e1000_shift_in_eec_bits(struct e1000_hw *hw, u16 count) in e1000_shift_in_eec_bits() argument 118 e1000_raise_eec_clk(hw, &eecd); in e1000_shift_in_eec_bits() [all …]
|
D | manage.c | 56 static s32 e1000_mng_enable_host_if(struct e1000_hw *hw) in e1000_mng_enable_host_if() argument 61 if (!hw->mac.arc_subsystem_valid) { in e1000_mng_enable_host_if() 95 bool e1000e_check_mng_mode_generic(struct e1000_hw *hw) in e1000e_check_mng_mode_generic() argument 110 bool e1000e_enable_tx_pkt_filtering(struct e1000_hw *hw) in e1000e_enable_tx_pkt_filtering() argument 112 struct e1000_host_mng_dhcp_cookie *hdr = &hw->mng_cookie; in e1000e_enable_tx_pkt_filtering() 113 u32 *buffer = (u32 *)&hw->mng_cookie; in e1000e_enable_tx_pkt_filtering() 118 hw->mac.tx_pkt_filtering = true; in e1000e_enable_tx_pkt_filtering() 121 if (!hw->mac.ops.check_mng_mode(hw)) { in e1000e_enable_tx_pkt_filtering() 122 hw->mac.tx_pkt_filtering = false; in e1000e_enable_tx_pkt_filtering() 123 return hw->mac.tx_pkt_filtering; in e1000e_enable_tx_pkt_filtering() [all …]
|
/linux-4.4.14/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_hw.c | 32 int atl1e_check_eeprom_exist(struct atl1e_hw *hw) in atl1e_check_eeprom_exist() argument 36 value = AT_READ_REG(hw, REG_SPI_FLASH_CTRL); in atl1e_check_eeprom_exist() 39 AT_WRITE_REG(hw, REG_SPI_FLASH_CTRL, value); in atl1e_check_eeprom_exist() 41 value = AT_READ_REGW(hw, REG_PCIE_CAP_LIST); in atl1e_check_eeprom_exist() 45 void atl1e_hw_set_mac_addr(struct atl1e_hw *hw) in atl1e_hw_set_mac_addr() argument 53 value = (((u32)hw->mac_addr[2]) << 24) | in atl1e_hw_set_mac_addr() 54 (((u32)hw->mac_addr[3]) << 16) | in atl1e_hw_set_mac_addr() 55 (((u32)hw->mac_addr[4]) << 8) | in atl1e_hw_set_mac_addr() 56 (((u32)hw->mac_addr[5])) ; in atl1e_hw_set_mac_addr() 57 AT_WRITE_REG_ARRAY(hw, REG_MAC_STA_ADDR, 0, value); in atl1e_hw_set_mac_addr() [all …]
|
D | atl1e_ethtool.c | 33 struct atl1e_hw *hw = &adapter->hw; in atl1e_get_settings() local 41 if (hw->nic_type == athr_l1e) in atl1e_get_settings() 47 ecmd->advertising |= hw->autoneg_advertised; in atl1e_get_settings() 72 struct atl1e_hw *hw = &adapter->hw; in atl1e_set_settings() local 81 if (hw->nic_type == athr_l1e) { in atl1e_set_settings() 82 hw->autoneg_advertised = in atl1e_set_settings() 92 hw->autoneg_advertised = in atl1e_set_settings() 95 ecmd->advertising = hw->autoneg_advertised | in atl1e_set_settings() 98 adv4 = hw->mii_autoneg_adv_reg & ~ADVERTISE_ALL; in atl1e_set_settings() 99 adv9 = hw->mii_1000t_ctrl_reg & ~MII_AT001_CR_1000T_SPEED_MASK; in atl1e_set_settings() [all …]
|
/linux-4.4.14/drivers/isdn/hisax/ |
D | hfc4s8s_l1.c | 151 struct _hfc4s8s_hw *hw; /* pointer to hardware area */ member 274 Read_hfc8_stable(hfc4s8s_hw *hw, int reg) in Read_hfc8_stable() argument 278 ref8 = Read_hfc8(hw, reg); in Read_hfc8_stable() 279 while (((in8 = Read_hfc8(hw, reg)) != ref8)) { in Read_hfc8_stable() 286 Read_hfc16_stable(hfc4s8s_hw *hw, int reg) in Read_hfc16_stable() argument 291 ref16 = Read_hfc16(hw, reg); in Read_hfc16_stable() 292 while (((in16 = Read_hfc16(hw, reg)) != ref16)) { in Read_hfc16_stable() 319 l1->hw->mr.r_irq_fifo_blx[l1->st_num] |= in dch_l2l1() 322 schedule_work(&l1->hw->tqueue); in dch_l2l1() 335 Write_hfc8(l1->hw, R_ST_SEL, in dch_l2l1() [all …]
|
D | sedlbauer.c | 156 return (readreg(cs->hw.sedl.adr, cs->hw.sedl.isac, offset)); in ReadISAC() 162 writereg(cs->hw.sedl.adr, cs->hw.sedl.isac, offset, value); in WriteISAC() 168 readfifo(cs->hw.sedl.adr, cs->hw.sedl.isac, 0, data, size); in ReadISACfifo() 174 writefifo(cs->hw.sedl.adr, cs->hw.sedl.isac, 0, data, size); in WriteISACfifo() 180 return (readreg(cs->hw.sedl.adr, cs->hw.sedl.isac, offset | 0x80)); in ReadISAC_IPAC() 186 writereg(cs->hw.sedl.adr, cs->hw.sedl.isac, offset | 0x80, value); in WriteISAC_IPAC() 192 readfifo(cs->hw.sedl.adr, cs->hw.sedl.isac, 0x80, data, size); in ReadISACfifo_IPAC() 198 writefifo(cs->hw.sedl.adr, cs->hw.sedl.isac, 0x80, data, size); in WriteISACfifo_IPAC() 204 return (readreg(cs->hw.sedl.adr, in ReadHSCX() 205 cs->hw.sedl.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX() [all …]
|
D | elsa.c | 178 return (readreg(cs->hw.elsa.ale, cs->hw.elsa.isac, offset)); in ReadISAC() 184 writereg(cs->hw.elsa.ale, cs->hw.elsa.isac, offset, value); in WriteISAC() 190 readfifo(cs->hw.elsa.ale, cs->hw.elsa.isac, 0, data, size); in ReadISACfifo() 196 writefifo(cs->hw.elsa.ale, cs->hw.elsa.isac, 0, data, size); in WriteISACfifo() 202 return (readreg(cs->hw.elsa.ale, cs->hw.elsa.isac, offset + 0x80)); in ReadISAC_IPAC() 208 writereg(cs->hw.elsa.ale, cs->hw.elsa.isac, offset | 0x80, value); in WriteISAC_IPAC() 214 readfifo(cs->hw.elsa.ale, cs->hw.elsa.isac, 0x80, data, size); in ReadISACfifo_IPAC() 220 writefifo(cs->hw.elsa.ale, cs->hw.elsa.isac, 0x80, data, size); in WriteISACfifo_IPAC() 226 return (readreg(cs->hw.elsa.ale, in ReadHSCX() 227 cs->hw.elsa.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX() [all …]
|
D | avm_a1.c | 58 return (readreg(cs->hw.avm.isac, offset)); in ReadISAC() 64 writereg(cs->hw.avm.isac, offset, value); in WriteISAC() 70 read_fifo(cs->hw.avm.isacfifo, data, size); in ReadISACfifo() 76 write_fifo(cs->hw.avm.isacfifo, data, size); in WriteISACfifo() 82 return (readreg(cs->hw.avm.hscx[hscx], offset)); in ReadHSCX() 88 writereg(cs->hw.avm.hscx[hscx], offset, value); in WriteHSCX() 95 #define READHSCX(cs, nr, reg) readreg(cs->hw.avm.hscx[nr], reg) 96 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.avm.hscx[nr], reg, data) 97 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo(cs->hw.avm.hscxfifo[nr], ptr, cnt) 98 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo(cs->hw.avm.hscxfifo[nr], ptr, cnt) [all …]
|
D | netjet.c | 35 cs->hw.njet.auxd &= 0xfc; in NETjet_ReadIC() 36 cs->hw.njet.auxd |= (offset >> 4) & 3; in NETjet_ReadIC() 37 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_ReadIC() 38 ret = bytein(cs->hw.njet.isac + ((offset & 0xf) << 2)); in NETjet_ReadIC() 45 cs->hw.njet.auxd &= 0xfc; in NETjet_WriteIC() 46 cs->hw.njet.auxd |= (offset >> 4) & 3; in NETjet_WriteIC() 47 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_WriteIC() 48 byteout(cs->hw.njet.isac + ((offset & 0xf) << 2), value); in NETjet_WriteIC() 54 cs->hw.njet.auxd &= 0xfc; in NETjet_ReadICfifo() 55 byteout(cs->hw.njet.auxa, cs->hw.njet.auxd); in NETjet_ReadICfifo() [all …]
|
D | asuscom.c | 80 return (readreg(cs->hw.asus.adr, cs->hw.asus.isac, offset)); in ReadISAC() 86 writereg(cs->hw.asus.adr, cs->hw.asus.isac, offset, value); in WriteISAC() 92 readfifo(cs->hw.asus.adr, cs->hw.asus.isac, 0, data, size); in ReadISACfifo() 98 writefifo(cs->hw.asus.adr, cs->hw.asus.isac, 0, data, size); in WriteISACfifo() 104 return (readreg(cs->hw.asus.adr, cs->hw.asus.isac, offset | 0x80)); in ReadISAC_IPAC() 110 writereg(cs->hw.asus.adr, cs->hw.asus.isac, offset | 0x80, value); in WriteISAC_IPAC() 116 readfifo(cs->hw.asus.adr, cs->hw.asus.isac, 0x80, data, size); in ReadISACfifo_IPAC() 122 writefifo(cs->hw.asus.adr, cs->hw.asus.isac, 0x80, data, size); in WriteISACfifo_IPAC() 128 return (readreg(cs->hw.asus.adr, in ReadHSCX() 129 cs->hw.asus.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX() [all …]
|
D | enternow_pci.c | 101 return (inb(cs->hw.njet.isac + 4 * offset)); in ReadByteAmd7930() 105 outb(offset, cs->hw.njet.isac + 4 * AMD_CR); in ReadByteAmd7930() 106 return (inb(cs->hw.njet.isac + 4 * AMD_DR)); in ReadByteAmd7930() 116 outb(value, cs->hw.njet.isac + 4 * offset); in WriteByteAmd7930() 120 outb(offset, cs->hw.njet.isac + 4 * AMD_CR); in WriteByteAmd7930() 121 outb(value, cs->hw.njet.isac + 4 * AMD_DR); in WriteByteAmd7930() 129 outb(0x00, cs->hw.njet.base + NETJET_IRQMASK1); in enpci_setIrqMask() 131 outb(TJ_AMD_IRQ, cs->hw.njet.base + NETJET_IRQMASK1); in enpci_setIrqMask() 156 cs->hw.njet.ctrl_reg = 0x07; in reset_enpci() 157 outb(cs->hw.njet.ctrl_reg, cs->hw.njet.base + NETJET_CTRL); in reset_enpci() [all …]
|
D | teles3.c | 58 return (readreg(cs->hw.teles3.isac, offset)); in ReadISAC() 64 writereg(cs->hw.teles3.isac, offset, value); in WriteISAC() 70 read_fifo(cs->hw.teles3.isacfifo, data, size); in ReadISACfifo() 76 write_fifo(cs->hw.teles3.isacfifo, data, size); in WriteISACfifo() 82 return (readreg(cs->hw.teles3.hscx[hscx], offset)); in ReadHSCX() 88 writereg(cs->hw.teles3.hscx[hscx], offset, value); in WriteHSCX() 95 #define READHSCX(cs, nr, reg) readreg(cs->hw.teles3.hscx[nr], reg) 96 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.teles3.hscx[nr], reg, data) 97 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo(cs->hw.teles3.hscxfifo[nr], ptr, cnt) 98 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo(cs->hw.teles3.hscxfifo[nr], ptr, cnt) [all …]
|
D | niccy.c | 80 return readreg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset); in ReadISAC() 85 writereg(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, offset, value); in WriteISAC() 90 readfifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in ReadISACfifo() 95 writefifo(cs->hw.niccy.isac_ale, cs->hw.niccy.isac, 0, data, size); in WriteISACfifo() 100 return readreg(cs->hw.niccy.hscx_ale, in ReadHSCX() 101 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0)); in ReadHSCX() 107 writereg(cs->hw.niccy.hscx_ale, in WriteHSCX() 108 cs->hw.niccy.hscx, offset + (hscx ? 0x40 : 0), value); in WriteHSCX() 111 #define READHSCX(cs, nr, reg) readreg(cs->hw.niccy.hscx_ale, \ 112 cs->hw.niccy.hscx, reg + (nr ? 0x40 : 0)) [all …]
|
D | saphir.c | 70 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset)); in ReadISAC() 76 writereg(cs->hw.saphir.ale, cs->hw.saphir.isac, offset, value); in WriteISAC() 82 readfifo(cs->hw.saphir.ale, cs->hw.saphir.isac, 0, data, size); in ReadISACfifo() 88 writefifo(cs->hw.saphir.ale, cs->hw.saphir.isac, 0, data, size); in WriteISACfifo() 94 return (readreg(cs->hw.saphir.ale, cs->hw.saphir.hscx, in ReadHSCX() 101 writereg(cs->hw.saphir.ale, cs->hw.saphir.hscx, in WriteHSCX() 105 #define READHSCX(cs, nr, reg) readreg(cs->hw.saphir.ale, \ 106 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0)) 107 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.saphir.ale, \ 108 cs->hw.saphir.hscx, reg + (nr ? 0x40 : 0), data) [all …]
|
D | diva.c | 134 return (readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset)); in ReadISAC() 140 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset, value); in WriteISAC() 146 readfifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0, data, size); in ReadISACfifo() 152 writefifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0, data, size); in WriteISACfifo() 158 return (readreg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset + 0x80)); in ReadISAC_IPAC() 164 writereg(cs->hw.diva.isac_adr, cs->hw.diva.isac, offset | 0x80, value); in WriteISAC_IPAC() 170 readfifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0x80, data, size); in ReadISACfifo_IPAC() 176 writefifo(cs->hw.diva.isac_adr, cs->hw.diva.isac, 0x80, data, size); in WriteISACfifo_IPAC() 182 return (readreg(cs->hw.diva.hscx_adr, in ReadHSCX() 183 cs->hw.diva.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX() [all …]
|
D | teleint.c | 105 cs->hw.hfc.cip = offset; in ReadISAC() 106 return (readreg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset)); in ReadISAC() 112 cs->hw.hfc.cip = offset; in WriteISAC() 113 writereg(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, offset, value); in WriteISAC() 119 cs->hw.hfc.cip = 0; in ReadISACfifo() 120 readfifo(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, 0, data, size); in ReadISACfifo() 126 cs->hw.hfc.cip = 0; in WriteISACfifo() 127 writefifo(cs->hw.hfc.addr | 1, cs->hw.hfc.addr, 0, data, size); in WriteISACfifo() 136 cs->hw.hfc.cip = reg; in ReadHFC() 137 byteout(cs->hw.hfc.addr | 1, reg); in ReadHFC() [all …]
|
D | elsa_ser.c | 51 u_int val = inb(cs->hw.elsa.base + 8 + offset); in serial_in() 55 return inb(cs->hw.elsa.base + 8 + offset); in serial_in() 63 u_int val = inb(cs->hw.elsa.base + 8 + offset); in serial_inp() 66 u_int val = inb_p(cs->hw.elsa.base + 8 + offset); in serial_inp() 72 return inb(cs->hw.elsa.base + 8 + offset); in serial_inp() 74 return inb_p(cs->hw.elsa.base + 8 + offset); in serial_inp() 84 outb(value, cs->hw.elsa.base + 8 + offset); in serial_out() 98 outb(value, cs->hw.elsa.base + 8 + offset); in serial_outp() 100 outb_p(value, cs->hw.elsa.base + 8 + offset); in serial_outp() 130 cs->hw.elsa.IER &= ~UART_IER_MSI; in change_speed() [all …]
|
D | s0box.c | 98 return (readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.isac, offset)); in ReadISAC() 104 writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.isac, offset, value); in WriteISAC() 110 read_fifo(cs->hw.teles3.cfg_reg, cs->hw.teles3.isacfifo, data, size); in ReadISACfifo() 116 write_fifo(cs->hw.teles3.cfg_reg, cs->hw.teles3.isacfifo, data, size); in WriteISACfifo() 122 return (readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[hscx], offset)); in ReadHSCX() 128 writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[hscx], offset, value); in WriteHSCX() 135 #define READHSCX(cs, nr, reg) readreg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[nr], reg) 136 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscx[nr], reg, d… 137 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscxfifo[nr],… 138 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo(cs->hw.teles3.cfg_reg, cs->hw.teles3.hscxfifo[nr… [all …]
|
D | mic.c | 68 return (readreg(cs->hw.mic.adr, cs->hw.mic.isac, offset)); in ReadISAC() 74 writereg(cs->hw.mic.adr, cs->hw.mic.isac, offset, value); in WriteISAC() 80 readfifo(cs->hw.mic.adr, cs->hw.mic.isac, 0, data, size); in ReadISACfifo() 86 writefifo(cs->hw.mic.adr, cs->hw.mic.isac, 0, data, size); in WriteISACfifo() 92 return (readreg(cs->hw.mic.adr, in ReadHSCX() 93 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX() 99 writereg(cs->hw.mic.adr, in WriteHSCX() 100 cs->hw.mic.hscx, offset + (hscx ? 0x40 : 0), value); in WriteHSCX() 107 #define READHSCX(cs, nr, reg) readreg(cs->hw.mic.adr, \ 108 cs->hw.mic.hscx, reg + (nr ? 0x40 : 0)) [all …]
|
D | nj_u.c | 36 if (!((sval = bytein(cs->hw.njet.base + NETJET_IRQSTAT1)) & in netjet_u_interrupt() 49 if (inl(cs->hw.njet.base + NETJET_DMA_WRITE_ADR) < in netjet_u_interrupt() 50 inl(cs->hw.njet.base + NETJET_DMA_WRITE_IRQ)) in netjet_u_interrupt() 55 if (inl(cs->hw.njet.base + NETJET_DMA_READ_ADR) < in netjet_u_interrupt() 56 inl(cs->hw.njet.base + NETJET_DMA_READ_IRQ)) in netjet_u_interrupt() 61 if (sval != cs->hw.njet.last_is0) /* we have a DMA interrupt */ in netjet_u_interrupt() 67 cs->hw.njet.irqstat0 = sval; in netjet_u_interrupt() 68 if ((cs->hw.njet.irqstat0 & NETJET_IRQM0_READ) != in netjet_u_interrupt() 69 (cs->hw.njet.last_is0 & NETJET_IRQM0_READ)) in netjet_u_interrupt() 72 if ((cs->hw.njet.irqstat0 & NETJET_IRQM0_WRITE) != in netjet_u_interrupt() [all …]
|
D | nj_s.c | 36 s1val = bytein(cs->hw.njet.base + NETJET_IRQSTAT1); in netjet_s_interrupt() 55 s0val = bytein(cs->hw.njet.base + NETJET_IRQSTAT0); in netjet_s_interrupt() 61 byteout(cs->hw.njet.base + NETJET_IRQSTAT0, s0val); in netjet_s_interrupt() 64 if (inl(cs->hw.njet.base + NETJET_DMA_WRITE_ADR) < in netjet_s_interrupt() 65 inl(cs->hw.njet.base + NETJET_DMA_WRITE_IRQ)) in netjet_s_interrupt() 70 if (inl(cs->hw.njet.base + NETJET_DMA_READ_ADR) < in netjet_s_interrupt() 71 inl(cs->hw.njet.base + NETJET_DMA_READ_IRQ)) in netjet_s_interrupt() 76 if (s0val != cs->hw.njet.last_is0) /* we have a DMA interrupt */ in netjet_s_interrupt() 80 cs->hw.njet.last_is0, s0val); in netjet_s_interrupt() 84 cs->hw.njet.irqstat0 = s0val; in netjet_s_interrupt() [all …]
|
D | ix1_micro.c | 78 return (readreg(cs->hw.ix1.isac_ale, cs->hw.ix1.isac, offset)); in ReadISAC() 84 writereg(cs->hw.ix1.isac_ale, cs->hw.ix1.isac, offset, value); in WriteISAC() 90 readfifo(cs->hw.ix1.isac_ale, cs->hw.ix1.isac, 0, data, size); in ReadISACfifo() 96 writefifo(cs->hw.ix1.isac_ale, cs->hw.ix1.isac, 0, data, size); in WriteISACfifo() 102 return (readreg(cs->hw.ix1.hscx_ale, in ReadHSCX() 103 cs->hw.ix1.hscx, offset + (hscx ? 0x40 : 0))); in ReadHSCX() 109 writereg(cs->hw.ix1.hscx_ale, in WriteHSCX() 110 cs->hw.ix1.hscx, offset + (hscx ? 0x40 : 0), value); in WriteHSCX() 113 #define READHSCX(cs, nr, reg) readreg(cs->hw.ix1.hscx_ale, \ 114 cs->hw.ix1.hscx, reg + (nr ? 0x40 : 0)) [all …]
|
D | hfc_sx.c | 64 byteout(cs->hw.hfcsx.base + 1, regnum); in Write_hfc() 65 byteout(cs->hw.hfcsx.base, val); in Write_hfc() 73 byteout(cs->hw.hfcsx.base + 1, regnum); in Read_hfc() 74 ret = bytein(cs->hw.hfcsx.base); in Read_hfc() 85 if (fifo == cs->hw.hfcsx.last_fifo) in fifo_select() 88 byteout(cs->hw.hfcsx.base + 1, HFCSX_FIF_SEL); in fifo_select() 89 byteout(cs->hw.hfcsx.base, fifo); in fifo_select() 90 while (bytein(cs->hw.hfcsx.base + 1) & 1); /* wait for busy */ in fifo_select() 92 byteout(cs->hw.hfcsx.base, fifo); in fifo_select() 93 while (bytein(cs->hw.hfcsx.base + 1) & 1); /* wait for busy */ in fifo_select() [all …]
|
D | teles0.c | 100 return (readisac(cs->hw.teles0.membase, offset)); in ReadISAC() 106 writeisac(cs->hw.teles0.membase, offset, value); in WriteISAC() 112 read_fifo_isac(cs->hw.teles0.membase, data, size); in ReadISACfifo() 118 write_fifo_isac(cs->hw.teles0.membase, data, size); in WriteISACfifo() 124 return (readhscx(cs->hw.teles0.membase, hscx, offset)); in ReadHSCX() 130 writehscx(cs->hw.teles0.membase, hscx, offset, value); in WriteHSCX() 137 #define READHSCX(cs, nr, reg) readhscx(cs->hw.teles0.membase, nr, reg) 138 #define WRITEHSCX(cs, nr, reg, data) writehscx(cs->hw.teles0.membase, nr, reg, data) 139 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt) 140 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo_hscx(cs->hw.teles0.membase, nr, ptr, cnt) [all …]
|
D | hfcscard.c | 46 cs->hw.hfcD.timer.expires = jiffies + 75; in hfcs_Timer() 57 del_timer(&cs->hw.hfcD.timer); in release_io_hfcs() 58 if (cs->hw.hfcD.addr) in release_io_hfcs() 59 release_region(cs->hw.hfcD.addr, 2); in release_io_hfcs() 66 cs->hw.hfcD.cirm = HFCD_RESET; in reset_hfcs() 68 cs->hw.hfcD.cirm |= HFCD_MEM8K; in reset_hfcs() 69 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_CIRM, cs->hw.hfcD.cirm); /* Reset On */ in reset_hfcs() 71 cs->hw.hfcD.cirm = 0; in reset_hfcs() 73 cs->hw.hfcD.cirm |= HFCD_MEM8K; in reset_hfcs() 74 cs->BC_Write_Reg(cs, HFCD_DATA, HFCD_CIRM, cs->hw.hfcD.cirm); /* Reset Off */ in reset_hfcs() [all …]
|
D | hfc_pci.c | 76 cs->hw.hfcpci.pci_io); in release_io_hfcpci() 77 cs->hw.hfcpci.int_m2 = 0; /* interrupt output off ! */ in release_io_hfcpci() 78 Write_hfc(cs, HFCPCI_INT_M2, cs->hw.hfcpci.int_m2); in release_io_hfcpci() 83 Write_hfc(cs, HFCPCI_INT_M2, cs->hw.hfcpci.int_m2); in release_io_hfcpci() 84 …pci_write_config_word(cs->hw.hfcpci.dev, PCI_COMMAND, 0); /* disable memory mapped ports + busmast… in release_io_hfcpci() 85 del_timer(&cs->hw.hfcpci.timer); in release_io_hfcpci() 86 pci_free_consistent(cs->hw.hfcpci.dev, 0x8000, in release_io_hfcpci() 87 cs->hw.hfcpci.fifos, cs->hw.hfcpci.dma); in release_io_hfcpci() 88 cs->hw.hfcpci.fifos = NULL; in release_io_hfcpci() 89 iounmap((void *)cs->hw.hfcpci.pci_io); in release_io_hfcpci() [all …]
|
D | bkm_a8.c | 80 return (readreg(cs->hw.ax.base, cs->hw.ax.data_adr, offset | 0x80)); in ReadISAC() 86 writereg(cs->hw.ax.base, cs->hw.ax.data_adr, offset | 0x80, value); in WriteISAC() 92 readfifo(cs->hw.ax.base, cs->hw.ax.data_adr, 0x80, data, size); in ReadISACfifo() 98 writefifo(cs->hw.ax.base, cs->hw.ax.data_adr, 0x80, data, size); in WriteISACfifo() 105 return (readreg(cs->hw.ax.base, cs->hw.ax.data_adr, offset + (hscx ? 0x40 : 0))); in ReadHSCX() 111 writereg(cs->hw.ax.base, cs->hw.ax.data_adr, offset + (hscx ? 0x40 : 0), value); in WriteHSCX() 119 writereg(cs->hw.ax.base, cs->hw.ax.data_adr, IPAC_MASK, in set_ipac_active() 127 #define READHSCX(cs, nr, reg) readreg(cs->hw.ax.base, \ 128 cs->hw.ax.data_adr, reg + (nr ? 0x40 : 0)) 129 #define WRITEHSCX(cs, nr, reg, data) writereg(cs->hw.ax.base, \ [all …]
|
D | sportster.c | 56 return (bytein(calc_off(cs->hw.spt.isac, offset))); in ReadISAC() 62 byteout(calc_off(cs->hw.spt.isac, offset), value); in WriteISAC() 68 read_fifo(cs->hw.spt.isac, data, size); in ReadISACfifo() 74 write_fifo(cs->hw.spt.isac, data, size); in WriteISACfifo() 80 return (bytein(calc_off(cs->hw.spt.hscx[hscx], offset))); in ReadHSCX() 86 byteout(calc_off(cs->hw.spt.hscx[hscx], offset), value); in WriteHSCX() 93 #define READHSCX(cs, nr, reg) bytein(calc_off(cs->hw.spt.hscx[nr], reg)) 94 #define WRITEHSCX(cs, nr, reg, data) byteout(calc_off(cs->hw.spt.hscx[nr], reg), data) 95 #define READHSCXFIFO(cs, nr, ptr, cnt) read_fifo(cs->hw.spt.hscx[nr], ptr, cnt) 96 #define WRITEHSCXFIFO(cs, nr, ptr, cnt) write_fifo(cs->hw.spt.hscx[nr], ptr, cnt) [all …]
|
D | isurf.c | 39 return (readb(cs->hw.isurf.isac + offset)); in ReadISAC() 45 writeb(value, cs->hw.isurf.isac + offset); mb(); in WriteISAC() 53 data[i] = readb(cs->hw.isurf.isac); in ReadISACfifo() 61 writeb(data[i], cs->hw.isurf.isac); mb(); in WriteISACfifo() 74 return (readb(cs->hw.isurf.isar + offset)); in ReadISAR() 80 writeb(value, cs->hw.isurf.isar + offset); mb(); in WriteISAR() 92 val = readb(cs->hw.isurf.isar + ISAR_IRQBIT); in isurf_interrupt() 96 val = readb(cs->hw.isurf.isac + ISAC_ISTA); in isurf_interrupt() 100 val = readb(cs->hw.isurf.isar + ISAR_IRQBIT); in isurf_interrupt() 106 val = readb(cs->hw.isurf.isac + ISAC_ISTA); in isurf_interrupt() [all …]
|
D | isar.c | 136 struct isar_reg *ir = cs->bcs[0].hw.isar.reg; in waitrecmsg() 177 if (cs->bcs[0].hw.isar.reg->iis == ISAR_IIS_VNR) { in ISARVersion() 198 struct isar_reg *ireg = cs->bcs[0].hw.isar.reg; in isar_load_firmware() 495 struct isar_reg *ireg = bcs->hw.isar.reg; in isar_rcv_frame() 522 if ((bcs->hw.isar.rcvidx + ireg->clsb) > HSCX_BUFMAX) { in isar_rcv_frame() 526 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame() 537 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame() 541 bcs->hw.isar.rcvidx = 0; in isar_rcv_frame() 542 ptr = bcs->hw.isar.rcvbuf + bcs->hw.isar.rcvidx; in isar_rcv_frame() 543 bcs->hw.isar.rcvidx += ireg->clsb; in isar_rcv_frame() [all …]
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
D | sky2.c | 161 static int gm_phy_write(struct sky2_hw *hw, unsigned port, u16 reg, u16 val) in gm_phy_write() argument 165 gma_write16(hw, port, GM_SMI_DATA, val); in gm_phy_write() 166 gma_write16(hw, port, GM_SMI_CTRL, in gm_phy_write() 170 u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL); in gm_phy_write() 180 dev_warn(&hw->pdev->dev, "%s: phy write timeout\n", hw->dev[port]->name); in gm_phy_write() 184 dev_err(&hw->pdev->dev, "%s: phy I/O error\n", hw->dev[port]->name); in gm_phy_write() 188 static int __gm_phy_read(struct sky2_hw *hw, unsigned port, u16 reg, u16 *val) in __gm_phy_read() argument 192 gma_write16(hw, port, GM_SMI_CTRL, GM_SMI_CT_PHY_AD(PHY_ADDR_MARV) in __gm_phy_read() 196 u16 ctrl = gma_read16(hw, port, GM_SMI_CTRL); in __gm_phy_read() 201 *val = gma_read16(hw, port, GM_SMI_DATA); in __gm_phy_read() [all …]
|
D | skge.c | 108 static int xm_phy_write(struct skge_hw *hw, int port, u16 reg, u16 val); 109 static int gm_phy_write(struct skge_hw *hw, int port, u16 reg, u16 val); 112 static void yukon_init(struct skge_hw *hw, int port); 113 static void genesis_mac_init(struct skge_hw *hw, int port); 126 static inline bool is_genesis(const struct skge_hw *hw) in is_genesis() argument 129 return hw->chip_id == CHIP_ID_GENESIS; in is_genesis() 149 const void __iomem *io = skge->hw->regs; in skge_get_regs() 160 static u32 wol_supported(const struct skge_hw *hw) in wol_supported() argument 162 if (is_genesis(hw)) in wol_supported() 165 if (hw->chip_id == CHIP_ID_YUKON && hw->chip_rev == 0) in wol_supported() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/igb/ |
D | e1000_phy.c | 30 static s32 igb_phy_setup_autoneg(struct e1000_hw *hw); 31 static void igb_phy_force_speed_duplex_setup(struct e1000_hw *hw, 33 static s32 igb_wait_autoneg(struct e1000_hw *hw); 34 static s32 igb_set_master_slave_mode(struct e1000_hw *hw); 58 s32 igb_check_reset_block(struct e1000_hw *hw) in igb_check_reset_block() argument 74 s32 igb_get_phy_id(struct e1000_hw *hw) in igb_get_phy_id() argument 76 struct e1000_phy_info *phy = &hw->phy; in igb_get_phy_id() 80 ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); in igb_get_phy_id() 86 ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); in igb_get_phy_id() 103 static s32 igb_phy_reset_dsp(struct e1000_hw *hw) in igb_phy_reset_dsp() argument [all …]
|
D | e1000_82575.c | 67 static s32 igb_set_pcie_completion_timeout(struct e1000_hw *hw); 68 static s32 igb_reset_mdicnfg_82580(struct e1000_hw *hw); 69 static s32 igb_validate_nvm_checksum_82580(struct e1000_hw *hw); 70 static s32 igb_update_nvm_checksum_82580(struct e1000_hw *hw); 71 static s32 igb_validate_nvm_checksum_i350(struct e1000_hw *hw); 72 static s32 igb_update_nvm_checksum_i350(struct e1000_hw *hw); 83 static bool igb_sgmii_uses_mdio_82575(struct e1000_hw *hw) in igb_sgmii_uses_mdio_82575() argument 88 switch (hw->mac.type) { in igb_sgmii_uses_mdio_82575() 114 static s32 igb_check_for_link_media_swap(struct e1000_hw *hw) in igb_check_for_link_media_swap() argument 116 struct e1000_phy_info *phy = &hw->phy; in igb_check_for_link_media_swap() [all …]
|
D | e1000_mac.c | 34 static s32 igb_set_default_fc(struct e1000_hw *hw); 35 static s32 igb_set_fc_watermarks(struct e1000_hw *hw); 45 s32 igb_get_bus_info_pcie(struct e1000_hw *hw) in igb_get_bus_info_pcie() argument 47 struct e1000_bus_info *bus = &hw->bus; in igb_get_bus_info_pcie() 54 ret_val = igb_read_pcie_cap_reg(hw, in igb_get_bus_info_pcie() 91 void igb_clear_vfta(struct e1000_hw *hw) in igb_clear_vfta() argument 110 static void igb_write_vfta(struct e1000_hw *hw, u32 offset, u32 value) in igb_write_vfta() argument 128 void igb_clear_vfta_i350(struct e1000_hw *hw) in igb_clear_vfta_i350() argument 150 static void igb_write_vfta_i350(struct e1000_hw *hw, u32 offset, u32 value) in igb_write_vfta_i350() argument 169 void igb_init_rx_addrs(struct e1000_hw *hw, u16 rar_count) in igb_init_rx_addrs() argument [all …]
|
D | e1000_i210.c | 34 static s32 igb_update_flash_i210(struct e1000_hw *hw); 42 static s32 igb_get_hw_semaphore_i210(struct e1000_hw *hw) in igb_get_hw_semaphore_i210() argument 45 s32 timeout = hw->nvm.word_size + 1; in igb_get_hw_semaphore_i210() 62 if (hw->dev_spec._82575.clear_semaphore_once) { in igb_get_hw_semaphore_i210() 63 hw->dev_spec._82575.clear_semaphore_once = false; in igb_get_hw_semaphore_i210() 64 igb_put_hw_semaphore(hw); in igb_get_hw_semaphore_i210() 95 igb_put_hw_semaphore(hw); in igb_get_hw_semaphore_i210() 112 static s32 igb_acquire_nvm_i210(struct e1000_hw *hw) in igb_acquire_nvm_i210() argument 114 return igb_acquire_swfw_sync_i210(hw, E1000_SWFW_EEP_SM); in igb_acquire_nvm_i210() 124 static void igb_release_nvm_i210(struct e1000_hw *hw) in igb_release_nvm_i210() argument [all …]
|
D | e1000_mac.h | 37 s32 igb_blink_led(struct e1000_hw *hw); 38 s32 igb_check_for_copper_link(struct e1000_hw *hw); 39 s32 igb_cleanup_led(struct e1000_hw *hw); 40 s32 igb_config_fc_after_link_up(struct e1000_hw *hw); 41 s32 igb_disable_pcie_master(struct e1000_hw *hw); 42 s32 igb_force_mac_fc(struct e1000_hw *hw); 43 s32 igb_get_auto_rd_done(struct e1000_hw *hw); 44 s32 igb_get_bus_info_pcie(struct e1000_hw *hw); 45 s32 igb_get_hw_semaphore(struct e1000_hw *hw); 46 s32 igb_get_speed_and_duplex_copper(struct e1000_hw *hw, u16 *speed, [all …]
|
D | e1000_nvm.c | 36 static void igb_raise_eec_clk(struct e1000_hw *hw, u32 *eecd) in igb_raise_eec_clk() argument 41 udelay(hw->nvm.delay_usec); in igb_raise_eec_clk() 51 static void igb_lower_eec_clk(struct e1000_hw *hw, u32 *eecd) in igb_lower_eec_clk() argument 56 udelay(hw->nvm.delay_usec); in igb_lower_eec_clk() 69 static void igb_shift_out_eec_bits(struct e1000_hw *hw, u16 data, u16 count) in igb_shift_out_eec_bits() argument 71 struct e1000_nvm_info *nvm = &hw->nvm; in igb_shift_out_eec_bits() 90 igb_raise_eec_clk(hw, &eecd); in igb_shift_out_eec_bits() 91 igb_lower_eec_clk(hw, &eecd); in igb_shift_out_eec_bits() 111 static u16 igb_shift_in_eec_bits(struct e1000_hw *hw, u16 count) in igb_shift_in_eec_bits() argument 124 igb_raise_eec_clk(hw, &eecd); in igb_shift_in_eec_bits() [all …]
|
D | e1000_phy.h | 40 s32 igb_check_downshift(struct e1000_hw *hw); 41 s32 igb_check_reset_block(struct e1000_hw *hw); 42 s32 igb_copper_link_setup_igp(struct e1000_hw *hw); 43 s32 igb_copper_link_setup_m88(struct e1000_hw *hw); 44 s32 igb_copper_link_setup_m88_gen2(struct e1000_hw *hw); 45 s32 igb_phy_force_speed_duplex_igp(struct e1000_hw *hw); 46 s32 igb_phy_force_speed_duplex_m88(struct e1000_hw *hw); 47 s32 igb_get_cable_length_m88(struct e1000_hw *hw); 48 s32 igb_get_cable_length_m88_gen2(struct e1000_hw *hw); 49 s32 igb_get_cable_length_igp_2(struct e1000_hw *hw); [all …]
|
D | e1000_mbx.c | 35 s32 igb_read_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) in igb_read_mbx() argument 37 struct e1000_mbx_info *mbx = &hw->mbx; in igb_read_mbx() 45 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in igb_read_mbx() 59 s32 igb_write_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) in igb_write_mbx() argument 61 struct e1000_mbx_info *mbx = &hw->mbx; in igb_write_mbx() 68 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in igb_write_mbx() 80 s32 igb_check_for_msg(struct e1000_hw *hw, u16 mbx_id) in igb_check_for_msg() argument 82 struct e1000_mbx_info *mbx = &hw->mbx; in igb_check_for_msg() 86 ret_val = mbx->ops.check_for_msg(hw, mbx_id); in igb_check_for_msg() 98 s32 igb_check_for_ack(struct e1000_hw *hw, u16 mbx_id) in igb_check_for_ack() argument [all …]
|
/linux-4.4.14/sound/pci/ctxfi/ |
D | cthw20k2.c | 36 struct hw hw; member 45 static u32 hw_read_20kx(struct hw *hw, u32 reg); 46 static void hw_write_20kx(struct hw *hw, u32 reg, u32 data); 369 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 377 hw_write_20kx(hw, SRC_UPZ+idx*0x100+i*0x4, 0); in src_commit_write() 380 hw_write_20kx(hw, SRC_DN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 383 hw_write_20kx(hw, SRC_DN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 393 hw_write_20kx(hw, MIXER_PRING_LO_HI+4*pm_idx, ctl->mpr); in src_commit_write() 394 hw_write_20kx(hw, MIXER_PMOPLO+8*pm_idx, 0x3); in src_commit_write() 395 hw_write_20kx(hw, MIXER_PMOPHI+8*pm_idx, 0x0); in src_commit_write() [all …]
|
D | cthw20k1.c | 37 struct hw hw; member 42 static u32 hw_read_20kx(struct hw *hw, u32 reg); 43 static void hw_write_20kx(struct hw *hw, u32 reg, u32 data); 44 static u32 hw_read_pci(struct hw *hw, u32 reg); 45 static void hw_write_pci(struct hw *hw, u32 reg, u32 data); 369 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument 377 hw_write_20kx(hw, SRCUPZ+idx*0x100+i*0x4, 0); in src_commit_write() 380 hw_write_20kx(hw, SRCDN0Z+idx*0x100+i*0x4, 0); in src_commit_write() 383 hw_write_20kx(hw, SRCDN1Z+idx*0x100+i*0x4, 0); in src_commit_write() 393 hw_write_20kx(hw, PRING_LO_HI+4*pm_idx, ctl->mpr); in src_commit_write() [all …]
|
D | ctsrc.c | 40 struct hw *hw; in src_set_state() local 42 hw = src->rsc.hw; in src_set_state() 43 hw->src_set_state(src->rsc.ctrl_blk, state); in src_set_state() 50 struct hw *hw; in src_set_bm() local 52 hw = src->rsc.hw; in src_set_bm() 53 hw->src_set_bm(src->rsc.ctrl_blk, bm); in src_set_bm() 60 struct hw *hw; in src_set_sf() local 62 hw = src->rsc.hw; in src_set_sf() 63 hw->src_set_sf(src->rsc.ctrl_blk, sf); in src_set_sf() 70 struct hw *hw; in src_set_pm() local [all …]
|
D | cthardware.h | 72 struct hw { struct 73 int (*card_init)(struct hw *hw, struct card_conf *info); argument 74 int (*card_stop)(struct hw *hw); argument 75 int (*pll_init)(struct hw *hw, unsigned int rsr); argument 77 int (*suspend)(struct hw *hw); argument 78 int (*resume)(struct hw *hw, struct card_conf *info); argument 80 int (*is_adc_source_selected)(struct hw *hw, enum ADCSRC source); argument 81 int (*select_adc_source)(struct hw *hw, enum ADCSRC source); argument 82 struct capabilities (*capabilities)(struct hw *hw); argument 83 int (*output_switch_get)(struct hw *hw); argument [all …]
|
D | ctresource.c | 138 rsc_init(struct rsc *rsc, u32 idx, enum RSCTYP type, u32 msr, struct hw *hw) in rsc_init() argument 146 rsc->hw = hw; in rsc_init() 148 if (!hw) { in rsc_init() 155 err = hw->src_rsc_get_ctrl_blk(&rsc->ctrl_blk); in rsc_init() 158 err = hw->amixer_rsc_get_ctrl_blk(&rsc->ctrl_blk); in rsc_init() 165 dev_err(((struct hw *)hw)->card->dev, in rsc_init() 171 dev_err(((struct hw *)hw)->card->dev, in rsc_init() 181 if ((NULL != rsc->hw) && (NULL != rsc->ctrl_blk)) { in rsc_uninit() 184 rsc->hw->src_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit() 187 rsc->hw->amixer_rsc_put_ctrl_blk(rsc->ctrl_blk); in rsc_uninit() [all …]
|
D | ctdaio.c | 107 static unsigned int daio_device_index(enum DAIOTYP type, struct hw *hw) in daio_device_index() argument 109 switch (hw->chip_type) { in daio_device_index() 143 dao->hw->dao_get_spos(dao->ctrl_blk, spos); in dao_spdif_get_spos() 149 dao->hw->dao_set_spos(dao->ctrl_blk, spos); in dao_spdif_set_spos() 155 dao->hw->dao_commit_write(dao->hw, in dao_commit_write() 156 daio_device_index(dao->daio.type, dao->hw), dao->ctrl_blk); in dao_commit_write() 280 dai->hw->dai_srt_set_srcm(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcl() 287 dai->hw->dai_srt_set_srco(dai->ctrl_blk, src->ops->index(src)); in dai_set_srt_srcr() 298 dai->hw->dai_srt_set_rsr(dai->ctrl_blk, rsr); in dai_set_srt_msr() 304 dai->hw->dai_srt_set_ec(dai->ctrl_blk, enb); in dai_set_enb_src() [all …]
|
D | ctamixer.c | 61 struct hw *hw; in amixer_set_input() local 63 hw = amixer->rsc.hw; in amixer_set_input() 64 hw->amixer_set_mode(amixer->rsc.ctrl_blk, AMIXER_Y_IMMEDIATE); in amixer_set_input() 67 hw->amixer_set_x(amixer->rsc.ctrl_blk, BLANK_SLOT); in amixer_set_input() 69 hw->amixer_set_x(amixer->rsc.ctrl_blk, in amixer_set_input() 78 struct hw *hw; in amixer_set_y() local 80 hw = amixer->rsc.hw; in amixer_set_y() 81 hw->amixer_set_y(amixer->rsc.ctrl_blk, y); in amixer_set_y() 88 struct hw *hw; in amixer_set_invalid_squash() local 90 hw = amixer->rsc.hw; in amixer_set_invalid_squash() [all …]
|
/linux-4.4.14/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 1353 struct ksz_hw *hw; member 1427 struct ksz_hw hw; member 1499 static inline void hw_ack_intr(struct ksz_hw *hw, uint interrupt) in hw_ack_intr() argument 1501 writel(interrupt, hw->io + KS884X_INTERRUPTS_STATUS); in hw_ack_intr() 1504 static inline void hw_dis_intr(struct ksz_hw *hw) in hw_dis_intr() argument 1506 hw->intr_blocked = hw->intr_mask; in hw_dis_intr() 1507 writel(0, hw->io + KS884X_INTERRUPTS_ENABLE); in hw_dis_intr() 1508 hw->intr_set = readl(hw->io + KS884X_INTERRUPTS_ENABLE); in hw_dis_intr() 1511 static inline void hw_set_intr(struct ksz_hw *hw, uint interrupt) in hw_set_intr() argument 1513 hw->intr_set = interrupt; in hw_set_intr() [all …]
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
D | hermes.c | 77 #define DMSG(stuff...) do {printk(KERN_DEBUG "hermes @ %p: " , hw->iobase); \ 105 static int hermes_issue_cmd(struct hermes *hw, u16 cmd, u16 param0, in hermes_issue_cmd() argument 112 reg = hermes_read_regn(hw, CMD); in hermes_issue_cmd() 116 reg = hermes_read_regn(hw, CMD); in hermes_issue_cmd() 121 hermes_write_regn(hw, PARAM2, param2); in hermes_issue_cmd() 122 hermes_write_regn(hw, PARAM1, param1); in hermes_issue_cmd() 123 hermes_write_regn(hw, PARAM0, param0); in hermes_issue_cmd() 124 hermes_write_regn(hw, CMD, cmd); in hermes_issue_cmd() 134 static int hermes_doicmd_wait(struct hermes *hw, u16 cmd, in hermes_doicmd_wait() argument 142 err = hermes_issue_cmd(hw, cmd, parm0, parm1, parm2); in hermes_doicmd_wait() [all …]
|
D | hermes.h | 381 int (*init)(struct hermes *hw); 382 int (*cmd_wait)(struct hermes *hw, u16 cmd, u16 parm0, 384 int (*init_cmd_wait)(struct hermes *hw, u16 cmd, 387 int (*allocate)(struct hermes *hw, u16 size, u16 *fid); 388 int (*read_ltv)(struct hermes *hw, int bap, u16 rid, unsigned buflen, 390 int (*write_ltv)(struct hermes *hw, int bap, u16 rid, 392 int (*bap_pread)(struct hermes *hw, int bap, void *buf, int len, 394 int (*bap_pwrite)(struct hermes *hw, int bap, const void *buf, 396 int (*read_pda)(struct hermes *hw, __le16 *pda, 398 int (*program_init)(struct hermes *hw, u32 entry_point); [all …]
|
D | hw.c | 74 struct hermes *hw = &priv->hw; in determine_fw_capabilities() local 81 err = HERMES_READ_RECORD(hw, USER_BAP, HERMES_RID_NICID, &nic_id); in determine_fw_capabilities() 104 err = HERMES_READ_RECORD(hw, USER_BAP, HERMES_RID_STAID, &sta_id); in determine_fw_capabilities() 180 err = hw->ops->read_ltv(hw, USER_BAP, in determine_fw_capabilities() 283 struct hermes *hw = &priv->hw; in orinoco_hw_read_card_settings() local 289 err = hw->ops->read_ltv(hw, USER_BAP, HERMES_RID_CNFOWNMACADDR, in orinoco_hw_read_card_settings() 299 err = hw->ops->read_ltv(hw, USER_BAP, HERMES_RID_CNFOWNNAME, in orinoco_hw_read_card_settings() 315 err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CHANNELLIST, in orinoco_hw_read_card_settings() 323 err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CNFSYSTEMSCALE, in orinoco_hw_read_card_settings() 329 err = hermes_read_wordrec(hw, USER_BAP, HERMES_RID_CNFRTSTHRESHOLD, in orinoco_hw_read_card_settings() [all …]
|
/linux-4.4.14/sound/isa/sb/ |
D | emu8000_callback.c | 45 static void set_pitch(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 46 static void set_volume(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 47 static void set_pan(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 48 static void set_fmmod(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 49 static void set_tremfreq(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 50 static void set_fm2frq2(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 51 static void set_filterQ(struct snd_emu8000 *hw, struct snd_emux_voice *vp); 85 snd_emu8000_ops_setup(struct snd_emu8000 *hw) in snd_emu8000_ops_setup() argument 87 hw->emu->ops = emu8000_ops; in snd_emu8000_ops_setup() 99 struct snd_emu8000 *hw; in release_voice() local [all …]
|
D | emu8000_synth.c | 40 struct snd_emu8000 *hw; in snd_emu8000_probe() local 43 hw = *(struct snd_emu8000**)SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu8000_probe() 44 if (hw == NULL) in snd_emu8000_probe() 47 if (hw->emu) in snd_emu8000_probe() 53 hw->emu = emu; in snd_emu8000_probe() 54 snd_emu8000_ops_setup(hw); in snd_emu8000_probe() 56 emu->hw = hw; in snd_emu8000_probe() 58 emu->num_ports = hw->seq_ports; in snd_emu8000_probe() 60 if (hw->memhdr) { in snd_emu8000_probe() 62 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_probe() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/ixgbevf/ |
D | vf.c | 39 static s32 ixgbevf_start_hw_vf(struct ixgbe_hw *hw) in ixgbevf_start_hw_vf() argument 42 hw->adapter_stopped = false; in ixgbevf_start_hw_vf() 54 static s32 ixgbevf_init_hw_vf(struct ixgbe_hw *hw) in ixgbevf_init_hw_vf() argument 56 s32 status = hw->mac.ops.start_hw(hw); in ixgbevf_init_hw_vf() 58 hw->mac.ops.get_mac_addr(hw, hw->mac.addr); in ixgbevf_init_hw_vf() 70 static s32 ixgbevf_reset_hw_vf(struct ixgbe_hw *hw) in ixgbevf_reset_hw_vf() argument 72 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_reset_hw_vf() 79 hw->mac.ops.stop_adapter(hw); in ixgbevf_reset_hw_vf() 82 hw->api_version = ixgbe_mbox_api_10; in ixgbevf_reset_hw_vf() 84 IXGBE_WRITE_REG(hw, IXGBE_VFCTRL, IXGBE_CTRL_RST); in ixgbevf_reset_hw_vf() [all …]
|
D | mbx.c | 36 static s32 ixgbevf_poll_for_msg(struct ixgbe_hw *hw) in ixgbevf_poll_for_msg() argument 38 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_msg() 41 while (countdown && mbx->ops.check_for_msg(hw)) { in ixgbevf_poll_for_msg() 59 static s32 ixgbevf_poll_for_ack(struct ixgbe_hw *hw) in ixgbevf_poll_for_ack() argument 61 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_ack() 64 while (countdown && mbx->ops.check_for_ack(hw)) { in ixgbevf_poll_for_ack() 85 static s32 ixgbevf_read_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size) in ixgbevf_read_posted_mbx() argument 87 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_read_posted_mbx() 93 ret_val = ixgbevf_poll_for_msg(hw); in ixgbevf_read_posted_mbx() 97 ret_val = mbx->ops.read(hw, msg, size); in ixgbevf_read_posted_mbx() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | phy.c | 36 static u32 _rtl92ee_phy_rf_serial_read(struct ieee80211_hw *hw, 38 static void _rtl92ee_phy_rf_serial_write(struct ieee80211_hw *hw, 42 static bool _rtl92ee_phy_bb8192ee_config_parafile(struct ieee80211_hw *hw); 43 static bool _rtl92ee_phy_config_mac_with_headerfile(struct ieee80211_hw *hw); 44 static bool phy_config_bb_with_hdr_file(struct ieee80211_hw *hw, 46 static bool phy_config_bb_with_pghdrfile(struct ieee80211_hw *hw, 48 static void phy_init_bb_rf_register_def(struct ieee80211_hw *hw); 54 static bool _rtl92ee_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw, 57 static long _rtl92ee_phy_txpwr_idx_to_dbm(struct ieee80211_hw *hw, 60 static void rtl92ee_phy_set_rf_on(struct ieee80211_hw *hw); [all …]
|
D | hw.h | 29 void rtl92ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 30 void rtl92ee_read_eeprom_info(struct ieee80211_hw *hw); 31 void rtl92ee_interrupt_recognized(struct ieee80211_hw *hw, 33 int rtl92ee_hw_init(struct ieee80211_hw *hw); 34 void rtl92ee_card_disable(struct ieee80211_hw *hw); 35 void rtl92ee_enable_interrupt(struct ieee80211_hw *hw); 36 void rtl92ee_disable_interrupt(struct ieee80211_hw *hw); 37 int rtl92ee_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type); 38 void rtl92ee_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 39 void rtl92ee_set_qos(struct ieee80211_hw *hw, int aci); [all …]
|
D | phy.h | 46 #define RT_CANNOT_IO(hw) false argument 119 u32 rtl92ee_phy_query_bb_reg(struct ieee80211_hw *hw, 121 void rtl92ee_phy_set_bb_reg(struct ieee80211_hw *hw, 123 u32 rtl92ee_phy_query_rf_reg(struct ieee80211_hw *hw, 126 void rtl92ee_phy_set_rf_reg(struct ieee80211_hw *hw, 129 bool rtl92ee_phy_mac_config(struct ieee80211_hw *hw); 130 bool rtl92ee_phy_bb_config(struct ieee80211_hw *hw); 131 bool rtl92ee_phy_rf_config(struct ieee80211_hw *hw); 132 void rtl92ee_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw); 133 void rtl92ee_phy_get_txpower_level(struct ieee80211_hw *hw, [all …]
|
D | dm.c | 155 static void rtl92ee_dm_false_alarm_counter_statistics(struct ieee80211_hw *hw) in rtl92ee_dm_false_alarm_counter_statistics() argument 158 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_dm_false_alarm_counter_statistics() 161 rtl_set_bbreg(hw, DM_REG_OFDM_FA_HOLDC_11N, BIT(31), 1); in rtl92ee_dm_false_alarm_counter_statistics() 162 rtl_set_bbreg(hw, DM_REG_OFDM_FA_RSTD_11N, BIT(31), 1); in rtl92ee_dm_false_alarm_counter_statistics() 164 ret_value = rtl_get_bbreg(hw, DM_REG_OFDM_FA_TYPE1_11N, MASKDWORD); in rtl92ee_dm_false_alarm_counter_statistics() 168 ret_value = rtl_get_bbreg(hw, DM_REG_OFDM_FA_TYPE2_11N, MASKDWORD); in rtl92ee_dm_false_alarm_counter_statistics() 172 ret_value = rtl_get_bbreg(hw, DM_REG_OFDM_FA_TYPE3_11N, MASKDWORD); in rtl92ee_dm_false_alarm_counter_statistics() 176 ret_value = rtl_get_bbreg(hw, DM_REG_OFDM_FA_TYPE4_11N, MASKDWORD); in rtl92ee_dm_false_alarm_counter_statistics() 186 ret_value = rtl_get_bbreg(hw, DM_REG_SC_CNT_11N, MASKDWORD); in rtl92ee_dm_false_alarm_counter_statistics() 190 rtl_set_bbreg(hw, DM_REG_CCK_FA_RST_11N, BIT(12), 1); in rtl92ee_dm_false_alarm_counter_statistics() [all …]
|
D | rf.c | 33 static bool _rtl92ee_phy_rf6052_config_parafile(struct ieee80211_hw *hw); 35 void rtl92ee_phy_rf6052_set_bandwidth(struct ieee80211_hw *hw, u8 bandwidth) in rtl92ee_phy_rf6052_set_bandwidth() argument 37 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_phy_rf6052_set_bandwidth() 44 rtl_set_rfreg(hw, RF90_PATH_A, RF_CHNLBW, RFREG_OFFSET_MASK, in rtl92ee_phy_rf6052_set_bandwidth() 46 rtl_set_rfreg(hw, RF90_PATH_B, RF_CHNLBW, RFREG_OFFSET_MASK, in rtl92ee_phy_rf6052_set_bandwidth() 52 rtl_set_rfreg(hw, RF90_PATH_A, RF_CHNLBW, RFREG_OFFSET_MASK, in rtl92ee_phy_rf6052_set_bandwidth() 54 rtl_set_rfreg(hw, RF90_PATH_B, RF_CHNLBW, RFREG_OFFSET_MASK, in rtl92ee_phy_rf6052_set_bandwidth() 64 bool rtl92ee_phy_rf6052_config(struct ieee80211_hw *hw) in rtl92ee_phy_rf6052_config() argument 66 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_phy_rf6052_config() 74 return _rtl92ee_phy_rf6052_config_parafile(hw); in rtl92ee_phy_rf6052_config() [all …]
|
D | hw.c | 45 static void _rtl92ee_set_bcn_ctrl_reg(struct ieee80211_hw *hw, in _rtl92ee_set_bcn_ctrl_reg() argument 48 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ee_set_bcn_ctrl_reg() 49 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_set_bcn_ctrl_reg() 57 static void _rtl92ee_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl92ee_stop_tx_beacon() argument 59 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_stop_tx_beacon() 70 static void _rtl92ee_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl92ee_resume_tx_beacon() argument 72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_resume_tx_beacon() 83 static void _rtl92ee_enable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl92ee_enable_bcn_sub_func() argument 85 _rtl92ee_set_bcn_ctrl_reg(hw, 0, BIT(1)); in _rtl92ee_enable_bcn_sub_func() 88 static void _rtl92ee_disable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl92ee_disable_bcn_sub_func() argument [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | phy.c | 39 static bool _rtl8723be_phy_bb8723b_config_parafile(struct ieee80211_hw *hw); 40 static bool _rtl8723be_phy_config_mac_with_headerfile(struct ieee80211_hw *hw); 41 static bool _rtl8723be_phy_config_bb_with_headerfile(struct ieee80211_hw *hw, 43 static bool _rtl8723be_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw, 45 static bool _rtl8723be_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw, 49 static void rtl8723be_phy_set_rf_on(struct ieee80211_hw *hw); 50 static void rtl8723be_phy_set_io(struct ieee80211_hw *hw); 52 u32 rtl8723be_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, in rtl8723be_phy_query_rf_reg() argument 55 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_phy_query_rf_reg() 65 original_value = rtl8723_phy_rf_serial_read(hw, rfpath, regaddr); in rtl8723be_phy_query_rf_reg() [all …]
|
D | hw.h | 29 void rtl8723be_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 30 void rtl8723be_read_eeprom_info(struct ieee80211_hw *hw); 32 void rtl8723be_interrupt_recognized(struct ieee80211_hw *hw, 34 int rtl8723be_hw_init(struct ieee80211_hw *hw); 35 void rtl8723be_card_disable(struct ieee80211_hw *hw); 36 void rtl8723be_enable_interrupt(struct ieee80211_hw *hw); 37 void rtl8723be_disable_interrupt(struct ieee80211_hw *hw); 38 int rtl8723be_set_network_type(struct ieee80211_hw *hw, 40 void rtl8723be_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 41 void rtl8723be_set_qos(struct ieee80211_hw *hw, int aci); [all …]
|
D | dm.c | 179 void rtl8723be_dm_txpower_track_adjust(struct ieee80211_hw *hw, u8 type, in rtl8723be_dm_txpower_track_adjust() argument 182 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_txpower_track_adjust() 183 struct rtl_dm *rtldm = rtl_dm(rtl_priv(hw)); in rtl8723be_dm_txpower_track_adjust() 215 void rtl8723be_dm_init_rate_adaptive_mask(struct ieee80211_hw *hw) in rtl8723be_dm_init_rate_adaptive_mask() argument 217 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_init_rate_adaptive_mask() 232 static void rtl8723be_dm_init_txpower_tracking(struct ieee80211_hw *hw) in rtl8723be_dm_init_txpower_tracking() argument 234 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_init_txpower_tracking() 255 static void rtl8723be_dm_init_dynamic_atc_switch(struct ieee80211_hw *hw) in rtl8723be_dm_init_dynamic_atc_switch() argument 257 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_init_dynamic_atc_switch() 261 rtlpriv->dm.atc_status = rtl_get_bbreg(hw, ROFDM1_CFOTRACKING, 0x800); in rtl8723be_dm_init_dynamic_atc_switch() [all …]
|
D | phy.h | 46 #define RT_CANNOT_IO(hw) false argument 107 u32 rtl8723be_phy_query_rf_reg(struct ieee80211_hw *hw, 110 void rtl8723be_phy_set_rf_reg(struct ieee80211_hw *hw, 113 bool rtl8723be_phy_mac_config(struct ieee80211_hw *hw); 114 bool rtl8723be_phy_bb_config(struct ieee80211_hw *hw); 115 bool rtl8723be_phy_rf_config(struct ieee80211_hw *hw); 116 void rtl8723be_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw); 117 void rtl8723be_phy_set_txpower_level(struct ieee80211_hw *hw, 119 void rtl8723be_phy_scan_operation_backup(struct ieee80211_hw *hw, 121 void rtl8723be_phy_set_bw_mode_callback(struct ieee80211_hw *hw); [all …]
|
D | hw.c | 49 static void _rtl8723be_return_beacon_queue_skb(struct ieee80211_hw *hw) in _rtl8723be_return_beacon_queue_skb() argument 51 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_return_beacon_queue_skb() 52 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_return_beacon_queue_skb() 71 static void _rtl8723be_set_bcn_ctrl_reg(struct ieee80211_hw *hw, in _rtl8723be_set_bcn_ctrl_reg() argument 74 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_set_bcn_ctrl_reg() 75 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_set_bcn_ctrl_reg() 83 static void _rtl8723be_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl8723be_stop_tx_beacon() argument 85 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_stop_tx_beacon() 96 static void _rtl8723be_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl8723be_resume_tx_beacon() argument 98 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_resume_tx_beacon() [all …]
|
/linux-4.4.14/drivers/clk/sirf/ |
D | clk-prima2.c | 24 .hw = { 32 .hw = { 40 .hw = { 54 .hw = { 71 &clk_pll1.hw, 72 &clk_pll2.hw, 73 &clk_pll3.hw, 74 &clk_mem.hw, 75 &clk_sys.hw, 76 &clk_security.hw, [all …]
|
D | clk-atlas6.c | 24 .hw = { 32 .hw = { 40 .hw = { 55 .hw = { 72 &clk_pll1.hw, 73 &clk_pll2.hw, 74 &clk_pll3.hw, 75 &clk_mem.hw, 76 &clk_sys.hw, 77 &clk_security.hw, [all …]
|
D | clk-common.c | 35 struct clk_hw hw; member 39 #define to_pllclk(_hw) container_of(_hw, struct clk_pll, hw) 42 struct clk_hw hw; member 47 #define to_dmnclk(_hw) container_of(_hw, struct clk_dmn, hw) 50 struct clk_hw hw; member 54 #define to_stdclk(_hw) container_of(_hw, struct clk_std, hw) 56 static int std_clk_is_enabled(struct clk_hw *hw); 57 static int std_clk_enable(struct clk_hw *hw); 58 static void std_clk_disable(struct clk_hw *hw); 74 static unsigned long pll_clk_recalc_rate(struct clk_hw *hw, in pll_clk_recalc_rate() argument [all …]
|
/linux-4.4.14/drivers/net/fjes/ |
D | fjes_hw.c | 37 u32 fjes_hw_rd32(struct fjes_hw *hw, u32 reg) in fjes_hw_rd32() argument 39 u8 *base = hw->base; in fjes_hw_rd32() 47 static u8 *fjes_hw_iomap(struct fjes_hw *hw) in fjes_hw_iomap() argument 51 if (!request_mem_region(hw->hw_res.start, hw->hw_res.size, in fjes_hw_iomap() 57 base = (u8 *)ioremap_nocache(hw->hw_res.start, hw->hw_res.size); in fjes_hw_iomap() 62 static void fjes_hw_iounmap(struct fjes_hw *hw) in fjes_hw_iounmap() argument 64 iounmap(hw->base); in fjes_hw_iounmap() 65 release_mem_region(hw->hw_res.start, hw->hw_res.size); in fjes_hw_iounmap() 68 int fjes_hw_reset(struct fjes_hw *hw) in fjes_hw_reset() argument 88 static int fjes_hw_get_max_epid(struct fjes_hw *hw) in fjes_hw_get_max_epid() argument [all …]
|
D | fjes_main.c | 210 result = request_irq(adapter->hw.hw_res.irq, fjes_intr, in fjes_request_irq() 223 struct fjes_hw *hw = &adapter->hw; in fjes_free_irq() local 228 fjes_hw_set_irqmask(hw, REG_ICTL_MASK_ALL, true); in fjes_free_irq() 231 free_irq(adapter->hw.hw_res.irq, adapter); in fjes_free_irq() 251 struct fjes_hw *hw = &adapter->hw; in fjes_open() local 261 hw->txrx_stop_req_bit = 0; in fjes_open() 262 hw->epstop_req_bit = 0; in fjes_open() 266 fjes_hw_capture_interrupt_status(hw); in fjes_open() 272 fjes_hw_set_irqmask(hw, REG_ICTL_MASK_ALL, false); in fjes_open() 292 struct fjes_hw *hw = &adapter->hw; in fjes_close() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_common.c | 30 s32 fm10k_get_bus_info_generic(struct fm10k_hw *hw) in fm10k_get_bus_info_generic() argument 35 link_cap = fm10k_read_pci_cfg_word(hw, FM10K_PCIE_LINK_CAP); in fm10k_get_bus_info_generic() 39 hw->bus_caps.width = fm10k_bus_width_pcie_x1; in fm10k_get_bus_info_generic() 42 hw->bus_caps.width = fm10k_bus_width_pcie_x2; in fm10k_get_bus_info_generic() 45 hw->bus_caps.width = fm10k_bus_width_pcie_x4; in fm10k_get_bus_info_generic() 48 hw->bus_caps.width = fm10k_bus_width_pcie_x8; in fm10k_get_bus_info_generic() 51 hw->bus_caps.width = fm10k_bus_width_unknown; in fm10k_get_bus_info_generic() 57 hw->bus_caps.speed = fm10k_bus_speed_2500; in fm10k_get_bus_info_generic() 60 hw->bus_caps.speed = fm10k_bus_speed_5000; in fm10k_get_bus_info_generic() 63 hw->bus_caps.speed = fm10k_bus_speed_8000; in fm10k_get_bus_info_generic() [all …]
|
D | fm10k_pf.c | 31 static s32 fm10k_reset_hw_pf(struct fm10k_hw *hw) in fm10k_reset_hw_pf() argument 38 fm10k_write_reg(hw, FM10K_EIMR, FM10K_EIMR_DISABLE(ALL)); in fm10k_reset_hw_pf() 41 fm10k_write_reg(hw, FM10K_ITR2(0), 0); in fm10k_reset_hw_pf() 42 fm10k_write_reg(hw, FM10K_INT_CTRL, 0); in fm10k_reset_hw_pf() 48 fm10k_write_reg(hw, FM10K_TQMAP(i), 0); in fm10k_reset_hw_pf() 49 fm10k_write_reg(hw, FM10K_RQMAP(i), 0); in fm10k_reset_hw_pf() 53 err = fm10k_disable_queues_generic(hw, FM10K_MAX_QUEUES); in fm10k_reset_hw_pf() 58 reg = fm10k_read_reg(hw, FM10K_DMA_CTRL); in fm10k_reset_hw_pf() 63 reg = fm10k_read_reg(hw, FM10K_DMA_CTRL2); in fm10k_reset_hw_pf() 69 fm10k_write_reg(hw, FM10K_DMA_CTRL, reg); in fm10k_reset_hw_pf() [all …]
|
D | fm10k_vf.c | 28 static s32 fm10k_stop_hw_vf(struct fm10k_hw *hw) in fm10k_stop_hw_vf() argument 30 u8 *perm_addr = hw->mac.perm_addr; in fm10k_stop_hw_vf() 36 err = fm10k_stop_hw_generic(hw); in fm10k_stop_hw_vf() 54 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf() 55 fm10k_write_reg(hw, FM10K_TDBAL(i), bal); in fm10k_stop_hw_vf() 56 fm10k_write_reg(hw, FM10K_TDBAH(i), bah); in fm10k_stop_hw_vf() 57 fm10k_write_reg(hw, FM10K_RDBAL(i), bal); in fm10k_stop_hw_vf() 58 fm10k_write_reg(hw, FM10K_RDBAH(i), bah); in fm10k_stop_hw_vf() 71 static s32 fm10k_reset_hw_vf(struct fm10k_hw *hw) in fm10k_reset_hw_vf() argument 76 err = fm10k_stop_hw_vf(hw); in fm10k_reset_hw_vf() [all …]
|
D | fm10k_iov.c | 25 static s32 fm10k_iov_msg_error(struct fm10k_hw *hw, u32 **results, in fm10k_iov_msg_error() argument 29 struct fm10k_intfc *interface = hw->back; in fm10k_iov_msg_error() 35 return fm10k_tlv_msg_error(hw, results, mbx); in fm10k_iov_msg_error() 48 struct fm10k_hw *hw = &interface->hw; in fm10k_iov_event() local 65 if (!(fm10k_read_reg(hw, FM10K_EICR) & FM10K_EICR_VFLR)) in fm10k_iov_event() 70 vflre = fm10k_read_reg(hw, FM10K_PFVFLRE(0)); in fm10k_iov_event() 72 vflre |= fm10k_read_reg(hw, FM10K_PFVFLRE(1)); in fm10k_iov_event() 74 vflre |= fm10k_read_reg(hw, FM10K_PFVFLRE(0)); in fm10k_iov_event() 84 hw->iov.ops.reset_resources(hw, vf_info); in fm10k_iov_event() 85 vf_info->mbx.ops.connect(hw, &vf_info->mbx); in fm10k_iov_event() [all …]
|
D | fm10k_pci.c | 48 u16 fm10k_read_pci_cfg_word(struct fm10k_hw *hw, u32 reg) in fm10k_read_pci_cfg_word() argument 50 struct fm10k_intfc *interface = hw->back; in fm10k_read_pci_cfg_word() 53 if (FM10K_REMOVED(hw->hw_addr)) in fm10k_read_pci_cfg_word() 58 fm10k_write_flush(hw); in fm10k_read_pci_cfg_word() 63 u32 fm10k_read_reg(struct fm10k_hw *hw, int reg) in fm10k_read_reg() argument 65 u32 __iomem *hw_addr = ACCESS_ONCE(hw->hw_addr); in fm10k_read_reg() 73 struct fm10k_intfc *interface = hw->back; in fm10k_read_reg() 76 hw->hw_addr = NULL; in fm10k_read_reg() 86 struct fm10k_hw *hw = &interface->hw; in fm10k_hw_ready() local 88 fm10k_write_flush(hw); in fm10k_hw_ready() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | phy.h | 39 #define RT_CANNOT_IO(hw) false argument 81 bool rtl92c_phy_bb_config(struct ieee80211_hw *hw); 82 u32 rtl92c_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask); 83 void rtl92c_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, 85 u32 rtl92c_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, 87 void rtl92ce_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, 89 bool rtl92c_phy_mac_config(struct ieee80211_hw *hw); 90 bool rtl92ce_phy_bb_config(struct ieee80211_hw *hw); 91 bool rtl92c_phy_rf_config(struct ieee80211_hw *hw); 92 bool rtl92c_phy_config_rf_with_feaderfile(struct ieee80211_hw *hw, [all …]
|
D | hw.h | 46 void rtl92ce_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 47 void rtl92ce_read_eeprom_info(struct ieee80211_hw *hw); 48 void rtl92ce_interrupt_recognized(struct ieee80211_hw *hw, 50 int rtl92ce_hw_init(struct ieee80211_hw *hw); 51 void rtl92ce_card_disable(struct ieee80211_hw *hw); 52 void rtl92ce_enable_interrupt(struct ieee80211_hw *hw); 53 void rtl92ce_disable_interrupt(struct ieee80211_hw *hw); 54 int rtl92ce_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type); 55 void rtl92ce_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 56 void rtl92ce_set_qos(struct ieee80211_hw *hw, int aci); [all …]
|
D | phy.c | 45 static bool _rtl92c_phy_config_mac_with_headerfile(struct ieee80211_hw *hw); 47 u32 rtl92c_phy_query_rf_reg(struct ieee80211_hw *hw, in rtl92c_phy_query_rf_reg() argument 50 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_query_rf_reg() 61 original_value = _rtl92c_phy_rf_serial_read(hw, in rtl92c_phy_query_rf_reg() 64 original_value = _rtl92c_phy_fw_rf_serial_read(hw, in rtl92c_phy_query_rf_reg() 80 bool rtl92c_phy_mac_config(struct ieee80211_hw *hw) in rtl92c_phy_mac_config() argument 82 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_mac_config() 83 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92c_phy_mac_config() 85 bool rtstatus = _rtl92c_phy_config_mac_with_headerfile(hw); in rtl92c_phy_mac_config() 94 bool rtl92c_phy_bb_config(struct ieee80211_hw *hw) in rtl92c_phy_bb_config() argument [all …]
|
D | hw.c | 49 static void _rtl92ce_set_bcn_ctrl_reg(struct ieee80211_hw *hw, in _rtl92ce_set_bcn_ctrl_reg() argument 52 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ce_set_bcn_ctrl_reg() 53 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_set_bcn_ctrl_reg() 61 static void _rtl92ce_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl92ce_stop_tx_beacon() argument 63 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_stop_tx_beacon() 74 static void _rtl92ce_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl92ce_resume_tx_beacon() argument 76 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_resume_tx_beacon() 87 static void _rtl92ce_enable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl92ce_enable_bcn_sub_func() argument 89 _rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(1)); in _rtl92ce_enable_bcn_sub_func() 92 static void _rtl92ce_disable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl92ce_disable_bcn_sub_func() argument [all …]
|
/linux-4.4.14/drivers/misc/mei/ |
D | hw-txe.c | 68 static inline u32 mei_txe_sec_reg_read_silent(struct mei_txe_hw *hw, in mei_txe_sec_reg_read_silent() argument 71 return mei_txe_reg_read(hw->mem_addr[SEC_BAR], offset); in mei_txe_sec_reg_read_silent() 84 static inline u32 mei_txe_sec_reg_read(struct mei_txe_hw *hw, in mei_txe_sec_reg_read() argument 87 WARN(!hw->aliveness, "sec read: aliveness not asserted\n"); in mei_txe_sec_reg_read() 88 return mei_txe_sec_reg_read_silent(hw, offset); in mei_txe_sec_reg_read() 100 static inline void mei_txe_sec_reg_write_silent(struct mei_txe_hw *hw, in mei_txe_sec_reg_write_silent() argument 103 mei_txe_reg_write(hw->mem_addr[SEC_BAR], offset, value); in mei_txe_sec_reg_write_silent() 115 static inline void mei_txe_sec_reg_write(struct mei_txe_hw *hw, in mei_txe_sec_reg_write() argument 118 WARN(!hw->aliveness, "sec write: aliveness not asserted\n"); in mei_txe_sec_reg_write() 119 mei_txe_sec_reg_write_silent(hw, offset, value); in mei_txe_sec_reg_write() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | phy.c | 37 static void _rtl8723e_phy_fw_rf_serial_write(struct ieee80211_hw *hw, 40 static bool _rtl8723e_phy_bb8192c_config_parafile(struct ieee80211_hw *hw); 41 static bool _rtl8723e_phy_config_mac_with_headerfile(struct ieee80211_hw *hw); 42 static bool _rtl8723e_phy_config_bb_with_headerfile(struct ieee80211_hw *hw, 44 static bool _rtl8723e_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw, 46 static bool _rtl8723e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw, 49 static u8 _rtl8723e_phy_dbm_to_txpwr_idx(struct ieee80211_hw *hw, 52 static void rtl8723e_phy_set_rf_on(struct ieee80211_hw *hw); 53 static void rtl8723e_phy_set_io(struct ieee80211_hw *hw); 55 u32 rtl8723e_phy_query_rf_reg(struct ieee80211_hw *hw, in rtl8723e_phy_query_rf_reg() argument [all …]
|
D | dm.c | 150 static u8 rtl8723e_dm_initial_gain_min_pwdb(struct ieee80211_hw *hw) in rtl8723e_dm_initial_gain_min_pwdb() argument 152 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723e_dm_initial_gain_min_pwdb() 177 static void rtl8723e_dm_false_alarm_counter_statistics(struct ieee80211_hw *hw) in rtl8723e_dm_false_alarm_counter_statistics() argument 180 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723e_dm_false_alarm_counter_statistics() 183 ret_value = rtl_get_bbreg(hw, ROFDM_PHYCOUNTER1, MASKDWORD); in rtl8723e_dm_false_alarm_counter_statistics() 186 ret_value = rtl_get_bbreg(hw, ROFDM_PHYCOUNTER2, MASKDWORD); in rtl8723e_dm_false_alarm_counter_statistics() 190 ret_value = rtl_get_bbreg(hw, ROFDM_PHYCOUNTER3, MASKDWORD); in rtl8723e_dm_false_alarm_counter_statistics() 196 rtl_set_bbreg(hw, RCCK0_FALSEALARMREPORT, BIT(14), 1); in rtl8723e_dm_false_alarm_counter_statistics() 197 ret_value = rtl_get_bbreg(hw, RCCK0_FACOUNTERLOWER, MASKBYTE0); in rtl8723e_dm_false_alarm_counter_statistics() 200 ret_value = rtl_get_bbreg(hw, RCCK0_FACOUNTERUPPER, MASKBYTE3); in rtl8723e_dm_false_alarm_counter_statistics() [all …]
|
D | hw.h | 33 void rtl8723e_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 34 void rtl8723e_read_eeprom_info(struct ieee80211_hw *hw); 36 void rtl8723e_interrupt_recognized(struct ieee80211_hw *hw, 38 int rtl8723e_hw_init(struct ieee80211_hw *hw); 39 void rtl8723e_card_disable(struct ieee80211_hw *hw); 40 void rtl8723e_enable_interrupt(struct ieee80211_hw *hw); 41 void rtl8723e_disable_interrupt(struct ieee80211_hw *hw); 42 int rtl8723e_set_network_type(struct ieee80211_hw *hw, 44 void rtl8723e_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 45 void rtl8723e_set_qos(struct ieee80211_hw *hw, int aci); [all …]
|
D | hal_btc.c | 35 void rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps(struct ieee80211_hw *hw) in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() argument 37 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 38 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 50 rtl8723e_btdm_coex_all_off(hw); in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 54 static enum rt_media_status mgnt_link_status_query(struct ieee80211_hw *hw) in mgnt_link_status_query() argument 56 struct rtl_priv *rtlpriv = rtl_priv(hw); in mgnt_link_status_query() 57 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in mgnt_link_status_query() 66 void rtl_8723e_bt_wifi_media_status_notify(struct ieee80211_hw *hw, in rtl_8723e_bt_wifi_media_status_notify() argument 69 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_8723e_bt_wifi_media_status_notify() 82 if (mgnt_link_status_query(hw)) { in rtl_8723e_bt_wifi_media_status_notify() [all …]
|
D | hw.c | 49 static void _rtl8723e_set_bcn_ctrl_reg(struct ieee80211_hw *hw, in _rtl8723e_set_bcn_ctrl_reg() argument 52 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723e_set_bcn_ctrl_reg() 53 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_set_bcn_ctrl_reg() 61 static void _rtl8723e_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl8723e_stop_tx_beacon() argument 63 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_stop_tx_beacon() 74 static void _rtl8723e_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl8723e_resume_tx_beacon() argument 76 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_resume_tx_beacon() 87 static void _rtl8723e_enable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl8723e_enable_bcn_sub_func() argument 89 _rtl8723e_set_bcn_ctrl_reg(hw, 0, BIT(1)); in _rtl8723e_enable_bcn_sub_func() 92 static void _rtl8723e_disable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl8723e_disable_bcn_sub_func() argument [all …]
|
/linux-4.4.14/drivers/net/ethernet/atheros/atlx/ |
D | atl2.c | 87 struct atl2_hw *hw = &adapter->hw; in atl2_sw_init() local 91 hw->vendor_id = pdev->vendor; in atl2_sw_init() 92 hw->device_id = pdev->device; in atl2_sw_init() 93 hw->subsystem_vendor_id = pdev->subsystem_vendor; in atl2_sw_init() 94 hw->subsystem_id = pdev->subsystem_device; in atl2_sw_init() 95 hw->revision_id = pdev->revision; in atl2_sw_init() 97 pci_read_config_word(pdev, PCI_COMMAND, &hw->pci_cmd_word); in atl2_sw_init() 104 hw->phy_configured = false; in atl2_sw_init() 105 hw->preamble_len = 7; in atl2_sw_init() 106 hw->ipgt = 0x60; in atl2_sw_init() [all …]
|
D | atl1.c | 257 static s32 atl1_reset_hw(struct atl1_hw *hw) in atl1_reset_hw() argument 259 struct pci_dev *pdev = hw->back->pdev; in atl1_reset_hw() 260 struct atl1_adapter *adapter = hw->back; in atl1_reset_hw() 279 iowrite32(MASTER_CTRL_SOFT_RST, hw->hw_addr + REG_MASTER_CTRL); in atl1_reset_hw() 280 ioread32(hw->hw_addr + REG_MASTER_CTRL); in atl1_reset_hw() 282 iowrite16(1, hw->hw_addr + REG_PHY_ENABLE); in atl1_reset_hw() 283 ioread16(hw->hw_addr + REG_PHY_ENABLE); in atl1_reset_hw() 290 icr = ioread32(hw->hw_addr + REG_IDLE_STATUS); in atl1_reset_hw() 313 static int atl1_check_eeprom_exist(struct atl1_hw *hw) in atl1_check_eeprom_exist() argument 316 value = ioread32(hw->hw_addr + REG_SPI_FLASH_CTRL); in atl1_check_eeprom_exist() [all …]
|
/linux-4.4.14/sound/pci/emu10k1/ |
D | emu10k1_callback.c | 39 static void lookup_voices(struct snd_emux *emux, struct snd_emu10k1 *hw, 49 static void set_fmmod(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 50 static void set_fm2frq2(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 51 static void set_filterQ(struct snd_emu10k1 *hw, struct snd_emux_voice *vp); 92 snd_emu10k1_synth_get_voice(struct snd_emu10k1 *hw) in snd_emu10k1_synth_get_voice() argument 99 emu = hw->synth; in snd_emu10k1_synth_get_voice() 101 lookup_voices(emu, hw, best, 1); /* no OFF voices */ in snd_emu10k1_synth_get_voice() 132 struct snd_emu10k1 *hw; in release_voice() local 134 hw = vp->hw; in release_voice() 136 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); in release_voice() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | hw.h | 29 void rtl8821ae_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 30 void rtl8821ae_read_eeprom_info(struct ieee80211_hw *hw); 32 void rtl8821ae_interrupt_recognized(struct ieee80211_hw *hw, 34 int rtl8821ae_hw_init(struct ieee80211_hw *hw); 35 void rtl8821ae_card_disable(struct ieee80211_hw *hw); 36 void rtl8821ae_enable_interrupt(struct ieee80211_hw *hw); 37 void rtl8821ae_disable_interrupt(struct ieee80211_hw *hw); 38 int rtl8821ae_set_network_type(struct ieee80211_hw *hw, 40 void rtl8821ae_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 41 void rtl8821ae_set_qos(struct ieee80211_hw *hw, int aci); [all …]
|
D | phy.c | 47 static u32 _rtl8821ae_phy_rf_serial_read(struct ieee80211_hw *hw, 49 static void _rtl8821ae_phy_rf_serial_write(struct ieee80211_hw *hw, 53 static bool _rtl8821ae_phy_bb8821a_config_parafile(struct ieee80211_hw *hw); 55 static bool _rtl8821ae_phy_config_mac_with_headerfile(struct ieee80211_hw *hw); 56 static bool _rtl8821ae_phy_config_bb_with_headerfile(struct ieee80211_hw *hw, 58 static bool _rtl8821ae_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw, 60 static void phy_init_bb_rf_register_definition(struct ieee80211_hw *hw); 62 static long _rtl8821ae_phy_txpwr_idx_to_dbm(struct ieee80211_hw *hw, 65 static void rtl8821ae_phy_set_rf_on(struct ieee80211_hw *hw); 66 static void rtl8821ae_phy_set_io(struct ieee80211_hw *hw); [all …]
|
D | phy.h | 46 #define RT_CANNOT_IO(hw) false argument 208 u32 rtl8821ae_phy_query_bb_reg(struct ieee80211_hw *hw, 210 void rtl8821ae_phy_set_bb_reg(struct ieee80211_hw *hw, 212 u32 rtl8821ae_phy_query_rf_reg(struct ieee80211_hw *hw, 215 void rtl8821ae_phy_set_rf_reg(struct ieee80211_hw *hw, 218 bool rtl8821ae_phy_mac_config(struct ieee80211_hw *hw); 219 bool rtl8821ae_phy_bb_config(struct ieee80211_hw *hw); 220 bool rtl8821ae_phy_rf_config(struct ieee80211_hw *hw); 221 void rtl8821ae_phy_switch_wirelessband(struct ieee80211_hw *hw, 223 void rtl8821ae_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw); [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | phy.c | 36 static u32 _rtl88e_phy_rf_serial_read(struct ieee80211_hw *hw, 38 static void _rtl88e_phy_rf_serial_write(struct ieee80211_hw *hw, 42 static bool _rtl88e_phy_bb8188e_config_parafile(struct ieee80211_hw *hw); 43 static bool _rtl88e_phy_config_mac_with_headerfile(struct ieee80211_hw *hw); 44 static bool phy_config_bb_with_headerfile(struct ieee80211_hw *hw, 46 static bool phy_config_bb_with_pghdr(struct ieee80211_hw *hw, 48 static void _rtl88e_phy_init_bb_rf_register_definition(struct ieee80211_hw *hw); 53 static bool _rtl88e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw, 57 static long _rtl88e_phy_txpwr_idx_to_dbm(struct ieee80211_hw *hw, 60 static void rtl88ee_phy_set_rf_on(struct ieee80211_hw *hw); [all …]
|
D | hw.h | 33 void rtl88ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 34 void rtl88ee_read_eeprom_info(struct ieee80211_hw *hw); 35 void rtl88ee_interrupt_recognized(struct ieee80211_hw *hw, 37 int rtl88ee_hw_init(struct ieee80211_hw *hw); 38 void rtl88ee_card_disable(struct ieee80211_hw *hw); 39 void rtl88ee_enable_interrupt(struct ieee80211_hw *hw); 40 void rtl88ee_disable_interrupt(struct ieee80211_hw *hw); 41 int rtl88ee_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type); 42 void rtl88ee_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 43 void rtl88ee_set_qos(struct ieee80211_hw *hw, int aci); [all …]
|
D | dm.c | 168 static void rtl88e_set_iqk_matrix(struct ieee80211_hw *hw, in rtl88e_set_iqk_matrix() argument 188 rtl_set_bbreg(hw, ROFDM0_XATXIQIMBALANCE, in rtl88e_set_iqk_matrix() 191 rtl_set_bbreg(hw, ROFDM0_XCTXAFE, MASKH4BITS, in rtl88e_set_iqk_matrix() 194 rtl_set_bbreg(hw, ROFDM0_ECCATHRESHOLD, BIT(24), in rtl88e_set_iqk_matrix() 199 rtl_set_bbreg(hw, ROFDM0_XBTXIQIMBALANCE, MASKDWORD, in rtl88e_set_iqk_matrix() 202 rtl_set_bbreg(hw, ROFDM0_XDTXAFE, MASKH4BITS, value32); in rtl88e_set_iqk_matrix() 204 rtl_set_bbreg(hw, ROFDM0_ECCATHRESHOLD, BIT(28), in rtl88e_set_iqk_matrix() 213 rtl_set_bbreg(hw, ROFDM0_XATXIQIMBALANCE, in rtl88e_set_iqk_matrix() 215 rtl_set_bbreg(hw, ROFDM0_XCTXAFE, in rtl88e_set_iqk_matrix() 217 rtl_set_bbreg(hw, ROFDM0_ECCATHRESHOLD, in rtl88e_set_iqk_matrix() [all …]
|
D | hw.c | 45 static void _rtl88ee_set_bcn_ctrl_reg(struct ieee80211_hw *hw, in _rtl88ee_set_bcn_ctrl_reg() argument 48 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_set_bcn_ctrl_reg() 49 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_set_bcn_ctrl_reg() 57 static void _rtl88ee_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl88ee_stop_tx_beacon() argument 59 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_stop_tx_beacon() 70 static void _rtl88ee_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl88ee_resume_tx_beacon() argument 72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_resume_tx_beacon() 83 static void _rtl88ee_enable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl88ee_enable_bcn_sub_func() argument 85 _rtl88ee_set_bcn_ctrl_reg(hw, 0, BIT(1)); in _rtl88ee_enable_bcn_sub_func() 88 static void _rtl88ee_return_beacon_queue_skb(struct ieee80211_hw *hw) in _rtl88ee_return_beacon_queue_skb() argument [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | phy_common.c | 38 u32 rtl92c_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl92c_phy_query_bb_reg() argument 40 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_query_bb_reg() 57 void rtl92c_phy_set_bb_reg(struct ieee80211_hw *hw, in rtl92c_phy_set_bb_reg() argument 60 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_set_bb_reg() 81 u32 _rtl92c_phy_fw_rf_serial_read(struct ieee80211_hw *hw, in _rtl92c_phy_fw_rf_serial_read() argument 89 void _rtl92c_phy_fw_rf_serial_write(struct ieee80211_hw *hw, in _rtl92c_phy_fw_rf_serial_write() argument 97 u32 _rtl92c_phy_rf_serial_read(struct ieee80211_hw *hw, in _rtl92c_phy_rf_serial_read() argument 100 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_rf_serial_read() 110 if (RT_CANNOT_IO(hw)) { in _rtl92c_phy_rf_serial_read() 114 tmplong = rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, MASKDWORD); in _rtl92c_phy_rf_serial_read() [all …]
|
D | phy_common.h | 39 #define RT_CANNOT_IO(hw) false argument 188 u32 rtl92c_phy_query_bb_reg(struct ieee80211_hw *hw, 190 void rtl92c_phy_set_bb_reg(struct ieee80211_hw *hw, 192 u32 rtl92c_phy_query_rf_reg(struct ieee80211_hw *hw, 195 bool rtl92c_phy_mac_config(struct ieee80211_hw *hw); 196 bool rtl92c_phy_bb_config(struct ieee80211_hw *hw); 197 bool rtl92c_phy_rf_config(struct ieee80211_hw *hw); 198 bool rtl92c_phy_config_rf_with_feaderfile(struct ieee80211_hw *hw, 200 void rtl92c_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw); 201 void rtl92c_phy_get_txpower_level(struct ieee80211_hw *hw, [all …]
|
D | dm_common.c | 165 void dm_restorepowerindex(struct ieee80211_hw *hw) in dm_restorepowerindex() argument 167 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_restorepowerindex() 176 void dm_writepowerindex(struct ieee80211_hw *hw, u8 value) in dm_writepowerindex() argument 178 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_writepowerindex() 186 void dm_savepowerindex(struct ieee80211_hw *hw) in dm_savepowerindex() argument 188 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_savepowerindex() 199 static u8 rtl92c_dm_initial_gain_min_pwdb(struct ieee80211_hw *hw) in rtl92c_dm_initial_gain_min_pwdb() argument 201 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_dm_initial_gain_min_pwdb() 227 static void rtl92c_dm_false_alarm_counter_statistics(struct ieee80211_hw *hw) in rtl92c_dm_false_alarm_counter_statistics() argument 230 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_dm_false_alarm_counter_statistics() [all …]
|
/linux-4.4.14/drivers/video/fbdev/matrox/ |
D | matroxfb_DAC1064.c | 94 minfo->hw.DACclk[0] = m; in DAC1064_setpclk() 95 minfo->hw.DACclk[1] = n; in DAC1064_setpclk() 96 minfo->hw.DACclk[2] = p; in DAC1064_setpclk() 103 struct matrox_hw_state *hw = &minfo->hw; in DAC1064_setmclk() local 109 hw->DACclk[3] = inDAC1064(minfo, DAC1064_XSYSPLLM); in DAC1064_setmclk() 110 hw->DACclk[4] = inDAC1064(minfo, DAC1064_XSYSPLLN); in DAC1064_setmclk() 111 hw->DACclk[5] = inDAC1064(minfo, DAC1064_XSYSPLLP); in DAC1064_setmclk() 114 mx = hw->MXoptionReg | 0x00000004; in DAC1064_setmclk() 142 outDAC1064(minfo, DAC1064_XSYSPLLM, hw->DACclk[3] = m); in DAC1064_setmclk() 143 outDAC1064(minfo, DAC1064_XSYSPLLN, hw->DACclk[4] = n); in DAC1064_setmclk() [all …]
|
D | matroxfb_Ti3026.c | 302 struct matrox_hw_state *hw = &minfo->hw; in Ti3026_setpclk() local 308 hw->DACclk[0] = pixin | 0xC0; in Ti3026_setpclk() 309 hw->DACclk[1] = pixfeed; in Ti3026_setpclk() 310 hw->DACclk[2] = pixpost | 0xB0; in Ti3026_setpclk() 338 hw->DACclk[3] = ((65 - loopin) & 0x3F) | 0xC0; in Ti3026_setpclk() 339 hw->DACclk[4] = (65 - loopfeed) | 0x80; in Ti3026_setpclk() 342 hw->DACreg[POS3026_XLATCHCTRL] = TVP3026B_XLATCHCTRL_8_3; in Ti3026_setpclk() 344 hw->DACclk[4] &= ~0xC0; in Ti3026_setpclk() 345 hw->DACreg[POS3026_XLATCHCTRL] = TVP3026B_XLATCHCTRL_4_3; in Ti3026_setpclk() 351 hw->DACclk[4] ^= 0xC0; /* change from 0x80 to 0x40 */ in Ti3026_setpclk() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | phy.c | 201 u32 rtl92d_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl92d_phy_query_bb_reg() argument 203 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92d_phy_query_bb_reg() 218 originalvalue = rtl92de_read_dword_dbi(hw, (u16)regaddr, in rtl92d_phy_query_bb_reg() 231 void rtl92d_phy_set_bb_reg(struct ieee80211_hw *hw, in rtl92d_phy_set_bb_reg() argument 234 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92d_phy_set_bb_reg() 250 originalvalue = rtl92de_read_dword_dbi(hw, in rtl92d_phy_set_bb_reg() 259 rtl92de_write_dword_dbi(hw, (u16) regaddr, data, dbi_direct); in rtl92d_phy_set_bb_reg() 267 static u32 _rtl92d_phy_rf_serial_read(struct ieee80211_hw *hw, in _rtl92d_phy_rf_serial_read() argument 271 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92d_phy_rf_serial_read() 280 tmplong = rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, MASKDWORD); in _rtl92d_phy_rf_serial_read() [all …]
|
D | phy.h | 39 #define RT_CANNOT_IO(hw) false argument 109 static inline void rtl92d_acquire_cckandrw_pagea_ctl(struct ieee80211_hw *hw, in rtl92d_acquire_cckandrw_pagea_ctl() argument 112 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92d_acquire_cckandrw_pagea_ctl() 118 static inline void rtl92d_release_cckandrw_pagea_ctl(struct ieee80211_hw *hw, in rtl92d_release_cckandrw_pagea_ctl() argument 121 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92d_release_cckandrw_pagea_ctl() 128 u32 rtl92d_phy_query_bb_reg(struct ieee80211_hw *hw, 130 void rtl92d_phy_set_bb_reg(struct ieee80211_hw *hw, 132 u32 rtl92d_phy_query_rf_reg(struct ieee80211_hw *hw, 135 void rtl92d_phy_set_rf_reg(struct ieee80211_hw *hw, 138 bool rtl92d_phy_mac_config(struct ieee80211_hw *hw); [all …]
|
D | hw.h | 33 void rtl92de_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 34 void rtl92de_read_eeprom_info(struct ieee80211_hw *hw); 35 void rtl92de_interrupt_recognized(struct ieee80211_hw *hw, 37 int rtl92de_hw_init(struct ieee80211_hw *hw); 38 void rtl92de_card_disable(struct ieee80211_hw *hw); 39 void rtl92de_enable_interrupt(struct ieee80211_hw *hw); 40 void rtl92de_disable_interrupt(struct ieee80211_hw *hw); 41 int rtl92de_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type); 42 void rtl92de_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 43 void rtl92de_set_qos(struct ieee80211_hw *hw, int aci); [all …]
|
D | hw.c | 46 u32 rtl92de_read_dword_dbi(struct ieee80211_hw *hw, u16 offset, u8 direct) in rtl92de_read_dword_dbi() argument 48 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92de_read_dword_dbi() 58 void rtl92de_write_dword_dbi(struct ieee80211_hw *hw, in rtl92de_write_dword_dbi() argument 61 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92de_write_dword_dbi() 68 static void _rtl92de_set_bcn_ctrl_reg(struct ieee80211_hw *hw, in _rtl92de_set_bcn_ctrl_reg() argument 71 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92de_set_bcn_ctrl_reg() 72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92de_set_bcn_ctrl_reg() 79 static void _rtl92de_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl92de_stop_tx_beacon() argument 81 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92de_stop_tx_beacon() 93 static void _rtl92de_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl92de_resume_tx_beacon() argument [all …]
|
/linux-4.4.14/drivers/input/misc/ |
D | ad714x.c | 216 struct ad714x_button_plat *hw = &ad714x->hw->button[idx]; in ad714x_button_state_machine() local 221 if (((ad714x->h_state & hw->h_mask) == hw->h_mask) && in ad714x_button_state_machine() 222 ((ad714x->l_state & hw->l_mask) == hw->l_mask)) { in ad714x_button_state_machine() 224 input_report_key(sw->input, hw->keycode, 1); in ad714x_button_state_machine() 231 if (((ad714x->h_state & hw->h_mask) != hw->h_mask) || in ad714x_button_state_machine() 232 ((ad714x->l_state & hw->l_mask) != hw->l_mask)) { in ad714x_button_state_machine() 234 input_report_key(sw->input, hw->keycode, 0); in ad714x_button_state_machine() 251 struct ad714x_slider_plat *hw = &ad714x->hw->slider[idx]; in ad714x_slider_cal_sensor_val() local 254 ad714x->read(ad714x, CDC_RESULT_S0 + hw->start_stage, in ad714x_slider_cal_sensor_val() 255 &ad714x->adc_reg[hw->start_stage], in ad714x_slider_cal_sensor_val() [all …]
|
/linux-4.4.14/sound/core/ |
D | hwdep.c | 58 struct snd_hwdep *hw = file->private_data; in snd_hwdep_llseek() local 59 if (hw->ops.llseek) in snd_hwdep_llseek() 60 return hw->ops.llseek(hw, file, offset, orig); in snd_hwdep_llseek() 67 struct snd_hwdep *hw = file->private_data; in snd_hwdep_read() local 68 if (hw->ops.read) in snd_hwdep_read() 69 return hw->ops.read(hw, buf, count, offset); in snd_hwdep_read() 76 struct snd_hwdep *hw = file->private_data; in snd_hwdep_write() local 77 if (hw->ops.write) in snd_hwdep_write() 78 return hw->ops.write(hw, buf, count, offset); in snd_hwdep_write() 85 struct snd_hwdep *hw; in snd_hwdep_open() local [all …]
|
/linux-4.4.14/drivers/net/ieee802154/ |
D | fakelb.c | 39 struct ieee802154_hw *hw; member 50 static int fakelb_hw_ed(struct ieee802154_hw *hw, u8 *level) in fakelb_hw_ed() argument 58 static int fakelb_hw_channel(struct ieee802154_hw *hw, u8 page, u8 channel) in fakelb_hw_channel() argument 60 struct fakelb_phy *phy = hw->priv; in fakelb_hw_channel() 69 static int fakelb_hw_xmit(struct ieee802154_hw *hw, struct sk_buff *skb) in fakelb_hw_xmit() argument 71 struct fakelb_phy *current_phy = hw->priv, *phy; in fakelb_hw_xmit() 84 ieee802154_rx_irqsafe(phy->hw, newskb, 0xcc); in fakelb_hw_xmit() 89 ieee802154_xmit_complete(hw, skb, false); in fakelb_hw_xmit() 93 static int fakelb_hw_start(struct ieee802154_hw *hw) in fakelb_hw_start() argument 95 struct fakelb_phy *phy = hw->priv; in fakelb_hw_start() [all …]
|
/linux-4.4.14/drivers/net/ethernet/intel/igbvf/ |
D | mbx.c | 35 static s32 e1000_poll_for_msg(struct e1000_hw *hw) in e1000_poll_for_msg() argument 37 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_msg() 43 while (countdown && mbx->ops.check_for_msg(hw)) { in e1000_poll_for_msg() 61 static s32 e1000_poll_for_ack(struct e1000_hw *hw) in e1000_poll_for_ack() argument 63 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_ack() 69 while (countdown && mbx->ops.check_for_ack(hw)) { in e1000_poll_for_ack() 90 static s32 e1000_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size) in e1000_read_posted_mbx() argument 92 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_read_posted_mbx() 98 ret_val = e1000_poll_for_msg(hw); in e1000_read_posted_mbx() 102 ret_val = mbx->ops.read(hw, msg, size); in e1000_read_posted_mbx() [all …]
|
D | vf.c | 29 static s32 e1000_check_for_link_vf(struct e1000_hw *hw); 30 static s32 e1000_get_link_up_info_vf(struct e1000_hw *hw, u16 *speed, 32 static s32 e1000_init_hw_vf(struct e1000_hw *hw); 33 static s32 e1000_reset_hw_vf(struct e1000_hw *hw); 35 static void e1000_update_mc_addr_list_vf(struct e1000_hw *hw, u8 *, 45 static s32 e1000_init_mac_params_vf(struct e1000_hw *hw) in e1000_init_mac_params_vf() argument 47 struct e1000_mac_info *mac = &hw->mac; in e1000_init_mac_params_vf() 79 void e1000_init_function_pointers_vf(struct e1000_hw *hw) in e1000_init_function_pointers_vf() argument 81 hw->mac.ops.init_params = e1000_init_mac_params_vf; in e1000_init_function_pointers_vf() 82 hw->mbx.ops.init_params = e1000_init_mbx_params_vf; in e1000_init_function_pointers_vf() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | hw.h | 45 void rtl92se_get_hw_reg(struct ieee80211_hw *hw, 47 void rtl92se_read_eeprom_info(struct ieee80211_hw *hw); 48 void rtl92se_interrupt_recognized(struct ieee80211_hw *hw, 50 int rtl92se_hw_init(struct ieee80211_hw *hw); 51 void rtl92se_card_disable(struct ieee80211_hw *hw); 52 void rtl92se_enable_interrupt(struct ieee80211_hw *hw); 53 void rtl92se_disable_interrupt(struct ieee80211_hw *hw); 54 int rtl92se_set_network_type(struct ieee80211_hw *hw, 56 void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); 58 void rtl92se_set_qos(struct ieee80211_hw *hw, int aci); [all …]
|
D | phy.c | 55 u32 rtl92s_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl92s_phy_query_bb_reg() argument 57 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92s_phy_query_bb_reg() 74 void rtl92s_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, in rtl92s_phy_set_bb_reg() argument 77 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92s_phy_set_bb_reg() 98 static u32 _rtl92s_phy_rf_serial_read(struct ieee80211_hw *hw, in _rtl92s_phy_rf_serial_read() argument 102 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92s_phy_rf_serial_read() 113 tmplong = rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, MASKDWORD); in _rtl92s_phy_rf_serial_read() 118 tmplong2 = rtl_get_bbreg(hw, pphyreg->rfhssi_para2, MASKDWORD); in _rtl92s_phy_rf_serial_read() 123 rtl_set_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, MASKDWORD, in _rtl92s_phy_rf_serial_read() 128 rtl_set_bbreg(hw, pphyreg->rfhssi_para2, MASKDWORD, tmplong2); in _rtl92s_phy_rf_serial_read() [all …]
|
D | dm.c | 72 static void _rtl92s_dm_check_edca_turbo(struct ieee80211_hw *hw) in _rtl92s_dm_check_edca_turbo() argument 74 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92s_dm_check_edca_turbo() 75 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl92s_dm_check_edca_turbo() 149 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_AC_PARAM, in _rtl92s_dm_check_edca_turbo() 162 struct ieee80211_hw *hw) in _rtl92s_dm_txpowertracking_callback_thermalmeter() argument 164 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92s_dm_txpowertracking_callback_thermalmeter() 165 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92s_dm_txpowertracking_callback_thermalmeter() 171 thermalvalue = (u8)rtl_get_rfreg(hw, RF90_PATH_A, RF_T_METER, 0x1f); in _rtl92s_dm_txpowertracking_callback_thermalmeter() 181 rtl92s_phy_set_fw_cmd(hw, FW_CMD_TXPWR_TRACK_THERMAL); in _rtl92s_dm_txpowertracking_callback_thermalmeter() 191 rtl92s_phy_chk_fwcmd_iodone(hw); in _rtl92s_dm_txpowertracking_callback_thermalmeter() [all …]
|
D | phy.h | 77 u32 rtl92s_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask); 78 void rtl92s_phy_set_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask, 80 void rtl92s_phy_scan_operation_backup(struct ieee80211_hw *hw, u8 operation); 81 u32 rtl92s_phy_query_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, 83 void rtl92s_phy_set_rf_reg(struct ieee80211_hw *hw, enum radio_path rfpath, 85 void rtl92s_phy_set_bw_mode(struct ieee80211_hw *hw, 87 u8 rtl92s_phy_sw_chnl(struct ieee80211_hw *hw); 88 bool rtl92s_phy_set_rf_power_state(struct ieee80211_hw *hw, 90 bool rtl92s_phy_mac_config(struct ieee80211_hw *hw); 91 void rtl92s_phy_switch_ephy_parameter(struct ieee80211_hw *hw); [all …]
|
/linux-4.4.14/drivers/net/fddi/skfp/ |
D | fplustm.c | 57 #define DUMMY_READ() smc->hw.mc_dummy = (u_short) inp(ADDR(B0_RAP)) 84 #define MA smc->hw.fddi_canon_addr 86 #define MA smc->hw.fddi_home_addr 178 smc->hw.fp.fifo.rbc_ram_start = 0 ; in init_ram() 179 smc->hw.fp.fifo.rbc_ram_end = in init_ram() 180 smc->hw.fp.fifo.rbc_ram_start + RBC_MEM_SIZE ; in init_ram() 182 MARW(smc->hw.fp.fifo.rbc_ram_start) ; in init_ram() 183 for (i = smc->hw.fp.fifo.rbc_ram_start; in init_ram() 184 i < (u_short) (smc->hw.fp.fifo.rbc_ram_end-1); i++) in init_ram() 198 outpw(FM_A(FM_RPR1),smc->hw.fp.fifo.rx1_fifo_start) ; /* RPR1 */ in set_recvptr() [all …]
|
/linux-4.4.14/drivers/irqchip/ |
D | irq-metag-ext.c | 54 static unsigned int meta_intc_offset(irq_hw_number_t hw) in meta_intc_offset() argument 56 return hw & 0x1f; in meta_intc_offset() 65 static unsigned int meta_intc_bank(irq_hw_number_t hw) in meta_intc_bank() argument 67 return hw >> 5; in meta_intc_bank() 77 static void __iomem *meta_intc_stat_addr(irq_hw_number_t hw) in meta_intc_stat_addr() argument 80 HWSTAT_STRIDE * meta_intc_bank(hw)); in meta_intc_stat_addr() 90 static void __iomem *meta_intc_level_addr(irq_hw_number_t hw) in meta_intc_level_addr() argument 93 HWSTAT_STRIDE * meta_intc_bank(hw)); in meta_intc_level_addr() 103 static void __iomem *meta_intc_mask_addr(irq_hw_number_t hw) in meta_intc_mask_addr() argument 106 HWSTAT_STRIDE * meta_intc_bank(hw)); in meta_intc_mask_addr() [all …]
|
/linux-4.4.14/drivers/media/rc/img-ir/ |
D | img-ir-hw.c | 380 struct img_ir_priv_hw *hw = &priv->hw; in img_ir_write_timings() local 384 if (hw->flags & BIT(type)) in img_ir_write_timings() 385 ft = img_ir_free_timing_dynamic(regs->ft, &hw->filters[type]); in img_ir_write_timings() 421 struct img_ir_priv_hw *hw = &priv->hw; in _img_ir_set_filter() local 427 hw->filters[RC_FILTER_NORMAL] = *filter; in _img_ir_set_filter() 428 hw->flags |= IMG_IR_F_FILTER; in _img_ir_set_filter() 433 hw->flags &= ~IMG_IR_F_FILTER; in _img_ir_set_filter() 449 struct img_ir_priv_hw *hw = &priv->hw; in _img_ir_set_wake_filter() local 452 hw->filters[RC_FILTER_WAKEUP] = *filter; in _img_ir_set_wake_filter() 453 hw->flags |= IMG_IR_F_WAKE; in _img_ir_set_wake_filter() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/ |
D | ps.c | 32 bool rtl_ps_enable_nic(struct ieee80211_hw *hw) in rtl_ps_enable_nic() argument 34 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_enable_nic() 35 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_ps_enable_nic() 36 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl_ps_enable_nic() 40 rtlpriv->intf_ops->reset_trx_ring(hw); in rtl_ps_enable_nic() 47 if (rtlpriv->cfg->ops->hw_init(hw)) in rtl_ps_enable_nic() 52 rtlpriv->cfg->ops->enable_interrupt(hw); in rtl_ps_enable_nic() 55 rtl_watch_dog_timer_callback((unsigned long)hw); in rtl_ps_enable_nic() 61 bool rtl_ps_disable_nic(struct ieee80211_hw *hw) in rtl_ps_disable_nic() argument 63 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_disable_nic() [all …]
|
D | pci.c | 61 static u8 _rtl_mac_to_hwqueue(struct ieee80211_hw *hw, in _rtl_mac_to_hwqueue() argument 64 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl_mac_to_hwqueue() 80 static void _rtl_pci_update_default_setting(struct ieee80211_hw *hw) in _rtl_pci_update_default_setting() argument 82 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_pci_update_default_setting() 83 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl_pci_update_default_setting() 84 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl_pci_update_default_setting() 85 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl_pci_update_default_setting() 195 struct ieee80211_hw *hw, in _rtl_pci_platform_switch_device_pci_aspm() argument 198 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl_pci_platform_switch_device_pci_aspm() 199 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl_pci_platform_switch_device_pci_aspm() [all …]
|
D | usb.c | 244 struct ieee80211_hw *hw) in _rtl_usb_io_handler_init() argument 246 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_usb_io_handler_init() 259 static void _rtl_usb_io_handler_release(struct ieee80211_hw *hw) in _rtl_usb_io_handler_release() argument 261 struct rtl_priv __maybe_unused *rtlpriv = rtl_priv(hw); in _rtl_usb_io_handler_release() 270 static struct sk_buff *_none_usb_tx_aggregate_hdl(struct ieee80211_hw *hw, in _none_usb_tx_aggregate_hdl() argument 279 static int _rtl_usb_init_tx(struct ieee80211_hw *hw) in _rtl_usb_init_tx() argument 282 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_usb_init_tx() 283 struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw)); in _rtl_usb_init_tx() 320 static int _rtl_usb_init_rx(struct ieee80211_hw *hw) in _rtl_usb_init_rx() argument 322 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_usb_init_rx() [all …]
|
/linux-4.4.14/include/net/ |
D | mac80211.h | 1548 } hw; member 2076 static inline bool _ieee80211_hw_check(struct ieee80211_hw *hw, in _ieee80211_hw_check() argument 2079 return test_bit(flg, hw->flags); in _ieee80211_hw_check() 2081 #define ieee80211_hw_check(hw, flg) _ieee80211_hw_check(hw, IEEE80211_HW_##flg) argument 2083 static inline void _ieee80211_hw_set(struct ieee80211_hw *hw, in _ieee80211_hw_set() argument 2086 return __set_bit(flg, hw->flags); in _ieee80211_hw_set() 2088 #define ieee80211_hw_set(hw, flg) _ieee80211_hw_set(hw, IEEE80211_HW_##flg) argument 2149 static inline void SET_IEEE80211_DEV(struct ieee80211_hw *hw, struct device *dev) in SET_IEEE80211_DEV() argument 2151 set_wiphy_dev(hw->wiphy, dev); in SET_IEEE80211_DEV() 2160 static inline void SET_IEEE80211_PERM_ADDR(struct ieee80211_hw *hw, u8 *addr) in SET_IEEE80211_PERM_ADDR() argument [all …]
|
D | mac802154.h | 219 int (*start)(struct ieee802154_hw *hw); 220 void (*stop)(struct ieee802154_hw *hw); 221 int (*xmit_sync)(struct ieee802154_hw *hw, 223 int (*xmit_async)(struct ieee802154_hw *hw, 225 int (*ed)(struct ieee802154_hw *hw, u8 *level); 226 int (*set_channel)(struct ieee802154_hw *hw, u8 page, 228 int (*set_hw_addr_filt)(struct ieee802154_hw *hw, 231 int (*set_txpower)(struct ieee802154_hw *hw, s32 mbm); 232 int (*set_lbt)(struct ieee802154_hw *hw, bool on); 233 int (*set_cca_mode)(struct ieee802154_hw *hw, [all …]
|
/linux-4.4.14/net/mac80211/ |
D | main.c | 99 offchannel_flag = local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan() 116 local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan() 118 local->hw.conf.flags &= ~IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan() 120 offchannel_flag ^= local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan() 123 !cfg80211_chandef_identical(&local->hw.conf.chandef, in ieee80211_hw_conf_chan() 125 local->hw.conf.chandef = chandef; in ieee80211_hw_conf_chan() 129 if (!conf_is_ht(&local->hw.conf)) { in ieee80211_hw_conf_chan() 135 local->hw.conf.smps_mode = IEEE80211_SMPS_STATIC; in ieee80211_hw_conf_chan() 136 } else if (local->hw.conf.smps_mode != local->smps_mode) { in ieee80211_hw_conf_chan() 137 local->hw.conf.smps_mode = local->smps_mode; in ieee80211_hw_conf_chan() [all …]
|
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | phy.c | 44 u32 rtl92cu_phy_query_rf_reg(struct ieee80211_hw *hw, in rtl92cu_phy_query_rf_reg() argument 47 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_query_rf_reg() 55 original_value = _rtl92c_phy_rf_serial_read(hw, in rtl92cu_phy_query_rf_reg() 58 original_value = _rtl92c_phy_fw_rf_serial_read(hw, in rtl92cu_phy_query_rf_reg() 69 void rtl92cu_phy_set_rf_reg(struct ieee80211_hw *hw, in rtl92cu_phy_set_rf_reg() argument 73 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_set_rf_reg() 82 original_value = _rtl92c_phy_rf_serial_read(hw, in rtl92cu_phy_set_rf_reg() 90 _rtl92c_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl92cu_phy_set_rf_reg() 93 original_value = _rtl92c_phy_fw_rf_serial_read(hw, in rtl92cu_phy_set_rf_reg() 101 _rtl92c_phy_fw_rf_serial_write(hw, rfpath, regaddr, data); in rtl92cu_phy_set_rf_reg() [all …]
|
D | hw.h | 88 void rtl92cu_read_eeprom_info(struct ieee80211_hw *hw); 89 void rtl92cu_enable_hw_security_config(struct ieee80211_hw *hw); 90 int rtl92cu_hw_init(struct ieee80211_hw *hw); 91 void rtl92cu_card_disable(struct ieee80211_hw *hw); 92 int rtl92cu_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type); 93 void rtl92cu_set_beacon_related_registers(struct ieee80211_hw *hw); 94 void rtl92cu_set_beacon_interval(struct ieee80211_hw *hw); 95 void rtl92cu_update_interrupt_mask(struct ieee80211_hw *hw, 97 void rtl92cu_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); 98 void rtl92cu_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val); [all …]
|
D | hw.c | 50 static void _rtl92cu_phy_param_tab_init(struct ieee80211_hw *hw) in _rtl92cu_phy_param_tab_init() argument 52 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_phy_param_tab_init() 124 static void _rtl92cu_read_txpower_info_from_hwpg(struct ieee80211_hw *hw, in _rtl92cu_read_txpower_info_from_hwpg() argument 128 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_read_txpower_info_from_hwpg() 129 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92cu_read_txpower_info_from_hwpg() 326 static void _rtl92cu_read_board_type(struct ieee80211_hw *hw, u8 *contents) in _rtl92cu_read_board_type() argument 328 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92cu_read_board_type() 329 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92cu_read_board_type() 345 static void _rtl92cu_read_adapter_info(struct ieee80211_hw *hw) in _rtl92cu_read_adapter_info() argument 347 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_read_adapter_info() [all …]
|
D | mac.h | 37 void rtl92c_read_chip_version(struct ieee80211_hw *hw); 38 bool rtl92c_llt_write(struct ieee80211_hw *hw, u32 address, u32 data); 39 bool rtl92c_init_llt_table(struct ieee80211_hw *hw, u32 boundary); 40 void rtl92c_set_key(struct ieee80211_hw *hw, u32 key_index, 43 void rtl92c_enable_interrupt(struct ieee80211_hw *hw); 44 void rtl92c_disable_interrupt(struct ieee80211_hw *hw); 45 void rtl92c_set_qos(struct ieee80211_hw *hw, int aci); 51 void rtl92c_init_interrupt(struct ieee80211_hw *hw); 52 void rtl92c_init_driver_info_size(struct ieee80211_hw *hw, u8 size); 54 int rtl92c_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type); [all …]
|
/linux-4.4.14/drivers/clk/tegra/ |
D | clk-periph.c | 24 static u8 clk_periph_get_parent(struct clk_hw *hw) in clk_periph_get_parent() argument 26 struct tegra_clk_periph *periph = to_clk_periph(hw); in clk_periph_get_parent() 28 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_get_parent() 30 __clk_hw_set_clk(mux_hw, hw); in clk_periph_get_parent() 35 static int clk_periph_set_parent(struct clk_hw *hw, u8 index) in clk_periph_set_parent() argument 37 struct tegra_clk_periph *periph = to_clk_periph(hw); in clk_periph_set_parent() 39 struct clk_hw *mux_hw = &periph->mux.hw; in clk_periph_set_parent() 41 __clk_hw_set_clk(mux_hw, hw); in clk_periph_set_parent() 46 static unsigned long clk_periph_recalc_rate(struct clk_hw *hw, in clk_periph_recalc_rate() argument 49 struct tegra_clk_periph *periph = to_clk_periph(hw); in clk_periph_recalc_rate() [all …]
|
/linux-4.4.14/drivers/video/fbdev/intelfb/ |
D | intelfbhw.c | 472 int intelfbhw_active_pipe(const struct intelfb_hwstate *hw) in intelfbhw_active_pipe() argument 477 if (hw->disp_b_ctrl & DISPPLANE_PLANE_ENABLE) { in intelfbhw_active_pipe() 478 pipe = (hw->disp_b_ctrl >> DISPPLANE_SEL_PIPE_SHIFT); in intelfbhw_active_pipe() 483 if (hw->disp_a_ctrl & DISPPLANE_PLANE_ENABLE) { in intelfbhw_active_pipe() 484 pipe = (hw->disp_a_ctrl >> DISPPLANE_SEL_PIPE_SHIFT); in intelfbhw_active_pipe() 517 struct intelfb_hwstate *hw, int flag) in intelfbhw_read_hw_state() argument 525 if (!hw || !dinfo) in intelfbhw_read_hw_state() 529 hw->vga0_divisor = INREG(VGA0_DIVISOR); in intelfbhw_read_hw_state() 530 hw->vga1_divisor = INREG(VGA1_DIVISOR); in intelfbhw_read_hw_state() 531 hw->vga_pd = INREG(VGAPD); in intelfbhw_read_hw_state() [all …]
|
/linux-4.4.14/drivers/misc/ |
D | hpilo.c | 67 static int fifo_enqueue(struct ilo_hwinfo *hw, char *fifobar, int entry) in fifo_enqueue() argument 73 spin_lock_irqsave(&hw->fifo_lock, flags); in fifo_enqueue() 81 spin_unlock_irqrestore(&hw->fifo_lock, flags); in fifo_enqueue() 86 static int fifo_dequeue(struct ilo_hwinfo *hw, char *fifobar, int *entry) in fifo_dequeue() argument 93 spin_lock_irqsave(&hw->fifo_lock, flags); in fifo_dequeue() 104 spin_unlock_irqrestore(&hw->fifo_lock, flags); in fifo_dequeue() 109 static int fifo_check_recv(struct ilo_hwinfo *hw, char *fifobar) in fifo_check_recv() argument 116 spin_lock_irqsave(&hw->fifo_lock, flags); in fifo_check_recv() 120 spin_unlock_irqrestore(&hw->fifo_lock, flags); in fifo_check_recv() 125 static int ilo_pkt_enqueue(struct ilo_hwinfo *hw, struct ccb *ccb, in ilo_pkt_enqueue() argument [all …]
|
/linux-4.4.14/drivers/regulator/ |
D | tps6524x-regulator.c | 143 static int __read_reg(struct tps6524x *hw, int reg) in __read_reg() argument 169 error = spi_sync(hw->spi, &m); in __read_reg() 173 dev_dbg(hw->dev, "read reg %d, data %x, status %x\n", in __read_reg() 185 static int read_reg(struct tps6524x *hw, int reg) in read_reg() argument 189 mutex_lock(&hw->lock); in read_reg() 190 ret = __read_reg(hw, reg); in read_reg() 191 mutex_unlock(&hw->lock); in read_reg() 196 static int __write_reg(struct tps6524x *hw, int reg, int val) in __write_reg() argument 222 error = spi_sync(hw->spi, &m); in __write_reg() 226 dev_dbg(hw->dev, "wrote reg %d, data %x, status %x\n", in __write_reg() [all …]
|
/linux-4.4.14/drivers/clk/st/ |
D | clk-flexgen.c | 19 struct clk_hw hw; member 33 #define to_flexgen(_hw) container_of(_hw, struct flexgen, hw) 35 static int flexgen_enable(struct clk_hw *hw) in flexgen_enable() argument 37 struct flexgen *flexgen = to_flexgen(hw); in flexgen_enable() 38 struct clk_hw *pgate_hw = &flexgen->pgate.hw; in flexgen_enable() 39 struct clk_hw *fgate_hw = &flexgen->fgate.hw; in flexgen_enable() 41 __clk_hw_set_clk(pgate_hw, hw); in flexgen_enable() 42 __clk_hw_set_clk(fgate_hw, hw); in flexgen_enable() 48 pr_debug("%s: flexgen output enabled\n", clk_hw_get_name(hw)); in flexgen_enable() 52 static void flexgen_disable(struct clk_hw *hw) in flexgen_disable() argument [all …]
|
/linux-4.4.14/drivers/clk/ux500/ |
D | clk-prcmu.c | 17 #define to_clk_prcmu(_hw) container_of(_hw, struct clk_prcmu, hw) 20 struct clk_hw hw; member 29 static int clk_prcmu_prepare(struct clk_hw *hw) in clk_prcmu_prepare() argument 32 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_prepare() 41 static void clk_prcmu_unprepare(struct clk_hw *hw) in clk_prcmu_unprepare() argument 43 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_unprepare() 46 clk_hw_get_name(hw)); in clk_prcmu_unprepare() 51 static int clk_prcmu_is_prepared(struct clk_hw *hw) in clk_prcmu_is_prepared() argument 53 struct clk_prcmu *clk = to_clk_prcmu(hw); in clk_prcmu_is_prepared() 57 static int clk_prcmu_enable(struct clk_hw *hw) in clk_prcmu_enable() argument [all …]
|
/linux-4.4.14/drivers/clk/qcom/ |
D | clk-rcg2.c | 50 static int clk_rcg2_is_enabled(struct clk_hw *hw) in clk_rcg2_is_enabled() argument 52 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_is_enabled() 63 static u8 clk_rcg2_get_parent(struct clk_hw *hw) in clk_rcg2_get_parent() argument 65 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_get_parent() 66 int num_parents = clk_hw_get_num_parents(hw); in clk_rcg2_get_parent() 83 __func__, clk_hw_get_name(hw)); in clk_rcg2_get_parent() 91 struct clk_hw *hw = &rcg->clkr.hw; in update_config() local 92 const char *name = clk_hw_get_name(hw); in update_config() 113 static int clk_rcg2_set_parent(struct clk_hw *hw, u8 index) in clk_rcg2_set_parent() argument 115 struct clk_rcg2 *rcg = to_clk_rcg2(hw); in clk_rcg2_set_parent() [all …]
|