/linux-6.6.21/drivers/net/ethernet/xilinx/ |
D | ll_temac_main.c | 69 static u32 _temac_ior_be(struct temac_local *lp, int offset) in _temac_ior_be() argument 71 return ioread32be(lp->regs + offset); in _temac_ior_be() 74 static void _temac_iow_be(struct temac_local *lp, int offset, u32 value) in _temac_iow_be() argument 76 return iowrite32be(value, lp->regs + offset); in _temac_iow_be() 79 static u32 _temac_ior_le(struct temac_local *lp, int offset) in _temac_ior_le() argument 81 return ioread32(lp->regs + offset); in _temac_ior_le() 84 static void _temac_iow_le(struct temac_local *lp, int offset, u32 value) in _temac_iow_le() argument 86 return iowrite32(value, lp->regs + offset); in _temac_iow_le() 89 static bool hard_acs_rdy(struct temac_local *lp) in hard_acs_rdy() argument 91 return temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK; in hard_acs_rdy() [all …]
|
D | xilinx_axienet_main.c | 132 static inline u32 axienet_dma_in32(struct axienet_local *lp, off_t reg) in axienet_dma_in32() argument 134 return ioread32(lp->dma_regs + reg); in axienet_dma_in32() 137 static void desc_set_phys_addr(struct axienet_local *lp, dma_addr_t addr, in desc_set_phys_addr() argument 141 if (lp->features & XAE_FEATURE_DMA_64BIT) in desc_set_phys_addr() 145 static dma_addr_t desc_get_phys_addr(struct axienet_local *lp, in desc_get_phys_addr() argument 150 if (lp->features & XAE_FEATURE_DMA_64BIT) in desc_get_phys_addr() 167 struct axienet_local *lp = netdev_priv(ndev); in axienet_dma_bd_release() local 170 dma_free_coherent(lp->dev, in axienet_dma_bd_release() 171 sizeof(*lp->tx_bd_v) * lp->tx_bd_num, in axienet_dma_bd_release() 172 lp->tx_bd_v, in axienet_dma_bd_release() [all …]
|
D | xilinx_axienet_mdio.c | 24 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() 34 static void axienet_mdio_mdc_enable(struct axienet_local *lp) in axienet_mdio_mdc_enable() argument 36 axienet_iow(lp, XAE_MDIO_MC_OFFSET, in axienet_mdio_mdc_enable() 37 ((u32)lp->mii_clk_div | XAE_MDIO_MC_MDIOEN_MASK)); in axienet_mdio_mdc_enable() 41 static void axienet_mdio_mdc_disable(struct axienet_local *lp) in axienet_mdio_mdc_disable() argument 45 mc_reg = axienet_ior(lp, XAE_MDIO_MC_OFFSET); in axienet_mdio_mdc_disable() 46 axienet_iow(lp, XAE_MDIO_MC_OFFSET, in axienet_mdio_mdc_disable() 66 struct axienet_local *lp = bus->priv; in axienet_mdio_read() local 68 axienet_mdio_mdc_enable(lp); in axienet_mdio_read() [all …]
|
/linux-6.6.21/arch/sparc/kernel/ |
D | ldc.c | 177 do { if (lp->cfg.debug & LDC_DEBUG_##TYPE) \ 178 printk(KERN_INFO PFX "ID[%lu] " f, lp->id, ## a); \ 181 #define LDC_ABORT(lp) ldc_abort((lp), __func__) argument 210 static unsigned long rx_advance(struct ldc_channel *lp, unsigned long off) in rx_advance() argument 212 return __advance(off, lp->rx_num_entries); in rx_advance() 215 static unsigned long tx_advance(struct ldc_channel *lp, unsigned long off) in tx_advance() argument 217 return __advance(off, lp->tx_num_entries); in tx_advance() 220 static struct ldc_packet *handshake_get_tx_packet(struct ldc_channel *lp, in handshake_get_tx_packet() argument 226 t = tx_advance(lp, lp->tx_tail); in handshake_get_tx_packet() 227 if (t == lp->tx_head) in handshake_get_tx_packet() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | tcp_lp.c | 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->owd_max_rsv = 0; in tcp_lp_init() 106 lp->remote_hz = 0; in tcp_lp_init() 107 lp->remote_ref_time = 0; in tcp_lp_init() 108 lp->local_ref_time = 0; in tcp_lp_init() [all …]
|
/linux-6.6.21/drivers/net/ethernet/smsc/ |
D | smc91x.h | 65 #define SMC_IO_SHIFT (lp->io_shift) 71 SMC_16BIT(lp) ? readw((a) + __smc_r) : \ 72 SMC_8BIT(lp) ? SMC_inw_b(a, __smc_r) : \ 78 #define SMC_outw(lp, v, a, r) \ argument 81 if (SMC_16BIT(lp)) \ 82 __SMC_outw(lp, __v, a, __smc_r); \ 83 else if (SMC_8BIT(lp)) \ 111 #define __SMC_outw(lp, v, a, r) \ argument 114 (lp)->cfg.pxa_u16_align4) 127 #define SMC_outw(lp, v, a, r) outw(v, (a) + (r) - 0xa0000000) argument [all …]
|
D | smc91x.c | 194 #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 …]
|
/linux-6.6.21/drivers/net/ieee802154/ |
D | mcr20a.c | 447 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 …]
|
D | adf7242.c | 301 static int adf7242_soft_reset(struct adf7242_local *lp, int line); 303 static int adf7242_status(struct adf7242_local *lp, u8 *stat) in adf7242_status() argument 307 mutex_lock(&lp->bmux); in adf7242_status() 308 status = spi_sync(lp->spi, &lp->stat_msg); in adf7242_status() 309 *stat = lp->buf_stat_rx; in adf7242_status() 310 mutex_unlock(&lp->bmux); in adf7242_status() 315 static int adf7242_wait_status(struct adf7242_local *lp, unsigned int status, in adf7242_wait_status() argument 322 adf7242_status(lp, &stat); in adf7242_wait_status() 330 adf7242_soft_reset(lp, line); in adf7242_wait_status() 331 adf7242_status(lp, &stat); in adf7242_wait_status() [all …]
|
D | at86rf230.c | 63 struct at86rf230_local *lp; member 103 at86rf230_async_state_change(struct at86rf230_local *lp, 108 at86rf230_sleep(struct at86rf230_local *lp) in at86rf230_sleep() argument 110 if (lp->slp_tr) { in at86rf230_sleep() 111 gpiod_set_value(lp->slp_tr, 1); in at86rf230_sleep() 112 usleep_range(lp->data->t_off_to_sleep, in at86rf230_sleep() 113 lp->data->t_off_to_sleep + 10); in at86rf230_sleep() 114 lp->sleep = true; in at86rf230_sleep() 119 at86rf230_awake(struct at86rf230_local *lp) in at86rf230_awake() argument 121 if (lp->slp_tr) { in at86rf230_awake() [all …]
|
/linux-6.6.21/drivers/net/ethernet/amd/ |
D | pcnet32.c | 448 struct pcnet32_private *lp = netdev_priv(dev); in pcnet32_netif_stop() local 451 napi_disable(&lp->napi); in pcnet32_netif_stop() 457 struct pcnet32_private *lp = netdev_priv(dev); in pcnet32_netif_start() local 462 val = lp->a->read_csr(ioaddr, CSR3); in pcnet32_netif_start() 464 lp->a->write_csr(ioaddr, CSR3, val); in pcnet32_netif_start() 465 napi_enable(&lp->napi); in pcnet32_netif_start() 476 struct pcnet32_private *lp, in pcnet32_realloc_tx_ring() argument 488 dma_alloc_coherent(&lp->pci_dev->dev, in pcnet32_realloc_tx_ring() 502 kfree(lp->tx_skbuff); in pcnet32_realloc_tx_ring() 503 kfree(lp->tx_dma_addr); in pcnet32_realloc_tx_ring() [all …]
|
D | amd8111e.c | 98 static int amd8111e_read_phy(struct amd8111e_priv *lp, in amd8111e_read_phy() argument 101 void __iomem *mmio = lp->mmio; in amd8111e_read_phy() 127 static int amd8111e_write_phy(struct amd8111e_priv *lp, in amd8111e_write_phy() argument 131 void __iomem *mmio = lp->mmio; in amd8111e_write_phy() 159 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_mdio_read() local 162 amd8111e_read_phy(lp, phy_id, reg_num, ®_val); in amd8111e_mdio_read() 171 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_mdio_write() local 173 amd8111e_write_phy(lp, phy_id, reg_num, val); in amd8111e_mdio_write() 181 struct amd8111e_priv *lp = netdev_priv(dev); in amd8111e_set_ext_phy() local 185 advert = amd8111e_mdio_read(dev, lp->ext_phy_addr, MII_ADVERTISE); in amd8111e_set_ext_phy() [all …]
|
D | 7990.c | 45 #define WRITERAP(lp, x) out_be16(lp->base + LANCE_RAP, (x)) argument 46 #define WRITERDP(lp, x) out_be16(lp->base + LANCE_RDP, (x)) argument 47 #define READRDP(lp) in_be16(lp->base + LANCE_RDP) argument 59 #define WRITERAP(lp, x) (lp->writerap(lp, x)) argument 60 #define WRITERDP(lp, x) (lp->writerdp(lp, x)) argument 61 #define READRDP(lp) (lp->readrdp(lp)) argument 66 static inline void WRITERAP(struct lance_private *lp, __u16 value) in WRITERAP() argument 69 out_be16(lp->base + HPLANCE_REGOFF + LANCE_RAP, value); in WRITERAP() 70 } while ((in_8(lp->base + HPLANCE_STATUS) & LE_ACK) == 0); in WRITERAP() 73 static inline void WRITERDP(struct lance_private *lp, __u16 value) in WRITERDP() argument [all …]
|
D | sunlance.c | 267 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\ 268 lp->tx_old+TX_RING_MOD_MASK-lp->tx_new:\ 269 lp->tx_old - lp->tx_new-1) 295 static void load_csrs(struct lance_private *lp) in load_csrs() argument 299 if (lp->pio_buffer) in load_csrs() 302 leptr = LANCE_ADDR(lp->init_block_dvma); in load_csrs() 304 sbus_writew(LE_CSR1, lp->lregs + RAP); in load_csrs() 305 sbus_writew(leptr & 0xffff, lp->lregs + RDP); in load_csrs() 306 sbus_writew(LE_CSR2, lp->lregs + RAP); in load_csrs() 307 sbus_writew(leptr >> 16, lp->lregs + RDP); in load_csrs() [all …]
|
/linux-6.6.21/drivers/net/ethernet/ |
D | korina.c | 378 static dma_addr_t korina_tx_dma(struct korina_private *lp, int idx) in korina_tx_dma() argument 380 return lp->td_dma + (idx * sizeof(struct dma_desc)); in korina_tx_dma() 383 static dma_addr_t korina_rx_dma(struct korina_private *lp, int idx) in korina_rx_dma() argument 385 return lp->rd_dma + (idx * sizeof(struct dma_desc)); in korina_rx_dma() 406 struct korina_private *lp = netdev_priv(dev); in korina_abort_tx() local 408 korina_abort_dma(dev, lp->tx_dma_regs); in korina_abort_tx() 413 struct korina_private *lp = netdev_priv(dev); in korina_abort_rx() local 415 korina_abort_dma(dev, lp->rx_dma_regs); in korina_abort_rx() 422 struct korina_private *lp = netdev_priv(dev); in korina_send_packet() local 430 spin_lock_irqsave(&lp->lock, flags); in korina_send_packet() [all …]
|
/linux-6.6.21/drivers/net/arcnet/ |
D | arcnet.c | 164 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 202 led_trigger_blink_oneshot(lp->recon_led_trig, 350, 350, 0); in arcnet_led_event() 205 led_trigger_event(lp->tx_led_trig, LED_OFF); in arcnet_led_event() 206 led_trigger_event(lp->recon_led_trig, LED_OFF); in arcnet_led_event() 209 led_trigger_event(lp->tx_led_trig, LED_OFF); in arcnet_led_event() 210 led_trigger_event(lp->recon_led_trig, LED_OFF); in arcnet_led_event() [all …]
|
D | com20020.c | 95 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->setup, ioaddr, COM20020_REG_W_XREG); in com20020_check() 112 if (lp->clockm != 0) { in com20020_check() 113 com20020_set_subaddress(lp, ioaddr, SUB_SETUP2); in com20020_check() 114 arcnet_outb(lp->setup2, ioaddr, COM20020_REG_W_XREG); in com20020_check() 121 lp->config = (lp->timeout << 3) | (lp->backplane << 2) | SUB_NODE; in com20020_check() [all …]
|
/linux-6.6.21/drivers/video/backlight/ |
D | arcxcnn_bl.c | 94 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_CMD, ARCXCNN_CMD_STDBY, in arcxcnn_bl_update_status() [all …]
|
D | lp855x_bl.c | 79 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_CMD, LP8557_BL_MASK, in lp8557_bl_off() [all …]
|
/linux-6.6.21/drivers/net/ethernet/natsemi/ |
D | sonic.c | 45 struct sonic_local *lp = netdev_priv(dev); in sonic_msg_init() local 47 lp->msg_enable = netif_msg_init(sonic_debug, 0); in sonic_msg_init() 50 netif_dbg(lp, drv, dev, "%s", version); in sonic_msg_init() 55 struct sonic_local *lp = netdev_priv(dev); in sonic_alloc_descriptors() local 61 lp->descriptors = in sonic_alloc_descriptors() 62 dma_alloc_coherent(lp->device, in sonic_alloc_descriptors() 64 SONIC_BUS_SCALE(lp->dma_bitmode), in sonic_alloc_descriptors() 65 &lp->descriptors_laddr, GFP_KERNEL); in sonic_alloc_descriptors() 67 if (!lp->descriptors) in sonic_alloc_descriptors() 70 lp->cda = lp->descriptors; in sonic_alloc_descriptors() [all …]
|
/linux-6.6.21/drivers/net/ethernet/toshiba/ |
D | tc35815.c | 335 #define HAVE_DMA_RXALIGN(lp) likely((lp)->chiptype != TC35815CF) argument 439 static inline dma_addr_t fd_virt_to_bus(struct tc35815_local *lp, void *virt) in fd_virt_to_bus() argument 441 return lp->fd_buf_dma + ((u8 *)virt - (u8 *)lp->fd_buf); in fd_virt_to_bus() 444 static inline void *fd_bus_to_virt(struct tc35815_local *lp, dma_addr_t bus) in fd_bus_to_virt() argument 446 return (void *)((u8 *)lp->fd_buf + (bus - lp->fd_buf_dma)); in fd_bus_to_virt() 540 struct tc35815_local *lp = netdev_priv(dev); in tc_handle_link_change() local 545 spin_lock_irqsave(&lp->lock, flags); in tc_handle_link_change() 547 (lp->speed != phydev->speed || lp->duplex != phydev->duplex)) { in tc_handle_link_change() 573 lp->chiptype != TC35815_TX4939) in tc_handle_link_change() 577 lp->speed = phydev->speed; in tc_handle_link_change() [all …]
|
/linux-6.6.21/drivers/net/ethernet/cirrus/ |
D | cs89x0.c | 198 static void readwords(struct net_local *lp, int portno, void *buf, int length) in readwords() argument 205 tmp16 = ioread16(lp->virt_addr + portno); in readwords() 211 static void writewords(struct net_local *lp, int portno, void *buf, int length) in writewords() argument 220 iowrite16(tmp16, lp->virt_addr + portno); in writewords() 227 struct net_local *lp = netdev_priv(dev); in readreg() local 229 iowrite16(regno, lp->virt_addr + ADD_PORT); in readreg() 230 return ioread16(lp->virt_addr + DATA_PORT); in readreg() 236 struct net_local *lp = netdev_priv(dev); in writereg() local 238 iowrite16(regno, lp->virt_addr + ADD_PORT); in writereg() 239 iowrite16(value, lp->virt_addr + DATA_PORT); in writereg() [all …]
|
/linux-6.6.21/arch/xtensa/platforms/iss/ |
D | network.c | 58 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->tp.info.tuntap.fd = fd; in tuntap_open() [all …]
|
/linux-6.6.21/drivers/net/ethernet/i825xx/ |
D | 82596.c | 412 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 463 &lp->scp, lp->scp.sysbus, lp->scp.iscp); in i596_display_data() 465 &lp->iscp, lp->iscp.stat, lp->iscp.scb); in i596_display_data() 468 &lp->scb, lp->scb.status, lp->scb.command, in i596_display_data() [all …]
|
/linux-6.6.21/drivers/input/misc/ |
D | pcf8574_keypad.c | 46 static short read_state(struct kp_data *lp) in read_state() argument 50 i2c_smbus_write_byte(lp->client, 240); in read_state() 51 x = 0xF & (~(i2c_smbus_read_byte(lp->client) >> 4)); in read_state() 53 i2c_smbus_write_byte(lp->client, 15); in read_state() 54 y = 0xF & (~i2c_smbus_read_byte(lp->client)); in read_state() 66 struct kp_data *lp = dev_id; in pcf8574_kp_irq_handler() local 67 unsigned char nextstate = read_state(lp); in pcf8574_kp_irq_handler() 69 if (lp->laststate != nextstate) { in pcf8574_kp_irq_handler() 70 int key_down = nextstate < ARRAY_SIZE(lp->btncode); in pcf8574_kp_irq_handler() 72 lp->btncode[nextstate] : lp->btncode[lp->laststate]; in pcf8574_kp_irq_handler() [all …]
|