20 #include <linux/kernel.h>
21 #include <linux/types.h>
24 #include <linux/module.h>
63 static int __init libfc_init(
void)
73 goto destroy_pkt_cache;
91 static void __exit libfc_exit(
void)
116 size_t remaining = len;
119 while (remaining > 0 && sg) {
120 size_t off, sg_bytes;
123 if (*offset >= sg->
length) {
135 sg_bytes =
min(remaining, sg->
length - *offset);
141 off = *offset + sg->
offset;
142 sg_bytes =
min(sg_bytes,
146 *crc =
crc32(*crc, buf, sg_bytes);
151 remaining -= sg_bytes;
152 copy_len += sg_bytes;
174 fh = __fc_frame_header_get(fp);
175 in_fh = __fc_frame_header_get(in_fp);
246 prov_entry = fc_passive_prov[
type];
248 if (prov_entry && prov_entry->
recv)