| /titanic_41/usr/src/lib/fm/libseslog/common/ |
| H A D | libseslog.c | 604 int res, alloc_len, off; in clear_log() local 662 alloc_len = MAX_ALLOC_LEN; in clear_log() 665 res = sg_ll_mode_sense10(sg_fd, ref_md, alloc_len); in clear_log() 673 off = sg_mode_page_offset(ref_md, alloc_len); in clear_log() 684 if (md_len > alloc_len) { in clear_log()
|
| /titanic_41/usr/src/uts/common/io/i40e/core/ |
| H A D | i40e_hmc.c | 61 u64 alloc_len; in i40e_add_sd_table_entry() local 79 alloc_len = I40E_HMC_PAGED_BP_SIZE; in i40e_add_sd_table_entry() 82 alloc_len = direct_mode_sz; in i40e_add_sd_table_entry() 86 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len, in i40e_add_sd_table_entry()
|
| /titanic_41/usr/src/uts/common/rpc/ |
| H A D | svc_rdma.c | 647 int alloc_len; in svc_process_long_reply() local 658 alloc_len = RNDUP(MAX_AUTH_BYTES + *msglen); in svc_process_long_reply() 660 alloc_len = RNDUP(*msglen); in svc_process_long_reply() 663 if (alloc_len <= 64 * 1024) { in svc_process_long_reply() 664 if (alloc_len > 32 * 1024) { in svc_process_long_reply() 665 alloc_len = 64 * 1024; in svc_process_long_reply() 667 if (alloc_len > 16 * 1024) { in svc_process_long_reply() 668 alloc_len = 32 * 1024; in svc_process_long_reply() 670 alloc_len = 16 * 1024; in svc_process_long_reply() 676 long_rpc.len = alloc_len; in svc_process_long_reply() [all …]
|
| /titanic_41/usr/src/uts/common/io/scsi/adapters/iscsi/ |
| H A D | iscsi_ioctl.c | 90 size_t alloc_len; in iscsi_ioctl_conn_oid_list_get_copyin() local 99 alloc_len = sizeof (*cl); in iscsi_ioctl_conn_oid_list_get_copyin() 101 alloc_len += ((cl_tmp->cl_in_cnt - 1) * in iscsi_ioctl_conn_oid_list_get_copyin() 105 cl = (iscsi_conn_list_t *)kmem_zalloc(alloc_len, in iscsi_ioctl_conn_oid_list_get_copyin() 121 size_t alloc_len; in iscsi_ioctl_conn_oid_list_get_copyout() local 128 alloc_len = sizeof (*cl); in iscsi_ioctl_conn_oid_list_get_copyout() 130 alloc_len += ((cl->cl_in_cnt - 1) * sizeof (iscsi_if_conn_t)); in iscsi_ioctl_conn_oid_list_get_copyout() 133 if (ddi_copyout(cl, arg, alloc_len, mode) == 0) { in iscsi_ioctl_conn_oid_list_get_copyout() 136 kmem_free(cl, alloc_len); in iscsi_ioctl_conn_oid_list_get_copyout()
|
| /titanic_41/usr/src/uts/common/sys/scsi/generic/ |
| H A D | persist.h | 131 uint8_t alloc_len[2]; member 328 uint8_t alloc_len[2];
|
| /titanic_41/usr/src/lib/cfgadm_plugins/fp/common/ |
| H A D | cfga_list.c | 941 int alloc_len; in get_standard_inq_data() local 945 alloc_len = sizeof (struct scsi_inquiry); in get_standard_inq_data() 946 if ((*inq_buf = (struct scsi_inquiry *)calloc(1, alloc_len)) == NULL) { in get_standard_inq_data() 956 sizeof (scsi_inq_req), *inq_buf, alloc_len, &sensebuf, in get_standard_inq_data() 990 int alloc_len; in get_report_lun_data() local 994 alloc_len = sizeof (struct report_lun_resp); in get_report_lun_data() 995 if ((*resp_buf = (report_lun_resp_t *)calloc(1, alloc_len)) == NULL) { in get_report_lun_data() 1008 sizeof (scsi_rl_req), *resp_buf, alloc_len, sensebuf, in get_report_lun_data() 1011 FORMG5COUNT(&scsi_rl_req, alloc_len); in get_report_lun_data() 1021 alloc_len = (*resp_buf)->num_lun + REPORT_LUN_HDR_SIZE; in get_report_lun_data() [all …]
|
| /titanic_41/usr/src/uts/common/io/fibre-channel/fca/oce/ |
| H A D | oce_rx.c | 397 int alloc_len; in oce_rx_bcopy() local 411 alloc_len = pkt_len + OCE_RQE_BUF_HEADROOM; in oce_rx_bcopy() 414 mp = allocb(alloc_len, BPRI_HI); in oce_rx_bcopy()
|
| H A D | oce_mbx.c | 1246 int alloc_len; in oce_issue_mbox() local 1263 alloc_len = msgdsize(mp->b_cont); in oce_issue_mbox() 1270 MBLKL(mp->b_cont), alloc_len); in oce_issue_mbox() 1311 ret = ddi_dma_mem_alloc(dma_handle, alloc_len, in oce_issue_mbox() 1332 alloc_len, in oce_issue_mbox()
|
| /titanic_41/usr/src/lib/lvm/libmeta/common/ |
| H A D | meta_sp.c | 1319 sp_ext_length_t alloc_len; in meta_sp_alloc_by_len() local 1393 alloc_len = in meta_sp_alloc_by_len() 1396 if (align && (alloc_len < len)) { in meta_sp_alloc_by_len() 1398 alloc_len -= alloc_len % alignment; in meta_sp_alloc_by_len() 1401 if (alloc_len > 0) { in meta_sp_alloc_by_len() 1409 alloc_ext->ext_length + alloc_len, in meta_sp_alloc_by_len() 1419 len -= alloc_len; in meta_sp_alloc_by_len() 1566 alloc_len = MIN(len, a_length - MD_SP_WMSIZE); in meta_sp_alloc_by_len() 1567 if (alloc_len == 0) in meta_sp_alloc_by_len() 1580 len -= alloc_len; in meta_sp_alloc_by_len() [all …]
|
| /titanic_41/usr/src/uts/sun4v/io/ |
| H A D | vdc.c | 5777 int *alloc_len) in vdc_scsi_alloc() argument 5796 *alloc_len = vd_scsi_len; in vdc_scsi_alloc() 7107 size_t alloc_len; in vdc_get_capacity() local 7112 alloc_len = P2ROUNDUP(sizeof (vd_capacity_t), sizeof (uint64_t)); in vdc_get_capacity() 7114 vd_cap = kmem_zalloc(alloc_len, KM_SLEEP); in vdc_get_capacity() 7116 rv = vdc_do_sync_op(vdc, VD_OP_GET_CAPACITY, (caddr_t)vd_cap, alloc_len, in vdc_get_capacity() 7122 kmem_free(vd_cap, alloc_len); in vdc_get_capacity() 7292 size_t alloc_len = 0; /* #bytes to allocate mem for */ in vd_process_ioctl() local 7598 alloc_len = P2ROUNDUP(len, sizeof (uint64_t)); in vd_process_ioctl() 7600 instance, len, alloc_len); in vd_process_ioctl() [all …]
|
| /titanic_41/usr/src/uts/common/sys/fibre-channel/impl/ |
| H A D | fp.h | 345 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);
|
| /titanic_41/usr/src/uts/common/io/fibre-channel/ulp/ |
| H A D | fcp.c | 6513 fcp_send_scsi(struct fcp_lun *plun, uchar_t opcode, int alloc_len, in fcp_send_scsi() argument 6540 FCP_MAX_RSP_IU_SIZE, alloc_len, nodma, lcount, tcount, cause, in fcp_send_scsi() 6601 fcmd->fcp_data_len = alloc_len; in fcp_send_scsi() 6609 scsi_cdb->g0_count0 = (uchar_t)alloc_len; in fcp_send_scsi() 6615 fcmd->fcp_data_len = alloc_len; in fcp_send_scsi() 6628 ASSERT(alloc_len >= 16); in fcp_send_scsi() 6641 fcmd->fcp_data_len = alloc_len; in fcp_send_scsi() 6647 scsi_cdb->scc5_count0 = alloc_len & 0xff; in fcp_send_scsi() 6648 scsi_cdb->scc5_count1 = (alloc_len >> 8) & 0xff; in fcp_send_scsi() 6649 scsi_cdb->scc5_count2 = (alloc_len >> 16) & 0xff; in fcp_send_scsi() [all …]
|
| /titanic_41/usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ |
| H A D | ecore_sp_verbs.c | 2925 u32 alloc_len; /* passed to ECORE_FREE */ member 2972 new_cmd->alloc_len = total_sz; in ecore_mcast_enqueue_cmd() 3284 ECORE_FREE(pdev, cmd_pos, cmd_pos->alloc_len); in ecore_mcast_handle_pending_cmds_e2() 3896 ECORE_FREE(pdev, cmd_pos, cmd_pos->alloc_len); in ecore_mcast_handle_pending_cmds_e1()
|
| /titanic_41/usr/src/uts/common/io/comstar/stmf/ |
| H A D | stmf.c | 3420 int alloc_len; in stmf_irport_create() local 3429 alloc_len = sizeof (*irport) + sizeof (scsi_devid_desc_t) + in stmf_irport_create() 3431 irport = kmem_zalloc(alloc_len, KM_NOSLEEP); in stmf_irport_create() 3439 kmem_free(irport, alloc_len); in stmf_irport_create()
|
| /titanic_41/usr/src/uts/common/io/fibre-channel/impl/ |
| H A D | fp.c | 4601 fc_portmap_t *changelist, uint32_t listlen, uint32_t alloc_len, int sleep) in fp_ulp_statec_cb() argument 4611 kmem_free(changelist, alloc_len * sizeof (*changelist)); in fp_ulp_statec_cb() 4623 clist->clist_size = alloc_len; in fp_ulp_statec_cb() 4705 uint32_t listlen, uint32_t alloc_len, int sleep, int sync) in fp_ulp_devc_cb() argument 4714 kmem_free(changelist, alloc_len * sizeof (*changelist)); in fp_ulp_devc_cb() 4726 clist->clist_size = alloc_len; in fp_ulp_devc_cb()
|
| /titanic_41/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
| H A D | mptsas.c | 4088 size_t mem_size, alloc_len; in mptsas_cache_frames_constructor() local 4109 &alloc_len, &p->m_acc_hdl) != DDI_SUCCESS) { in mptsas_cache_frames_constructor() 4118 alloc_len, DDI_DMA_RDWR | DDI_DMA_CONSISTENT, callback, NULL, in mptsas_cache_frames_constructor() 16577 size_t alloc_len; in mptsas_dma_addr_create() local 16589 DDI_DMA_CONSISTENT, DDI_DMA_SLEEP, NULL, dma_memp, &alloc_len, in mptsas_dma_addr_create() 16596 if (ddi_dma_addr_bind_handle(*dma_hdp, NULL, *dma_memp, alloc_len, in mptsas_dma_addr_create()
|