Lines Matching refs:channel_id
542 const size_t channel_id = signal->id - 16; in quad8_index_polarity_get() local
544 *index_polarity = priv->index_polarity[channel_id]; in quad8_index_polarity_get()
554 const size_t channel_id = signal->id - 16; in quad8_index_polarity_set() local
555 u8 __iomem *const control = &priv->reg->channel[channel_id].control; in quad8_index_polarity_set()
561 idr_cfg |= priv->synchronous_mode[channel_id]; in quad8_index_polarity_set()
563 priv->index_polarity[channel_id] = index_polarity; in quad8_index_polarity_set()
609 const size_t channel_id = signal->id - 16; in quad8_synchronous_mode_get() local
611 *synchronous_mode = priv->synchronous_mode[channel_id]; in quad8_synchronous_mode_get()
621 const size_t channel_id = signal->id - 16; in quad8_synchronous_mode_set() local
622 u8 __iomem *const control = &priv->reg->channel[channel_id].control; in quad8_synchronous_mode_set()
628 idr_cfg |= priv->index_polarity[channel_id] << 1; in quad8_synchronous_mode_set()
631 if (synchronous_mode && !priv->quadrature_mode[channel_id]) { in quad8_synchronous_mode_set()
636 priv->synchronous_mode[channel_id] = synchronous_mode; in quad8_synchronous_mode_set()
916 const size_t channel_id = signal->id / 2; in quad8_signal_cable_fault_read() local
923 disabled = !(priv->cable_fault_enable & BIT(channel_id)); in quad8_signal_cable_fault_read()
936 *cable_fault = !(status & BIT(channel_id)); in quad8_signal_cable_fault_read()
946 const size_t channel_id = signal->id / 2; in quad8_signal_cable_fault_enable_read() local
948 *enable = !!(priv->cable_fault_enable & BIT(channel_id)); in quad8_signal_cable_fault_enable_read()
958 const size_t channel_id = signal->id / 2; in quad8_signal_cable_fault_enable_write() local
965 priv->cable_fault_enable |= BIT(channel_id); in quad8_signal_cable_fault_enable_write()
967 priv->cable_fault_enable &= ~BIT(channel_id); in quad8_signal_cable_fault_enable_write()
995 const size_t channel_id = signal->id / 2; in quad8_signal_fck_prescaler_write() local
996 struct channel_reg __iomem *const chan = priv->reg->channel + channel_id; in quad8_signal_fck_prescaler_write()
1001 priv->fck_prescaler[channel_id] = prescaler; in quad8_signal_fck_prescaler_write()