Searched refs:pmic_arb (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/spmi/
H A Dspmi-pmic-arb.c261 struct spmi_pmic_arb_dev *pmic_arb = spmi_controller_get_drvdata(ctrl); pmic_arb_non_data_cmd_v1() local
265 u32 offset = pmic_arb->ver_ops->offset(pmic_arb, sid, 0); pmic_arb_non_data_cmd_v1()
269 raw_spin_lock_irqsave(&pmic_arb->lock, flags); pmic_arb_non_data_cmd_v1()
270 pmic_arb_base_write(pmic_arb, offset + PMIC_ARB_CMD, cmd); pmic_arb_non_data_cmd_v1()
271 rc = pmic_arb_wait_for_done(ctrl, pmic_arb->wr_base, sid, 0); pmic_arb_non_data_cmd_v1()
272 raw_spin_unlock_irqrestore(&pmic_arb->lock, flags); pmic_arb_non_data_cmd_v1()
286 struct spmi_pmic_arb_dev *pmic_arb = spmi_controller_get_drvdata(ctrl); pmic_arb_cmd() local
294 return pmic_arb->ver_ops->non_data_cmd(ctrl, opc, sid); pmic_arb_cmd()
300 struct spmi_pmic_arb_dev *pmic_arb = spmi_controller_get_drvdata(ctrl); pmic_arb_read_cmd() local
305 u32 offset = pmic_arb->ver_ops->offset(pmic_arb, sid, addr); pmic_arb_read_cmd()
324 cmd = pmic_arb->ver_ops->fmt_cmd(opc, sid, addr, bc); pmic_arb_read_cmd()
326 raw_spin_lock_irqsave(&pmic_arb->lock, flags); pmic_arb_read_cmd()
327 pmic_arb_set_rd_cmd(pmic_arb, offset + PMIC_ARB_CMD, cmd); pmic_arb_read_cmd()
328 rc = pmic_arb_wait_for_done(ctrl, pmic_arb->rd_base, sid, addr); pmic_arb_read_cmd()
332 pa_read_data(pmic_arb, buf, offset + PMIC_ARB_RDATA0, pmic_arb_read_cmd()
336 pa_read_data(pmic_arb, buf + 4, pmic_arb_read_cmd()
340 raw_spin_unlock_irqrestore(&pmic_arb->lock, flags); pmic_arb_read_cmd()
347 struct spmi_pmic_arb_dev *pmic_arb = spmi_controller_get_drvdata(ctrl); pmic_arb_write_cmd() local
352 u32 offset = pmic_arb->ver_ops->offset(pmic_arb, sid, addr); pmic_arb_write_cmd()
373 cmd = pmic_arb->ver_ops->fmt_cmd(opc, sid, addr, bc); pmic_arb_write_cmd()
376 raw_spin_lock_irqsave(&pmic_arb->lock, flags); pmic_arb_write_cmd()
377 pa_write_data(pmic_arb, buf, offset + PMIC_ARB_WDATA0, pmic_arb_write_cmd()
380 pa_write_data(pmic_arb, buf + 4, pmic_arb_write_cmd()
384 pmic_arb_base_write(pmic_arb, offset + PMIC_ARB_CMD, cmd); pmic_arb_write_cmd()
385 rc = pmic_arb_wait_for_done(ctrl, pmic_arb->wr_base, sid, addr); pmic_arb_write_cmd()
386 raw_spin_unlock_irqrestore(&pmic_arb->lock, flags); pmic_arb_write_cmd()
579 .name = "pmic_arb",

Completed in 60 milliseconds