Home
last modified time | relevance | path

Searched refs:crq (Results 1 – 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/
Dibmvnic.c182 if (!adapter->crq.active) { in ibmvnic_wait_for_completion()
958 union ibmvnic_crq crq; in set_link_state() local
964 memset(&crq, 0, sizeof(crq)); in set_link_state()
965 crq.logical_link_state.first = IBMVNIC_CRQ_CMD; in set_link_state()
966 crq.logical_link_state.cmd = LOGICAL_LINK_STATE; in set_link_state()
967 crq.logical_link_state.link_state = link_state; in set_link_state()
973 rc = ibmvnic_send_crq(adapter, &crq); in set_link_state()
1023 union ibmvnic_crq crq; in ibmvnic_get_vpd() local
1034 crq.get_vpd_size.first = IBMVNIC_CRQ_CMD; in ibmvnic_get_vpd()
1035 crq.get_vpd_size.cmd = GET_VPD_SIZE; in ibmvnic_get_vpd()
[all …]
/kernel/linux/linux-5.10/drivers/misc/
Dibmvmc.c207 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()
221 crq = NULL; in crq_queue_next_crq()
226 return crq; in crq_queue_next_crq()
1426 struct ibmvmc_crq_msg *crq) in ibmvmc_add_buffer() argument
1435 if (!crq) in ibmvmc_add_buffer()
1438 hmc_session = crq->hmc_session; in ibmvmc_add_buffer()
1439 hmc_index = crq->hmc_index; in ibmvmc_add_buffer()
1440 buffer_id = be16_to_cpu(crq->var2.buffer_id); in ibmvmc_add_buffer()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_mbx.c150 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty()
157 struct hclgevf_cmq_ring *crq; in hclgevf_mbx_handler() local
165 crq = &hdev->hw.cmq.crq; in hclgevf_mbx_handler()
173 desc = &crq->desc[crq->next_to_use]; in hclgevf_mbx_handler()
176 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler()
183 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler()
184 hclge_mbx_ring_ptr_move_crq(crq); in hclgevf_mbx_handler()
255 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler()
256 hclge_mbx_ring_ptr_move_crq(crq); in hclgevf_mbx_handler()
261 crq->next_to_use); in hclgevf_mbx_handler()
Dhclgevf_cmd.c121 hclgevf_cmd_config_regs(&hw->cmq.crq); in hclgevf_cmd_init_regs()
151 (ring_type == HCLGEVF_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hclgevf_alloc_cmd_queue()
375 spin_lock_init(&hdev->hw.cmq.crq.lock); in hclgevf_cmd_queue_init()
379 hdev->hw.cmq.crq.desc_num = HCLGEVF_NIC_CMQ_DESC_NUM; in hclgevf_cmd_queue_init()
406 spin_lock(&hdev->hw.cmq.crq.lock); in hclgevf_cmd_init()
415 hdev->hw.cmq.crq.next_to_clean = 0; in hclgevf_cmd_init()
416 hdev->hw.cmq.crq.next_to_use = 0; in hclgevf_cmd_init()
420 spin_unlock(&hdev->hw.cmq.crq.lock); in hclgevf_cmd_init()
481 spin_lock(&hdev->hw.cmq.crq.lock); in hclgevf_cmd_uninit()
483 spin_unlock(&hdev->hw.cmq.crq.lock); in hclgevf_cmd_uninit()
[all …]
Dhclgevf_cmd.h72 struct hclgevf_cmq_ring crq; member
/kernel/linux/linux-5.10/drivers/block/
Dsx8.c474 struct carm_request *crq, unsigned tag) in carm_send_msg() argument
478 u32 cm_bucket = crq->msg_bucket; in carm_send_msg()
507 struct carm_request *crq; in carm_array_info() local
516 crq = blk_mq_rq_to_pdu(rq); in carm_array_info()
522 crq->msg_type = CARM_MSG_ARRAY; in carm_array_info()
523 crq->msg_subtype = CARM_ARRAY_INFO; in carm_array_info()
527 crq->msg_bucket = (u32) rc; in carm_array_info()
558 struct carm_request *crq; in carm_send_special() local
567 crq = blk_mq_rq_to_pdu(rq); in carm_send_special()
574 crq->msg_type = ioc->type; in carm_send_special()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c53 struct viosrp_crq *crq);
101 struct viosrp_crq *crq; in connection_broken() local
107 crq = (struct viosrp_crq *)&buffer; in connection_broken()
108 crq->valid = VALID_CMD_RESP_EL; in connection_broken()
109 crq->format = MESSAGE_IN_CRQ; in connection_broken()
110 crq->status = PING; in connection_broken()
332 struct viosrp_crq *crq; in ibmvscsis_send_init_message() local
336 crq = (struct viosrp_crq *)&buffer; in ibmvscsis_send_init_message()
337 crq->valid = VALID_INIT_MSG; in ibmvscsis_send_init_message()
338 crq->format = format; in ibmvscsis_send_init_message()
[all …]
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm_ibmvtpm.c479 struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index]; in ibmvtpm_crq_get_next() local
481 if (crq->valid & VTPM_MSG_RES) { in ibmvtpm_crq_get_next()
486 crq = NULL; in ibmvtpm_crq_get_next()
487 return crq; in ibmvtpm_crq_get_next()
497 static void ibmvtpm_crq_process(struct ibmvtpm_crq *crq, in ibmvtpm_crq_process() argument
502 switch (crq->valid) { in ibmvtpm_crq_process()
504 switch (crq->msg) { in ibmvtpm_crq_process()
516 dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", crq->msg); in ibmvtpm_crq_process()
520 switch (crq->msg) { in ibmvtpm_crq_process()
522 if (be16_to_cpu(crq->len) <= 0) { in ibmvtpm_crq_process()
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/
Dep0.c87 struct usb_ctrlrequest crq; in ast_vhub_ep0_handle_setup() local
98 memcpy_fromio(&crq, ep->ep0.setup, sizeof(crq)); in ast_vhub_ep0_handle_setup()
101 crq.bRequestType, crq.bRequest, in ast_vhub_ep0_handle_setup()
102 le16_to_cpu(crq.wValue), in ast_vhub_ep0_handle_setup()
103 le16_to_cpu(crq.wIndex), in ast_vhub_ep0_handle_setup()
104 le16_to_cpu(crq.wLength), in ast_vhub_ep0_handle_setup()
105 (crq.bRequestType & USB_DIR_IN) ? "in" : "out", in ast_vhub_ep0_handle_setup()
126 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup()
131 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup()
132 std_req_rc = ast_vhub_std_hub_request(ep, &crq); in ast_vhub_ep0_handle_setup()
[all …]
Dhub.c378 struct usb_ctrlrequest *crq) in ast_vhub_std_hub_request() argument
383 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_hub_request()
384 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_hub_request()
385 wLength = le16_to_cpu(crq->wLength); in ast_vhub_std_hub_request()
398 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_std_hub_request()
741 struct usb_ctrlrequest *crq) in ast_vhub_class_hub_request() argument
745 wValue = le16_to_cpu(crq->wValue); in ast_vhub_class_hub_request()
746 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_class_hub_request()
747 wLength = le16_to_cpu(crq->wLength); in ast_vhub_class_hub_request()
749 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_class_hub_request()
Ddev.c213 struct usb_ctrlrequest *crq) in ast_vhub_std_dev_request() argument
241 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_dev_request()
242 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_dev_request()
244 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_std_dev_request()
Dvhub.h539 struct usb_ctrlrequest *crq);
541 struct usb_ctrlrequest *crq);
554 struct usb_ctrlrequest *crq);
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/
Ds3c2410_udc.c499 static int s3c2410_udc_read_fifo_crq(struct usb_ctrlrequest *crq) in s3c2410_udc_read_fifo_crq() argument
501 unsigned char *outbuf = (unsigned char *)crq; in s3c2410_udc_read_fifo_crq()
516 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
517 crq->wValue, crq->wIndex, crq->wLength); in s3c2410_udc_read_fifo_crq()
523 struct usb_ctrlrequest *crq) in s3c2410_udc_get_status() argument
526 u8 ep_num = crq->wIndex & 0x7F; in s3c2410_udc_get_status()
527 u8 is_in = crq->wIndex & USB_DIR_IN; in s3c2410_udc_get_status()
529 switch (crq->bRequestType & USB_RECIP_MASK) { in s3c2410_udc_get_status()
538 if (ep_num > 4 || crq->wLength > 2) in s3c2410_udc_get_status()
576 struct usb_ctrlrequest *crq, in s3c2410_udc_handle_ep0_idle() argument
[all …]
Datmel_usba_udc.c1280 static inline bool feature_is_dev_remote_wakeup(struct usb_ctrlrequest *crq) in feature_is_dev_remote_wakeup() argument
1282 if (crq->wValue == cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP)) in feature_is_dev_remote_wakeup()
1287 static inline bool feature_is_dev_test_mode(struct usb_ctrlrequest *crq) in feature_is_dev_test_mode() argument
1289 if (crq->wValue == cpu_to_le16(USB_DEVICE_TEST_MODE)) in feature_is_dev_test_mode()
1294 static inline bool feature_is_ep_halt(struct usb_ctrlrequest *crq) in feature_is_ep_halt() argument
1296 if (crq->wValue == cpu_to_le16(USB_ENDPOINT_HALT)) in feature_is_ep_halt()
1302 struct usb_ctrlrequest *crq) in handle_ep0_setup() argument
1306 switch (crq->bRequest) { in handle_ep0_setup()
1310 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
1312 } else if (crq->bRequestType in handle_ep0_setup()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/ibmvscsi/
Dibmvfc.c157 entry->fmt = evt->crq.format; in ibmvfc_trc_start()
190 entry->fmt = evt->crq.format; in ibmvfc_trc_end()
704 struct ibmvfc_crq_queue *crq = &vhost->crq; in ibmvfc_release_crq_queue() local
717 dma_unmap_single(vhost->dev, crq->msg_token, PAGE_SIZE, DMA_BIDIRECTIONAL); in ibmvfc_release_crq_queue()
718 free_page((unsigned long)crq->msgs); in ibmvfc_release_crq_queue()
758 struct ibmvfc_crq_queue *crq = &vhost->crq; in ibmvfc_reset_crq() local
772 memset(crq->msgs, 0, PAGE_SIZE); in ibmvfc_reset_crq()
773 crq->cur = 0; in ibmvfc_reset_crq()
777 crq->msg_token, PAGE_SIZE); in ibmvfc_reset_crq()
1276 evt->crq.valid = 0x80; in ibmvfc_init_event_pool()
[all …]
Dibmvscsi.c109 static void ibmvscsi_handle_crq(struct viosrp_crq *crq,
168 struct viosrp_crq *crq; in crq_queue_next_crq() local
172 crq = &queue->msgs[queue->cur]; in crq_queue_next_crq()
173 if (crq->valid != VIOSRP_CRQ_FREE) { in crq_queue_next_crq()
182 crq = NULL; in crq_queue_next_crq()
185 return crq; in crq_queue_next_crq()
215 struct viosrp_crq *crq; in ibmvscsi_task() local
220 while ((crq = crq_queue_next_crq(&hostdata->queue)) != NULL) { in ibmvscsi_task()
221 ibmvscsi_handle_crq(crq, hostdata); in ibmvscsi_task()
222 crq->valid = VIOSRP_CRQ_FREE; in ibmvscsi_task()
[all …]
Dibmvscsi.h56 struct viosrp_crq crq; member
Dibmvfc.h728 struct ibmvfc_crq crq; member
791 struct ibmvfc_crq_queue crq; member
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/
Dhclge_mbx.h170 #define hclge_mbx_ring_ptr_move_crq(crq) \ argument
171 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_cmd.c63 (ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hclge_alloc_cmd_queue()
132 hclge_cmd_config_regs(&hw->cmq.crq); in hclge_cmd_init_regs()
395 spin_lock_init(&hdev->hw.cmq.crq.lock); in hclge_cmd_queue_init()
399 hdev->hw.cmq.crq.desc_num = HCLGE_NIC_CMQ_DESC_NUM; in hclge_cmd_queue_init()
447 spin_lock(&hdev->hw.cmq.crq.lock); in hclge_cmd_init()
451 hdev->hw.cmq.crq.next_to_clean = 0; in hclge_cmd_init()
452 hdev->hw.cmq.crq.next_to_use = 0; in hclge_cmd_init()
456 spin_unlock(&hdev->hw.cmq.crq.lock); in hclge_cmd_init()
530 spin_lock(&hdev->hw.cmq.crq.lock); in hclge_cmd_uninit()
532 spin_unlock(&hdev->hw.cmq.crq.lock); in hclge_cmd_uninit()
[all …]
Dhclge_mbx.c666 return tail == hw->cmq.crq.next_to_use; in hclge_cmd_crq_empty()
697 struct hclge_cmq_ring *crq = &hdev->hw.cmq.crq; in hclge_mbx_handler() local
714 desc = &crq->desc[crq->next_to_use]; in hclge_mbx_handler()
717 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclge_mbx_handler()
724 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler()
725 hclge_mbx_ring_ptr_move_crq(crq); in hclge_mbx_handler()
858 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler()
859 hclge_mbx_ring_ptr_move_crq(crq); in hclge_mbx_handler()
866 hclge_write_dev(&hdev->hw, HCLGE_NIC_CRQ_HEAD_REG, crq->next_to_use); in hclge_mbx_handler()
/kernel/linux/linux-5.10/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()
Dlayer2.c2215 x75create(struct channel_req *crq) in x75create() argument
2219 if (crq->protocol != ISDN_P_B_X75SLP) in x75create()
2221 l2 = create_l2(crq->ch, crq->protocol, 0, 0, 0); in x75create()
2224 crq->ch = &l2->ch; in x75create()
2225 crq->protocol = ISDN_P_B_HDLC; in x75create()
/kernel/linux/linux-5.10/net/sunrpc/
Dcache.c800 struct cache_request *crq) in cache_request() argument
802 char *bp = crq->buf; in cache_request()
805 detail->cache_request(detail, crq->item, &bp, &len); in cache_request()
1211 struct cache_request *crq; in cache_pipe_upcall() local
1222 crq = kmalloc(sizeof (*crq), GFP_KERNEL); in cache_pipe_upcall()
1223 if (!crq) { in cache_pipe_upcall()
1228 crq->q.reader = 0; in cache_pipe_upcall()
1229 crq->buf = buf; in cache_pipe_upcall()
1230 crq->len = 0; in cache_pipe_upcall()
1231 crq->readers = 0; in cache_pipe_upcall()
[all …]

12