Lines Matching refs:sidx
242 int sidx; member
1161 unsigned int sidx = arg2; in sysctl_spad_handle() local
1167 rc = ntb_spad_read(tc->dev, sidx, &bits); in sysctl_spad_handle()
1177 return ntb_spad_write(tc->dev, sidx, bits); in sysctl_spad_handle()
1187 unsigned int sidx = arg2; in sysctl_peer_spad_handle() local
1193 rc = ntb_peer_spad_read(tc->dev, sidx, &bits); in sysctl_peer_spad_handle()
1203 return ntb_peer_spad_write(tc->dev, sidx, bits); in sysctl_peer_spad_handle()
1212 int sidx, pidx; in tool_init_spads() local
1219 for (sidx = 0; sidx < tc->inspad_cnt; sidx++) { in tool_init_spads()
1220 tc->inspads[sidx].sidx = sidx; in tool_init_spads()
1221 tc->inspads[sidx].pidx = -1; in tool_init_spads()
1222 tc->inspads[sidx].tc = tc; in tool_init_spads()
1232 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_init_spads()
1233 tc->peers[pidx].outspads[sidx].sidx = sidx; in tool_init_spads()
1234 tc->peers[pidx].outspads[sidx].pidx = pidx; in tool_init_spads()
1235 tc->peers[pidx].outspads[sidx].tc = tc; in tool_init_spads()
1311 unsigned int pidx, sidx, widx; in tool_setup_sysctl() local
1350 for (sidx = 0; sidx < tc->inspad_cnt; sidx++) { in tool_setup_sysctl()
1351 snprintf(buf, sizeof(buf), "spad%d", sidx); in tool_setup_sysctl()
1352 snprintf(desc, sizeof(desc), "spad%d info", sidx); in tool_setup_sysctl()
1356 tc, sidx, sysctl_spad_handle, "IU", desc); in tool_setup_sysctl()
1405 for (sidx = 0; sidx < tc->peers[pidx].outspad_cnt; sidx++) { in tool_setup_sysctl()
1406 snprintf(buf, sizeof(buf), "spad%d", sidx); in tool_setup_sysctl()
1407 snprintf(desc, sizeof(desc), "spad%d info", sidx); in tool_setup_sysctl()
1411 tc, sidx, sysctl_peer_spad_handle, "IU", desc); in tool_setup_sysctl()