Lines Matching refs:pdu
184 static int ubiblock_read(struct ubiblock_pdu *pdu) in ubiblock_read() argument
188 struct request *req = blk_mq_rq_from_pdu(pdu); in ubiblock_read()
207 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
295 struct ubiblock_pdu *pdu = container_of(work, struct ubiblock_pdu, work); in ubiblock_do_work() local
296 struct request *req = blk_mq_rq_from_pdu(pdu); in ubiblock_do_work()
305 blk_rq_map_sg(req->q, req, pdu->usgl.sg); in ubiblock_do_work()
307 ret = ubiblock_read(pdu); in ubiblock_do_work()
318 struct ubiblock_pdu *pdu = blk_mq_rq_to_pdu(req); in ubiblock_queue_rq() local
322 ubi_sgl_init(&pdu->usgl); in ubiblock_queue_rq()
323 queue_work(dev->wq, &pdu->work); in ubiblock_queue_rq()
335 struct ubiblock_pdu *pdu = blk_mq_rq_to_pdu(req); in ubiblock_init_request() local
337 sg_init_table(pdu->usgl.sg, UBI_MAX_SG_COUNT); in ubiblock_init_request()
338 INIT_WORK(&pdu->work, ubiblock_do_work); in ubiblock_init_request()