Searched defs:np (Results 1 - 25 of 161) sorted by relevance

1234567

/drivers/staging/cxt1e1/
H A Dsbeid.c32 char *np = 0; local
37 np = "wanPTMC-256T3 <E1>";
40 np = "wanPTMC-256T3 <T1>";
44 np = "wanPMC-C4T1E1";
48 np = "wanPMC-C2T1E1";
52 np = "wanPMC-C1T1E1";
55 np = "wanPCI-C4T1E1";
58 np = "wanPCI-C2T1E1";
61 np = "wanPCI-C1T1E1";
64 /*** np
[all...]
/drivers/of/
H A Dof_net.c36 * @np: Pointer to the given device_node
41 const int of_get_phy_mode(struct device_node *np) argument
46 err = of_property_read_string(np, "phy-mode", &pm);
76 const void *of_get_mac_address(struct device_node *np) argument
80 pp = of_find_property(np, "mac-address", NULL);
84 pp = of_find_property(np, "local-mac-address", NULL);
88 pp = of_find_property(np, "address", NULL);
H A Dselftest.c26 struct device_node *np; local
32 np = of_find_node_by_path("/testcase-data/phandle-tests/consumer-a");
33 if (!np) {
40 rc = of_parse_phandle_with_args(np, "phandle-list",
91 i, args.np->full_name, rc);
101 rc = of_parse_phandle_with_args(np, "phandle-list-missing",
106 rc = of_parse_phandle_with_args(np, "phandle-list",
111 rc = of_parse_phandle_with_args(np, "phandle-list-bad-phandle",
116 rc = of_parse_phandle_with_args(np, "phandle-list-bad-args",
125 struct device_node *np; local
[all...]
H A Dgpio.c25 * @np: device node to get GPIO from
34 int of_get_named_gpio_flags(struct device_node *np, const char *propname, argument
41 ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index,
48 gc = of_node_to_gpiochip(gpiospec.np);
51 np->full_name, gpiospec.np->full_name);
58 np->full_name, gpiospec.np->full_name);
73 of_node_put(gpiospec.np);
82 * @np
96 of_gpio_count(struct device_node *np) argument
171 of_mm_gpiochip_add(struct device_node *np, struct of_mm_gpio_chip *mm_gc) argument
236 of_node_to_gpiochip(struct device_node *np) argument
[all...]
H A Dof_mdio.c28 * @np: pointer to device_node of MDIO bus.
31 * for each child node of @np.
33 int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) argument
54 for_each_child_of_node(np, child) {
/drivers/net/ethernet/xilinx/
H A Dll_temac_mdio.c59 int temac_mdio_setup(struct temac_local *lp, struct device_node *np) argument
69 bus_hz = of_get_property(np, "clock-frequency", &size);
88 of_address_to_resource(np, 0, &res);
100 rc = of_mdiobus_register(bus, np);
/drivers/regulator/
H A Dof_regulator.c18 static void of_get_regulation_constraints(struct device_node *np, argument
25 constraints->name = of_get_property(np, "regulator-name", NULL);
27 min_uV = of_get_property(np, "regulator-min-microvolt", NULL);
30 max_uV = of_get_property(np, "regulator-max-microvolt", NULL);
41 uV_offset = of_get_property(np, "regulator-microvolt-offset", NULL);
44 min_uA = of_get_property(np, "regulator-min-microamp", NULL);
47 max_uA = of_get_property(np, "regulator-max-microamp", NULL);
55 if (of_find_property(np, "regulator-boot-on", NULL))
58 if (of_find_property(np, "regulator-always-on", NULL))
/drivers/crypto/caam/
H A Dctrl.c51 struct device_node *nprop, *np; local
99 for_each_compatible_node(np, NULL, "fsl,sec-v4.0-job-ring")
109 for_each_compatible_node(np, NULL, "fsl,sec-v4.0-job-ring") {
110 caam_jr_probe(pdev, np, ring);
/drivers/tty/serial/cpm_uart/
H A Dcpm_uart_cpm1.c59 struct device_node *np)
61 return of_iomap(np, 1);
58 cpm_uart_map_pram(struct uart_cpm_port *port, struct device_node *np) argument
H A Dcpm_uart_cpm2.c58 struct device_node *np)
73 if (of_address_to_resource(np, 1, &res))
57 cpm_uart_map_pram(struct uart_cpm_port *port, struct device_node *np) argument
/drivers/tty/serial/
H A Dof_serial.c34 struct device_node *np = ofdev->dev.of_node; local
39 if (of_property_read_u32(np, "clock-frequency", &clk)) {
44 if (of_property_read_u32(np, "current-speed", &spd) == 0)
47 ret = of_address_to_resource(np, 0, &resource);
57 if (of_property_read_u32(np, "reg-offset", &prop) == 0)
61 if (of_property_read_u32(np, "reg-shift", &prop) == 0)
64 port->irq = irq_of_parse_and_map(np, 0);
66 if (of_property_read_u32(np, "reg-io-width", &prop) == 0) {
/drivers/usb/host/
H A Dehci-ppc-of.c117 struct device_node *np; local
156 np = of_find_compatible_node(NULL, NULL, "ibm,usb-ohci-440epx");
157 if (np != NULL) {
159 if (!of_address_to_resource(np, 0, &res))
219 struct device_node *np; local
236 np = of_find_compatible_node(NULL, NULL, "ibm,usb-ohci-440epx");
237 if (np != NULL) {
238 if (!of_address_to_resource(np, 0, &res))
246 of_node_put(np);
H A Dohci-ppc-of.c93 struct device_node *np; local
151 np = of_find_compatible_node(NULL, NULL, "ibm,usb-ehci-440epx");
162 if (np != NULL) {
163 if (!of_address_to_resource(np, 0, &res)) {
/drivers/gpio/
H A Dgpio-xilinx.c156 * @np: pointer to device tree node
162 static int __devinit xgpio_of_probe(struct device_node *np) argument
173 tree_info = of_get_property(np, "xlnx,dout-default", NULL);
179 tree_info = of_get_property(np, "xlnx,tri-default", NULL);
185 tree_info = of_get_property(np, "xlnx,gpio-width", NULL);
187 tree_info = of_get_property(np->parent,
202 status = of_mm_gpiochip_add(np, &chip->mmchip);
206 np->full_name, status);
219 struct device_node *np; local
221 for_each_matching_node(np, xgpio_of_matc
[all...]
/drivers/mmc/host/
H A Dsdhci-pltfm.c43 static bool sdhci_of_wp_inverted(struct device_node *np) argument
45 if (of_get_property(np, "sdhci,wp-inverted", NULL))
58 struct device_node *np = pdev->dev.of_node; local
64 if (of_device_is_available(np)) {
65 if (of_get_property(np, "sdhci,auto-cmd12", NULL))
68 if (of_get_property(np, "sdhci,1-bit-only", NULL))
71 if (sdhci_of_wp_inverted(np))
74 if (of_device_is_compatible(np, "fsl,p2020-rev1-esdhc"))
77 if (of_device_is_compatible(np, "fsl,p2020-esdhc") ||
78 of_device_is_compatible(np, "fs
97 struct device_node *np = pdev->dev.of_node; local
[all...]
/drivers/mtd/nand/
H A Dpasemi_nand.c95 struct device_node *np = ofdev->dev.of_node; local
100 err = of_address_to_resource(np, 0, &res);
128 chip->IO_ADDR_R = of_iomap(np, 0);
/drivers/net/can/cc770/
H A Dcc770_platform.c80 struct device_node *np = pdev->dev.of_node; local
85 prop = of_get_property(np, "bosch,external-clock-frequency",
103 if (of_get_property(np, "bosch,divide-memory-clock", NULL))
105 if (of_get_property(np, "bosch,iso-low-speed-mux", NULL))
108 if (!of_get_property(np, "bosch,no-comperator-bypass", NULL))
110 if (of_get_property(np, "bosch,disconnect-rx0-input", NULL))
112 if (of_get_property(np, "bosch,disconnect-rx1-input", NULL))
114 if (of_get_property(np, "bosch,disconnect-tx1-output", NULL))
116 if (of_get_property(np, "bosch,polarity-dominant", NULL))
119 prop = of_get_property(np, "bosc
[all...]
/drivers/net/can/sja1000/
H A Dsja1000_of_platform.c75 struct device_node *np = ofdev->dev.of_node; local
85 of_address_to_resource(np, 0, &res);
93 struct device_node *np = ofdev->dev.of_node; local
101 err = of_address_to_resource(np, 0, &res);
121 irq = irq_of_parse_and_map(np, 0);
139 prop = of_get_property(np, "nxp,external-clock-frequency", &prop_size);
145 prop = of_get_property(np, "nxp,tx-output-mode", &prop_size);
151 prop = of_get_property(np, "nxp,tx-output-config", &prop_size);
157 prop = of_get_property(np, "nxp,clock-out-frequency", &prop_size);
169 prop = of_get_property(np, "nx
[all...]
/drivers/net/ethernet/freescale/
H A Dfec_mpc52xx_phy.c67 struct device_node *np = of->dev.of_node; local
90 err = of_address_to_resource(np, 0, &res);
109 err = of_mdiobus_register(bus, np);
/drivers/net/ethernet/ibm/emac/
H A Dtah.c92 struct device_node *np = ofdev->dev.of_node; local
101 np->full_name);
109 if (of_address_to_resource(np, 0, &regs)) {
111 np->full_name);
120 np->full_name);
/drivers/spi/
H A Dspi-fsl-lib.c195 struct device_node *np = ofdev->dev.of_node; local
221 prop = of_get_property(np, "mode", NULL);
226 else if (of_device_is_compatible(np, "fsl,cpm2-spi"))
228 else if (of_device_is_compatible(np, "fsl,cpm1-spi"))
/drivers/tty/serial/8250/
H A D8250_dw.c95 struct device_node *np = pdev->dev.of_node; local
121 if (!of_property_read_u32(np, "reg-io-width", &val)) {
137 if (!of_property_read_u32(np, "reg-shift", &val))
140 if (of_property_read_u32(np, "clock-frequency", &val)) {
/drivers/edac/
H A Dcell_edac.c128 struct device_node *np; local
130 for (np = NULL;
131 (np = of_find_node_by_name(np, "memory")) != NULL;) {
138 if (of_address_to_resource(np, 0, &r))
140 if (of_node_to_nid(np) != priv->node)
/drivers/i2c/busses/
H A Di2c-powermac.c285 struct device_node *np; local
290 np = of_find_node_by_name(NULL, "accelerometer");
291 if (np && of_device_is_compatible(np, "AAPL,accelerometer_1") &&
292 (prop = of_get_property(np, "reg", NULL))) {
297 tmp_bus = strstr(np->full_name, "/i2c-bus@");
/drivers/isdn/capi/
H A Dcapilib.c31 static inline void mq_init(struct capilib_ncci * np) argument
34 np->msgidqueue = NULL;
35 np->msgidlast = NULL;
36 np->nmsg = 0;
37 memset(np->msgidpool, 0, sizeof(np->msgidpool));
38 np->msgidfree = &np->msgidpool[0];
39 for (i = 1; i < np->winsize; i++) {
40 np
45 mq_enqueue(struct capilib_ncci * np, u16 msgid) argument
62 mq_dequeue(struct capilib_ncci * np, u16 msgid) argument
82 struct capilib_ncci *np; local
107 struct capilib_ncci *np; local
128 struct capilib_ncci *np; local
145 struct capilib_ncci *np; local
160 struct capilib_ncci *np; local
183 struct capilib_ncci *np; local
[all...]

Completed in 448 milliseconds

1234567