• Home
  • Raw
  • Download

Lines Matching refs:part

266 xpc_partition_disengaged(struct xpc_partition *part)  in xpc_partition_disengaged()  argument
268 short partid = XPC_PARTID(part); in xpc_partition_disengaged()
272 if (part->disengage_timeout) { in xpc_partition_disengaged()
274 if (time_is_after_jiffies(part->disengage_timeout)) { in xpc_partition_disengaged()
290 part->disengage_timeout = 0; in xpc_partition_disengaged()
294 del_singleshot_timer_sync(&part->disengage_timer); in xpc_partition_disengaged()
296 DBUG_ON(part->act_state != XPC_P_AS_DEACTIVATING && in xpc_partition_disengaged()
297 part->act_state != XPC_P_AS_INACTIVE); in xpc_partition_disengaged()
298 if (part->act_state != XPC_P_AS_INACTIVE) in xpc_partition_disengaged()
299 xpc_wakeup_channel_mgr(part); in xpc_partition_disengaged()
301 xpc_arch_ops.cancel_partition_deactivation_request(part); in xpc_partition_disengaged()
310 xpc_mark_partition_active(struct xpc_partition *part) in xpc_mark_partition_active() argument
315 dev_dbg(xpc_part, "setting partition %d to ACTIVE\n", XPC_PARTID(part)); in xpc_mark_partition_active()
317 spin_lock_irqsave(&part->act_lock, irq_flags); in xpc_mark_partition_active()
318 if (part->act_state == XPC_P_AS_ACTIVATING) { in xpc_mark_partition_active()
319 part->act_state = XPC_P_AS_ACTIVE; in xpc_mark_partition_active()
322 DBUG_ON(part->reason == xpSuccess); in xpc_mark_partition_active()
323 ret = part->reason; in xpc_mark_partition_active()
325 spin_unlock_irqrestore(&part->act_lock, irq_flags); in xpc_mark_partition_active()
334 xpc_deactivate_partition(const int line, struct xpc_partition *part, in xpc_deactivate_partition() argument
339 spin_lock_irqsave(&part->act_lock, irq_flags); in xpc_deactivate_partition()
341 if (part->act_state == XPC_P_AS_INACTIVE) { in xpc_deactivate_partition()
342 XPC_SET_REASON(part, reason, line); in xpc_deactivate_partition()
343 spin_unlock_irqrestore(&part->act_lock, irq_flags); in xpc_deactivate_partition()
346 xpc_arch_ops.request_partition_reactivation(part); in xpc_deactivate_partition()
350 if (part->act_state == XPC_P_AS_DEACTIVATING) { in xpc_deactivate_partition()
351 if ((part->reason == xpUnloading && reason != xpUnloading) || in xpc_deactivate_partition()
353 XPC_SET_REASON(part, reason, line); in xpc_deactivate_partition()
355 spin_unlock_irqrestore(&part->act_lock, irq_flags); in xpc_deactivate_partition()
359 part->act_state = XPC_P_AS_DEACTIVATING; in xpc_deactivate_partition()
360 XPC_SET_REASON(part, reason, line); in xpc_deactivate_partition()
362 spin_unlock_irqrestore(&part->act_lock, irq_flags); in xpc_deactivate_partition()
365 xpc_arch_ops.request_partition_deactivation(part); in xpc_deactivate_partition()
368 part->disengage_timeout = jiffies + (xpc_disengage_timelimit * HZ); in xpc_deactivate_partition()
369 part->disengage_timer.expires = part->disengage_timeout; in xpc_deactivate_partition()
370 add_timer(&part->disengage_timer); in xpc_deactivate_partition()
373 XPC_PARTID(part), reason); in xpc_deactivate_partition()
375 xpc_partition_going_down(part, reason); in xpc_deactivate_partition()
382 xpc_mark_partition_inactive(struct xpc_partition *part) in xpc_mark_partition_inactive() argument
387 XPC_PARTID(part)); in xpc_mark_partition_inactive()
389 spin_lock_irqsave(&part->act_lock, irq_flags); in xpc_mark_partition_inactive()
390 part->act_state = XPC_P_AS_INACTIVE; in xpc_mark_partition_inactive()
391 spin_unlock_irqrestore(&part->act_lock, irq_flags); in xpc_mark_partition_inactive()
392 part->remote_rp_pa = 0; in xpc_mark_partition_inactive()
522 struct xpc_partition *part; in xpc_initiate_partid_to_nasids() local
525 part = &xpc_partitions[partid]; in xpc_initiate_partid_to_nasids()
526 if (part->remote_rp_pa == 0) in xpc_initiate_partid_to_nasids()
531 part_nasid_pa = (unsigned long)XPC_RP_PART_NASIDS(part->remote_rp_pa); in xpc_initiate_partid_to_nasids()