Home
last modified time | relevance | path

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

/linux-4.4.14/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-4.4.14/drivers/char/tpm/
Dtpm_ibmvtpm.c126 struct ibmvtpm_crq crq; in tpm_ibmvtpm_send() local
127 __be64 *word = (__be64 *)&crq; in tpm_ibmvtpm_send()
146 crq.valid = (u8)IBMVTPM_VALID_CMD; in tpm_ibmvtpm_send()
147 crq.msg = (u8)VTPM_TPM_COMMAND; in tpm_ibmvtpm_send()
148 crq.len = cpu_to_be16(count); in tpm_ibmvtpm_send()
149 crq.data = cpu_to_be32(ibmvtpm->rtce_dma_handle); in tpm_ibmvtpm_send()
183 struct ibmvtpm_crq crq; in ibmvtpm_crq_get_rtce_size() local
184 u64 *buf = (u64 *) &crq; in ibmvtpm_crq_get_rtce_size()
187 crq.valid = (u8)IBMVTPM_VALID_CMD; in ibmvtpm_crq_get_rtce_size()
188 crq.msg = (u8)VTPM_GET_RTCE_BUFFER_SIZE; in ibmvtpm_crq_get_rtce_size()
[all …]
/linux-4.4.14/drivers/usb/gadget/udc/
Ds3c2410_udc.c524 static int s3c2410_udc_read_fifo_crq(struct usb_ctrlrequest *crq) in s3c2410_udc_read_fifo_crq() argument
526 unsigned char *outbuf = (unsigned char *)crq; in s3c2410_udc_read_fifo_crq()
541 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
542 crq->wValue, crq->wIndex, crq->wLength); in s3c2410_udc_read_fifo_crq()
548 struct usb_ctrlrequest *crq) in s3c2410_udc_get_status() argument
551 u8 ep_num = crq->wIndex & 0x7F; in s3c2410_udc_get_status()
552 u8 is_in = crq->wIndex & USB_DIR_IN; in s3c2410_udc_get_status()
554 switch (crq->bRequestType & USB_RECIP_MASK) { in s3c2410_udc_get_status()
563 if (ep_num > 4 || crq->wLength > 2) in s3c2410_udc_get_status()
601 struct usb_ctrlrequest *crq, in s3c2410_udc_handle_ep0_idle() argument
[all …]
Datmel_usba_udc.c1198 static inline bool feature_is_dev_remote_wakeup(struct usb_ctrlrequest *crq) in feature_is_dev_remote_wakeup() argument
1200 if (crq->wValue == cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP)) in feature_is_dev_remote_wakeup()
1205 static inline bool feature_is_dev_test_mode(struct usb_ctrlrequest *crq) in feature_is_dev_test_mode() argument
1207 if (crq->wValue == cpu_to_le16(USB_DEVICE_TEST_MODE)) in feature_is_dev_test_mode()
1212 static inline bool feature_is_ep_halt(struct usb_ctrlrequest *crq) in feature_is_ep_halt() argument
1214 if (crq->wValue == cpu_to_le16(USB_ENDPOINT_HALT)) in feature_is_ep_halt()
1220 struct usb_ctrlrequest *crq) in handle_ep0_setup() argument
1224 switch (crq->bRequest) { in handle_ep0_setup()
1228 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
1230 } else if (crq->bRequestType in handle_ep0_setup()
[all …]
/linux-4.4.14/drivers/scsi/ibmvscsi/
Dibmvfc.c163 entry->fmt = evt->crq.format; in ibmvfc_trc_start()
196 entry->fmt = evt->crq.format; in ibmvfc_trc_end()
654 struct ibmvfc_crq_queue *crq = &vhost->crq; in ibmvfc_release_crq_queue() local
667 dma_unmap_single(vhost->dev, crq->msg_token, PAGE_SIZE, DMA_BIDIRECTIONAL); in ibmvfc_release_crq_queue()
668 free_page((unsigned long)crq->msgs); in ibmvfc_release_crq_queue()
708 struct ibmvfc_crq_queue *crq = &vhost->crq; in ibmvfc_reset_crq() local
723 memset(crq->msgs, 0, PAGE_SIZE); in ibmvfc_reset_crq()
724 crq->cur = 0; in ibmvfc_reset_crq()
728 crq->msg_token, PAGE_SIZE); in ibmvfc_reset_crq()
1227 evt->crq.valid = 0x80; in ibmvfc_init_event_pool()
[all …]
Dibmvscsi.c121 static void ibmvscsi_handle_crq(struct viosrp_crq *crq,
180 struct viosrp_crq *crq; in crq_queue_next_crq() local
184 crq = &queue->msgs[queue->cur]; in crq_queue_next_crq()
185 if (crq->valid & 0x80) { in crq_queue_next_crq()
194 crq = NULL; in crq_queue_next_crq()
197 return crq; in crq_queue_next_crq()
227 struct viosrp_crq *crq; in ibmvscsi_task() local
232 while ((crq = crq_queue_next_crq(&hostdata->queue)) != NULL) { in ibmvscsi_task()
233 ibmvscsi_handle_crq(crq, hostdata); in ibmvscsi_task()
234 crq->valid = 0x00; in ibmvscsi_task()
[all …]
Dibmvscsi.h70 struct viosrp_crq crq; member
Dibmvfc.h641 struct ibmvfc_crq crq; member
704 struct ibmvfc_crq_queue crq; member
/linux-4.4.14/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-4.4.14/net/sunrpc/
Dcache.c752 struct cache_request *crq) in cache_request() argument
754 char *bp = crq->buf; in cache_request()
757 detail->cache_request(detail, crq->item, &bp, &len); in cache_request()
1160 struct cache_request *crq; in sunrpc_cache_pipe_upcall() local
1178 crq = kmalloc(sizeof (*crq), GFP_KERNEL); in sunrpc_cache_pipe_upcall()
1179 if (!crq) { in sunrpc_cache_pipe_upcall()
1184 crq->q.reader = 0; in sunrpc_cache_pipe_upcall()
1185 crq->buf = buf; in sunrpc_cache_pipe_upcall()
1186 crq->len = 0; in sunrpc_cache_pipe_upcall()
1187 crq->readers = 0; in sunrpc_cache_pipe_upcall()
[all …]