Lines Matching defs:swapdev
79 * each swap partition or file is described by a "swapdev" structure.
80 * each "swapdev" structure contains a "swapent" structure which contains
88 * which describe "swapdev"'s at that priority. this LIST is headed
90 * TAILQ of "swapdev" structures at that priority.
97 * structures including the priority list, the swapdev structures,
125 * swapdev: describes a single swap partition/file
131 struct swapdev {
143 blist_t swd_blist; /* blist for this swapdev */
145 TAILQ_ENTRY(swapdev) swd_next; /* priority tailq */
163 TAILQ_HEAD(spi_swapdev, swapdev) spi_swapdev;
176 struct swapdev *vx_sdp;
223 static struct swapdev *swapdrum_getsdp(int);
225 static struct swapdev *swaplist_find(struct vnode *, bool);
226 static void swaplist_insert(struct swapdev *,
230 static int swap_on(struct lwp *, struct swapdev *);
231 static int swap_off(struct lwp *, struct swapdev *);
233 static void sw_reg_strategy(struct swapdev *, struct buf *, int);
236 static void sw_reg_start(struct swapdev *);
240 static void uvm_swap_genkey(struct swapdev *);
241 static void uvm_swap_encryptpage(struct swapdev *, void *, int);
242 static void uvm_swap_decryptpage(struct swapdev *, void *, int);
247 struct swapdev *sdp;
272 * the its dev_t number ("swapdev", from MD conf.c).
280 if (bdevvp(swapdev, &swapdev_vp))
324 swaplist_insert(struct swapdev *sdp, struct swappri *newspp, int priority)
376 * => we return the swapdev we found (and removed)
378 static struct swapdev *
381 struct swapdev *sdp;
431 * to the "swapdev" that maps that section of the drum.
433 * => each swapdev takes one big contig chunk of the drum
436 static struct swapdev *
439 struct swapdev *sdp;
463 swapdrum_sdp_is(int pgno, struct swapdev *sdp)
485 swapent_cvt(struct swapent *se, const struct swapdev *sdp, int inuse)
516 struct swapdev *sdp;
782 struct swapdev *sdp;
828 * swap_on: attempt to enable a swapdev for swapping. note that the
829 * swapdev is already on the global list, but disabled (marked
838 swap_on(struct lwp *l, struct swapdev *sdp)
1008 * now add the new swapdev to the drum and enable.
1052 * swap_off: stop swapping on swapdev
1057 swap_off(struct lwp *l, struct swapdev *sdp)
1126 panic("%s: swapdev not in list", __func__);
1147 struct swapdev *sdp;
1211 swapdev.
1216 struct swapdev *sdp;
1222 * convert block number to swapdev. note that swapdev can't
1239 * convert drum page number to block number on this swapdev.
1242 pageno -= sdp->swd_drumoffset; /* page # on swapdev */
1255 vp = sdp->swd_vp; /* swapdev vnode pointer */
1264 * on the swapdev (sdp).
1266 bp->b_blkno = bn; /* swapdev block number */
1267 bp->b_dev = sdp->swd_dev; /* swapdev dev_t */
1278 vp->v_numoutput++; /* put it on swapdev */
1283 * finally plug in swapdev vnode and start I/O
1356 sw_reg_strategy(struct swapdev *sdp, struct buf *bp, int bn)
1507 * sw_reg_start: start an I/O request on the requested swapdev
1512 sw_reg_start(struct swapdev *sdp)
1566 struct swapdev *sdp = vnx->vx_sdp;
1622 * done! start next swapdev I/O if one is pending
1643 struct swapdev *sdp;
1749 struct swapdev *sdp;
1779 struct swapdev *sdp;
1910 struct swapdev *sdp;
1914 * Get the swapdev so we can discriminate on the
2031 struct swapdev *sdp;
2095 uvm_swap_genkey(struct swapdev *sdp)
2116 uvm_swap_encryptpage(struct swapdev *sdp, void *kva, int slot)
2138 uvm_swap_decryptpage(struct swapdev *sdp, void *kva, int slot)