Lines Matching refs:num_xfer

1862     int num_xfer = 0;  in sg_write_xfer()  local
1872 num_xfer = (int)(new_interface ? hp->dxfer_len : hp->flags); in sg_write_xfer()
1873 if (schp->bufflen < num_xfer) in sg_write_xfer()
1874 num_xfer = schp->bufflen; in sg_write_xfer()
1876 if ((num_xfer <= 0) || in sg_write_xfer()
1882 num_xfer, iovec_count, schp->k_use_sg)); in sg_write_xfer()
1898 usglen = (num_xfer > usglen) ? usglen : num_xfer; in sg_write_xfer()
1901 num_xfer -= usglen; in sg_write_xfer()
1902 if (num_xfer <= 0) in sg_write_xfer()
1922 if (usglen >= num_xfer) { in sg_write_xfer()
1923 if (ok) __copy_from_user(p, up, num_xfer); in sg_write_xfer()
1932 if (ksglen >= num_xfer) { in sg_write_xfer()
1933 if (ok) __copy_from_user(p, up, num_xfer); in sg_write_xfer()
1952 int num_xfer = (int)hp->dxfer_len; in sg_u_iovec() local
1962 count = num_xfer; in sg_u_iovec()
2017 int num_xfer = 0; in sg_read_xfer() local
2027 num_xfer = hp->dxfer_len; in sg_read_xfer()
2028 if (schp->bufflen < num_xfer) in sg_read_xfer()
2029 num_xfer = schp->bufflen; in sg_read_xfer()
2031 if ((num_xfer <= 0) || in sg_read_xfer()
2037 num_xfer, iovec_count, schp->k_use_sg)); in sg_read_xfer()
2053 usglen = (num_xfer > usglen) ? usglen : num_xfer; in sg_read_xfer()
2056 num_xfer -= usglen; in sg_read_xfer()
2057 if (num_xfer <= 0) in sg_read_xfer()
2077 if (usglen >= num_xfer) { in sg_read_xfer()
2078 if (ok) __copy_to_user(up, p, num_xfer); in sg_read_xfer()
2087 if (ksglen >= num_xfer) { in sg_read_xfer()
2088 if (ok) __copy_to_user(up, p, num_xfer); in sg_read_xfer()