Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
acmacros.h File Reference

Go to the source code of this file.

Macros

#define ACPI_GET8(ptr)   *ACPI_CAST_PTR (u8, ptr)
 
#define ACPI_GET16(ptr)   *ACPI_CAST_PTR (u16, ptr)
 
#define ACPI_GET32(ptr)   *ACPI_CAST_PTR (u32, ptr)
 
#define ACPI_GET64(ptr)   *ACPI_CAST_PTR (u64, ptr)
 
#define ACPI_SET8(ptr)   *ACPI_CAST_PTR (u8, ptr)
 
#define ACPI_SET16(ptr)   *ACPI_CAST_PTR (u16, ptr)
 
#define ACPI_SET32(ptr)   *ACPI_CAST_PTR (u32, ptr)
 
#define ACPI_SET64(ptr)   *ACPI_CAST_PTR (u64, ptr)
 
#define ACPI_FORMAT_UINT64(i)   ACPI_HIDWORD(i), ACPI_LODWORD(i)
 
#define ACPI_FORMAT_NATIVE_UINT(i)   0, (i)
 
#define ACPI_MOVE_16_TO_16(d, s)   *(u16 *)(void *)(d) = *(u16 *)(void *)(s)
 
#define ACPI_MOVE_16_TO_32(d, s)   *(u32 *)(void *)(d) = *(u16 *)(void *)(s)
 
#define ACPI_MOVE_16_TO_64(d, s)   *(u64 *)(void *)(d) = *(u16 *)(void *)(s)
 
#define ACPI_MOVE_32_TO_16(d, s)   ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */
 
#define ACPI_MOVE_32_TO_32(d, s)   *(u32 *)(void *)(d) = *(u32 *)(void *)(s)
 
#define ACPI_MOVE_32_TO_64(d, s)   *(u64 *)(void *)(d) = *(u32 *)(void *)(s)
 
#define ACPI_MOVE_64_TO_16(d, s)   ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */
 
#define ACPI_MOVE_64_TO_32(d, s)   ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */
 
#define ACPI_MOVE_64_TO_64(d, s)   *(u64 *)(void *)(d) = *(u64 *)(void *)(s)
 
#define _ACPI_DIV(value, power_of2)   ((u32) ((value) >> (power_of2)))
 
#define _ACPI_MUL(value, power_of2)   ((u32) ((value) << (power_of2)))
 
#define _ACPI_MOD(value, divisor)   ((u32) ((value) & ((divisor) -1)))
 
#define ACPI_DIV_2(a)   _ACPI_DIV(a, 1)
 
#define ACPI_MUL_2(a)   _ACPI_MUL(a, 1)
 
#define ACPI_MOD_2(a)   _ACPI_MOD(a, 2)
 
#define ACPI_DIV_4(a)   _ACPI_DIV(a, 2)
 
#define ACPI_MUL_4(a)   _ACPI_MUL(a, 2)
 
#define ACPI_MOD_4(a)   _ACPI_MOD(a, 4)
 
#define ACPI_DIV_8(a)   _ACPI_DIV(a, 3)
 
#define ACPI_MUL_8(a)   _ACPI_MUL(a, 3)
 
#define ACPI_MOD_8(a)   _ACPI_MOD(a, 8)
 
#define ACPI_DIV_16(a)   _ACPI_DIV(a, 4)
 
#define ACPI_MUL_16(a)   _ACPI_MUL(a, 4)
 
#define ACPI_MOD_16(a)   _ACPI_MOD(a, 16)
 
#define ACPI_DIV_32(a)   _ACPI_DIV(a, 5)
 
#define ACPI_MUL_32(a)   _ACPI_MUL(a, 5)
 
#define ACPI_MOD_32(a)   _ACPI_MOD(a, 32)
 
#define ACPI_ROUND_DOWN(value, boundary)
 
#define ACPI_ROUND_UP(value, boundary)
 
#define ACPI_ROUND_DOWN_TO_32BIT(a)   ACPI_ROUND_DOWN(a, 4)
 
#define ACPI_ROUND_DOWN_TO_64BIT(a)   ACPI_ROUND_DOWN(a, 8)
 
#define ACPI_ROUND_DOWN_TO_NATIVE_WORD(a)   ACPI_ROUND_DOWN(a, sizeof(acpi_size))
 
#define ACPI_ROUND_UP_TO_32BIT(a)   ACPI_ROUND_UP(a, 4)
 
#define ACPI_ROUND_UP_TO_64BIT(a)   ACPI_ROUND_UP(a, 8)
 
#define ACPI_ROUND_UP_TO_NATIVE_WORD(a)   ACPI_ROUND_UP(a, sizeof(acpi_size))
 
#define ACPI_ROUND_BITS_UP_TO_BYTES(a)   ACPI_DIV_8((a) + 7)
 
#define ACPI_ROUND_BITS_DOWN_TO_BYTES(a)   ACPI_DIV_8((a))
 
#define ACPI_ROUND_UP_TO_1K(a)   (((a) + 1023) >> 10)
 
#define ACPI_ROUND_UP_TO(value, boundary)   (((value) + ((boundary)-1)) / (boundary))
 
#define ACPI_IS_MISALIGNED(value)   (((acpi_size) value) & (sizeof(acpi_size)-1))
 
#define ACPI_MASK_BITS_ABOVE(position)   (~((ACPI_UINT64_MAX) << ((u32) (position))))
 
#define ACPI_MASK_BITS_BELOW(position)   ((ACPI_UINT64_MAX) << ((u32) (position)))
 
#define ACPI_REGISTER_PREPARE_BITS(val, pos, mask)   ((val << pos) & mask)
 
#define ACPI_REGISTER_INSERT_VALUE(reg, pos, mask, val)   reg = (reg & (~(mask))) | ACPI_REGISTER_PREPARE_BITS(val, pos, mask)
 
#define ACPI_INSERT_BITS(target, mask, source)   target = ((target & (~(mask))) | (source & mask))
 
#define ACPI_GET_BITS(source_ptr, position, mask)   ((*source_ptr >> position) & mask)
 
#define ACPI_SET_BITS(target_ptr, position, mask, value)   (*target_ptr |= ((value & mask) << position))
 
#define ACPI_1BIT_MASK   0x00000001
 
#define ACPI_2BIT_MASK   0x00000003
 
#define ACPI_3BIT_MASK   0x00000007
 
#define ACPI_4BIT_MASK   0x0000000F
 
#define ACPI_5BIT_MASK   0x0000001F
 
#define ACPI_6BIT_MASK   0x0000003F
 
#define ACPI_7BIT_MASK   0x0000007F
 
#define ACPI_8BIT_MASK   0x000000FF
 
#define ACPI_16BIT_MASK   0x0000FFFF
 
#define ACPI_24BIT_MASK   0x00FFFFFF
 
#define ACPI_GET_DESCRIPTOR_TYPE(d)   (((union acpi_descriptor *)(void *)(d))->common.descriptor_type)
 
#define ACPI_SET_DESCRIPTOR_TYPE(d, t)   (((union acpi_descriptor *)(void *)(d))->common.descriptor_type = t)
 
#define ACPI_OP(name, Pargs, Iargs, obj_type, class, type, flags)   {(u32)(Pargs), (u32)(Iargs), (u32)(flags), obj_type, class, type}
 
#define ARG_TYPE_WIDTH   5
 
#define ARG_1(x)   ((u32)(x))
 
#define ARG_2(x)   ((u32)(x) << (1 * ARG_TYPE_WIDTH))
 
#define ARG_3(x)   ((u32)(x) << (2 * ARG_TYPE_WIDTH))
 
#define ARG_4(x)   ((u32)(x) << (3 * ARG_TYPE_WIDTH))
 
#define ARG_5(x)   ((u32)(x) << (4 * ARG_TYPE_WIDTH))
 
#define ARG_6(x)   ((u32)(x) << (5 * ARG_TYPE_WIDTH))
 
#define ARGI_LIST1(a)   (ARG_1(a))
 
#define ARGI_LIST2(a, b)   (ARG_1(b)|ARG_2(a))
 
#define ARGI_LIST3(a, b, c)   (ARG_1(c)|ARG_2(b)|ARG_3(a))
 
#define ARGI_LIST4(a, b, c, d)   (ARG_1(d)|ARG_2(c)|ARG_3(b)|ARG_4(a))
 
#define ARGI_LIST5(a, b, c, d, e)   (ARG_1(e)|ARG_2(d)|ARG_3(c)|ARG_4(b)|ARG_5(a))
 
#define ARGI_LIST6(a, b, c, d, e, f)   (ARG_1(f)|ARG_2(e)|ARG_3(d)|ARG_4(c)|ARG_5(b)|ARG_6(a))
 
#define ARGP_LIST1(a)   (ARG_1(a))
 
#define ARGP_LIST2(a, b)   (ARG_1(a)|ARG_2(b))
 
#define ARGP_LIST3(a, b, c)   (ARG_1(a)|ARG_2(b)|ARG_3(c))
 
#define ARGP_LIST4(a, b, c, d)   (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d))
 
#define ARGP_LIST5(a, b, c, d, e)   (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e))
 
#define ARGP_LIST6(a, b, c, d, e, f)   (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f))
 
#define GET_CURRENT_ARG_TYPE(list)   (list & ((u32) 0x1F))
 
#define INCREMENT_ARG_LIST(list)   (list >>= ((u32) ARG_TYPE_WIDTH))
 
#define ACPI_ERROR_NAMESPACE(s, e)   acpi_ut_namespace_error (AE_INFO, s, e);
 
#define ACPI_ERROR_METHOD(s, n, p, e)   acpi_ut_method_error (AE_INFO, s, n, p, e);
 
#define ACPI_WARN_PREDEFINED(plist)   acpi_ut_predefined_warning plist
 
#define ACPI_INFO_PREDEFINED(plist)   acpi_ut_predefined_info plist
 
#define ACPI_DEBUG_EXEC(a)
 
#define ACPI_NORMAL_EXEC(a)   a;
 
#define ACPI_DEBUG_DEFINE(a)   do { } while(0)
 
#define ACPI_DEBUG_ONLY_MEMBERS(a)   do { } while(0)
 
#define ACPI_FUNCTION_TRACE(a)   do { } while(0)
 
#define ACPI_FUNCTION_TRACE_PTR(a, b)   do { } while(0)
 
#define ACPI_FUNCTION_TRACE_U32(a, b)   do { } while(0)
 
#define ACPI_FUNCTION_TRACE_STR(a, b)   do { } while(0)
 
#define ACPI_FUNCTION_EXIT   do { } while(0)
 
#define ACPI_FUNCTION_STATUS_EXIT(s)   do { } while(0)
 
#define ACPI_FUNCTION_VALUE_EXIT(s)   do { } while(0)
 
#define ACPI_FUNCTION_ENTRY()   do { } while(0)
 
#define ACPI_DUMP_STACK_ENTRY(a)   do { } while(0)
 
#define ACPI_DUMP_OPERANDS(a, b, c)   do { } while(0)
 
#define ACPI_DUMP_ENTRY(a, b)   do { } while(0)
 
#define ACPI_DUMP_TABLES(a, b)   do { } while(0)
 
#define ACPI_DUMP_PATHNAME(a, b, c, d)   do { } while(0)
 
#define ACPI_DUMP_RESOURCE_LIST(a)   do { } while(0)
 
#define ACPI_DUMP_BUFFER(a, b)   do { } while(0)
 
#define return_VOID   return
 
#define return_ACPI_STATUS(s)   return(s)
 
#define return_VALUE(s)   return(s)
 
#define return_UINT8(s)   return(s)
 
#define return_UINT32(s)   return(s)
 
#define return_PTR(s)   return(s)
 
#define ACPI_HW_OPTIONAL_FUNCTION(addr)   addr
 
#define ACPI_DEBUGGER_EXEC(a)
 
#define ACPI_ADD_OBJECT_NAME(a, b)
 
#define ACPI_MEM_PARAMETERS   _COMPONENT, _acpi_module_name, __LINE__
 
#define ACPI_ALLOCATE(a)   acpi_ut_allocate((acpi_size)(a), ACPI_MEM_PARAMETERS)
 
#define ACPI_ALLOCATE_ZEROED(a)   acpi_ut_allocate_zeroed((acpi_size)(a), ACPI_MEM_PARAMETERS)
 
#define ACPI_FREE(a)   acpio_os_free(a)
 
#define ACPI_MEM_TRACKING(a)
 
#define ACPI_PREEMPTION_POINT()   /* no preemption */
 

Macro Definition Documentation

#define _ACPI_DIV (   value,
  power_of2 
)    ((u32) ((value) >> (power_of2)))

Definition at line 214 of file acmacros.h.

#define _ACPI_MOD (   value,
  divisor 
)    ((u32) ((value) & ((divisor) -1)))

Definition at line 216 of file acmacros.h.

#define _ACPI_MUL (   value,
  power_of2 
)    ((u32) ((value) << (power_of2)))

Definition at line 215 of file acmacros.h.

#define ACPI_16BIT_MASK   0x0000FFFF

Definition at line 305 of file acmacros.h.

#define ACPI_1BIT_MASK   0x00000001

Definition at line 297 of file acmacros.h.

#define ACPI_24BIT_MASK   0x00FFFFFF

Definition at line 306 of file acmacros.h.

#define ACPI_2BIT_MASK   0x00000003

Definition at line 298 of file acmacros.h.

#define ACPI_3BIT_MASK   0x00000007

Definition at line 299 of file acmacros.h.

#define ACPI_4BIT_MASK   0x0000000F

Definition at line 300 of file acmacros.h.

#define ACPI_5BIT_MASK   0x0000001F

Definition at line 301 of file acmacros.h.

#define ACPI_6BIT_MASK   0x0000003F

Definition at line 302 of file acmacros.h.

#define ACPI_7BIT_MASK   0x0000007F

Definition at line 303 of file acmacros.h.

#define ACPI_8BIT_MASK   0x000000FF

Definition at line 304 of file acmacros.h.

#define ACPI_ADD_OBJECT_NAME (   a,
  b 
)

Definition at line 568 of file acmacros.h.

#define ACPI_ALLOCATE (   a)    acpi_ut_allocate((acpi_size)(a), ACPI_MEM_PARAMETERS)

Definition at line 581 of file acmacros.h.

#define ACPI_ALLOCATE_ZEROED (   a)    acpi_ut_allocate_zeroed((acpi_size)(a), ACPI_MEM_PARAMETERS)

Definition at line 584 of file acmacros.h.

#define ACPI_DEBUG_DEFINE (   a)    do { } while(0)

Definition at line 515 of file acmacros.h.

#define ACPI_DEBUG_EXEC (   a)

Definition at line 512 of file acmacros.h.

#define ACPI_DEBUG_ONLY_MEMBERS (   a)    do { } while(0)

Definition at line 516 of file acmacros.h.

#define ACPI_DEBUGGER_EXEC (   a)

Definition at line 556 of file acmacros.h.

#define ACPI_DIV_16 (   a)    _ACPI_DIV(a, 4)

Definition at line 230 of file acmacros.h.

#define ACPI_DIV_2 (   a)    _ACPI_DIV(a, 1)

Definition at line 218 of file acmacros.h.

#define ACPI_DIV_32 (   a)    _ACPI_DIV(a, 5)

Definition at line 234 of file acmacros.h.

#define ACPI_DIV_4 (   a)    _ACPI_DIV(a, 2)

Definition at line 222 of file acmacros.h.

#define ACPI_DIV_8 (   a)    _ACPI_DIV(a, 3)

Definition at line 226 of file acmacros.h.

#define ACPI_DUMP_BUFFER (   a,
  b 
)    do { } while(0)

Definition at line 531 of file acmacros.h.

#define ACPI_DUMP_ENTRY (   a,
  b 
)    do { } while(0)

Definition at line 527 of file acmacros.h.

#define ACPI_DUMP_OPERANDS (   a,
  b,
  c 
)    do { } while(0)

Definition at line 526 of file acmacros.h.

#define ACPI_DUMP_PATHNAME (   a,
  b,
  c,
  d 
)    do { } while(0)

Definition at line 529 of file acmacros.h.

#define ACPI_DUMP_RESOURCE_LIST (   a)    do { } while(0)

Definition at line 530 of file acmacros.h.

#define ACPI_DUMP_STACK_ENTRY (   a)    do { } while(0)

Definition at line 525 of file acmacros.h.

#define ACPI_DUMP_TABLES (   a,
  b 
)    do { } while(0)

Definition at line 528 of file acmacros.h.

#define ACPI_ERROR_METHOD (   s,
  n,
  p,
  e 
)    acpi_ut_method_error (AE_INFO, s, n, p, e);

Definition at line 365 of file acmacros.h.

#define ACPI_ERROR_NAMESPACE (   s,
  e 
)    acpi_ut_namespace_error (AE_INFO, s, e);

Definition at line 364 of file acmacros.h.

#define ACPI_FORMAT_NATIVE_UINT (   i)    0, (i)

Definition at line 72 of file acmacros.h.

#define ACPI_FORMAT_UINT64 (   i)    ACPI_HIDWORD(i), ACPI_LODWORD(i)

Definition at line 67 of file acmacros.h.

#define ACPI_FREE (   a)    acpio_os_free(a)

Definition at line 587 of file acmacros.h.

#define ACPI_FUNCTION_ENTRY ( )    do { } while(0)

Definition at line 524 of file acmacros.h.

#define ACPI_FUNCTION_EXIT   do { } while(0)

Definition at line 521 of file acmacros.h.

#define ACPI_FUNCTION_STATUS_EXIT (   s)    do { } while(0)

Definition at line 522 of file acmacros.h.

#define ACPI_FUNCTION_TRACE (   a)    do { } while(0)

Definition at line 517 of file acmacros.h.

#define ACPI_FUNCTION_TRACE_PTR (   a,
  b 
)    do { } while(0)

Definition at line 518 of file acmacros.h.

#define ACPI_FUNCTION_TRACE_STR (   a,
  b 
)    do { } while(0)

Definition at line 520 of file acmacros.h.

#define ACPI_FUNCTION_TRACE_U32 (   a,
  b 
)    do { } while(0)

Definition at line 519 of file acmacros.h.

#define ACPI_FUNCTION_VALUE_EXIT (   s)    do { } while(0)

Definition at line 523 of file acmacros.h.

#define ACPI_GET16 (   ptr)    *ACPI_CAST_PTR (u16, ptr)

Definition at line 53 of file acmacros.h.

#define ACPI_GET32 (   ptr)    *ACPI_CAST_PTR (u32, ptr)

Definition at line 54 of file acmacros.h.

#define ACPI_GET64 (   ptr)    *ACPI_CAST_PTR (u64, ptr)

Definition at line 55 of file acmacros.h.

#define ACPI_GET8 (   ptr)    *ACPI_CAST_PTR (u8, ptr)

Definition at line 52 of file acmacros.h.

#define ACPI_GET_BITS (   source_ptr,
  position,
  mask 
)    ((*source_ptr >> position) & mask)

Definition at line 291 of file acmacros.h.

#define ACPI_GET_DESCRIPTOR_TYPE (   d)    (((union acpi_descriptor *)(void *)(d))->common.descriptor_type)

Definition at line 315 of file acmacros.h.

#define ACPI_HW_OPTIONAL_FUNCTION (   addr)    addr

Definition at line 543 of file acmacros.h.

#define ACPI_INFO_PREDEFINED (   plist)    acpi_ut_predefined_info plist

Definition at line 367 of file acmacros.h.

#define ACPI_INSERT_BITS (   target,
  mask,
  source 
)    target = ((target & (~(mask))) | (source & mask))

Definition at line 286 of file acmacros.h.

#define ACPI_IS_MISALIGNED (   value)    (((acpi_size) value) & (sizeof(acpi_size)-1))

Definition at line 267 of file acmacros.h.

#define ACPI_MASK_BITS_ABOVE (   position)    (~((ACPI_UINT64_MAX) << ((u32) (position))))

Definition at line 275 of file acmacros.h.

#define ACPI_MASK_BITS_BELOW (   position)    ((ACPI_UINT64_MAX) << ((u32) (position)))

Definition at line 276 of file acmacros.h.

#define ACPI_MEM_PARAMETERS   _COMPONENT, _acpi_module_name, __LINE__

Definition at line 574 of file acmacros.h.

#define ACPI_MEM_TRACKING (   a)

Definition at line 589 of file acmacros.h.

#define ACPI_MOD_16 (   a)    _ACPI_MOD(a, 16)

Definition at line 232 of file acmacros.h.

#define ACPI_MOD_2 (   a)    _ACPI_MOD(a, 2)

Definition at line 220 of file acmacros.h.

#define ACPI_MOD_32 (   a)    _ACPI_MOD(a, 32)

Definition at line 236 of file acmacros.h.

#define ACPI_MOD_4 (   a)    _ACPI_MOD(a, 4)

Definition at line 224 of file acmacros.h.

#define ACPI_MOD_8 (   a)    _ACPI_MOD(a, 8)

Definition at line 228 of file acmacros.h.

#define ACPI_MOVE_16_TO_16 (   d,
  s 
)    *(u16 *)(void *)(d) = *(u16 *)(void *)(s)

Definition at line 142 of file acmacros.h.

#define ACPI_MOVE_16_TO_32 (   d,
  s 
)    *(u32 *)(void *)(d) = *(u16 *)(void *)(s)

Definition at line 143 of file acmacros.h.

#define ACPI_MOVE_16_TO_64 (   d,
  s 
)    *(u64 *)(void *)(d) = *(u16 *)(void *)(s)

Definition at line 144 of file acmacros.h.

#define ACPI_MOVE_32_TO_16 (   d,
  s 
)    ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */

Definition at line 148 of file acmacros.h.

#define ACPI_MOVE_32_TO_32 (   d,
  s 
)    *(u32 *)(void *)(d) = *(u32 *)(void *)(s)

Definition at line 149 of file acmacros.h.

#define ACPI_MOVE_32_TO_64 (   d,
  s 
)    *(u64 *)(void *)(d) = *(u32 *)(void *)(s)

Definition at line 150 of file acmacros.h.

#define ACPI_MOVE_64_TO_16 (   d,
  s 
)    ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */

Definition at line 154 of file acmacros.h.

#define ACPI_MOVE_64_TO_32 (   d,
  s 
)    ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */

Definition at line 155 of file acmacros.h.

#define ACPI_MOVE_64_TO_64 (   d,
  s 
)    *(u64 *)(void *)(d) = *(u64 *)(void *)(s)

Definition at line 156 of file acmacros.h.

#define ACPI_MUL_16 (   a)    _ACPI_MUL(a, 4)

Definition at line 231 of file acmacros.h.

#define ACPI_MUL_2 (   a)    _ACPI_MUL(a, 1)

Definition at line 219 of file acmacros.h.

#define ACPI_MUL_32 (   a)    _ACPI_MUL(a, 5)

Definition at line 235 of file acmacros.h.

#define ACPI_MUL_4 (   a)    _ACPI_MUL(a, 2)

Definition at line 223 of file acmacros.h.

#define ACPI_MUL_8 (   a)    _ACPI_MUL(a, 3)

Definition at line 227 of file acmacros.h.

#define ACPI_NORMAL_EXEC (   a)    a;

Definition at line 513 of file acmacros.h.

#define ACPI_OP (   name,
  Pargs,
  Iargs,
  obj_type,
  class,
  type,
  flags 
)    {(u32)(Pargs), (u32)(Iargs), (u32)(flags), obj_type, class, type}

Definition at line 325 of file acmacros.h.

#define ACPI_PREEMPTION_POINT ( )    /* no preemption */

Definition at line 604 of file acmacros.h.

#define ACPI_REGISTER_INSERT_VALUE (   reg,
  pos,
  mask,
  val 
)    reg = (reg & (~(mask))) | ACPI_REGISTER_PREPARE_BITS(val, pos, mask)

Definition at line 283 of file acmacros.h.

#define ACPI_REGISTER_PREPARE_BITS (   val,
  pos,
  mask 
)    ((val << pos) & mask)

Definition at line 280 of file acmacros.h.

#define ACPI_ROUND_BITS_DOWN_TO_BYTES (   a)    ACPI_DIV_8((a))

Definition at line 259 of file acmacros.h.

#define ACPI_ROUND_BITS_UP_TO_BYTES (   a)    ACPI_DIV_8((a) + 7)

Definition at line 258 of file acmacros.h.

#define ACPI_ROUND_DOWN (   value,
  boundary 
)
Value:
(((acpi_size)(value)) & \
(~(((acpi_size) boundary)-1)))

Definition at line 241 of file acmacros.h.

#define ACPI_ROUND_DOWN_TO_32BIT (   a)    ACPI_ROUND_DOWN(a, 4)

Definition at line 250 of file acmacros.h.

#define ACPI_ROUND_DOWN_TO_64BIT (   a)    ACPI_ROUND_DOWN(a, 8)

Definition at line 251 of file acmacros.h.

#define ACPI_ROUND_DOWN_TO_NATIVE_WORD (   a)    ACPI_ROUND_DOWN(a, sizeof(acpi_size))

Definition at line 252 of file acmacros.h.

#define ACPI_ROUND_UP (   value,
  boundary 
)
Value:
((((acpi_size)(value)) + \
(((acpi_size) boundary)-1)) & \
(~(((acpi_size) boundary)-1)))

Definition at line 244 of file acmacros.h.

#define ACPI_ROUND_UP_TO (   value,
  boundary 
)    (((value) + ((boundary)-1)) / (boundary))

Definition at line 265 of file acmacros.h.

#define ACPI_ROUND_UP_TO_1K (   a)    (((a) + 1023) >> 10)

Definition at line 261 of file acmacros.h.

#define ACPI_ROUND_UP_TO_32BIT (   a)    ACPI_ROUND_UP(a, 4)

Definition at line 254 of file acmacros.h.

#define ACPI_ROUND_UP_TO_64BIT (   a)    ACPI_ROUND_UP(a, 8)

Definition at line 255 of file acmacros.h.

#define ACPI_ROUND_UP_TO_NATIVE_WORD (   a)    ACPI_ROUND_UP(a, sizeof(acpi_size))

Definition at line 256 of file acmacros.h.

#define ACPI_SET16 (   ptr)    *ACPI_CAST_PTR (u16, ptr)

Definition at line 57 of file acmacros.h.

#define ACPI_SET32 (   ptr)    *ACPI_CAST_PTR (u32, ptr)

Definition at line 58 of file acmacros.h.

#define ACPI_SET64 (   ptr)    *ACPI_CAST_PTR (u64, ptr)

Definition at line 59 of file acmacros.h.

#define ACPI_SET8 (   ptr)    *ACPI_CAST_PTR (u8, ptr)

Definition at line 56 of file acmacros.h.

#define ACPI_SET_BITS (   target_ptr,
  position,
  mask,
  value 
)    (*target_ptr |= ((value & mask) << position))

Definition at line 294 of file acmacros.h.

#define ACPI_SET_DESCRIPTOR_TYPE (   d,
  t 
)    (((union acpi_descriptor *)(void *)(d))->common.descriptor_type = t)

Definition at line 316 of file acmacros.h.

#define ACPI_WARN_PREDEFINED (   plist)    acpi_ut_predefined_warning plist

Definition at line 366 of file acmacros.h.

#define ARG_1 (   x)    ((u32)(x))

Definition at line 330 of file acmacros.h.

#define ARG_2 (   x)    ((u32)(x) << (1 * ARG_TYPE_WIDTH))

Definition at line 331 of file acmacros.h.

#define ARG_3 (   x)    ((u32)(x) << (2 * ARG_TYPE_WIDTH))

Definition at line 332 of file acmacros.h.

#define ARG_4 (   x)    ((u32)(x) << (3 * ARG_TYPE_WIDTH))

Definition at line 333 of file acmacros.h.

#define ARG_5 (   x)    ((u32)(x) << (4 * ARG_TYPE_WIDTH))

Definition at line 334 of file acmacros.h.

#define ARG_6 (   x)    ((u32)(x) << (5 * ARG_TYPE_WIDTH))

Definition at line 335 of file acmacros.h.

#define ARG_TYPE_WIDTH   5

Definition at line 329 of file acmacros.h.

#define ARGI_LIST1 (   a)    (ARG_1(a))

Definition at line 337 of file acmacros.h.

#define ARGI_LIST2 (   a,
  b 
)    (ARG_1(b)|ARG_2(a))

Definition at line 338 of file acmacros.h.

#define ARGI_LIST3 (   a,
  b,
  c 
)    (ARG_1(c)|ARG_2(b)|ARG_3(a))

Definition at line 339 of file acmacros.h.

#define ARGI_LIST4 (   a,
  b,
  c,
  d 
)    (ARG_1(d)|ARG_2(c)|ARG_3(b)|ARG_4(a))

Definition at line 340 of file acmacros.h.

#define ARGI_LIST5 (   a,
  b,
  c,
  d,
  e 
)    (ARG_1(e)|ARG_2(d)|ARG_3(c)|ARG_4(b)|ARG_5(a))

Definition at line 341 of file acmacros.h.

#define ARGI_LIST6 (   a,
  b,
  c,
  d,
  e,
  f 
)    (ARG_1(f)|ARG_2(e)|ARG_3(d)|ARG_4(c)|ARG_5(b)|ARG_6(a))

Definition at line 342 of file acmacros.h.

#define ARGP_LIST1 (   a)    (ARG_1(a))

Definition at line 344 of file acmacros.h.

#define ARGP_LIST2 (   a,
  b 
)    (ARG_1(a)|ARG_2(b))

Definition at line 345 of file acmacros.h.

#define ARGP_LIST3 (   a,
  b,
  c 
)    (ARG_1(a)|ARG_2(b)|ARG_3(c))

Definition at line 346 of file acmacros.h.

#define ARGP_LIST4 (   a,
  b,
  c,
  d 
)    (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d))

Definition at line 347 of file acmacros.h.

#define ARGP_LIST5 (   a,
  b,
  c,
  d,
  e 
)    (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e))

Definition at line 348 of file acmacros.h.

#define ARGP_LIST6 (   a,
  b,
  c,
  d,
  e,
  f 
)    (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f))

Definition at line 349 of file acmacros.h.

#define GET_CURRENT_ARG_TYPE (   list)    (list & ((u32) 0x1F))

Definition at line 351 of file acmacros.h.

#define INCREMENT_ARG_LIST (   list)    (list >>= ((u32) ARG_TYPE_WIDTH))

Definition at line 352 of file acmacros.h.

#define return_ACPI_STATUS (   s)    return(s)

Definition at line 534 of file acmacros.h.

#define return_PTR (   s)    return(s)

Definition at line 538 of file acmacros.h.

#define return_UINT32 (   s)    return(s)

Definition at line 537 of file acmacros.h.

#define return_UINT8 (   s)    return(s)

Definition at line 536 of file acmacros.h.

#define return_VALUE (   s)    return(s)

Definition at line 535 of file acmacros.h.

#define return_VOID   return

Definition at line 533 of file acmacros.h.