Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 232) sorted by relevance

12345678910

/linux/drivers/net/ethernet/xilinx/
H A Dxilinx_axienet_main.c133 static struct skbuf_dma_descriptor *axienet_get_rx_desc(struct axienet_local *lp, int i) in axienet_get_rx_desc() argument
135 return lp->rx_skb_ring[i & (RX_BUF_NUM_DEFAULT - 1)]; in axienet_get_rx_desc()
138 static struct skbuf_dma_descriptor *axienet_get_tx_desc(struct axienet_local *lp, int i) in axienet_get_tx_desc() argument
140 return lp->tx_skb_ring[i & (TX_BD_NUM_MAX - 1)]; in axienet_get_tx_desc()
145 * @lp: Pointer to axienet local structure
152 static inline u32 axienet_dma_in32(struct axienet_local *lp, off_t reg) in axienet_dma_in32() argument
154 return ioread32(lp->dma_regs + reg); in axienet_dma_in32()
157 static void desc_set_phys_addr(struct axienet_local *lp, dma_addr_t addr, in desc_set_phys_addr() argument
161 if (lp->features & XAE_FEATURE_DMA_64BIT) in desc_set_phys_addr()
165 static dma_addr_t desc_get_phys_addr(struct axienet_local *lp, in 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
242 axienet_calc_cr(struct axienet_local * lp,u32 count,u32 usec) axienet_calc_cr() argument
274 axienet_coalesce_params(struct axienet_local * lp,u32 cr,u32 * count,u32 * usec) axienet_coalesce_params() argument
288 axienet_dma_start(struct axienet_local * lp) axienet_dma_start() argument
339 struct axienet_local *lp = netdev_priv(ndev); axienet_dma_bd_init() local
413 struct axienet_local *lp = netdev_priv(ndev); axienet_set_mac_address() local
467 struct axienet_local *lp = netdev_priv(ndev); axienet_set_multicast_list() local
537 struct axienet_local *lp = netdev_priv(ndev); axienet_setoptions() local
551 axienet_stat(struct axienet_local * lp,enum temac_stat stat) axienet_stat() argument
562 axienet_stats_update(struct axienet_local * lp,bool reset) axienet_stats_update() argument
579 struct axienet_local *lp = container_of(work, struct axienet_local, axienet_refresh_stats() local
590 __axienet_device_reset(struct axienet_local * lp) __axienet_device_reset() argument
653 axienet_dma_stop(struct axienet_local * lp) axienet_dma_stop() argument
710 struct axienet_local *lp = netdev_priv(ndev); axienet_device_reset() local
778 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
844 axienet_check_tx_bd_space(struct axienet_local * lp,int num_frag) axienet_check_tx_bd_space() argument
868 struct axienet_local *lp = data; axienet_dma_tx_cb() local
905 struct axienet_local *lp = netdev_priv(ndev); axienet_start_xmit_dmaengine() local
996 struct axienet_local *lp = container_of(napi, struct axienet_local, napi_tx); axienet_tx_poll() local
1053 struct axienet_local *lp = netdev_priv(ndev); axienet_start_xmit() local
1160 struct axienet_local *lp = data; axienet_dma_rx_cb() local
1201 struct axienet_local *lp = container_of(napi, struct axienet_local, napi_rx); axienet_rx_poll() local
1325 struct axienet_local *lp = netdev_priv(ndev); axienet_tx_irq() local
1373 struct axienet_local *lp = netdev_priv(ndev); axienet_rx_irq() local
1421 struct axienet_local *lp = netdev_priv(ndev); axienet_eth_irq() local
1451 struct axienet_local *lp = netdev_priv(ndev); axienet_rx_submit_desc() local
1506 struct axienet_local *lp = netdev_priv(ndev); axienet_init_dmaengine() local
1592 struct axienet_local *lp = netdev_priv(ndev); axienet_init_legacy_dma() local
1649 struct axienet_local *lp = netdev_priv(ndev); axienet_open() local
1713 struct axienet_local *lp = netdev_priv(ndev); axienet_stop() local
1777 struct axienet_local *lp = netdev_priv(ndev); axienet_change_mtu() local
1801 struct axienet_local *lp = netdev_priv(ndev); axienet_poll_controller() local
1814 struct axienet_local *lp = netdev_priv(dev); axienet_ioctl() local
1825 struct axienet_local *lp = netdev_priv(dev); axienet_get_stats64() local
1944 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_regs() local
1996 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_ringparam() local
2014 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_set_ringparam() local
2044 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_pauseparam() local
2065 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_set_pauseparam() local
2076 axienet_update_coalesce_rx(struct axienet_local * lp,u32 cr,u32 mask) axienet_update_coalesce_rx() argument
2102 axienet_dim_coalesce_count_rx(struct axienet_local * lp) axienet_dim_coalesce_count_rx() argument
2113 struct axienet_local *lp = axienet_rx_dim_work() local
2129 axienet_update_coalesce_tx(struct axienet_local * lp,u32 cr,u32 mask) axienet_update_coalesce_tx() argument
2170 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_coalesce() local
2210 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_set_coalesce() local
2268 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_get_link_ksettings() local
2277 struct axienet_local *lp = netdev_priv(ndev); axienet_ethtools_set_link_ksettings() local
2284 struct axienet_local *lp = netdev_priv(dev); axienet_ethtools_nway_reset() local
2293 struct axienet_local *lp = netdev_priv(dev); axienet_ethtools_get_ethtool_stats() local
2334 struct axienet_local *lp = netdev_priv(dev); axienet_ethtools_get_sset_count() local
2350 struct axienet_local *lp = netdev_priv(dev); axienet_ethtools_get_pause_stats() local
2369 struct axienet_local *lp = netdev_priv(dev); axienet_ethtool_get_eth_mac_stats() local
2414 struct axienet_local *lp = netdev_priv(dev); axienet_ethtool_get_eth_ctrl_stats() local
2447 struct axienet_local *lp = netdev_priv(dev); axienet_ethtool_get_rmon_stats() local
2550 struct axienet_local *lp = netdev_priv(ndev); axienet_pcs_config() local
2583 struct axienet_local *lp = netdev_priv(ndev); axienet_mac_select_pcs() local
2612 struct axienet_local *lp = netdev_priv(ndev); axienet_mac_link_up() local
2667 struct axienet_local *lp = container_of(work, struct axienet_local, axienet_dma_err_handler() local
2763 struct axienet_local *lp; axienet_probe() local
3135 struct axienet_local *lp = netdev_priv(ndev); axienet_remove() local
[all...]
H A Dll_temac_main.c69 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 Dxilinx_axienet_mdio.c25 * @lp: Pointer to axienet local data structure.
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()
42 * @lp: Pointer to axienet local data structure.
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()
54 * @lp: Pointer to axienet local data structure.
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_OFFSE in axienet_mdio_mdc_disable()
83 struct axienet_local *lp = bus->priv; axienet_mdio_read() local
133 struct axienet_local *lp = bus->priv; axienet_mdio_write() local
175 axienet_mdio_enable(struct axienet_local * lp,struct device_node * np) axienet_mdio_enable() argument
280 axienet_mdio_setup(struct axienet_local * lp) axienet_mdio_setup() argument
326 axienet_mdio_teardown(struct axienet_local * lp) axienet_mdio_teardown() argument
[all...]
H A Dxilinx_emaclite.c502 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 in xemaclite_tx_timeout()
566 struct net_local *lp = netdev_priv(dev); xemaclite_tx_handler() local
593 struct net_local *lp = netdev_priv(dev); xemaclite_rx_handler() local
642 struct net_local *lp = netdev_priv(dev); xemaclite_interrupt() local
696 xemaclite_mdio_wait(struct net_local * lp) xemaclite_mdio_wait() argument
723 struct net_local *lp = bus->priv; xemaclite_mdio_read() local
768 struct net_local *lp = bus->priv; xemaclite_mdio_write() local
804 xemaclite_mdio_setup(struct net_local * lp,struct device * dev) xemaclite_mdio_setup() argument
887 struct net_local *lp = netdev_priv(ndev); xemaclite_adjust_link() local
913 struct net_local *lp = netdev_priv(dev); xemaclite_open() local
969 struct net_local *lp = netdev_priv(dev); xemaclite_close() local
999 struct net_local *lp = netdev_priv(dev); xemaclite_send() local
1093 struct net_local *lp = NULL; xemaclite_of_probe() local
1190 struct net_local *lp = netdev_priv(ndev); xemaclite_of_remove() local
[all...]
/linux/net/ipv4/
H A Dtcp_lp.c34 * http://tcp-lp-mod.sourceforge.net/
61 * struct lp
77 struct lp { struct
99 struct lp *lp = inet_csk_ca(sk); in tcp_lp_init() local
101 lp->flag = 0; in tcp_lp_init()
102 lp->sowd = 0; in tcp_lp_init()
103 lp->owd_min = 0xffffffff; in tcp_lp_init()
104 lp->owd_max = 0; in tcp_lp_init()
105 lp in tcp_lp_init()
123 struct lp *lp = inet_csk_ca(sk); tcp_lp_cong_avoid() local
140 struct lp *lp = inet_csk_ca(sk); tcp_lp_remote_hz_estimator() local
194 struct lp *lp = inet_csk_ca(sk); tcp_lp_owd_calculator() local
229 struct lp *lp = inet_csk_ca(sk); tcp_lp_rtt_sample() local
274 struct lp *lp = inet_csk_ca(sk); tcp_lp_pkts_acked() local
[all...]
/linux/drivers/net/ethernet/smsc/
H A Dsmc91x.h65 #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, argument
160 SMC_outw(lp,v,a,r) global() argument
183 SMC_outw(lp,v,a,r) global() argument
269 smc_pxa_dma_inpump(struct smc_local * lp,u_char * buf,int len) smc_pxa_dma_inpump() argument
295 smc_pxa_dma_insl(void __iomem * ioaddr,struct smc_local * lp,int reg,int dma,u_char * buf,int len) smc_pxa_dma_insl() argument
338 smc_pxa_dma_insw(void __iomem * ioaddr,struct smc_local * lp,int reg,int dma,u_char * buf,int len) smc_pxa_dma_insw() argument
400 SMC_outw(lp,x,ioaddr,reg) global() argument
459 TCR_REG(lp) global() argument
478 EPH_STATUS_REG(lp) global() argument
497 RCR_REG(lp) global() argument
514 COUNTER_REG(lp) global() argument
519 MIR_REG(lp) global() argument
524 RPC_REG(lp) global() argument
550 CONFIG_REG(lp) global() argument
562 BASE_REG(lp) global() argument
567 ADDR0_REG(lp) global() argument
568 ADDR1_REG(lp) global() argument
569 ADDR2_REG(lp) global() argument
574 GP_REG(lp) global() argument
579 CTL_REG(lp) global() argument
592 MMU_CMD_REG(lp) global() argument
606 PN_REG(lp) global() argument
611 AR_REG(lp) global() argument
617 TXFIFO_REG(lp) global() argument
622 RXFIFO_REG(lp) global() argument
625 FIFO_REG(lp) global() argument
629 PTR_REG(lp) global() argument
637 DATA_REG(lp) global() argument
642 INT_REG(lp) global() argument
647 IM_REG(lp) global() argument
660 MCAST_REG1(lp) global() argument
661 MCAST_REG2(lp) global() argument
662 MCAST_REG3(lp) global() argument
663 MCAST_REG4(lp) global() argument
668 MII_REG(lp) global() argument
679 REV_REG(lp) global() argument
685 ERCV_REG(lp) global() argument
692 EXT_REG(lp) global() argument
816 SMC_REG(lp,reg,bank) global() argument
827 SMC_REG(lp,reg,bank) global() argument
839 SMC_MUST_ALIGN_WRITE(lp) global() argument
841 SMC_GET_PN(lp) global() argument
845 SMC_SET_PN(lp,x) global() argument
855 SMC_GET_AR(lp) global() argument
859 SMC_GET_TXFIFO(lp) global() argument
863 SMC_GET_RXFIFO(lp) global() argument
867 SMC_GET_INT(lp) global() argument
871 SMC_ACK_INT(lp,x) global() argument
885 SMC_GET_INT_MASK(lp) global() argument
889 SMC_SET_INT_MASK(lp,x) global() argument
897 SMC_CURRENT_BANK(lp) global() argument
899 SMC_SELECT_BANK(lp,x) global() argument
907 SMC_GET_BASE(lp) global() argument
909 SMC_SET_BASE(lp,x) global() argument
911 SMC_GET_CONFIG(lp) global() argument
913 SMC_SET_CONFIG(lp,x) global() argument
915 SMC_GET_COUNTER(lp) global() argument
917 SMC_GET_CTL(lp) global() argument
919 SMC_SET_CTL(lp,x) global() argument
921 SMC_GET_MII(lp) global() argument
923 SMC_GET_GP(lp) global() argument
925 SMC_SET_GP(lp,x) global() argument
933 SMC_SET_MII(lp,x) global() argument
935 SMC_GET_MIR(lp) global() argument
937 SMC_SET_MIR(lp,x) global() argument
939 SMC_GET_MMU_CMD(lp) global() argument
941 SMC_SET_MMU_CMD(lp,x) global() argument
943 SMC_GET_FIFO(lp) global() argument
945 SMC_GET_PTR(lp) global() argument
947 SMC_SET_PTR(lp,x) global() argument
955 SMC_GET_EPH_STATUS(lp) global() argument
957 SMC_GET_RCR(lp) global() argument
959 SMC_SET_RCR(lp,x) global() argument
961 SMC_GET_REV(lp) global() argument
963 SMC_GET_RPC(lp) global() argument
965 SMC_SET_RPC(lp,x) global() argument
973 SMC_GET_TCR(lp) global() argument
975 SMC_SET_TCR(lp,x) global() argument
978 SMC_GET_MAC_ADDR(lp,addr) global() argument
990 SMC_SET_MAC_ADDR(lp,addr) global() argument
997 SMC_SET_MCAST(lp,x) global() argument
1006 SMC_PUT_PKT_HDR(lp,status,length) global() argument
1017 SMC_GET_PKT_HDR(lp,status,length) global() argument
1029 SMC_PUSH_DATA(lp,p,l) global() argument
1053 SMC_PULL_DATA(lp,p,l) global() argument
[all...]
H A Dsmc91x.c195 #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
221 SMC_WAIT_MMU_BUSY(lp) global() argument
241 struct smc_local *lp = netdev_priv(dev); smc_reset() local
335 struct smc_local *lp = netdev_priv(dev); smc_enable() local
369 struct smc_local *lp = netdev_priv(dev); smc_shutdown() local
401 struct smc_local *lp = netdev_priv(dev); smc_rcv() local
541 struct smc_local *lp = from_tasklet(lp, t, tx_task); smc_hardware_send_pkt() local
632 struct smc_local *lp = netdev_priv(dev); smc_hard_start_xmit() local
705 struct smc_local *lp = netdev_priv(dev); smc_tx() local
764 struct smc_local *lp = netdev_priv(dev); smc_mii_out() local
786 struct smc_local *lp = netdev_priv(dev); smc_mii_in() local
811 struct smc_local *lp = netdev_priv(dev); smc_phy_read() local
842 struct smc_local *lp = netdev_priv(dev); smc_phy_write() local
867 struct smc_local *lp = netdev_priv(dev); smc_phy_detect() local
904 struct smc_local *lp = netdev_priv(dev); smc_phy_fixed() local
954 struct smc_local *lp = netdev_priv(dev); smc_phy_reset() local
981 struct smc_local *lp = netdev_priv(dev); smc_phy_powerdown() local
1007 struct smc_local *lp = netdev_priv(dev); smc_phy_check_media() local
1034 struct smc_local *lp = smc_phy_configure() local
1137 struct smc_local *lp = netdev_priv(dev); smc_phy_interrupt() local
1160 struct smc_local *lp = netdev_priv(dev); smc_10bt_check_media() local
1184 struct smc_local *lp = netdev_priv(dev); smc_eph_interrupt() local
1204 struct smc_local *lp = netdev_priv(dev); smc_interrupt() local
1327 struct smc_local *lp = netdev_priv(dev); smc_timeout() local
1369 struct smc_local *lp = netdev_priv(dev); smc_set_multicast_list() local
1465 struct smc_local *lp = netdev_priv(dev); smc_open() local
1509 struct smc_local *lp = netdev_priv(dev); smc_close() local
1530 struct smc_local *lp = netdev_priv(dev); smc_ethtool_get_link_ksettings() local
1562 struct smc_local *lp = netdev_priv(dev); smc_ethtool_set_link_ksettings() local
1596 struct smc_local *lp = netdev_priv(dev); smc_ethtool_nwayreset() local
1610 struct smc_local *lp = netdev_priv(dev); smc_ethtool_getmsglevel() local
1616 struct smc_local *lp = netdev_priv(dev); smc_ethtool_setmsglevel() local
1623 struct smc_local *lp = netdev_priv(dev); smc_write_eeprom_word() local
1651 struct smc_local *lp = netdev_priv(dev); smc_read_eeprom_word() local
1770 smc_findirq(struct smc_local * lp) smc_findirq() argument
1847 struct smc_local *lp = netdev_priv(dev); smc_probe() local
2058 struct smc_local *lp = netdev_priv(ndev); smc_enable_device() local
2147 struct smc_local *lp = netdev_priv(ndev); smc_request_datacs() local
2165 struct smc_local *lp = netdev_priv(ndev); smc_release_datacs() local
2239 struct smc_local *lp; smc_drv_probe() local
2382 struct smc_local *lp = netdev_priv(ndev); smc_drv_probe() local
2414 struct smc_local *lp = netdev_priv(ndev); smc_drv_remove() local
2458 struct smc_local *lp = netdev_priv(ndev); smc_drv_resume() local
[all...]
/linux/drivers/net/ethernet/amd/
H A Dpcnet32.c448 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()
473 * Must be called with lp->lock held.
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 in pcnet32_realloc_tx_ring()
536 pcnet32_realloc_rx_ring(struct net_device * dev,struct pcnet32_private * lp,unsigned int size) pcnet32_realloc_rx_ring() argument
643 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_purge_rx_ring() local
679 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_suspend() local
711 pcnet32_clr_suspend(struct pcnet32_private * lp,ulong ioaddr) pcnet32_clr_suspend() argument
721 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_get_link_ksettings() local
751 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_set_link_ksettings() local
798 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_get_drvinfo() local
811 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_get_link() local
838 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_get_msglevel() local
844 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_set_msglevel() local
850 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_nway_reset() local
867 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_get_ringparam() local
880 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_set_ringparam() local
951 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_ethtool_test() local
970 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_loopback_test() local
1136 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_set_phys_id() local
1175 pcnet32_rx_entry(struct net_device * dev,struct pcnet32_private * lp,struct pcnet32_rx_head * rxp,int entry) pcnet32_rx_entry() argument
1281 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_rx() local
1306 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_tx() local
1393 struct pcnet32_private *lp = container_of(napi, struct pcnet32_private, napi); pcnet32_poll() local
1429 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_get_regs_len() local
1440 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_get_regs() local
1598 struct pcnet32_private *lp; pcnet32_probe1() local
2020 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_alloc_ring() local
2063 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_free_ring() local
2094 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_open() local
2344 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_purge_tx_ring() local
2366 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_init_ring() local
2430 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_restart() local
2459 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_tx_timeout() local
2500 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_start_xmit() local
2562 struct pcnet32_private *lp; pcnet32_interrupt() local
2630 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_close() local
2671 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_get_stats() local
2685 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_load_multicast() local
2724 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_set_multicast_list() local
2758 struct pcnet32_private *lp = netdev_priv(dev); mdio_read() local
2774 struct pcnet32_private *lp = netdev_priv(dev); mdio_write() local
2786 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_ioctl() local
2804 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_check_otherphy() local
2849 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_check_media() local
2908 struct pcnet32_private *lp = timer_container_of(lp, t, watchdog_timer); pcnet32_watchdog() local
2949 struct pcnet32_private *lp = netdev_priv(dev); pcnet32_remove_one() local
3032 struct pcnet32_private *lp = netdev_priv(pcnet32_dev); pcnet32_cleanup_module() local
[all...]
H A Damd8111e.c98 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, &reg_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 in amd8111e_set_ext_phy()
221 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_free_skbs() local
257 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_set_rx_buff_len() local
279 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_init_ring() local
367 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_set_coalesce() local
423 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_restart() local
498 amd8111e_init_hw_default(struct amd8111e_priv * lp) amd8111e_init_hw_default() argument
589 amd8111e_disable_interrupt(struct amd8111e_priv * lp) amd8111e_disable_interrupt() argument
606 amd8111e_stop_chip(struct amd8111e_priv * lp) amd8111e_stop_chip() argument
615 amd8111e_free_ring(struct amd8111e_priv * lp) amd8111e_free_ring() argument
641 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_tx() local
683 struct amd8111e_priv *lp = container_of(napi, struct amd8111e_priv, napi); amd8111e_rx_poll() local
794 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_link_change() local
857 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_get_stats() local
954 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_calc_coalesce() local
1081 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_interrupt() local
1159 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_close() local
1193 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_open() local
1230 amd8111e_tx_queue_avail(struct amd8111e_priv * lp) amd8111e_tx_queue_avail() argument
1248 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_start_xmit() local
1294 amd8111e_read_regs(struct amd8111e_priv * lp,u32 * buf) amd8111e_read_regs() argument
1320 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_set_multicast_list() local
1364 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_get_drvinfo() local
1379 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_get_regs() local
1387 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_get_link_ksettings() local
1397 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_set_link_ksettings() local
1407 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_nway_reset() local
1413 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_get_link() local
1419 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_get_wol() local
1427 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_set_wol() local
1462 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_ioctl() local
1498 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_set_mac_address() local
1518 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_change_mtu() local
1543 amd8111e_enable_magicpkt(struct amd8111e_priv * lp) amd8111e_enable_magicpkt() argument
1553 amd8111e_enable_link_change(struct amd8111e_priv * lp) amd8111e_enable_link_change() argument
1571 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_tx_timeout() local
1586 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_suspend() local
1624 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_resume() local
1644 struct amd8111e_priv *lp = timer_container_of(lp, t, amd8111e_config_ipg() local
1705 struct amd8111e_priv *lp = netdev_priv(dev); amd8111e_probe_ext_phy() local
1744 struct amd8111e_priv *lp; amd8111e_probe_one() local
[all...]
H A D7990.c45 #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, argument
61 READRDP(lp) global() argument
66 WRITERAP(struct lance_private * lp,__u16 value) WRITERAP() argument
73 WRITERDP(struct lance_private * lp,__u16 value) WRITERDP() argument
80 READRDP(struct lance_private * lp) READRDP() argument
116 load_csrs(struct lance_private * lp) load_csrs() argument
139 struct lance_private *lp = netdev_priv(dev); lance_init_ring() local
229 init_restart_lance(struct lance_private * lp) init_restart_lance() argument
255 struct lance_private *lp = netdev_priv(dev); lance_reset() local
274 struct lance_private *lp = netdev_priv(dev); lance_rx() local
354 struct lance_private *lp = netdev_priv(dev); lance_tx() local
444 struct lance_private *lp = netdev_priv(dev); lance_interrupt() local
499 struct lance_private *lp = netdev_priv(dev); lance_open() local
516 struct lance_private *lp = netdev_priv(dev); lance_close() local
541 struct lance_private *lp = netdev_priv(dev); lance_start_xmit() local
600 struct lance_private *lp = netdev_priv(dev); lance_load_multicast() local
627 struct lance_private *lp = netdev_priv(dev); lance_set_multicast() local
659 struct lance_private *lp = netdev_priv(dev); lance_poll() local
[all...]
H A Dsunlance.c267 #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 in load_csrs()
318 struct lance_private *lp = netdev_priv(dev); lance_init_ring_dvma() local
375 struct lance_private *lp = netdev_priv(dev); lance_init_ring_pio() local
434 init_restart_ledma(struct lance_private * lp) init_restart_ledma() argument
462 init_restart_lance(struct lance_private * lp) init_restart_lance() argument
505 struct lance_private *lp = netdev_priv(dev); lance_rx_dvma() local
564 struct lance_private *lp = netdev_priv(dev); lance_tx_dvma() local
674 struct lance_private *lp = netdev_priv(dev); lance_rx_pio() local
732 struct lance_private *lp = netdev_priv(dev); lance_tx_pio() local
813 struct lance_private *lp = netdev_priv(dev); lance_interrupt() local
874 build_fake_packet(struct lance_private * lp) build_fake_packet() argument
911 struct lance_private *lp = netdev_priv(dev); lance_open() local
963 struct lance_private *lp = netdev_priv(dev); lance_close() local
976 struct lance_private *lp = netdev_priv(dev); lance_reset() local
1097 struct lance_private *lp = netdev_priv(dev); lance_tx_timeout() local
1107 struct lance_private *lp = netdev_priv(dev); lance_start_xmit() local
1161 struct lance_private *lp = netdev_priv(dev); lance_load_multicast() local
1205 struct lance_private *lp = netdev_priv(dev); lance_set_multicast() local
1249 struct lance_private *lp = timer_container_of(lp, t, multicast_timer); lance_set_multicast_retry() local
1255 lance_free_hwresources(struct lance_private * lp) lance_free_hwresources() argument
1302 struct lance_private *lp; sparc_lance_probe_one() local
1492 struct lance_private *lp = platform_get_drvdata(op); sunlance_sbus_remove() local
[all...]
H A Ddeclance.c275 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
276 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
277 lp->tx_old - lp->tx_new-1)
303 static void load_csrs(struct lance_private *lp) in load_csrs() argument
305 volatile struct lance_regs *ll = lp->ll; in load_csrs()
318 writereg(&ll->rdp, lp->busmaster_regval); in load_csrs()
452 struct lance_private *lp in lance_init_ring() local
527 init_restart_lance(struct lance_private * lp) init_restart_lance() argument
558 struct lance_private *lp = netdev_priv(dev); lance_rx() local
645 struct lance_private *lp = netdev_priv(dev); lance_tx() local
737 struct lance_private *lp = netdev_priv(dev); lance_interrupt() local
783 struct lance_private *lp = netdev_priv(dev); lance_open() local
841 struct lance_private *lp = netdev_priv(dev); lance_close() local
872 struct lance_private *lp = netdev_priv(dev); lance_reset() local
889 struct lance_private *lp = netdev_priv(dev); lance_tx_timeout() local
900 struct lance_private *lp = netdev_priv(dev); lance_start_xmit() local
945 struct lance_private *lp = netdev_priv(dev); lance_load_multicast() local
974 struct lance_private *lp = netdev_priv(dev); lance_set_multicast() local
1007 struct lance_private *lp = timer_container_of(lp, t, multicast_timer); lance_set_multicast_retry() local
1029 struct lance_private *lp; dec_lance_probe() local
1308 struct lance_private *lp = netdev_priv(dev); dec_lance_platform_remove() local
[all...]
H A Dmvme147.c52 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 in mvme147lance_probe()
143 m147lance_writerap(struct lance_private * lp,unsigned short value) m147lance_writerap() argument
148 m147lance_writerdp(struct lance_private * lp,unsigned short value) m147lance_writerdp() argument
153 m147lance_readrdp(struct lance_private * lp) m147lance_readrdp() argument
193 struct m147lance_private *lp = netdev_priv(dev_mvme147_lance); m147lance_exit() local
[all...]
/linux/drivers/net/ethernet/
H A Dkorina.c378 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 in korina_send_packet()
524 korina_mdio_wait(struct korina_private * lp) korina_mdio_wait() argument
535 struct korina_private *lp = netdev_priv(dev); korina_mdio_read() local
559 struct korina_private *lp = netdev_priv(dev); korina_mdio_write() local
573 struct korina_private *lp = netdev_priv(dev); korina_rx_dma_interrupt() local
598 struct korina_private *lp = netdev_priv(dev); korina_rx() local
705 struct korina_private *lp = korina_poll() local
726 struct korina_private *lp = netdev_priv(dev); korina_multicast_list() local
766 struct korina_private *lp = netdev_priv(dev); korina_tx() local
855 struct korina_private *lp = netdev_priv(dev); korina_tx_dma_interrupt() local
889 struct korina_private *lp = netdev_priv(dev); korina_check_media() local
903 struct korina_private *lp = timer_container_of(lp, t, korina_poll_media() local
923 struct korina_private *lp = netdev_priv(dev); korina_ioctl() local
941 struct korina_private *lp = netdev_priv(dev); netdev_get_drvinfo() local
951 struct korina_private *lp = netdev_priv(dev); netdev_get_link_ksettings() local
963 struct korina_private *lp = netdev_priv(dev); netdev_set_link_ksettings() local
976 struct korina_private *lp = netdev_priv(dev); netdev_get_link() local
990 struct korina_private *lp = netdev_priv(dev); korina_alloc_ring() local
1039 struct korina_private *lp = netdev_priv(dev); korina_free_ring() local
1068 struct korina_private *lp = netdev_priv(dev); korina_init() local
1151 struct korina_private *lp = container_of(work, korina_restart_task() local
1184 struct korina_private *lp = netdev_priv(dev); korina_tx_timeout() local
1200 struct korina_private *lp = netdev_priv(dev); korina_open() local
1240 struct korina_private *lp = netdev_priv(dev); korina_close() local
1288 struct korina_private *lp; korina_probe() local
[all...]
/linux/drivers/net/ieee802154/
H A Dadf7242.c301 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, lin in adf7242_wait_status()
348 adf7242_wait_rc_ready(struct adf7242_local * lp,int line) adf7242_wait_rc_ready() argument
354 adf7242_wait_spi_ready(struct adf7242_local * lp,int line) adf7242_wait_spi_ready() argument
360 adf7242_write_fbuf(struct adf7242_local * lp,u8 * data,u8 len) adf7242_write_fbuf() argument
391 adf7242_read_fbuf(struct adf7242_local * lp,u8 * data,size_t len,bool packet_read) adf7242_read_fbuf() argument
431 adf7242_read_reg(struct adf7242_local * lp,u16 addr,u8 * data) adf7242_read_reg() argument
468 adf7242_write_reg(struct adf7242_local * lp,u16 addr,u8 data) adf7242_write_reg() argument
487 adf7242_cmd(struct adf7242_local * lp,unsigned int cmd) adf7242_cmd() argument
504 adf7242_upload_firmware(struct adf7242_local * lp,u8 * data,u16 len) adf7242_upload_firmware() argument
538 adf7242_verify_firmware(struct adf7242_local * lp,const u8 * data,size_t len) adf7242_verify_firmware() argument
567 adf7242_clear_irqstat(struct adf7242_local * lp) adf7242_clear_irqstat() argument
574 adf7242_cmd_rx(struct adf7242_local * lp) adf7242_cmd_rx() argument
586 struct adf7242_local *lp = adf7242_rx_cal_work() local
601 struct adf7242_local *lp = hw->priv; adf7242_set_txpower() local
642 struct adf7242_local *lp = hw->priv; adf7242_set_csma_params() local
667 struct adf7242_local *lp = hw->priv; adf7242_set_frame_retries() local
687 struct adf7242_local *lp = hw->priv; adf7242_ed() local
699 struct adf7242_local *lp = hw->priv; adf7242_start() local
711 struct adf7242_local *lp = hw->priv; adf7242_stop() local
722 struct adf7242_local *lp = hw->priv; adf7242_channel() local
750 struct adf7242_local *lp = hw->priv; adf7242_set_hw_addr_filt() local
794 struct adf7242_local *lp = hw->priv; adf7242_set_promiscuous_mode() local
822 struct adf7242_local *lp = hw->priv; adf7242_set_cca_ed_level() local
832 struct adf7242_local *lp = hw->priv; adf7242_xmit() local
878 adf7242_rx(struct adf7242_local * lp) adf7242_rx() argument
941 adf7242_debug(struct adf7242_local * lp,u8 irq1) adf7242_debug() argument
975 struct adf7242_local *lp = data; adf7242_isr() local
1041 adf7242_soft_reset(struct adf7242_local * lp,int line) adf7242_soft_reset() argument
1065 adf7242_hw_init(struct adf7242_local * lp) adf7242_hw_init() argument
1131 struct adf7242_local *lp = spi_get_drvdata(file->private); adf7242_stats_show() local
1163 adf7242_debugfs_init(struct adf7242_local * lp) adf7242_debugfs_init() argument
1194 struct adf7242_local *lp; adf7242_probe() local
1310 struct adf7242_local *lp = spi_get_drvdata(spi); adf7242_remove() local
[all...]
/linux/drivers/net/arcnet/
H A Darcnet.c166 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 in arcnet_led_event()
223 struct arcnet_local *lp = netdev_priv(to_net_dev(gendev)); arcnet_led_release() local
235 struct arcnet_local *lp = netdev_priv(netdev); devm_arcnet_led_init() local
288 struct arcnet_local *lp = netdev_priv(dev); release_arcbuf() local
308 struct arcnet_local *lp = netdev_priv(dev); get_arcbuf() local
385 struct arcnet_local *lp = timer_container_of(lp, t, timer); arcnet_timer() local
400 struct arcnet_local *lp; reset_device_work() local
430 struct arcnet_local *lp = from_work(lp, t, reply_work); arcnet_reply_work() local
482 struct arcnet_local *lp = netdev_priv(dev); alloc_arcdev() local
496 struct arcnet_local *lp = netdev_priv(dev); free_arcdev() local
515 struct arcnet_local *lp = netdev_priv(dev); arcnet_open() local
616 struct arcnet_local *lp = netdev_priv(dev); arcnet_close() local
647 const struct arcnet_local *lp = netdev_priv(dev); arcnet_header() local
699 struct arcnet_local *lp = netdev_priv(dev); arcnet_send_packet() local
787 struct arcnet_local *lp = netdev_priv(dev); go_tx() local
817 struct arcnet_local *lp = netdev_priv(dev); arcnet_timeout() local
857 struct arcnet_local *lp; arcnet_interrupt() local
1120 struct arcnet_local *lp = netdev_priv(dev); arcnet_rx() local
1189 struct arcnet_local *lp = netdev_priv(dev); null_build_header() local
1203 struct arcnet_local *lp = netdev_priv(dev); null_prepare_tx() local
[all...]
H A Dcom20020.c95 struct arcnet_local *lp = netdev_priv(dev); in com20020_check() local
102 lp->setup = lp->clockm ? 0 : (lp->clockp << 1); in com20020_check()
103 lp->setup2 = (lp->clockm << 4) | 8; in com20020_check()
107 lp->setup = lp->setup | P1MODE; in com20020_check()
109 com20020_set_subaddress(lp, ioaddr, SUB_SETUP1); in com20020_check()
110 arcnet_outb(lp in com20020_check()
157 struct arcnet_local *lp = netdev_priv(dev); com20020_set_hwaddr() local
170 struct arcnet_local *lp = netdev_priv(dev); com20020_netdev_open() local
181 struct arcnet_local *lp = netdev_priv(dev); com20020_netdev_close() local
205 struct arcnet_local *lp; com20020_found() local
284 struct arcnet_local *lp = netdev_priv(dev); com20020_reset() local
357 struct arcnet_local *lp = netdev_priv(dev); com20020_close() local
374 struct arcnet_local *lp = netdev_priv(dev); com20020_set_mc_list() local
[all...]
/linux/drivers/video/backlight/
H A Darcxcnn_bl.c94 static int arcxcnn_update_field(struct arcxcnn *lp, u8 reg, u8 mask, u8 data) in arcxcnn_update_field() argument
99 ret = i2c_smbus_read_byte_data(lp->client, reg); in arcxcnn_update_field()
101 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in arcxcnn_update_field()
109 return i2c_smbus_write_byte_data(lp->client, reg, tmp); in arcxcnn_update_field()
112 static int arcxcnn_set_brightness(struct arcxcnn *lp, u32 brightness) in arcxcnn_set_brightness() argument
119 ret = i2c_smbus_write_byte_data(lp->client, in arcxcnn_set_brightness()
126 return i2c_smbus_write_byte_data(lp->client, in arcxcnn_set_brightness()
132 struct arcxcnn *lp = bl_get_data(bl); in arcxcnn_bl_update_status() local
136 ret = arcxcnn_set_brightness(lp, brightness); in arcxcnn_bl_update_status()
141 return arcxcnn_update_field(lp, ARCXCNN_CM in arcxcnn_bl_update_status()
150 arcxcnn_backlight_register(struct arcxcnn * lp) arcxcnn_backlight_register() argument
172 arcxcnn_parse_dt(struct arcxcnn * lp) arcxcnn_parse_dt() argument
243 struct arcxcnn *lp; arcxcnn_probe() local
364 struct arcxcnn *lp = i2c_get_clientdata(cl); arcxcnn_remove() local
[all...]
H A Dlp855x_bl.c79 static int lp855x_write_byte(struct lp855x *lp, u8 reg, u8 data) in lp855x_write_byte() argument
81 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte()
84 static int lp855x_update_bit(struct lp855x *lp, u8 reg, u8 mask, u8 data) in lp855x_update_bit() argument
89 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit()
91 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit()
99 return lp855x_write_byte(lp, reg, tmp); in lp855x_update_bit()
102 static bool lp855x_is_valid_rom_area(struct lp855x *lp, u8 addr) in lp855x_is_valid_rom_area() argument
106 switch (lp->chip_id) { in lp855x_is_valid_rom_area()
133 static int lp8557_bl_off(struct lp855x *lp) in lp8557_bl_off() argument
136 return lp855x_update_bit(lp, LP8557_BL_CM in lp8557_bl_off()
140 lp8557_bl_on(struct lp855x * lp) lp8557_bl_on() argument
169 lp855x_configure(struct lp855x * lp) lp855x_configure() argument
220 lp855x_pwm_ctrl(struct lp855x * lp,int br,int max_br) lp855x_pwm_ctrl() argument
242 struct lp855x *lp = bl_get_data(bl); lp855x_bl_update_status() local
262 lp855x_backlight_register(struct lp855x * lp) lp855x_backlight_register() argument
291 struct lp855x *lp = dev_get_drvdata(dev); lp855x_get_chip_id() local
299 struct lp855x *lp = dev_get_drvdata(dev); lp855x_get_bl_ctl_mode() local
324 lp855x_parse_dt(struct lp855x * lp) lp855x_parse_dt() argument
366 lp855x_parse_dt(struct lp855x * lp) lp855x_parse_dt() argument
372 lp855x_parse_acpi(struct lp855x * lp) lp855x_parse_acpi() argument
400 struct lp855x *lp; lp855x_probe() local
549 struct lp855x *lp = i2c_get_clientdata(cl); lp855x_remove() local
[all...]
/linux/drivers/net/ethernet/natsemi/
H A Dsonic.c45 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 in sonic_alloc_descriptors()
98 struct sonic_local *lp = netdev_priv(dev); sonic_open() local
158 struct sonic_local * __maybe_unused lp = netdev_priv(dev); sonic_quiesce() local
179 struct sonic_local *lp = netdev_priv(dev); sonic_close() local
225 struct sonic_local *lp = netdev_priv(dev); sonic_tx_timeout() local
275 struct sonic_local *lp = netdev_priv(dev); sonic_send_packet() local
347 struct sonic_local *lp = netdev_priv(dev); sonic_interrupt() local
485 index_from_addr(struct sonic_local * lp,dma_addr_t addr,unsigned int last) index_from_addr() argument
500 sonic_alloc_rb(struct net_device * dev,struct sonic_local * lp,struct sk_buff ** new_skb,dma_addr_t * new_addr) sonic_alloc_rb() argument
522 sonic_update_rra(struct net_device * dev,struct sonic_local * lp,dma_addr_t old_addr,dma_addr_t new_addr) sonic_update_rra() argument
557 struct sonic_local *lp = netdev_priv(dev); sonic_rx() local
641 struct sonic_local *lp = netdev_priv(dev); sonic_get_stats() local
660 struct sonic_local *lp = netdev_priv(dev); sonic_multicast_list() local
713 struct sonic_local *lp = netdev_priv(dev); sonic_init() local
[all...]
/linux/drivers/net/ethernet/toshiba/
H A Dtc35815.c335 #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 in tc_handle_link_change()
610 struct tc35815_local *lp = netdev_priv(dev); tc_mii_probe() local
658 struct tc35815_local *lp = netdev_priv(dev); tc_mii_init() local
705 struct tc35815_local *lp = netdev_priv(dev); tc35815_read_plat_dev_addr() local
767 struct tc35815_local *lp; tc35815_init_one() local
857 struct tc35815_local *lp = netdev_priv(dev); tc35815_remove_one() local
869 struct tc35815_local *lp = netdev_priv(dev); tc35815_init_queues() local
976 struct tc35815_local *lp = netdev_priv(dev); tc35815_clear_queues() local
1009 struct tc35815_local *lp = netdev_priv(dev); tc35815_free_queues() local
1115 struct tc35815_local *lp = netdev_priv(dev); panic_queues() local
1143 struct tc35815_local *lp = netdev_priv(dev); tc35815_tx_full() local
1149 struct tc35815_local *lp = netdev_priv(dev); tc35815_restart() local
1173 struct tc35815_local *lp = tc35815_restart_work() local
1182 struct tc35815_local *lp = netdev_priv(dev); tc35815_schedule_restart() local
1219 struct tc35815_local *lp = netdev_priv(dev); tc35815_open() local
1263 struct tc35815_local *lp = netdev_priv(dev); tc35815_send_packet() local
1372 struct tc35815_local *lp = netdev_priv(dev); tc35815_do_interrupt() local
1431 struct tc35815_local *lp = netdev_priv(dev); tc35815_interrupt() local
1461 struct tc35815_local *lp = netdev_priv(dev); tc35815_rx() local
1619 struct tc35815_local *lp = container_of(napi, struct tc35815_local, napi); tc35815_poll() local
1662 struct tc35815_local *lp = netdev_priv(dev); tc35815_check_tx_stat() local
1732 struct tc35815_local *lp = netdev_priv(dev); tc35815_txdone() local
1826 struct tc35815_local *lp = netdev_priv(dev); tc35815_close() local
1862 struct tc35815_local *lp = netdev_priv(dev); tc35815_set_cam_entry() local
1917 struct tc35815_local *lp = netdev_priv(dev); tc35815_set_multicast_list() local
1952 struct tc35815_local *lp = netdev_priv(dev); tc35815_get_drvinfo() local
1961 struct tc35815_local *lp = netdev_priv(dev); tc35815_get_msglevel() local
1967 struct tc35815_local *lp = netdev_priv(dev); tc35815_set_msglevel() local
1973 struct tc35815_local *lp = netdev_priv(dev); tc35815_get_sset_count() local
1985 struct tc35815_local *lp = netdev_priv(dev); tc35815_get_ethtool_stats() local
2062 struct tc35815_local *lp = netdev_priv(dev); tc35815_chip_init() local
2109 struct tc35815_local *lp = netdev_priv(dev); tc35815_suspend() local
[all...]
/linux/arch/xtensa/platforms/iss/
H A Dnetwork.c58 int (*open)(struct iss_net_private *lp);
59 void (*close)(struct iss_net_private *lp);
60 int (*read)(struct iss_net_private *lp, struct sk_buff **skb);
61 int (*write)(struct iss_net_private *lp, struct sk_buff **skb);
63 int (*poll)(struct iss_net_private *lp);
157 static int tuntap_open(struct iss_net_private *lp) in tuntap_open() argument
160 char *dev_name = lp->tp.info.tuntap.dev_name; in tuntap_open()
167 lp->dev->name, fd, errno); in tuntap_open()
178 lp->dev->name, dev_name, err, errno); in tuntap_open()
183 lp in tuntap_open()
187 tuntap_close(struct iss_net_private * lp) tuntap_close() argument
193 tuntap_read(struct iss_net_private * lp,struct sk_buff ** skb) tuntap_read() argument
199 tuntap_write(struct iss_net_private * lp,struct sk_buff ** skb) tuntap_write() argument
209 tuntap_poll(struct iss_net_private * lp) tuntap_poll() argument
227 tuntap_probe(struct iss_net_private * lp,int index,char * init) tuntap_probe() argument
274 struct iss_net_private *lp = netdev_priv(dev); iss_net_rx() local
317 iss_net_poll(struct iss_net_private * lp) iss_net_poll() argument
341 struct iss_net_private *lp = timer_container_of(lp, t, timer); iss_net_timer() local
350 struct iss_net_private *lp = netdev_priv(dev); iss_net_open() local
375 struct iss_net_private *lp = netdev_priv(dev); iss_net_close() local
386 struct iss_net_private *lp = netdev_priv(dev); iss_net_start_xmit() local
424 struct iss_net_private *lp = netdev_priv(dev); iss_net_get_stats64() local
472 struct iss_net_private *lp = iss_net_pdev_release() local
481 struct iss_net_private *lp; iss_net_configure() local
[all...]
/linux/drivers/net/ethernet/i825xx/
H A D82596.c412 static inline int wait_istat(struct net_device *dev, struct i596_private *lp, int delcnt, char *str) in wait_istat() argument
414 while (--delcnt && lp->iscp.stat) in wait_istat()
418 dev->name, str, lp->scb.status, lp->scb.command); in wait_istat()
426 static inline int wait_cmd(struct net_device *dev, struct i596_private *lp, int delcnt, char *str) in wait_cmd() argument
428 while (--delcnt && lp->scb.command) in wait_cmd()
432 dev->name, str, lp->scb.status, lp->scb.command); in wait_cmd()
457 struct i596_private *lp = dev->ml_priv; in i596_display_data() local
462 printk(KERN_ERR "lp an in i596_display_data()
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 Dpcf8574_keypad.c46 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 in pcf8574_kp_irq_handler()
87 struct kp_data *lp; pcf8574_kp_probe() local
162 struct kp_data *lp = i2c_get_clientdata(client); pcf8574_kp_remove() local
[all...]
/linux/drivers/net/ethernet/rdc/
H A Dr6040.c244 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 in r6040_free_txbufs()
279 struct r6040_private *lp = netdev_priv(dev); r6040_free_rxbufs() local
313 struct r6040_private *lp = netdev_priv(dev); r6040_init_txbufs() local
323 struct r6040_private *lp = netdev_priv(dev); r6040_alloc_rxbufs() local
356 r6040_reset_mac(struct r6040_private * lp) r6040_reset_mac() argument
382 struct r6040_private *lp = netdev_priv(dev); r6040_init_mac_regs() local
454 struct r6040_private *lp = netdev_priv(dev); r6040_down() local
473 struct r6040_private *lp = netdev_priv(dev); r6040_close() local
650 struct r6040_private *lp = netdev_priv(dev); r6040_interrupt() local
702 struct r6040_private *lp = netdev_priv(dev); r6040_up() local
732 struct r6040_private *lp = netdev_priv(dev); r6040_mac_address() local
748 struct r6040_private *lp = netdev_priv(dev); r6040_open() local
801 struct r6040_private *lp = netdev_priv(dev); r6040_start_xmit() local
847 struct r6040_private *lp = netdev_priv(dev); r6040_multicast_list() local
973 struct r6040_private *lp = netdev_priv(dev); r6040_adjust_link() local
1000 struct r6040_private *lp = netdev_priv(dev); r6040_mii_probe() local
1030 struct r6040_private *lp; r6040_init_one() local
1188 struct r6040_private *lp = netdev_priv(dev); r6040_remove_one() local
[all...]

12345678910