Lines Matching refs:valid
212 if (crq->valid & 0x80) { in crq_queue_next_crq()
336 if (buffer[i].valid && buffer[i].free && in ibmvmc_get_valid_hmc_buffer()
408 static void ibmvmc_count_hmc_buffers(u8 hmc_index, unsigned int *valid, in ibmvmc_count_hmc_buffers() argument
418 if (!valid || !free) in ibmvmc_count_hmc_buffers()
421 *valid = 0; *free = 0; in ibmvmc_count_hmc_buffers()
427 if (buffer[i].valid) { in ibmvmc_count_hmc_buffers()
428 *valid = *valid + 1; in ibmvmc_count_hmc_buffers()
493 session->valid = 0; in ibmvmc_return_hmc()
508 if (buffer[i].valid) { in ibmvmc_return_hmc()
575 crq_msg.valid = 0x80; in ibmvmc_send_open()
619 crq_msg.valid = 0x80; in ibmvmc_send_close()
657 crq_msg.valid = 0x80; in ibmvmc_send_capabilities()
700 crq_msg.valid = 0x80; in ibmvmc_send_add_buffer_resp()
741 crq_msg.valid = 0x80; in ibmvmc_send_rem_buffer_resp()
797 crq_msg.valid = 0x80; in ibmvmc_send_msg()
956 if (!session->valid) { in ibmvmc_read()
1152 unsigned int valid, free, index; in ibmvmc_setup_hmc() local
1168 valid = 0; in ibmvmc_setup_hmc()
1169 ibmvmc_count_hmc_buffers(index, &valid, &free); in ibmvmc_setup_hmc()
1170 if (valid == 0) { in ibmvmc_setup_hmc()
1191 session->valid = 1; in ibmvmc_setup_hmc()
1490 buffer->valid = 1; in ibmvmc_add_buffer()
1581 if (buffer->valid) in ibmvmc_rem_buffer()
1651 if (buffer->valid == 0 || buffer->owner == VMC_BUF_OWNER_ALPHA) { in ibmvmc_recv_msg()
1653 buffer->valid, buffer->owner); in ibmvmc_recv_msg()
2051 switch (crq->valid) { in ibmvmc_handle_crq()
2064 crq->valid); in ibmvmc_handle_crq()
2081 crq->valid = 0x00; in ibmvmc_task()
2094 crq->valid = 0x00; in ibmvmc_task()