Lines Matching refs:req_buf

223 	hw->hw_info.req_buf = kzalloc(mem_size, GFP_KERNEL);  in fjes_hw_setup()
224 if (!(hw->hw_info.req_buf)) { in fjes_hw_setup()
271 param.req_start = __pa(hw->hw_info.req_buf); in fjes_hw_setup()
293 kfree(hw->hw_info.req_buf); in fjes_hw_setup()
294 hw->hw_info.req_buf = NULL; in fjes_hw_setup()
310 kfree(hw->hw_info.req_buf); in fjes_hw_cleanup()
311 hw->hw_info.req_buf = NULL; in fjes_hw_cleanup()
443 union fjes_device_command_req *req_buf = hw->hw_info.req_buf; in fjes_hw_request_info() local
448 memset(req_buf, 0, hw->hw_info.req_buf_size); in fjes_hw_request_info()
451 req_buf->info.length = FJES_DEV_COMMAND_INFO_REQ_LEN; in fjes_hw_request_info()
501 union fjes_device_command_req *req_buf = hw->hw_info.req_buf; in fjes_hw_register_buff_addr() local
513 memset(req_buf, 0, hw->hw_info.req_buf_size); in fjes_hw_register_buff_addr()
516 req_buf->share_buffer.length = FJES_DEV_COMMAND_SHARE_BUFFER_REQ_LEN( in fjes_hw_register_buff_addr()
519 req_buf->share_buffer.epid = dest_epid; in fjes_hw_register_buff_addr()
522 req_buf->share_buffer.buffer[idx++] = buf_pair->tx.size; in fjes_hw_register_buff_addr()
527 req_buf->share_buffer.buffer[idx++] = in fjes_hw_register_buff_addr()
532 req_buf->share_buffer.buffer[idx++] = buf_pair->rx.size; in fjes_hw_register_buff_addr()
537 req_buf->share_buffer.buffer[idx++] = in fjes_hw_register_buff_addr()
545 trace_fjes_hw_register_buff_addr_req(req_buf, buf_pair); in fjes_hw_register_buff_addr()
609 union fjes_device_command_req *req_buf = hw->hw_info.req_buf; in fjes_hw_unregister_buff_addr() local
619 if (!req_buf || !res_buf || !share) in fjes_hw_unregister_buff_addr()
625 memset(req_buf, 0, hw->hw_info.req_buf_size); in fjes_hw_unregister_buff_addr()
628 req_buf->unshare_buffer.length = in fjes_hw_unregister_buff_addr()
630 req_buf->unshare_buffer.epid = dest_epid; in fjes_hw_unregister_buff_addr()
635 trace_fjes_hw_unregister_buff_addr_req(req_buf); in fjes_hw_unregister_buff_addr()
1205 union fjes_device_command_req *req_buf = hw->hw_info.req_buf; in fjes_hw_start_debug() local
1217 memset(req_buf, 0, hw->hw_info.req_buf_size); in fjes_hw_start_debug()
1220 req_buf->start_trace.length = in fjes_hw_start_debug()
1222 req_buf->start_trace.mode = hw->debug_mode; in fjes_hw_start_debug()
1223 req_buf->start_trace.buffer_len = hw->hw_info.trace_size; in fjes_hw_start_debug()
1227 req_buf->start_trace.buffer[i] = in fjes_hw_start_debug()
1235 trace_fjes_hw_start_debug_req(req_buf); in fjes_hw_start_debug()
1274 union fjes_device_command_req *req_buf = hw->hw_info.req_buf; in fjes_hw_stop_debug() local
1282 memset(req_buf, 0, hw->hw_info.req_buf_size); in fjes_hw_stop_debug()
1284 req_buf->stop_trace.length = FJES_DEV_COMMAND_STOP_DBG_REQ_LEN; in fjes_hw_stop_debug()