Lines Matching refs:hm

88 	struct hpi_message hm;  in asihpi_hpi_release()  local
93 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in asihpi_hpi_release()
95 hpi_send_recv_ex(&hm, &hr, file); in asihpi_hpi_release()
104 union hpi_message_buffer_v1 *hm; in asihpi_hpi_ioctl() local
113 hm = kmalloc(sizeof(*hm), GFP_KERNEL); in asihpi_hpi_ioctl()
115 if (!hm || !hr) { in asihpi_hpi_ioctl()
130 if (get_user(hm->h.size, (u16 __user *)puhm)) { in asihpi_hpi_ioctl()
134 if (hm->h.size > sizeof(*hm)) in asihpi_hpi_ioctl()
135 hm->h.size = sizeof(*hm); in asihpi_hpi_ioctl()
139 uncopied_bytes = copy_from_user(hm, puhm, hm->h.size); in asihpi_hpi_ioctl()
159 switch (hm->h.function) { in asihpi_hpi_ioctl()
165 hr->h.function = hm->h.function; in asihpi_hpi_ioctl()
175 if (hm->h.object == HPI_OBJ_SUBSYSTEM) { in asihpi_hpi_ioctl()
176 hpi_send_recv_f(&hm->m0, &hr->r0, file); in asihpi_hpi_ioctl()
184 if (hm->h.adapter_index < ARRAY_SIZE(adapters)) in asihpi_hpi_ioctl()
185 pa = &adapters[hm->h.adapter_index]; in asihpi_hpi_ioctl()
188 hpi_init_response(&hr->r0, hm->h.object, in asihpi_hpi_ioctl()
189 hm->h.function, HPI_ERROR_BAD_ADAPTER_NUMBER); in asihpi_hpi_ioctl()
206 switch (hm->h.function) { in asihpi_hpi_ioctl()
210 ptr = (u16 __user *)hm->m0.u.d.u.data.pb_data; in asihpi_hpi_ioctl()
211 size = hm->m0.u.d.u.data.data_size; in asihpi_hpi_ioctl()
221 hm->h.adapter_index, in asihpi_hpi_ioctl()
242 hm->m0.u.d.u.data.pb_data = pa->p_buffer; in asihpi_hpi_ioctl()
243 if (hm->h.function == HPI_ISTREAM_READ) in asihpi_hpi_ioctl()
266 hpi_send_recv_f(&hm->m0, &hr->r0, file); in asihpi_hpi_ioctl()
305 kfree(hm); in asihpi_hpi_ioctl()
344 struct hpi_message hm; in asihpi_adapter_probe() local
364 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in asihpi_adapter_probe()
369 hm.adapter_index = HPI_ADAPTER_INDEX_INVALID; in asihpi_adapter_probe()
392 hm.u.s.resource.bus_type = HPI_BUS_PCI; in asihpi_adapter_probe()
393 hm.u.s.resource.r.pci = &pci; in asihpi_adapter_probe()
396 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
414 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_probe()
416 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
417 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
425 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_probe()
427 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
428 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
439 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_probe()
441 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
442 hm.u.ax.property_set.property = HPI_ADAPTER_PROPERTY_SUPPORTS_IRQ; in asihpi_adapter_probe()
443 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
468 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_probe()
470 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
471 hm.u.ax.property_set.property = HPI_ADAPTER_PROPERTY_IRQ_RATE; in asihpi_adapter_probe()
472 hm.u.ax.property_set.parameter1 = 0; in asihpi_adapter_probe()
473 hm.u.ax.property_set.parameter2 = 0; in asihpi_adapter_probe()
474 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
522 struct hpi_message hm; in asihpi_adapter_remove() local
531 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_remove()
533 hm.adapter_index = pa->adapter->index; in asihpi_adapter_remove()
534 hm.u.ax.property_set.property = HPI_ADAPTER_PROPERTY_IRQ_RATE; in asihpi_adapter_remove()
535 hm.u.ax.property_set.parameter1 = 0; in asihpi_adapter_remove()
536 hm.u.ax.property_set.parameter2 = 0; in asihpi_adapter_remove()
537 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_remove()
539 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_remove()
541 hm.adapter_index = pa->adapter->index; in asihpi_adapter_remove()
542 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_remove()
565 struct hpi_message hm; in asihpi_init() local
572 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in asihpi_init()
574 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_init()
579 struct hpi_message hm; in asihpi_exit() local
582 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in asihpi_exit()
584 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_exit()