| /freebsd/sys/cam/ |
| H A D | cam.c | 579 cam_calc_geometry(struct ccb_calc_geometry *ccg, int extended) in cam_calc_geometry() argument 583 if (ccg->block_size == 0) { in cam_calc_geometry() 584 ccg->ccb_h.status = CAM_REQ_CMP_ERR; in cam_calc_geometry() 587 size_mb = (1024L * 1024L) / ccg->block_size; in cam_calc_geometry() 589 ccg->ccb_h.status = CAM_REQ_CMP_ERR; in cam_calc_geometry() 592 size_mb = ccg->volume_size / size_mb; in cam_calc_geometry() 594 ccg->heads = 255; in cam_calc_geometry() 595 ccg->secs_per_track = 63; in cam_calc_geometry() 597 ccg->heads = 64; in cam_calc_geometry() 598 ccg->secs_per_track = 32; in cam_calc_geometry() [all …]
|
| H A D | cam_ccb.h | 1394 struct ccb_calc_geometry ccg; member 1562 void cam_calc_geometry(struct ccb_calc_geometry *ccg, int extended);
|
| H A D | cam_xpt.c | 2617 if (start_ccb->ccg.block_size == 0 in xpt_action_default() 2618 || start_ccb->ccg.volume_size == 0) { in xpt_action_default() 2619 start_ccb->ccg.cylinders = 0; in xpt_action_default() 2620 start_ccb->ccg.heads = 0; in xpt_action_default() 2621 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 | 1080 struct ccb_calc_geometry *ccg; in smartpqi_cam_action() local 1081 ccg = &ccb->ccg; in smartpqi_cam_action() 1082 if (ccg->block_size == 0) { in smartpqi_cam_action() 1087 cam_calc_geometry(ccg, /* extended */ 1); in smartpqi_cam_action()
|
| /freebsd/sys/kern/ |
| H A D | sched_ule.c | 1371 struct cpu_group *cg, *ccg; in sched_pickcpu() local 1439 for (ccg = NULL; cg != NULL; cg = cg->cg_parent) { in sched_pickcpu() 1447 ccg = cg; in sched_pickcpu() 1450 if (ccg == cpu_top) in sched_pickcpu() 1451 ccg = NULL; in sched_pickcpu() 1461 if (ccg != NULL && intr) { in sched_pickcpu() 1462 cpu = sched_lowest(ccg, mask, pri, INT_MAX, ts->ts_cpu, r); in sched_pickcpu() 1467 if (ccg != NULL) { in sched_pickcpu() 1468 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 | 6411 struct ccb_calc_geometry ccg; in dasetgeom() local 6460 memset(&ccg, 0, sizeof(ccg)); in dasetgeom() 6461 xpt_setup_ccb(&ccg.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in dasetgeom() 6462 ccg.ccb_h.func_code = XPT_CALC_GEOMETRY; in dasetgeom() 6463 ccg.block_size = dp->secsize; in dasetgeom() 6464 ccg.volume_size = dp->sectors; in dasetgeom() 6465 ccg.heads = 0; in dasetgeom() 6466 ccg.secs_per_track = 0; in dasetgeom() 6467 ccg.cylinders = 0; in dasetgeom() 6468 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/ufshci/ |
| H A D | ufshci_sim.c | 320 cam_calc_geometry(&ccb->ccg, 1); in ufshci_cam_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()
|