Home
last modified time | relevance | path

Searched refs:sg_mapped (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/drivers/scsi/
Dlibiscsi_tcp.c123 BUG_ON(segment->sg_mapped); in iscsi_tcp_segment_map()
137 segment->sg_mapped = kmap_atomic(sg_page(sg), KM_SOFTIRQ0); in iscsi_tcp_segment_map()
141 segment->sg_mapped = kmap(sg_page(sg)); in iscsi_tcp_segment_map()
144 segment->data = segment->sg_mapped + sg->offset + segment->sg_offset; in iscsi_tcp_segment_map()
149 if (segment->sg_mapped) { in iscsi_tcp_segment_unmap()
151 kunmap_atomic(segment->sg_mapped, KM_SOFTIRQ0); in iscsi_tcp_segment_unmap()
154 segment->sg_mapped = NULL; in iscsi_tcp_segment_unmap()
/linux-2.6.39/drivers/scsi/ibmvscsi/
Dibmvscsi.c380 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()
[all …]
Dibmvfc.c1334 int sg_mapped; in ibmvfc_map_sg_data() local
1338 sg_mapped = scsi_dma_map(scmd); in ibmvfc_map_sg_data()
1339 if (!sg_mapped) { in ibmvfc_map_sg_data()
1342 } else if (unlikely(sg_mapped < 0)) { in ibmvfc_map_sg_data()
1345 return sg_mapped; in ibmvfc_map_sg_data()
1356 if (sg_mapped == 1) { in ibmvfc_map_sg_data()
1357 ibmvfc_map_sg_list(scmd, sg_mapped, data); in ibmvfc_map_sg_data()
1375 ibmvfc_map_sg_list(scmd, sg_mapped, evt->ext_list); in ibmvfc_map_sg_data()
1378 data->len = sg_mapped * sizeof(struct srp_direct_buf); in ibmvfc_map_sg_data()
/linux-2.6.39/include/scsi/
Dlibiscsi_tcp.h48 void *sg_mapped; member