Lines Matching full:request

176 	struct gb_svc_pwrmon_sample_get_request request;  in gb_svc_pwrmon_sample_get()  local
180 request.rail_id = rail_id; in gb_svc_pwrmon_sample_get()
181 request.measurement_type = measurement_type; in gb_svc_pwrmon_sample_get()
184 &request, sizeof(request), in gb_svc_pwrmon_sample_get()
213 struct gb_svc_pwrmon_intf_sample_get_request request; in gb_svc_pwrmon_intf_sample_get() local
217 request.intf_id = intf_id; in gb_svc_pwrmon_intf_sample_get()
218 request.measurement_type = measurement_type; in gb_svc_pwrmon_intf_sample_get()
222 &request, sizeof(request), in gb_svc_pwrmon_intf_sample_get()
260 struct gb_svc_intf_device_id_request request; in gb_svc_intf_device_id() local
262 request.intf_id = intf_id; in gb_svc_intf_device_id()
263 request.device_id = device_id; in gb_svc_intf_device_id()
266 &request, sizeof(request), NULL, 0); in gb_svc_intf_device_id()
271 struct gb_svc_intf_eject_request request; in gb_svc_intf_eject() local
274 request.intf_id = intf_id; in gb_svc_intf_eject()
281 GB_SVC_TYPE_INTF_EJECT, &request, in gb_svc_intf_eject()
282 sizeof(request), NULL, 0, in gb_svc_intf_eject()
294 struct gb_svc_intf_vsys_request request; in gb_svc_intf_vsys_set() local
298 request.intf_id = intf_id; in gb_svc_intf_vsys_set()
306 &request, sizeof(request), in gb_svc_intf_vsys_set()
317 struct gb_svc_intf_refclk_request request; in gb_svc_intf_refclk_set() local
321 request.intf_id = intf_id; in gb_svc_intf_refclk_set()
329 &request, sizeof(request), in gb_svc_intf_refclk_set()
340 struct gb_svc_intf_unipro_request request; in gb_svc_intf_unipro_set() local
344 request.intf_id = intf_id; in gb_svc_intf_unipro_set()
352 &request, sizeof(request), in gb_svc_intf_unipro_set()
363 struct gb_svc_intf_activate_request request; in gb_svc_intf_activate() local
367 request.intf_id = intf_id; in gb_svc_intf_activate()
371 &request, sizeof(request), in gb_svc_intf_activate()
389 struct gb_svc_intf_resume_request request; in gb_svc_intf_resume() local
393 request.intf_id = intf_id; in gb_svc_intf_resume()
397 &request, sizeof(request), in gb_svc_intf_resume()
418 struct gb_svc_dme_peer_get_request request; in gb_svc_dme_peer_get() local
423 request.intf_id = intf_id; in gb_svc_dme_peer_get()
424 request.attr = cpu_to_le16(attr); in gb_svc_dme_peer_get()
425 request.selector = cpu_to_le16(selector); in gb_svc_dme_peer_get()
428 &request, sizeof(request), in gb_svc_dme_peer_get()
452 struct gb_svc_dme_peer_set_request request; in gb_svc_dme_peer_set() local
457 request.intf_id = intf_id; in gb_svc_dme_peer_set()
458 request.attr = cpu_to_le16(attr); in gb_svc_dme_peer_set()
459 request.selector = cpu_to_le16(selector); in gb_svc_dme_peer_set()
460 request.value = cpu_to_le32(value); in gb_svc_dme_peer_set()
463 &request, sizeof(request), in gb_svc_dme_peer_set()
486 struct gb_svc_conn_create_request request; in gb_svc_connection_create() local
488 request.intf1_id = intf1_id; in gb_svc_connection_create()
489 request.cport1_id = cpu_to_le16(cport1_id); in gb_svc_connection_create()
490 request.intf2_id = intf2_id; in gb_svc_connection_create()
491 request.cport2_id = cpu_to_le16(cport2_id); in gb_svc_connection_create()
492 request.tc = 0; /* TC0 */ in gb_svc_connection_create()
493 request.flags = cport_flags; in gb_svc_connection_create()
496 &request, sizeof(request), NULL, 0); in gb_svc_connection_create()
502 struct gb_svc_conn_destroy_request request; in gb_svc_connection_destroy() local
506 request.intf1_id = intf1_id; in gb_svc_connection_destroy()
507 request.cport1_id = cpu_to_le16(cport1_id); in gb_svc_connection_destroy()
508 request.intf2_id = intf2_id; in gb_svc_connection_destroy()
509 request.cport2_id = cpu_to_le16(cport2_id); in gb_svc_connection_destroy()
512 &request, sizeof(request), NULL, 0); in gb_svc_connection_destroy()
523 struct gb_svc_route_create_request request; in gb_svc_route_create() local
525 request.intf1_id = intf1_id; in gb_svc_route_create()
526 request.dev1_id = dev1_id; in gb_svc_route_create()
527 request.intf2_id = intf2_id; in gb_svc_route_create()
528 request.dev2_id = dev2_id; in gb_svc_route_create()
531 &request, sizeof(request), NULL, 0); in gb_svc_route_create()
537 struct gb_svc_route_destroy_request request; in gb_svc_route_destroy() local
540 request.intf1_id = intf1_id; in gb_svc_route_destroy()
541 request.intf2_id = intf2_id; in gb_svc_route_destroy()
544 &request, sizeof(request), NULL, 0); in gb_svc_route_destroy()
559 struct gb_svc_intf_set_pwrm_request request; in gb_svc_intf_set_power_mode() local
564 memset(&request, 0, sizeof(request)); in gb_svc_intf_set_power_mode()
566 request.intf_id = intf_id; in gb_svc_intf_set_power_mode()
567 request.hs_series = hs_series; in gb_svc_intf_set_power_mode()
568 request.tx_mode = tx_mode; in gb_svc_intf_set_power_mode()
569 request.tx_gear = tx_gear; in gb_svc_intf_set_power_mode()
570 request.tx_nlanes = tx_nlanes; in gb_svc_intf_set_power_mode()
571 request.tx_amplitude = tx_amplitude; in gb_svc_intf_set_power_mode()
572 request.tx_hs_equalizer = tx_hs_equalizer; in gb_svc_intf_set_power_mode()
573 request.rx_mode = rx_mode; in gb_svc_intf_set_power_mode()
574 request.rx_gear = rx_gear; in gb_svc_intf_set_power_mode()
575 request.rx_nlanes = rx_nlanes; in gb_svc_intf_set_power_mode()
576 request.flags = flags; in gb_svc_intf_set_power_mode()
577 request.quirks = cpu_to_le32(quirks); in gb_svc_intf_set_power_mode()
579 request.local_l2timerdata = *local; in gb_svc_intf_set_power_mode()
581 request.remote_l2timerdata = *remote; in gb_svc_intf_set_power_mode()
584 &request, sizeof(request), in gb_svc_intf_set_power_mode()
601 struct gb_svc_intf_set_pwrm_request request; in gb_svc_intf_set_power_mode_hibernate() local
606 memset(&request, 0, sizeof(request)); in gb_svc_intf_set_power_mode_hibernate()
608 request.intf_id = intf_id; in gb_svc_intf_set_power_mode_hibernate()
609 request.hs_series = GB_SVC_UNIPRO_HS_SERIES_A; in gb_svc_intf_set_power_mode_hibernate()
610 request.tx_mode = GB_SVC_UNIPRO_HIBERNATE_MODE; in gb_svc_intf_set_power_mode_hibernate()
611 request.rx_mode = GB_SVC_UNIPRO_HIBERNATE_MODE; in gb_svc_intf_set_power_mode_hibernate()
614 &request, sizeof(request), in gb_svc_intf_set_power_mode_hibernate()
645 struct gb_svc_version_request *request; in gb_svc_version_request() local
648 if (op->request->payload_size < sizeof(*request)) { in gb_svc_version_request()
649 dev_err(&svc->dev, "short version request (%zu < %zu)\n", in gb_svc_version_request()
650 op->request->payload_size, in gb_svc_version_request()
651 sizeof(*request)); in gb_svc_version_request()
655 request = op->request->payload; in gb_svc_version_request()
657 if (request->major > GB_SVC_VERSION_MAJOR) { in gb_svc_version_request()
659 request->major, GB_SVC_VERSION_MAJOR); in gb_svc_version_request()
663 svc->protocol_major = request->major; in gb_svc_version_request()
664 svc->protocol_minor = request->minor; in gb_svc_version_request()
845 if (op->request->payload_size < sizeof(*hello_request)) { in gb_svc_hello()
846 dev_warn(&svc->dev, "short hello request (%zu < %zu)\n", in gb_svc_hello()
847 op->request->payload_size, in gb_svc_hello()
852 hello_request = op->request->payload; in gb_svc_hello()
870 * (which abuses the deferred request processing mechanism). in gb_svc_hello()
956 struct gb_svc_module_inserted_request *request; in gb_svc_process_module_inserted() local
966 /* The request message size has already been verified. */ in gb_svc_process_module_inserted()
967 request = operation->request->payload; in gb_svc_process_module_inserted()
968 module_id = request->primary_intf_id; in gb_svc_process_module_inserted()
969 num_interfaces = request->intf_count; in gb_svc_process_module_inserted()
970 flags = le16_to_cpu(request->flags); in gb_svc_process_module_inserted()
1004 struct gb_svc_module_removed_request *request; in gb_svc_process_module_removed() local
1010 /* The request message size has already been verified. */ in gb_svc_process_module_removed()
1011 request = operation->request->payload; in gb_svc_process_module_removed()
1012 module_id = request->primary_intf_id; in gb_svc_process_module_removed()
1032 struct gb_svc_intf_oops_request *request; in gb_svc_process_intf_oops() local
1039 /* The request message size has already been verified. */ in gb_svc_process_intf_oops()
1040 request = operation->request->payload; in gb_svc_process_intf_oops()
1041 intf_id = request->intf_id; in gb_svc_process_intf_oops()
1042 reason = request->reason; in gb_svc_process_intf_oops()
1063 struct gb_svc_intf_mailbox_event_request *request; in gb_svc_process_intf_mailbox_event() local
1071 /* The request message size has already been verified. */ in gb_svc_process_intf_mailbox_event()
1072 request = operation->request->payload; in gb_svc_process_intf_mailbox_event()
1073 intf_id = request->intf_id; in gb_svc_process_intf_mailbox_event()
1074 result_code = le16_to_cpu(request->result_code); in gb_svc_process_intf_mailbox_event()
1075 mailbox = le32_to_cpu(request->mailbox); in gb_svc_process_intf_mailbox_event()
1099 type = operation->request->header->type; in gb_svc_process_deferred_request()
1118 dev_err(&svc->dev, "bad deferred request type: 0x%02x\n", type); in gb_svc_process_deferred_request()
1147 struct gb_message *request = op->request; in gb_svc_intf_reset_recv() local
1150 if (request->payload_size < sizeof(*reset)) { in gb_svc_intf_reset_recv()
1151 dev_warn(&svc->dev, "short reset request received (%zu < %zu)\n", in gb_svc_intf_reset_recv()
1152 request->payload_size, sizeof(*reset)); in gb_svc_intf_reset_recv()
1155 reset = request->payload; in gb_svc_intf_reset_recv()
1165 struct gb_svc_module_inserted_request *request; in gb_svc_module_inserted_recv() local
1167 if (op->request->payload_size < sizeof(*request)) { in gb_svc_module_inserted_recv()
1168 dev_warn(&svc->dev, "short module-inserted request received (%zu < %zu)\n", in gb_svc_module_inserted_recv()
1169 op->request->payload_size, sizeof(*request)); in gb_svc_module_inserted_recv()
1173 request = op->request->payload; in gb_svc_module_inserted_recv()
1176 request->primary_intf_id); in gb_svc_module_inserted_recv()
1184 struct gb_svc_module_removed_request *request; in gb_svc_module_removed_recv() local
1186 if (op->request->payload_size < sizeof(*request)) { in gb_svc_module_removed_recv()
1187 dev_warn(&svc->dev, "short module-removed request received (%zu < %zu)\n", in gb_svc_module_removed_recv()
1188 op->request->payload_size, sizeof(*request)); in gb_svc_module_removed_recv()
1192 request = op->request->payload; in gb_svc_module_removed_recv()
1195 request->primary_intf_id); in gb_svc_module_removed_recv()
1203 struct gb_svc_intf_oops_request *request; in gb_svc_intf_oops_recv() local
1205 if (op->request->payload_size < sizeof(*request)) { in gb_svc_intf_oops_recv()
1206 dev_warn(&svc->dev, "short intf-oops request received (%zu < %zu)\n", in gb_svc_intf_oops_recv()
1207 op->request->payload_size, sizeof(*request)); in gb_svc_intf_oops_recv()
1217 struct gb_svc_intf_mailbox_event_request *request; in gb_svc_intf_mailbox_event_recv() local
1219 if (op->request->payload_size < sizeof(*request)) { in gb_svc_intf_mailbox_event_recv()
1220 dev_warn(&svc->dev, "short mailbox request received (%zu < %zu)\n", in gb_svc_intf_mailbox_event_recv()
1221 op->request->payload_size, sizeof(*request)); in gb_svc_intf_mailbox_event_recv()
1225 request = op->request->payload; in gb_svc_intf_mailbox_event_recv()
1227 dev_dbg(&svc->dev, "%s - id = %u\n", __func__, request->intf_id); in gb_svc_intf_mailbox_event_recv()
1244 * - Any other request, but the earlier two. in gb_svc_request_handler()
1265 dev_warn(&svc->dev, "unexpected request 0x%02x received (state %u)\n", in gb_svc_request_handler()
1292 dev_warn(&svc->dev, "unsupported request 0x%02x\n", type); in gb_svc_request_handler()
1363 * is added from the connection request handler when enough in gb_svc_add()
1390 * The SVC device may have been registered from the request handler. in gb_svc_del()