/linux/tools/testing/selftests/bpf/progs/ |
H A D | connect_force_port6.c | 32 struct svc_addr *orig; in connect6() local 44 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, in connect6() 46 if (!orig) in connect6() 49 orig->addr[0] = ctx->user_ip6[0]; in connect6() 50 orig->addr[1] = ctx->user_ip6[1]; in connect6() 51 orig->addr[2] = ctx->user_ip6[2]; in connect6() 52 orig->addr[3] = ctx->user_ip6[3]; in connect6() 53 orig->port = ctx->user_port; in connect6() 84 struct svc_addr *orig; in getpeername6() local 91 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, 0); in getpeername6() [all …]
|
H A D | connect_force_port4.c | 33 struct svc_addr *orig; in connect4() local 45 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, in connect4() 47 if (!orig) in connect4() 50 orig->addr = ctx->user_ip4; in connect4() 51 orig->port = ctx->user_port; in connect4() 76 struct svc_addr *orig; in getpeername4() local 83 orig = bpf_sk_storage_get(&service_mapping, ctx->sk, 0, 0); in getpeername4() 84 if (orig) { in getpeername4() 85 ctx->user_ip4 = orig->addr; in getpeername4() 86 ctx->user_port = orig->port; in getpeername4()
|
/linux/net/batman-adv/ |
H A D | multicast.c | 1281 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid)) { in batadv_mcast_forw_send_orig() 1605 struct batadv_orig_node *orig, in batadv_mcast_want_unsnoop_update() argument 1608 struct hlist_node *node = &orig->mcast_want_all_unsnoopables_node; in batadv_mcast_want_unsnoop_update() 1611 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_unsnoop_update() 1615 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES)) { in batadv_mcast_want_unsnoop_update() 1626 orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) { in batadv_mcast_want_unsnoop_update() 1650 struct batadv_orig_node *orig, in batadv_mcast_want_ipv4_update() argument 1653 struct hlist_node *node = &orig->mcast_want_all_ipv4_node; in batadv_mcast_want_ipv4_update() 1656 lockdep_assert_held(&orig->mcast_handler_lock); in batadv_mcast_want_ipv4_update() 1660 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4)) { in batadv_mcast_want_ipv4_update() [all …]
|
H A D | bridge_loop_avoidance.c | 90 hash = jhash(&gw->orig, sizeof(gw->orig), hash); in batadv_choose_backbone_gw() 111 if (!batadv_compare_eth(gw1->orig, gw2->orig)) in batadv_compare_backbone_gw() 270 ether_addr_copy(search_entry.orig, addr); in batadv_backbone_hash_find() 492 batadv_bla_get_backbone_gw(struct batadv_priv *bat_priv, const u8 *orig, in batadv_bla_get_backbone_gw() argument 499 entry = batadv_backbone_hash_find(bat_priv, orig, vid); in batadv_bla_get_backbone_gw() 506 orig, batadv_print_vid(vid)); in batadv_bla_get_backbone_gw() 519 ether_addr_copy(entry->orig, orig); in batadv_bla_get_backbone_gw() 536 orig_node = batadv_orig_hash_find(bat_priv, orig); in batadv_bla_get_backbone_gw() 645 "Sending REQUEST to %pM\n", backbone_gw->orig); in batadv_bla_send_request() 648 batadv_bla_send_claim(backbone_gw->bat_priv, backbone_gw->orig, in batadv_bla_send_request() [all …]
|
/linux/lib/ |
H A D | test_bitmap.c | 807 DECLARE_BITMAP(orig, 500); in test_for_each_set_bit_wrap() 811 bitmap_zero(orig, 500); in test_for_each_set_bit_wrap() 815 bitmap_set(orig, bit, 1); in test_for_each_set_bit_wrap() 818 bitmap_set(orig, 100, 50); in test_for_each_set_bit_wrap() 823 for_each_set_bit_wrap(bit, orig, 500, wr) in test_for_each_set_bit_wrap() 826 expect_eq_bitmap(orig, copy, 500); in test_for_each_set_bit_wrap() 832 DECLARE_BITMAP(orig, 500); in test_for_each_set_bit() 836 bitmap_zero(orig, 500); in test_for_each_set_bit() 841 bitmap_set(orig, bit, 1); in test_for_each_set_bit() 844 bitmap_set(orig, 100, 50); in test_for_each_set_bit() [all …]
|
/linux/tools/lib/perf/ |
H A D | cpumap.c | 441 * orig either gets freed and replaced with a new map, or reused in perf_cpu_map__merge() 446 struct perf_cpu_map *perf_cpu_map__merge(struct perf_cpu_map *orig, in perf_cpu_map__merge() 454 if (perf_cpu_map__is_subset(orig, other)) in perf_cpu_map__merge() 455 return orig; in perf_cpu_map__merge() 456 if (perf_cpu_map__is_subset(other, orig)) { in perf_cpu_map__merge() 457 perf_cpu_map__put(orig); in perf_cpu_map__merge() 461 tmp_len = __perf_cpu_map__nr(orig) + __perf_cpu_map__nr(other); in perf_cpu_map__intersect() 468 while (i < __perf_cpu_map__nr(orig) && j < __perf_cpu_map__nr(other)) { in perf_cpu_map__intersect() 469 if (__perf_cpu_map__cpu(orig, i).cpu <= __perf_cpu_map__cpu(other, j).cpu) { in perf_cpu_map__intersect() 470 if (__perf_cpu_map__cpu(orig, in perf_cpu_map__intersect() 415 perf_cpu_map__merge(struct perf_cpu_map * orig,struct perf_cpu_map * other) perf_cpu_map__merge() argument 459 perf_cpu_map__intersect(struct perf_cpu_map * orig,struct perf_cpu_map * other) perf_cpu_map__intersect() argument [all...] |
/linux/tools/lib/perf/include/internal/ |
H A D | rc_check.h | 66 struct original_##struct_name *orig; \ 80 result ? (result->orig = object, result) \ 86 #define RC_CHK_ACCESS(object) object->orig 91 zfree(&object->orig); \ 96 #define RC_CHK_GET(result, object) ADD_RC_CHK(result, (object ? object->orig : NULL)) 102 object->orig = NULL; \ 109 (object1 && object2 && object1->orig == object2->orig))
|
/linux/arch/mips/include/asm/ |
H A D | bitops.h | 184 unsigned long res, orig; in test_and_set_bit_lock() local 189 orig = __test_bit_op(*m, "%0", in test_and_set_bit_lock() 192 res = (orig & BIT(bit)) != 0; in test_and_set_bit_lock() 228 unsigned long res, orig; in test_and_clear_bit() local 240 orig = __test_bit_op(*m, "%0", in test_and_clear_bit() 244 res = (orig & BIT(bit)) != 0; in test_and_clear_bit() 265 unsigned long res, orig; in test_and_change_bit() local 272 orig = __test_bit_op(*m, "%0", in test_and_change_bit() 275 res = (orig & BIT(bit)) != 0; in test_and_change_bit() 286 unsigned long orig; in xor_unlock_is_negative_byte() local [all …]
|
/linux/drivers/mtd/nand/ |
H A D | ecc.c | 529 struct nand_page_io_req *orig, *tweak; in nand_ecc_tweak_req() local 535 orig = &ctx->orig_req; in nand_ecc_tweak_req() 539 if (orig->datalen < nanddev_page_size(nand)) { in nand_ecc_tweak_req() 547 if (orig->ooblen < nanddev_per_page_oobsize(nand)) { in nand_ecc_tweak_req() 556 if (orig->type == NAND_PAGE_WRITE) { in nand_ecc_tweak_req() 558 memcpy((void *)tweak->databuf.out + orig->dataoffs, in nand_ecc_tweak_req() 559 orig->databuf.out, orig->datalen); in nand_ecc_tweak_req() 562 memcpy((void *)tweak->oobbuf.out + orig->ooboffs, in nand_ecc_tweak_req() 563 orig->oobbuf.out, orig->ooblen); in nand_ecc_tweak_req() 571 struct nand_page_io_req *orig, *tweak; in nand_ecc_restore_req() local [all …]
|
/linux/drivers/net/wireless/realtek/rtw88/ |
H A D | hci.h | 198 u32 orig; in rtw_read32_mask() local 201 orig = rtw_read32(rtwdev, addr); in rtw_read32_mask() 202 ret = (orig & mask) >> shift; in rtw_read32_mask() 211 u32 orig; in rtw_read16_mask() local 214 orig = rtw_read16(rtwdev, addr); in rtw_read16_mask() 215 ret = (orig & mask) >> shift; in rtw_read16_mask() 224 u32 orig; in rtw_read8_mask() local 227 orig = rtw_read8(rtwdev, addr); in rtw_read8_mask() 228 ret = (orig & mask) >> shift; in rtw_read8_mask() 237 u32 orig; in rtw_write32_mask() local [all …]
|
/linux/arch/riscv/kernel/ |
H A D | kernel_mode_vector.c | 28 int orig; in riscv_v_start() local 30 orig = riscv_v_flags(); in riscv_v_start() 31 BUG_ON((orig & flags) != 0); in riscv_v_start() 32 riscv_v_flags_set(orig | flags); in riscv_v_start() 38 int orig; in riscv_v_stop() local 41 orig = riscv_v_flags(); in riscv_v_stop() 42 BUG_ON((orig & flags) == 0); in riscv_v_stop() 43 riscv_v_flags_set(orig & ~flags); in riscv_v_stop()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | si.c | 2425 u32 data, orig; in si_program_aspm() local 2432 orig = data = RREG32_PCIE_PORT(PCIE_LC_N_FTS_CNTL); in si_program_aspm() 2435 if (orig != data) in si_program_aspm() 2438 orig = data = RREG32_PCIE_PORT(PCIE_LC_CNTL3); in si_program_aspm() 2440 if (orig != data) in si_program_aspm() 2443 orig = data = RREG32_PCIE(PCIE_P_CNTL); in si_program_aspm() 2445 if (orig != data) in si_program_aspm() 2448 orig = data = RREG32_PCIE_PORT(PCIE_LC_CNTL); in si_program_aspm() 2457 if (orig != data) in si_program_aspm() 2463 orig = data = si_pif_phy0_rreg(adev,PB0_PIF_PWRDOWN_0); in si_program_aspm() [all …]
|
H A D | cik.c | 1691 u32 data, orig; in cik_program_aspm() local 1701 orig = data = RREG32_PCIE(ixPCIE_LC_N_FTS_CNTL); in cik_program_aspm() 1705 if (orig != data) in cik_program_aspm() 1708 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL3); in cik_program_aspm() 1710 if (orig != data) in cik_program_aspm() 1713 orig = data = RREG32_PCIE(ixPCIE_P_CNTL); in cik_program_aspm() 1715 if (orig != data) in cik_program_aspm() 1718 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL); in cik_program_aspm() 1728 if (orig != data) in cik_program_aspm() 1734 orig = data = RREG32_PCIE(ixPB0_PIF_PWRDOWN_0); in cik_program_aspm() [all …]
|
H A D | vi.c | 1108 u32 data, orig; in vi_enable_aspm() local 1110 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL); in vi_enable_aspm() 1117 if (orig != data) in vi_enable_aspm() 1123 u32 data, data1, orig; in vi_program_aspm() local 1133 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL); in vi_program_aspm() 1137 if (orig != data) in vi_program_aspm() 1140 orig = data = RREG32_PCIE(ixPCIE_LC_N_FTS_CNTL); in vi_program_aspm() 1144 if (orig != data) in vi_program_aspm() 1147 orig = data = RREG32_PCIE(ixPCIE_LC_CNTL3); in vi_program_aspm() 1149 if (orig != data) in vi_program_aspm() [all …]
|
/linux/net/netfilter/ |
H A D | xt_DSCP.c | 76 u_int8_t orig, nv; in tos_tg() local 78 orig = ipv4_get_dsfield(iph); in tos_tg() 79 nv = (orig & ~info->tos_mask) ^ info->tos_value; in tos_tg() 81 if (orig != nv) { in tos_tg() 96 u_int8_t orig, nv; in tos_tg6() local 98 orig = ipv6_get_dsfield(iph); in tos_tg6() 99 nv = (orig & ~info->tos_mask) ^ info->tos_value; in tos_tg6() 101 if (orig != nv) { in tos_tg6()
|
/linux/arch/mips/generic/ |
H A D | board-sead3.c | 184 unsigned int freq, orig, tick = 0; in sead3_measure_hpt_freq() local 189 orig = readl(status_reg) & 0x2; /* get original sample */ in sead3_measure_hpt_freq() 191 while ((readl(status_reg) & 0x2) == orig) in sead3_measure_hpt_freq() 193 orig = orig ^ 0x2; /* flip the bit */ in sead3_measure_hpt_freq() 200 while ((readl(status_reg) & 0x2) == orig) in sead3_measure_hpt_freq() 202 orig = orig ^ 0x2; /* flip the bit */ in sead3_measure_hpt_freq()
|
/linux/arch/arm/probes/kprobes/ |
H A D | opt-arm.c | 182 int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *orig) in NOKPROBE_SYMBOL() 189 if (!can_optimize(orig)) in NOKPROBE_SYMBOL() 222 (long)orig->addr + 8) & 0xfe000003; in NOKPROBE_SYMBOL() 239 BUG_ON(orig->ainsn.stack_space < 0); in NOKPROBE_SYMBOL() 241 stack_protect += orig->ainsn.stack_space; in NOKPROBE_SYMBOL() 260 orig->ainsn.kprobe_direct_exec = false; in NOKPROBE_SYMBOL() 261 if (can_kprobe_direct_exec(orig->ainsn.register_usage_flags)) { in NOKPROBE_SYMBOL() 273 code[TMPL_RESTORE_ORIGN_INSN] = __opcode_to_mem_arm(orig->opcode); in NOKPROBE_SYMBOL() 277 orig->ainsn.kprobe_direct_exec = true; in NOKPROBE_SYMBOL()
|
/linux/scripts/ |
H A D | Makefile.package | 90 debian-orig-suffix := \ 100 PHONY += debian-orig 101 debian-orig: private source = $(shell dpkg-parsechangelog -S Source) 102 debian-orig: private version = $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*$$//') 103 debian-orig: private orig-name = $(source)_$(version).orig.tar$(debian-orig-suffix) 104 debian-orig: mkdebian-opts = --need-source 105 debian-orig [all...] |
/linux/drivers/scsi/sym53c8xx_2/ |
H A D | sym_misc.h | 91 static inline void sym_que_move(struct sym_quehead *orig, in sym_que_move() argument 96 first = orig->flink; in sym_que_move() 97 if (first != orig) { in sym_que_move() 100 last = orig->blink; in sym_que_move() 103 orig->flink = orig; in sym_que_move() 104 orig->blink = orig; in sym_que_move()
|
/linux/drivers/ptp/ |
H A D | ptp_clockmatrix.h | 26 #define SET_U16_LSB(orig, val8) (orig = (0xff00 & (orig)) | (val8)) argument 27 #define SET_U16_MSB(orig, val8) (orig = (0x00ff & (orig)) | (val8 << 8)) argument
|
/linux/include/uapi/linux/ |
H A D | batadv_packet.h | 222 __u8 orig[ETH_ALEN]; member 248 __u8 orig[ETH_ALEN]; member 266 __u8 orig[ETH_ALEN]; member 294 __u8 orig[ETH_ALEN]; member 317 __u8 orig[ETH_ALEN]; member 346 __u8 orig[ETH_ALEN]; member 385 __u8 orig[ETH_ALEN]; member 470 __u8 orig[ETH_ALEN]; member 490 __u8 orig[ETH_ALEN]; member
|
/linux/drivers/md/ |
H A D | dm-io-rewind.c | 145 struct bio *orig = io->orig_bio; in dm_io_rewind() local 146 struct bio *new_orig = bio_alloc_clone(orig->bi_bdev, orig, in dm_io_rewind() 154 orig->bi_iter.bi_size)); in dm_io_rewind() 157 bio_chain(new_orig, orig); in dm_io_rewind() 162 atomic_dec(&orig->__bi_remaining); in dm_io_rewind()
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | devlink_lib.sh | 169 local -a orig=(${DEVLINK_ORIG[$key]}) 171 if [[ -z $orig ]]; then 174 devlink sb port pool set $port pool $pool th $orig 207 local -a orig=(${DEVLINK_ORIG[$key]}) 209 if [[ -z ${orig[0]} ]]; then 213 size ${orig[0]} thtype ${orig[1]} 254 local -a orig=(${DEVLINK_ORIG[$key]}) 256 if [[ -z ${orig[0]} ]]; then 260 pool ${orig[0]} th ${orig[1]}
|
/linux/tools/objtool/ |
H A D | special.c | 23 unsigned char size, orig, new; member 34 .orig = ALT_ORIG_OFFSET, 44 .orig = JUMP_ORIG_OFFSET, 51 .orig = EX_ORIG_OFFSET, 87 orig_reloc = find_reloc_by_dest(elf, sec, offset + entry->orig); in get_alt_entry() 89 WARN_FUNC("can't find orig reloc", sec, offset + entry->orig); in get_alt_entry()
|
/linux/net/netfilter/ipvs/ |
H A D | ip_vs_nfct.c | 143 struct nf_conntrack_tuple *orig, new_reply; in ip_vs_nfct_expect_callback() local 157 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback() 158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback() 159 &orig->src.u3, orig->src.u.tcp.port, in ip_vs_nfct_expect_callback() 160 &orig->dst.u3, orig->dst.u.tcp.port, &p); in ip_vs_nfct_expect_callback() 194 __func__, ct, ct->status, ARG_TUPLE(orig)); in ip_vs_nfct_expect_callback()
|