Lines Matching refs:item

62 typedef int arg_process_t(const struct umem_env_item *item, const char *value);
296 item_uint_process(const umem_env_item_t *item, const char *item_arg) in item_uint_process() argument
322 (*item->item_uint_target) = (uint_t)result; in item_uint_process()
326 log_message("%s: %s: not a number\n", CURRENT, item->item_name); in item_uint_process()
330 log_message("%s: %s: overflowed\n", CURRENT, item->item_name); in item_uint_process()
335 item_size_process(const umem_env_item_t *item, const char *item_arg) in item_size_process() argument
391 (*item->item_size_target) = result; in item_size_process()
395 log_message("%s: %s: not a number\n", CURRENT, item->item_name); in item_size_process()
399 log_message("%s: %s: overflowed\n", CURRENT, item->item_name); in item_size_process()
404 umem_log_process(const umem_env_item_t *item, const char *item_arg) in umem_log_process() argument
408 ret = item_size_process(item, item_arg); in umem_log_process()
412 if (*item->item_size_target == 0) in umem_log_process()
415 *item->item_size_target = 64*1024; in umem_log_process()
422 umem_size_process(const umem_env_item_t *item, const char *item_arg) in umem_size_process() argument
424 const char *name = item->item_name; in umem_size_process()
455 ret = item_size_process(item, item_arg); in umem_size_process()
459 result = *item->item_size_target; in umem_size_process()
466 umem_backend_process(const umem_env_item_t *item, const char *item_arg) in umem_backend_process() argument
468 const char *name = item->item_name; in umem_backend_process()
490 umem_allocator_process(const umem_env_item_t *item, const char *item_arg) in umem_allocator_process() argument
492 const char *name = item->item_name; in umem_allocator_process()
519 process_item(const umem_env_item_t *item, const char *item_arg) in process_item() argument
524 switch (item->item_type) { in process_item()
539 switch (item->item_type) { in process_item()
544 CURRENT, item->item_name); in process_item()
561 processor = item->item_special; in process_item()
566 CURRENT, item->item_name); in process_item()
572 CURRENT, item->item_name); in process_item()
576 if (item_arg != NULL || item->item_type == ITEM_SPECIAL) { in process_item()
577 if (processor(item, item_arg) != ARG_SUCCESS) in process_item()
581 if (item->item_flag_target) { in process_item()
582 if (item->item_type == ITEM_CLEARFLAG) in process_item()
583 (*item->item_flag_target) &= ~item->item_flag_value; in process_item()
585 (*item->item_flag_target) |= item->item_flag_value; in process_item()