Symbol: patch
arch/arm/kernel/patch.c
113
struct patch *patch = data;
arch/arm/kernel/patch.c
115
__patch_text(patch->addr, patch->insn);
arch/arm/kernel/patch.c
122
struct patch patch = {
arch/arm/kernel/patch.c
127
stop_machine_cpuslocked(patch_text_stop_machine, &patch, NULL);
arch/arm/probes/kprobes/core.c
163
struct patch *p = data;
arch/arm/probes/kprobes/core.c
170
struct patch p = {
arch/arm64/kernel/patching.c
227
struct aarch64_insn_patch patch = {
arch/arm64/kernel/patching.c
237
return stop_machine_cpuslocked(aarch64_insn_patch_text_cb, &patch,
arch/mips/include/asm/cpu.h
274
#define PRID_REV_ENCODE_332(ver, rev, patch) \
arch/mips/include/asm/cpu.h
275
((ver) << 5 | (rev) << 2 | (patch))
arch/parisc/kernel/patch.c
103
struct patch *patch = data;
arch/parisc/kernel/patch.c
105
__patch_text_multiple(patch->addr, patch->insn, patch->len);
arch/parisc/kernel/patch.c
111
struct patch patch = {
arch/parisc/kernel/patch.c
117
stop_machine_cpuslocked(patch_text_stop_machine, &patch, NULL);
arch/parisc/kernel/patch.c
123
struct patch patch = {
arch/parisc/kernel/patch.c
129
stop_machine_cpuslocked(patch_text_stop_machine, &patch, NULL);
arch/powerpc/platforms/8xx/micropatch.c
324
static void __init cpm_write_patch(cpm8xx_t *cp, int offset, uint *patch, int len)
arch/powerpc/platforms/8xx/micropatch.c
328
memcpy_toio(cp->cp_dpmem + offset, patch, len);
arch/riscv/kernel/patch.c
254
struct patch_insn *patch = data;
arch/riscv/kernel/patch.c
257
if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) {
arch/riscv/kernel/patch.c
258
ret = patch_insn_write(patch->addr, patch->insns, patch->len);
arch/riscv/kernel/patch.c
266
atomic_inc_return_release(&patch->cpu_count);
arch/riscv/kernel/patch.c
268
while (atomic_read(&patch->cpu_count) <= num_online_cpus())
arch/riscv/kernel/patch.c
281
struct patch_insn patch = {
arch/riscv/kernel/patch.c
298
ret = stop_machine_cpuslocked(patch_text_cb, &patch, cpu_online_mask);
arch/s390/net/bpf_jit_comp.c
2517
int patch;
arch/s390/net/bpf_jit_comp.c
2542
patch = jit->prg;
arch/s390/net/bpf_jit_comp.c
2566
*(u32 *)&jit->prg_buf[patch + 2] = (jit->prg - patch) >> 1;
arch/x86/kernel/cpu/microcode/amd.c
1081
struct ucode_patch *patch;
arch/x86/kernel/cpu/microcode/amd.c
1089
patch = kzalloc_obj(*patch);
arch/x86/kernel/cpu/microcode/amd.c
1090
if (!patch) {
arch/x86/kernel/cpu/microcode/amd.c
1095
patch->data = kmemdup(fw + SECTION_HDR_SIZE, *patch_size, GFP_KERNEL);
arch/x86/kernel/cpu/microcode/amd.c
1096
if (!patch->data) {
arch/x86/kernel/cpu/microcode/amd.c
1098
kfree(patch);
arch/x86/kernel/cpu/microcode/amd.c
1101
patch->size = *patch_size;
arch/x86/kernel/cpu/microcode/amd.c
1106
INIT_LIST_HEAD(&patch->plist);
arch/x86/kernel/cpu/microcode/amd.c
1107
patch->patch_id = mc_hdr->patch_id;
arch/x86/kernel/cpu/microcode/amd.c
1108
patch->equiv_cpu = proc_id;
arch/x86/kernel/cpu/microcode/amd.c
1111
__func__, patch->patch_id, proc_id);
arch/x86/kernel/cpu/microcode/amd.c
1114
update_cache(patch);
arch/x86/kernel/cpu/microcode/intel.c
300
static void save_microcode_patch(struct microcode_intel *patch)
arch/x86/kernel/cpu/microcode/intel.c
302
unsigned int size = get_totalsize(&patch->hdr);
arch/x86/kernel/cpu/microcode/intel.c
305
mc = kvmemdup(patch, size, GFP_KERNEL);
arch/x86/kernel/cpu/microcode/intel.c
318
struct microcode_intel *patch = NULL;
arch/x86/kernel/cpu/microcode/intel.c
347
patch = data;
arch/x86/kernel/cpu/microcode/intel.c
351
return size ? NULL : patch;
arch/xtensa/kernel/jump_label.c
41
struct patch *patch = data;
arch/xtensa/kernel/jump_label.c
43
if (atomic_inc_return(&patch->cpu_count) == num_online_cpus()) {
arch/xtensa/kernel/jump_label.c
44
local_patch_text(patch->addr, patch->data, patch->sz);
arch/xtensa/kernel/jump_label.c
45
atomic_inc(&patch->cpu_count);
arch/xtensa/kernel/jump_label.c
47
while (atomic_read(&patch->cpu_count) <= num_online_cpus())
arch/xtensa/kernel/jump_label.c
49
__invalidate_icache_range(patch->addr, patch->sz);
arch/xtensa/kernel/jump_label.c
57
struct patch patch = {
arch/xtensa/kernel/jump_label.c
64
&patch, cpu_online_mask);
drivers/accel/amdxdna/aie2_pci.c
743
version.patch = xdna->fw_ver.sub;
drivers/base/regmap/internal.h
164
struct reg_sequence *patch;
drivers/base/regmap/regcache.c
423
ret = _regmap_write(map, map->patch[i].reg, map->patch[i].def);
drivers/base/regmap/regcache.c
426
map->patch[i].reg, map->patch[i].def, ret);
drivers/base/regmap/regmap-kunit.c
1253
struct reg_sequence patch[2];
drivers/base/regmap/regmap-kunit.c
1271
patch[0].reg = param->from_reg + 2;
drivers/base/regmap/regmap-kunit.c
1272
patch[0].def = rval[2] + 1;
drivers/base/regmap/regmap-kunit.c
1273
patch[0].delay_us = 0;
drivers/base/regmap/regmap-kunit.c
1274
patch[1].reg = param->from_reg + 5;
drivers/base/regmap/regmap-kunit.c
1275
patch[1].def = rval[5] + 1;
drivers/base/regmap/regmap-kunit.c
1276
patch[1].delay_us = 0;
drivers/base/regmap/regmap-kunit.c
1277
KUNIT_EXPECT_EQ(test, 0, regmap_register_patch(map, patch,
drivers/base/regmap/regmap-kunit.c
1278
ARRAY_SIZE(patch)));
drivers/base/regmap/regmap-kunit.c
757
struct reg_sequence patch[2];
drivers/base/regmap/regmap-kunit.c
775
patch[0].reg = 2;
drivers/base/regmap/regmap-kunit.c
776
patch[0].def = rval[2] + 1;
drivers/base/regmap/regmap-kunit.c
777
patch[0].delay_us = 0;
drivers/base/regmap/regmap-kunit.c
778
patch[1].reg = 5;
drivers/base/regmap/regmap-kunit.c
779
patch[1].def = rval[5] + 1;
drivers/base/regmap/regmap-kunit.c
780
patch[1].delay_us = 0;
drivers/base/regmap/regmap-kunit.c
781
KUNIT_EXPECT_EQ(test, 0, regmap_register_patch(map, patch,
drivers/base/regmap/regmap-kunit.c
782
ARRAY_SIZE(patch)));
drivers/base/regmap/regmap.c
1485
kfree(map->patch);
drivers/base/regmap/regmap.c
3444
p = krealloc(map->patch,
drivers/base/regmap/regmap.c
3449
map->patch = p;
drivers/bluetooth/hci_ag6xx.c
200
goto patch;
drivers/bluetooth/hci_ag6xx.c
216
patch:
drivers/clk/ti/clock.h
101
struct ti_clk *patch;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
786
unsigned int patch;
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
819
patch = amdgpu_ring_init_cond_exec(ring,
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
886
amdgpu_ring_patch_cond_exec(ring, patch);
drivers/gpu/drm/i915/gt/uc/intel_gsc_fw.c
232
gsc->release.patch, gsc->release.build);
drivers/gpu/drm/i915/gt/uc/intel_gsc_fw.c
242
if (gsc->release.patch < min_ver.patch) {
drivers/gpu/drm/i915/gt/uc/intel_gsc_fw.c
244
} else if (gsc->release.patch == min_ver.patch) {
drivers/gpu/drm/i915/gt/uc/intel_gsc_fw.c
253
gsc->release.patch, gsc->release.build,
drivers/gpu/drm/i915/gt/uc/intel_gsc_fw.c
255
min_ver.patch, min_ver.build);
drivers/gpu/drm/i915/gt/uc/intel_gsc_fw.c
517
gsc->release.patch, gsc->release.build,
drivers/gpu/drm/i915/gt/uc/intel_gsc_uc.c
341
gsc->release.patch, gsc->release.build);
drivers/gpu/drm/i915/gt/uc/intel_guc.h
326
#define MAKE_GUC_VER_STRUCT(ver) MAKE_GUC_VER((ver).major, (ver).minor, (ver).patch)
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
5503
guc->submission_version.patch);
drivers/gpu/drm/i915/gt/uc/intel_uc.c
435
fw->file_selected.ver.patch);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
1366
(uc_fw->file_selected.ver.patch < uc_fw->file_wanted.ver.patch))
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
1375
uc_fw->file_wanted.ver.patch,
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
1378
uc_fw->file_selected.ver.patch);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
1383
uc_fw->file_selected.ver.patch);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
207
u8 patch;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
214
.patch = patch_, \
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
332
uc_fw->file_wanted.ver.patch = blob->patch;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
377
fw_blobs[j].blob.patch, fw_blobs[j].blob.path,
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
380
fw_blobs[i].blob.patch, fw_blobs[i].blob.path);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
427
if (fw_blobs[i].blob.patch < fw_blobs[i - 1].blob.patch)
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
437
fw_blobs[i - 1].blob.patch,
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
442
fw_blobs[i].blob.patch);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
497
ver->patch = manifest->fw_version.hotfix;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
550
ver->patch = FIELD_GET(CSS_SW_VERSION_UC_PATCH, css_value);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
579
guc->submission_version.patch = 0;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
584
guc->submission_version.patch = 0;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
590
guc->submission_version.patch = 0;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
595
guc->submission_version.patch = 0;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
700
return ver->major < 0xFF && ver->minor < 0xFF && ver->patch < 0xFF;
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
719
uc_fw->file_selected.ver.patch);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
728
guc->submission_version.patch);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
794
(huc_ver->major == 8 && huc_ver->minor == 5 && huc_ver->patch >= 1);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
801
huc_ver->major, huc_ver->minor, huc_ver->patch,
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
802
guc_ver->major, guc_ver->minor, guc_ver->patch);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
843
(selected->ver.patch < wanted->ver.patch))
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
923
uc_fw->file_wanted.ver.patch,
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c
927
uc_fw->file_selected.ver.patch);
drivers/gpu/drm/i915/gt/uc/intel_uc_fw.h
72
u32 patch;
drivers/gpu/drm/i915/i915_query.c
574
if (ver.branch || ver.major || ver.minor || ver.patch)
drivers/gpu/drm/i915/i915_query.c
580
ver.patch = guc->submission_version.patch;
drivers/gpu/drm/msm/adreno/adreno_device.c
150
unsigned int r, patch;
drivers/gpu/drm/msm/adreno/adreno_device.c
152
if (sscanf(compat, "qcom,adreno-%u.%u", &r, &patch) == 2 ||
drivers/gpu/drm/msm/adreno/adreno_device.c
153
sscanf(compat, "amd,imageon-%u.%u", &r, &patch) == 2) {
drivers/gpu/drm/msm/adreno/adreno_device.c
165
patch;
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios.h
22
u8 patch;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
200
bios->version.patch = nvbios_rd08(bios, bit_i.offset + 4);
drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
211
bios->version.minor, bios->version.micro, bios->version.patch);
drivers/gpu/drm/panthor/panthor_fw.c
208
#define CSF_IFACE_VERSION(major, minor, patch) \
drivers/gpu/drm/panthor/panthor_fw.c
209
(((major) << 24) | ((minor) << 16) | (patch))
drivers/gpu/drm/radeon/ci_dpm.c
2456
bool patch;
drivers/gpu/drm/radeon/ci_dpm.c
2460
patch = (tmp & 0x0000f00) == 0x300;
drivers/gpu/drm/radeon/ci_dpm.c
2462
if (patch &&
drivers/gpu/drm/radeon/ci_dpm.c
4489
bool patch;
drivers/gpu/drm/radeon/ci_dpm.c
4492
patch = (tmp & 0x0000f00) == 0x300;
drivers/gpu/drm/radeon/ci_dpm.c
4494
if (patch &&
drivers/gpu/drm/xe/xe_gsc.c
174
compat->patch = version_query_rd(xe, &bo->vmap, rd_offset, compat_minor);
drivers/gpu/drm/xe/xe_gsc.c
176
xe_gt_info(gt, "found GSC cv%u.%u.%u\n", compat->major, compat->minor, compat->patch);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
1212
guc_version->minor, guc_version->patch);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
152
found->patch = FIELD_GET(VF2GUC_MATCH_VERSION_RESPONSE_MSG_1_PATCH, response[1]);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
164
.patch = 0
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
229
guc_version->minor, guc_version->patch);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
232
wanted.minor, wanted.patch);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
263
guc_version->minor, guc_version->patch);
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
270
guc_version->minor, guc_version->patch,
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
279
wanted.branch, wanted.major, wanted.minor, wanted.patch);
drivers/gpu/drm/xe/xe_guc.h
20
#define MAKE_GUC_VER_STRUCT(ver) MAKE_GUC_VER((ver).major, (ver).minor, (ver).patch)
drivers/gpu/drm/xe/xe_guc_engine_activity.c
128
struct xe_uc_fw_version required = { .major = 1, .minor = 14, .patch = 1 };
drivers/gpu/drm/xe/xe_guc_engine_activity.c
140
version->major, version->minor, version->patch, required.major,
drivers/gpu/drm/xe/xe_guc_engine_activity.c
141
required.minor, required.patch);
drivers/gpu/drm/xe/xe_guc_log.c
245
snapshot->ver_found.major, snapshot->ver_found.minor, snapshot->ver_found.patch,
drivers/gpu/drm/xe/xe_guc_log.c
246
snapshot->ver_want.major, snapshot->ver_want.minor, snapshot->ver_want.patch);
drivers/gpu/drm/xe/xe_query.c
623
resp.patch_ver = version->patch;
drivers/gpu/drm/xe/xe_sriov_vf.c
241
guc_version.patch);
drivers/gpu/drm/xe/xe_uc_fw.c
102
u16 patch;
drivers/gpu/drm/xe/xe_uc_fw.c
261
uc_fw->versions.wanted.patch = entries[i].patch;
drivers/gpu/drm/xe/xe_uc_fw.c
344
release->major, release->minor, release->patch);
drivers/gpu/drm/xe/xe_uc_fw.c
350
compatibility->patch = FIELD_GET(CSS_SW_VERSION_UC_PATCH, guc_info->submission_version);
drivers/gpu/drm/xe/xe_uc_fw.c
375
(wanted->patch != found->patch)))) {
drivers/gpu/drm/xe/xe_uc_fw.c
378
found->major, found->minor, found->patch,
drivers/gpu/drm/xe/xe_uc_fw.c
379
wanted->major, wanted->minor, wanted->patch);
drivers/gpu/drm/xe/xe_uc_fw.c
384
(wanted->minor == found->minor && wanted->patch > found->patch)) {
drivers/gpu/drm/xe/xe_uc_fw.c
387
wanted->major, wanted->minor, wanted->patch,
drivers/gpu/drm/xe/xe_uc_fw.c
388
found->major, found->minor, found->patch,
drivers/gpu/drm/xe/xe_uc_fw.c
451
release->patch = FIELD_GET(CSS_SW_VERSION_UC_PATCH, css->guc_info.sw_version);
drivers/gpu/drm/xe/xe_uc_fw.c
527
release->patch = manifest->fw_version.hotfix;
drivers/gpu/drm/xe/xe_uc_fw.c
665
ver_->patch, ver_->build); \
drivers/gpu/drm/xe/xe_uc_fw.c
668
ver_->major, ver_->minor, ver_->patch); \
drivers/gpu/drm/xe/xe_uc_fw_types.h
75
u16 patch;
drivers/input/touchscreen/iqs7211.c
1160
__le32 patch;
drivers/input/touchscreen/iqs7211.c
2406
le32_to_cpu(iqs7211->ver_info.patch),
drivers/media/i2c/vd55g1.c
1173
u64 patch;
drivers/media/i2c/vd55g1.c
1189
vd55g1_read(sensor, VD55G1_REG_FWPATCH_REVISION, &patch, &ret);
drivers/media/i2c/vd55g1.c
1190
if (patch != (VD55G1_FWPATCH_REVISION_MAJOR << 8) +
drivers/media/i2c/vd55g1.c
1195
(u8)(patch >> 8), (u8)(patch & 0xff));
drivers/media/i2c/vd55g1.c
1199
(u8)(patch >> 8), (u8)(patch & 0xff));
drivers/media/i2c/vgxy61.c
1555
u64 patch;
drivers/media/i2c/vgxy61.c
1565
cci_read(sensor->regmap, VGXY61_REG_FWPATCH_REVISION, &patch, &ret);
drivers/media/i2c/vgxy61.c
1569
if (patch != (VGXY61_FWPATCH_REVISION_MAJOR << 12) +
drivers/media/i2c/vgxy61.c
1577
(u16)patch >> 12, ((u16)patch >> 8) & 0x0f, (u16)patch & 0xff);
drivers/media/i2c/vgxy61.c
1581
(u16)patch >> 12, ((u16)patch >> 8) & 0x0f, (u16)patch & 0xff);
drivers/mfd/lochnagar-i2c.c
178
const struct reg_sequence *patch;
drivers/mfd/lochnagar-i2c.c
188
.patch = lochnagar1_patch,
drivers/mfd/lochnagar-i2c.c
196
.patch = lochnagar2_patch,
drivers/mfd/lochnagar-i2c.c
358
ret = regmap_register_patch(lochnagar->regmap, config->patch,
drivers/net/ethernet/brocade/bna/bfa_ioc.c
1330
if (drv_fwhdr->fwver.patch == fwhdr_to_cmp->fwver.patch &&
drivers/net/ethernet/brocade/bna/bfa_ioc.c
1365
if (fwhdr_to_cmp->fwver.patch > base_fwhdr->fwver.patch)
drivers/net/ethernet/brocade/bna/bfa_ioc.c
1367
else if (fwhdr_to_cmp->fwver.patch < base_fwhdr->fwver.patch)
drivers/net/ethernet/brocade/bna/bfi.h
233
u8 patch;
drivers/net/ethernet/brocade/bna/bfi.h
244
u8 patch;
drivers/net/ethernet/intel/ice/devlink/devlink.c
84
orom->major, orom->build, orom->patch);
drivers/net/ethernet/intel/ice/devlink/devlink.c
95
orom->major, orom->build, orom->patch);
drivers/net/ethernet/intel/ice/ice_common.c
6186
static bool ice_is_fw_api_min_ver(struct ice_hw *hw, u8 maj, u8 min, u8 patch)
drivers/net/ethernet/intel/ice/ice_common.c
6191
if (hw->api_min_ver == min && hw->api_patch >= patch)
drivers/net/ethernet/intel/ice/ice_ethtool.c
449
nvm->eetrack, orom->major, orom->build, orom->patch);
drivers/net/ethernet/intel/ice/ice_nvm.c
737
orom->patch = FIELD_GET(ICE_OROM_VER_PATCH_MASK, combo_ver);
drivers/net/ethernet/intel/ice/ice_type.h
472
u8 patch; /* Patch version of OROM */
drivers/net/ethernet/intel/ixgbe/devlink/devlink.c
49
orom->major, orom->build, orom->patch);
drivers/net/ethernet/intel/ixgbe/ixgbe_e610.c
3141
orom->patch = (u8)FIELD_GET(IXGBE_OROM_VER_PATCH_MASK, combo_ver);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
11425
nvm->eetrack, orom->major, orom->build, orom->patch);
drivers/net/ethernet/intel/ixgbe/ixgbe_type_e610.h
976
u8 patch; /* Patch version of OROM */
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
104
struct motorcomm_efuse_patch patch;
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
108
ret = motorcomm_efuse_read_patch(priv, i, &patch);
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
112
if (patch.addr == 0) {
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
114
} else if (le16_to_cpu(patch.addr) == addr) {
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
115
*value = le32_to_cpu(patch.data);
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
85
struct motorcomm_efuse_patch *patch)
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
87
u8 *p = (u8 *)patch, offset;
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
90
for (i = 0; i < sizeof(*patch); i++) {
drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
91
offset = EFUSE_PATCH_REGION_OFFSET + sizeof(*patch) * index + i;
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c
699
u16 build = 0, major = 0, patch = 0;
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c
856
patch = eeprom_cfg_blkh & 0x00ff;
drivers/net/ethernet/wangxun/txgbe/txgbe_main.c
860
patch);
drivers/net/phy/bcm7xxx.c
146
u8 patch = PHY_BRCM_7XXX_PATCH(phydev->dev_flags);
drivers/net/phy/bcm7xxx.c
157
phydev_name(phydev), phydev->drv->name, rev, patch);
drivers/net/wireless/ath/ath6kl/core.h
796
const char *patch;
drivers/net/wireless/ath/ath6kl/init.c
55
.patch = AR6003_HW_2_0_PATCH_FILE,
drivers/net/wireless/ath/ath6kl/init.c
78
.patch = AR6003_HW_2_1_1_PATCH_FILE,
drivers/net/wireless/ath/ath6kl/init.c
885
if (ar->hw.fw.patch == NULL)
drivers/net/wireless/ath/ath6kl/init.c
889
ar->hw.fw.dir, ar->hw.fw.patch);
drivers/net/wireless/atmel/at76c50x-usb.c
1641
fwe->fw_version.patch = fwh->patch;
drivers/net/wireless/atmel/at76c50x-usb.c
1654
fwe->fwname, fwh->major, fwh->minor, fwh->patch, fwh->build);
drivers/net/wireless/atmel/at76c50x-usb.c
2369
priv->fw_version.patch, priv->fw_version.build);
drivers/net/wireless/atmel/at76c50x-usb.c
2387
priv->fw_version.patch, priv->fw_version.build);
drivers/net/wireless/atmel/at76c50x-usb.h
312
u8 patch;
drivers/net/wireless/atmel/at76c50x-usb.h
338
u8 patch; /* firmware patch level */
drivers/net/wireless/broadcom/b43/b43.h
793
u16 patch;
drivers/net/wireless/broadcom/b43/main.c
2689
dev->fw.patch = fwpatch;
drivers/net/wireless/broadcom/b43/main.c
2706
dev->fw.patch = fwtime;
drivers/net/wireless/broadcom/b43/main.c
2708
dev->fw.rev, dev->fw.patch);
drivers/net/wireless/broadcom/b43/main.c
2732
dev->fw.rev, dev->fw.patch);
drivers/net/wireless/broadcom/b43legacy/b43legacy.h
654
u16 patch;
drivers/net/wireless/broadcom/b43legacy/main.c
1763
dev->fw.patch = fwpatch;
drivers/net/wireless/broadcom/b43legacy/main.c
1766
dev->fw.rev, dev->fw.patch);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7854
u16 patch;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7857
patch = brcms_b_read_shm(wlc->hw, M_BOM_REV_MINOR);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7858
wlc->ucode_rev = (rev << NBITS(u16)) | patch;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7860
sizeof(wlc->wiphy->fw_version), "%u.%u", rev, patch);
drivers/scsi/aic7xxx/aic79xx_core.c
208
const struct patch **start_patch,
drivers/scsi/aic7xxx/aic79xx_core.c
9261
const struct patch *cur_patch;
drivers/scsi/aic7xxx/aic79xx_core.c
9415
ahd_check_patch(struct ahd_softc *ahd, const struct patch **start_patch,
drivers/scsi/aic7xxx/aic79xx_core.c
9418
const struct patch *cur_patch;
drivers/scsi/aic7xxx/aic79xx_core.c
9419
const struct patch *last_patch;
drivers/scsi/aic7xxx/aic79xx_core.c
9453
const struct patch *cur_patch;
drivers/scsi/aic7xxx/aic7xxx_core.c
217
const struct patch **start_patch,
drivers/scsi/aic7xxx/aic7xxx_core.c
6788
const struct patch *cur_patch;
drivers/scsi/aic7xxx/aic7xxx_core.c
6892
ahc_check_patch(struct ahc_softc *ahc, const struct patch **start_patch,
drivers/scsi/aic7xxx/aic7xxx_core.c
6895
const struct patch *cur_patch;
drivers/scsi/aic7xxx/aic7xxx_core.c
6896
const struct patch *last_patch;
drivers/scsi/aic7xxx/aic7xxx_core.c
6955
const struct patch *cur_patch;
drivers/scsi/aic7xxx/aicasm/aicasm.c
488
emit_patch(scope_t *scope, int patch)
drivers/scsi/aic7xxx/aicasm/aicasm.c
493
pinfo = &scope->patches[patch];
drivers/scsi/aic7xxx/aicasm/aicasm.c
506
if (patch == 0) {
drivers/scsi/aic7xxx/aicasm/aicasm.c
67
STAILQ_ENTRY(patch) links;
drivers/scsi/aic7xxx/aicasm/aicasm.c
74
STAILQ_HEAD(patch_list, patch) patches;
drivers/scsi/aic7xxx/aicasm/aicasm.c
81
static void emit_patch(scope_t *scope, int patch);
drivers/scsi/bfa/bfa_ioc.c
1549
if (drv_fwhdr->fwver.patch == fwhdr_to_cmp->fwver.patch &&
drivers/scsi/bfa/bfa_ioc.c
1586
if (fwhdr_to_cmp->fwver.patch > base_fwhdr->fwver.patch)
drivers/scsi/bfa/bfa_ioc.c
1589
else if (fwhdr_to_cmp->fwver.patch < base_fwhdr->fwver.patch)
drivers/scsi/bfa/bfi.h
326
uint8_t patch;
drivers/scsi/bfa/bfi.h
337
uint8_t patch;
drivers/scsi/ncr53c8xx.c
1530
ncrcmd patch[8];
drivers/scsi/ncr53c8xx.c
6170
if (dsp == CCB_PHYS (cp, patch[2])) {
drivers/scsi/ncr53c8xx.c
6171
vdsp = &cp->patch[0];
drivers/scsi/ncr53c8xx.c
6174
else if (dsp == CCB_PHYS (cp, patch[6])) {
drivers/scsi/ncr53c8xx.c
6175
vdsp = &cp->patch[4];
drivers/scsi/ncr53c8xx.c
6266
newcmd = cp->patch;
drivers/scsi/ncr53c8xx.c
6267
newtmp = CCB_PHYS (cp, patch);
drivers/scsi/ncr53c8xx.c
6269
newcmd = &cp->patch[4];
drivers/scsi/ncr53c8xx.c
6270
newtmp = CCB_PHYS (cp, patch[4]);
drivers/scsi/ncr53c8xx.c
6284
(int) (newcmd - cp->patch),
drivers/scsi/sym53c8xx_2/sym_fw.h
133
void (*patch)(struct Scsi_Host *);
drivers/scsi/sym53c8xx_2/sym_hipd.c
5590
np->fw_patch = fw->patch;
drivers/scsi/wd33c93.c
1387
patch = NULL;
drivers/scsi/wd33c93.c
1391
patch = cmd;
drivers/scsi/wd33c93.c
1407
if (patch)
drivers/scsi/wd33c93.c
1408
patch->host_scribble = cmd->host_scribble;
drivers/scsi/wd33c93.c
740
struct scsi_cmnd *patch, *cmd;
drivers/staging/media/ipu7/abi/ipu7_fw_common_abi.h
17
u8 patch;
drivers/staging/media/ipu7/abi/ipu7_fw_common_abi.h
25
(subminor_val), .patch = (patch_val)}
drivers/staging/media/ipu7/ipu7-boot.c
197
boot_config->config_version.patch = 0U;
drivers/staging/media/ipu7/ipu7-boot.c
204
boot_config->client_version_support.versions[0].patch = 0U;
drivers/usb/misc/usbio.c
52
__le16 patch;
drivers/usb/misc/usbio.c
658
le16_to_cpu(fwver.patch), le16_to_cpu(fwver.build));
drivers/usb/typec/ucsi/ucsi_ccg.c
1089
cur_version = le16_to_cpu(app->build) | CCG_VERSION_PATCH(app->patch) |
drivers/usb/typec/ucsi/ucsi_ccg.c
1093
CCG_VERSION_PATCH(fw_cfg.app.patch) |
drivers/usb/typec/ucsi/ucsi_ccg.c
112
u8 patch;
drivers/usb/typec/ucsi/ucsi_ccg.c
739
CCG_VERSION_PATCH(uc->version[FW2].app.patch);
fs/smb/client/cifsglob.h
578
const char *patch, u32 *plen, u32 info);
include/linux/adi-axi-common.h
19
#define ADI_AXI_PCORE_VER(major, minor, patch) \
include/linux/adi-axi-common.h
20
(((major) << 16) | ((minor) << 8) | (patch))
include/linux/filter.h
1186
const struct bpf_insn *patch, u32 len);
include/linux/livepatch.h
152
#define klp_for_each_object_static(patch, obj) \
include/linux/livepatch.h
153
for (obj = patch->objs; obj->funcs || obj->name; obj++)
include/linux/livepatch.h
155
#define klp_for_each_object_safe(patch, obj, tmp_obj) \
include/linux/livepatch.h
156
list_for_each_entry_safe(obj, tmp_obj, &patch->obj_list, node)
include/linux/livepatch.h
158
#define klp_for_each_object(patch, obj) \
include/linux/livepatch.h
159
list_for_each_entry(obj, &patch->obj_list, node)
include/linux/livepatch.h
210
struct klp_state *klp_get_state(struct klp_patch *patch, unsigned long id);
include/uapi/drm/amdxdna_accel.h
440
__u32 patch; /* out */
include/uapi/drm/i915_drm.h
3634
__u32 patch;
include/uapi/linux/soundcard.h
1195
#define SEQ_PGM_CHANGE(dev, chn, patch) \
include/uapi/linux/soundcard.h
1196
_CHN_COMMON(dev, MIDI_PGM_CHANGE, chn, patch, 0, 0)
include/uapi/sound/sof/abi.h
42
#define SOF_ABI_VER(major, minor, patch) \
include/uapi/sound/sof/abi.h
45
((patch) << SOF_ABI_PATCH_SHIFT))
kernel/bpf/core.c
456
const struct bpf_insn *patch, u32 len)
kernel/bpf/core.c
465
memcpy(prog->insnsi + off, patch, sizeof(*patch));
kernel/bpf/core.c
502
sizeof(*patch) * insn_rest);
kernel/bpf/core.c
503
memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len);
kernel/bpf/verifier.c
22055
const struct bpf_insn *patch, u32 len)
kernel/bpf/verifier.c
22071
new_prog = bpf_patch_insn_single(env->prog, off, patch, len);
kernel/bpf/verifier.c
22419
struct bpf_insn *patch;
kernel/bpf/verifier.c
22473
patch = rnd_hi32_patch;
kernel/bpf/verifier.c
22502
patch = zext_patch;
kernel/bpf/verifier.c
22505
new_prog = bpf_patch_insn_data(env, adj_idx, patch, patch_len);
kernel/bpf/verifier.c
22600
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
22602
*patch++ = BPF_ST_NOSPEC();
kernel/bpf/verifier.c
22603
*patch++ = *insn;
kernel/bpf/verifier.c
22604
cnt = patch - insn_buf;
kernel/bpf/verifier.c
22673
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
22675
*patch++ = *insn;
kernel/bpf/verifier.c
22676
*patch++ = BPF_ST_NOSPEC();
kernel/bpf/verifier.c
22677
cnt = patch - insn_buf;
kernel/bpf/verifier.c
23368
static int add_hidden_subprog(struct bpf_verifier_env *env, struct bpf_insn *patch, int len)
kernel/bpf/verifier.c
23383
prog = bpf_patch_insn_data(env, env->prog->len - 1, patch, len);
kernel/bpf/verifier.c
23416
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23418
*patch++ = env->prog->insnsi[insn_cnt - 1];
kernel/bpf/verifier.c
23419
*patch++ = BPF_MOV64_REG(BPF_REG_0, BPF_REG_1);
kernel/bpf/verifier.c
23420
*patch++ = BPF_EXIT_INSN();
kernel/bpf/verifier.c
23421
ret = add_hidden_subprog(env, insn_buf, patch - insn_buf);
kernel/bpf/verifier.c
23457
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23460
*patch++ = BPF_RAW_INSN((is64 ? BPF_ALU64 : BPF_ALU) |
kernel/bpf/verifier.c
23464
*patch++ = BPF_MOV32_IMM(insn->dst_reg, 0);
kernel/bpf/verifier.c
23466
cnt = patch - insn_buf;
kernel/bpf/verifier.c
23487
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23494
*patch++ = BPF_MOV64_REG(BPF_REG_AX, insn->src_reg);
kernel/bpf/verifier.c
23495
*patch++ = BPF_RAW_INSN((is64 ? BPF_ALU64 : BPF_ALU) |
kernel/bpf/verifier.c
23498
*patch++ = BPF_RAW_INSN((is64 ? BPF_JMP : BPF_JMP32) |
kernel/bpf/verifier.c
23501
*patch++ = BPF_RAW_INSN((is64 ? BPF_JMP : BPF_JMP32) |
kernel/bpf/verifier.c
23504
*patch++ = BPF_RAW_INSN((is64 ? BPF_ALU64 : BPF_ALU) |
kernel/bpf/verifier.c
23508
*patch++ = BPF_RAW_INSN((is64 ? BPF_ALU64 : BPF_ALU) |
kernel/bpf/verifier.c
23511
*patch++ = BPF_JMP_IMM(BPF_JA, 0, 0, 1);
kernel/bpf/verifier.c
23512
*patch++ = *insn;
kernel/bpf/verifier.c
23513
cnt = patch - insn_buf;
kernel/bpf/verifier.c
23517
*patch++ = BPF_MOV64_REG(BPF_REG_AX, insn->src_reg);
kernel/bpf/verifier.c
23518
*patch++ = BPF_RAW_INSN((is64 ? BPF_ALU64 : BPF_ALU) |
kernel/bpf/verifier.c
23521
*patch++ = BPF_RAW_INSN((is64 ? BPF_JMP : BPF_JMP32) |
kernel/bpf/verifier.c
23524
*patch++ = BPF_RAW_INSN((is64 ? BPF_JMP : BPF_JMP32) |
kernel/bpf/verifier.c
23527
*patch++ = BPF_MOV32_IMM(insn->dst_reg, 0);
kernel/bpf/verifier.c
23528
*patch++ = BPF_JMP_IMM(BPF_JA, 0, 0, 1);
kernel/bpf/verifier.c
23529
*patch++ = *insn;
kernel/bpf/verifier.c
23532
*patch++ = BPF_JMP_IMM(BPF_JA, 0, 0, 1);
kernel/bpf/verifier.c
23533
*patch++ = BPF_MOV32_REG(insn->dst_reg, insn->dst_reg);
kernel/bpf/verifier.c
23535
cnt = patch - insn_buf;
kernel/bpf/verifier.c
23538
*patch++ = BPF_RAW_INSN((is64 ? BPF_JMP : BPF_JMP32) |
kernel/bpf/verifier.c
23541
*patch++ = BPF_ALU32_REG(BPF_XOR, insn->dst_reg, insn->dst_reg);
kernel/bpf/verifier.c
23542
*patch++ = BPF_JMP_IMM(BPF_JA, 0, 0, 1);
kernel/bpf/verifier.c
23543
*patch++ = *insn;
kernel/bpf/verifier.c
23544
cnt = patch - insn_buf;
kernel/bpf/verifier.c
23547
*patch++ = BPF_RAW_INSN((is64 ? BPF_JMP : BPF_JMP32) |
kernel/bpf/verifier.c
23550
*patch++ = *insn;
kernel/bpf/verifier.c
23553
*patch++ = BPF_JMP_IMM(BPF_JA, 0, 0, 1);
kernel/bpf/verifier.c
23554
*patch++ = BPF_MOV32_REG(insn->dst_reg, insn->dst_reg);
kernel/bpf/verifier.c
23556
cnt = patch - insn_buf;
kernel/bpf/verifier.c
23573
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23579
*patch++ = BPF_MOV64_REG(BPF_REG_AX, insn->src_reg);
kernel/bpf/verifier.c
23581
*patch++ = BPF_ALU64_IMM(BPF_ADD, BPF_REG_AX, insn->off);
kernel/bpf/verifier.c
23582
*patch++ = BPF_ALU64_IMM(BPF_RSH, BPF_REG_AX, 32);
kernel/bpf/verifier.c
23583
*patch++ = BPF_JMP_IMM(BPF_JLE, BPF_REG_AX, uaddress_limit >> 32, 2);
kernel/bpf/verifier.c
23584
*patch++ = *insn;
kernel/bpf/verifier.c
23585
*patch++ = BPF_JMP_IMM(BPF_JA, 0, 0, 1);
kernel/bpf/verifier.c
23586
*patch++ = BPF_MOV64_IMM(insn->dst_reg, 0);
kernel/bpf/verifier.c
23588
cnt = patch - insn_buf;
kernel/bpf/verifier.c
23624
struct bpf_insn *patch = insn_buf;
kernel/bpf/verifier.c
23640
*patch++ = BPF_MOV32_IMM(BPF_REG_AX, aux->alu_limit);
kernel/bpf/verifier.c
23643
*patch++ = BPF_ALU64_IMM(BPF_MUL, off_reg, -1);
kernel/bpf/verifier.c
23644
*patch++ = BPF_MOV32_IMM(BPF_REG_AX, aux->alu_limit);
kernel/bpf/verifier.c
23645
*patch++ = BPF_ALU64_REG(BPF_SUB, BPF_REG_AX, off_reg);
kernel/bpf/verifier.c
23646
*patch++ = BPF_ALU64_REG(BPF_OR, BPF_REG_AX, off_reg);
kernel/bpf/verifier.c
23647
*patch++ = BPF_ALU64_IMM(BPF_NEG, BPF_REG_AX, 0);
kernel/bpf/verifier.c
23648
*patch++ = BPF_ALU64_IMM(BPF_ARSH, BPF_REG_AX, 63);
kernel/bpf/verifier.c
23649
*patch++ = BPF_ALU64_REG(BPF_AND, BPF_REG_AX, off_reg);
kernel/bpf/verifier.c
23652
*patch++ = BPF_MOV64_REG(insn->dst_reg, insn->src_reg);
kernel/bpf/verifier.c
23657
*patch++ = *insn;
kernel/bpf/verifier.c
23659
*patch++ = BPF_ALU64_IMM(BPF_MUL, off_reg, -1);
kernel/bpf/verifier.c
23660
cnt = patch - insn_buf;
kernel/livepatch/core.c
1003
list_add_tail(&patch->list, &klp_patches);
kernel/livepatch/core.c
1008
static int __klp_disable_patch(struct klp_patch *patch)
kernel/livepatch/core.c
1012
if (WARN_ON(!patch->enabled))
kernel/livepatch/core.c
1018
klp_init_transition(patch, KLP_TRANSITION_UNPATCHED);
kernel/livepatch/core.c
1020
klp_for_each_object(patch, obj)
kernel/livepatch/core.c
1034
patch->enabled = false;
kernel/livepatch/core.c
1040
static int __klp_enable_patch(struct klp_patch *patch)
kernel/livepatch/core.c
1048
if (WARN_ON(patch->enabled))
kernel/livepatch/core.c
1051
pr_notice("enabling patch '%s'\n", patch->mod->name);
kernel/livepatch/core.c
1053
klp_init_transition(patch, KLP_TRANSITION_PATCHED);
kernel/livepatch/core.c
106
static struct klp_object *klp_find_object(struct klp_patch *patch,
kernel/livepatch/core.c
1064
klp_for_each_object(patch, obj) {
kernel/livepatch/core.c
1084
patch->enabled = true;
kernel/livepatch/core.c
1089
pr_warn("failed to enable patch '%s'\n", patch->mod->name);
kernel/livepatch/core.c
1108
int klp_enable_patch(struct klp_patch *patch)
kernel/livepatch/core.c
111
klp_for_each_object(patch, obj) {
kernel/livepatch/core.c
1113
if (!patch || !patch->mod || !patch->objs)
kernel/livepatch/core.c
1116
klp_for_each_object_static(patch, obj) {
kernel/livepatch/core.c
1122
if (!is_livepatch_module(patch->mod)) {
kernel/livepatch/core.c
1124
patch->mod->name);
kernel/livepatch/core.c
1138
if (!klp_is_patch_compatible(patch)) {
kernel/livepatch/core.c
1140
patch->mod->name);
kernel/livepatch/core.c
1145
if (!try_module_get(patch->mod)) {
kernel/livepatch/core.c
1150
klp_init_patch_early(patch);
kernel/livepatch/core.c
1152
ret = klp_init_patch(patch);
kernel/livepatch/core.c
1156
ret = __klp_enable_patch(patch);
kernel/livepatch/core.c
1165
klp_free_patch_start(patch);
kernel/livepatch/core.c
1169
klp_free_patch_finish(patch);
kernel/livepatch/core.c
1233
struct klp_patch *patch;
kernel/livepatch/core.c
1236
klp_for_each_patch(patch) {
kernel/livepatch/core.c
1237
if (patch == limit)
kernel/livepatch/core.c
1240
klp_for_each_object(patch, obj) {
kernel/livepatch/core.c
1244
if (patch != klp_transition_patch)
kernel/livepatch/core.c
1248
patch->mod->name, obj->mod->name);
kernel/livepatch/core.c
1252
klp_clear_object_relocs(patch, obj);
kernel/livepatch/core.c
1262
struct klp_patch *patch;
kernel/livepatch/core.c
1281
klp_for_each_patch(patch) {
kernel/livepatch/core.c
1282
klp_for_each_object(patch, obj) {
kernel/livepatch/core.c
1288
ret = klp_init_object_loaded(patch, obj);
kernel/livepatch/core.c
1291
patch->mod->name, obj->mod->name, ret);
kernel/livepatch/core.c
1296
patch->mod->name, obj->mod->name);
kernel/livepatch/core.c
1308
patch->mod->name, obj->mod->name, ret);
kernel/livepatch/core.c
1314
if (patch != klp_transition_patch)
kernel/livepatch/core.c
1331
patch->mod->name, obj->mod->name, obj->mod->name);
kernel/livepatch/core.c
1334
klp_cleanup_module_patches_limited(mod, patch);
kernel/livepatch/core.c
359
static int __klp_disable_patch(struct klp_patch *patch);
kernel/livepatch/core.c
364
struct klp_patch *patch;
kernel/livepatch/core.c
372
patch = container_of(kobj, struct klp_patch, kobj);
kernel/livepatch/core.c
376
if (patch->enabled == enabled) {
kernel/livepatch/core.c
389
if (patch == klp_transition_patch)
kernel/livepatch/core.c
392
ret = __klp_disable_patch(patch);
kernel/livepatch/core.c
407
struct klp_patch *patch;
kernel/livepatch/core.c
409
patch = container_of(kobj, struct klp_patch, kobj);
kernel/livepatch/core.c
410
return sysfs_emit(buf, "%d\n", patch->enabled);
kernel/livepatch/core.c
416
struct klp_patch *patch;
kernel/livepatch/core.c
418
patch = container_of(kobj, struct klp_patch, kobj);
kernel/livepatch/core.c
419
return sysfs_emit(buf, "%d\n", patch == klp_transition_patch);
kernel/livepatch/core.c
425
struct klp_patch *patch;
kernel/livepatch/core.c
438
patch = container_of(kobj, struct klp_patch, kobj);
kernel/livepatch/core.c
439
if (patch != klp_transition_patch) {
kernel/livepatch/core.c
454
struct klp_patch *patch;
kernel/livepatch/core.c
456
patch = container_of(kobj, struct klp_patch, kobj);
kernel/livepatch/core.c
457
return sysfs_emit(buf, "%d\n", patch->replace);
kernel/livepatch/core.c
463
struct klp_patch *patch, *this_patch;
kernel/livepatch/core.c
470
klp_for_each_patch(patch) {
kernel/livepatch/core.c
472
if (patch == this_patch)
kernel/livepatch/core.c
520
static void klp_init_object_early(struct klp_patch *patch,
kernel/livepatch/core.c
524
struct klp_patch *patch)
kernel/livepatch/core.c
540
klp_init_object_early(patch, obj);
kernel/livepatch/core.c
580
static int klp_add_object_nops(struct klp_patch *patch,
kernel/livepatch/core.c
586
obj = klp_find_object(patch, old_obj);
kernel/livepatch/core.c
589
obj = klp_alloc_object_dynamic(old_obj->name, patch);
kernel/livepatch/core.c
615
static int klp_add_nops(struct klp_patch *patch)
kernel/livepatch/core.c
624
err = klp_add_object_nops(patch, old_obj);
kernel/livepatch/core.c
635
struct klp_patch *patch;
kernel/livepatch/core.c
637
patch = container_of(kobj, struct klp_patch, kobj);
kernel/livepatch/core.c
638
complete(&patch->finish);
kernel/livepatch/core.c
706
static void __klp_free_objects(struct klp_patch *patch, bool nops_only)
kernel/livepatch/core.c
710
klp_for_each_object_safe(patch, obj, tmp_obj) {
kernel/livepatch/core.c
721
static void klp_free_objects(struct klp_patch *patch)
kernel/livepatch/core.c
723
__klp_free_objects(patch, false);
kernel/livepatch/core.c
726
static void klp_free_objects_dynamic(struct klp_patch *patch)
kernel/livepatch/core.c
728
__klp_free_objects(patch, true);
kernel/livepatch/core.c
738
static void klp_free_patch_start(struct klp_patch *patch)
kernel/livepatch/core.c
740
if (!list_empty(&patch->list))
kernel/livepatch/core.c
741
list_del(&patch->list);
kernel/livepatch/core.c
743
klp_free_objects(patch);
kernel/livepatch/core.c
754
static void klp_free_patch_finish(struct klp_patch *patch)
kernel/livepatch/core.c
762
kobject_put(&patch->kobj);
kernel/livepatch/core.c
763
wait_for_completion(&patch->finish);
kernel/livepatch/core.c
766
if (!patch->forced)
kernel/livepatch/core.c
767
module_put(patch->mod);
kernel/livepatch/core.c
777
struct klp_patch *patch =
kernel/livepatch/core.c
780
klp_free_patch_finish(patch);
kernel/livepatch/core.c
783
void klp_free_patch_async(struct klp_patch *patch)
kernel/livepatch/core.c
785
klp_free_patch_start(patch);
kernel/livepatch/core.c
786
schedule_work(&patch->free_work);
kernel/livepatch/core.c
829
static int klp_write_object_relocs(struct klp_patch *patch,
kernel/livepatch/core.c
834
struct klp_modinfo *info = patch->mod->klp_info;
kernel/livepatch/core.c
842
ret = klp_write_section_relocs(patch->mod, info->sechdrs,
kernel/livepatch/core.c
844
patch->mod->core_kallsyms.strtab,
kernel/livepatch/core.c
853
static int klp_apply_object_relocs(struct klp_patch *patch,
kernel/livepatch/core.c
856
return klp_write_object_relocs(patch, obj, true);
kernel/livepatch/core.c
859
static void klp_clear_object_relocs(struct klp_patch *patch,
kernel/livepatch/core.c
862
klp_write_object_relocs(patch, obj, false);
kernel/livepatch/core.c
866
static int klp_init_object_loaded(struct klp_patch *patch,
kernel/livepatch/core.c
879
ret = klp_apply_object_relocs(patch, obj);
kernel/livepatch/core.c
914
static int klp_init_object(struct klp_patch *patch, struct klp_object *obj)
kernel/livepatch/core.c
929
ret = kobject_add(&obj->kobj, &patch->kobj, "%s", name);
kernel/livepatch/core.c
940
ret = klp_init_object_loaded(patch, obj);
kernel/livepatch/core.c
952
static void klp_init_object_early(struct klp_patch *patch,
kernel/livepatch/core.c
957
list_add_tail(&obj->node, &patch->obj_list);
kernel/livepatch/core.c
960
static void klp_init_patch_early(struct klp_patch *patch)
kernel/livepatch/core.c
965
INIT_LIST_HEAD(&patch->list);
kernel/livepatch/core.c
966
INIT_LIST_HEAD(&patch->obj_list);
kernel/livepatch/core.c
967
kobject_init(&patch->kobj, &klp_ktype_patch);
kernel/livepatch/core.c
968
patch->enabled = false;
kernel/livepatch/core.c
969
patch->forced = false;
kernel/livepatch/core.c
970
INIT_WORK(&patch->free_work, klp_free_patch_work_fn);
kernel/livepatch/core.c
971
init_completion(&patch->finish);
kernel/livepatch/core.c
973
klp_for_each_object_static(patch, obj) {
kernel/livepatch/core.c
974
klp_init_object_early(patch, obj);
kernel/livepatch/core.c
982
static int klp_init_patch(struct klp_patch *patch)
kernel/livepatch/core.c
987
ret = kobject_add(&patch->kobj, klp_root_kobj, "%s", patch->mod->name);
kernel/livepatch/core.c
991
if (patch->replace) {
kernel/livepatch/core.c
992
ret = klp_add_nops(patch);
kernel/livepatch/core.c
997
klp_for_each_object(patch, obj) {
kernel/livepatch/core.c
998
ret = klp_init_object(patch, obj);
kernel/livepatch/core.h
10
#define klp_for_each_patch_safe(patch, tmp_patch) \
kernel/livepatch/core.h
11
list_for_each_entry_safe(patch, tmp_patch, &klp_patches, list)
kernel/livepatch/core.h
13
#define klp_for_each_patch(patch) \
kernel/livepatch/core.h
14
list_for_each_entry(patch, &klp_patches, list)
kernel/livepatch/core.h
16
void klp_free_patch_async(struct klp_patch *patch);
kernel/livepatch/patch.c
272
static void __klp_unpatch_objects(struct klp_patch *patch, bool nops_only)
kernel/livepatch/patch.c
276
klp_for_each_object(patch, obj)
kernel/livepatch/patch.c
281
void klp_unpatch_objects(struct klp_patch *patch)
kernel/livepatch/patch.c
283
__klp_unpatch_objects(patch, false);
kernel/livepatch/patch.c
286
void klp_unpatch_objects_dynamic(struct klp_patch *patch)
kernel/livepatch/patch.c
288
__klp_unpatch_objects(patch, true);
kernel/livepatch/patch.h
32
void klp_unpatch_objects(struct klp_patch *patch);
kernel/livepatch/patch.h
33
void klp_unpatch_objects_dynamic(struct klp_patch *patch);
kernel/livepatch/state.c
106
bool klp_is_patch_compatible(struct klp_patch *patch)
kernel/livepatch/state.c
113
if (!klp_is_state_compatible(patch, old_state))
kernel/livepatch/state.c
15
#define klp_for_each_state(patch, state) \
kernel/livepatch/state.c
16
for (state = patch->states; state && state->id; state++)
kernel/livepatch/state.c
31
struct klp_state *klp_get_state(struct klp_patch *patch, unsigned long id)
kernel/livepatch/state.c
35
klp_for_each_state(patch, state) {
kernel/livepatch/state.c
66
struct klp_patch *patch;
kernel/livepatch/state.c
72
klp_for_each_patch(patch) {
kernel/livepatch/state.c
73
if (patch == klp_transition_patch)
kernel/livepatch/state.c
76
state = klp_get_state(patch, id);
kernel/livepatch/state.c
87
static bool klp_is_state_compatible(struct klp_patch *patch,
kernel/livepatch/state.c
92
state = klp_get_state(patch, old_state->id);
kernel/livepatch/state.c
96
return !patch->replace;
kernel/livepatch/state.h
7
bool klp_is_patch_compatible(struct klp_patch *patch);
kernel/livepatch/transition.c
434
struct klp_patch *patch;
kernel/livepatch/transition.c
491
patch = klp_transition_patch;
kernel/livepatch/transition.c
499
if (!patch->enabled)
kernel/livepatch/transition.c
500
klp_free_patch_async(patch);
kernel/livepatch/transition.c
501
else if (patch->replace)
kernel/livepatch/transition.c
502
klp_free_replaced_patches_async(patch);
kernel/livepatch/transition.c
552
void klp_init_transition(struct klp_patch *patch, int state)
kernel/livepatch/transition.c
562
klp_transition_patch = patch;
kernel/livepatch/transition.c
570
pr_debug("'%s': initializing %s transition\n", patch->mod->name,
kernel/livepatch/transition.c
616
klp_for_each_object(patch, obj)
kernel/livepatch/transition.c
708
struct klp_patch *patch;
kernel/livepatch/transition.c
726
klp_for_each_patch(patch) {
kernel/livepatch/transition.c
727
if (patch != klp_transition_patch)
kernel/livepatch/transition.c
728
patch->forced = true;
kernel/livepatch/transition.h
9
void klp_init_transition(struct klp_patch *patch, int state);
samples/livepatch/livepatch-callbacks-demo.c
179
static struct klp_patch patch = {
samples/livepatch/livepatch-callbacks-demo.c
186
return klp_enable_patch(&patch);
samples/livepatch/livepatch-sample.c
53
static struct klp_patch patch = {
samples/livepatch/livepatch-sample.c
60
return klp_enable_patch(&patch);
samples/livepatch/livepatch-shadow-fix1.c
153
static struct klp_patch patch = {
samples/livepatch/livepatch-shadow-fix1.c
160
return klp_enable_patch(&patch);
samples/livepatch/livepatch-shadow-fix2.c
113
static struct klp_patch patch = {
samples/livepatch/livepatch-shadow-fix2.c
120
return klp_enable_patch(&patch);
scripts/livepatch/init.c
12
static struct klp_patch *patch;
scripts/livepatch/init.c
31
patch = kzalloc_obj(*patch);
scripts/livepatch/init.c
32
if (!patch) {
scripts/livepatch/init.c
70
patch->mod = THIS_MODULE;
scripts/livepatch/init.c
71
patch->objs = objs;
scripts/livepatch/init.c
76
patch->replace = false;
scripts/livepatch/init.c
78
patch->replace = true;
scripts/livepatch/init.c
81
return klp_enable_patch(patch);
scripts/livepatch/init.c
86
kfree(patch);
scripts/livepatch/init.c
95
klp_for_each_object_static(patch, obj)
scripts/livepatch/init.c
98
kfree(patch->objs);
scripts/livepatch/init.c
99
kfree(patch);
sound/drivers/opl3/opl3_midi.c
306
struct fm_patch *patch;
sound/drivers/opl3/opl3_midi.c
343
patch = snd_opl3_find_patch(opl3, prg, bank, 0);
sound/drivers/opl3/opl3_midi.c
344
if (!patch)
sound/drivers/opl3/opl3_midi.c
347
fm = &patch->inst;
sound/drivers/opl3/opl3_midi.c
348
switch (patch->type) {
sound/drivers/opl3/opl3_midi.c
362
instr_4op ? 3 : 2, patch->name);
sound/drivers/opl3/opl3_synth.c
245
struct fm_patch *patch;
sound/drivers/opl3/opl3_synth.c
248
patch = snd_opl3_find_patch(opl3, prog, bank, 1);
sound/drivers/opl3/opl3_synth.c
249
if (!patch)
sound/drivers/opl3/opl3_synth.c
252
patch->type = type;
sound/drivers/opl3/opl3_synth.c
255
patch->inst.op[i].am_vib = data[AM_VIB + i];
sound/drivers/opl3/opl3_synth.c
256
patch->inst.op[i].ksl_level = data[KSL_LEVEL + i];
sound/drivers/opl3/opl3_synth.c
257
patch->inst.op[i].attack_decay = data[ATTACK_DECAY + i];
sound/drivers/opl3/opl3_synth.c
258
patch->inst.op[i].sustain_release = data[SUSTAIN_RELEASE + i];
sound/drivers/opl3/opl3_synth.c
259
patch->inst.op[i].wave_select = data[WAVE_SELECT + i];
sound/drivers/opl3/opl3_synth.c
261
patch->inst.feedback_connection[0] = data[CONNECTION];
sound/drivers/opl3/opl3_synth.c
265
patch->inst.op[i+2].am_vib =
sound/drivers/opl3/opl3_synth.c
267
patch->inst.op[i+2].ksl_level =
sound/drivers/opl3/opl3_synth.c
269
patch->inst.op[i+2].attack_decay =
sound/drivers/opl3/opl3_synth.c
271
patch->inst.op[i+2].sustain_release =
sound/drivers/opl3/opl3_synth.c
273
patch->inst.op[i+2].wave_select =
sound/drivers/opl3/opl3_synth.c
276
patch->inst.feedback_connection[1] =
sound/drivers/opl3/opl3_synth.c
281
patch->inst.echo_delay = ext[0];
sound/drivers/opl3/opl3_synth.c
282
patch->inst.echo_atten = ext[1];
sound/drivers/opl3/opl3_synth.c
283
patch->inst.chorus_spread = ext[2];
sound/drivers/opl3/opl3_synth.c
284
patch->inst.trnsps = ext[3];
sound/drivers/opl3/opl3_synth.c
285
patch->inst.fix_dur = ext[4];
sound/drivers/opl3/opl3_synth.c
286
patch->inst.modes = ext[5];
sound/drivers/opl3/opl3_synth.c
287
patch->inst.fix_key = ext[6];
sound/drivers/opl3/opl3_synth.c
291
strscpy(patch->name, name, sizeof(patch->name));
sound/drivers/opl3/opl3_synth.c
307
struct fm_patch *patch;
sound/drivers/opl3/opl3_synth.c
309
for (patch = opl3->patch_table[key]; patch; patch = patch->next) {
sound/drivers/opl3/opl3_synth.c
310
if (patch->prog == prog && patch->bank == bank)
sound/drivers/opl3/opl3_synth.c
311
return patch;
sound/drivers/opl3/opl3_synth.c
316
patch = kzalloc_obj(*patch);
sound/drivers/opl3/opl3_synth.c
317
if (!patch)
sound/drivers/opl3/opl3_synth.c
319
patch->prog = prog;
sound/drivers/opl3/opl3_synth.c
320
patch->bank = bank;
sound/drivers/opl3/opl3_synth.c
321
patch->next = opl3->patch_table[key];
sound/drivers/opl3/opl3_synth.c
322
opl3->patch_table[key] = patch;
sound/drivers/opl3/opl3_synth.c
323
return patch;
sound/drivers/opl3/opl3_synth.c
334
struct fm_patch *patch, *next;
sound/drivers/opl3/opl3_synth.c
335
for (patch = opl3->patch_table[i]; patch; patch = next) {
sound/drivers/opl3/opl3_synth.c
336
next = patch->next;
sound/drivers/opl3/opl3_synth.c
337
kfree(patch);
sound/hda/controllers/intel.c
116
static char *patch[SNDRV_CARDS];
sound/hda/controllers/intel.c
150
module_param_array(patch, charp, NULL, 0444);
sound/hda/controllers/intel.c
151
MODULE_PARM_DESC(patch, "Patch file for Intel HD audio interface.");
sound/hda/controllers/intel.c
2233
if (patch[dev] && *patch[dev]) {
sound/hda/controllers/intel.c
2235
patch[dev]);
sound/hda/controllers/intel.c
2236
err = request_firmware_nowait(THIS_MODULE, true, patch[dev],
sound/pci/ac97/ac97_codec.c
1845
if (ac97 && pid->patch) {
sound/pci/ac97/ac97_codec.c
1848
pid->patch(ac97);
sound/pci/ac97/ac97_codec.c
1857
if (ac97 && pid->patch) {
sound/pci/ac97/ac97_codec.c
1860
pid->patch(ac97);
sound/pci/ac97/ac97_codec.c
49
int (*patch)(struct snd_ac97 *ac97);
sound/soc/codecs/hdac_hda.c
42
module_param_array_named(patch, loadable_patch, charp, NULL, 0444);
sound/soc/codecs/hdac_hda.c
43
MODULE_PARM_DESC(patch, "Patch file array for Intel HD audio interface. The array index is the codec address.");
sound/soc/codecs/madera.c
4206
const struct reg_sequence *patch;
sound/soc/codecs/madera.c
4214
.patch = madera_fll_ao_32K_49M_patch,
sound/soc/codecs/madera.c
4221
.patch = madera_fll_ao_32K_45M_patch,
sound/soc/codecs/madera.c
4227
const struct reg_sequence *patch,
sound/soc/codecs/madera.c
4253
val = patch[i].def;
sound/soc/codecs/madera.c
4256
if (patch[i].reg == MADERA_FLLAO_CONTROL_6) {
sound/soc/codecs/madera.c
4262
regmap_write(madera->regmap, patch[i].reg, val);
sound/soc/codecs/madera.c
4322
const struct reg_sequence *patch = NULL;
sound/soc/codecs/madera.c
4346
patch = madera_fllao_settings[i].patch;
sound/soc/codecs/madera.c
4355
ret = madera_enable_fll_ao(fll, patch, patch_size);
sound/soc/codecs/rt1320-sdw.c
1279
const struct firmware *patch;
sound/soc/codecs/rt1320-sdw.c
1305
ret = request_firmware(&patch, filename, &slave->dev);
sound/soc/codecs/rt1320-sdw.c
1320
ptr = (const unsigned char *)patch->data;
sound/soc/codecs/rt1320-sdw.c
1321
if ((patch->size % 8) == 0) {
sound/soc/codecs/rt1320-sdw.c
1322
for (i = 0; i < patch->size; i += 8) {
sound/soc/codecs/rt1320-sdw.c
1340
release_firmware(patch);
sound/soc/codecs/wm5102.c
586
const struct reg_default *patch = NULL;
sound/soc/codecs/wm5102.c
591
patch = wm5102_sysclk_reva_patch;
sound/soc/codecs/wm5102.c
595
patch = wm5102_sysclk_revb_patch;
sound/soc/codecs/wm5102.c
602
if (patch)
sound/soc/codecs/wm5102.c
604
regmap_write_async(regmap, patch[i].reg,
sound/soc/codecs/wm5102.c
605
patch[i].def);
sound/soc/codecs/wm5110.c
164
const struct reg_default *patch = NULL;
sound/soc/codecs/wm5110.c
169
patch = wm5110_sysclk_revd_patch;
sound/soc/codecs/wm5110.c
173
patch = wm5110_sysclk_reve_patch;
sound/soc/codecs/wm5110.c
180
if (patch)
sound/soc/codecs/wm5110.c
182
regmap_write_async(regmap, patch[i].reg,
sound/soc/codecs/wm5110.c
183
patch[i].def);
sound/soc/codecs/wm8997.c
101
if (patch)
sound/soc/codecs/wm8997.c
103
regmap_write_async(regmap, patch[i].reg,
sound/soc/codecs/wm8997.c
104
patch[i].def);
sound/soc/codecs/wm8997.c
87
const struct reg_default *patch = NULL;
sound/soc/codecs/wm8997.c
92
patch = wm8997_sysclk_reva_patch;
sound/synth/emux/emux_hwdep.c
23
struct soundfont_patch_info patch;
sound/synth/emux/emux_hwdep.c
25
if (copy_from_user(&patch, arg, sizeof(patch)))
sound/synth/emux/emux_hwdep.c
28
if (patch.key == GUS_PATCH)
sound/synth/emux/emux_hwdep.c
30
patch.len + sizeof(patch));
sound/synth/emux/emux_hwdep.c
32
if (patch.type >= SNDRV_SFNT_LOAD_INFO &&
sound/synth/emux/emux_hwdep.c
33
patch.type <= SNDRV_SFNT_PROBE_DATA) {
sound/synth/emux/emux_hwdep.c
35
patch.len + sizeof(patch),
sound/synth/emux/emux_hwdep.c
41
return emu->ops.load_fx(emu, patch.type, patch.optarg, arg, patch.len + sizeof(patch));
sound/synth/emux/emux_oss.c
210
struct soundfont_patch_info patch;
sound/synth/emux/emux_oss.c
211
if (count < (int)sizeof(patch))
sound/synth/emux/emux_oss.c
213
if (copy_from_user(&patch, buf, sizeof(patch)))
sound/synth/emux/emux_oss.c
215
if (patch.type >= SNDRV_SFNT_LOAD_INFO &&
sound/synth/emux/emux_oss.c
216
patch.type <= SNDRV_SFNT_PROBE_DATA)
sound/synth/emux/emux_oss.c
222
rc = emu->ops.load_fx(emu, patch.type,
sound/synth/emux/emux_oss.c
223
patch.optarg, buf, count);
sound/synth/emux/soundfont.c
100
count -= sizeof(patch);
sound/synth/emux/soundfont.c
101
data += sizeof(patch);
sound/synth/emux/soundfont.c
103
if (patch.key != SNDRV_OSS_SOUNDFONT_PATCH) {
sound/synth/emux/soundfont.c
1032
zone->v.rate_offset = calc_rate_offset(patch.base_freq);
sound/synth/emux/soundfont.c
1033
note = freq_to_note(patch.base_note);
sound/synth/emux/soundfont.c
1036
zone->v.low = (freq_to_note(patch.low_note) + 99) / 100;
sound/synth/emux/soundfont.c
1037
zone->v.high = freq_to_note(patch.high_note) / 100;
sound/synth/emux/soundfont.c
1039
zone->v.pan = (patch.panning + 128) / 2;
sound/synth/emux/soundfont.c
104
dev_err(card->dev, "The wrong kind of patch %x\n", patch.key);
sound/synth/emux/soundfont.c
1043
(int)patch.base_freq, zone->v.rate_offset,
sound/synth/emux/soundfont.c
1049
if (patch.mode & WAVE_ENVELOPES) {
sound/synth/emux/soundfont.c
1052
(patch.env_rate[0], 0, patch.env_offset[0]);
sound/synth/emux/soundfont.c
1054
(patch.env_rate[1], patch.env_offset[0],
sound/synth/emux/soundfont.c
1055
patch.env_offset[1]);
sound/synth/emux/soundfont.c
1057
(patch.env_rate[2], patch.env_offset[1],
sound/synth/emux/soundfont.c
1058
patch.env_offset[2]);
sound/synth/emux/soundfont.c
1060
(patch.env_rate[3], patch.env_offset[1],
sound/synth/emux/soundfont.c
1061
patch.env_offset[4]);
sound/synth/emux/soundfont.c
1063
(patch.env_rate[4], patch.env_offset[3],
sound/synth/emux/soundfont.c
1064
patch.env_offset[4]);
sound/synth/emux/soundfont.c
1066
(patch.env_rate[5], patch.env_offset[4],
sound/synth/emux/soundfont.c
1067
patch.env_offset[5]);
sound/synth/emux/soundfont.c
107
if (count < patch.len) {
sound/synth/emux/soundfont.c
1071
zone->v.parm.voldcysus = (calc_gus_sustain(patch.env_offset[2]) << 8) |
sound/synth/emux/soundfont.c
1074
zone->v.attenuation = calc_gus_attenuation(patch.env_offset[0]);
sound/synth/emux/soundfont.c
1086
if (patch.mode & WAVE_FAST_RELEASE) {
sound/synth/emux/soundfont.c
109
count, patch.len);
sound/synth/emux/soundfont.c
1091
if (patch.mode & WAVE_TREMOLO) {
sound/synth/emux/soundfont.c
1092
int rate = (patch.tremolo_rate * 1000 / 38) / 42;
sound/synth/emux/soundfont.c
1093
zone->v.parm.tremfrq = ((patch.tremolo_depth / 2) << 8) | rate;
sound/synth/emux/soundfont.c
1096
if (patch.mode & WAVE_VIBRATO) {
sound/synth/emux/soundfont.c
1097
int rate = (patch.vibrato_rate * 1000 / 38) / 42;
sound/synth/emux/soundfont.c
1098
zone->v.parm.fm2frq2 = ((patch.vibrato_depth / 6) << 8) | rate;
sound/synth/emux/soundfont.c
1111
zone->instr = patch.instr_no;
sound/synth/emux/soundfont.c
112
if (patch.len < 0) {
sound/synth/emux/soundfont.c
113
dev_err(card->dev, "poor length %d\n", patch.len);
sound/synth/emux/soundfont.c
117
if (patch.type == SNDRV_SFNT_OPEN_PATCH) {
sound/synth/emux/soundfont.c
131
switch (patch.type) {
sound/synth/emux/soundfont.c
148
rc = probe_data(sflist, patch.optarg);
sound/synth/emux/soundfont.c
158
bank = ((unsigned short)patch.optarg >> 8) & 0xff;
sound/synth/emux/soundfont.c
159
instr = (unsigned short)patch.optarg & 0xff;
sound/synth/emux/soundfont.c
90
struct soundfont_patch_info patch;
sound/synth/emux/soundfont.c
93
if (count < (long)sizeof(patch)) {
sound/synth/emux/soundfont.c
941
struct patch_info patch;
sound/synth/emux/soundfont.c
948
if (count < (long)sizeof(patch)) {
sound/synth/emux/soundfont.c
952
if (copy_from_user(&patch, data, sizeof(patch)))
sound/synth/emux/soundfont.c
954
count -= sizeof(patch);
sound/synth/emux/soundfont.c
955
data += sizeof(patch);
sound/synth/emux/soundfont.c
957
if ((patch.len << (patch.mode & WAVE_16_BITS ? 1 : 0)) != count)
sound/synth/emux/soundfont.c
969
smp->v.end = patch.len;
sound/synth/emux/soundfont.c
97
if (copy_from_user(&patch, data, sizeof(patch)))
sound/synth/emux/soundfont.c
970
smp->v.loopstart = patch.loop_start;
sound/synth/emux/soundfont.c
971
smp->v.loopend = patch.loop_end;
sound/synth/emux/soundfont.c
972
smp->v.size = patch.len;
sound/synth/emux/soundfont.c
981
if (!(patch.mode & WAVE_16_BITS))
sound/synth/emux/soundfont.c
983
if (patch.mode & WAVE_UNSIGNED)
sound/synth/emux/soundfont.c
986
if (!(patch.mode & (WAVE_LOOPING|WAVE_BIDIR_LOOP|WAVE_LOOP_BACK)))
sound/synth/emux/soundfont.c
988
if (patch.mode & WAVE_BIDIR_LOOP)
sound/synth/emux/soundfont.c
990
if (patch.mode & WAVE_LOOP_BACK)
sound/synth/emux/soundfont.c
993
if (patch.mode & WAVE_16_BITS) {
tools/include/uapi/drm/i915_drm.h
3634
__u32 patch;
tools/lib/bpf/libbpf.c
7977
char *orig, size_t orig_sz, const char *patch)
tools/lib/bpf/libbpf.c
7981
size_t patch_sz = strlen(patch);
tools/lib/bpf/libbpf.c
8010
memcpy(orig, patch, patch_sz);
tools/lib/bpf/libbpf.c
8029
char patch[512], spec_buf[256];
tools/lib/bpf/libbpf.c
8044
snprintf(patch, sizeof(patch),
tools/lib/bpf/libbpf.c
8049
patch_log(buf, buf_sz, log_sz, line1, line3 - line1, patch);
tools/lib/bpf/libbpf.c
8067
char patch[128];
tools/lib/bpf/libbpf.c
8077
snprintf(patch, sizeof(patch),
tools/lib/bpf/libbpf.c
8082
patch_log(buf, buf_sz, log_sz, line1, line3 - line1, patch);
tools/lib/bpf/libbpf.c
8100
char patch[128];
tools/lib/bpf/libbpf.c
8110
snprintf(patch, sizeof(patch),
tools/lib/bpf/libbpf.c
8115
patch_log(buf, buf_sz, log_sz, line1, line3 - line1, patch);
tools/lib/bpf/libbpf_probes.c
100
return KERNEL_VERSION(major, minor, patch);
tools/lib/bpf/libbpf_probes.c
34
__u32 major, minor, patch;
tools/lib/bpf/libbpf_probes.c
45
ret = fscanf(f, "%*s %*s %u.%u.%u\n", &major, &minor, &patch);
tools/lib/bpf/libbpf_probes.c
50
return KERNEL_VERSION(major, minor, patch);
tools/lib/bpf/libbpf_probes.c
65
__u32 major, minor, patch;
tools/lib/bpf/libbpf_probes.c
74
if (sscanf(p, "Debian %u.%u.%u", &major, &minor, &patch) != 3)
tools/lib/bpf/libbpf_probes.c
77
return KERNEL_VERSION(major, minor, patch);
tools/lib/bpf/libbpf_probes.c
82
__u32 major, minor, patch, version;
tools/lib/bpf/libbpf_probes.c
97
if (sscanf(info.release, "%u.%u.%u", &major, &minor, &patch) != 3)
tools/testing/selftests/bpf/prog_tests/core_extern.c
12
uint32_t major, minor, patch;
tools/testing/selftests/bpf/prog_tests/core_extern.c
16
if (sscanf(info.release, "%u.%u.%u", &major, &minor, &patch) != 3)
tools/testing/selftests/bpf/prog_tests/core_extern.c
18
return KERNEL_VERSION(major, minor, patch);
tools/testing/selftests/livepatch/test_modules/test_klp_atomic_replace.c
36
static struct klp_patch patch = {
tools/testing/selftests/livepatch/test_modules/test_klp_atomic_replace.c
44
patch.replace = replace;
tools/testing/selftests/livepatch/test_modules/test_klp_atomic_replace.c
45
return klp_enable_patch(&patch);
tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_demo.c
102
static struct klp_patch patch = {
tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_demo.c
109
return klp_enable_patch(&patch);
tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_demo2.c
72
static struct klp_patch patch = {
tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_demo2.c
80
patch.replace = replace;
tools/testing/selftests/livepatch/test_modules/test_klp_callbacks_demo2.c
81
return klp_enable_patch(&patch);
tools/testing/selftests/livepatch/test_modules/test_klp_livepatch.c
32
static struct klp_patch patch = {
tools/testing/selftests/livepatch/test_modules/test_klp_livepatch.c
39
return klp_enable_patch(&patch);
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
141
static struct klp_patch patch = {
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
150
return klp_enable_patch(&patch);
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
32
static struct klp_patch patch;
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
38
loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE);
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
55
loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE);
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
68
loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE);
tools/testing/selftests/livepatch/test_modules/test_klp_state.c
80
loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE);
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
109
loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE);
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
170
static struct klp_patch patch = {
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
179
return klp_enable_patch(&patch);
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
32
static struct klp_patch patch;
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
45
loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE);
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
62
loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE);
tools/testing/selftests/livepatch/test_modules/test_klp_state2.c
90
loglevel_state = klp_get_state(&patch, CONSOLE_LOGLEVEL_STATE);
tools/testing/selftests/livepatch/test_modules/test_klp_syscall.c
101
return klp_enable_patch(&patch);
tools/testing/selftests/livepatch/test_modules/test_klp_syscall.c
76
static struct klp_patch patch = {