Home
last modified time | relevance | path

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

12345678910>>...69

/drivers/scsi/sym53c8xx_2/
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 …]
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 …]
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 …]
A Dsym_fw.c106 if (!(np->features & FE_LED0)) { in sym_fw1_patch()
150 if (!(np->features & FE_LED0)) { in sym_fw2_patch()
161 if (!use_dac(np)) { in sym_fw2_patch()
190 if (!(np->features & FE_C10)) { in sym_fw2_patch()
201 np->pciclk_khz < 60000)) { in sym_fw2_patch()
216 cpu_to_scr(np->scripta_ba + in sym_fw2_patch()
219 cpu_to_scr(np->scripta_ba + in sym_fw2_patch()
256 pa = (u32 *) &np->fwa_bas; in sym_fw_setup_bus_addresses()
258 pa[i] = np->scripta_ba + po[i]; in sym_fw_setup_bus_addresses()
264 pa = (u32 *) &np->fwb_bas; in sym_fw_setup_bus_addresses()
[all …]
A Dsym_glue.c548 struct sym_hcb *np = timer_container_of(np, t, s.timer); in sym53c8xx_timer() local
552 sym_timer(np); in sym53c8xx_timer()
1220 (int) (np->minsync_dt ? np->minsync_dt : np->minsync), in sym_show_info()
1269 sym_mfree_dma(np, sizeof(*np), "HCB"); in sym_free_resources()
1314 np = __sym_calloc_dma(&pdev->dev, sizeof(*np), "HCB"); in sym_attach()
1315 if (!np) in sym_attach()
1327 np->hcb_ba = vtobus(np); in sym_attach()
1344 sprintf(np->s.inst_name, "sym%d", np->s.unit); in sym_attach()
1348 set_dac(np); in sym_attach()
1388 sym_timer (np); in sym_attach()
[all …]
/drivers/net/ethernet/nvidia/
A Dforcedeth.c1905 np->get_rx = np->rx_ring; in nv_init_rx()
1906 np->put_rx = np->rx_ring; in nv_init_rx()
1911 np->last_rx.ex = &np->rx_ring.ex[np->rx_ring_size-1]; in nv_init_rx()
1914 np->last_rx_ctx = &np->rx_skb[np->rx_ring_size-1]; in nv_init_rx()
1936 np->get_tx = np->tx_ring; in nv_init_tx()
1937 np->put_tx = np->tx_ring; in nv_init_tx()
1942 np->last_tx.ex = &np->tx_ring.ex[np->tx_ring_size-1]; in nv_init_tx()
1945 np->last_tx_ctx = &np->tx_skb[np->tx_ring_size-1]; in nv_init_tx()
2076 …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()
4742 np->tx_ring.ex = &np->rx_ring.ex[np->rx_ring_size]; in nv_set_ringparam()
[all …]
/drivers/net/ethernet/
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 …]
/drivers/net/ethernet/dec/tulip/
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 …]
/drivers/net/ethernet/dlink/
A Ddl2k.c291 np->rx_coalesce, np->rx_timeout*640); in rio_probe1()
292 if (np->vlan) in rio_probe1()
502 np->tx_ring[i].next_desc = cpu_to_le64(np->tx_ring_dma + in alloc_list()
519 np->rx_ring[i].next_desc = cpu_to_le64(np->rx_ring_dma + in alloc_list()
584 dw32(RxDMAIntCtrl, np->rx_coalesce | np->rx_timeout << 16); in rio_hw_init()
672 if (np->cur_rx - np->old_rx >= RX_RING_SIZE) { in rio_timer()
675 for (; np->cur_rx - np->old_rx > 0; np->old_rx++) { in rio_timer()
752 if (entry % np->tx_coalesce == 0 || np->speed == 10) in start_xmit()
766 np->cur_tx = (np->cur_tx + 1) % TX_RING_SIZE; in start_xmit()
767 if ((np->cur_tx - np->old_tx + TX_RING_SIZE) % TX_RING_SIZE in start_xmit()
[all …]
/drivers/char/hw_random/
A Dn2-drv.c436 np->buffer = np->test_data >> 32; in n2rng_data_read()
588 err = n2rng_entropy_diag_read(np, unit, np->test_control, in n2rng_control_selftest()
700 struct n2rng *np; in n2rng_probe() local
703 np = devm_kzalloc(&op->dev, sizeof(*np), GFP_KERNEL); in n2rng_probe()
704 if (!np) in n2rng_probe()
706 np->op = op; in n2rng_probe()
747 np->hvapi_major, np->hvapi_minor); in n2rng_probe()
748 np->units = devm_kcalloc(&op->dev, np->num_units, sizeof(*np->units), in n2rng_probe()
751 if (!np->units) in n2rng_probe()
761 np->num_units); in n2rng_probe()
[all …]
/drivers/net/ethernet/sun/
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()
9132 np->ldg[0].irq = np->dev->irq; in niu_ldg_init()
[all …]
/drivers/net/ethernet/adaptec/
A Dstarfire.c806 np->mii_if.phy_id = np->phys[0]; in starfire_init_one()
808 memset(&np->mii_if, 0, sizeof(np->mii_if)); in starfire_init_one()
891 np->tx_done_q = np->queue_mem; in netdev_open()
892 np->tx_done_q_dma = np->queue_mem_dma; in netdev_open()
1124 np->cur_rx = np->cur_tx = np->reap_tx = 0; in init_ring()
1125 np->dirty_rx = np->dirty_tx = np->rx_done = np->tx_done = 0; in init_ring()
1377 np->tx_done_q[np->tx_done].status = 0; in intr_handler()
1582 for (; np->cur_rx - np->dirty_rx > 0; np->dirty_rx++) { in refill_rx_ring()
1931 dev->name, np->cur_tx, np->dirty_tx, in netdev_close()
1932 np->cur_rx, np->dirty_rx); in netdev_close()
[all …]
/drivers/clk/at91/
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 …]
/drivers/net/ethernet/natsemi/
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 …]
/drivers/memory/
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 …]
/drivers/scsi/
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()
8121 np->p_ncb = vtobus(np);
8202 np->scripth = np->scripth0;
8204 np->p_script = (np->paddr2) ? np->paddr2 : vtobus(np->script0);
[all …]
/drivers/of/
A Dunittest.c194 if (!np) { in of_unittest_dynamic()
374 if (nh->np->phandle == np->phandle) { in of_unittest_check_phandles()
376 np->phandle, nh->np, np); in of_unittest_check_phandles()
386 nh->np = np; in of_unittest_check_phandles()
1418 np); in of_unittest_reg()
1967 np->sibling = np->parent->child; in attach_node_and_children()
1968 np->parent->child = np; in attach_node_and_children()
3936 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3949 for (np = overlay_base_root->child; np; np = np->sibling) { in of_unittest_overlay_high_level()
3980 for (np = overlay_base_root->child; np; np = np->sibling) in of_unittest_overlay_high_level()
[all …]
A Dbase.c64 if (!np) in of_node_name_eq()
99 for (; np; np = np->parent) { in of_bus_n_addr_cells()
116 np = np->parent; in of_n_addr_cells()
126 for (; np; np = np->parent) { in of_bus_n_size_cells()
143 np = np->parent; in of_n_size_cells()
180 if (np && handle == np->phandle) in __of_phandle_cache_inv_entry()
254 while (np->parent && !np->sibling) in __of_find_all_nodes()
255 np = np->parent; in __of_find_all_nodes()
1834 ap->np = np; in of_alias_add()
1931 if (np == app->np) { in of_alias_get_id()
[all …]
A Ddynamic.c194 pr.dn = np; in of_property_notify()
209 np->name = __of_get_property(np, "name", NULL); in __of_attach_node()
225 np->sibling = np->parent->child; in __of_attach_node()
226 np->parent->child = np; in __of_attach_node()
244 rd.dn = np; in of_attach_node()
298 rd.dn = np; in of_detach_node()
471 if (np) { in __of_node_dup()
508 if (!np) in of_changeset_create_node()
518 return np; in of_changeset_create_node()
528 kref_read(&ce->np->kobj.kref), ce->np); in __of_changeset_entry_destroy()
[all …]
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 …]
/drivers/video/
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 …]
/drivers/gpio/
A Dgpiolib-of.c320 np_propname = np; in of_gpio_set_polarity_by_property()
774 gpiospec.np = chip_np; in of_parse_own_gpio()
803 *name = np->name; in of_parse_own_gpio()
1088 of_node_put(np); in of_mm_gpiochip_add_data()
1128 if (!np) in of_gpiochip_add_pin_range()
1186 np); in of_gpiochip_add_pin_range()
1214 np); in of_gpiochip_add_pin_range()
1232 np); in of_gpiochip_add_pin_range()
1256 if (!np) in of_gpiochip_add()
1277 of_node_get(np); in of_gpiochip_add()
[all …]
/drivers/mfd/
A Dsyscon.c28 struct device_node *np; member
61 base = of_iomap(np, 0); in of_syscon_register()
126 clk = of_clk_get(np, 0); in of_syscon_register()
150 syscon->np = np; in of_syscon_register()
177 if (entry->np == np) { in device_node_get_regmap()
212 if (!np || !regmap) in of_syscon_register_regmap()
223 if (entry->np == np) { in of_syscon_register_regmap()
229 syscon->np = np; in of_syscon_register_regmap()
274 return device_node_get_regmap(np, of_device_is_compatible(np, "syscon"), true); in syscon_node_to_regmap()
303 syscon_np = np; in syscon_regmap_lookup_by_phandle()
[all …]
/drivers/opp/
A Dof.c51 if (!np) in _managed_opp()
55 if (opp_table->np == np) { in _managed_opp()
155 if (!np) { in _opp_table_alloc_required_tables()
210 if (!np) in _of_init_opp_table()
278 np = of_parse_required_opp(opp->np, index); in _link_required_opps()
412 if (!np) in _bandwidth_supported()
426 if (!np) { in _bandwidth_supported()
451 if (!np) in dev_pm_opp_of_find_icc_paths()
888 new_opp->np = of_node_get(np); in _opp_add_static_v2()
1277 if (!np) { in dev_pm_opp_of_get_sharing_cpus()
[all …]
/drivers/thermal/
A Dthermal_of.c91 trip->priv = np; in thermal_of_populate_trip()
131 if (!np) { in of_thermal_zone_find()
230 if (!np) in thermal_of_zone_get_by_name()
235 of_node_put(np); in thermal_of_zone_get_by_name()
267 if (cooling_spec.np != cdev->np) in thermal_of_get_cooling_spec()
374 struct device_node *np; in thermal_of_zone_register() local
381 if (IS_ERR(np)) { in thermal_of_zone_register()
382 if (PTR_ERR(np) != -ENODEV) in thermal_of_zone_register()
384 return ERR_CAST(np); in thermal_of_zone_register()
424 of_node_put(np); in thermal_of_zone_register()
[all …]

Completed in 1032 milliseconds

12345678910>>...69