| /linux/drivers/net/ethernet/xilinx/ |
| H A D | xilinx_axienet_main.c | 135 static struct skbuf_dma_descriptor *axienet_get_rx_desc(struct axienet_local *lp, int i) in axienet_get_rx_desc() 137 return lp->rx_skb_ring[i & (RX_BUF_NUM_DEFAULT - 1)]; 140 static struct skbuf_dma_descriptor *axienet_get_tx_desc(struct axienet_local *lp, int i) in axienet_get_tx_desc() 142 return lp->tx_skb_ring[i & (TX_BD_NUM_MAX - 1)]; 147 * @lp: Pointer to axienet local structure 154 static inline u32 axienet_dma_in32(struct axienet_local *lp, off_t reg) in axienet_dma_in32() 156 return ioread32(lp->dma_regs + reg); 159 static void desc_set_phys_addr(struct axienet_local *lp, dma_addr_t addr, in desc_set_phys_addr() 163 if (lp->features & XAE_FEATURE_DMA_64BIT) in desc_set_phys_addr() 167 static dma_addr_t desc_get_phys_addr(struct axienet_local *lp, in desc_get_phys_addr() 133 axienet_get_rx_desc(struct axienet_local * lp,int i) axienet_get_rx_desc() argument 138 axienet_get_tx_desc(struct axienet_local * lp,int i) axienet_get_tx_desc() argument 152 axienet_dma_in32(struct axienet_local * lp,off_t reg) axienet_dma_in32() argument 157 desc_set_phys_addr(struct axienet_local * lp,dma_addr_t addr,struct axidma_bd * desc) desc_set_phys_addr() argument 165 desc_get_phys_addr(struct axienet_local * lp,struct axidma_bd * desc) desc_get_phys_addr() argument 187 struct axienet_local *lp = netdev_priv(ndev); axienet_dma_bd_release() local 226 axienet_dma_rate(struct axienet_local * lp) axienet_dma_rate() argument 244 axienet_calc_cr(struct axienet_local * lp,u32 count,u32 usec) axienet_calc_cr() argument 276 axienet_coalesce_params(struct axienet_local * lp,u32 cr,u32 * count,u32 * usec) axienet_coalesce_params() argument 290 axienet_dma_start(struct axienet_local * lp) axienet_dma_start() argument 341 struct axienet_local *lp = netdev_priv(ndev); axienet_dma_bd_init() local 415 struct axienet_local *lp = netdev_priv(ndev); axienet_set_mac_address() local 469 struct axienet_local *lp = netdev_priv(ndev); axienet_set_multicast_list() local 539 struct axienet_local *lp = netdev_priv(ndev); axienet_setoptions() local 553 axienet_stat(struct axienet_local * lp,enum temac_stat stat) axienet_stat() argument 564 axienet_stats_update(struct axienet_local * lp,bool reset) axienet_stats_update() argument 581 struct axienet_local *lp = container_of(work, struct axienet_local, axienet_refresh_stats() local 592 __axienet_device_reset(struct axienet_local * lp) __axienet_device_reset() argument 655 axienet_dma_stop(struct axienet_local * lp) axienet_dma_stop() argument 713 struct axienet_local *lp = netdev_priv(ndev); axienet_device_reset() local 782 axienet_free_tx_chain(struct axienet_local * lp,u32 first_bd,int nr_bds,bool force,u32 * sizep,int budget) axienet_free_tx_chain() argument 847 axienet_check_tx_bd_space(struct axienet_local * lp,int num_frag) axienet_check_tx_bd_space() argument 871 struct axienet_local *lp = data; axienet_dma_tx_cb() local 909 struct axienet_local *lp = netdev_priv(ndev); axienet_start_xmit_dmaengine() local 1000 struct axienet_local *lp = container_of(napi, struct axienet_local, napi_tx); axienet_tx_poll() local 1057 struct axienet_local *lp = netdev_priv(ndev); axienet_start_xmit() local 1164 struct axienet_local *lp = data; axienet_dma_rx_cb() local 1227 struct axienet_local *lp = container_of(napi, struct axienet_local, napi_rx); axienet_rx_poll() local 1351 struct axienet_local *lp = netdev_priv(ndev); axienet_tx_irq() local 1399 struct axienet_local *lp = netdev_priv(ndev); axienet_rx_irq() local 1447 struct axienet_local *lp = netdev_priv(ndev); axienet_eth_irq() local 1477 struct axienet_local *lp = netdev_priv(ndev); axienet_rx_submit_desc() local 1532 struct axienet_local *lp = netdev_priv(ndev); axienet_init_dmaengine() local 1617 struct axienet_local *lp = netdev_priv(ndev); axienet_init_legacy_dma() local 1674 struct axienet_local *lp = netdev_priv(ndev); axienet_open() local 1738 struct axienet_local *lp = netdev_priv(ndev); axienet_stop() local 1824 struct axienet_local *lp = netdev_priv(ndev); axienet_change_mtu() local 1848 struct axienet_local *lp = netdev_priv(ndev); axienet_poll_controller() local 1861 struct axienet_local *lp = netdev_priv(dev); axienet_ioctl() local 1872 struct axienet_local *lp = netdev_priv(dev); axienet_get_stats64() local 1991 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_regs() local 2043 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_ringparam() local 2061 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_set_ringparam() local 2091 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_pauseparam() local 2112 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_set_pauseparam() local 2123 axienet_update_coalesce_rx(struct axienet_local * lp,u32 cr,u32 mask) axienet_update_coalesce_rx() argument 2151 axienet_dim_coalesce_count_rx(struct axienet_local * lp) axienet_dim_coalesce_count_rx() argument 2162 struct axienet_local *lp = axienet_rx_dim_work() local 2178 axienet_update_coalesce_tx(struct axienet_local * lp,u32 cr,u32 mask) axienet_update_coalesce_tx() argument 2219 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_coalesce() local 2259 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_set_coalesce() local 2317 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_link_ksettings() local 2326 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_set_link_ksettings() local 2333 struct axienet_local *lp = netdev_priv(dev); axienet_ethtools_nway_reset() local 2342 struct axienet_local *lp = netdev_priv(dev); axienet_ethtools_get_ethtool_stats() local 2383 struct axienet_local *lp = netdev_priv(dev); axienet_ethtools_get_sset_count() local 2399 struct axienet_local *lp = netdev_priv(dev); axienet_ethtools_get_pause_stats() local 2418 struct axienet_local *lp = netdev_priv(dev); axienet_ethtool_get_eth_mac_stats() local 2463 struct axienet_local *lp = netdev_priv(dev); axienet_ethtool_get_eth_ctrl_stats() local 2496 struct axienet_local *lp = netdev_priv(dev); axienet_ethtool_get_rmon_stats() local 2618 struct axienet_local *lp = netdev_priv(ndev); axienet_pcs_config() local 2651 struct axienet_local *lp = netdev_priv(ndev); axienet_mac_select_pcs() local 2680 struct axienet_local *lp = netdev_priv(ndev); axienet_mac_link_up() local 2735 struct axienet_local *lp = container_of(work, struct axienet_local, axienet_dma_err_handler() local 2831 struct axienet_local *lp; axienet_probe() local 3185 struct axienet_local *lp = netdev_priv(ndev); axienet_remove() local [all...] |
| H A D | ll_temac_main.c | 69 static u32 _temac_ior_be(struct temac_local *lp, int offset) in _temac_ior_be() argument 71 return ioread32be(lp->regs + offset); in _temac_ior_be() 74 static void _temac_iow_be(struct temac_local *lp, int offset, u32 value) in _temac_iow_be() argument 76 return iowrite32be(value, lp->regs + offset); in _temac_iow_be() 79 static u32 _temac_ior_le(struct temac_local *lp, int offset) in _temac_ior_le() argument 81 return ioread32(lp->regs + offset); in _temac_ior_le() 84 static void _temac_iow_le(struct temac_local *lp, int offset, u32 value) in _temac_iow_le() argument 86 return iowrite32(value, lp->regs + offset); in _temac_iow_le() 89 static bool hard_acs_rdy(struct temac_local *lp) in hard_acs_rdy() argument 91 return temac_ior(lp, XTE_RDY0_OFFSE in hard_acs_rdy() 94 hard_acs_rdy_or_timeout(struct temac_local * lp,ktime_t timeout) hard_acs_rdy_or_timeout() argument 111 temac_indirect_busywait(struct temac_local * lp) temac_indirect_busywait() argument 126 temac_indirect_in32(struct temac_local * lp,int reg) temac_indirect_in32() argument 144 temac_indirect_in32_locked(struct temac_local * lp,int reg) temac_indirect_in32_locked() argument 169 temac_indirect_out32(struct temac_local * lp,int reg,u32 value) temac_indirect_out32() argument 185 temac_indirect_out32_locked(struct temac_local * lp,int reg,u32 value) temac_indirect_out32_locked() argument 209 temac_dma_in32_be(struct temac_local * lp,int reg) temac_dma_in32_be() argument 214 temac_dma_in32_le(struct temac_local * lp,int reg) temac_dma_in32_le() argument 225 temac_dma_out32_be(struct temac_local * lp,int reg,u32 value) temac_dma_out32_be() argument 230 temac_dma_out32_le(struct temac_local * lp,int reg,u32 value) temac_dma_out32_le() argument 244 temac_dma_dcr_in(struct temac_local * lp,int reg) temac_dma_dcr_in() argument 252 temac_dma_dcr_out(struct temac_local * lp,int reg,u32 value) temac_dma_dcr_out() argument 261 temac_dcr_setup(struct temac_local * lp,struct platform_device * op,struct device_node * np) temac_dcr_setup() argument 286 temac_dcr_setup(struct temac_local * lp,struct platform_device * op,struct device_node * np) temac_dcr_setup() argument 299 struct temac_local *lp = netdev_priv(ndev); temac_dma_bd_release() local 327 struct temac_local *lp = netdev_priv(ndev); temac_dma_bd_init() local 418 struct temac_local *lp = netdev_priv(ndev); temac_do_set_mac_address() local 459 struct temac_local *lp = netdev_priv(ndev); temac_set_multicast_list() local 599 struct temac_local *lp = netdev_priv(ndev); temac_setoptions() local 622 struct temac_local *lp = netdev_priv(ndev); temac_device_reset() local 709 struct temac_local *lp = netdev_priv(ndev); temac_adjust_link() local 773 struct temac_local *lp = netdev_priv(ndev); temac_start_xmit_done() local 819 temac_check_tx_bd_space(struct temac_local * lp,int num_frag) temac_check_tx_bd_space() argument 848 struct temac_local *lp = netdev_priv(ndev); temac_start_xmit() local 956 ll_temac_recv_buffers_available(struct temac_local * lp) ll_temac_recv_buffers_available() argument 970 struct temac_local *lp = netdev_priv(ndev); ll_temac_recv() local 1108 struct temac_local *lp = container_of(work, struct temac_local, ll_temac_restart_work_func() local 1118 struct temac_local *lp = netdev_priv(ndev); ll_temac_tx_irq() local 1137 struct temac_local *lp = netdev_priv(ndev); ll_temac_rx_irq() local 1156 struct temac_local *lp = netdev_priv(ndev); temac_open() local 1202 struct temac_local *lp = netdev_priv(ndev); temac_stop() local 1224 struct temac_local *lp = netdev_priv(ndev); temac_poll_controller() local 1257 struct temac_local *lp = netdev_priv(ndev); temac_show_llink_regs() local 1289 struct temac_local *lp = netdev_priv(ndev); ll_temac_ethtools_get_ringparam() local 1307 struct temac_local *lp = netdev_priv(ndev); ll_temac_ethtools_set_ringparam() local 1329 struct temac_local *lp = netdev_priv(ndev); ll_temac_ethtools_get_coalesce() local 1344 struct temac_local *lp = netdev_priv(ndev); ll_temac_ethtools_set_coalesce() local 1387 struct temac_local *lp; temac_probe() local 1632 struct temac_local *lp = netdev_priv(ndev); temac_remove() local [all...] |
| H A D | xilinx_axienet_mdio.c | 31 static int axienet_mdio_wait_until_ready(struct axienet_local *lp) in axienet_mdio_wait_until_ready() argument 35 return readx_poll_timeout(axinet_ior_read_mcr, lp, in axienet_mdio_wait_until_ready() 46 static void axienet_mdio_mdc_enable(struct axienet_local *lp) in axienet_mdio_mdc_enable() argument 48 axienet_iow(lp, XAE_MDIO_MC_OFFSET, in axienet_mdio_mdc_enable() 49 ((u32)lp->mii_clk_div | XAE_MDIO_MC_MDIOEN_MASK)); in axienet_mdio_mdc_enable() 58 static void axienet_mdio_mdc_disable(struct axienet_local *lp) in axienet_mdio_mdc_disable() argument 62 mc_reg = axienet_ior(lp, XAE_MDIO_MC_OFFSET); in axienet_mdio_mdc_disable() 63 axienet_iow(lp, XAE_MDIO_MC_OFFSET, in axienet_mdio_mdc_disable() 83 struct axienet_local *lp = bus->priv; in axienet_mdio_read() local 85 axienet_mdio_mdc_enable(lp); in axienet_mdio_read() [all …]
|
| H A D | xilinx_emaclite.c | 502 struct net_local *lp = netdev_priv(dev); in xemaclite_set_mac_address() local 509 xemaclite_update_address(lp, dev->dev_addr); in xemaclite_set_mac_address() 522 struct net_local *lp = netdev_priv(dev); in xemaclite_tx_timeout() local 525 dev_err(&lp->ndev->dev, "Exceeded transmit timeout of %lu ms\n", in xemaclite_tx_timeout() 531 spin_lock_irqsave(&lp->reset_lock, flags); in xemaclite_tx_timeout() 536 xemaclite_disable_interrupts(lp); in xemaclite_tx_timeout() 537 xemaclite_enable_interrupts(lp); in xemaclite_tx_timeout() 539 if (lp->deferred_skb) { in xemaclite_tx_timeout() 540 dev_kfree_skb_irq(lp->deferred_skb); in xemaclite_tx_timeout() 541 lp->deferred_skb = NULL; in xemaclite_tx_timeout() [all …]
|
| H A D | ll_temac_mdio.c | 26 struct temac_local *lp = bus->priv; in temac_mdio_read() local 34 spin_lock_irqsave(lp->indirect_lock, flags); in temac_mdio_read() 35 temac_iow(lp, XTE_LSW0_OFFSET, (phy_id << 5) | reg); in temac_mdio_read() 36 rc = temac_indirect_in32_locked(lp, XTE_MIIMAI_OFFSET); in temac_mdio_read() 37 spin_unlock_irqrestore(lp->indirect_lock, flags); in temac_mdio_read() 39 dev_dbg(lp->dev, "temac_mdio_read(phy_id=%i, reg=%x) == %x\n", in temac_mdio_read() 47 struct temac_local *lp = bus->priv; in temac_mdio_write() local 50 dev_dbg(lp->dev, "temac_mdio_write(phy_id=%i, reg=%x, val=%x)\n", in temac_mdio_write() 56 spin_lock_irqsave(lp->indirect_lock, flags); in temac_mdio_write() 57 temac_indirect_out32_locked(lp, XTE_MGTDR_OFFSET, val); in temac_mdio_write() [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | ldc.c | 177 do { if (lp->cfg.debug & LDC_DEBUG_##TYPE) \ 178 printk(KERN_INFO PFX "ID[%lu] " f, lp->id, ## a); \ 181 #define LDC_ABORT(lp) ldc_abort((lp), __func__) argument 210 static unsigned long rx_advance(struct ldc_channel *lp, unsigned long off) in rx_advance() argument 212 return __advance(off, lp->rx_num_entries); in rx_advance() 215 static unsigned long tx_advance(struct ldc_channel *lp, unsigned long off) in tx_advance() argument 217 return __advance(off, lp->tx_num_entries); in tx_advance() 220 static struct ldc_packet *handshake_get_tx_packet(struct ldc_channel *lp, in handshake_get_tx_packet() argument 226 t = tx_advance(lp, lp->tx_tail); in handshake_get_tx_packet() 227 if (t == lp->tx_head) in handshake_get_tx_packet() [all …]
|
| /linux/drivers/net/ethernet/smsc/ |
| H A D | smc91x.h | 65 #define SMC_IO_SHIFT (lp->io_shift) 71 SMC_16BIT(lp) ? readw((a) + __smc_r) : \ 72 SMC_8BIT(lp) ? SMC_inw_b(a, __smc_r) : \ 78 #define SMC_outw(lp, v, a, r) \ argument 81 if (SMC_16BIT(lp)) \ 82 __SMC_outw(lp, __v, a, __smc_r); \ 83 else if (SMC_8BIT(lp)) \ 111 #define __SMC_outw(lp, v, a, r) \ argument 114 (lp)->cfg.pxa_u16_align4) 128 #define SMC_outw(lp, v, a, r) writew(v, (a) + (r)) argument [all …]
|
| H A D | smc91x.c | 195 #define SMC_ENABLE_INT(lp, x) do { \ argument 198 spin_lock_irqsave(&lp->lock, smc_enable_flags); \ 199 mask = SMC_GET_INT_MASK(lp); \ 201 SMC_SET_INT_MASK(lp, mask); \ 202 spin_unlock_irqrestore(&lp->lock, smc_enable_flags); \ 206 #define SMC_DISABLE_INT(lp, x) do { \ argument 209 spin_lock_irqsave(&lp->lock, smc_disable_flags); \ 210 mask = SMC_GET_INT_MASK(lp); \ 212 SMC_SET_INT_MASK(lp, mask); \ 213 spin_unlock_irqrestore(&lp->lock, smc_disable_flags); \ [all …]
|
| /linux/drivers/net/ieee802154/ |
| H A D | mcr20a.c | 446 struct mcr20a_local *lp = context; in mcr20a_write_tx_buf_complete() local 449 dev_dbg(printdev(lp), "%s\n", __func__); in mcr20a_write_tx_buf_complete() 451 lp->reg_msg.complete = NULL; in mcr20a_write_tx_buf_complete() 452 lp->reg_cmd[0] = MCR20A_WRITE_REG(DAR_PHY_CTRL1); in mcr20a_write_tx_buf_complete() 453 lp->reg_data[0] = MCR20A_XCVSEQ_TX; in mcr20a_write_tx_buf_complete() 454 lp->reg_xfer_data.len = 1; in mcr20a_write_tx_buf_complete() 456 ret = spi_async(lp->spi, &lp->reg_msg); in mcr20a_write_tx_buf_complete() 458 dev_err(printdev(lp), "failed to set SEQ TX\n"); in mcr20a_write_tx_buf_complete() 464 struct mcr20a_local *lp = hw->priv; in mcr20a_xmit() local 466 dev_dbg(printdev(lp), "%s\n", __func__); in mcr20a_xmit() [all …]
|
| H A D | adf7242.c | 301 static int adf7242_soft_reset(struct adf7242_local *lp, int line); 303 static int adf7242_status(struct adf7242_local *lp, u8 *stat) in adf7242_status() argument 307 mutex_lock(&lp->bmux); in adf7242_status() 308 status = spi_sync(lp->spi, &lp->stat_msg); in adf7242_status() 309 *stat = lp->buf_stat_rx; in adf7242_status() 310 mutex_unlock(&lp->bmux); in adf7242_status() 315 static int adf7242_wait_status(struct adf7242_local *lp, unsigned int status, in adf7242_wait_status() argument 322 adf7242_status(lp, &stat); in adf7242_wait_status() 330 adf7242_soft_reset(lp, line); in adf7242_wait_status() 331 adf7242_status(lp, &stat); in adf7242_wait_status() [all …]
|
| H A D | at86rf230.c | 62 struct at86rf230_local *lp; member 102 at86rf230_async_state_change(struct at86rf230_local *lp, 107 at86rf230_sleep(struct at86rf230_local *lp) in at86rf230_sleep() argument 109 if (lp->slp_tr) { in at86rf230_sleep() 110 gpiod_set_value(lp->slp_tr, 1); in at86rf230_sleep() 111 usleep_range(lp->data->t_off_to_sleep, in at86rf230_sleep() 112 lp->data->t_off_to_sleep + 10); in at86rf230_sleep() 113 lp->sleep = true; in at86rf230_sleep() 118 at86rf230_awake(struct at86rf230_local *lp) in at86rf230_awake() argument 120 if (lp in at86rf230_awake() 129 __at86rf230_write(struct at86rf230_local * lp,unsigned int addr,unsigned int data) __at86rf230_write() argument 149 __at86rf230_read(struct at86rf230_local * lp,unsigned int addr,unsigned int * data) __at86rf230_read() argument 169 at86rf230_read_subreg(struct at86rf230_local * lp,unsigned int addr,unsigned int mask,unsigned int shift,unsigned int * data) at86rf230_read_subreg() argument 183 at86rf230_write_subreg(struct at86rf230_local * lp,unsigned int addr,unsigned int mask,unsigned int shift,unsigned int data) at86rf230_write_subreg() argument 204 at86rf230_slp_tr_rising_edge(struct at86rf230_local * lp) at86rf230_slp_tr_rising_edge() argument 330 struct at86rf230_local *lp = ctx->lp; at86rf230_async_error_recover_complete() local 345 struct at86rf230_local *lp = ctx->lp; at86rf230_async_error_recover() local 357 at86rf230_async_error(struct at86rf230_local * lp,struct at86rf230_state_change * ctx,int rc) at86rf230_async_error() argument 368 at86rf230_async_read_reg(struct at86rf230_local * lp,u8 reg,struct at86rf230_state_change * ctx,void (* complete)(void * context)) at86rf230_async_read_reg() argument 384 at86rf230_async_write_reg(struct at86rf230_local * lp,u8 reg,u8 val,struct at86rf230_state_change * ctx,void (* complete)(void * context)) at86rf230_async_write_reg() argument 402 struct at86rf230_local *lp = ctx->lp; at86rf230_async_state_assert() local 461 struct at86rf230_local *lp = ctx->lp; at86rf230_async_state_timer() local 474 struct at86rf230_local *lp = ctx->lp; at86rf230_async_state_delay() local 565 struct at86rf230_local *lp = ctx->lp; at86rf230_async_state_change_start() local 595 at86rf230_async_state_change(struct at86rf230_local * lp,struct at86rf230_state_change * ctx,const u8 state,void (* complete)(void * context)) at86rf230_async_state_change() argument 610 struct at86rf230_local *lp = ctx->lp; at86rf230_sync_state_change_complete() local 620 at86rf230_sync_state_change(struct at86rf230_local * lp,unsigned int state) at86rf230_sync_state_change() argument 641 struct at86rf230_local *lp = ctx->lp; at86rf230_tx_complete() local 655 struct at86rf230_local *lp = ctx->lp; at86rf230_tx_on() local 665 struct at86rf230_local *lp = ctx->lp; at86rf230_tx_trac_check() local 690 struct at86rf230_local *lp = ctx->lp; at86rf230_rx_read_frame_complete() local 718 struct at86rf230_local *lp = ctx->lp; at86rf230_rx_trac_check() local 736 struct at86rf230_local *lp = ctx->lp; at86rf230_irq_trx_end() local 752 struct at86rf230_local *lp = ctx->lp; at86rf230_irq_status() local 768 at86rf230_setup_spi_messages(struct at86rf230_local * lp,struct at86rf230_state_change * state) at86rf230_setup_spi_messages() argument 785 struct at86rf230_local *lp = data; at86rf230_isr() local 817 struct at86rf230_local *lp = ctx->lp; at86rf230_write_frame_complete() local 832 struct at86rf230_local *lp = ctx->lp; at86rf230_write_frame() local 855 struct at86rf230_local *lp = ctx->lp; at86rf230_xmit_tx_on() local 865 struct at86rf230_local *lp = ctx->lp; at86rf230_xmit_start() local 879 struct at86rf230_local *lp = hw->priv; at86rf230_xmit() local 915 struct at86rf230_local *lp = hw->priv; at86rf230_start() local 926 struct at86rf230_local *lp = hw->priv; at86rf230_stop() local 946 at86rf23x_set_channel(struct at86rf230_local * lp,u8 page,u8 channel) at86rf23x_set_channel() argument 973 at86rf212_update_cca_ed_level(struct at86rf230_local * lp,int rssi_base_val) at86rf212_update_cca_ed_level() argument 1001 at86rf212_set_channel(struct at86rf230_local * lp,u8 page,u8 channel) at86rf212_set_channel() argument 1032 struct at86rf230_local *lp = hw->priv; at86rf230_channel() local 1049 struct at86rf230_local *lp = hw->priv; at86rf230_set_hw_addr_filt() local 1106 at86rf23x_set_txpower(struct at86rf230_local * lp,s32 mbm) at86rf23x_set_txpower() argument 1119 at86rf212_set_txpower(struct at86rf230_local * lp,s32 mbm) at86rf212_set_txpower() argument 1134 struct at86rf230_local *lp = hw->priv; at86rf230_set_txpower() local 1142 struct at86rf230_local *lp = hw->priv; at86rf230_set_lbt() local 1151 struct at86rf230_local *lp = hw->priv; at86rf230_set_cca_mode() local 1184 struct at86rf230_local *lp = hw->priv; at86rf230_set_cca_ed_level() local 1199 struct at86rf230_local *lp = hw->priv; at86rf230_set_csma_params() local 1216 struct at86rf230_local *lp = hw->priv; at86rf230_set_frame_retries() local 1224 struct at86rf230_local *lp = hw->priv; at86rf230_set_promiscuous_mode() local 1310 at86rf230_hw_init(struct at86rf230_local * lp,u8 xtal_trim) at86rf230_hw_init() argument 1418 at86rf230_detect_device(struct at86rf230_local * lp) at86rf230_detect_device() argument 1521 struct at86rf230_local *lp; at86rf230_probe() local 1634 struct at86rf230_local *lp = spi_get_drvdata(spi); at86rf230_remove() local [all...] |
| /linux/drivers/net/ethernet/amd/ |
| H A D | pcnet32.c | 448 struct pcnet32_private *lp = netdev_priv(dev); in pcnet32_netif_stop() local 451 napi_disable(&lp->napi); in pcnet32_netif_stop() 457 struct pcnet32_private *lp = netdev_priv(dev); in pcnet32_netif_start() local 462 val = lp->a->read_csr(ioaddr, CSR3); in pcnet32_netif_start() 464 lp->a->write_csr(ioaddr, CSR3, val); in pcnet32_netif_start() 465 napi_enable_locked(&lp->napi); in pcnet32_netif_start() 476 struct pcnet32_private *lp, in pcnet32_realloc_tx_ring() argument 488 dma_alloc_coherent(&lp->pci_dev->dev, in pcnet32_realloc_tx_ring() 502 kfree(lp->tx_skbuff); in pcnet32_realloc_tx_ring() 503 kfree(lp->tx_dma_addr); in pcnet32_realloc_tx_ring() [all …]
|
| H A D | amd8111e.c | 98 static int amd8111e_read_phy(struct amd8111e_priv *lp, in amd8111e_read_phy() argument 101 void __iomem *mmio = lp->mmio; in amd8111e_read_phy() 127 static int amd8111e_write_phy(struct amd8111e_priv *lp, in amd8111e_write_phy() argument 131 void __iomem *mmio = lp->mmio; in amd8111e_write_phy() 159 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_mdio_read() local 162 amd8111e_read_phy(lp, phy_id, reg_num, ®_val); in amd8111e_mdio_read() 171 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_mdio_write() local 173 amd8111e_write_phy(lp, phy_id, reg_num, val); in amd8111e_mdio_write() 181 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_set_ext_phy() local 185 advert = amd8111e_mdio_read(dev, lp->ext_phy_addr, MII_ADVERTISE); in amd8111e_set_ext_phy() [all …]
|
| H A D | 7990.c | 45 #define WRITERAP(lp, x) out_be16(lp->base + LANCE_RAP, (x)) argument 46 #define WRITERDP(lp, x) out_be16(lp->base + LANCE_RDP, (x)) argument 47 #define READRDP(lp) in_be16(lp->base + LANCE_RDP) argument 59 #define WRITERAP(lp, x) (lp->writerap(lp, x)) argument 60 #define WRITERDP(lp, x) (lp->writerdp(lp, x)) argument 61 #define READRDP(lp) (lp->readrdp(lp)) argument 66 static inline void WRITERAP(struct lance_private *lp, __u16 value) in WRITERAP() argument 69 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value); in WRITERAP() 70 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in WRITERAP() 73 static inline void WRITERDP(struct lance_private *lp, __u16 value) in WRITERDP() argument [all …]
|
| H A D | sunlance.c | 267 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\ 268 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\ 269 lp->tx_old - lp->tx_new-1) 295 static void load_csrs(struct lance_private *lp) in load_csrs() argument 299 if (lp->pio_buffer) in load_csrs() 302 leptr = LANCE_ADDR(lp->init_block_dvma); in load_csrs() 304 sbus_writew(LE_CSR1, lp->lregs + RAP); in load_csrs() 305 sbus_writew(leptr & 0xffff, lp->lregs + RDP); in load_csrs() 306 sbus_writew(LE_CSR2, lp->lregs + RAP); in load_csrs() 307 sbus_writew(leptr >> 16, lp->lregs + RDP); in load_csrs() [all …]
|
| H A D | mvme147.c | 52 static void m147lance_writerap(struct lance_private *lp, unsigned short value); 53 static void m147lance_writerdp(struct lance_private *lp, unsigned short value); 54 static unsigned short m147lance_readrdp(struct lance_private *lp); 76 struct m147lance_private *lp; in mvme147lance_probe() local 108 lp = netdev_priv(dev); in mvme147lance_probe() 109 lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */ in mvme147lance_probe() 110 if (!lp->ram) { in mvme147lance_probe() 116 lp->lance.name = name; in mvme147lance_probe() 117 lp->lance.base = dev->base_addr; in mvme147lance_probe() 118 lp->lance.init_block = (struct lance_init_block *)(lp->ram); /* CPU addr */ in mvme147lance_probe() [all …]
|
| H A D | hplance.c | 131 struct hplance_private *lp; in hplance_init() local 153 lp = netdev_priv(dev); in hplance_init() 154 lp->lance.name = d->name; in hplance_init() 155 lp->lance.base = va; in hplance_init() 156 lp->lance.init_block = (struct lance_init_block *)(va + HPLANCE_MEMOFF); /* CPU addr */ in hplance_init() 157 lp->lance.lance_init_block = NULL; /* LANCE addr of same RAM */ in hplance_init() 158 lp->lance.busmaster_regval = LE_C3_BSWP; /* we're bigendian */ in hplance_init() 159 lp->lance.irq = d->ipl; in hplance_init() 160 lp->lance.writerap = hplance_writerap; in hplance_init() 161 lp->lance.writerdp = hplance_writerdp; in hplance_init() [all …]
|
| /linux/drivers/net/ethernet/ |
| H A D | korina.c | 378 static dma_addr_t korina_tx_dma(struct korina_private *lp, int idx) in korina_tx_dma() argument 380 return lp->td_dma + (idx * sizeof(struct dma_desc)); in korina_tx_dma() 383 static dma_addr_t korina_rx_dma(struct korina_private *lp, int idx) in korina_rx_dma() argument 385 return lp->rd_dma + (idx * sizeof(struct dma_desc)); in korina_rx_dma() 406 struct korina_private *lp = netdev_priv(dev); in korina_abort_tx() local 408 korina_abort_dma(dev, lp->tx_dma_regs); in korina_abort_tx() 413 struct korina_private *lp = netdev_priv(dev); in korina_abort_rx() local 415 korina_abort_dma(dev, lp->rx_dma_regs); in korina_abort_rx() 422 struct korina_private *lp = netdev_priv(dev); in korina_send_packet() local 430 spin_lock_irqsave(&lp->lock, flags); in korina_send_packet() [all …]
|
| /linux/drivers/net/arcnet/ |
| H A D | arcnet.c | 166 struct arcnet_local *lp = netdev_priv(dev); in arcnet_dump_packet() local 176 spin_lock_irqsave(&lp->lock, flags); in arcnet_dump_packet() 178 lp->hw.copy_from_card(dev, bufnum, 0, buf, 512); in arcnet_dump_packet() 180 spin_unlock_irqrestore(&lp->lock, flags); in arcnet_dump_packet() 200 struct arcnet_local *lp = netdev_priv(dev); in arcnet_led_event() local 204 led_trigger_blink_oneshot(lp->recon_led_trig, 350, 350, 0); in arcnet_led_event() 207 led_trigger_event(lp->tx_led_trig, LED_OFF); in arcnet_led_event() 208 led_trigger_event(lp->recon_led_trig, LED_OFF); in arcnet_led_event() 211 led_trigger_event(lp->tx_led_trig, LED_OFF); in arcnet_led_event() 212 led_trigger_event(lp->recon_led_trig, LED_OFF); in arcnet_led_event() [all …]
|
| /linux/drivers/net/ethernet/natsemi/ |
| H A D | sonic.c | 45 struct sonic_local *lp = netdev_priv(dev); in sonic_msg_init() local 47 lp->msg_enable = netif_msg_init(sonic_debug, 0); in sonic_msg_init() 50 netif_dbg(lp, drv, dev, "%s", version); in sonic_msg_init() 55 struct sonic_local *lp = netdev_priv(dev); in sonic_alloc_descriptors() local 61 lp->descriptors = in sonic_alloc_descriptors() 62 dma_alloc_coherent(lp->device, in sonic_alloc_descriptors() 64 SONIC_BUS_SCALE(lp->dma_bitmode), in sonic_alloc_descriptors() 65 &lp->descriptors_laddr, GFP_KERNEL); in sonic_alloc_descriptors() 67 if (!lp->descriptors) in sonic_alloc_descriptors() 70 lp->cda = lp->descriptors; in sonic_alloc_descriptors() [all …]
|
| /linux/drivers/net/ethernet/toshiba/ |
| H A D | tc35815.c | 335 #define HAVE_DMA_RXALIGN(lp) likely((lp)->chiptype != TC35815CF) argument 439 static inline dma_addr_t fd_virt_to_bus(struct tc35815_local *lp, void *virt) in fd_virt_to_bus() argument 441 return lp->fd_buf_dma + ((u8 *)virt - (u8 *)lp->fd_buf); in fd_virt_to_bus() 444 static inline void *fd_bus_to_virt(struct tc35815_local *lp, dma_addr_t bus) in fd_bus_to_virt() argument 446 return (void *)((u8 *)lp->fd_buf + (bus - lp->fd_buf_dma)); in fd_bus_to_virt() 540 struct tc35815_local *lp = netdev_priv(dev); in tc_handle_link_change() local 545 spin_lock_irqsave(&lp->lock, flags); in tc_handle_link_change() 547 (lp->speed != phydev->speed || lp->duplex != phydev->duplex)) { in tc_handle_link_change() 573 lp->chiptype != TC35815_TX4939) in tc_handle_link_change() 577 lp->speed = phydev->speed; in tc_handle_link_change() [all …]
|
| /linux/drivers/net/ethernet/i825xx/ |
| H A D | 82596.c | 419 static inline int wait_istat(struct net_device *dev, struct i596_private *lp, int delcnt, char *str) in wait_istat() 421 while (--delcnt && lp->iscp.stat) in wait_istat() 425 dev->name, str, lp->scb.status, lp->scb.command); 433 static inline int wait_cmd(struct net_device *dev, struct i596_private *lp, int delcnt, char *str) in wait_cmd() 435 while (--delcnt && lp->scb.command) in wait_cmd() 439 dev->name, str, lp->scb.status, lp->scb.command); 464 struct i596_private *lp = dev->ml_priv; in i596_display_data() 469 printk(KERN_ERR "lp an in i596_display_data() 412 wait_istat(struct net_device * dev,struct i596_private * lp,int delcnt,char * str) wait_istat() argument 426 wait_cmd(struct net_device * dev,struct i596_private * lp,int delcnt,char * str) wait_cmd() argument 457 struct i596_private *lp = dev->ml_priv; i596_display_data() local 527 struct i596_private *lp = dev->ml_priv; remove_rx_bufs() local 541 struct i596_private *lp = dev->ml_priv; init_rx_bufs() local 597 struct i596_private *lp = dev->ml_priv; rebuild_rx_bufs() local 616 struct i596_private *lp = dev->ml_priv; init_i596_mem() local 746 struct i596_private *lp = dev->ml_priv; i596_rx() local 876 i596_cleanup_cmd(struct net_device * dev,struct i596_private * lp) i596_cleanup_cmd() argument 909 i596_reset(struct net_device * dev,struct i596_private * lp,int ioaddr) i596_reset() argument 938 struct i596_private *lp = dev->ml_priv; i596_add_cmd() local 1023 struct i596_private *lp = dev->ml_priv; i596_tx_timeout() local 1051 struct i596_private *lp = dev->ml_priv; i596_start_xmit() local 1126 struct i596_private *lp; i82596_probe() local 1232 struct i596_private *lp; i596_interrupt() local 1390 struct i596_private *lp = dev->ml_priv; i596_close() local 1443 struct i596_private *lp = dev->ml_priv; set_multicast_list() local [all...] |
| /linux/drivers/input/misc/ |
| H A D | pcf8574_keypad.c | 46 static short read_state(struct kp_data *lp) in read_state() argument 50 i2c_smbus_write_byte(lp->client, 240); in read_state() 51 x = 0xF & (~(i2c_smbus_read_byte(lp->client) >> 4)); in read_state() 53 i2c_smbus_write_byte(lp->client, 15); in read_state() 54 y = 0xF & (~i2c_smbus_read_byte(lp->client)); in read_state() 66 struct kp_data *lp = dev_id; in pcf8574_kp_irq_handler() local 67 unsigned char nextstate = read_state(lp); in pcf8574_kp_irq_handler() 69 if (lp->laststate != nextstate) { in pcf8574_kp_irq_handler() 70 int key_down = nextstate < ARRAY_SIZE(lp->btncode); in pcf8574_kp_irq_handler() 72 lp->btncode[nextstate] : lp->btncode[lp->laststate]; in pcf8574_kp_irq_handler() [all …]
|
| /linux/drivers/net/ethernet/rdc/ |
| H A D | r6040.c | 244 struct r6040_private *lp = netdev_priv(dev); in r6040_mdiobus_read() local 245 void __iomem *ioaddr = lp->base; in r6040_mdiobus_read() 254 struct r6040_private *lp = netdev_priv(dev); in r6040_mdiobus_write() local 255 void __iomem *ioaddr = lp->base; in r6040_mdiobus_write() 262 struct r6040_private *lp = netdev_priv(dev); in r6040_free_txbufs() local 266 if (lp->tx_insert_ptr->skb_ptr) { in r6040_free_txbufs() 267 dma_unmap_single(&lp->pdev->dev, in r6040_free_txbufs() 268 le32_to_cpu(lp->tx_insert_ptr->buf), in r6040_free_txbufs() 270 dev_kfree_skb(lp->tx_insert_ptr->skb_ptr); in r6040_free_txbufs() 271 lp->tx_insert_ptr->skb_ptr = NULL; in r6040_free_txbufs() [all …]
|
| /linux/drivers/mfd/ |
| H A D | lp8788.c | 122 int lp8788_read_byte(struct lp8788 *lp, u8 reg, u8 *data) in lp8788_read_byte() argument 127 ret = regmap_read(lp->regmap, reg, &val); in lp8788_read_byte() 129 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp8788_read_byte() 138 int lp8788_read_multi_bytes(struct lp8788 *lp, u8 reg, u8 *data, size_t count) in lp8788_read_multi_bytes() argument 140 return regmap_bulk_read(lp->regmap, reg, data, count); in lp8788_read_multi_bytes() 144 int lp8788_write_byte(struct lp8788 *lp, u8 reg, u8 data) in lp8788_write_byte() argument 146 return regmap_write(lp->regmap, reg, data); in lp8788_write_byte() 150 int lp8788_update_bits(struct lp8788 *lp, u8 reg, u8 mask, u8 data) in lp8788_update_bits() argument 152 return regmap_update_bits(lp->regmap, reg, mask, data); in lp8788_update_bits() 156 static int lp8788_platform_init(struct lp8788 *lp) in lp8788_platform_init() argument 171 struct lp8788 *lp; lp8788_probe() local 212 struct lp8788 *lp = i2c_get_clientdata(cl); lp8788_remove() local [all...] |