Home
last modified time | relevance | path

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

12345678910>>...18

/openbmc/ipmitool/lib/
H A Dipmi_firewall.c821 if (p->lun >= 0 && p->lun != l) in _gather_info()
823 bmc->lun[l].support = lun[l]; in _gather_info()
834 if (!((p->lun < 0 || bmc->lun[p->lun].support) && in _gather_info()
852 l = p->lun; in _gather_info()
868 p->lun = l; in _gather_info()
882 p->lun = -1; in _gather_info()
922 if (!((p.lun < 0 || bmc_fn_support->lun[p.lun].support) && in ipmi_firewall_info()
951 if (!((p.lun < 0 || bmc_fn_support->lun[p.lun].support) && in ipmi_firewall_info()
961 l = p.lun; in ipmi_firewall_info()
1053 l = p.lun; in ipmi_firewall_enable_disable()
[all …]
/openbmc/linux/drivers/target/
H A Dtarget_core_tpg.c110 struct se_lun *lun; in core_tpg_add_node_to_devs() local
143 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, in core_tpg_add_node_to_devs()
611 struct se_lun *lun; in core_tpg_alloc_lun() local
613 lun = kzalloc(sizeof(*lun), GFP_KERNEL); in core_tpg_alloc_lun()
614 if (!lun) { in core_tpg_alloc_lun()
628 lun->lun_tpg = tpg; in core_tpg_alloc_lun()
630 return lun; in core_tpg_alloc_lun()
635 struct se_lun *lun, in core_tpg_add_lun() argument
675 struct se_lun *lun) in core_tpg_remove_lun() argument
683 lun->lun_shutdown = true; in core_tpg_remove_lun()
[all …]
H A Dtarget_core_alua.c140 struct se_lun *lun; in target_emulate_report_target_port_groups() local
387 struct se_lun *lun; in target_emulate_set_target_port_groups() local
409 lun, 1, 1)) in target_emulate_set_target_port_groups()
914 struct se_lun *lun; in core_alua_queue_state_change_ua() local
1217 struct se_lun *lun, in core_alua_set_tg_pt_secondary_state() argument
1897 struct se_lun *lun, in core_alua_store_tg_pt_gp_info() argument
2157 struct se_lun *lun, in core_alua_store_offline_bit() argument
2192 struct se_lun *lun, in core_alua_show_secondary_status() argument
2199 struct se_lun *lun, in core_alua_store_secondary_status() argument
2224 struct se_lun *lun, in core_alua_show_secondary_write_metadata() argument
[all …]
H A Dtarget_core_fabric_configfs.c71 struct se_lun *lun; in target_fabric_mappedlun_link() local
88 if (!lun->lun_se_dev) { in target_fabric_mappedlun_link()
97 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link()
524 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_gp_show()
535 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_gp_store()
546 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_offline_show()
557 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_offline_store()
568 if (!lun->lun_se_dev) in target_fabric_port_alua_tg_pt_status_show()
744 struct se_lun *lun; in target_fabric_make_lun() local
761 if (IS_ERR(lun)) in target_fabric_make_lun()
[all …]
H A Dtarget_core_stat.c345 CONFIGFS_ATTR_RO(target_stat_lu_, lun);
428 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show()
442 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show()
456 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show()
470 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show()
485 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_busy_count_show()
532 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_inst_show()
582 lun->lun_tpg->tpg_rtpi); in target_stat_tgt_port_name_show()
827 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
832 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
[all …]
H A Dtarget_core_device.c209 struct se_lun *lun; in core_get_se_deve_from_rtpi() local
214 lun = deve->se_lun; in core_get_se_deve_from_rtpi()
215 if (!lun) { in core_get_se_deve_from_rtpi()
288 struct se_lun *lun; in target_dev_ua_allocate() local
318 struct se_lun *lun, in core_enable_device_list_for_node() argument
368 new->se_lun = lun; in core_enable_device_list_for_node()
387 new->se_lun = lun; in core_enable_device_list_for_node()
401 struct se_lun *lun, in core_disable_device_list_for_node() argument
511 struct se_lun *lun) in core_dev_add_lun() argument
550 struct se_lun *lun) in core_dev_del_lun() argument
[all …]
/openbmc/linux/drivers/staging/rts5208/
H A Drtsx_scsi.c421 SET_BIT(chip->lun_mc, lun); in test_unit_ready()
435 set_sense_type(chip, lun, in test_unit_ready()
565 eject_card(chip, lun); in start_stop_unit()
851 if (!check_card_ready(chip, lun) || (get_card_size(chip, lun) == 0)) { in read_write()
875 set_sense_type(chip, lun, in read_write()
923 set_sense_type(chip, lun, in read_write()
934 set_sense_type(chip, lun, in read_write()
946 chip->rw_fail_cnt[lun]++; in read_write()
949 (chip, lun, in read_write()
2419 rtsx_status[4] = (u8)lun; in read_status()
[all …]
/openbmc/linux/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.c1793 if (common->lun != lun) in check_command()
1795 common->lun, lun); in check_command()
2783 kfree(lun); in fsg_common_remove_lun()
2890 lun = kzalloc(sizeof(*lun), GFP_KERNEL); in fsg_common_create_lun()
2891 if (!lun) in fsg_common_create_lun()
2898 lun->initially_ro = lun->ro; in fsg_common_create_lun()
2910 lun->name = dev_name(&lun->dev); in fsg_common_create_lun()
2949 kfree(lun); in fsg_common_create_lun()
3007 if (!lun) in fsg_common_release()
3012 kfree(lun); in fsg_common_release()
[all …]
/openbmc/u-boot/drivers/scsi/
H A Dscsi.c60 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_read16()
164 pccb->lun = block_dev->lun; in scsi_read()
240 pccb->lun = block_dev->lun; in scsi_write()
444 dev_desc->lun = 0xff; in scsi_init_dev_desc_priv()
498 pccb->lun = lun; in scsi_detect_dev()
529 dev_desc->lun = pccb->lun; in scsi_detect_dev()
589 bdesc->lun = lun; in do_scsi_scan_one()
608 int lun; in scsi_scan_dev() local
619 for (lun = 0; lun < uc_plat->max_lun; lun++) in scsi_scan_dev()
651 unsigned char i, lun; in scsi_scan() local
[all …]
/openbmc/linux/drivers/scsi/
H A Dscsi_common.c132 u64 lun; in scsilun_to_int() local
134 lun = 0; in scsilun_to_int()
135 for (i = 0; i < sizeof(lun); i += 2) in scsilun_to_int()
136 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | in scsilun_to_int()
138 return lun; in scsilun_to_int()
157 void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) in int_to_scsilun() argument
163 for (i = 0; i < sizeof(lun); i += 2) { in int_to_scsilun()
164 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun()
165 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun()
166 lun = lun >> 16; in int_to_scsilun()
H A Dsd_trace.h27 __field( unsigned int, lun )
36 __entry->lun = cmnd->device->lun;
43 __entry->lun, __entry->lba, __entry->wp_offset)
57 __field( unsigned int, lun )
67 __entry->lun = cmnd->device->lun;
76 __entry->lun, __entry->rq_sector, __entry->wp_offset,
H A Dscsi_scan.c298 sdev->lun = lun; in scsi_alloc_sdev()
1219 if (lun == 0) { in scsi_probe_and_add_lun()
1258 !scsi_is_wlun(lun)) { in scsi_probe_and_add_lun()
1311 u64 sparse_lun, lun; in scsi_sequential_lun_scan() local
1371 for (lun = 1; lun < max_dev_lun; ++lun) in scsi_sequential_lun_scan()
1403 u64 lun; in scsi_report_lun_scan() local
1536 lun = scsilun_to_int(lunp); in scsi_report_lun_scan()
1610 uint target, u64 lun) in scsi_add_device() argument
1816 order_id, lun, rescan); in scsi_scan_channel()
1820 id, lun, rescan); in scsi_scan_channel()
[all …]
H A Dvirtio_scsi.c282 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_transport_reset() local
286 if (lun == 0) { in virtscsi_handle_transport_reset()
314 unsigned int lun = (event->lun[2] << 8) | event->lun[3]; in virtscsi_handle_param_change() local
518 cmd->lun[2] = (sc->device->lun >> 8) | 0x40; in virtio_scsi_init_hdr()
519 cmd->lun[3] = sc->device->lun & 0xff; in virtio_scsi_init_hdr()
656 .lun[0] = 1, in virtscsi_device_reset()
658 .lun[2] = (sc->device->lun >> 8) | 0x40, in virtscsi_device_reset()
659 .lun[3] = sc->device->lun & 0xff, in virtscsi_device_reset()
713 .lun[0] = 1, in virtscsi_abort()
715 .lun[2] = (sc->device->lun >> 8) | 0x40, in virtscsi_abort()
[all …]
/openbmc/skeleton/pyipmitest/
H A Dipmi_debug.py18 def header(seq, netfn, lun, cmd): argument
22 lun,
27 def print_request(seq, netfn, lun, cmd, data): argument
28 str = header(seq, netfn, lun, cmd)
33 def print_response(seq, netfn, lun, cmd, cc, data): argument
34 str = header(seq, netfn, lun, cmd)
47 def ReceivedMessage(self, seq, netfn, lun, cmd, data): argument
49 print_request(seq, netfn, lun, cmd, data)
52 def sendMessage(self, seq, netfn, lun, cmd, ccode, data): argument
54 print_response(seq, netfn, lun, cmd, ccode, data)
/openbmc/qemu/hw/scsi/
H A Dscsi-bus.c41 if (dev->lun == lun) { in do_scsi_device_find()
279 if (d && d->lun == lun) { in scsi_bus_is_address_free()
304 if (dev->lun != -1 && dev->lun > bus->info->max_lun) { in scsi_bus_check_address()
341 int lun = -1; in scsi_qdev_realize() local
349 dev->lun = lun; in scsi_qdev_realize()
533 if (lun < 256) { in store_lun()
536 outbuf[1] = lun; in store_lun()
606 assert(r->req.dev->lun != r->req.lun); in scsi_target_emulate_inquiry()
790 req->lun = lun; in scsi_req_alloc()
835 } else if (lun != d->lun || in scsi_req_new()
[all …]
H A Dvirtio-scsi.c71 return ((lun[2] << 8) | lun[3]) & 0x3FFF; in virtio_scsi_get_lun()
79 if (lun[2] != 0 && !(lun[2] >= 0x40 && lun[2] < 0x80)) { in virtio_scsi_device_get()
82 return scsi_device_get(&s->bus, 0, lun[1], virtio_scsi_get_lun(lun)); in virtio_scsi_device_get()
333 if (d->lun != virtio_scsi_get_lun(req->req.tmf.lun)) { in virtio_scsi_do_one_tmf_bh()
459 if (d->lun != virtio_scsi_get_lun(req->req.tmf.lun)) { in virtio_scsi_do_tmf()
504 if (d->lun != virtio_scsi_get_lun(req->req.tmf.lun)) { in virtio_scsi_do_tmf()
1003 evt->lun[2] = (info->address.lun >> 8) | 0x40; in virtio_scsi_push_event()
1005 evt->lun[3] = info->address.lun & 0xFF; in virtio_scsi_push_event()
1045 .lun = dev->lun, in virtio_scsi_change()
1084 .lun = sd->lun, in virtio_scsi_hotplug()
[all …]
H A Dtrace-events4 scsi_req_alloc(int target, int lun, int tag) "target %d lun %d tag %d"
5 scsi_req_cancel(int target, int lun, int tag) "target %d lun %d tag %d"
6 scsi_req_data(int target, int lun, int tag, int len) "target %d lun %d tag %d len %d"
7 scsi_req_data_canceled(int target, int lun, int tag, int len) "target %d lun %d tag %d len %d"
8 scsi_req_dequeue(int target, int lun, int tag) "target %d lun %d tag %d"
11 scsi_req_continue(int target, int lun, int tag) "target %d lun %d tag %d"
12 scsi_req_continue_canceled(int target, int lun, int tag) "target %d lun %d tag %d"
18 scsi_report_luns(int target, int lun, int tag) "target %d lun %d tag %d"
20 scsi_test_unit_ready(int target, int lun, int tag) "target %d lun %d tag %d"
21 scsi_request_sense(int target, int lun, int tag) "target %d lun %d tag %d"
[all …]
/openbmc/qemu/contrib/vhost-user-scsi/
H A Dvhost-user-scsi.c36 VusIscsiLun lun; member
45 static int vus_iscsi_add_lun(VusIscsiLun *lun, char *iscsi_uri) in vus_iscsi_add_lun() argument
51 assert(lun); in vus_iscsi_add_lun()
53 assert(!lun->iscsi_ctx); in vus_iscsi_add_lun()
69 if (iscsi_full_connect_sync(iscsi_ctx, iscsi_url->portal, iscsi_url->lun)) { in vus_iscsi_add_lun()
75 lun->iscsi_ctx = iscsi_ctx; in vus_iscsi_add_lun()
76 lun->iscsi_lun = iscsi_url->lun; in vus_iscsi_add_lun()
140 if (!(!req->lun[1] && req->lun[2] == 0x40 && !req->lun[3])) { in handle_cmd_sync()
143 req->lun[1], req->lun[3]); in handle_cmd_sync()
279 if (handle_cmd_sync(vdev_scsi->lun.iscsi_ctx, in vus_proc_req()
[all …]
/openbmc/qemu/hw/ufs/
H A Dlu.c107 for (uint8_t lun = 0; lun < UFS_MAX_LUS; ++lun) { in ufs_emulate_report_luns() local
108 if (u->lus[lun]) { in ufs_emulate_report_luns()
115 outbuf[len + 1] = lun; in ufs_emulate_report_luns()
196 uint8_t lun = lu->lun; in ufs_emulate_scsi_cmd() local
229 if (lun == UFS_UPIU_UFS_DEVICE_WLUN) { in ufs_emulate_scsi_cmd()
279 DEFINE_PROP_UINT8("lun", UfsLu, lun, 0),
295 if (u->lus[lu->lun] != NULL) { in ufs_add_lu()
300 u->lus[lu->lun] = lu; in ufs_add_lu()
309 wlu->lun = wlun; in ufs_init_wlu()
323 lu->unit_desc.unit_index = lu->lun; in ufs_init_lu()
[all …]
/openbmc/linux/drivers/scsi/libsas/
H A Dsas_scsi_host.c134 struct scsi_lun lun; in sas_create_task() local
145 int_to_scsilun(cmd->device->lun, &lun); in sas_create_task()
236 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()
460 struct scsi_lun lun; in sas_eh_device_reset_handler() local
468 int_to_scsilun(cmd->device->lun, &lun); in sas_eh_device_reset_handler()
1145 struct scsi_lun lun; in sas_query_task() local
1147 int_to_scsilun(cmnd->device->lun, &lun); in sas_query_task()
[all …]
/openbmc/linux/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
217 bcb->Lun = lun; in rts51x_bulk_transport()
306 bcb->Lun = lun; in rts51x_bulk_transport_special()
430 usb_stor_dbg(us, "lun = %d\n", lun); in rts51x_read_status()
461 chip->status[lun].cur_lun = buf[4]; in rts51x_check_status()
462 chip->status[lun].card_type = buf[5]; in rts51x_check_status()
463 chip->status[lun].total_lun = buf[6]; in rts51x_check_status()
465 chip->status[lun].phy_exist = buf[9]; in rts51x_check_status()
[all …]
/openbmc/qemu/pc-bios/s390-ccw/
H A Dvirtio-scsi.c68 req.lun = make_lun(sdev->channel, sdev->target, sdev->lun); in prepare_request()
223 sdev->lun = vdev->selected_scsi_device.lun; in virtio_scsi_locate_device()
227 IPL_check(sdev->lun <= vdev->config.scsi.max_lun, "LUN# high"); in virtio_scsi_locate_device()
234 sdev->lun = 0; /* LUN has to be 0 for REPORT LUNS */ in virtio_scsi_locate_device()
253 sdev->lun = r->lun[0].v16[0]; /* it's returned this way */ in virtio_scsi_locate_device()
254 debug_print_int("Have to use LUN", sdev->lun); in virtio_scsi_locate_device()
258 if (r->lun[i].v64) { in virtio_scsi_locate_device()
260 sdev->lun = r->lun[i].v16[0]; in virtio_scsi_locate_device()
261 debug_print_int("Will use LUN", sdev->lun); in virtio_scsi_locate_device()
/openbmc/qemu/include/standard-headers/linux/
H A Dvirtio_scsi.h45 uint8_t lun[8]; /* Logical Unit Number */ member
55 uint8_t lun[8]; /* Logical Unit Number */ member
79 uint8_t lun[8]; member
90 uint8_t lun[8]; member
101 uint8_t lun[8]; member
/openbmc/linux/include/uapi/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

12345678910>>...18