• Home
  • Raw
  • Download

Lines Matching refs:sid

188 	int (*offset)(struct spmi_pmic_arb *pmic_arb, u8 sid, u16 addr,
190 u32 (*fmt_cmd)(u8 opc, u8 sid, u16 addr, u8 bc);
191 int (*non_data_cmd)(struct spmi_controller *ctrl, u8 opc, u8 sid);
243 void __iomem *base, u8 sid, u16 addr, in pmic_arb_wait_for_done() argument
252 rc = pmic_arb->ver_ops->offset(pmic_arb, sid, addr, ch_type); in pmic_arb_wait_for_done()
292 pmic_arb_non_data_cmd_v1(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_non_data_cmd_v1() argument
300 rc = pmic_arb->ver_ops->offset(pmic_arb, sid, 0, PMIC_ARB_CHANNEL_RW); in pmic_arb_non_data_cmd_v1()
305 cmd = ((opc | 0x40) << 27) | ((sid & 0xf) << 20); in pmic_arb_non_data_cmd_v1()
309 rc = pmic_arb_wait_for_done(ctrl, pmic_arb->wr_base, sid, 0, in pmic_arb_non_data_cmd_v1()
317 pmic_arb_non_data_cmd_v2(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_non_data_cmd_v2() argument
323 static int pmic_arb_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid) in pmic_arb_cmd() argument
327 dev_dbg(&ctrl->dev, "cmd op:0x%x sid:%d\n", opc, sid); in pmic_arb_cmd()
333 return pmic_arb->ver_ops->non_data_cmd(ctrl, opc, sid); in pmic_arb_cmd()
336 static int pmic_arb_read_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid, in pmic_arb_read_cmd() argument
346 rc = pmic_arb->ver_ops->offset(pmic_arb, sid, addr, in pmic_arb_read_cmd()
368 cmd = pmic_arb->ver_ops->fmt_cmd(opc, sid, addr, bc); in pmic_arb_read_cmd()
372 rc = pmic_arb_wait_for_done(ctrl, pmic_arb->rd_base, sid, addr, in pmic_arb_read_cmd()
389 static int pmic_arb_write_cmd(struct spmi_controller *ctrl, u8 opc, u8 sid, in pmic_arb_write_cmd() argument
399 rc = pmic_arb->ver_ops->offset(pmic_arb, sid, addr, in pmic_arb_write_cmd()
423 cmd = pmic_arb->ver_ops->fmt_cmd(opc, sid, addr, bc); in pmic_arb_write_cmd()
435 rc = pmic_arb_wait_for_done(ctrl, pmic_arb->wr_base, sid, addr, in pmic_arb_write_cmd()
464 u8 sid = hwirq_to_sid(d->hwirq); in qpnpint_spmi_write() local
467 if (pmic_arb_write_cmd(pmic_arb->spmic, SPMI_CMD_EXT_WRITEL, sid, in qpnpint_spmi_write()
476 u8 sid = hwirq_to_sid(d->hwirq); in qpnpint_spmi_read() local
479 if (pmic_arb_read_cmd(pmic_arb->spmic, SPMI_CMD_EXT_READL, sid, in qpnpint_spmi_read()
488 u8 sid = ppid >> 8; in cleanup_irq() local
494 if (pmic_arb_write_cmd(pmic_arb->spmic, SPMI_CMD_EXT_WRITEL, sid, in cleanup_irq()
499 if (pmic_arb_write_cmd(pmic_arb->spmic, SPMI_CMD_EXT_WRITEL, sid, in cleanup_irq()
509 u8 sid = (pmic_arb->apid_data[apid].ppid >> 8) & 0xF; in periph_interrupt() local
517 spec_to_hwirq(sid, per, id, apid)); in periph_interrupt()
666 u16 sid = hwirq_to_sid(d->hwirq); in qpnpint_irq_domain_activate() local
671 sid, periph, irq, pmic_arb->ee, in qpnpint_irq_domain_activate()
825 static int pmic_arb_offset_v1(struct spmi_pmic_arb *pmic_arb, u8 sid, u16 addr, in pmic_arb_offset_v1() argument
954 static int pmic_arb_offset_v2(struct spmi_pmic_arb *pmic_arb, u8 sid, u16 addr, in pmic_arb_offset_v2() argument
961 ppid = sid << 8 | ((addr >> 8) & 0xFF); in pmic_arb_offset_v2()
974 static int pmic_arb_offset_v5(struct spmi_pmic_arb *pmic_arb, u8 sid, u16 addr, in pmic_arb_offset_v5() argument
980 u16 ppid = (sid << 8) | (addr >> 8); in pmic_arb_offset_v5()
999 static u32 pmic_arb_fmt_cmd_v1(u8 opc, u8 sid, u16 addr, u8 bc) in pmic_arb_fmt_cmd_v1() argument
1001 return (opc << 27) | ((sid & 0xf) << 20) | (addr << 4) | (bc & 0x7); in pmic_arb_fmt_cmd_v1()
1004 static u32 pmic_arb_fmt_cmd_v2(u8 opc, u8 sid, u16 addr, u8 bc) in pmic_arb_fmt_cmd_v2() argument