Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/target/
Dtarget_core_file.c492 sector_t prot_length, prot; in fd_do_prot_fill() local
493 loff_t pos = lba * se_dev->prot_length; in fd_do_prot_fill()
500 prot_length = nolb * se_dev->prot_length; in fd_do_prot_fill()
503 for (prot = 0; prot < prot_length;) { in fd_do_prot_fill()
504 sector_t len = min_t(sector_t, bufsize, prot_length - prot); in fd_do_prot_fill()
603 ret = fd_do_rw(cmd, pfile, dev->prot_length, in fd_execute_rw_buffered()
605 cmd->prot_length, 0); in fd_execute_rw_buffered()
656 ret = fd_do_rw(cmd, pfile, dev->prot_length, in fd_execute_rw_buffered()
658 cmd->prot_length, 1); in fd_execute_rw_buffered()
884 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()
635 return rd_build_prot_space(rd_dev, dev->prot_length, in rd_init_prot()
Dtarget_core_sbc.c725 cmd->prot_length = dev->prot_length * sectors; in sbc_check_prot()
738 __func__, cmd->prot_type, cmd->data_length, cmd->prot_length, in sbc_check_prot()
1282 left = sectors * dev->prot_length; in sbc_dif_copy_prot()
Dtarget_core_transport.c1364 if (cmd->prot_length) { in target_check_max_data_sg_nents()
1366 cmd->prot_length = dev->prot_length * sectors; in target_check_max_data_sg_nents()
2787 cmd->prot_length, true, false); in transport_generic_new_cmd()
Dtarget_core_device.c714 dev->prot_length = sizeof(struct t10_pi_tuple); in target_alloc_device()
/linux-6.6.21/include/target/
Dtarget_core_base.h546 u32 prot_length; member
865 int prot_length; member