/linux-6.1.9/drivers/net/ethernet/ibm/ |
D | ibmvnic.c | 153 union ibmvnic_crq crq; in send_crq_init_complete() local 155 memset(&crq, 0, sizeof(crq)); in send_crq_init_complete() 156 crq.generic.first = IBMVNIC_CRQ_INIT_CMD; in send_crq_init_complete() 157 crq.generic.cmd = IBMVNIC_CRQ_INIT_COMPLETE; in send_crq_init_complete() 159 return ibmvnic_send_crq(adapter, &crq); in send_crq_init_complete() 164 union ibmvnic_crq crq; in send_version_xchg() local 166 memset(&crq, 0, sizeof(crq)); in send_version_xchg() 167 crq.version_exchange.first = IBMVNIC_CRQ_CMD; in send_version_xchg() 168 crq.version_exchange.cmd = VERSION_EXCHANGE; in send_version_xchg() 169 crq.version_exchange.version = cpu_to_be16(ibmvnic_version); in send_version_xchg() [all …]
|
D | ibmvnic.h | 920 struct ibmvnic_crq_queue crq; member
|
/linux-6.1.9/drivers/misc/ |
D | ibmvmc.c | 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() 221 crq = NULL; in crq_queue_next_crq() 226 return crq; in crq_queue_next_crq() 1428 struct ibmvmc_crq_msg *crq) in ibmvmc_add_buffer() argument 1437 if (!crq) in ibmvmc_add_buffer() 1440 hmc_session = crq->hmc_session; in ibmvmc_add_buffer() 1441 hmc_index = crq->hmc_index; in ibmvmc_add_buffer() 1442 buffer_id = be16_to_cpu(crq->var2.buffer_id); in ibmvmc_add_buffer() [all …]
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_mbx.c | 159 return tail == hw->hw.cmq.crq.next_to_use; in hclgevf_cmd_crq_empty() 220 struct hclge_comm_cmq_ring *crq; in hclgevf_mbx_handler() local 225 crq = &hdev->hw.hw.cmq.crq; in hclgevf_mbx_handler() 234 desc = &crq->desc[crq->next_to_use]; in hclgevf_mbx_handler() 237 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclgevf_mbx_handler() 245 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 246 hclge_mbx_ring_ptr_move_crq(crq); in hclgevf_mbx_handler() 275 crq->desc[crq->next_to_use].flag = 0; in hclgevf_mbx_handler() 276 hclge_mbx_ring_ptr_move_crq(crq); in hclgevf_mbx_handler() 281 crq->next_to_use); in hclgevf_mbx_handler()
|
/linux-6.1.9/drivers/scsi/ibmvscsi_tgt/ |
D | ibmvscsi_tgt.c | 54 struct viosrp_crq *crq); 102 struct viosrp_crq *crq; in connection_broken() local 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() 333 struct viosrp_crq *crq; in ibmvscsis_send_init_message() local 337 crq = (struct viosrp_crq *)&buffer; in ibmvscsis_send_init_message() 338 crq->valid = VALID_INIT_MSG; in ibmvscsis_send_init_message() 339 crq->format = format; in ibmvscsis_send_init_message() [all …]
|
/linux-6.1.9/drivers/char/tpm/ |
D | tpm_ibmvtpm.c | 477 struct ibmvtpm_crq *crq = &crq_q->crq_addr[crq_q->index]; in ibmvtpm_crq_get_next() local 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() 495 static void ibmvtpm_crq_process(struct ibmvtpm_crq *crq, in ibmvtpm_crq_process() argument 500 switch (crq->valid) { in ibmvtpm_crq_process() 502 switch (crq->msg) { in ibmvtpm_crq_process() 514 dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", 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() [all …]
|
/linux-6.1.9/drivers/usb/gadget/udc/aspeed-vhub/ |
D | ep0.c | 82 struct usb_ctrlrequest crq; in ast_vhub_ep0_handle_setup() local 93 memcpy_fromio(&crq, ep->ep0.setup, sizeof(crq)); in ast_vhub_ep0_handle_setup() 96 crq.bRequestType, crq.bRequest, in ast_vhub_ep0_handle_setup() 97 le16_to_cpu(crq.wValue), in ast_vhub_ep0_handle_setup() 98 le16_to_cpu(crq.wIndex), in ast_vhub_ep0_handle_setup() 99 le16_to_cpu(crq.wLength), in ast_vhub_ep0_handle_setup() 100 (crq.bRequestType & USB_DIR_IN) ? "in" : "out", in ast_vhub_ep0_handle_setup() 121 ep->ep0.dir_in = !!(crq.bRequestType & USB_DIR_IN); in ast_vhub_ep0_handle_setup() 126 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) in ast_vhub_ep0_handle_setup() 127 std_req_rc = ast_vhub_std_hub_request(ep, &crq); in ast_vhub_ep0_handle_setup() [all …]
|
D | hub.c | 402 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()
|
D | dev.c | 219 struct usb_ctrlrequest *crq) in ast_vhub_std_dev_request() argument 247 wValue = le16_to_cpu(crq->wValue); in ast_vhub_std_dev_request() 248 wIndex = le16_to_cpu(crq->wIndex); in ast_vhub_std_dev_request() 250 switch ((crq->bRequestType << 8) | crq->bRequest) { in ast_vhub_std_dev_request()
|
D | vhub.h | 540 struct usb_ctrlrequest *crq); 542 struct usb_ctrlrequest *crq); 555 struct usb_ctrlrequest *crq);
|
/linux-6.1.9/drivers/usb/gadget/udc/ |
D | s3c2410_udc.c | 499 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 …]
|
D | atmel_usba_udc.c | 1283 static inline bool feature_is_dev_remote_wakeup(struct usb_ctrlrequest *crq) in feature_is_dev_remote_wakeup() argument 1285 if (crq->wValue == cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP)) in feature_is_dev_remote_wakeup() 1290 static inline bool feature_is_dev_test_mode(struct usb_ctrlrequest *crq) in feature_is_dev_test_mode() argument 1292 if (crq->wValue == cpu_to_le16(USB_DEVICE_TEST_MODE)) in feature_is_dev_test_mode() 1297 static inline bool feature_is_ep_halt(struct usb_ctrlrequest *crq) in feature_is_ep_halt() argument 1299 if (crq->wValue == cpu_to_le16(USB_ENDPOINT_HALT)) in feature_is_ep_halt() 1305 struct usb_ctrlrequest *crq) in handle_ep0_setup() argument 1309 switch (crq->bRequest) { in handle_ep0_setup() 1313 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup() 1315 } else if (crq->bRequestType in handle_ep0_setup() [all …]
|
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() 1034 struct usb_ctrlrequest crq; in ast_udc_ep0_handle_setup() local 1039 memcpy_fromio(&crq, udc->creq, sizeof(crq)); in ast_udc_ep0_handle_setup() 1042 crq.bRequestType, crq.bRequest, le16_to_cpu(crq.wValue), in ast_udc_ep0_handle_setup() 1043 le16_to_cpu(crq.wIndex), le16_to_cpu(crq.wLength)); in ast_udc_ep0_handle_setup() 1057 udc->ep[0].dir_in = crq.bRequestType & USB_DIR_IN; in ast_udc_ep0_handle_setup() 1059 if ((crq.bRequestType & USB_TYPE_MASK) == USB_TYPE_STANDARD) { in ast_udc_ep0_handle_setup() [all …]
|
/linux-6.1.9/drivers/scsi/ibmvscsi/ |
D | ibmvfc.c | 225 entry->fmt = evt->crq.format; in ibmvfc_trc_start() 262 entry->fmt = evt->crq.format; in ibmvfc_trc_end() 823 evt->crq.valid = 0x80; in ibmvfc_init_event_pool() 824 evt->crq.ioba = cpu_to_be64(pool->iu_token + (sizeof(*evt->xfer_iu) * i)); in ibmvfc_init_event_pool() 895 struct ibmvfc_queue *crq = &vhost->crq; in ibmvfc_release_crq_queue() local 909 ibmvfc_free_queue(vhost, crq); in ibmvfc_release_crq_queue() 938 spin_lock(vhost->crq.q_lock); in ibmvfc_reenable_crq_queue() 941 spin_unlock(vhost->crq.q_lock); in ibmvfc_reenable_crq_queue() 961 struct ibmvfc_queue *crq = &vhost->crq; in ibmvfc_reset_crq() local 973 spin_lock(vhost->crq.q_lock); in ibmvfc_reset_crq() [all …]
|
D | ibmvscsi.c | 109 static void ibmvscsi_handle_crq(struct viosrp_crq *crq, 169 struct viosrp_crq *crq; in crq_queue_next_crq() local 173 crq = &queue->msgs[queue->cur]; in crq_queue_next_crq() 174 if (crq->valid != VIOSRP_CRQ_FREE) { in crq_queue_next_crq() 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 221 while ((crq = crq_queue_next_crq(&hostdata->queue)) != NULL) { in ibmvscsi_task() 222 ibmvscsi_handle_crq(crq, hostdata); in ibmvscsi_task() 223 crq->valid = VIOSRP_CRQ_FREE; in ibmvscsi_task() [all …]
|
D | ibmvscsi.h | 56 struct viosrp_crq crq; member
|
D | ibmvfc.h | 655 struct ibmvfc_crq crq; member 752 struct ibmvfc_crq crq; member 779 struct ibmvfc_crq *crq; member 858 struct ibmvfc_queue crq; member
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
D | hclge_comm_cmd.c | 39 hclge_comm_cmd_config_regs(hw, &hw->cmq.crq); in hclge_comm_cmd_init_regs() 193 &hw->cmq.crq; in hclge_comm_alloc_cmd_queue() 505 spin_lock(&cmdq->crq.lock); in hclge_comm_cmd_uninit() 507 spin_unlock(&cmdq->crq.lock); in hclge_comm_cmd_uninit() 511 hclge_comm_free_cmd_desc(&cmdq->crq); in hclge_comm_cmd_uninit() 521 spin_lock_init(&cmdq->crq.lock); in hclge_comm_cmd_queue_init() 524 cmdq->crq.pdev = pdev; in hclge_comm_cmd_queue_init() 528 cmdq->crq.desc_num = HCLGE_COMM_NIC_CMQ_DESC_NUM; in hclge_comm_cmd_queue_init() 560 spin_lock(&cmdq->crq.lock); in hclge_comm_cmd_init() 564 cmdq->crq.next_to_clean = 0; in hclge_comm_cmd_init() [all …]
|
D | hclge_comm_cmd.h | 415 struct hclge_comm_cmq_ring crq; member
|
/linux-6.1.9/drivers/isdn/mISDN/ |
D | tei.c | 983 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 …]
|
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()
|
D | layer2.c | 2215 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()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/ |
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)
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_mbx.c | 805 return tail == hw->hw.cmq.crq.next_to_use; in hclge_cmd_crq_empty() 1105 struct hclge_comm_cmq_ring *crq = &hdev->hw.hw.cmq.crq; in hclge_mbx_handler() local 1122 desc = &crq->desc[crq->next_to_use]; in hclge_mbx_handler() 1125 flag = le16_to_cpu(crq->desc[crq->next_to_use].flag); in hclge_mbx_handler() 1132 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler() 1133 hclge_mbx_ring_ptr_move_crq(crq); in hclge_mbx_handler() 1145 crq->desc[crq->next_to_use].flag = 0; in hclge_mbx_handler() 1146 hclge_mbx_ring_ptr_move_crq(crq); in hclge_mbx_handler() 1151 crq->next_to_use); in hclge_mbx_handler()
|
/linux-6.1.9/net/sunrpc/ |
D | cache.c | 815 struct cache_request *crq) in cache_request() argument 817 char *bp = crq->buf; in cache_request() 820 detail->cache_request(detail, crq->item, &bp, &len); 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() [all …]
|