Lines Matching refs:ncf
603 struct ncsi_channel_vlan_filter *ncf; in clear_one_vid() local
609 ncf = &nc->vlan_filter; in clear_one_vid()
610 bitmap = &ncf->bitmap; in clear_one_vid()
613 index = find_first_bit(bitmap, ncf->n_vids); in clear_one_vid()
614 if (index >= ncf->n_vids) { in clear_one_vid()
618 vid = ncf->vids[index]; in clear_one_vid()
621 ncf->vids[index] = 0; in clear_one_vid()
638 struct ncsi_channel_vlan_filter *ncf; in set_one_vid() local
648 ncf = &nc->vlan_filter; in set_one_vid()
649 bitmap = &ncf->bitmap; in set_one_vid()
656 for (i = 0; i < ncf->n_vids; i++) in set_one_vid()
657 if (ncf->vids[i] == vid) { in set_one_vid()
672 index = find_first_zero_bit(bitmap, ncf->n_vids); in set_one_vid()
673 if (index < 0 || index >= ncf->n_vids) { in set_one_vid()
681 ncf->vids[index] = vid; in set_one_vid()