linux/drivers/acpi/acpi_memhotplug.c
<<
>>
Prefs
   1/*
   2 * Copyright (C) 2004, 2013 Intel Corporation
   3 * Author: Naveen B S <naveen.b.s@intel.com>
   4 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
   5 *
   6 * All rights reserved.
   7 *
   8 * This program is free software; you can redistribute it and/or modify
   9 * it under the terms of the GNU General Public License as published by
  10 * the Free Software Foundation; either version 2 of the License, or (at
  11 * your option) any later version.
  12 *
  13 * This program is distributed in the hope that it will be d  12

  
  <2n>
   5 *
   6 * All rights reserveNON INFRINGEMENT.  Seeublic License as published by
  
  <2n>
   7 *
   8 * This program is frivers/acpi/acpi_memhotplug.c#L12" id="L12" class=line" na1me="L9">   9 * it under the termsYe isocald hm&gnd/cemhod a c 20l Public License as published by  10 * the Free Software along  11 * your option) any l version 2,   2 *
  13 * This program is drivers/acpi/acpi_memhotplug.c#L13" id="L13" class2/acpi_me2hotp62n>
 * Author: Rafael J. WCPI basod HotP" c memhot  12
   5 *
   6 * All rights reserven>
nd/mo&gne drion 2oun>
naler>
   7 *
   8 * This program is f/rivers/acpi/acpi_memhotplug.c#L12" id="L12" class2line" na2me="L9">   9  10  caf">ers/a#L3" .hommef="dacpi/acpi_memhotplug.c#L3" id="L3" class="l"line" n3me="L11">  11  caf">ers/a#rerery_L3" clashommef="dacpi/acpi_memhotplug.c#L3" id="L3" class="lline" na3me="L2">   2   3
  caf">n>
   5caf">WCPI_MEMORY_DEVICE_CLASSomme                nt"> * This pope ng"efquo@irererykquo@icivers/acpi/acpi_memhotplug.c#L3" id="L3" class="lline" na3me="L6">   6caf">WCPI_MEMORY_DEVICE_HIDomme                  nt"> * This pope ng"efquo@iPNP0C80kquo@icivers/acpi/acpi_memhotplug.c#L3" id="L3" class="lline" na3me="L7">   7caf">WCPI_MEMORY_DEVICE_NAMEomme                 nt"> * This pope ng"efquo@iHot3" c   8   9caf">_COMPONENTomme              turn=drivecode=WCPI_MEMORY_DEVICE_COMPONENTsults"
	 >caf">WCPI_MEMORY_DEVICE_COMPONENTommeacpi/acpi_memhotplug.c#L3" id="L3" class="4"line" n4me="L10">  10  11caf">PREFIXommeacpi/acpi_memhotplug.c#L3" id="L3" class="4line" na4me="L2">   2caf">PREFIXomme          nt"> * This pope ng"efquo@iWCPI:rerery_Lp:kquo@icivers/acpi/acpi_memhotplug.c#L3" id="L3" class="4line" na4me="L3">   3   4caf">WCPI_MODULE_NAMEomme(nt"> * This pope ng"efquo@iL3" id="L3" clakquo@icivers/)iacpi/acpi_memhotplug.c#L3" id="L3" class="4line" na4me="L5">   5   6 * All rights rese/*   7caf">MEMORY_INVALID_STATEomme    0acpi/acpi_memhotplug.c#L12" id="L12" class4line" na4me="L8">   8caf">MEMORY_POWER_ON_STATEomme   1acpi/acpi_memhotplug.c#L12" id="L12" class4line" na4me="L9">   9caf">MEMORY_POWER_OFF_STATEomme  2acpi/acpi_memhotplug.c#L5" id="L5" class="l"line" n5me="L10">  10  11
eturn=drivecode=L3" id="ery_devd b_addsults"
	 >caf">L3" id="ery_devd b_addomme(opeuc
eturn=drivecode=L3" idevd bsults"
	 >caf">L3" idevd bomme *turn=drivecode=devd bsults"
	 >caf">devd bomme,acpi/acpi_memhotplug.c#L3" id="L3" class="5line" na5me="L2">   2caf">L3" idevd b_idomme *turn=drivecode=not_usedsults"
	 >caf">not_usedomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="5line" na5me="L3">   3caf">L3" id="ery_devd b_d/mo&gomme(opeuc
eturn=drivecode=L3" idevd bsults"
	 >caf">L3" idevd bomme *turn=drivecode=devd bsults"
	 >caf">devd bomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="5line" na5me="L4">   4   5caf">L3" idevd b_idomme turn=drivecode=d="ery_devd b_idssults"
	 >caf">d="ery_devd b_idsomme[] = {acpi/acpi_memhotplug.c#L3" id="L3" class="5line" na5me="L6">   6caf">WCPI_MEMORY_DEVICE_HIDomme, 0},acpi/acpi_memhotplug.c#L3" id="L3" class="5line" na5me="L7">   7 * This pope ng"efquo@ikquo@icivers/, 0},acpi/acpi_memhotplug.c#L3" id="L3" class="5line" na5me="L8">   8   9  10caf">L3" iscan_handleromme turn=drivecode=d="ery_devd b_handlersults"
	 >caf">d="ery_devd b_handleromme = {acpi/acpi_memhotplug.c#L3" id="L3" class="6"line" n6me="L11">  11caf">idsomme = turn=drivecode=d="ery_devd b_idssults"
	 >caf">d="ery_devd b_idsomme,acpi/acpi_memhotplug.c#L3" id="L3" class="6line" na6me="L2">   2caf">Lttachomme = turn=drivecode=L3" id="ery_devd b_addsults"
	 >caf">L3" id="ery_devd b_addomme,acpi/acpi_memhotplug.c#L3" id="L3" class="6line" na6me="L3">   3caf">detachomme = turn=drivecode=L3" id="ery_devd b_d/mo&gsults"
	 >caf">L3" id="ery_devd b_d/mo&gomme,acpi/acpi_memhotplug.c#L3" id="L3" class="6line" na6me="L4">   4caf">hot3" crime = {acpi/acpi_memhotplug.c#L3" id="L3" class="6line" na6me="L5">   5caf">enabledomme = turn=drivecode=peugsults"
	 >caf">peugomme,acpi/acpi_memhotplug.c#L3" id="L3" class="6line" namme="L6">   6   7   8   9caf">L3" id="ery_infoomme {acpi/acpi_memhotplug.c#L3" id="L3" class="7"line" n7me="L10">  10
sults"
	 >caf">list_iv>
omme turn=drivecode=listsults"
	 >caf">listommeiacpi/acpi_memhotplug.c#L3" id="L3" class="7"line" n7me="L11">  11  >caf">u64omme turn=drivecode=ng"rt_addrsults"
	 >caf">ng"rt_addrommei         nt"> * This pghts rese/*   2  >caf">u64omme turn=drivecode=lengthsults"
	 >caf">lengthommei             nt"> * This pghts rese/*   3caf">cach ngommei nt"> * This pghts rese/*   4caf">wriy<_protectommei   nt"> * This pghts rese/*
/wriy   5
eturn=drivecode=enabledsults"
	 >caf">enabledomme:1iacpi/acpi_memhotplug.c#L3" id="L3" class="7line" na7me="L6">   6   7   8caf">L3" id="ery_devd bomme {acpi/acpi_memhotplug.c#L3" id="L3" class="7line" na7me="L9">   9caf">L3" idevd bomme *eturn=drivecode=devd bsults"
	 >caf">devd bommeiacpi/acpi_memhotplug.c#L3" id="L3" class="8"line" n8me="L10">  10
eturn=drivecode=ng" bsults"
	 >caf">ng" bommei     nt"> * This pghts rese/*  11
sults"
	 >caf">list_iv>
omme turn=drivecode=res_listsults"
	 >caf">res_listommeiacpi/acpi_memhotplug.c#L3" id="L3" class="8line" na8me="L2">   2   3   4caf">L3" isg" usommeacpi/acpi_memhotplug.c#L3" id="L3" class="8line" na8me="L5">   5caf">L3" id="ery_get  caf">L3" i caf"> caf">ss="dxtomme)acpi/acpi_memhotplug.c#L3" id="L3" class="8line" na8me="L6">   6   7caf">L3" id="ery_devd bomme *turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme = turn=drivecode=ss="dxtsults"
	 >caf">ss="dxtommeiacpi/acpi_memhotplug.c#L3" id="L3" class="8line" namme="L8">   8  >caf">L3" i   >caf">Lddress6mommeiacpi/acpi_memhotplug.c#L3" id="L3" class="8line" na8me="L9">   9caf">L3" id="ery_infoomme *turn=drivecode=infosults"
	 >caf">infoomme, *turn=drivecode=newsults"
	 >caf">newommeiacpi/acpi_memhotplug.c#L3" id="L3" class="9"line" n9me="L10">  10caf">L3" isg" usommeeturn=drivecode=ng" ussults"
	 >caf">sg" usommeiacpi/acpi_memhotplug.c#L3" id="L3" class="9"line" n9me="L11">  11   2caf">sg" usomme = turn=drivecode=L3" i   >caf">L3" i caf">   >caf">Lddress6momme)iacpi/acpi_memhotplug.c#L3" id="L3" class="9line" na9me="L3">   3caf">WCPI_FAILUREomme(nurn=drivecode=ng" ussults"
	 >caf">sg" usomme) ||acpi/acpi_memhotplug.c#L3" id="L3" class="9line" na9me="L4">   4  >caf">Lddress6momme.turn=drivecode= caf"> caf">WCPI_MEMORY_RANGEomme))acpi/acpi_memhotplug.c#L3" id="L3" class="9line" na9me="L5">   5caf">WE_OKommeiacpi/acpi_memhotplug.c#L3" id="L3" class="9line" na9me="L6">   6   7caf">list_for_each_ reryomme(nurn=drivecode=infosults"
	 >caf">infoomme, &turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme-f="drurn=drivecode=res_listsults"
	 >caf">res_listomme, turn=drivecode=listsults"
	 >caf">listomme) {acpi/acpi_memhotplug.c#L3" id="L3" class="9line" na9me="L8">   8 * This pghts rese/* *we ghtb5   9caf">infoomme-f="drurn=drivecode=cach ng"ults"
	 >caf">cach ngomme == turn=drivecode=Lddress6me="L4">  >caf">Lddress6momme.turn=drivecode=infosults"
	 >caf">infoomme.turn=drivecode=id=sults"
	 >caf">d="omme.turn=drivecode=cach ng"ults"
	 >caf">cach ngomme) &&acpi/acpi_memhotplug.c#L10" id="L10" class=""line" namme="L10">  10caf">infoomme-f="drurn=drivecode=wriy<_protectsults"
	 >caf">wriy<_protectomme == turn=drivecode=Lddress6me="L4">  >caf">Lddress6momme.turn=drivecode=infosults"
	 >caf">infoomme.turn=drivecode=id=sults"
	 >caf">d="omme.turn=drivecode=wriy<_protectsults"
	 >caf">wriy<_protectomme) &&acpi/acpi_memhotplug.c#L10" id="L10" class=""line" na0me="L11">  11caf">infoomme-f="drurn=drivecode=ng"rt_addrsults"
	 >caf">ng"rt_addromme + turn=drivecode=infosults"
	 >caf">infoomme-f="drurn=drivecode=lengthsults"
	 >caf">lengthomme == turn=drivecode=Lddress6me="L4">  >caf">Lddress6momme.turn=drivecode=minimu=sults"
	 >caf">dinimu=omme)) {acpi/acpi_memhotplug.c#L3" id="L3" class="10"line" na0me="L12">  12caf">infoomme-f="drurn=drivecode=lengthsults"
	 >caf">lengthomme += turn=drivecode=Lddress6me="L4">  >caf">Lddress6momme.turn=drivecode=Lddress_lengthsults"
	 >caf">Lddress_lengthommeiacpi/acpi_memhotplug.c#L3" id="L3" class="10"line" na0me="L13">  13caf">WE_OKommeiacpi/acpi_memhotplug.c#L3" id="L3" class="10/acpi_mem0hotp62n>
   5   6   7caf">newomme = turn=drivecode=kzallocsults"
	 >caf">kzallocomme(oizeof(opeuc
eturn=drivecode=L3" id="ery_infosults"
	 >caf">L3" id="ery_infoomme), turn=drivecode=GFP_KERNELsults"
	 >caf">GFP_KERNELomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="10line" na10me="L8">   8caf">newomme)acpi/acpi_memhotplug.c#L3" id="L3" class="10line" na10me="L9">   9caf">WE_ERRORommeiacpi/acpi_memhotplug.c#L3" id="L3" class="1="line" naame="L10">  10  11caf">INIT_LIST_HEADomme(&turn=drivecode=newsults"
	 >caf">newomme-f="drurn=drivecode=listsults"
	 >caf">listomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="1="line" naame="L12">  12caf">newomme-f="drurn=drivecode=cach ng"ults"
	 >caf">cach ngomme = turn=drivecode=Lddress6me="L4">  >caf">Lddress6momme.turn=drivecode=infosults"
	 >caf">infoomme.turn=drivecode=id=sults"
	 >caf">d="omme.turn=drivecode=cach ng"ults"
	 >caf">cach ngommeiacpi/acpi_memhotplug.c#L3" id="L3" class="1="line" naame="L13">  13caf">newomme-f="drurn=drivecode=wriy<_protectsults"
	 >caf">wriy<_protectomme = turn=drivecode=Lddress6me="L4">  >caf">Lddress6momme.turn=drivecode=infosults"
	 >caf">infoomme.turn=drivecode=id=sults"
	 >caf">d="omme.turn=drivecode=wriy<_protectsults"
	 >caf">wriy<_protectommeiacpi/acpi_memhotplug.c#L3" id="L3" class="1=/acpi_memmhotp62n>
caf">newomme-f="drurn=drivecode=ng"rt_addrsults"
	 >caf">ng"rt_addromme = turn=drivecode=Lddress6me="L4">  >caf">Lddress6momme.turn=drivecode=minimu=sults"
	 >caf">dinimu=ommeiacpi/acpi_memhotplug.c#L3" id="L3" class="1=5acpi_mem1me="L5">   5caf">newomme-f="drurn=drivecode=lengthsults"
	 >caf">lengthomme = turn=drivecode=Lddress6me="L4">  >caf">Lddress6momme.turn=drivecode=Lddress_lengthsults"
	 >caf">Lddress_lengthommeiacpi/acpi_memhotplug.c#L3" id="L3" class="1iline" na11me="L6">   6caf">list_Ldd_tailomme(&turn=drivecode=newsults"
	 >caf">newomme-f="drurn=drivecode=listsults"
	 >caf">listomme, &turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme-f="drurn=drivecode=res_listsults"
	 >caf">res_listomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="1=line" na11me="L7">   7   8caf">WE_OKommeiacpi/acpi_memhotplug.c#L3" id="L3" class="1=line" na11me="L9">   9  10  11  12caf">L3" id="ery_ can_devd b_d//our bsomme(opeuc
eturn=drivecode=L3" id="ery_devd bsults"
	 >caf">L3" id="ery_devd bomme *turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme)acpi/acpi_memhotplug.c#L3" id="L3" class="12"line" n12me="L13">  13caf">L3" id="ery_infoomme *turn=drivecode=infosults"
	 >caf">infoomme, *turn=drivecode=nsults"
	 >caf">nommeiacpi/acpi_memhotplug.c#L3" id="L3" class="12line" na12me="L5">   5   6caf">list_for_each_ rery_safbomme(nurn=drivecode=infosults"
	 >caf">infoomme, turn=drivecode=nsults"
	 >caf">nomme, &turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme-f="drurn=drivecode=res_listsults"
	 >caf">res_listomme, turn=drivecode=listsults"
	 >caf">listomme)acpi/acpi_memhotplug.c#L3" id="L3" class="12line" na12me="L7">   7caf">k canomme(nurn=drivecode=infosults"
	 >caf">infoomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="12line" na12me="L8">   8caf">INIT_LIST_HEADomme(&turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme-f="drurn=drivecode=res_listsults"
	 >caf">res_listomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="12line" na12me="L9">   9  10  11
acpi/acpi_memhotplug.c#L3" id="L3" class="1l"line" na3me="L2">   2caf">L3" id="ery_get devd b_d//our bsomme(opeuc
eturn=drivecode=L3" id="ery_devd bsults"
	 >caf">L3" id="ery_devd bomme *turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme)acpi/acpi_memhotplug.c#L3" id="L3" class="1lline" na1mme="L3">   3caf">L3" isg" usommeeturn=drivecode=ng" ussults"
	 >caf">sg" usommeiacpi/acpi_memhotplug.c#L3" id="L3" class="1lline" na13me="L5">   5   6caf">list_emptyomme(&turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme-f="drurn=drivecode=res_listsults"
	 >caf">res_listomme))acpi/acpi_memhotplug.c#L3" id="L3" class="1lline" na13me="L7">   7   8   9caf">sg" usomme = turn=drivecode=L3" iwalk_d//our bssults"
	 >caf">L3" iwalk_d//our bsomme(nurn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme-f="drurn=drivecode=devd bsults"
	 >caf">devd bomme-f="drurn=drivecode=handlesults"
	 >caf">handleomme, turn=drivecode=METHOD_NAME__CRSsults"
	 >caf">METHOD_NAME__CRSomme,acpi/acpi_memhotplug.c#L3" id="L3" class="14"line" n14me="L10">  10caf">L3" id="ery_get  caf">d="_devd bomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="14"line" n14me="L11">  11caf">WCPI_FAILUREomme(nurn=drivecode=ng" ussults"
	 >caf">sg" usomme)) {acpi/acpi_memhotplug.c#L3" id="L3" class="14line" na14me="L2">   2caf">L3" id="ery_ can_devd b_d//our bsomme(turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme)iacpi/acpi_memhotplug.c#L3" id="L3" class="14line" na14me="L3">   3caf">EINVALommeiacpi/acpi_memhotplug.c#L3" id="L3" class="14line" na1mme="L4">   4   5   6   7   8   9
 nurn=drivecode=L3" id="ery_check_devd bsults"
	 >caf">L3" id="ery_check_devd bomme(opeuc
eturn=drivecode=L3" id="ery_devd bsults"
	 >caf">L3" id="ery_devd bomme *turn=drivecode=d="_devd bsults"
	 >caf">d="_devd bomme)acpi/acpi_memhotplug.c#L3" id="L3" class="1l"line" n15me="L10">  10  11caf">currentisg" usommeiacpi/acpi_memhotplug.c#L3" id="L3" class="15line" na15me="L2">   2   3 * This pghts rese/*   4caf">WCPI_FAILUREomme(nurn=drivecode=L12" eformate_n>
caf">L3" ieformate_n>
caf">d="_devd bomme-f="drurn=drivecode=devd bsults"
	 >caf">devd bomme-f="drurn=drivecode=handlesults"
	 >caf">handleomme, tt"> * This pope ng"efquo@i_STAkquo@icivers/,acpi/acpi_memhotplug.c#L12" id="L12" class15line" na1mme="L5">   5caf">NULLomme, &turn=drivecode=currentisg" ussults"
	 >caf">currentisg" usomme)))acpi/acpi_memhotplug.c#L3" id="L3" class="15line" na15me="L6">   6caf">ENODEVommeiacpi/acpi_memhotplug.c#L3" id="L3" class="15line" na15me="L7">   7/*
   8 * This program is         * Checkrfa hdevd b/sg" us. Devd b socald be