Home
last modified time | relevance | path

Searched refs:lun (Results 1 – 25 of 1111) sorted by relevance

12345678910>>...45

/OK3568_Linux_fs/kernel/drivers/target/
H A Dtarget_core_tpg.c109 struct se_lun *lun; in core_tpg_add_node_to_devs() local
113 hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { in core_tpg_add_node_to_devs()
114 if (lun_orig && lun != lun_orig) in core_tpg_add_node_to_devs()
117 dev = rcu_dereference_check(lun->lun_se_dev, in core_tpg_add_node_to_devs()
139 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_tpg_add_node_to_devs()
142 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, in core_tpg_add_node_to_devs()
149 core_scsi3_check_aptpl_registration(dev, tpg, lun, acl, in core_tpg_add_node_to_devs()
150 lun->unpacked_lun); in core_tpg_add_node_to_devs()
437 struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); in core_tpg_lun_ref_release() local
439 complete(&lun->lun_shutdown_comp); in core_tpg_lun_ref_release()
[all …]
H A Dtarget_core_fabric_configfs.c70 struct se_lun *lun; in target_fabric_mappedlun_link() local
82 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); in target_fabric_mappedlun_link()
87 if (!lun->lun_se_dev) { in target_fabric_mappedlun_link()
91 if (lun->lun_shutdown) { in target_fabric_mappedlun_link()
96 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link()
138 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); in target_fabric_mappedlun_link()
147 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_unlink() local
150 core_dev_del_initiator_node_lun_acl(lun, lacl); in target_fabric_mappedlun_unlink()
521 struct se_lun *lun = item_to_lun(item); in target_fabric_port_alua_tg_pt_gp_show() local
523 if (!lun || !lun->lun_se_dev) in target_fabric_port_alua_tg_pt_gp_show()
[all …]
H A Dtarget_core_alua.c35 struct se_lun *lun, int explicit, int offline);
39 static void __target_attach_tg_pt_gp(struct se_lun *lun,
140 struct se_lun *lun; in target_emulate_report_target_port_groups() local
214 list_for_each_entry(lun, &tg_pt_gp->tg_pt_gp_lun_list, in target_emulate_report_target_port_groups()
225 put_unaligned_be16(lun->lun_rtpi, &buf[off]); in target_emulate_report_target_port_groups()
384 struct se_lun *lun; in target_emulate_set_target_port_groups() local
397 list_for_each_entry(lun, &dev->dev_sep_list, in target_emulate_set_target_port_groups()
399 if (lun->lun_rtpi != rtpi) in target_emulate_set_target_port_groups()
406 lun, 1, 1)) in target_emulate_set_target_port_groups()
674 struct se_lun *lun = cmd->se_lun; in target_alua_state_check() local
[all …]
H A Dtarget_core_stat.c348 CONFIGFS_ATTR_RO(target_stat_lu_, lun);
426 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local
431 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show()
440 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local
445 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show()
454 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local
459 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show()
461 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_port_indx_show()
468 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local
473 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show()
[all …]
H A Dtarget_core_device.c217 struct se_lun *lun; in core_get_se_deve_from_rtpi() local
222 lun = rcu_dereference(deve->se_lun); in core_get_se_deve_from_rtpi()
223 if (!lun) { in core_get_se_deve_from_rtpi()
229 if (lun->lun_rtpi != rtpi) in core_get_se_deve_from_rtpi()
250 struct se_lun *lun = rcu_dereference_check(deve->se_lun, in core_free_device_list_for_node() local
252 core_disable_device_list_for_node(lun, deve, nacl, tpg); in core_free_device_list_for_node()
310 struct se_lun *lun, in core_enable_device_list_for_node() argument
343 if (orig_lun != lun) { in core_enable_device_list_for_node()
361 rcu_assign_pointer(new->se_lun, lun); in core_enable_device_list_for_node()
367 spin_lock(&lun->lun_deve_lock); in core_enable_device_list_for_node()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/rts5208/
H A Drtsx_scsi.c313 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) in set_sense_type() argument
317 set_sense_data(chip, lun, CUR_ERR, 0x06, 0, 0x28, 0, 0, 0); in set_sense_type()
321 set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x3A, 0, 0, 0); in set_sense_type()
325 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x21, 0, 0, 0); in set_sense_type()
329 set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x25, 0, 0, 0); in set_sense_type()
333 set_sense_data(chip, lun, CUR_ERR, 0x07, 0, 0x27, 0, 0, 0); in set_sense_type()
337 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x11, 0, 0, 0); in set_sense_type()
341 set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x0C, 0x02, 0, 0); in set_sense_type()
345 set_sense_data(chip, lun, CUR_ERR, ILGAL_REQ, 0, in set_sense_type()
350 set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x04, 0x04, 0, 0); in set_sense_type()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Dstorage_common.h18 #define VLDBG(lun, fmt, args...) do { } while (0) argument
21 #define _LMSG(func, lun, fmt, args...) \ argument
23 if ((lun)->name_pfx && *(lun)->name_pfx) \
24 func("%s/%s: " fmt, *(lun)->name_pfx, \
25 (lun)->name, ## args); \
27 func("%s: " fmt, (lun)->name, ## args); \
30 #define LDBG(lun, fmt, args...) _LMSG(pr_debug, lun, fmt, ## args) argument
31 #define LERROR(lun, fmt, args...) _LMSG(pr_err, lun, fmt, ## args) argument
32 #define LWARN(lun, fmt, args...) _LMSG(pr_warn, lun, fmt, ## args) argument
33 #define LINFO(lun, fmt, args...) _LMSG(pr_info, lun, fmt, ## args) argument
H A Df_mass_storage.c287 unsigned int lun; member
1710 unsigned int lun = common->cmnd[1] >> 5; in check_command() local
1775 if (common->lun != lun) in check_command()
1777 common->lun, lun); in check_command()
1796 DBG(common, "unsupported LUN %u\n", common->lun); in check_command()
2186 common->lun = cbw->Lun; in received_cbw()
2187 if (common->lun < ARRAY_SIZE(common->luns)) in received_cbw()
2188 common->curlun = common->luns[common->lun]; in received_cbw()
2703 void fsg_common_remove_lun(struct fsg_lun *lun) in fsg_common_remove_lun() argument
2705 if (device_is_registered(&lun->dev)) in fsg_common_remove_lun()
[all …]
/OK3568_Linux_fs/u-boot/drivers/scsi/
H A Dscsi.c62 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_read16()
91 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_read_ext()
112 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_write_ext()
133 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_inquiry()
166 pccb->lun = block_dev->lun; in scsi_read()
243 pccb->lun = block_dev->lun; in scsi_write()
370 pccb->cmd[1] = pccb->lun << 5; in scsi_read_capacity()
432 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_test_unit_ready()
449 dev_desc->lun = 0xff; in scsi_init_dev_desc_priv()
494 static int scsi_detect_dev(struct udevice *dev, int target, int lun, in scsi_detect_dev() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dscsi_common.c80 u64 lun; in scsilun_to_int() local
82 lun = 0; in scsilun_to_int()
83 for (i = 0; i < sizeof(lun); i += 2) in scsilun_to_int()
84 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | in scsilun_to_int()
86 return lun; in scsilun_to_int()
105 void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) in int_to_scsilun() argument
111 for (i = 0; i < sizeof(lun); i += 2) { in int_to_scsilun()
112 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun()
113 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun()
114 lun = lun >> 16; in int_to_scsilun()
H A Dscsi_scan.c216 u64 lun, void *hostdata) in scsi_alloc_sdev() argument
233 sdev->lun = lun; in scsi_alloc_sdev()
821 if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) { in scsi_add_lun()
824 __func__, sdev->type, (unsigned int)sdev->lun); in scsi_add_lun()
1044 u64 lun, blist_flags_t *bflagsp, in scsi_probe_and_add_lun() argument
1059 sdev = scsi_device_lookup_by_target(starget, lun); in scsi_probe_and_add_lun()
1078 sdev = scsi_alloc_sdev(starget, lun, hostdata); in scsi_probe_and_add_lun()
1109 if (lun == 0) { in scsi_probe_and_add_lun()
1149 !scsi_is_wlun(lun)) { in scsi_probe_and_add_lun()
1202 u64 sparse_lun, lun; in scsi_sequential_lun_scan() local
[all …]
H A Dvirtio_scsi.c282 unsigned int target = event->lun[1]; in virtscsi_handle_transport_reset()
283 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_transport_reset() local
287 if (lun == 0) { in virtscsi_handle_transport_reset()
291 scsi_add_device(shost, 0, target, lun); in virtscsi_handle_transport_reset()
295 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_transport_reset()
301 shost->host_no, target, lun); in virtscsi_handle_transport_reset()
314 unsigned int target = event->lun[1]; in virtscsi_handle_param_change()
315 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_param_change() local
319 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_param_change()
322 shost->host_no, target, lun); in virtscsi_handle_param_change()
[all …]
H A D53c700.c434 NCR_700_identify(int can_disconnect, __u8 lun) in NCR_700_identify() argument
438 (lun & NCR_700_LUN_MASK); in NCR_700_identify()
799 __u8 pun = 0xff, lun = 0xff; in process_extended_message() local
803 lun = SCp->device->lun; in process_extended_message()
848 host->host_no, pun, lun); in process_extended_message()
858 host->host_no, pun, lun, in process_extended_message()
880 __u8 pun = 0xff, lun = 0xff; in process_message() local
884 lun = SCp->device->lun; in process_message()
888 printk("scsi%d (%d:%d): message %s: ", host->host_no, pun, lun, in process_message()
922 pun, lun, in process_message()
[all …]
H A Dscsi_proc.c190 sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); in proc_print_scsidevice()
243 static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) in scsi_add_single_device() argument
253 error = shost->transportt->user_scan(shost, channel, id, lun); in scsi_add_single_device()
255 error = scsi_scan_host_selected(shost, channel, id, lun, in scsi_add_single_device()
271 static int scsi_remove_single_device(uint host, uint channel, uint id, uint lun) in scsi_remove_single_device() argument
280 sdev = scsi_device_lookup(shost, channel, id, lun); in scsi_remove_single_device()
313 int host, channel, id, lun; in proc_scsi_write() local
344 lun = simple_strtoul(p + 1, &p, 0); in proc_scsi_write()
346 err = scsi_add_single_device(host, channel, id, lun); in proc_scsi_write()
358 lun = simple_strtoul(p + 1, &p, 0); in proc_scsi_write()
[all …]
/OK3568_Linux_fs/u-boot/drivers/rknand/
H A Drknand.h30 u32 (*read)(u8 lun, u32 start, u32 blkcnt, void *buffer);
40 u32 (*write)(u8 lun, u32 start, u32 blkcnt, const void *buffer);
49 u32 (*erase)(u8 lun, u32 start, u32 blkcnt);
56 u32 ftl_write(u8 lun, u32 start, u32 blkcnt, const void *buffer);
57 u32 ftl_read(u8 lun, u32 start, u32 blkcnt, void *buffer);
58 u32 ftl_discard(u8 lun, u32 start, u32 blkcnt);
59 u32 ftl_get_density(u8 lun);
/OK3568_Linux_fs/kernel/drivers/usb/storage/
H A Drealtek_cr.c67 #define SET_LUN_READY(chip, lun) ((chip)->lun_ready |= ((u8)1 << (lun))) argument
68 #define CLR_LUN_READY(chip, lun) ((chip)->lun_ready &= ~((u8)1 << (lun))) argument
69 #define TST_LUN_READY(chip, lun) ((chip)->lun_ready & ((u8)1 << (lun))) argument
117 #define SCSI_LUN(srb) ((srb)->device->lun)
201 static int rts51x_bulk_transport(struct us_data *us, u8 lun, in rts51x_bulk_transport() argument
217 bcb->Lun = lun; in rts51x_bulk_transport()
291 static int rts51x_bulk_transport_special(struct us_data *us, u8 lun, in rts51x_bulk_transport_special() argument
306 bcb->Lun = lun; in rts51x_bulk_transport_special()
420 u8 lun, u8 *status, int len, int *actlen) in rts51x_read_status() argument
430 usb_stor_dbg(us, "lun = %d\n", lun); in rts51x_read_status()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/aic94xx/
H A Daic94xx_tmf.c201 static int asd_clear_nexus_I_T_L(struct domain_device *dev, u8 *lun) in asd_clear_nexus_I_T_L() argument
208 memcpy(scb->clear_nexus.ssp_task.lun, lun, 8); in asd_clear_nexus_I_T_L()
221 memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8); in asd_clear_nexus_tag()
443 memcpy(scb->abort_task.ssp_task.lun, task->ssp_task.LUN, 8); in asd_abort_task()
556 static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun, in asd_initiate_ssp_tmf() argument
592 memcpy(scb->ssp_tmf.ssp_task.lun, lun, 8); in asd_initiate_ssp_tmf()
638 int asd_abort_task_set(struct domain_device *dev, u8 *lun) in asd_abort_task_set() argument
640 int res = asd_initiate_ssp_tmf(dev, lun, TMF_ABORT_TASK_SET, 0); in asd_abort_task_set()
643 asd_clear_nexus_I_T_L(dev, lun); in asd_abort_task_set()
647 int asd_clear_aca(struct domain_device *dev, u8 *lun) in asd_clear_aca() argument
[all …]
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Df_rockusb.c128 if (common->lun >= 0 && common->lun < common->nluns) { in rkusb_check_lun()
129 curlun = &common->luns[common->lun]; in rkusb_check_lun()
144 debug("unsupported LUN %d\n", common->lun); in rkusb_check_lun()
180 struct blk_desc *desc = &ums[common->lun].block_dev; in rkusb_do_test_unit_ready()
199 enum if_type type = ums[common->lun].block_dev.if_type; in rkusb_do_read_flash_id()
200 u32 devnum = ums[common->lun].block_dev.devnum; in rkusb_do_read_flash_id()
250 struct blk_desc *desc = &ums[common->lun].block_dev; in rkusb_do_read_flash_info()
323 struct fsg_lun *curlun = &common->luns[common->lun]; in rkusb_do_lba_erase()
344 rc = ums[common->lun].erase_sector(&ums[common->lun], in rkusb_do_lba_erase()
362 struct blk_desc *desc = &ums[common->lun].block_dev; in rkusb_do_erase_force()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/libsas/
H A Dsas_scsi_host.c136 struct scsi_lun lun; in sas_create_task() local
148 int_to_scsilun(cmd->device->lun, &lun); in sas_create_task()
149 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); in sas_create_task()
238 cmd->device->lun == my_cmd->device->lun) in sas_scsi_clear_queue_lu()
327 struct scsi_lun lun; in sas_recover_lu() local
331 int_to_scsilun(cmd->device->lun, &lun); in sas_recover_lu()
335 cmd->device->lun); in sas_recover_lu()
338 res = i->dft->lldd_abort_task_set(dev, lun.scsi_lun); in sas_recover_lu()
342 res = i->dft->lldd_clear_task_set(dev, lun.scsi_lun); in sas_recover_lu()
347 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_recover_lu()
[all …]
/OK3568_Linux_fs/u-boot/include/linux/mtd/
H A Dnand.h74 unsigned int lun; member
447 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos()
468 if (a->lun != b->lun) in nanddev_pos_cmp()
469 return a->lun < b->lun ? -1 : 1; in nanddev_pos_cmp()
498 (pos->lun + in nanddev_pos_to_offs()
519 return (pos->lun << nand->rowconv.lun_addr_shift) | in nanddev_pos_to_row()
538 pos->lun = 0; in nanddev_pos_next_target()
553 if (pos->lun >= nand->memorg.luns_per_target - 1) in nanddev_pos_next_lun()
556 pos->lun++; in nanddev_pos_next_lun()
726 ((pos->lun + (pos->target * nand->memorg.luns_per_target)) * in nanddev_bbt_pos_to_entry()
/OK3568_Linux_fs/kernel/include/trace/events/
H A Dscsi.h210 __field( unsigned int, lun )
223 __entry->lun = cmd->device->lun;
235 __entry->lun, __entry->data_sglen, __entry->prot_sglen,
252 __field( unsigned int, lun )
266 __entry->lun = cmd->device->lun;
279 __entry->lun, __entry->data_sglen, __entry->prot_sglen,
297 __field( unsigned int, lun )
311 __entry->lun = cmd->device->lun;
325 __entry->lun, __entry->data_sglen, __entry->prot_sglen,
/OK3568_Linux_fs/kernel/drivers/block/paride/
H A Dpf.c237 int lun; member
317 pf->lun = (*drives[unit])[D_LUN]; in pf_init_units()
505 { ATAPI_REQ_SENSE, pf->lun << 5, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0 }; in pf_req_sense()
535 char lo_cmd[12] = { ATAPI_LOCK, pf->lun << 5, 0, 0, func, 0, 0, 0, 0, 0, 0, 0 }; in pf_lock()
542 char ej_cmd[12] = { ATAPI_DOOR, pf->lun << 5, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 }; in pf_eject()
595 { ATAPI_MODE_SENSE, pf->lun << 5, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0 }; in pf_mode_sense()
630 char rc_cmd[12] = { ATAPI_CAPACITY, pf->lun << 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in pf_get_capacity()
645 pf->name, pf->drive, pf->lun, bs); in pf_get_capacity()
655 { ATAPI_IDENTIFY, pf->lun << 5, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0 }; in pf_identify()
666 pf->name, pf->drive, pf->lun, dt); in pf_identify()
[all …]
/OK3568_Linux_fs/u-boot/common/
H A Dusb_storage.c189 int lun, max_lun; in usb_stor_probe_device() local
212 for (lun = 0; lun <= max_lun; lun++) { in usb_stor_probe_device()
217 snprintf(str, sizeof(str), "lun%d", lun); in usb_stor_probe_device()
228 blkdev->lun = lun; in usb_stor_probe_device()
261 for (lun = 0; lun <= max_lun && usb_max_devs < USB_MAX_STOR_DEV; in usb_stor_probe_device()
262 lun++) { in usb_stor_probe_device()
274 blkdev->lun = lun; in usb_stor_probe_device()
546 dir_in, srb->lun, srb->cmdlen, srb->cmd, srb->datalen, in usb_stor_BBB_comdat()
567 cbw->bCBWLUN = srb->lun; in usb_stor_BBB_comdat()
881 psrb->cmd[1] = srb->lun << 5; in usb_stor_CB_transport()
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dvirtio_scsi.h45 __u8 lun[8]; /* Logical Unit Number */ member
55 __u8 lun[8]; /* Logical Unit Number */ member
79 __u8 lun[8]; member
90 __u8 lun[8]; member
101 __u8 lun[8]; member
/OK3568_Linux_fs/kernel/drivers/scsi/isci/
H A Dtask.h93 unsigned char lun[8]; member
141 u8 *lun);
145 u8 *lun);
149 u8 *lun);
156 u8 *lun);

12345678910>>...45