Lines Matching refs:index
452 size_t index = 0; in coap_option_filter_op() local
459 for (nr = 1; index < COAP_OPT_FILTER_LONG; nr <<= 1, index++) { in coap_option_filter_op()
461 if (((of->mask & nr) > 0) && (of->long_opts[index] == type)) { in coap_option_filter_op()
472 for (nr = 1 << COAP_OPT_FILTER_LONG; index < COAP_OPT_FILTER_SHORT; in coap_option_filter_op()
473 nr <<= 1, index++) { in coap_option_filter_op()
475 if (((of->mask & nr) > 0) && (of->short_opts[index] == (type & 0xff))) { in coap_option_filter_op()
492 index = coap_fls(~of->mask & mask); in coap_option_filter_op()
493 if (!index) { in coap_option_filter_op()
498 of->long_opts[index - 1] = type; in coap_option_filter_op()
500 of->short_opts[index - COAP_OPT_FILTER_LONG - 1] = type; in coap_option_filter_op()
503 of->mask |= 1 << (index - 1); in coap_option_filter_op()