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
901 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
917 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
988 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1005 esas2r_sgc_init(sgc, a, rq, NULL); in hba_ioctl_callback()
1007 sgc->length = hi->data_length; in hba_ioctl_callback()
1008 sgc->cur_offset += offsetof(struct atto_ioctl, data.byte) in hba_ioctl_callback()
1034 if (sgc->length) { in hba_ioctl_callback()
1047 if (!esas2r_build_sg_list(a, rq, sgc)) { in hba_ioctl_callback()
1064 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1110 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1160 if (hba_ioctl_tunnel(a, hi, rq, sgc)) in hba_ioctl_callback()
1814 static u32 get_physaddr_vda(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_vda() argument
1816 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_vda()
1817 int offset = (u8 *)sgc->cur_offset - (u8 *)a->vda_buffer; in get_physaddr_vda()
1833 struct esas2r_sg_context sgc; in esas2r_read_vda() local
1851 sgc.first_req = rq; in esas2r_read_vda()
1852 sgc.adapter = a; in esas2r_read_vda()
1853 sgc.cur_offset = a->vda_buffer + VDA_BUFFER_HEADER_SZ; in esas2r_read_vda()
1854 sgc.get_phys_addr = (PGETPHYSADDR)get_physaddr_vda; in esas2r_read_vda()
1859 esas2r_process_vda_ioctl(a, vi, rq, &sgc); in esas2r_read_vda()
1933 static u32 get_physaddr_fs_api(struct esas2r_sg_context *sgc, u64 *addr) in get_physaddr_fs_api() argument
1935 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fs_api()
1938 u32 offset = (u8 *)sgc->cur_offset - (u8 *)fs; in get_physaddr_fs_api()
1953 struct esas2r_sg_context sgc; in esas2r_read_fs() local
1982 sgc.cur_offset = fs->data; in esas2r_read_fs()
1983 sgc.get_phys_addr = (PGETPHYSADDR)get_physaddr_fs_api; in esas2r_read_fs()
1987 if (!esas2r_process_fs_ioctl(a, fs, rq, &sgc)) { in esas2r_read_fs()