Home
last modified time | relevance | path

Searched refs:rqst (Results 1 – 15 of 15) sorted by relevance

/drivers/platform/surface/aggregator/
Dssh_request_layer.c86 static u16 ssh_request_get_rqid(struct ssh_request *rqst) in ssh_request_get_rqid() argument
88 return get_unaligned_le16(rqst->packet.data.ptr in ssh_request_get_rqid()
92 static u32 ssh_request_get_rqid_safe(struct ssh_request *rqst) in ssh_request_get_rqid_safe() argument
94 if (!rqst->packet.data.ptr) in ssh_request_get_rqid_safe()
97 return ssh_request_get_rqid(rqst); in ssh_request_get_rqid_safe()
100 static void ssh_rtl_queue_remove(struct ssh_request *rqst) in ssh_rtl_queue_remove() argument
102 struct ssh_rtl *rtl = ssh_request_rtl(rqst); in ssh_rtl_queue_remove()
106 if (!test_and_clear_bit(SSH_REQUEST_SF_QUEUED_BIT, &rqst->state)) { in ssh_rtl_queue_remove()
111 list_del(&rqst->node); in ssh_rtl_queue_remove()
114 ssh_request_put(rqst); in ssh_rtl_queue_remove()
[all …]
Dcontroller.c1492 static void ssam_request_sync_complete(struct ssh_request *rqst, in ssam_request_sync_complete() argument
1496 struct ssh_rtl *rtl = ssh_request_rtl(rqst); in ssam_request_sync_complete()
1499 r = container_of(rqst, struct ssam_request_sync, base); in ssam_request_sync_complete()
1531 static void ssam_request_sync_release(struct ssh_request *rqst) in ssam_request_sync_release() argument
1533 complete_all(&container_of(rqst, struct ssam_request_sync, base)->comp); in ssam_request_sync_release()
1562 struct ssam_request_sync **rqst, in ssam_request_sync_alloc() argument
1567 *rqst = kzalloc(sizeof(**rqst) + msglen, flags); in ssam_request_sync_alloc()
1568 if (!*rqst) in ssam_request_sync_alloc()
1571 buffer->ptr = (u8 *)(*rqst + 1); in ssam_request_sync_alloc()
1593 void ssam_request_sync_free(struct ssam_request_sync *rqst) in ssam_request_sync_free() argument
[all …]
Dssh_msgb.h173 const struct ssam_request *rqst) in msgb_push_cmd() argument
182 msgb_push_frame(msgb, type, sizeof(struct ssh_command) + rqst->length, seq); in msgb_push_cmd()
191 __msgb_push_u8(msgb, rqst->target_category); /* Target category. */ in msgb_push_cmd()
192 __msgb_push_u8(msgb, rqst->target_id); /* Target ID. */ in msgb_push_cmd()
194 __msgb_push_u8(msgb, rqst->instance_id); /* Instance ID. */ in msgb_push_cmd()
196 __msgb_push_u8(msgb, rqst->command_id); /* Command ID. */ in msgb_push_cmd()
199 msgb_push_buf(msgb, rqst->payload, rqst->length); in msgb_push_cmd()
Dssh_request_layer.h121 static inline struct ssh_rtl *ssh_request_rtl(struct ssh_request *rqst) in ssh_request_rtl() argument
125 ptl = READ_ONCE(rqst->packet.ptl); in ssh_request_rtl()
129 int ssh_rtl_submit(struct ssh_rtl *rtl, struct ssh_request *rqst);
130 bool ssh_rtl_cancel(struct ssh_request *rqst, bool pending);
140 int ssh_request_init(struct ssh_request *rqst, enum ssam_request_flags flags,
/drivers/hid/surface-hid/
Dsurface_hid.c46 struct ssam_request rqst; in ssam_hid_get_descriptor() local
59 rqst.target_category = shid->uid.category; in ssam_hid_get_descriptor()
60 rqst.target_id = shid->uid.target; in ssam_hid_get_descriptor()
61 rqst.command_id = SURFACE_HID_CID_GET_DESCRIPTOR; in ssam_hid_get_descriptor()
62 rqst.instance_id = shid->uid.instance; in ssam_hid_get_descriptor()
63 rqst.flags = SSAM_REQUEST_HAS_RESPONSE; in ssam_hid_get_descriptor()
64 rqst.length = sizeof(struct surface_hid_buffer_slice); in ssam_hid_get_descriptor()
65 rqst.payload = buffer; in ssam_hid_get_descriptor()
83 status = ssam_retry(ssam_request_do_sync_onstack, shid->ctrl, &rqst, &rsp, in ssam_hid_get_descriptor()
116 struct ssam_request rqst; in ssam_hid_set_raw_report() local
[all …]
Dsurface_kbd.c36 struct ssam_request rqst; in ssam_kbd_get_descriptor() local
40 rqst.target_category = shid->uid.category; in ssam_kbd_get_descriptor()
41 rqst.target_id = shid->uid.target; in ssam_kbd_get_descriptor()
42 rqst.command_id = SURFACE_KBD_CID_GET_DESCRIPTOR; in ssam_kbd_get_descriptor()
43 rqst.instance_id = shid->uid.instance; in ssam_kbd_get_descriptor()
44 rqst.flags = SSAM_REQUEST_HAS_RESPONSE; in ssam_kbd_get_descriptor()
45 rqst.length = sizeof(entry); in ssam_kbd_get_descriptor()
46 rqst.payload = &entry; in ssam_kbd_get_descriptor()
52 status = ssam_retry(ssam_request_do_sync_onstack, shid->ctrl, &rqst, &rsp, sizeof(entry)); in ssam_kbd_get_descriptor()
67 struct ssam_request rqst; in ssam_kbd_set_caps_led() local
[all …]
/drivers/nvme/host/
Dfc.h42 acc->rqst.desc_tag = cpu_to_be32(FCNVME_LSDESC_RQST); in nvme_fc_format_rsp_hdr()
43 acc->rqst.desc_len = in nvme_fc_format_rsp_hdr()
45 acc->rqst.w0.ls_cmd = rqst_ls_cmd; in nvme_fc_format_rsp_hdr()
194 struct fcnvme_ls_disconnect_assoc_rqst *rqst) in nvmefc_vldt_lsreq_discon_assoc() argument
200 else if (rqst->desc_list_len != in nvmefc_vldt_lsreq_discon_assoc()
204 else if (rqst->associd.desc_tag != cpu_to_be32(FCNVME_LSDESC_ASSOC_ID)) in nvmefc_vldt_lsreq_discon_assoc()
206 else if (rqst->associd.desc_len != in nvmefc_vldt_lsreq_discon_assoc()
210 else if (rqst->discon_cmd.desc_tag != in nvmefc_vldt_lsreq_discon_assoc()
213 else if (rqst->discon_cmd.desc_len != in nvmefc_vldt_lsreq_discon_assoc()
221 else if (rqst->discon_cmd.rsvd8[0]) in nvmefc_vldt_lsreq_discon_assoc()
Dfc.c1239 else if (assoc_acc->hdr.rqst.desc_tag != in nvme_fc_connect_admin_queue()
1242 else if (assoc_acc->hdr.rqst.desc_len != in nvme_fc_connect_admin_queue()
1245 else if (assoc_acc->hdr.rqst.w0.ls_cmd != FCNVME_LS_CREATE_ASSOCIATION) in nvme_fc_connect_admin_queue()
1353 else if (conn_acc->hdr.rqst.desc_tag != cpu_to_be32(FCNVME_LSDESC_RQST)) in nvme_fc_connect_queue()
1355 else if (conn_acc->hdr.rqst.desc_len != in nvme_fc_connect_queue()
1358 else if (conn_acc->hdr.rqst.w0.ls_cmd != FCNVME_LS_CREATE_CONNECTION) in nvme_fc_connect_queue()
1504 struct fcnvme_ls_disconnect_assoc_rqst *rqst = in nvme_fc_match_disconn_ls() local
1508 u64 association_id = be64_to_cpu(rqst->associd.association_id); in nvme_fc_match_disconn_ls()
1539 rqst->w0.ls_cmd, in nvme_fc_match_disconn_ls()
1557 struct fcnvme_ls_disconnect_assoc_rqst *rqst = in nvme_fc_ls_disconnect_assoc() local
[all …]
/drivers/platform/surface/
Dsurface_aggregator_cdev.c257 struct ssam_cdev_request rqst; in ssam_cdev_request() local
266 ret = copy_struct_from_user(&rqst, sizeof(rqst), r, sizeof(*r)); in ssam_cdev_request()
270 plddata = u64_to_user_ptr(rqst.payload.data); in ssam_cdev_request()
271 rspdata = u64_to_user_ptr(rqst.response.data); in ssam_cdev_request()
274 spec.target_category = rqst.target_category; in ssam_cdev_request()
275 spec.target_id = rqst.target_id; in ssam_cdev_request()
276 spec.command_id = rqst.command_id; in ssam_cdev_request()
277 spec.instance_id = rqst.instance_id; in ssam_cdev_request()
279 spec.length = rqst.payload.length; in ssam_cdev_request()
282 if (rqst.flags & SSAM_CDEV_REQUEST_HAS_RESPONSE) in ssam_cdev_request()
[all …]
Dsurface_acpi_notify.c532 struct ssam_request *rqst, in san_rqst_fixup_suspended() argument
535 if (rqst->target_category == SSAM_SSH_TC_BAS && rqst->command_id == 0x0D) { in san_rqst_fixup_suspended()
567 struct ssam_request rqst; in san_rqst() local
575 rqst.target_category = gsb_rqst->tc; in san_rqst()
576 rqst.target_id = gsb_rqst->tid; in san_rqst()
577 rqst.command_id = gsb_rqst->cid; in san_rqst()
578 rqst.instance_id = gsb_rqst->iid; in san_rqst()
579 rqst.flags = gsb_rqst->snc ? SSAM_REQUEST_HAS_RESPONSE : 0; in san_rqst()
580 rqst.length = get_unaligned(&gsb_rqst->cdl); in san_rqst()
581 rqst.payload = &gsb_rqst->pld[0]; in san_rqst()
[all …]
Dsurface_aggregator_tabletsw.c478 struct ssam_request rqst; in ssam_pos_get_sources_list() local
482 rqst.target_category = SSAM_SSH_TC_POS; in ssam_pos_get_sources_list()
483 rqst.target_id = SSAM_SSH_TID_SAM; in ssam_pos_get_sources_list()
484 rqst.command_id = 0x01; in ssam_pos_get_sources_list()
485 rqst.instance_id = 0x00; in ssam_pos_get_sources_list()
486 rqst.flags = SSAM_REQUEST_HAS_RESPONSE; in ssam_pos_get_sources_list()
487 rqst.length = 0; in ssam_pos_get_sources_list()
488 rqst.payload = NULL; in ssam_pos_get_sources_list()
494 status = ssam_retry(ssam_request_do_sync_onstack, sw->sdev->ctrl, &rqst, &rsp, 0); in ssam_pos_get_sources_list()
/drivers/nvme/target/
Dfc.c1662 struct fcnvme_ls_cr_assoc_rqst *rqst = &iod->rqstbuf->rq_cr_assoc; in nvmet_fc_ls_create_association() local
1679 else if (be32_to_cpu(rqst->desc_list_len) < in nvmet_fc_ls_create_association()
1682 else if (rqst->assoc_cmd.desc_tag != in nvmet_fc_ls_create_association()
1685 else if (be32_to_cpu(rqst->assoc_cmd.desc_len) < in nvmet_fc_ls_create_association()
1688 else if (!rqst->assoc_cmd.ersp_ratio || in nvmet_fc_ls_create_association()
1689 (be16_to_cpu(rqst->assoc_cmd.ersp_ratio) >= in nvmet_fc_ls_create_association()
1690 be16_to_cpu(rqst->assoc_cmd.sqsize))) in nvmet_fc_ls_create_association()
1701 be16_to_cpu(rqst->assoc_cmd.sqsize)); in nvmet_fc_ls_create_association()
1714 sizeof(*acc), rqst->w0.ls_cmd, in nvmet_fc_ls_create_association()
1720 queue->ersp_ratio = be16_to_cpu(rqst->assoc_cmd.ersp_ratio); in nvmet_fc_ls_create_association()
[all …]
/drivers/scsi/qla2xxx/
Dqla_nvme.c1094 rjt->rqst.desc_tag = cpu_to_be32(FCNVME_LSDESC_RQST); in qla_nvme_fc_format_rjt()
1095 rjt->rqst.desc_len = in qla_nvme_fc_format_rjt()
1097 rjt->rqst.w0.ls_cmd = ls_cmd; in qla_nvme_fc_format_rjt()
/drivers/gpu/drm/msm/dsi/phy/
Ddsi_phy_14nm.c915 u32 rqst = clk_ln ? timing->hs_rqst_ckln : timing->hs_rqst; in dsi_14nm_dphy_set_timing() local
929 DSI_14nm_PHY_LN_TIMING_CTRL_8_HS_RQST(rqst)); in dsi_14nm_dphy_set_timing()
/drivers/scsi/mpt3sas/
Dmpt3sas_base.c1010 Mpi2ConfigRequest_t *rqst = (Mpi2ConfigRequest_t *)request_hdr; in _base_sas_ioc_info() local
1012 if ((rqst->ExtPageType == in _base_sas_ioc_info()