Lines Matching refs:pdu
189 static int ubiblock_read(struct ubiblock_pdu *pdu) in ubiblock_read() argument
193 struct request *req = blk_mq_rq_from_pdu(pdu); in ubiblock_read()
212 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
300 struct ubiblock_pdu *pdu = container_of(work, struct ubiblock_pdu, work); in ubiblock_do_work() local
301 struct request *req = blk_mq_rq_from_pdu(pdu); in ubiblock_do_work()
310 blk_rq_map_sg(req->q, req, pdu->usgl.sg); in ubiblock_do_work()
312 ret = ubiblock_read(pdu); in ubiblock_do_work()
323 struct ubiblock_pdu *pdu = blk_mq_rq_to_pdu(req); in ubiblock_queue_rq() local
331 ubi_sgl_init(&pdu->usgl); in ubiblock_queue_rq()
332 queue_work(dev->wq, &pdu->work); in ubiblock_queue_rq()
342 struct ubiblock_pdu *pdu = blk_mq_rq_to_pdu(req); in ubiblock_init_request() local
344 sg_init_table(pdu->usgl.sg, UBI_MAX_SG_COUNT); in ubiblock_init_request()
345 INIT_WORK(&pdu->work, ubiblock_do_work); in ubiblock_init_request()