/openbmc/linux/drivers/net/ethernet/ibm/ |
H A D | ibmvnic.c | 159 memset(&crq, 0, sizeof(crq)); in send_crq_init_complete() 170 memset(&crq, 0, sizeof(crq)); in send_version_xchg() 1689 memset(&crq, 0, sizeof(crq)); in set_link_state() 2617 memset(&crq, 0, sizeof(crq)); in ibmvnic_set_multi() 2665 memset(&crq, 0, sizeof(crq)); in __ibmvnic_set_mac() 3814 memset(&crq, 0, sizeof(crq)); in ibmvnic_get_ethtool_stats() 4525 memset(&crq, 0, sizeof(crq)); in send_request_cap() 4723 memset(&crq, 0, sizeof(crq)); in ibmvnic_send_crq_init() 4909 memset(&crq, 0, sizeof(crq)); in send_login() 4945 memset(&crq, 0, sizeof(crq)); in send_request_map() [all …]
|
/openbmc/qemu/hw/tpm/ |
H A D | tpm_spapr.c | 72 TpmCrq crq; /* track single TPM command */ member 135 TpmCrq *crq = &s->crq; /* requests only */ in tpm_spapr_do_crq() local 172 memcpy(crq, crq_data, sizeof(*crq)); in tpm_spapr_do_crq() 177 crq->valid = be16_to_cpu(0); in tpm_spapr_do_crq() 236 TpmCrq *crq = &s->crq; in tpm_spapr_request_completed() local 257 crq->valid = SPAPR_VTPM_MSG_RESULT; in tpm_spapr_request_completed() 260 crq->len = cpu_to_be16(len); in tpm_spapr_request_completed() 263 crq->msg = SPAPR_VTPM_VTPM_ERROR; in tpm_spapr_request_completed() 264 crq->len = cpu_to_be16(0); in tpm_spapr_request_completed() 268 rc = spapr_tpm_send_crq(&s->vdev, crq); in tpm_spapr_request_completed() [all …]
|
/openbmc/linux/drivers/misc/ |
H A D | ibmvmc.c | 221 crq = NULL; in crq_queue_next_crq() 226 return crq; in crq_queue_next_crq() 1437 if (!crq) in ibmvmc_add_buffer() 1554 if (!crq) in ibmvmc_rem_buffer() 1609 if (!crq) in ibmvmc_recv_msg() 1944 crq->type); in ibmvmc_crq_process() 1953 crq->type); in ibmvmc_crq_process() 1959 crq->type); in ibmvmc_crq_process() 1965 crq->type); in ibmvmc_crq_process() 1971 crq->type); in ibmvmc_crq_process() [all …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | atmel_usba_udc.c | 718 switch (crq->bRequest) { in handle_ep0_setup() 833 ep->ep.name, crq->bRequestType, crq->bRequest, in handle_ep0_setup() 834 le16_to_cpu(crq->wValue), le16_to_cpu(crq->wIndex), in handle_ep0_setup() 943 } crq; in usba_control_irq() local 982 memcpy(crq.data, ep->fifo, sizeof(crq)); in usba_control_irq() 988 if (crq.crq.bRequestType & USB_DIR_IN) { in usba_control_irq() 997 if (crq.crq.wLength != cpu_to_le16(0)) in usba_control_irq() 1005 ret = handle_ep0_setup(udc, ep, &crq.crq); in usba_control_irq() 1008 ret = udc->driver->setup(&udc->gadget, &crq.crq); in usba_control_irq() 1013 crq.crq.bRequestType, crq.crq.bRequest, in usba_control_irq() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_vio.c | 192 if (dev->crq.qsize) { in h_reg_crq() 198 dev->crq.qnext = 0; in h_reg_crq() 206 dev->crq.qladdr = 0; in free_crq() 207 dev->crq.qsize = 0; in free_crq() 208 dev->crq.qnext = 0; in free_crq() 245 if (dev->crq.SendFunc) { in h_send_crq() 272 if (!dev->crq.qsize) { in spapr_vio_send_crq() 278 rc = spapr_vio_dma_read(dev, dev->crq.qladdr + dev->crq.qnext, &byte, 1); in spapr_vio_send_crq() 286 rc = spapr_vio_dma_write(dev, dev->crq.qladdr + dev->crq.qnext + 8, in spapr_vio_send_crq() 294 rc = spapr_vio_dma_write(dev, dev->crq.qladdr + dev->crq.qnext, crq, 8); in spapr_vio_send_crq() [all …]
|
/openbmc/qemu/hw/scsi/ |
H A D | spapr_vscsi.c | 70 vscsi_crq crq; member 194 req->crq.s.valid = 0x80; in vscsi_send_iu() 195 req->crq.s.format = format; in vscsi_send_iu() 1117 memcpy(&req->crq, crq, sizeof(vscsi_crq)); in vscsi_got_payload() 1134 vscsi_crq crq; in vscsi_do_crq() local 1137 crq.s.timeout = be16_to_cpu(crq.s.timeout); in vscsi_do_crq() 1138 crq.s.IU_length = be16_to_cpu(crq.s.IU_length); in vscsi_do_crq() 1139 crq.s.IU_data_ptr = be64_to_cpu(crq.s.IU_data_ptr); in vscsi_do_crq() 1141 trace_spapr_vscsi_do_crq(crq.raw[0], crq.raw[1]); in vscsi_do_crq() 1143 switch (crq.s.valid) { in vscsi_do_crq() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_mbx.c | 162 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() 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() 288 crq->next_to_use); in hclgevf_mbx_handler()
|
/openbmc/linux/drivers/scsi/ibmvscsi_tgt/ |
H A D | ibmvscsi_tgt.c | 102 struct viosrp_crq *crq; in connection_broken() local 111 crq->status = PING; in connection_broken() 339 crq->format = format; in ibmvscsis_send_init_message() 365 if (!crq) { in ibmvscsis_check_init_msg() 367 } else if (crq->valid == VALID_INIT_MSG && crq->format == INIT_MSG) { in ibmvscsis_check_init_msg() 380 if (crq) { in ibmvscsis_check_init_msg() 997 ((crq->valid) && ((crq->valid != VALID_TRANS_EVENT) || in ibmvscsis_ready_for_suspend() 1010 if ((crq->valid) && ((crq->valid != VALID_TRANS_EVENT) || in ibmvscsis_ready_for_suspend() 1098 (int)crq->status); in ibmvscsis_trans_event() 1127 (int)crq->status); in ibmvscsis_trans_event() [all …]
|
/openbmc/linux/drivers/char/tpm/ |
H A D | tpm_ibmvtpm.c | 479 if (crq->valid & VTPM_MSG_RES) { in ibmvtpm_crq_get_next() 484 crq = NULL; in ibmvtpm_crq_get_next() 485 return crq; in ibmvtpm_crq_get_next() 500 switch (crq->valid) { in ibmvtpm_crq_process() 502 switch (crq->msg) { in ibmvtpm_crq_process() 518 switch (crq->msg) { in ibmvtpm_crq_process() 520 if (be16_to_cpu(crq->len) <= 0) { in ibmvtpm_crq_process() 549 ibmvtpm->res_len = be16_to_cpu(crq->len); in ibmvtpm_crq_process() 572 struct ibmvtpm_crq *crq; in ibmvtpm_interrupt() local 579 ibmvtpm_crq_process(crq, ibmvtpm); in ibmvtpm_interrupt() [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | ep0.c | 81 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() 126 std_req_rc = ast_vhub_std_hub_request(ep, &crq); in ast_vhub_ep0_handle_setup() 128 std_req_rc = ast_vhub_class_hub_request(ep, &crq); in ast_vhub_ep0_handle_setup() [all …]
|
H A D | hub.c | 401 struct usb_ctrlrequest *crq) in ast_vhub_std_hub_request() argument 406 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_hub_request() 407 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_hub_request() 408 wLength = le16_to_cpu(crq->wLength); in ast_vhub_std_hub_request() 421 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_std_hub_request() 766 struct usb_ctrlrequest *crq) in ast_vhub_class_hub_request() argument 770 wValue = le16_to_cpu(crq->wValue); in ast_vhub_class_hub_request() 771 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_class_hub_request() 772 wLength = le16_to_cpu(crq->wLength); in ast_vhub_class_hub_request() 774 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_class_hub_request()
|
H A D | dev.c | 218 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()
|
H A D | vhub.h | 540 struct usb_ctrlrequest *crq); 542 struct usb_ctrlrequest *crq); 555 struct usb_ctrlrequest *crq);
|
/openbmc/linux/drivers/scsi/ibmvscsi/ |
H A D | ibmvfc.c | 894 struct ibmvfc_queue *crq = &vhost->crq; in ibmvfc_release_crq_queue() local 960 struct ibmvfc_queue *crq = &vhost->crq; in ibmvfc_reset_crq() local 979 memset(crq->msgs.crq, 0, PAGE_SIZE); in ibmvfc_reset_crq() 980 crq->cur = 0; in ibmvfc_reset_crq() 3209 if (!crq->scsi_id && !crq->wwpn && !crq->node_name) in ibmvfc_handle_async() 3698 return crq; in ibmvfc_next_async_crq() 3713 crq = &queue->msgs.crq[queue->cur]; in ibmvfc_next_crq() 3721 return crq; in ibmvfc_next_crq() 3865 crq = &scrq->msgs.scrq[scrq->cur].crq; in ibmvfc_next_scrq() 3873 return crq; in ibmvfc_next_scrq() [all …]
|
H A D | ibmvscsi.c | 169 struct viosrp_crq *crq; in crq_queue_next_crq() local 183 crq = NULL; in crq_queue_next_crq() 186 return crq; in crq_queue_next_crq() 216 struct viosrp_crq *crq; in ibmvscsi_task() local 229 if (crq != NULL) { in ibmvscsi_task() 465 memset(&evt->crq, 0x00, sizeof(evt->crq)); in initialize_event_pool() 1774 switch (crq->valid) { in ibmvscsi_handle_crq() 1776 switch (crq->format) { in ibmvscsi_handle_crq() 1811 crq->format); in ibmvscsi_handle_crq() 1819 crq->valid); in ibmvscsi_handle_crq() [all …]
|
H A D | ibmvscsi.h | 56 struct viosrp_crq crq; member
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | atmel_usba_udc.c | 1309 switch (crq->bRequest) { in handle_ep0_setup() 1423 ep->ep.name, crq->bRequestType, crq->bRequest, in handle_ep0_setup() 1424 le16_to_cpu(crq->wValue), le16_to_cpu(crq->wIndex), in handle_ep0_setup() 1534 } crq; in usba_control_irq() local 1573 memcpy_fromio(crq.data, ep->fifo, sizeof(crq)); in usba_control_irq() 1583 if (crq.crq.bRequestType & USB_DIR_IN) { in usba_control_irq() 1592 if (crq.crq.wLength != cpu_to_le16(0)) in usba_control_irq() 1600 ret = handle_ep0_setup(udc, ep, &crq.crq); in usba_control_irq() 1603 ret = udc->driver->setup(&udc->gadget, &crq.crq); in usba_control_irq() 1608 crq.crq.bRequestType, crq.crq.bRequest, in usba_control_irq() [all …]
|
H A D | aspeed_udc.c | 996 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() 1062 switch (crq.bRequest) { in ast_udc_ep0_handle_setup() 1072 reg |= UDC_CFG_SET_ADDR(crq.wValue); in ast_udc_ep0_handle_setup() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
H A D | hclge_comm_cmd.c | 39 hclge_comm_cmd_config_regs(hw, &hw->cmq.crq); in hclge_comm_cmd_init_regs() 210 &hw->cmq.crq; in hclge_comm_alloc_cmd_queue() 539 spin_lock(&cmdq->crq.lock); in hclge_comm_cmd_uninit() 541 spin_unlock(&cmdq->crq.lock); in hclge_comm_cmd_uninit() 545 hclge_comm_free_cmd_desc(&cmdq->crq); in hclge_comm_cmd_uninit() 555 spin_lock_init(&cmdq->crq.lock); in hclge_comm_cmd_queue_init() 558 cmdq->crq.pdev = pdev; in hclge_comm_cmd_queue_init() 594 spin_lock(&cmdq->crq.lock); in hclge_comm_cmd_init() 598 cmdq->crq.next_to_clean = 0; in hclge_comm_cmd_init() 599 cmdq->crq.next_to_use = 0; in hclge_comm_cmd_init() [all …]
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A D | tei.c | 994 crq->protocol, crq->adr.dev, crq->adr.channel, in create_teimgr() 995 crq->adr.sapi, crq->adr.tei); in create_teimgr() 1005 if ((crq->adr.tei != 0) && (crq->adr.tei != 127)) in create_teimgr() 1016 if ((crq->adr.tei >= 64) && (crq->adr.tei < GROUP_TEI)) in create_teimgr() 1024 l1rq.adr = crq->adr; in create_teimgr() 1028 if ((crq->protocol == ISDN_P_LAPD_NT) && (crq->adr.tei == 127)) { in create_teimgr() 1029 mgr->up = crq->ch; in create_teimgr() 1034 crq->ch = NULL; in create_teimgr() 1045 l2 = create_l2(crq->ch, crq->protocol, opt, in create_teimgr() 1046 crq->adr.tei, crq->adr.sapi); in create_teimgr() [all …]
|
H A D | dsp_core.c | 1047 dspcreate(struct channel_req *crq) in dspcreate() argument 1052 if (crq->protocol != ISDN_P_B_L2DSP in dspcreate() 1053 && crq->protocol != ISDN_P_B_L2DSPHDLC) in dspcreate() 1068 ndsp->up = crq->ch; in dspcreate() 1069 crq->ch = &ndsp->ch; in dspcreate() 1070 if (crq->protocol == ISDN_P_B_L2DSP) { in dspcreate() 1071 crq->protocol = ISDN_P_B_RAW; in dspcreate() 1074 crq->protocol = ISDN_P_B_HDLC; in dspcreate()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hclge_mbx.h | 247 #define hclge_mbx_ring_ptr_move_crq(crq) \ argument 248 (crq->next_to_use = (crq->next_to_use + 1) % crq->desc_num)
|
/openbmc/qemu/include/hw/ppc/ |
H A D | spapr_vio.h | 43 int(*SendFunc)(struct SpaprVioDevice *vdev, uint8_t *crq); 64 SpaprVioCrq crq; member 136 int spapr_vio_send_crq(SpaprVioDevice *dev, uint8_t *crq);
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mbx.c | 805 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()
|
/openbmc/linux/net/sunrpc/ |
H A D | cache.c | 815 struct cache_request *crq) in cache_request() argument 817 char *bp = crq->buf; in cache_request() 1208 struct cache_request *crq; in cache_pipe_upcall() local 1219 crq = kmalloc(sizeof (*crq), GFP_KERNEL); in cache_pipe_upcall() 1220 if (!crq) { in cache_pipe_upcall() 1225 crq->q.reader = 0; in cache_pipe_upcall() 1226 crq->buf = buf; in cache_pipe_upcall() 1227 crq->len = 0; in cache_pipe_upcall() 1228 crq->readers = 0; in cache_pipe_upcall() 1231 crq->item = cache_get(h); in cache_pipe_upcall() [all …]
|