Commit 64d032ba authored by Dean Nelson's avatar Dean Nelson Committed by Linus Torvalds

drivers/misc/sgi-xp: replace partid_t with a short

In preparation for supporting greater than 64 partitions replace partid_t by
short in drivers/misc/sgi-xp.
Signed-off-by: default avatarDean Nelson <dcn@sgi.com>
Acked-by: default avatarRobin Holt <holt@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 65c17b80
...@@ -264,7 +264,7 @@ enum xp_retval { ...@@ -264,7 +264,7 @@ enum xp_retval {
* When a failure reason code is received, one can assume that the channel * When a failure reason code is received, one can assume that the channel
* is not connected. * is not connected.
*/ */
typedef void (*xpc_channel_func) (enum xp_retval reason, partid_t partid, typedef void (*xpc_channel_func) (enum xp_retval reason, short partid,
int ch_number, void *data, void *key); int ch_number, void *data, void *key);
/* /*
...@@ -286,7 +286,7 @@ typedef void (*xpc_channel_func) (enum xp_retval reason, partid_t partid, ...@@ -286,7 +286,7 @@ typedef void (*xpc_channel_func) (enum xp_retval reason, partid_t partid,
* *
* All other reason codes indicate failure. * All other reason codes indicate failure.
*/ */
typedef void (*xpc_notify_func) (enum xp_retval reason, partid_t partid, typedef void (*xpc_notify_func) (enum xp_retval reason, short partid,
int ch_number, void *key); int ch_number, void *key);
/* /*
...@@ -322,24 +322,24 @@ struct xpc_registration { ...@@ -322,24 +322,24 @@ struct xpc_registration {
struct xpc_interface { struct xpc_interface {
void (*connect) (int); void (*connect) (int);
void (*disconnect) (int); void (*disconnect) (int);
enum xp_retval (*allocate) (partid_t, int, u32, void **); enum xp_retval (*allocate) (short, int, u32, void **);
enum xp_retval (*send) (partid_t, int, void *); enum xp_retval (*send) (short, int, void *);
enum xp_retval (*send_notify) (partid_t, int, void *, enum xp_retval (*send_notify) (short, int, void *,
xpc_notify_func, void *); xpc_notify_func, void *);
void (*received) (partid_t, int, void *); void (*received) (short, int, void *);
enum xp_retval (*partid_to_nasids) (partid_t, void *); enum xp_retval (*partid_to_nasids) (short, void *);
}; };
extern struct xpc_interface xpc_interface; extern struct xpc_interface xpc_interface;
extern void xpc_set_interface(void (*)(int), extern void xpc_set_interface(void (*)(int),
void (*)(int), void (*)(int),
enum xp_retval (*)(partid_t, int, u32, void **), enum xp_retval (*)(short, int, u32, void **),
enum xp_retval (*)(partid_t, int, void *), enum xp_retval (*)(short, int, void *),
enum xp_retval (*)(partid_t, int, void *, enum xp_retval (*)(short, int, void *,
xpc_notify_func, void *), xpc_notify_func, void *),
void (*)(partid_t, int, void *), void (*)(short, int, void *),
enum xp_retval (*)(partid_t, void *)); enum xp_retval (*)(short, void *));
extern void xpc_clear_interface(void); extern void xpc_clear_interface(void);
extern enum xp_retval xpc_connect(int, xpc_channel_func, void *, u16, extern enum xp_retval xpc_connect(int, xpc_channel_func, void *, u16,
...@@ -347,32 +347,32 @@ extern enum xp_retval xpc_connect(int, xpc_channel_func, void *, u16, ...@@ -347,32 +347,32 @@ extern enum xp_retval xpc_connect(int, xpc_channel_func, void *, u16,
extern void xpc_disconnect(int); extern void xpc_disconnect(int);
static inline enum xp_retval static inline enum xp_retval
xpc_allocate(partid_t partid, int ch_number, u32 flags, void **payload) xpc_allocate(short partid, int ch_number, u32 flags, void **payload)
{ {
return xpc_interface.allocate(partid, ch_number, flags, payload); return xpc_interface.allocate(partid, ch_number, flags, payload);
} }
static inline enum xp_retval static inline enum xp_retval
xpc_send(partid_t partid, int ch_number, void *payload) xpc_send(short partid, int ch_number, void *payload)
{ {
return xpc_interface.send(partid, ch_number, payload); return xpc_interface.send(partid, ch_number, payload);
} }
static inline enum xp_retval static inline enum xp_retval
xpc_send_notify(partid_t partid, int ch_number, void *payload, xpc_send_notify(short partid, int ch_number, void *payload,
xpc_notify_func func, void *key) xpc_notify_func func, void *key)
{ {
return xpc_interface.send_notify(partid, ch_number, payload, func, key); return xpc_interface.send_notify(partid, ch_number, payload, func, key);
} }
static inline void static inline void
xpc_received(partid_t partid, int ch_number, void *payload) xpc_received(short partid, int ch_number, void *payload)
{ {
return xpc_interface.received(partid, ch_number, payload); return xpc_interface.received(partid, ch_number, payload);
} }
static inline enum xp_retval static inline enum xp_retval
xpc_partid_to_nasids(partid_t partid, void *nasids) xpc_partid_to_nasids(short partid, void *nasids)
{ {
return xpc_interface.partid_to_nasids(partid, nasids); return xpc_interface.partid_to_nasids(partid, nasids);
} }
......
...@@ -51,12 +51,12 @@ xpc_notloaded(void) ...@@ -51,12 +51,12 @@ xpc_notloaded(void)
struct xpc_interface xpc_interface = { struct xpc_interface xpc_interface = {
(void (*)(int))xpc_notloaded, (void (*)(int))xpc_notloaded,
(void (*)(int))xpc_notloaded, (void (*)(int))xpc_notloaded,
(enum xp_retval(*)(partid_t, int, u32, void **))xpc_notloaded, (enum xp_retval(*)(short, int, u32, void **))xpc_notloaded,
(enum xp_retval(*)(partid_t, int, void *))xpc_notloaded, (enum xp_retval(*)(short, int, void *))xpc_notloaded,
(enum xp_retval(*)(partid_t, int, void *, xpc_notify_func, void *)) (enum xp_retval(*)(short, int, void *, xpc_notify_func, void *))
xpc_notloaded, xpc_notloaded,
(void (*)(partid_t, int, void *))xpc_notloaded, (void (*)(short, int, void *))xpc_notloaded,
(enum xp_retval(*)(partid_t, void *))xpc_notloaded (enum xp_retval(*)(short, void *))xpc_notloaded
}; };
EXPORT_SYMBOL_GPL(xpc_interface); EXPORT_SYMBOL_GPL(xpc_interface);
...@@ -66,12 +66,12 @@ EXPORT_SYMBOL_GPL(xpc_interface); ...@@ -66,12 +66,12 @@ EXPORT_SYMBOL_GPL(xpc_interface);
void void
xpc_set_interface(void (*connect) (int), xpc_set_interface(void (*connect) (int),
void (*disconnect) (int), void (*disconnect) (int),
enum xp_retval (*allocate) (partid_t, int, u32, void **), enum xp_retval (*allocate) (short, int, u32, void **),
enum xp_retval (*send) (partid_t, int, void *), enum xp_retval (*send) (short, int, void *),
enum xp_retval (*send_notify) (partid_t, int, void *, enum xp_retval (*send_notify) (short, int, void *,
xpc_notify_func, void *), xpc_notify_func, void *),
void (*received) (partid_t, int, void *), void (*received) (short, int, void *),
enum xp_retval (*partid_to_nasids) (partid_t, void *)) enum xp_retval (*partid_to_nasids) (short, void *))
{ {
xpc_interface.connect = connect; xpc_interface.connect = connect;
xpc_interface.disconnect = disconnect; xpc_interface.disconnect = disconnect;
...@@ -91,16 +91,16 @@ xpc_clear_interface(void) ...@@ -91,16 +91,16 @@ xpc_clear_interface(void)
{ {
xpc_interface.connect = (void (*)(int))xpc_notloaded; xpc_interface.connect = (void (*)(int))xpc_notloaded;
xpc_interface.disconnect = (void (*)(int))xpc_notloaded; xpc_interface.disconnect = (void (*)(int))xpc_notloaded;
xpc_interface.allocate = (enum xp_retval(*)(partid_t, int, u32, xpc_interface.allocate = (enum xp_retval(*)(short, int, u32,
void **))xpc_notloaded; void **))xpc_notloaded;
xpc_interface.send = (enum xp_retval(*)(partid_t, int, void *)) xpc_interface.send = (enum xp_retval(*)(short, int, void *))
xpc_notloaded; xpc_notloaded;
xpc_interface.send_notify = (enum xp_retval(*)(partid_t, int, void *, xpc_interface.send_notify = (enum xp_retval(*)(short, int, void *,
xpc_notify_func, xpc_notify_func,
void *))xpc_notloaded; void *))xpc_notloaded;
xpc_interface.received = (void (*)(partid_t, int, void *)) xpc_interface.received = (void (*)(short, int, void *))
xpc_notloaded; xpc_notloaded;
xpc_interface.partid_to_nasids = (enum xp_retval(*)(partid_t, void *)) xpc_interface.partid_to_nasids = (enum xp_retval(*)(short, void *))
xpc_notloaded; xpc_notloaded;
} }
EXPORT_SYMBOL_GPL(xpc_clear_interface); EXPORT_SYMBOL_GPL(xpc_clear_interface);
......
...@@ -172,13 +172,13 @@ struct xpc_vars { ...@@ -172,13 +172,13 @@ struct xpc_vars {
(_version >= _XPC_VERSION(3, 1)) (_version >= _XPC_VERSION(3, 1))
static inline int static inline int
xpc_hb_allowed(partid_t partid, struct xpc_vars *vars) xpc_hb_allowed(short partid, struct xpc_vars *vars)
{ {
return ((vars->heartbeating_to_mask & (1UL << partid)) != 0); return ((vars->heartbeating_to_mask & (1UL << partid)) != 0);
} }
static inline void static inline void
xpc_allow_hb(partid_t partid, struct xpc_vars *vars) xpc_allow_hb(short partid, struct xpc_vars *vars)
{ {
u64 old_mask, new_mask; u64 old_mask, new_mask;
...@@ -190,7 +190,7 @@ xpc_allow_hb(partid_t partid, struct xpc_vars *vars) ...@@ -190,7 +190,7 @@ xpc_allow_hb(partid_t partid, struct xpc_vars *vars)
} }
static inline void static inline void
xpc_disallow_hb(partid_t partid, struct xpc_vars *vars) xpc_disallow_hb(short partid, struct xpc_vars *vars)
{ {
u64 old_mask, new_mask; u64 old_mask, new_mask;
...@@ -408,7 +408,7 @@ struct xpc_notify { ...@@ -408,7 +408,7 @@ struct xpc_notify {
* messages. * messages.
*/ */
struct xpc_channel { struct xpc_channel {
partid_t partid; /* ID of remote partition connected */ short partid; /* ID of remote partition connected */
spinlock_t lock; /* lock for updating this structure */ spinlock_t lock; /* lock for updating this structure */
u32 flags; /* general flags */ u32 flags; /* general flags */
...@@ -615,7 +615,7 @@ struct xpc_partition { ...@@ -615,7 +615,7 @@ struct xpc_partition {
/* interval in seconds to print 'waiting disengagement' messages */ /* interval in seconds to print 'waiting disengagement' messages */
#define XPC_DISENGAGE_PRINTMSG_INTERVAL 10 #define XPC_DISENGAGE_PRINTMSG_INTERVAL 10
#define XPC_PARTID(_p) ((partid_t) ((_p) - &xpc_partitions[0])) #define XPC_PARTID(_p) ((short)((_p) - &xpc_partitions[0]))
/* found in xp_main.c */ /* found in xp_main.c */
extern struct xpc_registration xpc_registrations[]; extern struct xpc_registration xpc_registrations[];
...@@ -652,16 +652,16 @@ extern void xpc_discovery(void); ...@@ -652,16 +652,16 @@ extern void xpc_discovery(void);
extern void xpc_check_remote_hb(void); extern void xpc_check_remote_hb(void);
extern void xpc_deactivate_partition(const int, struct xpc_partition *, extern void xpc_deactivate_partition(const int, struct xpc_partition *,
enum xp_retval); enum xp_retval);
extern enum xp_retval xpc_initiate_partid_to_nasids(partid_t, void *); extern enum xp_retval xpc_initiate_partid_to_nasids(short, void *);
/* found in xpc_channel.c */ /* found in xpc_channel.c */
extern void xpc_initiate_connect(int); extern void xpc_initiate_connect(int);
extern void xpc_initiate_disconnect(int); extern void xpc_initiate_disconnect(int);
extern enum xp_retval xpc_initiate_allocate(partid_t, int, u32, void **); extern enum xp_retval xpc_initiate_allocate(short, int, u32, void **);
extern enum xp_retval xpc_initiate_send(partid_t, int, void *); extern enum xp_retval xpc_initiate_send(short, int, void *);
extern enum xp_retval xpc_initiate_send_notify(partid_t, int, void *, extern enum xp_retval xpc_initiate_send_notify(short, int, void *,
xpc_notify_func, void *); xpc_notify_func, void *);
extern void xpc_initiate_received(partid_t, int, void *); extern void xpc_initiate_received(short, int, void *);
extern enum xp_retval xpc_setup_infrastructure(struct xpc_partition *); extern enum xp_retval xpc_setup_infrastructure(struct xpc_partition *);
extern enum xp_retval xpc_pull_remote_vars_part(struct xpc_partition *); extern enum xp_retval xpc_pull_remote_vars_part(struct xpc_partition *);
extern void xpc_process_channel_activity(struct xpc_partition *); extern void xpc_process_channel_activity(struct xpc_partition *);
......
...@@ -53,7 +53,7 @@ xpc_kzalloc_cacheline_aligned(size_t size, gfp_t flags, void **base) ...@@ -53,7 +53,7 @@ xpc_kzalloc_cacheline_aligned(size_t size, gfp_t flags, void **base)
* Set up the initial values for the XPartition Communication channels. * Set up the initial values for the XPartition Communication channels.
*/ */
static void static void
xpc_initialize_channels(struct xpc_partition *part, partid_t partid) xpc_initialize_channels(struct xpc_partition *part, short partid)
{ {
int ch_number; int ch_number;
struct xpc_channel *ch; struct xpc_channel *ch;
...@@ -95,7 +95,7 @@ xpc_setup_infrastructure(struct xpc_partition *part) ...@@ -95,7 +95,7 @@ xpc_setup_infrastructure(struct xpc_partition *part)
{ {
int ret, cpuid; int ret, cpuid;
struct timer_list *timer; struct timer_list *timer;
partid_t partid = XPC_PARTID(part); short partid = XPC_PARTID(part);
/* /*
* Zero out MOST of the entry for this partition. Only the fields * Zero out MOST of the entry for this partition. Only the fields
...@@ -290,7 +290,7 @@ xpc_pull_remote_vars_part(struct xpc_partition *part) ...@@ -290,7 +290,7 @@ xpc_pull_remote_vars_part(struct xpc_partition *part)
(struct xpc_vars_part *)L1_CACHE_ALIGN((u64)buffer); (struct xpc_vars_part *)L1_CACHE_ALIGN((u64)buffer);
struct xpc_vars_part *pulled_entry; struct xpc_vars_part *pulled_entry;
u64 remote_entry_cacheline_pa, remote_entry_pa; u64 remote_entry_cacheline_pa, remote_entry_pa;
partid_t partid = XPC_PARTID(part); short partid = XPC_PARTID(part);
enum xp_retval ret; enum xp_retval ret;
/* pull the cacheline that contains the variables we're interested in */ /* pull the cacheline that contains the variables we're interested in */
...@@ -1375,7 +1375,7 @@ xpc_partition_going_down(struct xpc_partition *part, enum xp_retval reason) ...@@ -1375,7 +1375,7 @@ xpc_partition_going_down(struct xpc_partition *part, enum xp_retval reason)
void void
xpc_teardown_infrastructure(struct xpc_partition *part) xpc_teardown_infrastructure(struct xpc_partition *part)
{ {
partid_t partid = XPC_PARTID(part); short partid = XPC_PARTID(part);
/* /*
* We start off by making this partition inaccessible to local * We start off by making this partition inaccessible to local
...@@ -1428,7 +1428,7 @@ xpc_teardown_infrastructure(struct xpc_partition *part) ...@@ -1428,7 +1428,7 @@ xpc_teardown_infrastructure(struct xpc_partition *part)
void void
xpc_initiate_connect(int ch_number) xpc_initiate_connect(int ch_number)
{ {
partid_t partid; short partid;
struct xpc_partition *part; struct xpc_partition *part;
struct xpc_channel *ch; struct xpc_channel *ch;
...@@ -1484,7 +1484,7 @@ void ...@@ -1484,7 +1484,7 @@ void
xpc_initiate_disconnect(int ch_number) xpc_initiate_disconnect(int ch_number)
{ {
unsigned long irq_flags; unsigned long irq_flags;
partid_t partid; short partid;
struct xpc_partition *part; struct xpc_partition *part;
struct xpc_channel *ch; struct xpc_channel *ch;
...@@ -1728,7 +1728,7 @@ xpc_allocate_msg(struct xpc_channel *ch, u32 flags, ...@@ -1728,7 +1728,7 @@ xpc_allocate_msg(struct xpc_channel *ch, u32 flags,
* return) in which the user-defined message is constructed. * return) in which the user-defined message is constructed.
*/ */
enum xp_retval enum xp_retval
xpc_initiate_allocate(partid_t partid, int ch_number, u32 flags, void **payload) xpc_initiate_allocate(short partid, int ch_number, u32 flags, void **payload)
{ {
struct xpc_partition *part = &xpc_partitions[partid]; struct xpc_partition *part = &xpc_partitions[partid];
enum xp_retval ret = xpUnknownReason; enum xp_retval ret = xpUnknownReason;
...@@ -1909,7 +1909,7 @@ xpc_send_msg(struct xpc_channel *ch, struct xpc_msg *msg, u8 notify_type, ...@@ -1909,7 +1909,7 @@ xpc_send_msg(struct xpc_channel *ch, struct xpc_msg *msg, u8 notify_type,
* xpc_initiate_allocate(). * xpc_initiate_allocate().
*/ */
enum xp_retval enum xp_retval
xpc_initiate_send(partid_t partid, int ch_number, void *payload) xpc_initiate_send(short partid, int ch_number, void *payload)
{ {
struct xpc_partition *part = &xpc_partitions[partid]; struct xpc_partition *part = &xpc_partitions[partid];
struct xpc_msg *msg = XPC_MSG_ADDRESS(payload); struct xpc_msg *msg = XPC_MSG_ADDRESS(payload);
...@@ -1958,7 +1958,7 @@ xpc_initiate_send(partid_t partid, int ch_number, void *payload) ...@@ -1958,7 +1958,7 @@ xpc_initiate_send(partid_t partid, int ch_number, void *payload)
* key - user-defined key to be passed to the function when it's called. * key - user-defined key to be passed to the function when it's called.
*/ */
enum xp_retval enum xp_retval
xpc_initiate_send_notify(partid_t partid, int ch_number, void *payload, xpc_initiate_send_notify(short partid, int ch_number, void *payload,
xpc_notify_func func, void *key) xpc_notify_func func, void *key)
{ {
struct xpc_partition *part = &xpc_partitions[partid]; struct xpc_partition *part = &xpc_partitions[partid];
...@@ -2203,7 +2203,7 @@ xpc_acknowledge_msgs(struct xpc_channel *ch, s64 initial_get, u8 msg_flags) ...@@ -2203,7 +2203,7 @@ xpc_acknowledge_msgs(struct xpc_channel *ch, s64 initial_get, u8 msg_flags)
* xpc_initiate_allocate(). * xpc_initiate_allocate().
*/ */
void void
xpc_initiate_received(partid_t partid, int ch_number, void *payload) xpc_initiate_received(short partid, int ch_number, void *payload)
{ {
struct xpc_partition *part = &xpc_partitions[partid]; struct xpc_partition *part = &xpc_partitions[partid];
struct xpc_channel *ch; struct xpc_channel *ch;
......
...@@ -429,7 +429,7 @@ xpc_partition_up(struct xpc_partition *part) ...@@ -429,7 +429,7 @@ xpc_partition_up(struct xpc_partition *part)
static int static int
xpc_activating(void *__partid) xpc_activating(void *__partid)
{ {
partid_t partid = (u64)__partid; short partid = (u64)__partid;
struct xpc_partition *part = &xpc_partitions[partid]; struct xpc_partition *part = &xpc_partitions[partid];
unsigned long irq_flags; unsigned long irq_flags;
...@@ -499,7 +499,7 @@ xpc_activating(void *__partid) ...@@ -499,7 +499,7 @@ xpc_activating(void *__partid)
void void
xpc_activate_partition(struct xpc_partition *part) xpc_activate_partition(struct xpc_partition *part)
{ {
partid_t partid = XPC_PARTID(part); short partid = XPC_PARTID(part);
unsigned long irq_flags; unsigned long irq_flags;
struct task_struct *kthread; struct task_struct *kthread;
...@@ -541,7 +541,7 @@ xpc_activate_partition(struct xpc_partition *part) ...@@ -541,7 +541,7 @@ xpc_activate_partition(struct xpc_partition *part)
irqreturn_t irqreturn_t
xpc_notify_IRQ_handler(int irq, void *dev_id) xpc_notify_IRQ_handler(int irq, void *dev_id)
{ {
partid_t partid = (partid_t) (u64)dev_id; short partid = (short)(u64)dev_id;
struct xpc_partition *part = &xpc_partitions[partid]; struct xpc_partition *part = &xpc_partitions[partid];
DBUG_ON(partid <= 0 || partid >= XP_MAX_PARTITIONS); DBUG_ON(partid <= 0 || partid >= XP_MAX_PARTITIONS);
...@@ -643,7 +643,7 @@ xpc_kthread_waitmsgs(struct xpc_partition *part, struct xpc_channel *ch) ...@@ -643,7 +643,7 @@ xpc_kthread_waitmsgs(struct xpc_partition *part, struct xpc_channel *ch)
static int static int
xpc_kthread_start(void *args) xpc_kthread_start(void *args)
{ {
partid_t partid = XPC_UNPACK_ARG1(args); short partid = XPC_UNPACK_ARG1(args);
u16 ch_number = XPC_UNPACK_ARG2(args); u16 ch_number = XPC_UNPACK_ARG2(args);
struct xpc_partition *part = &xpc_partitions[partid]; struct xpc_partition *part = &xpc_partitions[partid];
struct xpc_channel *ch; struct xpc_channel *ch;
...@@ -809,7 +809,7 @@ void ...@@ -809,7 +809,7 @@ void
xpc_disconnect_wait(int ch_number) xpc_disconnect_wait(int ch_number)
{ {
unsigned long irq_flags; unsigned long irq_flags;
partid_t partid; short partid;
struct xpc_partition *part; struct xpc_partition *part;
struct xpc_channel *ch; struct xpc_channel *ch;
int wakeup_channel_mgr; int wakeup_channel_mgr;
...@@ -859,7 +859,7 @@ xpc_disconnect_wait(int ch_number) ...@@ -859,7 +859,7 @@ xpc_disconnect_wait(int ch_number)
static void static void
xpc_do_exit(enum xp_retval reason) xpc_do_exit(enum xp_retval reason)
{ {
partid_t partid; short partid;
int active_part_count, printed_waiting_msg = 0; int active_part_count, printed_waiting_msg = 0;
struct xpc_partition *part; struct xpc_partition *part;
unsigned long printmsg_time, disengage_request_timeout = 0; unsigned long printmsg_time, disengage_request_timeout = 0;
...@@ -1008,7 +1008,7 @@ static void ...@@ -1008,7 +1008,7 @@ static void
xpc_die_disengage(void) xpc_die_disengage(void)
{ {
struct xpc_partition *part; struct xpc_partition *part;
partid_t partid; short partid;
unsigned long engaged; unsigned long engaged;
long time, printmsg_time, disengage_request_timeout; long time, printmsg_time, disengage_request_timeout;
...@@ -1124,7 +1124,7 @@ int __init ...@@ -1124,7 +1124,7 @@ int __init
xpc_init(void) xpc_init(void)
{ {
int ret; int ret;
partid_t partid; short partid;
struct xpc_partition *part; struct xpc_partition *part;
struct task_struct *kthread; struct task_struct *kthread;
size_t buf_size; size_t buf_size;
......
...@@ -403,7 +403,7 @@ xpc_check_remote_hb(void) ...@@ -403,7 +403,7 @@ xpc_check_remote_hb(void)
{ {
struct xpc_vars *remote_vars; struct xpc_vars *remote_vars;
struct xpc_partition *part; struct xpc_partition *part;
partid_t partid; short partid;
bte_result_t bres; bte_result_t bres;
remote_vars = (struct xpc_vars *)xpc_remote_copy_buffer; remote_vars = (struct xpc_vars *)xpc_remote_copy_buffer;
...@@ -604,7 +604,7 @@ xpc_identify_act_IRQ_req(int nasid) ...@@ -604,7 +604,7 @@ xpc_identify_act_IRQ_req(int nasid)
int reactivate = 0; int reactivate = 0;
int stamp_diff; int stamp_diff;
struct timespec remote_rp_stamp = { 0, 0 }; struct timespec remote_rp_stamp = { 0, 0 };
partid_t partid; short partid;
struct xpc_partition *part; struct xpc_partition *part;
enum xp_retval ret; enum xp_retval ret;
...@@ -825,7 +825,7 @@ xpc_identify_act_IRQ_sender(void) ...@@ -825,7 +825,7 @@ xpc_identify_act_IRQ_sender(void)
int int
xpc_partition_disengaged(struct xpc_partition *part) xpc_partition_disengaged(struct xpc_partition *part)
{ {
partid_t partid = XPC_PARTID(part); short partid = XPC_PARTID(part);
int disengaged; int disengaged;
disengaged = (xpc_partition_engaged(1UL << partid) == 0); disengaged = (xpc_partition_engaged(1UL << partid) == 0);
...@@ -982,7 +982,7 @@ xpc_discovery(void) ...@@ -982,7 +982,7 @@ xpc_discovery(void)
int max_regions; int max_regions;
int nasid; int nasid;
struct xpc_rsvd_page *rp; struct xpc_rsvd_page *rp;
partid_t partid; short partid;
struct xpc_partition *part; struct xpc_partition *part;
u64 *discovered_nasids; u64 *discovered_nasids;
enum xp_retval ret; enum xp_retval ret;
...@@ -1152,7 +1152,7 @@ xpc_discovery(void) ...@@ -1152,7 +1152,7 @@ xpc_discovery(void)
* remote partition's reserved page. * remote partition's reserved page.
*/ */
enum xp_retval enum xp_retval
xpc_initiate_partid_to_nasids(partid_t partid, void *nasid_mask) xpc_initiate_partid_to_nasids(short partid, void *nasid_mask)
{ {
struct xpc_partition *part; struct xpc_partition *part;
u64 part_nasid_pa; u64 part_nasid_pa;
......
...@@ -166,7 +166,7 @@ struct device *xpnet = &xpnet_dbg_subname; ...@@ -166,7 +166,7 @@ struct device *xpnet = &xpnet_dbg_subname;
* Packet was recevied by XPC and forwarded to us. * Packet was recevied by XPC and forwarded to us.
*/ */
static void static void
xpnet_receive(partid_t partid, int channel, struct xpnet_message *msg) xpnet_receive(short partid, int channel, struct xpnet_message *msg)
{ {
struct sk_buff *skb; struct sk_buff *skb;
bte_result_t bret; bte_result_t bret;
...@@ -282,7 +282,7 @@ xpnet_receive(partid_t partid, int channel, struct xpnet_message *msg) ...@@ -282,7 +282,7 @@ xpnet_receive(partid_t partid, int channel, struct xpnet_message *msg)
* state or message reception on a connection. * state or message reception on a connection.
*/ */
static void static void
xpnet_connection_activity(enum xp_retval reason, partid_t partid, int channel, xpnet_connection_activity(enum xp_retval reason, short partid, int channel,
void *data, void *key) void *data, void *key)
{ {
long bp; long bp;
...@@ -407,7 +407,7 @@ xpnet_dev_get_stats(struct net_device *dev) ...@@ -407,7 +407,7 @@ xpnet_dev_get_stats(struct net_device *dev)
* release the skb and then release our pending message structure. * release the skb and then release our pending message structure.
*/ */
static void static void
xpnet_send_completed(enum xp_retval reason, partid_t partid, int channel, xpnet_send_completed(enum xp_retval reason, short partid, int channel,
void *__qm) void *__qm)
{ {
struct xpnet_pending_msg *queued_msg = (struct xpnet_pending_msg *)__qm; struct xpnet_pending_msg *queued_msg = (struct xpnet_pending_msg *)__qm;
...@@ -444,7 +444,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -444,7 +444,7 @@ xpnet_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
u64 start_addr, end_addr; u64 start_addr, end_addr;
long dp; long dp;
u8 second_mac_octet; u8 second_mac_octet;
partid_t dest_partid; short dest_partid;
struct xpnet_dev_private *priv; struct xpnet_dev_private *priv;
u16 embedded_bytes; u16 embedded_bytes;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment