Lines Matching refs:sg_mapped
685 int sg_mapped; in map_sg_data() local
692 sg_mapped = scsi_dma_map(cmd); in map_sg_data()
693 if (!sg_mapped) in map_sg_data()
695 else if (sg_mapped < 0) in map_sg_data()
698 set_srp_direction(cmd, srp_cmd, sg_mapped); in map_sg_data()
701 if (sg_mapped == 1) { in map_sg_data()
702 map_sg_list(cmd, sg_mapped, data); in map_sg_data()
707 indirect->table_desc.len = cpu_to_be32(sg_mapped * in map_sg_data()
711 if (sg_mapped <= MAX_INDIRECT_BUFS) { in map_sg_data()
712 total_length = map_sg_list(cmd, sg_mapped, in map_sg_data()
733 total_length = map_sg_list(cmd, sg_mapped, evt_struct->ext_list); in map_sg_data()
737 indirect->table_desc.len = cpu_to_be32(sg_mapped * in map_sg_data()