Lines Matching refs:sg_mapped
380 int sg_mapped; in map_sg_data() local
387 sg_mapped = scsi_dma_map(cmd); in map_sg_data()
388 if (!sg_mapped) in map_sg_data()
390 else if (sg_mapped < 0) in map_sg_data()
393 set_srp_direction(cmd, srp_cmd, sg_mapped); in map_sg_data()
396 if (sg_mapped == 1) { in map_sg_data()
397 map_sg_list(cmd, sg_mapped, data); in map_sg_data()
402 indirect->table_desc.len = sg_mapped * sizeof(struct srp_direct_buf); in map_sg_data()
405 if (sg_mapped <= MAX_INDIRECT_BUFS) { in map_sg_data()
406 total_length = map_sg_list(cmd, sg_mapped, in map_sg_data()
428 total_length = map_sg_list(cmd, sg_mapped, evt_struct->ext_list); in map_sg_data()
432 indirect->table_desc.len = sg_mapped * sizeof(indirect->desc_list[0]); in map_sg_data()