Home
last modified time | relevance | path

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

12345678910

/linux-2.6.39/drivers/staging/wlags49_h2/
Dwl_main.c423 struct wl_private *lp = wl_priv(dev); in wl_insert() local
429 memset( &( lp->hcfCtx ), 0, sizeof( IFB_STRCT )); in wl_insert()
432 spin_lock_init( &( lp->slock )); in wl_insert()
436 lp->is_handling_int = WL_NOT_HANDLING_INT; in wl_insert()
437 lp->firmware_present = WL_FRIMWARE_NOT_PRESENT; in wl_insert()
439 lp->dev = dev; in wl_insert()
581 lp->Channel = PARM_OWN_CHANNEL; in wl_insert()
582 lp->DistanceBetweenAPs = PARM_SYSTEM_SCALE; in wl_insert()
585 lp->TxRateControl[0] = PARM_DEFAULT_TX_RATE_2GHZ; in wl_insert()
586 lp->TxRateControl[1] = PARM_DEFAULT_TX_RATE_5GHZ; in wl_insert()
[all …]
Dwl_netdev.c143 status = hcf_rcv_msg(&(lp->hcfCtx), desc, 0)
252 struct wl_private *lp = wl_priv(dev); in wl_stats() local
261 wl_lock( lp, &flags ); in wl_stats()
264 if( lp->useRTS == 1 ) { in wl_stats()
265 wl_unlock( lp, &flags ); in wl_stats()
276 if( dev == lp->wds_port[count].dev ) { in wl_stats()
277 pStats = &( lp->wds_port[count].stats ); in wl_stats()
285 pStats = &( lp->stats ); in wl_stats()
288 wl_unlock( lp, &flags ); in wl_stats()
317 struct wl_private *lp = wl_priv(dev); in wl_open() local
[all …]
Dwl_wext.c124 struct wl_private *lp = wl_priv(dev); in wireless_commit() local
132 if(lp->portState == WVLAN_PORT_STATE_DISABLED) { in wireless_commit()
137 wl_lock( lp, &flags ); in wireless_commit()
139 wl_act_int_off( lp ); in wireless_commit()
141 wl_apply(lp); in wireless_commit()
143 wl_act_int_on( lp ); in wireless_commit()
145 wl_unlock(lp, &flags); in wireless_commit()
214 struct wl_private *lp = wl_priv(dev); in wireless_set_frequency() local
224 if(lp->portState == WVLAN_PORT_STATE_DISABLED) { in wireless_set_frequency()
255 wl_lock( lp, &flags ); in wireless_set_frequency()
[all …]
Dwl_priv.c84 int wvlan_uil_connect( struct uilreq *urq, struct wl_private *lp );
85 int wvlan_uil_disconnect( struct uilreq *urq, struct wl_private *lp );
86 int wvlan_uil_action( struct uilreq *urq, struct wl_private *lp );
87 int wvlan_uil_block( struct uilreq *urq, struct wl_private *lp );
88 int wvlan_uil_unblock( struct uilreq *urq, struct wl_private *lp );
89 int wvlan_uil_send_diag_msg( struct uilreq *urq, struct wl_private *lp );
90 int wvlan_uil_put_info( struct uilreq *urq, struct wl_private *lp );
91 int wvlan_uil_get_info( struct uilreq *urq, struct wl_private *lp );
93 int cfg_driver_info( struct uilreq *urq, struct wl_private *lp );
94 int cfg_driver_identity( struct uilreq *urq, struct wl_private *lp );
[all …]
/linux-2.6.39/drivers/net/
Dsmc911x.h124 static inline unsigned int SMC_inl(struct smc911x_local *lp, int reg) in SMC_inl() argument
126 void __iomem *ioaddr = lp->base + reg; in SMC_inl()
128 if (lp->cfg.flags & SMC911X_USE_32BIT) in SMC_inl()
131 if (lp->cfg.flags & SMC911X_USE_16BIT) in SMC_inl()
137 static inline void SMC_outl(unsigned int value, struct smc911x_local *lp, in SMC_outl() argument
140 void __iomem *ioaddr = lp->base + reg; in SMC_outl()
142 if (lp->cfg.flags & SMC911X_USE_32BIT) { in SMC_outl()
147 if (lp->cfg.flags & SMC911X_USE_16BIT) { in SMC_outl()
156 static inline void SMC_insl(struct smc911x_local *lp, int reg, in SMC_insl() argument
159 void __iomem *ioaddr = lp->base + reg; in SMC_insl()
[all …]
Dkorina.c174 struct korina_private *lp = netdev_priv(dev); in korina_abort_tx() local
176 korina_abort_dma(dev, lp->tx_dma_regs); in korina_abort_tx()
181 struct korina_private *lp = netdev_priv(dev); in korina_abort_rx() local
183 korina_abort_dma(dev, lp->rx_dma_regs); in korina_abort_rx()
186 static void korina_start_rx(struct korina_private *lp, in korina_start_rx() argument
189 korina_start_dma(lp->rx_dma_regs, CPHYSADDR(rd)); in korina_start_rx()
192 static void korina_chain_rx(struct korina_private *lp, in korina_chain_rx() argument
195 korina_chain_dma(lp->rx_dma_regs, CPHYSADDR(rd)); in korina_chain_rx()
201 struct korina_private *lp = netdev_priv(dev); in korina_send_packet() local
207 spin_lock_irqsave(&lp->lock, flags); in korina_send_packet()
[all …]
Dll_temac_main.c61 u32 temac_ior(struct temac_local *lp, int offset) in temac_ior() argument
63 return in_be32((u32 *)(lp->regs + offset)); in temac_ior()
66 void temac_iow(struct temac_local *lp, int offset, u32 value) in temac_iow() argument
68 out_be32((u32 *) (lp->regs + offset), value); in temac_iow()
71 int temac_indirect_busywait(struct temac_local *lp) in temac_indirect_busywait() argument
75 while (!(temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK)) { in temac_indirect_busywait()
90 u32 temac_indirect_in32(struct temac_local *lp, int reg) in temac_indirect_in32() argument
94 if (temac_indirect_busywait(lp)) in temac_indirect_in32()
96 temac_iow(lp, XTE_CTL0_OFFSET, reg); in temac_indirect_in32()
97 if (temac_indirect_busywait(lp)) in temac_indirect_in32()
[all …]
Dpcnet32.c449 struct pcnet32_private *lp = netdev_priv(dev); in pcnet32_netif_stop() local
452 napi_disable(&lp->napi); in pcnet32_netif_stop()
458 struct pcnet32_private *lp = netdev_priv(dev); in pcnet32_netif_start() local
463 val = lp->a.read_csr(ioaddr, CSR3); in pcnet32_netif_start()
465 lp->a.write_csr(ioaddr, CSR3, val); in pcnet32_netif_start()
466 napi_enable(&lp->napi); in pcnet32_netif_start()
477 struct pcnet32_private *lp, in pcnet32_realloc_tx_ring() argument
487 new_tx_ring = pci_alloc_consistent(lp->pci_dev, in pcnet32_realloc_tx_ring()
492 netif_err(lp, drv, dev, "Consistent memory allocation failed\n"); in pcnet32_realloc_tx_ring()
500 netif_err(lp, drv, dev, "Memory allocation failed\n"); in pcnet32_realloc_tx_ring()
[all …]
Dsmc91x.c198 #define SMC_ENABLE_INT(lp, x) do { \ argument
201 spin_lock_irqsave(&lp->lock, smc_enable_flags); \
202 mask = SMC_GET_INT_MASK(lp); \
204 SMC_SET_INT_MASK(lp, mask); \
205 spin_unlock_irqrestore(&lp->lock, smc_enable_flags); \
209 #define SMC_DISABLE_INT(lp, x) do { \ argument
212 spin_lock_irqsave(&lp->lock, smc_disable_flags); \
213 mask = SMC_GET_INT_MASK(lp); \
215 SMC_SET_INT_MASK(lp, mask); \
216 spin_unlock_irqrestore(&lp->lock, smc_disable_flags); \
[all …]
Dsmc911x.c155 #define SMC_ENABLE_INT(lp, x) do { \ argument
157 __mask = SMC_GET_INT_EN((lp)); \
159 SMC_SET_INT_EN((lp), __mask); \
163 #define SMC_DISABLE_INT(lp, x) do { \ argument
165 __mask = SMC_GET_INT_EN((lp)); \
167 SMC_SET_INT_EN((lp), __mask); \
175 struct smc911x_local *lp = netdev_priv(dev); in smc911x_reset() local
182 if ((SMC_GET_PMT_CTRL(lp) & PMT_CTRL_READY_) == 0) { in smc911x_reset()
184 SMC_SET_BYTE_TEST(lp, 0); in smc911x_reset()
188 reg = SMC_GET_PMT_CTRL(lp) & PMT_CTRL_READY_; in smc911x_reset()
[all …]
D7990.c46 #define WRITERAP(lp,x) out_be16(lp->base + LANCE_RAP, (x)) argument
47 #define WRITERDP(lp,x) out_be16(lp->base + LANCE_RDP, (x)) argument
48 #define READRDP(lp) in_be16(lp->base + LANCE_RDP) argument
60 #define WRITERAP(lp,x) (lp->writerap(lp,x)) argument
61 #define WRITERDP(lp,x) (lp->writerdp(lp,x)) argument
62 #define READRDP(lp) (lp->readrdp(lp)) argument
67 static inline void WRITERAP(struct lance_private *lp, __u16 value) in WRITERAP() argument
70 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value); in WRITERAP()
71 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in WRITERAP()
74 static inline void WRITERDP(struct lance_private *lp, __u16 value) in WRITERDP() argument
[all …]
Damd8111e.c125 static int amd8111e_read_phy(struct amd8111e_priv* lp, int phy_id, int reg, u32* val) in amd8111e_read_phy() argument
127 void __iomem *mmio = lp->mmio; in amd8111e_read_phy()
155 static int amd8111e_write_phy(struct amd8111e_priv* lp,int phy_id, int reg, u32 val) in amd8111e_write_phy() argument
158 void __iomem *mmio = lp->mmio; in amd8111e_write_phy()
187 struct amd8111e_priv* lp = netdev_priv(dev); in amd8111e_mdio_read() local
190 amd8111e_read_phy(lp,phy_id,reg_num,&reg_val); in amd8111e_mdio_read()
200 struct amd8111e_priv* lp = netdev_priv(dev); in amd8111e_mdio_write() local
202 amd8111e_write_phy(lp, phy_id, reg_num, val); in amd8111e_mdio_write()
210 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_set_ext_phy() local
214 advert = amd8111e_mdio_read(dev, lp->ext_phy_addr, MII_ADVERTISE); in amd8111e_set_ext_phy()
[all …]
Dsonic.c47 struct sonic_local *lp = netdev_priv(dev); in sonic_open() local
58 dev_kfree_skb(lp->rx_skb[i]); in sonic_open()
59 lp->rx_skb[i] = NULL; in sonic_open()
66 if (SONIC_BUS_SCALE(lp->dma_bitmode) == 2) in sonic_open()
68 lp->rx_skb[i] = skb; in sonic_open()
72 dma_addr_t laddr = dma_map_single(lp->device, skb_put(lp->rx_skb[i], SONIC_RBSIZE), in sonic_open()
77 dma_unmap_single(lp->device, lp->rx_laddr[i], SONIC_RBSIZE, DMA_FROM_DEVICE); in sonic_open()
78 lp->rx_laddr[i] = (dma_addr_t)0; in sonic_open()
81 dev_kfree_skb(lp->rx_skb[i]); in sonic_open()
82 lp->rx_skb[i] = NULL; in sonic_open()
[all …]
Dsmc91x.h61 #define SMC_IO_SHIFT (lp->io_shift)
287 #define SMC_IO_SHIFT (lp->io_shift)
372 smc_pxa_dma_insl(a, lp, r, dev->dma, p, l)
374 smc_pxa_dma_insl(void __iomem *ioaddr, struct smc_local *lp, int reg, int dma, in smc_pxa_dma_insl() argument
377 u_long physaddr = lp->physaddr; in smc_pxa_dma_insl()
394 dmabuf = dma_map_single(lp->device, buf, len, DMA_FROM_DEVICE); in smc_pxa_dma_insl()
404 dma_unmap_single(lp->device, dmabuf, len, DMA_FROM_DEVICE); in smc_pxa_dma_insl()
411 smc_pxa_dma_insw(a, lp, r, dev->dma, p, l)
413 smc_pxa_dma_insw(void __iomem *ioaddr, struct smc_local *lp, int reg, int dma, in smc_pxa_dma_insw() argument
416 u_long physaddr = lp->physaddr; in smc_pxa_dma_insw()
[all …]
Dtc35815.c335 #define HAVE_DMA_RXALIGN(lp) likely((lp)->chiptype != TC35815CF) argument
440 static inline dma_addr_t fd_virt_to_bus(struct tc35815_local *lp, void *virt) in fd_virt_to_bus() argument
442 return lp->fd_buf_dma + ((u8 *)virt - (u8 *)lp->fd_buf); in fd_virt_to_bus()
445 static inline void *fd_bus_to_virt(struct tc35815_local *lp, dma_addr_t bus) in fd_bus_to_virt() argument
447 return (void *)((u8 *)lp->fd_buf + (bus - lp->fd_buf_dma)); in fd_bus_to_virt()
541 struct tc35815_local *lp = netdev_priv(dev); in tc_handle_link_change() local
542 struct phy_device *phydev = lp->phy_dev; in tc_handle_link_change()
546 spin_lock_irqsave(&lp->lock, flags); in tc_handle_link_change()
548 (lp->speed != phydev->speed || lp->duplex != phydev->duplex)) { in tc_handle_link_change()
574 lp->chiptype != TC35815_TX4939) in tc_handle_link_change()
[all …]
Dsunlance.c273 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
274 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
275 lp->tx_old - lp->tx_new-1)
301 static void load_csrs(struct lance_private *lp) in load_csrs() argument
305 if (lp->pio_buffer) in load_csrs()
308 leptr = LANCE_ADDR(lp->init_block_dvma); in load_csrs()
310 sbus_writew(LE_CSR1, lp->lregs + RAP); in load_csrs()
311 sbus_writew(leptr & 0xffff, lp->lregs + RDP); in load_csrs()
312 sbus_writew(LE_CSR2, lp->lregs + RAP); in load_csrs()
313 sbus_writew(leptr >> 16, lp->lregs + RDP); in load_csrs()
[all …]
D3c527.c227 struct mc32_local *lp = netdev_priv(dev); in cleanup_card() local
228 unsigned slot = lp->slot; in cleanup_card()
319 struct mc32_local *lp = netdev_priv(dev); in mc32_probe1() local
453 memset(lp, 0, sizeof(struct mc32_local)); in mc32_probe1()
454 lp->slot = slot; in mc32_probe1()
505 lp->exec_box=isa_bus_to_virt(dev->mem_start+base); in mc32_probe1()
507 base=lp->exec_box->data[1]<<16|lp->exec_box->data[0]; in mc32_probe1()
509 lp->base = dev->mem_start+base; in mc32_probe1()
511 lp->rx_box=isa_bus_to_virt(lp->base + lp->exec_box->data[2]); in mc32_probe1()
512 lp->tx_box=isa_bus_to_virt(lp->base + lp->exec_box->data[3]); in mc32_probe1()
[all …]
/linux-2.6.39/net/ipv4/
Dtcp_lp.c76 struct lp { struct
97 struct lp *lp = inet_csk_ca(sk); in tcp_lp_init() argument
99 lp->flag = 0; in tcp_lp_init()
100 lp->sowd = 0; in tcp_lp_init()
101 lp->owd_min = 0xffffffff; in tcp_lp_init()
102 lp->owd_max = 0; in tcp_lp_init()
103 lp->owd_max_rsv = 0; in tcp_lp_init()
104 lp->remote_hz = 0; in tcp_lp_init()
105 lp->remote_ref_time = 0; in tcp_lp_init()
106 lp->local_ref_time = 0; in tcp_lp_init()
[all …]
/linux-2.6.39/drivers/net/tulip/
Dde4x5.c682 imr |= lp->irq_en;\
688 imr &= ~lp->irq_en;\
693 imr |= lp->irq_mask;\
699 imr &= ~lp->irq_mask;\
888 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
889 lp->tx_old+lp->txRingSize-lp->tx_new-1:\
890 lp->tx_old -lp->tx_new-1)
892 #define TX_PKT_PENDING (lp->tx_old != lp->tx_new)
954 static int PCI_signature(char *name, struct de4x5_private *lp);
957 static int de4x5_bad_srom(struct de4x5_private *lp);
[all …]
/linux-2.6.39/arch/sparc/kernel/
Dldc.c172 do { if (lp->cfg.debug & LDC_DEBUG_##TYPE) \
173 printk(KERN_INFO PFX "ID[%lu] " f, lp->id, ## a); \
194 static void ldc_set_state(struct ldc_channel *lp, u8 state) in ldc_set_state() argument
197 state_to_str(lp->state), in ldc_set_state()
200 lp->state = state; in ldc_set_state()
212 static unsigned long rx_advance(struct ldc_channel *lp, unsigned long off) in rx_advance() argument
214 return __advance(off, lp->rx_num_entries); in rx_advance()
217 static unsigned long tx_advance(struct ldc_channel *lp, unsigned long off) in tx_advance() argument
219 return __advance(off, lp->tx_num_entries); in tx_advance()
222 static struct ldc_packet *handshake_get_tx_packet(struct ldc_channel *lp, in handshake_get_tx_packet() argument
[all …]
/linux-2.6.39/drivers/isdn/i4l/
Disdn_net.c75 isdn_net_local *lp = n->local; in isdn_net_device_started() local
78 if (lp->master) in isdn_net_device_started()
79 dev = lp->master; in isdn_net_device_started()
89 static __inline__ void isdn_net_device_wake_queue(isdn_net_local *lp) in isdn_net_device_wake_queue() argument
91 if (lp->master) in isdn_net_device_wake_queue()
92 netif_wake_queue(lp->master); in isdn_net_device_wake_queue()
94 netif_wake_queue(lp->netdev->dev); in isdn_net_device_wake_queue()
101 static __inline__ void isdn_net_device_stop_queue(isdn_net_local *lp) in isdn_net_device_stop_queue() argument
103 if (lp->master) in isdn_net_device_stop_queue()
104 netif_stop_queue(lp->master); in isdn_net_device_stop_queue()
[all …]
Disdn_net.h54 extern void isdn_net_writebuf_skb(isdn_net_local *lp, struct sk_buff *skb);
55 extern void isdn_net_write_super(isdn_net_local *lp, struct sk_buff *skb);
59 #define ISDN_MASTER_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->master)) argument
60 #define ISDN_SLAVE_PRIV(lp) ((isdn_net_local *) netdev_priv(lp->slave)) argument
67 static __inline__ int isdn_net_lp_busy(isdn_net_local *lp) in isdn_net_lp_busy() argument
69 if (atomic_read(&lp->frame_cnt) < ISDN_NET_MAX_QUEUE_LENGTH) in isdn_net_lp_busy()
82 isdn_net_local *lp; in isdn_net_get_locked_lp() local
85 lp = nd->queue; /* get lp on top of queue */ in isdn_net_get_locked_lp()
88 if (nd->queue == lp) { /* not found -- should never happen */ in isdn_net_get_locked_lp()
89 lp = NULL; in isdn_net_get_locked_lp()
[all …]
/linux-2.6.39/drivers/net/arcnet/
Darcnet.c180 struct arcnet_local *lp = netdev_priv(dev); in arcnet_dump_packet() local
189 spin_lock_irqsave(&lp->lock, flags); in arcnet_dump_packet()
191 lp->hw.copy_from_card(dev, bufnum, 0, buf, 512); in arcnet_dump_packet()
193 spin_unlock_irqrestore(&lp->lock, flags); in arcnet_dump_packet()
243 struct arcnet_local *lp = netdev_priv(dev); in release_arcbuf() local
246 lp->buf_queue[lp->first_free_buf++] = bufnum; in release_arcbuf()
247 lp->first_free_buf %= 5; in release_arcbuf()
252 for (i = lp->next_buf; i != lp->first_free_buf; i = (i+1) % 5) in release_arcbuf()
253 BUGMSG2(D_DURING, "#%d ", lp->buf_queue[i]); in release_arcbuf()
265 struct arcnet_local *lp = netdev_priv(dev); in get_arcbuf() local
[all …]
/linux-2.6.39/arch/xtensa/platforms/iss/
Dnetwork.c94 int (*open)(struct iss_net_private *lp);
95 void (*close)(struct iss_net_private *lp);
96 int (*read)(struct iss_net_private *lp, struct sk_buff **skb);
97 int (*write)(struct iss_net_private *lp, struct sk_buff **skb);
99 int (*poll)(struct iss_net_private *lp);
234 static int tuntap_open(struct iss_net_private *lp) in tuntap_open() argument
237 char *dev_name = lp->tp.info.tuntap.dev_name; in tuntap_open()
243 if (!lp->tp.info.tuntap.fixed_config) in tuntap_open()
263 lp->tp.info.tuntap.fd = fd; in tuntap_open()
267 static void tuntap_close(struct iss_net_private *lp) in tuntap_close() argument
[all …]
/linux-2.6.39/drivers/net/arm/
Dat91_ether.c147 struct at91_private *lp = netdev_priv(dev); in update_linkspeed() local
151 if (!mii_link_ok(&lp->mii)) { /* no link */ in update_linkspeed()
159 read_phy(lp->phy_address, MII_BMSR, &bmsr); in update_linkspeed()
160 read_phy(lp->phy_address, MII_BMCR, &bmcr); in update_linkspeed()
165 read_phy(lp->phy_address, MII_LPA, &lpa); in update_linkspeed()
200 struct at91_private *lp = netdev_priv(dev); in at91ether_phy_interrupt() local
209 if ((lp->phy_type == MII_DM9161_ID) || (lp->phy_type == MII_DM9161A_ID)) { in at91ether_phy_interrupt()
210 read_phy(lp->phy_address, MII_DSINTR_REG, &phy); /* ack interrupt in Davicom PHY */ in at91ether_phy_interrupt()
214 else if (lp->phy_type == MII_LXT971A_ID) { in at91ether_phy_interrupt()
215 read_phy(lp->phy_address, MII_ISINTS_REG, &phy); /* ack interrupt in Intel PHY */ in at91ether_phy_interrupt()
[all …]

12345678910