• Home
  • Raw
  • Download

Lines Matching refs:i

434 		int i;  in tomoyo_print_number_union_nospace()  local
442 for (i = 0; i < 2; i++) { in tomoyo_print_number_union_nospace()
576 static void tomoyo_set_uint(unsigned int *i, const char *string, in tomoyo_set_uint() argument
582 sscanf(cp + strlen(find), "=%u", i); in tomoyo_set_uint()
597 u8 i; in tomoyo_set_mode() local
601 i = TOMOYO_MAX_MAC_INDEX + TOMOYO_MAX_MAC_CATEGORY_INDEX; in tomoyo_set_mode()
605 for (i = 0; i < TOMOYO_MAX_MAC_INDEX in tomoyo_set_mode()
606 + TOMOYO_MAX_MAC_CATEGORY_INDEX; i++) { in tomoyo_set_mode()
609 if (i < TOMOYO_MAX_MAC_INDEX) { in tomoyo_set_mode()
610 const u8 c = tomoyo_index2category[i]; in tomoyo_set_mode()
619 if (strcmp(name + len, tomoyo_mac_keywords[i])) in tomoyo_set_mode()
621 config = profile->config[i]; in tomoyo_set_mode()
624 if (i == TOMOYO_MAX_MAC_INDEX + TOMOYO_MAX_MAC_CATEGORY_INDEX) in tomoyo_set_mode()
660 if (i < TOMOYO_MAX_MAC_INDEX + TOMOYO_MAX_MAC_CATEGORY_INDEX) in tomoyo_set_mode()
661 profile->config[i] = config; in tomoyo_set_mode()
677 unsigned int i; in tomoyo_write_profile() local
684 i = simple_strtoul(data, &cp, 10); in tomoyo_write_profile()
688 profile = tomoyo_assign_profile(head->w.ns, i); in tomoyo_write_profile()
711 for (i = 0; i < TOMOYO_MAX_PREF; i++) in tomoyo_write_profile()
712 tomoyo_set_uint(&profile->pref[i], cp, in tomoyo_write_profile()
713 tomoyo_pref_keywords[i]); in tomoyo_write_profile()
776 u8 i; in tomoyo_read_profile() local
786 for (i = 0; i < TOMOYO_MAX_PREF; i++) in tomoyo_read_profile()
788 tomoyo_pref_keywords[i], in tomoyo_read_profile()
789 profile->pref[i]); in tomoyo_read_profile()
806 const u8 i = head->r.bit; in tomoyo_read_profile() local
807 const u8 config = profile->config[i]; in tomoyo_read_profile()
812 if (i < TOMOYO_MAX_MAC_INDEX) in tomoyo_read_profile()
816 [tomoyo_index2category[i]], in tomoyo_read_profile()
817 tomoyo_mac_keywords[i]); in tomoyo_read_profile()
820 tomoyo_mac_keywords[i]); in tomoyo_read_profile()
1146 u8 i; in tomoyo_write_domain2() local
1148 for (i = 0; i < ARRAY_SIZE(tomoyo_callback); i++) { in tomoyo_write_domain2()
1150 tomoyo_callback[i].keyword)) in tomoyo_write_domain2()
1152 return tomoyo_callback[i].write(&param); in tomoyo_write_domain2()
1625 u8 i; in tomoyo_read_domain() local
1637 for (i = 0; i < TOMOYO_MAX_DOMAIN_INFO_FLAGS; i++) in tomoyo_read_domain()
1638 if (domain->flags[i]) in tomoyo_read_domain()
1639 tomoyo_set_string(head, tomoyo_dif[i]); in tomoyo_read_domain()
1645 i = head->r.index++; in tomoyo_read_domain()
1646 if (!test_bit(i, domain->group)) in tomoyo_read_domain()
1648 tomoyo_io_printf(head, "use_group %u\n", i); in tomoyo_read_domain()
1764 u8 i; in tomoyo_write_exception() local
1768 for (i = 0; i < TOMOYO_MAX_TRANSITION_TYPE; i++) in tomoyo_write_exception()
1769 if (tomoyo_str_starts(&param.data, tomoyo_transition_type[i])) in tomoyo_write_exception()
1770 return tomoyo_write_transition_control(&param, i); in tomoyo_write_exception()
1771 for (i = 0; i < TOMOYO_MAX_GROUP; i++) in tomoyo_write_exception()
1772 if (tomoyo_str_starts(&param.data, tomoyo_group_name[i])) in tomoyo_write_exception()
1773 return tomoyo_write_group(&param, i); in tomoyo_write_exception()
2355 u8 i; in tomoyo_read_stat() local
2360 for (i = 0; i < TOMOYO_MAX_POLICY_STAT; i++) { in tomoyo_read_stat()
2362 tomoyo_policy_headers[i], in tomoyo_read_stat()
2363 tomoyo_stat_updated[i]); in tomoyo_read_stat()
2364 if (tomoyo_stat_modified[i]) { in tomoyo_read_stat()
2367 tomoyo_convert_time(tomoyo_stat_modified[i], &stamp); in tomoyo_read_stat()
2374 for (i = 0; i < TOMOYO_MAX_MEMORY_STAT; i++) { in tomoyo_read_stat()
2375 unsigned int used = tomoyo_memory_used[i]; in tomoyo_read_stat()
2379 tomoyo_memory_headers[i], used); in tomoyo_read_stat()
2380 used = tomoyo_memory_quota[i]; in tomoyo_read_stat()
2400 u8 i; in tomoyo_write_stat() local
2403 for (i = 0; i < TOMOYO_MAX_MEMORY_STAT; i++) in tomoyo_write_stat()
2404 if (tomoyo_str_starts(&data, tomoyo_memory_headers[i])) in tomoyo_write_stat()
2405 sscanf(data, "%u", &tomoyo_memory_quota[i]); in tomoyo_write_stat()
2834 u8 i; in tomoyo_load_builtin_policy() local
2837 for (i = 0; i < 5; i++) { in tomoyo_load_builtin_policy()
2841 switch (i) { in tomoyo_load_builtin_policy()