Lines Matching refs:master_bus
370 uint8_t bus_select, master_bus; in pwm_nxp_s32_get_master_bus() local
376 master_bus = 23U; in pwm_nxp_s32_get_master_bus()
379 master_bus = (channel < 8U) ? 0U : ((channel < 16U) ? 8U : 16U); in pwm_nxp_s32_get_master_bus()
382 master_bus = 22U; in pwm_nxp_s32_get_master_bus()
386 master_bus = channel; in pwm_nxp_s32_get_master_bus()
390 return master_bus; in pwm_nxp_s32_get_master_bus()
401 uint8_t master_bus = 0xFFU; in pwm_nxp_s32_get_cycles_per_sec() local
407 master_bus = Emios_Pwm_Ip_GetMasterBusChannel(config->instance, channel); in pwm_nxp_s32_get_cycles_per_sec()
414 master_bus = pwm_nxp_s32_get_master_bus(dev, channel); in pwm_nxp_s32_get_cycles_per_sec()
418 if (master_bus == 0xFF) { in pwm_nxp_s32_get_cycles_per_sec()
423 internal_prescaler = (config->base->CH.UC[master_bus].C2 & eMIOS_C2_UCEXTPRE_MASK) >> in pwm_nxp_s32_get_cycles_per_sec()
427 if (config->base->CH.UC[master_bus].C2 & eMIOS_C2_UCPRECLK_MASK) { in pwm_nxp_s32_get_cycles_per_sec()
569 (2 * DT_PROP_BY_PHANDLE(node_id, master_bus, period) - 2), \
570 (DT_PROP_BY_PHANDLE(node_id, master_bus, period)))
593 DT_PROP_BY_PHANDLE(node_id, master_bus, channel_mask), \
613 BUILD_ASSERT(!DT_NODE_HAS_PROP(node_id, master_bus), \
622 BUILD_ASSERT(DT_ENUM_HAS_VALUE(DT_PHANDLE(node_id, master_bus), mode, \
644 BUILD_ASSERT(DT_ENUM_HAS_VALUE(DT_PHANDLE(node_id, master_bus), mode, MCB_UP_COUNTER), \
661 IF_ENABLED(DT_NODE_HAS_PROP(node_id, master_bus), \
663 DT_ENUM_HAS_VALUE(DT_PHANDLE(node_id, master_bus), mode, MCB_UP_COUNTER), \
665 IF_ENABLED(DT_NODE_HAS_PROP(node_id, master_bus), \
666 (BUILD_ASSERT(DT_PROP_BY_PHANDLE(node_id, master_bus, period) == 0xFFFF, \
668 IF_ENABLED(UTIL_NOT(DT_NODE_HAS_PROP(node_id, master_bus)), \
673 IF_ENABLED(UTIL_NOT(DT_NODE_HAS_PROP(node_id, master_bus)), \
688 IF_ENABLED(DT_NODE_HAS_PROP(node_id, master_bus), \
720 DT_PROP_BY_PHANDLE(node_id, master_bus, prescaler)) - 1,\
721 .Timebase = COND_CODE_1(DT_NODE_HAS_PROP(node_id, master_bus), \
723 DT_PHANDLE(node_id, master_bus), bus_type))), \
784 .Prescaler = COND_CODE_1(DT_NODE_HAS_PROP(node_id, master_bus), \
785 (DT_PROP_BY_PHANDLE(node_id, master_bus, prescaler)), \
787 .CntBus = COND_CODE_1(DT_NODE_HAS_PROP(node_id, master_bus), \
789 DT_PHANDLE(node_id, master_bus), bus_type))),\