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