/freebsd/sys/dev/hwreset/ |
H A D | hwreset.c | 110 hwreset_get_by_ofw_idx(device_t consumer_dev, phandle_t cnode, int idx, in hwreset_get_by_ofw_idx() argument 119 if (cnode <= 0) in hwreset_get_by_ofw_idx() 120 cnode = ofw_bus_get_node(consumer_dev); in hwreset_get_by_ofw_idx() 121 if (cnode <= 0) { in hwreset_get_by_ofw_idx() 127 rv = ofw_bus_parse_xref_list_alloc(cnode, "resets", "#reset-cells", in hwreset_get_by_ofw_idx() 148 hwreset_get_by_ofw_name(device_t consumer_dev, phandle_t cnode, char *name, in hwreset_get_by_ofw_name() argument 153 if (cnode <= 0) in hwreset_get_by_ofw_name() 154 cnode = ofw_bus_get_node(consumer_dev); in hwreset_get_by_ofw_name() 155 if (cnode <= 0) { in hwreset_get_by_ofw_name() 160 rv = ofw_bus_find_string_index(cnode, "reset-names", name, &idx); in hwreset_get_by_ofw_name() [all …]
|
H A D | hwreset_array.c | 95 hwreset_array_get_ofw(device_t consumer_dev, phandle_t cnode, in hwreset_array_get_ofw() argument 101 if (cnode <= 0) in hwreset_array_get_ofw() 102 cnode = ofw_bus_get_node(consumer_dev); in hwreset_array_get_ofw() 103 if (cnode <= 0) { in hwreset_array_get_ofw() 109 rv = ofw_bus_parse_xref_list_get_length(cnode, "resets", "#reset-cells", in hwreset_array_get_ofw() 120 rv = hwreset_get_by_ofw_idx(consumer_dev, cnode, i, in hwreset_array_get_ofw()
|
H A D | hwreset.h | 68 int hwreset_array_get_ofw(device_t consumer_dev, phandle_t cnode,
|
/freebsd/sys/dev/phy/ |
H A D | phy.c | 479 phy_get_by_ofw_idx(device_t consumer_dev, phandle_t cnode, int idx, phy_t *phy) in phy_get_by_ofw_idx() argument 487 if (cnode <= 0) in phy_get_by_ofw_idx() 488 cnode = ofw_bus_get_node(consumer_dev); in phy_get_by_ofw_idx() 489 if (cnode <= 0) { in phy_get_by_ofw_idx() 494 rv = ofw_bus_parse_xref_list_alloc(cnode, "phys", "#phy-cells", idx, in phy_get_by_ofw_idx() 515 phy_get_by_ofw_name(device_t consumer_dev, phandle_t cnode, char *name, in phy_get_by_ofw_name() argument 520 if (cnode <= 0) in phy_get_by_ofw_name() 521 cnode = ofw_bus_get_node(consumer_dev); in phy_get_by_ofw_name() 522 if (cnode <= 0) { in phy_get_by_ofw_name() 527 rv = ofw_bus_find_string_index(cnode, "phy-names", name, &idx); in phy_get_by_ofw_name() [all …]
|
/freebsd/sys/dev/fdt/ |
H A D | fdt_clock.c | 51 phandle_t cnode; in enable_disable_all() local 57 cnode = ofw_bus_get_node(consumer); in enable_disable_all() 58 ncells = OF_getencprop_alloc_multi(cnode, "clocks", sizeof(*clks), in enable_disable_all() 96 phandle_t cnode; in fdt_clock_get_info() local 101 cnode = ofw_bus_get_node(consumer); in fdt_clock_get_info() 102 ncells = OF_getencprop_alloc_multi(cnode, "clocks", sizeof(*clks), in fdt_clock_get_info()
|
/freebsd/sys/dev/cpufreq/ |
H A D | cpufreq_dt.c | 476 phandle_t cnode, opp, copp; in cpufreq_dt_attach() local 565 cnode = OF_parent(node); in cpufreq_dt_attach() 566 for (cpu = 0, cnode = OF_child(cnode); cnode > 0; cnode = OF_peer(cnode)) { in cpufreq_dt_attach() 567 if (OF_getprop(cnode, "device_type", device_type, sizeof(device_type)) <= 0) in cpufreq_dt_attach() 580 OF_getencprop(cnode, "operating-points", &copp, in cpufreq_dt_attach() 583 OF_getencprop(cnode, "operating-points-v2", in cpufreq_dt_attach()
|
/freebsd/sys/dev/syscon/ |
H A D | syscon.c | 282 syscon_get_by_ofw_property(device_t cdev, phandle_t cnode, char *name, in syscon_get_by_ofw_property() argument 288 if (cnode <= 0) in syscon_get_by_ofw_property() 289 cnode = ofw_bus_get_node(cdev); in syscon_get_by_ofw_property() 290 if (cnode <= 0) { in syscon_get_by_ofw_property() 295 ncells = OF_getencprop_alloc_multi(cnode, name, sizeof(pcell_t), in syscon_get_by_ofw_property()
|
/freebsd/sys/dev/gpio/ |
H A D | ofw_gpiobus.c | 58 gpio_pin_get_by_ofw_propidx(device_t consumer, phandle_t cnode, in gpio_pin_get_by_ofw_propidx() argument 67 KASSERT(consumer != NULL && cnode > 0, in gpio_pin_get_by_ofw_propidx() 70 rv = ofw_bus_parse_xref_list_alloc(cnode, prop_name, "#gpio-cells", in gpio_pin_get_by_ofw_propidx() 90 rv = gpio_map_gpios(pin.dev, cnode, OF_node_from_xref(xref), ncells, in gpio_pin_get_by_ofw_propidx() 279 ofw_gpiobus_parse_gpios_impl(device_t consumer, phandle_t cnode, char *pname, in ofw_gpiobus_parse_gpios_impl() argument 286 ncells = OF_getencprop_alloc_multi(cnode, pname, sizeof(*gpios), in ofw_gpiobus_parse_gpios_impl() 386 if (gpio_map_gpios((*pins)[j].dev, cnode, gpio, gpiocells, in ofw_gpiobus_parse_gpios_impl()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | rb.h | 489 a_type *cnode = pathp->node; \ 492 rbtn_left_set(a_type, a_field, cnode, left); \ 500 rbtn_rotate_right(a_type, a_field, cnode, tnode); \ 501 cnode = tnode; \ 508 rbtn_right_set(a_type, a_field, cnode, right); \ 510 a_type *left = rbtn_left_get(a_type, a_field, cnode); \ 516 rbtn_red_set(a_type, a_field, cnode); \ 520 bool tred = rbtn_red_get(a_type, a_field, cnode); \ 521 rbtn_rotate_left(a_type, a_field, cnode, tnode); \ 523 rbtn_red_set(a_type, a_field, cnode); \ [all …]
|
/freebsd/sys/dev/clk/ |
H A D | clk.c | 1493 clk_get_by_ofw_index_prop(device_t dev, phandle_t cnode, const char *prop, int idx, clk_t *clk) in clk_get_by_ofw_index_prop() argument 1502 if (cnode <= 0) in clk_get_by_ofw_index_prop() 1503 cnode = ofw_bus_get_node(dev); in clk_get_by_ofw_index_prop() 1504 if (cnode <= 0) { in clk_get_by_ofw_index_prop() 1511 rv = ofw_bus_parse_xref_list_alloc(cnode, prop, "#clock-cells", idx, in clk_get_by_ofw_index_prop() 1544 clk_get_by_ofw_index(device_t dev, phandle_t cnode, int idx, clk_t *clk) in clk_get_by_ofw_index() argument 1546 return (clk_get_by_ofw_index_prop(dev, cnode, "clocks", idx, clk)); in clk_get_by_ofw_index() 1550 clk_get_by_ofw_name(device_t dev, phandle_t cnode, const char *name, clk_t *clk) in clk_get_by_ofw_name() argument 1554 if (cnode <= 0) in clk_get_by_ofw_name() 1555 cnode = ofw_bus_get_node(dev); in clk_get_by_ofw_name() [all …]
|
H A D | clk.h | 148 int clk_get_by_ofw_index_prop(device_t dev, phandle_t cnode, const char *prop, int idx, clk_t *clk);
|
/freebsd/sys/dev/regulator/ |
H A D | regulator.c | 1203 regulator_get_by_ofw_property(device_t cdev, phandle_t cnode, char *name, in regulator_get_by_ofw_property() argument 1213 if (cnode <= 0) in regulator_get_by_ofw_property() 1214 cnode = ofw_bus_get_node(cdev); in regulator_get_by_ofw_property() 1215 if (cnode <= 0) { in regulator_get_by_ofw_property() 1222 ncells = OF_getencprop_alloc_multi(cnode, name, sizeof(*cells), in regulator_get_by_ofw_property()
|
/freebsd/contrib/wpa/hs20/client/ |
H A D | oma_dm_client.c | 921 xml_node_t *cnode; in oma_dm_get_cmdid() local 925 cnode = get_node(ctx->xml, node, "CmdID"); in oma_dm_get_cmdid() 926 if (cnode == NULL) in oma_dm_get_cmdid() 929 str = xml_node_get_text(ctx->xml, cnode); in oma_dm_get_cmdid()
|