Lines Matching refs:sync_cnt
68 ha->sync_cnt = 0;
217 false, true, ha->sync_cnt, false);
222 ha->sync_cnt++;
240 ha->sync_cnt--;
253 if (ha->sync_cnt == ha->refcount) {
277 if (!ha->sync_cnt) {
295 if (ha->sync_cnt)
325 if (!ha->sync_cnt || ha->refcount != 1)
332 ha->sync_cnt--;
338 if (ha->sync_cnt)
345 ha->sync_cnt++;
382 if ((ha->sync_cnt << 1) <= ha->refcount)
386 ref_cnt = ha->refcount - ha->sync_cnt;
391 ha->sync_cnt = ref_cnt;
398 if ((ha->sync_cnt << 1) >= ha->refcount)
401 ref_cnt = ha->refcount - ha->sync_cnt;
407 ha->sync_cnt = ref_cnt;
425 * is NULL then this function can be used to just reset the sync_cnt for the
436 if (!ha->sync_cnt)
440 if (unsync && unsync(dev, ha->addr, ha->sync_cnt))
443 ha->refcount -= ha->sync_cnt - 1;
444 ha->sync_cnt = 0;
460 * can be used to just reset the sync_cnt for the addresses in the list.
470 if (!ha->sync_cnt)
477 ha->sync_cnt--;