Lines Matching refs:this
27 static struct au1550nd_ctx *chip_to_au_ctx(struct nand_chip *this)
29 return container_of(this, struct au1550nd_ctx, chip);
34 * @this: NAND chip object
40 static void au_write_buf(struct nand_chip *this, const void *buf,
43 struct au1550nd_ctx *ctx = chip_to_au_ctx(this);
55 * @this: NAND chip object
61 static void au_read_buf(struct nand_chip *this, void *buf,
64 struct au1550nd_ctx *ctx = chip_to_au_ctx(this);
76 * @this: NAND chip object
82 static void au_write_buf16(struct nand_chip *this, const void *buf,
85 struct au1550nd_ctx *ctx = chip_to_au_ctx(this);
98 * @this: NAND chip object
104 static void au_read_buf16(struct nand_chip *this, void *buf, unsigned int len)
106 struct au1550nd_ctx *ctx = chip_to_au_ctx(this);
127 /* figure out the decoded range of this CS */
138 static int au1550nd_waitrdy(struct nand_chip *this, unsigned int timeout_ms)
153 static int au1550nd_exec_instr(struct nand_chip *this,
156 struct au1550nd_ctx *ctx = chip_to_au_ctx(this);
178 if ((this->options & NAND_BUSWIDTH_16) &&
180 au_read_buf16(this, instr->ctx.data.buf.in,
183 au_read_buf(this, instr->ctx.data.buf.in,
188 if ((this->options & NAND_BUSWIDTH_16) &&
190 au_write_buf16(this, instr->ctx.data.buf.out,
193 au_write_buf(this, instr->ctx.data.buf.out,
198 ret = au1550nd_waitrdy(this, instr->ctx.waitrdy.timeout_ms);
210 static int au1550nd_exec_op(struct nand_chip *this,
214 struct au1550nd_ctx *ctx = chip_to_au_ctx(this);
227 ret = au1550nd_exec_instr(this, &op->instrs[i]);
258 struct nand_chip *this;
292 this = &ctx->chip;
293 mtd = nand_to_mtd(this);
307 this->controller = &ctx->controller;
310 this->options |= NAND_BUSWIDTH_16;
317 this->ecc.engine_type = NAND_ECC_ENGINE_TYPE_SOFT;
319 ret = nand_scan(this, 1);