/*1* Copyright IBM Corporation, 20102* Author Venkateswararao Jujjuri <[email protected]>3*4* This program is free software; you can redistribute it and/or modify it5* under the terms of version 2.1 of the GNU Lesser General Public License6* as published by the Free Software Foundation.7*8* This program is distributed in the hope that it would be useful, but9* WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.11*12*/1314/* TRUE if it is user context */15#define P9_IS_USER_CONTEXT (!segment_eq(get_fs(), KERNEL_DS))1617/**18* struct trans_rpage_info - To store mapped page information in PDU.19* @rp_alloc:Set if this structure is allocd, not a reuse unused space in pdu.20* @rp_nr_pages: Number of mapped pages21* @rp_data: Array of page pointers22*/23struct trans_rpage_info {24u8 rp_alloc;25int rp_nr_pages;26struct page *rp_data[0];27};2829void p9_release_req_pages(struct trans_rpage_info *);30int p9_payload_gup(struct p9_req_t *, size_t *, int *, int, u8);31int p9_nr_pages(struct p9_req_t *);323334