/linux-6.12.1/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_wq.c | 31 #define WQS_FREE_BLOCKS_SIZE(wqs) (WQS_MAX_NUM_BLOCKS * \ argument 32 sizeof((wqs)->free_blocks[0])) 44 #define WQ_BASE_VADDR(wqs, wq) \ argument 45 ((void *)((wqs)->page_vaddr[(wq)->page_idx]) \ 48 #define WQ_BASE_PADDR(wqs, wq) \ argument 49 ((wqs)->page_paddr[(wq)->page_idx] \ 52 #define WQ_BASE_ADDR(wqs, wq) \ argument 53 ((void *)((wqs)->shadow_page_vaddr[(wq)->page_idx]) \ 137 static int wqs_allocate_page(struct hinic_wqs *wqs, int page_idx) in wqs_allocate_page() argument 139 return queue_alloc_page(wqs->hwif, &wqs->page_vaddr[page_idx], in wqs_allocate_page() [all …]
|
D | hinic_hw_wq.h | 85 int hinic_wqs_alloc(struct hinic_wqs *wqs, int num_wqs, 88 void hinic_wqs_free(struct hinic_wqs *wqs); 90 int hinic_wq_allocate(struct hinic_wqs *wqs, struct hinic_wq *wq, 94 void hinic_wq_free(struct hinic_wqs *wqs, struct hinic_wq *wq);
|
D | hinic_hw_io.c | 283 err = hinic_wq_allocate(&func_to_io->wqs, &func_to_io->sq_wq[q_id], in init_qp() 291 err = hinic_wq_allocate(&func_to_io->wqs, &func_to_io->rq_wq[q_id], in init_qp() 335 hinic_wq_free(&func_to_io->wqs, &func_to_io->rq_wq[q_id]); in init_qp() 338 hinic_wq_free(&func_to_io->wqs, &func_to_io->sq_wq[q_id]); in init_qp() 357 hinic_wq_free(&func_to_io->wqs, &func_to_io->rq_wq[q_id]); in destroy_qp() 358 hinic_wq_free(&func_to_io->wqs, &func_to_io->sq_wq[q_id]); in destroy_qp() 550 err = hinic_wqs_alloc(&func_to_io->wqs, 2 * max_qps, hwif); in hinic_io_init() 606 hinic_wqs_free(&func_to_io->wqs); in hinic_io_init() 632 hinic_wqs_free(&func_to_io->wqs); in hinic_io_free()
|
D | hinic_hw_io.h | 65 struct hinic_wqs wqs; member
|
/linux-6.12.1/drivers/crypto/intel/iaa/ |
D | iaa_crypto.h | 74 struct list_head wqs; member 83 struct idxd_wq **wqs; member
|
D | iaa_crypto_main.c | 48 if (!entry->wqs[entry->cur_wq]) in wq_table_next_wq() 52 entry->cur_wq, entry->wqs[entry->cur_wq]->idxd->id, in wq_table_next_wq() 53 entry->wqs[entry->cur_wq]->id, cpu); in wq_table_next_wq() 55 return entry->wqs[entry->cur_wq]; in wq_table_next_wq() 65 entry->wqs[entry->n_wqs++] = wq; in wq_table_add() 68 entry->wqs[entry->n_wqs - 1]->idxd->id, in wq_table_add() 69 entry->wqs[entry->n_wqs - 1]->id, entry->n_wqs - 1, cpu); in wq_table_add() 76 kfree(entry->wqs); in wq_table_free_entry() 86 memset(entry->wqs, 0, entry->max_wqs * sizeof(struct idxd_wq *)); in wq_table_clear_entry() 513 INIT_LIST_HEAD(&iaa_device->wqs); in iaa_device_alloc() [all …]
|
D | iaa_crypto_stats.c | 132 list_for_each_entry(iaa_wq, &iaa_device->wqs, list) in reset_device_stats() 166 list_for_each_entry(iaa_wq, &iaa_device->wqs, list) in device_stats_show()
|
/linux-6.12.1/drivers/dma/idxd/ |
D | device.c | 297 struct idxd_wq *wq = idxd->wqs[i]; in idxd_wqs_unmap_portal() 714 struct idxd_wq *wq = idxd->wqs[i]; in idxd_device_wqs_clear_state() 856 iowrite64(group->grpcfg.wqs[i], idxd->reg_base + grpcfg_offset); in idxd_group_config_write() 1006 struct idxd_wq *wq = idxd->wqs[i]; in idxd_wqs_config_write() 1078 group->grpcfg.wqs[j] = 0; in idxd_wqs_setup() 1082 wq = idxd->wqs[i]; in idxd_wqs_setup() 1094 group->grpcfg.wqs[wq->id / 64] |= BIT(wq->id % 64); in idxd_wqs_setup() 1178 group->grpcfg.wqs[i] = ioread64(idxd->reg_base + grpcfg_offset); in idxd_group_load_config() 1180 group->id, i, grpcfg_offset, group->grpcfg.wqs[i]); in idxd_group_load_config() 1194 if (group->grpcfg.wqs[i] & BIT(j)) { in idxd_group_load_config() [all …]
|
D | init.c | 163 idxd->wqs = kcalloc_node(idxd->max_wqs, sizeof(struct idxd_wq *), in idxd_setup_wqs() 165 if (!idxd->wqs) in idxd_setup_wqs() 170 kfree(idxd->wqs); in idxd_setup_wqs() 220 idxd->wqs[i] = wq; in idxd_setup_wqs() 227 wq = idxd->wqs[i]; in idxd_setup_wqs() 348 put_device(wq_confdev(idxd->wqs[i])); in idxd_cleanup_internals() 429 put_device(wq_confdev(idxd->wqs[i])); in idxd_setup_internals() 807 wq = idxd->wqs[i]; in idxd_wqs_quiesce()
|
D | defaults.c | 15 wq = idxd->wqs[0]; in idxd_load_iaa_device_defaults()
|
D | irq.c | 49 struct idxd_wq *wq = idxd->wqs[i]; in idxd_device_reinit() 336 struct idxd_wq *wq = idxd->wqs[entry_head->wq_idx]; in process_evl_entry() 417 struct idxd_wq *wq = idxd->wqs[id]; in idxd_misc_thread() 425 struct idxd_wq *wq = idxd->wqs[i]; in idxd_misc_thread()
|
D | sysfs.c | 342 struct idxd_wq *wq = idxd->wqs[i]; in group_work_queues_show() 721 struct idxd_wq *wq = idxd->wqs[i]; in total_claimed_wq_size() 1511 struct idxd_wq *wq = idxd->wqs[i]; in clients_show() 1815 kfree(idxd->wqs); in idxd_conf_device_release() 1898 wq = idxd->wqs[i]; in idxd_register_wq_devices() 1909 wq = idxd->wqs[i]; in idxd_register_wq_devices() 1914 wq = idxd->wqs[j]; in idxd_register_wq_devices() 1954 device_unregister(wq_confdev(idxd->wqs[i])); in idxd_register_devices() 1965 struct idxd_wq *wq = idxd->wqs[i]; in idxd_unregister_devices()
|
D | idxd.h | 333 struct idxd_wq **wqs; member 496 return (idx == 0) ? &idxd->ie : &idxd->wqs[idx - 1]->ie; in idxd_get_ie()
|
D | registers.h | 353 u64 wqs[4]; member
|
/linux-6.12.1/Documentation/driver-api/crypto/iaa/ |
D | iaa-crypto.rst | 357 wqs: 371 wqs: 385 wqs: 399 wqs: 539 # disable iaa wqs and devices 560 # configure iaa wqs and devices 571 # enable iaa wqs and devices 669 Once zswap is disabled and no longer using iaa_crypto, the IAA wqs and 694 # disable iaa wqs and devices
|
/linux-6.12.1/drivers/infiniband/core/ |
D | uverbs_cmd.c | 3055 struct ib_wq **wqs = NULL; in ib_uverbs_ex_create_rwq_ind_table() local 3088 wqs = kcalloc(num_wq_handles, sizeof(*wqs), GFP_KERNEL); in ib_uverbs_ex_create_rwq_ind_table() 3089 if (!wqs) { in ib_uverbs_ex_create_rwq_ind_table() 3103 wqs[num_read_wqs] = wq; in ib_uverbs_ex_create_rwq_ind_table() 3104 atomic_inc(&wqs[num_read_wqs]->usecnt); in ib_uverbs_ex_create_rwq_ind_table() 3120 init_attr.ind_tbl = wqs; in ib_uverbs_ex_create_rwq_ind_table() 3122 rwq_ind_tbl->ind_tbl = wqs; in ib_uverbs_ex_create_rwq_ind_table() 3135 rdma_lookup_put_uobject(&wqs[i]->uobject->uevent.uobject, in ib_uverbs_ex_create_rwq_ind_table() 3151 rdma_lookup_put_uobject(&wqs[i]->uobject->uevent.uobject, in ib_uverbs_ex_create_rwq_ind_table() 3153 atomic_dec(&wqs[i]->usecnt); in ib_uverbs_ex_create_rwq_ind_table() [all …]
|