/linux-4.1.27/drivers/net/ethernet/smsc/ |
D | smc911x.h | 123 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 …]
|
D | smc911x.c | 155 #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 …]
|
D | smc91x.c | 206 #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 …]
|
D | smc91x.h | 54 #define SMC_IO_SHIFT (lp->io_shift) 185 #define SMC_IO_SHIFT (lp->io_shift) 273 smc_pxa_dma_insl(a, lp, r, dev->dma, p, l) 275 smc_pxa_dma_insl(void __iomem *ioaddr, struct smc_local *lp, int reg, int dma, in smc_pxa_dma_insl() argument 278 u_long physaddr = lp->physaddr; in smc_pxa_dma_insl() 295 dmabuf = dma_map_single(lp->device, buf, len, DMA_FROM_DEVICE); in smc_pxa_dma_insl() 305 dma_unmap_single(lp->device, dmabuf, len, DMA_FROM_DEVICE); in smc_pxa_dma_insl() 312 smc_pxa_dma_insw(a, lp, r, dev->dma, p, l) 314 smc_pxa_dma_insw(void __iomem *ioaddr, struct smc_local *lp, int reg, int dma, in smc_pxa_dma_insw() argument 317 u_long physaddr = lp->physaddr; in smc_pxa_dma_insw() [all …]
|
D | smc9194.c | 470 struct smc_local *lp = netdev_priv(dev); in smc_wait_to_send_packet() local 480 if ( lp->saved_skb) { in smc_wait_to_send_packet() 486 lp->saved_skb = skb; in smc_wait_to_send_packet() 512 lp->saved_skb = NULL; in smc_wait_to_send_packet() 518 lp->packets_waiting++; in smc_wait_to_send_packet() 580 struct smc_local *lp = netdev_priv(dev); in smc_hardware_send_packet() local 582 struct sk_buff * skb = lp->saved_skb; in smc_hardware_send_packet() 602 lp->saved_skb = NULL; in smc_hardware_send_packet() 663 lp->saved_skb = NULL; in smc_hardware_send_packet() 1277 struct smc_local *lp = netdev_priv(dev); in smc_tx() local [all …]
|
/linux-4.1.27/net/ipv4/ |
D | tcp_lp.c | 76 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-4.1.27/drivers/net/ethernet/ |
D | korina.c | 171 struct korina_private *lp = netdev_priv(dev); in korina_abort_tx() local 173 korina_abort_dma(dev, lp->tx_dma_regs); in korina_abort_tx() 178 struct korina_private *lp = netdev_priv(dev); in korina_abort_rx() local 180 korina_abort_dma(dev, lp->rx_dma_regs); in korina_abort_rx() 183 static void korina_start_rx(struct korina_private *lp, in korina_start_rx() argument 186 korina_start_dma(lp->rx_dma_regs, CPHYSADDR(rd)); in korina_start_rx() 189 static void korina_chain_rx(struct korina_private *lp, in korina_chain_rx() argument 192 korina_chain_dma(lp->rx_dma_regs, CPHYSADDR(rd)); in korina_chain_rx() 198 struct korina_private *lp = netdev_priv(dev); in korina_send_packet() local 204 spin_lock_irqsave(&lp->lock, flags); in korina_send_packet() [all …]
|
/linux-4.1.27/drivers/net/ethernet/dec/tulip/ |
D | de4x5.c | 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:\ 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 …]
|
D | de4x5.h | 16 #define DE4X5_BMR iobase+(0x000 << lp->bus) /* Bus Mode Register */ 17 #define DE4X5_TPD iobase+(0x008 << lp->bus) /* Transmit Poll Demand Reg */ 18 #define DE4X5_RPD iobase+(0x010 << lp->bus) /* Receive Poll Demand Reg */ 19 #define DE4X5_RRBA iobase+(0x018 << lp->bus) /* RX Ring Base Address Reg */ 20 #define DE4X5_TRBA iobase+(0x020 << lp->bus) /* TX Ring Base Address Reg */ 21 #define DE4X5_STS iobase+(0x028 << lp->bus) /* Status Register */ 22 #define DE4X5_OMR iobase+(0x030 << lp->bus) /* Operation Mode Register */ 23 #define DE4X5_IMR iobase+(0x038 << lp->bus) /* Interrupt Mask Register */ 24 #define DE4X5_MFC iobase+(0x040 << lp->bus) /* Missed Frame Counter */ 25 #define DE4X5_APROM iobase+(0x048 << lp->bus) /* Ethernet Address PROM */ [all …]
|
/linux-4.1.27/drivers/net/ethernet/xilinx/ |
D | ll_temac_main.c | 63 u32 temac_ior(struct temac_local *lp, int offset) in temac_ior() argument 65 return in_be32((u32 *)(lp->regs + offset)); in temac_ior() 68 void temac_iow(struct temac_local *lp, int offset, u32 value) in temac_iow() argument 70 out_be32((u32 *) (lp->regs + offset), value); in temac_iow() 73 int temac_indirect_busywait(struct temac_local *lp) in temac_indirect_busywait() argument 77 while (!(temac_ior(lp, XTE_RDY0_OFFSET) & XTE_RDY0_HARD_ACS_RDY_MASK)) { in temac_indirect_busywait() 92 u32 temac_indirect_in32(struct temac_local *lp, int reg) in temac_indirect_in32() argument 96 if (temac_indirect_busywait(lp)) in temac_indirect_in32() 98 temac_iow(lp, XTE_CTL0_OFFSET, reg); in temac_indirect_in32() 99 if (temac_indirect_busywait(lp)) in temac_indirect_in32() [all …]
|
D | xilinx_axienet_main.c | 124 static inline u32 axienet_dma_in32(struct axienet_local *lp, off_t reg) in axienet_dma_in32() argument 126 return in_be32(lp->dma_regs + reg); in axienet_dma_in32() 138 static inline void axienet_dma_out32(struct axienet_local *lp, in axienet_dma_out32() argument 141 out_be32((lp->dma_regs + reg), value); in axienet_dma_out32() 155 struct axienet_local *lp = netdev_priv(ndev); in axienet_dma_bd_release() local 158 dma_unmap_single(ndev->dev.parent, lp->rx_bd_v[i].phys, in axienet_dma_bd_release() 159 lp->max_frm_size, DMA_FROM_DEVICE); in axienet_dma_bd_release() 161 (lp->rx_bd_v[i].sw_id_offset)); in axienet_dma_bd_release() 164 if (lp->rx_bd_v) { in axienet_dma_bd_release() 166 sizeof(*lp->rx_bd_v) * RX_BD_NUM, in axienet_dma_bd_release() [all …]
|
D | ll_temac_mdio.c | 24 struct temac_local *lp = bus->priv; in temac_mdio_read() local 30 mutex_lock(&lp->indirect_mutex); in temac_mdio_read() 31 temac_iow(lp, XTE_LSW0_OFFSET, (phy_id << 5) | reg); in temac_mdio_read() 32 rc = temac_indirect_in32(lp, XTE_MIIMAI_OFFSET); in temac_mdio_read() 33 mutex_unlock(&lp->indirect_mutex); in temac_mdio_read() 35 dev_dbg(lp->dev, "temac_mdio_read(phy_id=%i, reg=%x) == %x\n", in temac_mdio_read() 43 struct temac_local *lp = bus->priv; in temac_mdio_write() local 45 dev_dbg(lp->dev, "temac_mdio_write(phy_id=%i, reg=%x, val=%x)\n", in temac_mdio_write() 51 mutex_lock(&lp->indirect_mutex); in temac_mdio_write() 52 temac_indirect_out32(lp, XTE_MGTDR_OFFSET, val); in temac_mdio_write() [all …]
|
D | xilinx_emaclite.c | 493 struct net_local *lp = netdev_priv(dev); in xemaclite_set_mac_address() local 500 xemaclite_update_address(lp, dev->dev_addr); in xemaclite_set_mac_address() 512 struct net_local *lp = netdev_priv(dev); in xemaclite_tx_timeout() local 515 dev_err(&lp->ndev->dev, "Exceeded transmit timeout of %lu ms\n", in xemaclite_tx_timeout() 521 spin_lock_irqsave(&lp->reset_lock, flags); in xemaclite_tx_timeout() 526 xemaclite_disable_interrupts(lp); in xemaclite_tx_timeout() 527 xemaclite_enable_interrupts(lp); in xemaclite_tx_timeout() 529 if (lp->deferred_skb) { in xemaclite_tx_timeout() 530 dev_kfree_skb(lp->deferred_skb); in xemaclite_tx_timeout() 531 lp->deferred_skb = NULL; in xemaclite_tx_timeout() [all …]
|
D | xilinx_axienet_mdio.c | 20 int axienet_mdio_wait_until_ready(struct axienet_local *lp) in axienet_mdio_wait_until_ready() argument 23 while (!(axienet_ior(lp, XAE_MDIO_MCR_OFFSET) & in axienet_mdio_wait_until_ready() 50 struct axienet_local *lp = bus->priv; in axienet_mdio_read() local 52 ret = axienet_mdio_wait_until_ready(lp); in axienet_mdio_read() 56 axienet_iow(lp, XAE_MDIO_MCR_OFFSET, in axienet_mdio_read() 64 ret = axienet_mdio_wait_until_ready(lp); in axienet_mdio_read() 68 rc = axienet_ior(lp, XAE_MDIO_MRD_OFFSET) & 0x0000FFFF; in axienet_mdio_read() 70 dev_dbg(lp->dev, "axienet_mdio_read(phy_id=%i, reg=%x) == %x\n", in axienet_mdio_read() 93 struct axienet_local *lp = bus->priv; in axienet_mdio_write() local 95 dev_dbg(lp->dev, "axienet_mdio_write(phy_id=%i, reg=%x, val=%x)\n", in axienet_mdio_write() [all …]
|
D | ll_temac.h | 374 u32 temac_ior(struct temac_local *lp, int offset); 375 void temac_iow(struct temac_local *lp, int offset, u32 value); 376 int temac_indirect_busywait(struct temac_local *lp); 377 u32 temac_indirect_in32(struct temac_local *lp, int reg); 378 void temac_indirect_out32(struct temac_local *lp, int reg, u32 value); 382 int temac_mdio_setup(struct temac_local *lp, struct device_node *np); 383 void temac_mdio_teardown(struct temac_local *lp);
|
D | xilinx_axienet.h | 479 static inline u32 axienet_ior(struct axienet_local *lp, off_t offset) in axienet_ior() argument 481 return in_be32(lp->regs + offset); in axienet_ior() 493 static inline void axienet_iow(struct axienet_local *lp, off_t offset, in axienet_iow() argument 496 out_be32((lp->regs + offset), value); in axienet_iow() 500 int axienet_mdio_setup(struct axienet_local *lp, struct device_node *np); 501 int axienet_mdio_wait_until_ready(struct axienet_local *lp); 502 void axienet_mdio_teardown(struct axienet_local *lp);
|
/linux-4.1.27/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); \ 199 static void ldc_set_state(struct ldc_channel *lp, u8 state) in ldc_set_state() argument 202 state_to_str(lp->state), in ldc_set_state() 205 lp->state = state; in ldc_set_state() 217 static unsigned long rx_advance(struct ldc_channel *lp, unsigned long off) in rx_advance() argument 219 return __advance(off, lp->rx_num_entries); in rx_advance() 222 static unsigned long tx_advance(struct ldc_channel *lp, unsigned long off) in tx_advance() argument 224 return __advance(off, lp->tx_num_entries); in tx_advance() 227 static struct ldc_packet *handshake_get_tx_packet(struct ldc_channel *lp, in handshake_get_tx_packet() argument [all …]
|
D | ds.c | 201 struct ldc_channel *lp; member 242 static int __ds_send(struct ldc_channel *lp, void *data, int len) in __ds_send() argument 248 err = ldc_write(lp, data, len); in __ds_send() 257 static int ds_send(struct ldc_channel *lp, void *data, int len) in ds_send() argument 263 err = __ds_send(lp, data, len); in ds_send() 282 struct ldc_channel *lp = dp->lp; in md_update_data() local 303 ds_send(lp, &pkt, sizeof(pkt)); in md_update_data() 321 struct ldc_channel *lp = dp->lp; in domain_shutdown_data() local 342 ds_send(lp, &pkt, sizeof(pkt)); in domain_shutdown_data() 361 struct ldc_channel *lp = dp->lp; in domain_panic_data() local [all …]
|
D | viohs.c | 22 err = ldc_write(vio->lp, data, len); in vio_ldc_send() 128 ldc_disconnect(vio->lp); in vio_link_state_change() 169 ldc_disconnect(vio->lp); in process_unknown() 722 struct ldc_channel *lp; in vio_ldc_alloc() local 727 lp = ldc_alloc(vio->vdev->channel_id, &cfg, event_arg, vio->name); in vio_ldc_alloc() 728 if (IS_ERR(lp)) in vio_ldc_alloc() 729 return PTR_ERR(lp); in vio_ldc_alloc() 731 vio->lp = lp; in vio_ldc_alloc() 739 ldc_free(vio->lp); in vio_ldc_free() 740 vio->lp = NULL; in vio_ldc_free() [all …]
|
/linux-4.1.27/drivers/net/ethernet/amd/ |
D | pcnet32.c | 449 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 489 pci_zalloc_consistent(lp->pci_dev, in pcnet32_realloc_tx_ring() 503 kfree(lp->tx_skbuff); in pcnet32_realloc_tx_ring() 504 kfree(lp->tx_dma_addr); in pcnet32_realloc_tx_ring() [all …]
|
D | 7990.c | 44 #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 …]
|
D | amd8111e.c | 112 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,®_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 …]
|
D | sunlance.c | 271 #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 …]
|
D | nmclan_cs.c | 437 mace_private *lp; in nmclan_probe() local 446 lp = netdev_priv(dev); in nmclan_probe() 447 lp->p_dev = link; in nmclan_probe() 450 spin_lock_init(&lp->bank_lock); in nmclan_probe() 457 lp->tx_free_frames=AM2150_MAX_TX_FRAMES; in nmclan_probe() 486 static int mace_read(mace_private *lp, unsigned int ioaddr, int reg) in mace_read() argument 496 spin_lock_irqsave(&lp->bank_lock, flags); in mace_read() 500 spin_unlock_irqrestore(&lp->bank_lock, flags); in mace_read() 513 static void mace_write(mace_private *lp, unsigned int ioaddr, int reg, in mace_write() argument 523 spin_lock_irqsave(&lp->bank_lock, flags); in mace_write() [all …]
|
D | declance.c | 273 #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 303 volatile struct lance_regs *ll = lp->ll; in load_csrs() 316 writereg(&ll->rdp, lp->busmaster_regval); in load_csrs() 450 struct lance_private *lp = netdev_priv(dev); in lance_init_ring() local 457 lp->rx_new = lp->tx_new = 0; in lance_init_ring() 458 lp->rx_old = lp->tx_old = 0; in lance_init_ring() 463 *lib_ptr(ib, phys_addr[0], lp->type) = (dev->dev_addr[1] << 8) | in lance_init_ring() [all …]
|
D | mvme147.c | 51 static void m147lance_writerap(struct lance_private *lp, unsigned short value); 52 static void m147lance_writerdp(struct lance_private *lp, unsigned short value); 53 static unsigned short m147lance_readrdp(struct lance_private *lp); 76 struct m147lance_private *lp; in mvme147lance_probe() local 113 lp = netdev_priv(dev); in mvme147lance_probe() 114 lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */ in mvme147lance_probe() 115 if (!lp->ram) { in mvme147lance_probe() 121 lp->lance.name = name; in mvme147lance_probe() 122 lp->lance.base = dev->base_addr; in mvme147lance_probe() 123 lp->lance.init_block = (struct lance_init_block *)(lp->ram); /* CPU addr */ in mvme147lance_probe() [all …]
|
D | lance.c | 362 struct lance_private *lp = dev->ml_priv; in cleanup_card() local 366 kfree(lp->tx_bounce_buffs); in cleanup_card() 367 kfree((void*)lp->rx_buffs); in cleanup_card() 368 kfree(lp); in cleanup_card() 422 struct lance_private *lp = dev->ml_priv; in do_lance_probe() local 423 int ver = lp->chip_version; in do_lance_probe() 471 struct lance_private *lp; in lance_probe1() local 549 lp = kzalloc(sizeof(*lp), GFP_DMA | GFP_KERNEL); in lance_probe1() 550 if(lp==NULL) in lance_probe1() 552 if (lance_debug > 6) printk(" (#0x%05lx)", (unsigned long)lp); in lance_probe1() [all …]
|
D | a2065.c | 131 static void load_csrs(struct lance_private *lp) in load_csrs() argument 133 volatile struct lance_regs *ll = lp->ll; in load_csrs() 134 volatile struct lance_init_block *aib = lp->lance_init_block; in load_csrs() 142 ll->rdp = lp->busmaster_regval; in load_csrs() 151 struct lance_private *lp = netdev_priv(dev); in lance_init_ring() local 152 volatile struct lance_init_block *ib = lp->init_block; in lance_init_ring() 153 volatile struct lance_init_block *aib = lp->lance_init_block; in lance_init_ring() 160 lp->rx_new = lp->tx_new = 0; in lance_init_ring() 161 lp->rx_old = lp->tx_old = 0; in lance_init_ring() 177 for (i = 0; i <= 1 << lp->lance_log_tx_bufs; i++) { in lance_init_ring() [all …]
|
D | hplance.c | 131 struct hplance_private *lp; in hplance_init() local 151 lp = netdev_priv(dev); in hplance_init() 152 lp->lance.name = d->name; in hplance_init() 153 lp->lance.base = va; in hplance_init() 154 lp->lance.init_block = (struct lance_init_block *)(va + HPLANCE_MEMOFF); /* CPU addr */ in hplance_init() 155 lp->lance.lance_init_block = NULL; /* LANCE addr of same RAM */ in hplance_init() 156 lp->lance.busmaster_regval = LE_C3_BSWP; /* we're bigendian */ in hplance_init() 157 lp->lance.irq = d->ipl; in hplance_init() 158 lp->lance.writerap = hplance_writerap; in hplance_init() 159 lp->lance.writerdp = hplance_writerdp; in hplance_init() [all …]
|
D | atarilance.c | 233 #define MEM lp->mem 473 struct lance_private *lp; in lance_probe1() local 532 lp = netdev_priv(dev); in lance_probe1() 534 IO = lp->iobase = (struct lance_ioreg *)ioaddr; in lance_probe1() 536 lp->memcpy_f = init_rec->slow_flag ? slow_memcpy : memcpy; in lance_probe1() 545 lp->cardtype = PAM_CARD; in lance_probe1() 548 lp->cardtype = NEW_RIEBL; in lance_probe1() 551 lp->cardtype = OLD_RIEBL; in lance_probe1() 553 if (lp->cardtype == PAM_CARD || in lance_probe1() 579 dev->name, lance_names[lp->cardtype], in lance_probe1() [all …]
|
D | sun3lance.c | 161 #define MEM lp->mem 162 #define DREG lp->iobase[0] 163 #define AREG lp->iobase[1] 310 struct lance_private *lp; in lance_probe() local 344 lp = netdev_priv(dev); in lance_probe() 356 lp->iobase = (volatile unsigned short *)ioaddr; in lance_probe() 419 struct lance_private *lp = netdev_priv(dev); in lance_open() local 456 struct lance_private *lp = netdev_priv(dev); in lance_init_ring() local 459 lp->lock = 0; in lance_init_ring() 460 lp->tx_full = 0; in lance_init_ring() [all …]
|
D | 7990.h | 233 #define TX_BUFFS_AVAIL ((lp->tx_old <= lp->tx_new) ? \ 234 lp->tx_old + lp->tx_ring_mod_mask - lp->tx_new : \ 235 lp->tx_old - lp->tx_new - 1)
|
/linux-4.1.27/drivers/isdn/i4l/ |
D | isdn_net.c | 75 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 …]
|
D | isdn_net.h | 54 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 …]
|
D | isdn_ppp.c | 31 static void isdn_ppp_push_higher(isdn_net_dev *net_dev, isdn_net_local *lp, 37 static void isdn_ppp_receive_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, 41 static void isdn_ppp_send_ccp(isdn_net_dev *net_dev, isdn_net_local *lp, 67 static int isdn_ppp_mp_init(isdn_net_local *lp, ippp_bundle *add_to); 68 static void isdn_ppp_mp_receive(isdn_net_dev *net_dev, isdn_net_local *lp, 70 static void isdn_ppp_mp_cleanup(isdn_net_local *lp); 108 isdn_ppp_free(isdn_net_local *lp) in isdn_ppp_free() argument 112 if (lp->ppp_slot < 0 || lp->ppp_slot >= ISDN_MAX_CHANNELS) { in isdn_ppp_free() 114 __func__, lp->ppp_slot); in isdn_ppp_free() 119 spin_lock(&lp->netdev->pb->lock); in isdn_ppp_free() [all …]
|
D | isdn_concap.c | 46 isdn_net_local *lp = isdn_net_get_locked_lp(nd); in isdn_concap_dl_data_req() local 49 if (!lp) { in isdn_concap_dl_data_req() 53 lp->huptimer = 0; in isdn_concap_dl_data_req() 54 isdn_net_writebuf_skb(lp, skb); in isdn_concap_dl_data_req() 55 spin_unlock_bh(&lp->xmit_lock); in isdn_concap_dl_data_req() 64 isdn_net_local *lp = netdev_priv(ndev); in isdn_concap_dl_connect_req() local 69 ret = isdn_net_dial_req(lp); in isdn_concap_dl_connect_req()
|
/linux-4.1.27/drivers/net/ieee802154/ |
D | at86rf230.c | 67 struct at86rf230_local *lp; member 302 at86rf230_async_state_change(struct at86rf230_local *lp, 308 __at86rf230_write(struct at86rf230_local *lp, in __at86rf230_write() argument 311 return regmap_write(lp->regmap, addr, data); in __at86rf230_write() 315 __at86rf230_read(struct at86rf230_local *lp, in __at86rf230_read() argument 318 return regmap_read(lp->regmap, addr, data); in __at86rf230_read() 322 at86rf230_read_subreg(struct at86rf230_local *lp, in at86rf230_read_subreg() argument 328 rc = __at86rf230_read(lp, addr, data); in at86rf230_read_subreg() 336 at86rf230_write_subreg(struct at86rf230_local *lp, in at86rf230_write_subreg() argument 340 return regmap_update_bits(lp->regmap, addr, mask, data << shift); in at86rf230_write_subreg() [all …]
|
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/ |
D | peer.c | 122 lnet_peer_t *lp = list_entry(peers->next, in lnet_peer_tables_cleanup() local 125 list_del_init(&lp->lp_hashlist); in lnet_peer_tables_cleanup() 127 lnet_peer_decref_locked(lp); in lnet_peer_tables_cleanup() 136 lnet_peer_t *lp; in lnet_peer_tables_cleanup() local 157 lp = list_entry(deathrow.next, in lnet_peer_tables_cleanup() 159 list_del(&lp->lp_hashlist); in lnet_peer_tables_cleanup() 160 LIBCFS_FREE(lp, sizeof(*lp)); in lnet_peer_tables_cleanup() 166 lnet_destroy_peer_locked(lnet_peer_t *lp) in lnet_destroy_peer_locked() argument 170 LASSERT(lp->lp_refcount == 0); in lnet_destroy_peer_locked() 171 LASSERT(lp->lp_rtr_refcount == 0); in lnet_destroy_peer_locked() [all …]
|
D | router.c | 110 lnet_notify_locked(lnet_peer_t *lp, int notifylnd, int alive, in lnet_notify_locked() argument 113 if (time_before(when, lp->lp_timestamp)) { /* out of date information */ in lnet_notify_locked() 118 lp->lp_timestamp = when; /* update timestamp */ in lnet_notify_locked() 119 lp->lp_ping_deadline = 0; /* disable ping timeout */ in lnet_notify_locked() 121 if (lp->lp_alive_count != 0 && /* got old news */ in lnet_notify_locked() 122 (!lp->lp_alive) == (!alive)) { /* new date for old news */ in lnet_notify_locked() 129 lp->lp_alive_count++; in lnet_notify_locked() 130 lp->lp_alive = !(!alive); /* 1 bit! */ in lnet_notify_locked() 131 lp->lp_notify = 1; in lnet_notify_locked() 132 lp->lp_notifylnd |= notifylnd; in lnet_notify_locked() [all …]
|
D | lib-move.c | 682 lnet_ni_query_locked(lnet_ni_t *ni, lnet_peer_t *lp) in lnet_ni_query_locked() argument 686 LASSERT(lnet_peer_aliveness_enabled(lp)); in lnet_ni_query_locked() 689 lnet_net_unlock(lp->lp_cpt); in lnet_ni_query_locked() 690 (ni->ni_lnd->lnd_query)(ni, lp->lp_nid, &last_alive); in lnet_ni_query_locked() 691 lnet_net_lock(lp->lp_cpt); in lnet_ni_query_locked() 693 lp->lp_last_query = cfs_time_current(); in lnet_ni_query_locked() 696 lp->lp_last_alive = last_alive; in lnet_ni_query_locked() 701 lnet_peer_is_alive(lnet_peer_t *lp, unsigned long now) in lnet_peer_is_alive() argument 706 LASSERT(lnet_peer_aliveness_enabled(lp)); in lnet_peer_is_alive() 711 if (!lp->lp_alive && lp->lp_alive_count > 0 && in lnet_peer_is_alive() [all …]
|
D | router_proc.c | 347 lnet_peer_t *lp = list_entry(r, lnet_peer_t, in proc_lnet_routers() local 351 peer = lp; in proc_lnet_routers() 492 lnet_peer_t *lp = list_entry(p, lnet_peer_t, in proc_lnet_peers() local 495 peer = lp; in proc_lnet_peers() 500 if (lp->lp_hashlist.next == in proc_lnet_peers() 512 p = lp->lp_hashlist.next; in proc_lnet_peers()
|
/linux-4.1.27/drivers/net/arcnet/ |
D | arcnet.c | 179 struct arcnet_local *lp = netdev_priv(dev); in arcnet_dump_packet() local 188 spin_lock_irqsave(&lp->lock, flags); in arcnet_dump_packet() 190 lp->hw.copy_from_card(dev, bufnum, 0, buf, 512); in arcnet_dump_packet() 192 spin_unlock_irqrestore(&lp->lock, flags); in arcnet_dump_packet() 242 struct arcnet_local *lp = netdev_priv(dev); in release_arcbuf() local 245 lp->buf_queue[lp->first_free_buf++] = bufnum; in release_arcbuf() 246 lp->first_free_buf %= 5; in release_arcbuf() 251 for (i = lp->next_buf; i != lp->first_free_buf; i = (i+1) % 5) in release_arcbuf() 252 BUGMSG2(D_DURING, "#%d ", lp->buf_queue[i]); in release_arcbuf() 264 struct arcnet_local *lp = netdev_priv(dev); in get_arcbuf() local [all …]
|
D | com20020.c | 92 struct arcnet_local *lp = netdev_priv(dev); in com20020_check() local 97 lp->setup = lp->clockm ? 0 : (lp->clockp << 1); in com20020_check() 98 lp->setup2 = (lp->clockm << 4) | 8; in com20020_check() 102 lp->setup = lp->setup | P1MODE; in com20020_check() 105 outb(lp->setup, _XREG); in com20020_check() 107 if (lp->clockm != 0) in com20020_check() 110 outb(lp->setup2, _XREG); in com20020_check() 117 lp->config = 0x21 | (lp->timeout << 3) | (lp->backplane << 2); in com20020_check() 155 struct arcnet_local *lp = netdev_priv(dev); in com20020_set_hwaddr() local 179 struct arcnet_local *lp; in com20020_found() local [all …]
|
D | arc-rimi.c | 79 #define SETCONF() writeb(lp->config,_CONFIG) 145 struct arcnet_local *lp; in arcrimi_found() local 197 lp = netdev_priv(dev); in arcrimi_found() 198 lp->card_name = "RIM I"; in arcrimi_found() 199 lp->hw.command = arcrimi_command; in arcrimi_found() 200 lp->hw.status = arcrimi_status; in arcrimi_found() 201 lp->hw.intmask = arcrimi_setmask; in arcrimi_found() 202 lp->hw.reset = arcrimi_reset; in arcrimi_found() 203 lp->hw.owner = THIS_MODULE; in arcrimi_found() 204 lp->hw.copy_to_card = arcrimi_copy_to_card; in arcrimi_found() [all …]
|
D | capmode.c | 44 struct arcnet_local *lp = netdev_priv(dev); in rx() local 82 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 137 struct arcnet_local *lp = netdev_priv(dev); in prepare_tx() local 148 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx() 172 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx() 173 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx() 178 lp->hw.copy_to_card(dev, bufnum, ofs+1, in prepare_tx() 181 lp->lastload_dest = hard->dest; in prepare_tx() 188 struct arcnet_local *lp = netdev_priv(dev); in ack_tx() local 194 lp->outgoing.skb->protocol, acked); in ack_tx() [all …]
|
D | rfc1201.c | 137 struct arcnet_local *lp = netdev_priv(dev); in rx() local 142 struct Incoming *in = &lp->rfc1201.incoming[saddr]; in rx() 163 lp->hw.copy_from_card(dev, bufnum, 512 - length, in rx() 173 lp->rfc1201.aborted_seq = soft->sequence; in rx() 196 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 283 lp->rfc1201.aborted_seq = soft->sequence; in rx() 292 lp->rfc1201.aborted_seq = soft->sequence; in rx() 312 if (lp->rfc1201.aborted_seq != soft->sequence) { in rx() 316 lp->rfc1201.aborted_seq); in rx() 336 lp->rfc1201.aborted_seq = soft->sequence; in rx() [all …]
|
D | com20020-isa.c | 55 struct arcnet_local *lp = netdev_priv(dev); in com20020isa_probe() local 109 lp->card_name = "ISA COM20020"; in com20020isa_probe() 145 struct arcnet_local *lp; in com20020_init() local 156 lp = netdev_priv(dev); in com20020_init() 157 lp->backplane = backplane; in com20020_init() 158 lp->clockp = clockp & 7; in com20020_init() 159 lp->clockm = clockm & 3; in com20020_init() 160 lp->timeout = timeout & 3; in com20020_init() 161 lp->hw.owner = THIS_MODULE; in com20020_init()
|
D | com90xx.c | 461 struct arcnet_local *lp; in com90xx_found() local 473 lp = netdev_priv(dev); in com90xx_found() 513 lp->card_name = "COM90xx"; in com90xx_found() 514 lp->hw.command = com90xx_command; in com90xx_found() 515 lp->hw.status = com90xx_status; in com90xx_found() 516 lp->hw.intmask = com90xx_setmask; in com90xx_found() 517 lp->hw.reset = com90xx_reset; in com90xx_found() 518 lp->hw.owner = THIS_MODULE; in com90xx_found() 519 lp->hw.copy_to_card = com90xx_copy_to_card; in com90xx_found() 520 lp->hw.copy_from_card = com90xx_copy_from_card; in com90xx_found() [all …]
|
D | com20020_cs.c | 119 struct arcnet_local *lp; in com20020_probe() local 132 lp = netdev_priv(dev); in com20020_probe() 133 lp->timeout = timeout; in com20020_probe() 134 lp->backplane = backplane; in com20020_probe() 135 lp->clockp = clockp; in com20020_probe() 136 lp->clockm = clockm & 3; in com20020_probe() 137 lp->hw.owner = THIS_MODULE; in com20020_probe() 197 struct arcnet_local *lp; in com20020_config() local 258 lp = netdev_priv(dev); in com20020_config() 259 lp->card_name = "PCMCIA COM20020"; in com20020_config() [all …]
|
D | com90io.c | 79 #define SETCONF() outb((lp->config),_CONFIG) 236 struct arcnet_local *lp; in com90io_found() local 251 lp = netdev_priv(dev); in com90io_found() 252 lp->card_name = "COM90xx I/O"; in com90io_found() 253 lp->hw.command = com90io_command; in com90io_found() 254 lp->hw.status = com90io_status; in com90io_found() 255 lp->hw.intmask = com90io_setmask; in com90io_found() 256 lp->hw.reset = com90io_reset; in com90io_found() 257 lp->hw.owner = THIS_MODULE; in com90io_found() 258 lp->hw.copy_to_card = com90io_copy_to_card; in com90io_found() [all …]
|
D | arc-rawmode.c | 91 struct arcnet_local *lp = netdev_priv(dev); in rx() local 120 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 170 struct arcnet_local *lp = netdev_priv(dev); in prepare_tx() local 175 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx() 197 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx() 198 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx() 200 lp->lastload_dest = hard->dest; in prepare_tx()
|
D | rfc1051.c | 128 struct arcnet_local *lp = netdev_priv(dev); in rx() local 154 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 221 struct arcnet_local *lp = netdev_priv(dev); in prepare_tx() local 226 lp->next_tx, lp->cur_tx, bufnum); in prepare_tx() 245 lp->hw.copy_to_card(dev, bufnum, 0, hard, ARC_HDR_SIZE); in prepare_tx() 246 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx() 248 lp->lastload_dest = hard->dest; in prepare_tx()
|
D | com20020-pci.c | 71 struct arcnet_local *lp; in com20020pci_probe() local 102 lp = netdev_priv(dev); in com20020pci_probe() 126 lp->card_name = "PCI COM20020"; in com20020pci_probe() 127 lp->card_flags = ci->flags; in com20020pci_probe() 128 lp->backplane = backplane; in com20020pci_probe() 129 lp->clockp = clockp & 7; in com20020pci_probe() 130 lp->clockm = clockm & 3; in com20020pci_probe() 131 lp->timeout = timeout; in com20020pci_probe() 132 lp->hw.owner = THIS_MODULE; in com20020pci_probe()
|
/linux-4.1.27/drivers/net/ethernet/natsemi/ |
D | sonic.c | 47 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 …]
|
D | jazzsonic.c | 123 struct sonic_local *lp = netdev_priv(dev); in sonic_probe1() local 154 dev_name(lp->device), dev->base_addr); in sonic_probe1() 172 lp->dma_bitmode = SONIC_BITMODE32; in sonic_probe1() 176 lp->descriptors = dma_alloc_coherent(lp->device, in sonic_probe1() 178 SONIC_BUS_SCALE(lp->dma_bitmode), in sonic_probe1() 179 &lp->descriptors_laddr, in sonic_probe1() 181 if (lp->descriptors == NULL) in sonic_probe1() 185 lp->cda = lp->descriptors; in sonic_probe1() 186 lp->tda = lp->cda + (SIZEOF_SONIC_CDA in sonic_probe1() 187 * SONIC_BUS_SCALE(lp->dma_bitmode)); in sonic_probe1() [all …]
|
D | xtsonic.c | 135 struct sonic_local *lp = netdev_priv(dev); in sonic_probe1() local 187 lp->dma_bitmode = SONIC_BITMODE32; in sonic_probe1() 199 lp->descriptors = dma_alloc_coherent(lp->device, in sonic_probe1() 201 SONIC_BUS_SCALE(lp->dma_bitmode), in sonic_probe1() 202 &lp->descriptors_laddr, in sonic_probe1() 204 if (lp->descriptors == NULL) { in sonic_probe1() 209 lp->cda = lp->descriptors; in sonic_probe1() 210 lp->tda = lp->cda + (SIZEOF_SONIC_CDA in sonic_probe1() 211 * SONIC_BUS_SCALE(lp->dma_bitmode)); in sonic_probe1() 212 lp->rda = lp->tda + (SIZEOF_SONIC_TD * SONIC_NUM_TDS in sonic_probe1() [all …]
|
D | macsonic.c | 70 + lp->reg_offset)) 72 + lp->reg_offset)) 199 struct sonic_local* lp = netdev_priv(dev); in macsonic_init() local 203 lp->descriptors = dma_alloc_coherent(lp->device, in macsonic_init() 205 SONIC_BUS_SCALE(lp->dma_bitmode), in macsonic_init() 206 &lp->descriptors_laddr, in macsonic_init() 208 if (lp->descriptors == NULL) in macsonic_init() 212 lp->cda = lp->descriptors; in macsonic_init() 213 lp->tda = lp->cda + (SIZEOF_SONIC_CDA in macsonic_init() 214 * SONIC_BUS_SCALE(lp->dma_bitmode)); in macsonic_init() [all …]
|
D | sonic.h | 374 struct sonic_local *lp = netdev_priv(dev); in sonic_cda_put() local 375 sonic_buf_put(lp->cda, lp->dma_bitmode, in sonic_cda_put() 382 struct sonic_local *lp = netdev_priv(dev); in sonic_cda_get() local 383 return sonic_buf_get(lp->cda, lp->dma_bitmode, in sonic_cda_get() 389 struct sonic_local *lp = netdev_priv(dev); in sonic_set_cam_enable() local 390 sonic_buf_put(lp->cda, lp->dma_bitmode, SONIC_CDA_CAM_ENABLE, val); in sonic_set_cam_enable() 395 struct sonic_local *lp = netdev_priv(dev); in sonic_get_cam_enable() local 396 return sonic_buf_get(lp->cda, lp->dma_bitmode, SONIC_CDA_CAM_ENABLE); in sonic_get_cam_enable() 402 struct sonic_local *lp = netdev_priv(dev); in sonic_tda_put() local 403 sonic_buf_put(lp->tda, lp->dma_bitmode, in sonic_tda_put() [all …]
|
/linux-4.1.27/drivers/net/ethernet/toshiba/ |
D | tc35815.c | 335 #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 …]
|
/linux-4.1.27/drivers/video/backlight/ |
D | lp855x_bl.c | 78 static int lp855x_write_byte(struct lp855x *lp, u8 reg, u8 data) in lp855x_write_byte() argument 80 return i2c_smbus_write_byte_data(lp->client, reg, data); in lp855x_write_byte() 83 static int lp855x_update_bit(struct lp855x *lp, u8 reg, u8 mask, u8 data) in lp855x_update_bit() argument 88 ret = i2c_smbus_read_byte_data(lp->client, reg); in lp855x_update_bit() 90 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp855x_update_bit() 98 return lp855x_write_byte(lp, reg, tmp); in lp855x_update_bit() 101 static bool lp855x_is_valid_rom_area(struct lp855x *lp, u8 addr) in lp855x_is_valid_rom_area() argument 105 switch (lp->chip_id) { in lp855x_is_valid_rom_area() 132 static int lp8557_bl_off(struct lp855x *lp) in lp8557_bl_off() argument 135 return lp855x_update_bit(lp, LP8557_BL_CMD, LP8557_BL_MASK, in lp8557_bl_off() [all …]
|
D | lp8788_bl.c | 48 struct lp8788 *lp; member 97 ret = lp8788_write_byte(bl->lp, LP8788_BL_RAMP, val); in lp8788_backlight_configure() 116 dev_err(bl->lp->dev, "invalid mode: %d\n", cfg->bl_mode); in lp8788_backlight_configure() 122 return lp8788_write_byte(bl->lp, LP8788_BL_CONFIG, val); in lp8788_backlight_configure() 137 dev = bl->lp->dev; in lp8788_pwm_ctrl() 173 lp8788_write_byte(bl->lp, LP8788_BL_BRIGHTNESS, brt); in lp8788_bl_update_status() 210 bl_dev = backlight_device_register(name, bl->lp->dev, bl, in lp8788_backlight_register() 258 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_backlight_probe() local 262 bl = devm_kzalloc(lp->dev, sizeof(struct lp8788_bl), GFP_KERNEL); in lp8788_backlight_probe() 266 bl->lp = lp; in lp8788_backlight_probe() [all …]
|
/linux-4.1.27/arch/xtensa/platforms/iss/ |
D | network.c | 88 int (*open)(struct iss_net_private *lp); 89 void (*close)(struct iss_net_private *lp); 90 int (*read)(struct iss_net_private *lp, struct sk_buff **skb); 91 int (*write)(struct iss_net_private *lp, struct sk_buff **skb); 93 int (*poll)(struct iss_net_private *lp); 159 static int tuntap_open(struct iss_net_private *lp) in tuntap_open() argument 162 char *dev_name = lp->tp.info.tuntap.dev_name; in tuntap_open() 169 lp->dev->name, fd, errno); in tuntap_open() 180 lp->dev->name, dev_name, err, errno); in tuntap_open() 185 lp->tp.info.tuntap.fd = fd; in tuntap_open() [all …]
|
/linux-4.1.27/drivers/net/ethernet/cirrus/ |
D | cs89x0.c | 195 static void readwords(struct net_local *lp, int portno, void *buf, int length) in readwords() argument 202 tmp16 = ioread16(lp->virt_addr + portno); in readwords() 208 static void writewords(struct net_local *lp, int portno, void *buf, int length) in writewords() argument 217 iowrite16(tmp16, lp->virt_addr + portno); in writewords() 224 struct net_local *lp = netdev_priv(dev); in readreg() local 226 iowrite16(regno, lp->virt_addr + ADD_PORT); in readreg() 227 return ioread16(lp->virt_addr + DATA_PORT); in readreg() 233 struct net_local *lp = netdev_priv(dev); in writereg() local 235 iowrite16(regno, lp->virt_addr + ADD_PORT); in writereg() 236 iowrite16(value, lp->virt_addr + DATA_PORT); in writereg() [all …]
|
D | mac89x0.c | 184 struct net_local *lp; in mac89x0_probe() local 233 lp = netdev_priv(dev); in mac89x0_probe() 246 lp->chip_type = rev_type &~ REVISON_BITS; in mac89x0_probe() 247 lp->chip_revision = ((rev_type & REVISON_BITS) >> 8) + 'A'; in mac89x0_probe() 251 lp->send_cmd = TX_AFTER_381; in mac89x0_probe() 252 if (lp->chip_type == CS8900 && lp->chip_revision >= 'F') in mac89x0_probe() 253 lp->send_cmd = TX_NOW; in mac89x0_probe() 254 if (lp->chip_type != CS8900 && lp->chip_revision >= 'C') in mac89x0_probe() 255 lp->send_cmd = TX_NOW; in mac89x0_probe() 262 lp->chip_type==CS8900?'0':'2', in mac89x0_probe() [all …]
|
/linux-4.1.27/drivers/input/misc/ |
D | pcf8574_keypad.c | 47 static short read_state(struct kp_data *lp) in read_state() argument 51 i2c_smbus_write_byte(lp->client, 240); in read_state() 52 x = 0xF & (~(i2c_smbus_read_byte(lp->client) >> 4)); in read_state() 54 i2c_smbus_write_byte(lp->client, 15); in read_state() 55 y = 0xF & (~i2c_smbus_read_byte(lp->client)); in read_state() 67 struct kp_data *lp = dev_id; in pcf8574_kp_irq_handler() local 68 unsigned char nextstate = read_state(lp); in pcf8574_kp_irq_handler() 70 if (lp->laststate != nextstate) { in pcf8574_kp_irq_handler() 71 int key_down = nextstate < ARRAY_SIZE(lp->btncode); in pcf8574_kp_irq_handler() 73 lp->btncode[nextstate] : lp->btncode[lp->laststate]; in pcf8574_kp_irq_handler() [all …]
|
/linux-4.1.27/drivers/net/ethernet/i825xx/ |
D | 82596.c | 413 static inline int wait_istat(struct net_device *dev, struct i596_private *lp, int delcnt, char *str) in wait_istat() argument 415 while (--delcnt && lp->iscp.stat) in wait_istat() 419 dev->name, str, lp->scb.status, lp->scb.command); in wait_istat() 427 static inline int wait_cmd(struct net_device *dev, struct i596_private *lp, int delcnt, char *str) in wait_cmd() argument 429 while (--delcnt && lp->scb.command) in wait_cmd() 433 dev->name, str, lp->scb.status, lp->scb.command); in wait_cmd() 458 struct i596_private *lp = dev->ml_priv; in i596_display_data() local 464 &lp->scp, lp->scp.sysbus, lp->scp.iscp); in i596_display_data() 466 &lp->iscp, lp->iscp.stat, lp->iscp.scb); in i596_display_data() 469 &lp->scb, lp->scb.status, lp->scb.command, in i596_display_data() [all …]
|
D | lib82596.c | 405 struct i596_private *lp = netdev_priv(dev); in i596_display_data() local 406 struct i596_dma *dma = lp->dma; in i596_display_data() 424 cmd = lp->cmd_head; in i596_display_data() 433 rfd = lp->rfd_head; in i596_display_data() 443 } while (rfd != lp->rfd_head); in i596_display_data() 444 rbd = lp->rbd_head; in i596_display_data() 453 } while (rbd != lp->rbd_head); in i596_display_data() 458 #define virt_to_dma(lp, v) ((lp)->dma_addr + (dma_addr_t)((unsigned long)(v)-(unsigned long)((lp)->… argument 462 struct i596_private *lp = netdev_priv(dev); in init_rx_bufs() local 463 struct i596_dma *dma = lp->dma; in init_rx_bufs() [all …]
|
D | sni_82596.c | 51 struct i596_private *lp = netdev_priv(dev); in ca() local 53 writel(0, lp->ca); in ca() 59 struct i596_private *lp = netdev_priv(dev); in mpu_port() local 63 if (lp->options & OPT_MPU_16BIT) { in mpu_port() 64 writew(v & 0xffff, lp->mpu_port); in mpu_port() 67 writew(v >> 16, lp->mpu_port); in mpu_port() 69 writel(v, lp->mpu_port); in mpu_port() 72 writel(v, lp->mpu_port); in mpu_port() 80 struct i596_private *lp; in sni_82596_probe() local 131 lp = netdev_priv(netdevice); in sni_82596_probe() [all …]
|
D | lasi_82596.c | 132 struct i596_private *lp = netdev_priv(dev); in mpu_port() local 137 if (lp->options & OPT_SWAP_PORT) { in mpu_port() 156 struct i596_private *lp; in lan_init_chip() local 186 lp = netdev_priv(netdevice); in lan_init_chip() 187 lp->options = dev->id.sversion == 0x72 ? OPT_SWAP_PORT : 0; in lan_init_chip() 200 struct i596_private *lp = netdev_priv(dev); in lan_remove_chip() local 204 (void *)lp->dma, lp->dma_addr); in lan_remove_chip()
|
/linux-4.1.27/drivers/net/ethernet/rdc/ |
D | r6040.c | 257 struct r6040_private *lp = netdev_priv(dev); in r6040_mdiobus_read() local 258 void __iomem *ioaddr = lp->base; in r6040_mdiobus_read() 267 struct r6040_private *lp = netdev_priv(dev); in r6040_mdiobus_write() local 268 void __iomem *ioaddr = lp->base; in r6040_mdiobus_write() 275 struct r6040_private *lp = netdev_priv(dev); in r6040_free_txbufs() local 279 if (lp->tx_insert_ptr->skb_ptr) { in r6040_free_txbufs() 280 pci_unmap_single(lp->pdev, in r6040_free_txbufs() 281 le32_to_cpu(lp->tx_insert_ptr->buf), in r6040_free_txbufs() 283 dev_kfree_skb(lp->tx_insert_ptr->skb_ptr); in r6040_free_txbufs() 284 lp->tx_insert_ptr->skb_ptr = NULL; in r6040_free_txbufs() [all …]
|
/linux-4.1.27/drivers/net/ethernet/hp/ |
D | hp100.c | 250 static void hp100_clear_stats(struct hp100_private *lp, int ioaddr); 285 struct hp100_private *lp = netdev_priv(dev); in virt_to_whatever() local 286 return ((u_long) ptr) + lp->whatever_offset; in virt_to_whatever() 289 static inline u_int pdl_map_data(struct hp100_private *lp, void *data) in pdl_map_data() argument 291 return pci_map_single(lp->pci_dev, data, in pdl_map_data() 463 struct hp100_private *lp; in hp100_probe1() local 661 lp = netdev_priv(dev); in hp100_probe1() 663 spin_lock_init(&lp->lock); in hp100_probe1() 664 strlcpy(lp->id, eid, HP100_SIG_LEN); in hp100_probe1() 665 lp->chip = chip; in hp100_probe1() [all …]
|
/linux-4.1.27/drivers/isdn/hysdn/ |
D | hysdn_net.c | 122 struct net_local *lp = (struct net_local *) dev; in net_send_packet() local 124 spin_lock_irq(&lp->lock); in net_send_packet() 126 lp->skbs[lp->in_idx++] = skb; /* add to buffer list */ in net_send_packet() 127 if (lp->in_idx >= MAX_SKB_BUFFERS) in net_send_packet() 128 lp->in_idx = 0; /* wrap around */ in net_send_packet() 129 lp->sk_count++; /* adjust counter */ in net_send_packet() 136 if (lp->sk_count >= MAX_SKB_BUFFERS) in net_send_packet() 143 spin_unlock_irq(&lp->lock); in net_send_packet() 145 if (lp->sk_count <= 3) { in net_send_packet() 160 struct net_local *lp = card->netif; in hysdn_tx_netack() local [all …]
|
/linux-4.1.27/arch/um/drivers/ |
D | net_kern.c | 75 struct uml_net_private *lp = netdev_priv(dev); in uml_net_rx() local 80 skb = dev_alloc_skb(lp->max_packet); in uml_net_rx() 84 (*lp->read)(lp->fd, drop_skb, lp); in uml_net_rx() 90 skb_put(skb, lp->max_packet); in uml_net_rx() 92 pkt_len = (*lp->read)(lp->fd, skb, lp); in uml_net_rx() 96 skb->protocol = (*lp->protocol)(skb); in uml_net_rx() 110 struct uml_net_private *lp = in uml_dev_close() local 112 dev_close(lp->dev); in uml_dev_close() 118 struct uml_net_private *lp = netdev_priv(dev); in uml_net_interrupt() local 124 spin_lock(&lp->lock); in uml_net_interrupt() [all …]
|
D | slip_kern.c | 47 static int slip_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in slip_read() argument 50 (struct slip_data *) &lp->user); in slip_read() 53 static int slip_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in slip_write() argument 56 (struct slip_data *) &lp->user); in slip_write()
|
D | slirp_kern.c | 52 static int slirp_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in slirp_read() argument 55 (struct slirp_data *) &lp->user); in slirp_read() 58 static int slirp_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in slirp_write() argument 61 (struct slirp_data *) &lp->user); in slirp_write()
|
D | vde_kern.c | 39 static int vde_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in vde_read() argument 41 struct vde_data *pri = (struct vde_data *) &lp->user; in vde_read() 51 static int vde_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in vde_write() argument 53 struct vde_data *pri = (struct vde_data *) &lp->user; in vde_write()
|
D | daemon_kern.c | 42 static int daemon_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in daemon_read() argument 48 static int daemon_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in daemon_write() argument 51 (struct daemon_data *) &lp->user); in daemon_write()
|
D | pcap_kern.c | 34 static int pcap_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in pcap_read() argument 38 (struct pcap_data *) &lp->user); in pcap_read() 41 static int pcap_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in pcap_write() argument
|
D | umcast_kern.c | 51 static int umcast_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in umcast_read() argument 57 static int umcast_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in umcast_write() argument 60 (struct umcast_data *) &lp->user); in umcast_write()
|
/linux-4.1.27/drivers/net/ethernet/adi/ |
D | bfin_mac.c | 312 struct bfin_mac_local *lp = netdev_priv(dev); in bfin_mac_adjust_link() local 313 struct phy_device *phydev = lp->phydev; in bfin_mac_adjust_link() 317 spin_lock_irqsave(&lp->lock, flags); in bfin_mac_adjust_link() 321 if (phydev->duplex != lp->old_duplex) { in bfin_mac_adjust_link() 331 lp->old_duplex = phydev->duplex; in bfin_mac_adjust_link() 334 if (phydev->speed != lp->old_speed) { in bfin_mac_adjust_link() 354 lp->old_speed = phydev->speed; in bfin_mac_adjust_link() 357 if (!lp->old_link) { in bfin_mac_adjust_link() 359 lp->old_link = 1; in bfin_mac_adjust_link() 361 } else if (lp->old_link) { in bfin_mac_adjust_link() [all …]
|
/linux-4.1.27/drivers/mfd/ |
D | lp8788.c | 126 int lp8788_read_byte(struct lp8788 *lp, u8 reg, u8 *data) in lp8788_read_byte() argument 131 ret = regmap_read(lp->regmap, reg, &val); in lp8788_read_byte() 133 dev_err(lp->dev, "failed to read 0x%.2x\n", reg); in lp8788_read_byte() 142 int lp8788_read_multi_bytes(struct lp8788 *lp, u8 reg, u8 *data, size_t count) in lp8788_read_multi_bytes() argument 144 return regmap_bulk_read(lp->regmap, reg, data, count); in lp8788_read_multi_bytes() 148 int lp8788_write_byte(struct lp8788 *lp, u8 reg, u8 data) in lp8788_write_byte() argument 150 return regmap_write(lp->regmap, reg, data); in lp8788_write_byte() 154 int lp8788_update_bits(struct lp8788 *lp, u8 reg, u8 mask, u8 data) in lp8788_update_bits() argument 156 return regmap_update_bits(lp->regmap, reg, mask, data); in lp8788_update_bits() 160 static int lp8788_platform_init(struct lp8788 *lp) in lp8788_platform_init() argument [all …]
|
D | lp8788-irq.c | 40 struct lp8788 *lp; member 97 lp8788_update_bits(irqd->lp, addr, mask, val); in lp8788_irq_bus_sync_unlock() 113 struct lp8788 *lp = irqd->lp; in lp8788_irq_handler() local 118 if (lp8788_read_multi_bytes(lp, LP8788_INT_1, status, NUM_REGS)) in lp8788_irq_handler() 158 int lp8788_irq_init(struct lp8788 *lp, int irq) in lp8788_irq_init() argument 164 dev_warn(lp->dev, "invalid irq number: %d\n", irq); in lp8788_irq_init() 168 irqd = devm_kzalloc(lp->dev, sizeof(*irqd), GFP_KERNEL); in lp8788_irq_init() 172 irqd->lp = lp; in lp8788_irq_init() 173 irqd->domain = irq_domain_add_linear(lp->dev->of_node, LP8788_INT_MAX, in lp8788_irq_init() 176 dev_err(lp->dev, "failed to add irq domain err\n"); in lp8788_irq_init() [all …]
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | ldc.h | 60 void ldc_free(struct ldc_channel *lp); 63 int ldc_bind(struct ldc_channel *lp); 64 void ldc_unbind(struct ldc_channel *lp); 71 int ldc_connect(struct ldc_channel *lp); 72 int ldc_disconnect(struct ldc_channel *lp); 74 int ldc_state(struct ldc_channel *lp); 77 int ldc_write(struct ldc_channel *lp, const void *buf, 79 int ldc_read(struct ldc_channel *lp, void *buf, unsigned int size); 97 int ldc_map_sg(struct ldc_channel *lp, 102 int ldc_map_single(struct ldc_channel *lp, [all …]
|
D | spinlock_32.h | 82 register arch_rwlock_t *lp asm("g1"); in __arch_read_lock() 83 lp = rw; in __arch_read_lock() 89 : "r" (lp) in __arch_read_lock() 102 register arch_rwlock_t *lp asm("g1"); in __arch_read_unlock() 103 lp = rw; in __arch_read_unlock() 109 : "r" (lp) in __arch_read_unlock() 122 register arch_rwlock_t *lp asm("g1"); in arch_write_lock() 123 lp = rw; in arch_write_lock() 129 : "r" (lp) in arch_write_lock() 131 *(volatile __u32 *)&lp->lock = ~0U; in arch_write_lock() [all …]
|
D | spinlock_64.h | 24 #define arch_spin_is_locked(lp) ((lp)->lock != 0) argument 26 #define arch_spin_unlock_wait(lp) \ argument 28 } while((lp)->lock)
|
/linux-4.1.27/arch/s390/include/asm/ |
D | spinlock.h | 54 static inline int arch_spin_is_locked(arch_spinlock_t *lp) in arch_spin_is_locked() argument 56 return ACCESS_ONCE(lp->lock) != 0; in arch_spin_is_locked() 59 static inline int arch_spin_trylock_once(arch_spinlock_t *lp) in arch_spin_trylock_once() argument 62 return likely(arch_spin_value_unlocked(*lp) && in arch_spin_trylock_once() 63 _raw_compare_and_swap(&lp->lock, 0, SPINLOCK_LOCKVAL)); in arch_spin_trylock_once() 66 static inline void arch_spin_lock(arch_spinlock_t *lp) in arch_spin_lock() argument 68 if (!arch_spin_trylock_once(lp)) in arch_spin_lock() 69 arch_spin_lock_wait(lp); in arch_spin_lock() 72 static inline void arch_spin_lock_flags(arch_spinlock_t *lp, in arch_spin_lock_flags() argument 75 if (!arch_spin_trylock_once(lp)) in arch_spin_lock_flags() [all …]
|
/linux-4.1.27/drivers/regulator/ |
D | lp872x.c | 160 static int lp872x_read_byte(struct lp872x *lp, u8 addr, u8 *data) in lp872x_read_byte() argument 165 ret = regmap_read(lp->regmap, addr, &val); in lp872x_read_byte() 167 dev_err(lp->dev, "failed to read 0x%.2x\n", addr); in lp872x_read_byte() 175 static inline int lp872x_write_byte(struct lp872x *lp, u8 addr, u8 data) in lp872x_write_byte() argument 177 return regmap_write(lp->regmap, addr, data); in lp872x_write_byte() 180 static inline int lp872x_update_bits(struct lp872x *lp, u8 addr, in lp872x_update_bits() argument 183 return regmap_update_bits(lp->regmap, addr, mask, data); in lp872x_update_bits() 186 static int lp872x_get_timestep_usec(struct lp872x *lp) in lp872x_get_timestep_usec() argument 188 enum lp872x_id chip = lp->chipid; in lp872x_get_timestep_usec() 211 ret = lp872x_read_byte(lp, LP872X_GENERAL_CFG, &val); in lp872x_get_timestep_usec() [all …]
|
D | lp8788-buck.c | 93 struct lp8788 *lp; member 185 lp8788_read_byte(buck->lp, LP8788_BUCK_DVS_SEL, &val); in lp8788_get_buck_dvs_ctrl_mode() 225 lp8788_read_byte(buck->lp, LP8788_BUCK_DVS_SEL, &val); in lp8788_select_buck_vout_addr() 248 lp8788_read_byte(buck->lp, LP8788_BUCK_DVS_SEL, &val); in lp8788_select_buck_vout_addr() 276 return lp8788_update_bits(buck->lp, addr, LP8788_VOUT_M, selector); in lp8788_buck12_set_voltage_sel() 290 ret = lp8788_read_byte(buck->lp, addr, &val); in lp8788_buck12_get_voltage_sel() 303 if (lp8788_read_byte(buck->lp, addr, &val)) in lp8788_buck_enable_time() 329 return lp8788_update_bits(buck->lp, LP8788_BUCK_PWM, mask, val); in lp8788_buck_set_mode() 339 ret = lp8788_read_byte(buck->lp, LP8788_BUCK_PWM, &val); in lp8788_buck_get_mode() 428 struct lp8788_platform_data *pdata = buck->lp->pdata; in lp8788_dvs_gpio_request() [all …]
|
D | lp8788-ldo.c | 117 struct lp8788 *lp; member 165 if (lp8788_read_byte(ldo->lp, addr, &val)) in lp8788_ldo_enable_time() 471 struct lp8788 *lp = ldo->lp; in lp8788_config_ldo_enable_mode() local 472 struct lp8788_platform_data *pdata = lp->pdata; in lp8788_config_ldo_enable_mode() 515 return lp8788_update_bits(lp, LP8788_EN_SEL, en_mask[enable_id], 0); in lp8788_config_ldo_enable_mode() 520 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_dldo_probe() local 531 ldo->lp = lp; in lp8788_dldo_probe() 542 cfg.init_data = lp->pdata ? lp->pdata->dldo_data[id] : NULL; in lp8788_dldo_probe() 544 cfg.regmap = lp->regmap; in lp8788_dldo_probe() 569 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_aldo_probe() local [all …]
|
/linux-4.1.27/drivers/char/ |
D | nwbutton.c | 58 int lp = 0; in button_add_callback() local 66 for (; (button_callback_list [lp].callback); lp++); in button_add_callback() 67 button_callback_list [lp].callback = callback; in button_add_callback() 68 button_callback_list [lp].count = count; in button_add_callback() 86 int lp = 31; in button_del_callback() local 90 while (lp >= 0) { in button_del_callback() 91 if ((button_callback_list [lp].callback) == callback) { in button_del_callback() 92 button_callback_list [lp].callback = NULL; in button_del_callback() 93 button_callback_list [lp].count = 0; in button_del_callback() 97 lp--; in button_del_callback() [all …]
|
D | Makefile | 20 obj-$(CONFIG_PRINTER) += lp.o
|
/linux-4.1.27/drivers/net/appletalk/ |
D | cops.c | 276 struct cops_local *lp; in cops_probe1() local 336 lp = netdev_priv(dev); in cops_probe1() 337 spin_lock_init(&lp->lock); in cops_probe1() 340 lp->board = board; in cops_probe1() 417 struct cops_local *lp = netdev_priv(dev); in cops_open() local 425 if(lp->board==TANGENT) /* Poll 20 times per second */ in cops_open() 451 struct cops_local *lp = netdev_priv(dev); in cops_jumpstart() local 466 if(lp->nodeid == 1) in cops_jumpstart() 467 cops_nodeid(dev,lp->node_acquire); in cops_jumpstart() 485 struct cops_local *lp = netdev_priv(dev); in cops_reset() local [all …]
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-lp8788.c | 60 struct lp8788 *lp; member 107 static void lp8788_rtc_unlock(struct lp8788 *lp) in lp8788_rtc_unlock() argument 109 lp8788_write_byte(lp, LP8788_RTC_UNLOCK, RTC_UNLOCK); in lp8788_rtc_unlock() 110 lp8788_write_byte(lp, LP8788_RTC_UNLOCK, RTC_LATCH); in lp8788_rtc_unlock() 116 struct lp8788 *lp = rtc->lp; in lp8788_rtc_read_time() local 120 lp8788_rtc_unlock(lp); in lp8788_rtc_read_time() 122 ret = lp8788_read_multi_bytes(lp, LP8788_RTC_SEC, data, LPTIME_MAX); in lp8788_rtc_read_time() 140 struct lp8788 *lp = rtc->lp; in lp8788_rtc_set_time() local 146 dev_err(lp->dev, "invalid year: %d\n", year); in lp8788_rtc_set_time() 159 ret = lp8788_write_byte(lp, LP8788_RTC_SEC + i, data[i]); in lp8788_rtc_set_time() [all …]
|
/linux-4.1.27/fs/ubifs/ |
D | find.c | 237 const struct ubifs_lprops *lp = NULL, *idx_lp = NULL; in ubifs_find_dirty_leb() local 264 lp = ubifs_fast_find_empty(c); in ubifs_find_dirty_leb() 265 if (lp) in ubifs_find_dirty_leb() 269 lp = ubifs_fast_find_freeable(c); in ubifs_find_dirty_leb() 270 if (lp) in ubifs_find_dirty_leb() 305 lp = heap->arr[0]; in ubifs_find_dirty_leb() 306 if (lp->dirty + lp->free < min_space) in ubifs_find_dirty_leb() 307 lp = NULL; in ubifs_find_dirty_leb() 311 if (idx_lp && lp) { in ubifs_find_dirty_leb() 312 if (idx_lp->free + idx_lp->dirty >= lp->free + lp->dirty) in ubifs_find_dirty_leb() [all …]
|
D | gc.c | 469 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp) in ubifs_garbage_collect_leb() argument 474 int err = 0, lnum = lp->lnum; in ubifs_garbage_collect_leb() 481 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb() 483 dbg_gc("LEB %d is free, return it", lp->lnum); in ubifs_garbage_collect_leb() 484 ubifs_assert(!(lp->flags & LPROPS_INDEX)); in ubifs_garbage_collect_leb() 486 if (lp->free != c->leb_size) { in ubifs_garbage_collect_leb() 495 err = ubifs_change_one_lp(c, lp->lnum, c->leb_size, in ubifs_garbage_collect_leb() 500 err = ubifs_leb_unmap(c, lp->lnum); in ubifs_garbage_collect_leb() 527 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() 563 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() [all …]
|
D | lprops.c | 197 struct ubifs_lprops *lp; in add_to_lpt_heap() local 199 lp = heap->arr[cpos]; in add_to_lpt_heap() 200 lp->flags &= ~LPROPS_CAT_MASK; in add_to_lpt_heap() 201 lp->flags |= LPROPS_UNCAT; in add_to_lpt_heap() 202 list_add(&lp->list, &c->uncat_list); in add_to_lpt_heap() 535 const struct ubifs_lprops *lp, in ubifs_change_lp() argument 543 struct ubifs_lprops *lprops = (struct ubifs_lprops *)lp; in ubifs_change_lp() 667 const struct ubifs_lprops *lp; in ubifs_change_one_lp() local 671 lp = ubifs_lpt_lookup_dirty(c, lnum); in ubifs_change_one_lp() 672 if (IS_ERR(lp)) { in ubifs_change_one_lp() [all …]
|
D | replay.c | 99 const struct ubifs_lprops *lp; in set_bud_lprops() local 104 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops() 105 if (IS_ERR(lp)) { in set_bud_lprops() 106 err = PTR_ERR(lp); in set_bud_lprops() 110 dirty = lp->dirty; in set_bud_lprops() 111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops() 132 lp->free, lp->dirty); in set_bud_lprops() 134 lp->free, lp->dirty); in set_bud_lprops() 135 dirty -= c->leb_size - lp->free; in set_bud_lprops() 145 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops() [all …]
|
D | debug.c | 645 void ubifs_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp) in ubifs_dump_lprop() argument 651 spc = lp->free + lp->dirty; in ubifs_dump_lprop() 657 if (lp->flags & LPROPS_INDEX) in ubifs_dump_lprop() 659 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc, in ubifs_dump_lprop() 660 lp->flags); in ubifs_dump_lprop() 663 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc, in ubifs_dump_lprop() 664 dark, dead, (int)(spc / UBIFS_MAX_NODE_SZ), lp->flags); in ubifs_dump_lprop() 666 if (lp->flags & LPROPS_TAKEN) { in ubifs_dump_lprop() 667 if (lp->flags & LPROPS_INDEX) in ubifs_dump_lprop() 674 if (lp->flags & LPROPS_INDEX) { in ubifs_dump_lprop() [all …]
|
D | recovery.c | 1173 struct ubifs_lprops lp; in ubifs_rcvry_gc_commit() local 1182 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); in ubifs_rcvry_gc_commit() 1191 ubifs_assert(!(lp.flags & LPROPS_INDEX)); in ubifs_rcvry_gc_commit() 1192 ubifs_assert(lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit() 1203 dbg_rcvry("GC'ing LEB %d", lp.lnum); in ubifs_rcvry_gc_commit() 1205 err = ubifs_garbage_collect_leb(c, &lp); in ubifs_rcvry_gc_commit() 1228 dbg_rcvry("allocated LEB %d for GC", lp.lnum); in ubifs_rcvry_gc_commit()
|
/linux-4.1.27/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 264 struct el3_private *lp; in tc574_probe() local 273 lp = netdev_priv(dev); in tc574_probe() 275 lp->p_dev = link; in tc574_probe() 277 spin_lock_init(&lp->window_lock); in tc574_probe() 307 struct el3_private *lp = netdev_priv(dev); in tc574_config() local 377 lp->default_media = (config & Xcvr) >> Xcvr_shift; in tc574_config() 378 lp->autoselect = config & Autoselect ? 1 : 0; in tc574_config() 381 init_timer(&lp->media); in tc574_config() 401 lp->phys = phy & 0x1f; in tc574_config() 414 i = mdio_read(ioaddr, lp->phys, 16) | 0x40; in tc574_config() [all …]
|
D | 3c589_cs.c | 198 struct el3_private *lp; in tc589_probe() local 207 lp = netdev_priv(dev); in tc589_probe() 209 lp->p_dev = link; in tc589_probe() 211 spin_lock_init(&lp->lock); in tc589_probe() 399 struct el3_private *lp = netdev_priv(dev); in tc589_set_xcvr() local 422 lp->media_status = ((dev->if_port == 0) ? 0x8000 : 0x4000); in tc589_set_xcvr() 424 lp->media_status = ((dev->if_port == 0) ? 0x4010 : 0x8800); in tc589_set_xcvr() 511 struct el3_private *lp = netdev_priv(dev); in el3_open() local 512 struct pcmcia_device *link = lp->p_dev; in el3_open() 521 setup_timer(&lp->media, media_check, (unsigned long)dev); in el3_open() [all …]
|
D | 3c509.c | 253 struct el3_private *lp = netdev_priv(el3_devs[i]); in el3_isa_id_sequence() local 254 if (lp->type == EL3_PNP && in el3_isa_id_sequence() 275 struct el3_private *lp = netdev_priv(dev); in el3_dev_fill() local 281 lp->type = type; in el3_dev_fill() 521 struct el3_private *lp = netdev_priv(dev); in el3_common_init() local 525 spin_lock_init(&lp->lock); in el3_common_init() 713 struct el3_private *lp = netdev_priv(dev); in el3_start_xmit() local 736 spin_lock_irqsave(&lp->lock, flags); in el3_start_xmit() 750 spin_unlock_irqrestore(&lp->lock, flags); in el3_start_xmit() 774 struct el3_private *lp; in el3_interrupt() local [all …]
|
D | 3c515.c | 1130 struct corkscrew_private *lp = netdev_priv(dev); in corkscrew_interrupt() local 1138 spin_lock(&lp->lock); in corkscrew_interrupt() 1173 unsigned int dirty_tx = lp->dirty_tx; in corkscrew_interrupt() 1175 while (lp->cur_tx - dirty_tx > 0) { in corkscrew_interrupt() 1177 if (inl(ioaddr + DownListPtr) == isa_virt_to_bus(&lp->tx_ring[entry])) in corkscrew_interrupt() 1179 if (lp->tx_skbuff[entry]) { in corkscrew_interrupt() 1180 dev_kfree_skb_irq(lp->tx_skbuff[entry]); in corkscrew_interrupt() 1181 lp->tx_skbuff[entry] = NULL; in corkscrew_interrupt() 1185 lp->dirty_tx = dirty_tx; in corkscrew_interrupt() 1187 if (lp->tx_full && (lp->cur_tx - dirty_tx <= TX_RING_SIZE - 1)) { in corkscrew_interrupt() [all …]
|
/linux-4.1.27/drivers/net/ethernet/realtek/ |
D | atp.c | 256 struct net_local *lp; in atp_probe1() local 340 lp = netdev_priv(dev); in atp_probe1() 341 lp->addr_mode = CMR2h_Normal; in atp_probe1() 342 spin_lock_init(&lp->lock); in atp_probe1() 361 lp->next_module = root_atp_dev; in atp_probe1() 430 struct net_local *lp = netdev_priv(dev); in net_open() local 442 init_timer(&lp->timer); in net_open() 443 lp->timer.expires = jiffies + TIMED_CHECKER; in net_open() 444 lp->timer.data = (unsigned long)dev; in net_open() 445 lp->timer.function = atp_timed_checker; /* timer handler */ in net_open() [all …]
|
/linux-4.1.27/drivers/net/ethernet/fujitsu/ |
D | fmvj18x_cs.c | 235 struct local_info *lp; in fmvj18x_probe() local 244 lp = netdev_priv(dev); in fmvj18x_probe() 246 lp->p_dev = link; in fmvj18x_probe() 247 lp->base = NULL; in fmvj18x_probe() 330 struct local_info *lp = netdev_priv(dev); in fmvj18x_config() local 517 lp->cardtype = cardtype; in fmvj18x_config() 587 struct local_info *lp = netdev_priv(dev); in fmvj18x_setup_mfc() local 596 lp->base = ioremap(link->resource[3]->start, in fmvj18x_setup_mfc() 598 if (lp->base == NULL) { in fmvj18x_setup_mfc() 605 iounmap(lp->base); in fmvj18x_setup_mfc() [all …]
|
/linux-4.1.27/drivers/char/agp/ |
D | i460-agp.c | 366 static int i460_alloc_large_page (struct lp_desc *lp) in i460_alloc_large_page() argument 371 lp->page = alloc_pages(GFP_KERNEL, order); in i460_alloc_large_page() 372 if (!lp->page) { in i460_alloc_large_page() 378 lp->alloced_map = kzalloc(map_size, GFP_KERNEL); in i460_alloc_large_page() 379 if (!lp->alloced_map) { in i460_alloc_large_page() 380 __free_pages(lp->page, order); in i460_alloc_large_page() 385 lp->paddr = page_to_phys(lp->page); in i460_alloc_large_page() 386 lp->refcount = 0; in i460_alloc_large_page() 391 static void i460_free_large_page (struct lp_desc *lp) in i460_free_large_page() argument 393 kfree(lp->alloced_map); in i460_free_large_page() [all …]
|
/linux-4.1.27/drivers/net/ |
D | sb1000.c | 751 struct sb1000_private *lp = netdev_priv(dev); in sb1000_rx() local 770 lp->rx_frames++; in sb1000_rx() 774 session_id = lp->rx_session_id[ns]; in sb1000_rx() 775 frame_id = lp->rx_frame_id[ns]; in sb1000_rx() 796 skb = lp->rx_skb[ns]; in sb1000_rx() 807 lp->rx_frame_id[ns] = 0x30 | ((st[1] + 1) & 0x0f); in sb1000_rx() 834 lp->rx_dlen[ns] = dlen; in sb1000_rx() 850 lp->rx_skb[ns] = skb; in sb1000_rx() 863 skb = lp->rx_skb[ns]; in sb1000_rx() 866 dlen = lp->rx_dlen[ns]; in sb1000_rx() [all …]
|
/linux-4.1.27/arch/s390/lib/ |
D | spinlock.c | 40 void arch_spin_lock_wait(arch_spinlock_t *lp) in arch_spin_lock_wait() argument 47 owner = ACCESS_ONCE(lp->lock); in arch_spin_lock_wait() 50 if (_raw_compare_and_swap(&lp->lock, 0, cpu)) in arch_spin_lock_wait() 63 _raw_compare_and_delay(&lp->lock, owner); in arch_spin_lock_wait() 64 owner = ACCESS_ONCE(lp->lock); in arch_spin_lock_wait() 78 void arch_spin_lock_wait_flags(arch_spinlock_t *lp, unsigned long flags) in arch_spin_lock_wait_flags() argument 86 owner = ACCESS_ONCE(lp->lock); in arch_spin_lock_wait_flags() 90 if (_raw_compare_and_swap(&lp->lock, 0, cpu)) in arch_spin_lock_wait_flags() 103 _raw_compare_and_delay(&lp->lock, owner); in arch_spin_lock_wait_flags() 104 owner = ACCESS_ONCE(lp->lock); in arch_spin_lock_wait_flags() [all …]
|
/linux-4.1.27/drivers/scsi/fnic/ |
D | fnic_main.c | 173 struct fc_lport *lp = shost_priv(shost); in fnic_get_host_speed() local 174 struct fnic *fnic = lport_priv(lp); in fnic_get_host_speed() 191 struct fc_lport *lp = shost_priv(host); in fnic_get_stats() local 192 struct fnic *fnic = lport_priv(lp); in fnic_get_stats() 193 struct fc_host_statistics *stats = &lp->host_stats; in fnic_get_stats() 304 struct fc_lport *lp = shost_priv(host); in fnic_reset_host_stats() local 305 struct fnic *fnic = lport_priv(lp); in fnic_reset_host_stats() 545 struct fc_lport *lp; in fnic_probe() local 556 lp = libfc_host_alloc(&fnic_host_template, sizeof(struct fnic)); in fnic_probe() 557 if (!lp) { in fnic_probe() [all …]
|
D | fnic_attrs.c | 26 struct fc_lport *lp = shost_priv(class_to_shost(dev)); in fnic_show_state() local 27 struct fnic *fnic = lport_priv(lp); in fnic_show_state() 41 struct fc_lport *lp = shost_priv(class_to_shost(dev)); in fnic_show_link_state() local 43 return snprintf(buf, PAGE_SIZE, "%s\n", (lp->link_up) in fnic_show_link_state()
|
D | fnic_scsi.c | 263 struct fc_lport *lp = fnic->lport; in fnic_flogi_reg_handler() local 290 lp->r_a_tov, lp->e_d_tov); in fnic_flogi_reg_handler() 415 struct fc_lport *lp = shost_priv(sc->device->host); in fnic_queuecommand_lck() local 418 struct fnic *fnic = lport_priv(lp); in fnic_queuecommand_lck() 442 rdata = lp->tt.rport_lookup(lp, rport->port_id); in fnic_queuecommand_lck() 452 if (lp->state != LPORT_ST_READY || !(lp->link_up)) in fnic_queuecommand_lck() 462 spin_unlock(lp->host->host_lock); in fnic_queuecommand_lck() 551 spin_lock(lp->host->host_lock); in fnic_queuecommand_lck() 581 spin_lock(lp->host->host_lock); in fnic_queuecommand_lck() 1745 struct fc_lport *lp; in fnic_abort_cmd() local [all …]
|
D | fnic_fcs.c | 154 struct fc_lport *lp = fnic->lport; in fnic_handle_frame() local 181 fc_exch_recv(lp, fp); in fnic_handle_frame() 267 struct fc_lport *lport = fip->lp; in is_fnic_fip_flogi_reject() 371 put_unaligned_be64(fip->lp->wwnn, &vlan->desc.wwnn.fd_wwn); in fnic_fcoe_send_vlan_req() 1104 int fnic_send(struct fc_lport *lp, struct fc_frame *fp) in fnic_send() argument 1106 struct fnic *fnic = lport_priv(lp); in fnic_send()
|
/linux-4.1.27/drivers/leds/ |
D | leds-lp8788.c | 27 struct lp8788 *lp; member 67 ret = lp8788_update_bits(led->lp, addr, mask, val); in lp8788_led_init_device() 76 return lp8788_update_bits(led->lp, addr, mask, val); in lp8788_led_init_device() 85 if (lp8788_update_bits(led->lp, LP8788_ISINK_CTRL, mask, val)) in lp8788_led_enable() 104 lp8788_write_byte(led->lp, lp8788_pwm_addr[num], val); in lp8788_led_work() 130 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_led_probe() local 140 led->lp = lp; in lp8788_led_probe() 144 led_pdata = lp->pdata ? lp->pdata->led_pdata : NULL; in lp8788_led_probe()
|
D | leds-sunfire.c | 142 struct led_classdev *lp = &p->leds[i].led_cdev; in sunfire_led_generic_probe() local 145 lp->name = types[i].name; in sunfire_led_generic_probe() 146 lp->brightness = LED_FULL; in sunfire_led_generic_probe() 147 lp->brightness_set = types[i].handler; in sunfire_led_generic_probe() 148 lp->default_trigger = types[i].default_trigger; in sunfire_led_generic_probe() 150 err = led_classdev_register(&pdev->dev, lp); in sunfire_led_generic_probe() 153 lp->name); in sunfire_led_generic_probe()
|
/linux-4.1.27/drivers/scsi/ |
D | ncr53c8xx.c | 1202 struct lcb * lp[MAX_LUN]; /* The lcb's of this tcb */ member 1952 static void ncr_start_next_ccb (struct ncb *np, struct lcb * lp, int maxn); 4123 struct lcb *lp = tp->lp[sdev->lun]; in ncr_queue_command() local 4209 if (lp && time_after(jiffies, lp->tags_stime)) { in ncr_queue_command() 4210 if (lp->tags_smap) { in ncr_queue_command() 4217 lp->tags_stime = jiffies + 3*HZ; in ncr_queue_command() 4218 lp->tags_smap = lp->tags_umap; in ncr_queue_command() 4275 if ((!tp->widedone || !tp->period) && !tp->nego_cp && lp) { in ncr_queue_command() 4407 if (lp) in ncr_queue_command() 4408 ncr_start_next_ccb(np, lp, 2); in ncr_queue_command() [all …]
|
D | esp_scsi.c | 572 struct esp_lun_data *lp) in esp_alloc_lun_tag() argument 576 if (lp->non_tagged_cmd) in esp_alloc_lun_tag() 579 if (lp->hold) { in esp_alloc_lun_tag() 583 if (lp->num_tagged) in esp_alloc_lun_tag() 589 lp->hold = 0; in esp_alloc_lun_tag() 590 } else if (lp->num_tagged) { in esp_alloc_lun_tag() 594 lp->hold = 1; in esp_alloc_lun_tag() 598 lp->non_tagged_cmd = ent; in esp_alloc_lun_tag() 604 if (lp->non_tagged_cmd || lp->hold) in esp_alloc_lun_tag() 608 BUG_ON(lp->tagged_cmds[ent->orig_tag[1]]); in esp_alloc_lun_tag() [all …]
|
D | mesh.c | 240 struct dbglog *lp; in dumplog() local 250 lp = &tp->log[i]; in dumplog() 252 t, lp->bs1, lp->bs0, lp->phase); in dumplog() 254 printk("tb=%10u ", lp->tb); in dumplog() 256 printk(lp->fmt, lp->d); in dumplog() 265 struct dbglog *lp; in dumpslog() local 275 lp = &ms->log[i]; in dumpslog() 277 lp->bs1, lp->bs0, lp->phase, lp->tgt); in dumpslog() 279 printk("tb=%10u ", lp->tb); in dumpslog() 281 printk(lp->fmt, lp->d); in dumpslog()
|
/linux-4.1.27/drivers/power/ |
D | lp8788-charger.c | 107 struct lp8788 *lp; member 141 lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_is_charger_detected() 159 lp8788_read_byte(pchg->lp, LP8788_CHG_IDCIN, &read); in lp8788_charger_get_property() 177 ret = lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_get_battery_status() 209 ret = lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_get_battery_health() 229 ret = lp8788_read_byte(pchg->lp, LP8788_CHG_STATUS, &data); in lp8788_get_battery_present() 256 struct lp8788 *lp = pchg->lp; in lp8788_get_battery_capacity() local 271 ret = lp8788_read_byte(lp, LP8788_CHG_STATUS, &data); in lp8788_get_battery_capacity() 316 lp8788_read_byte(pchg->lp, LP8788_CHG_IBATT, &read); in lp8788_get_battery_charging_current() 329 lp8788_read_byte(pchg->lp, LP8788_CHG_VTERM, &read); in lp8788_get_charging_termination_voltage() [all …]
|
/linux-4.1.27/fs/jfs/ |
D | jfs_logmgr.c | 362 struct logpage *lp; /* dst log page */ in lmWriteRecord() local 381 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 432 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 445 dst = (caddr_t) lp + dstoffset; in lmWriteRecord() 457 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 468 lvd = (struct lvd *) ((caddr_t) lp + dstoffset); in lmWriteRecord() 493 dst = (caddr_t) lp + dstoffset; in lmWriteRecord() 553 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 575 struct logpage *lp; in lmNextPage() local 585 lp = (struct logpage *) bp->l_ldata; in lmNextPage() [all …]
|
D | jfs_dmap.c | 2900 int lp, pp, k; in dbAdjTree() local 2905 lp = leafno + le32_to_cpu(tp->dmt_leafidx); in dbAdjTree() 2910 if (tp->dmt_stree[lp] == newval) in dbAdjTree() 2915 tp->dmt_stree[lp] = newval; in dbAdjTree() 2923 lp = ((lp - 1) & ~0x03) + 1; in dbAdjTree() 2927 pp = (lp - 1) >> 2; in dbAdjTree() 2931 max = TREEMAX(&tp->dmt_stree[lp]); in dbAdjTree() 2945 lp = pp; in dbAdjTree()
|
/linux-4.1.27/include/linux/mfd/ |
D | lp8788.h | 223 void (*charger_event) (struct lp8788 *lp, 301 int (*init_func) (struct lp8788 *lp); 344 int lp8788_irq_init(struct lp8788 *lp, int chip_irq); 345 void lp8788_irq_exit(struct lp8788 *lp); 346 int lp8788_read_byte(struct lp8788 *lp, u8 reg, u8 *data); 347 int lp8788_read_multi_bytes(struct lp8788 *lp, u8 reg, u8 *data, size_t count); 348 int lp8788_write_byte(struct lp8788 *lp, u8 reg, u8 data); 349 int lp8788_update_bits(struct lp8788 *lp, u8 reg, u8 mask, u8 data);
|
/linux-4.1.27/drivers/net/ethernet/cadence/ |
D | macb.c | 2370 struct macb *lp = netdev_priv(dev); in at91ether_start() local 2375 lp->rx_ring = dma_alloc_coherent(&lp->pdev->dev, in at91ether_start() 2378 &lp->rx_ring_dma, GFP_KERNEL); in at91ether_start() 2379 if (!lp->rx_ring) in at91ether_start() 2382 lp->rx_buffers = dma_alloc_coherent(&lp->pdev->dev, in at91ether_start() 2385 &lp->rx_buffers_dma, GFP_KERNEL); in at91ether_start() 2386 if (!lp->rx_buffers) { in at91ether_start() 2387 dma_free_coherent(&lp->pdev->dev, in at91ether_start() 2390 lp->rx_ring, lp->rx_ring_dma); in at91ether_start() 2391 lp->rx_ring = NULL; in at91ether_start() [all …]
|
/linux-4.1.27/drivers/scsi/sym53c8xx_2/ |
D | sym_hipd.c | 1540 void sym_start_next_ccbs(struct sym_hcb *np, struct sym_lcb *lp, int maxn) argument 1548 assert(!lp->started_tags || !lp->started_no_tag); 1556 qp = sym_remque_head(&lp->waiting_ccbq); 1561 if (lp->started_no_tag || 1562 lp->started_tags >= lp->started_max) { 1563 sym_insque_head(qp, &lp->waiting_ccbq); 1566 lp->itlq_tbl[cp->tag] = cpu_to_scr(cp->ccb_ba); 1567 lp->head.resel_sa = 1569 ++lp->started_tags; 1571 if (lp->started_no_tag || lp->started_tags) { [all …]
|
D | sym_glue.c | 304 struct sym_lcb *lp; in sym_queue_command() local 316 lp = sym_lp(tp, sdev->lun); in sym_queue_command() 317 order = (lp && lp->s.reqtags) ? M_SIMPLE_TAG : 0; in sym_queue_command() 717 struct sym_lcb *lp = sym_lp(tp, lun); in sym_tune_dev_queuing() local 720 if (!lp) in sym_tune_dev_queuing() 723 oldtags = lp->s.reqtags; in sym_tune_dev_queuing() 725 if (reqtags > lp->s.scdev_depth) in sym_tune_dev_queuing() 726 reqtags = lp->s.scdev_depth; in sym_tune_dev_queuing() 728 lp->s.reqtags = reqtags; in sym_tune_dev_queuing() 733 lp->s.reqtags ? "enabled" : "disabled", reqtags); in sym_tune_dev_queuing() [all …]
|
/linux-4.1.27/fs/nfsd/ |
D | nfs4layouts.c | 373 struct nfs4_layout *lp, *new = NULL; in nfsd4_insert_layout() local 381 list_for_each_entry(lp, &ls->ls_layouts, lo_perstate) { in nfsd4_insert_layout() 382 if (layouts_try_merge(&lp->lo_seg, seg)) in nfsd4_insert_layout() 391 memcpy(&new->lo_seg, seg, sizeof(lp->lo_seg)); in nfsd4_insert_layout() 399 list_for_each_entry(lp, &ls->ls_layouts, lo_perstate) { in nfsd4_insert_layout() 400 if (layouts_try_merge(&lp->lo_seg, seg)) in nfsd4_insert_layout() 422 struct nfs4_layout *lp = list_first_entry(reaplist, in nfsd4_free_layouts() local 425 list_del(&lp->lo_perstate); in nfsd4_free_layouts() 426 nfs4_put_stid(&lp->lo_state->ls_stid); in nfsd4_free_layouts() 427 kmem_cache_free(nfs4_layout_cache, lp); in nfsd4_free_layouts() [all …]
|
/linux-4.1.27/drivers/iio/adc/ |
D | lp8788_adc.c | 31 struct lp8788 *lp; member 64 ret = lp8788_write_byte(adc->lp, LP8788_ADC_CONF, data); in lp8788_get_adc_result() 73 ret = lp8788_read_byte(adc->lp, LP8788_ADC_DONE, &data); in lp8788_get_adc_result() 82 ret = lp8788_read_multi_bytes(adc->lp, LP8788_ADC_RAW, rawdata, size); in lp8788_get_adc_result() 192 struct lp8788 *lp = dev_get_drvdata(pdev->dev.parent); in lp8788_adc_probe() local 202 adc->lp = lp; in lp8788_adc_probe() 206 ret = lp8788_iio_map_register(indio_dev, lp->pdata, adc); in lp8788_adc_probe()
|
/linux-4.1.27/include/linux/ |
D | com20020.h | 115 lp->config = (lp->config & ~0x03) | (x); \ 129 #define ARCRESET { outb(lp->config | 0x80, _CONFIG); \ 131 outb(lp->config , _CONFIG); \ 143 #define SETCONF outb(lp->config, _CONFIG)
|
D | arcdevice.h | 318 #define ARCRESET(x) (lp->hw.reset(dev, (x))) 319 #define ACOMMAND(x) (lp->hw.command(dev, (x))) 320 #define ASTATUS() (lp->hw.status(dev)) 321 #define AINTMASK(x) (lp->hw.intmask(dev, (x)))
|
D | isdn_ppp.h | 173 struct isdn_net_local_s *lp; member
|
/linux-4.1.27/net/ipv6/netfilter/ |
D | ip6t_hbh.c | 59 const u_int8_t *lp = NULL; in hbh_mt6() local 128 lp = skb_header_pointer(skb, ptr + 1, in hbh_mt6() 131 if (lp == NULL) in hbh_mt6() 135 if (spec_len != 0x00FF && spec_len != *lp) { in hbh_mt6() 136 pr_debug("Lbad %02X %04X\n", *lp, in hbh_mt6() 141 optlen = *lp + 2; in hbh_mt6()
|
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/ |
D | lib-lnet.h | 565 lnet_peer_addref_locked(lnet_peer_t *lp) in lnet_peer_addref_locked() argument 567 LASSERT(lp->lp_refcount > 0); in lnet_peer_addref_locked() 568 lp->lp_refcount++; in lnet_peer_addref_locked() 571 void lnet_destroy_peer_locked(lnet_peer_t *lp); 574 lnet_peer_decref_locked(lnet_peer_t *lp) in lnet_peer_decref_locked() argument 576 LASSERT(lp->lp_refcount > 0); in lnet_peer_decref_locked() 577 lp->lp_refcount--; in lnet_peer_decref_locked() 578 if (lp->lp_refcount == 0) in lnet_peer_decref_locked() 579 lnet_destroy_peer_locked(lp); in lnet_peer_decref_locked() 583 lnet_isrouter(lnet_peer_t *lp) in lnet_isrouter() argument [all …]
|
D | lib-types.h | 491 #define lnet_peer_aliveness_enabled(lp) (the_lnet.ln_routing != 0 && \ argument 492 (lp)->lp_ni->ni_peertimeout > 0)
|
/linux-4.1.27/fs/xfs/ |
D | xfs_attr_inactive.c | 129 struct xfs_attr_inactive_list *lp; in xfs_attr3_leaf_inactive() local 171 lp = list; in xfs_attr3_leaf_inactive() 178 lp->valueblk = be32_to_cpu(name_rmt->valueblk); in xfs_attr3_leaf_inactive() 179 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive() 181 lp++; in xfs_attr3_leaf_inactive() 191 for (lp = list, i = 0; i < count; i++, lp++) { in xfs_attr3_leaf_inactive() 193 lp->valueblk, lp->valuelen); in xfs_attr3_leaf_inactive()
|
D | xfs_dquot_item.c | 257 struct xfs_dq_logitem *lp = &dqp->q_logitem; in xfs_qm_dquot_logitem_init() local 259 xfs_log_item_init(dqp->q_mount, &lp->qli_item, XFS_LI_DQUOT, in xfs_qm_dquot_logitem_init() 261 lp->qli_dquot = dqp; in xfs_qm_dquot_logitem_init()
|
/linux-4.1.27/net/sched/ |
D | em_canid.c | 103 const struct can_filter *lp; in em_canid_match() local 108 for (i = 0, lp = cm->rules_raw; in em_canid_match() 109 i < cm->eff_rules_count; i++, lp++) { in em_canid_match() 110 if (!(((lp->can_id ^ can_id) & lp->can_mask))) { in em_canid_match()
|
/linux-4.1.27/net/decnet/ |
D | dn_neigh.c | 215 struct dn_long_packet *lp; in dn_long_output() local 232 lp = (struct dn_long_packet *)(data+3); in dn_long_output() 237 lp->msgflg = DN_RT_PKT_LONG|(cb->rt_flags&(DN_RT_F_IE|DN_RT_F_RQR|DN_RT_F_RTS)); in dn_long_output() 238 lp->d_area = lp->d_subarea = 0; in dn_long_output() 239 dn_dn2eth(lp->d_id, cb->dst); in dn_long_output() 240 lp->s_area = lp->s_subarea = 0; in dn_long_output() 241 dn_dn2eth(lp->s_id, cb->src); in dn_long_output() 242 lp->nl2 = 0; in dn_long_output() 243 lp->visit_ct = cb->hops & 0x3f; in dn_long_output() 244 lp->s_class = 0; in dn_long_output() [all …]
|
/linux-4.1.27/drivers/clk/pxa/ |
D | clk-pxa.c | 31 struct clk_fixed_factor lp; member 46 fix = &pclk->lp; in cken_recalc_rate() 89 pxa_clk->lp = clks[i].lp; in clk_pxa_cken_init()
|
D | clk-pxa.h | 76 struct clk_fixed_factor lp; member 87 .lp = { .mult = _mult_lp, .div = _div_lp }, \
|
/linux-4.1.27/drivers/net/can/softing/ |
D | softing_cs.c | 164 const struct softing_platform_data *lp; in softingcs_find_platform_data() local 166 for (lp = softingcs_platform_data; lp->manf; ++lp) { in softingcs_find_platform_data() 167 if ((lp->manf == manf) && (lp->prod == prod)) in softingcs_find_platform_data() 168 return lp; in softingcs_find_platform_data()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | kvm_book3s_64.h | 102 static inline int __hpte_actual_psize(unsigned int lp, int psize) in __hpte_actual_psize() argument 126 if ((lp & mask) == mmu_psize_defs[psize].penc[i]) in __hpte_actual_psize() 138 unsigned int lp = (r >> LP_SHIFT) & ((1 << LP_BITS) - 1); in compute_tlbie_rb() local 147 a_psize = __hpte_actual_psize(lp, b_psize); in compute_tlbie_rb() 227 unsigned int lp = (l >> LP_SHIFT) & ((1 << LP_BITS) - 1); in __hpte_page_size() local 238 a_psize = __hpte_actual_psize(lp, size); in __hpte_page_size()
|
D | ppc-opcode.h | 335 #define PPC_TLBIE(lp,a) stringify_in_c(.long PPC_INST_TLBIE | \ argument 336 ___PPC_RB(a) | ___PPC_RS(lp))
|
/linux-4.1.27/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 100 if (fip->lp) in fcoe_ctlr_set_state() 347 fip->lp->host->host_no, fip->dest_addr); in fcoe_ctlr_announce() 353 fip->lp->host->host_no, sel->fcf_mac); in fcoe_ctlr_announce() 375 return fip->lp->mfs + sizeof(struct fc_frame_header) + in fcoe_ctlr_fcoe_size() 423 put_unaligned_be64(fip->lp->wwnn, &sol->desc.wwnn.fd_wwn); in fcoe_ctlr_solicit() 452 fc_linkup(fip->lp); in fcoe_ctlr_link_up() 465 fc_linkup(fip->lp); in fcoe_ctlr_link_up() 471 fc_linkup(fip->lp); in fcoe_ctlr_link_up() 515 fc_linkdown(fip->lp); in fcoe_ctlr_link_down() 546 struct fc_lport *lp; in fcoe_ctlr_send_keep_alive() local [all …]
|
D | libfcoe.h | 25 (fip)->lp->host->host_no, ##args);)
|
D | fcoe.c | 504 scsi_host_put(fip->lp->host); in fcoe_interface_cleanup() 553 fcoe_port_send(lport_priv(fip->lp), skb); in fcoe_fip_send() 1443 lport = ctlr->lp; in fcoe_rcv() 2002 lport = ctlr->lp; in fcoe_device_notification() 2031 port = lport_priv(ctlr->lp); in fcoe_device_notification() 2098 fcoe_clean_pending_queue(ctlr->lp); in fcoe_disable() 2132 if (!fcoe_link_ok(ctlr->lp)) in fcoe_enable() 2153 struct fc_lport *lport = ctlr->lp; in fcoe_ctlr_enabled() 2191 lport = ctlr->lp; in fcoe_destroy() 2361 ctlr->lp = lport; in _fcoe_create() [all …]
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | paca.c | 62 struct lppaca *lp; in new_lppaca() local 67 lp = extra_lppacas + (cpu - NR_LPPACAS); in new_lppaca() 68 *lp = lppaca[0]; in new_lppaca() 70 return lp; in new_lppaca()
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
D | niu.c | 214 static void niu_ldg_rearm(struct niu *np, struct niu_ldg *lp, int on) in niu_ldg_rearm() argument 216 u64 val = (u64) lp->timer; in niu_ldg_rearm() 221 nw64(LDG_IMGMT(lp->ldg_num), val); in niu_ldg_rearm() 250 static int niu_enable_ldn_in_ldg(struct niu *np, struct niu_ldg *lp, int on) in niu_enable_ldn_in_ldg() argument 258 if (parent->ldg_map[i] != lp->ldg_num) in niu_enable_ldn_in_ldg() 273 struct niu_ldg *lp = &np->ldg[i]; in niu_enable_interrupts() local 276 err = niu_enable_ldn_in_ldg(np, lp, on); in niu_enable_interrupts() 391 struct niu_link_config *lp = &np->link_config; in serdes_init_niu_10g_fiber() local 400 if (lp->loopback_mode == LOOPBACK_PHY) { in serdes_init_niu_10g_fiber() 428 struct niu_link_config *lp = &np->link_config; in serdes_init_niu_1g_serdes() local [all …]
|
D | sunvnet.c | 76 ldc_disconnect(port->vio.lp); in vnet_handle_unknown() 377 err = ldc_copy(port->vio.lp, LDC_COPY_IN, in vnet_rx_one() 482 err = ldc_get_dring_entry(port->vio.lp, desc, dr->entry_size, in get_rx_desc() 498 err = ldc_put_dring_entry(port->vio.lp, desc, dr->entry_size, in put_rx_desc() 779 err = ldc_read(vio->lp, &msgbuf, sizeof(msgbuf)); in vnet_event_napi() 960 ldc_unmap(port->vio.lp, in vnet_clean_tx_ring() 1001 static inline int vnet_skb_map(struct ldc_channel *lp, struct sk_buff *skb, in vnet_skb_map() argument 1014 err = ldc_map_single(lp, skb->data-VNET_PACKET_SKIP, blen, cookies, in vnet_skb_map() 1028 err = ldc_map_single(lp, vaddr + f->page_offset, in vnet_skb_map() 1037 ldc_unmap(lp, cookies, nc); in vnet_skb_map() [all …]
|
/linux-4.1.27/Documentation/ |
D | parport.txt | 49 whenever a parallel port device driver (such as lp) is loaded. 109 | | `-- lp 193 specific ports. Normally this happens automatically; if the lp driver 194 is loaded it will create one lp device for each port found. You can 195 override this, though, by using parameters either when you load the lp 198 # insmod lp parport=0,2 202 lp=parport0 lp=parport2 204 Both the above examples would inform lp that you want /dev/lp0 to be 206 with no lp device associated with the second port (parport1). Note 216 `lp=auto' on the kernel command line, and lp will create devices
|
/linux-4.1.27/drivers/scsi/libfc/ |
D | fc_libfc.h | 75 (pkt)->lp->host->host_no, \ 80 (pkt)->lp->host->host_no, \ 88 (exch)->lp->host->host_no, \
|
D | fc_fcp.c | 154 fsp->lp = lport; in fc_fcp_pkt_alloc() 178 struct fc_fcp_internal *si = fc_get_scsi_internal(fsp->lp); in fc_fcp_pkt_release() 270 per_cpu_ptr(fsp->lp->stats, get_cpu())->FcpPktAborts++; in fc_fcp_send_abort() 274 return fsp->lp->tt.seq_exch_abort(fsp->seq_ptr, 0); in fc_fcp_send_abort() 289 fsp->lp->tt.exch_done(fsp->seq_ptr); in fc_fcp_retry_cmd() 308 lport = fsp->lp; in fc_fcp_ddp_setup() 332 lport = fsp->lp; in fc_fcp_ddp_done() 444 struct fc_lport *lport = fsp->lp; in fc_fcp_recv_data() 566 struct fc_lport *lport = fsp->lp; in fc_fcp_send_data() 753 struct fc_lport *lport = fsp->lp; in fc_fcp_recv() [all …]
|
D | fc_frame.c | 74 struct fc_frame *fc_frame_alloc_fill(struct fc_lport *lp, size_t payload_len) in fc_frame_alloc_fill() argument
|
D | fc_exch.c | 653 fp = fc_frame_alloc(ep->lp, 0); in fc_exch_abort_locked() 659 error = fc_seq_send_locked(ep->lp, sp, fp); in fc_exch_abort_locked() 864 ep->lp = lport; in fc_exch_em_alloc() 1229 fc_seq_send_locked(ep->lp, sp, fp); in fc_seq_send_last() 1245 struct fc_lport *lport = ep->lp; in fc_seq_send_ack() 1378 fp = fc_frame_alloc(ep->lp, sizeof(*ap)); in fc_exch_recv_abts() 1874 if ((lport == ep->lp) && in fc_exch_pool_reset() 2098 ep->lp = lport; in fc_exch_seq_send() 2146 lport = ep->lp; in fc_exch_rrq()
|
/linux-4.1.27/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 978 struct local_info *lp = netdev_priv(dev); in xirc2ps_interrupt() local 993 if (lp->mohawk) { /* must disable the interrupt */ in xirc2ps_interrupt() 1046 if (lp->silicon == 0 ) { /* work around a hardware bug */ in xirc2ps_interrupt() 1071 else if (lp->mohawk) { in xirc2ps_interrupt() 1136 n = lp->last_ptr_value; in xirc2ps_interrupt() 1138 lp->last_ptr_value = nn; in xirc2ps_interrupt() 1144 dev->stats.tx_packets += lp->last_ptr_value - n; in xirc2ps_interrupt() 1209 struct local_info *lp = netdev_priv(dev); in xirc_tx_timeout() local 1212 schedule_work(&lp->tx_timeout_task); in xirc_tx_timeout() 1218 struct local_info *lp = netdev_priv(dev); in do_start_xmit() local [all …]
|
/linux-4.1.27/drivers/media/usb/pvrusb2/ |
D | pvrusb2-io.c | 400 struct list_head *lp; in pvr2_stream_internal_flush() local 402 while ((lp = sp->queued_list.next) != &sp->queued_list) { in pvr2_stream_internal_flush() 403 bp1 = list_entry(lp,struct pvr2_buffer,list_overhead); in pvr2_stream_internal_flush() 566 struct list_head *lp = sp->idle_list.next; in pvr2_stream_get_idle_buffer() local 567 if (lp == &sp->idle_list) return NULL; in pvr2_stream_get_idle_buffer() 568 return list_entry(lp,struct pvr2_buffer,list_overhead); in pvr2_stream_get_idle_buffer() 573 struct list_head *lp = sp->ready_list.next; in pvr2_stream_get_ready_buffer() local 574 if (lp == &sp->ready_list) return NULL; in pvr2_stream_get_ready_buffer() 575 return list_entry(lp,struct pvr2_buffer,list_overhead); in pvr2_stream_get_ready_buffer()
|
/linux-4.1.27/kernel/power/ |
D | snapshot.c | 166 struct linked_page *lp = list->next; in free_list_of_pages() local 169 list = lp; in free_list_of_pages() 209 struct linked_page *lp; in chain_alloc() local 211 lp = get_image_page(ca->gfp_mask, ca->safe_needed); in chain_alloc() 212 if (!lp) in chain_alloc() 215 lp->next = ca->chain; in chain_alloc() 216 ca->chain = lp; in chain_alloc() 2337 struct linked_page *sp_list, *lp; in prepare_image() local 2371 lp = get_image_page(GFP_ATOMIC, PG_SAFE); in prepare_image() 2372 if (!lp) { in prepare_image() [all …]
|
/linux-4.1.27/drivers/net/fddi/skfp/ |
D | skfddi.c | 327 struct s_smc *lp = netdev_priv(p); in skfp_remove_one() local 331 if (lp->os.SharedMemAddr) { in skfp_remove_one() 332 pci_free_consistent(&lp->os.pdev, in skfp_remove_one() 333 lp->os.SharedMemSize, in skfp_remove_one() 334 lp->os.SharedMemAddr, in skfp_remove_one() 335 lp->os.SharedMemDMA); in skfp_remove_one() 336 lp->os.SharedMemAddr = NULL; in skfp_remove_one() 338 if (lp->os.LocalRxBuffer) { in skfp_remove_one() 339 pci_free_consistent(&lp->os.pdev, in skfp_remove_one() 341 lp->os.LocalRxBuffer, in skfp_remove_one() [all …]
|
/linux-4.1.27/fs/gfs2/ |
D | dir.c | 874 __be64 *lp; in dir_make_exhash() local 931 lp = (__be64 *)(dibh->b_data + sizeof(struct gfs2_dinode)); in dir_make_exhash() 933 for (x = sdp->sd_hash_ptrs; x--; lp++) in dir_make_exhash() 934 *lp = cpu_to_be64(bn); in dir_make_exhash() 967 __be64 *lp; in dir_split_leaf() local 1013 lp = kmalloc(half_len * sizeof(__be64), GFP_NOFS); in dir_split_leaf() 1014 if (!lp) { in dir_split_leaf() 1021 lp[x] = cpu_to_be64(bn); in dir_split_leaf() 1025 error = gfs2_dir_write_data(dip, (char *)lp, start * sizeof(u64), in dir_split_leaf() 1033 kfree(lp); in dir_split_leaf() [all …]
|
/linux-4.1.27/drivers/ata/ |
D | pata_legacy.c | 176 struct legacy_probe *lp = &probe_list[0]; in legacy_probe_add() local 181 if (lp->port == 0 && free == NULL) in legacy_probe_add() 182 free = lp; in legacy_probe_add() 184 if (lp->port == port || legacy_port[i] == port) { in legacy_probe_add() 185 free = lp; in legacy_probe_add() 188 lp++; in legacy_probe_add() 734 struct legacy_probe *lp, struct legacy_data *ld) in qdi_port() argument 736 if (devm_request_region(&dev->dev, lp->private, 4, "qdi") == NULL) in qdi_port() 738 ld->timing = lp->private; in qdi_port() 819 struct legacy_probe *lp, struct legacy_data *ld) in winbond_port() argument [all …]
|
/linux-4.1.27/arch/um/os-Linux/drivers/ |
D | tuntap_kern.c | 38 static int tuntap_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in tuntap_read() argument 44 static int tuntap_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in tuntap_write() argument
|
D | ethertap_kern.c | 39 static int etap_read(int fd, struct sk_buff *skb, struct uml_net_private *lp) in etap_read() argument 53 static int etap_write(int fd, struct sk_buff *skb, struct uml_net_private *lp) in etap_write() argument
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
D | bootx_init.c | 283 char *namep, *p, *ep, *lp; in bootx_scan_dt_build_struct() local 302 for (lp = p = namep, ep = namep + l; p < ep; p++) { in bootx_scan_dt_build_struct() 304 lp = namep; in bootx_scan_dt_build_struct() 306 *lp++ = *p; in bootx_scan_dt_build_struct() 308 *lp = 0; in bootx_scan_dt_build_struct() 309 *mem_end = _ALIGN_UP((unsigned long)lp + 1, 4); in bootx_scan_dt_build_struct()
|
/linux-4.1.27/lib/ |
D | decompress_unlzma.c | 546 int lc, pb, lp; in unlzma() local 598 lp = mi; in unlzma() 599 while (lp >= 5) { in unlzma() 601 lp -= 5; in unlzma() 604 literal_pos_mask = (1 << lp) - 1; in unlzma() 621 num_probs = LZMA_BASE_SIZE + (LZMA_LIT_SIZE << (lc + lp)); in unlzma() 625 num_probs = LZMA_LITERAL + (LZMA_LIT_SIZE << (lc + lp)); in unlzma()
|
/linux-4.1.27/drivers/block/ |
D | sunvdc.c | 206 ldc_disconnect(port->vio.lp); in vdc_handle_unknown() 299 ldc_unmap(port->vio.lp, desc->cookies, desc->ncookies); in vdc_end_one() 369 err = ldc_read(vio->lp, &msgbuf, sizeof(msgbuf)); in vdc_event() 472 err = ldc_map_sg(port->vio.lp, sg, nsg, in __send_request() 630 err = ldc_map_single(port->vio.lp, req_buf, op_len, in generic_request() 691 dring = ldc_alloc_exp_dring(port->vio.lp, len, in vdc_alloc_tx_ring() 714 ldc_free_exp_dring(port->vio.lp, dr->base, in vdc_free_tx_ring() 741 ldc_disconnect(port->vio.lp); in vdc_port_down() 742 ldc_unbind(port->vio.lp); in vdc_port_down() 991 ldc_unmap(port->vio.lp, desc->cookies, desc->ncookies); in vdc_requeue_inflight()
|
/linux-4.1.27/drivers/video/fbdev/exynos/ |
D | exynos_mipi_dsi_lowlevel.h | 84 unsigned int lp); 86 unsigned int lp);
|
D | exynos_mipi_dsi_lowlevel.c | 468 unsigned int lp) in exynos_mipi_dsi_set_cpu_transfer_mode() argument 474 if (lp) in exynos_mipi_dsi_set_cpu_transfer_mode() 481 unsigned int lp) in exynos_mipi_dsi_set_lcdc_transfer_mode() argument 487 if (lp) in exynos_mipi_dsi_set_lcdc_transfer_mode()
|
/linux-4.1.27/drivers/net/wireless/b43/ |
D | phy_lp.c | 61 dev->phy.lp = lpphy; in b43_lpphy_op_allocate() 69 struct b43_phy_lp *lpphy = phy->lp; in b43_lpphy_op_prepare_structs() 79 struct b43_phy_lp *lpphy = dev->phy.lp; in b43_lpphy_op_free() 82 dev->phy.lp = NULL; in b43_lpphy_op_free() 89 struct b43_phy_lp *lpphy = dev->phy.lp; in lpphy_read_band_sprom() 171 struct b43_phy_lp *lpphy = dev->phy.lp; in lpphy_adjust_gain_table() 213 struct b43_phy_lp *lpphy = dev->phy.lp; in lpphy_baseband_rev0_1_init() 378 struct b43_phy_lp *lpphy = dev->phy.lp; in lpphy_save_dig_flt_state() 401 struct b43_phy_lp *lpphy = dev->phy.lp; in lpphy_restore_dig_flt_state() 410 struct b43_phy_lp *lpphy = dev->phy.lp; in lpphy_baseband_rev2plus_init() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_sdma.c | 97 struct list_head *lp = NULL; in ipath_sdma_make_progress() local 104 lp = dd->ipath_sdma_activelist.next; in ipath_sdma_make_progress() 105 txp = list_entry(lp, struct ipath_sdma_txreq, list); in ipath_sdma_make_progress() 138 list_move_tail(lp, &dd->ipath_sdma_notifylist); in ipath_sdma_make_progress() 140 lp = dd->ipath_sdma_activelist.next; in ipath_sdma_make_progress() 141 txp = list_entry(lp, struct ipath_sdma_txreq, in ipath_sdma_make_progress() 145 lp = NULL; in ipath_sdma_make_progress()
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_dir2.h | 91 (*leaf_ents_p)(struct xfs_dir2_leaf *lp); 313 xfs_dir2_leaf_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_leaf *lp) in xfs_dir2_leaf_tail_p() argument 316 ((char *)lp + geo->blksize - in xfs_dir2_leaf_tail_p()
|
D | xfs_da_format.c | 434 xfs_dir2_leaf_ents_p(struct xfs_dir2_leaf *lp) in xfs_dir2_leaf_ents_p() argument 436 return lp->__ents; in xfs_dir2_leaf_ents_p() 447 xfs_dir3_leaf_ents_p(struct xfs_dir2_leaf *lp) in xfs_dir3_leaf_ents_p() argument 449 return ((struct xfs_dir3_leaf *)lp)->__ents; in xfs_dir3_leaf_ents_p()
|
/linux-4.1.27/drivers/scsi/lpfc/ |
D | lpfc_nportdisc.c | 168 uint32_t *lp; in lpfc_check_elscmpl_iocb() local 182 lp = (uint32_t *) prsp->virt; in lpfc_check_elscmpl_iocb() 183 ptr = (void *)((uint8_t *)lp + sizeof(uint32_t)); in lpfc_check_elscmpl_iocb() 280 uint32_t *lp; in lpfc_rcv_plogi() local 316 lp = (uint32_t *) pcmd->virt; in lpfc_rcv_plogi() 317 sp = (struct serv_parm *) ((uint8_t *) lp + sizeof (uint32_t)); in lpfc_rcv_plogi() 546 uint32_t *lp; in lpfc_rcv_padisc() local 550 lp = (uint32_t *) pcmd->virt; in lpfc_rcv_padisc() 552 cmd = *lp++; in lpfc_rcv_padisc() 554 ap = (ADISC *) lp; in lpfc_rcv_padisc() [all …]
|
D | lpfc_els.c | 2843 uint32_t *lp; in lpfc_issue_els_farpr() local 2883 lp = (uint32_t *) pcmd; in lpfc_issue_els_farpr() 2884 *lp++ = be32_to_cpu(nportid); in lpfc_issue_els_farpr() 2885 *lp++ = be32_to_cpu(vport->fc_myDID); in lpfc_issue_els_farpr() 4674 uint32_t *lp; in lpfc_rscn_payload_check() local 4698 lp = vport->fc_rscn_id_list[i]->virt; in lpfc_rscn_payload_check() 4699 payload_len = be32_to_cpu(*lp++ & ~ELS_CMD_MASK); in lpfc_rscn_payload_check() 4702 rscn_did.un.word = be32_to_cpu(*lp++); in lpfc_rscn_payload_check() 4835 uint32_t *lp, *datap; in lpfc_els_rcv_rscn() local 4844 lp = (uint32_t *) pcmd->virt; in lpfc_els_rcv_rscn() [all …]
|
/linux-4.1.27/drivers/target/tcm_fc/ |
D | tfc_io.c | 90 lport = ep->lp; in ft_queue_data_in() 241 lport = ep->lp; in ft_recv_write_data() 361 lport = ep->lp; in ft_invl_hw_context()
|
D | tfc_cmd.c | 137 lport = ep->lp; in ft_queue_status() 216 lport = ep->lp; in ft_write_pending() 570 fc_seq_exch(cmd->seq)->lp->tt.seq_set_resp(cmd->seq, ft_recv_seq, cmd); in ft_send_work()
|
/linux-4.1.27/drivers/parport/ |
D | BUGS-parport | 3 o lp doesn't allow you to read status while printing is in progress (is
|
D | TODO-parport | 7 2. A better lp.c:
|
/linux-4.1.27/drivers/scsi/bnx2fc/ |
D | bnx2fc_fcoe.c | 124 static void bnx2fc_clean_rx_queue(struct fc_lport *lp) in bnx2fc_clean_rx_queue() argument 140 if (fr->fr_dev == lp) { in bnx2fc_clean_rx_queue() 421 lport = ctlr->lp; in bnx2fc_rcv() 870 lport = ctlr->lp; in bnx2fc_indicate_netevent() 1435 BNX2FC_HBA_DBG(ctlr->lp, "Unable to alloc blport\n"); in bnx2fc_if_create() 1533 struct fc_lport *lport = ctlr->lp; in bnx2fc_interface_cleanup() 1574 struct fc_lport *lport = ctlr->lp; in __bnx2fc_destroy() 1606 if (!interface || !ctlr->lp) { in bnx2fc_destroy() 1779 lport = ctlr->lp; in bnx2fc_ulp_start() 1806 lport = ctlr->lp; in bnx2fc_stop() [all …]
|
/linux-4.1.27/include/linux/sunrpc/ |
D | cache.h | 227 extern void qword_add(char **bpp, int *lp, char *str); 228 extern void qword_addhex(char **bpp, int *lp, char *buf, int blen);
|
/linux-4.1.27/drivers/staging/lustre/lustre/lov/ |
D | lov_page.c | 134 struct lov_page *lp = cl2lov_page(slice); in lov_page_print() local 136 return (*printer)(env, cookie, LUSTRE_LOV_NAME"-page@%p\n", lp); in lov_page_print()
|
/linux-4.1.27/arch/ia64/kernel/ |
D | kprobes.c | 1021 struct param_bsp_cfm *lp = arg; in ia64_get_bsp_cfm() local 1027 if (ip == lp->ip) { in ia64_get_bsp_cfm() 1028 unw_get_bsp(info, (unsigned long*)&lp->bsp); in ia64_get_bsp_cfm() 1029 unw_get_cfm(info, (unsigned long*)&lp->cfm); in ia64_get_bsp_cfm() 1033 lp->bsp = NULL; in ia64_get_bsp_cfm() 1034 lp->cfm = 0; in ia64_get_bsp_cfm()
|
D | traps.c | 541 ia64_psr(®s)->lp = 1; in ia64_fault() 609 ia64_psr(®s)->lp = 0; in ia64_fault()
|
D | process.c | 170 if (!ia64_psr(&scr->pt)->lp) in do_notify_resume_user() 171 ia64_psr(&scr->pt)->lp = 1; in do_notify_resume_user()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
D | dt_object.c | 651 static int dt_index_page_build(const struct lu_env *env, union lu_page *lp, in dt_index_page_build() argument 656 struct lu_idxpage *lip = &lp->lp_idx; in dt_index_page_build() 806 union lu_page *lp; in dt_index_walk() local 810 lp = kmap(rdpg->rp_pages[pageidx]); in dt_index_walk() 813 for (i = 0; i < LU_PAGE_COUNT; i++, lp++, nob -= LU_PAGE_SIZE) { in dt_index_walk() 814 rc = filler(env, lp, min_t(int, nob, LU_PAGE_SIZE), in dt_index_walk()
|
/linux-4.1.27/drivers/iio/light/ |
D | tsl2563.c | 431 const struct tsl2563_lux_coeff *lp = lux_table; in adc_to_lux() local 436 while (lp->ch_ratio < ratio) in adc_to_lux() 437 lp++; in adc_to_lux() 439 lux = ch0 * lp->ch0_coeff - ch1 * lp->ch1_coeff; in adc_to_lux()
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | rv6xx_dpm.h | 53 u8 lp[R600_PM_NUMBER_OF_ACTIVITY_LEVELS]; member
|
/linux-4.1.27/arch/powerpc/boot/dts/fsl/ |
D | qoriq-raid1.0-0.dtsi | 57 compatible = "fsl,raideng-v1.0-job-ring", "fsl,raideng-v1.0-lp-ring"; 79 compatible = "fsl,raideng-v1.0-job-ring", "fsl,raideng-v1.0-lp-ring";
|
/linux-4.1.27/arch/powerpc/mm/ |
D | hash_native_64.c | 486 static inline int __hpte_actual_psize(unsigned int lp, int psize) in __hpte_actual_psize() argument 510 if ((lp & mask) == mmu_psize_defs[psize].penc[i]) in __hpte_actual_psize() 525 unsigned int lp = (hpte_r >> LP_SHIFT) & ((1 << LP_BITS) - 1); in hpte_decode() local 537 a_size = __hpte_actual_psize(lp, size); in hpte_decode()
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_sdma.c | 350 struct list_head *lp = NULL; in qib_sdma_make_progress() local 366 lp = ppd->sdma_activelist.next; in qib_sdma_make_progress() 367 txp = list_entry(lp, struct qib_sdma_txreq, list); in qib_sdma_make_progress() 397 lp = ppd->sdma_activelist.next; in qib_sdma_make_progress() 398 txp = list_entry(lp, struct qib_sdma_txreq, in qib_sdma_make_progress()
|
/linux-4.1.27/include/scsi/ |
D | libfc.h | 121 struct fc_lport *lp; member 329 struct fc_lport *lp; member 435 struct fc_lport *lp; member
|
D | libfcoe.h | 128 struct fc_lport *lp; member
|
/linux-4.1.27/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.c | 677 unsigned long *lp, *id; in snmp_object_decode() local 763 if (!asn1_oid_decode(ctx, end, &lp, &len)) { in snmp_object_decode() 770 kfree(lp); in snmp_object_decode() 774 memcpy((*obj)->syntax.ul, lp, len); in snmp_object_decode() 775 kfree(lp); in snmp_object_decode()
|
/linux-4.1.27/drivers/crypto/nx/ |
D | nx-aes-ccm.c | 152 unsigned int l, lp, m = authsize; in generate_b0() local 157 lp = b0[0]; in generate_b0() 158 l = lp + 1; in generate_b0()
|
/linux-4.1.27/drivers/net/cris/ |
D | eth_v10.c | 1536 struct net_local *lp = netdev_priv(dev); in e100_get_stats() local 1539 spin_lock_irqsave(&lp->lock, flags); in e100_get_stats() 1544 spin_unlock_irqrestore(&lp->lock, flags); in e100_get_stats() 1558 struct net_local *lp = netdev_priv(dev); in set_multicast_list() local 1563 spin_lock(&lp->lock); in set_multicast_list() 1633 spin_unlock(&lp->lock); in set_multicast_list()
|
/linux-4.1.27/drivers/scsi/bfa/ |
D | bfa_svc.c | 360 struct bfa_plog_rec_s lp; in bfa_plog_str() local 363 memset(&lp, 0, sizeof(struct bfa_plog_rec_s)); in bfa_plog_str() 364 lp.mid = mid; in bfa_plog_str() 365 lp.eid = event; in bfa_plog_str() 366 lp.log_type = BFA_PL_LOG_TYPE_STRING; in bfa_plog_str() 367 lp.misc = misc; in bfa_plog_str() 368 strncpy(lp.log_entry.string_log, log_str, in bfa_plog_str() 370 lp.log_entry.string_log[BFA_PL_STRING_LOG_SZ - 1] = '\0'; in bfa_plog_str() 371 bfa_plog_add(plog, &lp); in bfa_plog_str() 380 struct bfa_plog_rec_s lp; in bfa_plog_intarr() local [all …]
|
/linux-4.1.27/fs/nfs/ |
D | pnfs.c | 1212 struct pnfs_layout_segment *lp; in pnfs_layout_insert_lseg() local 1216 list_for_each_entry(lp, &lo->plh_segs, pls_list) { in pnfs_layout_insert_lseg() 1217 if (pnfs_lseg_range_cmp(&lseg->pls_range, &lp->pls_range) > 0) in pnfs_layout_insert_lseg() 1219 list_add_tail(&lseg->pls_list, &lp->pls_list); in pnfs_layout_insert_lseg() 1225 lp, lp->pls_range.iomode, lp->pls_range.offset, in pnfs_layout_insert_lseg() 1226 lp->pls_range.length); in pnfs_layout_insert_lseg()
|
/linux-4.1.27/arch/mips/include/asm/mach-loongson/ |
D | boot_param.h | 157 struct loongson_params lp; member
|
/linux-4.1.27/drivers/net/phy/ |
D | phy.c | 1069 u32 lp, cap, adv; in phy_init_eee() local 1101 lp = mmd_eee_adv_to_ethtool_adv_t(eee_lp); in phy_init_eee() 1102 if (!phy_check_valid(phydev->speed, phydev->duplex, lp & adv)) in phy_init_eee()
|
/linux-4.1.27/net/sunrpc/ |
D | cache.c | 1067 void qword_add(char **bpp, int *lp, char *str) in qword_add() argument 1070 int len = *lp; in qword_add() 1086 *lp = len; in qword_add() 1090 void qword_addhex(char **bpp, int *lp, char *buf, int blen) in qword_addhex() argument 1093 int len = *lp; in qword_addhex() 1113 *lp = len; in qword_addhex()
|
/linux-4.1.27/arch/mips/loongson/common/ |
D | env.c | 80 loongson_p = &(boot_p->efi.smbios.lp); in prom_init_env()
|
/linux-4.1.27/Documentation/RCU/ |
D | whatisRCU.txt | 683 struct list_head *lp; 687 - list_for_each_entry(p, head, lp) { 689 + list_for_each_entry_rcu(p, head, lp) { 708 list_for_each_entry(p, head, lp) { 738 3 struct list_head *lp; 3 struct list_head *lp; 742 7 list_for_each_entry(p, head, lp) { 7 list_for_each_entry_rcu(p, head, lp) { 758 6 list_for_each_entry(p, head, lp) { 6 list_for_each_entry(p, head, lp) {
|
/linux-4.1.27/Documentation/devicetree/bindings/powerpc/fsl/ |
D | raideng.txt | 53 "fsl,raideng-v1.0-hp-ring" or "fsl,raideng-v1.0-lp-ring"
|