Home
last modified time | relevance | path

Searched refs:rsp (Results 1 – 25 of 262) sorted by relevance

1234567891011

/drivers/nvme/target/
Drdma.c164 static bool nvmet_rdma_execute_command(struct nvmet_rdma_rsp *rsp);
194 static inline bool nvmet_rdma_need_data_in(struct nvmet_rdma_rsp *rsp) in nvmet_rdma_need_data_in() argument
196 return nvme_is_write(rsp->req.cmd) && in nvmet_rdma_need_data_in()
197 rsp->req.transfer_len && in nvmet_rdma_need_data_in()
198 !(rsp->flags & NVMET_RDMA_REQ_INLINE_DATA); in nvmet_rdma_need_data_in()
201 static inline bool nvmet_rdma_need_data_out(struct nvmet_rdma_rsp *rsp) in nvmet_rdma_need_data_out() argument
203 return !nvme_is_write(rsp->req.cmd) && in nvmet_rdma_need_data_out()
204 rsp->req.transfer_len && in nvmet_rdma_need_data_out()
205 !rsp->req.cqe->status && in nvmet_rdma_need_data_out()
206 !(rsp->flags & NVMET_RDMA_REQ_INLINE_DATA); in nvmet_rdma_need_data_out()
[all …]
/drivers/media/usb/as102/
Das10x_cmd.c24 prsp = adap->rsp; in as10x_cmd_turn_on()
39 sizeof(prsp->body.turn_on.rsp) + in as10x_cmd_turn_on()
65 prsp = adap->rsp; in as10x_cmd_turn_off()
80 sizeof(prsp->body.turn_off.rsp) + HEADER_SIZE); in as10x_cmd_turn_off()
107 prsp = adap->rsp; in as10x_cmd_set_tune()
134 sizeof(prsp->body.set_tune.rsp) in as10x_cmd_set_tune()
162 prsp = adap->rsp; in as10x_cmd_get_tune_status()
179 sizeof(prsp->body.get_tune_status.rsp) + HEADER_SIZE); in as10x_cmd_get_tune_status()
191 pstatus->tune_state = prsp->body.get_tune_status.rsp.sts.tune_state; in as10x_cmd_get_tune_status()
193 le16_to_cpu((__force __le16)prsp->body.get_tune_status.rsp.sts.signal_strength); in as10x_cmd_get_tune_status()
[all …]
Das10x_cmd.h94 } __packed rsp; member
109 } __packed rsp; member
126 } __packed rsp; member
143 } __packed rsp; member
160 } __packed rsp; member
175 } __packed rsp; member
198 } __packed rsp; member
215 } __packed rsp; member
230 } __packed rsp; member
245 } __packed rsp; member
[all …]
Das10x_cmd_cfg.c30 prsp = adap->rsp; in as10x_cmd_get_context()
48 sizeof(prsp->body.context.rsp) in as10x_cmd_get_context()
63 *pvalue = le32_to_cpu((__force __le32)prsp->body.context.rsp.reg_val.u.value32); in as10x_cmd_get_context()
86 prsp = adap->rsp; in as10x_cmd_set_context()
106 sizeof(prsp->body.context.rsp) in as10x_cmd_set_context()
140 prsp = adap->rsp; in as10x_cmd_eLNA_change_mode()
156 sizeof(prsp->body.cfg_change_mode.rsp) in as10x_cmd_eLNA_change_mode()
185 err = prsp->body.context.rsp.error; in as10x_context_rsp_parse()
188 (le16_to_cpu(prsp->body.context.rsp.proc_id) == proc_id)) { in as10x_context_rsp_parse()
Das10x_cmd_stream.c25 prsp = adap->rsp; in as10x_cmd_add_PID_filter()
47 sizeof(prsp->body.add_pid_filter.rsp) in as10x_cmd_add_PID_filter()
61 filter->idx = prsp->body.add_pid_filter.rsp.filter_id; in as10x_cmd_add_PID_filter()
82 prsp = adap->rsp; in as10x_cmd_del_PID_filter()
98 sizeof(prsp->body.del_pid_filter.rsp) in as10x_cmd_del_PID_filter()
126 prsp = adap->rsp; in as10x_cmd_start_streaming()
141 sizeof(prsp->body.start_streaming.rsp) in as10x_cmd_start_streaming()
169 prsp = adap->rsp; in as10x_cmd_stop_streaming()
184 sizeof(prsp->body.stop_streaming.rsp) in as10x_cmd_stop_streaming()
/drivers/nfc/s3fwrn5/
Dfirmware.c25 struct sk_buff *msg, struct sk_buff **rsp) in s3fwrn5_fw_send_msg() argument
44 if (!fw_info->rsp) in s3fwrn5_fw_send_msg()
47 *rsp = fw_info->rsp; in s3fwrn5_fw_send_msg()
48 fw_info->rsp = NULL; in s3fwrn5_fw_send_msg()
80 struct sk_buff *msg, *rsp = NULL; in s3fwrn5_fw_get_bootinfo() local
91 ret = s3fwrn5_fw_send_msg(fw_info, msg, &rsp); in s3fwrn5_fw_get_bootinfo()
96 hdr = (struct s3fwrn5_fw_header *) rsp->data; in s3fwrn5_fw_get_bootinfo()
102 memcpy(bootinfo, rsp->data + S3FWRN5_FW_HDR_SIZE, 10); in s3fwrn5_fw_get_bootinfo()
105 kfree_skb(rsp); in s3fwrn5_fw_get_bootinfo()
114 struct sk_buff *msg, *rsp = NULL; in s3fwrn5_fw_enter_update_mode() local
[all …]
/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs_rvu_if.c74 struct msg_rsp *rsp) in rvu_mbox_handler_mcs_set_lmac_mode() argument
179 struct msg_rsp *rsp) in rvu_mbox_handler_mcs_intr_cfg() argument
204 struct mcs_hw_info *rsp) in rvu_mbox_handler_mcs_get_hw_info() argument
213 rsp->num_mcs_blks = rvu->mcs_blk_cnt; in rvu_mbox_handler_mcs_get_hw_info()
214 rsp->tcam_entries = mcs->hw->tcam_entries; in rvu_mbox_handler_mcs_get_hw_info()
215 rsp->secy_entries = mcs->hw->secy_entries; in rvu_mbox_handler_mcs_get_hw_info()
216 rsp->sc_entries = mcs->hw->sc_entries; in rvu_mbox_handler_mcs_get_hw_info()
217 rsp->sa_entries = mcs->hw->sa_entries; in rvu_mbox_handler_mcs_get_hw_info()
222 struct msg_rsp *rsp) in rvu_mbox_handler_mcs_port_reset() argument
238 struct msg_rsp *rsp) in rvu_mbox_handler_mcs_clear_stats() argument
[all …]
Drvu_cpt.c22 #define cpt_get_eng_sts(e_min, e_max, rsp, etype) \ argument
25 typeof(rsp) _rsp = rsp; \
386 struct msg_rsp *rsp) in rvu_mbox_handler_cpt_lf_alloc() argument
486 struct msg_rsp *rsp) in rvu_mbox_handler_cpt_lf_free() argument
601 struct msg_rsp *rsp) in rvu_mbox_handler_cpt_inline_ipsec_cfg() argument
704 struct cpt_rd_wr_reg_msg *rsp) in rvu_mbox_handler_cpt_rd_wr_register() argument
721 rsp->reg_offset = req->reg_offset; in rvu_mbox_handler_cpt_rd_wr_register()
722 rsp->ret_val = req->ret_val; in rvu_mbox_handler_cpt_rd_wr_register()
723 rsp->is_write = req->is_write; in rvu_mbox_handler_cpt_rd_wr_register()
728 rsp->val = rvu_read64(rvu, blkaddr, offset); in rvu_mbox_handler_cpt_rd_wr_register()
[all …]
Drvu_cgx.c538 struct msg_rsp *rsp) in rvu_mbox_handler_cgx_start_rxtx() argument
545 struct msg_rsp *rsp) in rvu_mbox_handler_cgx_stop_rxtx() argument
552 void *rsp) in rvu_lmac_get_stats() argument
574 ((struct rpm_stats_rsp *)rsp)->rx_stats[stat] = rx_stat; in rvu_lmac_get_stats()
576 ((struct cgx_stats_rsp *)rsp)->rx_stats[stat] = rx_stat; in rvu_lmac_get_stats()
587 ((struct rpm_stats_rsp *)rsp)->tx_stats[stat] = tx_stat; in rvu_lmac_get_stats()
589 ((struct cgx_stats_rsp *)rsp)->tx_stats[stat] = tx_stat; in rvu_lmac_get_stats()
596 struct cgx_stats_rsp *rsp) in rvu_mbox_handler_cgx_stats() argument
598 return rvu_lmac_get_stats(rvu, req, (void *)rsp); in rvu_mbox_handler_cgx_stats()
602 struct rpm_stats_rsp *rsp) in rvu_mbox_handler_rpm_stats() argument
[all …]
/drivers/net/wireless/ath/wcn36xx/
Dtestmode.c48 struct ftm_rsp_msg *msg, *rsp = NULL; in wcn36xx_tm_cmd_ptt() local
77 rsp = msg; in wcn36xx_tm_cmd_ptt()
78 rsp->resp_status = 0; in wcn36xx_tm_cmd_ptt()
85 msg->msg_body_length, (void *)(&rsp)); in wcn36xx_tm_cmd_ptt()
90 if (rsp) in wcn36xx_tm_cmd_ptt()
93 rsp->msg_body_length); in wcn36xx_tm_cmd_ptt()
96 if (!rsp) { in wcn36xx_tm_cmd_ptt()
97 rsp = msg; in wcn36xx_tm_cmd_ptt()
99 rsp->resp_status); in wcn36xx_tm_cmd_ptt()
102 rsp, rsp->msg_body_length); in wcn36xx_tm_cmd_ptt()
[all …]
Dsmd.c489 struct wcn36xx_fw_msg_status_rsp *rsp; in wcn36xx_smd_rsp_status_check() local
495 rsp = (struct wcn36xx_fw_msg_status_rsp *) in wcn36xx_smd_rsp_status_check()
498 if (WCN36XX_FW_MSG_RESULT_SUCCESS != rsp->status) in wcn36xx_smd_rsp_status_check()
499 return rsp->status; in wcn36xx_smd_rsp_status_check()
574 struct wcn36xx_hal_mac_start_rsp_msg *rsp; in wcn36xx_smd_start_rsp() local
576 if (len < sizeof(*rsp)) in wcn36xx_smd_start_rsp()
579 rsp = (struct wcn36xx_hal_mac_start_rsp_msg *)buf; in wcn36xx_smd_start_rsp()
581 if (WCN36XX_FW_MSG_RESULT_SUCCESS != rsp->start_rsp_params.status) in wcn36xx_smd_start_rsp()
584 memcpy(wcn->crm_version, rsp->start_rsp_params.crm_version, in wcn36xx_smd_start_rsp()
586 memcpy(wcn->wlan_version, rsp->start_rsp_params.wlan_version, in wcn36xx_smd_start_rsp()
[all …]
/drivers/crypto/marvell/octeontx2/
Dotx2_cptpf_mbox.c69 struct otx2_cpt_caps_rsp *rsp; in handle_msg_get_caps() local
71 rsp = (struct otx2_cpt_caps_rsp *) in handle_msg_get_caps()
73 sizeof(*rsp)); in handle_msg_get_caps()
74 if (!rsp) in handle_msg_get_caps()
77 rsp->hdr.id = MBOX_MSG_GET_CAPS; in handle_msg_get_caps()
78 rsp->hdr.sig = OTX2_MBOX_RSP_SIG; in handle_msg_get_caps()
79 rsp->hdr.pcifunc = req->pcifunc; in handle_msg_get_caps()
80 rsp->cpt_pf_drv_version = OTX2_CPT_PF_DRV_VERSION; in handle_msg_get_caps()
81 rsp->cpt_revision = cptpf->pdev->revision; in handle_msg_get_caps()
82 memcpy(&rsp->eng_caps, &cptpf->eng_caps, sizeof(rsp->eng_caps)); in handle_msg_get_caps()
[all …]
/drivers/scsi/qla2xxx/
Dqla_mid.c275 qla2x00_alert_all_vps(struct rsp_que *rsp, uint16_t *mb) in qla2x00_alert_all_vps() argument
278 struct qla_hw_data *ha = rsp->hw; in qla2x00_alert_all_vps()
301 qla2x00_async_event(vha, rsp, mb); in qla2x00_alert_all_vps()
309 qla2x00_async_event(vha, rsp, mb); in qla2x00_alert_all_vps()
592 qla25xx_free_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp) in qla25xx_free_rsp_que() argument
595 uint16_t que_id = rsp->id; in qla25xx_free_rsp_que()
597 if (rsp->msix && rsp->msix->have_irq) { in qla25xx_free_rsp_que()
598 free_irq(rsp->msix->vector, rsp->msix->handle); in qla25xx_free_rsp_que()
599 rsp->msix->have_irq = 0; in qla25xx_free_rsp_que()
600 rsp->msix->in_use = 0; in qla25xx_free_rsp_que()
[all …]
Dqla_isr.c32 void **pkt, struct rsp_que **rsp);
200 void **pkt, struct rsp_que **rsp) in __qla_consume_iocb() argument
202 struct rsp_que *rsp_q = *rsp; in __qla_consume_iocb()
237 void **pkt, struct rsp_que **rsp, u8 *buf, u32 buf_len) in __qla_copy_purex_to_buffer() argument
240 struct rsp_que *rsp_q = *rsp; in __qla_copy_purex_to_buffer()
261 __qla_consume_iocb(vha, pkt, rsp); in __qla_copy_purex_to_buffer()
350 struct rsp_que *rsp; in qla2100_intr_handler() local
353 rsp = (struct rsp_que *) dev_id; in qla2100_intr_handler()
354 if (!rsp) { in qla2100_intr_handler()
360 ha = rsp->hw; in qla2100_intr_handler()
[all …]
/drivers/block/rnbd/
Drnbd-clt.c86 struct rnbd_msg_open_rsp *rsp) in process_msg_open_rsp() argument
99 u64 nsectors = le64_to_cpu(rsp->nsectors); in process_msg_open_rsp()
106 if (!rsp->logical_block_size) { in process_msg_open_rsp()
110 dev->device_id = le32_to_cpu(rsp->device_id); in process_msg_open_rsp()
483 struct rnbd_msg_open_rsp *rsp = iu->buf; in msg_open_conf() local
497 errno = process_msg_open_rsp(dev, rsp); in msg_open_conf()
499 u32 device_id = le32_to_cpu(rsp->device_id); in msg_open_conf()
509 kfree(rsp); in msg_open_conf()
518 struct rnbd_msg_sess_info_rsp *rsp = iu->buf; in msg_sess_info_conf() local
522 sess->ver = min_t(u8, rsp->ver, RNBD_PROTO_VER_MAJOR); in msg_sess_info_conf()
[all …]
/drivers/xen/
Dpvcalls-back.c266 struct xen_pvcalls_response *rsp; in pvcalls_back_socket() local
280 rsp = RING_GET_RESPONSE(&fedata->ring, fedata->ring.rsp_prod_pvt++); in pvcalls_back_socket()
281 rsp->req_id = req->req_id; in pvcalls_back_socket()
282 rsp->cmd = req->cmd; in pvcalls_back_socket()
283 rsp->u.socket.id = req->u.socket.id; in pvcalls_back_socket()
284 rsp->ret = ret; in pvcalls_back_socket()
399 struct xen_pvcalls_response *rsp; in pvcalls_back_connect() local
427 rsp = RING_GET_RESPONSE(&fedata->ring, fedata->ring.rsp_prod_pvt++); in pvcalls_back_connect()
428 rsp->req_id = req->req_id; in pvcalls_back_connect()
429 rsp->cmd = req->cmd; in pvcalls_back_connect()
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_dmac_flt.c14 struct cgx_mac_addr_add_rsp *rsp; in otx2_dmacflt_do_add() local
29 rsp = (struct cgx_mac_addr_add_rsp *) in otx2_dmacflt_do_add()
31 *dmac_index = rsp->index; in otx2_dmacflt_do_add()
41 struct cgx_mac_addr_set_or_get *rsp; in otx2_dmacflt_add_pfmac() local
60 rsp = (struct cgx_mac_addr_set_or_get *) in otx2_dmacflt_add_pfmac()
63 if (IS_ERR_OR_NULL(rsp)) { in otx2_dmacflt_add_pfmac()
68 *dmac_index = rsp->index; in otx2_dmacflt_add_pfmac()
146 struct cgx_max_dmac_entries_get_rsp *rsp; in otx2_dmacflt_get_max_cnt() local
162 rsp = (struct cgx_max_dmac_entries_get_rsp *) in otx2_dmacflt_get_max_cnt()
165 if (IS_ERR_OR_NULL(rsp)) { in otx2_dmacflt_get_max_cnt()
[all …]
Dotx2_ethtool.c203 struct cgx_fw_data *rsp; in otx2_get_ethtool_stats() local
230 rsp = otx2_get_fwdata(pfvf); in otx2_get_ethtool_stats()
231 if (!IS_ERR(rsp) && rsp->fwdata.phy.misc.has_fec_stats && in otx2_get_ethtool_stats()
236 rsp = otx2_get_fwdata(pfvf); in otx2_get_ethtool_stats()
237 if (!IS_ERR(rsp)) { in otx2_get_ethtool_stats()
238 struct fec_stats_s *p = &rsp->fwdata.phy.fec_stats; in otx2_get_ethtool_stats()
331 struct cgx_pause_frm_cfg *req, *rsp; in otx2_get_pauseparam() local
344 rsp = (struct cgx_pause_frm_cfg *) in otx2_get_pauseparam()
346 pause->rx_pause = rsp->rx_pause; in otx2_get_pauseparam()
347 pause->tx_pause = rsp->tx_pause; in otx2_get_pauseparam()
[all …]
/drivers/infiniband/hw/ocrdma/
Docrdma_hw.c437 struct ocrdma_create_eq_rsp *rsp = dev->mbx_cmd; in ocrdma_mbx_create_eq() local
453 eq->q.id = rsp->vector_eqid & 0xffff; in ocrdma_mbx_create_eq()
454 eq->vector = (rsp->vector_eqid >> 16) & 0xffff; in ocrdma_mbx_create_eq()
528 struct ocrdma_create_cq_cmd_rsp *rsp = dev->mbx_cmd; in ocrdma_mbx_mq_cq_create() local
549 cq->id = (u16) (rsp->cq_id & OCRDMA_CREATE_CQ_RSP_CQ_ID_MASK); in ocrdma_mbx_mq_cq_create()
570 struct ocrdma_create_mq_rsp *rsp = dev->mbx_cmd; in ocrdma_mbx_create_mq() local
598 mq->id = rsp->id; in ocrdma_mbx_create_mq()
1077 struct ocrdma_mbx_rsp *rsp = NULL; in ocrdma_mbx_cmd() local
1092 rsp = &mqe->u.rsp; in ocrdma_mbx_cmd()
1097 if (rsp) { in ocrdma_mbx_cmd()
[all …]
/drivers/hid/surface-hid/
Dsurface_kbd.c37 struct ssam_response rsp; in ssam_kbd_get_descriptor() local
48 rsp.capacity = len; in ssam_kbd_get_descriptor()
49 rsp.length = 0; in ssam_kbd_get_descriptor()
50 rsp.pointer = buf; 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()
56 if (rsp.length != len) { in ssam_kbd_get_descriptor()
58 rsp.length, len); in ssam_kbd_get_descriptor()
84 struct ssam_response rsp; in ssam_kbd_get_feature_report() local
96 rsp.capacity = len; in ssam_kbd_get_feature_report()
97 rsp.length = 0; in ssam_kbd_get_feature_report()
[all …]
/drivers/power/supply/
Dcros_peripheral_charger.c91 struct ec_response_get_cmd_versions rsp; in cros_pchg_cmd_ver_check() local
96 &req, sizeof(req), &rsp, sizeof(rsp)); in cros_pchg_cmd_ver_check()
104 return !!(rsp.version_mask & BIT(pchg_cmd_version)); in cros_pchg_cmd_ver_check()
109 struct ec_response_pchg_count rsp; in cros_pchg_port_count() local
113 NULL, 0, &rsp, sizeof(rsp)); in cros_pchg_port_count()
120 return rsp.port_count; in cros_pchg_port_count()
127 struct ec_response_pchg rsp; in cros_pchg_get_status() local
135 &req, sizeof(req), &rsp, sizeof(rsp)); in cros_pchg_get_status()
142 switch (rsp.state) { in cros_pchg_get_status()
164 port->battery_percentage = rsp.battery_percentage; in cros_pchg_get_status()
[all …]
/drivers/firmware/
Dqcom_scm-legacy.c105 const struct scm_legacy_response *rsp) in scm_legacy_get_response_buffer() argument
107 return (void *)rsp + le32_to_cpu(rsp->buf_offset); in scm_legacy_get_response_buffer()
141 struct scm_legacy_response *rsp; in scm_legacy_call() local
146 size_t alloc_len = sizeof(*cmd) + cmd_len + sizeof(*rsp) + resp_len; in scm_legacy_call()
164 rsp = scm_legacy_command_to_response(cmd); in scm_legacy_call()
186 sizeof(*rsp), DMA_FROM_DEVICE); in scm_legacy_call()
187 } while (!rsp->is_complete); in scm_legacy_call()
190 le32_to_cpu(rsp->buf_offset), in scm_legacy_call()
194 res_buf = scm_legacy_get_response_buffer(rsp); in scm_legacy_call()
/drivers/net/ethernet/fungible/funcore/
Dfun_queue.c83 struct fun_admin_generic_create_rsp rsp; in fun_sq_create() member
109 &cmd.rsp, sizeof(cmd.rsp), 0); in fun_sq_create()
113 hw_qid = be32_to_cpu(cmd.rsp.id); in fun_sq_create()
133 struct fun_admin_generic_create_rsp rsp; in fun_cq_create() member
152 &cmd.rsp, sizeof(cmd.rsp), 0); in fun_cq_create()
156 hw_qid = be32_to_cpu(cmd.rsp.id); in fun_cq_create()
234 const struct fun_rsp_common *rsp, bool *need_free) in fun_data_from_rq() argument
243 dataop = (void *)rsp + rsp->suboff8 * 8; in fun_data_from_rq()
285 struct fun_rsp_common *rsp; in __fun_process_cq() local
310 rsp = cqe; in __fun_process_cq()
[all …]
/drivers/infiniband/hw/hfi1/
Dmad.c2585 struct opa_port_status_rsp *rsp) in a0_portstatus() argument
2603 if (be64_to_cpu(rsp->port_xmit_wait) > sum_vl_xmit_wait) in a0_portstatus()
2604 rsp->port_xmit_wait = cpu_to_be64(sum_vl_xmit_wait); in a0_portstatus()
2688 struct opa_port_status_rsp *rsp; in pma_get_opa_portstatus() local
2703 response_data_size = struct_size(rsp, vls, num_vls); in pma_get_opa_portstatus()
2717 rsp = (struct opa_port_status_rsp *)pmp->data; in pma_get_opa_portstatus()
2719 rsp->port_num = port_num; in pma_get_opa_portstatus()
2721 rsp->port_num = port; in pma_get_opa_portstatus()
2723 rsp->port_rcv_constraint_errors = in pma_get_opa_portstatus()
2727 hfi1_read_link_quality(dd, &rsp->link_quality_indicator); in pma_get_opa_portstatus()
[all …]
/drivers/char/ipmi/
Dipmi_msghandler.c3710 msg->rsp[0] = msg->data[0] | 4; in deliver_smi_err_response()
3711 msg->rsp[1] = msg->data[1]; in deliver_smi_err_response()
3712 msg->rsp[2] = err; in deliver_smi_err_response()
3828 if (msg->rsp[2] != 0) { in handle_ipmb_get_msg_rsp()
3834 ipmb_addr.slave_addr = msg->rsp[6]; in handle_ipmb_get_msg_rsp()
3835 ipmb_addr.channel = msg->rsp[3] & 0x0f; in handle_ipmb_get_msg_rsp()
3836 ipmb_addr.lun = msg->rsp[7] & 3; in handle_ipmb_get_msg_rsp()
3843 msg->rsp[7] >> 2, in handle_ipmb_get_msg_rsp()
3844 msg->rsp[3] & 0x0f, in handle_ipmb_get_msg_rsp()
3845 msg->rsp[8], in handle_ipmb_get_msg_rsp()
[all …]

1234567891011