Searched refs:prot_length (Results 1 – 5 of 5) sorted by relevance
/drivers/target/ |
D | target_core_file.c | 499 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()
|
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() 616 return rd_build_prot_space(rd_dev, dev->prot_length, in rd_init_prot()
|
D | target_core_sbc.c | 747 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()
|
D | target_core_transport.c | 1281 if (cmd->prot_length) { in target_check_max_data_sg_nents() 1283 cmd->prot_length = dev->prot_length * sectors; in target_check_max_data_sg_nents() 2628 cmd->prot_length, true, false); in transport_generic_new_cmd()
|
D | target_core_device.c | 743 dev->prot_length = sizeof(struct t10_pi_tuple); in target_alloc_device()
|