Home
last modified time | relevance | path

Searched refs:shmptr (Results 1 – 10 of 10) sorted by relevance

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/
D9-1.c49 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/
Dpcm_direct.c123 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 …]
Dpcm_dshare.c67 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 …]
Dpcm_dmix.c73 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 …]
Dpcm_dsnoop.c85 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()
Dpcm_dmix_x86_64.c78 if (!((1ULL<< dmix->shmptr->s.format) & x86_64_dmix_supported_format)) { in mix_select_callbacks()
Dpcm_dmix_i386.c95 if (!((1ULL<< dmix->shmptr->s.format) & i386_dmix_supported_format)) { in mix_select_callbacks()
Dpcm_direct.h140 snd_pcm_direct_share_t *shmptr; /* pointer to shared memory area */ member
Dpcm_dmix_generic.c517 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/
Dpage-poisoning.c80 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()