Lines Matching refs:bit_pos
35 static int qcom_pbs_wait_for_ack(struct pbs_dev *pbs, u8 bit_pos) in qcom_pbs_wait_for_ack() argument
41 val, val & BIT(bit_pos), DELAY, DELAY * RETRIES); in qcom_pbs_wait_for_ack()
44 dev_err(pbs->dev, "Timeout for PBS ACK/NACK for bit %u\n", bit_pos); in qcom_pbs_wait_for_ack()
50 dev_err(pbs->dev, "NACK from PBS for bit %u\n", bit_pos); in qcom_pbs_wait_for_ack()
54 dev_dbg(pbs->dev, "PBS sequence for bit %u executed!\n", bit_pos); in qcom_pbs_wait_for_ack()
78 u16 bit_pos; in qcom_pbs_trigger_event() local
99 for (bit_pos = 0; bit_pos < 8; bit_pos++) { in qcom_pbs_trigger_event()
100 if (!(bitmap & BIT(bit_pos))) in qcom_pbs_trigger_event()
105 BIT(bit_pos), 0); in qcom_pbs_trigger_event()
111 BIT(bit_pos), BIT(bit_pos)); in qcom_pbs_trigger_event()
121 ret = qcom_pbs_wait_for_ack(pbs, bit_pos); in qcom_pbs_trigger_event()
126 regmap_update_bits(pbs->regmap, pbs->base + PBS_CLIENT_SCRATCH1, BIT(bit_pos), 0); in qcom_pbs_trigger_event()
127 regmap_update_bits(pbs->regmap, pbs->base + PBS_CLIENT_SCRATCH2, BIT(bit_pos), 0); in qcom_pbs_trigger_event()