Symbol: apm
arch/s390/include/asm/ap.h
255
unsigned int apm[8]; /* AP ID mask */
arch/s390/include/asm/kvm_host.h
521
__u64 apm[APCB0_MASK_SIZE]; /* 0x0000 */
arch/s390/include/asm/kvm_host.h
529
__u64 apm[APCB1_MASK_SIZE]; /* 0x0000 */
arch/s390/include/asm/kvm_host.h
710
void kvm_arch_crypto_set_masks(struct kvm *kvm, unsigned long *apm,
arch/s390/kvm/kvm-s390.c
3063
void kvm_arch_crypto_set_masks(struct kvm *kvm, unsigned long *apm,
arch/s390/kvm/kvm-s390.c
3072
memcpy(crycb->apcb1.apm, apm, 32);
arch/s390/kvm/kvm-s390.c
3074
apm[0], apm[1], apm[2], apm[3]);
arch/s390/kvm/kvm-s390.c
3084
memcpy(crycb->apcb0.apm, apm, 8);
arch/s390/kvm/kvm-s390.c
3088
apm[0], *((unsigned short *)aqm),
arch/s390/kvm/vsie.c
171
apcb_s->apm[0] = apcb_h->apm[0] & tmp.apm[0];
arch/x86/kernel/apm_32.c
2321
kapmd_task = kthread_create(apm, NULL, "kapmd");
drivers/infiniband/hw/mlx5/main.c
994
if (MLX5_CAP_GEN(mdev, apm))
drivers/s390/crypto/ap_bus.c
1000
devres = test_bit_inv(card, ap_perms.apm) &&
drivers/s390/crypto/ap_bus.c
1383
ap_qci_info->apm[0], ap_qci_info->apm[1],
drivers/s390/crypto/ap_bus.c
1384
ap_qci_info->apm[2], ap_qci_info->apm[3],
drivers/s390/crypto/ap_bus.c
1385
ap_qci_info->apm[4], ap_qci_info->apm[5],
drivers/s390/crypto/ap_bus.c
1386
ap_qci_info->apm[6], ap_qci_info->apm[7]);
drivers/s390/crypto/ap_bus.c
1498
ap_perms.apm[0], ap_perms.apm[1],
drivers/s390/crypto/ap_bus.c
1499
ap_perms.apm[2], ap_perms.apm[3]);
drivers/s390/crypto/ap_bus.c
1541
if (bitmap_andnot(reserved, newapm, ap_perms.apm, AP_DEVICES)) {
drivers/s390/crypto/ap_bus.c
1548
memcpy(ap_perms.apm, newapm, APMASKSIZE);
drivers/s390/crypto/ap_bus.c
1555
bitmap_full(ap_perms.apm, AP_DEVICES) &&
drivers/s390/crypto/ap_bus.c
1575
rc = ap_parse_bitmap_str(buf, ap_perms.apm, AP_DEVICES, newapm);
drivers/s390/crypto/ap_bus.c
1579
changes = memcmp(ap_perms.apm, newapm, APMASKSIZE);
drivers/s390/crypto/ap_bus.c
1662
bitmap_full(ap_perms.apm, AP_DEVICES) &&
drivers/s390/crypto/ap_bus.c
1827
!test_bit_inv(card, ap_perms.apm))
drivers/s390/crypto/ap_bus.c
2337
bitmap_andnot(m, (unsigned long *)ap_qci_info->apm,
drivers/s390/crypto/ap_bus.c
2338
(unsigned long *)ap_qci_info_old->apm, AP_DEVICES);
drivers/s390/crypto/ap_bus.c
2555
memset(&ap_perms.apm, 0xFF, sizeof(ap_perms.apm));
drivers/s390/crypto/ap_bus.c
2560
memset(&ap_perms.apm, 0, sizeof(ap_perms.apm));
drivers/s390/crypto/ap_bus.c
2561
ap_parse_mask_str(apm_str, ap_perms.apm, AP_DEVICES,
drivers/s390/crypto/ap_bus.c
315
return ap_test_config(ap_qci_info->apm, id);
drivers/s390/crypto/ap_bus.c
884
devres = test_bit_inv(card, ap_perms.apm) &&
drivers/s390/crypto/ap_bus.c
940
if (test_bit_inv(card, ap_perms.apm) &&
drivers/s390/crypto/ap_bus.c
961
int ap_apqn_in_matrix_owned_by_def_drv(unsigned long *apm,
drivers/s390/crypto/ap_bus.c
967
if (test_bit_inv(card, apm))
drivers/s390/crypto/ap_bus.h
142
int (*in_use)(unsigned long *apm, unsigned long *aqm);
drivers/s390/crypto/ap_bus.h
278
unsigned long apm[BITS_TO_LONGS(AP_DEVICES)];
drivers/s390/crypto/vfio_ap_ops.c
1094
if (test_bit_inv(apid, matrix_mdev->matrix.apm)) {
drivers/s390/crypto/vfio_ap_ops.c
1099
set_bit_inv(apid, matrix_mdev->matrix.apm);
drivers/s390/crypto/vfio_ap_ops.c
1103
clear_bit_inv(apid, matrix_mdev->matrix.apm);
drivers/s390/crypto/vfio_ap_ops.c
1157
if (test_bit_inv(apid, matrix_mdev->shadow_apcb.apm) &&
drivers/s390/crypto/vfio_ap_ops.c
1177
if (test_bit_inv(apid, matrix_mdev->shadow_apcb.apm)) {
drivers/s390/crypto/vfio_ap_ops.c
1178
clear_bit_inv(apid, matrix_mdev->shadow_apcb.apm);
drivers/s390/crypto/vfio_ap_ops.c
1239
if (!test_bit_inv(apid, matrix_mdev->matrix.apm)) {
drivers/s390/crypto/vfio_ap_ops.c
1244
clear_bit_inv((unsigned long)apid, matrix_mdev->matrix.apm);
drivers/s390/crypto/vfio_ap_ops.c
1258
for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, AP_DEVICES)
drivers/s390/crypto/vfio_ap_ops.c
1354
for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, AP_DEVICES) {
drivers/s390/crypto/vfio_ap_ops.c
1358
if (test_bit_inv(apid, matrix_mdev->shadow_apcb.apm) &&
drivers/s390/crypto/vfio_ap_ops.c
157
if (test_bit_inv(AP_QID_CARD(apqn), matrix_mdev->matrix.apm) &&
drivers/s390/crypto/vfio_ap_ops.c
1589
apid1 = find_first_bit_inv(matrix->apm, napm_bits);
drivers/s390/crypto/vfio_ap_ops.c
1593
for_each_set_bit_inv(apid, matrix->apm, napm_bits) {
drivers/s390/crypto/vfio_ap_ops.c
1598
for_each_set_bit_inv(apid, matrix->apm, napm_bits)
drivers/s390/crypto/vfio_ap_ops.c
1648
idx += write_ap_bitmap(matrix_mdev->matrix.apm, buf, idx, ',');
drivers/s390/crypto/vfio_ap_ops.c
1676
for_each_set_bit_inv(bit, matrix_mdev->matrix.apm, AP_DEVICES) {
drivers/s390/crypto/vfio_ap_ops.c
1700
bitmap_copy(dst->apm, src->apm, AP_DEVICES);
drivers/s390/crypto/vfio_ap_ops.c
1726
if (parse_bitmap(&rest, m_new.apm, AP_DEVICES) ||
drivers/s390/crypto/vfio_ap_ops.c
1733
bitmap_andnot(m_removed.apm, m_old.apm, m_new.apm, AP_DEVICES);
drivers/s390/crypto/vfio_ap_ops.c
1735
bitmap_andnot(m_added.apm, m_new.apm, m_old.apm, AP_DEVICES);
drivers/s390/crypto/vfio_ap_ops.c
1758
vfio_ap_mdev_hot_unplug_adapters(matrix_mdev, m_removed.apm);
drivers/s390/crypto/vfio_ap_ops.c
1765
for_each_set_bit_inv(newbit, m_added.apm, AP_DEVICES)
drivers/s390/crypto/vfio_ap_ops.c
2301
if (test_bit_inv(apid, matrix_mdev->matrix.apm) &&
drivers/s390/crypto/vfio_ap_ops.c
2336
test_bit_inv(apid, matrix_mdev->shadow_apcb.apm) &&
drivers/s390/crypto/vfio_ap_ops.c
2485
if (test_bit_inv(apid, matrix_mdev->shadow_apcb.apm) &&
drivers/s390/crypto/vfio_ap_ops.c
2492
clear_bit_inv(apid, matrix_mdev->shadow_apcb.apm);
drivers/s390/crypto/vfio_ap_ops.c
2504
if (test_bit_inv(apid, (unsigned long *)matrix_dev->info.apm) &&
drivers/s390/crypto/vfio_ap_ops.c
2533
int vfio_ap_mdev_resource_in_use(unsigned long *apm, unsigned long *aqm)
drivers/s390/crypto/vfio_ap_ops.c
2539
ret = vfio_ap_mdev_verify_no_sharing(NULL, apm, aqm);
drivers/s390/crypto/vfio_ap_ops.c
2565
do_hotplug |= bitmap_andnot(matrix_mdev->shadow_apcb.apm,
drivers/s390/crypto/vfio_ap_ops.c
2566
matrix_mdev->shadow_apcb.apm,
drivers/s390/crypto/vfio_ap_ops.c
2613
matrix_mdev->matrix.apm,
drivers/s390/crypto/vfio_ap_ops.c
2648
(unsigned long *)prev_config_info->apm,
drivers/s390/crypto/vfio_ap_ops.c
2649
(unsigned long *)cur_config_info->apm,
drivers/s390/crypto/vfio_ap_ops.c
2670
static void vfio_ap_filter_apid_by_qtype(unsigned long *apm, unsigned long *aqm)
drivers/s390/crypto/vfio_ap_ops.c
2677
for_each_set_bit_inv(apid, apm, AP_DEVICES) {
drivers/s390/crypto/vfio_ap_ops.c
2699
clear_bit_inv(apid, apm);
drivers/s390/crypto/vfio_ap_ops.c
2712
clear_bit_inv(apid, apm);
drivers/s390/crypto/vfio_ap_ops.c
2753
matrix_mdev->matrix.apm, apm_add, AP_DEVICES);
drivers/s390/crypto/vfio_ap_ops.c
2781
(unsigned long *)cur_config_info->apm,
drivers/s390/crypto/vfio_ap_ops.c
2782
(unsigned long *)prev_config_info->apm,
drivers/s390/crypto/vfio_ap_ops.c
2827
filter_adapters = bitmap_intersects(matrix_mdev->matrix.apm,
drivers/s390/crypto/vfio_ap_ops.c
663
matrix_mdev->shadow_apcb.apm,
drivers/s390/crypto/vfio_ap_ops.c
727
bitmap_copy(prev_shadow_apm, matrix_mdev->shadow_apcb.apm, AP_DEVICES);
drivers/s390/crypto/vfio_ap_ops.c
737
bitmap_and(matrix_mdev->shadow_apcb.apm, matrix_mdev->matrix.apm,
drivers/s390/crypto/vfio_ap_ops.c
738
(unsigned long *)matrix_dev->info.apm, AP_DEVICES);
drivers/s390/crypto/vfio_ap_ops.c
742
for_each_set_bit_inv(apid, matrix_mdev->shadow_apcb.apm, AP_DEVICES) {
drivers/s390/crypto/vfio_ap_ops.c
755
clear_bit_inv(apid, matrix_mdev->shadow_apcb.apm);
drivers/s390/crypto/vfio_ap_ops.c
770
return !bitmap_equal(prev_shadow_apm, matrix_mdev->shadow_apcb.apm,
drivers/s390/crypto/vfio_ap_ops.c
849
for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, AP_DEVICES) {
drivers/s390/crypto/vfio_ap_ops.c
882
unsigned long *apm, unsigned long *aqm)
drivers/s390/crypto/vfio_ap_ops.c
886
for_each_set_bit_inv(apid, apm, AP_DEVICES) {
drivers/s390/crypto/vfio_ap_ops.c
895
unsigned long *apm, unsigned long *aqm)
drivers/s390/crypto/vfio_ap_ops.c
899
for_each_set_bit_inv(apid, apm, AP_DEVICES) {
drivers/s390/crypto/vfio_ap_ops.c
927
DECLARE_BITMAP(apm, AP_DEVICES);
drivers/s390/crypto/vfio_ap_ops.c
938
memset(apm, 0, sizeof(apm));
drivers/s390/crypto/vfio_ap_ops.c
945
if (!bitmap_and(apm, mdev_apm, assigned_to->matrix.apm, AP_DEVICES))
drivers/s390/crypto/vfio_ap_ops.c
952
vfio_ap_mdev_log_sharing_err(assignee, assigned_to, apm, aqm);
drivers/s390/crypto/vfio_ap_ops.c
954
vfio_ap_mdev_log_in_use_err(assigned_to, apm, aqm);
drivers/s390/crypto/vfio_ap_ops.c
979
if (ap_apqn_in_matrix_owned_by_def_drv(matrix_mdev->matrix.apm,
drivers/s390/crypto/vfio_ap_ops.c
984
matrix_mdev->matrix.apm,
drivers/s390/crypto/vfio_ap_private.h
161
int vfio_ap_mdev_resource_in_use(unsigned long *apm, unsigned long *aqm);
drivers/s390/crypto/vfio_ap_private.h
78
DECLARE_BITMAP(apm, AP_DEVICES);
drivers/s390/crypto/zcrypt_api.c
205
for (i = 0; i < sizeof(zcdndev->perms.apm) / sizeof(long); i++)
drivers/s390/crypto/zcrypt_api.c
206
n += sysfs_emit_at(buf, n, "%016lx", zcdndev->perms.apm[i]);
drivers/s390/crypto/zcrypt_api.c
221
rc = ap_parse_mask_str(buf, zcdndev->perms.apm,
drivers/s390/crypto/zcrypt_api.c
568
return test_bit_inv(card, perms->apm) ? true : false;
include/linux/mlx5/mlx5_ifc.h
1849
u8 apm[0x1];
sound/soc/qcom/qdsp6/audioreach.c
1042
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
1071
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
1118
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
1179
int audioreach_gain_set_vol_ctrl(struct q6apm *apm,
sound/soc/qcom/qdsp6/audioreach.c
1201
return q6apm_send_cmd_sync(apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
1225
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
1308
rc = q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
393
static void audioreach_populate_graph(struct q6apm *apm,
sound/soc/qcom/qdsp6/audioreach.c
468
void *audioreach_alloc_graph_pkt(struct q6apm *apm,
sound/soc/qcom/qdsp6/audioreach.c
573
audioreach_populate_graph(apm, info, &params, sg_list, num_sub_graphs);
sound/soc/qcom/qdsp6/audioreach.c
687
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
755
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
783
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
831
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.c
866
return q6apm_send_cmd_sync(graph->apm, pkt, 0);
sound/soc/qcom/qdsp6/audioreach.h
834
void *audioreach_alloc_graph_pkt(struct q6apm *apm,
sound/soc/qcom/qdsp6/audioreach.h
854
int audioreach_gain_set_vol_ctrl(struct q6apm *apm,
sound/soc/qcom/qdsp6/q6apm.c
101
struct q6apm *apm = graph->apm;
sound/soc/qcom/qdsp6/q6apm.c
120
return q6apm_send_cmd_sync(apm, pkt, 0);
sound/soc/qcom/qdsp6/q6apm.c
126
struct q6apm *apm;
sound/soc/qcom/qdsp6/q6apm.c
129
apm = graph->apm;
sound/soc/qcom/qdsp6/q6apm.c
133
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/q6apm.c
134
graph = idr_remove(&apm->graph_idr, graph->id);
sound/soc/qcom/qdsp6/q6apm.c
135
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/q6apm.c
142
static int q6apm_get_apm_state(struct q6apm *apm)
sound/soc/qcom/qdsp6/q6apm.c
149
q6apm_send_cmd_sync(apm, pkt, APM_CMD_RSP_GET_SPF_STATE);
sound/soc/qcom/qdsp6/q6apm.c
151
return apm->state;
sound/soc/qcom/qdsp6/q6apm.c
163
static struct audioreach_module *__q6apm_find_module_by_mid(struct q6apm *apm,
sound/soc/qcom/qdsp6/q6apm.c
32
int q6apm_send_cmd_sync(struct q6apm *apm, struct gpr_pkt *pkt, uint32_t rsp_opcode)
sound/soc/qcom/qdsp6/q6apm.c
34
gpr_device_t *gdev = apm->gdev;
sound/soc/qcom/qdsp6/q6apm.c
36
return audioreach_send_cmd_sync(&gdev->dev, gdev, &apm->result, &apm->lock,
sound/soc/qcom/qdsp6/q6apm.c
37
NULL, &apm->wait, pkt, rsp_opcode);
sound/soc/qcom/qdsp6/q6apm.c
40
static struct audioreach_graph *q6apm_get_audioreach_graph(struct q6apm *apm, uint32_t graph_id)
sound/soc/qcom/qdsp6/q6apm.c
46
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/q6apm.c
47
graph = idr_find(&apm->graph_idr, graph_id);
sound/soc/qcom/qdsp6/q6apm.c
48
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/q6apm.c
55
info = idr_find(&apm->graph_info_idr, graph_id);
sound/soc/qcom/qdsp6/q6apm.c
607
struct q6apm *apm = dev_get_drvdata(dev->parent);
sound/soc/qcom/qdsp6/q6apm.c
612
ar_graph = q6apm_get_audioreach_graph(apm, graph_id);
sound/soc/qcom/qdsp6/q6apm.c
624
graph->apm = apm;
sound/soc/qcom/qdsp6/q6apm.c
635
graph->port = gpr_alloc_port(apm->gdev, dev, graph_callback, graph);
sound/soc/qcom/qdsp6/q6apm.c
64
graph->apm = apm;
sound/soc/qcom/qdsp6/q6apm.c
68
graph->graph = audioreach_alloc_graph_pkt(apm, info);
sound/soc/qcom/qdsp6/q6apm.c
724
struct q6apm *apm;
sound/soc/qcom/qdsp6/q6apm.c
727
apm = devm_kzalloc(dev, sizeof(*apm), GFP_KERNEL);
sound/soc/qcom/qdsp6/q6apm.c
728
if (!apm)
sound/soc/qcom/qdsp6/q6apm.c
731
dev_set_drvdata(dev, apm);
sound/soc/qcom/qdsp6/q6apm.c
733
mutex_init(&apm->lock);
sound/soc/qcom/qdsp6/q6apm.c
734
apm->dev = dev;
sound/soc/qcom/qdsp6/q6apm.c
735
apm->gdev = gdev;
sound/soc/qcom/qdsp6/q6apm.c
736
init_waitqueue_head(&apm->wait);
sound/soc/qcom/qdsp6/q6apm.c
738
INIT_LIST_HEAD(&apm->widget_list);
sound/soc/qcom/qdsp6/q6apm.c
739
idr_init(&apm->graph_idr);
sound/soc/qcom/qdsp6/q6apm.c
740
idr_init(&apm->graph_info_idr);
sound/soc/qcom/qdsp6/q6apm.c
741
idr_init(&apm->sub_graphs_idr);
sound/soc/qcom/qdsp6/q6apm.c
742
idr_init(&apm->containers_idr);
sound/soc/qcom/qdsp6/q6apm.c
744
idr_init(&apm->modules_idr);
sound/soc/qcom/qdsp6/q6apm.c
746
g_apm = apm;
sound/soc/qcom/qdsp6/q6apm.c
748
q6apm_get_apm_state(apm);
sound/soc/qcom/qdsp6/q6apm.c
76
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/q6apm.c
762
struct q6apm *apm = graph->apm;
sound/soc/qcom/qdsp6/q6apm.c
764
return __q6apm_find_module_by_mid(apm, info, mid);
sound/soc/qcom/qdsp6/q6apm.c
77
id = idr_alloc(&apm->graph_idr, graph, graph_id, graph_id + 1, GFP_KERNEL);
sound/soc/qcom/qdsp6/q6apm.c
771
struct q6apm *apm = dev_get_drvdata(&gdev->dev);
sound/soc/qcom/qdsp6/q6apm.c
780
apm->result.opcode = hdr->opcode;
sound/soc/qcom/qdsp6/q6apm.c
781
apm->result.status = 0;
sound/soc/qcom/qdsp6/q6apm.c
783
apm->state = result->opcode;
sound/soc/qcom/qdsp6/q6apm.c
784
wake_up(&apm->wait);
sound/soc/qcom/qdsp6/q6apm.c
79
dev_err(apm->dev, "Unable to allocate graph id (%d)\n", graph_id);
sound/soc/qcom/qdsp6/q6apm.c
795
apm->result.opcode = result->opcode;
sound/soc/qcom/qdsp6/q6apm.c
796
apm->result.status = result->status;
sound/soc/qcom/qdsp6/q6apm.c
800
wake_up(&apm->wait);
sound/soc/qcom/qdsp6/q6apm.c
82
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/q6apm.c
85
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/q6apm.c
89
q6apm_send_cmd_sync(apm, graph->graph, 0);
sound/soc/qcom/qdsp6/q6apm.h
102
struct q6apm *apm;
sound/soc/qcom/qdsp6/q6apm.h
141
int q6apm_send_cmd_sync(struct q6apm *apm, struct gpr_pkt *pkt,
sound/soc/qcom/qdsp6/q6apm.h
92
struct q6apm *apm;
sound/soc/qcom/qdsp6/topology.c
1006
struct q6apm *apm = dev_get_drvdata(comp->dev);
sound/soc/qcom/qdsp6/topology.c
1009
list_for_each_entry(control, &apm->widget_list, node) {
sound/soc/qcom/qdsp6/topology.c
101
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
102
ret = idr_alloc_u32(&apm->sub_graphs_idr, sg, &sub_graph_id, sub_graph_id, GFP_KERNEL);
sound/soc/qcom/qdsp6/topology.c
1020
struct q6apm *apm = dev_get_drvdata(comp->dev);
sound/soc/qcom/qdsp6/topology.c
1024
idr_for_each_entry(&apm->modules_idr, module, id) {
sound/soc/qcom/qdsp6/topology.c
103
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
106
dev_err(apm->dev, "Failed to allocate Sub-Graph Instance ID (%x)\n", sub_graph_id);
sound/soc/qcom/qdsp6/topology.c
1100
static void audioreach_connect_sub_graphs(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
1107
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
1108
info = idr_find(&apm->graph_info_idr, m2->graph_id);
sound/soc/qcom/qdsp6/topology.c
1109
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
1125
static bool audioreach_is_vmixer_connected(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
1131
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
1132
info = idr_find(&apm->graph_info_idr, m2->graph_id);
sound/soc/qcom/qdsp6/topology.c
1133
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
116
static struct audioreach_container *audioreach_tplg_alloc_container(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
127
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
128
cont = idr_find(&apm->containers_idr, container_id);
sound/soc/qcom/qdsp6/topology.c
129
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
143
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
144
ret = idr_alloc_u32(&apm->containers_idr, cont, &container_id, container_id, GFP_KERNEL);
sound/soc/qcom/qdsp6/topology.c
145
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
148
dev_err(apm->dev, "Failed to allocate Container Instance ID (%x)\n", container_id);
sound/soc/qcom/qdsp6/topology.c
162
static struct audioreach_module *audioreach_tplg_alloc_module(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
170
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
171
mod = idr_find(&apm->modules_idr, module_id);
sound/soc/qcom/qdsp6/topology.c
172
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
183
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
185
ret = idr_alloc_cyclic(&apm->modules_idr, mod,
sound/soc/qcom/qdsp6/topology.c
189
ret = idr_alloc_u32(&apm->modules_idr, mod, &module_id, module_id, GFP_KERNEL);
sound/soc/qcom/qdsp6/topology.c
191
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
194
dev_err(apm->dev, "Failed to allocate Module Instance ID (%x)\n", module_id);
sound/soc/qcom/qdsp6/topology.c
28
static struct audioreach_graph_info *audioreach_tplg_alloc_graph_info(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
336
static struct audioreach_sub_graph *audioreach_parse_sg_tokens(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
35
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
353
sg = audioreach_tplg_alloc_sub_graph(apm, sub_graph_id, &found);
sound/soc/qcom/qdsp6/topology.c
36
info = idr_find(&apm->graph_info_idr, graph_id);
sound/soc/qcom/qdsp6/topology.c
364
info = audioreach_tplg_alloc_graph_info(apm, graph_id, &found);
sound/soc/qcom/qdsp6/topology.c
37
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
378
dev_err(apm->dev, "Not a valid token %d for graph\n", sg_elem->token);
sound/soc/qcom/qdsp6/topology.c
393
static struct audioreach_container *audioreach_parse_cont_tokens(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
410
cont = audioreach_tplg_alloc_container(apm, sg, container_id, &found);
sound/soc/qcom/qdsp6/topology.c
427
dev_err(apm->dev, "Not a valid token %d for graph\n", cont_elem->token);
sound/soc/qcom/qdsp6/topology.c
438
static struct audioreach_module *audioreach_parse_common_tokens(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
469
mod = audioreach_tplg_alloc_module(apm, cont, w,
sound/soc/qcom/qdsp6/topology.c
474
dev_err(apm->dev, "Duplicate Module Instance ID 0x%08x found\n",
sound/soc/qcom/qdsp6/topology.c
51
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
52
ret = idr_alloc_u32(&apm->graph_info_idr, info, &graph_id, graph_id, GFP_KERNEL);
sound/soc/qcom/qdsp6/topology.c
53
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
56
dev_err(apm->dev, "Failed to allocate Graph ID (%x)\n", graph_id);
sound/soc/qcom/qdsp6/topology.c
595
struct q6apm *apm = dev_get_drvdata(component->dev);
sound/soc/qcom/qdsp6/topology.c
601
sg = audioreach_parse_sg_tokens(apm, &tplg_w->priv);
sound/soc/qcom/qdsp6/topology.c
605
cont = audioreach_parse_cont_tokens(apm, sg, &tplg_w->priv);
sound/soc/qcom/qdsp6/topology.c
609
mod = audioreach_parse_common_tokens(apm, cont, &tplg_w->priv, w);
sound/soc/qcom/qdsp6/topology.c
74
static struct audioreach_sub_graph *audioreach_tplg_alloc_sub_graph(struct q6apm *apm,
sound/soc/qcom/qdsp6/topology.c
85
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
86
sg = idr_find(&apm->sub_graphs_idr, sub_graph_id);
sound/soc/qcom/qdsp6/topology.c
869
struct q6apm *apm = dev_get_drvdata(c->dev);
sound/soc/qcom/qdsp6/topology.c
87
mutex_unlock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
874
audioreach_gain_set_vol_ctrl(apm, mod, mod->gain);
sound/soc/qcom/qdsp6/topology.c
951
struct q6apm *apm = dev_get_drvdata(scomp->dev);
sound/soc/qcom/qdsp6/topology.c
967
mutex_lock(&apm->lock);
sound/soc/qcom/qdsp6/topology.c
968
idr_remove(&apm->modules_idr, mod->instance_id);
sound/soc/qcom/qdsp6/topology.c
978
idr_remove(&apm->containers_idr, cont->container_id);
sound/soc/qcom/qdsp6/topology.c
986
idr_remove(&apm->sub_graphs_idr, sg->sub_graph_id);
sound/soc/qcom/qdsp6/topology.c
992
idr_remove(&apm->graph_info_idr, info->id);
sound/soc/qcom/qdsp6/topology.c
998
mutex_unlock(&apm->lock);