arch/arm64/include/asm/assembler.h
803
.pushsection .note.gnu.property, "a"
arch/powerpc/platforms/powernv/opal-core.c
100
note->n_descsz = cpu_to_be32(data_len);
arch/powerpc/platforms/powernv/opal-core.c
101
note->n_type = cpu_to_be32(type);
arch/powerpc/platforms/powernv/opal-core.c
102
buf += DIV_ROUND_UP(sizeof(*note), sizeof(Elf64_Word));
arch/powerpc/platforms/powernv/opal-core.c
96
Elf64_Nhdr *note = (Elf64_Nhdr *)buf;
arch/powerpc/platforms/powernv/opal-core.c
99
note->n_namesz = cpu_to_be32(namesz);
arch/riscv/include/asm/assembler.h
111
.pushsection .note.gnu.property, "a"
arch/s390/kernel/crash_dump.c
256
Elf64_Nhdr *note;
arch/s390/kernel/crash_dump.c
259
note = (Elf64_Nhdr *)buf;
arch/s390/kernel/crash_dump.c
260
note->n_namesz = strlen(name) + 1;
arch/s390/kernel/crash_dump.c
261
note->n_descsz = d_len;
arch/s390/kernel/crash_dump.c
262
note->n_type = type;
arch/s390/kernel/crash_dump.c
265
memcpy(buf + len, name, note->n_namesz);
arch/s390/kernel/crash_dump.c
266
len = roundup(len + note->n_namesz, 4);
arch/s390/kernel/crash_dump.c
268
memcpy(buf + len, desc, note->n_descsz);
arch/s390/kernel/crash_dump.c
269
len = roundup(len + note->n_descsz, 4);
arch/s390/kernel/crash_dump.c
369
Elf64_Nhdr note;
arch/s390/kernel/crash_dump.c
374
if (copy_oldmem_kernel(¬e, addr, sizeof(note)))
arch/s390/kernel/crash_dump.c
376
if (copy_oldmem_kernel(nt_name, addr + sizeof(note),
arch/s390/kernel/crash_dump.c
381
vmcoreinfo = kzalloc(note.n_descsz, GFP_KERNEL);
arch/s390/kernel/crash_dump.c
384
if (copy_oldmem_kernel(vmcoreinfo, addr + 24, note.n_descsz)) {
arch/s390/kernel/crash_dump.c
388
*size = note.n_descsz;
arch/s390/kernel/crash_dump.c
436
Elf64_Nhdr *note;
arch/s390/kernel/crash_dump.c
438
note = (Elf64_Nhdr *) ptr;
arch/s390/kernel/crash_dump.c
439
note->n_namesz = 0;
arch/s390/kernel/crash_dump.c
440
note->n_descsz = 0;
arch/s390/kernel/crash_dump.c
441
note->n_type = 0;
drivers/hid/hid-prodikeys.c
204
unsigned char status, unsigned char note, unsigned char velocity)
drivers/hid/hid-prodikeys.c
210
buffer[1] = note;
drivers/hid/hid-prodikeys.c
232
pcmidi_send_note(pms->pm, pms->status, pms->note, pms->velocity);
drivers/hid/hid-prodikeys.c
330
unsigned char status, note, velocity;
drivers/hid/hid-prodikeys.c
334
note = data[j*2+1];
drivers/hid/hid-prodikeys.c
337
if (note < 0x81) { /* note on */
drivers/hid/hid-prodikeys.c
339
note = note - 0x54 + PCMIDI_MIDDLE_C +
drivers/hid/hid-prodikeys.c
345
note = note - 0x94 + PCMIDI_MIDDLE_C +
drivers/hid/hid-prodikeys.c
353
pms->note = note;
drivers/hid/hid-prodikeys.c
365
pcmidi_send_note(pm, status, note, velocity);
drivers/hid/hid-prodikeys.c
40
unsigned char note;
drivers/hv/hv.c
111
static int hv_alloc_page(void **page, bool decrypt, const char *note)
drivers/hv/hv.c
140
note, ret, decrypt);
drivers/hv/hv.c
145
static int hv_free_page(void **page, bool encrypt, const char *note)
drivers/hv/hv.c
161
note, ret, encrypt);
drivers/media/pci/saa7134/saa7134-tvaudio.c
241
char *note)
drivers/media/pci/saa7134/saa7134-tvaudio.c
253
if (note)
drivers/media/pci/saa7134/saa7134-tvaudio.c
255
note, audio->name,
drivers/media/test-drivers/vidtv/vidtv_s302m.c
249
ctx->last_tone = beethoven_fur_elise[e->src_buf_offset].note;
drivers/media/test-drivers/vidtv/vidtv_s302m.c
77
enum musical_notes note;
drivers/net/ethernet/sun/cassini.c
1153
while ((inst = firmware) && inst->note) {
drivers/net/ethernet/sun/cassini.h
2120
const char *note;
drivers/pci/hotplug/acpiphp_ibm.c
255
struct notification *note = context;
drivers/pci/hotplug/acpiphp_ibm.c
261
acpi_bus_generate_netlink_event(note->device->pnp.device_class,
drivers/pci/hotplug/acpiphp_ibm.c
262
dev_name(¬e->device->dev),
drivers/pci/hotplug/acpiphp_ibm.c
263
note->event, detail);
drivers/pci/hotplug/acpiphp_ibm.c
265
note->event = event;
drivers/scsi/csiostor/csio_lnode.c
1923
csio_notify_lnodes(struct csio_hw *hw, enum csio_ln_notify note)
drivers/scsi/csiostor/csio_lnode.c
1928
csio_dbg(hw, "Notifying all nodes of event %d\n", note);
drivers/scsi/csiostor/csio_lnode.c
1934
switch (note) {
fs/binfmt_elf.c
1471
static void __fill_note(struct memelfnote *note, const char *name, int type,
fs/binfmt_elf.c
1474
note->name = name;
fs/binfmt_elf.c
1475
note->type = type;
fs/binfmt_elf.c
1476
note->datasz = sz;
fs/binfmt_elf.c
1477
note->data = data;
fs/binfmt_elf.c
1480
#define fill_note(note, type, sz, data) \
fs/binfmt_elf.c
1481
__fill_note(note, NN_ ## type, NT_ ## type, sz, data)
fs/binfmt_elf.c
1566
static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm)
fs/binfmt_elf.c
1573
fill_note(note, AUXV, i * sizeof(elf_addr_t), auxv);
fs/binfmt_elf.c
1576
static void fill_siginfo_note(struct memelfnote *note, user_siginfo_t *csigdata,
fs/binfmt_elf.c
1580
fill_note(note, SIGINFO, sizeof(*csigdata), csigdata);
fs/binfmt_elf.c
1594
static int fill_files_note(struct memelfnote *note, struct coredump_params *cprm)
fs/binfmt_elf.c
1676
fill_note(note, FILE, size, data);
fs/binfmt_elf.c
782
} note;
fs/binfmt_elf.c
798
if (phdr->p_filesz > sizeof(note))
fs/binfmt_elf.c
802
n = kernel_read(f, ¬e, phdr->p_filesz, &pos);
fs/binfmt_elf.c
804
BUILD_BUG_ON(sizeof(note) < sizeof(note.nhdr) + NOTE_NAME_SZ);
fs/binfmt_elf.c
805
if (n < 0 || n < sizeof(note.nhdr) + NOTE_NAME_SZ)
fs/binfmt_elf.c
808
if (note.nhdr.n_type != NT_GNU_PROPERTY_TYPE_0 ||
fs/binfmt_elf.c
809
note.nhdr.n_namesz != NOTE_NAME_SZ ||
fs/binfmt_elf.c
810
strncmp(note.data + sizeof(note.nhdr),
fs/binfmt_elf.c
811
NN_GNU_PROPERTY_TYPE_0, n - sizeof(note.nhdr)))
fs/binfmt_elf.c
814
off = round_up(sizeof(note.nhdr) + NOTE_NAME_SZ,
fs/binfmt_elf.c
819
if (note.nhdr.n_descsz > n - off)
fs/binfmt_elf.c
821
datasz = off + note.nhdr.n_descsz;
fs/binfmt_elf.c
825
ret = parse_elf_property(note.data, &off, datasz, arch,
fs/binfmt_elf_fdpic.c
1284
static inline void __fill_note(struct memelfnote *note, const char *name, int type,
fs/binfmt_elf_fdpic.c
1287
note->name = name;
fs/binfmt_elf_fdpic.c
1288
note->type = type;
fs/binfmt_elf_fdpic.c
1289
note->datasz = sz;
fs/binfmt_elf_fdpic.c
1290
note->data = data;
fs/binfmt_elf_fdpic.c
1294
#define fill_note(note, type, sz, data) \
fs/binfmt_elf_fdpic.c
1295
__fill_note(note, NN_ ## type, NT_ ## type, sz, data)
fs/proc/kcore.c
312
struct elf_note *note = (struct elf_note *)¬es[*i];
fs/proc/kcore.c
314
note->n_namesz = strlen(name) + 1;
fs/proc/kcore.c
315
note->n_descsz = descsz;
fs/proc/kcore.c
316
note->n_type = type;
fs/proc/kcore.c
317
*i += sizeof(*note);
fs/proc/kcore.c
318
memcpy(¬es[*i], name, note->n_namesz);
fs/proc/kcore.c
319
*i = ALIGN(*i + note->n_namesz, 4);
include/asm-generic/vmlinux.lds.h
68
#define NOTES_HEADERS :text :note
include/asm-generic/vmlinux.lds.h
933
*(.note.GNU-stack) \
include/asm-generic/vmlinux.lds.h
934
*(.note.gnu.property) \
include/asm-generic/vmlinux.lds.h
937
BOUNDED_SECTION_BY(.note.*, _notes) \
include/linux/elfnote.h
43
.pushsection .note.name, flags,@note ; \
include/linux/elfnote.h
77
} __UNIQUE_ID(note) \
include/sound/emux_synth.h
164
unsigned char note; /* Note currently assigned to this voice */
include/sound/opl3.h
273
unsigned char note; /* Note currently assigned to this voice */
include/sound/seq_midi_emul.h
36
unsigned char note[128]; /* Current status for all notes */
include/sound/seq_midi_emul.h
69
void (*note_on)(void *private_data, int note, int vel, struct snd_midi_channel *chan);
include/sound/seq_midi_emul.h
70
void (*note_off)(void *private_data,int note, int vel, struct snd_midi_channel *chan); /* release note */
include/sound/seq_midi_emul.h
71
void (*key_press)(void *private_data, int note, int vel, struct snd_midi_channel *chan);
include/sound/seq_midi_emul.h
72
void (*note_terminate)(void *private_data, int note, struct snd_midi_channel *chan); /* terminate note immediately */
include/sound/ump_msg.h
135
u32 note:8;
include/sound/ump_msg.h
139
u32 note:8;
include/sound/ump_msg.h
154
u32 note:8;
include/sound/ump_msg.h
158
u32 note:8;
include/sound/ump_msg.h
261
struct snd_ump_midi1_msg_note note;
include/sound/ump_msg.h
279
u32 note:8;
include/sound/ump_msg.h
287
u32 note:8;
include/sound/ump_msg.h
306
u32 note:8;
include/sound/ump_msg.h
313
u32 note:8;
include/sound/ump_msg.h
331
u32 note:8;
include/sound/ump_msg.h
338
u32 note:8;
include/sound/ump_msg.h
356
u32 note:8;
include/sound/ump_msg.h
363
u32 note:8;
include/sound/ump_msg.h
508
u32 note:8;
include/sound/ump_msg.h
515
u32 note:8;
include/sound/ump_msg.h
527
struct snd_ump_midi2_msg_note note;
include/uapi/linux/soundcard.h
1128
#define _CHN_VOICE(dev, event, chn, note, parm) \
include/uapi/linux/soundcard.h
1134
_seqbuf[_seqbufptr+4] = (note);\
include/uapi/linux/soundcard.h
1140
#define SEQ_START_NOTE(dev, chn, note, vol) \
include/uapi/linux/soundcard.h
1141
_CHN_VOICE(dev, MIDI_NOTEON, chn, note, vol)
include/uapi/linux/soundcard.h
1143
#define SEQ_STOP_NOTE(dev, chn, note, vol) \
include/uapi/linux/soundcard.h
1144
_CHN_VOICE(dev, MIDI_NOTEOFF, chn, note, vol)
include/uapi/linux/soundcard.h
1146
#define SEQ_KEY_PRESSURE(dev, chn, note, pressure) \
include/uapi/linux/soundcard.h
1147
_CHN_VOICE(dev, MIDI_KEY_PRESSURE, chn, note, pressure)
include/uapi/sound/asequencer.h
185
unsigned char note;
include/uapi/sound/asequencer.h
266
struct snd_seq_ev_note note;
kernel/vmcore_info.c
48
struct elf_note *note = (struct elf_note *)buf;
kernel/vmcore_info.c
50
note->n_namesz = strlen(name) + 1;
kernel/vmcore_info.c
51
note->n_descsz = data_len;
kernel/vmcore_info.c
52
note->n_type = type;
kernel/vmcore_info.c
53
buf += DIV_ROUND_UP(sizeof(*note), sizeof(Elf_Word));
kernel/vmcore_info.c
54
memcpy(buf, name, note->n_namesz);
kernel/vmcore_info.c
55
buf += DIV_ROUND_UP(note->n_namesz, sizeof(Elf_Word));
kernel/watch_queue.c
104
unsigned int head, tail, note, offset, len;
kernel/watch_queue.c
114
note = find_first_bit(wqueue->notes_bitmap, wqueue->nr_notes);
kernel/watch_queue.c
115
if (note >= wqueue->nr_notes)
kernel/watch_queue.c
118
page = wqueue->notes[note / WATCH_QUEUE_NOTES_PER_PAGE];
kernel/watch_queue.c
119
offset = note % WATCH_QUEUE_NOTES_PER_PAGE * WATCH_QUEUE_NOTE_SIZE;
kernel/watch_queue.c
135
if (!test_and_clear_bit(note, wqueue->notes_bitmap)) {
security/smack/smack_lsm.c
114
static int smk_bu_note(char *note, struct smack_known *sskp,
security/smack/smack_lsm.c
126
sskp->smk_known, oskp->smk_known, acc, note);
security/smack/smack_lsm.c
130
#define smk_bu_note(note, sskp, oskp, mode, RC) (RC)
security/smack/smack_lsm.c
134
static int smk_bu_current(char *note, struct smack_known *oskp,
security/smack/smack_lsm.c
148
acc, current->comm, note);
security/smack/smack_lsm.c
152
#define smk_bu_current(note, oskp, mode, RC) (RC)
sound/core/seq/oss/seq_oss_device.h
49
int note, vel;
sound/core/seq/oss/seq_oss_event.c
102
return note_on_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev);
sound/core/seq/oss/seq_oss_event.c
110
q->n.chn, 0, q->n.note, ev);
sound/core/seq/oss/seq_oss_event.c
181
return note_on_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev);
sound/core/seq/oss/seq_oss_event.c
184
return note_off_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev);
sound/core/seq/oss/seq_oss_event.c
188
q->v.chn, q->v.note, q->v.parm, ev);
sound/core/seq/oss/seq_oss_event.c
274
note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev)
sound/core/seq/oss/seq_oss_event.c
28
static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
sound/core/seq/oss/seq_oss_event.c
286
return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
sound/core/seq/oss/seq_oss_event.c
29
static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
sound/core/seq/oss/seq_oss_event.c
290
if (note == 255 && info->ch[ch].note >= 0) {
sound/core/seq/oss/seq_oss_event.c
30
static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev);
sound/core/seq/oss/seq_oss_event.c
302
return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev);
sound/core/seq/oss/seq_oss_event.c
303
} else if (note >= 128)
sound/core/seq/oss/seq_oss_event.c
306
if (note != info->ch[ch].note && info->ch[ch].note >= 0)
sound/core/seq/oss/seq_oss_event.c
308
set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, info->ch[ch].note, 0, ev);
sound/core/seq/oss/seq_oss_event.c
310
info->ch[ch].note = note;
sound/core/seq/oss/seq_oss_event.c
313
return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
sound/core/seq/oss/seq_oss_event.c
318
return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
sound/core/seq/oss/seq_oss_event.c
321
if (note >= 128) /* key pressure: shifted by 128 */
sound/core/seq/oss/seq_oss_event.c
322
return set_note_event(dp, dev, SNDRV_SEQ_EVENT_KEYPRESS, ch, note - 128, vel, ev);
sound/core/seq/oss/seq_oss_event.c
324
return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
sound/core/seq/oss/seq_oss_event.c
333
note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev)
sound/core/seq/oss/seq_oss_event.c
345
return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
sound/core/seq/oss/seq_oss_event.c
349
if (info->ch[ch].note >= 0) {
sound/core/seq/oss/seq_oss_event.c
350
note = info->ch[ch].note;
sound/core/seq/oss/seq_oss_event.c
352
info->ch[ch].note = -1;
sound/core/seq/oss/seq_oss_event.c
353
return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev);
sound/core/seq/oss/seq_oss_event.c
360
return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev);
sound/core/seq/oss/seq_oss_event.c
370
set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev)
sound/core/seq/oss/seq_oss_event.c
377
ev->data.note.channel = ch;
sound/core/seq/oss/seq_oss_event.c
378
ev->data.note.note = note;
sound/core/seq/oss/seq_oss_event.c
379
ev->data.note.velocity = vel;
sound/core/seq/oss/seq_oss_event.c
99
return note_off_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev);
sound/core/seq/oss/seq_oss_event.h
30
unsigned char note;
sound/core/seq/oss/seq_oss_event.h
67
unsigned char note, parm;
sound/core/seq/oss/seq_oss_midi.c
540
ossev.v.note = ev->data.note.note;
sound/core/seq/oss/seq_oss_midi.c
541
ossev.v.parm = ev->data.note.velocity;
sound/core/seq/oss/seq_oss_midi.c
542
ossev.v.chn = ev->data.note.channel;
sound/core/seq/oss/seq_oss_synth.c
354
info->ch[i].note = -1;
sound/core/seq/seq_clientmgr.c
842
cell->event.time.tick += ev->data.note.duration;
sound/core/seq/seq_clientmgr.c
846
ev->time.time.tv_nsec += 1000000 * (ev->data.note.duration % 1000);
sound/core/seq/seq_clientmgr.c
847
ev->time.time.tv_sec += ev->data.note.duration / 1000 +
sound/core/seq/seq_clientmgr.c
852
ev->data.note.velocity = ev->data.note.off_velocity;
sound/core/seq/seq_midi_emul.c
105
if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0)
sound/core/seq/seq_midi_emul.c
112
if (ev->data.note.note >= 128)
sound/core/seq/seq_midi_emul.c
118
if (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON) {
sound/core/seq/seq_midi_emul.c
120
ops->note_off(drv, ev->data.note.note, 0, chan);
sound/core/seq/seq_midi_emul.c
122
chan->note[ev->data.note.note] = SNDRV_MIDI_NOTE_ON;
sound/core/seq/seq_midi_emul.c
124
ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan);
sound/core/seq/seq_midi_emul.c
127
if (! (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON))
sound/core/seq/seq_midi_emul.c
130
note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity);
sound/core/seq/seq_midi_emul.c
134
ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan);
sound/core/seq/seq_midi_emul.c
237
int note, int vel)
sound/core/seq/seq_midi_emul.c
241
chan->note[note] |= SNDRV_MIDI_NOTE_RELEASED;
sound/core/seq/seq_midi_emul.c
242
} else if (chan->note[note] & SNDRV_MIDI_NOTE_SOSTENUTO) {
sound/core/seq/seq_midi_emul.c
245
chan->note[note] |= SNDRV_MIDI_NOTE_RELEASED;
sound/core/seq/seq_midi_emul.c
247
chan->note[note] = 0;
sound/core/seq/seq_midi_emul.c
249
ops->note_off(drv, note, vel, chan);
sound/core/seq/seq_midi_emul.c
279
if (chan->note[i] & SNDRV_MIDI_NOTE_RELEASED) {
sound/core/seq/seq_midi_emul.c
280
chan->note[i] = SNDRV_MIDI_NOTE_OFF;
sound/core/seq/seq_midi_emul.c
293
if (chan->note[i] & SNDRV_MIDI_NOTE_ON)
sound/core/seq/seq_midi_emul.c
294
chan->note[i] |= SNDRV_MIDI_NOTE_SOSTENUTO;
sound/core/seq/seq_midi_emul.c
299
if (chan->note[i] & SNDRV_MIDI_NOTE_SOSTENUTO) {
sound/core/seq/seq_midi_emul.c
300
chan->note[i] &= ~SNDRV_MIDI_NOTE_SOSTENUTO;
sound/core/seq/seq_midi_emul.c
301
if (chan->note[i] & SNDRV_MIDI_NOTE_RELEASED) {
sound/core/seq/seq_midi_emul.c
302
chan->note[i] = SNDRV_MIDI_NOTE_OFF;
sound/core/seq/seq_midi_emul.c
35
int note, int vel);
sound/core/seq/seq_midi_emul.c
387
memset(chan->note, 0, sizeof(chan->note));
sound/core/seq/seq_midi_emul.c
600
if (chan->note[n]) {
sound/core/seq/seq_midi_emul.c
602
chan->note[n] = 0;
sound/core/seq/seq_midi_emul.c
619
if (chan->note[n] == SNDRV_MIDI_NOTE_ON)
sound/core/seq/seq_midi_emul.c
88
dest_channel = ev->data.note.channel;
sound/core/seq/seq_midi_event.c
239
ev->data.note.channel = dev->buf[0] & 0x0f;
sound/core/seq/seq_midi_event.c
240
ev->data.note.note = dev->buf[1];
sound/core/seq/seq_midi_event.c
241
ev->data.note.velocity = dev->buf[2];
sound/core/seq/seq_midi_event.c
305
cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f);
sound/core/seq/seq_midi_event.c
342
buf[0] = ev->data.note.note & 0x7f;
sound/core/seq/seq_midi_event.c
343
buf[1] = ev->data.note.velocity & 0x7f;
sound/core/seq/seq_prioq.c
352
if (ev->data.note.channel != info->channel)
sound/core/seq/seq_ump_convert.c
136
unsigned char status = val->note.status;
sound/core/seq/seq_ump_convert.c
206
ev->data.note.channel = val->note.channel;
sound/core/seq/seq_ump_convert.c
207
ev->data.note.note = val->note.note;
sound/core/seq/seq_ump_convert.c
208
ev->data.note.velocity = downscale_16_to_7bit(val->note.velocity);
sound/core/seq/seq_ump_convert.c
213
!ev->data.note.velocity)
sound/core/seq/seq_ump_convert.c
214
ev->data.note.velocity = 1;
sound/core/seq/seq_ump_convert.c
306
unsigned char status = val->note.status;
sound/core/seq/seq_ump_convert.c
376
midi2->note.type = UMP_MSG_TYPE_MIDI2_CHANNEL_VOICE;
sound/core/seq/seq_ump_convert.c
377
midi2->note.group = midi1->note.group;
sound/core/seq/seq_ump_convert.c
378
midi2->note.status = midi1->note.status;
sound/core/seq/seq_ump_convert.c
379
midi2->note.channel = midi1->note.channel;
sound/core/seq/seq_ump_convert.c
380
switch (midi1->note.status) {
sound/core/seq/seq_ump_convert.c
383
midi2->note.note = midi1->note.note;
sound/core/seq/seq_ump_convert.c
384
midi2->note.velocity = upscale_7_to_16bit(midi1->note.velocity);
sound/core/seq/seq_ump_convert.c
387
midi2->paf.note = midi1->paf.note;
sound/core/seq/seq_ump_convert.c
391
cc = &dest_port->midi2_bank[midi1->note.channel];
sound/core/seq/seq_ump_convert.c
407
cc = &dest_port->midi2_bank[midi1->note.channel];
sound/core/seq/seq_ump_convert.c
447
midi1->note.type = UMP_MSG_TYPE_MIDI1_CHANNEL_VOICE;
sound/core/seq/seq_ump_convert.c
448
midi1->note.group = midi2->note.group;
sound/core/seq/seq_ump_convert.c
449
midi1->note.status = midi2->note.status;
sound/core/seq/seq_ump_convert.c
450
midi1->note.channel = midi2->note.channel;
sound/core/seq/seq_ump_convert.c
451
switch (midi2->note.status) {
sound/core/seq/seq_ump_convert.c
454
midi1->note.note = midi2->note.note;
sound/core/seq/seq_ump_convert.c
455
midi1->note.velocity = downscale_16_to_7bit(midi2->note.velocity);
sound/core/seq/seq_ump_convert.c
458
midi1->paf.note = midi2->paf.note;
sound/core/seq/seq_ump_convert.c
482
midi1->note.status = midi2->note.status;
sound/core/seq/seq_ump_convert.c
633
if (!event->data.note.velocity)
sound/core/seq/seq_ump_convert.c
635
data->note.status = status;
sound/core/seq/seq_ump_convert.c
636
data->note.channel = event->data.note.channel & 0x0f;
sound/core/seq/seq_ump_convert.c
637
data->note.velocity = event->data.note.velocity & 0x7f;
sound/core/seq/seq_ump_convert.c
638
data->note.note = event->data.note.note & 0x7f;
sound/core/seq/seq_ump_convert.c
771
if (!event->data.note.velocity)
sound/core/seq/seq_ump_convert.c
773
data->note.status = status;
sound/core/seq/seq_ump_convert.c
774
data->note.channel = event->data.note.channel & 0x0f;
sound/core/seq/seq_ump_convert.c
775
data->note.note = event->data.note.note & 0x7f;
sound/core/seq/seq_ump_convert.c
776
data->note.velocity = upscale_7_to_16bit(event->data.note.velocity & 0x7f);
sound/core/seq/seq_ump_convert.c
787
data->paf.channel = event->data.note.channel & 0x0f;
sound/core/seq/seq_ump_convert.c
788
data->paf.note = event->data.note.note & 0x7f;
sound/core/seq/seq_ump_convert.c
789
data->paf.data = upscale_7_to_32bit(event->data.note.velocity & 0x7f);
sound/core/seq/seq_ump_convert.c
85
ev->data.note.channel = val->note.channel;
sound/core/seq/seq_ump_convert.c
86
ev->data.note.note = val->note.note;
sound/core/seq/seq_ump_convert.c
87
ev->data.note.velocity = val->note.velocity;
sound/core/ump_convert.c
105
unsigned char status = midi2->note.status;
sound/core/ump_convert.c
106
unsigned char channel = midi2->note.channel;
sound/core/ump_convert.c
113
buf[1] = midi2->note.note;
sound/core/ump_convert.c
114
buf[2] = downscale_16_to_7bit(midi2->note.velocity);
sound/core/ump_convert.c
119
buf[1] = midi2->paf.note;
sound/core/ump_convert.c
369
midi2->note.note = buf[1];
sound/core/ump_convert.c
370
midi2->note.velocity = upscale_7_to_16bit(buf[2]);
sound/core/ump_convert.c
373
midi2->paf.note = buf[1];
sound/drivers/opl3/opl3_drums.c
169
void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off,
sound/drivers/opl3/opl3_drums.c
178
if ((note < 35) || (note > 81))
sound/drivers/opl3/opl3_drums.c
180
drum_mask = snd_opl3_drum_table[note - 35];
sound/drivers/opl3/opl3_midi.c
21
static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
sound/drivers/opl3/opl3_midi.c
245
snd_opl3_note_off_unsafe(opl3, vp->note, 0,
sound/drivers/opl3/opl3_midi.c
282
void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
sound/drivers/opl3/opl3_midi.c
302
int key = note;
sound/drivers/opl3/opl3_midi.c
312
chan->number, chan->midi_program, note, vel);
sound/drivers/opl3/opl3_midi.c
320
prg = note;
sound/drivers/opl3/opl3_midi.c
338
snd_opl3_drum_switch(opl3, note, vel, 1, chan);
sound/drivers/opl3/opl3_midi.c
514
note = fm->fix_key;
sound/drivers/opl3/opl3_midi.c
519
note += (fm->trnsps - 64);
sound/drivers/opl3/opl3_midi.c
521
snd_opl3_calc_pitch(&fnum, &blocknum, note, chan);
sound/drivers/opl3/opl3_midi.c
551
vp->note = key;
sound/drivers/opl3/opl3_midi.c
559
vp2->note = key;
sound/drivers/opl3/opl3_midi.c
638
static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
sound/drivers/opl3/opl3_midi.c
649
chan->number, chan->midi_program, note);
sound/drivers/opl3/opl3_midi.c
653
snd_opl3_drum_switch(opl3, note, vel, 0, chan);
sound/drivers/opl3/opl3_midi.c
660
if (vp->state > 0 && vp->chan == chan && vp->note == note) {
sound/drivers/opl3/opl3_midi.c
673
void snd_opl3_note_off(void *p, int note, int vel,
sound/drivers/opl3/opl3_midi.c
679
snd_opl3_note_off_unsafe(p, note, vel, chan);
sound/drivers/opl3/opl3_midi.c
685
void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan)
sound/drivers/opl3/opl3_midi.c
694
void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan)
sound/drivers/opl3/opl3_midi.c
727
snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan);
sound/drivers/opl3/opl3_midi.c
87
int note, struct snd_midi_channel *chan)
sound/drivers/opl3/opl3_midi.c
89
int block = ((note / 12) & 0x07) - 1;
sound/drivers/opl3/opl3_midi.c
90
int idx = (note % 12) + 2;
sound/drivers/opl3/opl3_synth.c
115
struct snd_dm_fm_note note;
sound/drivers/opl3/opl3_synth.c
116
if (copy_from_user(¬e, argp, sizeof(struct snd_dm_fm_note)))
sound/drivers/opl3/opl3_synth.c
118
return snd_opl3_play_note(opl3, ¬e);
sound/drivers/opl3/opl3_synth.c
388
static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note)
sound/drivers/opl3/opl3_synth.c
398
if (note->voice >= ((opl3->fm_mode == SNDRV_DM_FM_MODE_OPL3) ?
sound/drivers/opl3/opl3_synth.c
403
if (note->voice < MAX_OPL2_VOICES) {
sound/drivers/opl3/opl3_synth.c
406
voice_offset = note->voice;
sound/drivers/opl3/opl3_synth.c
410
voice_offset = note->voice - MAX_OPL2_VOICES;
sound/drivers/opl3/opl3_synth.c
414
reg_val = (unsigned char) note->fnum;
sound/drivers/opl3/opl3_synth.c
420
if (note->key_on)
sound/drivers/opl3/opl3_synth.c
423
reg_val |= (note->octave << 2) & OPL3_BLOCKNUM_MASK;
sound/drivers/opl3/opl3_synth.c
425
reg_val |= (unsigned char) (note->fnum >> 8) & OPL3_FNUM_HIGH_MASK;
sound/drivers/opl3/opl3_synth.c
60
static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note);
sound/drivers/opl3/opl3_voice.h
18
void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
sound/drivers/opl3/opl3_voice.h
19
void snd_opl3_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
sound/drivers/opl3/opl3_voice.h
20
void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan);
sound/drivers/opl3/opl3_voice.h
21
void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan);
sound/drivers/opl3/opl3_voice.h
31
void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_channel *chan);
sound/drivers/opl4/opl4_local.h
163
int note;
sound/drivers/opl4/opl4_local.h
225
void snd_opl4_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
sound/drivers/opl4/opl4_local.h
226
void snd_opl4_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
sound/drivers/opl4/opl4_local.h
227
void snd_opl4_terminate_note(void *p, int note, struct snd_midi_channel *chan);
sound/drivers/opl4/opl4_synth.c
309
static void snd_opl4_do_for_note(struct snd_opl4 *opl4, int note, struct snd_midi_channel *chan,
sound/drivers/opl4/opl4_synth.c
318
if (voice->chan == chan && voice->note == note) {
sound/drivers/opl4/opl4_synth.c
414
int note, pitch, octave;
sound/drivers/opl4/opl4_synth.c
416
note = chan->drum_channel ? 60 : voice->note;
sound/drivers/opl4/opl4_synth.c
421
pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7);
sound/drivers/opl4/opl4_synth.c
473
void snd_opl4_note_on(void *private_data, int note, int vel, struct snd_midi_channel *chan)
sound/drivers/opl4/opl4_synth.c
485
if (note >= regions->regions[i].key_min &&
sound/drivers/opl4/opl4_synth.c
486
note <= regions->regions[i].key_max) {
sound/drivers/opl4/opl4_synth.c
499
voice[i]->note = note;
sound/drivers/opl4/opl4_synth.c
552
void snd_opl4_note_off(void *private_data, int note, int vel, struct snd_midi_channel *chan)
sound/drivers/opl4/opl4_synth.c
556
snd_opl4_do_for_note(opl4, note, chan, snd_opl4_voice_off);
sound/drivers/opl4/opl4_synth.c
567
void snd_opl4_terminate_note(void *private_data, int note, struct snd_midi_channel *chan)
sound/drivers/opl4/opl4_synth.c
571
snd_opl4_do_for_note(opl4, note, chan, snd_opl4_terminate_voice);
sound/synth/emux/emux_synth.c
143
snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan)
sound/synth/emux/emux_synth.c
162
vp->chan == chan && vp->key == note) {
sound/synth/emux/emux_synth.c
216
snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan)
sound/synth/emux/emux_synth.c
235
vp->chan == chan && vp->key == note) {
sound/synth/emux/emux_synth.c
30
static void terminate_note1(struct snd_emux *emu, int note,
sound/synth/emux/emux_synth.c
352
terminate_note1(struct snd_emux *emu, int note, struct snd_midi_channel *chan, int free)
sound/synth/emux/emux_synth.c
361
vp->key == note)
sound/synth/emux/emux_synth.c
371
snd_emux_terminate_note(void *p, int note, struct snd_midi_channel *chan)
sound/synth/emux/emux_synth.c
384
terminate_note1(emu, note, chan, 1);
sound/synth/emux/emux_synth.c
46
snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
sound/synth/emux/emux_synth.c
62
key = note; /* remember the original note */
sound/synth/emux/emux_synth.c
63
nvoices = get_zone(emu, port, ¬e, vel, chan, table);
sound/synth/emux/emux_synth.c
800
offset = (vp->note - vp->reg.root) * 4096 / 12;
sound/synth/emux/emux_synth.c
98
vp->note = note;
sound/synth/emux/emux_voice.h
34
void snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
sound/synth/emux/emux_voice.h
35
void snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
sound/synth/emux/emux_voice.h
36
void snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan);
sound/synth/emux/emux_voice.h
37
void snd_emux_terminate_note(void *p, int note, struct snd_midi_channel *chan);
sound/synth/emux/soundfont.c
1033
note = freq_to_note(patch.base_note);
sound/synth/emux/soundfont.c
1034
zone->v.root = note / 100;
sound/synth/emux/soundfont.c
1035
zone->v.tune = -(note % 100);
sound/synth/emux/soundfont.c
945
int note, sample_id;
tools/lib/bpf/usdt.c
1145
struct usdt_note *note)
tools/lib/bpf/usdt.c
1185
note->provider = provider;
tools/lib/bpf/usdt.c
1186
note->name = name;
tools/lib/bpf/usdt.c
1188
note->args = "";
tools/lib/bpf/usdt.c
1190
note->args = args;
tools/lib/bpf/usdt.c
1191
note->loc_addr = addrs[0];
tools/lib/bpf/usdt.c
1192
note->base_addr = addrs[1];
tools/lib/bpf/usdt.c
1193
note->sema_addr = addrs[2];
tools/lib/bpf/usdt.c
1200
static int parse_usdt_spec(struct usdt_spec *spec, const struct usdt_note *note, __u64 usdt_cookie)
tools/lib/bpf/usdt.c
1209
s = note->args;
tools/lib/bpf/usdt.c
1213
USDT_MAX_ARG_CNT, note->provider, note->name, note->args);
tools/lib/bpf/usdt.c
586
static int parse_usdt_spec(struct usdt_spec *spec, const struct usdt_note *note, __u64 usdt_cookie);
tools/lib/bpf/usdt.c
634
struct usdt_note note;
tools/lib/bpf/usdt.c
638
err = parse_usdt_note(&nhdr, data->d_buf, name_off, desc_off, ¬e);
tools/lib/bpf/usdt.c
642
if (strcmp(note.provider, usdt_provider) != 0 || strcmp(note.name, usdt_name) != 0)
tools/lib/bpf/usdt.c
672
usdt_abs_ip = note.loc_addr;
tools/lib/bpf/usdt.c
673
if (base_addr && note.base_addr)
tools/lib/bpf/usdt.c
674
usdt_abs_ip += base_addr - note.base_addr;
tools/lib/bpf/usdt.c
741
note.loc_addr, note.base_addr, usdt_abs_ip, usdt_rel_ip, note.args,
tools/lib/bpf/usdt.c
745
if (note.sema_addr) {
tools/lib/bpf/usdt.c
753
seg = find_elf_seg(segs, seg_cnt, note.sema_addr);
tools/lib/bpf/usdt.c
757
usdt_provider, usdt_name, path, note.sema_addr);
tools/lib/bpf/usdt.c
764
note.sema_addr);
tools/lib/bpf/usdt.c
768
usdt_sema_off = note.sema_addr - seg->start + seg->offset;
tools/lib/bpf/usdt.c
772
path, note.sema_addr, note.base_addr, usdt_sema_off,
tools/lib/bpf/usdt.c
794
target->spec_str = note.args;
tools/lib/bpf/usdt.c
796
err = parse_usdt_spec(&target->spec, ¬e, usdt_cookie);
tools/perf/util/probe-file.c
723
static unsigned long long sdt_note__get_addr(struct sdt_note *note)
tools/perf/util/probe-file.c
725
return note->bit32 ?
tools/perf/util/probe-file.c
726
(unsigned long long)note->addr.a32[SDT_NOTE_IDX_LOC] :
tools/perf/util/probe-file.c
727
(unsigned long long)note->addr.a64[SDT_NOTE_IDX_LOC];
tools/perf/util/probe-file.c
730
static unsigned long long sdt_note__get_ref_ctr_offset(struct sdt_note *note)
tools/perf/util/probe-file.c
732
return note->bit32 ?
tools/perf/util/probe-file.c
733
(unsigned long long)note->addr.a32[SDT_NOTE_IDX_REFCTR] :
tools/perf/util/probe-file.c
734
(unsigned long long)note->addr.a64[SDT_NOTE_IDX_REFCTR];
tools/perf/util/probe-file.c
806
static char *synthesize_sdt_probe_command(struct sdt_note *note,
tools/perf/util/probe-file.c
821
sdtgrp, note->name, pathname,
tools/perf/util/probe-file.c
822
sdt_note__get_addr(note));
tools/perf/util/probe-file.c
824
ref_ctr_offset = sdt_note__get_ref_ctr_offset(note);
tools/perf/util/probe-file.c
831
if (!note->args)
tools/perf/util/probe-file.c
834
if (note->args) {
tools/perf/util/probe-file.c
835
char **args = argv_split(note->args, &args_count);
tools/perf/util/probe-file.c
893
struct sdt_note *note;
tools/perf/util/probe-file.c
904
list_for_each_entry(note, &sdtlist, note_list) {
tools/perf/util/probe-file.c
905
ret = snprintf(sdtgrp, 64, "sdt_%s", note->provider);
tools/perf/util/probe-file.c
909
entry = probe_cache__find_by_name(pcache, sdtgrp, note->name);
tools/perf/util/probe-file.c
918
note->name, note->name);
tools/perf/util/probe-file.c
921
entry->pev.event = strdup(note->name);
tools/perf/util/probe-file.c
925
buf = synthesize_sdt_probe_command(note, pathname, sdtgrp);
tools/testing/selftests/arm64/bti/assembler.h
28
.pushsection .note.gnu.property, "a"
tools/testing/selftests/bpf/sdt.h
256
_SDT_ASM_3(.pushsection .note.stapsdt,"","note") \
tools/testing/selftests/bpf/sdt.h
263
_SDT_ASM_3(.pushsection .note.stapsdt,"","note") \
tools/testing/selftests/bpf/sdt.h
271
_SDT_ASM_3(.pushsection .note.stapsdt,"","note") \
tools/testing/selftests/bpf/sdt.h
292
_SDT_ASM_3( .pushsection .note.stapsdt,_SDT_ASM_AUTOGROUP,"note") \
tools/testing/selftests/bpf/usdt.h
411
__usdt_asm3( .pushsection .note.stapsdt, "", "note") \
tools/testing/selftests/powerpc/ptrace/core-pkey.c
173
void *p = ehdr, *note;
tools/testing/selftests/powerpc/ptrace/core-pkey.c
213
note = p + sizeof(*nhdr) + __ALIGN_KERNEL(nhdr->n_namesz, 4);
tools/testing/selftests/powerpc/ptrace/core-pkey.c
215
regs = (unsigned long *) note;