Lines Matching defs:iovec
208 struct iovec *iovec;
473 int camdd_buf_sg_create(struct camdd_buf *buf, int iovec,
749 } else if (data->iovec != NULL) {
751 free(data->iovec[data->sg_count - 1].iov_base);
754 free(data->iovec);
755 data->iovec = NULL;
819 camdd_buf_sg_create(struct camdd_buf *buf, int iovec, uint32_t sector_size,
849 if (iovec == 0) {
860 data->iovec = calloc(data->sg_count, sizeof(struct iovec));
861 if (data->iovec == NULL) {
863 __func__, sizeof(struct iovec) * data->sg_count);
877 if (iovec == 0) {
883 data->iovec[i].iov_base = tmp_data->buf;
884 data->iovec[i].iov_len = tmp_data->fill_len -
894 if (iovec == 0) {
899 data->iovec[i].iov_base = tmp_ind->start_ptr;
900 data->iovec[i].iov_len = tmp_ind->len;
908 if (iovec == 0) {
912 data->iovec[i].iov_base = extra_buf;
913 data->iovec[i].iov_len = extra_buf_len;
2222 retval = camdd_buf_sg_create(buf, /*iovec*/ 1,
2268 bcopy(data->iovec[i].iov_base,
2270 data->iovec[i].iov_len);
2271 cur_offset += data->iovec[i].iov_len;
2292 retval = pwritev(file_dev->fd, data->iovec,
2311 retval = writev(file_dev->fd, data->iovec,
2363 i, data->iovec[i].iov_base,
2364 data->iovec[i].iov_len);
2427 retval = camdd_buf_sg_create(buf, /*iovec*/ 0,dev->sector_size,