Home
last modified time | relevance | path

Searched refs:fd_prot (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/target/
Dtarget_core_file.c261 static int fd_do_prot_rw(struct se_cmd *cmd, struct fd_prot *fd_prot, in fd_do_prot_rw() argument
276 fd_prot->prot_buf = kzalloc(prot_size, GFP_KERNEL); in fd_do_prot_rw()
277 if (!fd_prot->prot_buf) { in fd_do_prot_rw()
281 buf = fd_prot->prot_buf; in fd_do_prot_rw()
283 fd_prot->prot_sg_nents = 1; in fd_do_prot_rw()
284 fd_prot->prot_sg = kzalloc(sizeof(struct scatterlist), in fd_do_prot_rw()
286 if (!fd_prot->prot_sg) { in fd_do_prot_rw()
288 kfree(fd_prot->prot_buf); in fd_do_prot_rw()
291 sg_init_table(fd_prot->prot_sg, fd_prot->prot_sg_nents); in fd_do_prot_rw()
292 sg_set_buf(fd_prot->prot_sg, buf, prot_size); in fd_do_prot_rw()
[all …]
Dtarget_core_file.h24 struct fd_prot { struct