Lines Matching refs:ii
1384 int ii; in ibnex_config_all_children() local
1408 for (ii = 0; ii < hca_list->hl_nports; ii++) { in ibnex_config_all_children()
1410 parent, &hca_list->hl_port_attr[ii]); in ibnex_config_all_children()
1411 ibnex_create_vppa_nodes(parent, &hca_list->hl_port_attr[ii]); in ibnex_config_all_children()
1483 int idx, ii; in ibnex_create_vppa_nodes() local
1502 for (ii = 0; ii < port_attr->pa_npkeys; ii++) { in ibnex_create_vppa_nodes()
1503 pkey = port_attr->pa_pkey_tbl[ii].pt_pkey; in ibnex_create_vppa_nodes()
1611 int ii, index; in ibnex_config_port_node() local
1690 for (ii = 0; ii < port_attr->pa_npkeys; ii++) { in ibnex_config_port_node()
1691 if (pkey == port_attr->pa_pkey_tbl[ii].pt_pkey) { in ibnex_config_port_node()
1721 int ii, ncommsvcs, ret; in ibnex_get_pkey_commsvc_index_portnum() local
1753 for (ii = 0; ii < ncommsvcs; ii++) { in ibnex_get_pkey_commsvc_index_portnum()
1754 if (strcmp(service_name[ii], temp) == 0) { in ibnex_get_pkey_commsvc_index_portnum()
1758 if (ii == ncommsvcs) in ibnex_get_pkey_commsvc_index_portnum()
1761 *index = ii; in ibnex_get_pkey_commsvc_index_portnum()
2407 int length, ii, jj; in ibnex_create_ioc_portgid_prop() local
2421 for (ii = 0, jj = 0; ii < ioc_info->ioc_nportgids; ii++) { in ibnex_create_ioc_portgid_prop()
2422 port_gids[jj++] = ioc_info->ioc_gid_list[ii].gid_dgid_hi; in ibnex_create_ioc_portgid_prop()
2423 port_gids[jj++] = ioc_info->ioc_gid_list[ii].gid_dgid_lo; in ibnex_create_ioc_portgid_prop()
2454 int length, ii; in ibnex_create_ioc_srv_props() local
2465 for (ii = 0; ii < profile->ioc_service_entries; ii++) { in ibnex_create_ioc_srv_props()
2466 srv_names[ii] = (char *)temp + (ii * IB_DM_MAX_SVC_NAME_LEN); in ibnex_create_ioc_srv_props()
2469 for (ii = 0; ii < profile->ioc_service_entries; ii++) { in ibnex_create_ioc_srv_props()
2470 srv_id[ii] = srvents[ii].se_attr.srv_id; in ibnex_create_ioc_srv_props()
2471 bcopy(srvents[ii].se_attr.srv_name, in ibnex_create_ioc_srv_props()
2472 srv_names[ii], (IB_DM_MAX_SVC_NAME_LEN - 1)); in ibnex_create_ioc_srv_props()
2474 "Service Names : %s", srv_names[ii]); in ibnex_create_ioc_srv_props()
2476 "Service ID : %llX", srv_id[ii]); in ibnex_create_ioc_srv_props()
2511 int rval, ii; in ibnex_create_ioc_compatible_prop() local
2530 for (ii = 0; ii < IBNEX_MAX_COMPAT_NAMES; ii++) in ibnex_create_ioc_compatible_prop()
2531 compatible[ii] = temp + (ii * IBNEX_MAX_COMPAT_LEN); in ibnex_create_ioc_compatible_prop()
2562 for (ii = 0; ii < IBNEX_MAX_COMPAT_NAMES; ii++) in ibnex_create_ioc_compatible_prop()
2563 IBTF_DPRINTF_L4("ibnex", "\tcompatible: %s", compatible[ii]); in ibnex_create_ioc_compatible_prop()
3262 int intval = 0, ii; in ibnex_str2int() local
3266 for (ii = 0; ii < len; ii ++) { in ibnex_str2int()
3267 if ((c[ii] >= '0') && (c[ii] <= '9')) in ibnex_str2int()
3268 intval = intval * 10 +c[ii] - '0'; in ibnex_str2int()
3291 uint64_t hex = 0, ii; in ibnex_str2hex() local
3294 for (ii = 0; ii < len; ii ++) { in ibnex_str2hex()
3295 hex = (ii == 0) ? hex : (hex << 4); in ibnex_str2hex()
3296 if ((c[ii] >= '0') && (c[ii] <= '9')) in ibnex_str2hex()
3297 hex |= c[ii] - '0'; in ibnex_str2hex()
3298 else if ((c[ii] >= 'a') && (c[ii] <= 'f')) in ibnex_str2hex()
3299 hex |= c[ii] - 'a' + 10; in ibnex_str2hex()
3300 else if ((c[ii] >= 'A') && (c[ii] <= 'F')) in ibnex_str2hex()
3301 hex |= c[ii] - 'A' + 10; in ibnex_str2hex()