crq               474 drivers/block/sx8.c 			 struct carm_request *crq, unsigned tag)
crq               478 drivers/block/sx8.c 	u32 cm_bucket = crq->msg_bucket;
crq               507 drivers/block/sx8.c 	struct carm_request *crq;
crq               516 drivers/block/sx8.c 	crq = blk_mq_rq_to_pdu(rq);
crq               522 drivers/block/sx8.c 	crq->msg_type = CARM_MSG_ARRAY;
crq               523 drivers/block/sx8.c 	crq->msg_subtype = CARM_ARRAY_INFO;
crq               527 drivers/block/sx8.c 	crq->msg_bucket = (u32) rc;
crq               558 drivers/block/sx8.c 	struct carm_request *crq;
crq               567 drivers/block/sx8.c 	crq = blk_mq_rq_to_pdu(rq);
crq               574 drivers/block/sx8.c 	crq->msg_type = ioc->type;
crq               575 drivers/block/sx8.c 	crq->msg_subtype = ioc->subtype;
crq               578 drivers/block/sx8.c 	crq->msg_bucket = (u32) rc;
crq               709 drivers/block/sx8.c 	struct carm_request *crq = blk_mq_rq_to_pdu(rq);
crq               716 drivers/block/sx8.c 	crq->n_elem = 0;
crq               717 drivers/block/sx8.c 	sg_init_table(crq->sg, CARM_MAX_REQ_SG);
crq               726 drivers/block/sx8.c 	sg = &crq->sg[0];
crq               740 drivers/block/sx8.c 	crq->n_elem = n_elem;
crq               752 drivers/block/sx8.c 		crq->msg_type = CARM_MSG_WRITE;
crq               755 drivers/block/sx8.c 		crq->msg_type = CARM_MSG_READ;
crq               770 drivers/block/sx8.c 		carm_sg->start = cpu_to_le32(sg_dma_address(&crq->sg[i]));
crq               771 drivers/block/sx8.c 		carm_sg->len = cpu_to_le32(sg_dma_len(&crq->sg[i]));
crq               777 drivers/block/sx8.c 	crq->msg_bucket = (u32) rc;
crq               783 drivers/block/sx8.c 	rc = carm_send_msg(host, crq, rq->tag);
crq               792 drivers/block/sx8.c 	dma_unmap_sg(&host->pdev->dev, &crq->sg[0], n_elem, carm_rq_dir(rq));
crq               803 drivers/block/sx8.c 				   struct carm_request *crq, u8 *mem,
crq               861 drivers/block/sx8.c 				  struct carm_request *crq, u8 *mem,
crq               892 drivers/block/sx8.c 				struct carm_request *crq, blk_status_t error,
crq               911 drivers/block/sx8.c 	struct carm_request *crq;
crq               927 drivers/block/sx8.c 	crq = blk_mq_rq_to_pdu(rq);
crq               930 drivers/block/sx8.c 	if (likely(crq->msg_type == CARM_MSG_READ ||
crq               931 drivers/block/sx8.c 		   crq->msg_type == CARM_MSG_WRITE)) {
crq               932 drivers/block/sx8.c 		dma_unmap_sg(&host->pdev->dev, &crq->sg[0], crq->n_elem,
crq               939 drivers/block/sx8.c 	switch (crq->msg_type) {
crq               941 drivers/block/sx8.c 		switch (crq->msg_subtype) {
crq               943 drivers/block/sx8.c 			carm_handle_scan_chan(host, crq, mem, error);
crq               953 drivers/block/sx8.c 		switch (crq->msg_subtype) {
crq               955 drivers/block/sx8.c 			carm_handle_generic(host, crq, error,
crq               959 drivers/block/sx8.c 			carm_handle_generic(host, crq, error,
crq               969 drivers/block/sx8.c 			carm_handle_generic(host, crq, error,
crq               981 drivers/block/sx8.c 		switch (crq->msg_subtype) {
crq               983 drivers/block/sx8.c 			carm_handle_array_info(host, crq, mem, error);
crq              1001 drivers/block/sx8.c 	       pci_name(host->pdev), crq->msg_type, crq->msg_subtype);
crq              1004 drivers/block/sx8.c 	host->hw_sg_used -= crq->n_elem;
crq              1005 drivers/block/sx8.c 	blk_mq_end_request(blk_mq_rq_from_pdu(crq), error);
crq               481 drivers/char/tpm/tpm_ibmvtpm.c 	struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index];
crq               483 drivers/char/tpm/tpm_ibmvtpm.c 	if (crq->valid & VTPM_MSG_RES) {
crq               488 drivers/char/tpm/tpm_ibmvtpm.c 		crq = NULL;
crq               489 drivers/char/tpm/tpm_ibmvtpm.c 	return crq;
crq               499 drivers/char/tpm/tpm_ibmvtpm.c static void ibmvtpm_crq_process(struct ibmvtpm_crq *crq,
crq               504 drivers/char/tpm/tpm_ibmvtpm.c 	switch (crq->valid) {
crq               506 drivers/char/tpm/tpm_ibmvtpm.c 		switch (crq->msg) {
crq               518 drivers/char/tpm/tpm_ibmvtpm.c 			dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", crq->msg);
crq               522 drivers/char/tpm/tpm_ibmvtpm.c 		switch (crq->msg) {
crq               524 drivers/char/tpm/tpm_ibmvtpm.c 			if (be16_to_cpu(crq->len) <= 0) {
crq               528 drivers/char/tpm/tpm_ibmvtpm.c 			ibmvtpm->rtce_size = be16_to_cpu(crq->len);
crq               549 drivers/char/tpm/tpm_ibmvtpm.c 			ibmvtpm->vtpm_version = be32_to_cpu(crq->data);
crq               553 drivers/char/tpm/tpm_ibmvtpm.c 			ibmvtpm->res_len = be16_to_cpu(crq->len);
crq               576 drivers/char/tpm/tpm_ibmvtpm.c 	struct ibmvtpm_crq *crq;
crq               582 drivers/char/tpm/tpm_ibmvtpm.c 	while ((crq = ibmvtpm_crq_get_next(ibmvtpm)) != NULL) {
crq               583 drivers/char/tpm/tpm_ibmvtpm.c 		ibmvtpm_crq_process(crq, ibmvtpm);
crq               584 drivers/char/tpm/tpm_ibmvtpm.c 		crq->valid = 0;
crq               869 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 					    &priv->cmq.csq : &priv->cmq.crq;
crq               882 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 					    &priv->cmq.csq : &priv->cmq.crq;
crq               911 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	priv->cmq.crq.desc_num = CMD_CRQ_DESC_NUM;
crq               915 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	spin_lock_init(&priv->cmq.crq.lock);
crq               953 drivers/infiniband/hw/hns/hns_roce_hw_v2.c 	hns_roce_free_cmq_desc(hr_dev, &priv->cmq.crq);
crq              1601 drivers/infiniband/hw/hns/hns_roce_hw_v2.h 	struct hns_roce_v2_cmq_ring crq;
crq              1048 drivers/isdn/mISDN/dsp_core.c dspcreate(struct channel_req *crq)
crq              1053 drivers/isdn/mISDN/dsp_core.c 	if (crq->protocol != ISDN_P_B_L2DSP
crq              1054 drivers/isdn/mISDN/dsp_core.c 	    && crq->protocol != ISDN_P_B_L2DSPHDLC)
crq              1069 drivers/isdn/mISDN/dsp_core.c 	ndsp->up = crq->ch;
crq              1070 drivers/isdn/mISDN/dsp_core.c 	crq->ch = &ndsp->ch;
crq              1071 drivers/isdn/mISDN/dsp_core.c 	if (crq->protocol == ISDN_P_B_L2DSP) {
crq              1072 drivers/isdn/mISDN/dsp_core.c 		crq->protocol = ISDN_P_B_RAW;
crq              1075 drivers/isdn/mISDN/dsp_core.c 		crq->protocol = ISDN_P_B_HDLC;
crq              2215 drivers/isdn/mISDN/layer2.c x75create(struct channel_req *crq)
crq              2219 drivers/isdn/mISDN/layer2.c 	if (crq->protocol != ISDN_P_B_X75SLP)
crq              2221 drivers/isdn/mISDN/layer2.c 	l2 = create_l2(crq->ch, crq->protocol, 0, 0, 0);
crq              2224 drivers/isdn/mISDN/layer2.c 	crq->ch = &l2->ch;
crq              2225 drivers/isdn/mISDN/layer2.c 	crq->protocol = ISDN_P_B_HDLC;
crq               983 drivers/isdn/mISDN/tei.c create_teimgr(struct manager *mgr, struct channel_req *crq)
crq               994 drivers/isdn/mISDN/tei.c 		       crq->protocol, crq->adr.dev, crq->adr.channel,
crq               995 drivers/isdn/mISDN/tei.c 		       crq->adr.sapi, crq->adr.tei);
crq               996 drivers/isdn/mISDN/tei.c 	if (crq->adr.tei > GROUP_TEI)
crq               998 drivers/isdn/mISDN/tei.c 	if (crq->adr.tei < 64)
crq              1000 drivers/isdn/mISDN/tei.c 	if (crq->adr.tei == 0)
crq              1003 drivers/isdn/mISDN/tei.c 		if (crq->protocol == ISDN_P_LAPD_TE)
crq              1005 drivers/isdn/mISDN/tei.c 		if ((crq->adr.tei != 0) && (crq->adr.tei != 127))
crq              1014 drivers/isdn/mISDN/tei.c 		if (crq->protocol == ISDN_P_LAPD_NT)
crq              1016 drivers/isdn/mISDN/tei.c 		if ((crq->adr.tei >= 64) && (crq->adr.tei < GROUP_TEI))
crq              1019 drivers/isdn/mISDN/tei.c 		if (crq->protocol == ISDN_P_LAPD_NT)
crq              1021 drivers/isdn/mISDN/tei.c 		if (crq->protocol == ISDN_P_LAPD_TE)
crq              1024 drivers/isdn/mISDN/tei.c 	l1rq.adr = crq->adr;
crq              1028 drivers/isdn/mISDN/tei.c 	if ((crq->protocol == ISDN_P_LAPD_NT) && (crq->adr.tei == 127)) {
crq              1029 drivers/isdn/mISDN/tei.c 		mgr->up = crq->ch;
crq              1034 drivers/isdn/mISDN/tei.c 		crq->ch = NULL;
crq              1045 drivers/isdn/mISDN/tei.c 	l2 = create_l2(crq->ch, crq->protocol, opt,
crq              1046 drivers/isdn/mISDN/tei.c 		       crq->adr.tei, crq->adr.sapi);
crq              1060 drivers/isdn/mISDN/tei.c 	if (crq->protocol == ISDN_P_LAPD_TE) {
crq              1085 drivers/isdn/mISDN/tei.c 		crq->ch = &l2->ch;
crq               207 drivers/misc/ibmvmc.c 	struct ibmvmc_crq_msg *crq;
crq               211 drivers/misc/ibmvmc.c 	crq = &queue->msgs[queue->cur];
crq               212 drivers/misc/ibmvmc.c 	if (crq->valid & 0x80) {
crq               221 drivers/misc/ibmvmc.c 		crq = NULL;
crq               226 drivers/misc/ibmvmc.c 	return crq;
crq              1426 drivers/misc/ibmvmc.c 			     struct ibmvmc_crq_msg *crq)
crq              1435 drivers/misc/ibmvmc.c 	if (!crq)
crq              1438 drivers/misc/ibmvmc.c 	hmc_session = crq->hmc_session;
crq              1439 drivers/misc/ibmvmc.c 	hmc_index = crq->hmc_index;
crq              1440 drivers/misc/ibmvmc.c 	buffer_id = be16_to_cpu(crq->var2.buffer_id);
crq              1482 drivers/misc/ibmvmc.c 	buffer->dma_addr_remote = be32_to_cpu(crq->var3.lioba);
crq              1484 drivers/misc/ibmvmc.c 	buffer->owner = crq->var1.owner;
crq              1543 drivers/misc/ibmvmc.c 			     struct ibmvmc_crq_msg *crq)
crq              1552 drivers/misc/ibmvmc.c 	if (!crq)
crq              1555 drivers/misc/ibmvmc.c 	hmc_session = crq->hmc_session;
crq              1556 drivers/misc/ibmvmc.c 	hmc_index = crq->hmc_index;
crq              1596 drivers/misc/ibmvmc.c 			   struct ibmvmc_crq_msg *crq)
crq              1607 drivers/misc/ibmvmc.c 	if (!crq)
crq              1612 drivers/misc/ibmvmc.c 		be64_to_cpu(*((unsigned long *)crq)),
crq              1613 drivers/misc/ibmvmc.c 		be64_to_cpu(*(((unsigned long *)crq) + 1)));
crq              1615 drivers/misc/ibmvmc.c 	hmc_session = crq->hmc_session;
crq              1616 drivers/misc/ibmvmc.c 	hmc_index = crq->hmc_index;
crq              1617 drivers/misc/ibmvmc.c 	buffer_id = be16_to_cpu(crq->var2.buffer_id);
crq              1618 drivers/misc/ibmvmc.c 	msg_len = be32_to_cpu(crq->var3.msg_len);
crq              1703 drivers/misc/ibmvmc.c 	struct ibmvmc_admin_crq_msg *crq = (struct ibmvmc_admin_crq_msg *)crqp;
crq              1705 drivers/misc/ibmvmc.c 	if ((be16_to_cpu(crq->version) >> 8) !=
crq              1708 drivers/misc/ibmvmc.c 			be16_to_cpu(crq->version),
crq              1714 drivers/misc/ibmvmc.c 	ibmvmc.max_mtu = min_t(u32, ibmvmc_max_mtu, be32_to_cpu(crq->max_mtu));
crq              1716 drivers/misc/ibmvmc.c 					    be16_to_cpu(crq->pool_size));
crq              1717 drivers/misc/ibmvmc.c 	ibmvmc.max_hmc_index = min_t(u8, ibmvmc_max_hmcs, crq->max_hmc) - 1;
crq              1736 drivers/misc/ibmvmc.c 				       struct ibmvmc_crq_msg *crq)
crq              1740 drivers/misc/ibmvmc.c 	hmc_index = crq->hmc_index;
crq              1742 drivers/misc/ibmvmc.c 	if (crq->hmc_session == 0)
crq              1748 drivers/misc/ibmvmc.c 	if (hmcs[hmc_index].session != crq->hmc_session) {
crq              1750 drivers/misc/ibmvmc.c 			 hmcs[hmc_index].session, crq->hmc_session);
crq              1856 drivers/misc/ibmvmc.c static void ibmvmc_process_open_resp(struct ibmvmc_crq_msg *crq,
crq              1862 drivers/misc/ibmvmc.c 	hmc_index = crq->hmc_index;
crq              1869 drivers/misc/ibmvmc.c 	if (crq->status) {
crq              1871 drivers/misc/ibmvmc.c 			 crq->status);
crq              1877 drivers/misc/ibmvmc.c 		buffer_id = be16_to_cpu(crq->var2.buffer_id);
crq              1906 drivers/misc/ibmvmc.c static void ibmvmc_process_close_resp(struct ibmvmc_crq_msg *crq,
crq              1911 drivers/misc/ibmvmc.c 	hmc_index = crq->hmc_index;
crq              1917 drivers/misc/ibmvmc.c 	if (crq->status) {
crq              1919 drivers/misc/ibmvmc.c 			 crq->status);
crq              1937 drivers/misc/ibmvmc.c 			       struct ibmvmc_crq_msg *crq)
crq              1939 drivers/misc/ibmvmc.c 	switch (crq->type) {
crq              1942 drivers/misc/ibmvmc.c 			crq->type);
crq              1944 drivers/misc/ibmvmc.c 			ibmvmc_process_capabilities(adapter, crq);
crq              1951 drivers/misc/ibmvmc.c 			crq->type);
crq              1952 drivers/misc/ibmvmc.c 		if (ibmvmc_validate_hmc_session(adapter, crq) == 0)
crq              1953 drivers/misc/ibmvmc.c 			ibmvmc_process_open_resp(crq, adapter);
crq              1957 drivers/misc/ibmvmc.c 			crq->type);
crq              1958 drivers/misc/ibmvmc.c 		if (ibmvmc_validate_hmc_session(adapter, crq) == 0)
crq              1959 drivers/misc/ibmvmc.c 			ibmvmc_add_buffer(adapter, crq);
crq              1963 drivers/misc/ibmvmc.c 			crq->type);
crq              1964 drivers/misc/ibmvmc.c 		if (ibmvmc_validate_hmc_session(adapter, crq) == 0)
crq              1965 drivers/misc/ibmvmc.c 			ibmvmc_rem_buffer(adapter, crq);
crq              1969 drivers/misc/ibmvmc.c 			crq->type);
crq              1970 drivers/misc/ibmvmc.c 		if (ibmvmc_validate_hmc_session(adapter, crq) == 0)
crq              1971 drivers/misc/ibmvmc.c 			ibmvmc_recv_msg(adapter, crq);
crq              1975 drivers/misc/ibmvmc.c 			crq->type);
crq              1976 drivers/misc/ibmvmc.c 		if (ibmvmc_validate_hmc_session(adapter, crq) == 0)
crq              1977 drivers/misc/ibmvmc.c 			ibmvmc_process_close_resp(crq, adapter);
crq              1985 drivers/misc/ibmvmc.c 			 crq->type);
crq              1989 drivers/misc/ibmvmc.c 			 crq->type);
crq              2004 drivers/misc/ibmvmc.c static void ibmvmc_handle_crq_init(struct ibmvmc_crq_msg *crq,
crq              2007 drivers/misc/ibmvmc.c 	switch (crq->type) {
crq              2032 drivers/misc/ibmvmc.c 			 (unsigned long)crq->type);
crq              2046 drivers/misc/ibmvmc.c static void ibmvmc_handle_crq(struct ibmvmc_crq_msg *crq,
crq              2049 drivers/misc/ibmvmc.c 	switch (crq->valid) {
crq              2051 drivers/misc/ibmvmc.c 		ibmvmc_handle_crq_init(crq, adapter);
crq              2058 drivers/misc/ibmvmc.c 		ibmvmc_crq_process(adapter, crq);
crq              2062 drivers/misc/ibmvmc.c 			 crq->valid);
crq              2072 drivers/misc/ibmvmc.c 	struct ibmvmc_crq_msg *crq;
crq              2077 drivers/misc/ibmvmc.c 		while ((crq = crq_queue_next_crq(&adapter->queue)) != NULL) {
crq              2078 drivers/misc/ibmvmc.c 			ibmvmc_handle_crq(crq, adapter);
crq              2079 drivers/misc/ibmvmc.c 			crq->valid = 0x00;
crq              2088 drivers/misc/ibmvmc.c 		crq = crq_queue_next_crq(&adapter->queue);
crq              2089 drivers/misc/ibmvmc.c 		if (crq) {
crq              2091 drivers/misc/ibmvmc.c 			ibmvmc_handle_crq(crq, adapter);
crq              2092 drivers/misc/ibmvmc.c 			crq->valid = 0x00;
crq               123 drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h #define hclge_mbx_ring_ptr_move_crq(crq) \
crq               124 drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h 	(crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
crq                65 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 		(ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq;
crq               134 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	hclge_cmd_config_regs(&hw->cmq.crq);
crq               359 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	spin_lock_init(&hdev->hw.cmq.crq.lock);
crq               363 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	hdev->hw.cmq.crq.desc_num = HCLGE_NIC_CMQ_DESC_NUM;
crq               412 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	spin_lock(&hdev->hw.cmq.crq.lock);
crq               416 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	hdev->hw.cmq.crq.next_to_clean = 0;
crq               417 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	hdev->hw.cmq.crq.next_to_use = 0;
crq               421 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	spin_unlock(&hdev->hw.cmq.crq.lock);
crq               493 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	hclge_destroy_queue(&hw->cmq.crq);
crq               499 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	spin_lock(&hdev->hw.cmq.crq.lock);
crq               502 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c 	spin_unlock(&hdev->hw.cmq.crq.lock);
crq                68 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h 	struct hclge_cmq_ring crq;
crq               582 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 	return tail == hw->cmq.crq.next_to_use;
crq               596 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 	struct hclge_cmq_ring *crq = &hdev->hw.cmq.crq;
crq               611 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 		desc = &crq->desc[crq->next_to_use];
crq               614 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 		flag = le16_to_cpu(crq->desc[crq->next_to_use].flag);
crq               621 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 			crq->desc[crq->next_to_use].flag = 0;
crq               622 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 			hclge_mbx_ring_ptr_move_crq(crq);
crq               761 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 		crq->desc[crq->next_to_use].flag = 0;
crq               762 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 		hclge_mbx_ring_ptr_move_crq(crq);
crq               766 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c 	hclge_write_dev(&hdev->hw, HCLGE_NIC_CRQ_HEAD_REG, crq->next_to_use);
crq               124 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	hclgevf_cmd_config_regs(&hw->cmq.crq);
crq               154 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 		(ring_type == HCLGEVF_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq;
crq               342 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	spin_lock_init(&hdev->hw.cmq.crq.lock);
crq               346 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	hdev->hw.cmq.crq.desc_num = HCLGEVF_NIC_CMQ_DESC_NUM;
crq               374 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	spin_lock(&hdev->hw.cmq.crq.lock);
crq               383 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	hdev->hw.cmq.crq.next_to_clean = 0;
crq               384 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	hdev->hw.cmq.crq.next_to_use = 0;
crq               388 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	spin_unlock(&hdev->hw.cmq.crq.lock);
crq               445 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	spin_lock(&hdev->hw.cmq.crq.lock);
crq               448 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	spin_unlock(&hdev->hw.cmq.crq.lock);
crq               451 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c 	hclgevf_free_cmd_desc(&hdev->hw.cmq.crq);
crq                71 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h 	struct hclgevf_cmq_ring crq;
crq               142 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 	return tail == hw->cmq.crq.next_to_use;
crq               149 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 	struct hclgevf_cmq_ring *crq;
crq               157 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 	crq = &hdev->hw.cmq.crq;
crq               165 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 		desc = &crq->desc[crq->next_to_use];
crq               168 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 		flag = le16_to_cpu(crq->desc[crq->next_to_use].flag);
crq               175 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 			crq->desc[crq->next_to_use].flag = 0;
crq               176 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 			hclge_mbx_ring_ptr_move_crq(crq);
crq               242 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 		crq->desc[crq->next_to_use].flag = 0;
crq               243 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 		hclge_mbx_ring_ptr_move_crq(crq);
crq               248 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c 			  crq->next_to_use);
crq               874 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq               880 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq               881 drivers/net/ethernet/ibm/ibmvnic.c 	crq.logical_link_state.first = IBMVNIC_CRQ_CMD;
crq               882 drivers/net/ethernet/ibm/ibmvnic.c 	crq.logical_link_state.cmd = LOGICAL_LINK_STATE;
crq               883 drivers/net/ethernet/ibm/ibmvnic.c 	crq.logical_link_state.link_state = link_state;
crq               889 drivers/net/ethernet/ibm/ibmvnic.c 		rc = ibmvnic_send_crq(adapter, &crq);
crq               939 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq               947 drivers/net/ethernet/ibm/ibmvnic.c 	crq.get_vpd_size.first = IBMVNIC_CRQ_CMD;
crq               948 drivers/net/ethernet/ibm/ibmvnic.c 	crq.get_vpd_size.cmd = GET_VPD_SIZE;
crq               949 drivers/net/ethernet/ibm/ibmvnic.c 	rc = ibmvnic_send_crq(adapter, &crq);
crq               980 drivers/net/ethernet/ibm/ibmvnic.c 	crq.get_vpd.first = IBMVNIC_CRQ_CMD;
crq               981 drivers/net/ethernet/ibm/ibmvnic.c 	crq.get_vpd.cmd = GET_VPD;
crq               982 drivers/net/ethernet/ibm/ibmvnic.c 	crq.get_vpd.ioba = cpu_to_be32(adapter->vpd->dma_addr);
crq               983 drivers/net/ethernet/ibm/ibmvnic.c 	crq.get_vpd.len = cpu_to_be32((u32)adapter->vpd->len);
crq               984 drivers/net/ethernet/ibm/ibmvnic.c 	rc = ibmvnic_send_crq(adapter, &crq);
crq              1637 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              1639 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              1640 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.first = IBMVNIC_CRQ_CMD;
crq              1641 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.cmd = REQUEST_CAPABILITY;
crq              1649 drivers/net/ethernet/ibm/ibmvnic.c 			memset(&crq, 0, sizeof(crq));
crq              1650 drivers/net/ethernet/ibm/ibmvnic.c 			crq.multicast_ctrl.first = IBMVNIC_CRQ_CMD;
crq              1651 drivers/net/ethernet/ibm/ibmvnic.c 			crq.multicast_ctrl.cmd = MULTICAST_CTRL;
crq              1652 drivers/net/ethernet/ibm/ibmvnic.c 			crq.multicast_ctrl.flags = IBMVNIC_ENABLE_ALL;
crq              1653 drivers/net/ethernet/ibm/ibmvnic.c 			ibmvnic_send_crq(adapter, &crq);
crq              1656 drivers/net/ethernet/ibm/ibmvnic.c 			memset(&crq, 0, sizeof(crq));
crq              1657 drivers/net/ethernet/ibm/ibmvnic.c 			crq.multicast_ctrl.first = IBMVNIC_CRQ_CMD;
crq              1658 drivers/net/ethernet/ibm/ibmvnic.c 			crq.multicast_ctrl.cmd = MULTICAST_CTRL;
crq              1659 drivers/net/ethernet/ibm/ibmvnic.c 			crq.multicast_ctrl.flags = IBMVNIC_DISABLE_ALL;
crq              1660 drivers/net/ethernet/ibm/ibmvnic.c 			ibmvnic_send_crq(adapter, &crq);
crq              1664 drivers/net/ethernet/ibm/ibmvnic.c 				memset(&crq, 0, sizeof(crq));
crq              1665 drivers/net/ethernet/ibm/ibmvnic.c 				crq.multicast_ctrl.first = IBMVNIC_CRQ_CMD;
crq              1666 drivers/net/ethernet/ibm/ibmvnic.c 				crq.multicast_ctrl.cmd = MULTICAST_CTRL;
crq              1667 drivers/net/ethernet/ibm/ibmvnic.c 				crq.multicast_ctrl.flags = IBMVNIC_ENABLE_MC;
crq              1668 drivers/net/ethernet/ibm/ibmvnic.c 				ether_addr_copy(&crq.multicast_ctrl.mac_addr[0],
crq              1670 drivers/net/ethernet/ibm/ibmvnic.c 				ibmvnic_send_crq(adapter, &crq);
crq              1679 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              1687 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              1688 drivers/net/ethernet/ibm/ibmvnic.c 	crq.change_mac_addr.first = IBMVNIC_CRQ_CMD;
crq              1689 drivers/net/ethernet/ibm/ibmvnic.c 	crq.change_mac_addr.cmd = CHANGE_MAC_ADDR;
crq              1690 drivers/net/ethernet/ibm/ibmvnic.c 	ether_addr_copy(&crq.change_mac_addr.mac_addr[0], dev_addr);
crq              1693 drivers/net/ethernet/ibm/ibmvnic.c 	rc = ibmvnic_send_crq(adapter, &crq);
crq              2595 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              2599 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              2600 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_statistics.first = IBMVNIC_CRQ_CMD;
crq              2601 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_statistics.cmd = REQUEST_STATISTICS;
crq              2602 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_statistics.ioba = cpu_to_be32(adapter->stats_token);
crq              2603 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_statistics.len =
crq              2608 drivers/net/ethernet/ibm/ibmvnic.c 	rc = ibmvnic_send_crq(adapter, &crq);
crq              3165 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3234 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3235 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.first = IBMVNIC_CRQ_CMD;
crq              3236 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.cmd = REQUEST_CAPABILITY;
crq              3238 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.capability = cpu_to_be16(REQ_TX_QUEUES);
crq              3239 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.number = cpu_to_be64(adapter->req_tx_queues);
crq              3241 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3243 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.capability = cpu_to_be16(REQ_RX_QUEUES);
crq              3244 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.number = cpu_to_be64(adapter->req_rx_queues);
crq              3246 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3248 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.capability = cpu_to_be16(REQ_RX_ADD_QUEUES);
crq              3249 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.number = cpu_to_be64(adapter->req_rx_add_queues);
crq              3251 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3253 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.capability =
crq              3255 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.number =
crq              3258 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3260 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.capability =
crq              3262 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.number =
crq              3265 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3267 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.capability = cpu_to_be16(REQ_MTU);
crq              3268 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_capability.number = cpu_to_be64(adapter->req_mtu);
crq              3270 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3274 drivers/net/ethernet/ibm/ibmvnic.c 			crq.request_capability.capability =
crq              3276 drivers/net/ethernet/ibm/ibmvnic.c 			crq.request_capability.number = cpu_to_be64(1);
crq              3278 drivers/net/ethernet/ibm/ibmvnic.c 			ibmvnic_send_crq(adapter, &crq);
crq              3281 drivers/net/ethernet/ibm/ibmvnic.c 		crq.request_capability.capability =
crq              3283 drivers/net/ethernet/ibm/ibmvnic.c 		crq.request_capability.number = cpu_to_be64(0);
crq              3285 drivers/net/ethernet/ibm/ibmvnic.c 		ibmvnic_send_crq(adapter, &crq);
crq              3321 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_crq_queue *queue = &adapter->crq;
crq              3322 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq *crq;
crq              3324 drivers/net/ethernet/ibm/ibmvnic.c 	crq = &queue->msgs[queue->cur];
crq              3325 drivers/net/ethernet/ibm/ibmvnic.c 	if (crq->generic.first & IBMVNIC_CRQ_CMD_RSP) {
crq              3329 drivers/net/ethernet/ibm/ibmvnic.c 		crq = NULL;
crq              3332 drivers/net/ethernet/ibm/ibmvnic.c 	return crq;
crq              3406 drivers/net/ethernet/ibm/ibmvnic.c 			    union ibmvnic_crq *crq)
crq              3410 drivers/net/ethernet/ibm/ibmvnic.c 	u64 *u64_crq = (u64 *)crq;
crq              3417 drivers/net/ethernet/ibm/ibmvnic.c 	if (!adapter->crq.active &&
crq              3418 drivers/net/ethernet/ibm/ibmvnic.c 	    crq->generic.first != IBMVNIC_CRQ_INIT_CMD) {
crq              3445 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3447 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3448 drivers/net/ethernet/ibm/ibmvnic.c 	crq.generic.first = IBMVNIC_CRQ_INIT_CMD;
crq              3449 drivers/net/ethernet/ibm/ibmvnic.c 	crq.generic.cmd = IBMVNIC_CRQ_INIT;
crq              3452 drivers/net/ethernet/ibm/ibmvnic.c 	return ibmvnic_send_crq(adapter, &crq);
crq              3457 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3459 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3460 drivers/net/ethernet/ibm/ibmvnic.c 	crq.version_exchange.first = IBMVNIC_CRQ_CMD;
crq              3461 drivers/net/ethernet/ibm/ibmvnic.c 	crq.version_exchange.cmd = VERSION_EXCHANGE;
crq              3462 drivers/net/ethernet/ibm/ibmvnic.c 	crq.version_exchange.version = cpu_to_be16(ibmvnic_version);
crq              3464 drivers/net/ethernet/ibm/ibmvnic.c 	return ibmvnic_send_crq(adapter, &crq);
crq              3524 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3628 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3629 drivers/net/ethernet/ibm/ibmvnic.c 	crq.login.first = IBMVNIC_CRQ_CMD;
crq              3630 drivers/net/ethernet/ibm/ibmvnic.c 	crq.login.cmd = LOGIN;
crq              3631 drivers/net/ethernet/ibm/ibmvnic.c 	crq.login.ioba = cpu_to_be32(buffer_token);
crq              3632 drivers/net/ethernet/ibm/ibmvnic.c 	crq.login.len = cpu_to_be32(buffer_size);
crq              3633 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3650 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3652 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3653 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_map.first = IBMVNIC_CRQ_CMD;
crq              3654 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_map.cmd = REQUEST_MAP;
crq              3655 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_map.map_id = map_id;
crq              3656 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_map.ioba = cpu_to_be32(addr);
crq              3657 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_map.len = cpu_to_be32(len);
crq              3658 drivers/net/ethernet/ibm/ibmvnic.c 	return ibmvnic_send_crq(adapter, &crq);
crq              3663 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3665 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3666 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_unmap.first = IBMVNIC_CRQ_CMD;
crq              3667 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_unmap.cmd = REQUEST_UNMAP;
crq              3668 drivers/net/ethernet/ibm/ibmvnic.c 	crq.request_unmap.map_id = map_id;
crq              3669 drivers/net/ethernet/ibm/ibmvnic.c 	return ibmvnic_send_crq(adapter, &crq);
crq              3674 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3676 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3677 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_map.first = IBMVNIC_CRQ_CMD;
crq              3678 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_map.cmd = QUERY_MAP;
crq              3679 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3685 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3688 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3689 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.first = IBMVNIC_CRQ_CMD;
crq              3690 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.cmd = QUERY_CAPABILITY;
crq              3692 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MIN_TX_QUEUES);
crq              3694 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3696 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MIN_RX_QUEUES);
crq              3698 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3700 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MIN_RX_ADD_QUEUES);
crq              3702 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3704 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MAX_TX_QUEUES);
crq              3706 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3708 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MAX_RX_QUEUES);
crq              3710 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3712 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MAX_RX_ADD_QUEUES);
crq              3714 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3716 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability =
crq              3719 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3721 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability =
crq              3724 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3726 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability =
crq              3729 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3731 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability =
crq              3734 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3736 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(TCP_IP_OFFLOAD);
crq              3738 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3740 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(PROMISC_SUPPORTED);
crq              3742 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3744 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MIN_MTU);
crq              3746 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3748 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MAX_MTU);
crq              3750 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3752 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MAX_MULTICAST_FILTERS);
crq              3754 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3756 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(VLAN_HEADER_INSERTION);
crq              3758 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3760 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(RX_VLAN_HEADER_INSERTION);
crq              3762 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3764 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(MAX_TX_SG_ENTRIES);
crq              3766 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3768 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(RX_SG_SUPPORTED);
crq              3770 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3772 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(OPT_TX_COMP_SUB_QUEUES);
crq              3774 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3776 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(OPT_RX_COMP_QUEUES);
crq              3778 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3780 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability =
crq              3783 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3785 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability =
crq              3788 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3790 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability =
crq              3793 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3795 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_capability.capability = cpu_to_be16(TX_RX_DESC_REQ);
crq              3797 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              3800 drivers/net/ethernet/ibm/ibmvnic.c static void handle_vpd_size_rsp(union ibmvnic_crq *crq,
crq              3805 drivers/net/ethernet/ibm/ibmvnic.c 	if (crq->get_vpd_size_rsp.rc.code) {
crq              3807 drivers/net/ethernet/ibm/ibmvnic.c 			crq->get_vpd_size_rsp.rc.code);
crq              3812 drivers/net/ethernet/ibm/ibmvnic.c 	adapter->vpd->len = be64_to_cpu(crq->get_vpd_size_rsp.len);
crq              3816 drivers/net/ethernet/ibm/ibmvnic.c static void handle_vpd_rsp(union ibmvnic_crq *crq,
crq              3828 drivers/net/ethernet/ibm/ibmvnic.c 	if (crq->get_vpd_rsp.rc.code) {
crq              3830 drivers/net/ethernet/ibm/ibmvnic.c 			crq->get_vpd_rsp.rc.code);
crq              3870 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              3981 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              3982 drivers/net/ethernet/ibm/ibmvnic.c 	crq.control_ip_offload.first = IBMVNIC_CRQ_CMD;
crq              3983 drivers/net/ethernet/ibm/ibmvnic.c 	crq.control_ip_offload.cmd = CONTROL_IP_OFFLOAD;
crq              3984 drivers/net/ethernet/ibm/ibmvnic.c 	crq.control_ip_offload.len =
crq              3986 drivers/net/ethernet/ibm/ibmvnic.c 	crq.control_ip_offload.ioba = cpu_to_be32(adapter->ip_offload_ctrl_tok);
crq              3987 drivers/net/ethernet/ibm/ibmvnic.c 	ibmvnic_send_crq(adapter, &crq);
crq              4012 drivers/net/ethernet/ibm/ibmvnic.c static void handle_error_indication(union ibmvnic_crq *crq,
crq              4018 drivers/net/ethernet/ibm/ibmvnic.c 	cause = be16_to_cpu(crq->error_indication.error_cause);
crq              4022 drivers/net/ethernet/ibm/ibmvnic.c 			     crq->error_indication.flags
crq              4026 drivers/net/ethernet/ibm/ibmvnic.c 	if (crq->error_indication.flags & IBMVNIC_FATAL_ERROR)
crq              4032 drivers/net/ethernet/ibm/ibmvnic.c static int handle_change_mac_rsp(union ibmvnic_crq *crq,
crq              4039 drivers/net/ethernet/ibm/ibmvnic.c 	rc = crq->change_mac_addr_rsp.rc.code;
crq              4045 drivers/net/ethernet/ibm/ibmvnic.c 			&crq->change_mac_addr_rsp.mac_addr[0]);
crq              4051 drivers/net/ethernet/ibm/ibmvnic.c static void handle_request_cap_rsp(union ibmvnic_crq *crq,
crq              4059 drivers/net/ethernet/ibm/ibmvnic.c 	switch (be16_to_cpu(crq->request_capability_rsp.capability)) {
crq              4090 drivers/net/ethernet/ibm/ibmvnic.c 			crq->request_capability.capability);
crq              4094 drivers/net/ethernet/ibm/ibmvnic.c 	switch (crq->request_capability_rsp.rc.code) {
crq              4100 drivers/net/ethernet/ibm/ibmvnic.c 			 (long int)be64_to_cpu(crq->request_capability_rsp.
crq              4103 drivers/net/ethernet/ibm/ibmvnic.c 		if (be16_to_cpu(crq->request_capability_rsp.capability) ==
crq              4110 drivers/net/ethernet/ibm/ibmvnic.c 				be64_to_cpu(crq->request_capability_rsp.number);
crq              4117 drivers/net/ethernet/ibm/ibmvnic.c 			crq->request_capability_rsp.rc.code);
crq              4197 drivers/net/ethernet/ibm/ibmvnic.c static void handle_request_unmap_rsp(union ibmvnic_crq *crq,
crq              4203 drivers/net/ethernet/ibm/ibmvnic.c 	rc = crq->request_unmap_rsp.rc.code;
crq              4208 drivers/net/ethernet/ibm/ibmvnic.c static void handle_query_map_rsp(union ibmvnic_crq *crq,
crq              4215 drivers/net/ethernet/ibm/ibmvnic.c 	rc = crq->query_map_rsp.rc.code;
crq              4221 drivers/net/ethernet/ibm/ibmvnic.c 		   crq->query_map_rsp.page_size, crq->query_map_rsp.tot_pages,
crq              4222 drivers/net/ethernet/ibm/ibmvnic.c 		   crq->query_map_rsp.free_pages);
crq              4225 drivers/net/ethernet/ibm/ibmvnic.c static void handle_query_cap_rsp(union ibmvnic_crq *crq,
crq              4235 drivers/net/ethernet/ibm/ibmvnic.c 	rc = crq->query_capability.rc.code;
crq              4241 drivers/net/ethernet/ibm/ibmvnic.c 	switch (be16_to_cpu(crq->query_capability.capability)) {
crq              4244 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4250 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4256 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4262 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4268 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4274 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4280 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4286 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4292 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4298 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4304 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4310 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4315 drivers/net/ethernet/ibm/ibmvnic.c 		adapter->min_mtu = be64_to_cpu(crq->query_capability.number);
crq              4320 drivers/net/ethernet/ibm/ibmvnic.c 		adapter->max_mtu = be64_to_cpu(crq->query_capability.number);
crq              4326 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4332 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4340 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4346 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4352 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4358 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4364 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4370 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4376 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4382 drivers/net/ethernet/ibm/ibmvnic.c 		    be64_to_cpu(crq->query_capability.number);
crq              4387 drivers/net/ethernet/ibm/ibmvnic.c 		adapter->tx_rx_desc_req = crq->query_capability.number;
crq              4394 drivers/net/ethernet/ibm/ibmvnic.c 			   crq->query_capability.capability);
crq              4406 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq crq;
crq              4409 drivers/net/ethernet/ibm/ibmvnic.c 	memset(&crq, 0, sizeof(crq));
crq              4410 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_phys_parms.first = IBMVNIC_CRQ_CMD;
crq              4411 drivers/net/ethernet/ibm/ibmvnic.c 	crq.query_phys_parms.cmd = QUERY_PHYS_PARMS;
crq              4413 drivers/net/ethernet/ibm/ibmvnic.c 	rc = ibmvnic_send_crq(adapter, &crq);
crq              4420 drivers/net/ethernet/ibm/ibmvnic.c static int handle_query_phys_parms_rsp(union ibmvnic_crq *crq,
crq              4425 drivers/net/ethernet/ibm/ibmvnic.c 	__be32 rspeed = cpu_to_be32(crq->query_phys_parms_rsp.speed);
crq              4427 drivers/net/ethernet/ibm/ibmvnic.c 	rc = crq->query_phys_parms_rsp.rc.code;
crq              4462 drivers/net/ethernet/ibm/ibmvnic.c 	if (crq->query_phys_parms_rsp.flags1 & IBMVNIC_FULL_DUPLEX)
crq              4464 drivers/net/ethernet/ibm/ibmvnic.c 	else if (crq->query_phys_parms_rsp.flags1 & IBMVNIC_HALF_DUPLEX)
crq              4472 drivers/net/ethernet/ibm/ibmvnic.c static void ibmvnic_handle_crq(union ibmvnic_crq *crq,
crq              4475 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_generic_crq *gen_crq = &crq->generic;
crq              4478 drivers/net/ethernet/ibm/ibmvnic.c 	u64 *u64_crq = (u64 *)crq;
crq              4499 drivers/net/ethernet/ibm/ibmvnic.c 			adapter->crq.active = true;
crq              4508 drivers/net/ethernet/ibm/ibmvnic.c 		adapter->crq.active = false;
crq              4534 drivers/net/ethernet/ibm/ibmvnic.c 		rc = crq->version_exchange_rsp.rc.code;
crq              4540 drivers/net/ethernet/ibm/ibmvnic.c 			    be16_to_cpu(crq->version_exchange_rsp.version);
crq              4546 drivers/net/ethernet/ibm/ibmvnic.c 		handle_query_cap_rsp(crq, adapter);
crq              4549 drivers/net/ethernet/ibm/ibmvnic.c 		handle_query_map_rsp(crq, adapter);
crq              4552 drivers/net/ethernet/ibm/ibmvnic.c 		adapter->fw_done_rc = crq->request_map_rsp.rc.code;
crq              4556 drivers/net/ethernet/ibm/ibmvnic.c 		handle_request_unmap_rsp(crq, adapter);
crq              4559 drivers/net/ethernet/ibm/ibmvnic.c 		handle_request_cap_rsp(crq, adapter);
crq              4563 drivers/net/ethernet/ibm/ibmvnic.c 		handle_login_rsp(crq, adapter);
crq              4568 drivers/net/ethernet/ibm/ibmvnic.c 			   crq->logical_link_state_rsp.link_state,
crq              4569 drivers/net/ethernet/ibm/ibmvnic.c 			   crq->logical_link_state_rsp.rc.code);
crq              4571 drivers/net/ethernet/ibm/ibmvnic.c 		    crq->logical_link_state_rsp.link_state;
crq              4572 drivers/net/ethernet/ibm/ibmvnic.c 		adapter->init_done_rc = crq->logical_link_state_rsp.rc.code;
crq              4578 drivers/net/ethernet/ibm/ibmvnic.c 		    crq->link_state_indication.phys_link_state;
crq              4580 drivers/net/ethernet/ibm/ibmvnic.c 		    crq->link_state_indication.logical_link_state;
crq              4588 drivers/net/ethernet/ibm/ibmvnic.c 		adapter->fw_done_rc = handle_change_mac_rsp(crq, adapter);
crq              4592 drivers/net/ethernet/ibm/ibmvnic.c 		handle_error_indication(crq, adapter);
crq              4617 drivers/net/ethernet/ibm/ibmvnic.c 		handle_vpd_size_rsp(crq, adapter);
crq              4620 drivers/net/ethernet/ibm/ibmvnic.c 		handle_vpd_rsp(crq, adapter);
crq              4623 drivers/net/ethernet/ibm/ibmvnic.c 		adapter->fw_done_rc = handle_query_phys_parms_rsp(crq, adapter);
crq              4643 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_crq_queue *queue = &adapter->crq;
crq              4644 drivers/net/ethernet/ibm/ibmvnic.c 	union ibmvnic_crq *crq;
crq              4651 drivers/net/ethernet/ibm/ibmvnic.c 		while ((crq = ibmvnic_next_crq(adapter)) != NULL) {
crq              4652 drivers/net/ethernet/ibm/ibmvnic.c 			ibmvnic_handle_crq(crq, adapter);
crq              4653 drivers/net/ethernet/ibm/ibmvnic.c 			crq->generic.first = 0;
crq              4687 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_crq_queue *crq = &adapter->crq;
crq              4698 drivers/net/ethernet/ibm/ibmvnic.c 	memset(crq->msgs, 0, PAGE_SIZE);
crq              4699 drivers/net/ethernet/ibm/ibmvnic.c 	crq->cur = 0;
crq              4700 drivers/net/ethernet/ibm/ibmvnic.c 	crq->active = false;
crq              4704 drivers/net/ethernet/ibm/ibmvnic.c 				crq->msg_token, PAGE_SIZE);
crq              4717 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_crq_queue *crq = &adapter->crq;
crq              4721 drivers/net/ethernet/ibm/ibmvnic.c 	if (!crq->msgs)
crq              4731 drivers/net/ethernet/ibm/ibmvnic.c 	dma_unmap_single(&vdev->dev, crq->msg_token, PAGE_SIZE,
crq              4733 drivers/net/ethernet/ibm/ibmvnic.c 	free_page((unsigned long)crq->msgs);
crq              4734 drivers/net/ethernet/ibm/ibmvnic.c 	crq->msgs = NULL;
crq              4735 drivers/net/ethernet/ibm/ibmvnic.c 	crq->active = false;
crq              4740 drivers/net/ethernet/ibm/ibmvnic.c 	struct ibmvnic_crq_queue *crq = &adapter->crq;
crq              4745 drivers/net/ethernet/ibm/ibmvnic.c 	if (crq->msgs)
crq              4748 drivers/net/ethernet/ibm/ibmvnic.c 	crq->msgs = (union ibmvnic_crq *)get_zeroed_page(GFP_KERNEL);
crq              4751 drivers/net/ethernet/ibm/ibmvnic.c 	if (!crq->msgs)
crq              4754 drivers/net/ethernet/ibm/ibmvnic.c 	crq->size = PAGE_SIZE / sizeof(*crq->msgs);
crq              4755 drivers/net/ethernet/ibm/ibmvnic.c 	crq->msg_token = dma_map_single(dev, crq->msgs, PAGE_SIZE,
crq              4757 drivers/net/ethernet/ibm/ibmvnic.c 	if (dma_mapping_error(dev, crq->msg_token))
crq              4761 drivers/net/ethernet/ibm/ibmvnic.c 				crq->msg_token, PAGE_SIZE);
crq              4781 drivers/net/ethernet/ibm/ibmvnic.c 	snprintf(crq->name, sizeof(crq->name), "ibmvnic-%x",
crq              4783 drivers/net/ethernet/ibm/ibmvnic.c 	rc = request_irq(vdev->irq, ibmvnic_interrupt, 0, crq->name, adapter);
crq              4796 drivers/net/ethernet/ibm/ibmvnic.c 	crq->cur = 0;
crq              4797 drivers/net/ethernet/ibm/ibmvnic.c 	spin_lock_init(&crq->lock);
crq              4807 drivers/net/ethernet/ibm/ibmvnic.c 	dma_unmap_single(dev, crq->msg_token, PAGE_SIZE, DMA_BIDIRECTIONAL);
crq              4809 drivers/net/ethernet/ibm/ibmvnic.c 	free_page((unsigned long)crq->msgs);
crq              4810 drivers/net/ethernet/ibm/ibmvnic.c 	crq->msgs = NULL;
crq               969 drivers/net/ethernet/ibm/ibmvnic.h 	struct ibmvnic_crq_queue crq;
crq               155 drivers/scsi/ibmvscsi/ibmvfc.c 	entry->fmt = evt->crq.format;
crq               188 drivers/scsi/ibmvscsi/ibmvfc.c 	entry->fmt = evt->crq.format;
crq               646 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_crq_queue *crq = &vhost->crq;
crq               659 drivers/scsi/ibmvscsi/ibmvfc.c 	dma_unmap_single(vhost->dev, crq->msg_token, PAGE_SIZE, DMA_BIDIRECTIONAL);
crq               660 drivers/scsi/ibmvscsi/ibmvfc.c 	free_page((unsigned long)crq->msgs);
crq               700 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_crq_queue *crq = &vhost->crq;
crq               714 drivers/scsi/ibmvscsi/ibmvfc.c 	memset(crq->msgs, 0, PAGE_SIZE);
crq               715 drivers/scsi/ibmvscsi/ibmvfc.c 	crq->cur = 0;
crq               719 drivers/scsi/ibmvscsi/ibmvfc.c 				crq->msg_token, PAGE_SIZE);
crq              1218 drivers/scsi/ibmvscsi/ibmvfc.c 		evt->crq.valid = 0x80;
crq              1219 drivers/scsi/ibmvscsi/ibmvfc.c 		evt->crq.ioba = cpu_to_be64(pool->iu_token + (sizeof(*evt->xfer_iu) * i));
crq              1286 drivers/scsi/ibmvscsi/ibmvfc.c 	evt->crq.format = format;
crq              1402 drivers/scsi/ibmvscsi/ibmvfc.c 	__be64 *crq_as_u64 = (__be64 *) &evt->crq;
crq              1407 drivers/scsi/ibmvscsi/ibmvfc.c 	if (evt->crq.format == IBMVFC_CMD_FORMAT)
crq              1409 drivers/scsi/ibmvscsi/ibmvfc.c 	else if (evt->crq.format == IBMVFC_MAD_FORMAT)
crq              1627 drivers/scsi/ibmvscsi/ibmvfc.c 	vfc_cmd->resp.va = cpu_to_be64(be64_to_cpu(evt->crq.ioba) + offsetof(struct ibmvfc_cmd, rsp));
crq              1899 drivers/scsi/ibmvscsi/ibmvfc.c 	mad->cmd_ioba.va = cpu_to_be64(be64_to_cpu(evt->crq.ioba) +
crq              1978 drivers/scsi/ibmvscsi/ibmvfc.c 		tmf->resp.va = cpu_to_be64(be64_to_cpu(evt->crq.ioba) + offsetof(struct ibmvfc_cmd, rsp));
crq              2243 drivers/scsi/ibmvscsi/ibmvfc.c 	if (evt->crq.format == IBMVFC_CMD_FORMAT &&
crq              2308 drivers/scsi/ibmvscsi/ibmvfc.c 		tmf->resp.va = cpu_to_be64(be64_to_cpu(evt->crq.ioba) + offsetof(struct ibmvfc_cmd, rsp));
crq              2626 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_handle_async(struct ibmvfc_async_crq *crq,
crq              2629 drivers/scsi/ibmvscsi/ibmvfc.c 	const struct ibmvfc_async_desc *desc = ibmvfc_get_ae_desc(be64_to_cpu(crq->event));
crq              2633 drivers/scsi/ibmvscsi/ibmvfc.c 		   " node_name: %llx%s\n", desc->desc, be64_to_cpu(crq->scsi_id),
crq              2634 drivers/scsi/ibmvscsi/ibmvfc.c 		   be64_to_cpu(crq->wwpn), be64_to_cpu(crq->node_name),
crq              2635 drivers/scsi/ibmvscsi/ibmvfc.c 		   ibmvfc_get_link_state(crq->link_state));
crq              2637 drivers/scsi/ibmvscsi/ibmvfc.c 	switch (be64_to_cpu(crq->event)) {
crq              2639 drivers/scsi/ibmvscsi/ibmvfc.c 		switch (crq->link_state) {
crq              2678 drivers/scsi/ibmvscsi/ibmvfc.c 			if (!crq->scsi_id && !crq->wwpn && !crq->node_name)
crq              2680 drivers/scsi/ibmvscsi/ibmvfc.c 			if (crq->scsi_id && cpu_to_be64(tgt->scsi_id) != crq->scsi_id)
crq              2682 drivers/scsi/ibmvscsi/ibmvfc.c 			if (crq->wwpn && cpu_to_be64(tgt->ids.port_name) != crq->wwpn)
crq              2684 drivers/scsi/ibmvscsi/ibmvfc.c 			if (crq->node_name && cpu_to_be64(tgt->ids.node_name) != crq->node_name)
crq              2686 drivers/scsi/ibmvscsi/ibmvfc.c 			if (tgt->need_login && be64_to_cpu(crq->event) == IBMVFC_AE_ELS_LOGO)
crq              2688 drivers/scsi/ibmvscsi/ibmvfc.c 			if (!tgt->need_login || be64_to_cpu(crq->event) == IBMVFC_AE_ELS_PLOGI) {
crq              2705 drivers/scsi/ibmvscsi/ibmvfc.c 		dev_err(vhost->dev, "Unknown async event received: %lld\n", crq->event);
crq              2716 drivers/scsi/ibmvscsi/ibmvfc.c static void ibmvfc_handle_crq(struct ibmvfc_crq *crq, struct ibmvfc_host *vhost)
crq              2719 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_event *evt = (struct ibmvfc_event *)be64_to_cpu(crq->ioba);
crq              2721 drivers/scsi/ibmvscsi/ibmvfc.c 	switch (crq->valid) {
crq              2723 drivers/scsi/ibmvscsi/ibmvfc.c 		switch (crq->format) {
crq              2738 drivers/scsi/ibmvscsi/ibmvfc.c 			dev_err(vhost->dev, "Unknown crq message type: %d\n", crq->format);
crq              2745 drivers/scsi/ibmvscsi/ibmvfc.c 		if (crq->format == IBMVFC_PARTITION_MIGRATED) {
crq              2752 drivers/scsi/ibmvscsi/ibmvfc.c 		} else if (crq->format == IBMVFC_PARTNER_FAILED || crq->format == IBMVFC_PARTNER_DEREGISTER) {
crq              2753 drivers/scsi/ibmvscsi/ibmvfc.c 			dev_err(vhost->dev, "Host partner adapter deregistered or failed (rc=%d)\n", crq->format);
crq              2758 drivers/scsi/ibmvscsi/ibmvfc.c 			dev_err(vhost->dev, "Received unknown transport event from partner (rc=%d)\n", crq->format);
crq              2764 drivers/scsi/ibmvscsi/ibmvfc.c 		dev_err(vhost->dev, "Got an invalid message type 0x%02x\n", crq->valid);
crq              2768 drivers/scsi/ibmvscsi/ibmvfc.c 	if (crq->format == IBMVFC_ASYNC_EVENT)
crq              2777 drivers/scsi/ibmvscsi/ibmvfc.c 			crq->ioba);
crq              2783 drivers/scsi/ibmvscsi/ibmvfc.c 			crq->ioba);
crq              3108 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_async_crq *crq;
crq              3110 drivers/scsi/ibmvscsi/ibmvfc.c 	crq = &async_crq->msgs[async_crq->cur];
crq              3111 drivers/scsi/ibmvscsi/ibmvfc.c 	if (crq->valid & 0x80) {
crq              3116 drivers/scsi/ibmvscsi/ibmvfc.c 		crq = NULL;
crq              3118 drivers/scsi/ibmvscsi/ibmvfc.c 	return crq;
crq              3130 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_crq_queue *queue = &vhost->crq;
crq              3131 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_crq *crq;
crq              3133 drivers/scsi/ibmvscsi/ibmvfc.c 	crq = &queue->msgs[queue->cur];
crq              3134 drivers/scsi/ibmvscsi/ibmvfc.c 	if (crq->valid & 0x80) {
crq              3139 drivers/scsi/ibmvscsi/ibmvfc.c 		crq = NULL;
crq              3141 drivers/scsi/ibmvscsi/ibmvfc.c 	return crq;
crq              3175 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_crq *crq;
crq              3190 drivers/scsi/ibmvscsi/ibmvfc.c 		while ((crq = ibmvfc_next_crq(vhost)) != NULL) {
crq              3191 drivers/scsi/ibmvscsi/ibmvfc.c 			ibmvfc_handle_crq(crq, vhost);
crq              3192 drivers/scsi/ibmvscsi/ibmvfc.c 			crq->valid = 0;
crq              3202 drivers/scsi/ibmvscsi/ibmvfc.c 		} else if ((crq = ibmvfc_next_crq(vhost)) != NULL) {
crq              3204 drivers/scsi/ibmvscsi/ibmvfc.c 			ibmvfc_handle_crq(crq, vhost);
crq              3205 drivers/scsi/ibmvscsi/ibmvfc.c 			crq->valid = 0;
crq              3638 drivers/scsi/ibmvscsi/ibmvfc.c 	mad->cmd_ioba.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
crq              3643 drivers/scsi/ibmvscsi/ibmvfc.c 	mad->iu.cmd.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
crq              3647 drivers/scsi/ibmvscsi/ibmvfc.c 	mad->iu.rsp.va = cpu_to_be64((u64)be64_to_cpu(evt->crq.ioba) +
crq              4508 drivers/scsi/ibmvscsi/ibmvfc.c 	struct ibmvfc_crq_queue *crq = &vhost->crq;
crq              4511 drivers/scsi/ibmvscsi/ibmvfc.c 	crq->msgs = (struct ibmvfc_crq *)get_zeroed_page(GFP_KERNEL);
crq              4513 drivers/scsi/ibmvscsi/ibmvfc.c 	if (!crq->msgs)
crq              4516 drivers/scsi/ibmvscsi/ibmvfc.c 	crq->size = PAGE_SIZE / sizeof(*crq->msgs);
crq              4517 drivers/scsi/ibmvscsi/ibmvfc.c 	crq->msg_token = dma_map_single(dev, crq->msgs,
crq              4520 drivers/scsi/ibmvscsi/ibmvfc.c 	if (dma_mapping_error(dev, crq->msg_token))
crq              4524 drivers/scsi/ibmvscsi/ibmvfc.c 					crq->msg_token, PAGE_SIZE);
crq              4551 drivers/scsi/ibmvscsi/ibmvfc.c 	crq->cur = 0;
crq              4561 drivers/scsi/ibmvscsi/ibmvfc.c 	dma_unmap_single(dev, crq->msg_token, PAGE_SIZE, DMA_BIDIRECTIONAL);
crq              4563 drivers/scsi/ibmvscsi/ibmvfc.c 	free_page((unsigned long)crq->msgs);
crq               633 drivers/scsi/ibmvscsi/ibmvfc.h 	struct ibmvfc_crq crq;
crq               696 drivers/scsi/ibmvscsi/ibmvfc.h 	struct ibmvfc_crq_queue crq;
crq               109 drivers/scsi/ibmvscsi/ibmvscsi.c static void ibmvscsi_handle_crq(struct viosrp_crq *crq,
crq               168 drivers/scsi/ibmvscsi/ibmvscsi.c 	struct viosrp_crq *crq;
crq               172 drivers/scsi/ibmvscsi/ibmvscsi.c 	crq = &queue->msgs[queue->cur];
crq               173 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (crq->valid != VIOSRP_CRQ_FREE) {
crq               182 drivers/scsi/ibmvscsi/ibmvscsi.c 		crq = NULL;
crq               185 drivers/scsi/ibmvscsi/ibmvscsi.c 	return crq;
crq               215 drivers/scsi/ibmvscsi/ibmvscsi.c 	struct viosrp_crq *crq;
crq               220 drivers/scsi/ibmvscsi/ibmvscsi.c 		while ((crq = crq_queue_next_crq(&hostdata->queue)) != NULL) {
crq               221 drivers/scsi/ibmvscsi/ibmvscsi.c 			ibmvscsi_handle_crq(crq, hostdata);
crq               222 drivers/scsi/ibmvscsi/ibmvscsi.c 			crq->valid = VIOSRP_CRQ_FREE;
crq               227 drivers/scsi/ibmvscsi/ibmvscsi.c 		crq = crq_queue_next_crq(&hostdata->queue);
crq               228 drivers/scsi/ibmvscsi/ibmvscsi.c 		if (crq != NULL) {
crq               230 drivers/scsi/ibmvscsi/ibmvscsi.c 			ibmvscsi_handle_crq(crq, hostdata);
crq               231 drivers/scsi/ibmvscsi/ibmvscsi.c 			crq->valid = VIOSRP_CRQ_FREE;
crq               463 drivers/scsi/ibmvscsi/ibmvscsi.c 		memset(&evt->crq, 0x00, sizeof(evt->crq));
crq               465 drivers/scsi/ibmvscsi/ibmvscsi.c 		evt->crq.valid = VIOSRP_CRQ_CMD_RSP;
crq               466 drivers/scsi/ibmvscsi/ibmvscsi.c 		evt->crq.IU_length = cpu_to_be16(sizeof(*evt->xfer_iu));
crq               467 drivers/scsi/ibmvscsi/ibmvscsi.c 		evt->crq.IU_data_ptr = cpu_to_be64(pool->iu_token +
crq               589 drivers/scsi/ibmvscsi/ibmvscsi.c 	evt_struct->crq.format = format;
crq               590 drivers/scsi/ibmvscsi/ibmvscsi.c 	evt_struct->crq.timeout = cpu_to_be16(timeout);
crq               798 drivers/scsi/ibmvscsi/ibmvscsi.c 		} else if (evt->done && evt->crq.format != VIOSRP_MAD_FORMAT &&
crq               855 drivers/scsi/ibmvscsi/ibmvscsi.c 	__be64 *crq_as_u64 = (__be64 *)&evt_struct->crq;
crq               866 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (evt_struct->crq.format == VIOSRP_SRP_FORMAT) {
crq              1069 drivers/scsi/ibmvscsi/ibmvscsi.c 			cpu_to_be64(be64_to_cpu(evt_struct->crq.IU_data_ptr) +
crq              1747 drivers/scsi/ibmvscsi/ibmvscsi.c static void ibmvscsi_handle_crq(struct viosrp_crq *crq,
crq              1754 drivers/scsi/ibmvscsi/ibmvscsi.c 			(__force struct srp_event_struct *)crq->IU_data_ptr;
crq              1755 drivers/scsi/ibmvscsi/ibmvscsi.c 	switch (crq->valid) {
crq              1757 drivers/scsi/ibmvscsi/ibmvscsi.c 		switch (crq->format) {
crq              1777 drivers/scsi/ibmvscsi/ibmvscsi.c 			dev_err(hostdata->dev, "unknown crq message type: %d\n", crq->format);
crq              1783 drivers/scsi/ibmvscsi/ibmvscsi.c 		if (crq->format == 0x06) {
crq              1792 drivers/scsi/ibmvscsi/ibmvscsi.c 				crq->format);
crq              1800 drivers/scsi/ibmvscsi/ibmvscsi.c 			crq->valid);
crq              1820 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (crq->format == VIOSRP_SRP_FORMAT)
crq              1826 drivers/scsi/ibmvscsi/ibmvscsi.c 	if ((crq->status != VIOSRP_OK && crq->status != VIOSRP_OK2) && evt_struct->cmnd)
crq                56 drivers/scsi/ibmvscsi/ibmvscsi.h 	struct viosrp_crq crq;
crq                53 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				    struct viosrp_crq *crq);
crq               101 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct viosrp_crq *crq;
crq               107 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq = (struct viosrp_crq *)&buffer;
crq               108 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq->valid = VALID_CMD_RESP_EL;
crq               109 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq->format = MESSAGE_IN_CRQ;
crq               110 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq->status = PING;
crq               332 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct viosrp_crq *crq;
crq               336 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq = (struct viosrp_crq *)&buffer;
crq               337 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq->valid = VALID_INIT_MSG;
crq               338 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq->format = format;
crq               359 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct viosrp_crq *crq;
crq               362 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq = ibmvscsis_cmd_q_dequeue(vscsi->cmd_q.mask, &vscsi->cmd_q.index,
crq               364 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	if (!crq) {
crq               366 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	} else if (crq->valid == VALID_INIT_MSG && crq->format == INIT_MSG) {
crq               368 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		crq->valid = INVALIDATE_CMD_RESP_EL;
crq               376 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		crq = ibmvscsis_cmd_q_dequeue(vscsi->cmd_q.mask,
crq               379 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		if (crq) {
crq               380 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			*format = (uint)(crq->format);
crq               382 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			crq->valid = INVALIDATE_CMD_RESP_EL;
crq               386 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		*format = (uint)(crq->format);
crq               388 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		crq->valid = INVALIDATE_CMD_RESP_EL;
crq               760 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static long ibmvscsis_init_msg(struct scsi_info *vscsi, struct viosrp_crq *crq)
crq               779 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	if (crq->format == INIT_MSG) {
crq               781 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	} else if (crq->format == INIT_COMPLETE_MSG) {
crq               786 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			(uint)crq->format);
crq               978 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct viosrp_crq *crq;
crq               981 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq = vscsi->cmd_q.base_addr + vscsi->cmd_q.index;
crq               984 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		vscsi->flags, vscsi->state, (int)crq->valid);
crq               986 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	if (!(vscsi->flags & PREP_FOR_SUSPEND_ABORTED) && !(crq->valid)) {
crq               996 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		   ((crq->valid) && ((crq->valid != VALID_TRANS_EVENT) ||
crq               997 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				     (crq->format != RESUME_FROM_SUSP)))) {
crq              1009 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		if ((crq->valid) && ((crq->valid != VALID_TRANS_EVENT) ||
crq              1010 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				     (crq->format != RESUME_FROM_SUSP)))
crq              1031 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				  struct viosrp_crq *crq)
crq              1036 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		(int)crq->format, vscsi->flags, vscsi->state);
crq              1038 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	switch (crq->format) {
crq              1043 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		if (crq->format == MIGRATED)
crq              1097 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			(int)crq->status);
crq              1107 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			if (crq->status == CRQ_ENTRY_OVERWRITTEN)
crq              1126 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			(int)crq->status);
crq              1130 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			if ((crq->status == CRQ_ENTRY_OVERWRITTEN) ||
crq              1143 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			(uint)crq->format);
crq              1169 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct viosrp_crq *crq;
crq              1178 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq = vscsi->cmd_q.base_addr + vscsi->cmd_q.index;
crq              1179 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	valid = crq->valid;
crq              1188 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			rc = ibmvscsis_parse_command(vscsi, crq);
crq              1190 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			if ((uint)crq->valid == VALID_TRANS_EVENT) {
crq              1197 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				rc = ibmvscsis_trans_event(vscsi, crq);
crq              1221 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		crq->valid = INVALIDATE_CMD_RESP_EL;
crq              1223 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		crq = vscsi->cmd_q.base_addr + vscsi->cmd_q.index;
crq              1224 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		valid = crq->valid;
crq              1234 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		valid = crq->valid;
crq              1442 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				      struct viosrp_crq *crq)
crq              1448 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	len = be16_to_cpu(crq->IU_length);
crq              1456 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			 be64_to_cpu(crq->IU_data_ptr),
crq              1462 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		iue->remote_token = crq->IU_data_ptr;
crq              1465 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			be64_to_cpu(crq->IU_data_ptr), cmd->init_time);
crq              1878 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct viosrp_crq *crq = (struct viosrp_crq *)&msg_hi;
crq              1936 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 					crq->valid = VALID_CMD_RESP_EL;
crq              1937 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 					crq->format = cmd->rsp.format;
crq              1940 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 						crq->status = VIOSRP_ADAPTER_FAIL;
crq              1942 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 					crq->IU_length = cpu_to_be16(cmd->rsp.len);
crq              1986 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				    struct viosrp_crq *crq)
crq              1997 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			 be64_to_cpu(crq->IU_data_ptr));
crq              2028 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static long ibmvscsis_mad(struct scsi_info *vscsi, struct viosrp_crq *crq)
crq              2074 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	rc = ibmvscsis_copy_crq_packet(vscsi, cmd, crq);
crq              2086 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			ibmvscsis_send_mad_resp(vscsi, cmd, crq);
crq              2279 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				struct viosrp_crq *crq)
crq              2353 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				   struct viosrp_crq *crq)
crq              2377 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c static void ibmvscsis_srp_cmd(struct scsi_info *vscsi, struct viosrp_crq *crq)
crq              2403 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	rc = ibmvscsis_copy_crq_packet(vscsi, cmd, crq);
crq              2412 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			rc = ibmvscsis_srp_login(vscsi, cmd, crq);
crq              2441 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			rc = ibmvscsis_srp_i_logout(vscsi, cmd, crq);
crq              2455 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		rc = ibmvscsis_srp_login(vscsi, cmd, crq);
crq              2479 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct viosrp_crq *crq;
crq              2483 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq = (struct viosrp_crq *)&buffer;
crq              2484 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq->valid = VALID_CMD_RESP_EL;
crq              2485 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq->format = (u8)MESSAGE_IN_CRQ;
crq              2486 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq->status = PING_RESPONSE;
crq              2528 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				    struct viosrp_crq *crq)
crq              2532 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	switch (crq->valid) {
crq              2534 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		switch (crq->format) {
crq              2547 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				rc = ibmvscsis_mad(vscsi, crq);
crq              2552 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			ibmvscsis_srp_cmd(vscsi, crq);
crq              2556 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			if (crq->status == PING)
crq              2562 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				(uint)crq->format);
crq              2570 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		rc = ibmvscsis_trans_event(vscsi, crq);
crq              2574 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		rc = ibmvscsis_init_msg(vscsi, crq);
crq              2579 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			(uint)crq->valid);
crq              3338 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	struct viosrp_crq *crq;
crq              3362 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	crq = vscsi->cmd_q.base_addr + vscsi->cmd_q.index;
crq              3363 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 	valid = crq->valid;
crq              3378 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			rc = ibmvscsis_parse_command(vscsi, crq);
crq              3380 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 			if ((uint)crq->valid == VALID_TRANS_EVENT) {
crq              3387 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 				rc = ibmvscsis_trans_event(vscsi, crq);
crq              3408 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		crq->valid = INVALIDATE_CMD_RESP_EL;
crq              3410 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		crq = vscsi->cmd_q.base_addr + vscsi->cmd_q.index;
crq              3411 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		valid = crq->valid;
crq              3421 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c 		valid = crq->valid;
crq               213 drivers/usb/gadget/udc/aspeed-vhub/dev.c 			     struct usb_ctrlrequest *crq)
crq               241 drivers/usb/gadget/udc/aspeed-vhub/dev.c 	wValue = le16_to_cpu(crq->wValue);
crq               242 drivers/usb/gadget/udc/aspeed-vhub/dev.c 	wIndex = le16_to_cpu(crq->wIndex);
crq               244 drivers/usb/gadget/udc/aspeed-vhub/dev.c 	switch ((crq->bRequestType << 8) | crq->bRequest) {
crq                87 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	struct usb_ctrlrequest crq;
crq                98 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	memcpy_fromio(&crq, ep->ep0.setup, sizeof(crq));
crq               101 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	      crq.bRequestType, crq.bRequest,
crq               102 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	       le16_to_cpu(crq.wValue),
crq               103 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	       le16_to_cpu(crq.wIndex),
crq               104 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	       le16_to_cpu(crq.wLength),
crq               105 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	       (crq.bRequestType & USB_DIR_IN) ? "in" : "out",
crq               126 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN);
crq               131 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 		if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD)
crq               132 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 			std_req_rc = ast_vhub_std_hub_request(ep, &crq);
crq               133 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 		else if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_CLASS)
crq               134 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 			std_req_rc = ast_vhub_class_hub_request(ep, &crq);
crq               137 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 	} else if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD)
crq               138 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 		std_req_rc = ast_vhub_std_dev_request(ep, &crq);
crq               158 drivers/usb/gadget/udc/aspeed-vhub/ep0.c 		rc = ep->dev->driver->setup(&ep->dev->gadget, &crq);
crq               336 drivers/usb/gadget/udc/aspeed-vhub/hub.c 					 struct usb_ctrlrequest *crq)
crq               341 drivers/usb/gadget/udc/aspeed-vhub/hub.c 	wValue = le16_to_cpu(crq->wValue);
crq               342 drivers/usb/gadget/udc/aspeed-vhub/hub.c 	wIndex = le16_to_cpu(crq->wIndex);
crq               343 drivers/usb/gadget/udc/aspeed-vhub/hub.c 	wLength = le16_to_cpu(crq->wLength);
crq               356 drivers/usb/gadget/udc/aspeed-vhub/hub.c 	switch ((crq->bRequestType << 8) | crq->bRequest) {
crq               699 drivers/usb/gadget/udc/aspeed-vhub/hub.c 					   struct usb_ctrlrequest *crq)
crq               703 drivers/usb/gadget/udc/aspeed-vhub/hub.c 	wValue = le16_to_cpu(crq->wValue);
crq               704 drivers/usb/gadget/udc/aspeed-vhub/hub.c 	wIndex = le16_to_cpu(crq->wIndex);
crq               705 drivers/usb/gadget/udc/aspeed-vhub/hub.c 	wLength = le16_to_cpu(crq->wLength);
crq               707 drivers/usb/gadget/udc/aspeed-vhub/hub.c 	switch ((crq->bRequestType << 8) | crq->bRequest) {
crq               523 drivers/usb/gadget/udc/aspeed-vhub/vhub.h 					 struct usb_ctrlrequest *crq);
crq               525 drivers/usb/gadget/udc/aspeed-vhub/vhub.h 					   struct usb_ctrlrequest *crq);
crq               538 drivers/usb/gadget/udc/aspeed-vhub/vhub.h 			     struct usb_ctrlrequest *crq);
crq              1281 drivers/usb/gadget/udc/atmel_usba_udc.c static inline bool feature_is_dev_remote_wakeup(struct usb_ctrlrequest *crq)
crq              1283 drivers/usb/gadget/udc/atmel_usba_udc.c 	if (crq->wValue == cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP))
crq              1288 drivers/usb/gadget/udc/atmel_usba_udc.c static inline bool feature_is_dev_test_mode(struct usb_ctrlrequest *crq)
crq              1290 drivers/usb/gadget/udc/atmel_usba_udc.c 	if (crq->wValue == cpu_to_le16(USB_DEVICE_TEST_MODE))
crq              1295 drivers/usb/gadget/udc/atmel_usba_udc.c static inline bool feature_is_ep_halt(struct usb_ctrlrequest *crq)
crq              1297 drivers/usb/gadget/udc/atmel_usba_udc.c 	if (crq->wValue == cpu_to_le16(USB_ENDPOINT_HALT))
crq              1303 drivers/usb/gadget/udc/atmel_usba_udc.c 		struct usb_ctrlrequest *crq)
crq              1307 drivers/usb/gadget/udc/atmel_usba_udc.c 	switch (crq->bRequest) {
crq              1311 drivers/usb/gadget/udc/atmel_usba_udc.c 		if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) {
crq              1313 drivers/usb/gadget/udc/atmel_usba_udc.c 		} else if (crq->bRequestType
crq              1316 drivers/usb/gadget/udc/atmel_usba_udc.c 		} else if (crq->bRequestType
crq              1320 drivers/usb/gadget/udc/atmel_usba_udc.c 			target = get_ep_by_addr(udc, le16_to_cpu(crq->wIndex));
crq              1331 drivers/usb/gadget/udc/atmel_usba_udc.c 		if (crq->wLength != cpu_to_le16(sizeof(status)))
crq              1340 drivers/usb/gadget/udc/atmel_usba_udc.c 		if (crq->bRequestType == USB_RECIP_DEVICE) {
crq              1341 drivers/usb/gadget/udc/atmel_usba_udc.c 			if (feature_is_dev_remote_wakeup(crq))
crq              1347 drivers/usb/gadget/udc/atmel_usba_udc.c 		} else if (crq->bRequestType == USB_RECIP_ENDPOINT) {
crq              1350 drivers/usb/gadget/udc/atmel_usba_udc.c 			if (crq->wLength != cpu_to_le16(0)
crq              1351 drivers/usb/gadget/udc/atmel_usba_udc.c 					|| !feature_is_ep_halt(crq))
crq              1353 drivers/usb/gadget/udc/atmel_usba_udc.c 			target = get_ep_by_addr(udc, le16_to_cpu(crq->wIndex));
crq              1370 drivers/usb/gadget/udc/atmel_usba_udc.c 		if (crq->bRequestType == USB_RECIP_DEVICE) {
crq              1371 drivers/usb/gadget/udc/atmel_usba_udc.c 			if (feature_is_dev_test_mode(crq)) {
crq              1374 drivers/usb/gadget/udc/atmel_usba_udc.c 				udc->test_mode = le16_to_cpu(crq->wIndex);
crq              1376 drivers/usb/gadget/udc/atmel_usba_udc.c 			} else if (feature_is_dev_remote_wakeup(crq)) {
crq              1381 drivers/usb/gadget/udc/atmel_usba_udc.c 		} else if (crq->bRequestType == USB_RECIP_ENDPOINT) {
crq              1384 drivers/usb/gadget/udc/atmel_usba_udc.c 			if (crq->wLength != cpu_to_le16(0)
crq              1385 drivers/usb/gadget/udc/atmel_usba_udc.c 					|| !feature_is_ep_halt(crq))
crq              1388 drivers/usb/gadget/udc/atmel_usba_udc.c 			target = get_ep_by_addr(udc, le16_to_cpu(crq->wIndex));
crq              1401 drivers/usb/gadget/udc/atmel_usba_udc.c 		if (crq->bRequestType != (USB_DIR_OUT | USB_RECIP_DEVICE))
crq              1404 drivers/usb/gadget/udc/atmel_usba_udc.c 		set_address(udc, le16_to_cpu(crq->wValue));
crq              1412 drivers/usb/gadget/udc/atmel_usba_udc.c 		retval = udc->driver->setup(&udc->gadget, crq);
crq              1421 drivers/usb/gadget/udc/atmel_usba_udc.c 		ep->ep.name, crq->bRequestType, crq->bRequest,
crq              1422 drivers/usb/gadget/udc/atmel_usba_udc.c 		le16_to_cpu(crq->wValue), le16_to_cpu(crq->wIndex),
crq              1423 drivers/usb/gadget/udc/atmel_usba_udc.c 		le16_to_cpu(crq->wLength));
crq              1530 drivers/usb/gadget/udc/atmel_usba_udc.c 			struct usb_ctrlrequest crq;
crq              1532 drivers/usb/gadget/udc/atmel_usba_udc.c 		} crq;
crq              1563 drivers/usb/gadget/udc/atmel_usba_udc.c 		if (pkt_len != sizeof(crq)) {
crq              1565 drivers/usb/gadget/udc/atmel_usba_udc.c 				pkt_len, sizeof(crq));
crq              1571 drivers/usb/gadget/udc/atmel_usba_udc.c 		memcpy_fromio(crq.data, ep->fifo, sizeof(crq));
crq              1581 drivers/usb/gadget/udc/atmel_usba_udc.c 		if (crq.crq.bRequestType & USB_DIR_IN) {
crq              1590 drivers/usb/gadget/udc/atmel_usba_udc.c 			if (crq.crq.wLength != cpu_to_le16(0))
crq              1598 drivers/usb/gadget/udc/atmel_usba_udc.c 			ret = handle_ep0_setup(udc, ep, &crq.crq);
crq              1601 drivers/usb/gadget/udc/atmel_usba_udc.c 			ret = udc->driver->setup(&udc->gadget, &crq.crq);
crq              1606 drivers/usb/gadget/udc/atmel_usba_udc.c 			crq.crq.bRequestType, crq.crq.bRequest,
crq              1607 drivers/usb/gadget/udc/atmel_usba_udc.c 			le16_to_cpu(crq.crq.wLength), ep->state, ret);
crq               508 drivers/usb/gadget/udc/s3c2410_udc.c static int s3c2410_udc_read_fifo_crq(struct usb_ctrlrequest *crq)
crq               510 drivers/usb/gadget/udc/s3c2410_udc.c 	unsigned char *outbuf = (unsigned char *)crq;
crq               525 drivers/usb/gadget/udc/s3c2410_udc.c 		bytes_read, crq->bRequest, crq->bRequestType,
crq               526 drivers/usb/gadget/udc/s3c2410_udc.c 		crq->wValue, crq->wIndex, crq->wLength);
crq               532 drivers/usb/gadget/udc/s3c2410_udc.c 		struct usb_ctrlrequest *crq)
crq               535 drivers/usb/gadget/udc/s3c2410_udc.c 	u8 ep_num = crq->wIndex & 0x7F;
crq               536 drivers/usb/gadget/udc/s3c2410_udc.c 	u8 is_in = crq->wIndex & USB_DIR_IN;
crq               538 drivers/usb/gadget/udc/s3c2410_udc.c 	switch (crq->bRequestType & USB_RECIP_MASK) {
crq               547 drivers/usb/gadget/udc/s3c2410_udc.c 		if (ep_num > 4 || crq->wLength > 2)
crq               585 drivers/usb/gadget/udc/s3c2410_udc.c 					struct usb_ctrlrequest *crq,
crq               596 drivers/usb/gadget/udc/s3c2410_udc.c 	len = s3c2410_udc_read_fifo_crq(crq);
crq               597 drivers/usb/gadget/udc/s3c2410_udc.c 	if (len != sizeof(*crq)) {
crq               600 drivers/usb/gadget/udc/s3c2410_udc.c 			sizeof(*crq), len);
crq               606 drivers/usb/gadget/udc/s3c2410_udc.c 		crq->bRequest, crq->bRequestType, crq->wLength);
crq               609 drivers/usb/gadget/udc/s3c2410_udc.c 	dev->req_std = (crq->bRequestType & USB_TYPE_MASK)
crq               614 drivers/usb/gadget/udc/s3c2410_udc.c 	switch (crq->bRequest) {
crq               618 drivers/usb/gadget/udc/s3c2410_udc.c 		if (crq->bRequestType == USB_RECIP_DEVICE) {
crq               627 drivers/usb/gadget/udc/s3c2410_udc.c 		if (crq->bRequestType == USB_RECIP_INTERFACE) {
crq               636 drivers/usb/gadget/udc/s3c2410_udc.c 		if (crq->bRequestType == USB_RECIP_DEVICE) {
crq               637 drivers/usb/gadget/udc/s3c2410_udc.c 			tmp = crq->wValue & 0x7F;
crq               651 drivers/usb/gadget/udc/s3c2410_udc.c 			if (!s3c2410_udc_get_status(dev, crq))
crq               659 drivers/usb/gadget/udc/s3c2410_udc.c 		if (crq->bRequestType != USB_RECIP_ENDPOINT)
crq               662 drivers/usb/gadget/udc/s3c2410_udc.c 		if (crq->wValue != USB_ENDPOINT_HALT || crq->wLength != 0)
crq               665 drivers/usb/gadget/udc/s3c2410_udc.c 		s3c2410_udc_set_halt(&dev->ep[crq->wIndex & 0x7f].ep, 0);
crq               672 drivers/usb/gadget/udc/s3c2410_udc.c 		if (crq->bRequestType != USB_RECIP_ENDPOINT)
crq               675 drivers/usb/gadget/udc/s3c2410_udc.c 		if (crq->wValue != USB_ENDPOINT_HALT || crq->wLength != 0)
crq               678 drivers/usb/gadget/udc/s3c2410_udc.c 		s3c2410_udc_set_halt(&dev->ep[crq->wIndex & 0x7f].ep, 1);
crq               687 drivers/usb/gadget/udc/s3c2410_udc.c 	if (crq->bRequestType & USB_DIR_IN)
crq               696 drivers/usb/gadget/udc/s3c2410_udc.c 	ret = dev->driver->setup(&dev->gadget, crq);
crq               700 drivers/usb/gadget/udc/s3c2410_udc.c 				crq->bRequest, ret);
crq               728 drivers/usb/gadget/udc/s3c2410_udc.c 	struct usb_ctrlrequest	crq;
crq               763 drivers/usb/gadget/udc/s3c2410_udc.c 		s3c2410_udc_handle_ep0_idle(dev, ep, &crq, ep0csr);
crq               785 net/sunrpc/cache.c 			       struct cache_request *crq)
crq               787 net/sunrpc/cache.c 	char *bp = crq->buf;
crq               790 net/sunrpc/cache.c 	detail->cache_request(detail, crq->item, &bp, &len);
crq              1197 net/sunrpc/cache.c 	struct cache_request *crq;
crq              1215 net/sunrpc/cache.c 	crq = kmalloc(sizeof (*crq), GFP_KERNEL);
crq              1216 net/sunrpc/cache.c 	if (!crq) {
crq              1221 net/sunrpc/cache.c 	crq->q.reader = 0;
crq              1222 net/sunrpc/cache.c 	crq->buf = buf;
crq              1223 net/sunrpc/cache.c 	crq->len = 0;
crq              1224 net/sunrpc/cache.c 	crq->readers = 0;
crq              1227 net/sunrpc/cache.c 		crq->item = cache_get(h);
crq              1228 net/sunrpc/cache.c 		list_add_tail(&crq->q.list, &detail->queue);
crq              1236 net/sunrpc/cache.c 		kfree(crq);