Lines Matching refs:index
276 u8 index = rq->extts.index;
278 u8 mask = 1 << index;
298 if (index >= MAX_TOD)
312 err = arm_tod_read_trig_sel_refclk(&idtcm->channel[index], ref);
316 idtcm->event_channel[index] = channel;
317 idtcm->channel[index].refn = ref;
477 event.index = todn;
1183 static int set_tod_ptp_pll(struct idtcm *idtcm, u8 index, u8 pll)
1185 if (index >= MAX_TOD) {
1186 dev_err(idtcm->dev, "ToD%d not supported", index);
1195 idtcm->channel[index].pll = pll;
1363 err = idtcm_output_enable(channel, enable, perout->index);
2189 static int configure_channel_tod(struct idtcm_channel *channel, u32 index)
2194 switch (index) {
2230 static int idtcm_enable_channel(struct idtcm *idtcm, u32 index)
2236 if (!(index < MAX_TOD))
2239 channel = &idtcm->channel[index];
2250 err = configure_channel_tod(channel, index);
2260 "IDT CM TOD%u", index);
2262 channel->caps.pin_config = pin_config[index];
2268 ppd->index = i;
2270 ppd->chan = index;
2298 index, channel->ptp_clock->index);
2303 static int idtcm_enable_extts_channel(struct idtcm *idtcm, u32 index)
2308 if (!(index < MAX_TOD))
2311 channel = &idtcm->channel[index];
2315 err = configure_channel_tod(channel, index);