/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_lib-linux.c | 123 lnet_kiov_t *kiov = tx->tx_kiov; in ksocknal_lib_send_kiov() local 135 struct page *page = kiov->kiov_page; in ksocknal_lib_send_kiov() 136 int offset = kiov->kiov_offset; in ksocknal_lib_send_kiov() 137 int fragsize = kiov->kiov_len; in ksocknal_lib_send_kiov() 141 page, offset, kiov->kiov_len); in ksocknal_lib_send_kiov() 170 scratchiov[i].iov_base = kmap(kiov[i].kiov_page) + in ksocknal_lib_send_kiov() 171 kiov[i].kiov_offset; in ksocknal_lib_send_kiov() 172 nob += scratchiov[i].iov_len = kiov[i].kiov_len; in ksocknal_lib_send_kiov() 182 kunmap(kiov[i].kiov_page); in ksocknal_lib_send_kiov() 271 ksocknal_lib_kiov_vmap(lnet_kiov_t *kiov, int niov, in ksocknal_lib_kiov_vmap() argument [all …]
|
D | socklnd_cb.c | 150 lnet_kiov_t *kiov = tx->tx_kiov; in ksocknal_send_kiov() local 171 if (nob < (int)kiov->kiov_len) { in ksocknal_send_kiov() 172 kiov->kiov_offset += nob; in ksocknal_send_kiov() 173 kiov->kiov_len -= nob; in ksocknal_send_kiov() 177 nob -= (int)kiov->kiov_len; in ksocknal_send_kiov() 178 tx->tx_kiov = ++kiov; in ksocknal_send_kiov() 299 lnet_kiov_t *kiov = conn->ksnc_rx_kiov; in ksocknal_recv_kiov() local 326 if (nob < (int) kiov->kiov_len) { in ksocknal_recv_kiov() 327 kiov->kiov_offset += nob; in ksocknal_recv_kiov() 328 kiov->kiov_len -= nob; in ksocknal_recv_kiov() [all …]
|
D | socklnd.h | 231 lnet_kiov_t kiov[0]; /* paged payload */ member 239 #define KSOCK_NOOP_TX_SIZE ((int)offsetof(ksock_tx_t, tx_frags.paged.kiov[0])) 247 lnet_kiov_t kiov[LNET_MAX_IOV]; member 520 struct iovec *iov, lnet_kiov_t *kiov,
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | pers.c | 68 lnet_kiov_t *kiov = &desc->bd_iov[desc->bd_iov_count]; in ptlrpc_add_bulk_page() local 70 kiov->kiov_page = page; in ptlrpc_add_bulk_page() 71 kiov->kiov_offset = pageoffset; in ptlrpc_add_bulk_page() 72 kiov->kiov_len = len; in ptlrpc_add_bulk_page()
|
/drivers/staging/lustre/lnet/lnet/ |
D | lo.c | 50 struct iovec *iov, lnet_kiov_t *kiov, in lolnd_recv() argument 63 lnet_copy_iov2kiov(niov, kiov, offset, in lolnd_recv() 74 lnet_copy_kiov2kiov(niov, kiov, offset, in lolnd_recv()
|
D | lib-move.c | 280 lnet_kiov_nob(unsigned int niov, lnet_kiov_t *kiov) in lnet_kiov_nob() argument 285 nob += (kiov++)->kiov_len; in lnet_kiov_nob() 375 unsigned int nkiov, lnet_kiov_t *kiov, in lnet_copy_kiov2iov() argument 396 while (kiovoffset >= kiov->kiov_len) { in lnet_copy_kiov2iov() 397 kiovoffset -= kiov->kiov_len; in lnet_copy_kiov2iov() 398 kiov++; in lnet_copy_kiov2iov() 407 kiov->kiov_len - kiovoffset); in lnet_copy_kiov2iov() 411 addr = ((char *)kmap(kiov->kiov_page)) + in lnet_copy_kiov2iov() 412 kiov->kiov_offset + kiovoffset; in lnet_copy_kiov2iov() 425 if (kiov->kiov_len > kiovoffset + this_nob) { in lnet_copy_kiov2iov() [all …]
|
D | lib-md.c | 133 memcpy(lmd->md_iov.kiov, umd->start, in lnet_md_build() 134 niov * sizeof(lmd->md_iov.kiov[0])); in lnet_md_build() 138 if (lmd->md_iov.kiov[i].kiov_offset + in lnet_md_build() 139 lmd->md_iov.kiov[i].kiov_len > PAGE_CACHE_SIZE) in lnet_md_build() 142 total_length += lmd->md_iov.kiov[i].kiov_len; in lnet_md_build()
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_cb.c | 753 int nkiov, lnet_kiov_t *kiov, int offset, int nob) in kiblnd_setup_rd_kiov() argument 765 while (offset >= kiov->kiov_len) { in kiblnd_setup_rd_kiov() 766 offset -= kiov->kiov_len; in kiblnd_setup_rd_kiov() 768 kiov++; in kiblnd_setup_rd_kiov() 776 fragnob = min((int)(kiov->kiov_len - offset), nob); in kiblnd_setup_rd_kiov() 778 sg_set_page(sg, kiov->kiov_page, fragnob, in kiblnd_setup_rd_kiov() 779 kiov->kiov_offset + offset); in kiblnd_setup_rd_kiov() 783 kiov++; in kiblnd_setup_rd_kiov() 1524 lntmsg->msg_md->md_iov.kiov, in kiblnd_send() 1633 lnet_kiov_t *kiov = lntmsg->msg_kiov; in kiblnd_reply() local [all …]
|
D | o2iblnd.h | 1029 unsigned int niov, struct iovec *iov, lnet_kiov_t *kiov,
|
/drivers/staging/lustre/include/linux/lnet/ |
D | lib-lnet.h | 388 size = offsetof(lnet_libmd_t, md_iov.kiov[niov]); in lnet_md_alloc() 414 size = offsetof(lnet_libmd_t, md_iov.kiov[md->md_niov]); in lnet_md_free() 771 unsigned int nkiov, lnet_kiov_t *kiov, 773 void lnet_copy_iov2kiov(unsigned int nkiov, lnet_kiov_t *kiov,
|
D | lib-types.h | 275 lnet_kiov_t kiov[LNET_MAX_IOV]; member 349 struct iovec *iov, lnet_kiov_t *kiov,
|
/drivers/staging/lustre/lnet/selftest/ |
D | conrpc.c | 707 lstcon_next_id(int idx, int nkiov, lnet_kiov_t *kiov) in lstcon_next_id() argument 716 pid = (lnet_process_id_packed_t *)page_address(kiov[i].kiov_page); in lstcon_next_id() 723 int dist, int span, int nkiov, lnet_kiov_t *kiov) in lstcon_dstnodes_prep() argument 752 pid = lstcon_next_id((i - start), nkiov, kiov); in lstcon_dstnodes_prep() 766 pid = lstcon_next_id((i - start), nkiov, kiov); in lstcon_dstnodes_prep()
|