Lines Matching refs:im

708 static void mld_add_delrec(struct inet6_dev *idev, struct ifmcaddr6 *im)
722 spin_lock_bh(&im->mca_lock);
724 pmc->idev = im->idev;
726 pmc->mca_addr = im->mca_addr;
728 pmc->mca_sfmode = im->mca_sfmode;
732 pmc->mca_tomb = im->mca_tomb;
733 pmc->mca_sources = im->mca_sources;
734 im->mca_tomb = im->mca_sources = NULL;
738 spin_unlock_bh(&im->mca_lock);
2589 struct ifmcaddr6 *im = NULL;
2600 im = idev->mc_list;
2601 if (im) {
2607 return im;
2610 static struct ifmcaddr6 *igmp6_mc_get_next(struct seq_file *seq, struct ifmcaddr6 *im)
2614 im = im->next;
2615 while (!im) {
2628 im = state->idev->mc_list;
2630 return im;
2635 struct ifmcaddr6 *im = igmp6_mc_get_first(seq);
2636 if (im)
2637 while (pos && (im = igmp6_mc_get_next(seq, im)) != NULL)
2639 return pos ? NULL : im;
2651 struct ifmcaddr6 *im = igmp6_mc_get_next(seq, v);
2654 return im;
2672 struct ifmcaddr6 *im = (struct ifmcaddr6 *)v;
2678 &im->mca_addr,
2679 im->mca_users, im->mca_flags,
2680 (im->mca_flags&MAF_TIMER_RUNNING) ?
2681 jiffies_to_clock_t(im->mca_timer.expires-jiffies) : 0);
2710 struct ifmcaddr6 *im;
2718 struct ifmcaddr6 *im = NULL;
2723 state->im = NULL;
2730 im = idev->mc_list;
2731 if (likely(im != NULL)) {
2732 spin_lock_bh(&im->mca_lock);
2733 psf = im->mca_sources;
2735 state->im = im;
2739 spin_unlock_bh(&im->mca_lock);
2752 spin_unlock_bh(&state->im->mca_lock);
2753 state->im = state->im->next;
2754 while (!state->im) {
2767 state->im = state->idev->mc_list;
2769 if (!state->im)
2771 spin_lock_bh(&state->im->mca_lock);
2772 psf = state->im->mca_sources;
2809 if (likely(state->im != NULL)) {
2810 spin_unlock_bh(&state->im->mca_lock);
2811 state->im = NULL;
2836 &state->im->mca_addr,