Lines Matching refs:mid
990 kiconv_module_ref_count(size_t mid)
994 if (mid <= 0 || mid > KICONV_MAX_MODULE_ID)
999 count = module_list[mid].refcount;
1058 size_t mid;
1075 for (mid = 1; mid <= KICONV_MAX_MODULE_ID; mid++)
1076 if (strcmp(module_list[mid].name, info->module_name) == 0)
1078 if (mid > KICONV_MAX_MODULE_ID)
1088 if (module_list[mid].refcount > 0) {
1111 if (conv_list[j].mid == mid &&
1139 size_t mid;
1146 for (mid = 1; mid <= KICONV_MAX_MODULE_ID; mid++)
1147 if (strcmp(module_list[mid].name, info->module_name) == 0)
1149 if (mid > KICONV_MAX_MODULE_ID)
1158 if (module_list[mid].refcount > 0) {
1169 if (conv_list[i].mid == mid) {
1193 size_t mid;
1225 mid = conv_list[i].mid;
1230 if (modload("kiconv", module_list[mid].name) < 0)
1252 if (module_list[mid].refcount < UINT_MAX)
1253 module_list[mid].refcount++;
1271 size_t mid;
1284 mid = conv_list[kcd->id].mid;
1288 if (module_list[mid].refcount > 0)
1289 module_list[mid].refcount--;
1319 size_t mid;
1324 mid = conv_list[kcd->id].mid;
1337 if (module_list[mid].refcount > 0)
1338 module_list[mid].refcount--;
1351 size_t mid;
1359 mid = conv_list[kcd->id].mid;
1368 if (module_list[mid].refcount > 0)
1369 module_list[mid].refcount--;