Lines Matching refs:req
40 struct nand_req req; in nand_send_cmd() local
42 zeromem(&req, sizeof(struct nand_req)); in nand_send_cmd()
43 req.nand = rawnand_dev.nand_dev; in nand_send_cmd()
44 req.type = NAND_REQ_CMD | cmd; in nand_send_cmd()
45 req.inst_delay = tim; in nand_send_cmd()
47 return rawnand_dev.ops->exec(&req); in nand_send_cmd()
52 struct nand_req req; in nand_send_addr() local
54 zeromem(&req, sizeof(struct nand_req)); in nand_send_addr()
55 req.nand = rawnand_dev.nand_dev; in nand_send_addr()
56 req.type = NAND_REQ_ADDR; in nand_send_addr()
57 req.addr = &addr; in nand_send_addr()
58 req.inst_delay = tim; in nand_send_addr()
60 return rawnand_dev.ops->exec(&req); in nand_send_addr()
65 struct nand_req req; in nand_send_wait() local
67 zeromem(&req, sizeof(struct nand_req)); in nand_send_wait()
68 req.nand = rawnand_dev.nand_dev; in nand_send_wait()
69 req.type = NAND_REQ_WAIT; in nand_send_wait()
70 req.inst_delay = tim; in nand_send_wait()
71 req.delay_ms = delay; in nand_send_wait()
73 return rawnand_dev.ops->exec(&req); in nand_send_wait()
79 struct nand_req req; in nand_read_data() local
81 zeromem(&req, sizeof(struct nand_req)); in nand_read_data()
82 req.nand = rawnand_dev.nand_dev; in nand_read_data()
83 req.type = NAND_REQ_DATAIN | (use_8bit ? NAND_REQ_BUS_WIDTH_8 : 0U); in nand_read_data()
84 req.addr = data; in nand_read_data()
85 req.length = length; in nand_read_data()
87 return rawnand_dev.ops->exec(&req); in nand_read_data()