/openbmc/linux/arch/riscv/errata/thead/ |
H A D | errata.c | 96 void *oldptr, *altptr; in thead_errata_patch_func() local 106 oldptr = ALT_OLD_PTR(alt); in thead_errata_patch_func() 111 memcpy(oldptr, altptr, alt->alt_len); in thead_errata_patch_func() 114 patch_text_nosync(oldptr, altptr, alt->alt_len); in thead_errata_patch_func()
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-alsa-pcm.c | 63 unsigned int oldptr; in cx18_alsa_announce_pcm_data() local 100 oldptr = cxsc->hwptr_done_capture; in cx18_alsa_announce_pcm_data() 101 if (oldptr + length >= runtime->buffer_size) { in cx18_alsa_announce_pcm_data() 103 runtime->buffer_size - oldptr; in cx18_alsa_announce_pcm_data() 104 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data() 109 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in cx18_alsa_announce_pcm_data()
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-alsa-pcm.c | 60 unsigned int oldptr; in ivtv_alsa_announce_pcm_data() local 97 oldptr = itvsc->hwptr_done_capture; in ivtv_alsa_announce_pcm_data() 98 if (oldptr + length >= runtime->buffer_size) { in ivtv_alsa_announce_pcm_data() 100 runtime->buffer_size - oldptr; in ivtv_alsa_announce_pcm_data() 101 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data() 106 memcpy(runtime->dma_area + oldptr * stride, pcm_data, in ivtv_alsa_announce_pcm_data()
|
/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-audio.c | 83 unsigned int oldptr; in cx231xx_audio_isocirq() local 126 oldptr = dev->adev.hwptr_done_capture; in cx231xx_audio_isocirq() 127 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_isocirq() 130 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_isocirq() 131 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq() 136 memcpy(runtime->dma_area + oldptr * stride, cp, in cx231xx_audio_isocirq() 174 unsigned int oldptr; in cx231xx_audio_bulkirq() local 213 oldptr = dev->adev.hwptr_done_capture; in cx231xx_audio_bulkirq() 214 if (oldptr + length >= runtime->buffer_size) { in cx231xx_audio_bulkirq() 217 cnt = runtime->buffer_size - oldptr; in cx231xx_audio_bulkirq() [all …]
|
/openbmc/linux/arch/riscv/include/asm/ |
H A D | alternative-macros.h | 9 .macro ALT_ENTRY oldptr newptr vendor_id patch_id new_len 10 .4byte \oldptr - . 61 #define ALT_ENTRY(oldptr, newptr, vendor_id, patch_id, newlen) \ argument 62 ".4byte ((" oldptr ") - .) \n" \
|
/openbmc/linux/drivers/media/pci/cobalt/ |
H A D | cobalt-alsa-pcm.c | 104 unsigned int oldptr; in cobalt_alsa_announce_pcm_data() local 142 oldptr = cobsc->hwptr_done_capture; in cobalt_alsa_announce_pcm_data() 143 if (oldptr + length >= runtime->buffer_size) { in cobalt_alsa_announce_pcm_data() 144 unsigned int cnt = runtime->buffer_size - oldptr; in cobalt_alsa_announce_pcm_data() 148 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data() 158 sample_cpy(runtime->dma_area + (oldptr + i) * stride, in cobalt_alsa_announce_pcm_data()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | cpufeature.c | 718 void *oldptr, *altptr; in riscv_cpufeature_patch_func() local 742 oldptr = ALT_OLD_PTR(alt); in riscv_cpufeature_patch_func() 746 patch_text_nosync(oldptr, altptr, alt->alt_len); in riscv_cpufeature_patch_func() 747 riscv_alternative_fix_offsets(oldptr, alt->alt_len, oldptr - altptr); in riscv_cpufeature_patch_func()
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | module.c | 849 Elf_Sym *newptr, *oldptr; in module_finalize() local 901 oldptr = (void *)symhdr->sh_addr; in module_finalize() 902 newptr = oldptr + 1; /* we start counting at 1 */ in module_finalize() 907 oldptr++; /* note, count starts at 1 so preincrement */ in module_finalize() 908 if(strncmp(strtab + oldptr->st_name, in module_finalize() 912 if(newptr != oldptr) in module_finalize() 913 *newptr++ = *oldptr; in module_finalize()
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-audio.c | 70 unsigned int oldptr; in em28xx_audio_isocirq() local 116 oldptr = dev->adev.hwptr_done_capture; in em28xx_audio_isocirq() 117 if (oldptr + length >= runtime->buffer_size) { in em28xx_audio_isocirq() 119 runtime->buffer_size - oldptr; in em28xx_audio_isocirq() 120 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq() 125 memcpy(runtime->dma_area + oldptr * stride, cp, in em28xx_audio_isocirq()
|
/openbmc/linux/sound/usb/ |
H A D | pcm.c | 1270 unsigned int stride, frames, bytes, oldptr; in retire_capture_urb() local 1307 oldptr = subs->hwptr_done; in retire_capture_urb() 1311 frames = (bytes + (oldptr % stride)) / stride; in retire_capture_urb() 1323 if (oldptr + bytes > subs->buffer_bytes) { in retire_capture_urb() 1324 unsigned int bytes1 = subs->buffer_bytes - oldptr; in retire_capture_urb() 1326 memcpy(runtime->dma_area + oldptr, cp, bytes1); in retire_capture_urb() 1329 memcpy(runtime->dma_area + oldptr, cp, bytes); in retire_capture_urb()
|