| /linux/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_hipd.c | 41 static void sym_int_ma (struct sym_hcb *np); 43 static struct sym_ccb *sym_alloc_ccb(struct sym_hcb *np); 44 static struct sym_ccb *sym_ccb_from_dsa(struct sym_hcb *np, u32 dsa); 45 static void sym_alloc_lcb_tags (struct sym_hcb *np, u_char tn, u_char ln); 46 static void sym_complete_error (struct sym_hcb *np, struct sym_ccb *cp); 47 static void sym_complete_ok (struct sym_hcb *np, struct sym_ccb *cp); 48 static int sym_compute_residual(struct sym_hcb *np, struct sym_ccb *cp); 68 static void sym_print_nego_msg(struct sym_hcb *np, int target, char *label, u_char *msg) in sym_print_nego_msg() argument 70 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg() 120 static void sym_chip_reset (struct sym_hcb *np) in sym_chip_reset() argument [all …]
|
| H A D | sym_nvram.c | 37 void sym_nvram_setup_host(struct Scsi_Host *shost, struct sym_hcb *np, struct sym_nvram *nvram) in sym_nvram_setup_host() argument 46 np->rv_scntl0 &= ~0x0a; in sym_nvram_setup_host() 47 np->myaddr = nvram->data.Symbios.host_id & 0x0f; in sym_nvram_setup_host() 49 np->verbose += 1; in sym_nvram_setup_host() 53 np->usrflags |= SYM_AVOID_BUS_RESET; in sym_nvram_setup_host() 56 np->myaddr = nvram->data.Tekram.host_id & 0x0f; in sym_nvram_setup_host() 61 np->myaddr = nvram->data.parisc.host_id; in sym_nvram_setup_host() 63 np->minsync = nvram->data.parisc.factor; in sym_nvram_setup_host() 65 np->maxwide = nvram->data.parisc.width; in sym_nvram_setup_host() 67 case 0: np->scsi_mode = SMODE_SE; break; in sym_nvram_setup_host() [all …]
|
| H A D | sym_hipd.h | 75 #define sym_verbose (np->verbose) 184 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) argument 185 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) argument 186 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) argument 188 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) argument 189 #define OUTW_OFF(np, o, val) iowrite16((val), np->s.ioaddr + (o)) argument 190 #define OUTL_OFF(np, o, val) iowrite32((val), np->s.ioaddr + (o)) argument 192 #define INB(np, r) INB_OFF(np, offsetof(struct sym_reg, r)) argument 193 #define INW(np, r) INW_OFF(np, offsetof(struct sym_reg, r)) argument 194 #define INL(np, r) INL_OFF(np, offsetof(struct sym_reg, r)) argument [all …]
|
| H A D | sym_fw.c | 96 struct sym_hcb *np = sym_get_hcb(shost); in sym_fw1_patch() local 100 scripta0 = (struct sym_fw1a_scr *) np->scripta0; in sym_fw1_patch() 101 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; in sym_fw1_patch() 106 if (!(np->features & FE_LED0)) { in sym_fw1_patch() 126 scriptb0->startpos[0] = cpu_to_scr(np->squeue_ba); in sym_fw1_patch() 127 scriptb0->done_pos[0] = cpu_to_scr(np->dqueue_ba); in sym_fw1_patch() 128 scriptb0->targtbl[0] = cpu_to_scr(np->targtbl_ba); in sym_fw1_patch() 140 struct sym_hcb *np = sym_data->ncb; in sym_fw2_patch() local 144 scripta0 = (struct sym_fw2a_scr *) np->scripta0; in sym_fw2_patch() 145 scriptb0 = (struct sym_fw2b_scr *) np->scriptb0; in sym_fw2_patch() [all …]
|
| /linux/drivers/net/ethernet/nvidia/ |
| H A D | forcedeth.c | 727 __this_cpu_inc(np->txrx_stats->member) 729 __this_cpu_add(np->txrx_stats->member, (count)) 961 static bool nv_optimized(struct fe_priv *np) in nv_optimized() argument 963 if (np->desc_ver == DESC_VER_1 || np->desc_ver == DESC_VER_2) in nv_optimized() 998 struct fe_priv *np = get_nvpriv(dev); in setup_hw_rings() local 1001 if (!nv_optimized(np)) { in setup_hw_rings() 1003 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings() 1005 …writel(dma_low(np->ring_addr + np->rx_ring_size*sizeof(struct ring_desc)), base + NvRegTxRingPhysA… in setup_hw_rings() 1008 writel(dma_low(np->ring_addr), base + NvRegRxRingPhysAddr); in setup_hw_rings() 1009 writel(dma_high(np->ring_addr), base + NvRegRxRingPhysAddrHigh); in setup_hw_rings() [all …]
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | winbond-840.c | 329 static void free_rxtx_rings(struct netdev_private *np); 333 static void free_ringdesc(struct netdev_private *np); 360 struct netdev_private *np; in w840_probe1() 380 dev = alloc_etherdev(sizeof(*np)); in w840_probe1() 400 np = netdev_priv(dev); in w840_probe1() 401 np->pci_dev = pdev; in w840_probe1() 402 np->chip_id = chip_idx; in w840_probe1() 403 np->drv_flags = pci_id_tbl[chip_idx].drv_flags; in w840_probe1() 404 spin_lock_init(&np->lock); in w840_probe1() 405 np in w840_probe1() 353 struct netdev_private *np; w840_probe1() local 556 struct netdev_private *np = netdev_priv(dev); mdio_read() local 586 struct netdev_private *np = netdev_priv(dev); mdio_write() local 618 struct netdev_private *np = netdev_priv(dev); netdev_open() local 660 struct netdev_private *np = netdev_priv(dev); update_link() local 726 struct netdev_private *np = netdev_priv(dev); update_csr6() local 766 struct netdev_private *np = timer_container_of(np, t, timer); netdev_timer() local 783 struct netdev_private *np = netdev_priv(dev); init_rxtx_rings() local 829 free_rxtx_rings(struct netdev_private * np) free_rxtx_rings() argument 855 struct netdev_private *np = netdev_priv(dev); init_registers() local 913 struct netdev_private *np = netdev_priv(dev); tx_timeout() local 960 struct netdev_private *np = netdev_priv(dev); alloc_ringdesc() local 974 free_ringdesc(struct netdev_private * np) free_ringdesc() argument 985 struct netdev_private *np = netdev_priv(dev); start_tx() local 1047 struct netdev_private *np = netdev_priv(dev); netdev_tx_done() local 1099 struct netdev_private *np = netdev_priv(dev); intr_handler() local 1163 struct netdev_private *np = netdev_priv(dev); netdev_rx() local 1275 struct netdev_private *np = netdev_priv(dev); netdev_error() local 1317 struct netdev_private *np = netdev_priv(dev); get_stats() local 1332 struct netdev_private *np = netdev_priv(dev); __set_rx_mode() local 1366 struct netdev_private *np = netdev_priv(dev); set_rx_mode() local 1375 struct netdev_private *np = netdev_priv(dev); netdev_get_drvinfo() local 1384 struct netdev_private *np = netdev_priv(dev); netdev_get_link_ksettings() local 1396 struct netdev_private *np = netdev_priv(dev); netdev_set_link_ksettings() local 1408 struct netdev_private *np = netdev_priv(dev); netdev_nway_reset() local 1414 struct netdev_private *np = netdev_priv(dev); netdev_get_link() local 1441 struct netdev_private *np = netdev_priv(dev); netdev_ioctl() local 1466 struct netdev_private *np = netdev_priv(dev); netdev_close() local 1525 struct netdev_private *np = netdev_priv(dev); w840_remove1() local 1558 struct netdev_private *np = netdev_priv(dev); w840_suspend() local 1593 struct netdev_private *np = netdev_priv(dev); w840_resume() local [all...] |
| /linux/drivers/net/ethernet/dlink/ |
| H A D | sundance.c | 448 struct netdev_private *np = netdev_priv(dev); in sundance_reset() local 449 void __iomem *ioaddr = np->base + ASICCtrl; in sundance_reset() 468 struct netdev_private *np = netdev_priv(dev); in sundance_poll_controller() local 470 disable_irq(np->pci_dev->irq); in sundance_poll_controller() 471 intr_handler(np->pci_dev->irq, dev); in sundance_poll_controller() 472 enable_irq(np->pci_dev->irq); in sundance_poll_controller() 496 struct netdev_private *np; in sundance_probe1() local 519 dev = alloc_etherdev(sizeof(*np)); in sundance_probe1() 536 np = netdev_priv(dev); in sundance_probe1() 537 np in sundance_probe1() 763 struct netdev_private *np = netdev_priv(dev); mdio_read() local 793 struct netdev_private *np = netdev_priv(dev); mdio_write() local 823 struct netdev_private *np; mdio_wait_link() local 839 struct netdev_private *np = netdev_priv(dev); netdev_open() local 917 struct netdev_private *np = netdev_priv(dev); check_duplex() local 945 struct netdev_private *np = timer_container_of(np, t, timer); netdev_timer() local 963 struct netdev_private *np = netdev_priv(dev); tx_timeout() local 1016 struct netdev_private *np = netdev_priv(dev); init_ring() local 1064 struct netdev_private *np = from_tasklet(np, t, tx_tasklet); tx_poll() local 1090 struct netdev_private *np = netdev_priv(dev); start_tx() local 1141 struct netdev_private *np = netdev_priv(dev); reset_tx() local 1179 struct netdev_private *np = netdev_priv(dev); intr_handler() local 1323 struct netdev_private *np = from_tasklet(np, t, rx_tasklet); rx_poll() local 1418 struct netdev_private *np = netdev_priv(dev); refill_rx() local 1452 struct netdev_private *np = netdev_priv(dev); netdev_error() local 1517 struct netdev_private *np = netdev_priv(dev); get_stats() local 1559 struct netdev_private *np = netdev_priv(dev); set_rx_mode() local 1600 struct netdev_private *np = netdev_priv(dev); __set_mac_addr() local 1649 struct netdev_private *np = netdev_priv(dev); get_drvinfo() local 1657 struct netdev_private *np = netdev_priv(dev); get_link_ksettings() local 1667 struct netdev_private *np = netdev_priv(dev); set_link_ksettings() local 1677 struct netdev_private *np = netdev_priv(dev); nway_reset() local 1683 struct netdev_private *np = netdev_priv(dev); get_link() local 1689 struct netdev_private *np = netdev_priv(dev); get_msglevel() local 1695 struct netdev_private *np = netdev_priv(dev); set_msglevel() local 1719 struct netdev_private *np = netdev_priv(dev); get_ethtool_stats() local 1740 struct netdev_private *np = netdev_priv(dev); sundance_get_wol() local 1760 struct netdev_private *np = netdev_priv(dev); sundance_set_wol() local 1807 struct netdev_private *np = netdev_priv(dev); netdev_ioctl() local 1822 struct netdev_private *np = netdev_priv(dev); netdev_close() local 1925 struct netdev_private *np = netdev_priv(dev); sundance_remove1() local 1940 struct netdev_private *np = netdev_priv(dev); sundance_suspend() local [all...] |
| /linux/drivers/net/ethernet/sun/ |
| H A D | niu.c | 91 #define nr64(reg) readq(np->regs + (reg)) 92 #define nw64(reg, val) writeq((val), np->regs + (reg)) 94 #define nr64_mac(reg) readq(np->mac_regs + (reg)) 95 #define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg)) 97 #define nr64_ipp(reg) readq(np->regs + np->ipp_off + (reg)) 98 #define nw64_ipp(reg, val) writeq((val), np->regs + np->ipp_off + (reg)) 100 #define nr64_pcs(reg) readq(np->regs + np->pcs_off + (reg)) 101 #define nw64_pcs(reg, val) writeq((val), np->regs + np->pcs_off + (reg)) 103 #define nr64_xpcs(reg) readq(np->regs + np->xpcs_off + (reg)) 104 #define nw64_xpcs(reg, val) writeq((val), np->regs + np->xpcs_off + (reg)) [all …]
|
| /linux/drivers/clk/at91/ |
| H A D | dt-compat.c | 30 static void __init of_sama5d2_clk_audio_pll_frac_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_frac_setup() argument 33 const char *name = np->name; in of_sama5d2_clk_audio_pll_frac_setup() 38 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_frac_setup() 44 parent_name = of_clk_get_parent_name(np, 0); in of_sama5d2_clk_audio_pll_frac_setup() 50 of_clk_add_hw_provider(np, of_clk_hw_simple_get, hw); in of_sama5d2_clk_audio_pll_frac_setup() 56 static void __init of_sama5d2_clk_audio_pll_pad_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_pad_setup() argument 59 const char *name = np->name; in of_sama5d2_clk_audio_pll_pad_setup() 64 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_pad_setup() 70 parent_name = of_clk_get_parent_name(np, 0); in of_sama5d2_clk_audio_pll_pad_setup() 76 of_clk_add_hw_provider(np, of_clk_hw_simple_get, hw); in of_sama5d2_clk_audio_pll_pad_setup() [all …]
|
| /linux/drivers/net/ethernet/adaptec/ |
| H A D | starfire.c | 584 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_add_vid() local 586 spin_lock(&np->lock); in netdev_vlan_rx_add_vid() 589 set_bit(vid, np->active_vlans); in netdev_vlan_rx_add_vid() 591 spin_unlock(&np->lock); in netdev_vlan_rx_add_vid() 599 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_kill_vid() local 601 spin_lock(&np->lock); in netdev_vlan_rx_kill_vid() 604 clear_bit(vid, np->active_vlans); in netdev_vlan_rx_kill_vid() 606 spin_unlock(&np->lock); in netdev_vlan_rx_kill_vid() 633 struct netdev_private *np; in starfire_init_one() local 652 dev = alloc_etherdev(sizeof(*np)); in starfire_init_one() 828 struct netdev_private *np = netdev_priv(dev); mdio_read() local 845 struct netdev_private *np = netdev_priv(dev); mdio_write() local 856 struct netdev_private *np = netdev_priv(dev); netdev_open() local 1056 struct netdev_private *np = netdev_priv(dev); check_duplex() local 1091 struct netdev_private *np = netdev_priv(dev); tx_timeout() local 1121 struct netdev_private *np = netdev_priv(dev); init_ring() local 1172 struct netdev_private *np = netdev_priv(dev); start_tx() local 1296 struct netdev_private *np = netdev_priv(dev); intr_handler() local 1422 struct netdev_private *np = netdev_priv(dev); __netdev_rx() local 1546 struct netdev_private *np = container_of(napi, struct netdev_private, napi); netdev_poll() local 1577 struct netdev_private *np = netdev_priv(dev); refill_rx_ring() local 1610 struct netdev_private *np = netdev_priv(dev); netdev_media_change() local 1685 struct netdev_private *np = netdev_priv(dev); netdev_error() local 1712 struct netdev_private *np = netdev_priv(dev); get_stats() local 1737 set_vlan_mode(struct netdev_private * np) set_vlan_mode() argument 1765 struct netdev_private *np = netdev_priv(dev); set_rx_mode() local 1838 struct netdev_private *np = netdev_priv(dev); get_drvinfo() local 1846 struct netdev_private *np = netdev_priv(dev); get_link_ksettings() local 1856 struct netdev_private *np = netdev_priv(dev); set_link_ksettings() local 1867 struct netdev_private *np = netdev_priv(dev); nway_reset() local 1873 struct netdev_private *np = netdev_priv(dev); get_link() local 1900 struct netdev_private *np = netdev_priv(dev); netdev_ioctl() local 1919 struct netdev_private *np = netdev_priv(dev); netdev_close() local 2014 struct netdev_private *np = netdev_priv(dev); starfire_remove_one() local [all...] |
| /linux/drivers/memory/ |
| H A D | of_memory.c | 28 const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np, in of_get_min_tck() argument 38 ret |= of_property_read_u32(np, "tRPab-min-tck", &min->tRPab); in of_get_min_tck() 39 ret |= of_property_read_u32(np, "tRCD-min-tck", &min->tRCD); in of_get_min_tck() 40 ret |= of_property_read_u32(np, "tWR-min-tck", &min->tWR); in of_get_min_tck() 41 ret |= of_property_read_u32(np, "tRASmin-min-tck", &min->tRASmin); in of_get_min_tck() 42 ret |= of_property_read_u32(np, "tRRD-min-tck", &min->tRRD); in of_get_min_tck() 43 ret |= of_property_read_u32(np, "tWTR-min-tck", &min->tWTR); in of_get_min_tck() 44 ret |= of_property_read_u32(np, "tXP-min-tck", &min->tXP); in of_get_min_tck() 45 ret |= of_property_read_u32(np, "tRTP-min-tck", &min->tRTP); in of_get_min_tck() 46 ret |= of_property_read_u32(np, "tCKE-min-tck", &min->tCKE); in of_get_min_tck() [all …]
|
| /linux/drivers/net/ethernet/natsemi/ |
| H A D | natsemi.c | 205 Most operations are synchronized on the np->lock irq spinlock, except the 672 struct netdev_private *np = netdev_priv(to_net_dev(dev)); in natsemi_show_dspcfg_workaround() local 674 return sprintf(buf, "%s\n", np->dspcfg_workaround ? "on" : "off"); in natsemi_show_dspcfg_workaround() 681 struct netdev_private *np = netdev_priv(to_net_dev(dev)); in natsemi_set_dspcfg_workaround() local 694 spin_lock_irqsave(&np->lock, flags); in natsemi_set_dspcfg_workaround() 696 np->dspcfg_workaround = new_setting; in natsemi_set_dspcfg_workaround() 698 spin_unlock_irqrestore(&np->lock, flags); in natsemi_set_dspcfg_workaround() 705 struct netdev_private *np = netdev_priv(dev); in ns_ioaddr() local 707 return np->ioaddr; in ns_ioaddr() 724 struct netdev_private *np in move_int_phy() local 749 struct netdev_private *np = netdev_priv(dev); natsemi_init_media() local 805 struct netdev_private *np; natsemi_probe1() local 1118 struct netdev_private *np = netdev_priv(dev); mdio_read() local 1133 struct netdev_private *np = netdev_priv(dev); mdio_write() local 1145 struct netdev_private *np = netdev_priv(dev); init_phy_fixup() local 1258 struct netdev_private *np = netdev_priv(dev); switch_port_external() local 1291 struct netdev_private *np = netdev_priv(dev); switch_port_internal() local 1343 struct netdev_private *np = netdev_priv(dev); find_mii() local 1392 struct netdev_private *np = netdev_priv(dev); natsemi_reset() local 1464 struct netdev_private *np = netdev_priv(dev); reset_rx() local 1488 struct netdev_private *np = netdev_priv(dev); natsemi_reload_eeprom() local 1510 struct netdev_private *np = netdev_priv(dev); natsemi_stop_rxtx() local 1530 struct netdev_private *np = netdev_priv(dev); netdev_open() local 1580 struct netdev_private *np = netdev_priv(dev); do_cable_magic() local 1625 struct netdev_private *np = netdev_priv(dev); undo_cable_magic() local 1644 struct netdev_private *np = netdev_priv(dev); check_link() local 1710 struct netdev_private *np = netdev_priv(dev); init_registers() local 1789 struct netdev_private *np = timer_container_of(np, t, timer); netdev_timer() local 1860 struct netdev_private *np = netdev_priv(dev); dump_ring() local 1883 struct netdev_private *np = netdev_priv(dev); ns_tx_timeout() local 1915 struct netdev_private *np = netdev_priv(dev); alloc_ring() local 1927 struct netdev_private *np = netdev_priv(dev); refill_rx() local 1960 struct netdev_private *np = netdev_priv(dev); set_bufsize() local 1970 struct netdev_private *np = netdev_priv(dev); init_ring() local 2008 struct netdev_private *np = netdev_priv(dev); drain_tx() local 2024 struct netdev_private *np = netdev_priv(dev); drain_rx() local 2050 struct netdev_private *np = netdev_priv(dev); free_ring() local 2058 struct netdev_private *np = netdev_priv(dev); reinit_rx() local 2074 struct netdev_private *np = netdev_priv(dev); reinit_ring() local 2088 struct netdev_private *np = netdev_priv(dev); start_tx() local 2141 struct netdev_private *np = netdev_priv(dev); netdev_tx_done() local 2186 struct netdev_private *np = netdev_priv(dev); intr_handler() local 2226 struct netdev_private *np = container_of(napi, struct netdev_private, napi); natsemi_poll() local 2279 struct netdev_private *np = netdev_priv(dev); netdev_rx() local 2396 struct netdev_private *np = netdev_priv(dev); netdev_error() local 2468 struct netdev_private *np = netdev_priv(dev); get_stats() local 2482 struct netdev_private *np = netdev_priv(dev); natsemi_poll_controller() local 2495 struct netdev_private *np = netdev_priv(dev); __set_rx_mode() local 2533 struct netdev_private *np = netdev_priv(dev); natsemi_change_mtu() local 2557 struct netdev_private *np = netdev_priv(dev); set_rx_mode() local 2566 struct netdev_private *np = netdev_priv(dev); get_drvinfo() local 2579 struct netdev_private *np = netdev_priv(dev); get_eeprom_len() local 2586 struct netdev_private *np = netdev_priv(dev); get_link_ksettings() local 2596 struct netdev_private *np = netdev_priv(dev); set_link_ksettings() local 2606 struct netdev_private *np = netdev_priv(dev); get_wol() local 2615 struct netdev_private *np = netdev_priv(dev); set_wol() local 2626 struct netdev_private *np = netdev_priv(dev); get_regs() local 2635 struct netdev_private *np = netdev_priv(dev); get_msglevel() local 2641 struct netdev_private *np = netdev_priv(dev); set_msglevel() local 2668 struct netdev_private *np = netdev_priv(dev); get_eeprom() local 2704 struct netdev_private *np = netdev_priv(dev); netdev_set_wol() local 2734 struct netdev_private *np = netdev_priv(dev); netdev_get_wol() local 2770 struct netdev_private *np = netdev_priv(dev); netdev_set_sopass() local 2802 struct netdev_private *np = netdev_priv(dev); netdev_get_sopass() local 2832 struct netdev_private *np = netdev_priv(dev); netdev_get_ecmd() local 2915 struct netdev_private *np = netdev_priv(dev); netdev_set_ecmd() local 3059 struct netdev_private *np = netdev_priv(dev); netdev_get_eeprom() local 3075 struct netdev_private *np = netdev_priv(dev); netdev_ioctl() local 3127 struct netdev_private *np = netdev_priv(dev); enable_wol_mode() local 3160 struct netdev_private *np = netdev_priv(dev); netdev_close() local 3274 struct netdev_private *np = netdev_priv(dev); natsemi_suspend() local 3325 struct netdev_private *np = netdev_priv(dev); natsemi_resume() local [all...] |
| /linux/net/core/ |
| H A D | netpoll.c | 216 static void refill_skbs(struct netpoll *np) in netpoll_poll_disable() 221 skb_pool = &np->skb_pool; in netpoll_poll_enable() 273 static netdev_tx_t __netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) in find_skb() 284 dev = np->dev; in find_skb() 285 /* npinfo->txq belongs to np->dev, so retries must stay bound to it. */ in find_skb() 316 netpoll_poll_dev(np->dev); in __netpoll_send_skb() 337 netdev_tx_t netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) in __netpoll_send_skb() 342 if (unlikely(!np)) { in __netpoll_send_skb() 347 ret = __netpoll_send_skb(np, skb); in __netpoll_send_skb() 354 static void skb_pool_flush(struct netpoll *np) in __netpoll_send_skb() 227 refill_skbs(struct netpoll * np) refill_skbs() argument 271 find_skb(struct netpoll * np,int len,int reserve) find_skb() argument 310 __netpoll_send_skb(struct netpoll * np,struct sk_buff * skb) __netpoll_send_skb() argument 374 netpoll_udp_checksum(struct netpoll * np,struct sk_buff * skb,int len) netpoll_udp_checksum() argument 399 netpoll_send_skb(struct netpoll * np,struct sk_buff * skb) netpoll_send_skb() argument 416 push_ipv6(struct netpoll * np,struct sk_buff * skb,int len) push_ipv6() argument 439 push_ipv4(struct netpoll * np,struct sk_buff * skb,int len) push_ipv4() argument 466 push_udp(struct netpoll * np,struct sk_buff * skb,int len) push_udp() argument 484 push_eth(struct netpoll * np,struct sk_buff * skb) push_eth() argument 498 netpoll_send_udp(struct netpoll * np,const char * msg,int len) netpoll_send_udp() argument 535 skb_pool_flush(struct netpoll * np) skb_pool_flush() argument 546 struct netpoll *np = refill_skbs_work_handler() local 552 __netpoll_setup(struct netpoll * np,struct net_device * ndev) __netpoll_setup() argument 617 egress_dev(struct netpoll * np,char * buf,size_t bufsz) egress_dev() argument 626 netpoll_wait_carrier(struct netpoll * np,struct net_device * ndev,unsigned int timeout) netpoll_wait_carrier() argument 644 netpoll_take_ipv6(struct netpoll * np,struct net_device * ndev) netpoll_take_ipv6() argument 685 netpoll_take_ipv4(struct netpoll * np,struct net_device * ndev) netpoll_take_ipv4() argument 721 netpoll_local_ip_unset(const struct netpoll * np) netpoll_local_ip_unset() argument 728 netpoll_setup(struct netpoll * np) netpoll_setup() argument 828 __netpoll_cleanup(struct netpoll * np) __netpoll_cleanup() argument 854 __netpoll_free(struct netpoll * np) __netpoll_free() argument 865 do_netpoll_cleanup(struct netpoll * np) do_netpoll_cleanup() argument 873 netpoll_cleanup(struct netpoll * np) netpoll_cleanup() argument [all...] |
| /linux/drivers/video/ |
| H A D | of_display_timing.c | 25 static int parse_timing_property(const struct device_node *np, const char *name, in parse_timing_property() argument 31 prop = of_find_property(np, name, &length); in parse_timing_property() 33 pr_err("%pOF: could not find property %s\n", np, name); in parse_timing_property() 39 ret = of_property_read_u32(np, name, &result->typ); in parse_timing_property() 43 ret = of_property_read_u32_array(np, name, &result->min, cells); in parse_timing_property() 45 pr_err("%pOF: illegal timing specification in %s\n", np, name); in parse_timing_property() 57 static int of_parse_display_timing(const struct device_node *np, in of_parse_display_timing() argument 65 ret |= parse_timing_property(np, "hback-porch", &dt->hback_porch); in of_parse_display_timing() 66 ret |= parse_timing_property(np, "hfront-porch", &dt->hfront_porch); in of_parse_display_timing() 67 ret |= parse_timing_property(np, "hactive", &dt->hactive); in of_parse_display_timing() [all …]
|
| /linux/arch/powerpc/kernel/ |
| H A D | legacy_serial.c | 33 struct device_node *np; member 76 static int __init add_legacy_port(struct device_node *np, int want_index, in add_legacy_port() argument 89 clk = of_get_property(np, "clock-frequency", NULL); in add_legacy_port() 94 spd = of_get_property(np, "current-speed", NULL); in add_legacy_port() 97 rs = of_get_property(np, "reg-shift", NULL); in add_legacy_port() 120 if (legacy_info->np != NULL) { in add_legacy_port() 146 legacy_info->np = of_node_get(np); in add_legacy_port() 156 printk(KERN_DEBUG "Found legacy serial port %d for %pOF\n", index, np); in add_legacy_port() 164 static int __init add_legacy_soc_port(struct device_node *np, in add_legacy_soc_port() argument 169 struct device_node *tsi = of_get_parent(np); in add_legacy_soc_port() [all …]
|
| /linux/drivers/of/ |
| H A D | kobj.c | 63 int __of_add_property_sysfs(struct device_node *np, struct property *pp) in __of_add_property_sysfs() argument 73 if (!of_kset || !of_node_is_attached(np)) in __of_add_property_sysfs() 77 pp->attr.attr.name = safe_name(&np->kobj, pp->name); in __of_add_property_sysfs() 82 rc = sysfs_create_bin_file(&np->kobj, &pp->attr); in __of_add_property_sysfs() 83 WARN(rc, "error adding attribute %s to node %pOF\n", pp->name, np); in __of_add_property_sysfs() 87 void __of_sysfs_remove_bin_file(struct device_node *np, const struct property *prop) in __of_sysfs_remove_bin_file() argument 92 sysfs_remove_bin_file(&np->kobj, &prop->attr); in __of_sysfs_remove_bin_file() 96 void __of_remove_property_sysfs(struct device_node *np, const struct property *prop) in __of_remove_property_sysfs() argument 99 if (of_kset && of_node_is_attached(np)) in __of_remove_property_sysfs() 100 __of_sysfs_remove_bin_file(np, prop); in __of_remove_property_sysfs() [all …]
|
| H A D | of_numa.c | 25 struct device_node *np; in of_numa_parse_cpu_nodes() local 27 for_each_of_cpu_node(np) { in of_numa_parse_cpu_nodes() 28 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_cpu_nodes() 42 struct device_node *np = NULL; in of_numa_parse_memory_nodes() local 47 for_each_node_by_type(np, "memory") { in of_numa_parse_memory_nodes() 48 r = of_property_read_u32(np, "numa-node-id", &nid); in of_numa_parse_memory_nodes() 62 for (i = 0; !r && !of_address_to_resource(np, i, &rsrc); i++) { in of_numa_parse_memory_nodes() 69 of_node_put(np); in of_numa_parse_memory_nodes() 130 struct device_node *np; in of_numa_parse_distance_map() local 132 np = of_find_compatible_node(NULL, NULL, in of_numa_parse_distance_map() [all …]
|
| /linux/drivers/mfd/ |
| H A D | syscon.c | 28 struct device_node *np; member 40 static struct syscon *of_syscon_register(struct device_node *np, bool check_res) in of_syscon_register() argument 58 if (of_address_to_resource(np, 0, &res)) in of_syscon_register() 61 base = of_iomap(np, 0); in of_syscon_register() 66 if (of_property_read_bool(np, "big-endian")) in of_syscon_register() 68 else if (of_property_read_bool(np, "little-endian")) in of_syscon_register() 70 else if (of_property_read_bool(np, "native-endian")) in of_syscon_register() 78 ret = of_property_read_u32(np, "reg-io-width", ®_io_width); in of_syscon_register() 82 ret = of_hwspin_lock_get_id(np, 0); in of_syscon_register() 106 syscon_config.name = kasprintf(GFP_KERNEL, "%pOFn@%pa", np, &res.start); in of_syscon_register() [all …]
|
| /linux/include/linux/ |
| H A D | of_mdio.h | 17 int __of_mdiobus_register(struct mii_bus *mdio, struct device_node *np, 21 struct device_node *np) in of_mdiobus_register() argument 23 return __of_mdiobus_register(mdio, np, THIS_MODULE); in of_mdiobus_register() 27 struct device_node *np, struct module *owner); 31 struct device_node *np) in devm_of_mdiobus_register() argument 33 return __devm_of_mdiobus_register(dev, mdio, np, THIS_MODULE); in devm_of_mdiobus_register() 36 struct mdio_device *of_mdio_find_device(struct device_node *np); 43 of_phy_get_and_connect(struct net_device *dev, struct device_node *np, 47 int of_phy_register_fixed_link(struct device_node *np); 48 void of_phy_deregister_fixed_link(struct device_node *np); [all …]
|
| /linux/drivers/pci/pwrctrl/ |
| H A D | core.c | 152 static void pci_pwrctrl_power_off_device(struct device_node *np) in pci_pwrctrl_power_off_device() argument 157 for_each_available_child_of_node_scoped(np, child) in pci_pwrctrl_power_off_device() 160 pdev = of_find_device_by_node(np); in pci_pwrctrl_power_off_device() 184 struct device_node *np = parent->of_node; in pci_pwrctrl_power_off_devices() local 186 for_each_available_child_of_node_scoped(np, child) in pci_pwrctrl_power_off_devices() 205 static int pci_pwrctrl_power_on_device(struct device_node *np) in pci_pwrctrl_power_on_device() argument 210 for_each_available_child_of_node_scoped(np, child) { in pci_pwrctrl_power_on_device() 216 pdev = of_find_device_by_node(np); in pci_pwrctrl_power_on_device() 247 struct device_node *np = parent->of_node; in pci_pwrctrl_power_on_devices() local 251 for_each_available_child_of_node(np, chil in pci_pwrctrl_power_on_devices() 281 pci_pwrctrl_is_required(struct device_node * np) pci_pwrctrl_is_required() argument 313 pci_pwrctrl_create_device(struct device_node * np,struct device * parent) pci_pwrctrl_create_device() argument 374 pci_pwrctrl_destroy_device(struct device_node * np) pci_pwrctrl_destroy_device() argument 401 struct device_node *np = parent->of_node; pci_pwrctrl_destroy_devices() local [all...] |
| /linux/arch/powerpc/platforms/powermac/ |
| H A D | setup.c | 86 struct device_node *np; in pmac_show_cpuinfo() local 103 np = of_find_node_by_path("/"); in pmac_show_cpuinfo() 104 if (np != NULL) { in pmac_show_cpuinfo() 105 pp = of_get_property(np, "model", NULL); in pmac_show_cpuinfo() 110 pp = of_get_property(np, "compatible", &plen); in pmac_show_cpuinfo() 121 of_node_put(np); in pmac_show_cpuinfo() 130 np = of_find_node_by_name(NULL, "l2-cache"); in pmac_show_cpuinfo() 131 if (np == NULL) in pmac_show_cpuinfo() 132 np = of_find_node_by_type(NULL, "cache"); in pmac_show_cpuinfo() 133 if (np != NULL) { in pmac_show_cpuinfo() [all …]
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | reconfig.c | 25 struct device_node *np; in pSeries_reconfig_add_node() local 28 np = kzalloc_obj(*np); in pSeries_reconfig_add_node() 29 if (!np) in pSeries_reconfig_add_node() 32 np->full_name = kstrdup(kbasename(path), GFP_KERNEL); in pSeries_reconfig_add_node() 33 if (!np->full_name) in pSeries_reconfig_add_node() 36 np->properties = proplist; in pSeries_reconfig_add_node() 37 of_node_set_flag(np, OF_DYNAMIC); in pSeries_reconfig_add_node() 38 of_node_init(np); in pSeries_reconfig_add_node() 40 np->parent = pseries_of_derive_parent(path); in pSeries_reconfig_add_node() 41 if (IS_ERR(np->parent)) { in pSeries_reconfig_add_node() [all …]
|
| /linux/drivers/net/fddi/skfp/ |
| H A D | pcmplc.c | 196 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold); 197 static void sm_ph_lem_stop(struct s_smc *smc, int np); 210 EV_TOKEN(EVENT_PCM+phy->np,event)) ; in start_pcm_timer0() 229 int np ; in pcm_init() local 233 for (np = 0,phy = smc->y ; np < NUMPHYS ; np++,phy++) { in pcm_init() 237 phy->np = np ; in pcm_init() 241 mib->fddiPORTMy_Type = (np == PS) ? TS : TM ; in pcm_init() 244 mib->fddiPORTMy_Type = (np == PA) ? TA : in pcm_init() 245 (np == PB) ? TB : TM ; in pcm_init() 252 mib->fddiPORTMy_Type = (np == PS) ? TS : TNONE ; in pcm_init() [all …]
|
| /linux/drivers/clocksource/ |
| H A D | timer-ti-dm-systimer.c | 153 struct device_node *np; in dmtimer_systimer_check_counter32k() local 158 np = of_find_matching_node(NULL, counter_match_table); in dmtimer_systimer_check_counter32k() 159 if (!np) { in dmtimer_systimer_check_counter32k() 165 if (of_device_is_available(np)) in dmtimer_systimer_check_counter32k() 170 of_node_put(np); in dmtimer_systimer_check_counter32k() 191 static bool __init dmtimer_is_preferred(struct device_node *np) in dmtimer_is_preferred() argument 193 if (!of_device_is_available(np)) in dmtimer_is_preferred() 196 if (!of_property_read_bool(np->parent, in dmtimer_is_preferred() 200 if (!of_property_read_bool(np->parent, "ti,no-idle")) in dmtimer_is_preferred() 204 if (!of_property_read_bool(np, "t in dmtimer_is_preferred() 239 struct device_node *np; dmtimer_systimer_assign_alwon() local 287 struct device_node *np; dmtimer_systimer_find_first_available() local 324 dmtimer_systimer_init_clock(struct dmtimer_systimer * t,struct device_node * np,const char * name,unsigned long * rate) dmtimer_systimer_init_clock() argument 361 dmtimer_systimer_setup(struct device_node * np,struct dmtimer_systimer * t) dmtimer_systimer_setup() argument 534 dmtimer_clkevt_init_common(struct dmtimer_clockevent * clkevt,struct device_node * np,unsigned int features,const struct cpumask * cpumask,const char * name,int rating) dmtimer_clkevt_init_common() argument 598 dmtimer_clockevent_init(struct device_node * np) dmtimer_clockevent_init() argument 636 dmtimer_percpu_timer_init(struct device_node * np,int cpu) dmtimer_percpu_timer_init() argument 687 dmtimer_percpu_quirk_init(struct device_node * np,u32 pa) dmtimer_percpu_quirk_init() argument 753 dmtimer_clocksource_init(struct device_node * np) dmtimer_clocksource_init() argument 811 dmtimer_systimer_init(struct device_node * np) dmtimer_systimer_init() argument [all...] |
| H A D | timer-of.c | 33 * @np: a device tree node pointer 44 static int timer_of_irq_init(struct device_node *np, in timer_of_irq_init() argument 52 of_irq->irq = ret = of_irq_get_byname(np, of_irq->name); in timer_of_irq_init() 55 of_irq->name, np); in timer_of_irq_init() 59 of_irq->irq = irq_of_parse_and_map(np, of_irq->index); in timer_of_irq_init() 62 pr_err("Failed to map interrupt for %pOF\n", np); in timer_of_irq_init() 68 np->full_name, clkevt); in timer_of_irq_init() 70 pr_err("Failed to request irq %d for %pOF\n", of_irq->irq, np); in timer_of_irq_init() 94 * @np: a device tree node pointer 101 static int timer_of_clk_init(struct device_node *np, in timer_of_clk_init() argument 145 timer_of_base_init(struct device_node * np,struct of_timer_base * of_base) timer_of_base_init() argument 159 timer_of_init(struct device_node * np,struct timer_of * to) timer_of_init() argument [all...] |