/freebsd/usr.bin/localedef/ |
H A D | wide.c | 141 show_mb(const char *mb) in show_mb() argument 146 if (isascii(*mb) && isgraph(*mb)) { in show_mb() 147 buf[0] = *mb; in show_mb() 152 while (*mb != 0) { in show_mb() 154 (void) snprintf(scr, sizeof (scr), "\\x%02x", *mb); in show_mb() 156 mb++; in show_mb() 181 towide_none(wchar_t *c, const char *mb, unsigned n __unused) in towide_none() argument 187 *c = (uint8_t)*mb; in towide_none() 192 tomb_none(char *mb, wchar_t wc) in tomb_none() argument 198 *(uint8_t *)mb = (wc & 0xff); in tomb_none() [all …]
|
/freebsd/sys/dev/mlx5/mlx5_en/ |
H A D | mlx5_en_rx.c | 38 struct mbuf *mb; in mlx5e_alloc_rx_wqe() local 47 mb_head = mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, in mlx5e_alloc_rx_wqe() 49 if (unlikely(mb == NULL)) in mlx5e_alloc_rx_wqe() 52 mb->m_len = MLX5E_MAX_RX_BYTES; in mlx5e_alloc_rx_wqe() 53 mb->m_pkthdr.len = MLX5E_MAX_RX_BYTES; in mlx5e_alloc_rx_wqe() 58 mb = mb->m_next = m_getjcl(M_NOWAIT, MT_DATA, 0, in mlx5e_alloc_rx_wqe() 60 if (unlikely(mb == NULL)) { in mlx5e_alloc_rx_wqe() 64 mb->m_len = MLX5E_MAX_RX_BYTES; in mlx5e_alloc_rx_wqe() 68 mb = mb_head; in mlx5e_alloc_rx_wqe() 71 m_adj(mb, MLX5E_NET_IP_ALIGN); in mlx5e_alloc_rx_wqe() [all …]
|
H A D | mlx5_en_tx.c | 90 mlx5e_select_queue_by_send_tag(if_t ifp, struct mbuf *mb) in mlx5e_select_queue_by_send_tag() 95 mb_tag = mb->m_pkthdr.snd_tag; in mlx5e_select_queue_by_send_tag() 137 mlx5e_select_queue(if_t ifp, struct mbuf *mb) in mlx5e_select_queue() 145 if (mb->m_flags & M_VLANTAG) { in mlx5e_select_queue() 146 tc = (mb->m_pkthdr.ether_vtag >> 13); in mlx5e_select_queue() 156 if (M_HASHTYPE_GET(mb) != M_HASHTYPE_NONE) { in mlx5e_select_queue() 160 if (rss_hash2bucket(mb->m_pkthdr.flowid, in mlx5e_select_queue() 161 M_HASHTYPE_GET(mb), &temp) == 0) in mlx5e_select_queue() 165 ch = (mb->m_pkthdr.flowid % 128) % ch; in mlx5e_select_queue() 168 MBUF_HASHFLAG_L4, mb, mlx5e_hash_valu in mlx5e_select_queue() 89 mlx5e_select_queue_by_send_tag(if_t ifp,struct mbuf * mb) mlx5e_select_queue_by_send_tag() argument 136 mlx5e_select_queue(if_t ifp,struct mbuf * mb) mlx5e_select_queue() argument 178 mlx5e_get_l2_header_size(struct mlx5e_sq * sq,struct mbuf * mb) mlx5e_get_l2_header_size() argument 236 mlx5e_get_full_header_size(const struct mbuf * mb,const struct tcphdr ** ppth) mlx5e_get_full_header_size() argument 330 mlx5e_parse_mbuf_chain(const struct mbuf ** mb,int * poffset,int eth_hdr_len,int min_len) mlx5e_parse_mbuf_chain() argument 352 mlx5e_get_vxlan_header_size(const struct mbuf * mb,struct mlx5e_tx_wqe * wqe,uint8_t cs_mask,uint8_t opcode) mlx5e_get_vxlan_header_size() argument 558 struct mbuf *mb; mlx5e_sq_dump_xmit() local 694 struct mbuf *mb; mlx5e_sq_xmit() local 1032 struct mbuf *mb; mlx5e_poll_tx_cq() local 1102 mlx5e_xmit_locked(if_t ifp,struct mlx5e_sq * sq,struct mbuf * mb) mlx5e_xmit_locked() argument 1138 mlx5e_xmit(if_t ifp,struct mbuf * mb) mlx5e_xmit() argument [all...] |
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_rx.c | 107 struct mbuf *mb, *m; in sdp_post_recv() local 112 sdp_prf(ssk->socket, mb, "Posting mb"); in sdp_post_recv() 113 mb = m_getm2(NULL, ssk->recv_bytes, M_NOWAIT, MT_DATA, M_PKTHDR); in sdp_post_recv() 114 if (mb == NULL) { in sdp_post_recv() 120 for (m = mb; m != NULL; m = m->m_next) { in sdp_post_recv() 122 mb->m_pkthdr.len += m->m_len; in sdp_post_recv() 124 h = mtod(mb, struct sdp_bsdh *); in sdp_post_recv() 126 rx_req->mb = mb; in sdp_post_recv() 128 for (i = 0; mb != NULL; i++, mb = mb->m_next, sge++) { in sdp_post_recv() 129 addr = ib_dma_map_single(dev, mb->m_data, mb->m_len, in sdp_post_recv() [all …]
|
H A D | sdp_tx.c | 66 sdp_post_send(struct sdp_sock *ssk, struct mbuf *mb) in sdp_post_send() argument 80 SDPSTATS_HIST(send_size, mb->len); in sdp_post_send() 83 m_freem(mb); in sdp_post_send() 88 h = mtod(mb, struct sdp_bsdh *); in sdp_post_send() 90 ssk->tx_bytes += mb->m_pkthdr.len; in sdp_post_send() 94 struct tx_srcavail_state *tx_sa = TX_SRCAVAIL_STATE(mb); in sdp_post_send() 99 m_freem(mb); in sdp_post_send() 102 TX_SRCAVAIL_STATE(mb)->mseq = mseq; in sdp_post_send() 106 if (unlikely(mb->m_flags & M_URG)) in sdp_post_send() 111 mb->m_flags |= M_RDONLY; /* Don't allow compression once sent. */ in sdp_post_send() [all …]
|
H A D | sdp.h | 136 #define BZCOPY_STATE(mb) (SDP_SKB_CB(mb)->bz) argument 137 #define RX_SRCAVAIL_STATE(mb) (SDP_SKB_CB(mb)->rx_sa) argument 138 #define TX_SRCAVAIL_STATE(mb) (SDP_SKB_CB(mb)->tx_sa) argument 203 struct mbuf *mb; member 507 struct mbuf *mb; in sdp_alloc_mb() local 509 MGETHDR(mb, wait, MT_DATA); in sdp_alloc_mb() 510 if (mb == NULL) in sdp_alloc_mb() 512 mb->m_pkthdr.len = mb->m_len = sizeof(struct sdp_bsdh); in sdp_alloc_mb() 513 h = mtod(mb, struct sdp_bsdh *); in sdp_alloc_mb() 516 return mb; in sdp_alloc_mb() [all …]
|
H A D | sdp_bcopy.c | 42 struct mbuf *mb, const struct sdp_bsdh *h) in _dump_packet() argument 53 str, mb, h->mid, mid2str(h->mid), h->flags, in _dump_packet() 107 sdp_nagle_off(struct sdp_sock *ssk, struct mbuf *mb) in sdp_nagle_off() argument 112 h = mtod(mb, struct sdp_bsdh *); in sdp_nagle_off() 115 BZCOPY_STATE(mb) || in sdp_nagle_off() 120 mb->m_pkthdr.len >= ssk->xmit_size_goal / 4 || in sdp_nagle_off() 121 (mb->m_flags & M_PUSH); in sdp_nagle_off() 168 struct mbuf *mb; in sdp_post_sends() local 190 mb = sdp_alloc_mb_chrcvbuf_ack(sk, in sdp_post_sends() 192 if (mb == NULL) in sdp_post_sends() [all …]
|
H A D | sdp_zcopy.c | 54 struct mbuf *mb; in sdp_post_srcavail() local 75 mb = sdp_alloc_mb_srcavail(sk, len, tx_sa->fmr->fmr->lkey, off, 0); in sdp_post_srcavail() 76 if (!mb) { in sdp_post_srcavail() 81 TX_SRCAVAIL_STATE(mb) = tx_sa; /* tx_sa is hanged on the mb in sdp_post_srcavail() 94 mb_fill_page_desc(mb, mb_shinfo(mb)->nr_frags, in sdp_post_srcavail() 97 mb->len += payload_len; in sdp_post_srcavail() 98 mb->data_len = payload_len; in sdp_post_srcavail() 99 mb->truesize += payload_len; in sdp_post_srcavail() 103 mb_entail(sk, ssk, mb); in sdp_post_srcavail() 106 SDP_SKB_CB(mb)->end_seq += payload_len; in sdp_post_srcavail() [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_palisade.c | 589 event = (unsigned short) (getint((u_char *) &mb(1)) & 0xffff); in TSIP_decode() 594 switch (mb(0) & 0xff) { in TSIP_decode() 608 lat = getdbl((u_char *) &mb(42)) * R2D; in TSIP_decode() 609 lon = getdbl((u_char *) &mb(50)) * R2D; in TSIP_decode() 610 alt = getdbl((u_char *) &mb(58)); in TSIP_decode() 617 if (mb(st)) { in TSIP_decode() 618 if (mb(st) > 0) ts++; in TSIP_decode() 619 printf(" %02d", mb(st)); in TSIP_decode() 625 GPS_UTC_Offset = getint((u_char *) &mb(16)); in TSIP_decode() 633 secs = getdbl((u_char *) &mb( in TSIP_decode() [all...] |
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_sis.c | 166 pqisrc_send_sis_cmd(pqisrc_softstate_t *softs, uint32_t *mb) in pqisrc_send_sis_cmd() argument 179 PCI_MEM_PUT32(softs, &softs->ioa_reg->mb[i], in pqisrc_send_sis_cmd() 180 LEGACY_SIS_SRCV_MAILBOX+i*4, LE_32(mb[i])); in pqisrc_send_sis_cmd() 202 DBG_ERR("Sync command %x, timedout\n", mb[0]); in pqisrc_send_sis_cmd() 207 mb[0] = LE_32(PCI_MEM_GET32(softs, &softs->ioa_reg->mb[0], LEGACY_SIS_SRCV_MAILBOX)); in pqisrc_send_sis_cmd() 209 if (mb[0] != SIS_CMD_STATUS_SUCCESS) { in pqisrc_send_sis_cmd() 211 mb[0]); in pqisrc_send_sis_cmd() 218 mb[i] = LE_32(PCI_MEM_GET32(softs, &softs->ioa_reg->mb[i], LEGACY_SIS_SRCV_MAILBOX+i*4)); in pqisrc_send_sis_cmd() 234 uint32_t mb[6] = {0}; in pqisrc_get_adapter_properties() local 238 mb[0] = SIS_CMD_GET_ADAPTER_PROPERTIES; in pqisrc_get_adapter_properties() [all …]
|
/freebsd/tools/tools/nanobsd/ |
H A D | FlashDevice.sub | 45 256|256mb) 59 256|256mb) 73 64|64mb) 87 512|512mb) 110 32|32mb) 115 64|64mb) 120 128|128mb) 125 256|256mb) 130 512|512mb) 135 1024|1024mb|1g) [all …]
|
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_ib.c | 99 for (i = 0, m = rx_req->mb; m != NULL; m = m->m_next, i++) in ipoib_dma_unmap_rx() 105 ipoib_dma_mb(struct ipoib_dev_priv *priv, struct mbuf *mb, unsigned int length) in ipoib_dma_mb() argument 108 m_adj(mb, -(mb->m_pkthdr.len - length)); in ipoib_dma_mb() 115 struct mbuf *mb, *m; in ipoib_alloc_map_mb() local 118 rx_req->mb = NULL; in ipoib_alloc_map_mb() 119 mb = m_getm2(NULL, align + size, M_NOWAIT, MT_DATA, M_PKTHDR); in ipoib_alloc_map_mb() 120 if (mb == NULL) in ipoib_alloc_map_mb() 122 for (i = 0, m = mb; m != NULL; m = m->m_next, i++) { in ipoib_alloc_map_mb() 128 mb->m_pkthdr.len += m->m_len; in ipoib_alloc_map_mb() 136 rx_req->mb = mb; in ipoib_alloc_map_mb() [all …]
|
H A D | ipoib_cm.c | 100 for (m = rx_req->mb, i = 0; m != NULL; m = m->m_next, i++) { in ipoib_cm_post_receive_srq() 112 m_freem(priv->cm.srq_ring[id].mb); in ipoib_cm_post_receive_srq() 113 priv->cm.srq_ring[id].mb = NULL; in ipoib_cm_post_receive_srq() 131 for (m = rx_req->mb, i = 0; m != NULL; m = m->m_next, i++) { in ipoib_cm_post_receive_nonsrq() 143 m_freem(rx->rx_ring[id].mb); in ipoib_cm_post_receive_nonsrq() 144 rx->rx_ring[id].mb = NULL; in ipoib_cm_post_receive_nonsrq() 163 if (rx_ring[i].mb) { in ipoib_cm_free_rx_ring() 165 m_freem(rx_ring[i].mb); in ipoib_cm_free_rx_ring() 482 struct mbuf *mb, *newmb; in ipoib_cm_handle_rx_wc() local 509 mb = rx_ring[wr_id].mb; in ipoib_cm_handle_rx_wc() [all …]
|
/freebsd/tools/tools/locale/tools/ |
H A D | utf8-rollup.pl | 164 my $mb = $d[0]; 169 next if !defined $utf8map{$mb}; 190 $data{$cat}{$mb}{'wc'} = $d[0]; 194 $data{$cat}{$mb}{'start'} = 1; 196 $data{$cat}{$mb}{'end'} = 1; 201 $data{'toupper'}{$mb} = $d[12]; 203 $data{'tolower'}{$mb} = $d[13]; 214 foreach my $mb (sort {hex($a) <=> hex($b)} keys (%{$data{$cat}})) { 219 die "broken range end wc=$data{$cat}{$mb}{'wc'}" 220 if !defined $data{$cat}{$mb}{'end'}; [all …]
|
/freebsd/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_rx.c | 76 struct mbuf *mb; in mlx4_en_alloc_mbuf() local 79 mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, ring->rx_mb_size); in mlx4_en_alloc_mbuf() 80 if (likely(mb != NULL)) in mlx4_en_alloc_mbuf() 81 mb->m_pkthdr.len = mb->m_len = ring->rx_mb_size; in mlx4_en_alloc_mbuf() 83 mb = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, MLX4_EN_MAX_RX_BYTES); in mlx4_en_alloc_mbuf() 84 if (likely(mb != NULL)) { in mlx4_en_alloc_mbuf() 85 struct mbuf *mb_head = mb; in mlx4_en_alloc_mbuf() 88 mb->m_len = MLX4_EN_MAX_RX_BYTES; in mlx4_en_alloc_mbuf() 89 mb->m_pkthdr.len = MLX4_EN_MAX_RX_BYTES; in mlx4_en_alloc_mbuf() 94 mb = (mb->m_next = m_getjcl(M_NOWAIT, MT_DATA, 0, MLX4_EN_MAX_RX_BYTES)); in mlx4_en_alloc_mbuf() [all …]
|
H A D | mlx4_en_tx.c | 254 struct mbuf *mb, int len, __be32 owner_bit) in mlx4_en_store_inline_lso_data() argument 259 m_copydata(mb, 0, len, inl + 4); in mlx4_en_store_inline_lso_data() 294 struct mbuf *mb; in mlx4_en_free_tx_desc() local 297 mb = tx_info->mb; in mlx4_en_free_tx_desc() 299 if (mb == NULL) in mlx4_en_free_tx_desc() 306 m_freem(mb); in mlx4_en_free_tx_desc() 485 mlx4_en_get_inline_hdr_size(struct mlx4_en_tx_ring *ring, struct mbuf *mb) in mlx4_en_get_inline_hdr_size() argument 490 retval = MIN(ring->inline_thold, mb->m_len); in mlx4_en_get_inline_hdr_size() 494 retval = MIN(ring->inline_thold, mb->m_pkthdr.len); in mlx4_en_get_inline_hdr_size() 499 mlx4_en_get_header_size(struct mbuf *mb) in mlx4_en_get_header_size() argument [all …]
|
/freebsd/sys/netsmb/ |
H A D | smb_crypt.c | 204 struct mbuf *mb; in smb_rq_sign() local 251 for (mb = mbp->mb_top; mb != NULL; mb = mb->m_next) in smb_rq_sign() 252 MD5Update(&md5, mtod(mb, void *), mb->m_len); in smb_rq_sign() 270 struct mbuf *mb; in smb_rq_verify() local 286 mb = mdp->md_top; in smb_rq_verify() 287 KASSERT(mb->m_len >= SMB_HDRLEN, ("forgot to m_pullup")); in smb_rq_verify() 290 MD5Update(&md5, mtod(mb, void *), 14); in smb_rq_verify() 294 MD5Update(&md5, mtod(mb, u_char *) + 22, mb->m_len - 22); in smb_rq_verify() 295 for (mb = mb->m_next; mb != NULL; mb = mb->m_next) in smb_rq_verify() 296 MD5Update(&md5, mtod(mb, void *), mb->m_len); in smb_rq_verify()
|
/freebsd/usr.sbin/ppp/ |
H A D | mbuf.c | 106 struct mbucket **mb; in m_get() local 121 mb = M_BUCKET(m_len); in m_get() 124 if (*mb) { in m_get() 126 bp = &(*mb)->u.m; in m_get() 127 if (--(*mb)->u.f.count == 0) in m_get() 128 *mb = (*mb)->u.f.next; in m_get() 130 ((struct mbucket *)((char *)*mb + size))->u.f.count = (*mb)->u.f.count; in m_get() 131 *mb = (struct mbucket *)((char *)*mb + size); in m_get() 132 (*mb)->u.f.next = NULL; in m_get() 139 *mb = (struct mbucket *)malloc(BUCKET_CHUNK * size); in m_get() [all …]
|
/freebsd/bin/pax/ |
H A D | ar_io.c | 96 struct mtget mb; in ar_open() local 174 artyp = ioctl(arfd, MTIOCGET, &mb) ? ISCHR : ISTAPE; in ar_open() 708 struct mtop mb; in ar_rdsync() local 740 mb.mt_op = MTFSR; in ar_rdsync() 741 mb.mt_count = 1; in ar_rdsync() 742 if (ioctl(arfd, MTIOCTOP, &mb) < 0) in ar_rdsync() 851 struct mtop mb; in ar_rev() local 954 mb.mt_op = MTBSR; in ar_rev() 955 mb.mt_count = sksz/phyblk; in ar_rev() 956 if (ioctl(arfd, MTIOCTOP, &mb) < 0) { in ar_rev() [all …]
|
/freebsd/sys/security/mac_biba/ |
H A D | mac_biba.c | 157 biba_free(struct mac_biba *mb) in biba_free() argument 160 if (mb != NULL) in biba_free() 161 uma_zfree(zone_biba, mb); in biba_free() 167 biba_atmostflags(struct mac_biba *mb, int flags) in biba_atmostflags() argument 170 if ((mb->mb_flags & flags) != mb->mb_flags) in biba_atmostflags() 228 biba_subject_dominate_high(struct mac_biba *mb) in biba_subject_dominate_high() argument 232 KASSERT((mb->mb_flags & MAC_BIBA_FLAG_EFFECTIVE) != 0, in biba_subject_dominate_high() 234 element = &mb->mb_effective; in biba_subject_dominate_high() 302 biba_contains_equal(struct mac_biba *mb) in biba_contains_equal() argument 305 if (mb->mb_flags & MAC_BIBA_FLAG_EFFECTIVE) { in biba_contains_equal() [all …]
|
/freebsd/sys/arm/qualcomm/ |
H A D | qcom_cpu_kpssv2.c | 142 mb(); in qcom_cpu_kpssv2_regulator_start() 151 mb(); in qcom_cpu_kpssv2_regulator_start() 165 mb(); in qcom_cpu_kpssv2_regulator_start() 175 mb(); in qcom_cpu_kpssv2_regulator_start() 183 mb(); in qcom_cpu_kpssv2_regulator_start() 191 mb(); in qcom_cpu_kpssv2_regulator_start() 199 mb(); in qcom_cpu_kpssv2_regulator_start()
|
/freebsd/sys/rpc/ |
H A D | rpcm_subs.h | 81 { if ((s) > M_TRAILINGSPACE(mb)) { \ 85 mb->m_next = mb2; \ 86 mb = mb2; \ 87 mb->m_len = 0; \ 88 bpos = mtod(mb, caddr_t); \ 91 mb->m_len += (s); \
|
/freebsd/contrib/ntp/libparse/ |
H A D | clk_trimtsip.c | 227 #define mb(_X_) (buffer[2+(_X_)]) /* shortcut for buffer access */ in cvt_trimtsip() macro 254 u_int week = getshort((unsigned char *)&mb(4)); in cvt_trimtsip() 258 bp = &mb(0); in cvt_trimtsip() 273 bp = &mb(6); in cvt_trimtsip() 321 u_char status = mb(0); in cvt_trimtsip() 349 int tls = t->t_gpsutc = (u_short) getshort((unsigned char *)&mb(12)); /* current leap correction (GPS-UTC) */ in cvt_trimtsip() 350 int tlsf = t->t_gpsutcleap = (u_short) getshort((unsigned char *)&mb(24)); /* new leap correction */ in cvt_trimtsip() 353 (u_short) getshort((unsigned char *)&mb(20))); /* week no of leap correction */ in cvt_trimtsip() 355 t->t_dayleap = (u_short) getshort((unsigned char *)&mb(22)); /* day in week of leap correction */ in cvt_trimtsip() 357 (u_short) getshort((unsigned char *)&mb(1 in cvt_trimtsip() [all...] |
/freebsd/sbin/ipf/libipf/ |
H A D | ipft_hx.c | 56 hex_readip(mb_t *mb, char **ifn, int *dir) in hex_readip() argument 63 buf = (char *)mb->mb_buf; in hex_readip() 76 mb->mb_len = (char *)ip - buf; in hex_readip() 77 return (mb->mb_len); in hex_readip() 109 mb->mb_flags |= M_MCAST; in hex_readip() 113 mb->mb_flags |= M_BCAST; in hex_readip() 117 mb->mb_flags |= M_MBCAST; in hex_readip()
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | ScriptParser.h | 19 void readLinkerScript(MemoryBufferRef mb); 22 void readVersionScript(MemoryBufferRef mb); 24 void readDynamicList(MemoryBufferRef mb); 27 void readDefsym(StringRef name, MemoryBufferRef mb);
|