Lines Matching defs:cmd_map
55 * The index of the context in cmd_map serves as the context ID for a
98 struct pvscsi_ctx *cmd_map;
159 end = &adapter->cmd_map[adapter->req_depth];
160 for (ctx = adapter->cmd_map; ctx < end; ctx++)
192 * non-zero integer. ctx always points to an entry in cmd_map array, hence
198 return ctx - adapter->cmd_map + 1;
204 return &adapter->cmd_map[context - 1];
883 struct pvscsi_ctx *ctx = &adapter->cmd_map[i];
1205 struct pvscsi_ctx *ctx = adapter->cmd_map;
1228 if (adapter->cmd_map) {
1230 kfree(adapter->cmd_map);
1271 ctx = adapter->cmd_map;
1480 adapter->cmd_map = kcalloc(adapter->req_depth,
1482 if (!adapter->cmd_map) {
1490 struct pvscsi_ctx *ctx = adapter->cmd_map + i;