Lines Matching refs:sidx

243 	int                sidx;  member
1162 unsigned int sidx = arg2; in sysctl_spad_handle() local
1168 rc = ntb_spad_read(tc->dev, sidx, &bits); in sysctl_spad_handle()
1178 return ntb_spad_write(tc->dev, sidx, bits); in sysctl_spad_handle()
1188 unsigned int sidx = arg2; in sysctl_peer_spad_handle() local
1194 rc = ntb_peer_spad_read(tc->dev, sidx, &bits); in sysctl_peer_spad_handle()
1204 return ntb_peer_spad_write(tc->dev, sidx, bits); in sysctl_peer_spad_handle()
1213 int sidx, pidx; in tool_init_spads() local
1220 for (sidx = 0; sidx < tc->inspad_cnt; sidx++) { in tool_init_spads()
1221 tc->inspads[sidx].sidx = sidx; in tool_init_spads()
1222 tc->inspads[sidx].pidx = -1; in tool_init_spads()
1223 tc->inspads[sidx].tc = tc; in tool_init_spads()
1233 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_init_spads()
1234 tc->peers[pidx].outspads[sidx].sidx = sidx; in tool_init_spads()
1235 tc->peers[pidx].outspads[sidx].pidx = pidx; in tool_init_spads()
1236 tc->peers[pidx].outspads[sidx].tc = tc; in tool_init_spads()
1312 unsigned int pidx, sidx, widx; in tool_setup_sysctl() local
1351 for (sidx = 0; sidx < tc->inspad_cnt; sidx++) { in tool_setup_sysctl()
1352 snprintf(buf, sizeof(buf), "spad%d", sidx); in tool_setup_sysctl()
1353 snprintf(desc, sizeof(desc), "spad%d info", sidx); in tool_setup_sysctl()
1357 tc, sidx, sysctl_spad_handle, "IU", desc); in tool_setup_sysctl()
1406 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_setup_sysctl()
1407 snprintf(buf, sizeof(buf), "spad%d", sidx); in tool_setup_sysctl()
1408 snprintf(desc, sizeof(desc), "spad%d info", sidx); in tool_setup_sysctl()
1412 tc, sidx, sysctl_peer_spad_handle, "IU", desc); in tool_setup_sysctl()