cmgr 518 drivers/scsi/bnx2fc/bnx2fc.h void bnx2fc_cmd_mgr_free(struct bnx2fc_cmd_mgr *cmgr); cmgr 213 drivers/scsi/bnx2fc/bnx2fc_io.c struct bnx2fc_cmd_mgr *cmgr; cmgr 237 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr = kzalloc(len, GFP_KERNEL); cmgr 238 drivers/scsi/bnx2fc/bnx2fc_io.c if (!cmgr) { cmgr 243 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->hba = hba; cmgr 244 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->free_list = kcalloc(arr_sz, sizeof(*cmgr->free_list), cmgr 246 drivers/scsi/bnx2fc/bnx2fc_io.c if (!cmgr->free_list) { cmgr 251 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->free_list_lock = kcalloc(arr_sz, sizeof(*cmgr->free_list_lock), cmgr 253 drivers/scsi/bnx2fc/bnx2fc_io.c if (!cmgr->free_list_lock) { cmgr 255 drivers/scsi/bnx2fc/bnx2fc_io.c kfree(cmgr->free_list); cmgr 256 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->free_list = NULL; cmgr 260 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->cmds = (struct bnx2fc_cmd **)(cmgr + 1); cmgr 263 drivers/scsi/bnx2fc/bnx2fc_io.c INIT_LIST_HEAD(&cmgr->free_list[i]); cmgr 264 drivers/scsi/bnx2fc/bnx2fc_io.c spin_lock_init(&cmgr->free_list_lock[i]); cmgr 288 drivers/scsi/bnx2fc/bnx2fc_io.c &cmgr->free_list[io_req->xid % cmgr 292 drivers/scsi/bnx2fc/bnx2fc_io.c &cmgr->free_list[num_possible_cpus()]); cmgr 298 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->io_bdt_pool = kzalloc(mem_size, GFP_KERNEL); cmgr 299 drivers/scsi/bnx2fc/bnx2fc_io.c if (!cmgr->io_bdt_pool) { cmgr 306 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->io_bdt_pool[i] = kmalloc(mem_size, GFP_KERNEL); cmgr 307 drivers/scsi/bnx2fc/bnx2fc_io.c if (!cmgr->io_bdt_pool[i]) { cmgr 317 drivers/scsi/bnx2fc/bnx2fc_io.c bdt_info = cmgr->io_bdt_pool[i]; cmgr 329 drivers/scsi/bnx2fc/bnx2fc_io.c return cmgr; cmgr 332 drivers/scsi/bnx2fc/bnx2fc_io.c bnx2fc_cmd_mgr_free(cmgr); cmgr 336 drivers/scsi/bnx2fc/bnx2fc_io.c void bnx2fc_cmd_mgr_free(struct bnx2fc_cmd_mgr *cmgr) cmgr 339 drivers/scsi/bnx2fc/bnx2fc_io.c struct bnx2fc_hba *hba = cmgr->hba; cmgr 349 drivers/scsi/bnx2fc/bnx2fc_io.c if (!cmgr->io_bdt_pool) cmgr 354 drivers/scsi/bnx2fc/bnx2fc_io.c bdt_info = cmgr->io_bdt_pool[i]; cmgr 365 drivers/scsi/bnx2fc/bnx2fc_io.c kfree(cmgr->io_bdt_pool[i]); cmgr 366 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->io_bdt_pool[i] = NULL; cmgr 369 drivers/scsi/bnx2fc/bnx2fc_io.c kfree(cmgr->io_bdt_pool); cmgr 370 drivers/scsi/bnx2fc/bnx2fc_io.c cmgr->io_bdt_pool = NULL; cmgr 373 drivers/scsi/bnx2fc/bnx2fc_io.c kfree(cmgr->free_list_lock); cmgr 376 drivers/scsi/bnx2fc/bnx2fc_io.c if (!cmgr->free_list) cmgr 383 drivers/scsi/bnx2fc/bnx2fc_io.c &cmgr->free_list[i], link) { cmgr 388 drivers/scsi/bnx2fc/bnx2fc_io.c kfree(cmgr->free_list); cmgr 391 drivers/scsi/bnx2fc/bnx2fc_io.c kfree(cmgr); cmgr 476 drivers/scsi/qedf/qedf.h extern void qedf_cmd_mgr_free(struct qedf_cmd_mgr *cmgr); cmgr 113 drivers/scsi/qedf/qedf_io.c void qedf_cmd_mgr_free(struct qedf_cmd_mgr *cmgr) cmgr 116 drivers/scsi/qedf/qedf_io.c struct qedf_ctx *qedf = cmgr->qedf; cmgr 127 drivers/scsi/qedf/qedf_io.c if (!cmgr->io_bdt_pool) { cmgr 134 drivers/scsi/qedf/qedf_io.c bdt_info = cmgr->io_bdt_pool[i]; cmgr 144 drivers/scsi/qedf/qedf_io.c kfree(cmgr->io_bdt_pool[i]); cmgr 145 drivers/scsi/qedf/qedf_io.c cmgr->io_bdt_pool[i] = NULL; cmgr 148 drivers/scsi/qedf/qedf_io.c kfree(cmgr->io_bdt_pool); cmgr 149 drivers/scsi/qedf/qedf_io.c cmgr->io_bdt_pool = NULL; cmgr 154 drivers/scsi/qedf/qedf_io.c io_req = &cmgr->cmds[i]; cmgr 166 drivers/scsi/qedf/qedf_io.c vfree(cmgr); cmgr 181 drivers/scsi/qedf/qedf_io.c struct qedf_cmd_mgr *cmgr; cmgr 207 drivers/scsi/qedf/qedf_io.c cmgr = vzalloc(sizeof(struct qedf_cmd_mgr)); cmgr 208 drivers/scsi/qedf/qedf_io.c if (!cmgr) { cmgr 213 drivers/scsi/qedf/qedf_io.c cmgr->qedf = qedf; cmgr 214 drivers/scsi/qedf/qedf_io.c spin_lock_init(&cmgr->lock); cmgr 222 drivers/scsi/qedf/qedf_io.c io_req = &cmgr->cmds[i]; cmgr 264 drivers/scsi/qedf/qedf_io.c cmgr->io_bdt_pool = kmalloc_array(num_ios, sizeof(struct io_bdt *), cmgr 267 drivers/scsi/qedf/qedf_io.c if (!cmgr->io_bdt_pool) { cmgr 273 drivers/scsi/qedf/qedf_io.c cmgr->io_bdt_pool[i] = kmalloc(sizeof(struct io_bdt), cmgr 275 drivers/scsi/qedf/qedf_io.c if (!cmgr->io_bdt_pool[i]) { cmgr 283 drivers/scsi/qedf/qedf_io.c bdt_info = cmgr->io_bdt_pool[i]; cmgr 293 drivers/scsi/qedf/qedf_io.c atomic_set(&cmgr->free_list_cnt, num_ios); cmgr 296 drivers/scsi/qedf/qedf_io.c atomic_read(&cmgr->free_list_cnt)); cmgr 298 drivers/scsi/qedf/qedf_io.c return cmgr; cmgr 301 drivers/scsi/qedf/qedf_io.c qedf_cmd_mgr_free(cmgr);