Home
last modified time | relevance | path

Searched refs:luns (Results 1 – 23 of 23) sorted by relevance

/linux-4.4.14/drivers/lightnvm/
Dgennvm.h41 struct gen_lun *luns; member
45 for ((i) = 0, lun = &(bm)->luns[0]; \
46 (i) < (bm)->nr_luns; (i)++, lun = &(bm)->luns[(i)])
Drrpc.c26 for ((i) = 0, rlun = &(rrpc)->luns[0]; \
27 (i) < (rrpc)->nr_luns; (i)++, rlun = &(rrpc)->luns[(i)])
130 int secs, pgs, blks, luns; in linear_to_generic_addr() local
147 div_u64_rem(ppa, dev->luns_per_chnl, &luns); in linear_to_generic_addr()
148 l.g.lun = luns; in linear_to_generic_addr()
211 rlun = &rrpc->luns[i]; in rrpc_put_blks()
223 return &rrpc->luns[next % rrpc->nr_luns]; in get_next_lun()
232 rlun = &rrpc->luns[i]; in rrpc_gc_kick()
469 struct rrpc_lun *rlun = &rrpc->luns[lun->id - rrpc->lun_offset]; in rrpc_gc_queue()
495 max_free = &rrpc->luns[0]; in rrpc_get_lun_rr()
[all …]
Dgennvm.c40 kfree(gn->luns); in gennvm_luns_free()
48 gn->luns = kcalloc(dev->nr_luns, sizeof(struct gen_lun), GFP_KERNEL); in gennvm_luns_init()
49 if (!gn->luns) in gennvm_luns_init()
78 lun = &gn->luns[(dev->luns_per_chnl * ppa.g.ch) + ppa.g.lun]; in gennvm_block_bb()
130 lun = &gn->luns[lun_id]; in gennvm_block_map()
375 lun = &gn->luns[ppa->g.lun * ppa->g.ch]; in gennvm_blk_set_type()
470 return &gn->luns[lunid].vlun; in gennvm_get_lun()
Drrpc.h93 struct rrpc_lun *luns; member
/linux-4.4.14/drivers/usb/gadget/function/
Df_mass_storage.h16 unsigned int luns; /* nluns */ member
42 _FSG_MODULE_PARAM(prefix, params, luns, uint, \
107 struct fsg_lun_config luns[FSG_MAX_LUNS]; member
Df_mass_storage.c283 struct fsg_lun *luns[FSG_MAX_LUNS]; member
494 int i = ARRAY_SIZE(common->luns) - 1; in _fsg_common_get_max_lun()
496 while (i >= 0 && !common->luns[i]) in _fsg_common_get_max_lun()
2143 if (cbw->Lun >= ARRAY_SIZE(common->luns) || in received_cbw()
2172 if (common->lun < ARRAY_SIZE(common->luns)) in received_cbw()
2173 common->curlun = common->luns[common->lun]; in received_cbw()
2318 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) in do_set_interface()
2319 if (common->luns[i]) in do_set_interface()
2320 common->luns[i]->unit_attention_data = in do_set_interface()
2418 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) { in handle_exception()
[all …]
/linux-4.4.14/drivers/scsi/cxlflash/
Dsuperpipe.c207 list_for_each_entry(lun_access, &ctxi->luns, list) in get_context()
726 WARN_ON(!list_empty(&ctxi->luns)); in destroy_context()
793 INIT_LIST_HEAD(&ctxi->luns); in create_context()
867 list_for_each_entry_safe(lun_access, t, &ctxi->luns, list) in _cxlflash_disk_detach()
876 if (list_empty(&ctxi->luns)) { in _cxlflash_disk_detach()
1000 list_for_each_entry_safe(lun_access, t, &ctxi->luns, list) in cxlflash_cxl_release()
1340 list_for_each_entry(lun_access, &ctxi->luns, list) in cxlflash_disk_attach()
1369 list_add(&lun_access->list, &ctxi->luns); in cxlflash_disk_attach()
1429 list_add(&lun_access->list, &ctxi->luns); in cxlflash_disk_attach()
Dsuperpipe.h109 struct list_head luns; /* LUNs attached to this context */ member
Dvlun.c1182 list_for_each_entry(lun_access_src, &ctxi_src->luns, list) { in cxlflash_disk_clone()
1184 list_for_each_entry(lun_access_dst, &ctxi_dst->luns, list) in cxlflash_disk_clone()
1257 list_splice(&sidecar, &ctxi_dst->luns); in cxlflash_disk_clone()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_mem.c267 while (!list_empty(&phba->luns)) { in lpfc_mem_free()
268 device_data = list_first_entry(&phba->luns, in lpfc_mem_free()
Dlpfc_scsi.c5449 &phba->luns, in lpfc_slave_alloc()
5462 list_add_tail(&device_data->listentry, &phba->luns); in lpfc_slave_alloc()
5744 list_for_each_entry(lun_info, &phba->luns, listentry) { in lpfc_find_next_oas_lun()
5824 lun_info = __lpfc_get_device_data(phba, &phba->luns, vport_wwpn, in lpfc_enable_oas_lun()
5839 list_add_tail(&lun_info->listentry, &phba->luns); in lpfc_enable_oas_lun()
5882 &phba->luns, vport_wwpn, in lpfc_disable_oas_lun()
Dlpfc.h997 struct list_head luns; member
Dlpfc_init.c5672 INIT_LIST_HEAD(&phba->luns); in lpfc_setup_driver_resource_phase1()
/linux-4.4.14/Documentation/usb/
Dmass-storage.txt37 be silently ignored. See also “luns” parameter.
117 - luns=N
124 in “file” argument is greater then the value of “luns”, all excess
Dgadget-testing.txt268 created by default. A maximum of 8 luns can be specified and they all must be
270 Probably a good convention is to name the luns "lun.<number>",
/linux-4.4.14/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c431 int luns; in usbg_bot_setup() local
444 luns = atomic_read(&fu->tpg->tpg_port_count); in usbg_bot_setup()
445 if (!luns) { in usbg_bot_setup()
453 luns--; in usbg_bot_setup()
454 if (luns > 0xf) { in usbg_bot_setup()
456 luns = 0xf; in usbg_bot_setup()
459 *ret_lun = luns; in usbg_bot_setup()
Dnokia.c39 .luns = 2,
/linux-4.4.14/Documentation/scsi/
Dsym53c8xx_2.txt250 - 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
Daic79xx.txt78 - Correct non-zero luns on Rev B. hardware.
408 manually probing non-contiguous luns.
Dncr53c8xx.txt279 - 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
DChangeLog.lpfc15 * 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-4.4.14/Documentation/DocBook/
Dlibata.xml.db154 API-ata-scsiop-report-luns
/linux-4.4.14/Documentation/
Dkernel-parameters.txt3931 j = NO_REPORT_LUNS (don't use report luns