/freebsd/sys/cam/ |
H A D | cam.c | 546 cam_calc_geometry(struct ccb_calc_geometry *ccg, int extended) in cam_calc_geometry() argument 550 if (ccg->block_size == 0) { in cam_calc_geometry() 551 ccg->ccb_h.status = CAM_REQ_CMP_ERR; in cam_calc_geometry() 554 size_mb = (1024L * 1024L) / ccg->block_size; in cam_calc_geometry() 556 ccg->ccb_h.status = CAM_REQ_CMP_ERR; in cam_calc_geometry() 559 size_mb = ccg->volume_size / size_mb; in cam_calc_geometry() 561 ccg->heads = 255; in cam_calc_geometry() 562 ccg->secs_per_track = 63; in cam_calc_geometry() 564 ccg->heads = 64; in cam_calc_geometry() 565 ccg->secs_per_track = 32; in cam_calc_geometry() [all …]
|
H A D | cam_ccb.h | 1372 struct ccb_calc_geometry ccg; 1539 void cam_calc_geometry(struct ccb_calc_geometry *ccg, int extended); 1356 struct ccb_calc_geometry ccg; global() member
|
H A D | cam_xpt.c | 2598 if (start_ccb->ccg.block_size == 0 in xpt_action_default() 2599 || start_ccb->ccg.volume_size == 0) { in xpt_action_default() 2600 start_ccb->ccg.cylinders = 0; in xpt_action_default() 2601 start_ccb->ccg.heads = 0; in xpt_action_default() 2602 start_ccb->ccg.secs_per_track = 0; in xpt_action_default()
|
/freebsd/sys/dev/aac/ |
H A D | aac_cam.c | 274 struct ccb_calc_geometry *ccg; in aac_cam_action() local 278 ccg = &ccb->ccg; in aac_cam_action() 279 size_mb = ccg->volume_size / in aac_cam_action() 280 ((1024L * 1024L) / ccg->block_size); in aac_cam_action() 282 ccg->heads = 255; in aac_cam_action() 283 ccg->secs_per_track = 63; in aac_cam_action() 285 ccg->heads = 128; in aac_cam_action() 286 ccg->secs_per_track = 32; in aac_cam_action() 288 ccg->heads = 64; in aac_cam_action() 289 ccg->secs_per_track = 32; in aac_cam_action() [all …]
|
/freebsd/sys/dev/aic7xxx/ |
H A D | aic_osm_lib.c | 127 aic_calc_geometry(struct ccb_calc_geometry *ccg, int extended) in aic_calc_geometry() argument 129 cam_calc_geometry(ccg, extended); in aic_calc_geometry()
|
H A D | aic_osm_lib.h | 340 void aic_calc_geometry(struct ccb_calc_geometry *ccg, int extended);
|
H A D | aic79xx_osm.c | 659 aic_calc_geometry(&ccb->ccg, ahd->flags & AHD_EXTENDED_TRANS_A); in ahd_action()
|
H A D | aic7xxx_osm.c | 748 aic_calc_geometry(&ccb->ccg, extended); in ahc_action()
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 975 struct ccb_calc_geometry *ccg; in aac_cam_action() local 979 ccg = &ccb->ccg; in aac_cam_action() 980 size_mb = ccg->volume_size / in aac_cam_action() 981 ((1024L * 1024L) / ccg->block_size); in aac_cam_action() 983 ccg->heads = 255; in aac_cam_action() 984 ccg->secs_per_track = 63; in aac_cam_action() 986 ccg->heads = 128; in aac_cam_action() 987 ccg->secs_per_track = 32; in aac_cam_action() 989 ccg->heads = 64; in aac_cam_action() 990 ccg->secs_per_track = 32; in aac_cam_action() [all …]
|
/freebsd/sys/dev/hpt27xx/ |
H A D | hpt27xx_osm_bsd.c | 831 ccb->ccg.heads = 255; in hpt_action() 832 ccb->ccg.secs_per_track = 63; in hpt_action() 833 ccb->ccg.cylinders = ccb->ccg.volume_size / (ccb->ccg.heads * ccb->ccg.secs_per_track); in hpt_action()
|
/freebsd/sys/dev/smartpqi/ |
H A D | smartpqi_cam.c | 1086 struct ccb_calc_geometry *ccg; in smartpqi_cam_action() local 1087 ccg = &ccb->ccg; in smartpqi_cam_action() 1088 if (ccg->block_size == 0) { in smartpqi_cam_action() 1093 cam_calc_geometry(ccg, /* extended */ 1); in smartpqi_cam_action()
|
/freebsd/sys/kern/ |
H A D | sched_ule.c | 1321 struct cpu_group *cg, *ccg; in sched_pickcpu() local 1389 for (ccg = NULL; cg != NULL; cg = cg->cg_parent) { in sched_pickcpu() 1397 ccg = cg; in sched_pickcpu() 1400 if (ccg == cpu_top) in sched_pickcpu() 1401 ccg = NULL; in sched_pickcpu() 1411 if (ccg != NULL && intr) { in sched_pickcpu() 1412 cpu = sched_lowest(ccg, mask, pri, INT_MAX, ts->ts_cpu, r); in sched_pickcpu() 1417 if (ccg != NULL) { in sched_pickcpu() 1418 cpu = sched_lowest(ccg, mask, max(pri, PRI_MAX_TIMESHARE), in sched_pickcpu()
|
/freebsd/sys/dev/hptnr/ |
H A D | hptnr_osm_bsd.c | 1119 ccb->ccg.heads = 255; in hpt_action() 1120 ccb->ccg.secs_per_track = 63; in hpt_action() 1121 ccb->ccg.cylinders = ccb->ccg.volume_size / (ccb->ccg.heads * ccb->ccg.secs_per_track); in hpt_action()
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_da.c | 6189 struct ccb_calc_geometry ccg; in dasetgeom() local 6238 memset(&ccg, 0, sizeof(ccg)); in dasetgeom() 6239 xpt_setup_ccb(&ccg.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in dasetgeom() 6240 ccg.ccb_h.func_code = XPT_CALC_GEOMETRY; in dasetgeom() 6241 ccg.block_size = dp->secsize; in dasetgeom() 6242 ccg.volume_size = dp->sectors; in dasetgeom() 6243 ccg.heads = 0; in dasetgeom() 6244 ccg.secs_per_track = 0; in dasetgeom() 6245 ccg.cylinders = 0; in dasetgeom() 6246 xpt_action((union ccb*)&ccg); in dasetgeom() [all …]
|
/freebsd/sys/dev/ciss/ |
H A D | ciss.c | 3041 struct ccb_calc_geometry *ccg = &ccb->ccg; in ciss_cam_action() local 3057 ccg->heads = 255; in ciss_cam_action() 3058 ccg->secs_per_track = 32; in ciss_cam_action() 3059 secs_per_cylinder = ccg->heads * ccg->secs_per_track; in ciss_cam_action() 3060 ccg->cylinders = ccg->volume_size / secs_per_cylinder; in ciss_cam_action() 3062 ccg->heads = ld->cl_geometry.heads; in ciss_cam_action() 3063 ccg->secs_per_track = ld->cl_geometry.sectors; in ciss_cam_action() 3064 ccg->cylinders = ntohs(ld->cl_geometry.cylinders); in ciss_cam_action()
|
/freebsd/sys/dev/firewire/ |
H A D | sbp.c | 2452 struct ccb_calc_geometry *ccg; in sbp_action() local 2454 ccg = &ccb->ccg; in sbp_action() 2455 if (ccg->block_size == 0) { in sbp_action() 2467 (uintmax_t)ccg->volume_size); in sbp_action() 2470 cam_calc_geometry(ccg, /*extended*/1); in sbp_action()
|
/freebsd/tools/tools/vhba/ |
H A D | vhba.c | 116 cam_calc_geometry(&ccb->ccg, 1); in vhba_action()
|
/freebsd/sys/dev/tws/ |
H A D | tws_cam.c | 276 ccb->ccg.block_size); in tws_action() 277 cam_calc_geometry(&ccb->ccg, 1/* extended */); in tws_action()
|
/freebsd/sys/dev/isci/ |
H A D | isci_controller.c | 747 cam_calc_geometry(&ccb->ccg, /*extended*/1); in isci_action()
|
/freebsd/sys/powerpc/ps3/ |
H A D | ps3cdrom.c | 404 cam_calc_geometry(&ccb->ccg, 1); in ps3cdrom_action()
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend_cam_sim.c | 740 cam_calc_geometry(&ccb->ccg, 1); in cfcs_action()
|
/freebsd/sys/dev/mpt/ |
H A D | mpt_cam.c | 3471 struct ccb_calc_geometry *ccg; in mpt_action() local 3473 ccg = &ccb->ccg; in mpt_action() 3474 if (ccg->block_size == 0) { in mpt_action() 3479 cam_calc_geometry(ccg, /* extended */ 1); in mpt_action()
|
/freebsd/sys/dev/hptrr/ |
H A D | hptrr_osm_bsd.c | 766 cam_calc_geometry(&ccb->ccg, 1); in hpt_action()
|
/freebsd/sys/dev/vmware/pvscsi/ |
H A D | pvscsi.c | 1456 cam_calc_geometry(&ccb->ccg, 1); in pvscsi_action()
|
/freebsd/sys/dev/mpi3mr/ |
H A D | mpi3mr_cam.c | 1423 cam_calc_geometry(&ccb->ccg, /*extended*/1); in mpi3mr_cam_action()
|