/Linux-v5.4/drivers/usb/gadget/function/ |
D | f_mass_storage.h | 17 unsigned int luns; /* nluns */ member 43 _FSG_MODULE_PARAM(prefix, params, luns, uint, \ 98 struct fsg_lun_config luns[FSG_MAX_LUNS]; member
|
D | f_mass_storage.c | 287 struct fsg_lun *luns[FSG_MAX_LUNS]; member 478 int i = ARRAY_SIZE(common->luns) - 1; in _fsg_common_get_max_lun() 480 while (i >= 0 && !common->luns[i]) in _fsg_common_get_max_lun() 2111 if (cbw->Lun >= ARRAY_SIZE(common->luns) || in received_cbw() 2140 if (common->lun < ARRAY_SIZE(common->luns)) in received_cbw() 2141 common->curlun = common->luns[common->lun]; in received_cbw() 2282 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) in do_set_interface() 2283 if (common->luns[i]) in do_set_interface() 2284 common->luns[i]->unit_attention_data = in do_set_interface() 2376 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) { in handle_exception() [all …]
|
D | f_tcm.c | 426 int luns; in usbg_bot_setup() local 439 luns = atomic_read(&fu->tpg->tpg_port_count); in usbg_bot_setup() 440 if (!luns) { in usbg_bot_setup() 448 luns--; in usbg_bot_setup() 449 if (luns > 0xf) { in usbg_bot_setup() 451 luns = 0xf; in usbg_bot_setup() 454 *ret_lun = luns; in usbg_bot_setup()
|
/Linux-v5.4/drivers/lightnvm/ |
D | core.c | 128 kfree(tgt_dev->luns); in nvm_remove_tgt_dev() 139 struct ppa_addr *luns; in nvm_create_tgt_dev() local 161 luns = kcalloc(num_lun, sizeof(struct ppa_addr), GFP_KERNEL); in nvm_create_tgt_dev() 162 if (!luns) in nvm_create_tgt_dev() 186 luns[lunid].ppa = 0; in nvm_create_tgt_dev() 187 luns[lunid].a.ch = i; in nvm_create_tgt_dev() 188 luns[lunid++].a.lun = j; in nvm_create_tgt_dev() 223 tgt_dev->luns = luns; in nvm_create_tgt_dev() 230 kfree(luns); in nvm_create_tgt_dev()
|
D | pblk-init.c | 582 kfree(pblk->luns); in pblk_lines_free() 599 pblk->luns = kcalloc(geo->all_luns, sizeof(struct pblk_lun), in pblk_luns_init() 601 if (!pblk->luns) in pblk_luns_init() 610 rlun = &pblk->luns[i]; in pblk_luns_init() 611 rlun->bppa = dev->luns[lunid]; in pblk_luns_init() 713 struct pblk_lun *rlun = &pblk->luns[i]; in pblk_setup_line_meta_chk() 1060 kfree(pblk->luns); in pblk_lines_init()
|
D | pblk-map.c | 205 *erase_ppa = pblk->luns[bit].bppa; /* set ch and lun */ in pblk_map_erase_rq()
|
D | pblk.h | 598 struct pblk_lun *luns; member 995 int secs, chnls, luns; in addr_to_gen_ppa() local 1007 paddr = div_u64_rem(paddr, uaddrf->lun_stripe, &luns); in addr_to_gen_ppa() 1008 ppa.m.pu = luns; in addr_to_gen_ppa()
|
D | pblk-core.c | 901 ppa = pblk->luns[bit].bppa; /* set ch and lun */ in pblk_line_erase() 1142 struct pblk_lun *rlun = &pblk->luns[i]; in pblk_prepare_new_line() 1773 struct pblk_lun *rlun = &pblk->luns[i]; in pblk_line_close() 1883 struct pblk_lun *rlun = &pblk->luns[pos]; in __pblk_down_chunk() 1929 rlun = &pblk->luns[pos]; in pblk_up_chunk() 1942 rlun = &pblk->luns[bit]; in pblk_up_rq()
|
D | pblk-recovery.c | 311 rlun = &pblk->luns[index]; in pblk_get_stripe_chunk() 628 bppa = pblk->luns[smeta_blk].bppa; in pblk_line_was_written()
|
D | pblk-sysfs.c | 35 rlun = &pblk->luns[i]; in pblk_sysfs_luns_show()
|
/Linux-v5.4/drivers/scsi/cxlflash/ |
D | superpipe.h | 105 struct list_head luns; /* LUNs attached to this context */ member
|
D | superpipe.c | 219 list_for_each_entry(lun_access, &ctxi->luns, list) in get_context() 757 WARN_ON(!list_empty(&ctxi->luns)); in destroy_context() 843 INIT_LIST_HEAD(&ctxi->luns); in init_context() 936 list_for_each_entry_safe(lun_access, t, &ctxi->luns, list) in _cxlflash_disk_detach() 1028 list_for_each_entry_safe(lun_access, t, &ctxi->luns, list) in cxlflash_cxl_release() 1370 list_for_each_entry(lun_access, &ctxi->luns, list) in cxlflash_disk_attach() 1400 list_add(&lun_access->list, &ctxi->luns); in cxlflash_disk_attach() 1459 list_add(&lun_access->list, &ctxi->luns); in cxlflash_disk_attach()
|
D | vlun.c | 1247 list_for_each_entry(lun_access_src, &ctxi_src->luns, list) { in cxlflash_disk_clone() 1249 list_for_each_entry(lun_access_dst, &ctxi_dst->luns, list) in cxlflash_disk_clone() 1322 list_splice(&sidecar, &ctxi_dst->luns); in cxlflash_disk_clone()
|
/Linux-v5.4/Documentation/usb/ |
D | mass-storage.rst | 43 be silently ignored. See also “luns” parameter. 123 - luns=N 130 in “file” argument is greater then the value of “luns”, all excess
|
D | gadget-testing.rst | 316 created by default. A maximum of 8 luns can be specified and they all must be 318 Probably a good convention is to name the luns "lun.<number>",
|
/Linux-v5.4/drivers/scsi/lpfc/ |
D | lpfc_mem.c | 266 while (!list_empty(&phba->luns)) { in lpfc_mem_free() 267 device_data = list_first_entry(&phba->luns, in lpfc_mem_free()
|
D | lpfc_scsi.c | 5517 &phba->luns, in lpfc_slave_alloc() 5532 list_add_tail(&device_data->listentry, &phba->luns); in lpfc_slave_alloc() 5822 list_for_each_entry(lun_info, &phba->luns, listentry) { in lpfc_find_next_oas_lun() 5903 lun_info = __lpfc_get_device_data(phba, &phba->luns, vport_wwpn, in lpfc_enable_oas_lun() 5920 list_add_tail(&lun_info->listentry, &phba->luns); in lpfc_enable_oas_lun() 5963 &phba->luns, vport_wwpn, in lpfc_disable_oas_lun()
|
D | lpfc.h | 1156 struct list_head luns; member
|
/Linux-v5.4/drivers/usb/gadget/legacy/ |
D | nokia.c | 36 .luns = 2,
|
/Linux-v5.4/Documentation/scsi/ |
D | sym53c8xx_2.txt | 250 - target 2 all luns on controller 0 --> 15 251 - target 3 all luns on controller 0 --> 15 252 - target 4 all luns on controller 0 --> 7 896 0x00000100 - scan luns 996 | | ---------------------------------- scan luns 0 - off
|
D | aic79xx.txt | 78 - Correct non-zero luns on Rev B. hardware. 408 manually probing non-contiguous luns.
|
D | ncr53c8xx.txt | 279 - target 2 all luns on controller 0 --> 15 280 - target 3 all luns on controller 0 --> 15 281 - target 4 all luns on controller 0 --> 7 1649 0x00000100 - scan luns 1749 | | ---------------------------------- scan luns 0 - off
|
D | ChangeLog.lpfc | 15 * Fix for issue where not all luns are seen. Search all lists 17 to luns on nodes in NPR or other relevant states (PLOGI, 477 midlayer to mark report luns as failing even though it 575 * Fix array discovery with multiple luns. The max_luns was 0 at
|
/Linux-v5.4/include/linux/ |
D | lightnvm.h | 405 struct ppa_addr *luns; member
|
/Linux-v5.4/drivers/scsi/aacraid/ |
D | aachba.c | 1895 int luns; in aac_free_safw_all_identify_resp() local 1900 luns = aac_get_safw_phys_lun_count(dev); in aac_free_safw_all_identify_resp() 1902 if (luns < lun_count) in aac_free_safw_all_identify_resp() 1903 lun_count = luns; in aac_free_safw_all_identify_resp() 1905 lun_count = luns; in aac_free_safw_all_identify_resp()
|