scsi_ctl.c (249410) | scsi_ctl.c (249466) |
---|---|
1/*- 2 * Copyright (c) 2008, 2009 Silicon Graphics International Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 */ 32/* 33 * Peripheral driver interface between CAM and CTL (CAM Target Layer). 34 * 35 * Author: Ken Merry <ken@FreeBSD.org> 36 */ 37 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008, 2009 Silicon Graphics International Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 */ 32/* 33 * Peripheral driver interface between CAM and CTL (CAM Target Layer). 34 * 35 * Author: Ken Merry <ken@FreeBSD.org> 36 */ 37 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/sys/cam/ctl/scsi_ctl.c 249410 2013-04-12 16:25:03Z trasz $"); | 39__FBSDID("$FreeBSD: head/sys/cam/ctl/scsi_ctl.c 249466 2013-04-14 09:28:14Z mav $"); |
40 41#include <sys/param.h> 42#include <sys/queue.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/lock.h> 46#include <sys/mutex.h> 47#include <sys/condvar.h> --- 2007 unchanged lines hidden (view full) --- 2055 CAM_SIM_UNLOCK(sim); 2056 2057 return (0); 2058} 2059 2060static void 2061ctlfe_dump_sim(struct cam_sim *sim) 2062{ | 40 41#include <sys/param.h> 42#include <sys/queue.h> 43#include <sys/systm.h> 44#include <sys/kernel.h> 45#include <sys/lock.h> 46#include <sys/mutex.h> 47#include <sys/condvar.h> --- 2007 unchanged lines hidden (view full) --- 2055 CAM_SIM_UNLOCK(sim); 2056 2057 return (0); 2058} 2059 2060static void 2061ctlfe_dump_sim(struct cam_sim *sim) 2062{ |
2063 int i; | |
2064 2065 printf("%s%d: max tagged openings: %d, max dev openings: %d\n", 2066 sim->sim_name, sim->unit_number, 2067 sim->max_tagged_dev_openings, sim->max_dev_openings); 2068 printf("%s%d: max_ccbs: %u, ccb_count: %u\n", 2069 sim->sim_name, sim->unit_number, 2070 sim->max_ccbs, sim->ccb_count); 2071 printf("%s%d: ccb_freeq is %sempty\n", 2072 sim->sim_name, sim->unit_number, 2073 (SLIST_FIRST(&sim->ccb_freeq) == NULL) ? "" : "NOT "); | 2063 2064 printf("%s%d: max tagged openings: %d, max dev openings: %d\n", 2065 sim->sim_name, sim->unit_number, 2066 sim->max_tagged_dev_openings, sim->max_dev_openings); 2067 printf("%s%d: max_ccbs: %u, ccb_count: %u\n", 2068 sim->sim_name, sim->unit_number, 2069 sim->max_ccbs, sim->ccb_count); 2070 printf("%s%d: ccb_freeq is %sempty\n", 2071 sim->sim_name, sim->unit_number, 2072 (SLIST_FIRST(&sim->ccb_freeq) == NULL) ? "" : "NOT "); |
2074 printf("%s%d: alloc_queue.entries %d, alloc_openings %d\n", 2075 sim->sim_name, sim->unit_number, 2076 sim->devq->alloc_queue.entries, sim->devq->alloc_openings); 2077 printf("%s%d: qfrozen_cnt:", sim->sim_name, sim->unit_number); 2078 for (i = 0; i < CAM_RL_VALUES; i++) { 2079 printf("%s%u", (i != 0) ? ":" : "", 2080 sim->devq->alloc_queue.qfrozen_cnt[i]); 2081 } | |
2082 printf("\n"); 2083} 2084 2085/* 2086 * Assumes that the SIM lock is held. 2087 */ 2088static void 2089ctlfe_dump_queue(struct ctlfe_lun_softc *softc) --- 195 unchanged lines hidden --- | 2073 printf("\n"); 2074} 2075 2076/* 2077 * Assumes that the SIM lock is held. 2078 */ 2079static void 2080ctlfe_dump_queue(struct ctlfe_lun_softc *softc) --- 195 unchanged lines hidden --- |