Home
last modified time | relevance | path

Searched refs:lun (Results 1 - 25 of 602) sorted by relevance

12345678910>>...25

/kernel/linux/linux-5.10/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 in core_tpg_lun_ref_release() local
546 struct se_lun *lun; core_tpg_alloc_lun() local
568 core_tpg_add_lun( struct se_portal_group *tpg, struct se_lun *lun, bool lun_access_ro, struct se_device *dev) core_tpg_add_lun() argument
614 core_tpg_remove_lun( struct se_portal_group *tpg, struct se_lun *lun) core_tpg_remove_lun() argument
[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()
93 " lun->lun_shutdown=true\n"); in target_fabric_mappedlun_link()
96 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link()
136 * $FABRIC/$WWPN/$TPGT/lun/lun_* as on their SCSI Initiator Ports. 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, lac in target_fabric_mappedlun_unlink()
521 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_gp_show() local
532 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_gp_store() local
543 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_offline_show() local
554 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_offline_store() local
565 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_status_show() local
576 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_status_store() local
587 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_write_md_show() local
598 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_write_md_store() local
624 struct se_lun *lun = container_of(to_config_group(lun_ci), target_fabric_port_link() local
677 struct se_lun *lun = container_of(to_config_group(lun_ci), target_fabric_port_unlink() local
696 struct se_lun *lun = container_of(to_config_group(item), target_fabric_port_release() local
743 struct se_lun *lun; target_fabric_make_lun() local
780 struct se_lun *lun = container_of(to_config_group(item), target_fabric_drop_lun() 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 in target_stat_port_role_show()
483 struct se_lun *lun = to_stat_port(item); target_stat_port_busy_count_show() local
530 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_inst_show() local
545 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_dev_show() local
560 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_indx_show() local
575 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_name_show() local
593 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_port_index_show() local
611 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_in_cmds_show() local
627 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_write_mbytes_show() local
643 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_read_mbytes_show() local
659 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_hs_in_cmds_show() local
714 struct se_lun *lun = to_transport_stat(item); target_stat_transport_inst_show() local
729 struct se_lun *lun = to_transport_stat(item); target_stat_transport_device_show() local
748 struct se_lun *lun = to_transport_stat(item); target_stat_transport_indx_show() local
765 struct se_lun *lun = to_transport_stat(item); target_stat_transport_dev_name_show() local
788 struct se_lun *lun = to_transport_stat(item); target_stat_transport_proto_id_show() local
825 target_stat_setup_port_default_groups(struct se_lun *lun) target_stat_setup_port_default_groups() argument
883 struct se_lun *lun; target_stat_auth_dev_show() local
1223 struct se_lun *lun; target_stat_iport_dev_show() local
[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 in target_alua_state_check() local
939 struct se_lun *lun; core_alua_queue_state_change_ua() local
1195 core_alua_update_tpg_secondary_metadata(struct se_lun *lun) core_alua_update_tpg_secondary_metadata() argument
1242 core_alua_set_tg_pt_secondary_state( struct se_lun *lun, int explicit, int offline) core_alua_set_tg_pt_secondary_state() argument
1738 struct se_lun *lun, *next; core_alua_free_tg_pt_gp() local
1828 __target_attach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) __target_attach_tg_pt_gp() argument
1847 target_attach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) target_attach_tg_pt_gp() argument
1855 __target_detach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) __target_detach_tg_pt_gp() argument
1868 target_detach_tg_pt_gp(struct se_lun *lun) target_detach_tg_pt_gp() argument
1879 core_alua_show_tg_pt_gp_info(struct se_lun *lun, char *page) core_alua_show_tg_pt_gp_info() argument
1907 core_alua_store_tg_pt_gp_info( struct se_lun *lun, const char *page, size_t count) core_alua_store_tg_pt_gp_info() argument
2160 core_alua_show_offline_bit(struct se_lun *lun, char *page) core_alua_show_offline_bit() argument
2166 core_alua_store_offline_bit( struct se_lun *lun, const char *page, size_t count) core_alua_store_offline_bit() argument
2201 core_alua_show_secondary_status( struct se_lun *lun, char *page) core_alua_show_secondary_status() argument
2208 core_alua_store_secondary_status( struct se_lun *lun, const char *page, size_t count) core_alua_store_secondary_status() argument
2233 core_alua_show_secondary_write_metadata( struct se_lun *lun, char *page) core_alua_show_secondary_write_metadata() argument
2240 core_alua_store_secondary_write_metadata( struct se_lun *lun, const char *page, size_t count) core_alua_store_secondary_write_metadata() argument
[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()
343 if (orig_lun != lun) { in core_enable_device_list_for_node()
344 pr_err("Existing orig->se_lun doesn't match new lun" in core_enable_device_list_for_node()
361 rcu_assign_pointer(new->se_lun, lun); in core_enable_device_list_for_node()
309 core_enable_device_list_for_node( struct se_lun *lun, struct se_lun_acl *lun_acl, u64 mapped_lun, bool lun_access_ro, struct se_node_acl *nacl, struct se_portal_group *tpg) core_enable_device_list_for_node() argument
393 core_disable_device_list_for_node( struct se_lun *lun, struct se_dev_entry *orig, struct se_node_acl *nacl, struct se_portal_group *tpg) core_disable_device_list_for_node() argument
453 core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) core_clear_lun_from_tpg() argument
476 core_alloc_rtpi(struct se_lun *lun, struct se_device *dev) core_alloc_rtpi() argument
548 core_dev_add_lun( struct se_portal_group *tpg, struct se_device *dev, struct se_lun *lun) core_dev_add_lun() argument
588 core_dev_del_lun( struct se_portal_group *tpg, struct se_lun *lun) core_dev_del_lun() argument
627 core_dev_add_initiator_node_lun_acl( struct se_portal_group *tpg, struct se_lun_acl *lacl, struct se_lun *lun, bool lun_access_ro) core_dev_add_initiator_node_lun_acl() argument
666 core_dev_del_initiator_node_lun_acl( struct se_lun *lun, struct se_lun_acl *lacl) core_dev_del_initiator_node_lun_acl() argument
[all...]
/kernel/linux/linux-5.10/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_ER in set_sense_type()
388 set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, u8 sense_key, u32 info, u8 asc, u8 ascq, u8 sns_key_info0, u16 sns_key_info1) set_sense_data() argument
413 unsigned int lun = SCSI_LUN(srb); test_unit_ready() local
465 unsigned int lun = SCSI_LUN(srb); inquiry() local
550 unsigned int lun = SCSI_LUN(srb); start_stop_unit() local
601 unsigned int lun = SCSI_LUN(srb); request_sense() local
643 ms_mode_sense(struct rtsx_chip *chip, u8 cmd, int lun, u8 *buf, int buf_len) ms_mode_sense() argument
738 unsigned int lun = SCSI_LUN(srb); mode_sense() local
838 unsigned int lun = SCSI_LUN(srb); read_write() local
971 unsigned int lun = SCSI_LUN(srb); read_format_capacity() local
1049 unsigned int lun = SCSI_LUN(srb); read_capacity() local
1297 unsigned int lun = SCSI_LUN(srb); get_sd_csd() local
1395 unsigned int lun = SCSI_LUN(srb); set_variable() local
1457 unsigned int lun = SCSI_LUN(srb); get_variable() local
1500 unsigned int lun = SCSI_LUN(srb); dma_access_ring_buffer() local
1542 unsigned int lun = SCSI_LUN(srb); get_dev_status() local
1722 unsigned int lun = SCSI_LUN(srb); rw_mem_cmd_buf() local
2411 unsigned int lun = SCSI_LUN(srb); read_status() local
2538 unsigned int lun = SCSI_LUN(srb); get_card_bus_width() local
2563 unsigned int lun = SCSI_LUN(srb); spi_vendor_cmd() local
2685 unsigned int lun = SCSI_LUN(srb); led_shine() local
2710 unsigned int lun = SCSI_LUN(srb); ms_format_cmnd() local
2774 unsigned int lun = SCSI_LUN(srb); get_ms_information() local
2882 unsigned int lun = SCSI_LUN(srb); sd_extension_cmnd() local
2942 unsigned int lun = SCSI_LUN(srb); mg_report_key() local
3041 unsigned int lun = SCSI_LUN(srb); mg_send_key() local
3163 unsigned int lun = SCSI_LUN(srb); rtsx_scsi_handler() local
[all...]
/kernel/linux/linux-6.6/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_ER in set_sense_type()
388 set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, u8 sense_key, u32 info, u8 asc, u8 ascq, u8 sns_key_info0, u16 sns_key_info1) set_sense_data() argument
413 unsigned int lun = SCSI_LUN(srb); test_unit_ready() local
465 unsigned int lun = SCSI_LUN(srb); inquiry() local
550 unsigned int lun = SCSI_LUN(srb); start_stop_unit() local
601 unsigned int lun = SCSI_LUN(srb); request_sense() local
643 ms_mode_sense(struct rtsx_chip *chip, u8 cmd, int lun, u8 *buf, int buf_len) ms_mode_sense() argument
738 unsigned int lun = SCSI_LUN(srb); mode_sense() local
838 unsigned int lun = SCSI_LUN(srb); read_write() local
971 unsigned int lun = SCSI_LUN(srb); read_format_capacity() local
1049 unsigned int lun = SCSI_LUN(srb); read_capacity() local
1297 unsigned int lun = SCSI_LUN(srb); get_sd_csd() local
1395 unsigned int lun = SCSI_LUN(srb); set_variable() local
1457 unsigned int lun = SCSI_LUN(srb); get_variable() local
1500 unsigned int lun = SCSI_LUN(srb); dma_access_ring_buffer() local
1542 unsigned int lun = SCSI_LUN(srb); get_dev_status() local
1722 unsigned int lun = SCSI_LUN(srb); rw_mem_cmd_buf() local
2411 unsigned int lun = SCSI_LUN(srb); read_status() local
2538 unsigned int lun = SCSI_LUN(srb); get_card_bus_width() local
2563 unsigned int lun = SCSI_LUN(srb); spi_vendor_cmd() local
2685 unsigned int lun = SCSI_LUN(srb); led_shine() local
2710 unsigned int lun = SCSI_LUN(srb); ms_format_cmnd() local
2774 unsigned int lun = SCSI_LUN(srb); get_ms_information() local
2882 unsigned int lun = SCSI_LUN(srb); sd_extension_cmnd() local
2942 unsigned int lun = SCSI_LUN(srb); mg_report_key() local
3041 unsigned int lun = SCSI_LUN(srb); mg_send_key() local
3163 unsigned int lun = SCSI_LUN(srb); rtsx_scsi_handler() local
[all...]
/kernel/linux/linux-6.6/drivers/target/
H A Dtarget_core_tpg.c110 struct se_lun *lun; in core_tpg_add_node_to_devs() local
114 hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { in core_tpg_add_node_to_devs()
115 if (lun_orig && lun != lun_orig) in core_tpg_add_node_to_devs()
118 dev = rcu_dereference_check(lun->lun_se_dev, in core_tpg_add_node_to_devs()
140 tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, in core_tpg_add_node_to_devs()
143 core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, in core_tpg_add_node_to_devs()
150 core_scsi3_check_aptpl_registration(dev, tpg, lun, acl, in core_tpg_add_node_to_devs()
151 lun->unpacked_lun); in core_tpg_add_node_to_devs()
438 struct se_lun *lun in core_tpg_lun_ref_release() local
611 struct se_lun *lun; core_tpg_alloc_lun() local
633 core_tpg_add_lun( struct se_portal_group *tpg, struct se_lun *lun, bool lun_access_ro, struct se_device *dev) core_tpg_add_lun() argument
673 core_tpg_remove_lun( struct se_portal_group *tpg, struct se_lun *lun) core_tpg_remove_lun() argument
[all...]
H A Dtarget_core_fabric_configfs.c71 struct se_lun *lun; in target_fabric_mappedlun_link() local
83 lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); in target_fabric_mappedlun_link()
88 if (!lun->lun_se_dev) { in target_fabric_mappedlun_link()
92 if (lun->lun_shutdown) { in target_fabric_mappedlun_link()
94 " lun->lun_shutdown=true\n"); in target_fabric_mappedlun_link()
97 se_tpg = lun->lun_tpg; in target_fabric_mappedlun_link()
137 * $FABRIC/$WWPN/$TPGT/lun/lun_* as on their SCSI Initiator Ports. in target_fabric_mappedlun_link()
139 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); in target_fabric_mappedlun_link()
148 struct se_lun *lun = container_of(to_config_group(lun_ci), in target_fabric_mappedlun_unlink() local
151 core_dev_del_initiator_node_lun_acl(lun, lac in target_fabric_mappedlun_unlink()
522 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_gp_show() local
533 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_gp_store() local
544 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_offline_show() local
555 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_offline_store() local
566 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_status_show() local
577 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_status_store() local
588 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_write_md_show() local
599 struct se_lun *lun = item_to_lun(item); target_fabric_port_alua_tg_pt_write_md_store() local
625 struct se_lun *lun = container_of(to_config_group(lun_ci), target_fabric_port_link() local
678 struct se_lun *lun = container_of(to_config_group(lun_ci), target_fabric_port_unlink() local
697 struct se_lun *lun = container_of(to_config_group(item), target_fabric_port_release() local
744 struct se_lun *lun; target_fabric_make_lun() local
781 struct se_lun *lun = container_of(to_config_group(item), target_fabric_drop_lun() local
[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
217 list_for_each_entry(lun, &tg_pt_gp->tg_pt_gp_lun_list, in target_emulate_report_target_port_groups()
228 put_unaligned_be16(lun->lun_tpg->tpg_rtpi, &buf[off]); in target_emulate_report_target_port_groups()
387 struct se_lun *lun; in target_emulate_set_target_port_groups() local
400 list_for_each_entry(lun, &dev->dev_sep_list, in target_emulate_set_target_port_groups()
402 if (lun->lun_tpg->tpg_rtpi != rtpi) in target_emulate_set_target_port_groups()
409 lun, 1, 1)) in target_emulate_set_target_port_groups()
648 struct se_lun *lun in target_alua_state_check() local
914 struct se_lun *lun; core_alua_queue_state_change_ua() local
1169 core_alua_update_tpg_secondary_metadata(struct se_lun *lun) core_alua_update_tpg_secondary_metadata() argument
1216 core_alua_set_tg_pt_secondary_state( struct se_lun *lun, int explicit, int offline) core_alua_set_tg_pt_secondary_state() argument
1712 struct se_lun *lun, *next; core_alua_free_tg_pt_gp() local
1803 __target_attach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) __target_attach_tg_pt_gp() argument
1822 target_attach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) target_attach_tg_pt_gp() argument
1831 __target_detach_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *tg_pt_gp) __target_detach_tg_pt_gp() argument
1842 target_detach_tg_pt_gp(struct se_lun *lun) target_detach_tg_pt_gp() argument
1857 target_swap_tg_pt_gp(struct se_lun *lun, struct t10_alua_tg_pt_gp *old_tg_pt_gp, struct t10_alua_tg_pt_gp *new_tg_pt_gp) target_swap_tg_pt_gp() argument
1868 core_alua_show_tg_pt_gp_info(struct se_lun *lun, char *page) core_alua_show_tg_pt_gp_info() argument
1896 core_alua_store_tg_pt_gp_info( struct se_lun *lun, const char *page, size_t count) core_alua_store_tg_pt_gp_info() argument
2150 core_alua_show_offline_bit(struct se_lun *lun, char *page) core_alua_show_offline_bit() argument
2156 core_alua_store_offline_bit( struct se_lun *lun, const char *page, size_t count) core_alua_store_offline_bit() argument
2191 core_alua_show_secondary_status( struct se_lun *lun, char *page) core_alua_show_secondary_status() argument
2198 core_alua_store_secondary_status( struct se_lun *lun, const char *page, size_t count) core_alua_store_secondary_status() argument
2223 core_alua_show_secondary_write_metadata( struct se_lun *lun, char *page) core_alua_show_secondary_write_metadata() argument
2230 core_alua_store_secondary_write_metadata( struct se_lun *lun, const char *page, size_t count) core_alua_store_secondary_write_metadata() argument
[all...]
H A Dtarget_core_stat.c345 CONFIGFS_ATTR_RO(target_stat_lu_, lun);
423 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local
428 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show()
437 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local
442 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show()
451 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local
456 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show()
458 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); in target_stat_port_indx_show()
465 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local
470 dev = rcu_dereference(lun in target_stat_port_role_show()
480 struct se_lun *lun = to_stat_port(item); target_stat_port_busy_count_show() local
527 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_inst_show() local
542 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_dev_show() local
557 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_indx_show() local
572 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_name_show() local
590 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_port_index_show() local
608 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_in_cmds_show() local
624 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_write_mbytes_show() local
640 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_read_mbytes_show() local
656 struct se_lun *lun = to_stat_tgt_port(item); target_stat_tgt_port_hs_in_cmds_show() local
711 struct se_lun *lun = to_transport_stat(item); target_stat_transport_inst_show() local
726 struct se_lun *lun = to_transport_stat(item); target_stat_transport_device_show() local
745 struct se_lun *lun = to_transport_stat(item); target_stat_transport_indx_show() local
762 struct se_lun *lun = to_transport_stat(item); target_stat_transport_dev_name_show() local
785 struct se_lun *lun = to_transport_stat(item); target_stat_transport_proto_id_show() local
822 target_stat_setup_port_default_groups(struct se_lun *lun) target_stat_setup_port_default_groups() argument
[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()
221 if (lun->lun_tpg->tpg_rtpi != rtpi) in core_get_se_deve_from_rtpi()
288 struct se_lun *lun; in target_dev_ua_allocate() local
291 list_for_each_entry(lun, &dev->dev_sep_list, lun_dev_link) { in target_dev_ua_allocate()
293 spin_lock(&lun->lun_deve_lock); in target_dev_ua_allocate()
294 list_for_each_entry(se_deve, &lun->lun_deve_list, lun_link) in target_dev_ua_allocate()
296 spin_unlock(&lun->lun_deve_lock); in target_dev_ua_allocate()
318 struct se_lun *lun, in core_enable_device_list_for_node()
317 core_enable_device_list_for_node( struct se_lun *lun, struct se_lun_acl *lun_acl, u64 mapped_lun, bool lun_access_ro, struct se_node_acl *nacl, struct se_portal_group *tpg) core_enable_device_list_for_node() argument
400 core_disable_device_list_for_node( struct se_lun *lun, struct se_dev_entry *orig, struct se_node_acl *nacl, struct se_portal_group *tpg) core_disable_device_list_for_node() argument
457 core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) core_clear_lun_from_tpg() argument
508 core_dev_add_lun( struct se_portal_group *tpg, struct se_device *dev, struct se_lun *lun) core_dev_add_lun() argument
548 core_dev_del_lun( struct se_portal_group *tpg, struct se_lun *lun) core_dev_del_lun() argument
587 core_dev_add_initiator_node_lun_acl( struct se_portal_group *tpg, struct se_lun_acl *lacl, struct se_lun *lun, bool lun_access_ro) core_dev_add_initiator_node_lun_acl() argument
626 core_dev_del_initiator_node_lun_acl( struct se_lun *lun, struct se_lun_acl *lacl) core_dev_del_initiator_node_lun_acl() argument
[all...]
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
H A Dstorage_common.h18 #define VLDBG(lun, fmt, args...) do { } while (0)
21 #define _LMSG(func, lun, fmt, args...) \
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)
31 #define LERROR(lun, fm
[all...]
H A Df_mass_storage.c287 unsigned int lun; member
1679 unsigned int lun = common->cmnd[1] >> 5; in check_command() local
1744 if (common->lun != lun) in check_command()
1746 common->lun, lun); in check_command()
1765 DBG(common, "unsupported LUN %u\n", common->lun); in check_command()
2130 DBG(fsg, "non-meaningful CBW: lun = %u, flags = 0x%x, " in received_cbw()
2155 common->lun = cbw->Lun; in received_cbw()
2156 if (common->lun < ARRAY_SIZ in received_cbw()
2662 fsg_common_remove_lun(struct fsg_lun *lun) fsg_common_remove_lun() argument
2735 struct fsg_lun *lun = fsg_lun_from_dev(dev); fsg_lun_dev_is_visible() local
2758 struct fsg_lun *lun; fsg_common_create_lun() local
2893 struct fsg_lun *lun = common->luns[i]; fsg_common_release() local
3464 struct fsg_lun_config *lun; fsg_config_from_params() local
[all...]
/kernel/linux/linux-6.6/drivers/usb/gadget/function/
H A Dstorage_common.h18 #define VLDBG(lun, fmt, args...) do { } while (0)
21 #define _LMSG(func, lun, fmt, args...) \
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)
31 #define LERROR(lun, fm
[all...]
H A Df_mass_storage.c259 unsigned int lun; member
1728 unsigned int lun = common->cmnd[1] >> 5; in check_command() local
1793 if (common->lun != lun) in check_command()
1795 common->lun, lun); in check_command()
1814 DBG(common, "unsupported LUN %u\n", common->lun); in check_command()
2220 DBG(fsg, "non-meaningful CBW: lun = %u, flags = 0x%x, " in received_cbw()
2245 common->lun = cbw->Lun; in received_cbw()
2246 if (common->lun < ARRAY_SIZ in received_cbw()
2778 fsg_common_remove_lun(struct fsg_lun *lun) fsg_common_remove_lun() argument
2852 struct fsg_lun *lun = fsg_lun_from_dev(dev); fsg_lun_dev_is_visible() local
2875 struct fsg_lun *lun; fsg_common_create_lun() local
3006 struct fsg_lun *lun = common->luns[i]; fsg_common_release() local
3590 struct fsg_lun_config *lun; fsg_config_from_params() local
[all...]
/kernel/linux/linux-5.10/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()
92 * @lun: integer to be reverted
97 * an 8-byte lun value into an int. This routine unpacks the int
98 * back into the lun value.
105 void int_to_scsilun(u64 lun, struc argument
[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 in virtscsi_handle_param_change() local
[all...]
H A Dscsi_scan.c204 * @lun: which lun
209 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and
216 u64 lun, void *hostdata) in scsi_alloc_sdev()
233 sdev->lun = lun; in scsi_alloc_sdev()
554 * Probe the lun associated with @req using a standard SCSI INQUIRY;
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()
1025 * @lun
215 scsi_alloc_sdev(struct scsi_target *starget, u64 lun, void *hostdata) scsi_alloc_sdev() argument
1043 scsi_probe_and_add_lun(struct scsi_target *starget, u64 lun, blist_flags_t *bflagsp, struct scsi_device **sdevp, enum scsi_scan_mode rescan, void *hostdata) scsi_probe_and_add_lun() argument
1201 u64 sparse_lun, lun; scsi_sequential_lun_scan() local
1293 u64 lun; scsi_report_lun_scan() local
1459 __scsi_add_device(struct Scsi_Host *shost, uint channel, uint id, u64 lun, void *hostdata) __scsi_add_device() argument
1495 scsi_add_device(struct Scsi_Host *host, uint channel, uint target, u64 lun) scsi_add_device() argument
1530 __scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) __scsi_scan_target() argument
1601 scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) scsi_scan_target() argument
1625 scsi_scan_channel(struct Scsi_Host *shost, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) scsi_scan_channel() argument
1657 scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) scsi_scan_host_selected() argument
[all...]
/kernel/linux/linux-6.6/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()
144 * @lun: integer to be reverted
149 * an 8-byte lun value into an int. This routine unpacks the int
150 * back into the lun value.
157 void int_to_scsilun(u64 lun, struc argument
[all...]
H A Dsd_trace.h27 __field( unsigned int, lun )
36 __entry->lun = cmnd->device->lun;
41 TP_printk("host_no=%u, channel=%u id=%u lun=%u lba=%llu wp_offset=%u",
43 __entry->lun, __entry->lba, __entry->wp_offset)
57 __field( unsigned int, lun )
67 __entry->lun = cmnd->device->lun;
73 TP_printk("host_no=%u, channel=%u id=%u lun=%u rq_sector=%llu" \
76 __entry->lun, __entr
[all...]
H A Dvirtio_scsi.c281 unsigned int target = event->lun[1]; in virtscsi_handle_transport_reset()
282 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()
290 scsi_add_device(shost, 0, target, lun); in virtscsi_handle_transport_reset()
294 sdev = scsi_device_lookup(shost, 0, target, lun); in virtscsi_handle_transport_reset()
300 shost->host_no, target, lun); in virtscsi_handle_transport_reset()
313 unsigned int target = event->lun[1]; in virtscsi_handle_param_change()
314 unsigned int lun in virtscsi_handle_param_change() local
[all...]
H A Dscsi_scan.c267 * @lun: which lun
272 * Stores the @shost, @channel, @id, and @lun in the scsi_Device, and
279 u64 lun, void *hostdata) in scsi_alloc_sdev()
298 sdev->lun = lun; in scsi_alloc_sdev()
637 * Probe the lun associated with @req using a standard SCSI INQUIRY;
916 if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) { in scsi_add_lun()
919 __func__, sdev->type, (unsigned int)sdev->lun); in scsi_add_lun()
1136 * @lun
278 scsi_alloc_sdev(struct scsi_target *starget, u64 lun, void *hostdata) scsi_alloc_sdev() argument
1154 scsi_probe_and_add_lun(struct scsi_target *starget, u64 lun, blist_flags_t *bflagsp, struct scsi_device **sdevp, enum scsi_scan_mode rescan, void *hostdata) scsi_probe_and_add_lun() argument
1311 u64 sparse_lun, lun; scsi_sequential_lun_scan() local
1403 u64 lun; scsi_report_lun_scan() local
1572 __scsi_add_device(struct Scsi_Host *shost, uint channel, uint id, u64 lun, void *hostdata) __scsi_add_device() argument
1609 scsi_add_device(struct Scsi_Host *host, uint channel, uint target, u64 lun) scsi_add_device() argument
1662 __scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) __scsi_scan_target() argument
1733 scsi_scan_target(struct device *parent, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) scsi_scan_target() argument
1757 scsi_scan_channel(struct Scsi_Host *shost, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) scsi_scan_channel() argument
1789 scsi_scan_host_selected(struct Scsi_Host *shost, unsigned int channel, unsigned int id, u64 lun, enum scsi_scan_mode rescan) scsi_scan_host_selected() argument
[all...]
/kernel/linux/linux-6.6/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()
146 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); 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()
389 sas_queue_reset(struct domain_device *dev, int reset_type, u64 lun) sas_queue_reset() argument
460 struct scsi_lun lun; sas_eh_device_reset_handler() local
1094 sas_execute_ssp_tmf(struct domain_device *device, u8 *lun, struct sas_tmf_task *tmf) sas_execute_ssp_tmf() argument
1107 sas_abort_task_set(struct domain_device *dev, u8 *lun) sas_abort_task_set() argument
1117 sas_clear_task_set(struct domain_device *dev, u8 *lun) sas_clear_task_set() argument
1127 sas_lu_reset(struct domain_device *dev, u8 *lun) sas_lu_reset() argument
1145 struct scsi_lun lun; sas_query_task() local
1161 struct scsi_lun lun; sas_abort_task() local
[all...]
/kernel/linux/linux-5.10/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()
544 * @lun: pointer to u8[8] which is the LUN
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
647 asd_clear_aca(struct domain_device *dev, u8 *lun) asd_clear_aca() argument
656 asd_clear_task_set(struct domain_device *dev, u8 *lun) asd_clear_task_set() argument
665 asd_lu_reset(struct domain_device *dev, u8 *lun) asd_lu_reset() argument
[all...]

Completed in 35 milliseconds

12345678910>>...25