Lines Matching refs:lindex
434 size_t lindex = 0;
441 for (nr = 1; lindex < COAP_OPT_FILTER_LONG; nr <<= 1, lindex++) {
443 if (((of->mask & nr) > 0) && (of->long_opts[lindex] == number)) {
454 for (nr = 1 << COAP_OPT_FILTER_LONG; lindex < COAP_OPT_FILTER_SHORT;
455 nr <<= 1, lindex++) {
457 if (((of->mask & nr) > 0) && (of->short_opts[lindex] == (number & 0xff))) {
474 lindex = coap_fls(~of->mask & mask);
475 if (!lindex) {
480 of->long_opts[lindex - 1] = number;
482 of->short_opts[lindex - COAP_OPT_FILTER_LONG - 1] = (uint8_t)number;
485 of->mask |= 1 << (lindex - 1);