Lines Matching refs:rqst
146 struct ssam_request_sync **rqst,
149 void ssam_request_sync_free(struct ssam_request_sync *rqst);
151 int ssam_request_sync_init(struct ssam_request_sync *rqst,
163 static inline void ssam_request_sync_set_data(struct ssam_request_sync *rqst, in ssam_request_sync_set_data() argument
166 ssh_request_set_data(&rqst->base, ptr, len); in ssam_request_sync_set_data()
178 static inline void ssam_request_sync_set_resp(struct ssam_request_sync *rqst, in ssam_request_sync_set_resp() argument
181 rqst->resp = resp; in ssam_request_sync_set_resp()
185 struct ssam_request_sync *rqst);
204 static inline int ssam_request_sync_wait(struct ssam_request_sync *rqst) in ssam_request_sync_wait() argument
206 wait_for_completion(&rqst->comp); in ssam_request_sync_wait()
207 return rqst->status; in ssam_request_sync_wait()
238 #define ssam_request_sync_onstack(ctrl, rqst, rsp, payload_len) \ argument
243 ssam_request_sync_with_buffer(ctrl, rqst, rsp, &__buf); \
359 struct ssam_request rqst; \
361 rqst.target_category = s.target_category; \
362 rqst.target_id = s.target_id; \
363 rqst.command_id = s.command_id; \
364 rqst.instance_id = s.instance_id; \
365 rqst.flags = s.flags; \
366 rqst.length = 0; \
367 rqst.payload = NULL; \
369 return ssam_request_sync_onstack(ctrl, &rqst, NULL, 0); \
399 struct ssam_request rqst; \
401 rqst.target_category = s.target_category; \
402 rqst.target_id = s.target_id; \
403 rqst.command_id = s.command_id; \
404 rqst.instance_id = s.instance_id; \
405 rqst.flags = s.flags; \
406 rqst.length = sizeof(atype); \
407 rqst.payload = (u8 *)arg; \
409 return ssam_request_sync_onstack(ctrl, &rqst, NULL, \
440 struct ssam_request rqst; \
444 rqst.target_category = s.target_category; \
445 rqst.target_id = s.target_id; \
446 rqst.command_id = s.command_id; \
447 rqst.instance_id = s.instance_id; \
448 rqst.flags = s.flags | SSAM_REQUEST_HAS_RESPONSE; \
449 rqst.length = 0; \
450 rqst.payload = NULL; \
456 status = ssam_request_sync_onstack(ctrl, &rqst, &rsp, 0); \
464 sizeof(rtype), rsp.length, rqst.target_category,\
465 rqst.command_id); \
499 struct ssam_request rqst; \
501 rqst.target_category = s.target_category; \
502 rqst.target_id = tid; \
503 rqst.command_id = s.command_id; \
504 rqst.instance_id = iid; \
505 rqst.flags = s.flags; \
506 rqst.length = 0; \
507 rqst.payload = NULL; \
509 return ssam_request_sync_onstack(ctrl, &rqst, NULL, 0); \
541 struct ssam_request rqst; \
543 rqst.target_category = s.target_category; \
544 rqst.target_id = tid; \
545 rqst.command_id = s.command_id; \
546 rqst.instance_id = iid; \
547 rqst.flags = s.flags; \
548 rqst.length = sizeof(atype); \
549 rqst.payload = (u8 *)arg; \
551 return ssam_request_sync_onstack(ctrl, &rqst, NULL, \
584 struct ssam_request rqst; \
588 rqst.target_category = s.target_category; \
589 rqst.target_id = tid; \
590 rqst.command_id = s.command_id; \
591 rqst.instance_id = iid; \
592 rqst.flags = s.flags | SSAM_REQUEST_HAS_RESPONSE; \
593 rqst.length = 0; \
594 rqst.payload = NULL; \
600 status = ssam_request_sync_onstack(ctrl, &rqst, &rsp, 0); \
608 sizeof(rtype), rsp.length, rqst.target_category,\
609 rqst.command_id); \