Home
last modified time | relevance | path

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

12345678910>>...57

/linux-6.1.9/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c41 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 …]
Dsym_nvram.c37 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 …]
Dsym_hipd.h75 #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 …]
Dsym_fw.c96 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-6.1.9/drivers/net/ethernet/
Dfealnx.c475 struct netdev_private *np; in fealnx_init_one() local
536 np = netdev_priv(dev); in fealnx_init_one()
537 np->mem = ioaddr; in fealnx_init_one()
538 spin_lock_init(&np->lock); in fealnx_init_one()
539 np->pci_dev = pdev; in fealnx_init_one()
540 np->flags = skel_netdrv_tbl[chip_id].flags; in fealnx_init_one()
542 np->mii.dev = dev; in fealnx_init_one()
543 np->mii.mdio_read = mdio_read; in fealnx_init_one()
544 np->mii.mdio_write = mdio_write; in fealnx_init_one()
545 np->mii.phy_id_mask = 0x1f; in fealnx_init_one()
[all …]
/linux-6.1.9/drivers/net/ethernet/nvidia/
Dforcedeth.c727 __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-6.1.9/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c322 static void free_rxtx_rings(struct netdev_private *np);
326 static void free_ringdesc(struct netdev_private *np);
353 struct netdev_private *np; in w840_probe1() local
373 dev = alloc_etherdev(sizeof(*np)); in w840_probe1()
393 np = netdev_priv(dev); in w840_probe1()
394 np->pci_dev = pdev; in w840_probe1()
395 np->chip_id = chip_idx; in w840_probe1()
396 np->drv_flags = pci_id_tbl[chip_idx].drv_flags; in w840_probe1()
397 spin_lock_init(&np->lock); in w840_probe1()
398 np->mii_if.dev = dev; in w840_probe1()
[all …]
/linux-6.1.9/drivers/net/ethernet/dlink/
Dsundance.c448 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->ndev = dev; in sundance_probe1()
[all …]
Ddl2k.c52 static void dl2k_enable_int(struct netdev_private *np) in dl2k_enable_int() argument
54 void __iomem *ioaddr = np->ioaddr; in dl2k_enable_int()
106 struct netdev_private *np; in rio_probe1() local
127 dev = alloc_etherdev (sizeof (*np)); in rio_probe1()
132 np = netdev_priv(dev); in rio_probe1()
138 np->eeprom_addr = ioaddr; in rio_probe1()
146 np->ioaddr = ioaddr; in rio_probe1()
147 np->chip_id = chip_idx; in rio_probe1()
148 np->pdev = pdev; in rio_probe1()
149 spin_lock_init (&np->tx_lock); in rio_probe1()
[all …]
/linux-6.1.9/drivers/char/hw_random/
Dn2-drv.c147 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument
149 unsigned long ra = __pa(&np->scratch_control[0]); in n2rng_control_settle_v2()
154 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument
162 if (np->hvapi_major == 1) { in n2rng_write_ctl_one()
169 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one()
201 static unsigned long n2rng_read_diag_data_one(struct n2rng *np, in n2rng_read_diag_data_one() argument
209 if (np->hvapi_major == 1) { in n2rng_read_diag_data_one()
220 static int n2rng_generic_read_diag_data(struct n2rng *np, in n2rng_generic_read_diag_data() argument
229 hv_err = n2rng_read_diag_data_one(np, unit, in n2rng_generic_read_diag_data()
249 static int n2rng_generic_write_control(struct n2rng *np, in n2rng_generic_write_control() argument
[all …]
/linux-6.1.9/drivers/net/ethernet/sun/
Dniu.c91 #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-6.1.9/drivers/clk/at91/
Ddt-compat.c30 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-6.1.9/drivers/memory/
Dof_memory.c28 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-6.1.9/drivers/net/ethernet/adaptec/
Dstarfire.c592 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_add_vid() local
594 spin_lock(&np->lock); in netdev_vlan_rx_add_vid()
597 set_bit(vid, np->active_vlans); in netdev_vlan_rx_add_vid()
599 spin_unlock(&np->lock); in netdev_vlan_rx_add_vid()
607 struct netdev_private *np = netdev_priv(dev); in netdev_vlan_rx_kill_vid() local
609 spin_lock(&np->lock); in netdev_vlan_rx_kill_vid()
612 clear_bit(vid, np->active_vlans); in netdev_vlan_rx_kill_vid()
614 spin_unlock(&np->lock); in netdev_vlan_rx_kill_vid()
641 struct netdev_private *np; in starfire_init_one() local
660 dev = alloc_etherdev(sizeof(*np)); in starfire_init_one()
[all …]
/linux-6.1.9/drivers/net/ethernet/natsemi/
Dnatsemi.c672 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 = netdev_priv(dev); in move_int_phy() local
740 if (target == np->phy_addr_external) in move_int_phy()
[all …]
/linux-6.1.9/drivers/scsi/
Dncr53c8xx.c506 #define _m_calloc_dma(np, s, n) __m_calloc_dma(np->dev, s, n) argument
507 #define _m_free_dma(np, p, s, n) __m_free_dma(np->dev, p, s, n) argument
508 #define m_calloc_dma(s, n) _m_calloc_dma(np, s, n)
509 #define m_free_dma(p, s, n) _m_free_dma(np, p, s, n)
510 #define _vtobus(np, p) __vtobus(np->dev, p) argument
511 #define vtobus(p) _vtobus(np, p)
544 #define unmap_scsi_data(np, cmd) __unmap_scsi_data(np->dev, cmd) argument
545 #define map_scsi_sg_data(np, cmd) __map_scsi_sg_data(np->dev, cmd) argument
568 #define bootverbose (np->verbose)
1006 #define bootverbose (np->verbose)
[all …]
/linux-6.1.9/net/core/
Dnetpoll.c66 #define np_info(np, fmt, ...) \ argument
67 pr_info("%s: " fmt, np->name, ##__VA_ARGS__)
68 #define np_err(np, fmt, ...) \ argument
69 pr_err("%s: " fmt, np->name, ##__VA_ARGS__)
70 #define np_notice(np, fmt, ...) \ argument
71 pr_notice("%s: " fmt, np->name, ##__VA_ARGS__)
271 static struct sk_buff *find_skb(struct netpoll *np, int len, int reserve) in find_skb() argument
286 netpoll_poll_dev(np->dev); in find_skb()
309 static netdev_tx_t __netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) in __netpoll_send_skb() argument
319 dev = np->dev; in __netpoll_send_skb()
[all …]
/linux-6.1.9/drivers/of/
Dunittest.c68 struct device_node *np; in of_unittest_find_node_by_name() local
71 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
72 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
73 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
75 of_node_put(np); in of_unittest_find_node_by_name()
79 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name()
80 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
82 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
83 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
84 unittest(np && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
[all …]
Dbase.c58 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq() argument
63 if (!np) in of_node_name_eq()
66 node_name = kbasename(np->full_name); in of_node_name_eq()
73 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix() argument
75 if (!np) in of_node_name_prefix()
78 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
82 static bool __of_node_is_type(const struct device_node *np, const char *type) in __of_node_is_type() argument
84 const char *match = __of_get_property(np, "device_type", NULL); in __of_node_is_type()
86 return np && match && type && !strcmp(match, type); in __of_node_is_type()
89 int of_bus_n_addr_cells(struct device_node *np) in of_bus_n_addr_cells() argument
[all …]
Dkobj.c63 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, 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, 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 …]
/linux-6.1.9/drivers/misc/cxl/
Dof.c16 static const __be32 *read_prop_string(const struct device_node *np, in read_prop_string() argument
21 prop = of_get_property(np, prop_name, NULL); in read_prop_string()
27 static const __be32 *read_prop_dword(const struct device_node *np, in read_prop_dword() argument
32 prop = of_get_property(np, prop_name, NULL); in read_prop_dword()
40 static const __be64 *read_prop64_dword(const struct device_node *np, in read_prop64_dword() argument
45 prop = of_get_property(np, prop_name, NULL); in read_prop64_dword()
54 static int read_handle(struct device_node *np, u64 *handle) in read_handle() argument
60 prop = of_get_address(np, 0, &size, NULL); in read_handle()
65 *handle = of_read_number(prop, of_n_addr_cells(np)); in read_handle()
69 static int read_phys_addr(struct device_node *np, char *prop_name, in read_phys_addr() argument
[all …]
/linux-6.1.9/drivers/video/
Dof_display_timing.c25 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-6.1.9/arch/powerpc/kernel/
Dlegacy_serial.c33 struct device_node *np; member
75 static int __init add_legacy_port(struct device_node *np, int want_index, in add_legacy_port() argument
86 clk = of_get_property(np, "clock-frequency", NULL); in add_legacy_port()
91 spd = of_get_property(np, "current-speed", NULL); in add_legacy_port()
94 rs = of_get_property(np, "reg-shift", NULL); in add_legacy_port()
114 if (legacy_serial_infos[index].np != NULL) { in add_legacy_port()
143 legacy_serial_infos[index].np = of_node_get(np); in add_legacy_port()
154 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-6.1.9/include/linux/
Dof.h75 struct device_node *np; member
256 extern bool of_node_name_eq(const struct device_node *np, const char *name);
257 extern bool of_node_name_prefix(const struct device_node *np, const char *prefix);
259 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument
261 return np ? np->full_name : "<no-node>"; in of_node_full_name()
304 extern struct property *of_find_property(const struct device_node *np,
307 extern int of_property_count_elems_of_size(const struct device_node *np,
309 extern int of_property_read_u32_index(const struct device_node *np,
312 extern int of_property_read_u64_index(const struct device_node *np,
315 extern int of_property_read_variable_u8_array(const struct device_node *np,
[all …]
/linux-6.1.9/drivers/gpio/
Dgpiolib-of.c40 struct device_node *np = dev->of_node; in of_gpio_spi_cs_get_count() local
46 if (!of_device_is_compatible(np, "fsl,spi") && in of_gpio_spi_cs_get_count()
47 !of_device_is_compatible(np, "aeroflexgaisler,spictrl") && in of_gpio_spi_cs_get_count()
48 !of_device_is_compatible(np, "ibm,ppc4xx-spi")) in of_gpio_spi_cs_get_count()
50 return of_gpio_named_count(np, "gpios"); in of_gpio_spi_cs_get_count()
88 return chip->gpiodev->dev.of_node == gpiospec->np && in of_gpiochip_match_node_and_xlate()
125 const struct device_node *np = gc->of_node; in of_gpio_need_valid_mask() local
127 size = of_property_count_u32_elems(np, "gpio-reserved-ranges"); in of_gpio_need_valid_mask()
133 static void of_gpio_flags_quirks(const struct device_node *np, in of_gpio_flags_quirks() argument
143 (of_device_is_compatible(np, "regulator-fixed") || in of_gpio_flags_quirks()
[all …]

12345678910>>...57