• Home
  • Raw
  • Download

Lines Matching refs:rsb

43 	struct sunxi_rsb_reg * const rsb =  in rsb_set_clk()  local
54 writel((cd_odly << 8) | div, &rsb->ccr); in rsb_set_clk()
59 struct sunxi_rsb_reg * const rsb = in rsb_init() local
68 writel(RSB_CTRL_SOFT_RST, &rsb->ctrl); in rsb_init()
76 struct sunxi_rsb_reg * const rsb = in rsb_await_trans() local
83 stat = readl(&rsb->stat); in rsb_await_trans()
101 writel(stat, &rsb->stat); /* Clear status bits */ in rsb_await_trans()
108 struct sunxi_rsb_reg * const rsb = in rsb_set_device_mode() local
113 &rsb->dmcr); in rsb_set_device_mode()
115 while (readl(&rsb->dmcr) & RSB_DMCR_DEVICE_MODE_START) { in rsb_set_device_mode()
125 struct sunxi_rsb_reg * const rsb = in rsb_do_trans() local
128 setbits_le32(&rsb->ctrl, RSB_CTRL_START_TRANS); in rsb_do_trans()
134 struct sunxi_rsb_reg * const rsb = in rsb_set_device_address() local
138 RSB_DEVADDR_DEVICE_ADDR(device_addr), &rsb->devaddr); in rsb_set_device_address()
139 writel(RSB_CMD_SET_RTSADDR, &rsb->cmd); in rsb_set_device_address()
146 struct sunxi_rsb_reg * const rsb = in rsb_write() local
149 writel(RSB_DEVADDR_RUNTIME_ADDR(runtime_device_addr), &rsb->devaddr); in rsb_write()
150 writel(reg_addr, &rsb->addr); in rsb_write()
151 writel(data, &rsb->data); in rsb_write()
152 writel(RSB_CMD_BYTE_WRITE, &rsb->cmd); in rsb_write()
159 struct sunxi_rsb_reg * const rsb = in rsb_read() local
163 writel(RSB_DEVADDR_RUNTIME_ADDR(runtime_device_addr), &rsb->devaddr); in rsb_read()
164 writel(reg_addr, &rsb->addr); in rsb_read()
165 writel(RSB_CMD_BYTE_READ, &rsb->cmd); in rsb_read()
171 *data = readl(&rsb->data) & 0xff; in rsb_read()