Searched refs:prot_length (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/drivers/target/ |
D | target_core_file.c | 492 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()
|
D | target_core_rd.c | 233 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()
|
D | target_core_sbc.c | 725 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()
|
D | target_core_transport.c | 1364 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()
|
D | target_core_device.c | 714 dev->prot_length = sizeof(struct t10_pi_tuple); in target_alloc_device()
|
/linux-6.6.21/include/target/ |
D | target_core_base.h | 546 u32 prot_length; member 865 int prot_length; member
|