Lines Matching refs:bi
205 static u8 handle_buffered_ioctl(struct esas2r_buffered_ioctl *bi) in handle_buffered_ioctl() argument
207 struct esas2r_adapter *a = bi->a; in handle_buffered_ioctl()
217 if (esas2r_buffered_ioctl_size < bi->length) { in handle_buffered_ioctl()
228 esas2r_buffered_ioctl_size = bi->length; in handle_buffered_ioctl()
242 bi->length); in handle_buffered_ioctl()
249 memcpy(esas2r_buffered_ioctl, bi->ioctl, bi->length); in handle_buffered_ioctl()
263 sgc.cur_offset = esas2r_buffered_ioctl + bi->offset; in handle_buffered_ioctl()
267 if (!(*bi->callback)(a, rq, &sgc, bi->context)) { in handle_buffered_ioctl()
279 if (result == IOCTL_SUCCESS && bi->done_callback) in handle_buffered_ioctl()
280 (*bi->done_callback)(a, rq, bi->done_context); in handle_buffered_ioctl()
286 memcpy(bi->ioctl, esas2r_buffered_ioctl, bi->length); in handle_buffered_ioctl()
314 struct esas2r_buffered_ioctl bi; in handle_smp_ioctl() local
316 memset(&bi, 0, sizeof(bi)); in handle_smp_ioctl()
318 bi.a = a; in handle_smp_ioctl()
319 bi.ioctl = si; in handle_smp_ioctl()
320 bi.length = sizeof(struct atto_ioctl_smp) in handle_smp_ioctl()
323 bi.offset = 0; in handle_smp_ioctl()
324 bi.callback = smp_ioctl_callback; in handle_smp_ioctl()
325 return handle_buffered_ioctl(&bi); in handle_smp_ioctl()
648 struct esas2r_buffered_ioctl bi; in handle_csmi_ioctl() local
650 memset(&bi, 0, sizeof(bi)); in handle_csmi_ioctl()
652 bi.a = a; in handle_csmi_ioctl()
653 bi.ioctl = &ci->data; in handle_csmi_ioctl()
654 bi.length = sizeof(union atto_ioctl_csmi); in handle_csmi_ioctl()
655 bi.offset = 0; in handle_csmi_ioctl()
656 bi.callback = csmi_ioctl_callback; in handle_csmi_ioctl()
657 bi.context = ci; in handle_csmi_ioctl()
658 bi.done_callback = csmi_ioctl_done_callback; in handle_csmi_ioctl()
659 bi.done_context = ci; in handle_csmi_ioctl()
661 return handle_buffered_ioctl(&bi); in handle_csmi_ioctl()
1236 struct esas2r_buffered_ioctl bi; in handle_hba_ioctl() local
1238 memset(&bi, 0, sizeof(bi)); in handle_hba_ioctl()
1240 bi.a = a; in handle_hba_ioctl()
1241 bi.ioctl = ioctl_hba; in handle_hba_ioctl()
1242 bi.length = sizeof(struct atto_ioctl) + ioctl_hba->data_length; in handle_hba_ioctl()
1243 bi.callback = hba_ioctl_callback; in handle_hba_ioctl()
1244 bi.context = NULL; in handle_hba_ioctl()
1245 bi.done_callback = hba_ioctl_done_callback; in handle_hba_ioctl()
1246 bi.done_context = NULL; in handle_hba_ioctl()
1247 bi.offset = 0; in handle_hba_ioctl()
1249 return handle_buffered_ioctl(&bi); in handle_hba_ioctl()