Lines Matching refs:u
258 } else if (phm->u.c.attribute == HPI_METER_PEAK) { in control_message()
482 ao.pci = *phm->u.s.resource.r.pci; in subsys_create_adapter()
492 phr->u.s.data = os_error_code; in subsys_create_adapter()
496 phr->u.s.adapter_type = ao.type; in subsys_create_adapter()
497 phr->u.s.adapter_index = ao.index; in subsys_create_adapter()
660 pao->type = hr.u.ax.info.adapter_type; in create_adapter_obj()
661 pao->index = hr.u.ax.info.adapter_index; in create_adapter_obj()
664 hr.u.ax.info.num_outstreams + in create_adapter_obj()
665 hr.u.ax.info.num_instreams; in create_adapter_obj()
669 hr.u.ax.info.adapter_type, hr.u.ax.info.adapter_index, in create_adapter_obj()
670 hr.u.ax.info.serial_number); in create_adapter_obj()
749 u32 command = phm->u.d.u.buffer.command; in outstream_host_buffer_allocate()
760 phm->u.d.u.buffer.buffer_size = in outstream_host_buffer_allocate()
761 roundup_pow_of_two(phm->u.d.u.buffer.buffer_size); in outstream_host_buffer_allocate()
764 phr->u.d.u.stream_info.data_available = in outstream_host_buffer_allocate()
766 phr->u.d.u.stream_info.buffer_size = in outstream_host_buffer_allocate()
767 phm->u.d.u.buffer.buffer_size; in outstream_host_buffer_allocate()
770 phm->u.d.u.buffer.buffer_size) { in outstream_host_buffer_allocate()
781 [phm->obj_index], phm->u.d.u.buffer.buffer_size, in outstream_host_buffer_allocate()
792 &phm->u.d.u.buffer.pci_address); in outstream_host_buffer_allocate()
797 phr->u.d.u.stream_info.auxiliary_data_available = in outstream_host_buffer_allocate()
798 phm->u.d.u.buffer.pci_address; in outstream_host_buffer_allocate()
816 if (phm->u.d.u.buffer.buffer_size & (phm->u.d.u.buffer. in outstream_host_buffer_allocate()
820 phm->u.d.u.buffer.buffer_size); in outstream_host_buffer_allocate()
825 phm->u.d.u.buffer.buffer_size; in outstream_host_buffer_allocate()
832 status->size_in_bytes = phm->u.d.u.buffer.buffer_size; in outstream_host_buffer_allocate()
867 phr->u.d.u.hostbuffer_info.p_buffer = p_bbm_data; in outstream_host_buffer_get_info()
868 phr->u.d.u.hostbuffer_info.p_status = status; in outstream_host_buffer_get_info()
880 u32 command = phm->u.d.u.buffer.command; in outstream_host_buffer_free()
926 if (space_available < phm->u.d.u.data.data_size) { in outstream_write()
933 if (phm->u.d.u.data.pb_data in outstream_write()
938 u8 *p_app_data = (u8 *)phm->u.d.u.data.pb_data; in outstream_write()
950 min(phm->u.d.u.data.data_size, in outstream_write()
959 phm->u.d.u.data.data_size - l_first_write); in outstream_write()
979 status->host_index += phm->u.d.u.data.data_size; in outstream_write()
998 phr->u.d.u.stream_info.state = (u16)status->stream_state; in outstream_get_info()
999 phr->u.d.u.stream_info.samples_transferred = in outstream_get_info()
1001 phr->u.d.u.stream_info.buffer_size = status->size_in_bytes; in outstream_get_info()
1002 phr->u.d.u.stream_info.data_available = in outstream_get_info()
1004 phr->u.d.u.stream_info.auxiliary_data_available = in outstream_get_info()
1035 u32 command = phm->u.d.u.buffer.command; in instream_host_buffer_allocate()
1044 phm->u.d.u.buffer.buffer_size = in instream_host_buffer_allocate()
1045 roundup_pow_of_two(phm->u.d.u.buffer.buffer_size); in instream_host_buffer_allocate()
1046 phr->u.d.u.stream_info.data_available = in instream_host_buffer_allocate()
1048 phr->u.d.u.stream_info.buffer_size = in instream_host_buffer_allocate()
1049 phm->u.d.u.buffer.buffer_size; in instream_host_buffer_allocate()
1052 phm->u.d.u.buffer.buffer_size) { in instream_host_buffer_allocate()
1063 obj_index], phm->u.d.u.buffer.buffer_size, in instream_host_buffer_allocate()
1074 &phm->u.d.u.buffer.pci_address); in instream_host_buffer_allocate()
1077 phr->u.d.u.stream_info.auxiliary_data_available = in instream_host_buffer_allocate()
1078 phm->u.d.u.buffer.pci_address; in instream_host_buffer_allocate()
1092 if (phm->u.d.u.buffer.buffer_size & (phm->u.d.u.buffer. in instream_host_buffer_allocate()
1096 phm->u.d.u.buffer.buffer_size); in instream_host_buffer_allocate()
1102 phm->u.d.u.buffer.buffer_size; in instream_host_buffer_allocate()
1109 status->size_in_bytes = phm->u.d.u.buffer.buffer_size; in instream_host_buffer_allocate()
1144 phr->u.d.u.hostbuffer_info.p_buffer = p_bbm_data; in instream_host_buffer_get_info()
1145 phr->u.d.u.hostbuffer_info.p_status = status; in instream_host_buffer_get_info()
1157 u32 command = phm->u.d.u.buffer.command; in instream_host_buffer_free()
1201 u8 *p_app_data = (u8 *)phm->u.d.u.data.pb_data; in instream_read()
1211 if (data_available < phm->u.d.u.data.data_size) { in instream_read()
1228 min(phm->u.d.u.data.data_size, in instream_read()
1238 phm->u.d.u.data.data_size - l_first_read); in instream_read()
1240 status->host_index += phm->u.d.u.data.data_size; in instream_read()
1258 phr->u.d.u.stream_info.state = (u16)status->stream_state; in instream_get_info()
1259 phr->u.d.u.stream_info.samples_transferred = in instream_get_info()
1261 phr->u.d.u.stream_info.buffer_size = status->size_in_bytes; in instream_get_info()
1262 phr->u.d.u.stream_info.data_available = in instream_get_info()
1264 phr->u.d.u.stream_info.auxiliary_data_available = in instream_get_info()
2027 memcpy((void *)&interface->u.b_data[0], in hpi6205_transfer_data()
2050 (void *)&interface->u.b_data[0], this_copy); in hpi6205_transfer_data()
2109 if (phm->size > sizeof(interface->u.message_buffer)) { in message_response_sequence()
2111 phr->specific_error = sizeof(interface->u.message_buffer); in message_response_sequence()
2115 sizeof(interface->u.message_buffer)); in message_response_sequence()
2127 memcpy(&interface->u.message_buffer, phm, phm->size); in message_response_sequence()
2147 if (interface->u.response_buffer.response.size <= phr->size) in message_response_sequence()
2148 memcpy(phr, &interface->u.response_buffer, in message_response_sequence()
2149 interface->u.response_buffer.response.size); in message_response_sequence()
2153 interface->u.response_buffer.response.size, in message_response_sequence()
2155 memcpy(phr, &interface->u.response_buffer, in message_response_sequence()
2159 interface->u.response_buffer.response.size; in message_response_sequence()
2218 err = hpi6205_transfer_data(pao, phm->u.d.u.data.pb_data, in hw_message()
2219 phm->u.d.u.data.data_size, H620_HIF_SEND_DATA); in hw_message()
2224 err = hpi6205_transfer_data(pao, phm->u.d.u.data.pb_data, in hw_message()
2225 phm->u.d.u.data.data_size, H620_HIF_GET_DATA); in hw_message()