Lines Matching refs:b_data

391 		bp = (STp->buffer)->b_data;  in st_do_scsi()
512 memset((STp->buffer)->b_data + offset, 0, transfer - offset); in flush_write_buffer()
810 STp->max_block = ((STp->buffer)->b_data[1] << 16) | in check_tape()
811 ((STp->buffer)->b_data[2] << 8) | (STp->buffer)->b_data[3]; in check_tape()
812 STp->min_block = ((STp->buffer)->b_data[4] << 8) | in check_tape()
813 (STp->buffer)->b_data[5]; in check_tape()
845 (STp->buffer)->b_data[0], (STp->buffer)->b_data[1], in check_tape()
846 (STp->buffer)->b_data[2], (STp->buffer)->b_data[3])); in check_tape()
848 if ((STp->buffer)->b_data[3] >= 8) { in check_tape()
849 STp->drv_buffer = ((STp->buffer)->b_data[2] >> 4) & 7; in check_tape()
850 STp->density = (STp->buffer)->b_data[4]; in check_tape()
851 STp->block_size = (STp->buffer)->b_data[9] * 65536 + in check_tape()
852 (STp->buffer)->b_data[10] * 256 + (STp->buffer)->b_data[11]; in check_tape()
855 dev, STp->density, (STp->buffer)->b_data[5] * 65536 + in check_tape()
856 (STp->buffer)->b_data[6] * 256 + (STp->buffer)->b_data[7], in check_tape()
859 STp->drv_write_prot = ((STp->buffer)->b_data[2] & 0x80) != 0; in check_tape()
2176 pgo = MODE_HEADER_LENGTH + (STp->buffer)->b_data[MH_OFF_BDESCS_LENGTH]; in write_mode_page()
2177 cmd[4] = pgo + (STp->buffer)->b_data[pgo + MP_OFF_PAGE_LENGTH] + 2; in write_mode_page()
2180 (STp->buffer)->b_data[MH_OFF_DATA_LENGTH] = 0; in write_mode_page()
2181 (STp->buffer)->b_data[MH_OFF_MEDIUM_TYPE] = 0; in write_mode_page()
2182 (STp->buffer)->b_data[MH_OFF_DEV_SPECIFIC] &= ~MH_BIT_WP; in write_mode_page()
2183 (STp->buffer)->b_data[pgo + MP_OFF_PAGE_NBR] &= MP_MSK_PAGE_NBR; in write_mode_page()
2217 unsigned char *b_data = (STp->buffer)->b_data; in st_compression() local
2231 mpoffs = MODE_HEADER_LENGTH + b_data[MH_OFF_BDESCS_LENGTH]; in st_compression()
2233 (b_data[mpoffs + CP_OFF_DCE_DCC] & DCE_MASK ? 1 : 0))); in st_compression()
2236 if ((b_data[mpoffs + CP_OFF_DCE_DCC] & DCC_MASK) == 0) { in st_compression()
2243 b_data[mpoffs + CP_OFF_DCE_DCC] |= DCE_MASK; in st_compression()
2245 b_data[mpoffs + CP_OFF_C_ALGO] = STp->c_algo; in st_compression()
2248 b_data[mpoffs + CP_OFF_DCE_DCC] &= ~DCE_MASK; in st_compression()
2250 b_data[mpoffs + CP_OFF_C_ALGO] = 0; /* no compression */ in st_compression()
2582 memset((STp->buffer)->b_data, 0, 12); in st_int_ioctl()
2584 (STp->buffer)->b_data[2] = (arg & 7) << 4; in st_int_ioctl()
2586 (STp->buffer)->b_data[2] = in st_int_ioctl()
2588 (STp->buffer)->b_data[3] = 8; /* block descriptor length */ in st_int_ioctl()
2590 (STp->buffer)->b_data[4] = arg; in st_int_ioctl()
2593 (STp->buffer)->b_data[4] = arg >> 24; in st_int_ioctl()
2595 (STp->buffer)->b_data[4] = STp->density; in st_int_ioctl()
2602 (STp->buffer)->b_data[9] = (ltmp >> 16); in st_int_ioctl()
2603 (STp->buffer)->b_data[10] = (ltmp >> 8); in st_int_ioctl()
2604 (STp->buffer)->b_data[11] = ltmp; in st_int_ioctl()
2610 (STp->buffer)->b_data[9] * 65536 + in st_int_ioctl()
2611 (STp->buffer)->b_data[10] * 256 + in st_int_ioctl()
2612 (STp->buffer)->b_data[11]); in st_int_ioctl()
2616 (STp->buffer)->b_data[4]); in st_int_ioctl()
2620 ((STp->buffer)->b_data[2] >> 4) & 7); in st_int_ioctl()
2797 ((STp->buffer)->b_data[0] & 4) != 0)) { in get_location()
2804 *block = ((STp->buffer)->b_data[0] << 16) in get_location()
2805 + ((STp->buffer)->b_data[1] << 8) in get_location()
2806 + (STp->buffer)->b_data[2]; in get_location()
2809 *block = ((STp->buffer)->b_data[4] << 24) in get_location()
2810 + ((STp->buffer)->b_data[5] << 16) in get_location()
2811 + ((STp->buffer)->b_data[6] << 8) in get_location()
2812 + (STp->buffer)->b_data[7]; in get_location()
2813 *partition = (STp->buffer)->b_data[1]; in get_location()
2814 if (((STp->buffer)->b_data[0] & 0x80) && in get_location()
2815 (STp->buffer)->b_data[1] == 0) /* BOP of partition 0 */ in get_location()
2990 result = (STp->buffer)->b_data[MODE_HEADER_LENGTH + in nbr_partitions()
3030 bp = (STp->buffer)->b_data; in partition_tape()
3492 tb->b_data = tb->sg[0].address; in new_tape_buffer()
3496 st_nbr_buffers, got, tb->sg_segs, need_dma, tb->b_data); in new_tape_buffer()