Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 25 of 142) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/io/ib/mgt/ibmf/
H A Dibmf_saa_utils.c969 int struct_size, buf_size; in ibmf_saa_utils_pack_payload() local
994 buf_size = IB_MAD_NOTICE_SIZE; in ibmf_saa_utils_pack_payload()
999 buf_size = IB_MAD_INFORMINFO_SIZE; in ibmf_saa_utils_pack_payload()
1161 int struct_size, buf_size; in ibmf_saa_utils_unpack_payload() local
1182 buf_size = IB_MAD_NOTICE_SIZE; in ibmf_saa_utils_unpack_payload()
1187 buf_size = IB_MAD_INFORMINFO_SIZE; in ibmf_saa_utils_unpack_payload()
1286 buf_size = buf_payload_length; in ibmf_saa_utils_unpack_payload()
1318 if ((attr_offset * 8) < buf_size) { in ibmf_saa_utils_unpack_payload()
1327 tnf_int, attr_size, buf_size); in ibmf_saa_utils_unpack_payload()
1334 bytes_between_recs = buf_size; in ibmf_saa_utils_unpack_payload()
[all …]
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drdr_messages.c192 int *buf_size);
196 int *buf_size);
240 int *buf_size);
244 int *buf_size);
260 int *buf_size);
268 int *buf_size);
276 int *buf_size);
288 int *buf_size);
296 int *buf_size);
1889 int *buf_size) in pack_change_state_request() argument
[all …]
/illumos-gate/usr/src/cmd/msgfmt/
H A Dgnu_lex.c357 size_t buf_size, buf_pos; in yylex() local
382 buf_size = CBUFSIZE; in yylex()
383 buf = (char *)Xmalloc(buf_size); in yylex()
406 buf_size = MBUFSIZE; in yylex()
407 buf = (char *)Xmalloc(buf_size); in yylex()
433 extend_buf(&buf, &buf_size, in yylex()
449 buf_size = KBUFSIZE; in yylex()
450 buf = (char *)Xmalloc(buf_size); in yylex()
459 extend_buf(&buf, &buf_size, in yylex()
492 buf_size = NBUFSIZE; in yylex()
[all …]
/illumos-gate/usr/src/cmd/boot/installboot/sparc/
H A Dinstallboot.c93 uint32_t buf_size; in read_bootblock_from_file() local
119 if (buf_size > BBLK_DATA_RSVD_SIZE) { in read_bootblock_from_file()
134 bblock->buf_size = buf_size; in read_bootblock_from_file()
136 bblock->buf_size); in read_bootblock_from_file()
138 bblock->buf = malloc(buf_size); in read_bootblock_from_file()
184 uint32_t buf_size; in read_bootblock_from_disk() local
220 bblock->buf = malloc(buf_size); in read_bootblock_from_disk()
227 bblock->buf_size = buf_size; in read_bootblock_from_disk()
241 size = bblock->buf_size - BBLK_DATA_RSVD_SIZE; in read_bootblock_from_disk()
526 uint32_t buf_size; in propagate_bootblock() local
[all …]
/illumos-gate/usr/src/cmd/tcopy/
H A Dtcopy.c68 size_t buf_size = size_64K; in main() local
89 if ((buff = malloc(buf_size)) == NULL) { in main()
99 while ((n = read(inp, buff, buf_size)) < 0 && in main()
100 errno == ENOMEM && buf_size < INT_MAX) { in main()
101 if (buf_size < size_256K) in main()
102 buf_size = size_256K; in main()
104 buf_size *= 2; in main()
106 if ((buff = malloc(buf_size)) == NULL) { in main()
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dramdisk.c252 size_t buf_size; in create_ramdisk() local
284 buf_size = sizeof (ramdisk_fth) + 80; in create_ramdisk()
286 fth_buf = bkmem_alloc(buf_size); in create_ramdisk()
290 (void) snprintf(fth_buf, buf_size, ramdisk_fth, in create_ramdisk()
295 bkmem_free(fth_buf, buf_size); in create_ramdisk()
335 size_t buf_size; in boot_ramdisk() local
370 buf_size = sizeof (ramdisk_bootable) + 80; in boot_ramdisk()
372 fth_buf = bkmem_alloc(buf_size); in boot_ramdisk()
376 (void) snprintf(fth_buf, buf_size, ramdisk_bootable, in boot_ramdisk()
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c50 uint32_t buf_size; in add_version() local
73 buf_size = P2ROUNDUP(sb.st_size + SECTOR_SIZE, SECTOR_SIZE); in add_version()
74 buf = malloc(buf_size); in add_version()
113 avail_space = buf_size - extra; in add_version()
114 memset(buf+sb.st_size, 0, buf_size - sb.st_size); in add_version()
123 ret = write(fd, buf, buf_size); in add_version()
/illumos-gate/usr/src/cmd/strings/
H A Dstrings.c101 static size_t buf_size = 0; variable
292 buf_size = BUFSIZ;
376 if (cc >= buf_size)
377 buf[buf_size-1] = '\0';
404 if (cc >= (buf_size-2)) {
406 buf_size += BUFSIZ;
407 tbuf = (char *)realloc(buf, buf_size);
412 buf_size -= BUFSIZ;
446 if ((cc + len1) >= (buf_size-2)) {
448 buf_size += BUFSIZ;
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_nvram.c407 u32_t buf_size) in lm_nvram_read() argument
414 DbgMessage(pdev, VERBOSEnv, "offset %d size %d\n",offset,buf_size); in lm_nvram_read()
416 if((buf_size & 0x03) || (offset & 0x03)) in lm_nvram_read()
424 if(offset + buf_size > pdev->hw_info.flash_spec.total_size) in lm_nvram_read()
448 while(buf_size > sizeof(u32_t) && lm_status == LM_STATUS_SUCCESS) in lm_nvram_read()
455 buf_size -= sizeof(u32_t); in lm_nvram_read()
484 u32_t buf_size) in lm_nvram_write() argument
500 if(offset + buf_size > pdev->hw_info.flash_spec.total_size) in lm_nvram_write()
502 … "lm_nvram_write failed ! buf_size %d larger than NVM total_size %d\n", buf_size, pdev->hw_info.fl… in lm_nvram_write()
527 while (written_so_far < buf_size) in lm_nvram_write()
[all …]
/illumos-gate/usr/src/cmd/bart/
H A Dcompare.c46 int buf_size);
270 (*curr_pos < line_len) && (cnt < (buf_size-1))) { in get_token()
560 (end_pos < buf_size)) in read_manifest_line()
563 if (end_pos >= buf_size) in read_manifest_line()
575 (end_pos < buf_size)) in read_manifest_line()
578 if (end_pos < buf_size) { in read_manifest_line()
597 (end_pos < buf_size)) in read_manifest_line()
600 if (end_pos < buf_size) { in read_manifest_line()
620 (void) memset(&buf[len], '\0', (buf_size - len)); in read_manifest_line()
627 (end_pos < buf_size)) in read_manifest_line()
[all …]
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_dbg_fw_funcs.h519 u32 *buf_size);
583 u32 *buf_size);
619 u32 *buf_size);
659 u32 *buf_size);
700 u32 *buf_size);
738 u32 *buf_size);
777 u32 *buf_size);
815 u32 *buf_size);
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_svc.c473 param->buf_size = 0; in svcctl_s_QueryServiceSecurity()
709 param->buf_size = input_bufsize; in svcctl_s_EnumDependentServices()
724 param->buf_size = input_bufsize; in svcctl_s_EnumDependentServices()
749 uint32_t buf_size = 0; in svcctl_s_EnumServicesStatus() local
769 buf_size = param->buf_size; in svcctl_s_EnumServicesStatus()
789 param->buf_size = buf_size; in svcctl_s_EnumServicesStatus()
1124 uint32_t buf_size; in svcctl_s_EnumServicesStatusA() local
1129 buf_size = param->buf_size; in svcctl_s_EnumServicesStatusA()
1155 param->buf_size = buf_size; in svcctl_s_EnumServicesStatusA()
1210 input_bufsize = param->buf_size; in svcctl_s_QueryServiceConfig2W()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Dufs.c441 size_t buf_size; in search_directory() local
468 fp->f_seekp += buf_size; in search_directory()
487 size_t buf_size; in ufs_open() local
508 (char *)fs, &buf_size); in ufs_open()
514 buf_size == SBLOCKSIZE && in ufs_open()
625 size_t buf_size; in ufs_open() local
638 fs->fs_bsize, buf, &buf_size); in ufs_open()
710 size_t buf_size; in ufs_read() local
723 if (csize > buf_size) in ufs_read()
724 csize = buf_size; in ufs_read()
[all …]
H A Dext2fs.c337 size_t buf_size; in ext2fs_open() local
401 (char *)fp->f_bg, &buf_size); in ext2fs_open()
502 size_t buf_size; in ext2fs_open() local
513 fs->fs_bsize, buf, &buf_size); in ext2fs_open()
763 size_t buf_size; in search_directory() local
788 fp->f_seekp += buf_size; in search_directory()
820 size_t csize, buf_size; in ext2fs_read() local
833 if (csize > buf_size) in ext2fs_read()
834 csize = buf_size; in ext2fs_read()
888 size_t buf_size; in ext2fs_readdir() local
[all …]
/illumos-gate/usr/src/uts/i86pc/io/ioat/
H A Dioat_ioctl.c211 uint_t buf_size; in ioat_ioctl_test() local
221 buf_size = 0x1000; in ioat_ioctl_test()
222 buf = kmem_zalloc((buf_size * 2) + 0x1000, KM_SLEEP); in ioat_ioctl_test()
224 dest = source + buf_size; in ioat_ioctl_test()
227 for (i = 0; i < buf_size; i++) { in ioat_ioctl_test()
329 kmem_free(buf, (buf_size * 2) + 0x1000); in ioat_ioctl_test()
339 kmem_free(buf, (buf_size * 2) + 0x1000); in ioat_ioctl_test()
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c583 uint32_t buf_size; in propagate_bootblock() local
604 dest_stage2->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE); in propagate_bootblock()
1107 uint32_t buf_size; in read_stage2_from_file() local
1126 buf_size = stage2->file_size + SECTOR_SIZE; in read_stage2_from_file()
1129 buf_size = stage2->file_size; in read_stage2_from_file()
1132 stage2->buf_size = P2ROUNDUP(buf_size, SECTOR_SIZE); in read_stage2_from_file()
1135 stage2->buf_size / SECTOR_SIZE); in read_stage2_from_file()
1137 stage2->buf = malloc(stage2->buf_size); in read_stage2_from_file()
1228 uint32_t buf_size; in read_stage2_from_disk() local
1265 stage2->buf = malloc(buf_size); in read_stage2_from_disk()
[all …]
/illumos-gate/usr/src/uts/common/smbsrv/ndl/
H A Dsvcctl.ndl298 IN DWORD buf_size;
299 SIZE_IS(buf_size)
314 SIZE_IS(buf_size)
316 IN DWORD buf_size;
371 IN DWORD buf_size;
372 SIZE_IS(buf_size)
389 IN DWORD buf_size;
406 IN DWORD buf_size;
501 IN DWORD buf_size;
519 IN DWORD buf_size;
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dforeachaddr.c199 size_t buf_size; in foreach_localaddr() member
240 P.buf_size = P.lifnum.lifn_count * sizeof (struct lifreq) * 2; in foreach_localaddr()
241 P.buf = malloc (P.buf_size); in foreach_localaddr()
247 code = get_lifconf (P.af, P.sock, &P.buf_size, P.buf); in foreach_localaddr()
253 for (i = 0; i < P.buf_size; i+= sizeof (*lifr)) { in foreach_localaddr()
324 for (i = 0; i < P.buf_size; i+= sizeof (*lifr)) { in foreach_localaddr()
/illumos-gate/usr/src/cmd/cxgbetool/
H A Dcxgbetool.c279 int read_input_file(char *in_file, void **buf, int *buf_size) in read_input_file() argument
297 *buf_size = ftell(fptr); in read_input_file()
304 *buf = (void *) malloc(*buf_size); in read_input_file()
309 memset(*buf, 0, *buf_size); in read_input_file()
311 count = fread(*buf, 1, *buf_size, fptr); in read_input_file()
312 if (count != *buf_size) { in read_input_file()
362 int buf_size = 32 * 1024 * 1024; in do_view() local
371 rc = read_input_file(in_file, &buf, &buf_size); in do_view()
379 if (buf_size - next_offset <= 0) in do_view()
383 buf_size-next_offset, NULL, 0); in do_view()
/illumos-gate/usr/src/lib/libumem/common/
H A Dvmem_sbrk.c159 size_t buf_size; in vmem_sbrk_alloc() local
178 buf_size = MAX(size, vmem_sbrk_minalloc); in vmem_sbrk_alloc()
183 buf = _sbrk_grow_aligned(buf_size, real_pagesize, vmem_sbrk_pagesize, in vmem_sbrk_alloc()
184 &buf_size); in vmem_sbrk_alloc()
187 ret = vmem_sbrk_extend_alloc(src, buf, buf_size, size, vmflags); in vmem_sbrk_alloc()
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_string_len.c222 int buf_size, size; in match_not_limited() local
238 buf_size = get_array_size_bytes(dest); in match_not_limited()
239 if (buf_size <= 0) in match_not_limited()
248 if (size <= buf_size) in match_not_limited()
260 buf_size, size, user ? " [user data]": ""); in match_not_limited()
/illumos-gate/usr/src/uts/common/io/cxgbe/shared/
H A Dshared.c120 rc = ddi_dma_mem_alloc(rxb->dhdl, p->buf_size, &p->acc_attr_rx, in rxbuf_ctor()
127 rc = ddi_dma_addr_bind_handle(rxb->dhdl, NULL, rxb->va, p->buf_size, in rxbuf_ctor()
145 rxb->buf_size = p->buf_size; in rxbuf_ctor()
/illumos-gate/usr/src/uts/common/io/bnx/570x/driver/common/lmdev/
H A Dbnx_hw_nvram.c1072 u32_t buf_size) in lm_nvram_read() argument
1079 if((buf_size & 0x03) || (offset & 0x03)) in lm_nvram_read()
1115 if(buf_size <= sizeof(u32_t)) in lm_nvram_read()
1133 buf_size -= sizeof(u32_t); in lm_nvram_read()
1142 buf_size -= sizeof(u32_t); in lm_nvram_read()
1171 u32_t buf_size) in lm_nvram_write() argument
1203 while (written_so_far < buf_size) in lm_nvram_write()
1213 data_end = (page_end > offset + buf_size) ? in lm_nvram_write()
1214 (offset+buf_size) : page_end; in lm_nvram_write()
1323 while (written_so_far < buf_size) in lm_nvram_write()
[all …]
/illumos-gate/usr/src/lib/libsasl/plugin/
H A Dplugin_common.c941 size_t buf_size; local
967 buf_size = 4 * (in_len + 1); /* guess */
970 buf = malloc(buf_size);
972 buf = utils->malloc(buf_size);
981 oleft = buf_size;
986 oleft += buf_size;
987 buf_size *= 2;
989 tmp = realloc(buf, buf_size);
991 tmp = utils->realloc(buf, buf_size);
1012 tmp = realloc(buf, buf_size + 1);
[all …]
/illumos-gate/usr/src/cmd/boot/common/
H A Dmboot_extra.c60 find_multiboot(char *buffer, uint32_t buf_size, uint32_t *mboot_off) in find_multiboot() argument
72 if (boundary > buf_size) in find_multiboot()
73 boundary = buf_size; in find_multiboot()

123456