Lines Matching refs:this
26 static struct au1550nd_ctx *chip_to_au_ctx(struct nand_chip *this) in chip_to_au_ctx() argument
28 return container_of(this, struct au1550nd_ctx, chip); in chip_to_au_ctx()
39 static void au_write_buf(struct nand_chip *this, const void *buf, in au_write_buf() argument
42 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au_write_buf()
60 static void au_read_buf(struct nand_chip *this, void *buf, in au_read_buf() argument
63 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au_read_buf()
81 static void au_write_buf16(struct nand_chip *this, const void *buf, in au_write_buf16() argument
84 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au_write_buf16()
103 static void au_read_buf16(struct nand_chip *this, void *buf, unsigned int len) in au_read_buf16() argument
105 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au_read_buf16()
137 static int au1550nd_waitrdy(struct nand_chip *this, unsigned int timeout_ms) in au1550nd_waitrdy() argument
152 static int au1550nd_exec_instr(struct nand_chip *this, in au1550nd_exec_instr() argument
155 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au1550nd_exec_instr()
177 if ((this->options & NAND_BUSWIDTH_16) && in au1550nd_exec_instr()
179 au_read_buf16(this, instr->ctx.data.buf.in, in au1550nd_exec_instr()
182 au_read_buf(this, instr->ctx.data.buf.in, in au1550nd_exec_instr()
187 if ((this->options & NAND_BUSWIDTH_16) && in au1550nd_exec_instr()
189 au_write_buf16(this, instr->ctx.data.buf.out, in au1550nd_exec_instr()
192 au_write_buf(this, instr->ctx.data.buf.out, in au1550nd_exec_instr()
197 ret = au1550nd_waitrdy(this, instr->ctx.waitrdy.timeout_ms); in au1550nd_exec_instr()
209 static int au1550nd_exec_op(struct nand_chip *this, in au1550nd_exec_op() argument
213 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au1550nd_exec_op()
226 ret = au1550nd_exec_instr(this, &op->instrs[i]); in au1550nd_exec_op()
257 struct nand_chip *this; in au1550nd_probe() local
291 this = &ctx->chip; in au1550nd_probe()
292 mtd = nand_to_mtd(this); in au1550nd_probe()
306 this->controller = &ctx->controller; in au1550nd_probe()
309 this->options |= NAND_BUSWIDTH_16; in au1550nd_probe()
316 this->ecc.engine_type = NAND_ECC_ENGINE_TYPE_SOFT; in au1550nd_probe()
318 ret = nand_scan(this, 1); in au1550nd_probe()