| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/xilinx/ |
| D | ll_temac_main.c | 71 static u32 _temac_ior_be(struct temac_local *lp, int offset) in _temac_ior_be() argument 73 return ioread32be(lp->regs + offset); in _temac_ior_be() 76 static void _temac_iow_be(struct temac_local *lp, int offset, u32 value) in _temac_iow_be() argument 78 return iowrite32be(value, lp->regs + offset); in _temac_iow_be() 81 static u32 _temac_ior_le(struct temac_local *lp, int offset) in _temac_ior_le() argument 83 return ioread32(lp->regs + offset); in _temac_ior_le() 86 static void _temac_iow_le(struct temac_local *lp, int offset, u32 value) in _temac_iow_le() argument 88 return iowrite32(value, lp->regs + offset); in _temac_iow_le() 91 static bool hard_acs_rdy(struct temac_local *lp) in hard_acs_rdy() argument 93 return temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK; in hard_acs_rdy() [all …]
|
| D | xilinx_axienet_main.c | 124 * @lp: Pointer to axienet local structure 131 static inline u32 axienet_dma_in32(struct axienet_local *lp, off_t reg) in axienet_dma_in32() argument 133 return ioread32(lp->dma_regs + reg); in axienet_dma_in32() 138 * @lp: Pointer to axienet local structure 145 static inline void axienet_dma_out32(struct axienet_local *lp, in axienet_dma_out32() argument 148 iowrite32(value, lp->dma_regs + reg); in axienet_dma_out32() 151 static void axienet_dma_out_addr(struct axienet_local *lp, off_t reg, in axienet_dma_out_addr() argument 154 axienet_dma_out32(lp, reg, lower_32_bits(addr)); in axienet_dma_out_addr() 156 if (lp->features & XAE_FEATURE_DMA_64BIT) in axienet_dma_out_addr() 157 axienet_dma_out32(lp, reg + 4, upper_32_bits(addr)); in axienet_dma_out_addr() [all …]
|
| /kernel/linux/linux-6.6/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 | 125 * @lp: Pointer to axienet local structure 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() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/ |
| D | korina.c | 174 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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-6.6/drivers/net/ieee802154/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ieee802154/ |
| D | at86rf230.c | 64 struct at86rf230_local *lp; member 114 at86rf230_async_state_change(struct at86rf230_local *lp, 119 at86rf230_sleep(struct at86rf230_local *lp) in at86rf230_sleep() argument 121 if (gpio_is_valid(lp->slp_tr)) { in at86rf230_sleep() 122 gpio_set_value(lp->slp_tr, 1); in at86rf230_sleep() 123 usleep_range(lp->data->t_off_to_sleep, in at86rf230_sleep() 124 lp->data->t_off_to_sleep + 10); in at86rf230_sleep() 125 lp->sleep = true; in at86rf230_sleep() 130 at86rf230_awake(struct at86rf230_local *lp) in at86rf230_awake() argument 132 if (gpio_is_valid(lp->slp_tr)) { in at86rf230_awake() [all …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/net/ipv4/ |
| D | tcp_lp.c | 3 * TCP Low Priority (TCP-LP) 11 * the original TCP-LP implementation: 26 * http://www.ece.rice.edu/~akuzma/Doc/akuzma/TCP-LP.pdf 28 * http://www-ece.rice.edu/networks/TCP-LP/ 34 * http://tcp-lp-mod.sourceforge.net/ 50 * TCP-LP's state flags. 61 * struct lp 62 * @flag: TCP-LP state flag 73 * TCP-LP's private struct. 74 * We get the idea from original TCP-LP implementation where only left those we [all …]
|
| /kernel/linux/linux-6.6/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() 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->tx_skbuff); in pcnet32_realloc_tx_ring() [all …]
|
| /kernel/linux/linux-5.10/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() 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->tx_skbuff); in pcnet32_realloc_tx_ring() [all …]
|
| /kernel/linux/linux-6.6/net/ipv4/ |
| D | tcp_lp.c | 3 * TCP Low Priority (TCP-LP) 11 * the original TCP-LP implementation: 26 * http://www.ece.rice.edu/~akuzma/Doc/akuzma/TCP-LP.pdf 28 * http://www-ece.rice.edu/networks/TCP-LP/ 34 * http://tcp-lp-mod.sourceforge.net/ 50 * TCP-LP's state flags. 61 * struct lp 62 * @flag: TCP-LP state flag 73 * TCP-LP's private struct. 74 * We get the idea from original TCP-LP implementation where only left those we [all …]
|
| /kernel/linux/linux-6.6/drivers/video/backlight/ |
| 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/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 | smc911x.h | 112 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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/ |
| D | de4x5.c | 192 SROM, the feature is ignored unless lp->params.fdx is set at compile 343 Fix initialisation problem with lp->timeout in 404 lp->rst not run because lp->ibn not initialised - 420 Change dev->interrupt to lp->interrupt to ensure 682 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:\ [all …]
|
| /kernel/linux/linux-5.10/drivers/video/backlight/ |
| D | lp855x_bl.c | 77 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 …]
|