/freebsd/sbin/bsdlabel/ |
H A D | bsdlabel.c | 298 if (lp->d_partitions[i].p_size) in fixlabel() 304 dp->p_size = lp->d_secperunit - dp->p_offset; in fixlabel() 388 if (lab.d_partitions[i].p_size) in writelabel() 489 if (lab.d_partitions[i].p_size) in readlabel() 494 if (lab.d_partitions[i].p_size) in readlabel() 563 if (pp->p_size) { in display() 565 (u_long)pp->p_size, (u_long)pp->p_offset); in display() 1016 pp->p_size = v; in getasciipartspec() 1173 pp->p_size = lp->d_secperunit; in checklabel() 1184 size = pp->p_size; in checklabel() [all …]
|
/freebsd/stand/common/ |
H A D | bcache.c | 216 size_t i, nblk, p_size, r_size, complete, ra; in read_strategy() local 283 p_size = MIN(r_size, nblk - i); /* read at least those blocks */ in read_strategy() 312 ra = bc->bcache_nblks - BHASH(bc, p_blk + p_size); in read_strategy() 325 if (ra + p_size > BCACHE_MAXIOWRA) in read_strategy() 326 ra = BCACHE_MAXIOWRA - p_size; in read_strategy() 328 p_size += ra; in read_strategy() 334 for (i = 0; i < p_size; i++) { in read_strategy() 349 p_size * bcache_blksize, p_buf, &r_size); in read_strategy() 357 if (r_size < p_size) in read_strategy() 358 bcache_rablks += (p_size - r_size); in read_strategy()
|
H A D | part.c | 497 if (part->p_size == 0) in ptable_bsdread() 504 le32toh(part->p_size) - 1; in ptable_bsdread()
|
/freebsd/sys/contrib/openzfs/lib/libefi/ |
H A D | rdwr_efi.c | 876 vtoc->efi_parts[i].p_size = in efi_read() 995 (vtoc->efi_parts[i].p_size != 0)) { in check_input() 999 i, vtoc->efi_parts[i].p_size); in check_input() 1035 vtoc->efi_parts[i].p_size < in check_input() 1038 vtoc->efi_parts[i].p_size > in check_input() 1045 vtoc->efi_parts[i].p_size); in check_input() 1055 isize = vtoc->efi_parts[i].p_size; in check_input() 1056 jsize = vtoc->efi_parts[j].p_size; in check_input() 1153 data_size = efi_label->efi_parts[data_index].p_size; in efi_use_whole_disk() 1207 if ((efi_label->efi_parts[resv_index].p_size != EFI_MIN_RESV_SIZE) || in efi_use_whole_disk() [all …]
|
/freebsd/crypto/openssl/crypto/dh/ |
H A D | dh_key.c | 418 int p_size; in ossl_dh_key2buf() local 423 || (p_size = BN_num_bytes(p)) == 0 in ossl_dh_key2buf() 430 if (size >= (size_t)p_size) in ossl_dh_key2buf() 433 pbuf = OPENSSL_malloc(p_size); in ossl_dh_key2buf() 444 if (BN_bn2binpad(pubkey, pbuf, p_size) < 0) { in ossl_dh_key2buf() 452 return p_size; in ossl_dh_key2buf()
|
/freebsd/sys/geom/part/ |
H A D | g_part_bsd.c | 167 entry->part.p_size = gpp->gpp_size; in g_part_bsd_add() 238 entry->part.p_size = basetable->gpt_last + 1; in g_part_bsd_create() 320 entry->part.p_size = msize; in bsd_set_rawsize() 339 entry->part.p_size = gpp->gpp_size; in g_part_bsd_resize() 443 part.p_size = le32dec(p + 0); in g_part_bsd_read() 449 if (part.p_size == 0) in g_part_bsd_read() 457 part.p_offset - table->offset + part.p_size - 1); in g_part_bsd_read() 516 le32enc(p + 0, entry->part.p_size); in g_part_bsd_write()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_cxt.c | 170 struct ilt_cfg_pair p_size; member 456 return ILT_PAGE_IN_BYTES(p_cli->p_size.val); in ecore_cxt_get_ilt_page_size() 497 u32 page_sz = p_mgr->clients[ILT_CLI_CDUC].p_size.val; in ecore_cxt_set_proto_cid_count() 558 u32 ilt_size = ILT_PAGE_IN_BYTES(p_cli->p_size.val); in ecore_ilt_cli_blk_fill() 607 cxts_per_p = ILT_PAGE_IN_BYTES(p_cli->p_size.val) / in ecore_ilt_get_dynamic_line_cnt() 927 ilt_page_size = ILT_PAGE_IN_BYTES(p_cli->p_size.val); in ecore_cxt_cfg_ilt_compute_excess() 987 psz = ILT_PAGE_IN_BYTES(p_src->p_size.val); in ecore_cxt_src_t2_alloc() 1300 clients[ILT_CLI_CDUC].p_size.reg = ILT_CFG_REG(CDUC, P_SIZE); in ecore_cxt_mngr_alloc() 1304 clients[ILT_CLI_QM].p_size.reg = ILT_CFG_REG(QM, P_SIZE); in ecore_cxt_mngr_alloc() 1308 clients[ILT_CLI_TM].p_size.reg = ILT_CFG_REG(TM, P_SIZE); in ecore_cxt_mngr_alloc() [all …]
|
/freebsd/sys/contrib/openzfs/lib/libzfs/os/linux/ |
H A D | libzfs_pool_os.c | 275 vtoc->efi_parts[0].p_size = slice_size; in zpool_label_disk() 277 if (vtoc->efi_parts[0].p_size * vtoc->efi_lbasize < SPA_MINDEVSIZE) { in zpool_label_disk() 300 vtoc->efi_parts[8].p_size = resv; in zpool_label_disk()
|
/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_bo_manager.c | 104 unsigned long p_size) in ttm_bo_man_init() argument 110 ret = drm_mm_init(&rman->mm, 0, p_size); in ttm_bo_man_init()
|
H A D | ttm_bo_api.h | 569 unsigned long p_size);
|
H A D | ttm_bo_driver.h | 164 int (*init)(struct ttm_mem_type_manager *man, unsigned long p_size);
|
H A D | ttm_bo.c | 1436 unsigned long p_size) in ttm_bo_init_mm() argument 1456 ret = (*man->func->init)(man, p_size); in ttm_bo_init_mm() 1462 man->size = p_size; in ttm_bo_init_mm()
|
/freebsd/usr.bin/mkimg/ |
H A D | bsd.c | 99 le32enc(&dp->p_size, imgsz); in bsd_write() 103 le32enc(&dp->p_size, part->size); in bsd_write()
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | efi_partition.h | 300 diskaddr_t p_size; /* size in blocks */ member 350 diskaddr_t p_size; member
|
/freebsd/lib/libc/gen/ |
H A D | disklabel.c | 128 pp->p_size = 0; in getdiskbyname() 130 pp->p_size = l; in getdiskbyname()
|
/freebsd/sbin/newfs/ |
H A D | newfs.c | 359 if (pp->p_size == 0) in main() 365 getfssize(&fssize, special, pp->p_size, reserved); in main() 396 pp->p_size *= secperblk; in main()
|
/freebsd/sys/geom/ |
H A D | geom_bsd_enc.c | 58 d->p_size = le32dec(ptr + 0); in bsd_partition_le_dec() 137 le32enc(ptr + 0, d->p_size); in bsd_partition_le_enc()
|
/freebsd/sys/sys/disk/ |
H A D | bsd.h | 120 uint32_t p_size; /* number of sectors in partition */ member
|
/freebsd/sys/netinet/ |
H A D | sctp_asconf.c | 2648 uint16_t p_size, addr_size; in sctp_compose_asconf() local 2655 p_size = sizeof(struct sctp_ipv6addr_param); in sctp_compose_asconf() 2659 p_size = sizeof(struct sctp_ipv4addr_param); in sctp_compose_asconf() 2662 lookup->ph.param_length = htons(SCTP_SIZE32(p_size)); in sctp_compose_asconf() 2664 SCTP_BUF_LEN(m_asconf_chk) += SCTP_SIZE32(p_size); in sctp_compose_asconf() 2693 uint16_t p_size, addr_size; in sctp_compose_asconf() local 2711 p_size = sizeof(struct sctp_ipv6addr_param); in sctp_compose_asconf() 2722 p_size = sizeof(struct sctp_ipv4addr_param); in sctp_compose_asconf() 2736 lookup->ph.param_length = htons(SCTP_SIZE32(p_size)); in sctp_compose_asconf() 2738 SCTP_BUF_LEN(m_asconf_chk) += SCTP_SIZE32(p_size); in sctp_compose_asconf()
|
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/ |
H A D | dklabel.h | 111 int32_t p_size; /* # of blocks in partition */ member
|
/freebsd/sbin/routed/ |
H A D | rdisc.c | 685 int p_size, in send_rdisc() argument 752 p, p_size); in send_rdisc() 754 if (0 > sendto(rdisc_sock, p, p_size, flags, in send_rdisc()
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_open_filename.c | 361 dl.d_partitions[DISKPART(st.st_rdev)].p_size > 0) { in file_open()
|
/freebsd/stand/i386/boot2/ |
H A D | boot2.c | 519 !d->d_partitions[dsk.part].p_size) { in dskread()
|
/freebsd/sys/contrib/openzfs/lib/libzfs/ |
H A D | libzfs.abi | 8621 <var-decl name='p_size' type-id='804dc465' visibility='default'/>
|