Lines Matching refs:pgo
2503 int pgo; in write_mode_page() local
2511 pgo = MODE_HEADER_LENGTH + (STp->buffer)->b_data[MH_OFF_BDESCS_LENGTH]; in write_mode_page()
2512 cmd[4] = pgo + (STp->buffer)->b_data[pgo + MP_OFF_PAGE_LENGTH] + 2; in write_mode_page()
2518 (STp->buffer)->b_data[pgo + MP_OFF_PAGE_NBR] &= MP_MSK_PAGE_NBR; in write_mode_page()
3382 int pgo, psd_cnt, psdo; in partition_tape() local
3399 pgo = MODE_HEADER_LENGTH + bp[MH_OFF_BDESCS_LENGTH]; in partition_tape()
3401 bp[pgo + MP_OFF_PAGE_LENGTH] + 2); in partition_tape()
3403 psd_cnt = (bp[pgo + MP_OFF_PAGE_LENGTH] + 2 - PART_PAGE_FIXED_LENGTH) / 2; in partition_tape()
3406 needs_format = (bp[pgo + PP_OFF_FLAGS] & PP_MSK_POFM) != 0; in partition_tape()
3417 if ((bp[pgo + PP_OFF_FLAGS] & PP_MSK_PSUM_UNITS) == PP_MSK_PSUM_UNITS) { in partition_tape()
3442 psdo = pgo + PART_PAGE_FIXED_LENGTH; in partition_tape()
3447 (psd_cnt > bp[pgo + PP_OFF_MAX_ADD_PARTS] || in partition_tape()
3448 bp[pgo + PP_OFF_MAX_ADD_PARTS] != 1)) { in partition_tape()
3452 memset(bp + psdo, 0, bp[pgo + PP_OFF_NBR_ADD_PARTS] * 2); in partition_tape()
3455 psd_cnt, bp[pgo + PP_OFF_MAX_ADD_PARTS], in partition_tape()
3456 bp[pgo + PP_OFF_NBR_ADD_PARTS]); in partition_tape()
3459 bp[pgo + PP_OFF_NBR_ADD_PARTS] = 0; in partition_tape()
3460 if (psd_cnt <= bp[pgo + PP_OFF_MAX_ADD_PARTS]) in partition_tape()
3461 bp[pgo + MP_OFF_PAGE_LENGTH] = 6; in partition_tape()
3468 bp[pgo + 3] = 1; in partition_tape()
3469 if (bp[pgo + MP_OFF_PAGE_LENGTH] < 8) in partition_tape()
3470 bp[pgo + MP_OFF_PAGE_LENGTH] = 8; in partition_tape()
3475 bp[pgo + PP_OFF_PART_UNITS] = 0; in partition_tape()
3476 bp[pgo + PP_OFF_RESERVED] = 0; in partition_tape()
3478 bp[pgo + PP_OFF_FLAGS] = PP_BIT_IDP | psum | in partition_tape()
3479 (bp[pgo + PP_OFF_FLAGS] & 0x07); in partition_tape()
3480 bp[pgo + PP_OFF_PART_UNITS] = units; in partition_tape()
3482 bp[pgo + PP_OFF_FLAGS] = PP_BIT_FDP | in partition_tape()
3483 (bp[pgo + PP_OFF_FLAGS] & 0x1f); in partition_tape()
3484 bp[pgo + MP_OFF_PAGE_LENGTH] = 6 + psd_cnt * 2; in partition_tape()