/drivers/usb/gadget/function/ |
D | f_mass_storage.c | 288 struct fsg_lun *luns[FSG_MAX_LUNS]; member 479 int i = ARRAY_SIZE(common->luns) - 1; in _fsg_common_get_max_lun() 481 while (i >= 0 && !common->luns[i]) in _fsg_common_get_max_lun() 2127 if (cbw->Lun >= ARRAY_SIZE(common->luns) || in received_cbw() 2156 if (common->lun < ARRAY_SIZE(common->luns)) in received_cbw() 2157 common->curlun = common->luns[common->lun]; in received_cbw() 2298 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) in do_set_interface() 2299 if (common->luns[i]) in do_set_interface() 2300 common->luns[i]->unit_attention_data = in do_set_interface() 2402 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) { in handle_exception() [all …]
|
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_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()
|
/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 | 587 kfree(pblk->luns); in pblk_lines_free() 604 pblk->luns = kcalloc(geo->all_luns, sizeof(struct pblk_lun), in pblk_luns_init() 606 if (!pblk->luns) in pblk_luns_init() 615 rlun = &pblk->luns[i]; in pblk_luns_init() 616 rlun->bppa = dev->luns[lunid]; in pblk_luns_init() 718 struct pblk_lun *rlun = &pblk->luns[i]; in pblk_setup_line_meta_chk() 1065 kfree(pblk->luns); in pblk_lines_init()
|
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-map.c | 205 *erase_ppa = pblk->luns[bit].bppa; /* set ch and lun */ in pblk_map_erase_rq()
|
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()
|
/drivers/scsi/cxlflash/ |
D | superpipe.c | 219 list_for_each_entry(lun_access, &ctxi->luns, list) in get_context() 756 WARN_ON(!list_empty(&ctxi->luns)); in destroy_context() 842 INIT_LIST_HEAD(&ctxi->luns); in init_context() 935 list_for_each_entry_safe(lun_access, t, &ctxi->luns, list) in _cxlflash_disk_detach() 1027 list_for_each_entry_safe(lun_access, t, &ctxi->luns, list) in cxlflash_cxl_release() 1369 list_for_each_entry(lun_access, &ctxi->luns, list) in cxlflash_disk_attach() 1399 list_add(&lun_access->list, &ctxi->luns); in cxlflash_disk_attach() 1458 list_add(&lun_access->list, &ctxi->luns); in cxlflash_disk_attach()
|
D | superpipe.h | 105 struct list_head luns; /* LUNs attached to this context */ member
|
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()
|
/drivers/scsi/lpfc/ |
D | lpfc_mem.c | 262 while (!list_empty(&phba->luns)) { in lpfc_mem_free() 263 device_data = list_first_entry(&phba->luns, in lpfc_mem_free()
|
D | lpfc_scsi.c | 5535 &phba->luns, in lpfc_slave_alloc() 5550 list_add_tail(&device_data->listentry, &phba->luns); in lpfc_slave_alloc() 5840 list_for_each_entry(lun_info, &phba->luns, listentry) { in lpfc_find_next_oas_lun() 5921 lun_info = __lpfc_get_device_data(phba, &phba->luns, vport_wwpn, in lpfc_enable_oas_lun() 5938 list_add_tail(&lun_info->listentry, &phba->luns); in lpfc_enable_oas_lun() 5981 &phba->luns, vport_wwpn, in lpfc_disable_oas_lun()
|
D | lpfc.h | 1191 struct list_head luns; member
|
D | lpfc_init.c | 6342 INIT_LIST_HEAD(&phba->luns); in lpfc_setup_driver_resource_phase1()
|
/drivers/usb/gadget/legacy/ |
D | nokia.c | 36 .luns = 2,
|
/drivers/scsi/aacraid/ |
D | aachba.c | 1900 int luns; in aac_free_safw_all_identify_resp() local 1905 luns = aac_get_safw_phys_lun_count(dev); in aac_free_safw_all_identify_resp() 1907 if (luns < lun_count) in aac_free_safw_all_identify_resp() 1908 lun_count = luns; in aac_free_safw_all_identify_resp() 1910 lun_count = luns; in aac_free_safw_all_identify_resp()
|