Lines Matching refs:pdu
190 static int ubiblock_read(struct ubiblock_pdu *pdu) in ubiblock_read() argument
194 struct request *req = blk_mq_rq_from_pdu(pdu); in ubiblock_read()
213 ret = ubi_read_sg(dev->desc, leb, &pdu->usgl, offset, to_read); in ubiblock_read()
301 struct ubiblock_pdu *pdu = container_of(work, struct ubiblock_pdu, work); in ubiblock_do_work() local
302 struct request *req = blk_mq_rq_from_pdu(pdu); in ubiblock_do_work()
311 blk_rq_map_sg(req->q, req, pdu->usgl.sg); in ubiblock_do_work()
313 ret = ubiblock_read(pdu); in ubiblock_do_work()
324 struct ubiblock_pdu *pdu = blk_mq_rq_to_pdu(req); in ubiblock_queue_rq() local
332 ubi_sgl_init(&pdu->usgl); in ubiblock_queue_rq()
333 queue_work(dev->wq, &pdu->work); in ubiblock_queue_rq()
343 struct ubiblock_pdu *pdu = blk_mq_rq_to_pdu(req); in ubiblock_init_request() local
345 sg_init_table(pdu->usgl.sg, UBI_MAX_SG_COUNT); in ubiblock_init_request()
346 INIT_WORK(&pdu->work, ubiblock_do_work); in ubiblock_init_request()