Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 79) sorted by relevance

1234

/Zephyr-latest/tests/drivers/fuel_gauge/bq27z746/src/
Dtest_bq27z746.c36 fuel_gauge_prop_t props[] = { in ZTEST_USER_F() local
44 union fuel_gauge_prop_val vals[ARRAY_SIZE(props)]; in ZTEST_USER_F()
46 int ret = fuel_gauge_get_props(fixture->dev, props, vals, ARRAY_SIZE(props)); in ZTEST_USER_F()
103 fuel_gauge_prop_t props[] = { in ZTEST_USER_F() local
122 union fuel_gauge_prop_val vals[ARRAY_SIZE(props)]; in ZTEST_USER_F()
124 zassert_ok(fuel_gauge_get_props(fixture->dev, props, vals, ARRAY_SIZE(props))); in ZTEST_USER_F()
148 zassert_between_inclusive(props[0].avg_current, -32768 * 1000, 32767 * 1000); in ZTEST_USER_F()
149 zassert_between_inclusive(props[1].cycle_count, 0, 6553500); in ZTEST_USER_F()
150 zassert_between_inclusive(props[2].current, -32768 * 1000, 32767 * 1000); in ZTEST_USER_F()
151 zassert_between_inclusive(props[3].full_charge_capacity, 0, 32767 * 1000); in ZTEST_USER_F()
[all …]
/Zephyr-latest/tests/drivers/fuel_gauge/max17048/src/
Dtest_max17048.c45 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)]; in ZTEST_USER_F() local
47 int ret = fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F()
63 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)]; in ZTEST_USER_F() local
65 zassert_ok(fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props))); in ZTEST_USER_F()
76 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)]; in ZTEST_USER_F() local
82 int ret = fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F()
84 zassert_equal(props[0].runtime_to_empty, 0, "Runtime to empty is %d but it should be 0.", in ZTEST_USER_F()
85 props[0].runtime_to_full); in ZTEST_USER_F()
86 zassert_equal(props[1].runtime_to_full, 0, "Runtime to full is %d but it should be 0.", in ZTEST_USER_F()
87 props[1].runtime_to_full); in ZTEST_USER_F()
/Zephyr-latest/tests/drivers/sdhc/src/
Dmain.c13 static struct sdhc_host_props props; variable
25 ret = sdhc_get_host_props(sdhc_dev, &props); in sdhc_power_on()
28 io.clock = props.f_min; in sdhc_power_on()
37 k_msleep(props.power_delay); in sdhc_power_on()
60 props.f_max = 0xFF; in ZTEST()
61 props.f_min = 0xFF; in ZTEST()
62 props.power_delay = 0xFF; in ZTEST()
63 props.max_current_330 = 0xFF; in ZTEST()
64 props.max_current_300 = 0xFF; in ZTEST()
65 props.max_current_180 = 0xFF; in ZTEST()
[all …]
/Zephyr-latest/subsys/sd/
Dsd_ops.h39 static inline int sdmmc_host_uhs(struct sdhc_host_props *props) in sdmmc_host_uhs() argument
41 return (props->host_caps.sdr50_support | in sdmmc_host_uhs()
42 props->host_caps.uhs_2_support | in sdmmc_host_uhs()
43 props->host_caps.sdr104_support | in sdmmc_host_uhs()
44 props->host_caps.ddr50_support) in sdmmc_host_uhs()
45 & (props->host_caps.vol_180_support); in sdmmc_host_uhs()
/Zephyr-latest/tests/drivers/fuel_gauge/sbs_gauge/src/
Dtest_sbs_gauge.c45 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)] = {0}; in ZTEST_USER_F() local
47 int ret = fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F()
58 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)] = {0}; in ZTEST_USER_F() local
60 int ret = fuel_gauge_set_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F()
78 union fuel_gauge_prop_val props[] = { in ZTEST_USER_F() local
88 int ret = fuel_gauge_set_props(fixture->dev, prop_types, props, ARRAY_SIZE(props)); in ZTEST_USER_F()
169 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)] = {0}; in ZTEST_USER_F() local
171 zassert_ok(fuel_gauge_get_props(fixture->dev, prop_types, props, ARRAY_SIZE(props))); in ZTEST_USER_F()
184 union fuel_gauge_prop_val props[ARRAY_SIZE(prop_types)] = {0}; in ZTEST_USER_F() local
186 zassert_ok(fuel_gauge_set_props(fixture->dev, prop_types, props, ARRAY_SIZE(props))); in ZTEST_USER_F()
/Zephyr-latest/samples/fuel_gauge/max17048/src/
Dmain.c42 fuel_gauge_prop_t props[] = { in main() local
49 union fuel_gauge_prop_val vals[ARRAY_SIZE(props)]; in main()
51 ret = fuel_gauge_get_props(dev, props, vals, ARRAY_SIZE(props)); in main()
/Zephyr-latest/scripts/kconfig/
Dkconfigfunctions.py72 if "label" not in node.props:
75 return node.props["label"].val
218 if prop not in node.props:
221 if node.props[prop].type != "int":
224 return node.props[prop].val >> _dt_units_to_scale(unit)
244 if prop not in node.props:
246 if node.props[prop].type != "array":
248 if int(index) >= len(node.props[prop].val):
250 return node.props[prop].val[int(index)] >> _dt_units_to_scale(unit)
270 if prop not in node.props:
[all …]
/Zephyr-latest/scripts/west_commands/runners/
Dnsim.py29 props=DEFAULT_PROPS_FILE): argument
37 self.props = props
59 props=args.props)
64 self.props)
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_dtlib.py819 phandle = dtlib.to_num(dt.root.props[prop].value[offset:offset + 4])
1563 actual = dt.root.props[prop].type
1669 actual = dt.root.props[prop].to_num(signed)
1675 dt.root.props[prop].to_num()
1707 actual = dt.root.props[prop].to_nums(signed)
1713 dt.root.props[prop].to_nums()
1737 actual = dt.root.props[prop].to_bytes()
1742 dt.root.props[prop].to_bytes()
1760 actual = dt.root.props[prop].to_string()
1765 dt.root.props[prop].to_string()
[all …]
/Zephyr-latest/doc/_extensions/zephyr/doxytooltip/static/tippy/
Dtippy-bundle.umd.min.js6props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(I(r.arrow))):i.appendChild(I(r… property in z.Y
/Zephyr-latest/scripts/dts/
Dgen_dts_cmake.py122 for item in node.props:
124 if "phandle" not in node.props[item].type:
125 if "array" in node.props[item].type:
128 for val in node.props[item].val:
131 cmake_value = node.props[item].val
140 for comp in node.props[item].val:
/Zephyr-latest/tests/boards/intel_adsp/ssp/src/
Dmain.c104 static int config_output_dma(const struct dai_properties *props, uint32_t *chan_id) in config_output_dma() argument
106 dma_cfg.dma_slot = props->dma_hs_id; in config_output_dma()
131 dma_block_cfgs[i].dest_address = props->fifo_address; in config_output_dma()
144 static int config_input_dma(const struct dai_properties *props, uint32_t *chan_id_rx) in config_input_dma() argument
146 dma_cfg_rx.dma_slot = props->dma_hs_id; in config_input_dma()
171 dma_block_cfgs_rx[i].source_address = props->fifo_address; in config_input_dma()
260 const struct dai_properties *props; in ZTEST() local
264 props = dai_get_properties(dev_dai_ssp, DAI_DIR_TX, 0); in ZTEST()
265 if (!props) { in ZTEST()
270 if (config_output_dma(props, &chan_id)) { in ZTEST()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_mchp_mec5.c87 struct mec_gpio_props props[8]; in gpio_mec5_configure() local
120 props[idx].prop = MEC_GPIO_DIR_PROP_ID; in gpio_mec5_configure()
121 props[idx].val = MEC_GPIO_PROP_DIR_OUT; in gpio_mec5_configure()
124 props[idx].prop = MEC_GPIO_OBUFT_PROP_ID; in gpio_mec5_configure()
125 props[idx].val = MEC_GPIO_PROP_PUSH_PULL; in gpio_mec5_configure()
127 props[idx].val = MEC_GPIO_PROP_OPEN_DRAIN; in gpio_mec5_configure()
131 props[idx].prop = MEC_GPIO_CTRL_OUT_VAL_ID; in gpio_mec5_configure()
132 props[idx].val = 0u; in gpio_mec5_configure()
134 props[idx].val = 1u; in gpio_mec5_configure()
136 props[idx].val = 0u; in gpio_mec5_configure()
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_ots.c31 uint32_t props; member
74 uint32_t props; in register_object() local
91 props = sys_le32_to_cpu(cp->ots_props); in register_object()
93 props &= supported_props; in register_object()
107 obj_data.props = props; in register_object()
179 BT_OTS_OBJ_SET_PROP_READ(created_desc->props); in ots_obj_created()
180 BT_OTS_OBJ_SET_PROP_WRITE(created_desc->props); in ots_obj_created()
181 BT_OTS_OBJ_SET_PROP_PATCH(created_desc->props); in ots_obj_created()
182 BT_OTS_OBJ_SET_PROP_DELETE(created_desc->props); in ots_obj_created()
187 created_desc->props = object_being_created->props; in ots_obj_created()
/Zephyr-latest/drivers/sdhc/
Difx_cat1_sdio.c205 static int ifx_cat1_sdio_get_host_props(const struct device *dev, struct sdhc_host_props *props) in ifx_cat1_sdio_get_host_props() argument
207 memset(props, 0, sizeof(*props)); in ifx_cat1_sdio_get_host_props()
208 props->f_max = IFX_CAT1_SDIO_F_MAX; in ifx_cat1_sdio_get_host_props()
209 props->f_min = IFX_CAT1_SDIO_F_MIN; in ifx_cat1_sdio_get_host_props()
210 props->host_caps.bus_4_bit_support = true; in ifx_cat1_sdio_get_host_props()
211 props->host_caps.high_spd_support = true; in ifx_cat1_sdio_get_host_props()
212 props->host_caps.sdr50_support = true; in ifx_cat1_sdio_get_host_props()
213 props->host_caps.sdio_async_interrupt_support = true; in ifx_cat1_sdio_get_host_props()
214 props->host_caps.vol_330_support = true; in ifx_cat1_sdio_get_host_props()
Dimx_usdhc.c80 struct sdhc_host_props props; member
230 struct sdhc_host_props *props = &data->props; in imx_usdhc_init_host_props() local
232 memset(props, 0, sizeof(struct sdhc_host_props)); in imx_usdhc_init_host_props()
233 props->f_max = cfg->max_bus_freq; in imx_usdhc_init_host_props()
234 props->f_min = cfg->min_bus_freq; in imx_usdhc_init_host_props()
235 props->max_current_330 = cfg->max_current_330; in imx_usdhc_init_host_props()
236 props->max_current_180 = cfg->max_current_180; in imx_usdhc_init_host_props()
237 props->power_delay = cfg->power_delay_ms; in imx_usdhc_init_host_props()
241 props->host_caps.vol_180_support = false; in imx_usdhc_init_host_props()
243 props->host_caps.vol_180_support = (bool)(caps.flags & kUSDHC_SupportV180Flag); in imx_usdhc_init_host_props()
[all …]
Dmcux_sdif.c112 struct sdhc_host_props *props) in mcux_sdif_get_host_props() argument
114 memset(props, 0, sizeof(*props)); in mcux_sdif_get_host_props()
115 props->f_max = MCUX_SDIF_F_MAX; in mcux_sdif_get_host_props()
116 props->f_min = MCUX_SDIF_F_MIN; in mcux_sdif_get_host_props()
117 props->power_delay = 500; in mcux_sdif_get_host_props()
118 props->host_caps.high_spd_support = true; in mcux_sdif_get_host_props()
119 props->host_caps.suspend_res_support = true; in mcux_sdif_get_host_props()
120 props->host_caps.vol_330_support = true; in mcux_sdif_get_host_props()
121 props->host_caps.bus_8_bit_support = true; in mcux_sdif_get_host_props()
122 props->max_current_330 = 1024; in mcux_sdif_get_host_props()
Dsdhc_cdns.c117 struct sdhc_host_props *props) in sdhc_cdns_get_host_props() argument
121 memset(props, 0, sizeof(struct sdhc_host_props)); in sdhc_cdns_get_host_props()
122 props->f_min = SDMMC_CLOCK_400KHZ; in sdhc_cdns_get_host_props()
127 props->f_max = SD_CLOCK_25MHZ; in sdhc_cdns_get_host_props()
128 props->power_delay = sdhc_config->power_delay_ms; in sdhc_cdns_get_host_props()
129 props->host_caps.vol_330_support = true; in sdhc_cdns_get_host_props()
130 props->is_spi = false; in sdhc_cdns_get_host_props()
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py1011 dt_node.props["compatible"].to_strings()
1012 if "compatible" in dt_node.props
1026 self.props: Dict[str, Property] = {}
1072 if "label" in self._node.props:
1073 return self._node.props["label"].to_string()
1124 status = self._node.props.get("status")
1139 return "read-only" in self._node.props
1201 and "cs-gpios" in self.bus_node.props):
1208 parent_cs_lst = self.bus_node.props["cs-gpios"].val
1231 if "gpio-hog" not in self.props:
[all …]
/Zephyr-latest/samples/bluetooth/peripheral_ots/src/
Dmain.c44 uint32_t props; member
95 created_desc->props = object_being_created->props; in ots_obj_created()
102 BT_OTS_OBJ_SET_PROP_READ(created_desc->props); in ots_obj_created()
103 BT_OTS_OBJ_SET_PROP_WRITE(created_desc->props); in ots_obj_created()
104 BT_OTS_OBJ_SET_PROP_PATCH(created_desc->props); in ots_obj_created()
105 BT_OTS_OBJ_SET_PROP_DELETE(created_desc->props); in ots_obj_created()
272 BT_OTS_OBJ_SET_PROP_READ(obj_data.props); in ots_init()
273 BT_OTS_OBJ_SET_PROP_WRITE(obj_data.props); in ots_init()
274 BT_OTS_OBJ_SET_PROP_PATCH(obj_data.props); in ots_init()
302 BT_OTS_OBJ_SET_PROP_READ(obj_data.props); in ots_init()
/Zephyr-latest/drivers/fuel_gauge/
Dfuel_gauge_syscall_handlers.c30 const fuel_gauge_prop_t *props, in z_vrfy_fuel_gauge_get_props() argument
39 K_OOPS(k_usermode_from_copy(k_props, props, len * sizeof(fuel_gauge_prop_t))); in z_vrfy_fuel_gauge_get_props()
63 const fuel_gauge_prop_t *props, in z_vrfy_fuel_gauge_set_props() argument
72 K_OOPS(k_usermode_from_copy(k_props, props, len * sizeof(fuel_gauge_prop_t))); in z_vrfy_fuel_gauge_set_props()
/Zephyr-latest/include/zephyr/drivers/
Dfuel_gauge.h291 __syscall int fuel_gauge_get_props(const struct device *dev, const fuel_gauge_prop_t *props,
294 const fuel_gauge_prop_t *props, in z_impl_fuel_gauge_get_props() argument
300 int ret = api->get_property(dev, props[i], vals + i); in z_impl_fuel_gauge_get_props()
345 __syscall int fuel_gauge_set_props(const struct device *dev, const fuel_gauge_prop_t *props,
349 const fuel_gauge_prop_t *props, in z_impl_fuel_gauge_set_props() argument
353 int ret = fuel_gauge_set_prop(dev, props[i], vals[i]); in z_impl_fuel_gauge_set_props()
/Zephyr-latest/boards/snps/nsim/arc_v/
Dboard.cmake11 set(NSIM_PROPS "${NSIM_BASE_FILENAME}.props")
12 board_runner_args(arc-nsim "--props=${NSIM_PROPS}")
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_has.h40 uint8_t props; member
49 uint8_t props; member
/Zephyr-latest/tests/lib/devicetree/memory_region_flags/pytest/
Dtest_memory_region_flags.py40 region = node.props["zephyr,memory-region"].val
43 origin = node.props["reg"].val[0]
44 length = node.props["reg"].val[1]

1234