• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/scsi/

Lines Matching refs:cnt

935 	int           cnt   = 0,
945 if (cnt++ > 400) {
961 dev, frame_seq_number, cnt);
975 cnt += 20;
1015 cnt += 10;
1025 cnt--;
1029 if (cnt > 1) {
1625 int cnt;
1641 cnt = ntohl(STp->buffer->aux->filemark_cnt);
1644 (cnt - mt_count) >= 0 &&
1645 (cnt - mt_count) < OS_FM_TAB_MAX &&
1646 (cnt - mt_count) < STp->filemark_cnt &&
1647 STp->header_cache->dat_fm_tab.fm_tab_ent[cnt-1] == STp->buffer->aux->last_mark_ppos)
1649 last_mark_ppos = ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[cnt - mt_count]);
1651 if (STp->header_cache == NULL || (cnt - mt_count) < 0 || (cnt - mt_count) >= OS_FM_TAB_MAX)
1656 dev, cnt,
1657 ((cnt == -1 && ntohl(STp->buffer->aux->last_mark_ppos) == -1) ||
1658 (STp->header_cache->dat_fm_tab.fm_tab_ent[cnt-1] ==
1687 cnt = 0;
1688 while (cnt != mt_count) {
1696 cnt++;
1725 int cnt = 0;
1745 cnt++;
1759 if (cnt == mt_count)
1778 int cnt = 0,
1795 cnt = ntohl(STp->buffer->aux->filemark_cnt) - 1;
1798 (cnt + mt_count) < OS_FM_TAB_MAX &&
1799 (cnt + mt_count) < STp->filemark_cnt &&
1800 ((cnt == -1 && ntohl(STp->buffer->aux->last_mark_ppos) == -1) ||
1801 (STp->header_cache->dat_fm_tab.fm_tab_ent[cnt] == STp->buffer->aux->last_mark_ppos)))
1803 next_mark_ppos = ntohl(STp->header_cache->dat_fm_tab.fm_tab_ent[cnt + mt_count]);
1805 if (STp->header_cache == NULL || (cnt + mt_count) >= OS_FM_TAB_MAX)
1810 dev, cnt,
1811 ((cnt == -1 && ntohl(STp->buffer->aux->last_mark_ppos) == -1) ||
1812 (STp->header_cache->dat_fm_tab.fm_tab_ent[cnt] ==
1835 if (ntohl(STp->buffer->aux->filemark_cnt) != cnt + mt_count) {
1837 dev, cnt+mt_count, next_mark_ppos,
1882 cnt++;
1883 while (cnt != mt_count) {
1889 return osst_space_over_filemarks_forward_slow(STp, aSRpnt, mt_op, mt_count - cnt);
1895 cnt++;
5186 int i, cnt, res, offset;
5196 cnt = st_bp->sg[i].length - offset < do_count ?
5198 res = copy_from_user(st_bp->sg[i].address + offset, ubp, cnt);
5201 do_count -= cnt;
5202 st_bp->buffer_bytes += cnt;
5203 ubp += cnt;
5219 int i, cnt, res, offset;
5229 cnt = st_bp->sg[i].length - offset < do_count ?
5231 res = copy_to_user(ubp, st_bp->sg[i].address + offset, cnt);
5234 do_count -= cnt;
5235 st_bp->buffer_bytes -= cnt;
5236 st_bp->read_pointer += cnt;
5237 ubp += cnt;
5251 int i, offset, do_count, cnt;
5262 cnt = st_bp->sg[i].length - offset < do_count ?
5264 memset(st_bp->sg[i].address + offset, 0, cnt);
5265 do_count -= cnt;
5279 int i, cnt, do_count = OS_DATA_SIZE;
5282 cnt = st_bp->sg[i].length < do_count ?
5284 memcpy(st_bp->sg[i].address, ptr, cnt);
5285 do_count -= cnt;
5286 ptr += cnt;
5300 int i, cnt, do_count = OS_DATA_SIZE;
5303 cnt = st_bp->sg[i].length < do_count ?
5305 memcpy(ptr, st_bp->sg[i].address, cnt);
5306 do_count -= cnt;
5307 ptr += cnt;