| /openbmc/u-boot/lib/lzo/ |
| H A D | lzo1x_decompress.c | 20 #define HAVE_IP(x, ip_end, ip) ((size_t)(ip_end - ip) < (x)) argument 146 const unsigned char *ip = in, *m_pos; in lzo1x_decompress_safe() local 152 if (*ip > 17) { in lzo1x_decompress_safe() 153 t = *ip++ - 17; in lzo1x_decompress_safe() 158 if (HAVE_IP(t + 1, ip_end, ip)) in lzo1x_decompress_safe() 161 *op++ = *ip++; in lzo1x_decompress_safe() 166 while ((ip < ip_end)) { in lzo1x_decompress_safe() 167 t = *ip++; in lzo1x_decompress_safe() 171 if (HAVE_IP(1, ip_end, ip)) in lzo1x_decompress_safe() 173 while (*ip == 0) { in lzo1x_decompress_safe() [all …]
|
| /openbmc/u-boot/fs/jffs2/ |
| H A D | compr_lzo.c | 97 #define TEST_IP (ip < ip_end) 101 if ((lzo_uint)(ip_end - ip) < (lzo_uint)(x)) goto input_overrun 154 register const lzo_byte *ip; in lzo1x_decompress() local 165 ip = in; in lzo1x_decompress() 167 if (*ip > 17) in lzo1x_decompress() 169 t = *ip++ - 17; in lzo1x_decompress() 175 *op++ = *ip++; in lzo1x_decompress() 182 t = *ip++; in lzo1x_decompress() 188 while (*ip == 0) in lzo1x_decompress() 191 ip++; in lzo1x_decompress() [all …]
|
| /openbmc/u-boot/arch/arm/lib/ |
| H A D | div64.S | 52 subs ip, r4, #1 54 tst ip, r4 64 @ The bit position is stored in ip. 69 clz ip, xh 70 sub yl, yl, ip 71 mov ip, #1 72 mov ip, ip, lsl yl 78 mov ip, #1 82 movcc ip, ip, lsl #1 90 orrcs yh, yh, ip [all …]
|
| H A D | memset.S | 22 mov ip, r0 @ preserve r0 as return value 43 stmiage ip!, {r1, r3, r8, lr} @ 64 bytes at a time. 44 stmiage ip!, {r1, r3, r8, lr} 45 stmiage ip!, {r1, r3, r8, lr} 46 stmiage ip!, {r1, r3, r8, lr} 53 stmiane ip!, {r1, r3, r8, lr} 54 stmiane ip!, {r1, r3, r8, lr} 56 stmiane ip!, {r1, r3, r8, lr} 75 tstgt ip, #31 78 and r8, ip, #31 [all …]
|
| H A D | memcpy.S | 68 ands ip, r0, #3 71 ands ip, r1, #3 78 CALGN( ands ip, r0, #31 ) 79 CALGN( rsb r3, ip, #32 ) 84 CALGN( add pc, r4, ip ) 94 4: ldr8w r1, r3, r4, r5, r6, r7, r8, ip, lr, abort=20f 96 str8w r0, r3, r4, r5, r6, r7, r8, ip, lr, abort=20f 101 5: ands ip, r2, #28 102 rsb ip, ip, #32 104 lsl ip, ip, #LDR1W_SHIFT [all …]
|
| H A D | muldi3.S | 31 mov ip, xl, lsr #16 33 bic xl, xl, ip, lsl #16 35 mla xh, yh, ip, xh 38 mul ip, yl, ip 41 adds xl, xl, ip, lsl #16 42 adc xh, xh, ip, lsr #16
|
| /openbmc/u-boot/net/ |
| H A D | link_local.c | 52 static struct in_addr ip; variable 70 struct in_addr ip; in pick() local 75 ip.s_addr = htonl((LINKLOCAL_ADDR + 0x0100) + tmp); in pick() 76 return ip; in pick() 107 ip = env_get_ip("llipaddr"); in link_local_start() 108 if (ip.s_addr != 0 && in link_local_start() 109 (ntohl(ip.s_addr) & IN_CLASSB_NET) != LINKLOCAL_ADDR) { in link_local_start() 117 if (ip.s_addr == 0) in link_local_start() 118 ip = pick(); in link_local_start() 141 nprobes, eth_get_name(), &ip); in link_local_timeout() [all …]
|
| H A D | net.c | 915 static struct ip_udp_hdr *__net_defragment(struct ip_udp_hdr *ip, int *lenp) in __net_defragment() argument 921 uchar *indata = (uchar *)ip; in __net_defragment() 923 u16 ip_off = ntohs(ip->ip_off); in __net_defragment() 930 len = ntohs(ip->ip_len) - IP_HDR_SIZE; in __net_defragment() 935 if (!total_len || localip->ip_id != ip->ip_id) { in __net_defragment() 943 memcpy(localip, ip, IP_HDR_SIZE); in __net_defragment() 1035 static inline struct ip_udp_hdr *net_defragment(struct ip_udp_hdr *ip, in net_defragment() argument 1038 u16 ip_off = ntohs(ip->ip_off); in net_defragment() 1040 return ip; /* not a fragment */ in net_defragment() 1041 return __net_defragment(ip, lenp); in net_defragment() [all …]
|
| H A D | ping.c | 77 void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len) in ping_receive() argument 79 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in ping_receive() 86 src_ip = net_read_ip((void *)&ip->ip_src); in ping_receive() 97 ip->ip_sum = 0; in ping_receive() 98 ip->ip_off = 0; in ping_receive() 99 net_copy_ip((void *)&ip->ip_dst, &ip->ip_src); in ping_receive() 100 net_copy_ip((void *)&ip->ip_src, &net_ip); in ping_receive() 101 ip->ip_sum = compute_ip_checksum(ip, IP_HDR_SIZE); in ping_receive()
|
| /openbmc/openbmc/meta-google/recipes-google/networking/gbmc-bridge/ |
| H A D | gbmc-br-lib.sh | 55 local ip="$2" 59 if ! ip_to_bytes pfx_bytes "$ip"; then 60 echo "Invalid IPv6 for $name: $ip" >&2 61 ip= 64 if [ -z "$ip" ]; then 66 rm -f /run/systemd/network/{00,}-bmc-gbmcbr.network.d/50-ip-"$name".conf 111 for file in /run/systemd/network/{00,}-bmc-gbmcbr.network.d/50-ip-$name.conf; do 124 (shopt -s nullglob; rm -rf /run/systemd/network/{00,}-bmc-gbmcbr.network.d/50-ip-static*.conf) 127 local ip 129 for ip in $(shopt -s nullglob; cat /run/gbmc-br-ips/* 2>/dev/null); do [all …]
|
| H A D | gbmc-br-gw-src.sh | 73 ip route "$op" $route_new metric "$primary_rt_metric" 2>/dev/null 76 ip route "$op" $route_new metric "$primary_rt_metric" 95 for file in /run/systemd/network/{00,}-bmc-gbmcbr.network.d/70-ip-hybrid-route.conf; do 106 for file in /run/systemd/network/{00,}-bmc-gbmcbr.network.d/70-ip-hybrid-route.conf; do 137 local ip 140 for ip in "${!gbmc_br_gw_src_ips[@]}"; do 142 rt="$(ip -6 route get 2000:: from "$ip" 2>/dev/null)" 146 dev_ip_to_metric["$rt_dev-$ip"]+="$rt_metric" 149 primary_ip=$(cat /var/google/gbmc-br-ip 2>/dev/null) 156 for ip in "${!gbmc_br_gw_src_ips[@]}"; do [all …]
|
| /openbmc/openbmc/meta-google/recipes-google/networking/gbmc-nic-config/ |
| H A D | gbmc-nic-cn.sh.in | 28 local ip="$2" 30 echo "gBMC NIC CN $act $ip: ${gbmc_nic_cn_intfs[*]}" >&2 32 ip_to_bytes pfx_bytes "$ip" 40 Destination=$ip/65 62 ip -6 route add "$ip/65" dev gbmcbr metric 1024 2>dev/null || true 66 ip -6 neigh "$act" proxy "$cn_ip" dev "$intf" || st=$? 82 if ! ip_to_bytes ip_bytes "$ip"; then 83 echo "gBMC NIC CN invalid IP: $ip" >&2 96 if [[ $action == add && "$gbmc_nic_cn_addr" != "$ip" ]]; then 100 gbmc_nic_cn_addr="$ip" [all …]
|
| H A D | gbmc-nic-neigh.sh.in | 28 local ip="$2" 30 echo "gBMC NIC Neigh $act $ip: ${gbmc_nic_neigh_intfs[*]}" >&2 33 ip_to_bytes pfx_bytes "$ip" 35 local neigh_ips=("$ip") 50 To=$ip/64 54 From=$ip/64 81 ip6 saddr != $ip/64 ip6 daddr $ip/64 accept 100 if ! ip_to_bytes ip_bytes "$ip"; then 101 echo "gBMC Bridge Ensure RA Invalid IP: $ip" >&2 114 if [[ $action == add && "$gbmc_nic_neigh_addr" != "$ip" ]]; then [all …]
|
| /openbmc/qemu/net/ |
| H A D | checksum.c | 63 struct ip_header *ip; in net_checksum_calculate() local 104 ip = (struct ip_header *)((uint8_t *)data + mac_hdr_len); in net_checksum_calculate() 106 if (IP_HEADER_VERSION(ip) != IP_HEADER_VERSION_4) { in net_checksum_calculate() 112 stw_he_p(&ip->ip_sum, 0); in net_checksum_calculate() 113 csum = net_raw_checksum((uint8_t *)ip, IP_HDR_GET_LEN(ip)); in net_checksum_calculate() 114 stw_be_p(&ip->ip_sum, csum); in net_checksum_calculate() 117 if (IP4_IS_FRAGMENT(ip)) { in net_checksum_calculate() 121 ip_len = lduw_be_p(&ip->ip_len); in net_checksum_calculate() 128 ip_len -= IP_HDR_GET_LEN(ip); in net_checksum_calculate() 130 switch (ip->ip_p) { in net_checksum_calculate() [all …]
|
| /openbmc/u-boot/fs/zfs/ |
| H A D | zfs_fletcher.c | 38 const uint64_t *ip = buf; in fletcher_2_endian() local 39 const uint64_t *ipend = ip + (size / sizeof(uint64_t)); in fletcher_2_endian() 42 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_endian() 43 a0 += zfs_to_cpu64(ip[0], endian); in fletcher_2_endian() 44 a1 += zfs_to_cpu64(ip[1], endian); in fletcher_2_endian() 59 const uint32_t *ip = buf; in fletcher_4_endian() local 60 const uint32_t *ipend = ip + (size / sizeof(uint32_t)); in fletcher_4_endian() 63 for (a = b = c = d = 0; ip < ipend; ip++) { in fletcher_4_endian() 64 a += zfs_to_cpu32(ip[0], endian); in fletcher_4_endian()
|
| /openbmc/u-boot/lib/ |
| H A D | lz4.c | 83 const BYTE* ip = (const BYTE*) source; in LZ4_decompress_generic() local 84 const BYTE* const iend = ip + inputSize; in LZ4_decompress_generic() 102 …if ((endOnInput) && (unlikely(outputSize==0))) return ((inputSize==1) && (*ip==0)) ? 0 : -1; /* E… in LZ4_decompress_generic() 103 if ((!endOnInput) && (unlikely(outputSize==0))) return (*ip==0?1:-1); in LZ4_decompress_generic() 114 token = *ip++; in LZ4_decompress_generic() 120 s = *ip++; in LZ4_decompress_generic() 123 while (likely((endOnInput)?ip<iend-RUN_MASK:1) && (s==255)); in LZ4_decompress_generic() 125 …if ((safeDecode) && unlikely((size_t)(ip+length)<(size_t)(ip))) goto _output_error; /* overflow … in LZ4_decompress_generic() 130 …if (((endOnInput) && ((cpy>(partialDecoding?oexit:oend-MFLIMIT)) || (ip+length>iend-(2+1+LASTLITER… in LZ4_decompress_generic() 136 …if ((endOnInput) && (ip+length > iend)) goto _output_error; /* Error : read attempt beyond end o… in LZ4_decompress_generic() [all …]
|
| /openbmc/openbmc/meta-google/recipes-google/ncsi/files/ |
| H A D | gbmc-ncsi-br-deprecated-ips.sh.in | 34 local ip 35 for ip in "${!gbmc_ncsi_br_deprecated_ips_savedconf[@]}"; do 36 [[ ${gbmc_ncsi_br_deprecated_ips_savedconf["$ip"]} != $intf ]] && continue 37 ip -6 neigh replace proxy $ip dev $intf || st=$? 43 local ip="$1" 44 local intf="${gbmc_ncsi_br_deprecated_ips_lastip["$ip"]}" 45 local intf_old="${gbmc_ncsi_br_deprecated_ips_confip["$ip"]-}" 46 local del="${gbmc_ncsi_br_deprecated_ips_del["$ip"]-}" 58 printf 'gBMC NCSI %s Deprecated Addrs to %s: %s\n' "$act" "$intf" "$ip" >&2 62 ip_to_bytes pfx_bytes "$ip" [all …]
|
| /openbmc/qemu/hw/ipack/ |
| H A D | tpci200.c | 109 IPackDevice *ip = opaque; in tpci200_set_irq() local 110 IPackBus *bus = IPACK_BUS(qdev_get_parent_bus(DEVICE(ip))); in tpci200_set_irq() 113 unsigned ip_n = ip->slot; in tpci200_set_irq() 116 assert(ip->slot >= 0 && ip->slot < N_MODULES); in tpci200_set_irq() 273 IPackDevice *ip = ipack_device_find(&s->bus, i); in tpci200_write_las0() local 275 if (ip != NULL) { in tpci200_write_las0() 278 qemu_irq_lower(&ip->irq[0]); in tpci200_write_las0() 282 qemu_irq_lower(&ip->irq[1]); in tpci200_write_las0() 310 IPackDevice *ip; in tpci200_read_las1() local 323 ip = ipack_device_find(&s->bus, ip_n); in tpci200_read_las1() [all …]
|
| /openbmc/bmcweb/redfish-core/include/utils/ |
| H A D | ip_utils.hpp | 25 inline std::string toString(const boost::asio::ip::address& ipAddr) in toString() 29 return boost::asio::ip::make_address_v4(boost::asio::ip::v4_mapped, in toString() 46 inline bool ipv4VerifyIpAndGetBitcount(const std::string& ip, in ipv4VerifyIpAndGetBitcount() argument 50 boost::asio::ip::address_v4 addr = boost::asio::ip::make_address_v4(ip, ec); in ipv4VerifyIpAndGetBitcount() 59 boost::asio::ip::address_v4::bytes_type maskBytes = addr.to_bytes(); in ipv4VerifyIpAndGetBitcount()
|
| /openbmc/openbmc/meta-facebook/meta-anacapa/recipes-phosphor/network/phosphor-network/ |
| H A D | ncsi-bounce | 5 ip link show "$1" | awk -F':' 'NR==1 {print $1}' 24 ip link set "$IFACE" down 26 ip link set "$IFACE" up 28 ip addr 38 if ip link show eth1 >/dev/null 2>&1 ; then 40 elif ip link show eth0 >/dev/null 2>&1 ; then
|
| /openbmc/openbmc/poky/meta/recipes-core/busybox/files/ |
| H A D | simple.script | 17 if [ -x /SBIN_DIR/ip ]; then 31 /SBIN_DIR/ip -4 addr flush dev $interface 32 /SBIN_DIR/ip link set dev $interface up 41 /SBIN_DIR/ip addr add dev $interface local $ip/$mask $BROADCAST 43 /SBIN_DIR/ifconfig $interface $ip $BROADCAST $NETMASK 49 … while /SBIN_DIR/ip route del default dev $interface 2>/dev/null ; do 62 … /SBIN_DIR/ip route add default via $i metric $metric dev $interface
|
| /openbmc/openbmc/meta-google/recipes-google/networking/ |
| H A D | gbmc-ip-monitor.bb | 9 file://gbmc-ip-monitor.service \ 10 file://gbmc-ip-monitor.sh \ 11 file://gbmc-ip-monitor-test.sh \ 24 SYSTEMD_SERVICE:${PN} += "gbmc-ip-monitor.service" 27 SYSROOT="$PKG_CONFIG_SYSROOT_DIR" bash gbmc-ip-monitor-test.sh || exit 32 install -m0755 gbmc-ip-monitor.sh ${D}${libexecdir}/ 35 install -m0644 gbmc-ip-monitor.service ${D}${systemd_system_unitdir}/
|
| /openbmc/openbmc/poky/meta/recipes-connectivity/iproute2/ |
| H A D | iproute2_6.14.0.bb | 3 TCP / IP networking and traffic control in Linux. Of the utilities ip \ 4 and tc are the most important. ip controls IPv4 and IPv6 \ 30 IPROUTE2_MAKE_SUBDIRS = "lib tc ip bridge misc genl ${@bb.utils.filter('PACKAGECONFIG', 'devlink ti… 55 mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2 72 ${PN}-ip \ 84 RDEPENDS:${PN} += "${PN}-ip" 92 FILES:${PN}-ip = "${base_sbindir}/ip.* ${libdir}/iproute2" 105 ALTERNATIVE:${PN}-ip = "ip" 106 ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" 107 ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
|
| /openbmc/qemu/hw/i386/ |
| H A D | vapic.c | 208 target_ulong ip = *pip; in evaluate_tpr_instruction() local 213 if ((ip & 0xf0000000ULL) != 0x80000000ULL && in evaluate_tpr_instruction() 214 (ip & 0xf0000000ULL) != 0xe0000000ULL) { in evaluate_tpr_instruction() 242 if (cpu_memory_rw_debug(cs, ip - instr->length, opcode, in evaluate_tpr_instruction() 247 ip -= instr->length; in evaluate_tpr_instruction() 253 if (cpu_memory_rw_debug(cs, ip, opcode, sizeof(opcode), 0) < 0) { in evaluate_tpr_instruction() 270 if (cpu_memory_rw_debug(cs, ip + instr->addr_offset, in evaluate_tpr_instruction() 282 *pip = ip; in evaluate_tpr_instruction() 286 static int update_rom_mapping(VAPICROMState *s, CPUX86State *env, target_ulong ip) in update_rom_mapping() argument 304 rom_state_vaddr = s->rom_state_paddr + (ip & 0xf0000000); in update_rom_mapping() [all …]
|
| /openbmc/qemu/hw/intc/ |
| H A D | loongson_liointc.c | 64 uint32_t irq, core, ip; in update_irq() local 90 for (ip = 0; ip < NUM_IPS; ip++) { in update_irq() 91 if ((p->mapper[irq] & (1 << (ip + 4)))) { in update_irq() 92 per_ip_isr[ip] |= (1 << irq); in update_irq() 99 for (ip = 0; ip < NUM_IPS; ip++) { in update_irq() 100 int parent = PARENT_COREx_IPy(core, ip); in update_irq() 102 (!!p->per_core_isr[core] && !!per_ip_isr[ip])) { in update_irq()
|