/Linux-v6.6/drivers/dma/ptdma/ |
D | ptdma-dev.c | 57 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 …]
|
D | ptdma-debugfs.c | 57 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()
|
D | ptdma-dmaengine.c | 53 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() 174 desc->pt->cmd_q.int_en = !!(flags & DMA_PREP_INTERRUPT); in pt_alloc_dma_desc() 266 struct pt_cmd_queue *cmd_q = &pt->cmd_q; in pt_tx_status() local 268 pt_check_status_trans(pt, cmd_q); in pt_tx_status() 278 pt_stop_queue(&chan->pt->cmd_q); in pt_pause() 291 pt_start_queue(&chan->pt->cmd_q); in pt_resume() 306 struct pt_cmd_queue *cmd_q = &chan->pt->cmd_q; in pt_terminate_all() local 309 iowrite32(SUPPORTED_INTERRUPTS, cmd_q->reg_control + 0x0010); in pt_terminate_all()
|
D | ptdma.h | 251 struct pt_cmd_queue cmd_q; member 321 int pt_core_perform_passthru(struct pt_cmd_queue *cmd_q, 324 void pt_check_status_trans(struct pt_device *pt, struct pt_cmd_queue *cmd_q); 325 void pt_start_queue(struct pt_cmd_queue *cmd_q); 326 void pt_stop_queue(struct pt_cmd_queue *cmd_q); 330 iowrite32(0, pt->cmd_q.reg_control + 0x000C); in pt_core_disable_queue_interrupts() 335 iowrite32(SUPPORTED_INTERRUPTS, pt->cmd_q.reg_control + 0x000C); in pt_core_enable_queue_interrupts()
|
/Linux-v6.6/drivers/crypto/ccp/ |
D | ccp-dev-v5.c | 25 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 …]
|
D | ccp-dev-v3.c | 19 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 …]
|
D | ccp-debugfs.c | 115 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 …]
|
D | ccp-ops.c | 153 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() 262 static void ccp_free_data(struct ccp_data *data, struct ccp_cmd_queue *cmd_q) in ccp_free_data() argument 268 static int ccp_init_data(struct ccp_data *data, struct ccp_cmd_queue *cmd_q, in ccp_init_data() argument 277 ret = ccp_init_sg_workarea(&data->sg_wa, cmd_q->ccp->dev, sg, sg_len, in ccp_init_data() 282 ret = ccp_init_dm_workarea(&data->dm_wa, cmd_q, dm_len, dir); in ccp_init_data() 289 ccp_free_data(data, cmd_q); in ccp_init_data() 426 static int ccp_copy_to_from_sb(struct ccp_cmd_queue *cmd_q, in ccp_copy_to_from_sb() argument 434 op.cmd_q = cmd_q; in ccp_copy_to_from_sb() [all …]
|
D | ccp-dev.c | 327 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 …]
|
D | ccp-dev.h | 380 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);
|
/Linux-v6.6/net/bluetooth/ |
D | hci_request.c | 37 skb_queue_head_init(&req->cmd_q); in hci_req_init() 44 skb_queue_purge(&req->cmd_q); in hci_req_purge() 59 bt_dev_dbg(hdev, "length %u", skb_queue_len(&req->cmd_q)); in req_run() 65 skb_queue_purge(&req->cmd_q); in req_run() 70 if (skb_queue_empty(&req->cmd_q)) in req_run() 73 skb = skb_peek_tail(&req->cmd_q); in req_run() 81 spin_lock_irqsave(&hdev->cmd_q.lock, flags); in req_run() 82 skb_queue_splice_tail(&req->cmd_q, &hdev->cmd_q); in req_run() 83 spin_unlock_irqrestore(&hdev->cmd_q.lock, flags); in req_run() 261 if (skb_queue_empty(&req->cmd_q)) in hci_req_add_ev() [all …]
|
D | hci_request.h | 38 struct sk_buff_head cmd_q; member
|
D | hci_core.c | 596 skb_queue_purge(&hdev->cmd_q); in hci_dev_do_reset() 2569 skb_queue_head_init(&hdev->cmd_q); in hci_alloc_dev_priv() 3068 skb_queue_tail(&hdev->cmd_q, skb); in hci_send_cmd() 3958 skb = skb_peek(&hdev->cmd_q); in hci_req_is_complete() 3983 skb_queue_head(&hdev->cmd_q, skb); in hci_resend_last() 4036 spin_lock_irqsave(&hdev->cmd_q.lock, flags); in hci_req_cmd_complete() 4037 while ((skb = __skb_dequeue(&hdev->cmd_q))) { in hci_req_cmd_complete() 4039 __skb_queue_head(&hdev->cmd_q, skb); in hci_req_cmd_complete() 4049 spin_unlock_irqrestore(&hdev->cmd_q.lock, flags); in hci_req_cmd_complete() 4133 atomic_read(&hdev->cmd_cnt), skb_queue_len(&hdev->cmd_q)); in hci_cmd_work() [all …]
|
D | hci_sync.c | 105 if (skb_queue_empty(&req->cmd_q)) in hci_cmd_sync_add() 110 skb_queue_tail(&req->cmd_q, skb); in hci_cmd_sync_add() 119 bt_dev_dbg(hdev, "length %u", skb_queue_len(&req->cmd_q)); in hci_cmd_sync_run() 125 skb_queue_purge(&req->cmd_q); in hci_cmd_sync_run() 130 if (skb_queue_empty(&req->cmd_q)) in hci_cmd_sync_run() 133 skb = skb_peek_tail(&req->cmd_q); in hci_cmd_sync_run() 137 spin_lock_irqsave(&hdev->cmd_q.lock, flags); in hci_cmd_sync_run() 138 skb_queue_splice_tail(&req->cmd_q, &hdev->cmd_q); in hci_cmd_sync_run() 139 spin_unlock_irqrestore(&hdev->cmd_q.lock, flags); in hci_cmd_sync_run() 4888 skb_queue_purge(&hdev->cmd_q); in hci_dev_open_sync() [all …]
|
/Linux-v6.6/drivers/scsi/ibmvscsi_tgt/ |
D | ibmvscsi_tgt.c | 278 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 …]
|
D | ibmvscsi_tgt.h | 268 struct cmd_queue cmd_q; member
|
/Linux-v6.6/drivers/platform/olpc/ |
D | olpc-ec.c | 43 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()
|
/Linux-v6.6/drivers/media/platform/amphion/ |
D | vpu_cmds.c | 147 list_for_each_entry_safe(cmd, tmp, &inst->cmd_q, list) { in vpu_process_cmd_request() 180 list_add_tail(&cmd->list, &inst->cmd_q); in vpu_request_cmd() 240 list_for_each_entry_safe(cmd, tmp, &inst->cmd_q, list) { in vpu_clear_request() 259 list_for_each_entry(cmd, &inst->cmd_q, list) { in check_is_responsed()
|
D | vpu.h | 254 struct list_head cmd_q; member
|
/Linux-v6.6/net/nfc/nci/ |
D | core.c | 541 skb_queue_purge(&ndev->cmd_q); in nci_open_device() 583 skb_queue_purge(&ndev->cmd_q); in nci_close_device() 1252 skb_queue_head_init(&ndev->cmd_q); in nci_register_device() 1381 skb_queue_tail(&ndev->cmd_q, skb); in nci_send_cmd() 1559 skb = skb_dequeue(&ndev->cmd_q); in nci_cmd_work()
|
D | rsp.c | 426 if (!skb_queue_empty(&ndev->cmd_q)) in nci_rsp_packet()
|
/Linux-v6.6/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc.c | 2120 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()
|
D | bfa_ioc.h | 109 struct list_head cmd_q; /*!< pending mbox queue */ member
|
/Linux-v6.6/drivers/scsi/ |
D | sg.c | 153 char cmd_q; /* 1 -> allow command queuing, 0 -> don't */ member 726 sfp->cmd_q = 1; /* when sg_io_hdr seen, set command queuing on */ in sg_new_write() 1051 sfp->cmd_q = val ? 1 : 0; in sg_ioctl_common() 1054 return put_user((int) sfp->cmd_q, ip); in sg_ioctl_common() 1194 else if (!sfp->cmd_q) { in sg_poll() 2109 if (!sfp->cmd_q) in sg_add_request() 2177 sfp->cmd_q = SG_DEF_COMMAND_Q; in sg_add_sfp() 2546 (int) fp->cmd_q, (int) fp->force_packid, in sg_proc_debug_helper()
|
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | utils.c | 657 bool tdls, bool cmd_q) in iwl_mvm_get_wd_timeout() argument 661 unsigned int default_timeout = cmd_q ? in iwl_mvm_get_wd_timeout() 683 if (cmd_q) in iwl_mvm_get_wd_timeout()
|