Home
last modified time | relevance | path

Searched full:np (Results 1 – 25 of 2187) sorted by relevance

12345678910>>...88

/linux/drivers/net/ethernet/nvidia/
H A Dforcedeth.c727 __this_cpu_inc(np->txrx_stats->member)
729 __this_cpu_add(np->txrx_stats->member, (count))
797 * Locking: Within irq hander or disable_irq+spin_lock(&np->lock);
818 * Locking: Within irq hander or disable_irq+spin_lock(&np->lock);
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()
[all …]
/linux/drivers/net/ethernet/sun/
H A 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/drivers/scsi/sym53c8xx_2/
H A 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 …]
H A 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 …]
/linux/drivers/clk/at91/
H A 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/drivers/net/ethernet/dlink/
H A 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()
113 struct netdev_private *np; in rio_probe1() local
134 dev = alloc_etherdev (sizeof (*np)); in rio_probe1()
139 np = netdev_priv(dev); in rio_probe1()
142 np->rmon_enable = true; in rio_probe1()
148 np->eeprom_addr = ioaddr; in rio_probe1()
150 if (np->rmon_enable) { in rio_probe1()
157 np->ioaddr = ioaddr; in rio_probe1()
158 np->chip_id = chip_idx; in rio_probe1()
[all …]
/linux/drivers/net/ethernet/
H A 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/drivers/net/ethernet/dec/tulip/
H A 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/drivers/char/hw_random/
H A Dn2-drv.c148 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument
150 unsigned long ra = __pa(&np->scratch_control[0]); in n2rng_control_settle_v2()
155 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument
163 if (np->hvapi_major == 1) { in n2rng_write_ctl_one()
170 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one()
202 static unsigned long n2rng_read_diag_data_one(struct n2rng *np, in n2rng_read_diag_data_one() argument
210 if (np->hvapi_major == 1) { in n2rng_read_diag_data_one()
221 static int n2rng_generic_read_diag_data(struct n2rng *np, in n2rng_generic_read_diag_data() argument
230 hv_err = n2rng_read_diag_data_one(np, unit, in n2rng_generic_read_diag_data()
250 static int n2rng_generic_write_control(struct n2rng *np, in n2rng_generic_write_control() argument
[all …]
/linux/drivers/memory/
H A Dof_memory.c20 * @np: pointer to ddr device tree node
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()
[all …]
/linux/drivers/net/ethernet/adaptec/
H A Dstarfire.c584 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()
[all …]
/linux/net/core/
H A Dnetpoll.c227 static void refill_skbs(struct netpoll *np) in refill_skbs() argument
233 skb_pool = &np->skb_pool; in refill_skbs()
274 static struct sk_buff *find_skb(struct netpoll *np, int len, int reserve) in find_skb() argument
284 skb = skb_dequeue(&np->skb_pool); in find_skb()
285 schedule_work(&np->refill_wq); in find_skb()
290 netpoll_poll_dev(np->dev); in find_skb()
313 static netdev_tx_t __netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) in __netpoll_send_skb() argument
324 dev = np->dev; in __netpoll_send_skb()
354 netpoll_poll_dev(np->dev); in __netpoll_send_skb()
375 static void netpoll_udp_checksum(struct netpoll *np, struct sk_buff *skb, in netpoll_udp_checksum() argument
[all …]
/linux/drivers/net/ethernet/natsemi/
H A Dnatsemi.c205 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 = netdev_priv(dev); in move_int_phy() local
[all …]
/linux/drivers/video/
H A Dof_display_timing.c17 * @np: device_node with the property
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()
54 * @np: device_node with the properties
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()
[all …]
/linux/drivers/of/
H A 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, 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 Dunittest.c82 struct device_node *np; in of_unittest_find_node_by_name() local
85 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
86 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
87 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
89 of_node_put(np); in of_unittest_find_node_by_name()
93 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name()
94 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name()
96 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a"); in of_unittest_find_node_by_name()
97 name = kasprintf(GFP_KERNEL, "%pOF", np); in of_unittest_find_node_by_name()
98 unittest(np && name && !strcmp("/testcase-data/phandle-tests/consumer-a", name), in of_unittest_find_node_by_name()
[all …]
H A Dbase.c59 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq() argument
64 if (!np) in of_node_name_eq()
67 node_name = kbasename(np->full_name); in of_node_name_eq()
74 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix() argument
76 if (!np) in of_node_name_prefix()
79 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
83 static bool __of_node_is_type(const struct device_node *np, const char *type) in __of_node_is_type() argument
85 const char *match = __of_get_property(np, "device_type", NULL); in __of_node_is_type()
87 return np && match && type && !strcmp(match, type); in __of_node_is_type()
95 int of_bus_n_addr_cells(struct device_node *np) in of_bus_n_addr_cells() argument
[all …]
H A Ddynamic.c185 int of_property_notify(int action, struct device_node *np, in of_property_notify() argument
191 if (!of_node_is_attached(np)) in of_property_notify()
194 pr.dn = np; in of_property_notify()
200 static void __of_attach_node(struct device_node *np) in __of_attach_node() argument
208 if (!of_node_check_flag(np, OF_OVERLAY)) { in __of_attach_node()
209 np->name = __of_get_property(np, "name", NULL); in __of_attach_node()
210 if (!np->name) in __of_attach_node()
211 np->name = "<NULL>"; in __of_attach_node()
213 phandle = __of_get_property(np, "phandle", &sz); in __of_attach_node()
215 phandle = __of_get_property(np, "linux,phandle", &sz); in __of_attach_node()
[all …]
H A Dof_private.h18 * @np: Pointer to device_node that the alias stands for
28 struct device_node *np; member
50 extern int of_property_notify(int action, struct device_node *np,
60 static inline int of_property_notify(int action, struct device_node *np, in of_property_notify() argument
75 int __of_add_property_sysfs(struct device_node *np, struct property *pp);
76 void __of_remove_property_sysfs(struct device_node *np, const struct property *prop);
77 void __of_update_property_sysfs(struct device_node *np, struct property *newprop,
79 int __of_attach_node_sysfs(struct device_node *np);
80 void __of_detach_node_sysfs(struct device_node *np);
82 static inline int __of_add_property_sysfs(struct device_node *np, struct property *pp) in __of_add_property_sysfs() argument
[all …]
/linux/include/linux/
H A Dof.h72 struct device_node *np; member
258 extern bool of_node_name_eq(const struct device_node *np, const char *name);
259 extern bool of_node_name_prefix(const struct device_node *np, const char *prefix);
261 static inline const char *of_node_full_name(const struct device_node *np) in of_node_full_name() argument
263 return np ? np->full_name : "<no-node>"; in of_node_full_name()
313 extern struct property *of_find_property(const struct device_node *np,
316 extern bool of_property_read_bool(const struct device_node *np, const char *propname);
317 extern int of_property_count_elems_of_size(const struct device_node *np,
319 extern int of_property_read_u16_index(const struct device_node *np,
322 extern int of_property_read_u32_index(const struct device_node *np,
[all …]
H A Dof_mdio.h17 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/net/wireless/mediatek/mt76/
H A Deeprom.c15 struct device_node *np = dev->dev->of_node; in mt76_get_of_eeprom_data() local
19 data = of_get_property(np, "mediatek,eeprom-data", &size); in mt76_get_of_eeprom_data()
34 struct device_node *np = dev->dev->of_node; in mt76_get_of_data_from_mtd() local
43 list = of_get_property(np, "mediatek,mtd-eeprom", &size); in mt76_get_of_data_from_mtd()
51 np = of_find_node_by_phandle(phandle); in mt76_get_of_data_from_mtd()
52 if (!np) in mt76_get_of_data_from_mtd()
55 part = of_get_property(np, "label", NULL); in mt76_get_of_data_from_mtd()
57 part = np->name; in mt76_get_of_data_from_mtd()
106 of_node_put(np); in mt76_get_of_data_from_mtd()
117 struct device_node *np = dev->dev->of_node; in mt76_get_of_data_from_nvmem() local
[all …]
/linux/drivers/mfd/
H A Dsyscon.c28 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", &reg_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/arch/powerpc/kernel/
H A Dlegacy_serial.c33 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/arch/powerpc/platforms/pseries/
H A Dreconfig.c25 struct device_node *np; in pSeries_reconfig_add_node() local
28 np = kzalloc(sizeof(*np), GFP_KERNEL); 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 …]

12345678910>>...88