Home
last modified time | relevance | path

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

12345678910>>...12

/Linux-v5.4/drivers/net/ethernet/smsc/
Dsmc911x.h112 static inline unsigned int SMC_inl(struct smc911x_local *lp, int reg) in SMC_inl() argument
114 void __iomem *ioaddr = lp->base + reg; in SMC_inl()
116 if (lp->cfg.flags & SMC911X_USE_32BIT) in SMC_inl()
119 if (lp->cfg.flags & SMC911X_USE_16BIT) in SMC_inl()
125 static inline void SMC_outl(unsigned int value, struct smc911x_local *lp, in SMC_outl() argument
128 void __iomem *ioaddr = lp->base + reg; in SMC_outl()
130 if (lp->cfg.flags & SMC911X_USE_32BIT) { in SMC_outl()
135 if (lp->cfg.flags & SMC911X_USE_16BIT) { in SMC_outl()
144 static inline void SMC_insl(struct smc911x_local *lp, int reg, in SMC_insl() argument
147 void __iomem *ioaddr = lp->base + reg; in SMC_insl()
[all …]
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)
127 #define SMC_outw(lp, v, a, r) outw(v, (a) + (r) - 0xa0000000) argument
[all …]
Dsmc91x.c194 #define SMC_ENABLE_INT(lp, x) do { \ argument
197 spin_lock_irqsave(&lp->lock, smc_enable_flags); \
198 mask = SMC_GET_INT_MASK(lp); \
200 SMC_SET_INT_MASK(lp, mask); \
201 spin_unlock_irqrestore(&lp->lock, smc_enable_flags); \
205 #define SMC_DISABLE_INT(lp, x) do { \ argument
208 spin_lock_irqsave(&lp->lock, smc_disable_flags); \
209 mask = SMC_GET_INT_MASK(lp); \
211 SMC_SET_INT_MASK(lp, mask); \
212 spin_unlock_irqrestore(&lp->lock, smc_disable_flags); \
[all …]
Dsmc911x.c145 #define SMC_ENABLE_INT(lp, x) do { \ argument
147 __mask = SMC_GET_INT_EN((lp)); \
149 SMC_SET_INT_EN((lp), __mask); \
153 #define SMC_DISABLE_INT(lp, x) do { \ argument
155 __mask = SMC_GET_INT_EN((lp)); \
157 SMC_SET_INT_EN((lp), __mask); \
165 struct smc911x_local *lp = netdev_priv(dev); in smc911x_reset() local
172 if ((SMC_GET_PMT_CTRL(lp) & PMT_CTRL_READY_) == 0) { in smc911x_reset()
174 SMC_SET_BYTE_TEST(lp, 0); in smc911x_reset()
178 reg = SMC_GET_PMT_CTRL(lp) & PMT_CTRL_READY_; in smc911x_reset()
[all …]
/Linux-v5.4/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-v5.4/drivers/net/ethernet/xilinx/
Dll_temac_main.c67 static u32 _temac_ior_be(struct temac_local *lp, int offset) in _temac_ior_be() argument
69 return ioread32be(lp->regs + offset); in _temac_ior_be()
72 static void _temac_iow_be(struct temac_local *lp, int offset, u32 value) in _temac_iow_be() argument
74 return iowrite32be(value, lp->regs + offset); in _temac_iow_be()
77 static u32 _temac_ior_le(struct temac_local *lp, int offset) in _temac_ior_le() argument
79 return ioread32(lp->regs + offset); in _temac_ior_le()
82 static void _temac_iow_le(struct temac_local *lp, int offset, u32 value) in _temac_iow_le() argument
84 return iowrite32(value, lp->regs + offset); in _temac_iow_le()
87 static bool hard_acs_rdy(struct temac_local *lp) in hard_acs_rdy() argument
89 return temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK; in hard_acs_rdy()
[all …]
Dxilinx_axienet_main.c130 static inline u32 axienet_dma_in32(struct axienet_local *lp, off_t reg) in axienet_dma_in32() argument
132 return ioread32(lp->dma_regs + reg); in axienet_dma_in32()
144 static inline void axienet_dma_out32(struct axienet_local *lp, in axienet_dma_out32() argument
147 iowrite32(value, lp->dma_regs + reg); in axienet_dma_out32()
161 struct axienet_local *lp = netdev_priv(ndev); in axienet_dma_bd_release() local
163 for (i = 0; i < lp->rx_bd_num; i++) { in axienet_dma_bd_release()
164 dma_unmap_single(ndev->dev.parent, lp->rx_bd_v[i].phys, in axienet_dma_bd_release()
165 lp->max_frm_size, DMA_FROM_DEVICE); in axienet_dma_bd_release()
166 dev_kfree_skb(lp->rx_bd_v[i].skb); in axienet_dma_bd_release()
169 if (lp->rx_bd_v) { in axienet_dma_bd_release()
[all …]
Dxilinx_axienet_mdio.c24 static int axienet_mdio_wait_until_ready(struct axienet_local *lp) in axienet_mdio_wait_until_ready() argument
28 return readx_poll_timeout(axinet_ior_read_mcr, lp, in axienet_mdio_wait_until_ready()
49 struct axienet_local *lp = bus->priv; in axienet_mdio_read() local
51 ret = axienet_mdio_wait_until_ready(lp); in axienet_mdio_read()
55 axienet_iow(lp, XAE_MDIO_MCR_OFFSET, in axienet_mdio_read()
63 ret = axienet_mdio_wait_until_ready(lp); in axienet_mdio_read()
67 rc = axienet_ior(lp, XAE_MDIO_MRD_OFFSET) & 0x0000FFFF; in axienet_mdio_read()
69 dev_dbg(lp->dev, "axienet_mdio_read(phy_id=%i, reg=%x) == %x\n", in axienet_mdio_read()
92 struct axienet_local *lp = bus->priv; in axienet_mdio_write() local
94 dev_dbg(lp->dev, "axienet_mdio_write(phy_id=%i, reg=%x, val=%x)\n", in axienet_mdio_write()
[all …]
/Linux-v5.4/net/ipv4/
Dtcp_lp.c77 struct lp { struct
98 struct lp *lp = inet_csk_ca(sk); in tcp_lp_init() argument
100 lp->flag = 0; in tcp_lp_init()
101 lp->sowd = 0; in tcp_lp_init()
102 lp->owd_min = 0xffffffff; in tcp_lp_init()
103 lp->owd_max = 0; in tcp_lp_init()
104 lp->owd_max_rsv = 0; in tcp_lp_init()
105 lp->remote_hz = 0; in tcp_lp_init()
106 lp->remote_ref_time = 0; in tcp_lp_init()
107 lp->local_ref_time = 0; in tcp_lp_init()
[all …]
/Linux-v5.4/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-v5.4/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-v5.4/drivers/net/ieee802154/
Dmcr20a.c447 struct mcr20a_local *lp = context; in mcr20a_write_tx_buf_complete() local
450 dev_dbg(printdev(lp), "%s\n", __func__); in mcr20a_write_tx_buf_complete()
452 lp->reg_msg.complete = NULL; in mcr20a_write_tx_buf_complete()
453 lp->reg_cmd[0] = MCR20A_WRITE_REG(DAR_PHY_CTRL1); in mcr20a_write_tx_buf_complete()
454 lp->reg_data[0] = MCR20A_XCVSEQ_TX; in mcr20a_write_tx_buf_complete()
455 lp->reg_xfer_data.len = 1; in mcr20a_write_tx_buf_complete()
457 ret = spi_async(lp->spi, &lp->reg_msg); in mcr20a_write_tx_buf_complete()
459 dev_err(printdev(lp), "failed to set SEQ TX\n"); in mcr20a_write_tx_buf_complete()
465 struct mcr20a_local *lp = hw->priv; in mcr20a_xmit() local
467 dev_dbg(printdev(lp), "%s\n", __func__); in mcr20a_xmit()
[all …]
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, line); in adf7242_wait_status()
331 adf7242_status(lp, &stat); in adf7242_wait_status()
[all …]
Dat86rf230.c64 struct at86rf230_local *lp; member
113 at86rf230_async_state_change(struct at86rf230_local *lp,
118 at86rf230_sleep(struct at86rf230_local *lp) in at86rf230_sleep() argument
120 if (gpio_is_valid(lp->slp_tr)) { in at86rf230_sleep()
121 gpio_set_value(lp->slp_tr, 1); in at86rf230_sleep()
122 usleep_range(lp->data->t_off_to_sleep, in at86rf230_sleep()
123 lp->data->t_off_to_sleep + 10); in at86rf230_sleep()
124 lp->sleep = true; in at86rf230_sleep()
129 at86rf230_awake(struct at86rf230_local *lp) in at86rf230_awake() argument
131 if (gpio_is_valid(lp->slp_tr)) { in at86rf230_awake()
[all …]
/Linux-v5.4/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.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, x) (lp->writerdp(lp, x)) argument
61 #define READRDP(lp) (lp->readrdp(lp)) argument
66 static inline void WRITERAP(struct lance_private *lp, __u16 value) in WRITERAP() argument
69 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value); in WRITERAP()
70 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in WRITERAP()
73 static inline void WRITERDP(struct lance_private *lp, __u16 value) in WRITERDP() argument
[all …]
Damd8111e.c99 static int amd8111e_read_phy(struct amd8111e_priv *lp, in amd8111e_read_phy() argument
102 void __iomem *mmio = lp->mmio; in amd8111e_read_phy()
128 static int amd8111e_write_phy(struct amd8111e_priv *lp, in amd8111e_write_phy() argument
132 void __iomem *mmio = lp->mmio; in amd8111e_write_phy()
160 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_mdio_read() local
163 amd8111e_read_phy(lp,phy_id,reg_num,&reg_val); in amd8111e_mdio_read()
172 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_mdio_write() local
174 amd8111e_write_phy(lp, phy_id, reg_num, val); in amd8111e_mdio_write()
182 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_set_ext_phy() local
186 advert = amd8111e_mdio_read(dev, lp->ext_phy_addr, MII_ADVERTISE); in amd8111e_set_ext_phy()
[all …]
Dsunlance.c272 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
273 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\
274 lp->tx_old - lp->tx_new-1)
300 static void load_csrs(struct lance_private *lp) in load_csrs() argument
304 if (lp->pio_buffer) in load_csrs()
307 leptr = LANCE_ADDR(lp->init_block_dvma); in load_csrs()
309 sbus_writew(LE_CSR1, lp->lregs + RAP); in load_csrs()
310 sbus_writew(leptr & 0xffff, lp->lregs + RDP); in load_csrs()
311 sbus_writew(LE_CSR2, lp->lregs + RAP); in load_csrs()
312 sbus_writew(leptr >> 16, lp->lregs + RDP); in load_csrs()
[all …]
/Linux-v5.4/drivers/net/ethernet/natsemi/
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()
62 struct sonic_local *lp = netdev_priv(dev); in sonic_open() local
65 netif_dbg(lp, ifup, dev, "%s: initializing sonic driver\n", __func__); in sonic_open()
72 dev_kfree_skb(lp->rx_skb[i]); in sonic_open()
73 lp->rx_skb[i] = NULL; in sonic_open()
80 if (SONIC_BUS_SCALE(lp->dma_bitmode) == 2) in sonic_open()
82 lp->rx_skb[i] = skb; in sonic_open()
86 dma_addr_t laddr = dma_map_single(lp->device, skb_put(lp->rx_skb[i], SONIC_RBSIZE), in sonic_open()
[all …]
/Linux-v5.4/drivers/video/backlight/
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
139 ret = arcxcnn_set_brightness(lp, brightness); in arcxcnn_bl_update_status()
144 return arcxcnn_update_field(lp, ARCXCNN_CMD, ARCXCNN_CMD_STDBY, in arcxcnn_bl_update_status()
[all …]
Dlp855x_bl.c77 static int lp855x_write_byte(struct lp855x *lp, u8 reg, u8 data) in lp855x_write_byte() argument
79 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte()
82 static int lp855x_update_bit(struct lp855x *lp, u8 reg, u8 mask, u8 data) in lp855x_update_bit() argument
87 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit()
89 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit()
97 return lp855x_write_byte(lp, reg, tmp); in lp855x_update_bit()
100 static bool lp855x_is_valid_rom_area(struct lp855x *lp, u8 addr) in lp855x_is_valid_rom_area() argument
104 switch (lp->chip_id) { in lp855x_is_valid_rom_area()
131 static int lp8557_bl_off(struct lp855x *lp) in lp8557_bl_off() argument
134 return lp855x_update_bit(lp, LP8557_BL_CMD, LP8557_BL_MASK, in lp8557_bl_off()
[all …]
/Linux-v5.4/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-v5.4/arch/xtensa/platforms/iss/
Dnetwork.c85 int (*open)(struct iss_net_private *lp);
86 void (*close)(struct iss_net_private *lp);
87 int (*read)(struct iss_net_private *lp, struct sk_buff **skb);
88 int (*write)(struct iss_net_private *lp, struct sk_buff **skb);
90 int (*poll)(struct iss_net_private *lp);
160 static int tuntap_open(struct iss_net_private *lp) in tuntap_open() argument
163 char *dev_name = lp->tp.info.tuntap.dev_name; in tuntap_open()
170 lp->dev->name, fd, errno); in tuntap_open()
181 lp->dev->name, dev_name, err, errno); in tuntap_open()
186 lp->tp.info.tuntap.fd = fd; in tuntap_open()
[all …]
/Linux-v5.4/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()
541 struct tc35815_local *lp = netdev_priv(dev); in tc_handle_link_change() local
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()
578 lp->speed = phydev->speed; in tc_handle_link_change()
[all …]
/Linux-v5.4/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 …]

12345678910>>...12