Lines Matching refs:this

27 static struct au1550nd_ctx *chip_to_au_ctx(struct nand_chip *this)  in chip_to_au_ctx()  argument
29 return container_of(this, struct au1550nd_ctx, chip); in chip_to_au_ctx()
40 static void au_write_buf(struct nand_chip *this, const void *buf, in au_write_buf() argument
43 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au_write_buf()
61 static void au_read_buf(struct nand_chip *this, void *buf, in au_read_buf() argument
64 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au_read_buf()
82 static void au_write_buf16(struct nand_chip *this, const void *buf, in au_write_buf16() argument
85 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au_write_buf16()
104 static void au_read_buf16(struct nand_chip *this, void *buf, unsigned int len) in au_read_buf16() argument
106 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au_read_buf16()
138 static int au1550nd_waitrdy(struct nand_chip *this, unsigned int timeout_ms) in au1550nd_waitrdy() argument
153 static int au1550nd_exec_instr(struct nand_chip *this, in au1550nd_exec_instr() argument
156 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au1550nd_exec_instr()
178 if ((this->options & NAND_BUSWIDTH_16) && in au1550nd_exec_instr()
180 au_read_buf16(this, instr->ctx.data.buf.in, in au1550nd_exec_instr()
183 au_read_buf(this, instr->ctx.data.buf.in, in au1550nd_exec_instr()
188 if ((this->options & NAND_BUSWIDTH_16) && in au1550nd_exec_instr()
190 au_write_buf16(this, instr->ctx.data.buf.out, in au1550nd_exec_instr()
193 au_write_buf(this, instr->ctx.data.buf.out, in au1550nd_exec_instr()
198 ret = au1550nd_waitrdy(this, instr->ctx.waitrdy.timeout_ms); in au1550nd_exec_instr()
210 static int au1550nd_exec_op(struct nand_chip *this, in au1550nd_exec_op() argument
214 struct au1550nd_ctx *ctx = chip_to_au_ctx(this); in au1550nd_exec_op()
227 ret = au1550nd_exec_instr(this, &op->instrs[i]); in au1550nd_exec_op()
258 struct nand_chip *this; in au1550nd_probe() local
292 this = &ctx->chip; in au1550nd_probe()
293 mtd = nand_to_mtd(this); in au1550nd_probe()
307 this->controller = &ctx->controller; in au1550nd_probe()
310 this->options |= NAND_BUSWIDTH_16; in au1550nd_probe()
317 this->ecc.engine_type = NAND_ECC_ENGINE_TYPE_SOFT; in au1550nd_probe()
319 ret = nand_scan(this, 1); in au1550nd_probe()