/drivers/scsi/sym53c8xx_2/ |
H A D | sym_fw.c | 109 struct sym_hcb *np = sym_get_hcb(shost); local 113 scripta0 = (struct sym_fw1a_scr *) np->scripta0; 114 scriptb0 = (struct sym_fw1b_scr *) np->scriptb0; 119 if (!(np->features & FE_LED0)) { 139 scriptb0->startpos[0] = cpu_to_scr(np->squeue_ba); 140 scriptb0->done_pos[0] = cpu_to_scr(np->dqueue_ba); 141 scriptb0->targtbl[0] = cpu_to_scr(np->targtbl_ba); 153 struct sym_hcb *np = sym_data->ncb; local 157 scripta0 = (struct sym_fw2a_scr *) np->scripta0; 158 scriptb0 = (struct sym_fw2b_scr *) np 258 sym_fw_setup_bus_addresses(struct sym_hcb *np, struct sym_fw *fw) argument 295 sym_fw1_setup(struct sym_hcb *np, struct sym_fw *fw) argument 319 sym_fw2_setup(struct sym_hcb *np, struct sym_fw *fw) argument 365 sym_fw_bind_script(struct sym_hcb *np, u32 *start, int len) argument [all...] |
H A D | sym_hipd.h | 88 #define sym_verbose (np->verbose) 197 #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) 198 #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) 199 #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) 201 #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) 202 #define OUTW_OFF(np, 1102 sym_build_sge(struct sym_hcb *np, struct sym_tblmove *data, u64 badd, int len) argument [all...] |
H A D | sym_glue.c | 140 void sym_xpt_done(struct sym_hcb *np, struct scsi_cmnd *cmd) argument 155 void sym_xpt_async_bus_reset(struct sym_hcb *np) argument 157 printf_notice("%s: SCSI BUS has been reset.\n", sym_name(np)); 158 np->s.settle_time = jiffies + sym_driver_setup.settle_delay * HZ; 159 np->s.settle_time_valid = 1; 162 sym_name(np), sym_driver_setup.settle_delay); 187 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid) argument 223 sym_clear_tasks(np, DID_ABORT, 234 sym_reset_scsi_target(np, cmd->device->id); 258 static int sym_scatter(struct sym_hcb *np, struc argument 300 sym_queue_command(struct sym_hcb *np, struct scsi_cmnd *cmd) argument 332 sym_setup_cdb(struct sym_hcb *np, struct scsi_cmnd *cmd, struct sym_ccb *cp) argument 345 sym_setup_data_and_start(struct sym_hcb *np, struct scsi_cmnd *cmd, struct sym_ccb *cp) argument 443 sym_timer(struct sym_hcb *np) argument 511 struct sym_hcb *np = SYM_SOFTC_PTR(cmd); local 570 struct sym_hcb *np = (struct sym_hcb *)npref; local 597 struct sym_hcb *np = sym_data->ncb; local 739 struct sym_hcb *np = sym_get_hcb(sdev->host); local 799 struct sym_hcb *np = sym_get_hcb(sdev->host); local 837 struct sym_hcb *np = sym_get_hcb(sdev->host); local 909 sym_exec_user_command(struct sym_hcb *np, struct sym_usrcmd *uc) argument 1037 struct sym_hcb *np = sym_get_hcb(shost); local 1182 struct sym_hcb *np = sym_data->ncb; local 1222 sym_free_resources(struct sym_hcb *np, struct pci_dev *pdev, int do_free_irq) argument 1255 struct sym_hcb *np = NULL; local 1629 struct sym_hcb *np = sym_get_hcb(shost); local 1828 struct sym_hcb *np = sym_get_hcb(shost); local 1885 struct sym_hcb *np = sym_get_hcb(shost); local 1908 struct sym_hcb *np = sym_get_hcb(shost); local 1918 struct sym_hcb *np = sym_get_hcb(shost); local 1933 struct sym_hcb *np = sym_get_hcb(shost); local 1948 struct sym_hcb *np = sym_get_hcb(shost); local [all...] |
/drivers/gpu/drm/rcar-du/ |
H A D | rcar_du_lvdscon.h | 24 struct device_node *np);
|
/drivers/mmc/host/ |
H A D | mmci_qcom_dml.h | 19 int dml_hw_init(struct mmci_host *host, struct device_node *np); 22 static inline int dml_hw_init(struct mmci_host *host, struct device_node *np) argument
|
/drivers/net/ethernet/adaptec/ |
H A D | starfire.c | 600 struct netdev_private *np = netdev_priv(dev); local 602 spin_lock(&np->lock); 605 set_bit(vid, np->active_vlans); 607 spin_unlock(&np->lock); 615 struct netdev_private *np = netdev_priv(dev); local 617 spin_lock(&np->lock); 620 clear_bit(vid, np->active_vlans); 622 spin_unlock(&np->lock); 650 struct netdev_private *np; local 675 dev = alloc_etherdev(sizeof(*np)); 850 struct netdev_private *np = netdev_priv(dev); local 867 struct netdev_private *np = netdev_priv(dev); local 878 struct netdev_private *np = netdev_priv(dev); local 1076 struct netdev_private *np = netdev_priv(dev); local 1111 struct netdev_private *np = netdev_priv(dev); local 1141 struct netdev_private *np = netdev_priv(dev); local 1184 struct netdev_private *np = netdev_priv(dev); local 1280 struct netdev_private *np = netdev_priv(dev); local 1406 struct netdev_private *np = netdev_priv(dev); local 1528 struct netdev_private *np = container_of(napi, struct netdev_private, napi); local 1559 struct netdev_private *np = netdev_priv(dev); local 1586 struct netdev_private *np = netdev_priv(dev); local 1661 struct netdev_private *np = netdev_priv(dev); local 1688 struct netdev_private *np = netdev_priv(dev); local 1713 set_vlan_mode(struct netdev_private *np) argument 1741 struct netdev_private *np = netdev_priv(dev); local 1814 struct netdev_private *np = netdev_priv(dev); local 1822 struct netdev_private *np = netdev_priv(dev); local 1831 struct netdev_private *np = netdev_priv(dev); local 1842 struct netdev_private *np = netdev_priv(dev); local 1848 struct netdev_private *np = netdev_priv(dev); local 1875 struct netdev_private *np = netdev_priv(dev); local 1894 struct netdev_private *np = netdev_priv(dev); local 1997 struct netdev_private *np = netdev_priv(dev); local [all...] |
/drivers/clk/versatile/ |
H A D | clk-versatile.c | 60 static void __init cm_osc_setup(struct device_node *np, argument 64 const char *clk_name = np->name; 71 parent = of_get_parent(np); 72 if (!np) { 83 parent_name = of_clk_get_parent_name(np, 0); 86 of_clk_add_provider(np, of_clk_src_simple_get, clk); 89 static void __init of_integrator_cm_osc_setup(struct device_node *np) argument 91 cm_osc_setup(np, &cm_auxosc_desc); 96 static void __init of_versatile_cm_osc_setup(struct device_node *np) argument 98 cm_osc_setup(np, [all...] |
/drivers/net/ethernet/natsemi/ |
H A D | natsemi.c | 205 Most operations are synchronized on the np->lock irq spinlock, except the 670 struct netdev_private *np = netdev_priv(to_net_dev(dev)); local 672 return sprintf(buf, "%s\n", np->dspcfg_workaround ? "on" : "off"); 679 struct netdev_private *np = netdev_priv(to_net_dev(dev)); local 692 spin_lock_irqsave(&np->lock, flags); 694 np->dspcfg_workaround = new_setting; 696 spin_unlock_irqrestore(&np->lock, flags); 703 struct netdev_private *np = netdev_priv(dev); local 705 return np->ioaddr; 722 struct netdev_private *np local 747 struct netdev_private *np = netdev_priv(dev); local 803 struct netdev_private *np; local 1115 struct netdev_private *np = netdev_priv(dev); local 1130 struct netdev_private *np = netdev_priv(dev); local 1142 struct netdev_private *np = netdev_priv(dev); local 1255 struct netdev_private *np = netdev_priv(dev); local 1288 struct netdev_private *np = netdev_priv(dev); local 1340 struct netdev_private *np = netdev_priv(dev); local 1389 struct netdev_private *np = netdev_priv(dev); local 1461 struct netdev_private *np = netdev_priv(dev); local 1485 struct netdev_private *np = netdev_priv(dev); local 1507 struct netdev_private *np = netdev_priv(dev); local 1527 struct netdev_private *np = netdev_priv(dev); local 1579 struct netdev_private *np = netdev_priv(dev); local 1624 struct netdev_private *np = netdev_priv(dev); local 1643 struct netdev_private *np = netdev_priv(dev); local 1709 struct netdev_private *np = netdev_priv(dev); local 1789 struct netdev_private *np = netdev_priv(dev); local 1859 struct netdev_private *np = netdev_priv(dev); local 1882 struct netdev_private *np = netdev_priv(dev); local 1914 struct netdev_private *np = netdev_priv(dev); local 1926 struct netdev_private *np = netdev_priv(dev); local 1953 struct netdev_private *np = netdev_priv(dev); local 1963 struct netdev_private *np = netdev_priv(dev); local 2001 struct netdev_private *np = netdev_priv(dev); local 2018 struct netdev_private *np = netdev_priv(dev); local 2044 struct netdev_private *np = netdev_priv(dev); local 2052 struct netdev_private *np = netdev_priv(dev); local 2068 struct netdev_private *np = netdev_priv(dev); local 2082 struct netdev_private *np = netdev_priv(dev); local 2129 struct netdev_private *np = netdev_priv(dev); local 2175 struct netdev_private *np = netdev_priv(dev); local 2215 struct netdev_private *np = container_of(napi, struct netdev_private, napi); local 2268 struct netdev_private *np = netdev_priv(dev); local 2384 struct netdev_private *np = netdev_priv(dev); local 2456 struct netdev_private *np = netdev_priv(dev); local 2470 struct netdev_private *np = netdev_priv(dev); local 2483 struct netdev_private *np = netdev_priv(dev); local 2524 struct netdev_private *np = netdev_priv(dev); local 2548 struct netdev_private *np = netdev_priv(dev); local 2557 struct netdev_private *np = netdev_priv(dev); local 2570 struct netdev_private *np = netdev_priv(dev); local 2576 struct netdev_private *np = netdev_priv(dev); local 2585 struct netdev_private *np = netdev_priv(dev); local 2595 struct netdev_private *np = netdev_priv(dev); local 2604 struct netdev_private *np = netdev_priv(dev); local 2615 struct netdev_private *np = netdev_priv(dev); local 2624 struct netdev_private *np = netdev_priv(dev); local 2630 struct netdev_private *np = netdev_priv(dev); local 2657 struct netdev_private *np = netdev_priv(dev); local 2693 struct netdev_private *np = netdev_priv(dev); local 2723 struct netdev_private *np = netdev_priv(dev); local 2759 struct netdev_private *np = netdev_priv(dev); local 2791 struct netdev_private *np = netdev_priv(dev); local 2820 struct netdev_private *np = netdev_priv(dev); local 2898 struct netdev_private *np = netdev_priv(dev); local 3037 struct netdev_private *np = netdev_priv(dev); local 3053 struct netdev_private *np = netdev_priv(dev); local 3105 struct netdev_private *np = netdev_priv(dev); local 3138 struct netdev_private *np = netdev_priv(dev); local 3255 struct netdev_private *np = netdev_priv(dev); local 3306 struct netdev_private *np = netdev_priv(dev); local [all...] |
/drivers/of/ |
H A D | of_net.c | 16 * @np: Pointer to the given device_node 22 int of_get_phy_mode(struct device_node *np) argument 27 err = of_property_read_string(np, "phy-mode", &pm); 29 err = of_property_read_string(np, "phy-connection-type", &pm); 59 const void *of_get_mac_address(struct device_node *np) argument 63 pp = of_find_property(np, "mac-address", NULL); 67 pp = of_find_property(np, "local-mac-address", NULL); 71 pp = of_find_property(np, "address", NULL);
|
/drivers/clk/shmobile/ |
H A D | clk-rz.c | 32 rz_cpg_register_clock(struct device_node *np, struct rz_cpg *cpg, const char *name) argument 41 const char *parent_name = of_clk_get_parent_name(np, cpg_mode); 67 static void __init rz_cpg_clocks_init(struct device_node *np) argument 74 num_clks = of_property_count_strings(np, "clock-output-names"); 85 cpg->reg = of_iomap(np, 0); 91 of_property_read_string_index(np, "clock-output-names", i, &name); 93 clk = rz_cpg_register_clock(np, cpg, name); 96 __func__, np->name, name, PTR_ERR(clk)); 101 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data);
|
H A D | clk-r8a7740.c | 65 r8a7740_cpg_register_clock(struct device_node *np, struct r8a7740_cpg *cpg, argument 78 parent_name = of_clk_get_parent_name(np, 0); 83 parent_name = of_clk_get_parent_name(np, 0); 88 parent_name = of_clk_get_parent_name(np, 2); 92 parent_name = of_clk_get_parent_name(np, 0); 117 parent_name = of_clk_get_parent_name(np, 1); 147 static void __init r8a7740_cpg_clocks_init(struct device_node *np) argument 154 if (of_property_read_u32(np, "renesas,mode", &cpg_mode)) 157 num_clks = of_property_count_strings(np, "clock-output-names"); 177 cpg->reg = of_iomap(np, [all...] |
/drivers/video/ |
H A D | of_videomode.c | 18 * @np - devicenode with the display_timings 31 int of_get_videomode(struct device_node *np, struct videomode *vm, argument 37 disp = of_get_display_timings(np); 39 pr_err("%s: no timings specified\n", of_node_full_name(np));
|
/drivers/clk/ |
H A D | clk-ppc-corenet.c | 65 static void __init core_mux_init(struct device_node *np) argument 76 rc = of_property_read_u32(np, "reg", &offset); 78 pr_err("%s: could not get reg property\n", np->name); 83 count = of_property_count_strings(np, "clock-names"); 85 pr_err("%s: get clock count error\n", np->name); 95 parent_names[i] = of_clk_get_parent_name(np, i); 102 cmux_clk->reg = of_iomap(np, 0); 112 rc = of_property_read_string_index(np, "clock-output-names", 115 pr_err("%s: read clock names error\n", np->name); 132 rc = of_clk_add_provider(np, of_clk_src_simple_ge 147 core_pll_init(struct device_node *np) argument 251 struct device_node *np = of_get_parent(node); local [all...] |
/drivers/dma/ |
H A D | of-dma.c | 38 if (ofdma->of_node == dma_spec->np) 42 dma_spec->np->full_name); 49 * @np: device node of DMA controller 60 int of_dma_controller_register(struct device_node *np, argument 67 if (!np || !of_dma_xlate) { 76 ofdma->of_node = np; 91 * @np: device node of DMA controller 95 void of_dma_controller_free(struct device_node *np) argument 102 if (ofdma->of_node == np) { 114 * @np 123 of_dma_match_channel(struct device_node *np, const char *name, int index, struct of_phandle_args *dma_spec) argument 148 of_dma_request_slave_channel(struct device_node *np, const char *name) argument [all...] |
/drivers/memory/ |
H A D | of_memory.h | 16 extern const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np, 23 *of_get_min_tck(struct device_node *np, struct device *dev) argument
|
/drivers/macintosh/ |
H A D | macio_asic.c | 179 * @np: pointer to the device node 186 static int macio_resource_quirks(struct device_node *np, struct resource *res, argument 194 if (index == 0 && !strcmp(np->name, "gc")) 198 if (index >= 2 && !strcmp(np->name, "radio")) 211 if (!strcmp(np->name, "escc")) 215 if (index >= 3 && !(strcmp(np->name, "ch-a") && 216 strcmp(np->name, "ch-b"))) 220 if (index > 0 && !strcmp(np->name, "media-bay")) 224 if (!(strcmp(np->name, "IDE") && strcmp(np 251 struct device_node *np = dev->ofdev.dev.of_node; local 292 struct device_node *np = dev->ofdev.dev.of_node; local 320 struct device_node *np = dev->ofdev.dev.of_node; local 358 macio_add_one_device(struct macio_chip *chip, struct device *parent, struct device_node *np, struct macio_dev *in_bay, struct resource *parent_res) argument 436 macio_skip_device(struct device_node *np) argument 458 struct device_node *np, *pnode; local 686 struct device_node* np; local [all...] |
/drivers/gpio/ |
H A D | gpiolib-of.c | 42 if ((gc->of_node != gg_data->gpiospec.np) || 57 * @np: device node to get GPIO from 66 struct gpio_desc *of_get_named_gpiod_flags(struct device_node *np, argument 82 ret = of_parse_phandle_with_args(np, propname, "#gpio-cells", index, 86 __func__, propname, np->full_name, index); 92 of_node_put(gg_data.gpiospec.np); 94 __func__, propname, np->full_name, index, 99 int of_get_named_gpio_flags(struct device_node *np, const char *list_name, argument 104 desc = of_get_named_gpiod_flags(np, list_name, index, flags); 116 * @np 170 of_mm_gpiochip_add(struct device_node *np, struct of_mm_gpio_chip *mm_gc) argument 210 struct device_node *np = chip->of_node; local [all...] |
/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_dpi.c | 177 struct device_node *np; local 179 for_each_child_of_node(parent, np) { 182 if (!np->name || of_node_cmp(np->name, name)) 185 if (of_property_read_u32(np, "reg", &r) < 0) 192 return np; 220 struct device_node *np; local 223 np = of_parse_phandle(node, "remote-endpoint", 0); 226 for (depth = 3; depth && np; depth--) { 227 np 244 struct device_node *np, *ep; local 265 struct device_node *np; local [all...] |
/drivers/irqchip/ |
H A D | irq-orion.c | 53 static int __init orion_irq_init(struct device_node *np, argument 61 while (of_address_to_resource(np, num_chips, &r) == 0) 64 orion_irq_domain = irq_domain_add_linear(np, 68 panic("%s: unable to add irq domain\n", np->name); 71 ORION_IRQS_PER_CHIP, 1, np->name, 75 panic("%s: unable to alloc irq domain gc\n", np->name); 81 of_address_to_resource(np, n, &r); 83 if (!request_mem_region(r.start, resource_size(&r), np->name)) 85 np->name, n); 89 panic("%s: unable to map resource %d", np 139 orion_bridge_irq_init(struct device_node *np, struct device_node *parent) argument [all...] |
/drivers/video/fbdev/omap2/dss/ |
H A D | dss-of.c | 90 struct device_node *np; local 93 np = of_parse_phandle(node, "remote-endpoint", 0); 95 if (!np) 98 np = of_get_next_parent(np); 100 for (i = 0; i < 3 && np; ++i) { 103 prop = of_find_property(np, "compatible", NULL); 106 return np; 108 np = of_get_next_parent(np); [all...] |
/drivers/usb/host/ |
H A D | fsl-mph-dr-of.c | 45 static struct fsl_usb2_dev_data *get_dr_mode_data(struct device_node *np) argument 50 prop = of_get_property(np, "dr_mode", NULL); 58 np->full_name); 122 static int usb_get_ver_info(struct device_node *np) argument 131 if (of_device_is_compatible(np, "fsl-usb2-dr")) { 132 if (of_device_is_compatible(np, "fsl-usb2-dr-v1.6")) 134 else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.2")) 136 else if (of_device_is_compatible(np, "fsl-usb2-dr-v2.4")) 145 if (of_device_is_compatible(np, "fsl,mpc5121-usb2-dr")) 148 if (of_device_is_compatible(np, "fs 162 struct device_node *np = ofdev->dev.of_node; local [all...] |
/drivers/net/fddi/skfp/ |
H A D | pcmplc.c | 207 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold); 208 static void sm_ph_lem_stop(struct s_smc *smc, int np); 221 EV_TOKEN(EVENT_PCM+phy->np,event)) ; 240 int np ; local 244 for (np = 0,phy = smc->y ; np < NUMPHYS ; np++,phy++) { 248 phy->np = np ; 252 mib->fddiPORTMy_Type = (np 536 int np = phy->np ; /* PHY index */ local 595 pcm(struct s_smc *smc, const int np, int event) argument 677 int np = phy->np ; /* PHY index */ local 1179 int np ; local 1229 sm_ph_lem_start(struct s_smc *smc, int np, int threshold) argument 1247 sm_ph_lem_stop(struct s_smc *smc, int np) argument 1412 int np = phy->np ; local 1608 pcm_status_state(struct s_smc *smc, int np, int *type, int *state, int *remote, int *mac) argument 1647 plc_irq(struct s_smc *smc, int np, unsigned int cmd) argument 1899 get_pcm_state(struct s_smc *smc, int np) argument 1921 get_linestate(struct s_smc *smc, int np) argument 1943 get_pcmstate(struct s_smc *smc, int np) argument 1968 int np ; local [all...] |
/drivers/clocksource/ |
H A D | dw_apb_timer_of.c | 26 static void __init timer_get_base_and_rate(struct device_node *np, argument 32 *base = of_iomap(np, 0); 35 panic("Unable to map regs for %s", np->name); 41 pclk = of_clk_get_by_name(np, "pclk"); 45 np->name); 47 timer_clk = of_clk_get_by_name(np, "timer"); 57 if (of_property_read_u32(np, "clock-freq", rate) && 58 of_property_read_u32(np, "clock-frequency", rate)) 59 panic("No clock nor clock-frequency property for %s", np->name);
|
/drivers/clk/sunxi/ |
H A D | clk-sun6i-apb0.c | 33 struct device_node *np = pdev->dev.of_node; local 34 const char *clk_name = np->name; 45 clk_parent = of_clk_get_parent_name(np, 0); 49 of_property_read_string(np, "clock-output-names", &clk_name); 57 return of_clk_add_provider(np, of_clk_src_simple_get, clk);
|
H A D | clk-sun8i-apb0.c | 24 struct device_node *np = pdev->dev.of_node; local 25 const char *clk_name = np->name; 36 clk_parent = of_clk_get_parent_name(np, 0); 40 of_property_read_string(np, "clock-output-names", &clk_name); 48 return of_clk_add_provider(np, of_clk_src_simple_get, clk);
|