Lines Matching refs:index
310 pevent.index = am65_cpts_event_get_port(event) - 1;
314 pevent.index, event->timestamp);
482 static void am65_cpts_extts_enable_hw(struct am65_cpts *cpts, u32 index, int on)
488 v |= BIT(AM65_CPTS_CONTROL_HW1_TS_PUSH_OFFSET + index);
489 cpts->hw_ts_enable |= BIT(index);
491 v &= ~BIT(AM65_CPTS_CONTROL_HW1_TS_PUSH_OFFSET + index);
492 cpts->hw_ts_enable &= ~BIT(index);
497 static int am65_cpts_extts_enable(struct am65_cpts *cpts, u32 index, int on)
499 if (!!(cpts->hw_ts_enable & BIT(index)) == !!on)
503 am65_cpts_extts_enable_hw(cpts, index, on);
507 __func__, index, on ? "enabled" : "disabled");
566 am65_cpts_write32(cpts, val, genf[req->index].comp_hi);
568 am65_cpts_write32(cpts, val, genf[req->index].comp_lo);
570 am65_cpts_write32(cpts, val, genf[req->index].length);
572 cpts->genf_enable |= BIT(req->index);
574 am65_cpts_write32(cpts, 0, genf[req->index].length);
576 cpts->genf_enable &= ~BIT(req->index);
583 if (!!(cpts->genf_enable & BIT(req->index)) == !!on)
591 __func__, req->index, on ? "enabled" : "disabled");
603 return am65_cpts_extts_enable(cpts, rq->extts.index, on);