Searched refs:np (Results 51 - 75 of 2376) sorted by relevance

1234567891011>>

/linux-master/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.h75 #define sym_verbose (np->verbose)
184 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o))
185 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o))
186 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o))
188 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o))
189 #define OUTW_OFF(np,
1089 sym_build_sge(struct sym_hcb *np, struct sym_tblmove *data, u64 badd, int len) argument
[all...]
/linux-master/drivers/of/
H A Dbase.c58 bool of_node_name_eq(const struct device_node *np, const char *name) argument
63 if (!np)
66 node_name = kbasename(np->full_name);
73 bool of_node_name_prefix(const struct device_node *np, const char *prefix) argument
75 if (!np)
78 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0;
82 static bool __of_node_is_type(const struct device_node *np, const char *type) argument
84 const char *match = __of_get_property(np, "device_type", NULL);
86 return np && match && type && !strcmp(match, type);
89 int of_bus_n_addr_cells(struct device_node *np) argument
101 of_n_addr_cells(struct device_node *np) argument
110 of_bus_n_size_cells(struct device_node *np) argument
122 of_n_size_cells(struct device_node *np) argument
132 of_node_to_nid(struct device_node *np) argument
154 struct device_node *np; local
168 struct device_node *np; local
192 __of_find_property(const struct device_node *np, const char *name, int *lenp) argument
211 of_find_property(const struct device_node *np, const char *name, int *lenp) argument
228 struct device_node *np; local
253 struct device_node *np; local
269 __of_get_property(const struct device_node *np, const char *name, int *lenp) argument
281 of_get_property(const struct device_node *np, const char *name, int *lenp) argument
551 struct device_node *np; local
829 struct device_node *np = NULL; local
888 struct device_node *np; local
916 struct device_node *np; local
946 struct device_node *np; local
975 struct device_node *np; local
1054 struct device_node *np; local
1116 struct device_node *np = NULL; local
1158 of_phandle_iterator_init(struct of_phandle_iterator *it, const struct device_node *np, const char *list_name, const char *cells_name, int cell_count) argument
1293 __of_parse_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name, int cell_count, int index, struct of_phandle_args *out_args) argument
1391 of_parse_phandle_with_args_map(const struct device_node *np, const char *list_name, const char *stem_name, int index, struct of_phandle_args *out_args) argument
1549 of_count_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name) argument
1605 __of_add_property(struct device_node *np, struct property *prop) argument
1641 of_add_property(struct device_node *np, struct property *prop) argument
1656 __of_remove_property(struct device_node *np, struct property *prop) argument
1688 of_remove_property(struct device_node *np, struct property *prop) argument
1706 __of_update_property(struct device_node *np, struct property *newprop, struct property **oldpropp) argument
1750 of_update_property(struct device_node *np, struct property *newprop) argument
1768 of_alias_add(struct alias_prop *ap, struct device_node *np, int id, const char *stem, int stem_len) argument
1818 struct device_node *np; local
1861 of_alias_get_id(struct device_node *np, const char *stem) argument
1940 of_find_next_cache_node(const struct device_node *np) argument
1974 struct device_node *prev = NULL, *np = of_cpu_device_node_get(cpu); local
2007 of_map_id(struct device_node *np, u32 id, const char *map_name, const char *map_mask_name, struct device_node **target, u32 *id_out) argument
[all...]
H A Dmodule.c11 ssize_t of_modalias(const struct device_node *np, char *str, ssize_t len) argument
29 csize = snprintf(str, len, "of:N%pOFn%c%s", np, 'T',
30 of_node_get_device_type(np));
36 of_property_for_each_string(np, "compatible", p, compat) {
55 int of_request_module(const struct device_node *np) argument
61 if (!np)
64 size = of_modalias(np, NULL, 0);
75 of_modalias(np, str, size);
/linux-master/arch/arm/mach-vt8500/
H A Dvt8500.c63 struct device_node *np; local
72 np = of_find_compatible_node(NULL, NULL, "via,vt8500-gpio");
73 if (np) {
74 gpio_base = of_iomap(np, 0);
80 of_node_put(np);
101 np = of_find_compatible_node(NULL, NULL, "wm,wm8505-gpio");
102 if (!np)
103 np = of_find_compatible_node(NULL, NULL,
105 if (np) {
106 gpio_base = of_iomap(np,
[all...]
/linux-master/drivers/clk/st/
H A Dclkgen-mux.c18 static const char ** __init clkgen_mux_get_parents(struct device_node *np, argument
24 nparents = of_clk_get_parent_count(np);
32 *num_parents = of_clk_parent_fill(np, parents, nparents);
52 static void __init st_of_clkgen_mux_setup(struct device_node *np, argument
65 reg = of_iomap(np, 0);
67 parent_np = of_get_parent(np);
76 parents = clkgen_mux_get_parents(np, &num_parents);
83 clk = clk_register_mux(NULL, np->name, parents, num_parents,
97 of_clk_add_provider(np, of_clk_src_simple_get, clk);
106 static void __init st_of_clkgen_a9_mux_setup(struct device_node *np) argument
[all...]
/linux-master/arch/powerpc/platforms/83xx/
H A Dusb_834x.c24 struct device_node *np = NULL; local
38 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr");
39 if (np) {
42 prop = of_get_property(np, "phy_type", NULL);
50 dr_mode = of_get_property(np, "dr_mode", NULL);
62 of_node_put(np);
64 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph");
65 if (np) {
68 prop = of_get_property(np, "port0", NULL);
74 prop = of_get_property(np, "port
[all...]
/linux-master/drivers/net/ethernet/adaptec/
H A Dstarfire.c592 struct netdev_private *np = netdev_priv(dev); local
594 spin_lock(&np->lock);
597 set_bit(vid, np->active_vlans);
599 spin_unlock(&np->lock);
607 struct netdev_private *np = netdev_priv(dev); local
609 spin_lock(&np->lock);
612 clear_bit(vid, np->active_vlans);
614 spin_unlock(&np->lock);
641 struct netdev_private *np; local
660 dev = alloc_etherdev(sizeof(*np));
836 struct netdev_private *np = netdev_priv(dev); local
853 struct netdev_private *np = netdev_priv(dev); local
864 struct netdev_private *np = netdev_priv(dev); local
1064 struct netdev_private *np = netdev_priv(dev); local
1099 struct netdev_private *np = netdev_priv(dev); local
1129 struct netdev_private *np = netdev_priv(dev); local
1180 struct netdev_private *np = netdev_priv(dev); local
1304 struct netdev_private *np = netdev_priv(dev); local
1430 struct netdev_private *np = netdev_priv(dev); local
1554 struct netdev_private *np = container_of(napi, struct netdev_private, napi); local
1585 struct netdev_private *np = netdev_priv(dev); local
1618 struct netdev_private *np = netdev_priv(dev); local
1693 struct netdev_private *np = netdev_priv(dev); local
1720 struct netdev_private *np = netdev_priv(dev); local
1745 set_vlan_mode(struct netdev_private *np) argument
1773 struct netdev_private *np = netdev_priv(dev); local
1846 struct netdev_private *np = netdev_priv(dev); local
1854 struct netdev_private *np = netdev_priv(dev); local
1864 struct netdev_private *np = netdev_priv(dev); local
1875 struct netdev_private *np = netdev_priv(dev); local
1881 struct netdev_private *np = netdev_priv(dev); local
1908 struct netdev_private *np = netdev_priv(dev); local
1927 struct netdev_private *np = netdev_priv(dev); local
2022 struct netdev_private *np = netdev_priv(dev); local
[all...]
/linux-master/drivers/mtd/maps/
H A Dphysmap-versatile.h7 struct device_node *np,
12 struct device_node *np,
11 of_flash_probe_versatile(struct platform_device *pdev, struct device_node *np, struct map_info *map) argument
H A Dphysmap-gemini.h7 struct device_node *np,
12 struct device_node *np,
11 of_flash_probe_gemini(struct platform_device *pdev, struct device_node *np, struct map_info *map) argument
H A Dphysmap-bt1-rom.h7 struct device_node *np,
12 struct device_node *np,
11 of_flash_probe_bt1_rom(struct platform_device *pdev, struct device_node *np, struct map_info *map) argument
H A Dphysmap-ixp4xx.h8 struct device_node *np,
13 struct device_node *np,
12 of_flash_probe_ixp4xx(struct platform_device *pdev, struct device_node *np, struct map_info *map) argument
/linux-master/include/linux/mfd/
H A Daltera-sysmgr.h18 struct regmap *altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
22 altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np, argument
/linux-master/include/linux/
H A Dof_dma.h35 extern int of_dma_controller_register(struct device_node *np,
39 extern void of_dma_controller_free(struct device_node *np);
41 extern int of_dma_router_register(struct device_node *np,
47 extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
55 static inline int of_dma_controller_register(struct device_node *np, argument
63 static inline void of_dma_controller_free(struct device_node *np) argument
67 static inline int of_dma_router_register(struct device_node *np, argument
77 static inline struct dma_chan *of_dma_request_slave_channel(struct device_node *np, argument
H A Dof_gpio.h22 extern int of_get_named_gpio(const struct device_node *np,
30 static inline int of_get_named_gpio(const struct device_node *np, argument
/linux-master/arch/arm/mach-sti/
H A Dplatsmp.c51 struct device_node *np; local
56 np = of_find_compatible_node(NULL, NULL, "arm,cortex-a9-scu");
58 if (np) {
59 scu_base = of_iomap(np, 0);
61 of_node_put(np);
69 np = of_get_cpu_node(cpu, NULL);
71 if (!np)
74 if (of_property_read_u32(np, "cpu-release-addr",
/linux-master/include/linux/clk/
H A Dsamsung.h14 void s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
18 static inline void s3c64xx_clk_init(struct device_node *np, argument
/linux-master/drivers/clk/mvebu/
H A Darmada_ap_cp_helper.c16 char *ap_cp_unique_name(struct device *dev, struct device_node *np, argument
25 of_address_to_resource(np, 0, &res);
/linux-master/net/ncsi/
H A Dncsi-netlink.h14 struct ncsi_package *np,
17 struct ncsi_package *np,
/linux-master/arch/powerpc/platforms/cell/
H A Dcbe_regs.c51 static struct cbe_regs_map *cbe_find_map(struct device_node *np) argument
56 if (!of_node_is_type(np, "spe")) {
58 if (cbe_regs_maps[i].cpu_node == np ||
59 cbe_regs_maps[i].be_node == np)
64 if (np->data)
65 return np->data;
68 tmp_np = np;
76 np->data = cbe_find_map(tmp_np);
78 return np->data;
81 struct cbe_pmd_regs __iomem *cbe_get_pmd_regs(struct device_node *np) argument
99 cbe_get_pmd_shadow_regs(struct device_node *np) argument
115 cbe_get_iic_regs(struct device_node *np) argument
131 cbe_get_mic_tm_regs(struct device_node *np) argument
169 struct device_node *np; local
202 struct device_node *be, *np, *parent_np; local
[all...]
/linux-master/arch/mips/ralink/
H A Dill_acc.c52 struct device_node *np; local
59 np = of_find_compatible_node(NULL, NULL, "ralink,rt3050-memc");
60 if (!np)
63 pdev = of_find_device_by_node(np);
65 pr_err("%pOFn: failed to lookup pdev\n", np);
66 of_node_put(np);
70 irq = irq_of_parse_and_map(np, 0);
71 of_node_put(np);
/linux-master/arch/arm/mach-versatile/
H A Dplatsmp-realview.c41 struct device_node *np; local
47 np = of_find_matching_node(NULL, realview_scu_match);
48 if (!np) {
52 scu_base = of_iomap(np, 0);
53 of_node_put(np);
67 np = of_find_matching_node(NULL, realview_syscon_match);
68 if (!np) {
72 map = syscon_node_to_regmap(np);
/linux-master/include/linux/soc/samsung/
H A Dexynos-pmu.h25 struct regmap *exynos_get_pmu_regmap_by_phandle(struct device_node *np,
33 static inline struct regmap *exynos_get_pmu_regmap_by_phandle(struct device_node *np, argument
/linux-master/include/linux/usb/
H A Dof.h17 enum usb_dr_mode of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0);
18 bool of_usb_host_tpl_support(struct device_node *np);
19 int of_usb_update_otg_caps(struct device_node *np,
29 of_usb_get_dr_mode_by_phy(struct device_node *np, int arg0) argument
33 static inline bool of_usb_host_tpl_support(struct device_node *np) argument
37 static inline int of_usb_update_otg_caps(struct device_node *np, argument
68 enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np);
70 static inline enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np) argument
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dof.c19 struct device_node *np = dev->of_node; local
25 count = of_property_count_strings(np, "brcm,ccode-map");
31 of_property_read_bool(np, "brcm,ccode-map-trivial");
50 if (of_property_read_string_index(np, "brcm,ccode-map",
72 struct device_node *root, *np = dev->of_node; local
82 err = of_property_read_string(np, "brcm,board-type", &prop);
86 if (!of_property_read_string(np, "apple,antenna-sku", &prop))
92 prop = of_get_property(np, "brcm,cal-blob", &settings->cal_size);
116 if (!np || !of_device_is_compatible(np, "brc
[all...]
/linux-master/drivers/platform/mips/
H A Dls2k-reset.c32 struct device_node *np; local
34 np = of_find_compatible_node(NULL, NULL, "loongson,ls2k-pm");
35 if (!np) {
40 base = of_iomap(np, 0);
41 of_node_put(np);

Completed in 302 milliseconds

1234567891011>>