Home
last modified time | relevance | path

Searched refs:cmd_q (Results 1 – 23 of 23) sorted by relevance

/drivers/dma/ptdma/
Dptdma-dev.c57 void pt_start_queue(struct pt_cmd_queue *cmd_q) in pt_start_queue() argument
60 iowrite32(cmd_q->qcontrol | CMD_Q_RUN, cmd_q->reg_control); in pt_start_queue()
63 void pt_stop_queue(struct pt_cmd_queue *cmd_q) in pt_stop_queue() argument
66 iowrite32(cmd_q->qcontrol & ~CMD_Q_RUN, cmd_q->reg_control); in pt_stop_queue()
69 static int pt_core_execute_cmd(struct ptdma_desc *desc, struct pt_cmd_queue *cmd_q) in pt_core_execute_cmd() argument
72 u8 *q_desc = (u8 *)&cmd_q->qbase[cmd_q->qidx]; in pt_core_execute_cmd()
80 spin_lock_irqsave(&cmd_q->q_lock, flags); in pt_core_execute_cmd()
84 cmd_q->qidx = (cmd_q->qidx + 1) % CMD_Q_LEN; in pt_core_execute_cmd()
90 tail = lower_32_bits(cmd_q->qdma_tail + cmd_q->qidx * Q_DESC_SIZE); in pt_core_execute_cmd()
91 iowrite32(tail, cmd_q->reg_control + 0x0004); in pt_core_execute_cmd()
[all …]
Dptdma-debugfs.c57 struct pt_cmd_queue *cmd_q = s->private; in pt_debugfs_queue_show() local
60 if (!cmd_q) in pt_debugfs_queue_show()
63 seq_printf(s, " Pass-Thru: %ld\n", cmd_q->total_pt_ops); in pt_debugfs_queue_show()
65 regval = ioread32(cmd_q->reg_control + 0x000C); in pt_debugfs_queue_show()
87 struct pt_cmd_queue *cmd_q; in ptdma_debugfs_setup() local
99 cmd_q = &pt->cmd_q; in ptdma_debugfs_setup()
104 debugfs_create_file("stats", 0400, debugfs_q_instance, cmd_q, in ptdma_debugfs_setup()
Dptdma.h248 struct pt_cmd_queue cmd_q; member
318 int pt_core_perform_passthru(struct pt_cmd_queue *cmd_q,
321 void pt_start_queue(struct pt_cmd_queue *cmd_q);
322 void pt_stop_queue(struct pt_cmd_queue *cmd_q);
Dptdma-dmaengine.c53 struct pt_cmd_queue *cmd_q; in pt_dma_start_desc() local
59 cmd_q = &pt->cmd_q; in pt_dma_start_desc()
65 pt_cmd->ret = pt_core_perform_passthru(cmd_q, pt_engine); in pt_dma_start_desc()
256 pt_stop_queue(&chan->pt->cmd_q); in pt_pause()
269 pt_start_queue(&chan->pt->cmd_q); in pt_resume()
/drivers/crypto/ccp/
Dccp-dev-v5.c25 static u32 ccp_lsb_alloc(struct ccp_cmd_queue *cmd_q, unsigned int count) in ccp_lsb_alloc() argument
31 if (cmd_q->lsb >= 0) { in ccp_lsb_alloc()
32 start = (u32)bitmap_find_next_zero_area(cmd_q->lsbmap, in ccp_lsb_alloc()
36 bitmap_set(cmd_q->lsbmap, start, count); in ccp_lsb_alloc()
37 return start + cmd_q->lsb * LSB_SIZE; in ccp_lsb_alloc()
42 ccp = cmd_q->ccp; in ccp_lsb_alloc()
70 static void ccp_lsb_free(struct ccp_cmd_queue *cmd_q, unsigned int start, in ccp_lsb_free() argument
76 if (cmd_q->lsb == start) { in ccp_lsb_free()
78 bitmap_clear(cmd_q->lsbmap, start, count); in ccp_lsb_free()
81 struct ccp_device *ccp = cmd_q->ccp; in ccp_lsb_free()
[all …]
Dccp-dev-v3.c19 static u32 ccp_alloc_ksb(struct ccp_cmd_queue *cmd_q, unsigned int count) in ccp_alloc_ksb() argument
22 struct ccp_device *ccp = cmd_q->ccp; in ccp_alloc_ksb()
50 static void ccp_free_ksb(struct ccp_cmd_queue *cmd_q, unsigned int start, in ccp_free_ksb() argument
53 struct ccp_device *ccp = cmd_q->ccp; in ccp_free_ksb()
69 static unsigned int ccp_get_free_slots(struct ccp_cmd_queue *cmd_q) in ccp_get_free_slots() argument
71 return CMD_Q_DEPTH(ioread32(cmd_q->reg_status)); in ccp_get_free_slots()
76 struct ccp_cmd_queue *cmd_q = op->cmd_q; in ccp_do_cmd() local
77 struct ccp_device *ccp = cmd_q->ccp; in ccp_do_cmd()
87 cmd_q->free_slots--; in ccp_do_cmd()
89 cr0 = (cmd_q->id << REQ0_CMD_Q_SHIFT) in ccp_do_cmd()
[all …]
Dccp-debugfs.c115 struct ccp_cmd_queue *cmd_q = &ccp->cmd_q[i]; in ccp5_debugfs_stats_read() local
117 total_ops += cmd_q->total_ops; in ccp5_debugfs_stats_read()
118 total_aes_ops += cmd_q->total_aes_ops; in ccp5_debugfs_stats_read()
119 total_xts_aes_ops += cmd_q->total_xts_aes_ops; in ccp5_debugfs_stats_read()
120 total_3des_ops += cmd_q->total_3des_ops; in ccp5_debugfs_stats_read()
121 total_sha_ops += cmd_q->total_sha_ops; in ccp5_debugfs_stats_read()
122 total_rsa_ops += cmd_q->total_rsa_ops; in ccp5_debugfs_stats_read()
123 total_pt_ops += cmd_q->total_pt_ops; in ccp5_debugfs_stats_read()
124 total_ecc_ops += cmd_q->total_ecc_ops; in ccp5_debugfs_stats_read()
158 static void ccp5_debugfs_reset_queue_stats(struct ccp_cmd_queue *cmd_q) in ccp5_debugfs_reset_queue_stats() argument
[all …]
Dccp-ops.c153 struct ccp_cmd_queue *cmd_q, in ccp_init_dm_workarea() argument
162 wa->dev = cmd_q->ccp->dev; in ccp_init_dm_workarea()
166 wa->dma_pool = cmd_q->dma_pool; in ccp_init_dm_workarea()
265 static void ccp_free_data(struct ccp_data *data, struct ccp_cmd_queue *cmd_q) in ccp_free_data() argument
271 static int ccp_init_data(struct ccp_data *data, struct ccp_cmd_queue *cmd_q, in ccp_init_data() argument
280 ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len, in ccp_init_data()
285 ret = ccp_init_dm_workarea(&data->dm_wa, cmd_q, dm_len, dir); in ccp_init_data()
292 ccp_free_data(data, cmd_q); in ccp_init_data()
429 static int ccp_copy_to_from_sb(struct ccp_cmd_queue *cmd_q, in ccp_copy_to_from_sb() argument
437 op.cmd_q = cmd_q; in ccp_copy_to_from_sb()
[all …]
Dccp-dev.c327 if (ccp->cmd_q[i].active) in ccp_enqueue_cmd()
339 wake_up_process(ccp->cmd_q[i].kthread); in ccp_enqueue_cmd()
361 if (ccp->cmd_q[i].active) in ccp_do_cmd_backlog()
371 wake_up_process(ccp->cmd_q[i].kthread); in ccp_do_cmd_backlog()
374 static struct ccp_cmd *ccp_dequeue_cmd(struct ccp_cmd_queue *cmd_q) in ccp_dequeue_cmd() argument
376 struct ccp_device *ccp = cmd_q->ccp; in ccp_dequeue_cmd()
383 cmd_q->active = 0; in ccp_dequeue_cmd()
386 cmd_q->suspended = 1; in ccp_dequeue_cmd()
395 cmd_q->active = 1; in ccp_dequeue_cmd()
436 struct ccp_cmd_queue *cmd_q = (struct ccp_cmd_queue *)data; in ccp_cmd_queue_thread() local
[all …]
Dccp-dev.h380 struct ccp_cmd_queue cmd_q[MAX_HW_QUEUES]; member
532 struct ccp_cmd_queue *cmd_q; member
641 int ccp_run_cmd(struct ccp_cmd_queue *cmd_q, struct ccp_cmd *cmd);
/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c278 bytes = vscsi->cmd_q.size * PAGE_SIZE; in ibmvscsis_free_command_q()
279 memset(vscsi->cmd_q.base_addr, 0, bytes); in ibmvscsis_free_command_q()
280 vscsi->cmd_q.index = 0; in ibmvscsis_free_command_q()
363 crq = ibmvscsis_cmd_q_dequeue(vscsi->cmd_q.mask, &vscsi->cmd_q.index, in ibmvscsis_check_init_msg()
364 vscsi->cmd_q.base_addr); in ibmvscsis_check_init_msg()
377 crq = ibmvscsis_cmd_q_dequeue(vscsi->cmd_q.mask, in ibmvscsis_check_init_msg()
378 &vscsi->cmd_q.index, in ibmvscsis_check_init_msg()
379 vscsi->cmd_q.base_addr); in ibmvscsis_check_init_msg()
896 bytes = vscsi->cmd_q.size * PAGE_SIZE; in ibmvscsis_reset_queue()
898 vscsi->cmd_q.crq_token, bytes); in ibmvscsis_reset_queue()
[all …]
Dibmvscsi_tgt.h268 struct cmd_queue cmd_q; member
/drivers/platform/olpc/
Dolpc-ec.c43 struct list_head cmd_q; member
85 if (!list_empty(&ec->cmd_q)) { in olpc_ec_worker()
86 desc = list_first_entry(&ec->cmd_q, struct ec_cmd_desc, node); in olpc_ec_worker()
120 list_add_tail(&desc->node, &ec->cmd_q); in queue_ec_descriptor()
422 INIT_LIST_HEAD(&ec->cmd_q); in olpc_ec_probe()
/drivers/staging/unisys/include/
Diochannel.h551 struct signal_queue_header cmd_q; member
/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.c2120 INIT_LIST_HEAD(&mod->cmd_q); in bfa_ioc_mbox_attach()
2140 if (list_empty(&mod->cmd_q)) in bfa_ioc_mbox_poll()
2153 cmd = list_first_entry(&mod->cmd_q, struct bfa_mbox_cmd, qe); in bfa_ioc_mbox_poll()
2175 while (!list_empty(&mod->cmd_q)) { in bfa_ioc_mbox_flush()
2176 cmd = list_first_entry(&mod->cmd_q, struct bfa_mbox_cmd, qe); in bfa_ioc_mbox_flush()
2662 if (!list_empty(&mod->cmd_q)) { in bfa_nw_ioc_mbox_queue()
2663 list_add_tail(&cmd->qe, &mod->cmd_q); in bfa_nw_ioc_mbox_queue()
2672 list_add_tail(&cmd->qe, &mod->cmd_q); in bfa_nw_ioc_mbox_queue()
Dbfa_ioc.h109 struct list_head cmd_q; /*!< pending mbox queue */ member
/drivers/scsi/
Dsg.c149 char cmd_q; /* 1 -> allow command queuing, 0 -> don't */ member
727 sfp->cmd_q = 1; /* when sg_io_hdr seen, set command queuing on */ in sg_new_write()
1052 sfp->cmd_q = val ? 1 : 0; in sg_ioctl_common()
1055 return put_user((int) sfp->cmd_q, ip); in sg_ioctl_common()
1194 else if (!sfp->cmd_q) { in sg_poll()
2092 if (!sfp->cmd_q) in sg_add_request()
2160 sfp->cmd_q = SG_DEF_COMMAND_Q; in sg_add_sfp()
2529 (int) fp->cmd_q, (int) fp->force_packid, in sg_proc_debug_helper()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dutils.c618 bool tdls, bool cmd_q) in iwl_mvm_get_wd_timeout() argument
622 unsigned int default_timeout = cmd_q ? in iwl_mvm_get_wd_timeout()
644 if (cmd_q) in iwl_mvm_get_wd_timeout()
Dmvm.h2040 bool tdls, bool cmd_q);
/drivers/scsi/bfa/
Dbfa_ioc.c82 (!list_empty(&((__ioc)->mbox_mod.cmd_q)) || \
1981 INIT_LIST_HEAD(&mod->cmd_q); in bfa_ioc_mbox_attach()
2001 if (list_empty(&mod->cmd_q)) in bfa_ioc_mbox_poll()
2014 bfa_q_deq(&mod->cmd_q, &cmd); in bfa_ioc_mbox_poll()
2027 while (!list_empty(&mod->cmd_q)) in bfa_ioc_mbox_flush()
2028 bfa_q_deq(&mod->cmd_q, &cmd); in bfa_ioc_mbox_flush()
2568 if (!list_empty(&mod->cmd_q)) { in bfa_ioc_mbox_queue()
2569 list_add_tail(&cmd->qe, &mod->cmd_q); in bfa_ioc_mbox_queue()
2578 list_add_tail(&cmd->qe, &mod->cmd_q); in bfa_ioc_mbox_queue()
Dbfa_ioc.h238 struct list_head cmd_q; /* pending mbox queue */ member
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_hw.c3896 struct list_head *head = &mbx->cmd_q; in qlcnic_83xx_flush_mbx_queue()
4018 list_add_tail(&cmd->list, &mbx->cmd_q); in qlcnic_83xx_enqueue_mbx_cmd()
4103 struct list_head *head = &mbx->cmd_q; in qlcnic_83xx_mailbox_worker()
4176 INIT_LIST_HEAD(&mbx->cmd_q); in qlcnic_83xx_init_mailbox_work()
Dqlcnic.h1091 struct list_head cmd_q; member