patch 114 arch/arm/kernel/patch.c struct patch *patch = data; patch 116 arch/arm/kernel/patch.c __patch_text(patch->addr, patch->insn); patch 123 arch/arm/kernel/patch.c struct patch patch = { patch 128 arch/arm/kernel/patch.c stop_machine_cpuslocked(patch_text_stop_machine, &patch, NULL); patch 161 arch/arm/probes/kprobes/core.c struct patch *p = data; patch 168 arch/arm/probes/kprobes/core.c struct patch p = { patch 214 arch/arm64/kernel/insn.c struct aarch64_insn_patch patch = { patch 224 arch/arm64/kernel/insn.c return stop_machine_cpuslocked(aarch64_insn_patch_text_cb, &patch, patch 266 arch/mips/include/asm/cpu.h #define PRID_REV_ENCODE_332(ver, rev, patch) \ patch 267 arch/mips/include/asm/cpu.h ((ver) << 5 | (rev) << 2 | (patch)) patch 106 arch/parisc/kernel/patch.c struct patch *patch = data; patch 108 arch/parisc/kernel/patch.c __patch_text_multiple(patch->addr, patch->insn, patch->len); patch 114 arch/parisc/kernel/patch.c struct patch patch = { patch 120 arch/parisc/kernel/patch.c stop_machine_cpuslocked(patch_text_stop_machine, &patch, NULL); patch 126 arch/parisc/kernel/patch.c struct patch patch = { patch 132 arch/parisc/kernel/patch.c stop_machine_cpuslocked(patch_text_stop_machine, &patch, NULL); patch 587 arch/powerpc/kernel/vdso.c struct vdso_patch_def *patch = &vdso_patches[i]; patch 588 arch/powerpc/kernel/vdso.c int match = (cur_cpu_spec->cpu_features & patch->ftr_mask) patch 589 arch/powerpc/kernel/vdso.c == patch->ftr_value; patch 593 arch/powerpc/kernel/vdso.c DBG("replacing %s with %s...\n", patch->gen_name, patch 594 arch/powerpc/kernel/vdso.c patch->fix_name ? "NONE" : patch->fix_name); patch 602 arch/powerpc/kernel/vdso.c vdso_do_func_patch32(v32, v64, patch->gen_name, patch 603 arch/powerpc/kernel/vdso.c patch->fix_name); patch 605 arch/powerpc/kernel/vdso.c vdso_do_func_patch64(v32, v64, patch->gen_name, patch 606 arch/powerpc/kernel/vdso.c patch->fix_name); patch 325 arch/powerpc/platforms/8xx/micropatch.c static void __init cpm_write_patch(cpm8xx_t *cp, int offset, uint *patch, int len) patch 329 arch/powerpc/platforms/8xx/micropatch.c memcpy_toio(cp->cp_dpmem + offset, patch, len); patch 91 arch/x86/include/asm/paravirt_types.h unsigned (*patch)(u8 type, void *insn_buff, patch 605 arch/x86/kernel/alternative.c used = pv_ops.init.patch(p->type, insn_buff, (unsigned long)p->instr, p->len); patch 422 arch/x86/kernel/cpu/microcode/amd.c u8 (*patch)[PATCH_MAX_SIZE]; patch 429 arch/x86/kernel/cpu/microcode/amd.c patch = (u8 (*)[PATCH_MAX_SIZE])__pa_nodebug(&amd_ucode_patch); patch 432 arch/x86/kernel/cpu/microcode/amd.c patch = &amd_ucode_patch; patch 452 arch/x86/kernel/cpu/microcode/amd.c memcpy(patch, mc, min_t(u32, desc.psize, PATCH_MAX_SIZE)); patch 766 arch/x86/kernel/cpu/microcode/amd.c struct ucode_patch *patch; patch 774 arch/x86/kernel/cpu/microcode/amd.c patch = kzalloc(sizeof(*patch), GFP_KERNEL); patch 775 arch/x86/kernel/cpu/microcode/amd.c if (!patch) { patch 780 arch/x86/kernel/cpu/microcode/amd.c patch->data = kmemdup(fw + SECTION_HDR_SIZE, *patch_size, GFP_KERNEL); patch 781 arch/x86/kernel/cpu/microcode/amd.c if (!patch->data) { patch 783 arch/x86/kernel/cpu/microcode/amd.c kfree(patch); patch 790 arch/x86/kernel/cpu/microcode/amd.c INIT_LIST_HEAD(&patch->plist); patch 791 arch/x86/kernel/cpu/microcode/amd.c patch->patch_id = mc_hdr->patch_id; patch 792 arch/x86/kernel/cpu/microcode/amd.c patch->equiv_cpu = proc_id; patch 795 arch/x86/kernel/cpu/microcode/amd.c __func__, patch->patch_id, proc_id); patch 798 arch/x86/kernel/cpu/microcode/amd.c update_cache(patch); patch 330 arch/x86/kernel/cpu/microcode/intel.c struct microcode_intel *patch = NULL; patch 358 arch/x86/kernel/cpu/microcode/intel.c if (!patch) { patch 366 arch/x86/kernel/cpu/microcode/intel.c struct microcode_header_intel *phdr = &patch->hdr; patch 376 arch/x86/kernel/cpu/microcode/intel.c patch = data; patch 385 arch/x86/kernel/cpu/microcode/intel.c return patch; patch 683 arch/x86/kernel/cpu/microcode/intel.c struct microcode_intel *patch; patch 686 arch/x86/kernel/cpu/microcode/intel.c patch = __load_ucode_intel(&uci); patch 687 arch/x86/kernel/cpu/microcode/intel.c if (!patch) patch 690 arch/x86/kernel/cpu/microcode/intel.c uci.mc = patch; patch 697 arch/x86/kernel/cpu/microcode/intel.c struct microcode_intel *patch, **iup; patch 707 arch/x86/kernel/cpu/microcode/intel.c patch = __load_ucode_intel(&uci); patch 708 arch/x86/kernel/cpu/microcode/intel.c if (!patch) patch 711 arch/x86/kernel/cpu/microcode/intel.c *iup = patch; patch 12 arch/x86/kernel/livepatch.c void arch_klp_init_object_loaded(struct klp_patch *patch, patch 23 arch/x86/kernel/livepatch.c info = patch->mod->klp_info; patch 298 arch/x86/kernel/paravirt.c .init.patch = native_patch, patch 1203 arch/x86/xen/enlighten_pv.c pv_ops.init.patch = paravirt_patch_default; patch 41 arch/xtensa/kernel/jump_label.c struct patch *patch = data; patch 43 arch/xtensa/kernel/jump_label.c if (atomic_inc_return(&patch->cpu_count) == 1) { patch 44 arch/xtensa/kernel/jump_label.c local_patch_text(patch->addr, patch->data, patch->sz); patch 45 arch/xtensa/kernel/jump_label.c atomic_inc(&patch->cpu_count); patch 47 arch/xtensa/kernel/jump_label.c while (atomic_read(&patch->cpu_count) <= num_online_cpus()) patch 49 arch/xtensa/kernel/jump_label.c __invalidate_icache_range(patch->addr, patch->sz); patch 57 arch/xtensa/kernel/jump_label.c struct patch patch = { patch 64 arch/xtensa/kernel/jump_label.c &patch, NULL); patch 146 drivers/base/regmap/internal.h struct reg_sequence *patch; patch 364 drivers/base/regmap/regcache.c ret = _regmap_write(map, map->patch[i].reg, map->patch[i].def); patch 367 drivers/base/regmap/regcache.c map->patch[i].reg, map->patch[i].def, ret); patch 3032 drivers/base/regmap/regmap.c p = krealloc(map->patch, patch 3037 drivers/base/regmap/regmap.c map->patch = p; patch 200 drivers/bluetooth/hci_ag6xx.c goto patch; patch 217 drivers/bluetooth/hci_ag6xx.c patch: patch 107 drivers/clk/ti/clock.h struct ti_clk *patch; patch 282 drivers/gpu/drm/msm/adreno/adreno_device.c unsigned int r, patch; patch 284 drivers/gpu/drm/msm/adreno/adreno_device.c if (sscanf(compat, "qcom,adreno-%u.%u", &r, &patch) == 2 || patch 285 drivers/gpu/drm/msm/adreno/adreno_device.c sscanf(compat, "amd,imageon-%u.%u", &r, &patch) == 2) { patch 291 drivers/gpu/drm/msm/adreno/adreno_device.c rev->patchid = patch; patch 22 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios.h u8 patch; patch 191 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.patch = nvbios_rd08(bios, bit_i.offset + 4); patch 202 drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c bios->version.minor, bios->version.micro, bios->version.patch); patch 655 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c struct hsf_load_header *load_header, bool patch) patch 675 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/acr_r352.c if (patch) { patch 2500 drivers/gpu/drm/radeon/ci_dpm.c bool patch; patch 2504 drivers/gpu/drm/radeon/ci_dpm.c patch = ((tmp & 0x0000f00) == 0x300) ? true : false; patch 2506 drivers/gpu/drm/radeon/ci_dpm.c if (patch && patch 4539 drivers/gpu/drm/radeon/ci_dpm.c bool patch; patch 4542 drivers/gpu/drm/radeon/ci_dpm.c patch = ((tmp & 0x0000f00) == 0x300) ? true : false; patch 4544 drivers/gpu/drm/radeon/ci_dpm.c if (patch && patch 178 drivers/mfd/lochnagar-i2c.c const struct reg_sequence *patch; patch 188 drivers/mfd/lochnagar-i2c.c .patch = lochnagar1_patch, patch 196 drivers/mfd/lochnagar-i2c.c .patch = lochnagar2_patch, patch 363 drivers/mfd/lochnagar-i2c.c ret = regmap_register_patch(lochnagar->regmap, config->patch, patch 1330 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (drv_fwhdr->fwver.patch == fwhdr_to_cmp->fwver.patch && patch 1365 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (fwhdr_to_cmp->fwver.patch > base_fwhdr->fwver.patch) patch 1367 drivers/net/ethernet/brocade/bna/bfa_ioc.c else if (fwhdr_to_cmp->fwver.patch < base_fwhdr->fwver.patch) patch 233 drivers/net/ethernet/brocade/bna/bfi.h u8 patch; patch 244 drivers/net/ethernet/brocade/bna/bfi.h u8 patch; patch 905 drivers/net/ethernet/intel/i40e/i40e.h u8 ver, patch; patch 911 drivers/net/ethernet/intel/i40e/i40e.h patch = (u8)(full_ver & I40E_OEM_VER_PATCH_MASK); patch 919 drivers/net/ethernet/intel/i40e/i40e.h hw->nvm.eetrack, ver, build, patch); patch 140 drivers/net/phy/bcm7xxx.c u8 patch = PHY_BRCM_7XXX_PATCH(phydev->dev_flags); patch 151 drivers/net/phy/bcm7xxx.c phydev_name(phydev), phydev->drv->name, rev, patch); patch 796 drivers/net/wireless/ath/ath6kl/core.h const char *patch; patch 55 drivers/net/wireless/ath/ath6kl/init.c .patch = AR6003_HW_2_0_PATCH_FILE, patch 78 drivers/net/wireless/ath/ath6kl/init.c .patch = AR6003_HW_2_1_1_PATCH_FILE, patch 885 drivers/net/wireless/ath/ath6kl/init.c if (ar->hw.fw.patch == NULL) patch 889 drivers/net/wireless/ath/ath6kl/init.c ar->hw.fw.dir, ar->hw.fw.patch); patch 1648 drivers/net/wireless/atmel/at76c50x-usb.c fwe->fw_version.patch = fwh->patch; patch 1661 drivers/net/wireless/atmel/at76c50x-usb.c fwe->fwname, fwh->major, fwh->minor, fwh->patch, fwh->build); patch 2371 drivers/net/wireless/atmel/at76c50x-usb.c priv->fw_version.patch, priv->fw_version.build); patch 2389 drivers/net/wireless/atmel/at76c50x-usb.c priv->fw_version.patch, priv->fw_version.build); patch 312 drivers/net/wireless/atmel/at76c50x-usb.h u8 patch; patch 338 drivers/net/wireless/atmel/at76c50x-usb.h u8 patch; /* firmware patch level */ patch 793 drivers/net/wireless/broadcom/b43/b43.h u16 patch; patch 2686 drivers/net/wireless/broadcom/b43/main.c dev->fw.patch = fwpatch; patch 2703 drivers/net/wireless/broadcom/b43/main.c dev->fw.patch = fwtime; patch 2705 drivers/net/wireless/broadcom/b43/main.c dev->fw.rev, dev->fw.patch); patch 2729 drivers/net/wireless/broadcom/b43/main.c dev->fw.rev, dev->fw.patch); patch 654 drivers/net/wireless/broadcom/b43legacy/b43legacy.h u16 patch; patch 1762 drivers/net/wireless/broadcom/b43legacy/main.c dev->fw.patch = fwpatch; patch 1765 drivers/net/wireless/broadcom/b43legacy/main.c dev->fw.rev, dev->fw.patch); patch 7917 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c u16 patch; patch 7920 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c patch = brcms_b_read_shm(wlc->hw, M_BOM_REV_MINOR); patch 7921 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->ucode_rev = (rev << NBITS(u16)) | patch; patch 7923 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c sizeof(wlc->wiphy->fw_version), "%u.%u", rev, patch); patch 208 drivers/scsi/aic7xxx/aic79xx_core.c const struct patch **start_patch, patch 9305 drivers/scsi/aic7xxx/aic79xx_core.c const struct patch *cur_patch; patch 9460 drivers/scsi/aic7xxx/aic79xx_core.c ahd_check_patch(struct ahd_softc *ahd, const struct patch **start_patch, patch 9463 drivers/scsi/aic7xxx/aic79xx_core.c const struct patch *cur_patch; patch 9464 drivers/scsi/aic7xxx/aic79xx_core.c const struct patch *last_patch; patch 9498 drivers/scsi/aic7xxx/aic79xx_core.c const struct patch *cur_patch; patch 217 drivers/scsi/aic7xxx/aic7xxx_core.c const struct patch **start_patch, patch 6821 drivers/scsi/aic7xxx/aic7xxx_core.c const struct patch *cur_patch; patch 6926 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_check_patch(struct ahc_softc *ahc, const struct patch **start_patch, patch 6929 drivers/scsi/aic7xxx/aic7xxx_core.c const struct patch *cur_patch; patch 6930 drivers/scsi/aic7xxx/aic7xxx_core.c const struct patch *last_patch; patch 6989 drivers/scsi/aic7xxx/aic7xxx_core.c const struct patch *cur_patch; patch 67 drivers/scsi/aic7xxx/aicasm/aicasm.c STAILQ_ENTRY(patch) links; patch 74 drivers/scsi/aic7xxx/aicasm/aicasm.c STAILQ_HEAD(patch_list, patch) patches; patch 81 drivers/scsi/aic7xxx/aicasm/aicasm.c static void emit_patch(scope_t *scope, int patch); patch 488 drivers/scsi/aic7xxx/aicasm/aicasm.c emit_patch(scope_t *scope, int patch) patch 493 drivers/scsi/aic7xxx/aicasm/aicasm.c pinfo = &scope->patches[patch]; patch 506 drivers/scsi/aic7xxx/aicasm/aicasm.c if (patch == 0) { patch 1552 drivers/scsi/bfa/bfa_ioc.c if (drv_fwhdr->fwver.patch == fwhdr_to_cmp->fwver.patch && patch 1589 drivers/scsi/bfa/bfa_ioc.c if (fwhdr_to_cmp->fwver.patch > base_fwhdr->fwver.patch) patch 1592 drivers/scsi/bfa/bfa_ioc.c else if (fwhdr_to_cmp->fwver.patch < base_fwhdr->fwver.patch) patch 326 drivers/scsi/bfa/bfi.h uint8_t patch; patch 337 drivers/scsi/bfa/bfi.h uint8_t patch; patch 1533 drivers/scsi/ncr53c8xx.c ncrcmd patch[8]; patch 6336 drivers/scsi/ncr53c8xx.c if (dsp == CCB_PHYS (cp, patch[2])) { patch 6337 drivers/scsi/ncr53c8xx.c vdsp = &cp->patch[0]; patch 6340 drivers/scsi/ncr53c8xx.c else if (dsp == CCB_PHYS (cp, patch[6])) { patch 6341 drivers/scsi/ncr53c8xx.c vdsp = &cp->patch[4]; patch 6432 drivers/scsi/ncr53c8xx.c newcmd = cp->patch; patch 6433 drivers/scsi/ncr53c8xx.c newtmp = CCB_PHYS (cp, patch); patch 6435 drivers/scsi/ncr53c8xx.c newcmd = &cp->patch[4]; patch 6436 drivers/scsi/ncr53c8xx.c newtmp = CCB_PHYS (cp, patch[4]); patch 6450 drivers/scsi/ncr53c8xx.c (int) (newcmd - cp->patch), patch 133 drivers/scsi/sym53c8xx_2/sym_fw.h void (*patch)(struct Scsi_Host *); patch 5583 drivers/scsi/sym53c8xx_2/sym_hipd.c np->fw_patch = fw->patch; patch 798 drivers/scsi/wd33c93.c struct scsi_cmnd *patch, *cmd; patch 1441 drivers/scsi/wd33c93.c patch = NULL; patch 1445 drivers/scsi/wd33c93.c patch = cmd; patch 1461 drivers/scsi/wd33c93.c if (patch) patch 1462 drivers/scsi/wd33c93.c patch->host_scribble = cmd->host_scribble; patch 91 drivers/tty/n_hdlc.c #define VERSION(major,minor,patch) (((((major)<<8)+(minor))<<8)+(patch)) patch 110 drivers/usb/typec/ucsi/ucsi_ccg.c u8 patch; patch 414 drivers/usb/typec/ucsi/ucsi_ccg.c CCG_VERSION_PATCH(uc->version[FW2].app.patch); patch 764 drivers/usb/typec/ucsi/ucsi_ccg.c cur_version = le16_to_cpu(app->build) | CCG_VERSION_PATCH(app->patch) | patch 768 drivers/usb/typec/ucsi/ucsi_ccg.c CCG_VERSION_PATCH(fw_cfg.app.patch) | patch 865 include/linux/filter.h const struct bpf_insn *patch, u32 len); patch 16 include/linux/fpga/adi-axi-common.h #define ADI_AXI_PCORE_VER(major, minor, patch) \ patch 17 include/linux/fpga/adi-axi-common.h (((major) << 16) | ((minor) << 8) | (patch)) patch 162 include/linux/livepatch.h #define klp_for_each_object_static(patch, obj) \ patch 163 include/linux/livepatch.h for (obj = patch->objs; obj->funcs || obj->name; obj++) patch 165 include/linux/livepatch.h #define klp_for_each_object_safe(patch, obj, tmp_obj) \ patch 166 include/linux/livepatch.h list_for_each_entry_safe(obj, tmp_obj, &patch->obj_list, node) patch 168 include/linux/livepatch.h #define klp_for_each_object(patch, obj) \ patch 169 include/linux/livepatch.h list_for_each_entry(obj, &patch->obj_list, node) patch 184 include/linux/livepatch.h void arch_klp_init_object_loaded(struct klp_patch *patch, patch 1195 include/uapi/linux/soundcard.h #define SEQ_PGM_CHANGE(dev, chn, patch) \ patch 1196 include/uapi/linux/soundcard.h _CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0) patch 40 include/uapi/sound/sof/abi.h #define SOF_ABI_VER(major, minor, patch) \ patch 43 include/uapi/sound/sof/abi.h ((patch) << SOF_ABI_PATCH_SHIFT)) patch 433 kernel/bpf/core.c const struct bpf_insn *patch, u32 len) patch 442 kernel/bpf/core.c memcpy(prog->insnsi + off, patch, sizeof(*patch)); patch 479 kernel/bpf/core.c sizeof(*patch) * insn_rest); patch 480 kernel/bpf/core.c memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); patch 8211 kernel/bpf/verifier.c const struct bpf_insn *patch, u32 len) patch 8215 kernel/bpf/verifier.c new_prog = bpf_patch_insn_single(env->prog, off, patch, len); patch 8490 kernel/bpf/verifier.c struct bpf_insn *patch, zext_patch[2], rnd_hi32_patch[4]; patch 8539 kernel/bpf/verifier.c patch = rnd_hi32_patch; patch 8550 kernel/bpf/verifier.c patch = zext_patch; patch 8553 kernel/bpf/verifier.c new_prog = bpf_patch_insn_data(env, adj_idx, patch, patch_len); patch 8624 kernel/bpf/verifier.c struct bpf_insn patch[] = { patch 8639 kernel/bpf/verifier.c cnt = ARRAY_SIZE(patch); patch 8640 kernel/bpf/verifier.c new_prog = bpf_patch_insn_data(env, i + delta, patch, cnt); patch 9031 kernel/bpf/verifier.c struct bpf_insn *patch = &insn_buf[0]; patch 9046 kernel/bpf/verifier.c *patch++ = BPF_ALU64_IMM(BPF_MUL, off_reg, -1); patch 9047 kernel/bpf/verifier.c *patch++ = BPF_MOV32_IMM(BPF_REG_AX, aux->alu_limit - 1); patch 9048 kernel/bpf/verifier.c *patch++ = BPF_ALU64_REG(BPF_SUB, BPF_REG_AX, off_reg); patch 9049 kernel/bpf/verifier.c *patch++ = BPF_ALU64_REG(BPF_OR, BPF_REG_AX, off_reg); patch 9050 kernel/bpf/verifier.c *patch++ = BPF_ALU64_IMM(BPF_NEG, BPF_REG_AX, 0); patch 9051 kernel/bpf/verifier.c *patch++ = BPF_ALU64_IMM(BPF_ARSH, BPF_REG_AX, 63); patch 9053 kernel/bpf/verifier.c *patch++ = BPF_ALU64_REG(BPF_AND, BPF_REG_AX, patch 9057 kernel/bpf/verifier.c *patch++ = BPF_ALU64_REG(BPF_AND, off_reg, patch 9063 kernel/bpf/verifier.c *patch++ = *insn; patch 9065 kernel/bpf/verifier.c *patch++ = BPF_ALU64_IMM(BPF_MUL, off_reg, -1); patch 9066 kernel/bpf/verifier.c cnt = patch - insn_buf; patch 99 kernel/livepatch/core.c static struct klp_object *klp_find_object(struct klp_patch *patch, patch 104 kernel/livepatch/core.c klp_for_each_object(patch, obj) { patch 309 kernel/livepatch/core.c static int __klp_disable_patch(struct klp_patch *patch); patch 314 kernel/livepatch/core.c struct klp_patch *patch; patch 322 kernel/livepatch/core.c patch = container_of(kobj, struct klp_patch, kobj); patch 326 kernel/livepatch/core.c if (patch->enabled == enabled) { patch 339 kernel/livepatch/core.c if (patch == klp_transition_patch) patch 342 kernel/livepatch/core.c ret = __klp_disable_patch(patch); patch 357 kernel/livepatch/core.c struct klp_patch *patch; patch 359 kernel/livepatch/core.c patch = container_of(kobj, struct klp_patch, kobj); patch 360 kernel/livepatch/core.c return snprintf(buf, PAGE_SIZE-1, "%d\n", patch->enabled); patch 366 kernel/livepatch/core.c struct klp_patch *patch; patch 368 kernel/livepatch/core.c patch = container_of(kobj, struct klp_patch, kobj); patch 370 kernel/livepatch/core.c patch == klp_transition_patch); patch 376 kernel/livepatch/core.c struct klp_patch *patch; patch 389 kernel/livepatch/core.c patch = container_of(kobj, struct klp_patch, kobj); patch 390 kernel/livepatch/core.c if (patch != klp_transition_patch) { patch 421 kernel/livepatch/core.c static void klp_init_object_early(struct klp_patch *patch, patch 425 kernel/livepatch/core.c struct klp_patch *patch) patch 441 kernel/livepatch/core.c klp_init_object_early(patch, obj); patch 481 kernel/livepatch/core.c static int klp_add_object_nops(struct klp_patch *patch, patch 487 kernel/livepatch/core.c obj = klp_find_object(patch, old_obj); patch 490 kernel/livepatch/core.c obj = klp_alloc_object_dynamic(old_obj->name, patch); patch 513 kernel/livepatch/core.c static int klp_add_nops(struct klp_patch *patch) patch 522 kernel/livepatch/core.c err = klp_add_object_nops(patch, old_obj); patch 533 kernel/livepatch/core.c struct klp_patch *patch; patch 535 kernel/livepatch/core.c patch = container_of(kobj, struct klp_patch, kobj); patch 536 kernel/livepatch/core.c complete(&patch->finish); patch 603 kernel/livepatch/core.c static void __klp_free_objects(struct klp_patch *patch, bool nops_only) patch 607 kernel/livepatch/core.c klp_for_each_object_safe(patch, obj, tmp_obj) { patch 618 kernel/livepatch/core.c static void klp_free_objects(struct klp_patch *patch) patch 620 kernel/livepatch/core.c __klp_free_objects(patch, false); patch 623 kernel/livepatch/core.c static void klp_free_objects_dynamic(struct klp_patch *patch) patch 625 kernel/livepatch/core.c __klp_free_objects(patch, true); patch 635 kernel/livepatch/core.c void klp_free_patch_start(struct klp_patch *patch) patch 637 kernel/livepatch/core.c if (!list_empty(&patch->list)) patch 638 kernel/livepatch/core.c list_del(&patch->list); patch 640 kernel/livepatch/core.c klp_free_objects(patch); patch 651 kernel/livepatch/core.c static void klp_free_patch_finish(struct klp_patch *patch) patch 659 kernel/livepatch/core.c kobject_put(&patch->kobj); patch 660 kernel/livepatch/core.c wait_for_completion(&patch->finish); patch 663 kernel/livepatch/core.c if (!patch->forced) patch 664 kernel/livepatch/core.c module_put(patch->mod); patch 674 kernel/livepatch/core.c struct klp_patch *patch = patch 677 kernel/livepatch/core.c klp_free_patch_finish(patch); patch 710 kernel/livepatch/core.c void __weak arch_klp_init_object_loaded(struct klp_patch *patch, patch 716 kernel/livepatch/core.c static int klp_init_object_loaded(struct klp_patch *patch, patch 724 kernel/livepatch/core.c module_disable_ro(patch->mod); patch 725 kernel/livepatch/core.c ret = klp_write_object_relocations(patch->mod, obj); patch 727 kernel/livepatch/core.c module_enable_ro(patch->mod, true); patch 732 kernel/livepatch/core.c arch_klp_init_object_loaded(patch, obj); patch 733 kernel/livepatch/core.c module_enable_ro(patch->mod, true); patch 767 kernel/livepatch/core.c static int klp_init_object(struct klp_patch *patch, struct klp_object *obj) patch 782 kernel/livepatch/core.c ret = kobject_add(&obj->kobj, &patch->kobj, "%s", name); patch 793 kernel/livepatch/core.c ret = klp_init_object_loaded(patch, obj); patch 805 kernel/livepatch/core.c static void klp_init_object_early(struct klp_patch *patch, patch 810 kernel/livepatch/core.c list_add_tail(&obj->node, &patch->obj_list); patch 813 kernel/livepatch/core.c static int klp_init_patch_early(struct klp_patch *patch) patch 818 kernel/livepatch/core.c if (!patch->objs) patch 821 kernel/livepatch/core.c INIT_LIST_HEAD(&patch->list); patch 822 kernel/livepatch/core.c INIT_LIST_HEAD(&patch->obj_list); patch 823 kernel/livepatch/core.c kobject_init(&patch->kobj, &klp_ktype_patch); patch 824 kernel/livepatch/core.c patch->enabled = false; patch 825 kernel/livepatch/core.c patch->forced = false; patch 826 kernel/livepatch/core.c INIT_WORK(&patch->free_work, klp_free_patch_work_fn); patch 827 kernel/livepatch/core.c init_completion(&patch->finish); patch 829 kernel/livepatch/core.c klp_for_each_object_static(patch, obj) { patch 833 kernel/livepatch/core.c klp_init_object_early(patch, obj); patch 840 kernel/livepatch/core.c if (!try_module_get(patch->mod)) patch 846 kernel/livepatch/core.c static int klp_init_patch(struct klp_patch *patch) patch 851 kernel/livepatch/core.c ret = kobject_add(&patch->kobj, klp_root_kobj, "%s", patch->mod->name); patch 855 kernel/livepatch/core.c if (patch->replace) { patch 856 kernel/livepatch/core.c ret = klp_add_nops(patch); patch 861 kernel/livepatch/core.c klp_for_each_object(patch, obj) { patch 862 kernel/livepatch/core.c ret = klp_init_object(patch, obj); patch 867 kernel/livepatch/core.c list_add_tail(&patch->list, &klp_patches); patch 872 kernel/livepatch/core.c static int __klp_disable_patch(struct klp_patch *patch) patch 876 kernel/livepatch/core.c if (WARN_ON(!patch->enabled)) patch 882 kernel/livepatch/core.c klp_init_transition(patch, KLP_UNPATCHED); patch 884 kernel/livepatch/core.c klp_for_each_object(patch, obj) patch 898 kernel/livepatch/core.c patch->enabled = false; patch 904 kernel/livepatch/core.c static int __klp_enable_patch(struct klp_patch *patch) patch 912 kernel/livepatch/core.c if (WARN_ON(patch->enabled)) patch 915 kernel/livepatch/core.c pr_notice("enabling patch '%s'\n", patch->mod->name); patch 917 kernel/livepatch/core.c klp_init_transition(patch, KLP_PATCHED); patch 928 kernel/livepatch/core.c klp_for_each_object(patch, obj) { patch 948 kernel/livepatch/core.c patch->enabled = true; patch 953 kernel/livepatch/core.c pr_warn("failed to enable patch '%s'\n", patch->mod->name); patch 972 kernel/livepatch/core.c int klp_enable_patch(struct klp_patch *patch) patch 976 kernel/livepatch/core.c if (!patch || !patch->mod) patch 979 kernel/livepatch/core.c if (!is_livepatch_module(patch->mod)) { patch 981 kernel/livepatch/core.c patch->mod->name); patch 995 kernel/livepatch/core.c ret = klp_init_patch_early(patch); patch 1001 kernel/livepatch/core.c ret = klp_init_patch(patch); patch 1005 kernel/livepatch/core.c ret = __klp_enable_patch(patch); patch 1014 kernel/livepatch/core.c klp_free_patch_start(patch); patch 1018 kernel/livepatch/core.c klp_free_patch_finish(patch); patch 1083 kernel/livepatch/core.c struct klp_patch *patch; patch 1086 kernel/livepatch/core.c klp_for_each_patch(patch) { patch 1087 kernel/livepatch/core.c if (patch == limit) patch 1090 kernel/livepatch/core.c klp_for_each_object(patch, obj) { patch 1094 kernel/livepatch/core.c if (patch != klp_transition_patch) patch 1098 kernel/livepatch/core.c patch->mod->name, obj->mod->name); patch 1112 kernel/livepatch/core.c struct klp_patch *patch; patch 1126 kernel/livepatch/core.c klp_for_each_patch(patch) { patch 1127 kernel/livepatch/core.c klp_for_each_object(patch, obj) { patch 1133 kernel/livepatch/core.c ret = klp_init_object_loaded(patch, obj); patch 1136 kernel/livepatch/core.c patch->mod->name, obj->mod->name, ret); patch 1141 kernel/livepatch/core.c patch->mod->name, obj->mod->name); patch 1153 kernel/livepatch/core.c patch->mod->name, obj->mod->name, ret); patch 1159 kernel/livepatch/core.c if (patch != klp_transition_patch) patch 1176 kernel/livepatch/core.c patch->mod->name, obj->mod->name, obj->mod->name); patch 1179 kernel/livepatch/core.c klp_cleanup_module_patches_limited(mod, patch); patch 10 kernel/livepatch/core.h #define klp_for_each_patch_safe(patch, tmp_patch) \ patch 11 kernel/livepatch/core.h list_for_each_entry_safe(patch, tmp_patch, &klp_patches, list) patch 13 kernel/livepatch/core.h #define klp_for_each_patch(patch) \ patch 14 kernel/livepatch/core.h list_for_each_entry(patch, &klp_patches, list) patch 16 kernel/livepatch/core.h void klp_free_patch_start(struct klp_patch *patch); patch 279 kernel/livepatch/patch.c static void __klp_unpatch_objects(struct klp_patch *patch, bool nops_only) patch 283 kernel/livepatch/patch.c klp_for_each_object(patch, obj) patch 288 kernel/livepatch/patch.c void klp_unpatch_objects(struct klp_patch *patch) patch 290 kernel/livepatch/patch.c __klp_unpatch_objects(patch, false); patch 293 kernel/livepatch/patch.c void klp_unpatch_objects_dynamic(struct klp_patch *patch) patch 295 kernel/livepatch/patch.c __klp_unpatch_objects(patch, true); patch 32 kernel/livepatch/patch.h void klp_unpatch_objects(struct klp_patch *patch); patch 33 kernel/livepatch/patch.h void klp_unpatch_objects_dynamic(struct klp_patch *patch); patch 392 kernel/livepatch/transition.c struct klp_patch *patch; patch 445 kernel/livepatch/transition.c patch = klp_transition_patch; patch 453 kernel/livepatch/transition.c if (!patch->enabled) { patch 454 kernel/livepatch/transition.c klp_free_patch_start(patch); patch 455 kernel/livepatch/transition.c schedule_work(&patch->free_work); patch 504 kernel/livepatch/transition.c void klp_init_transition(struct klp_patch *patch, int state) patch 514 kernel/livepatch/transition.c klp_transition_patch = patch; patch 522 kernel/livepatch/transition.c pr_debug("'%s': initializing %s transition\n", patch->mod->name, patch 567 kernel/livepatch/transition.c klp_for_each_object(patch, obj) patch 630 kernel/livepatch/transition.c struct klp_patch *patch; patch 644 kernel/livepatch/transition.c klp_for_each_patch(patch) patch 645 kernel/livepatch/transition.c patch->forced = true; patch 9 kernel/livepatch/transition.h void klp_init_transition(struct klp_patch *patch, int state); patch 36 lib/livepatch/test_klp_atomic_replace.c static struct klp_patch patch = { patch 44 lib/livepatch/test_klp_atomic_replace.c patch.replace = replace; patch 45 lib/livepatch/test_klp_atomic_replace.c return klp_enable_patch(&patch); patch 102 lib/livepatch/test_klp_callbacks_demo.c static struct klp_patch patch = { patch 109 lib/livepatch/test_klp_callbacks_demo.c return klp_enable_patch(&patch); patch 72 lib/livepatch/test_klp_callbacks_demo2.c static struct klp_patch patch = { patch 80 lib/livepatch/test_klp_callbacks_demo2.c patch.replace = replace; patch 81 lib/livepatch/test_klp_callbacks_demo2.c return klp_enable_patch(&patch); patch 32 lib/livepatch/test_klp_livepatch.c static struct klp_patch patch = { patch 39 lib/livepatch/test_klp_livepatch.c return klp_enable_patch(&patch); patch 179 samples/livepatch/livepatch-callbacks-demo.c static struct klp_patch patch = { patch 186 samples/livepatch/livepatch-callbacks-demo.c return klp_enable_patch(&patch); patch 53 samples/livepatch/livepatch-sample.c static struct klp_patch patch = { patch 60 samples/livepatch/livepatch-sample.c return klp_enable_patch(&patch); patch 141 samples/livepatch/livepatch-shadow-fix1.c static struct klp_patch patch = { patch 148 samples/livepatch/livepatch-shadow-fix1.c return klp_enable_patch(&patch); patch 113 samples/livepatch/livepatch-shadow-fix2.c static struct klp_patch patch = { patch 120 samples/livepatch/livepatch-shadow-fix2.c return klp_enable_patch(&patch); patch 300 sound/drivers/opl3/opl3_midi.c struct fm_patch *patch; patch 341 sound/drivers/opl3/opl3_midi.c patch = snd_opl3_find_patch(opl3, prg, bank, 0); patch 342 sound/drivers/opl3/opl3_midi.c if (!patch) { patch 347 sound/drivers/opl3/opl3_midi.c fm = &patch->inst; patch 348 sound/drivers/opl3/opl3_midi.c switch (patch->type) { patch 364 sound/drivers/opl3/opl3_midi.c instr_4op ? 3 : 2, patch->name); patch 245 sound/drivers/opl3/opl3_synth.c struct fm_patch *patch; patch 248 sound/drivers/opl3/opl3_synth.c patch = snd_opl3_find_patch(opl3, prog, bank, 1); patch 249 sound/drivers/opl3/opl3_synth.c if (!patch) patch 252 sound/drivers/opl3/opl3_synth.c patch->type = type; patch 255 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].am_vib = data[AM_VIB + i]; patch 256 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].ksl_level = data[KSL_LEVEL + i]; patch 257 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].attack_decay = data[ATTACK_DECAY + i]; patch 258 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].sustain_release = data[SUSTAIN_RELEASE + i]; patch 259 sound/drivers/opl3/opl3_synth.c patch->inst.op[i].wave_select = data[WAVE_SELECT + i]; patch 261 sound/drivers/opl3/opl3_synth.c patch->inst.feedback_connection[0] = data[CONNECTION]; patch 265 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].am_vib = patch 267 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].ksl_level = patch 269 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].attack_decay = patch 271 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].sustain_release = patch 273 sound/drivers/opl3/opl3_synth.c patch->inst.op[i+2].wave_select = patch 276 sound/drivers/opl3/opl3_synth.c patch->inst.feedback_connection[1] = patch 281 sound/drivers/opl3/opl3_synth.c patch->inst.echo_delay = ext[0]; patch 282 sound/drivers/opl3/opl3_synth.c patch->inst.echo_atten = ext[1]; patch 283 sound/drivers/opl3/opl3_synth.c patch->inst.chorus_spread = ext[2]; patch 284 sound/drivers/opl3/opl3_synth.c patch->inst.trnsps = ext[3]; patch 285 sound/drivers/opl3/opl3_synth.c patch->inst.fix_dur = ext[4]; patch 286 sound/drivers/opl3/opl3_synth.c patch->inst.modes = ext[5]; patch 287 sound/drivers/opl3/opl3_synth.c patch->inst.fix_key = ext[6]; patch 291 sound/drivers/opl3/opl3_synth.c strlcpy(patch->name, name, sizeof(patch->name)); patch 307 sound/drivers/opl3/opl3_synth.c struct fm_patch *patch; patch 309 sound/drivers/opl3/opl3_synth.c for (patch = opl3->patch_table[key]; patch; patch = patch->next) { patch 310 sound/drivers/opl3/opl3_synth.c if (patch->prog == prog && patch->bank == bank) patch 311 sound/drivers/opl3/opl3_synth.c return patch; patch 316 sound/drivers/opl3/opl3_synth.c patch = kzalloc(sizeof(*patch), GFP_KERNEL); patch 317 sound/drivers/opl3/opl3_synth.c if (!patch) patch 319 sound/drivers/opl3/opl3_synth.c patch->prog = prog; patch 320 sound/drivers/opl3/opl3_synth.c patch->bank = bank; patch 321 sound/drivers/opl3/opl3_synth.c patch->next = opl3->patch_table[key]; patch 322 sound/drivers/opl3/opl3_synth.c opl3->patch_table[key] = patch; patch 323 sound/drivers/opl3/opl3_synth.c return patch; patch 334 sound/drivers/opl3/opl3_synth.c struct fm_patch *patch, *next; patch 335 sound/drivers/opl3/opl3_synth.c for (patch = opl3->patch_table[i]; patch; patch = next) { patch 336 sound/drivers/opl3/opl3_synth.c next = patch->next; patch 337 sound/drivers/opl3/opl3_synth.c kfree(patch); patch 49 sound/pci/ac97/ac97_codec.c int (*patch)(struct snd_ac97 *ac97); patch 1796 sound/pci/ac97/ac97_codec.c if (ac97 && pid->patch) { patch 1799 sound/pci/ac97/ac97_codec.c pid->patch(ac97); patch 1808 sound/pci/ac97/ac97_codec.c if (ac97 && pid->patch) { patch 1811 sound/pci/ac97/ac97_codec.c pid->patch(ac97); patch 86 sound/pci/hda/hda_bind.c hda_codec_patch_t patch; patch 110 sound/pci/hda/hda_bind.c patch = (hda_codec_patch_t)codec->preset->driver_data; patch 111 sound/pci/hda/hda_bind.c if (patch) { patch 112 sound/pci/hda/hda_bind.c err = patch(codec); patch 121 sound/pci/hda/hda_intel.c static char *patch[SNDRV_CARDS]; patch 154 sound/pci/hda/hda_intel.c module_param_array(patch, charp, NULL, 0444); patch 155 sound/pci/hda/hda_intel.c MODULE_PARM_DESC(patch, "Patch file for Intel HD audio interface."); patch 2121 sound/pci/hda/hda_intel.c if (patch[dev] && *patch[dev]) { patch 2123 sound/pci/hda/hda_intel.c patch[dev]); patch 2124 sound/pci/hda/hda_intel.c err = request_firmware_nowait(THIS_MODULE, true, patch[dev], patch 314 sound/soc/codecs/hdac_hda.c hda_codec_patch_t patch; patch 358 sound/soc/codecs/hdac_hda.c patch = (hda_codec_patch_t)hcodec->preset->driver_data; patch 359 sound/soc/codecs/hdac_hda.c if (patch) { patch 360 sound/soc/codecs/hdac_hda.c ret = patch(hcodec); patch 4112 sound/soc/codecs/madera.c const struct reg_sequence *patch; patch 4120 sound/soc/codecs/madera.c .patch = madera_fll_ao_32K_49M_patch, patch 4127 sound/soc/codecs/madera.c .patch = madera_fll_ao_32K_45M_patch, patch 4133 sound/soc/codecs/madera.c const struct reg_sequence *patch, patch 4156 sound/soc/codecs/madera.c val = patch[i].def; patch 4159 sound/soc/codecs/madera.c if (patch[i].reg == MADERA_FLLAO_CONTROL_6) { patch 4165 sound/soc/codecs/madera.c regmap_write(madera->regmap, patch[i].reg, val); patch 4221 sound/soc/codecs/madera.c const struct reg_sequence *patch = NULL; patch 4245 sound/soc/codecs/madera.c patch = madera_fllao_settings[i].patch; patch 4254 sound/soc/codecs/madera.c ret = madera_enable_fll_ao(fll, patch, patch_size); patch 586 sound/soc/codecs/wm5102.c const struct reg_default *patch = NULL; patch 591 sound/soc/codecs/wm5102.c patch = wm5102_sysclk_reva_patch; patch 595 sound/soc/codecs/wm5102.c patch = wm5102_sysclk_revb_patch; patch 602 sound/soc/codecs/wm5102.c if (patch) patch 604 sound/soc/codecs/wm5102.c regmap_write_async(regmap, patch[i].reg, patch 605 sound/soc/codecs/wm5102.c patch[i].def); patch 164 sound/soc/codecs/wm5110.c const struct reg_default *patch = NULL; patch 169 sound/soc/codecs/wm5110.c patch = wm5110_sysclk_revd_patch; patch 173 sound/soc/codecs/wm5110.c patch = wm5110_sysclk_reve_patch; patch 180 sound/soc/codecs/wm5110.c if (patch) patch 182 sound/soc/codecs/wm5110.c regmap_write_async(regmap, patch[i].reg, patch 183 sound/soc/codecs/wm5110.c patch[i].def); patch 87 sound/soc/codecs/wm8997.c const struct reg_default *patch = NULL; patch 92 sound/soc/codecs/wm8997.c patch = wm8997_sysclk_reva_patch; patch 101 sound/soc/codecs/wm8997.c if (patch) patch 103 sound/soc/codecs/wm8997.c regmap_write_async(regmap, patch[i].reg, patch 104 sound/soc/codecs/wm8997.c patch[i].def); patch 23 sound/synth/emux/emux_hwdep.c struct soundfont_patch_info patch; patch 25 sound/synth/emux/emux_hwdep.c if (copy_from_user(&patch, arg, sizeof(patch))) patch 28 sound/synth/emux/emux_hwdep.c if (patch.key == GUS_PATCH) patch 30 sound/synth/emux/emux_hwdep.c patch.len + sizeof(patch), patch 33 sound/synth/emux/emux_hwdep.c if (patch.type >= SNDRV_SFNT_LOAD_INFO && patch 34 sound/synth/emux/emux_hwdep.c patch.type <= SNDRV_SFNT_PROBE_DATA) { patch 35 sound/synth/emux/emux_hwdep.c err = snd_soundfont_load(emu->sflist, arg, patch.len + sizeof(patch), TMP_CLIENT_ID); patch 40 sound/synth/emux/emux_hwdep.c return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch)); patch 211 sound/synth/emux/emux_oss.c struct soundfont_patch_info patch; patch 212 sound/synth/emux/emux_oss.c if (count < (int)sizeof(patch)) patch 214 sound/synth/emux/emux_oss.c if (copy_from_user(&patch, buf, sizeof(patch))) patch 216 sound/synth/emux/emux_oss.c if (patch.type >= SNDRV_SFNT_LOAD_INFO && patch 217 sound/synth/emux/emux_oss.c patch.type <= SNDRV_SFNT_PROBE_DATA) patch 221 sound/synth/emux/emux_oss.c rc = emu->ops.load_fx(emu, patch.type, patch.optarg, buf, count); patch 119 sound/synth/emux/soundfont.c struct soundfont_patch_info patch; patch 123 sound/synth/emux/soundfont.c if (count < (long)sizeof(patch)) { patch 127 sound/synth/emux/soundfont.c if (copy_from_user(&patch, data, sizeof(patch))) patch 130 sound/synth/emux/soundfont.c count -= sizeof(patch); patch 131 sound/synth/emux/soundfont.c data += sizeof(patch); patch 133 sound/synth/emux/soundfont.c if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) { patch 134 sound/synth/emux/soundfont.c snd_printk(KERN_ERR "The wrong kind of patch %x\n", patch.key); patch 137 sound/synth/emux/soundfont.c if (count < patch.len) { patch 139 sound/synth/emux/soundfont.c count, patch.len); patch 142 sound/synth/emux/soundfont.c if (patch.len < 0) { patch 143 sound/synth/emux/soundfont.c snd_printk(KERN_ERR "poor length %d\n", patch.len); patch 147 sound/synth/emux/soundfont.c if (patch.type == SNDRV_SFNT_OPEN_PATCH) { patch 165 sound/synth/emux/soundfont.c switch (patch.type) { patch 182 sound/synth/emux/soundfont.c rc = probe_data(sflist, patch.optarg); patch 192 sound/synth/emux/soundfont.c bank = ((unsigned short)patch.optarg >> 8) & 0xff; patch 193 sound/synth/emux/soundfont.c instr = (unsigned short)patch.optarg & 0xff; patch 941 sound/synth/emux/soundfont.c struct patch_info patch; patch 948 sound/synth/emux/soundfont.c if (count < (long)sizeof(patch)) { patch 952 sound/synth/emux/soundfont.c if (copy_from_user(&patch, data, sizeof(patch))) patch 955 sound/synth/emux/soundfont.c count -= sizeof(patch); patch 956 sound/synth/emux/soundfont.c data += sizeof(patch); patch 966 sound/synth/emux/soundfont.c smp->v.end = patch.len; patch 967 sound/synth/emux/soundfont.c smp->v.loopstart = patch.loop_start; patch 968 sound/synth/emux/soundfont.c smp->v.loopend = patch.loop_end; patch 969 sound/synth/emux/soundfont.c smp->v.size = patch.len; patch 973 sound/synth/emux/soundfont.c if (!(patch.mode & WAVE_16_BITS)) patch 975 sound/synth/emux/soundfont.c if (patch.mode & WAVE_UNSIGNED) patch 978 sound/synth/emux/soundfont.c if (!(patch.mode & (WAVE_LOOPING|WAVE_BIDIR_LOOP|WAVE_LOOP_BACK))) patch 980 sound/synth/emux/soundfont.c if (patch.mode & WAVE_BIDIR_LOOP) patch 982 sound/synth/emux/soundfont.c if (patch.mode & WAVE_LOOP_BACK) patch 985 sound/synth/emux/soundfont.c if (patch.mode & WAVE_16_BITS) { patch 1023 sound/synth/emux/soundfont.c zone->v.rate_offset = calc_rate_offset(patch.base_freq); patch 1024 sound/synth/emux/soundfont.c note = freq_to_note(patch.base_note); patch 1027 sound/synth/emux/soundfont.c zone->v.low = (freq_to_note(patch.low_note) + 99) / 100; patch 1028 sound/synth/emux/soundfont.c zone->v.high = freq_to_note(patch.high_note) / 100; patch 1030 sound/synth/emux/soundfont.c zone->v.pan = (patch.panning + 128) / 2; patch 1034 sound/synth/emux/soundfont.c (int)patch.base_freq, zone->v.rate_offset, patch 1040 sound/synth/emux/soundfont.c if (patch.mode & WAVE_ENVELOPES) { patch 1043 sound/synth/emux/soundfont.c (patch.env_rate[0], 0, patch.env_offset[0]); patch 1045 sound/synth/emux/soundfont.c (patch.env_rate[1], patch.env_offset[0], patch 1046 sound/synth/emux/soundfont.c patch.env_offset[1]); patch 1048 sound/synth/emux/soundfont.c (patch.env_rate[2], patch.env_offset[1], patch 1049 sound/synth/emux/soundfont.c patch.env_offset[2]); patch 1051 sound/synth/emux/soundfont.c (patch.env_rate[3], patch.env_offset[1], patch 1052 sound/synth/emux/soundfont.c patch.env_offset[4]); patch 1054 sound/synth/emux/soundfont.c (patch.env_rate[4], patch.env_offset[3], patch 1055 sound/synth/emux/soundfont.c patch.env_offset[4]); patch 1057 sound/synth/emux/soundfont.c (patch.env_rate[5], patch.env_offset[4], patch 1058 sound/synth/emux/soundfont.c patch.env_offset[5]); patch 1062 sound/synth/emux/soundfont.c zone->v.parm.voldcysus = (calc_gus_sustain(patch.env_offset[2]) << 8) | patch 1065 sound/synth/emux/soundfont.c zone->v.attenuation = calc_gus_attenuation(patch.env_offset[0]); patch 1077 sound/synth/emux/soundfont.c if (patch.mode & WAVE_FAST_RELEASE) { patch 1082 sound/synth/emux/soundfont.c if (patch.mode & WAVE_TREMOLO) { patch 1083 sound/synth/emux/soundfont.c int rate = (patch.tremolo_rate * 1000 / 38) / 42; patch 1084 sound/synth/emux/soundfont.c zone->v.parm.tremfrq = ((patch.tremolo_depth / 2) << 8) | rate; patch 1087 sound/synth/emux/soundfont.c if (patch.mode & WAVE_VIBRATO) { patch 1088 sound/synth/emux/soundfont.c int rate = (patch.vibrato_rate * 1000 / 38) / 42; patch 1089 sound/synth/emux/soundfont.c zone->v.parm.fm2frq2 = ((patch.vibrato_depth / 6) << 8) | rate; patch 1102 sound/synth/emux/soundfont.c zone->instr = patch.instr_no;