Searched defs:lun (Results 1 - 25 of 166) sorted by relevance

1234567

/drivers/target/iscsi/
H A Discsi_target_device.c33 u64 lun)
35 u32 unpacked_lun = scsilun_to_int((struct scsi_lun *)&lun);
43 u64 lun)
45 u32 unpacked_lun = scsilun_to_int((struct scsi_lun *)&lun);
31 iscsit_get_lun_for_tmr( struct iscsi_cmd *cmd, u64 lun) argument
40 iscsit_get_lun_for_cmd( struct iscsi_cmd *cmd, unsigned char *cdb, u64 lun) argument
/drivers/block/
H A Dcciss_scsi.h63 int bus, target, lun; /* as presented to the OS */ member in struct:cciss_scsi_dev_t
/drivers/s390/scsi/
H A Dzfcp_unit.c24 unsigned int lun; local
26 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun);
29 scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, 1);
180 unsigned int lun; local
182 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun);
185 return scsi_device_lookup(shost, 0, port->starget_id, lun);
H A Dzfcp_aux.c55 static void __init zfcp_init_device_configure(char *busid, u64 wwpn, u64 lun) argument
77 zfcp_unit_add(port, lun);
92 u64 wwpn, lun; local
110 if (!token || strict_strtoull(token, 0, (unsigned long long *) &lun))
114 zfcp_init_device_configure(busid, wwpn, lun);
/drivers/staging/rts5139/
H A Dms_mg.c126 unsigned int lun = SCSI_LUN(srb); local
132 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD);
143 set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_ESTAB);
154 set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_ESTAB);
159 set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_ESTAB);
177 unsigned int lun = SCSI_LUN(srb); local
199 set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN);
206 set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN);
213 set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN);
238 unsigned int lun local
328 unsigned int lun = SCSI_LUN(srb); local
398 unsigned int lun = SCSI_LUN(srb); local
455 unsigned int lun = SCSI_LUN(srb); local
522 unsigned int lun = SCSI_LUN(srb); local
[all...]
H A Dsd_cprm.c281 int ext_sd_execute_no_data(struct rts51x_chip *chip, unsigned int lun, argument
295 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE);
300 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD);
364 set_sense_type(chip, lun, SENSE_TYPE_NO_SENSE);
368 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT);
373 int ext_sd_execute_read_data(struct rts51x_chip *chip, unsigned int lun, argument
385 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE);
394 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD);
581 set_sense_type(chip, lun, SENSE_TYPE_NO_SENSE);
583 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_UNRECOVER_READ_ER
592 ext_sd_execute_write_data(struct rts51x_chip *chip, unsigned int lun, u8 cmd_idx, u8 cmd12, u8 standby, u8 acmd, u8 rsp_code, u32 arg, u32 data_len, void *data_buf, unsigned int buf_len, int use_sg) argument
932 unsigned int lun = SCSI_LUN(srb); local
1004 unsigned int lun = SCSI_LUN(srb); local
1037 unsigned int lun = SCSI_LUN(srb); local
1075 unsigned int lun = SCSI_LUN(srb); local
1112 unsigned int lun = SCSI_LUN(srb); local
1151 unsigned int lun = SCSI_LUN(srb); local
[all...]
H A Drts51x_card.c669 unsigned int lun = SCSI_LUN(srb); local
672 if (chip->rw_card[lun] == NULL)
681 retval = chip->rw_card[lun] (srb, chip, sec_addr, sec_cnt);
700 u8 get_lun_card(struct rts51x_chip *chip, unsigned int lun) argument
702 if ((chip->card_ready & chip->lun2card[lun]) == XD_CARD)
704 else if ((chip->card_ready & chip->lun2card[lun]) == SD_CARD)
706 else if ((chip->card_ready & chip->lun2card[lun]) == MS_CARD)
756 void eject_card(struct rts51x_chip *chip, unsigned int lun) argument
762 if ((chip->card_ready & chip->lun2card[lun]) == SD_CARD) {
766 chip->capacity[lun]
[all...]
/drivers/message/fusion/
H A Dmptscsih.h101 int lun; member in struct:_internal_cmd
118 u8 id, int lun, int ctx2abort, ulong timeout);
/drivers/scsi/arm/
H A Dqueue.c158 * exclude - bit array of target&lun which is busy
170 if (!test_bit(q->SCpnt->device->id * 8 + q->SCpnt->device->lun, exclude)) {
200 * Function: struct scsi_cmnd *queue_remove_tgtluntag (queue, target, lun, tag)
201 * Purpose : remove a SCSI command from the queue for a specified target/lun/tag
204 * lun - lun on device
208 struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, int lun, argument
218 if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun &&
251 * Function: int queue_probetgtlun (queue, target, lun)
259 queue_probetgtlun(Queue_t *queue, int target, int lun) argument
[all...]
/drivers/scsi/isci/
H A Dtask.h107 unsigned char lun[8]; member in struct:isci_tmf
165 u8 *lun);
169 u8 *lun);
173 u8 *lun);
180 u8 *lun);
H A Dtask.c839 * @lun: This parameter specifies the lun to be reset.
846 u8 *lun)
877 struct isci_remote_device *idev, u8 *lun)
903 * to reset the given lun. Note the assumption that while this call is
905 * @lun: This parameter specifies the lun to be reset.
909 int isci_task_lu_reset(struct domain_device *domain_device, u8 *lun) argument
935 ret = isci_task_send_lu_reset_sata(isci_host, isci_device, lun);
937 ret = isci_task_send_lu_reset_sas(isci_host, isci_device, lun);
843 isci_task_send_lu_reset_sas( struct isci_host *isci_host, struct isci_remote_device *isci_device, u8 *lun) argument
876 isci_task_send_lu_reset_sata(struct isci_host *ihost, struct isci_remote_device *idev, u8 *lun) argument
1201 isci_task_abort_task_set( struct domain_device *d_device, u8 *lun) argument
1218 isci_task_clear_aca( struct domain_device *d_device, u8 *lun) argument
1236 isci_task_clear_task_set( struct domain_device *d_device, u8 *lun) argument
[all...]
/drivers/message/i2o/
H A Di2o_scsi.c20 * o Each (bus,lun) is a logical device in I2O. We keep a map
82 unsigned int lun; /* lun's used for block devices */ member in struct:i2o_scsi_host
142 i2o_shost->lun = 1;
207 * Retrieve channel, id and lun for I2O device. If everything goes well
221 u64 lun = -1; local
245 lun =
247 lun++);
249 lun = 0;
259 if (i2o_parm_field_get(i2o_dev, 0x0000, 4, &lun,
[all...]
/drivers/scsi/aic7xxx/
H A Daic79xx_proc.c212 int lun; local
228 for (lun = 0; lun < AHD_NUM_LUNS; lun++) {
231 dev = scsi_device_lookup_by_target(starget, lun);
247 sdev->sdev_target->id, sdev->lun);
H A Daic7xxx_proc.c188 int lun; local
206 for (lun = 0; lun < AHC_NUM_LUNS; lun++) {
209 sdev = scsi_device_lookup_by_target(starget, lun);
225 sdev->sdev_target->id, sdev->lun);
/drivers/scsi/fnic/
H A Dfnic_res.h87 u32 data_len, u8 *lun,
114 memcpy(desc->u.icmnd_16.lun, lun, LUN_ADDRESS); /* LUN address */
126 u32 tm_req, u32 tm_id, u8 *lun,
141 memcpy(desc->u.itmf.lun, lun, LUN_ADDRESS); /* LUN address */
79 fnic_queue_wq_copy_desc_icmnd_16(struct vnic_wq_copy *wq, u32 req_id, u32 lunmap_id, u8 spl_flags, u32 sgl_cnt, u32 sense_len, u64 sgl_addr, u64 sns_addr, u8 crn, u8 pri_ta, u8 flags, u8 *scsi_cdb, u8 cdb_len, u32 data_len, u8 *lun, u32 d_id, u16 mss, u32 ratov, u32 edtov) argument
124 fnic_queue_wq_copy_desc_itmf(struct vnic_wq_copy *wq, u32 req_id, u32 lunmap_id, u32 tm_req, u32 tm_id, u8 *lun, u32 d_id, u32 r_a_tov, u32 e_d_tov) argument
/drivers/scsi/qla4xxx/
H A Dql4_iocb.c80 * @lun: SCSI LUN
86 struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod)
107 int_to_scsilun(lun, &marker_entry->lun);
273 /* Get real lun and adapter */
317 int_to_scsilun(cmd->device->lun, &cmd_entry->lun);
85 qla4xxx_send_marker_iocb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, int lun, uint16_t mrkr_mod) argument
/drivers/scsi/
H A Dscsi_proc.c200 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun);
243 * @lun: user-supplied decimal integer
253 static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) argument
263 error = shost->transportt->user_scan(shost, channel, id, lun);
265 error = scsi_scan_host_selected(shost, channel, id, lun, 1);
275 * @lun: user-supplied decimal integer
280 static int scsi_remove_single_device(uint host, uint channel, uint id, uint lun) argument
289 sdev = scsi_device_lookup(shost, channel, id, lun);
322 int host, channel, id, lun; local
353 lun
[all...]
H A Dscsi_tgt_if.c108 struct scsi_lun *lun, u64 tag)
119 memcpy(ev.p.cmd_req.lun, lun, sizeof(ev.p.cmd_req.lun));
168 memcpy(ev.p.tsk_mgmt_req.lun, scsilun, sizeof(ev.p.tsk_mgmt_req.lun));
107 scsi_tgt_uspace_send_cmd(struct scsi_cmnd *cmd, u64 itn_id, struct scsi_lun *lun, u64 tag) argument
H A Dultrastor.c186 unsigned char lun: 3; /* logical unit number */ member in struct:mscp
739 my_mscp->lun = SCpnt->device->lun;
/drivers/target/
H A Dtarget_core_tpg.c62 struct se_lun *lun; local
79 lun = deve->se_lun;
81 core_update_device_list_for_node(lun, NULL, deve->mapped_lun,
84 spin_lock(&lun->lun_acl_lock);
86 &lun->lun_acl_list, lacl_list) {
96 spin_unlock(&lun->lun_acl_lock);
102 spin_unlock(&lun->lun_acl_lock);
161 struct se_lun *lun; local
166 lun = &tpg->tpg_lun_list[i];
167 if (lun
333 struct se_lun *lun; local
612 struct se_lun *lun = &se_tpg->tpg_virt_lun0; local
635 struct se_lun *lun = &se_tpg->tpg_virt_lun0; local
647 struct se_lun *lun; local
754 struct se_lun *lun; local
780 core_tpg_post_addlun( struct se_portal_group *tpg, struct se_lun *lun, u32 lun_access, void *lun_ptr) argument
800 core_tpg_shutdown_lun( struct se_portal_group *tpg, struct se_lun *lun) argument
812 struct se_lun *lun; local
838 core_tpg_post_dellun( struct se_portal_group *tpg, struct se_lun *lun) argument
[all...]
/drivers/target/tcm_fc/
H A Dtcm_fc.h116 u32 lun; /* LUN from request */ member in struct:ft_cmd
/drivers/usb/storage/
H A Ddatafab.c70 signed char lun; /* used for dual-slot readers */ member in struct:datafab_info
164 if (info->lun == -1) {
194 command[5] = 0xE0 + (info->lun << 4);
248 if (info->lun == -1) {
282 command[5] = 0xE0 + (info->lun << 4);
360 info->lun = 0;
375 info->lun = 1;
405 if (info->lun == -1) {
416 command[5] += (info->lun << 4);
575 ((struct datafab_info *)us->extra)->lun
[all...]
/drivers/scsi/aic94xx/
H A Daic94xx_tmf.c217 static int asd_clear_nexus_I_T_L(struct domain_device *dev, u8 *lun) argument
224 memcpy(scb->clear_nexus.ssp_task.lun, lun, 8);
237 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8);
459 memcpy(scb->abort_task.ssp_task.lun, task->ssp_task.LUN, 8);
560 * @lun: pointer to u8[8] which is the LUN
572 static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun, argument
608 memcpy(scb->ssp_tmf.ssp_task.lun, lun, 8);
654 int asd_abort_task_set(struct domain_device *dev, u8 *lun) argument
663 asd_clear_aca(struct domain_device *dev, u8 *lun) argument
672 asd_clear_task_set(struct domain_device *dev, u8 *lun) argument
681 asd_lu_reset(struct domain_device *dev, u8 *lun) argument
[all...]
/drivers/scsi/dpt/
H A Ddpti_ioctl.h134 uLONG lun; member in struct:TARGET_BUSY
/drivers/scsi/lpfc/
H A Dlpfc_nl.h109 uint32_t lun; member in struct:lpfc_fcprdchkerr_event
119 uint32_t lun; member in struct:lpfc_scsi_event_header

Completed in 1692 milliseconds

1234567