Home
last modified time | relevance | path

Searched full:crq (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.14.4/drivers/misc/
Dibmvmc.c114 * ibmvmc_handle_event: - Interrupt handler for crq events
134 * ibmvmc_release_crq_queue - Release CRQ Queue
161 * ibmvmc_reset_crq_queue - Reset CRQ Queue
178 /* Close the CRQ */ in ibmvmc_reset_crq_queue()
193 dev_err(adapter->dev, "couldn't register crq--rc 0x%x\n", rc); in ibmvmc_reset_crq_queue()
203 * entried in the CRQ.
207 struct ibmvmc_crq_msg *crq; in crq_queue_next_crq() local
211 crq = &queue->msgs[queue->cur]; in crq_queue_next_crq()
212 if (crq->valid & 0x80) { in crq_queue_next_crq()
217 * other bits of the CRQ entry in crq_queue_next_crq()
[all …]
/linux-6.14.4/drivers/net/ethernet/ibm/
Dibmvnic.c158 union ibmvnic_crq crq; in send_crq_init_complete() local
160 memset(&crq, 0, sizeof(crq)); in send_crq_init_complete()
161 crq.generic.first = IBMVNIC_CRQ_INIT_CMD; in send_crq_init_complete()
162 crq.generic.cmd = IBMVNIC_CRQ_INIT_COMPLETE; in send_crq_init_complete()
164 return ibmvnic_send_crq(adapter, &crq); in send_crq_init_complete()
169 union ibmvnic_crq crq; in send_version_xchg() local
171 memset(&crq, 0, sizeof(crq)); in send_version_xchg()
172 crq.version_exchange.first = IBMVNIC_CRQ_CMD; in send_version_xchg()
173 crq.version_exchange.cmd = VERSION_EXCHANGE; in send_version_xchg()
174 crq.version_exchange.version = cpu_to_be16(ibmvnic_version); in send_version_xchg()
[all …]
/linux-6.14.4/drivers/char/tpm/
Dtpm_ibmvtpm.c38 * ibmvtpm_send_crq_word() - Send a CRQ request
40 * @w1: pre-constructed first word of tpm crq (second word is reserved)
52 * ibmvtpm_send_crq() - Send a CRQ request
60 * The ibmvtpm crq is defined as follows:
133 * ibmvtpm_crq_send_init - Send a CRQ initialize message
244 * tpm_ibmvtpm_resume() to re-enable the CRQ then retry in tpm_ibmvtpm_send()
273 * ibmvtpm_crq_get_rtce_size - Send a CRQ request to get rtce size
295 * ibmvtpm_crq_get_version - Send a CRQ request to get vtpm version
318 * ibmvtpm_crq_send_init_complete - Send a CRQ initialize complete message
389 * for TCE-mapped buffer in addition to CRQ. in tpm_ibmvtpm_get_desired_dma()
[all …]
Dtpm_ibmvtpm.h49 /* Initialize CRQ */
54 #define VALID_INIT_CRQ 0xC0 /* Valid command for init crq */
56 /* vTPM CRQ response is the message type | 0x80 */
60 /* vTPM CRQ message types */
/linux-6.14.4/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_mbx.c162 return tail == hw->hw.cmq.crq.next_to_use; in hclgevf_cmd_crq_empty()
227 struct hclge_comm_cmq_ring *crq; in hclgevf_mbx_handler() local
232 crq = &hdev->hw.hw.cmq.crq; in hclgevf_mbx_handler()
237 dev_info(&hdev->pdev->dev, "vf crq need init\n"); in hclgevf_mbx_handler()
241 desc = &crq->desc[crq->next_to_use]; in hclgevf_mbx_handler()
244 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler()
252 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler()
253 hclge_mbx_ring_ptr_move_crq(crq); in hclgevf_mbx_handler()
282 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler()
283 hclge_mbx_ring_ptr_move_crq(crq); in hclgevf_mbx_handler()
[all …]
/linux-6.14.4/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c54 struct viosrp_crq *crq);
102 struct viosrp_crq *crq; in connection_broken() local
107 /* create a PING crq */ in connection_broken()
108 crq = (struct viosrp_crq *)&buffer; in connection_broken()
109 crq->valid = VALID_CMD_RESP_EL; in connection_broken()
110 crq->format = MESSAGE_IN_CRQ; in connection_broken()
111 crq->status = PING; in connection_broken()
205 dev_dbg(&vscsi->dev, "Freeing CRQ: phyp rc %ld, rc %ld\n", qrc, rc); in ibmvscsis_unregister_command_q()
333 struct viosrp_crq *crq; in ibmvscsis_send_init_message() local
337 crq = (struct viosrp_crq *)&buffer; in ibmvscsis_send_init_message()
[all …]
Dibmvscsi_tgt.h262 /* Prepare for Suspend event overwrote another CRQ entry */
271 /* used in crq, to tag what iu the response is for */
/linux-6.14.4/drivers/scsi/ibmvscsi/
Dibmvfc.c135 { IBMVFC_VIOS_FAILURE, IBMVFC_CRQ_FAILURE, DID_REQUEUE, 1, 1, "CRQ failure" },
232 entry->fmt = evt->crq.format; in ibmvfc_trc_start()
269 entry->fmt = evt->crq.format; in ibmvfc_trc_end()
733 * ibmvfc_send_crq - Send a CRQ
757 * ibmvfc_send_crq_init - Send a CRQ init message
765 ibmvfc_dbg(vhost, "Sending CRQ init\n"); in ibmvfc_send_crq_init()
770 * ibmvfc_send_crq_init_complete - Send a CRQ init complete message
778 ibmvfc_dbg(vhost, "Sending CRQ init complete\n"); in ibmvfc_send_crq_init_complete()
830 evt->crq.valid = 0x80; in ibmvfc_init_event_pool()
831 evt->crq.ioba = cpu_to_be64(pool->iu_token + (sizeof(*evt->xfer_iu) * i)); in ibmvfc_init_event_pool()
[all …]
Dibmvscsi.c26 * (CRQ), which is just a buffer of 16 byte entries in the receiver's
38 * payload of a CRQ message. The server DMAs the SRP IU and processes it,
41 * and sends a CRQ message back to inform the client that the request has
109 static void ibmvscsi_handle_crq(struct viosrp_crq *crq,
116 * ibmvscsi_handle_event: - Interrupt handler for crq events
133 * ibmvscsi_release_crq_queue() - Deallocates data and unregisters CRQ
139 * the crq with the hypervisor.
165 * entried in the CRQ.
169 struct viosrp_crq *crq; in crq_queue_next_crq() local
173 crq = &queue->msgs[queue->cur]; in crq_queue_next_crq()
[all …]
Dibmvfc.h658 struct ibmvfc_crq crq; member
761 struct ibmvfc_crq crq; member
789 struct ibmvfc_crq *crq; member
815 /* Sub-CRQ fields */
880 struct ibmvfc_queue crq; member
Dibmvscsi.h56 struct viosrp_crq crq; member
/linux-6.14.4/drivers/usb/gadget/udc/
Datmel_usba_udc.c1281 static inline bool feature_is_dev_remote_wakeup(struct usb_ctrlrequest *crq) in feature_is_dev_remote_wakeup() argument
1283 if (crq->wValue == cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP)) in feature_is_dev_remote_wakeup()
1288 static inline bool feature_is_dev_test_mode(struct usb_ctrlrequest *crq) in feature_is_dev_test_mode() argument
1290 if (crq->wValue == cpu_to_le16(USB_DEVICE_TEST_MODE)) in feature_is_dev_test_mode()
1295 static inline bool feature_is_ep_halt(struct usb_ctrlrequest *crq) in feature_is_ep_halt() argument
1297 if (crq->wValue == cpu_to_le16(USB_ENDPOINT_HALT)) in feature_is_ep_halt()
1303 struct usb_ctrlrequest *crq) in handle_ep0_setup() argument
1307 switch (crq->bRequest) { in handle_ep0_setup()
1311 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
1313 } else if (crq->bRequestType in handle_ep0_setup()
[all …]
Daspeed_udc.c996 struct usb_ctrlrequest crq; in ast_udc_getstatus() local
1001 memcpy_fromio(&crq, udc->creq, sizeof(crq)); in ast_udc_getstatus()
1003 switch (crq.bRequestType & USB_RECIP_MASK) { in ast_udc_getstatus()
1011 epnum = crq.wIndex & USB_ENDPOINT_NUMBER_MASK; in ast_udc_getstatus()
1036 struct usb_ctrlrequest crq; in ast_udc_ep0_handle_setup() local
1041 memcpy_fromio(&crq, udc->creq, sizeof(crq)); in ast_udc_ep0_handle_setup()
1044 crq.bRequestType, crq.bRequest, le16_to_cpu(crq.wValue), in ast_udc_ep0_handle_setup()
1045 le16_to_cpu(crq.wIndex), le16_to_cpu(crq.wLength)); in ast_udc_ep0_handle_setup()
1059 udc->ep[0].dir_in = crq.bRequestType & USB_DIR_IN; in ast_udc_ep0_handle_setup()
1061 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in ast_udc_ep0_handle_setup()
[all …]
Drenesas_usbf.c2449 } crq; in usbf_handle_ep0_setup() local
2454 crq.raw[0] = usbf_reg_readl(udc, USBF_REG_SETUP_DATA0); in usbf_handle_ep0_setup()
2455 crq.raw[1] = usbf_reg_readl(udc, USBF_REG_SETUP_DATA1); in usbf_handle_ep0_setup()
2459 crq.ctrlreq.bRequestType, crq.ctrlreq.bRequest, in usbf_handle_ep0_setup()
2460 crq.ctrlreq.wValue, crq.ctrlreq.wIndex, crq.ctrlreq.wLength); in usbf_handle_ep0_setup()
2463 if (crq.ctrlreq.wLength) { in usbf_handle_ep0_setup()
2464 if (crq.ctrlreq.bRequestType & USB_DIR_IN) { in usbf_handle_ep0_setup()
2484 if ((crq.ctrlreq.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) { in usbf_handle_ep0_setup()
2489 switch (crq.ctrlreq.bRequest) { in usbf_handle_ep0_setup()
2491 ret = usbf_req_get_status(udc, &crq.ctrlreq); in usbf_handle_ep0_setup()
[all …]
/linux-6.14.4/drivers/usb/gadget/udc/aspeed-vhub/
Dep0.c81 struct usb_ctrlrequest crq; in ast_vhub_ep0_handle_setup() local
92 memcpy_fromio(&crq, ep->ep0.setup, sizeof(crq)); in ast_vhub_ep0_handle_setup()
95 crq.bRequestType, crq.bRequest, in ast_vhub_ep0_handle_setup()
96 le16_to_cpu(crq.wValue), in ast_vhub_ep0_handle_setup()
97 le16_to_cpu(crq.wIndex), in ast_vhub_ep0_handle_setup()
98 le16_to_cpu(crq.wLength), in ast_vhub_ep0_handle_setup()
99 (crq.bRequestType & USB_DIR_IN) ? "in" : "out", in ast_vhub_ep0_handle_setup()
120 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup()
125 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup()
126 std_req_rc = ast_vhub_std_hub_request(ep, &crq); in ast_vhub_ep0_handle_setup()
[all …]
Dhub.c402 struct usb_ctrlrequest *crq) in ast_vhub_std_hub_request() argument
407 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_hub_request()
408 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_hub_request()
409 wLength = le16_to_cpu(crq->wLength); in ast_vhub_std_hub_request()
422 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_std_hub_request()
767 struct usb_ctrlrequest *crq) in ast_vhub_class_hub_request() argument
771 wValue = le16_to_cpu(crq->wValue); in ast_vhub_class_hub_request()
772 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_class_hub_request()
773 wLength = le16_to_cpu(crq->wLength); in ast_vhub_class_hub_request()
775 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_class_hub_request()
Ddev.c218 struct usb_ctrlrequest *crq) in ast_vhub_std_dev_request() argument
246 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_dev_request()
247 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_dev_request()
249 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_std_dev_request()
/linux-6.14.4/Documentation/misc-devices/
Dibmvmc.rst73 This communication device uses Command/Response Queue (CRQ) and the
79 This driver also utilizes Transport Event CRQs. CRQ messages are sent
81 terminated, or one side has called H_FREE_CRQ to close their CRQ.
82 Two new classes of CRQ messages are introduced for the VMC device. VMC
86 the hypervisor. As most HMC messages far exceed the size of a CRQ buffer,
88 Interface CRQ message. Only the management partition drives RDMA
99 CRQ
117 is loaded. It first creates and initializes the CRQ. Next, an exchange of
129 CRQ INIT
131 CRQ INIT COMPLETE
[all …]
/linux-6.14.4/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_cmd.c39 hclge_comm_cmd_config_regs(hw, &hw->cmq.crq); in hclge_comm_cmd_init_regs()
214 &hw->cmq.crq; in hclge_comm_alloc_cmd_queue()
222 (ring_type == HCLGE_COMM_TYPE_CSQ) ? "CSQ" : "CRQ", in hclge_comm_alloc_cmd_queue()
551 spin_lock(&cmdq->crq.lock); in hclge_comm_cmd_uninit()
553 spin_unlock(&cmdq->crq.lock); in hclge_comm_cmd_uninit()
557 hclge_comm_free_cmd_desc(&cmdq->crq); in hclge_comm_cmd_uninit()
568 spin_lock_init(&cmdq->crq.lock); in hclge_comm_cmd_queue_init()
571 cmdq->crq.pdev = pdev; in hclge_comm_cmd_queue_init()
575 cmdq->crq.desc_num = HCLGE_COMM_NIC_CMQ_DESC_NUM; in hclge_comm_cmd_queue_init()
589 dev_err(&pdev->dev, "CRQ ring setup error %d\n", ret); in hclge_comm_cmd_queue_init()
[all …]
/linux-6.14.4/drivers/isdn/mISDN/
Dtei.c983 create_teimgr(struct manager *mgr, struct channel_req *crq) in create_teimgr() argument
994 crq->protocol, crq->adr.dev, crq->adr.channel, in create_teimgr()
995 crq->adr.sapi, crq->adr.tei); in create_teimgr()
996 if (crq->adr.tei > GROUP_TEI) in create_teimgr()
998 if (crq->adr.tei < 64) in create_teimgr()
1000 if (crq->adr.tei == 0) in create_teimgr()
1003 if (crq->protocol == ISDN_P_LAPD_TE) in create_teimgr()
1005 if ((crq->adr.tei != 0) && (crq->adr.tei != 127)) in create_teimgr()
1014 if (crq->protocol == ISDN_P_LAPD_NT) in create_teimgr()
1016 if ((crq->adr.tei >= 64) && (crq->adr.tei < GROUP_TEI)) in create_teimgr()
[all …]
Ddsp_core.c1048 dspcreate(struct channel_req *crq) in dspcreate() argument
1053 if (crq->protocol != ISDN_P_B_L2DSP in dspcreate()
1054 && crq->protocol != ISDN_P_B_L2DSPHDLC) in dspcreate()
1069 ndsp->up = crq->ch; in dspcreate()
1070 crq->ch = &ndsp->ch; in dspcreate()
1071 if (crq->protocol == ISDN_P_B_L2DSP) { in dspcreate()
1072 crq->protocol = ISDN_P_B_RAW; in dspcreate()
1075 crq->protocol = ISDN_P_B_HDLC; in dspcreate()
/linux-6.14.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mbx.c805 return tail == hw->hw.cmq.crq.next_to_use; in hclge_cmd_crq_empty()
1106 struct hclge_comm_cmq_ring *crq = &hdev->hw.hw.cmq.crq; in hclge_mbx_handler() local
1123 desc = &crq->desc[crq->next_to_use]; in hclge_mbx_handler()
1126 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclge_mbx_handler()
1134 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler()
1135 hclge_mbx_ring_ptr_move_crq(crq); in hclge_mbx_handler()
1147 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler()
1148 hclge_mbx_ring_ptr_move_crq(crq); in hclge_mbx_handler()
1153 crq->next_to_use); in hclge_mbx_handler()
/linux-6.14.4/drivers/net/ethernet/hisilicon/hns3/
Dhclge_mbx.h247 #define hclge_mbx_ring_ptr_move_crq(crq) \ argument
248 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
/linux-6.14.4/net/sunrpc/
Dcache.c823 struct cache_request *crq) in cache_request() argument
825 char *bp = crq->buf; in cache_request()
828 detail->cache_request(detail, crq->item, &bp, &len); in cache_request()
1215 struct cache_request *crq; in cache_pipe_upcall() local
1226 crq = kmalloc(sizeof (*crq), GFP_KERNEL); in cache_pipe_upcall()
1227 if (!crq) { in cache_pipe_upcall()
1232 crq->q.reader = 0; in cache_pipe_upcall()
1233 crq->buf = buf; in cache_pipe_upcall()
1234 crq->len = 0; in cache_pipe_upcall()
1235 crq->readers = 0; in cache_pipe_upcall()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/tpm/
Dibm,vtpm.yaml18 (Hcalls) and Command/Response Queue (CRQ) commands.

12