Home
last modified time | relevance | path

Searched refs:prot_length (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_file.c499 sector_t prot_length, prot; in fd_do_prot_fill() local
500 loff_t pos = lba * se_dev->prot_length; in fd_do_prot_fill()
507 prot_length = nolb * se_dev->prot_length; in fd_do_prot_fill()
509 for (prot = 0; prot < prot_length;) { in fd_do_prot_fill()
510 sector_t len = min_t(sector_t, bufsize, prot_length - prot); in fd_do_prot_fill()
610 ret = fd_do_rw(cmd, pfile, dev->prot_length, in fd_execute_rw_buffered()
612 cmd->prot_length, 0); in fd_execute_rw_buffered()
663 ret = fd_do_rw(cmd, pfile, dev->prot_length, in fd_execute_rw_buffered()
665 cmd->prot_length, 1); in fd_execute_rw_buffered()
891 dev->prot_length); in fd_format_prot()
Dtarget_core_rd.c233 static int rd_build_prot_space(struct rd_dev *rd_dev, int prot_length, int block_size) in rd_build_prot_space() argument
249 total_sg_needed = (rd_dev->rd_page_count * prot_length / block_size) + 1; in rd_build_prot_space()
391 tmp = cmd->t_task_lba * se_dev->prot_length; in rd_do_prot_rw()
616 return rd_build_prot_space(rd_dev, dev->prot_length, in rd_init_prot()
Dtarget_core_sbc.c747 cmd->prot_length = dev->prot_length * sectors; in sbc_check_prot()
760 __func__, cmd->prot_type, cmd->data_length, cmd->prot_length, in sbc_check_prot()
1341 left = sectors * dev->prot_length; in sbc_dif_copy_prot()
Dtarget_core_transport.c1283 if (cmd->prot_length) { in target_check_max_data_sg_nents()
1285 cmd->prot_length = dev->prot_length * sectors; in target_check_max_data_sg_nents()
2629 cmd->prot_length, true, false); in transport_generic_new_cmd()
Dtarget_core_device.c735 dev->prot_length = sizeof(struct t10_pi_tuple); in target_alloc_device()
/kernel/linux/linux-5.10/include/target/
Dtarget_core_base.h538 u32 prot_length; member
840 int prot_length; member