Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/net/ethernet/ibm/
Dibmvnic.c890 union ibmvnic_crq crq; in set_link_state() local
896 memset(&crq, 0, sizeof(crq)); in set_link_state()
897 crq.logical_link_state.first = IBMVNIC_CRQ_CMD; in set_link_state()
898 crq.logical_link_state.cmd = LOGICAL_LINK_STATE; in set_link_state()
899 crq.logical_link_state.link_state = link_state; in set_link_state()
905 rc = ibmvnic_send_crq(adapter, &crq); in set_link_state()
955 union ibmvnic_crq crq; in ibmvnic_get_vpd() local
963 crq.get_vpd_size.first = IBMVNIC_CRQ_CMD; in ibmvnic_get_vpd()
964 crq.get_vpd_size.cmd = GET_VPD_SIZE; in ibmvnic_get_vpd()
965 rc = ibmvnic_send_crq(adapter, &crq); in ibmvnic_get_vpd()
[all …]
/Linux-v4.19/drivers/block/
Dsx8.c480 struct carm_request *crq) in carm_send_msg() argument
483 u32 msg = (u32) carm_ref_msg_dma(host, crq->tag); in carm_send_msg()
484 u32 cm_bucket = crq->msg_bucket; in carm_send_msg()
518 struct carm_request *crq = &host->req[i]; in carm_get_request() local
519 crq->port = NULL; in carm_get_request()
520 crq->n_elem = 0; in carm_get_request()
526 sg_init_table(crq->sg, CARM_MAX_REQ_SG); in carm_get_request()
527 return crq; in carm_get_request()
534 static int carm_put_request(struct carm_host *host, struct carm_request *crq) in carm_put_request() argument
536 assert(crq->tag < max_queue); in carm_put_request()
[all …]
/Linux-v4.19/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()
1423 struct ibmvmc_crq_msg *crq) in ibmvmc_add_buffer() argument
1432 if (!crq) in ibmvmc_add_buffer()
1435 hmc_session = crq->hmc_session; in ibmvmc_add_buffer()
1436 hmc_index = crq->hmc_index; in ibmvmc_add_buffer()
1437 buffer_id = be16_to_cpu(crq->var2.buffer_id); in ibmvmc_add_buffer()
[all …]
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_mbx.c133 return tail == hw->cmq.crq.next_to_use; in hclgevf_cmd_crq_empty()
140 struct hclgevf_cmq_ring *crq; in hclgevf_mbx_handler() local
148 crq = &hdev->hw.cmq.crq; in hclgevf_mbx_handler()
151 desc = &crq->desc[crq->next_to_use]; in hclgevf_mbx_handler()
154 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler()
161 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler()
162 hclge_mbx_ring_ptr_move_crq(crq); in hclgevf_mbx_handler()
225 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler()
226 hclge_mbx_ring_ptr_move_crq(crq); in hclgevf_mbx_handler()
231 crq->next_to_use); in hclgevf_mbx_handler()
Dhclgevf_cmd.c302 hdev->hw.cmq.crq.flag = HCLGEVF_TYPE_CRQ; in hclgevf_cmd_init()
303 ret = hclgevf_init_cmd_queue(hdev, &hdev->hw.cmq.crq); in hclgevf_cmd_init()
329 hclgevf_free_cmd_desc(&hdev->hw.cmq.crq); in hclgevf_cmd_init()
339 hclgevf_free_cmd_desc(&hdev->hw.cmq.crq); in hclgevf_cmd_uninit()
Dhclgevf_cmd.h63 struct hclgevf_cmq_ring crq; member
/Linux-v4.19/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c62 struct viosrp_crq *crq);
110 struct viosrp_crq *crq; in connection_broken() local
116 crq = (struct viosrp_crq *)&buffer; in connection_broken()
117 crq->valid = VALID_CMD_RESP_EL; in connection_broken()
118 crq->format = MESSAGE_IN_CRQ; in connection_broken()
119 crq->status = PING; in connection_broken()
341 struct viosrp_crq *crq; in ibmvscsis_send_init_message() local
345 crq = (struct viosrp_crq *)&buffer; in ibmvscsis_send_init_message()
346 crq->valid = VALID_INIT_MSG; in ibmvscsis_send_init_message()
347 crq->format = format; in ibmvscsis_send_init_message()
[all …]
/Linux-v4.19/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()
124 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup()
129 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup()
130 std_req_rc = ast_vhub_std_hub_request(ep, &crq); in ast_vhub_ep0_handle_setup()
[all …]
Dhub.c336 struct usb_ctrlrequest *crq) in ast_vhub_std_hub_request() argument
341 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_hub_request()
342 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_hub_request()
343 wLength = le16_to_cpu(crq->wLength); in ast_vhub_std_hub_request()
356 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_std_hub_request()
692 struct usb_ctrlrequest *crq) in ast_vhub_class_hub_request() argument
696 wValue = le16_to_cpu(crq->wValue); in ast_vhub_class_hub_request()
697 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_class_hub_request()
698 wLength = le16_to_cpu(crq->wLength); in ast_vhub_class_hub_request()
700 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_class_hub_request()
Ddev.c198 struct usb_ctrlrequest *crq) in ast_vhub_std_dev_request() argument
221 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_dev_request()
222 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_dev_request()
224 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_std_dev_request()
Dvhub.h522 struct usb_ctrlrequest *crq);
524 struct usb_ctrlrequest *crq);
537 struct usb_ctrlrequest *crq);
/Linux-v4.19/drivers/char/tpm/
Dtpm_ibmvtpm.c478 struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index]; in ibmvtpm_crq_get_next() local
480 if (crq->valid & VTPM_MSG_RES) { in ibmvtpm_crq_get_next()
485 crq = NULL; in ibmvtpm_crq_get_next()
486 return crq; in ibmvtpm_crq_get_next()
496 static void ibmvtpm_crq_process(struct ibmvtpm_crq *crq, in ibmvtpm_crq_process() argument
501 switch (crq->valid) { in ibmvtpm_crq_process()
503 switch (crq->msg) { in ibmvtpm_crq_process()
515 dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", crq->msg); in ibmvtpm_crq_process()
519 switch (crq->msg) { in ibmvtpm_crq_process()
521 if (be16_to_cpu(crq->len) <= 0) { in ibmvtpm_crq_process()
[all …]
/Linux-v4.19/drivers/usb/gadget/udc/
Ds3c2410_udc.c519 static int s3c2410_udc_read_fifo_crq(struct usb_ctrlrequest *crq) in s3c2410_udc_read_fifo_crq() argument
521 unsigned char *outbuf = (unsigned char *)crq; in s3c2410_udc_read_fifo_crq()
536 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
537 crq->wValue, crq->wIndex, crq->wLength); in s3c2410_udc_read_fifo_crq()
543 struct usb_ctrlrequest *crq) in s3c2410_udc_get_status() argument
546 u8 ep_num = crq->wIndex & 0x7F; in s3c2410_udc_get_status()
547 u8 is_in = crq->wIndex & USB_DIR_IN; in s3c2410_udc_get_status()
549 switch (crq->bRequestType & USB_RECIP_MASK) { in s3c2410_udc_get_status()
558 if (ep_num > 4 || crq->wLength > 2) in s3c2410_udc_get_status()
596 struct usb_ctrlrequest *crq, in s3c2410_udc_handle_ep0_idle() argument
[all …]
Datmel_usba_udc.c1269 static inline bool feature_is_dev_remote_wakeup(struct usb_ctrlrequest *crq) in feature_is_dev_remote_wakeup() argument
1271 if (crq->wValue == cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP)) in feature_is_dev_remote_wakeup()
1276 static inline bool feature_is_dev_test_mode(struct usb_ctrlrequest *crq) in feature_is_dev_test_mode() argument
1278 if (crq->wValue == cpu_to_le16(USB_DEVICE_TEST_MODE)) in feature_is_dev_test_mode()
1283 static inline bool feature_is_ep_halt(struct usb_ctrlrequest *crq) in feature_is_ep_halt() argument
1285 if (crq->wValue == cpu_to_le16(USB_ENDPOINT_HALT)) in feature_is_ep_halt()
1291 struct usb_ctrlrequest *crq) in handle_ep0_setup() argument
1295 switch (crq->bRequest) { in handle_ep0_setup()
1299 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
1301 } else if (crq->bRequestType in handle_ep0_setup()
[all …]
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mbx.c448 return tail == hw->cmq.crq.next_to_use; in hclge_cmd_crq_empty()
453 struct hclge_cmq_ring *crq = &hdev->hw.cmq.crq; in hclge_mbx_handler() local
461 desc = &crq->desc[crq->next_to_use]; in hclge_mbx_handler()
464 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclge_mbx_handler()
471 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler()
472 hclge_mbx_ring_ptr_move_crq(crq); in hclge_mbx_handler()
548 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler()
549 hclge_mbx_ring_ptr_move_crq(crq); in hclge_mbx_handler()
553 hclge_write_dev(&hdev->hw, HCLGE_NIC_CRQ_HEAD_REG, crq->next_to_use); in hclge_mbx_handler()
Dhclge_cmd.c66 (ring_type == HCLGE_TYPE_CSQ) ? &hw->cmq.csq : &hw->cmq.crq; in hclge_alloc_cmd_queue()
134 hclge_cmd_config_regs(&hw->cmq.crq); in hclge_cmd_init_regs()
309 hdev->hw.cmq.crq.desc_num = HCLGE_NIC_CMQ_DESC_NUM; in hclge_cmd_queue_init()
342 hdev->hw.cmq.crq.next_to_clean = 0; in hclge_cmd_init()
343 hdev->hw.cmq.crq.next_to_use = 0; in hclge_cmd_init()
347 spin_lock_init(&hdev->hw.cmq.crq.lock); in hclge_cmd_init()
375 hclge_destroy_queue(&hw->cmq.crq); in hclge_destroy_cmd_queue()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhclge_mbx.h102 #define hclge_mbx_ring_ptr_move_crq(crq) \ argument
103 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
/Linux-v4.19/drivers/scsi/ibmvscsi/
Dibmvfc.c168 entry->fmt = evt->crq.format; in ibmvfc_trc_start()
201 entry->fmt = evt->crq.format; in ibmvfc_trc_end()
659 struct ibmvfc_crq_queue *crq = &vhost->crq; in ibmvfc_release_crq_queue() local
672 dma_unmap_single(vhost->dev, crq->msg_token, PAGE_SIZE, DMA_BIDIRECTIONAL); in ibmvfc_release_crq_queue()
673 free_page((unsigned long)crq->msgs); in ibmvfc_release_crq_queue()
713 struct ibmvfc_crq_queue *crq = &vhost->crq; in ibmvfc_reset_crq() local
727 memset(crq->msgs, 0, PAGE_SIZE); in ibmvfc_reset_crq()
728 crq->cur = 0; in ibmvfc_reset_crq()
732 crq->msg_token, PAGE_SIZE); in ibmvfc_reset_crq()
1231 evt->crq.valid = 0x80; in ibmvfc_init_event_pool()
[all …]
Dibmvscsi.c122 static void ibmvscsi_handle_crq(struct viosrp_crq *crq,
181 struct viosrp_crq *crq; in crq_queue_next_crq() local
185 crq = &queue->msgs[queue->cur]; in crq_queue_next_crq()
186 if (crq->valid != VIOSRP_CRQ_FREE) { in crq_queue_next_crq()
195 crq = NULL; in crq_queue_next_crq()
198 return crq; in crq_queue_next_crq()
228 struct viosrp_crq *crq; in ibmvscsi_task() local
233 while ((crq = crq_queue_next_crq(&hostdata->queue)) != NULL) { in ibmvscsi_task()
234 ibmvscsi_handle_crq(crq, hostdata); in ibmvscsi_task()
235 crq->valid = VIOSRP_CRQ_FREE; in ibmvscsi_task()
[all …]
Dibmvscsi.h70 struct viosrp_crq crq; member
Dibmvfc.h642 struct ibmvfc_crq crq; member
705 struct ibmvfc_crq_queue crq; member
/Linux-v4.19/drivers/isdn/mISDN/
Dtei.c992 create_teimgr(struct manager *mgr, struct channel_req *crq) in create_teimgr() argument
1003 crq->protocol, crq->adr.dev, crq->adr.channel, in create_teimgr()
1004 crq->adr.sapi, crq->adr.tei); in create_teimgr()
1005 if (crq->adr.tei > GROUP_TEI) in create_teimgr()
1007 if (crq->adr.tei < 64) in create_teimgr()
1009 if (crq->adr.tei == 0) in create_teimgr()
1012 if (crq->protocol == ISDN_P_LAPD_TE) in create_teimgr()
1014 if ((crq->adr.tei != 0) && (crq->adr.tei != 127)) in create_teimgr()
1023 if (crq->protocol == ISDN_P_LAPD_NT) in create_teimgr()
1025 if ((crq->adr.tei >= 64) && (crq->adr.tei < GROUP_TEI)) in create_teimgr()
[all …]
Ddsp_core.c1050 dspcreate(struct channel_req *crq) in dspcreate() argument
1055 if (crq->protocol != ISDN_P_B_L2DSP in dspcreate()
1056 && crq->protocol != ISDN_P_B_L2DSPHDLC) in dspcreate()
1071 ndsp->up = crq->ch; in dspcreate()
1072 crq->ch = &ndsp->ch; in dspcreate()
1073 if (crq->protocol == ISDN_P_B_L2DSP) { in dspcreate()
1074 crq->protocol = ISDN_P_B_RAW; in dspcreate()
1077 crq->protocol = ISDN_P_B_HDLC; in dspcreate()
Dlayer2.c2227 x75create(struct channel_req *crq) in x75create() argument
2231 if (crq->protocol != ISDN_P_B_X75SLP) in x75create()
2233 l2 = create_l2(crq->ch, crq->protocol, 0, 0, 0); in x75create()
2236 crq->ch = &l2->ch; in x75create()
2237 crq->protocol = ISDN_P_B_HDLC; in x75create()
/Linux-v4.19/net/sunrpc/
Dcache.c764 struct cache_request *crq) in cache_request() argument
766 char *bp = crq->buf; in cache_request()
769 detail->cache_request(detail, crq->item, &bp, &len); in cache_request()
1172 struct cache_request *crq; in sunrpc_cache_pipe_upcall() local
1190 crq = kmalloc(sizeof (*crq), GFP_KERNEL); in sunrpc_cache_pipe_upcall()
1191 if (!crq) { in sunrpc_cache_pipe_upcall()
1196 crq->q.reader = 0; in sunrpc_cache_pipe_upcall()
1197 crq->buf = buf; in sunrpc_cache_pipe_upcall()
1198 crq->len = 0; in sunrpc_cache_pipe_upcall()
1199 crq->readers = 0; in sunrpc_cache_pipe_upcall()
[all …]

12