| /linux/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_hipd.c | 41 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 D | sym_nvram.c | 37 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 …]
|
| H A D | sym_hipd.h | 75 #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 …]
|
| H A D | sym_fw.c | 96 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/drivers/net/ethernet/nvidia/ |
| H A D | forcedeth.c | 727 __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/drivers/net/ethernet/sun/ |
| H A D | niu.c | 91 #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/clk/at91/ |
| H A D | dt-compat.c | 31 static void __init of_sama5d2_clk_audio_pll_frac_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_frac_setup() argument 34 const char *name = np->name; in of_sama5d2_clk_audio_pll_frac_setup() 39 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_frac_setup() 45 parent_name = of_clk_get_parent_name(np, 0); in of_sama5d2_clk_audio_pll_frac_setup() 51 of_clk_add_hw_provider(np, of_clk_hw_simple_get, hw); in of_sama5d2_clk_audio_pll_frac_setup() 57 static void __init of_sama5d2_clk_audio_pll_pad_setup(struct device_node *np) in of_sama5d2_clk_audio_pll_pad_setup() argument 60 const char *name = np->name; in of_sama5d2_clk_audio_pll_pad_setup() 65 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_pad_setup() 71 parent_name = of_clk_get_parent_name(np, 0); in of_sama5d2_clk_audio_pll_pad_setup() 77 of_clk_add_hw_provider(np, of_clk_hw_simple_get, hw); in of_sama5d2_clk_audio_pll_pad_setup() [all …]
|
| /linux/drivers/memory/ |
| H A D | of_memory.c | 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() 46 ret |= of_property_read_u32(np, "tCKE-min-tck", &min->tCKE); in of_get_min_tck() [all …]
|
| /linux/drivers/video/ |
| H A D | of_display_timing.c | 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() 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/drivers/of/ |
| H A D | base.c | 60 bool of_node_name_eq(const struct device_node *np, const char *name) in of_node_name_eq() argument 65 if (!np) in of_node_name_eq() 68 node_name = kbasename(np->full_name); in of_node_name_eq() 75 bool of_node_name_prefix(const struct device_node *np, const char *prefix) in of_node_name_prefix() argument 77 if (!np) in of_node_name_prefix() 80 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix() 84 static bool __of_node_is_type(const struct device_node *np, const char *type) in __of_node_is_type() argument 89 if (!np || !type) in __of_node_is_type() 92 match = __of_get_property(np, "device_type", &len); in __of_node_is_type() 101 struct device_node *np __fre 104 of_bus_n_addr_cells(struct device_node * np) of_bus_n_addr_cells() argument 122 of_n_addr_cells(struct device_node * np) of_n_addr_cells() argument 131 of_bus_n_size_cells(struct device_node * np) of_bus_n_size_cells() argument 149 of_n_size_cells(struct device_node * np) of_n_size_cells() argument 159 of_node_to_nid(struct device_node * np) of_node_to_nid() argument 181 struct device_node *np; __of_phandle_cache_inv_entry() local 195 struct device_node *np; of_core_init() local 219 __of_find_property(const struct device_node * np,const char * name,int * lenp) __of_find_property() argument 238 of_find_property(const struct device_node * np,const char * name,int * lenp) of_find_property() argument 255 struct device_node *np; __of_find_all_nodes() local 280 struct device_node *np; of_find_all_nodes() local 296 __of_get_property(const struct device_node * np,const char * name,int * lenp) __of_get_property() argument 308 of_get_property(const struct device_node * np,const char * name,int * lenp) of_get_property() argument 645 struct device_node *np; of_get_parent() local 986 struct device_node *np = NULL; of_find_node_opts_by_path() local 1045 struct device_node *np; of_find_node_by_name() local 1073 struct device_node *np; of_find_node_by_type() local 1103 struct device_node *np; of_find_compatible_node() local 1132 struct device_node *np; of_find_node_with_property() local 1207 struct device_node *np; of_find_matching_node_and_match() local 1270 struct device_node *np = NULL; of_find_node_by_phandle() local 1313 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) of_phandle_iterator_init() argument 1447 __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) __of_parse_phandle_with_args() argument 1545 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) of_parse_phandle_with_args_map() argument 1693 of_count_phandle_with_args(const struct device_node * np,const char * list_name,const char * cells_name) of_count_phandle_with_args() argument 1749 __of_add_property(struct device_node * np,struct property * prop) __of_add_property() argument 1785 of_add_property(struct device_node * np,struct property * prop) of_add_property() argument 1800 __of_remove_property(struct device_node * np,struct property * prop) __of_remove_property() argument 1832 of_remove_property(struct device_node * np,struct property * prop) of_remove_property() argument 1850 __of_update_property(struct device_node * np,struct property * newprop,struct property ** oldpropp) __of_update_property() argument 1894 of_update_property(struct device_node * np,struct property * newprop) of_update_property() argument 1912 of_alias_add(struct alias_prop * ap,struct device_node * np,int id,const char * stem,int stem_len) of_alias_add() argument 1961 struct device_node *np; of_alias_scan() local 2006 of_alias_get_id(const struct device_node * np,const char * stem) of_alias_get_id() argument 2085 of_find_next_cache_node(const struct device_node * np) of_find_next_cache_node() argument 2119 struct device_node *prev = NULL, *np = of_cpu_device_node_get(cpu); of_find_last_cache_level() local 2183 of_map_id(const struct device_node * np,u32 id,const char * map_name,const char * cells_name,const char * map_mask_name,struct device_node * const * filter_np,struct of_phandle_args * arg) of_map_id() argument 2344 of_map_iommu_id(const struct device_node * np,u32 id,struct of_phandle_args * arg) of_map_iommu_id() argument 2371 of_map_msi_id(const struct device_node * np,u32 id,struct device_node * const * filter_np,struct of_phandle_args * arg) of_map_msi_id() argument [all...] |
| H A D | overlay_test.c | 22 struct device_node *np; in of_overlay_apply_kunit_apply() local 27 np = of_find_node_by_name(NULL, kunit_node_name); in of_overlay_apply_kunit_apply() 28 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, np); in of_overlay_apply_kunit_apply() 29 of_node_put(np); in of_overlay_apply_kunit_apply() 39 struct device_node *np; in of_overlay_apply_kunit_platform_device() local 44 np = of_find_node_by_name(NULL, kunit_node_name); in of_overlay_apply_kunit_platform_device() 45 of_node_put_kunit(test, np); in of_overlay_apply_kunit_platform_device() 46 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, np); in of_overlay_apply_kunit_platform_device() 48 pdev = of_find_device_by_node(np); in of_overlay_apply_kunit_platform_device() 65 struct device_node *np; in of_overlay_apply_kunit_cleanup() local [all …]
|
| /linux/include/linux/ |
| H A D | of.h | 72 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_u8_index(const struct device_node *np, 322 extern int of_property_read_u16_index(const struct device_node *np, [all …]
|
| H A D | of_mdio.h | 17 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/arch/powerpc/kernel/ |
| H A D | legacy_serial.c | 33 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/drivers/gpio/ |
| H A D | gpiolib-of.c | 66 static int of_gpio_named_count(const struct device_node *np, in of_gpio_named_count() argument 69 return of_count_phandle_with_args(np, propname, "#gpio-cells"); in of_gpio_named_count() 89 static int of_gpio_spi_cs_get_count(const struct device_node *np, in of_gpio_spi_cs_get_count() argument 96 if (!of_device_is_compatible(np, "fsl,spi") && in of_gpio_spi_cs_get_count() 97 !of_device_is_compatible(np, "aeroflexgaisler,spictrl") && in of_gpio_spi_cs_get_count() 98 !of_device_is_compatible(np, "ibm,ppc4xx-spi")) in of_gpio_spi_cs_get_count() 100 return of_gpio_named_count(np, "gpios"); in of_gpio_spi_cs_get_count() 105 const struct device_node *np = to_of_node(fwnode); in of_gpio_count() local 109 ret = of_gpio_spi_cs_get_count(np, con_id); in of_gpio_count() 114 ret = of_gpio_named_count(np, propname); in of_gpio_count() [all …]
|
| /linux/drivers/mfd/ |
| H A D | syscon.c | 28 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", ®_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/drivers/pci/pwrctrl/ |
| H A D | core.c | 152 static bool pci_pwrctrl_is_required(struct device_node *np) in pci_pwrctrl_is_required() argument 158 ret = of_property_read_string(np, "compatible", &compat); in pci_pwrctrl_is_required() 165 if (of_pci_supply_present(np)) in pci_pwrctrl_is_required() 168 if (of_graph_is_present(np)) { in pci_pwrctrl_is_required() 169 for_each_endpoint_of_node(np, endpoint) { in pci_pwrctrl_is_required() 194 static void pci_pwrctrl_power_off_device(struct device_node *np) in pci_pwrctrl_power_off_device() argument 199 for_each_available_child_of_node_scoped(np, child) in pci_pwrctrl_power_off_device() 202 if (!pci_pwrctrl_is_required(np)) in pci_pwrctrl_power_off_device() 205 pdev = of_find_device_by_node(np); in pci_pwrctrl_power_off_device() 231 struct device_node *np = parent->of_node; in pci_pwrctrl_power_off_devices() local [all …]
|
| /linux/drivers/thermal/ |
| H A D | thermal_of.c | 44 static int thermal_of_get_trip_type(struct device_node *np, in thermal_of_get_trip_type() argument 50 err = of_property_read_string(np, "type", &t); in thermal_of_get_trip_type() 63 static int thermal_of_populate_trip(struct device_node *np, in thermal_of_populate_trip() argument 69 ret = of_property_read_u32(np, "temperature", &prop); in thermal_of_populate_trip() 76 ret = of_property_read_u32(np, "hysteresis", &prop); in thermal_of_populate_trip() 83 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip() 91 trip->priv = np; in thermal_of_populate_trip() 96 static struct thermal_trip *thermal_of_trips_init(struct device_node *np, int *ntrips) in thermal_of_trips_init() argument 102 struct device_node *trips __free(device_node) = of_get_child_by_name(np, "trips"); in thermal_of_trips_init() 130 struct device_node *np __free(device_node) = of_find_node_by_name(NULL, "thermal-zones"); in of_thermal_zone_find() [all …]
|
| /linux/arch/powerpc/platforms/powermac/ |
| H A D | setup.c | 86 struct device_node *np; in pmac_show_cpuinfo() local 103 np = of_find_node_by_path("/"); in pmac_show_cpuinfo() 104 if (np != NULL) { in pmac_show_cpuinfo() 105 pp = of_get_property(np, "model", NULL); in pmac_show_cpuinfo() 110 pp = of_get_property(np, "compatible", &plen); in pmac_show_cpuinfo() 121 of_node_put(np); in pmac_show_cpuinfo() 130 np = of_find_node_by_name(NULL, "l2-cache"); in pmac_show_cpuinfo() 131 if (np == NULL) in pmac_show_cpuinfo() 132 np = of_find_node_by_type(NULL, "cache"); in pmac_show_cpuinfo() 133 if (np != NULL) { in pmac_show_cpuinfo() [all …]
|
| /linux/drivers/net/fddi/skfp/ |
| H A D | pcmplc.c | 196 static void sm_ph_lem_start(struct s_smc *smc, int np, int threshold); 197 static void sm_ph_lem_stop(struct s_smc *smc, int np); 210 EV_TOKEN(EVENT_PCM+phy->np,event)) ; in start_pcm_timer0() 229 int np ; in pcm_init() local 233 for (np = 0,phy = smc->y ; np < NUMPHYS ; np++,phy++) { in pcm_init() 237 phy->np = np ; in pcm_init() 241 mib->fddiPORTMy_Type = (np == PS) ? TS : TM ; in pcm_init() 244 mib->fddiPORTMy_Type = (np == PA) ? TA : in pcm_init() 245 (np == PB) ? TB : TM ; in pcm_init() 252 mib->fddiPORTMy_Type = (np == PS) ? TS : TNONE ; in pcm_init() [all …]
|
| /linux/drivers/pinctrl/ |
| H A D | pinctrl-generic.c | 23 struct device_node *np, struct pinctrl_map **maps, in pinctrl_generic_to_map() argument 34 group_name = devm_kasprintf(dev, GFP_KERNEL, "%pOFn.%pOFn", parent, np); in pinctrl_generic_to_map() 56 ret = pinconf_generic_parse_dt_config(np, pctldev, &configs, &num_configs); in pinctrl_generic_to_map() 90 struct device_node *np, in pinctrl_generic_pins_function_dt_subnode_to_map() argument 102 npins = of_property_count_u32_elems(np, "pins"); in pinctrl_generic_pins_function_dt_subnode_to_map() 106 parent, np, npins); in pinctrl_generic_pins_function_dt_subnode_to_map() 119 ret = of_property_read_u32_index(np, "pins", i, &pin); in pinctrl_generic_pins_function_dt_subnode_to_map() 125 ret = of_property_read_string(np, "function", &functions[i]); in pinctrl_generic_pins_function_dt_subnode_to_map() 130 return pinctrl_generic_to_map(pctldev, parent, np, maps, num_maps, in pinctrl_generic_pins_function_dt_subnode_to_map() 137 struct device_node *np, in pinctrl_generic_pinmux_dt_subnode_to_map() argument [all …]
|
| /linux/arch/powerpc/platforms/512x/ |
| H A D | mpc512x_shared.c | 57 struct device_node *np; in mpc512x_set_pixel_clock() local 63 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_set_pixel_clock() 64 if (!np) { in mpc512x_set_pixel_clock() 68 clk_diu = of_clk_get(np, 0); in mpc512x_set_pixel_clock() 71 clk_diu = clk_get_sys(np->name, "ipg"); in mpc512x_set_pixel_clock() 73 of_node_put(np); in mpc512x_set_pixel_clock() 205 struct device_node *np; in mpc512x_init_diu() local 212 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_init_diu() 213 if (!np) { in mpc512x_init_diu() 218 diu_reg = of_iomap(np, 0); in mpc512x_init_diu() [all …]
|
| /linux/drivers/clk/renesas/ |
| H A D | clk-emev2.c | 41 struct device_node *np; in emev2_smu_init() local 43 np = of_find_matching_node(NULL, smu_id); in emev2_smu_init() 44 BUG_ON(!np); in emev2_smu_init() 45 smu_base = of_iomap(np, 0); in emev2_smu_init() 47 of_node_put(np); in emev2_smu_init() 64 static void __init emev2_smu_clkdiv_init(struct device_node *np) in emev2_smu_clkdiv_init() argument 68 const char *parent_name = of_clk_get_parent_name(np, 0); in emev2_smu_clkdiv_init() 69 if (WARN_ON(of_property_read_u32_array(np, "reg", reg, 2))) in emev2_smu_clkdiv_init() 73 clk = clk_register_divider(NULL, np->name, parent_name, 0, in emev2_smu_clkdiv_init() 75 of_clk_add_provider(np, of_clk_src_simple_get, clk); in emev2_smu_clkdiv_init() [all …]
|
| /linux/drivers/opp/ |
| H A D | of.c | 31 static struct device_node *_opp_of_get_opp_desc_node(struct device_node *np, in _opp_of_get_opp_desc_node() argument 35 return of_parse_phandle(np, "operating-points-v2", index); in _opp_of_get_opp_desc_node() 49 struct device_node *np __free(device_node) = in _managed_opp() 52 if (!np) in _managed_opp() 56 if (opp_table->np == np) { in _managed_opp() 83 if (opp->np == opp_np) in _find_opp_of_np() 90 static struct device_node *of_parse_required_opp(struct device_node *np, in of_parse_required_opp() argument 93 return of_parse_phandle(np, "required-opps", index); in of_parse_required_opp() 110 if (opp_table_np == opp_table->np) in _find_table_of_opp_np() 155 struct device_node *np __free(device_node) = in _opp_table_alloc_required_tables() [all …]
|
| /linux/drivers/macintosh/ |
| H A D | macio_asic.c | 186 static int macio_resource_quirks(struct device_node *np, struct resource *res, in macio_resource_quirks() argument 194 if (index == 0 && of_node_name_eq(np, "gc")) in macio_resource_quirks() 198 if (index >= 2 && of_node_name_eq(np, "radio")) in macio_resource_quirks() 211 if (of_node_name_eq(np, "escc")) in macio_resource_quirks() 215 if (index >= 3 && (of_node_name_eq(np, "ch-a") || in macio_resource_quirks() 216 of_node_name_eq(np, "ch-b"))) in macio_resource_quirks() 220 if (index > 0 && of_node_name_eq(np, "media-bay")) in macio_resource_quirks() 224 if (of_node_name_eq(np, "IDE") || of_node_name_eq(np, "ATA") || in macio_resource_quirks() 225 of_node_is_type(np, "ide") || of_node_is_type(np, "ata")) { in macio_resource_quirks() 251 struct device_node *np = dev->ofdev.dev.of_node; in macio_add_missing_resources() local [all …]
|