Lines Matching refs:bid
47 struct tape_34xx_block_id bid; member
884 tape_34xx_append_new_sbid(struct tape_34xx_block_id bid, struct list_head *l) in tape_34xx_append_new_sbid() argument
892 new_sbid->bid = bid; in tape_34xx_append_new_sbid()
902 tape_34xx_add_sbid(struct tape_device *device, struct tape_34xx_block_id bid) in tape_34xx_add_sbid() argument
914 if (!sbid_list || (bid.segment < 2 && bid.wrap == 0)) in tape_34xx_add_sbid()
929 (sbid->bid.segment == bid.segment) && in tape_34xx_add_sbid()
930 (sbid->bid.wrap == bid.wrap) in tape_34xx_add_sbid()
932 if (bid.block < sbid->bid.block) in tape_34xx_add_sbid()
933 sbid->bid = bid; in tape_34xx_add_sbid()
939 if (bid.block < sbid->bid.block) { in tape_34xx_add_sbid()
940 tape_34xx_append_new_sbid(bid, l->prev); in tape_34xx_add_sbid()
946 tape_34xx_append_new_sbid(bid, l->prev); in tape_34xx_add_sbid()
952 sbid->bid.wrap, in tape_34xx_add_sbid()
953 sbid->bid.segment, in tape_34xx_add_sbid()
954 sbid->bid.block in tape_34xx_add_sbid()
977 if (sbid->bid.block >= from) { in tape_34xx_delete_sbid_from()
979 sbid->bid.wrap, in tape_34xx_delete_sbid_from()
980 sbid->bid.segment, in tape_34xx_delete_sbid_from()
981 sbid->bid.block in tape_34xx_delete_sbid_from()
995 struct tape_34xx_block_id * bid in tape_34xx_merge_sbid() argument
1003 bid->wrap = 0; in tape_34xx_merge_sbid()
1004 bid->segment = 1; in tape_34xx_merge_sbid()
1013 if (sbid->bid.block >= bid->block) in tape_34xx_merge_sbid()
1018 bid->wrap = sbid_to_use->bid.wrap; in tape_34xx_merge_sbid()
1019 bid->segment = sbid_to_use->bid.segment; in tape_34xx_merge_sbid()
1021 sbid_to_use->bid.wrap, in tape_34xx_merge_sbid()
1022 sbid_to_use->bid.segment, in tape_34xx_merge_sbid()
1023 sbid_to_use->bid.block, in tape_34xx_merge_sbid()
1024 bid->block in tape_34xx_merge_sbid()
1090 struct tape_34xx_block_id * bid; in tape_34xx_mtseek() local
1102 bid = (struct tape_34xx_block_id *) request->cpdata; in tape_34xx_mtseek()
1103 bid->format = (*device->modeset_byte & 0x08) ? in tape_34xx_mtseek()
1105 bid->block = mt_count; in tape_34xx_mtseek()
1106 tape_34xx_merge_sbid(device, bid); in tape_34xx_mtseek()