/external/syslinux/gpxe/src/drivers/net/ |
D | bnx2.c | 137 bnx2_reg_rd_ind(struct bnx2 *bp, u32 offset) in bnx2_reg_rd_ind() argument 139 REG_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); in bnx2_reg_rd_ind() 140 return (REG_RD(bp, BNX2_PCICFG_REG_WINDOW)); in bnx2_reg_rd_ind() 144 bnx2_reg_wr_ind(struct bnx2 *bp, u32 offset, u32 val) in bnx2_reg_wr_ind() argument 146 REG_WR(bp, BNX2_PCICFG_REG_WINDOW_ADDRESS, offset); in bnx2_reg_wr_ind() 147 REG_WR(bp, BNX2_PCICFG_REG_WINDOW, val); in bnx2_reg_wr_ind() 151 bnx2_ctx_wr(struct bnx2 *bp, u32 cid_addr, u32 offset, u32 val) in bnx2_ctx_wr() argument 154 REG_WR(bp, BNX2_CTX_DATA_ADR, offset); in bnx2_ctx_wr() 155 REG_WR(bp, BNX2_CTX_DATA, val); in bnx2_ctx_wr() 159 bnx2_read_phy(struct bnx2 *bp, u32 reg, u32 *val) in bnx2_read_phy() argument [all …]
|
D | b44.c | 59 static inline u32 br32(const struct b44_private *bp, u32 reg) in br32() argument 61 return readl(bp->regs + reg); in br32() 65 static inline void bw32(const struct b44_private *bp, u32 reg, u32 val) in bw32() argument 67 writel(val, bp->regs + reg); in bw32() 71 static inline void bflush(const struct b44_private *bp, u32 reg, u32 timeout) in bflush() argument 73 readl(bp->regs + reg); in bflush() 102 static u32 pending_tx_index(struct b44_private *bp) in pending_tx_index() argument 104 u32 pending = br32(bp, B44_DMATX_STAT); in pending_tx_index() 116 static u32 pending_rx_index(struct b44_private *bp) in pending_rx_index() argument 118 u32 pending = br32(bp, B44_DMARX_STAT); in pending_rx_index() [all …]
|
/external/tcpdump/ |
D | print-pim.c | 140 static void pimv2_print(netdissect_options *, register const u_char *bp, register u_int len, const … 144 register const u_char *bp, register u_int len) in pimv1_join_prune_print() argument 150 if (ND_TTEST2(bp[0], 30) && bp[11] == 1 && in pimv1_join_prune_print() 151 ((njoin = EXTRACT_16BITS(&bp[20])) + EXTRACT_16BITS(&bp[22])) == 1) { in pimv1_join_prune_print() 154 ND_PRINT((ndo, " RPF %s ", ipaddr_string(ndo, bp))); in pimv1_join_prune_print() 155 hold = EXTRACT_16BITS(&bp[6]); in pimv1_join_prune_print() 161 ipaddr_string(ndo, &bp[26]), bp[25] & 0x3f, in pimv1_join_prune_print() 162 ipaddr_string(ndo, &bp[12]))); in pimv1_join_prune_print() 163 if (EXTRACT_32BITS(&bp[16]) != 0xffffffff) in pimv1_join_prune_print() 164 ND_PRINT((ndo, "/%s", ipaddr_string(ndo, &bp[16]))); in pimv1_join_prune_print() [all …]
|
D | print-dvmrp.c | 70 register const u_char *bp, register u_int len) in dvmrp_print() argument 76 if (bp >= ep) in dvmrp_print() 79 ND_TCHECK(bp[1]); in dvmrp_print() 80 type = bp[1]; in dvmrp_print() 83 bp += 8; in dvmrp_print() 91 if (print_probe(ndo, bp, ep, len) < 0) in dvmrp_print() 99 if (print_report(ndo, bp, ep, len) < 0) in dvmrp_print() 110 if (print_neighbors(ndo, bp, ep, len) < 0) in dvmrp_print() 124 bp -= 4; in dvmrp_print() 125 ND_TCHECK2(bp[0], 4); in dvmrp_print() [all …]
|
D | print-pgm.c | 147 register const u_char *bp, register u_int length, in pgm_print() argument 160 pgm = (const struct pgm_header *)bp; in pgm_print() 227 bp = (const u_char *) (spm + 1); in pgm_print() 231 ND_TCHECK2(*bp, sizeof(struct in_addr)); in pgm_print() 232 addrtostr(bp, nla_buf, sizeof(nla_buf)); in pgm_print() 233 bp += sizeof(struct in_addr); in pgm_print() 236 ND_TCHECK2(*bp, sizeof(struct in6_addr)); in pgm_print() 237 addrtostr6(bp, nla_buf, sizeof(nla_buf)); in pgm_print() 238 bp += sizeof(struct in6_addr); in pgm_print() 261 bp = (const u_char *) (poll_msg + 1); in pgm_print() [all …]
|
D | print-gre.c | 88 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print() argument 92 ND_TCHECK2(*bp, 2); in gre_print() 95 vers = EXTRACT_16BITS(bp) & GRE_VERS_MASK; in gre_print() 100 gre_print_0(ndo, bp, len); in gre_print() 103 gre_print_1(ndo, bp, len); in gre_print() 117 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) in gre_print_0() argument 122 flags = EXTRACT_16BITS(bp); in gre_print_0() 128 bp += 2; in gre_print_0() 130 ND_TCHECK2(*bp, 2); in gre_print_0() 133 prot = EXTRACT_16BITS(bp); in gre_print_0() [all …]
|
D | print-bootp.c | 286 register const struct bootp *bp; in bootp_print() local 290 bp = (const struct bootp *)cp; in bootp_print() 291 ND_TCHECK(bp->bp_op); in bootp_print() 294 tok2str(bootp_op_values, "unknown (0x%02x)", bp->bp_op))); in bootp_print() 296 ND_TCHECK(bp->bp_hlen); in bootp_print() 297 if (bp->bp_htype == 1 && bp->bp_hlen == 6 && bp->bp_op == BOOTPREQUEST) { in bootp_print() 298 ND_TCHECK2(bp->bp_chaddr[0], 6); in bootp_print() 299 ND_PRINT((ndo, " from %s", etheraddr_string(ndo, bp->bp_chaddr))); in bootp_print() 307 ND_TCHECK(bp->bp_secs); in bootp_print() 310 if (bp->bp_htype != 1) in bootp_print() [all …]
|
D | print-rx.c | 526 register const u_char *bp, int length, int sport, int dport, in rx_print() argument 533 if (ndo->ndo_snapend - bp < (int)sizeof (struct rx_header)) { in rx_print() 538 rxh = (const struct rx_header *) bp; in rx_print() 593 rx_cache_insert(ndo, bp, (const struct ip *) bp2, dport); in rx_print() 597 fs_print(ndo, bp, length); in rx_print() 600 cb_print(ndo, bp, length); in rx_print() 603 prot_print(ndo, bp, length); in rx_print() 606 vldb_print(ndo, bp, length); in rx_print() 609 kauth_print(ndo, bp, length); in rx_print() 612 vol_print(ndo, bp, length); in rx_print() [all …]
|
D | print-resp.c | 213 resp_print(netdissect_options *ndo, const u_char *bp, u_int length) in resp_print() argument 217 if(!bp || length <= 0) in resp_print() 231 ret_len = resp_parse(ndo, bp, length_cur); in resp_print() 233 bp += ret_len; in resp_print() 244 resp_parse(netdissect_options *ndo, register const u_char *bp, int length) in resp_parse() argument 250 ND_TCHECK(*bp); in resp_parse() 251 op = *bp; in resp_parse() 255 case RESP_SIMPLE_STRING: ret_len = resp_print_simple_string(ndo, bp, length); break; in resp_parse() 256 case RESP_INTEGER: ret_len = resp_print_integer(ndo, bp, length); break; in resp_parse() 257 case RESP_ERROR: ret_len = resp_print_error(ndo, bp, length); break; in resp_parse() [all …]
|
D | print-mobility.c | 116 const u_char *bp, const unsigned len) in mobility_opt_print() argument 121 ND_TCHECK(bp[i]); in mobility_opt_print() 122 if (bp[i] == IP6MOPT_PAD1) in mobility_opt_print() 126 ND_TCHECK(bp[i + 1]); in mobility_opt_print() 127 optlen = bp[i + 1] + 2; in mobility_opt_print() 134 ND_TCHECK(bp[i + optlen]); in mobility_opt_print() 136 switch (bp[i]) { in mobility_opt_print() 153 ND_TCHECK_16BITS(&bp[i+2]); in mobility_opt_print() 155 EXTRACT_16BITS(&bp[i+2]) << 2)); in mobility_opt_print() 162 ND_TCHECK_128BITS(&bp[i+2]); in mobility_opt_print() [all …]
|
D | print-igmp.c | 107 register const u_char *bp, register u_int len) in print_mtrace() argument 109 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mtrace() 129 register const u_char *bp, register u_int len) in print_mresp() argument 131 register const struct tr_query *tr = (const struct tr_query *)(bp + 8); in print_mresp() 151 register const u_char *bp, register u_int len) in print_igmpv3_report() argument 161 ND_TCHECK2(bp[6], 2); in print_igmpv3_report() 162 ngroups = EXTRACT_16BITS(&bp[6]); in print_igmpv3_report() 172 ND_TCHECK2(bp[group+4], 4); in print_igmpv3_report() 173 ND_PRINT((ndo, " [gaddr %s", ipaddr_string(ndo, &bp[group+4]))); in print_igmpv3_report() 175 bp[group]))); in print_igmpv3_report() [all …]
|
D | print-nsh.c | 49 nsh_print(netdissect_options *ndo, const u_char *bp, u_int len) in nsh_print() argument 69 ND_TCHECK2(*bp, NSH_BASE_HDR_LEN + NSH_SERVICE_PATH_HDR_LEN); in nsh_print() 71 ver = (uint8_t)(*bp >> 6); in nsh_print() 72 flags = *bp; in nsh_print() 73 bp += 1; in nsh_print() 74 length = *bp; in nsh_print() 75 bp += 1; in nsh_print() 76 md_type = *bp; in nsh_print() 77 bp += 1; in nsh_print() 78 next_protocol = *bp; in nsh_print() [all …]
|
D | print-ntp.c | 207 register const struct ntpdata *bp; in ntp_print() local 210 bp = (const struct ntpdata *)cp; in ntp_print() 212 ND_TCHECK(bp->status); in ntp_print() 214 version = (int)(bp->status & VERSIONMASK) >> 3; in ntp_print() 217 mode = bp->status & MODEMASK; in ntp_print() 229 leapind = bp->status & LEAPMASK; in ntp_print() 234 ND_TCHECK(bp->stratum); in ntp_print() 236 bp->stratum, in ntp_print() 237 …tok2str(ntp_stratum_values, (bp->stratum >=2 && bp->stratum<=15) ? "secondary reference" : "reserv… in ntp_print() 239 ND_TCHECK(bp->ppoll); in ntp_print() [all …]
|
D | print-geonet.c | 60 const u_char *bp) in print_btp_body() argument 67 version = bp[0]; in print_btp_body() 68 msg_type = bp[1]; in print_btp_body() 76 const u_char *bp) in print_btp() argument 78 uint16_t dest = EXTRACT_16BITS(bp+0); in print_btp() 79 uint16_t src = EXTRACT_16BITS(bp+2); in print_btp() 85 const u_char *bp) in print_long_pos_vector() argument 89 if (!ND_TTEST2(*bp, GEONET_ADDR_LEN)) in print_long_pos_vector() 91 ND_PRINT((ndo, "GN_ADDR:%s ", linkaddr_string (ndo, bp, 0, GEONET_ADDR_LEN))); in print_long_pos_vector() 93 if (!ND_TTEST2(*(bp+12), 8)) in print_long_pos_vector() [all …]
|
D | print-vrrp.c | 107 register const u_char *bp, register u_int len, in vrrp_print() argument 113 ND_TCHECK(bp[0]); in vrrp_print() 114 version = (bp[0] & 0xf0) >> 4; in vrrp_print() 115 type = bp[0] & 0x0f; in vrrp_print() 122 ND_TCHECK(bp[2]); in vrrp_print() 123 ND_PRINT((ndo, ", vrid %u, prio %u", bp[1], bp[2])); in vrrp_print() 124 ND_TCHECK(bp[5]); in vrrp_print() 127 auth_type = bp[4]; in vrrp_print() 129 ND_PRINT((ndo, ", intvl %us, length %u", bp[5], len)); in vrrp_print() 131 uint16_t intvl = (bp[4] & 0x0f) << 8 | bp[5]; in vrrp_print() [all …]
|
D | print-ip6opts.c | 45 ip6_sopt_print(netdissect_options *ndo, const u_char *bp, int len) in ip6_sopt_print() argument 51 if (bp[i] == IP6OPT_PAD1) in ip6_sopt_print() 55 optlen = bp[i + 1] + 2; in ip6_sopt_print() 62 switch (bp[i]) { in ip6_sopt_print() 75 ND_PRINT((ndo, ", sopt_type %d: trunc)", bp[i])); in ip6_sopt_print() 78 ND_PRINT((ndo, ", sopt_type 0x%02x: len=%d", bp[i], bp[i + 1])); in ip6_sopt_print() 89 ip6_opt_print(netdissect_options *ndo, const u_char *bp, int len) in ip6_opt_print() argument 97 if (bp[i] == IP6OPT_PAD1) in ip6_opt_print() 101 optlen = bp[i + 1] + 2; in ip6_opt_print() 108 switch (bp[i]) { in ip6_opt_print() [all …]
|
D | print-geneve.c | 103 geneve_opts_print(netdissect_options *ndo, const u_char *bp, u_int len) in geneve_opts_print() argument 115 opt_class = EXTRACT_16BITS(bp); in geneve_opts_print() 116 opt_type = *(bp + 2); in geneve_opts_print() 117 opt_len = 4 + ((*(bp + 3) & OPT_LEN_MASK) * 4); in geneve_opts_print() 129 const uint32_t *data = (const uint32_t *)(bp + 4); in geneve_opts_print() 140 bp += opt_len; in geneve_opts_print() 146 geneve_print(netdissect_options *ndo, const u_char *bp, u_int len) in geneve_print() argument 158 ND_TCHECK2(*bp, 8); in geneve_print() 160 ver_opt = *bp; in geneve_print() 161 bp += 1; in geneve_print() [all …]
|
D | print-tftp.c | 92 register const u_char *bp, u_int length) in tftp_print() argument 104 ND_TCHECK_16BITS(bp); in tftp_print() 105 opcode = EXTRACT_16BITS(bp); in tftp_print() 111 bp += 2; in tftp_print() 123 ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend); in tftp_print() 127 bp += ui; in tftp_print() 134 ui = fn_printztn(ndo, bp, length, ndo->ndo_snapend); in tftp_print() 137 bp += ui; in tftp_print() 142 ND_TCHECK(*bp); in tftp_print() 143 if (*bp != '\0') in tftp_print() [all …]
|
/external/boringssl/src/crypto/x509/ |
D | t_x509.c | 94 int X509_print(BIO *bp, X509 *x) in X509_print() argument 96 return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in X509_print() 99 int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, in X509_print_ex() argument 121 if (BIO_write(bp, "Certificate:\n", 13) <= 0) in X509_print_ex() 123 if (BIO_write(bp, " Data:\n", 10) <= 0) in X509_print_ex() 128 if (BIO_printf(bp, "%8sVersion: %lu (0x%lx)\n", "", l + 1, l) <= 0) in X509_print_ex() 133 if (BIO_write(bp, " Serial Number:", 22) <= 0) in X509_print_ex() 145 if (BIO_printf(bp, " %s%lu (%s0x%lx)\n", neg, l, neg, l) <= 0) in X509_print_ex() 149 if (BIO_printf(bp, "\n%12s%s", "", neg) <= 0) in X509_print_ex() 153 if (BIO_printf(bp, "%02x%c", bs->data[i], in X509_print_ex() [all …]
|
D | x_all.c | 147 X509 *d2i_X509_bio(BIO *bp, X509 **x509) in d2i_X509_bio() argument 149 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509), bp, x509); in d2i_X509_bio() 152 int i2d_X509_bio(BIO *bp, X509 *x509) in i2d_X509_bio() argument 154 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); in i2d_X509_bio() 169 X509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) in d2i_X509_CRL_bio() argument 171 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in d2i_X509_CRL_bio() 174 int i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) in i2d_X509_CRL_bio() argument 176 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); in i2d_X509_CRL_bio() 191 X509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) in d2i_X509_REQ_bio() argument 193 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(X509_REQ), bp, req); in d2i_X509_REQ_bio() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | blkmap64_rb.c | 162 static void rb_free_extent(struct ext2fs_rb_private *bp, in rb_free_extent() argument 165 if (bp->wcursor == ext) in rb_free_extent() 166 bp->wcursor = NULL; in rb_free_extent() 167 if (bp->rcursor == ext) in rb_free_extent() 168 bp->rcursor = NULL; in rb_free_extent() 169 if (bp->rcursor_next == ext) in rb_free_extent() 170 bp->rcursor_next = NULL; in rb_free_extent() 176 struct ext2fs_rb_private *bp; in rb_alloc_private_data() local 179 retval = ext2fs_get_mem(sizeof (struct ext2fs_rb_private), &bp); in rb_alloc_private_data() 183 bp->root = RB_ROOT; in rb_alloc_private_data() [all …]
|
D | blkmap64_ba.c | 45 ext2fs_ba_private bp; in ba_alloc_private_data() local 55 retval = ext2fs_get_mem(sizeof (ext2fs_ba_private), &bp); in ba_alloc_private_data() 61 retval = ext2fs_get_mem(size, &bp->bitarray); in ba_alloc_private_data() 63 ext2fs_free_mem(&bp); in ba_alloc_private_data() 64 bp = 0; in ba_alloc_private_data() 67 bitmap->private = (void *) bp; in ba_alloc_private_data() 74 ext2fs_ba_private bp; in ba_new_bmap() local 82 bp = (ext2fs_ba_private) bitmap->private; in ba_new_bmap() 84 memset(bp->bitarray, 0, size); in ba_new_bmap() 91 ext2fs_ba_private bp = (ext2fs_ba_private) bitmap->private; in ba_free_bmap() local [all …]
|
/external/pdfium/third_party/libopenjpeg20/ |
D | mqc.c | 189 assert(mqc->bp >= mqc->start - 1); in opj_mqc_byteout() 190 if (*mqc->bp == 0xff) { in opj_mqc_byteout() 191 mqc->bp++; in opj_mqc_byteout() 192 *mqc->bp = (OPJ_BYTE)(mqc->c >> 20); in opj_mqc_byteout() 197 mqc->bp++; in opj_mqc_byteout() 198 *mqc->bp = (OPJ_BYTE)(mqc->c >> 19); in opj_mqc_byteout() 202 (*mqc->bp)++; in opj_mqc_byteout() 203 if (*mqc->bp == 0xff) { in opj_mqc_byteout() 205 mqc->bp++; in opj_mqc_byteout() 206 *mqc->bp = (OPJ_BYTE)(mqc->c >> 20); in opj_mqc_byteout() [all …]
|
/external/clang/test/Sema/ |
D | block-misc.c | 163 void (^bp)(int); in test17() local 166 void *vp = bp; in test17() 168 f(1 ? bp : vp); in test17() 169 f(1 ? vp : bp); in test17() 170 f(1 ? bp : bp1); in test17() 171 (void)(bp > rp); // expected-error {{invalid operands}} in test17() 172 (void)(bp > 0); // expected-error {{invalid operands}} in test17() 173 (void)(bp > bp); // expected-error {{invalid operands}} in test17() 174 (void)(bp > vp); // expected-error {{invalid operands}} in test17() 175 …f(1 ? bp : rp); // expected-error {{incompatible operand types ('void (^)(int)' and 'void (*)(int)… in test17() [all …]
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_nl80211_android.c | 81 int ret = 0, i = 0, bp; in android_pno_start() local 84 bp = WEXT_PNOSETUP_HEADER_SIZE; in android_pno_start() 85 os_memcpy(buf, WEXT_PNOSETUP_HEADER, bp); in android_pno_start() 86 buf[bp++] = WEXT_PNO_TLV_PREFIX; in android_pno_start() 87 buf[bp++] = WEXT_PNO_TLV_VERSION; in android_pno_start() 88 buf[bp++] = WEXT_PNO_TLV_SUBVERSION; in android_pno_start() 89 buf[bp++] = WEXT_PNO_TLV_RESERVED; in android_pno_start() 94 if ((bp + WEXT_PNO_SSID_HEADER_SIZE + MAX_SSID_LEN + in android_pno_start() 100 buf[bp++] = WEXT_PNO_SSID_SECTION; in android_pno_start() 101 buf[bp++] = params->ssids[i].ssid_len; in android_pno_start() [all …]
|