Searched refs:shmptr (Results 1 – 10 of 10) sorted by relevance
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/ |
D | 9-1.c | 49 static int *shmptr; variable 77 (*shmptr) = param.sched_priority; in test_process() 80 if ((*shmptr) == mean_prio) in test_process() 135 shmptr = shmat(shm_id, 0, 0); in main() 136 if (shmptr == (void *)-1) { in main() 140 *shmptr = 0; in main() 184 oldcount = *shmptr; in main() 190 newcount = *shmptr; in main()
|
/third_party/alsa-lib/src/pcm/ |
D | pcm_direct.c | 123 dmix->shmptr = shmat(dmix->shmid, 0, 0); in snd_pcm_direct_shm_create_or_connect() 124 if (dmix->shmptr == (void *) -1) { in snd_pcm_direct_shm_create_or_connect() 129 mlock(dmix->shmptr, sizeof(snd_pcm_direct_share_t)); in snd_pcm_direct_shm_create_or_connect() 136 memset(dmix->shmptr, 0, sizeof(snd_pcm_direct_share_t)); in snd_pcm_direct_shm_create_or_connect() 141 dmix->shmptr->magic = snd_pcm_direct_magic(dmix); in snd_pcm_direct_shm_create_or_connect() 144 if (dmix->shmptr->magic != snd_pcm_direct_magic(dmix)) { in snd_pcm_direct_shm_create_or_connect() 166 if (dmix->shmptr != (void *) -1 && shmdt(dmix->shmptr) < 0) in _snd_pcm_direct_shm_discard() 168 dmix->shmptr = (void *) -1; in _snd_pcm_direct_shm_discard() 271 unlink(dmix->shmptr->socket_name); in server_cleanup() 426 ret = get_tmp_name(dmix->shmptr->socket_name, sizeof(dmix->shmptr->socket_name)); [all …]
|
D | pcm_dshare.c | 67 format = dshare->shmptr->s.format; in do_silence() 72 dshare->shmptr->s.buffer_size, format); in do_silence() 87 format = dshare->shmptr->s.format; in share_areas() 508 dshare->shmptr->u.dshare.chn_mask &= ~dshare->u.dshare.chn_mask; in snd_pcm_dshare_close() 750 if (dshare->shmptr->use_server) { in snd_pcm_dshare_open() 758 dshare->shmptr->type = spcm->type; in snd_pcm_dshare_open() 760 if (dshare->shmptr->use_server) { in snd_pcm_dshare_open() 812 if (dshare->shmptr->u.dshare.chn_mask & dshare->u.dshare.chn_mask) { in snd_pcm_dshare_open() 818 dshare->shmptr->u.dshare.chn_mask |= dshare->u.dshare.chn_mask; in snd_pcm_dshare_open() 839 if (dshare->shmptr != (void *) -1) in snd_pcm_dshare_open() [all …]
|
D | pcm_dmix.c | 73 size = dmix->shmptr->s.channels * in shm_sum_create_or_connect() 74 dmix->shmptr->s.buffer_size * in shm_sum_create_or_connect() 166 switch (dmix->shmptr->s.format) { in mix_areas() 208 if (dchn >= dmix->shmptr->s.channels) in mix_areas() 215 dmix->u.dmix.sum_buffer + dmix->shmptr->s.channels * dst_ofs + dchn, in mix_areas() 218 dmix->shmptr->s.channels * sizeof(signed int)); in mix_areas() 234 switch (dmix->shmptr->s.format) { in remix_areas() 276 if (dchn >= dmix->shmptr->s.channels) in remix_areas() 283 dmix->u.dmix.sum_buffer + dmix->shmptr->s.channels * dst_ofs + dchn, in remix_areas() 286 dmix->shmptr->s.channels * sizeof(signed int)); in remix_areas() [all …]
|
D | pcm_dsnoop.c | 85 format = dsnoop->shmptr->s.format; in snoop_areas() 618 if (dsnoop->shmptr->use_server) { in snd_pcm_dsnoop_open() 626 dsnoop->shmptr->type = spcm->type; in snd_pcm_dsnoop_open() 628 if (dsnoop->shmptr->use_server) { in snd_pcm_dsnoop_open() 689 dsnoop->channels = dsnoop->shmptr->s.channels; in snd_pcm_dsnoop_open()
|
D | pcm_dmix_x86_64.c | 78 if (!((1ULL<< dmix->shmptr->s.format) & x86_64_dmix_supported_format)) { in mix_select_callbacks()
|
D | pcm_dmix_i386.c | 95 if (!((1ULL<< dmix->shmptr->s.format) & i386_dmix_supported_format)) { in mix_select_callbacks()
|
D | pcm_direct.h | 140 snd_pcm_direct_share_t *shmptr; /* pointer to shared memory area */ member
|
D | pcm_dmix_generic.c | 517 if (snd_pcm_format_cpu_endian(dmix->shmptr->s.format)) { in generic_mix_select_callbacks()
|
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/ |
D | page-poisoning.c | 80 static int *shmptr = NULL; variable 613 if ((shmptr = shmat(ipc->shm.id, 0, 0)) == (void *)-1) { in shm_test() 616 *shmptr = mypid; in shm_test() 624 testmem("shm dirty", (char *)shmptr, MWRITE); in shm_test() 626 recover("shm dirty", (char *)shmptr, MREAD); in shm_test() 631 shmdt(shmptr); in shm_test()
|