Home
last modified time | relevance | path

Searched refs:p_size (Results 1 – 24 of 24) sorted by relevance

/freebsd/sbin/bsdlabel/
H A Dbsdlabel.c298 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 Dbcache.c216 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 Dpart.c497 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 Drdwr_efi.c876 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 Ddh_key.c418 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 Dg_part_bsd.c167 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 Decore_cxt.c170 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 Dlibzfs_pool_os.c275 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 Dttm_bo_manager.c104 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 Dttm_bo_api.h569 unsigned long p_size);
H A Dttm_bo_driver.h164 int (*init)(struct ttm_mem_type_manager *man, unsigned long p_size);
H A Dttm_bo.c1436 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 Dbsd.c99 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 Defi_partition.h300 diskaddr_t p_size; /* size in blocks */ member
350 diskaddr_t p_size; member
/freebsd/lib/libc/gen/
H A Ddisklabel.c128 pp->p_size = 0; in getdiskbyname()
130 pp->p_size = l; in getdiskbyname()
/freebsd/sbin/newfs/
H A Dnewfs.c359 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 Dgeom_bsd_enc.c58 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 Dbsd.h120 uint32_t p_size; /* number of sectors in partition */ member
/freebsd/sys/netinet/
H A Dsctp_asconf.c2648 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 Ddklabel.h111 int32_t p_size; /* # of blocks in partition */ member
/freebsd/sbin/routed/
H A Drdisc.c685 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 Darchive_read_open_filename.c361 dl.d_partitions[DISKPART(st.st_rdev)].p_size > 0) { in file_open()
/freebsd/stand/i386/boot2/
H A Dboot2.c519 !d->d_partitions[dsk.part].p_size) { in dskread()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs.abi8621 <var-decl name='p_size' type-id='804dc465' visibility='default'/>