Home
last modified time | relevance | path

Searched refs:mq (Results 1 – 15 of 15) sorted by relevance

/drivers/mmc/card/
Dqueue.c46 struct mmc_queue *mq = d; in mmc_queue_thread() local
47 struct request_queue *q = mq->queue; in mmc_queue_thread()
51 down(&mq->thread_sem); in mmc_queue_thread()
59 mq->req = req; in mmc_queue_thread()
67 up(&mq->thread_sem); in mmc_queue_thread()
69 down(&mq->thread_sem); in mmc_queue_thread()
74 mq->issue_fn(mq, req); in mmc_queue_thread()
76 up(&mq->thread_sem); in mmc_queue_thread()
89 struct mmc_queue *mq = q->queuedata; in mmc_request() local
93 if (!mq) { in mmc_request()
[all …]
Dblock.c264 static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req) in mmc_blk_issue_rq() argument
266 struct mmc_blk_data *md = mq->data; in mmc_blk_issue_rq()
339 brq.data.sg = mq->sg; in mmc_blk_issue_rq()
340 brq.data.sg_len = mmc_queue_map_sg(mq); in mmc_blk_issue_rq()
361 mmc_queue_bounce_pre(mq); in mmc_blk_issue_rq()
365 mmc_queue_bounce_post(mq); in mmc_blk_issue_rq()
/drivers/scsi/arm/
Dmsgqueue.c27 struct msgqueue_entry *mq; in mqe_alloc() local
29 if ((mq = msgq->free) != NULL) in mqe_alloc()
30 msgq->free = mq->next; in mqe_alloc()
32 return mq; in mqe_alloc()
41 static void mqe_free(MsgQueue_t *msgq, struct msgqueue_entry *mq) in mqe_free() argument
43 if (mq) { in mqe_free()
44 mq->next = msgq->free; in mqe_free()
45 msgq->free = mq; in mqe_free()
85 struct msgqueue_entry *mq = msgq->qe; in msgqueue_msglength() local
88 for (mq = msgq->qe; mq; mq = mq->next) in msgqueue_msglength()
[all …]
/drivers/sh/maple/
Dmaple.c118 void (*callback) (struct mapleq *mq), in maple_getcond_callback()
136 struct mapleq *mq; in maple_release_device() local
140 mq = mdev->mq; in maple_release_device()
141 if (mq) { in maple_release_device()
142 if (mq->recvbufdcsp) in maple_release_device()
143 kmem_cache_free(maple_queue_cache, mq->recvbufdcsp); in maple_release_device()
144 kfree(mq); in maple_release_device()
145 mq = NULL; in maple_release_device()
166 locking = mutex_is_locked(&mdev->mq->mutex); in maple_add_packet()
172 mutex_lock(&mdev->mq->mutex); in maple_add_packet()
[all …]
/drivers/misc/sgi-gru/
Dgrukservices.c97 #define QLINES(mq) ((mq) + offsetof(struct message_queue, qlines)) argument
98 #define HSTATUS(mq, h) ((mq) + offsetof(struct message_queue, hstatus[h])) argument
255 struct message_queue *mq = p; in gru_create_message_queue() local
259 memset(mq, 0, bytes); in gru_create_message_queue()
260 mq->start = &mq->data; in gru_create_message_queue()
261 mq->start2 = &mq->data + (qlines / 2 - 1) * GRU_CACHE_LINE_BYTES; in gru_create_message_queue()
262 mq->next = &mq->data; in gru_create_message_queue()
263 mq->limit = &mq->data + (qlines - 2) * GRU_CACHE_LINE_BYTES; in gru_create_message_queue()
264 mq->qlines = qlines; in gru_create_message_queue()
265 mq->hstatus[0] = 0; in gru_create_message_queue()
[all …]
Dgrukservices.h100 extern void gru_free_message(void *mq, void *mesq);
115 extern void *gru_get_next_message(void *mq);
/drivers/infiniband/hw/amso1100/
Dc2_cq.c90 q = &cq->mq; in c2_cq_clean()
136 ce = (struct c2wr_ce *) c2_mq_consume(&cq->mq); in c2_poll_one()
148 c2_mq_free(&cq->mq); in c2_poll_one()
149 ce = (struct c2wr_ce *) c2_mq_consume(&cq->mq); in c2_poll_one()
194 c2_mq_free(&cq->mq); in c2_poll_one()
228 shared = cq->mq.peer; in c2_arm_cq()
248 ret = !c2_mq_empty(&cq->mq); in c2_arm_cq()
255 static void c2_free_cq_buf(struct c2_dev *c2dev, struct c2_mq *mq) in c2_free_cq_buf() argument
257 dma_free_coherent(&c2dev->pcidev->dev, mq->q_size * mq->msg_size, in c2_free_cq_buf()
258 mq->msg_pool.host, pci_unmap_addr(mq, mapping)); in c2_free_cq_buf()
[all …]
Dc2_ae.c149 struct c2_mq *mq = c2dev->qptr_array[mq_index]; in c2_ae_event() local
162 wr = c2_mq_consume(mq); in c2_ae_event()
318 c2_mq_free(mq); in c2_ae_event()
Dc2_provider.h100 struct c2_mq mq; member
/drivers/misc/sgi-xp/
Dxpc_uv.c66 xpc_get_gru_mq_irq_uv(struct xpc_gru_mq_uv *mq, int cpu, char *irq_name) in xpc_get_gru_mq_irq_uv() argument
69 mq->irq = uv_setup_irq(irq_name, cpu, mq->mmr_blade, mq->mmr_offset); in xpc_get_gru_mq_irq_uv()
70 if (mq->irq < 0) { in xpc_get_gru_mq_irq_uv()
72 mq->irq); in xpc_get_gru_mq_irq_uv()
80 mq->irq = SGI_XPC_ACTIVATE; in xpc_get_gru_mq_irq_uv()
82 mq->irq = SGI_XPC_NOTIFY; in xpc_get_gru_mq_irq_uv()
86 mmr_pnode = uv_blade_to_pnode(mq->mmr_blade); in xpc_get_gru_mq_irq_uv()
87 mmr_value = (unsigned long)cpu_physical_id(cpu) << 32 | mq->irq; in xpc_get_gru_mq_irq_uv()
89 uv_write_global_mmr64(mmr_pnode, mq->mmr_offset, mmr_value); in xpc_get_gru_mq_irq_uv()
98 xpc_release_gru_mq_irq_uv(struct xpc_gru_mq_uv *mq) in xpc_release_gru_mq_irq_uv() argument
[all …]
/drivers/isdn/capi/
Dcapilib.c46 struct capilib_msgidqueue *mq; in mq_enqueue() local
47 if ((mq = np->msgidfree) == NULL) in mq_enqueue()
49 np->msgidfree = mq->next; in mq_enqueue()
50 mq->msgid = msgid; in mq_enqueue()
51 mq->next = NULL; in mq_enqueue()
53 np->msgidlast->next = mq; in mq_enqueue()
54 np->msgidlast = mq; in mq_enqueue()
56 np->msgidqueue = mq; in mq_enqueue()
66 struct capilib_msgidqueue *mq = *pp; in mq_dequeue() local
67 *pp = mq->next; in mq_dequeue()
[all …]
/drivers/input/joystick/
Dmaplecontrol.c26 static void dc_pad_callback(struct mapleq *mq) in dc_pad_callback() argument
29 struct maple_device *mapledev = mq->dev; in dc_pad_callback()
32 unsigned char *res = mq->recvbuf; in dc_pad_callback()
/drivers/input/keyboard/
Dmaple_keyb.c139 static void dc_kbd_callback(struct mapleq *mq) in dc_kbd_callback() argument
141 struct maple_device *mapledev = mq->dev; in dc_kbd_callback()
143 unsigned long *buf = mq->recvbuf; in dc_kbd_callback()
/drivers/scsi/qla2xxx/
Dqla_dbg.c355 struct qla2xxx_mq_chain *mq = ptr; in qla25xx_copy_mq() local
361 mq = ptr; in qla25xx_copy_mq()
362 *last_chain = &mq->type; in qla25xx_copy_mq()
363 mq->type = __constant_htonl(DUMP_CHAIN_MQ); in qla25xx_copy_mq()
364 mq->chain_size = __constant_htonl(sizeof(struct qla2xxx_mq_chain)); in qla25xx_copy_mq()
369 mq->count = htonl(que_cnt); in qla25xx_copy_mq()
374 mq->qregs[que_idx] = htonl(RD_REG_DWORD(&reg->req_q_in)); in qla25xx_copy_mq()
375 mq->qregs[que_idx+1] = htonl(RD_REG_DWORD(&reg->req_q_out)); in qla25xx_copy_mq()
376 mq->qregs[que_idx+2] = htonl(RD_REG_DWORD(&reg->rsp_q_in)); in qla25xx_copy_mq()
377 mq->qregs[que_idx+3] = htonl(RD_REG_DWORD(&reg->rsp_q_out)); in qla25xx_copy_mq()
/drivers/scsi/
DKconfig691 This is equivalent to the "eata=mq:8" boot option.
1505 This is equivalent to the "u14-34f=mq:8" boot option.