Searched refs:dev_attrib (Results 1 - 19 of 19) sorted by relevance

/linux-master/drivers/target/
H A Dtarget_core_device.c749 dev->dev_attrib.da_dev = dev;
750 dev->dev_attrib.emulate_model_alias = DA_EMULATE_MODEL_ALIAS;
751 dev->dev_attrib.emulate_dpo = 1;
752 dev->dev_attrib.emulate_fua_write = 1;
753 dev->dev_attrib.emulate_fua_read = 1;
754 dev->dev_attrib.emulate_write_cache = DA_EMULATE_WRITE_CACHE;
755 dev->dev_attrib.emulate_ua_intlck_ctrl = TARGET_UA_INTLCK_CTRL_CLEAR;
756 dev->dev_attrib.emulate_tas = DA_EMULATE_TAS;
757 dev->dev_attrib.emulate_tpu = DA_EMULATE_TPU;
758 dev->dev_attrib
[all...]
H A Dtarget_core_file.c95 return target_configure_unmap_from_queue(&dev->dev_attrib,
99 dev->dev_attrib.max_unmap_lba_count = 0x2000;
101 dev->dev_attrib.max_unmap_block_desc_count = 1;
102 dev->dev_attrib.unmap_granularity = 1;
103 dev->dev_attrib.unmap_granularity_alignment = 0;
174 dev->dev_attrib.max_write_same_len = 0xFFFF;
177 dev->dev_attrib.is_nonrot = 1;
192 dev->dev_attrib.max_write_same_len = 0x1000;
195 dev->dev_attrib.hw_block_size = fd_dev->fd_block_size;
196 dev->dev_attrib
[all...]
H A Dtarget_core_spc.c105 if (dev->dev_attrib.emulate_3pc)
114 if (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)
477 if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE1_PROT ||
480 else if (dev->dev_attrib.pi_prot_type == TARGET_DIF_TYPE3_PROT ||
488 (dev->dev_attrib.pi_prot_type || cmd->se_sess->sess_prot_type)) {
520 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws)
531 if (dev->dev_attrib.emulate_caw)
538 put_unaligned_be16(min / dev->dev_attrib.block_size, &buf[6]);
550 dev->dev_attrib
[all...]
H A Dtarget_core_iblock.c86 return target_configure_unmap_from_queue(&dev->dev_attrib,
131 dev->dev_attrib.hw_block_size = bdev_logical_block_size(bd);
132 dev->dev_attrib.hw_max_sectors = mult_frac(queue_max_hw_sectors(q),
134 dev->dev_attrib.hw_block_size);
135 dev->dev_attrib.hw_queue_depth = q->nr_requests;
143 dev->dev_attrib.max_write_same_len = max_write_zeroes_sectors;
145 dev->dev_attrib.max_write_same_len = 0xFFFF;
148 dev->dev_attrib.is_nonrot = 1;
163 dev->dev_attrib.pi_prot_type = TARGET_DIF_TYPE3_PROT;
165 dev->dev_attrib
[all...]
H A Dtarget_core_xcopy.c50 if (!se_dev->dev_attrib.emulate_3pc) {
579 u32 transfer_length_block = src_bytes / src_dev->dev_attrib.block_size;
624 u32 transfer_length_block = dst_bytes / dst_dev->dev_attrib.block_size;
688 max_bytes_src = (unsigned long long) src_dev->dev_attrib.hw_max_sectors *
689 src_dev->dev_attrib.hw_block_size;
690 max_bytes_dst = (unsigned long long) dst_dev->dev_attrib.hw_max_sectors *
691 dst_dev->dev_attrib.hw_block_size;
700 max_blocks = max_bytes >> ilog2(src_dev->dev_attrib.block_size);
708 u32 cur_bytes = min_t(u64, max_bytes, nolb * src_dev->dev_attrib.block_size);
709 unsigned short cur_nolb = cur_bytes / src_dev->dev_attrib
[all...]
H A Dtarget_core_rd.c299 dev->dev_attrib.hw_block_size = RD_BLOCKSIZE;
300 dev->dev_attrib.hw_max_sectors = UINT_MAX;
301 dev->dev_attrib.hw_queue_depth = RD_MAX_DEVICE_QUEUE_DEPTH;
302 dev->dev_attrib.is_nonrot = 1;
385 u32 sectors = cmd->data_length / se_dev->dev_attrib.block_size;
402 if (se_dev->dev_attrib.pi_prot_verify) {
437 tmp = cmd->t_task_lba * se_dev->dev_attrib.block_size;
453 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type &&
521 if (cmd->prot_type && se_dev->dev_attrib.pi_prot_type &&
623 dev->dev_attrib
[all...]
H A Dtarget_core_sbc.c62 put_unaligned_be32(dev->dev_attrib.block_size, &buf[4]);
79 int pi_prot_type = dev->dev_attrib.pi_prot_type;
87 put_unaligned_be32(dev->dev_attrib.block_size, &buf[8]);
116 if (dev->dev_attrib.emulate_tpu || dev->dev_attrib.emulate_tpws) {
123 if (dev->dev_attrib.unmap_zeroes_data)
218 return cmd->se_dev->dev_attrib.block_size * sectors;
288 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) {
290 sectors, cmd->se_dev->dev_attrib.max_write_same_len);
322 if (!dev->dev_attrib
[all...]
H A Dtarget_core_ua.c202 bool dev_ua_intlck_clear = (dev->dev_attrib.emulate_ua_intlck_ctrl
260 dev->dev_attrib.emulate_ua_intlck_ctrl,
H A Dtarget_core_transport.c402 * initiators for device backends with !dev->dev_attrib.pi_prot_type.
1062 dev->dev_attrib.block_size,
1063 dev->dev_attrib.hw_max_sectors);
1365 u32 sectors = (mtl / dev->dev_attrib.block_size);
1932 struct se_dev_attrib *da = &se_cmd->se_dev->dev_attrib;
2103 cmd->se_dev->dev_attrib.emulate_ua_intlck_ctrl
2195 sectors = cmd->data_length >> ilog2(cmd->se_dev->dev_attrib.block_size);
2490 ilog2(cmd->se_dev->dev_attrib.block_size);
2808 cmd->se_dev->dev_attrib.block_size;
2830 cmd->se_dev->dev_attrib
[all...]
H A Dtarget_core_pscsi.c298 dev->dev_attrib.hw_block_size =
300 dev->dev_attrib.hw_max_sectors =
302 dev->dev_attrib.hw_queue_depth = sd->queue_depth;
326 dev->dev_attrib.hw_block_size = sd->sector_size;
H A Dtarget_core_user.c2265 if (dev->dev_attrib.hw_block_size == 0)
2266 dev->dev_attrib.hw_block_size = 512;
2268 if (!dev->dev_attrib.hw_max_sectors)
2269 dev->dev_attrib.hw_max_sectors = 128;
2270 if (!dev->dev_attrib.emulate_write_cache)
2271 dev->dev_attrib.emulate_write_cache = 0;
2272 dev->dev_attrib.hw_queue_depth = 128;
2445 static int tcmu_set_dev_attrib(substring_t *arg, u32 *dev_attrib) argument
2461 *dev_attrib = val;
2610 &(dev->dev_attrib
[all...]
H A Dtarget_core_tmr.c375 tas = dev->dev_attrib.emulate_tas;
H A Dtarget_core_configfs.c1080 if (val > dev->dev_attrib.queue_depth) {
1081 if (val > dev->dev_attrib.hw_queue_depth) {
1085 dev->dev_attrib.hw_queue_depth);
1307 * dev_attrib attributes for devices using the target core SBC/SPC
1353 * Minimal dev_attrib attributes for devices passing through CDBs.
1371 * pr related dev_attrib attributes for devices passing through CDBs,
1381 TB_CIT_SETUP_DRV(dev_attrib, NULL, NULL);
1856 if (!dev->dev_attrib.emulate_pr)
1999 if (!dev->dev_attrib.emulate_pr)
2014 if (!dev->dev_attrib
[all...]
H A Dtarget_core_pr.c1584 dev->dev_attrib.enforce_pr_isids &&
3648 if (dev->dev_attrib.force_pr_aptpl)
4175 if (!dev->dev_attrib.emulate_pr)
H A Dtarget_core_alua.c462 sectors = cmd->data_length / dev->dev_attrib.block_size;
/linux-master/drivers/edac/
H A Dedac_device.c62 struct edac_dev_sysfs_block_attribute *dev_attrib, *attrib_p, *attrib; local
89 dev_attrib = kcalloc(nr_attrib, sizeof(struct edac_dev_sysfs_block_attribute),
91 if (!dev_attrib)
94 dev_ctl->attribs = dev_attrib;
144 attrib_p = &dev_attrib[block*nr_instances*nr_attrib];
/linux-master/include/target/
H A Dtarget_core_base.h862 struct se_dev_attrib dev_attrib; member in struct:se_device
/linux-master/drivers/scsi/qla2xxx/
H A Dtcm_qla2xxx.c409 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size;
671 cmd->blk_sz = se_cmd->se_dev->dev_attrib.block_size;
/linux-master/drivers/infiniband/ulp/isert/
H A Dib_isert.c1545 u32 block_size = se_cmd->se_dev->dev_attrib.block_size + 8;
1987 domain->sig.dif.pi_interval = se_cmd->se_dev->dev_attrib.block_size;

Completed in 217 milliseconds