Home
last modified time | relevance | path

Searched refs:np (Results 1 – 25 of 2280) sorted by relevance

12345678910>>...92

/openbmc/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c944 sym_name(np), np->sv_scntl3, np->sv_dmode, np->sv_dcntl,
945 np->sv_ctest3, np->sv_ctest4, np->sv_ctest5);
949 sym_name(np), np->rv_scntl3, np->rv_dmode, np->rv_dcntl,
950 np->rv_ctest3, np->rv_ctest4, np->rv_ctest5);
1019 OUTL(np, nc_dsa, np->hcb_ba);
1480 if (np->last_cp && np->iarb_count < np->iarb_max) {
1905 memcpy_toio(np->s.ramaddr, np->scripta0, np->scripta_sz);
1918 OUTL(np, nc_dsa, np->hcb_ba);
4456 np->lastmsg = np->msgout[0];
5652 if (!np->scripta0 || !np->scriptb0 || !np->scriptz0)
[all …]
H A Dsym_nvram.c46 np->rv_scntl0 &= ~0x0a; in sym_nvram_setup_host()
49 np->verbose += 1; in sym_nvram_setup_host()
161 sym_name(np), i, in sym_display_Symbios_nvram()
211 sym_name(np), i, in sym_display_Tekram_nvram()
263 INB(np, nc_mbox1); in S24C16_set_bit()
541 INB(np, nc_mbox1); in T93C46_Clk()
552 T93C46_Clk(np, gpreg); in T93C46_Read_Bit()
569 INB(np, nc_mbox1); in T93C46_Write_Bit()
572 T93C46_Clk(np, gpreg); in T93C46_Write_Bit()
582 INB(np, nc_mbox1); in T93C46_Stop()
[all …]
H A Dsym_hipd.h184 #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
200 #define OUTONB(np, r, m) OUTB(np, r, INB(np, r) | (m)) argument
201 #define OUTOFFB(np, r, m) OUTB(np, r, INB(np, r) & ~(m)) argument
202 #define OUTONW(np, r, m) OUTW(np, r, INW(np, r) | (m)) argument
203 #define OUTOFFW(np, r, m) OUTW(np, r, INW(np, r) & ~(m)) argument
204 #define OUTONL(np, r, m) OUTL(np, r, INL(np, r) | (m)) argument
205 #define OUTOFFL(np, r, m) OUTL(np, r, INL(np, r) & ~(m)) argument
1025 #define use_dac(np) (np)->use_dac argument
[all …]
/openbmc/linux/drivers/net/ethernet/
H A Dfealnx.c614 np->mii.phy_id = np->phys[0]; in fealnx_init_one()
1173 np->crvalue = np->crvalue_sv; in reset_timer()
1174 np->imrvalue = np->imrvalue_sv; in reset_timer()
1233 np->cur_rx = &np->rx_ring[0]; in init_ring()
1234 np->lack_rxbuf = np->rx_ring; in init_ring()
1271 np->cur_tx = &np->tx_ring[0]; in init_ring()
1272 np->cur_tx_copy = &np->tx_ring[0]; in init_ring()
1379 np->cur_tx = &np->tx_ring[0]; in reset_tx_descriptors()
1380 np->cur_tx_copy = &np->tx_ring[0]; in reset_tx_descriptors()
1576 np->crvalue_sv = np->crvalue; in intr_handler()
[all …]
/openbmc/linux/drivers/net/ethernet/nvidia/
H A Dforcedeth.c1919 np->get_rx = np->rx_ring; in nv_init_rx()
1920 np->put_rx = np->rx_ring; in nv_init_rx()
1925 np->last_rx.ex = &np->rx_ring.ex[np->rx_ring_size-1]; in nv_init_rx()
1928 np->last_rx_ctx = &np->rx_skb[np->rx_ring_size-1]; in nv_init_rx()
1950 np->get_tx = np->tx_ring; in nv_init_tx()
1951 np->put_tx = np->tx_ring; in nv_init_tx()
1956 np->last_tx.ex = &np->tx_ring.ex[np->tx_ring_size-1]; in nv_init_tx()
1959 np->last_tx_ctx = &np->tx_skb[np->tx_ring_size-1]; in nv_init_tx()
2090 …return (u32)(np->tx_ring_size - ((np->tx_ring_size + (np->put_tx_ctx - np->get_tx_ctx)) % np->tx_r… in nv_get_empty_tx_slots()
4756 np->tx_ring.ex = &np->rx_ring.ex[np->rx_ring_size]; in nv_set_ringparam()
[all …]
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Dwinbond-840.c451 np->mii_if.phy_id = np->phys[0]; in w840_probe1()
786 np->rx_head_desc = &np->rx_ring[0]; in init_rxtx_rings()
791 np->rx_ring[i].length = np->rx_buf_sz; in init_rxtx_rings()
821 np->tx_q_bytes = np->dirty_tx = np->cur_tx = 0; in init_rxtx_rings()
932 np->cur_tx, np->dirty_tx, np->tx_full, np->tx_q_bytes); in tx_timeout()
979 np->rx_ring, np->ring_dma_addr); in free_ringdesc()
1048 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done()
1126 np->cur_tx != np->dirty_tx) { in intr_handler()
1252 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in netdev_rx()
1476 np->cur_tx, np->dirty_tx, in netdev_close()
[all …]
/openbmc/linux/drivers/net/ethernet/dlink/
H A Dsundance.c621 np->mii_if.phy_id = np->phys[0]; in sundance_probe1()
694 np->rx_ring, np->rx_ring_dma); in sundance_probe1()
697 np->tx_ring, np->tx_ring_dma); in sundance_probe1()
1019 np->cur_rx = np->cur_tx = 0; in init_ring()
1020 np->dirty_rx = np->dirty_tx = 0; in init_ring()
1069 for (; np->cur_tx - np->cur_task > 0; np->cur_task++) { in tx_poll()
1161 np->cur_tx = np->dirty_tx = 0; in reset_tx()
1258 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler()
1284 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in intr_handler()
1838 dev->name, np->cur_tx, np->dirty_tx, np->cur_rx, np->dirty_rx); in netdev_close()
[all …]
H A Ddl2k.c148 np->pdev = pdev; in rio_probe1()
278 np->rx_coalesce, np->rx_timeout*640); in rio_probe1()
279 if (np->vlan) in rio_probe1()
490 np->tx_ring[i].next_desc = cpu_to_le64(np->tx_ring_dma + in alloc_list()
507 np->rx_ring[i].next_desc = cpu_to_le64(np->rx_ring_dma + in alloc_list()
652 struct netdev_private *np = from_timer(np, t, timer); in rio_timer() local
660 if (np->cur_rx - np->old_rx >= RX_RING_SIZE) { in rio_timer()
663 for (; np->cur_rx - np->old_rx > 0; np->old_rx++) { in rio_timer()
740 if (entry % np->tx_coalesce == 0 || np->speed == 10) in start_xmit()
754 np->cur_tx = (np->cur_tx + 1) % TX_RING_SIZE; in start_xmit()
[all …]
/openbmc/linux/drivers/char/hw_random/
H A Dn2-drv.c435 np->buffer = np->test_data >> 32; in n2rng_data_read()
587 err = n2rng_entropy_diag_read(np, unit, np->test_control, in n2rng_control_selftest()
700 struct n2rng *np; in n2rng_probe() local
707 np = devm_kzalloc(&op->dev, sizeof(*np), GFP_KERNEL); in n2rng_probe()
708 if (!np) in n2rng_probe()
710 np->op = op; in n2rng_probe()
751 np->hvapi_major, np->hvapi_minor); in n2rng_probe()
752 np->units = devm_kcalloc(&op->dev, np->num_units, sizeof(*np->units), in n2rng_probe()
755 if (!np->units) in n2rng_probe()
765 np->num_units); in n2rng_probe()
[all …]
/openbmc/linux/drivers/net/ethernet/sun/
H A Dniu.c301 niu_ldg_rearm(np, &np->ldg[i], on); in niu_enable_interrupts()
1280 err = mdio_read(np, np->phy_addr, in bcm8704_reset()
1292 err = mdio_read(np, np->phy_addr, in bcm8704_reset()
2193 netif_warn(np, link, np->dev, in link_status_10g_hotplug()
3784 struct niu *np = lp->np; in niu_poll() local
4214 struct niu *np = lp->np; in niu_interrupt() local
4503 rp->np = np; in niu_alloc_channels()
4543 rp->np = np; in niu_alloc_channels()
4741 nw64(DEF_RDC(np->port), np->parent->rdc_default[np->port]); in niu_init_rdc_groups()
9106 np->ldg[0].irq = np->dev->irq; in niu_ldg_init()
[all …]
/openbmc/linux/drivers/memory/
H A Dof_memory.c63 static int of_do_get_timings(struct device_node *np, in of_do_get_timings() argument
71 ret |= of_property_read_u32(np, "tRCD", &tim->tRCD); in of_do_get_timings()
72 ret |= of_property_read_u32(np, "tWR", &tim->tWR); in of_do_get_timings()
74 ret |= of_property_read_u32(np, "tRRD", &tim->tRRD); in of_do_get_timings()
75 ret |= of_property_read_u32(np, "tWTR", &tim->tWTR); in of_do_get_timings()
76 ret |= of_property_read_u32(np, "tXP", &tim->tXP); in of_do_get_timings()
77 ret |= of_property_read_u32(np, "tRTP", &tim->tRTP); in of_do_get_timings()
80 ret |= of_property_read_u32(np, "tFAW", &tim->tFAW); in of_do_get_timings()
226 ret |= of_property_read_u32(np, "tRC", &tim->tRC); in of_lpddr3_do_get_timings()
229 ret |= of_property_read_u32(np, "tWR", &tim->tWR); in of_lpddr3_do_get_timings()
[all …]
/openbmc/linux/drivers/clk/at91/
H A Ddt-compat.c33 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()
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()
85 const char *name = np->name; in of_sama5d2_clk_audio_pll_pmc_setup()
90 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_pmc_setup()
142 num = of_get_child_count(np); in of_sama5d2_clk_generated_setup()
191 const char *name = np->name; in of_sama5d4_clk_h32mx_setup()
256 const char *name = np->name; in of_at91rm9200_clk_main_osc_setup()
286 const char *name = np->name; in of_at91sam9x5_clk_main_rc_osc_setup()
[all …]
/openbmc/linux/drivers/net/ethernet/adaptec/
H A Dstarfire.c814 np->mii_if.phy_id = np->phys[0]; in starfire_init_one()
816 memset(&np->mii_if, 0, sizeof(np->mii_if)); in starfire_init_one()
899 np->tx_done_q = np->queue_mem; in netdev_open()
900 np->tx_done_q_dma = np->queue_mem_dma; in netdev_open()
1132 np->cur_rx = np->cur_tx = np->reap_tx = 0; in init_ring()
1133 np->dirty_rx = np->dirty_tx = np->rx_done = np->tx_done = 0; in init_ring()
1385 np->tx_done_q[np->tx_done].status = 0; in intr_handler()
1590 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx_ring()
1939 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
1940 np->cur_rx, np->dirty_rx); in netdev_close()
[all …]
/openbmc/linux/drivers/net/ethernet/natsemi/
H A Dnatsemi.c949 pci_name(np->pci_dev), np->srr); in natsemi_probe1()
1366 pci_name(np->pci_dev), np->mii, i); in find_mii()
1930 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx()
1974 np->dirty_tx = np->cur_tx = 0; in init_ring()
1989 np->rx_head_desc = &np->rx_ring[0]; in init_ring()
2053 np->rx_ring, np->ring_dma); in free_ring()
2064 np->rx_head_desc = &np->rx_ring[0]; in reinit_rx()
2079 np->dirty_tx = np->cur_tx = 0; in reinit_ring()
2143 for (; np->cur_tx - np->dirty_tx > 0; np->dirty_tx++) { in netdev_tx_done()
3170 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
[all …]
/openbmc/linux/drivers/scsi/
H A Dncr53c8xx.c3799 np->rv_dmode = np->sv_dmode; in ncr_prepare_setting()
3800 np->rv_dcntl = np->sv_dcntl; in ncr_prepare_setting()
3958 ncr_name(np), np->sv_scntl3, np->sv_dmode, np->sv_dcntl, in ncr_prepare_setting()
3959 np->sv_ctest3, np->sv_ctest4, np->sv_ctest5); in ncr_prepare_setting()
3963 ncr_name(np), np->rv_scntl3, np->rv_dmode, np->rv_dcntl, in ncr_prepare_setting()
3964 np->rv_ctest3, np->rv_ctest4, np->rv_ctest5); in ncr_prepare_setting()
3969 ncr_name(np), np->paddr2); in ncr_prepare_setting()
8120 np->p_ncb = vtobus(np);
8201 np->scripth = np->scripth0;
8203 np->p_script = (np->paddr2) ? np->paddr2 : vtobus(np->script0);
[all …]
/openbmc/linux/drivers/of/
H A Dunittest.c185 if (!np) { in of_unittest_dynamic()
370 if (nh->np->phandle == np->phandle) { in of_unittest_check_phandles()
372 np->phandle, nh->np, np); in of_unittest_check_phandles()
382 nh->np = np; in of_unittest_check_phandles()
1606 np->sibling = np->parent->child; in attach_node_and_children()
1607 np->parent->child = np; in attach_node_and_children()
3583 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3596 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3627 for (np = overlay_base_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
3632 for (last_sibling = np = of_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
[all …]
H A Dbase.c63 if (!np) in of_node_name_eq()
93 for (; np; np = np->parent) in of_bus_n_addr_cells()
104 np = np->parent; in of_n_addr_cells()
114 for (; np; np = np->parent) in of_bus_n_size_cells()
125 np = np->parent; in of_n_size_cells()
162 if (np && handle == np->phandle) in __of_phandle_cache_inv_entry()
236 while (np->parent && !np->sibling) in __of_find_all_nodes()
237 np = np->parent; in __of_find_all_nodes()
1719 ap->np = np; in of_alias_add()
1819 if (np == app->np) { in of_alias_get_id()
[all …]
H A Dkobj.c125 np->kobj.kset = of_kset; in __of_attach_node_sysfs()
126 if (!np->parent) { in __of_attach_node_sysfs()
131 name = safe_name(&np->parent->kobj, kbasename(np->full_name)); in __of_attach_node_sysfs()
132 parent = &np->parent->kobj; in __of_attach_node_sysfs()
142 for_each_property_of_node(np, pp) in __of_attach_node_sysfs()
143 __of_add_property_sysfs(np, pp); in __of_attach_node_sysfs()
145 of_node_get(np); in __of_attach_node_sysfs()
158 if (of_node_is_attached(np)) { in __of_detach_node_sysfs()
159 for_each_property_of_node(np, pp) in __of_detach_node_sysfs()
161 kobject_del(&np->kobj); in __of_detach_node_sysfs()
[all …]
/openbmc/u-boot/drivers/core/
H A Dof_access.c72 np = np->parent; in of_n_addr_cells()
88 np = np->parent; in of_n_size_cells()
127 if (!np) in of_find_property()
157 while (np->parent && !np->sibling) in of_find_all_nodes()
158 np = np->parent; in of_find_all_nodes()
349 if (!np) in of_find_node_opts_by_path()
355 np = __of_find_node_by_path(np, path); in of_find_node_opts_by_path()
454 if (!np) in of_read_u32()
492 if (!np) in of_read_u64()
724 ap->np = np; in of_alias_add()
[all …]
/openbmc/linux/net/core/
H A Dnetpoll.c414 if (np->ipv6) in netpoll_send_udp()
421 skb = find_skb(np, total_len + np->dev->needed_tailroom, in netpoll_send_udp()
506 np_info(np, "local port %d\n", np->local_port); in netpoll_print_options()
507 if (np->ipv6) in netpoll_print_options()
511 np_info(np, "interface '%s'\n", np->dev_name); in netpoll_print_options()
512 np_info(np, "remote port %d\n", np->remote_port); in netpoll_print_options()
513 if (np->ipv6) in netpoll_print_options()
576 strscpy(np->dev_name, cur, sizeof(np->dev_name)); in netpoll_parse_options()
744 np_info(np, "local IP %pI4\n", &np->local_ip.ip); in netpoll_setup()
852 kfree(np); in __netpoll_free()
[all …]
/openbmc/linux/drivers/video/
H A Dof_display_timing.c31 prop = of_find_property(np, name, &length); in parse_timing_property()
98 if (of_property_read_bool(np, "interlaced")) in of_parse_display_timing()
100 if (of_property_read_bool(np, "doublescan")) in of_parse_display_timing()
102 if (of_property_read_bool(np, "doubleclk")) in of_parse_display_timing()
125 if (!np) in of_get_display_timing()
128 timing_np = of_get_child_by_name(np, name); in of_get_display_timing()
151 if (!np) in of_get_display_timings()
183 pr_err("%pOF: no timings specified\n", np); in of_get_display_timings()
205 np); in of_get_display_timings()
216 np, disp->num_timings + 1); in of_get_display_timings()
[all …]
/openbmc/linux/drivers/misc/cxl/
H A Dof.c76 naddr = of_n_addr_cells(np); in read_phys_addr()
77 nsize = of_n_size_cells(np); in read_phys_addr()
160 read_prop_string(np, "name"); in cxl_of_read_afu_properties()
163 rc = read_phys_addr(np, "reg", afu); in cxl_of_read_afu_properties()
178 read_prop_string(np, "device_type"); in cxl_of_read_afu_properties()
353 naddr = of_n_addr_cells(np); in cxl_of_read_adapter_properties()
368 read_prop_string(np, "name"); in cxl_of_read_adapter_properties()
369 read_prop_string(np, "model"); in cxl_of_read_adapter_properties()
454 struct device_node *np = NULL; in cxl_of_probe() local
462 np = pdev->dev.of_node; in cxl_of_probe()
[all …]
/openbmc/linux/arch/powerpc/kernel/
H A Dlegacy_serial.c33 struct device_node *np; member
143 legacy_serial_infos[index].np = of_node_get(np); in add_legacy_port()
154 index, np); in add_legacy_port()
420 index = add_legacy_soc_port(np, np); in find_legacy_serial_ports()
443 for (np = NULL; (np = of_find_all_nodes(np));) { in find_legacy_serial_ports()
459 pci = np; in find_legacy_serial_ports()
500 np = of_get_parent(np); in fixup_port_irq()
501 if (np == NULL) in fixup_port_irq()
504 of_node_put(np); in fixup_port_irq()
518 np); in fixup_port_irq()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpiolib-of.c272 np_propname = np; in of_gpio_set_polarity_by_property()
732 *name = np->name; in of_parse_own_gpio()
789 of_node_put(np); in of_gpiochip_scan_gpios()
968 of_node_put(np); in of_mm_gpiochip_add_data()
1005 if (!np) in of_gpiochip_add_pin_range()
1028 np); in of_gpiochip_add_pin_range()
1044 np); in of_gpiochip_add_pin_range()
1062 np); in of_gpiochip_add_pin_range()
1086 if (!np) in of_gpiochip_add()
1101 of_node_get(np); in of_gpiochip_add()
[all …]
/openbmc/linux/include/linux/
H A Dof.h71 struct device_node *np; member
266 return np ? np->full_name : "<no-node>"; in of_node_full_name()
952 return args.np; in of_parse_phandle()
1448 for_each_child_of_node(np, child) in of_get_child_count()
1511 struct device_node *np; member
1554 struct device_node *np) in of_changeset_attach_node() argument
1560 struct device_node *np) in of_changeset_detach_node() argument
1587 struct device_node *np,
1590 struct device_node *np,
1594 struct device_node *np,
[all …]

12345678910>>...92