Lines Matching refs:ibmvmc
46 static struct ibmvmc_struct ibmvmc; variable
330 if (hmc_index > ibmvmc.max_hmc_index) in ibmvmc_get_valid_hmc_buffer()
363 if (hmc_index > ibmvmc.max_hmc_index) { in ibmvmc_get_free_hmc_buffer()
415 if (hmc_index > ibmvmc.max_hmc_index) in ibmvmc_count_hmc_buffers()
452 for (i = 0; i <= ibmvmc.max_hmc_index; i++) { in ibmvmc_get_free_hmc()
510 ibmvmc.max_mtu, in ibmvmc_return_hmc()
671 ibmvmc.state = ibmvmc_state_capabilities; in ibmvmc_send_capabilities()
831 ibmvmc.state); in ibmvmc_open()
861 (unsigned long)file, ibmvmc.state); in ibmvmc_close()
872 if (ibmvmc.state == ibmvmc_state_failed) { in ibmvmc_close()
922 if (nbytes > ibmvmc.max_mtu) { in ibmvmc_read()
1075 if (count > ibmvmc.max_mtu) { in ibmvmc_write()
1154 if (ibmvmc.state == ibmvmc_state_failed) { in ibmvmc_setup_hmc()
1159 if (ibmvmc.state < ibmvmc_state_ready) { in ibmvmc_setup_hmc()
1167 for (index = 0; index <= ibmvmc.max_hmc_index; index++) { in ibmvmc_setup_hmc()
1279 query_struct.have_vmc = (ibmvmc.state > ibmvmc_state_initial); in ibmvmc_ioctl_query()
1280 query_struct.state = ibmvmc.state; in ibmvmc_ioctl_query()
1281 query_struct.vmc_drc_index = ibmvmc.vmc_drc_index; in ibmvmc_ioctl_query()
1336 ibmvmc.vmc_drc_index = vmc_drc_index; in ibmvmc_ioctl_requestvmc()
1442 if (hmc_index > ibmvmc.max_hmc_index) { in ibmvmc_add_buffer()
1450 if (buffer_id >= ibmvmc.max_buffer_pool_size) { in ibmvmc_add_buffer()
1471 ibmvmc.max_mtu, in ibmvmc_add_buffer()
1483 buffer->size = ibmvmc.max_mtu; in ibmvmc_add_buffer()
1558 if (hmc_index > ibmvmc.max_hmc_index) { in ibmvmc_rem_buffer()
1581 ibmvmc.max_mtu, in ibmvmc_rem_buffer()
1620 if (hmc_index > ibmvmc.max_hmc_index) { in ibmvmc_recv_msg()
1628 if (buffer_id >= ibmvmc.max_buffer_pool_size) { in ibmvmc_recv_msg()
1710 ibmvmc.state = ibmvmc_state_failed; in ibmvmc_process_capabilities()
1714 ibmvmc.max_mtu = min_t(u32, ibmvmc_max_mtu, be32_to_cpu(crq->max_mtu)); in ibmvmc_process_capabilities()
1715 ibmvmc.max_buffer_pool_size = min_t(u16, ibmvmc_max_buf_pool_size, in ibmvmc_process_capabilities()
1717 ibmvmc.max_hmc_index = min_t(u8, ibmvmc_max_hmcs, crq->max_hmc) - 1; in ibmvmc_process_capabilities()
1718 ibmvmc.state = ibmvmc_state_ready; in ibmvmc_process_capabilities()
1721 ibmvmc.max_mtu, ibmvmc.max_buffer_pool_size, in ibmvmc_process_capabilities()
1722 ibmvmc.max_hmc_index); in ibmvmc_process_capabilities()
1745 if (hmc_index > ibmvmc.max_hmc_index) in ibmvmc_validate_hmc_session()
1771 if (ibmvmc.state != ibmvmc_state_sched_reset) { in ibmvmc_reset()
1781 ibmvmc.state = ibmvmc_state_crqinit; in ibmvmc_reset()
1792 ibmvmc.state = ibmvmc_state_sched_reset; in ibmvmc_reset()
1816 (ibmvmc.state == ibmvmc_state_sched_reset) || in ibmvmc_reset_task()
1830 ibmvmc.state = ibmvmc_state_failed; in ibmvmc_reset_task()
1832 ibmvmc.state = ibmvmc_state_crqinit; in ibmvmc_reset_task()
1863 if (hmc_index > ibmvmc.max_hmc_index) { in ibmvmc_process_open_resp()
1878 if (buffer_id >= ibmvmc.max_buffer_pool_size) { in ibmvmc_process_open_resp()
1912 if (hmc_index > ibmvmc.max_hmc_index) { in ibmvmc_process_close_resp()
1943 if (ibmvmc.state == ibmvmc_state_capabilities) in ibmvmc_crq_process()
1947 ibmvmc.state); in ibmvmc_crq_process()
2010 ibmvmc.state); in ibmvmc_handle_crq_init()
2011 if (ibmvmc.state == ibmvmc_state_crqinit) { in ibmvmc_handle_crq_init()
2020 ibmvmc.state, ibmvmc.max_mtu); in ibmvmc_handle_crq_init()
2026 ibmvmc.state); in ibmvmc_handle_crq_init()
2027 if (ibmvmc.state == ibmvmc_state_crqinit) in ibmvmc_handle_crq_init()
2083 if (ibmvmc.state == ibmvmc_state_sched_reset) in ibmvmc_task()
2096 if (ibmvmc.state == ibmvmc_state_sched_reset) in ibmvmc_task()
2246 ibmvmc.state = ibmvmc_state_failed; in ibmvmc_probe()
2257 ibmvmc.state = ibmvmc_state_failed; in ibmvmc_probe()
2267 ibmvmc.state = ibmvmc_state_failed; in ibmvmc_probe()
2271 ibmvmc.state = ibmvmc_state_crqinit; in ibmvmc_probe()
2352 ibmvmc.state = ibmvmc_state_initial; in ibmvmc_module_init()
2379 ibmvmc.max_mtu = ibmvmc_max_mtu; in ibmvmc_module_init()
2380 ibmvmc.max_buffer_pool_size = ibmvmc_max_buf_pool_size; in ibmvmc_module_init()
2381 ibmvmc.max_hmc_index = ibmvmc_max_hmcs - 1; in ibmvmc_module_init()