ret_buf
if (strstr(devPath, ioc.ret_buf[i].device.ret_phci)) {
if (strstr(ioc.ret_buf[i].ret_addr, devaddr)) {
retval = nvlist_unpack(ioc.ret_buf[i].ret_prop.buf,
path_state[ioc.ret_buf[i].ret_state]);
lun->info.pathInfoState = ioc.ret_buf[i].ret_state;
ioc.ret_buf[i].ret_ext_state;
free(ioc.ret_buf[i].ret_prop.buf);
free(ioc.ret_buf[i].ret_prop.ret_buf_size);
free(ioc.ret_buf);
ioc->ret_buf = NULL;
ioc->ret_buf = (sv_path_info_t *)
if (ioc->ret_buf == NULL) {
ioc->ret_buf[i].ret_prop.buf_size = prop_buf_size;
if ((ioc->ret_buf[i].ret_prop.buf =
if ((ioc->ret_buf[i].ret_prop.ret_buf_size =
free(ioc->ret_buf[i].ret_prop.buf);
free(ioc->ret_buf[i].ret_prop.ret_buf_size);
free(ioc->ret_buf);
free(ioc->ret_buf[i].ret_prop.buf);
free(ioc->ret_buf[i].ret_prop.ret_buf_size);
free(ioc->ret_buf);
err = xptree_get_propval_with_cred(ptreeh, ret->ret_buf, vbufsize,
ret->nbytes = (uint32_t)strlen(ret->ret_buf) + 1;
in->req_attrvalbyname.propname, ret->ret_buf, vbufsize,
ret->nbytes = (uint32_t)strlen(ret->ret_buf) + 1;
if ((ioc.ret_buf = calloc(npaths, sizeof (sv_path_info_t)))
free(ioc.ret_buf);
free(ioc.ret_buf);
pi = (sv_path_info_t *)ioc.ret_buf;
free(ioc.ret_buf);
static int prom_dev_to_alias(char *dev, uint_t options, char ***ret_buf);
static int alias_to_prom_dev(char *alias, char *ret_buf);
static int prom_srch_node(int fd, char *prop_name, char *ret_buf);
prom_dev_to_alias(char *dev, uint_t options, char ***ret_buf)
if (ret_buf == NULL) {
if ((*ret_buf = (char **)malloc((count + 1) * sizeof (char *)))
array = *ret_buf;
alias_to_prom_dev(char *alias, char *ret_buf)
if (ret_buf == NULL) {
(void) strlcpy(ret_buf, alias_def, MAXPATHLEN);
if ((options_ptr = strrchr(ret_buf, ':')) == NULL) {
(void) strcat(ret_buf, ":");
(void) strcat(ret_buf, options);
prom_srch_node(int fd, char *prop_name, char *ret_buf)
(void) strlcpy(ret_buf, opp->oprom_array, MAXPATHLEN);
char ret_buf[MAXPATHLEN];
if (devfs_prom_to_dev_name(prom_path, ret_buf) < 0) {
if (process_minor_name(ret_buf, default_root) < 0) {
bootdev_array[i]->bootdev_trans[0] = strdup(ret_buf);
if ((ioc.ret_buf = (sv_path_info_t *)calloc(npaths,
if ((n = add_to_phci_list(phci_list, ioc.ret_buf, npaths,
free(ioc.ret_buf);
free(ioc.ret_buf);
void *ret_buf;
ret_buf = alloc_buf;
ret_buf = (void *)ret_addr;
return (ret_buf);
MEMALIGN_HEADER_ALLOC(ret_buf, shift,
return (ret_buf);
(void) memcpy(valbuf, ret->ret_attrval.ret_buf,
(void) memcpy(valbuf, ret->ret_attrvalbyname.ret_buf,
const char *ret_buf;
ret_buf = (buf == NULL) ? s : buf;
return ret_buf;
ioc.ret_buf = NULL;
ioc.ret_buf = pi;
ioc->ret_buf = NULL;
ioc->ret_buf = (sv_path_info_t *)
if (ioc->ret_buf == NULL) {
ioc->ret_buf[i].ret_prop.buf_size = prop_buf_size;
if ((ioc->ret_buf[i].ret_prop.buf =
if ((ioc->ret_buf[i].ret_prop.ret_buf_size =
free(ioc->ret_buf[i].ret_prop.buf);
free(ioc->ret_buf[i].ret_prop.ret_buf_size);
free(ioc->ret_buf);
free(ioc->ret_buf[i].ret_prop.buf);
free(ioc->ret_buf[i].ret_prop.ret_buf_size);
free(ioc->ret_buf);
ioc.ret_buf[i].ret_state;
ioc.ret_buf[i].device.ret_phci);
temp_addr = ioc.ret_buf[i].ret_addr;
retval = nvlist_unpack(ioc.ret_buf[i].ret_prop.buf,
free(ioc.ret_buf[i].ret_prop.buf);
free(ioc.ret_buf[i].ret_prop.ret_buf_size);
free(ioc.ret_buf);
ioc.ret_buf = NULL;
if (strncmp(ioc_phci, ioc.ret_buf[i].device.ret_phci,
*state = ioc.ret_buf[i].ret_state;
*ext_state = ioc.ret_buf[i].ret_ext_state;
free(ioc.ret_buf[i].ret_prop.buf);
free(ioc.ret_buf[i].ret_prop.ret_buf_size);
free(ioc.ret_buf);
u32_t *ret_buf,
lm_status = nvram_read_dword(pdev, offset, ret_buf, cmd_flags);
lm_status = nvram_read_dword(pdev, offset, ret_buf, cmd_flags);
ret_buf++;
lm_status = nvram_read_dword(pdev, offset, ret_buf, cmd_flags);
ret_buf++;
lm_status = nvram_read_dword(pdev, offset, ret_buf, cmd_flags);
u32_t *ret_buf,
u32_t *ret_buf,
lm_status = nvram_read_dword(pdev, offset, ret_buf, cmd_flags);
ret_buf++;
lm_status = nvram_read_dword(pdev, offset, ret_buf, cmd_flags);
u32_t *ret_buf,
lm_tcp_gen_buf_t * curr_gen_buf, * ret_buf;
ret_buf = curr_gen_buf;
d_list_push_tail(&return_to_pool_list, &ret_buf->link);
ret_buf = curr_gen_buf;
d_list_push_tail(&return_to_peninsula_list, &ret_buf->link);
u32 *ret_buf)
if (ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_NVM_READ_NVRAM, (nvram_offset_bytes + read_offset) | (bytes_to_copy << DRV_MB_PARAM_NVM_LEN_SHIFT), &ret_mcp_resp, &ret_mcp_param, &ret_read_size, (u32*)((u8*)ret_buf + read_offset)))
if (pioc->buf_elem == 0 || pioc->ret_buf == NULL ||
if (pioc->buf_elem == 0 || pioc->ret_buf == NULL ||
pioc->ret_buf = (sv_path_info_t *)(uintptr_t)ioc32.ret_buf;
src = (sv_path_info32_t *)pioc->ret_buf;
if (ddi_copyin(pioc->ret_buf, *upibuf,
if (ddi_copyin(pioc->ret_buf, *upibuf,
upi_ptr = pioc->ret_buf;
upi32_ptr = (sv_path_info32_t *)pioc->ret_buf;
extern int i_devname_to_promname(char *dev_name, char *ret_buf, size_t);
extern int i_promname_to_devname(char *prom_name, char *ret_buf);
caddr32_t ret_buf; /* addr of array of sv_path_info */
sv_path_info_t *ret_buf; /* array of sv_path_info */
i_promname_to_devname(char *prom_name, char *ret_buf)
if (prom_name == NULL || ret_buf == NULL ||
if (i_ddi_prompath_to_devfspath(prom_name, ret_buf) != DDI_SUCCESS)
i_devname_to_promname(char *dev_name, char *ret_buf, size_t len)
if ((dev_name == NULL) || (ret_buf == NULL) ||
bzero(ret_buf, len);
(void) snprintf(ret_buf, len, "%s", dev_name);
rptr = ret_buf;
ret_buf[len - 1] = '\0';
ret_buf[len - 2] = '\0';
i_promname_to_devname(char *prom_name, char *ret_buf)
if (prom_name == NULL || ret_buf == NULL ||
if (i_ddi_prompath_to_devfspath(prom_name, ret_buf) != DDI_SUCCESS)