Merge tag 'powerpc-5.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[platform/kernel/linux-starfive.git] / arch / powerpc / platforms / powernv / vas.h
index 9cc5251..5574aec 100644 (file)
@@ -444,26 +444,6 @@ static inline u64 read_hvwc_reg(struct vas_window *win,
        return in_be64(win->hvwc_map+reg);
 }
 
-/*
- * Encode/decode the Partition Send Window ID (PSWID) for a window in
- * a way that we can uniquely identify any window in the system. i.e.
- * we should be able to locate the 'struct vas_window' given the PSWID.
- *
- *     Bits    Usage
- *     0:7     VAS id (8 bits)
- *     8:15    Unused, 0 (3 bits)
- *     16:31   Window id (16 bits)
- */
-static inline u32 encode_pswid(int vasid, int winid)
-{
-       u32 pswid = 0;
-
-       pswid |= vasid << (31 - 7);
-       pswid |= winid;
-
-       return pswid;
-}
-
 static inline void decode_pswid(u32 pswid, int *vasid, int *winid)
 {
        if (vasid)