Home
last modified time | relevance | path

Searched refs:buf_len (Results 1 – 25 of 98) sorted by relevance

1234

/illumos-gate/usr/src/lib/storage/libg_fc/common/
H A Dio.c90 int buf_len, uchar_t action) in g_scsi_persistent_reserve_in_cmd() argument
104 cdb.byte8 = buf_len & 0xff; in g_scsi_persistent_reserve_in_cmd()
108 ucmd.uscsi_buflen = buf_len; in g_scsi_persistent_reserve_in_cmd()
113 if (buf_len & 0x03) { in g_scsi_persistent_reserve_in_cmd()
138 cdb[4] = buf_len & 0xff; in g_scsi_send_diag_cmd()
178 cdb[4] = buf_len & 0xff; in rec_diag_cmd()
202 if (buf_len & 0x03) { in g_scsi_rec_diag_cmd()
349 cdb.byte7 = buf_len>>8; in g_scsi_log_sense_cmd()
383 cdb.byte7 = buf_len>>8; in g_scsi_mode_select_cmd()
408 int buf_len, in g_scsi_mode_sense_cmd() argument
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa_enc.c147 int i, buf_len; in hmac_sha1_vector() local
149 buf_len = 0; in hmac_sha1_vector()
151 buf_len += len[i]; in hmac_sha1_vector()
153 buf = malloc(buf_len); in hmac_sha1_vector()
191 plen = buf_len - pos; in sha1_prf()
217 size_t buf_len; in rc4_skip() local
220 buf = malloc(buf_len); in rc4_skip()
222 bzero(buf, buf_len); in rc4_skip()
245 int i, buf_len; in hmac_md5_vector() local
247 buf_len = 0; in hmac_md5_vector()
[all …]
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c107 int delim[NUM_COLONS + 1], buf_len, bufsize; in main() local
157 buf_len = 0; in main()
160 buf_len += strlen(buf_off); in main()
161 if (buf[buf_len - 1] == '\n' || feof(fptr)) in main()
170 buf_off = buf + buf_len; in main()
172 if (buf_len == 0) in main()
176 if ((buf_len + 1) > LINE_MAX) in main()
189 if (buf[buf_len - 1] == '\n') { in main()
194 tmpbuf[buf_len - 1] = ','; in main()
201 tmpbuf[buf_len++] = ','; in main()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftASN1.c332 *buf_len = p8obj_octs->bv_len;
337 *buf_len = p8obj_octs->bv_len;
518 *buf_len = p8obj_octs->bv_len;
523 *buf_len = p8obj_octs->bv_len;
689 *buf_len = p8obj_octs->bv_len;
694 *buf_len = p8obj_octs->bv_len;
878 *buf_len = p8obj_octs->bv_len;
883 *buf_len = p8obj_octs->bv_len;
956 p8obj_octs.bv_len = (ber_len_t)buf_len;
958 p8obj_octs.bv_len = (ber_len_t)buf_len;
[all …]
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_ioctl.c334 if (bmic_pass->buf_len > 0) { in cpqary3_ioctl_send_bmiccmd()
347 if (bmic_pass->buf_len > 0) { in cpqary3_ioctl_send_bmiccmd()
388 if (bmic_pass->buf_len > 0) { in cpqary3_ioctl_send_bmiccmd()
391 bmic_pass->buf_len, mode)) { in cpqary3_ioctl_send_bmiccmd()
485 cmdlist->SG[0].Len = bmic_pass->buf_len; in cpqary3_ioctl_fil_bmic()
605 if (scsi_pass->buf_len > 0) { in cpqary3_ioctl_send_scsicmd()
613 if (scsi_pass->buf_len > 0) { in cpqary3_ioctl_send_scsicmd()
678 if (scsi_pass->buf_len > 0) { in cpqary3_ioctl_send_scsicmd()
681 scsi_pass->buf_len, mode)) { in cpqary3_ioctl_send_scsicmd()
762 cmdlist->SG[0].Len = scsi_pass->buf_len; in cpqary3_ioctl_fil_scsi()
[all …]
H A Dcpqary3_ioctl.h110 uint16_t buf_len; /* buffer/transfer length */ member
122 uint16_t buf_len; /* buffer/transfer length */ member
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_ndd.c992 buf_len -= print_len; in nxge_param_get_txdma_info()
1049 buf_len -= print_len; in nxge_param_get_rxdma_info()
1055 buf_len -= print_len; in nxge_param_get_rxdma_info()
1115 buf_len -= print_len; in nxge_param_get_rxdma_rdcgrp_info()
1121 buf_len, in nxge_param_get_rxdma_rdcgrp_info()
1132 buf_len, "\n"); in nxge_param_get_rxdma_rdcgrp_info()
1145 buf_len, "\n"); in nxge_param_get_rxdma_rdcgrp_info()
1159 buf_len, "\n"); in nxge_param_get_rxdma_rdcgrp_info()
1529 buf_len -= print_len; in nxge_param_get_vlan_rdcgrp()
1536 buf_len, in nxge_param_get_vlan_rdcgrp()
[all …]
/illumos-gate/usr/src/stand/lib/sock/
H A Dsock_test.c631 int buf_len, ret; in st_recv() local
642 buf_len = atoi(tmp); in st_recv()
644 if ((buf = bkmem_zalloc(buf_len)) == NULL) { in st_recv()
658 bkmem_free(buf, buf_len); in st_recv()
667 int buf_len, ret; in st_recvfrom() local
680 buf_len = atoi(tmp); in st_recvfrom()
699 bkmem_free(buf, buf_len); in st_recvfrom()
717 int buf_len, ret, snd_cnt; in st_echo() local
730 buf_len = atoi(tmp); in st_echo()
776 bkmem_free(buf, buf_len); in st_echo()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelEmulate.c84 if (buflen > bufp->buf_len) { in emulate_buf_init()
102 bufp->buf_len = buflen; in emulate_buf_init()
189 } else if (ulPartLen > (bufp->buf_len - bufp->indata_len)) { in emulate_update()
190 int siz = ulPartLen < bufp->buf_len ? in emulate_update()
191 bufp->buf_len * 2 : bufp->buf_len + ulPartLen; in emulate_update()
200 bufp->buf_len = siz; in emulate_update()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci_tpgs.c308 unsigned int buf_len, rx_bsize; in vhci_tpgs_page83() local
315 buf_len = 512; in vhci_tpgs_page83()
322 buf_len)); in vhci_tpgs_page83()
329 bp->b_bcount = buf_len; in vhci_tpgs_page83()
337 kmem_free((void *)bufp, buf_len); in vhci_tpgs_page83()
351 kmem_free((void *)bufp, buf_len); in vhci_tpgs_page83()
363 if (rx_bsize > buf_len) { in vhci_tpgs_page83()
369 rx_bsize, buf_len)); in vhci_tpgs_page83()
372 kmem_free((void *)bufp, buf_len); in vhci_tpgs_page83()
373 buf_len = (unsigned int)(rx_bsize); in vhci_tpgs_page83()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Dndd.c45 static int get_value(char *msg, char *buf, int buf_len);
484 do_getset(int fd, int cmd, char *buf, int buf_len) in do_getset() argument
497 if (do_ipadm_getset(cmd, buf, buf_len)) in do_getset()
502 stri.ic_len = buf_len; in do_getset()
525 get_value(char *msg, char *buf, int buf_len) in get_value() argument
532 buf[buf_len-1] = '\0'; in get_value()
533 if (fgets(buf, buf_len-1, stdin) == NULL) in get_value()
548 int len, buf_len; in getset_interactive() local
570 buf_len = atoi(len_buf); in getset_interactive()
572 buf_len = sizeof (gbuf); in getset_interactive()
[all …]
/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_ndd.c505 uint_t print_len, buf_len; in hxge_param_get_rxdma_info() local
526 buf_len = buff_alloc_size; in hxge_param_get_rxdma_info()
541 buf_len -= print_len; in hxge_param_get_rxdma_info()
546 buf_len -= print_len; in hxge_param_get_rxdma_info()
553 buf_len -= print_len; in hxge_param_get_rxdma_info()
812 uint_t print_len, buf_len; in hxge_param_get_vlan_ids() local
830 buf_len = buff_alloc_size; in hxge_param_get_vlan_ids()
840 buf_len -= print_len; in hxge_param_get_vlan_ids()
850 buf_len -= print_len; in hxge_param_get_vlan_ids()
1148 uint_t print_len, buf_len; in hxge_param_dump_ptrs() local
[all …]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dflowattr.c353 dladm_flow_attr_ip2str(dladm_flow_attr_t *attrp, char *buf, size_t buf_len) in dladm_flow_attr_ip2str() argument
373 (void) snprintf(buf, buf_len, "LCL:%s/%d ", cp, prefix_len); in dladm_flow_attr_ip2str()
387 (void) snprintf(buf, buf_len, "RMT:%s/%d ", cp, prefix_len); in dladm_flow_attr_ip2str()
394 dladm_flow_attr_proto2str(dladm_flow_attr_t *attrp, char *buf, size_t buf_len) in dladm_flow_attr_proto2str() argument
398 (void) snprintf(buf, buf_len, "%s", in dladm_flow_attr_proto2str()
403 dladm_flow_attr_port2str(dladm_flow_attr_t *attrp, char *buf, size_t buf_len) in dladm_flow_attr_port2str() argument
408 (void) snprintf(buf, buf_len, "%d", in dladm_flow_attr_port2str()
411 (void) snprintf(buf, buf_len, "%d", in dladm_flow_attr_port2str()
419 dladm_flow_attr_dsfield2str(dladm_flow_attr_t *attrp, char *buf, size_t buf_len) in dladm_flow_attr_dsfield2str() argument
424 (void) snprintf(buf, buf_len, "0x%x:0x%x", in dladm_flow_attr_dsfield2str()
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/kctl/
H A Dkctl_isadep.c42 kctl_boot_prop_read(char *pname, char *prop_buf, int buf_len) in kctl_boot_prop_read() argument
48 if (len > 0 && len <= buf_len) { in kctl_boot_prop_read()
57 kctl_ddi_prop_read(char *pname, char *prop_buf, int buf_len) in kctl_ddi_prop_read() argument
67 if (strlen(val) < buf_len) { in kctl_ddi_prop_read()
/illumos-gate/usr/src/lib/libgss/
H A Dg_glue.c54 gssint_get_der_length(unsigned char **buf, unsigned int buf_len, unsigned int *bytes) in gssint_get_der_length() argument
61 if (buf_len < 1) in gssint_get_der_length()
85 if (octets > buf_len - 1) in gssint_get_der_length()
133 unsigned int buf_len = 0; in gssint_put_der_length() local
153 buf_len = 0; in gssint_put_der_length()
164 for (i = MSO_BIT; i >= 0 && buf_len <= max_len; i -= 8) { in gssint_put_der_length()
168 buf_len += 1; in gssint_put_der_length()
180 *s = buf_len | 0x80; in gssint_put_der_length()
/illumos-gate/usr/src/uts/sun4u/opl/sys/
H A Dsckm_io.h60 uint32_t buf_len; /* size of buf */ member
68 uint32_t buf_len; /* size of buf */ member
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dncu_phys.c289 size_t buf_len = strlen(buf); in key_string_to_secobj_value() local
292 buf_len); in key_string_to_secobj_value()
293 if (buf_len == 0) { in key_string_to_secobj_value()
298 if (buf[buf_len - 1] == '\n') in key_string_to_secobj_value()
299 buf[--buf_len] = '\0'; in key_string_to_secobj_value()
302 buf_len); in key_string_to_secobj_value()
309 if (buf_len < 8 || buf_len > 63) { in key_string_to_secobj_value()
315 (void) memcpy(obj_val, buf, (uint_t)buf_len); in key_string_to_secobj_value()
316 *obj_lenp = buf_len; in key_string_to_secobj_value()
320 switch (buf_len) { in key_string_to_secobj_value()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_rpc_adm.c351 size_t name_len, buf_len; in fmd_adm_rsrclist_asru() local
381 buf_len = rrl->rrl_buf.rrl_buf_len * 2; in fmd_adm_rsrclist_asru()
383 buf_len = 1024; /* default buffer size */ in fmd_adm_rsrclist_asru()
385 if ((p = realloc(rrl->rrl_buf.rrl_buf_val, buf_len)) != NULL) { in fmd_adm_rsrclist_asru()
387 buf_len - rrl->rrl_buf.rrl_buf_len); in fmd_adm_rsrclist_asru()
389 rrl->rrl_buf.rrl_buf_len = buf_len; in fmd_adm_rsrclist_asru()
837 size_t uuid_len, buf_len; in fmd_adm_caselist_case() local
863 buf_len = rcl->rcl_buf.rcl_buf_len * 2; in fmd_adm_caselist_case()
865 buf_len = 1024; /* default buffer size */ in fmd_adm_caselist_case()
869 buf_len - rcl->rcl_buf.rcl_buf_len); in fmd_adm_caselist_case()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/xaui/
H A Dxaui.c181 xaui_trans_str(topo_mod_t *mod, char *dn, char *p, size_t buf_len) in xaui_trans_str() argument
195 } while (i < buf_len); in xaui_trans_str()
209 size_t buf_len; in xaui_get_path() local
254 buf_len = strlen(buf) + 1; in xaui_get_path()
257 buf_len = strlen(buf) + 1; in xaui_get_path()
271 xaui_topo_free(buf, buf_len); in xaui_get_path()
/illumos-gate/usr/src/common/crypto/sha1/
H A Dsha1.c203 uint32_t i, buf_index, buf_len; in SHA1Update() local
225 buf_len = 64 - buf_index; in SHA1Update()
229 if (input_len >= buf_len) { in SHA1Update()
256 bcopy(input, &ctx->buf_un.buf8[buf_index], buf_len); in SHA1Update()
264 i = buf_len; in SHA1Update()
350 uint32_t i, buf_index, buf_len; in SHA1Update() local
369 buf_len = 64 - buf_index; in SHA1Update()
373 if (input_len >= buf_len) { in SHA1Update()
386 bcopy(input, &ctx->buf_un.buf8[buf_index], buf_len); in SHA1Update()
388 i = buf_len; in SHA1Update()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_sess.c1798 buf = kmem_zalloc(buf_len, KM_SLEEP); in iscsi_sess_reportluns()
1804 cdb[6] = (buf_len & 0xff000000) >> 24; in iscsi_sess_reportluns()
1806 cdb[8] = (buf_len & 0x0000ff00) >> 8; in iscsi_sess_reportluns()
1807 cdb[9] = (buf_len & 0x000000ff); in iscsi_sess_reportluns()
1816 ucmd.uscsi_buflen = buf_len; in iscsi_sess_reportluns()
1832 if (buf_len >= lun_list_length + in iscsi_sess_reportluns()
1843 kmem_free(buf, buf_len); in iscsi_sess_reportluns()
1845 buf_len = lun_list_length + in iscsi_sess_reportluns()
1854 kmem_free(buf, buf_len); in iscsi_sess_reportluns()
1862 kmem_free(buf, buf_len); in iscsi_sess_reportluns()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_dyndns.c575 dyndns_build_header(char **ptr, int buf_len, uint16_t msg_id, int query_req, in dyndns_build_header() argument
581 if (buf_len < 12) { in dyndns_build_header()
622 dyndns_build_quest_zone(char **ptr, int buf_len, char *name, int type, in dyndns_build_quest_zone() argument
627 if ((strlen(name) + 6) > buf_len) { in dyndns_build_quest_zone()
664 dyndns_build_update(char **ptr, int buf_len, char *name, int type, int class, in dyndns_build_update() argument
691 if (rec_len + data_len > buf_len) { in dyndns_build_update()
748 dyndns_build_tkey(char **ptr, int buf_len, char *name, int key_expire, in dyndns_build_tkey() argument
754 if (strlen(name)+2 + 45 + data_size > buf_len) { in dyndns_build_tkey()
806 dyndns_build_tsig(char **ptr, int buf_len, int msg_id, char *name, in dyndns_build_tsig() argument
818 if (rec_len > buf_len) { in dyndns_build_tsig()
/illumos-gate/usr/src/cmd/luxadm/
H A Dlux_util.c611 scsi_mode_sense_cmd(int fd, uchar_t *buf_ptr, int buf_len, uchar_t pc, in scsi_mode_sense_cmd() argument
621 if ((fd < 0) || (buf_ptr == NULL) || (buf_len < 0)) { in scsi_mode_sense_cmd()
625 (void) memset(buf_ptr, 0, buf_len); in scsi_mode_sense_cmd()
629 (buf_len > MAX_MODE_SENSE_LEN)) { in scsi_mode_sense_cmd()
633 cdb.g1_count1 = buf_len>>8; in scsi_mode_sense_cmd()
634 cdb.g1_count0 = buf_len & 0xff; in scsi_mode_sense_cmd()
638 ucmd.uscsi_buflen = buf_len; in scsi_mode_sense_cmd()
646 uscsi_count = buf_len - ucmd.uscsi_resid; in scsi_mode_sense_cmd()
/illumos-gate/usr/src/uts/sun4u/opl/io/
H A Doplkmdrv.c603 if (ireqp->buf_len < len) { in okm_process_req()
616 ireqp->buf_len = sadb_msglen; in okm_process_req()
740 driverarg->buf_len = driverarg32.buf_len; in okm_copyin_ioctl_getreq()
775 driverarg32.buf_len = driverarg->buf_len; in okm_copyout_ioctl_getreq()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dasn1.c841 CK_ULONG buf_len, offset, len, field_len; in ber_decode_PrivateKeyInfo() local
847 rc = ber_decode_SEQUENCE(data, &buf, &buf_len, &field_len); in ber_decode_PrivateKeyInfo()
865 rc = ber_decode_OCTET_STRING(alg + len, priv_key, &buf_len, &field_len); in ber_decode_PrivateKeyInfo()
1077 CK_ULONG offset, buf_len, field_len, len; in ber_decode_RSAPrivateKey() local
1088 rc = ber_decode_SEQUENCE(rsa_priv_key, &buf, &buf_len, &field_len); in ber_decode_RSAPrivateKey()
1147 if (offset > buf_len) { in ber_decode_RSAPrivateKey()

1234