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

1234567

/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...]
H A Drts51x_chip.c924 void rts51x_pp_status(struct rts51x_chip *chip, unsigned int lun, u8 *status, argument
929 u8 card = get_lun_card(chip, lun);
1058 void rts51x_read_status(struct rts51x_chip *chip, unsigned int lun, argument
1072 rts51x_status[4] = (u8) lun;
1096 if (check_card_exist(chip, lun))
1108 if (check_card_ready(chip, lun))
1114 if (get_lun_card(chip, lun) == XD_CARD) {
1116 } else if (get_lun_card(chip, lun) == SD_CARD) {
1132 } else if (get_lun_card(chip, lun) == MS_CARD) {
/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.h105 unsigned char lun[8]; member in struct:isci_tmf
163 u8 *lun);
167 u8 *lun);
171 u8 *lun);
178 u8 *lun);
H A Dtask.c790 * @lun: This parameter specifies the lun to be reset.
797 u8 *lun)
827 int isci_task_lu_reset(struct domain_device *dev, u8 *lun) argument
855 ret = isci_task_send_lu_reset_sas(isci_host, isci_device, lun);
1109 * to abort all task for the given lun.
1112 * @lun: This parameter specifies the lun associated with this request.
1118 u8 *lun)
1129 * @lun
794 isci_task_send_lu_reset_sas( struct isci_host *isci_host, struct isci_remote_device *isci_device, u8 *lun) argument
1116 isci_task_abort_task_set( struct domain_device *d_device, u8 *lun) argument
1133 isci_task_clear_aca( struct domain_device *d_device, u8 *lun) argument
1151 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
81 unsigned int lun; /* lun's used for block devices */ member in struct:i2o_scsi_host
141 i2o_shost->lun = 1;
206 * Retrieve channel, id and lun for I2O device. If everything goes well
220 u64 lun = -1; local
244 lun =
246 lun++);
248 lun = 0;
258 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.c185 unsigned char lun: 3; /* logical unit number */ member in struct:mscp
738 my_mscp->lun = SCpnt->device->lun;
/drivers/target/
H A Dtarget_core_tpg.c62 struct se_lun *lun; local
78 lun = deve->se_lun;
80 core_update_device_list_for_node(lun, NULL, deve->mapped_lun,
139 struct se_lun *lun; local
144 lun = tpg->tpg_lun_list[i];
145 if (lun->lun_status != TRANSPORT_LUN_STATUS_ACTIVE)
150 dev = lun->lun_se_dev;
174 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun,
178 core_update_device_list_for_node(lun, NULL, lun
341 struct se_lun *lun; local
631 struct se_lun *lun = &se_tpg->tpg_virt_lun0; local
654 struct se_lun *lun = &se_tpg->tpg_virt_lun0; local
666 struct se_lun *lun; local
773 struct se_lun *lun; local
799 core_tpg_post_addlun( struct se_portal_group *tpg, struct se_lun *lun, u32 lun_access, void *lun_ptr) argument
819 core_tpg_shutdown_lun( struct se_portal_group *tpg, struct se_lun *lun) argument
831 struct se_lun *lun; local
857 core_tpg_post_dellun( struct se_portal_group *tpg, struct se_lun *lun) argument
[all...]
H A Dtarget_core_cdb.c71 struct se_lun *lun = cmd->se_lun; local
96 target_fill_alua_data(lun->lun_sep, buf);
169 struct se_lun *lun = cmd->se_lun; local
261 port = lun->lun_sep;
/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.c220 static int asd_clear_nexus_I_T_L(struct domain_device *dev, u8 *lun) argument
227 memcpy(scb->clear_nexus.ssp_task.lun, lun, 8);
240 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8);
462 memcpy(scb->abort_task.ssp_task.lun, task->ssp_task.LUN, 8);
563 * @lun: pointer to u8[8] which is the LUN
575 static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun, argument
611 memcpy(scb->ssp_tmf.ssp_task.lun, lun, 8);
657 int asd_abort_task_set(struct domain_device *dev, u8 *lun) argument
666 asd_clear_aca(struct domain_device *dev, u8 *lun) argument
675 asd_clear_task_set(struct domain_device *dev, u8 *lun) argument
684 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 5367 milliseconds

1234567