Home
last modified time | relevance | path

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

/linux-2.6.39/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-2.6.39/drivers/scsi/ibmvscsi/
Dibmvstgt.c106 } crq; in send_iu() local
115 crq.cooked.valid = 0x80; in send_iu()
116 crq.cooked.format = format; in send_iu()
117 crq.cooked.reserved = 0x00; in send_iu()
118 crq.cooked.timeout = 0x00; in send_iu()
119 crq.cooked.IU_length = length; in send_iu()
120 crq.cooked.IU_data_ptr = vio_iu(iue)->srp.rsp.tag; in send_iu()
123 crq.cooked.status = 0x99; /* Just needs to be non-zero */ in send_iu()
125 crq.cooked.status = 0x00; in send_iu()
127 rc1 = h_send_crq(vport->dma_dev->unit_address, crq.raw[0], crq.raw[1]); in send_iu()
[all …]
Drpa_vscsi.c99 struct viosrp_crq *crq; in crq_queue_next_crq() local
103 crq = &queue->msgs[queue->cur]; in crq_queue_next_crq()
104 if (crq->valid & 0x80) { in crq_queue_next_crq()
108 crq = NULL; in crq_queue_next_crq()
111 return crq; in crq_queue_next_crq()
136 struct viosrp_crq *crq; in rpavscsi_task() local
141 while ((crq = crq_queue_next_crq(&hostdata->queue)) != NULL) { in rpavscsi_task()
142 ibmvscsi_handle_crq(crq, hostdata); in rpavscsi_task()
143 crq->valid = 0x00; in rpavscsi_task()
147 if ((crq = crq_queue_next_crq(&hostdata->queue)) != NULL) { in rpavscsi_task()
[all …]
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.c160 memset(&evt->crq, 0x00, sizeof(evt->crq)); in initialize_event_pool()
162 evt->crq.valid = 0x80; in initialize_event_pool()
163 evt->crq.IU_length = sizeof(*evt->xfer_iu); in initialize_event_pool()
164 evt->crq.IU_data_ptr = pool->iu_token + in initialize_event_pool()
286 evt_struct->crq.format = format; in init_event_struct()
287 evt_struct->crq.timeout = timeout; in init_event_struct()
548 u64 *crq_as_u64 = (u64 *) &evt_struct->crq; in ibmvscsi_send_srp_event()
559 if (evt_struct->crq.format == VIOSRP_SRP_FORMAT) { in ibmvscsi_send_srp_event()
761 indirect->table_desc.va = evt_struct->crq.IU_data_ptr + in ibmvscsi_queuecommand_lck()
1429 void ibmvscsi_handle_crq(struct viosrp_crq *crq, in ibmvscsi_handle_crq() argument
[all …]
Diseries_vscsi.c50 struct viosrp_crq crq; /* 0x20-0x3F */ member
71 ibmvscsi_handle_crq(&evt->crq, single_host_data); in iseriesvscsi_handle_event()
Dibmvscsi.h69 struct viosrp_crq crq; member
111 void ibmvscsi_handle_crq(struct viosrp_crq *crq,
Dibmvfc.h640 struct ibmvfc_crq crq; member
703 struct ibmvfc_crq_queue crq; member
/linux-2.6.39/drivers/usb/gadget/
Datmel_usba_udc.c1209 static inline bool feature_is_dev_remote_wakeup(struct usb_ctrlrequest *crq) in feature_is_dev_remote_wakeup() argument
1211 if (crq->wValue == cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP)) in feature_is_dev_remote_wakeup()
1216 static inline bool feature_is_dev_test_mode(struct usb_ctrlrequest *crq) in feature_is_dev_test_mode() argument
1218 if (crq->wValue == cpu_to_le16(USB_DEVICE_TEST_MODE)) in feature_is_dev_test_mode()
1223 static inline bool feature_is_ep_halt(struct usb_ctrlrequest *crq) in feature_is_ep_halt() argument
1225 if (crq->wValue == cpu_to_le16(USB_ENDPOINT_HALT)) in feature_is_ep_halt()
1231 struct usb_ctrlrequest *crq) in handle_ep0_setup() argument
1235 switch (crq->bRequest) { in handle_ep0_setup()
1239 if (crq->bRequestType == (USB_DIR_IN | USB_RECIP_DEVICE)) { in handle_ep0_setup()
1241 } else if (crq->bRequestType in handle_ep0_setup()
[all …]
Ds3c2410_udc.c553 static int s3c2410_udc_read_fifo_crq(struct usb_ctrlrequest *crq) in s3c2410_udc_read_fifo_crq() argument
555 unsigned char *outbuf = (unsigned char*)crq; in s3c2410_udc_read_fifo_crq()
570 bytes_read, crq->bRequest, crq->bRequestType, in s3c2410_udc_read_fifo_crq()
571 crq->wValue, crq->wIndex, crq->wLength); in s3c2410_udc_read_fifo_crq()
577 struct usb_ctrlrequest *crq) in s3c2410_udc_get_status() argument
580 u8 ep_num = crq->wIndex & 0x7F; in s3c2410_udc_get_status()
581 u8 is_in = crq->wIndex & USB_DIR_IN; in s3c2410_udc_get_status()
583 switch (crq->bRequestType & USB_RECIP_MASK) { in s3c2410_udc_get_status()
592 if (ep_num > 4 || crq->wLength > 2) in s3c2410_udc_get_status()
630 struct usb_ctrlrequest *crq, in s3c2410_udc_handle_ep0_idle() argument
[all …]
/linux-2.6.39/drivers/isdn/mISDN/
Dtei.c979 create_teimgr(struct manager *mgr, struct channel_req *crq) in create_teimgr() argument
989 crq->protocol, crq->adr.dev, crq->adr.channel, in create_teimgr()
990 crq->adr.sapi, crq->adr.tei); in create_teimgr()
991 if (crq->adr.tei > GROUP_TEI) in create_teimgr()
993 if (crq->adr.tei < 64) in create_teimgr()
995 if (crq->adr.tei == 0) in create_teimgr()
998 if (crq->protocol == ISDN_P_LAPD_TE) in create_teimgr()
1000 if ((crq->adr.tei != 0) && (crq->adr.tei != 127)) in create_teimgr()
1009 if (crq->protocol == ISDN_P_LAPD_NT) in create_teimgr()
1011 if ((crq->adr.tei >= 64) && (crq->adr.tei < GROUP_TEI)) in create_teimgr()
[all …]
Ddsp_core.c1047 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()
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.c2181 x75create(struct channel_req *crq) in x75create() argument
2185 if (crq->protocol != ISDN_P_B_X75SLP) in x75create()
2187 l2 = create_l2(crq->ch, crq->protocol, 0, 0, 0); in x75create()
2190 crq->ch = &l2->ch; in x75create()
2191 crq->protocol = ISDN_P_B_HDLC; in x75create()
/linux-2.6.39/net/sunrpc/
Dcache.c1147 struct cache_request *crq; in sunrpc_cache_pipe_upcall() local
1160 crq = kmalloc(sizeof (*crq), GFP_KERNEL); in sunrpc_cache_pipe_upcall()
1161 if (!crq) { in sunrpc_cache_pipe_upcall()
1172 kfree(crq); in sunrpc_cache_pipe_upcall()
1175 crq->q.reader = 0; in sunrpc_cache_pipe_upcall()
1176 crq->item = cache_get(h); in sunrpc_cache_pipe_upcall()
1177 crq->buf = buf; in sunrpc_cache_pipe_upcall()
1178 crq->len = PAGE_SIZE - len; in sunrpc_cache_pipe_upcall()
1179 crq->readers = 0; in sunrpc_cache_pipe_upcall()
1181 list_add_tail(&crq->q.list, &detail->queue); in sunrpc_cache_pipe_upcall()