/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A D | f_mass_storage.c | 59 * luns An array of LUN configuration values. This 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[ in do_set_interface() [all...] |
H A 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
|
H A 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() 450 pr_info_once("Limiting the number of luns to 16\n"); in usbg_bot_setup() 451 luns = 0xf; in usbg_bot_setup() 454 *ret_lun = luns; in usbg_bot_setup()
|
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_mass_storage.c | 29 * luns An array of LUN configuration values. This 260 struct fsg_lun *luns[FSG_MAX_LUNS]; member 449 int i = ARRAY_SIZE(common->luns) - 1; in _fsg_common_get_max_lun() 451 while (i >= 0 && !common->luns[i]) in _fsg_common_get_max_lun() 2217 if (cbw->Lun >= ARRAY_SIZE(common->luns) || in received_cbw() 2246 if (common->lun < ARRAY_SIZE(common->luns)) in received_cbw() 2247 common->curlun = common->luns[common->lun]; in received_cbw() 2388 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) in do_set_interface() 2389 if (common->luns[i]) in do_set_interface() 2390 common->luns[ in do_set_interface() [all...] |
H A 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
|
H A 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() 450 pr_info_once("Limiting the number of luns to 16\n"); in usbg_bot_setup() 451 luns = 0xf; in usbg_bot_setup() 454 *ret_lun = luns; in usbg_bot_setup()
|
/kernel/linux/linux-5.10/drivers/lightnvm/ |
H A 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() [all...] |
H A 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() 1257 pblk_info(pblk, "luns:%u, lines:%d, secs:%llu, buf entries:%u\n", in pblk_init()
|
H A D | pblk-map.c | 205 *erase_ppa = pblk->luns[bit].bppa; /* set ch and lun */ in pblk_map_erase_rq()
|
H A 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()
|
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/ |
H A D | superpipe.h | 105 struct list_head luns; /* LUNs attached to this context */ member
|
H A 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()
|
H A 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()
|
/kernel/linux/linux-6.6/drivers/scsi/cxlflash/ |
H A D | superpipe.h | 105 struct list_head luns; /* LUNs attached to this context */ member
|
H A 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()
|
H A 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()
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
H A 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()
|
H A D | lpfc_scsi.c | 5535 &phba->luns, in lpfc_slave_alloc() 5550 list_add_tail(&device_data->listentry, &phba->luns); in lpfc_slave_alloc() 5795 * This routine searches the luns list for the specified lun 5840 list_for_each_entry(lun_info, &phba->luns, listentry) { in lpfc_find_next_oas_lun() 5900 * indicates the lun is not available and add to the list of luns. 5921 lun_info = __lpfc_get_device_data(phba, &phba->luns, vport_wwpn, in lpfc_enable_oas_lun() 5931 /* Create an lun info structure and add to list of luns */ 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()
|
/kernel/linux/linux-6.6/drivers/scsi/lpfc/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/ |
H A D | nokia.c | 36 .luns = 2,
|
/kernel/linux/linux-6.6/drivers/usb/gadget/legacy/ |
H A D | nokia.c | 36 .luns = 2,
|
/kernel/linux/linux-6.6/drivers/scsi/aacraid/ |
H A D | aachba.c | 1908 int luns; in aac_free_safw_all_identify_resp() local 1913 luns = aac_get_safw_phys_lun_count(dev); in aac_free_safw_all_identify_resp() 1915 if (luns < lun_count) in aac_free_safw_all_identify_resp() 1916 lun_count = luns; in aac_free_safw_all_identify_resp() 1918 lun_count = luns; in aac_free_safw_all_identify_resp()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | lightnvm.h | 405 struct ppa_addr *luns; member
|