Lines Matching refs:addr
137 __be32 addr;
178 static int hideep_pgm_w_mem(struct hideep_ts *ts, u32 addr,
184 .addr = ts->client->addr,
186 sizeof(packet->header.addr),
195 packet->header.addr = cpu_to_be32(addr);
205 static int hideep_pgm_r_mem(struct hideep_ts *ts, u32 addr,
212 .addr = ts->client->addr,
214 sizeof(packet->header.addr),
218 .addr = ts->client->addr,
230 packet->header.addr = cpu_to_be32(addr);
239 static int hideep_pgm_r_reg(struct hideep_ts *ts, u32 addr, u32 *val)
244 error = hideep_pgm_r_mem(ts, addr, &data, 1);
248 addr, error);
256 static int hideep_pgm_w_reg(struct hideep_ts *ts, u32 addr, u32 val)
261 error = hideep_pgm_w_mem(ts, addr, &data, 1);
265 addr, val, error);
411 static int hideep_program_page(struct hideep_ts *ts, u32 addr,
421 addr &= ~(HIDEEP_NVM_PAGE_SIZE - 1);
427 SET_PIO_SIG(HIDEEP_PERASE | addr, 0xFFFFFFFF);
439 SET_PIO_SIG(HIDEEP_WRONLY | addr, val);
467 u32 addr = 0;
478 error = hideep_pgm_r_mem(ts, 0x00000000 + addr,
483 __func__, addr, error);
489 error = hideep_program_page(ts, addr,
494 __func__, addr, error);
502 addr += xfer_len;
516 u32 addr = 0;
524 error = hideep_pgm_r_mem(ts, 0x00000000 + addr,
529 __func__, addr, error);
541 __func__, addr + i,
549 addr += xfer_len;