Lines Matching refs:smi
301 struct sg_mapping_iter *smi = &host->smi; in do_read() local
310 if (smi->consumed >= smi->length) { in do_read()
311 if (!sg_miter_next(smi)) in do_read()
313 smi->consumed = 0; in do_read()
321 while (smi->consumed < smi->length && shift >= 0) { in do_read()
322 ((u8 *)smi->addr)[smi->consumed] = (dat >> shift) & 0xff; in do_read()
324 smi->consumed++; in do_read()
329 sg_miter_stop(smi); in do_read()
709 sg_miter_start(&host->smi, mrq->data->sg, mrq->data->sg_len, in do_read_request()
716 struct sg_mapping_iter *smi = &host->smi; in do_write_request() local
722 sg_miter_start(smi, mrq->data->sg, mrq->data->sg_len, SG_MITER_FROM_SG); in do_write_request()
728 if (smi->consumed >= smi->length) { in do_write_request()
729 if (!sg_miter_next(smi)) in do_write_request()
731 smi->consumed = 0; in do_write_request()
734 while (smi->consumed < smi->length && shift >= 0) { in do_write_request()
735 dat |= (u64)((u8 *)smi->addr)[smi->consumed] << shift; in do_write_request()
737 smi->consumed++; in do_write_request()
747 sg_miter_stop(smi); in do_write_request()