Home
last modified time | relevance | path

Searched refs:ncells (Results 1 – 25 of 53) sorted by relevance

123

/f-stack/freebsd/mips/mediatek/
H A Dfdt_reset.c57 int resetnum, err, i, ncells; in assert_deassert_all() local
62 ncells = OF_getencprop_alloc_multi(rnode, "resets", sizeof(*resets), in assert_deassert_all()
64 if (!assert && ncells < 2) { in assert_deassert_all()
70 for (i = 0; i < ncells; i += 2) { in assert_deassert_all()
H A Dmtk_intr_v1.c287 if (daf->ncells != 1 || daf->cells[0] >= sc->nirqs) in mtk_pic_map_intr()
H A Dmtk_intr_v2.c282 if (daf->ncells != 1 || daf->cells[0] >= sc->nirqs) in mtk_pic_map_intr()
/f-stack/freebsd/arm/allwinner/
H A Daw_gmacclk.c193 int error, ncells, i; in aw_gmacclk_attach() local
203 "#clock-cells", &ncells); in aw_gmacclk_attach()
204 if (error != 0 || ncells != CLK_IDX_COUNT) { in aw_gmacclk_attach()
219 def.parent_names = malloc(sizeof(char *) * ncells, M_OFWPROP, M_WAITOK); in aw_gmacclk_attach()
220 for (i = 0; i < ncells; i++) { in aw_gmacclk_attach()
229 def.parent_cnt = ncells; in aw_gmacclk_attach()
H A Daw_nmi.c160 aw_nmi_map_fdt(device_t dev, u_int ncells, pcell_t *cells, u_int *irqp, in aw_nmi_map_fdt() argument
167 if (ncells != 2) { in aw_nmi_map_fdt()
226 error = aw_nmi_map_fdt(dev, daf->ncells, daf->cells, &irq, NULL, NULL); in aw_nmi_map_intr()
253 error = aw_nmi_map_fdt(dev, daf->ncells, daf->cells, &irq, &pol, &trig); in aw_nmi_setup_intr()
/f-stack/freebsd/arm64/rockchip/
H A Drk_usb2phy.c238 rk_usb2phy_clk_ofw_map(struct clkdom *clkdom, uint32_t ncells, in rk_usb2phy_clk_ofw_map() argument
242 if (ncells != 0) in rk_usb2phy_clk_ofw_map()
263 int i, nclocks, ncells, error; in rk_usb2phy_export_clock() local
268 "#clock-cells", &ncells); in rk_usb2phy_export_clock()
269 if (error != 0 || ncells != 1) { in rk_usb2phy_export_clock()
285 def.parent_names = malloc(sizeof(char *) * ncells, M_OFWPROP, M_WAITOK); in rk_usb2phy_export_clock()
286 for (i = 0; i < ncells; i++) { in rk_usb2phy_export_clock()
295 def.parent_cnt = ncells; in rk_usb2phy_export_clock()
/f-stack/freebsd/arm/ti/clk/
H A Dclock_common.c62 int index, ncells, rv; in read_clock_cells() local
83 clk->num_real_clocks, &parent, &ncells, &cells); in read_clock_cells()
90 clk->clock_cells_ncells[index] = ncells; in read_clock_cells()
91 index += ncells; in read_clock_cells()
H A Dti_clkctrl.c95 int clkctrl_ofw_map(struct clkdom *clkdom, uint32_t ncells,
260 clkctrl_ofw_map(struct clkdom *clkdom, uint32_t ncells, in clkctrl_ofw_map() argument
262 if (ncells == 0) in clkctrl_ofw_map()
264 else if (ncells == 1) in clkctrl_ofw_map()
266 else if (ncells == 2) { in clkctrl_ofw_map()
/f-stack/freebsd/arm/nvidia/tegra124/
H A Dtegra124_coretemp.c132 int rv, ncells; in tegra124_coretemp_ofw_parse() local
149 "#thermal-sensor-cells", 0, &xnode, &ncells, &cells); in tegra124_coretemp_ofw_parse()
155 if (ncells != 1) { in tegra124_coretemp_ofw_parse()
158 ncells); in tegra124_coretemp_ofw_parse()
/f-stack/freebsd/arm64/nvidia/tegra210/
H A Dtegra210_coretemp.c137 int rv, ncells; in tegra210_coretemp_ofw_parse() local
154 "#thermal-sensor-cells", 0, &xnode, &ncells, &cells); in tegra210_coretemp_ofw_parse()
160 if (ncells != 1) { in tegra210_coretemp_ofw_parse()
163 ncells); in tegra210_coretemp_ofw_parse()
H A Dmax77620.h241 int max77620_regulator_map(device_t dev, phandle_t xref, int ncells,
/f-stack/freebsd/arm/mv/
H A Da37x0_gpio.c269 int err, ncells; in a37x0_gpio_attach() local
282 ncells = OF_getencprop_alloc(ofw_bus_get_node(dev), "gpio-ranges", in a37x0_gpio_attach()
284 if (ncells == -1) in a37x0_gpio_attach()
286 if (ncells != sizeof(*ranges) * 4 || ranges[1] != 0 || ranges[2] != 0) { in a37x0_gpio_attach()
H A Dmv_cp110_icu.c155 if (daf->ncells != 2) in mv_cp110_icu_convert_map_data()
169 sc->parent_map_data->ncells = 2; in mv_cp110_icu_convert_map_data()
231 if (daf->ncells != 2) in mv_cp110_icu_map_intr()
H A Dmv_ap806_gicp.c142 if (daf->ncells != 2) in mv_ap806_gicp_convert_map_data()
151 sc->parent_map_data->ncells = 3; in mv_ap806_gicp_convert_map_data()
H A Dmv_cp110_clock.c169 cp110_ofw_map(struct clkdom *clkdom, uint32_t ncells, in cp110_ofw_map() argument
174 if (ncells != 2) in cp110_ofw_map()
H A Dmvebu_gpio.c401 mvebu_gpio_pic_map_fdt(struct mvebu_gpio_softc *sc, u_int ncells, in mvebu_gpio_pic_map_fdt() argument
415 if (ncells != 2 || cells[0] >= sc->gpio_npins) in mvebu_gpio_pic_map_fdt()
499 rv = mvebu_gpio_pic_map_fdt(sc, daf->ncells, daf->cells, &irq, in mvebu_gpio_pic_map_intr()
573 rv = mvebu_gpio_pic_map_fdt(sc, daf->ncells, daf->cells, &irq, in mvebu_gpio_pic_setup_intr()
/f-stack/freebsd/arm64/qoriq/clk/
H A Dqoriq_clkgen.c70 qoriq_clkgen_ofw_mapper(struct clkdom *clkdom, uint32_t ncells, in qoriq_clkgen_ofw_mapper() argument
74 if (ncells != 2) in qoriq_clkgen_ofw_mapper()
/f-stack/app/redis-5.0.5/deps/jemalloc/src/
H A Dckh.c446 size_t i, ncells; in ckh_iter() local
448 for (i = *tabind, ncells = (ZU(1) << (ckh->lg_curbuckets + in ckh_iter()
449 LG_CKH_BUCKET_CELLS)); i < ncells; i++) { in ckh_iter()
/f-stack/freebsd/arm/nvidia/
H A Dtegra_gpio.c496 tegra_gpio_pic_map_fdt(struct tegra_gpio_softc *sc, u_int ncells, in tegra_gpio_pic_map_fdt() argument
510 if (ncells != 2 || cells[0] >= sc->gpio_npins) in tegra_gpio_pic_map_fdt()
586 rv = tegra_gpio_pic_map_fdt(sc, daf->ncells, daf->cells, &irq, in tegra_gpio_pic_map_intr()
660 rv = tegra_gpio_pic_map_fdt(sc, daf->ncells, daf->cells, &irq, in tegra_gpio_pic_setup_intr()
/f-stack/freebsd/arm/broadcom/bcm2835/
H A Dbcm2835_intr.c268 if (daf->ncells == 1) in bcm_intc_map_intr()
270 else if (daf->ncells == 2) { in bcm_intc_map_intr()
/f-stack/freebsd/mips/ingenic/
H A Djz4780_pdma.c534 pdma_ofw_md_data(device_t dev, pcell_t *cells, int ncells, void **ptr) in pdma_ofw_md_data() argument
538 if (ncells != 3) { in pdma_ofw_md_data()
H A Djz4780_gpio.c569 daf->ncells == 0 || daf->ncells > 2) in jz_gpio_map_intr_fdt()
573 if (daf->ncells == 1) { in jz_gpio_map_intr_fdt()
/f-stack/freebsd/arm/arm/
H A Dgic.c654 gic_map_fdt(device_t dev, u_int ncells, pcell_t *cells, u_int *irqp, in gic_map_fdt() argument
658 if (ncells == 1) { in gic_map_fdt()
664 if (ncells == 3) { in gic_map_fdt()
761 if (gic_map_fdt(dev, daf->ncells, daf->cells, &irq, &pol, in gic_map_intr()
/f-stack/freebsd/arm/freescale/imx/
H A Dtzic.c169 if (daf->ncells != 1 || daf->cells[0] >= TZIC_NIRQS) in tzic_map_intr()
/f-stack/freebsd/arm/ti/
H A Daintc.c179 if (daf->ncells != 1 || daf->cells[0] >= INTC_NIRQS) in ti_aintc_map_intr()

123