/freebsd/lib/geom/shsec/ |
H A D | geom_shsec.c | 106 off_t compsize, msize; in shsec_label() local 127 msize = g_get_mediasize(name); in shsec_label() 129 if (msize == 0 || ssize == 0) { in shsec_label() 134 msize -= ssize; in shsec_label() 135 if (compsize == 0 || (compsize > 0 && msize < compsize)) in shsec_label() 136 compsize = msize; in shsec_label() 162 msize = g_get_mediasize(name); in shsec_label() 164 if (compsize < msize - ssize) { in shsec_label() 167 name, (intmax_t)compsize, (intmax_t)(msize - ssize)); in shsec_label() 171 md.md_provsize = msize; in shsec_label()
|
/freebsd/lib/geom/stripe/ |
H A D | geom_stripe.c | 124 off_t compsize, msize; in stripe_label() local 145 msize = g_get_mediasize(name); in stripe_label() 147 if (msize == 0 || ssize == 0) { in stripe_label() 152 msize -= ssize; in stripe_label() 153 if (compsize == 0 || (compsize > 0 && msize < compsize)) in stripe_label() 154 compsize = msize; in stripe_label() 187 msize = g_get_mediasize(name); in stripe_label() 189 if (compsize < msize - ssize) { in stripe_label() 192 name, (intmax_t)compsize, (intmax_t)(msize - ssize)); in stripe_label() 196 md.md_provsize = msize; in stripe_label()
|
/freebsd/lib/geom/raid3/ |
H A D | geom_raid3.c | 147 off_t mediasize, msize; in raid3_label() local 197 msize = g_get_mediasize(str); in raid3_label() 199 if (msize == 0 || ssize == 0) { in raid3_label() 204 msize -= ssize; in raid3_label() 205 if (mediasize == 0 || (mediasize > 0 && msize < mediasize)) in raid3_label() 206 mediasize = msize; in raid3_label() 239 msize = g_get_mediasize(str); in raid3_label() 241 if (mediasize < msize - ssize) { in raid3_label() 244 str, (intmax_t)mediasize, (intmax_t)(msize - ssize)); in raid3_label() 248 md.md_provsize = msize; in raid3_label()
|
/freebsd/sys/geom/part/ |
H A D | g_part_bsd.c | 201 uint32_t msize, ncyls, secpercyl; in g_part_bsd_create() local 210 msize = MIN(pp->mediasize / pp->sectorsize, UINT32_MAX); in g_part_bsd_create() 212 ncyls = msize / secpercyl; in g_part_bsd_create() 224 le32enc(ptr + 60, msize); /* d_secperunit */ in g_part_bsd_create() 231 basetable->gpt_last = msize - 1; in g_part_bsd_create() 309 uint32_t msize; in bsd_set_rawsize() local 312 msize = MIN(pp->mediasize / pp->sectorsize, UINT32_MAX); in bsd_set_rawsize() 313 le32enc(table->bbarea + pp->sectorsize + 60, msize); /* d_secperunit */ in bsd_set_rawsize() 314 basetable->gpt_last = msize - 1; in bsd_set_rawsize() 320 entry->part.p_size = msize; in bsd_set_rawsize() [all …]
|
H A D | g_part_ebr.c | 321 uint32_t msize; in g_part_ebr_create() local 346 msize = MIN(pp->mediasize / pp->sectorsize, UINT32_MAX); in g_part_ebr_create() 348 basetable->gpt_last = msize - 1; in g_part_ebr_create() 349 basetable->gpt_entries = msize / basetable->gpt_sectors; in g_part_ebr_create() 511 off_t ofs, msize; in g_part_ebr_read() local 518 msize = MIN(pp->mediasize / pp->sectorsize, UINT32_MAX); in g_part_ebr_read() 572 basetable->gpt_entries = msize / basetable->gpt_sectors; in g_part_ebr_read() 574 basetable->gpt_last = msize - 1; in g_part_ebr_read()
|
H A D | g_part_mbr.c | 479 off_t chs, msize, first; in g_part_mbr_read() local 486 msize = MIN(pp->mediasize / pp->sectorsize, UINT32_MAX); in g_part_mbr_read() 512 g_part_geometry_heads(msize, sectors, &chs, &heads); in g_part_mbr_read() 527 basetable->gpt_last = msize - 1; in g_part_mbr_read()
|
/freebsd/contrib/tcpdump/ |
H A D | print-tipc.c | 159 u_int msize; in print_payload() local 173 msize = TIPC_MSIZE(w0); in print_payload() 184 hsize*4, msize, in print_payload() 196 hsize*4, msize, in print_payload() 218 u_int msize; in print_internal() local 237 msize = TIPC_MSIZE(w0); in print_internal() 246 hsize*4, msize, in print_internal() 280 u_int msize; in print_link_conf() local 291 msize = TIPC_MSIZE(w0); in print_link_conf() 301 hsize*4, msize, in print_link_conf()
|
/freebsd/lib/geom/virstor/ |
H A D | geom_virstor.c | 152 off_t msize; in virstor_label() local 198 msize = secsize = 0; in virstor_label() 205 msize += g_get_mediasize(name); in virstor_label() 260 if ((off_t)md.md_virsize < msize) in virstor_label() 262 "available storage (%ju < %ju)\n", md.md_virsize, msize); in virstor_label() 275 msize = g_get_mediasize(name); in virstor_label() 277 if (msize == 0 || ssize == 0) { in virstor_label() 282 if (msize < (off_t) MAX(md.md_chunk_size*4, map_size)) in virstor_label() 381 msize = g_get_mediasize(name); in virstor_label() 390 md.provsize = msize; in virstor_label() [all …]
|
/freebsd/lib/geom/journal/ |
H A D | geom_journal.c | 141 intmax_t jsize, msize, ssize; in journal_label() local 186 msize = g_get_mediasize(data); in journal_label() 204 if (jsize + ssize >= msize) { in journal_label() 210 md.md_jstart = msize - ssize - jsize; in journal_label() 211 md.md_jend = msize - ssize; in journal_label() 226 msize = g_get_mediasize(journal); in journal_label() 229 md.md_jend = msize - ssize; in journal_label()
|
/freebsd/lib/geom/multipath/ |
H A D | geom_multipath.c | 150 off_t disksize = 0, msize; in mp_label() local 171 msize = g_get_mediasize(name); in mp_label() 173 if (msize == 0 || ssize == 0) { in mp_label() 180 disksize = msize; in mp_label() 187 if (disksize != msize) { in mp_label() 189 name, (intmax_t)msize); in mp_label()
|
/freebsd/sys/fs/p9fs/ |
H A D | p9_client.c | 98 clnt->msize = 8192; in p9_parse_opts() 351 req = p9_client_prepare_req(c, type, c->msize, error, fmt, ap); in p9_client_request() 449 int msize; in p9_client_version() local 454 c->msize, c->proto_version); in p9_client_version() 459 c->msize, "9P2000.L"); in p9_client_version() 463 c->msize, "9P2000.u"); in p9_client_version() 467 c->msize, "9P2000"); in p9_client_version() 477 error = p9_buf_readf(req->rc, c->proto_version, "ds", &msize, &version); in p9_client_version() 483 P9_DEBUG(PROTO, "RVERSION msize %d %s\n", msize, version); in p9_client_version() 497 if (msize < c->msize) in p9_client_version() [all …]
|
H A D | p9_client.h | 87 unsigned int msize; /* maximum data size */ member
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_msize.m4 | 37 struct msize { 86 static struct msize msize[ELF_T_NUM] = { 111 sz = (elfclass == ELFCLASS32) ? msize[t].msz32 : msize[t].msz64;
|
/freebsd/contrib/lib9p/transport/ |
H A D | socket.c | 220 uint32_t msize; in l9p_socket_readmsg() local 246 msize = le32toh(*(uint32_t *)buffer); in l9p_socket_readmsg() 247 toread = msize - sizeof(uint32_t); in l9p_socket_readmsg() 248 buffer = l9p_realloc(buffer, msize); in l9p_socket_readmsg() 262 *size = msize; in l9p_socket_readmsg() 265 (void *)sc->ls_conn, buffer, msize); in l9p_socket_readmsg()
|
/freebsd/usr.sbin/lpr/common_source/ |
H A D | ctlinfo.c | 278 size_t msize, sroom, sroom2; in ctl_readcf() local 290 msize = sroom2 + CTI_LINEMAX; in ctl_readcf() 291 msize = roundup(msize, 8); in ctl_readcf() 292 cstart = malloc(msize); in ctl_readcf() 297 memset(cstart, 0, msize); in ctl_readcf() 304 cpriv->cji_buffsize = (int)(msize - sroom2); in ctl_readcf() 305 cpriv->cji_eobuff = (char *)cstart + msize - 1; in ctl_readcf()
|
/freebsd/lib/geom/mirror/ |
H A D | geom_mirror.c | 229 off_t msize; in mirror_label() local 232 msize = g_get_mediasize(str); in mirror_label() 234 if (msize == 0 || ssize == 0) { in mirror_label() 239 msize -= ssize; in mirror_label() 240 if (mediasize == 0 || (mediasize > 0 && msize < mediasize)) in mirror_label() 241 mediasize = msize; in mirror_label()
|
/freebsd/sys/dev/bhnd/cores/pci/ |
H A D | bhnd_pci_hostb.c | 363 int msize; in bhnd_pci_wars_early_once() local 365 msize = 128; /* compatible with all PCIe-G1 core revisions */ in bhnd_pci_wars_early_once() 367 msize = 512; in bhnd_pci_wars_early_once() 369 if (pci_set_max_read_req(sc->pci_dev, msize) == 0) in bhnd_pci_wars_early_once()
|
/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_section.c | 389 uint64_t msize, bcsize; in pt_section_memsize_locked() local 405 errcode = memsize(section, &msize); in pt_section_memsize_locked() 413 *psize = msize + bcsize; in pt_section_memsize_locked()
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_os.c | 735 ha->msize = MCLBYTES; in qls_init_ifnet() 737 ha->msize = MJUMPAGESIZE; in qls_init_ifnet() 739 ha->msize = MJUM9BYTES; in qls_init_ifnet() 1372 mp = m_getjcl(M_NOWAIT, MT_DATA, M_PKTHDR, ha->msize); in qls_get_mbuf() 1375 if (ha->msize == MCLBYTES) in qls_get_mbuf() 1385 mp->m_len = mp->m_pkthdr.len = ha->msize; in qls_get_mbuf() 1387 mp->m_len = mp->m_pkthdr.len = ha->msize; in qls_get_mbuf()
|
H A D | qls_def.h | 289 uint32_t msize; member
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evmap.c | 205 evmap_make_space(struct event_signal_map *map, int slot, int msize) in evmap_make_space() argument 217 if (nentries > INT_MAX / msize) in evmap_make_space() 220 tmp = (void **)mm_realloc(map->entries, nentries * msize); in evmap_make_space() 225 (nentries - map->nentries) * msize); in evmap_make_space()
|
/freebsd/contrib/libevent/ |
H A D | evmap.c | 205 evmap_make_space(struct event_signal_map *map, int slot, int msize) in evmap_make_space() argument 217 if (nentries > INT_MAX / msize) in evmap_make_space() 220 tmp = (void **)mm_realloc(map->entries, nentries * msize); in evmap_make_space() 225 (nentries - map->nentries) * msize); in evmap_make_space()
|
/freebsd/sys/isa/ |
H A D | isavar.h | 156 ISA_ACCESSOR(msize, MEMSIZE, int)
|
/freebsd/usr.sbin/route6d/ |
H A D | route6d.c | 2431 size_t msize; in getifmtu() local 2441 if (sysctl(mib, nitems(mib), NULL, &msize, NULL, 0) < 0) { in getifmtu() 2445 if ((buf = malloc(msize)) == NULL) { in getifmtu() 2449 if (sysctl(mib, nitems(mib), buf, &msize, NULL, 0) < 0) { in getifmtu() 2598 size_t msize; in krtread() local 2621 if (sysctl(mib, nitems(mib), NULL, &msize, NULL, 0) < 0) { in krtread() 2625 if ((buf = malloc(msize)) == NULL) { in krtread() 2629 if (sysctl(mib, nitems(mib), buf, &msize, NULL, 0) < 0) { in krtread() 2636 (u_long)msize); in krtread() 2641 lim = buf + msize; in krtread()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_ipc.c | 262 uint32_t msize = FU_AT_LEAST(size); in fiov_init() local 266 fiov->base = malloc(msize, M_FUSEMSG, M_WAITOK | M_ZERO); in fiov_init() 268 fiov->allocated_size = msize; in fiov_init()
|