Searched refs:alloc_len (Results 1 - 16 of 16) sorted by relevance

/illumos-gate/usr/src/uts/common/io/i40e/core/
H A Di40e_hmc.c63 u64 alloc_len; local
81 alloc_len = I40E_HMC_PAGED_BP_SIZE;
84 alloc_len = direct_mode_sz;
88 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len,
/illumos-gate/usr/src/lib/fm/libseslog/common/
H A Dlibseslog.c604 int res, alloc_len, off; local
662 alloc_len = MAX_ALLOC_LEN;
665 res = sg_ll_mode_sense10(sg_fd, ref_md, alloc_len);
673 off = sg_mode_page_offset(ref_md, alloc_len);
684 if (md_len > alloc_len) {
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_ioctl.c90 size_t alloc_len; local
99 alloc_len = sizeof (*cl);
101 alloc_len += ((cl_tmp->cl_in_cnt - 1) *
105 cl = (iscsi_conn_list_t *)kmem_zalloc(alloc_len,
121 size_t alloc_len; local
128 alloc_len = sizeof (*cl);
130 alloc_len += ((cl->cl_in_cnt - 1) * sizeof (iscsi_if_conn_t));
133 if (ddi_copyout(cl, arg, alloc_len, mode) == 0) {
136 kmem_free(cl, alloc_len);
/illumos-gate/usr/src/uts/common/rpc/
H A Dsvc_rdma.c647 int alloc_len; local
658 alloc_len = RNDUP(MAX_AUTH_BYTES + *msglen);
660 alloc_len = RNDUP(*msglen);
663 if (alloc_len <= 64 * 1024) {
664 if (alloc_len > 32 * 1024) {
665 alloc_len = 64 * 1024;
667 if (alloc_len > 16 * 1024) {
668 alloc_len = 32 * 1024;
670 alloc_len = 16 * 1024;
676 long_rpc.len = alloc_len;
[all...]
/illumos-gate/usr/src/uts/common/sys/scsi/generic/
H A Dpersist.h131 uint8_t alloc_len[2]; member in struct:scsi_cdb_prin
328 uint8_t alloc_len[2]; member in struct:scsi_cdb_prin
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_list.c941 int alloc_len; local
945 alloc_len = sizeof (struct scsi_inquiry);
946 if ((*inq_buf = (struct scsi_inquiry *)calloc(1, alloc_len)) == NULL) {
956 sizeof (scsi_inq_req), *inq_buf, alloc_len, &sensebuf,
990 int alloc_len; local
994 alloc_len = sizeof (struct report_lun_resp);
995 if ((*resp_buf = (report_lun_resp_t *)calloc(1, alloc_len)) == NULL) {
1008 sizeof (scsi_rl_req), *resp_buf, alloc_len, sensebuf,
1011 FORMG5COUNT(&scsi_rl_req, alloc_len);
1021 alloc_len
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_rx.c397 int alloc_len; local
411 alloc_len = pkt_len + OCE_RQE_BUF_HEADROOM;
414 mp = allocb(alloc_len, BPRI_HI);
H A Doce_mbx.c1246 int alloc_len; local
1263 alloc_len = msgdsize(mp->b_cont);
1270 MBLKL(mp->b_cont), alloc_len);
1311 ret = ddi_dma_mem_alloc(dma_handle, alloc_len,
1332 alloc_len,
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_sp.c1186 * alloc_len - the length of the allocation
1292 * alloc_len (see next paragraph) until it reaches
1294 * - alloc_len is used to represent data space allocated
1298 * alloc_len will be zero and the resulting MD_SP_WMSIZE
1319 sp_ext_length_t alloc_len; local
1393 alloc_len =
1396 if (align && (alloc_len < len)) {
1398 alloc_len -= alloc_len % alignment;
1401 if (alloc_len >
[all...]
/illumos-gate/usr/src/uts/common/sys/fibre-channel/impl/
H A Dfp.h345 fc_portmap_t *changelist, uint32_t listlen, uint32_t alloc_len, int sleep);
347 uint32_t listlen, uint32_t alloc_len, int sleep, int sync);
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvdc.c5773 * buffer is returned in alloc_len.
5777 int *alloc_len)
5796 *alloc_len = vd_scsi_len;
7107 size_t alloc_len; local
7112 alloc_len = P2ROUNDUP(sizeof (vd_capacity_t), sizeof (uint64_t));
7114 vd_cap = kmem_zalloc(alloc_len, KM_SLEEP);
7116 rv = vdc_do_sync_op(vdc, VD_OP_GET_CAPACITY, (caddr_t)vd_cap, alloc_len,
7122 kmem_free(vd_cap, alloc_len);
7292 size_t alloc_len = 0; /* #bytes to allocate mem for */ local
7598 alloc_len
5776 vdc_scsi_alloc(int cdb_len, int sense_len, int datain_len, int dataout_len, int *alloc_len) argument
[all...]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/
H A Decore_sp_verbs.c2925 u32 alloc_len; /* passed to ECORE_FREE */ member in struct:ecore_pending_mcast_cmd
2972 new_cmd->alloc_len = total_sz;
3284 ECORE_FREE(pdev, cmd_pos, cmd_pos->alloc_len);
3896 ECORE_FREE(pdev, cmd_pos, cmd_pos->alloc_len);
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/
H A Dfcp.c6513 fcp_send_scsi(struct fcp_lun *plun, uchar_t opcode, int alloc_len, argument
6540 FCP_MAX_RSP_IU_SIZE, alloc_len, nodma, lcount, tcount, cause,
6601 fcmd->fcp_data_len = alloc_len;
6609 scsi_cdb->g0_count0 = (uchar_t)alloc_len;
6615 fcmd->fcp_data_len = alloc_len;
6628 ASSERT(alloc_len >= 16);
6641 fcmd->fcp_data_len = alloc_len;
6647 scsi_cdb->scc5_count0 = alloc_len & 0xff;
6648 scsi_cdb->scc5_count1 = (alloc_len >> 8) & 0xff;
6649 scsi_cdb->scc5_count2 = (alloc_len >> 1
[all...]
/illumos-gate/usr/src/uts/common/io/comstar/stmf/
H A Dstmf.c3417 int alloc_len; local
3426 alloc_len = sizeof (*irport) + sizeof (scsi_devid_desc_t) +
3428 irport = kmem_zalloc(alloc_len, KM_NOSLEEP);
3436 kmem_free(irport, alloc_len);
/illumos-gate/usr/src/uts/common/io/fibre-channel/impl/
H A Dfp.c4601 fc_portmap_t *changelist, uint32_t listlen, uint32_t alloc_len, int sleep)
4611 kmem_free(changelist, alloc_len * sizeof (*changelist));
4623 clist->clist_size = alloc_len;
4705 uint32_t listlen, uint32_t alloc_len, int sleep, int sync)
4714 kmem_free(changelist, alloc_len * sizeof (*changelist));
4726 clist->clist_size = alloc_len;
4600 fp_ulp_statec_cb(fc_local_port_t *port, uint32_t state, fc_portmap_t *changelist, uint32_t listlen, uint32_t alloc_len, int sleep) argument
4704 fp_ulp_devc_cb(fc_local_port_t *port, fc_portmap_t *changelist, uint32_t listlen, uint32_t alloc_len, int sleep, int sync) argument
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/
H A Dmptsas.c4035 size_t mem_size, alloc_len; local
4056 &alloc_len, &p->m_acc_hdl) != DDI_SUCCESS) {
4065 alloc_len, DDI_DMA_RDWR | DDI_DMA_CONSISTENT, callback, NULL,
16517 size_t alloc_len; local
16529 DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, dma_memp, &alloc_len,
16536 if (ddi_dma_addr_bind_handle(*dma_hdp, NULL, *dma_memp, alloc_len,

Completed in 247 milliseconds