Lines Matching refs:pchk
840 struct cuse_data_chunk *pchk, bool isread)
846 offset = pchk->peer_ptr - CUSE_BUF_MIN_PTR;
848 if (pchk->length > CUSE_BUFFER_MAX)
854 if ((offset + pchk->length) > CUSE_BUFFER_MAX)
870 (void *)pchk->local_ptr,
872 pchk->length);
876 (void *)pchk->local_ptr,
877 pchk->length);
947 struct cuse_data_chunk *pchk, bool isread)
965 curthread->td_proc, pchk->local_ptr,
966 p_proc, pchk->peer_ptr,
967 pchk->length);
970 p_proc, pchk->peer_ptr,
971 curthread->td_proc, pchk->local_ptr,
972 pchk->length);
988 struct cuse_data_chunk *pchk, bool isread)
998 offset = pchk->peer_ptr - pccmd->client->write_base;
1001 pchk->length <= (unsigned long)pccmd->client->write_length &&
1002 offset + pchk->length <= (uintptr_t)pccmd->client->write_length) {
1005 (void *)pchk->local_ptr, pchk->length);
1009 offset = pchk->peer_ptr - pccmd->client->read_base;
1012 pchk->length <= (unsigned long)pccmd->client->read_length &&
1013 offset + pchk->length <= (uintptr_t)pccmd->client->read_length) {
1015 error = copyin((void *)pchk->local_ptr,
1016 pccmd->client->read_buffer + offset, pchk->length);
1022 error = cuse_server_data_copy_locked(pcs, pccmd, pchk, isread);
1115 struct cuse_data_chunk *pchk;
1346 pchk = (struct cuse_data_chunk *)data;
1352 } else if (pchk->peer_ptr < CUSE_BUF_MIN_PTR) {
1354 } else if (pchk->length == 0) {
1356 } else if (pchk->peer_ptr < CUSE_BUF_MAX_PTR) {
1358 pchk, cmd == CUSE_IOCTL_READ_DATA);
1361 pcs, pccmd, pchk, cmd == CUSE_IOCTL_READ_DATA);