Lines Matching refs:rqst
1491 static void ssam_request_sync_complete(struct ssh_request *rqst, in ssam_request_sync_complete() argument
1495 struct ssh_rtl *rtl = ssh_request_rtl(rqst); in ssam_request_sync_complete()
1498 r = container_of(rqst, struct ssam_request_sync, base); in ssam_request_sync_complete()
1530 static void ssam_request_sync_release(struct ssh_request *rqst) in ssam_request_sync_release() argument
1532 complete_all(&container_of(rqst, struct ssam_request_sync, base)->comp); in ssam_request_sync_release()
1561 struct ssam_request_sync **rqst, in ssam_request_sync_alloc() argument
1566 *rqst = kzalloc(sizeof(**rqst) + msglen, flags); in ssam_request_sync_alloc()
1567 if (!*rqst) in ssam_request_sync_alloc()
1570 buffer->ptr = (u8 *)(*rqst + 1); in ssam_request_sync_alloc()
1592 void ssam_request_sync_free(struct ssam_request_sync *rqst) in ssam_request_sync_free() argument
1594 kfree(rqst); in ssam_request_sync_free()
1610 int ssam_request_sync_init(struct ssam_request_sync *rqst, in ssam_request_sync_init() argument
1615 status = ssh_request_init(&rqst->base, flags, &ssam_request_sync_ops); in ssam_request_sync_init()
1619 init_completion(&rqst->comp); in ssam_request_sync_init()
1620 rqst->resp = NULL; in ssam_request_sync_init()
1621 rqst->status = 0; in ssam_request_sync_init()
1646 struct ssam_request_sync *rqst) in ssam_request_sync_submit() argument
1665 ssh_request_put(&rqst->base); in ssam_request_sync_submit()
1669 status = ssh_rtl_submit(&ctrl->rtl, &rqst->base); in ssam_request_sync_submit()
1670 ssh_request_put(&rqst->base); in ssam_request_sync_submit()
1693 struct ssam_request_sync *rqst; in ssam_request_sync() local
1698 status = ssam_request_sync_alloc(spec->length, GFP_KERNEL, &rqst, &buf); in ssam_request_sync()
1702 status = ssam_request_sync_init(rqst, spec->flags); in ssam_request_sync()
1704 ssam_request_sync_free(rqst); in ssam_request_sync()
1708 ssam_request_sync_set_resp(rqst, rsp); in ssam_request_sync()
1712 ssam_request_sync_free(rqst); in ssam_request_sync()
1716 ssam_request_sync_set_data(rqst, buf.ptr, len); in ssam_request_sync()
1718 status = ssam_request_sync_submit(ctrl, rqst); in ssam_request_sync()
1720 status = ssam_request_sync_wait(rqst); in ssam_request_sync()
1722 ssam_request_sync_free(rqst); in ssam_request_sync()
1753 struct ssam_request_sync rqst; in ssam_request_sync_with_buffer() local
1757 status = ssam_request_sync_init(&rqst, spec->flags); in ssam_request_sync_with_buffer()
1761 ssam_request_sync_set_resp(&rqst, rsp); in ssam_request_sync_with_buffer()
1767 ssam_request_sync_set_data(&rqst, buf->ptr, len); in ssam_request_sync_with_buffer()
1769 status = ssam_request_sync_submit(ctrl, &rqst); in ssam_request_sync_with_buffer()
1771 status = ssam_request_sync_wait(&rqst); in ssam_request_sync_with_buffer()
1839 struct ssam_request rqst; in __ssam_ssh_event_request() local
1855 rqst.target_category = reg.target_category; in __ssam_ssh_event_request()
1856 rqst.target_id = reg.target_id; in __ssam_ssh_event_request()
1857 rqst.command_id = cid; in __ssam_ssh_event_request()
1858 rqst.instance_id = 0x00; in __ssam_ssh_event_request()
1859 rqst.flags = SSAM_REQUEST_HAS_RESPONSE; in __ssam_ssh_event_request()
1860 rqst.length = sizeof(params); in __ssam_ssh_event_request()
1861 rqst.payload = (u8 *)¶ms; in __ssam_ssh_event_request()
1867 status = ssam_retry(ssam_request_sync_onstack, ctrl, &rqst, &result, in __ssam_ssh_event_request()