Home
last modified time | relevance | path

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

12345678910>>...12

/Linux-v4.19/drivers/net/ethernet/smsc/
Dsmc911x.h123 static inline unsigned int SMC_inl(struct smc911x_local *lp, int reg) in SMC_inl() argument
125 void __iomem *ioaddr = lp->base + reg; in SMC_inl()
127 if (lp->cfg.flags & SMC911X_USE_32BIT) in SMC_inl()
130 if (lp->cfg.flags & SMC911X_USE_16BIT) in SMC_inl()
136 static inline void SMC_outl(unsigned int value, struct smc911x_local *lp, in SMC_outl() argument
139 void __iomem *ioaddr = lp->base + reg; in SMC_outl()
141 if (lp->cfg.flags & SMC911X_USE_32BIT) { in SMC_outl()
146 if (lp->cfg.flags & SMC911X_USE_16BIT) { in SMC_outl()
155 static inline void SMC_insl(struct smc911x_local *lp, int reg, in SMC_insl() argument
158 void __iomem *ioaddr = lp->base + reg; in SMC_insl()
[all …]
Dsmc91x.h76 #define SMC_IO_SHIFT (lp->io_shift)
82 SMC_16BIT(lp) ? readw((a) + __smc_r) : \
83 SMC_8BIT(lp) ? SMC_inw_b(a, __smc_r) : \
89 #define SMC_outw(lp, v, a, r) \ argument
92 if (SMC_16BIT(lp)) \
93 __SMC_outw(lp, __v, a, __smc_r); \
94 else if (SMC_8BIT(lp)) \
122 #define __SMC_outw(lp, v, a, r) \ argument
125 (lp)->cfg.pxa_u16_align4)
138 #define SMC_outw(lp, v, a, r) outw(v, (a) + (r) - 0xa0000000) argument
[all …]
Dsmc91x.c206 #define SMC_ENABLE_INT(lp, x) do { \ argument
209 spin_lock_irqsave(&lp->lock, smc_enable_flags); \
210 mask = SMC_GET_INT_MASK(lp); \
212 SMC_SET_INT_MASK(lp, mask); \
213 spin_unlock_irqrestore(&lp->lock, smc_enable_flags); \
217 #define SMC_DISABLE_INT(lp, x) do { \ argument
220 spin_lock_irqsave(&lp->lock, smc_disable_flags); \
221 mask = SMC_GET_INT_MASK(lp); \
223 SMC_SET_INT_MASK(lp, mask); \
224 spin_unlock_irqrestore(&lp->lock, smc_disable_flags); \
[all …]
Dsmc911x.c157 #define SMC_ENABLE_INT(lp, x) do { \ argument
159 __mask = SMC_GET_INT_EN((lp)); \
161 SMC_SET_INT_EN((lp), __mask); \
165 #define SMC_DISABLE_INT(lp, x) do { \ argument
167 __mask = SMC_GET_INT_EN((lp)); \
169 SMC_SET_INT_EN((lp), __mask); \
177 struct smc911x_local *lp = netdev_priv(dev); in smc911x_reset() local
184 if ((SMC_GET_PMT_CTRL(lp) & PMT_CTRL_READY_) == 0) { in smc911x_reset()
186 SMC_SET_BYTE_TEST(lp, 0); in smc911x_reset()
190 reg = SMC_GET_PMT_CTRL(lp) & PMT_CTRL_READY_; in smc911x_reset()
[all …]
/Linux-v4.19/arch/sparc/kernel/
Dldc.c177 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-v4.19/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-v4.19/drivers/net/ethernet/
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 …]
/Linux-v4.19/drivers/net/ethernet/dec/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-v4.19/drivers/net/ethernet/xilinx/
Dxilinx_axienet_main.c125 static inline u32 axienet_dma_in32(struct axienet_local *lp, off_t reg) in axienet_dma_in32() argument
127 return in_be32(lp->dma_regs + reg); in axienet_dma_in32()
139 static inline void axienet_dma_out32(struct axienet_local *lp, in axienet_dma_out32() argument
142 out_be32((lp->dma_regs + reg), value); in axienet_dma_out32()
156 struct axienet_local *lp = netdev_priv(ndev); in axienet_dma_bd_release() local
159 dma_unmap_single(ndev->dev.parent, lp->rx_bd_v[i].phys, in axienet_dma_bd_release()
160 lp->max_frm_size, DMA_FROM_DEVICE); in axienet_dma_bd_release()
162 (lp->rx_bd_v[i].sw_id_offset)); in axienet_dma_bd_release()
165 if (lp->rx_bd_v) { in axienet_dma_bd_release()
167 sizeof(*lp->rx_bd_v) * RX_BD_NUM, in axienet_dma_bd_release()
[all …]
Dll_temac_main.c64 u32 temac_ior(struct temac_local *lp, int offset) in temac_ior() argument
66 return in_be32(lp->regs + offset); in temac_ior()
69 void temac_iow(struct temac_local *lp, int offset, u32 value) in temac_iow() argument
71 out_be32(lp->regs + offset, value); in temac_iow()
74 int temac_indirect_busywait(struct temac_local *lp) in temac_indirect_busywait() argument
78 while (!(temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK)) { in temac_indirect_busywait()
93 u32 temac_indirect_in32(struct temac_local *lp, int reg) in temac_indirect_in32() argument
97 if (temac_indirect_busywait(lp)) in temac_indirect_in32()
99 temac_iow(lp, XTE_CTL0_OFFSET, reg); in temac_indirect_in32()
100 if (temac_indirect_busywait(lp)) in temac_indirect_in32()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/drivers/net/ieee802154/
Dmcr20a.c462 struct mcr20a_local *lp = context; in mcr20a_write_tx_buf_complete() local
465 dev_dbg(printdev(lp), "%s\n", __func__); in mcr20a_write_tx_buf_complete()
467 lp->reg_msg.complete = NULL; in mcr20a_write_tx_buf_complete()
468 lp->reg_cmd[0] = MCR20A_WRITE_REG(DAR_PHY_CTRL1); in mcr20a_write_tx_buf_complete()
469 lp->reg_data[0] = MCR20A_XCVSEQ_TX; in mcr20a_write_tx_buf_complete()
470 lp->reg_xfer_data.len = 1; in mcr20a_write_tx_buf_complete()
472 ret = spi_async(lp->spi, &lp->reg_msg); in mcr20a_write_tx_buf_complete()
474 dev_err(printdev(lp), "failed to set SEQ TX\n"); in mcr20a_write_tx_buf_complete()
480 struct mcr20a_local *lp = hw->priv; in mcr20a_xmit() local
482 dev_dbg(printdev(lp), "%s\n", __func__); in mcr20a_xmit()
[all …]
Dadf7242.c302 static int adf7242_soft_reset(struct adf7242_local *lp, int line);
304 static int adf7242_status(struct adf7242_local *lp, u8 *stat) in adf7242_status() argument
308 mutex_lock(&lp->bmux); in adf7242_status()
309 status = spi_sync(lp->spi, &lp->stat_msg); in adf7242_status()
310 *stat = lp->buf_stat_rx; in adf7242_status()
311 mutex_unlock(&lp->bmux); in adf7242_status()
316 static int adf7242_wait_status(struct adf7242_local *lp, unsigned int status, in adf7242_wait_status() argument
323 adf7242_status(lp, &stat); in adf7242_wait_status()
331 adf7242_soft_reset(lp, line); in adf7242_wait_status()
332 adf7242_status(lp, &stat); in adf7242_wait_status()
[all …]
Dat86rf230.c72 struct at86rf230_local *lp; member
121 at86rf230_async_state_change(struct at86rf230_local *lp,
126 at86rf230_sleep(struct at86rf230_local *lp) in at86rf230_sleep() argument
128 if (gpio_is_valid(lp->slp_tr)) { in at86rf230_sleep()
129 gpio_set_value(lp->slp_tr, 1); in at86rf230_sleep()
130 usleep_range(lp->data->t_off_to_sleep, in at86rf230_sleep()
131 lp->data->t_off_to_sleep + 10); in at86rf230_sleep()
132 lp->sleep = true; in at86rf230_sleep()
137 at86rf230_awake(struct at86rf230_local *lp) in at86rf230_awake() argument
139 if (gpio_is_valid(lp->slp_tr)) { in at86rf230_awake()
[all …]
/Linux-v4.19/drivers/net/ethernet/amd/
Dpcnet32.c452 struct pcnet32_private *lp = netdev_priv(dev); in pcnet32_netif_stop() local
455 napi_disable(&lp->napi); in pcnet32_netif_stop()
461 struct pcnet32_private *lp = netdev_priv(dev); in pcnet32_netif_start() local
466 val = lp->a->read_csr(ioaddr, CSR3); in pcnet32_netif_start()
468 lp->a->write_csr(ioaddr, CSR3, val); in pcnet32_netif_start()
469 napi_enable(&lp->napi); in pcnet32_netif_start()
480 struct pcnet32_private *lp, in pcnet32_realloc_tx_ring() argument
492 pci_zalloc_consistent(lp->pci_dev, in pcnet32_realloc_tx_ring()
506 kfree(lp->tx_skbuff); in pcnet32_realloc_tx_ring()
507 kfree(lp->tx_dma_addr); in pcnet32_realloc_tx_ring()
[all …]
D7990.c44 #define WRITERAP(lp, x) out_be16(lp->base + LANCE_RAP, (x)) argument
45 #define WRITERDP(lp, x) out_be16(lp->base + LANCE_RDP, (x)) argument
46 #define READRDP(lp) in_be16(lp->base + LANCE_RDP) argument
58 #define WRITERAP(lp, x) (lp->writerap(lp, x)) argument
59 #define WRITERDP(lp, x) (lp->writerdp(lp, x)) argument
60 #define READRDP(lp) (lp->readrdp(lp)) argument
65 static inline void WRITERAP(struct lance_private *lp, __u16 value) in WRITERAP() argument
68 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value); in WRITERAP()
69 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in WRITERAP()
72 static inline void WRITERDP(struct lance_private *lp, __u16 value) in WRITERDP() argument
[all …]
Damd8111e.c112 static int amd8111e_read_phy(struct amd8111e_priv *lp, in amd8111e_read_phy() argument
115 void __iomem *mmio = lp->mmio; in amd8111e_read_phy()
141 static int amd8111e_write_phy(struct amd8111e_priv *lp, in amd8111e_write_phy() argument
145 void __iomem *mmio = lp->mmio; in amd8111e_write_phy()
173 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_mdio_read() local
176 amd8111e_read_phy(lp,phy_id,reg_num,&reg_val); in amd8111e_mdio_read()
185 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_mdio_write() local
187 amd8111e_write_phy(lp, phy_id, reg_num, val); in amd8111e_mdio_write()
195 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_set_ext_phy() local
199 advert = amd8111e_mdio_read(dev, lp->ext_phy_addr, MII_ADVERTISE); in amd8111e_set_ext_phy()
[all …]
Dsunlance.c271 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
272 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
273 lp->tx_old - lp->tx_new-1)
299 static void load_csrs(struct lance_private *lp) in load_csrs() argument
303 if (lp->pio_buffer) in load_csrs()
306 leptr = LANCE_ADDR(lp->init_block_dvma); in load_csrs()
308 sbus_writew(LE_CSR1, lp->lregs + RAP); in load_csrs()
309 sbus_writew(leptr & 0xffff, lp->lregs + RDP); in load_csrs()
310 sbus_writew(LE_CSR2, lp->lregs + RAP); in load_csrs()
311 sbus_writew(leptr >> 16, lp->lregs + RDP); in load_csrs()
[all …]
/Linux-v4.19/drivers/net/arcnet/
Darcnet.c164 struct arcnet_local *lp = netdev_priv(dev); in arcnet_dump_packet() local
174 spin_lock_irqsave(&lp->lock, flags); in arcnet_dump_packet()
176 lp->hw.copy_from_card(dev, bufnum, 0, buf, 512); in arcnet_dump_packet()
178 spin_unlock_irqrestore(&lp->lock, flags); in arcnet_dump_packet()
198 struct arcnet_local *lp = netdev_priv(dev); in arcnet_led_event() local
204 led_trigger_blink_oneshot(lp->recon_led_trig, in arcnet_led_event()
208 led_trigger_event(lp->tx_led_trig, LED_OFF); in arcnet_led_event()
209 led_trigger_event(lp->recon_led_trig, LED_OFF); in arcnet_led_event()
212 led_trigger_event(lp->tx_led_trig, LED_OFF); in arcnet_led_event()
213 led_trigger_event(lp->recon_led_trig, LED_OFF); in arcnet_led_event()
[all …]
/Linux-v4.19/drivers/net/ethernet/natsemi/
Dsonic.c44 struct sonic_local *lp = netdev_priv(dev); in sonic_msg_init() local
46 lp->msg_enable = netif_msg_init(sonic_debug, 0); in sonic_msg_init()
49 netif_dbg(lp, drv, dev, "%s", version); in sonic_msg_init()
61 struct sonic_local *lp = netdev_priv(dev); in sonic_open() local
64 netif_dbg(lp, ifup, dev, "%s: initializing sonic driver\n", __func__); in sonic_open()
71 dev_kfree_skb(lp->rx_skb[i]); in sonic_open()
72 lp->rx_skb[i] = NULL; in sonic_open()
79 if (SONIC_BUS_SCALE(lp->dma_bitmode) == 2) in sonic_open()
81 lp->rx_skb[i] = skb; in sonic_open()
85 dma_addr_t laddr = dma_map_single(lp->device, skb_put(lp->rx_skb[i], SONIC_RBSIZE), in sonic_open()
[all …]
/Linux-v4.19/drivers/video/backlight/
Darcxcnn_bl.c105 static int arcxcnn_update_field(struct arcxcnn *lp, u8 reg, u8 mask, u8 data) in arcxcnn_update_field() argument
110 ret = i2c_smbus_read_byte_data(lp->client, reg); in arcxcnn_update_field()
112 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in arcxcnn_update_field()
120 return i2c_smbus_write_byte_data(lp->client, reg, tmp); in arcxcnn_update_field()
123 static int arcxcnn_set_brightness(struct arcxcnn *lp, u32 brightness) in arcxcnn_set_brightness() argument
130 ret = i2c_smbus_write_byte_data(lp->client, in arcxcnn_set_brightness()
137 return i2c_smbus_write_byte_data(lp->client, in arcxcnn_set_brightness()
143 struct arcxcnn *lp = bl_get_data(bl); in arcxcnn_bl_update_status() local
150 ret = arcxcnn_set_brightness(lp, brightness); in arcxcnn_bl_update_status()
155 return arcxcnn_update_field(lp, ARCXCNN_CMD, ARCXCNN_CMD_STDBY, in arcxcnn_bl_update_status()
[all …]
Dlp855x_bl.c81 static int lp855x_write_byte(struct lp855x *lp, u8 reg, u8 data) in lp855x_write_byte() argument
83 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte()
86 static int lp855x_update_bit(struct lp855x *lp, u8 reg, u8 mask, u8 data) in lp855x_update_bit() argument
91 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit()
93 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit()
101 return lp855x_write_byte(lp, reg, tmp); in lp855x_update_bit()
104 static bool lp855x_is_valid_rom_area(struct lp855x *lp, u8 addr) in lp855x_is_valid_rom_area() argument
108 switch (lp->chip_id) { in lp855x_is_valid_rom_area()
135 static int lp8557_bl_off(struct lp855x *lp) in lp8557_bl_off() argument
138 return lp855x_update_bit(lp, LP8557_BL_CMD, LP8557_BL_MASK, in lp8557_bl_off()
[all …]
/Linux-v4.19/arch/xtensa/platforms/iss/
Dnetwork.c90 int (*open)(struct iss_net_private *lp);
91 void (*close)(struct iss_net_private *lp);
92 int (*read)(struct iss_net_private *lp, struct sk_buff **skb);
93 int (*write)(struct iss_net_private *lp, struct sk_buff **skb);
95 int (*poll)(struct iss_net_private *lp);
165 static int tuntap_open(struct iss_net_private *lp) in tuntap_open() argument
168 char *dev_name = lp->tp.info.tuntap.dev_name; in tuntap_open()
175 lp->dev->name, fd, errno); in tuntap_open()
186 lp->dev->name, dev_name, err, errno); in tuntap_open()
191 lp->tp.info.tuntap.fd = fd; in tuntap_open()
[all …]
/Linux-v4.19/drivers/net/ethernet/cirrus/
Dcs89x0.c197 static void readwords(struct net_local *lp, int portno, void *buf, int length) in readwords() argument
204 tmp16 = ioread16(lp->virt_addr + portno); in readwords()
210 static void writewords(struct net_local *lp, int portno, void *buf, int length) in writewords() argument
219 iowrite16(tmp16, lp->virt_addr + portno); in writewords()
226 struct net_local *lp = netdev_priv(dev); in readreg() local
228 iowrite16(regno, lp->virt_addr + ADD_PORT); in readreg()
229 return ioread16(lp->virt_addr + DATA_PORT); in readreg()
235 struct net_local *lp = netdev_priv(dev); in writereg() local
237 iowrite16(regno, lp->virt_addr + ADD_PORT); in writereg()
238 iowrite16(value, lp->virt_addr + DATA_PORT); in writereg()
[all …]
/Linux-v4.19/drivers/net/ethernet/toshiba/
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->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 …]

12345678910>>...12