Lines Matching defs:req

752 	ds_init_req_t	*req;
766 req = (ds_init_req_t *)(buf + DS_HDR_SZ);
769 PORTID(port), req->major_vers, req->minor_vers);
772 req->major_vers, &new_major, &new_minor);
788 ack->minor_vers = MIN(new_minor, req->minor_vers);
791 PORTID(port), MIN(new_minor, req->minor_vers));
814 ds_set_port_ready(port, req->major_vers, ack->minor_vers);
893 DS_DBG_PRCL(CE_NOTE, "ds@%lx: <init_nack: req=v%d.%d, nack=v%d.x"
968 ds_reg_req_t *req;
989 req = (ds_reg_req_t *)(buf + DS_HDR_SZ);
992 DS_EOL, PORTID(port), req->svc_id, req->major_vers, req->minor_vers,
993 (u_longlong_t)req->svc_handle);
996 svc = ds_find_svc_by_id_port(req->svc_id,
997 DS_HDL_ISCLIENT(req->svc_handle) == 0, port);
1011 nack->svc_handle = req->svc_handle;
1016 PORTID(port), req->svc_id);
1025 PORTID(port), req->svc_id, (u_longlong_t)svc->hdl);
1028 * A client sends out a reg req in order to force service providers to
1029 * initiate a reg req from their end (limitation in the protocol). We
1031 * state. If the service provider has already sent out a reg req (the
1034 * req. For any other state, we force an unregister before initiating
1035 * a reg req.
1038 if (DS_HDL_ISCLIENT(req->svc_handle)) {
1045 req->svc_id, svc->state);
1051 "client" DS_EOL, PORTID(port), req->svc_id);
1057 PORTID(port), req->svc_id, svc->state);
1073 req->major_vers, &new_major, &new_minor);
1082 "svc_portid: %d" DS_EOL, PORTID(port), req->svc_id,
1092 * Someone probably dropped an unreg req
1109 svc->svc_hdl = req->svc_handle;
1120 ack->svc_handle = req->svc_handle;
1121 ack->minor_vers = MIN(new_minor, req->minor_vers);
1126 version.major = req->major_vers;
1135 MIN(new_minor, req->minor_vers));
1147 nack->svc_handle = req->svc_handle;
1420 ds_unreg_req_t *req;
1436 req = (ds_unreg_req_t *)(buf + DS_HDR_SZ);
1441 if (DS_HDL_ISCLIENT(req->svc_handle) ||
1442 ((svc = ds_find_clnt_svc_by_hdl_port(req->svc_handle, port))
1443 == NULL && ((svc = ds_get_svc(req->svc_handle)) == NULL ||
1452 DS_EOL, PORTID(port), (u_longlong_t)req->svc_handle);
1453 ds_send_unreg_nack(port, req->svc_handle);
1458 PORTID(port), svc->cap.svc_id, (u_longlong_t)req->svc_handle);
1463 PORTID(port), svc->cap.svc_id, (u_longlong_t)req->svc_handle);
1477 ack->svc_handle = req->svc_handle;
1670 DS_DBG_PRCL(CE_NOTE, "ds@%lx: init_req>: req=v%d.%d" DS_EOL,
1704 ds_reg_req_t *req;
1748 req = (ds_reg_req_t *)(msg + DS_HDR_SZ);
1749 req->svc_handle = svc->hdl;
1751 req->major_vers = ver->major;
1752 req->minor_vers = ver->minor;
1755 (void) memcpy(req->svc_id, svc->cap.svc_id, idlen + 1);
1782 ds_unreg_req_t *req;
1822 req = (ds_unreg_req_t *)(msg + DS_HDR_SZ);
1824 req->svc_handle = svc->svc_hdl;
1826 req->svc_handle = svc->hdl;
2149 * Never send a client reg req to the SP.
3120 * not a client service and has a reg req pending (usually from OBP
3121 * in boot state not acking/nacking reg req's), it's OK to ignore that,
3122 * since there are never multiple service clients. Also reg req pending