Lines Matching refs:sgc

90 static u32 get_physaddr_fm_api(struct esas2r_sg_context *sgc, u64 *addr)  in get_physaddr_fm_api()  argument
92 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api()
93 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api()
99 static u32 get_physaddr_fm_api_header(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fm_api_header() argument
101 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api_header()
102 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api_header()
189 static u32 get_physaddr_buffered_ioctl(struct esas2r_sg_context *sgc, in get_physaddr_buffered_ioctl() argument
192 int offset = (u8 *)sgc->cur_offset - esas2r_buffered_ioctl; in get_physaddr_buffered_ioctl()
209 struct esas2r_sg_context sgc; in handle_buffered_ioctl() local
263 sgc.cur_offset = esas2r_buffered_ioctl + bi->offset; in handle_buffered_ioctl()
264 sgc.get_phys_addr = (PGETPHYSADDR)get_physaddr_buffered_ioctl; in handle_buffered_ioctl()
265 sgc.length = esas2r_buffered_ioctl_size; in handle_buffered_ioctl()
267 if (!(*bi->callback)(a, rq, &sgc, bi->context)) { in handle_buffered_ioctl()
295 struct esas2r_sg_context *sgc, void *context) in smp_ioctl_callback() argument
300 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in smp_ioctl_callback()
301 esas2r_build_ioctl_req(a, rq, sgc->length, VDA_IOCTL_SMP); in smp_ioctl_callback()
303 if (!esas2r_build_sg_list(a, rq, sgc)) { in smp_ioctl_callback()
344 struct esas2r_sg_context *sgc, in csmi_ioctl_tunnel() argument
353 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in csmi_ioctl_tunnel()
354 esas2r_build_ioctl_req(a, rq, sgc->length, VDA_IOCTL_CSMI); in csmi_ioctl_tunnel()
367 if (!esas2r_build_sg_list(a, rq, sgc)) in csmi_ioctl_tunnel()
392 struct esas2r_sg_context *sgc, void *context) in csmi_ioctl_callback() argument
514 if (!csmi_ioctl_tunnel(a, ioctl_csmi, rq, sgc, in csmi_ioctl_callback()
585 if (!csmi_ioctl_tunnel(a, ioctl_csmi, rq, sgc, in csmi_ioctl_callback()
670 struct esas2r_sg_context *sgc) in hba_ioctl_tunnel() argument
672 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in hba_ioctl_tunnel()
674 esas2r_build_ioctl_req(a, rq, sgc->length, VDA_IOCTL_HBA); in hba_ioctl_tunnel()
676 if (!esas2r_build_sg_list(a, rq, sgc)) { in hba_ioctl_tunnel()
746 struct esas2r_sg_context *sgc, in hba_ioctl_callback() argument
905 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
921 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
992 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1009 esas2r_sgc_init(sgc, a, rq, NULL); in hba_ioctl_callback()
1011 sgc->length = hi->data_length; in hba_ioctl_callback()
1012 sgc->cur_offset += offsetof(struct atto_ioctl, data.byte) in hba_ioctl_callback()
1038 if (sgc->length) { in hba_ioctl_callback()
1051 if (!esas2r_build_sg_list(a, rq, sgc)) { in hba_ioctl_callback()
1068 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1114 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1164 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1839 static u32 get_physaddr_vda(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_vda() argument
1841 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_vda()
1842 int offset = (u8 *)sgc->cur_offset - (u8 *)a->vda_buffer; in get_physaddr_vda()
1858 struct esas2r_sg_context sgc; in esas2r_read_vda() local
1876 sgc.first_req = rq; in esas2r_read_vda()
1877 sgc.adapter = a; in esas2r_read_vda()
1878 sgc.cur_offset = a->vda_buffer + VDA_BUFFER_HEADER_SZ; in esas2r_read_vda()
1879 sgc.get_phys_addr = (PGETPHYSADDR)get_physaddr_vda; in esas2r_read_vda()
1884 esas2r_process_vda_ioctl(a, vi, rq, &sgc); in esas2r_read_vda()
1958 static u32 get_physaddr_fs_api(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fs_api() argument
1960 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fs_api()
1963 u32 offset = (u8 *)sgc->cur_offset - (u8 *)fs; in get_physaddr_fs_api()
1978 struct esas2r_sg_context sgc; in esas2r_read_fs() local
2007 sgc.cur_offset = fs->data; in esas2r_read_fs()
2008 sgc.get_phys_addr = (PGETPHYSADDR)get_physaddr_fs_api; in esas2r_read_fs()
2012 if (!esas2r_process_fs_ioctl(a, fs, rq, &sgc)) { in esas2r_read_fs()