• Home
  • Raw
  • Download

Lines Matching refs:hm

82 	struct hpi_message hm;  in asihpi_hpi_release()  local
87 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in asihpi_hpi_release()
89 hpi_send_recv_ex(&hm, &hr, file); in asihpi_hpi_release()
98 union hpi_message_buffer_v1 *hm; in asihpi_hpi_ioctl() local
108 hm = kmalloc(sizeof(*hm), GFP_KERNEL); in asihpi_hpi_ioctl()
110 if (!hm || !hr) { in asihpi_hpi_ioctl()
129 if (msg_size > sizeof(*hm)) in asihpi_hpi_ioctl()
130 msg_size = sizeof(*hm); in asihpi_hpi_ioctl()
134 uncopied_bytes = copy_from_user(hm, puhm, msg_size); in asihpi_hpi_ioctl()
142 hm->h.size = msg_size; in asihpi_hpi_ioctl()
157 switch (hm->h.function) { in asihpi_hpi_ioctl()
163 hr->h.function = hm->h.function; in asihpi_hpi_ioctl()
173 if (hm->h.object == HPI_OBJ_SUBSYSTEM) { in asihpi_hpi_ioctl()
174 hpi_send_recv_f(&hm->m0, &hr->r0, file); in asihpi_hpi_ioctl()
182 if (hm->h.adapter_index < ARRAY_SIZE(adapters)) in asihpi_hpi_ioctl()
183 pa = &adapters[array_index_nospec(hm->h.adapter_index, in asihpi_hpi_ioctl()
187 hpi_init_response(&hr->r0, hm->h.object, in asihpi_hpi_ioctl()
188 hm->h.function, HPI_ERROR_BAD_ADAPTER_NUMBER); in asihpi_hpi_ioctl()
205 switch (hm->h.function) { in asihpi_hpi_ioctl()
209 ptr = (u16 __user *)hm->m0.u.d.u.data.pb_data; in asihpi_hpi_ioctl()
210 size = hm->m0.u.d.u.data.data_size; in asihpi_hpi_ioctl()
220 hm->h.adapter_index, in asihpi_hpi_ioctl()
241 hm->m0.u.d.u.data.pb_data = pa->p_buffer; in asihpi_hpi_ioctl()
242 if (hm->h.function == HPI_ISTREAM_READ) in asihpi_hpi_ioctl()
265 hpi_send_recv_f(&hm->m0, &hr->r0, file); in asihpi_hpi_ioctl()
304 kfree(hm); in asihpi_hpi_ioctl()
343 struct hpi_message hm; in asihpi_adapter_probe() local
363 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in asihpi_adapter_probe()
368 hm.adapter_index = HPI_ADAPTER_INDEX_INVALID; in asihpi_adapter_probe()
391 hm.u.s.resource.bus_type = HPI_BUS_PCI; in asihpi_adapter_probe()
392 hm.u.s.resource.r.pci = &pci; in asihpi_adapter_probe()
395 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
413 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_probe()
415 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
416 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
424 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_probe()
426 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
427 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
438 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_probe()
440 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
441 hm.u.ax.property_set.property = HPI_ADAPTER_PROPERTY_SUPPORTS_IRQ; in asihpi_adapter_probe()
442 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
467 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_probe()
469 hm.adapter_index = adapter.adapter->index; in asihpi_adapter_probe()
470 hm.u.ax.property_set.property = HPI_ADAPTER_PROPERTY_IRQ_RATE; in asihpi_adapter_probe()
471 hm.u.ax.property_set.parameter1 = 0; in asihpi_adapter_probe()
472 hm.u.ax.property_set.parameter2 = 0; in asihpi_adapter_probe()
473 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_probe()
521 struct hpi_message hm; in asihpi_adapter_remove() local
530 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_remove()
532 hm.adapter_index = pa->adapter->index; in asihpi_adapter_remove()
533 hm.u.ax.property_set.property = HPI_ADAPTER_PROPERTY_IRQ_RATE; in asihpi_adapter_remove()
534 hm.u.ax.property_set.parameter1 = 0; in asihpi_adapter_remove()
535 hm.u.ax.property_set.parameter2 = 0; in asihpi_adapter_remove()
536 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_remove()
538 hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER, in asihpi_adapter_remove()
540 hm.adapter_index = pa->adapter->index; in asihpi_adapter_remove()
541 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_adapter_remove()
564 struct hpi_message hm; in asihpi_init() local
571 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in asihpi_init()
573 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_init()
578 struct hpi_message hm; in asihpi_exit() local
581 hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, in asihpi_exit()
583 hpi_send_recv_ex(&hm, &hr, HOWNER_KERNEL); in asihpi_exit()