Lines Matching full:inst

35  * @param inst instance number
40 #define NPCX_DT_INST_PROP_ENUM_OR(inst, prop, default_value) \ argument
41 NPCX_DT_PROP_ENUM_OR(DT_DRV_INST(inst), prop, default_value)
56 * const struct npcx_clk_cfg clk_cfg = NPCX_DT_CLK_CFG_ITEM(inst);
58 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
61 #define NPCX_DT_CLK_CFG_ITEM(inst) \ argument
63 .bus = NPCX_DT_INST_PROP_ENUM_OR(inst, clock_bus, \
64 DT_PHA(DT_DRV_INST(inst), clocks, bus)), \
65 .ctrl = DT_PHA(DT_DRV_INST(inst), clocks, ctl), \
66 .bit = DT_PHA(DT_DRV_INST(inst), clocks, bit), \
72 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
76 #define NPCX_DT_CLK_CFG_ITEM_BY_IDX(inst, i) \ argument
78 .bus = DT_CLOCKS_CELL_BY_IDX(DT_DRV_INST(inst), i, bus), \
79 .ctrl = DT_CLOCKS_CELL_BY_IDX(DT_DRV_INST(inst), i, ctl), \
80 .bit = DT_CLOCKS_CELL_BY_IDX(DT_DRV_INST(inst), i, bit), \
86 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
90 #define NPCX_DT_CLK_CFG_ITEM_BY_NAME(inst, name) \ argument
92 .bus = DT_CLOCKS_CELL_BY_NAME(DT_DRV_INST(inst), name, bus), \
93 .ctrl = DT_CLOCKS_CELL_BY_NAME(DT_DRV_INST(inst), name, ctl), \
94 .bit = DT_CLOCKS_CELL_BY_NAME(DT_DRV_INST(inst), name, bit), \
100 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
103 #define NPCX_DT_CLK_CFG_ITEMS_LEN(inst) DT_INST_PROP_LEN(inst, clocks) argument
110 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
113 #define NPCX_DT_CLK_CFG_ITEMS_FUNC(child, inst) \ argument
114 NPCX_DT_CLK_CFG_ITEM_BY_IDX(inst, child)
133 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
136 #define NPCX_DT_CLK_CFG_ITEMS_LIST(inst) { \ argument
137 LISTIFY(NPCX_DT_CLK_CFG_ITEMS_LEN(inst), \
139 inst) \
145 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
149 #define NPCX_DT_PHANDLE_FROM_WUI_NAME(inst, name) \ argument
150 DT_INST_PHANDLE(inst, name)
155 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
159 #define NPCX_DT_WUI_ITEM_BY_NAME(inst, name) \ argument
161 .table = DT_PROP(DT_PHANDLE(NPCX_DT_PHANDLE_FROM_WUI_NAME(inst, \
163 .group = DT_PHA(NPCX_DT_PHANDLE_FROM_WUI_NAME(inst, name), miwus, \
165 .bit = DT_PHA(NPCX_DT_PHANDLE_FROM_WUI_NAME(inst, name), miwus, \
172 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
176 #define NPCX_DT_PHANDLE_FROM_WUI_MAPS(inst, i) \ argument
177 DT_INST_PHANDLE_BY_IDX(inst, wui_maps, i)
182 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
186 #define NPCX_DT_WUI_ITEM_BY_IDX(inst, i) \ argument
188 .table = DT_PROP(DT_PHANDLE(NPCX_DT_PHANDLE_FROM_WUI_MAPS(inst, i), \
190 .group = DT_PHA(NPCX_DT_PHANDLE_FROM_WUI_MAPS(inst, i), miwus, \
192 .bit = DT_PHA(NPCX_DT_PHANDLE_FROM_WUI_MAPS(inst, i), miwus, bit), \
198 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
201 #define NPCX_DT_WUI_ITEMS_LEN(inst) DT_INST_PROP_LEN(inst, wui_maps) argument
207 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
210 #define NPCX_DT_WUI_ITEMS_FUNC(child, inst) NPCX_DT_WUI_ITEM_BY_IDX(inst, child) argument
231 * const struct npcx_wui wui_map = NPCX_DT_PHANDLE_FROM_WUI_NAME(inst, uart_rx);
232 * const struct npcx_wui wui_maps[] = NPCX_DT_WUI_ITEMS_LIST(inst);
234 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
237 #define NPCX_DT_WUI_ITEMS_LIST(inst) { \ argument
238 LISTIFY(NPCX_DT_WUI_ITEMS_LEN(inst), \
240 inst) \
363 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
366 #define NPCX_DT_LVOL_ITEMS_LEN(inst) DT_INST_PROP_LEN(inst, lvol_maps) argument
385 * @param inst instance number for compatible defined in DT_DRV_COMPAT.
388 #define NPCX_DT_LVOL_ITEMS_LIST(inst) { \ argument
389 DT_FOREACH_PROP_ELEM(DT_DRV_INST(inst), lvol_maps, \