Searched refs:luns (Results 1 - 50 of 50) sorted by relevance

/linux-4.4.14/drivers/lightnvm/
H A Dgennvm.h41 struct gen_lun *luns; member in struct:gen_nvm
45 for ((i) = 0, lun = &(bm)->luns[0]; \
46 (i) < (bm)->nr_luns; (i)++, lun = &(bm)->luns[(i)])
H A 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; linear_to_generic_addr() local
147 div_u64_rem(ppa, dev->luns_per_chnl, &luns); linear_to_generic_addr()
148 l.g.lun = luns; linear_to_generic_addr()
211 rlun = &rrpc->luns[i]; rrpc_put_blks()
223 return &rrpc->luns[next % rrpc->nr_luns]; get_next_lun()
232 rlun = &rrpc->luns[i]; rrpc_gc_kick()
469 struct rrpc_lun *rlun = &rrpc->luns[lun->id - rrpc->lun_offset]; rrpc_gc_queue()
493 * sure that we maintain evenness between the block luns. rrpc_get_lun_rr()
495 max_free = &rrpc->luns[0]; rrpc_get_lun_rr()
919 if (!rrpc->luns) rrpc_gc_free()
923 rlun = &rrpc->luns[i]; rrpc_gc_free()
1084 kfree(rrpc->luns); rrpc_luns_free()
1095 rrpc->luns = kcalloc(rrpc->nr_luns, sizeof(struct rrpc_lun), rrpc_luns_init()
1097 if (!rrpc->luns) rrpc_luns_init()
1110 rlun = &rrpc->luns[i]; rrpc_luns_init()
1218 rlun = &rrpc->luns[lun_iter]; rrpc_blocks_init()
1237 rlun = &rrpc->luns[i]; rrpc_luns_configure()
1293 pr_err("nvm: rrpc: could not initialize luns\n"); rrpc_init()
1334 pr_info("nvm: rrpc initialized with %u luns and %llu pages.\n", rrpc_init()
H A Dgennvm.c40 kfree(gn->luns); gennvm_luns_free()
48 gn->luns = kcalloc(dev->nr_luns, sizeof(struct gen_lun), GFP_KERNEL); gennvm_luns_init()
49 if (!gn->luns) gennvm_luns_init()
78 lun = &gn->luns[(dev->luns_per_chnl * ppa.g.ch) + ppa.g.lun]; gennvm_block_bb()
130 lun = &gn->luns[lun_id]; gennvm_block_map()
235 pr_err("gennvm: could not initialize luns\n"); gennvm_register()
375 lun = &gn->luns[ppa->g.lun * ppa->g.ch]; gennvm_blk_set_type()
470 return &gn->luns[lunid].vlun; gennvm_get_lun()
H A Drrpc.h93 struct rrpc_lun *luns; member in struct:rrpc
/linux-4.4.14/drivers/usb/gadget/function/
H A Df_mass_storage.h16 unsigned int luns; /* nluns */ member in struct:fsg_module_parameters
42 _FSG_MODULE_PARAM(prefix, params, luns, uint, \
107 struct fsg_lun_config luns[FSG_MAX_LUNS]; member in struct:fsg_config
H A Df_mass_storage.c58 * luns An array of LUN configuration values. This
283 struct fsg_lun *luns[FSG_MAX_LUNS]; member in struct:fsg_common
494 int i = ARRAY_SIZE(common->luns) - 1; _fsg_common_get_max_lun()
496 while (i >= 0 && !common->luns[i]) _fsg_common_get_max_lun()
2143 if (cbw->Lun >= ARRAY_SIZE(common->luns) || received_cbw()
2172 if (common->lun < ARRAY_SIZE(common->luns)) received_cbw()
2173 common->curlun = common->luns[common->lun]; received_cbw()
2318 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) do_set_interface()
2319 if (common->luns[i]) do_set_interface()
2320 common->luns[i]->unit_attention_data = do_set_interface()
2418 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) { handle_exception()
2419 curlun = common->luns[i]; handle_exception()
2462 /* for (i = 0; i < common->ARRAY_SIZE(common->luns); ++i) */ handle_exception()
2463 /* if (common->luns[i]) */ handle_exception()
2464 /* common->luns[i]->unit_attention_data = */ handle_exception()
2564 for (i = 0; i < ARRAY_SIZE(common->luns); --i) { fsg_main_thread()
2565 struct fsg_lun *curlun = common->luns[i]; fsg_main_thread()
2686 memset(common->luns, 0, sizeof(common->luns)); fsg_common_setup()
2767 if (common->luns[i]) { _fsg_common_remove_luns()
2768 fsg_common_remove_lun(common->luns[i]); _fsg_common_remove_luns()
2769 common->luns[i] = NULL; _fsg_common_remove_luns()
2775 _fsg_common_remove_luns(common, ARRAY_SIZE(common->luns)); fsg_common_remove_luns()
2860 if (id >= ARRAY_SIZE(common->luns)) fsg_common_create_lun()
2863 if (common->luns[id]) fsg_common_create_lun()
2901 common->luns[id] = lun; fsg_common_create_lun()
2932 common->luns[id] = NULL; fsg_common_create_lun()
2948 rc = fsg_common_create_lun(common, &cfg->luns[i], i, buf, NULL); fsg_common_create_luns()
2973 pn ?: ((*common->luns)->cdrom fsg_common_set_inquiry_string()
2992 for (i = 0; i < ARRAY_SIZE(common->luns); ++i) { fsg_common_release()
2993 struct fsg_lun *lun = common->luns[i]; fsg_common_release()
3269 if (fsg_opts->refcnt || fsg_opts->common->luns[num]) { fsg_lun_make()
3289 opts->lun = fsg_opts->common->luns[num]; fsg_lun_make()
3318 fsg_opts->common->luns[lun_opts->lun_id] = NULL; fsg_lun_drop()
3479 opts->lun0.lun = opts->common->luns[0]; fsg_alloc_inst()
3554 min(params->luns ?: (params->file_count ?: 1u), fsg_config_from_params()
3556 for (i = 0, lun = cfg->luns; i < cfg->nluns; ++i, ++lun) { fsg_config_from_params()
/linux-4.4.14/drivers/scsi/snic/
H A Dsnic_res.c104 SNIC_INFO("vNIC flags 0x%x luns per tgt %d\n", snic_get_vnic_config()
/linux-4.4.14/drivers/scsi/cxlflash/
H A Dsuperpipe.h109 struct list_head luns; /* LUNs attached to this context */ member in struct:ctx_info
H A Dsuperpipe.c207 list_for_each_entry(lun_access, &ctxi->luns, list) get_context()
726 WARN_ON(!list_empty(&ctxi->luns)); destroy_context()
793 INIT_LIST_HEAD(&ctxi->luns); create_context()
867 list_for_each_entry_safe(lun_access, t, &ctxi->luns, list) _cxlflash_disk_detach()
876 if (list_empty(&ctxi->luns)) { _cxlflash_disk_detach()
1000 list_for_each_entry_safe(lun_access, t, &ctxi->luns, list) cxlflash_cxl_release()
1340 list_for_each_entry(lun_access, &ctxi->luns, list) cxlflash_disk_attach()
1369 list_add(&lun_access->list, &ctxi->luns); cxlflash_disk_attach()
1429 list_add(&lun_access->list, &ctxi->luns); cxlflash_disk_attach()
H A Dvlun.c1182 list_for_each_entry(lun_access_src, &ctxi_src->luns, list) { cxlflash_disk_clone()
1184 list_for_each_entry(lun_access_dst, &ctxi_dst->luns, list) cxlflash_disk_clone()
1257 list_splice(&sidecar, &ctxi_dst->luns); cxlflash_disk_clone()
/linux-4.4.14/drivers/usb/gadget/legacy/
H A Dtcm_usb_gadget.c431 int luns; usbg_bot_setup() local
444 luns = atomic_read(&fu->tpg->tpg_port_count); usbg_bot_setup()
445 if (!luns) { usbg_bot_setup()
453 luns--; usbg_bot_setup()
454 if (luns > 0xf) { usbg_bot_setup()
455 pr_info_once("Limiting the number of luns to 16\n"); usbg_bot_setup()
456 luns = 0xf; usbg_bot_setup()
459 *ret_lun = luns; usbg_bot_setup()
H A Dnokia.c39 .luns = 2,
/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_mem.c267 while (!list_empty(&phba->luns)) { lpfc_mem_free()
268 device_data = list_first_entry(&phba->luns, lpfc_mem_free()
H A Dlpfc.h995 spinlock_t devicelock; /* lock for luns list */
997 struct list_head luns; member in struct:lpfc_hba
H A Dlpfc_scsi.c5449 &phba->luns, lpfc_slave_alloc()
5462 list_add_tail(&device_data->listentry, &phba->luns); lpfc_slave_alloc()
5700 * This routine searches the luns list for the specified lun
5744 list_for_each_entry(lun_info, &phba->luns, listentry) { lpfc_find_next_oas_lun()
5803 * indicates the lun is not available and add to the list of luns.
5824 lun_info = __lpfc_get_device_data(phba, &phba->luns, vport_wwpn, lpfc_enable_oas_lun()
5833 /* Create an lun info structure and add to list of luns */ lpfc_enable_oas_lun()
5839 list_add_tail(&lun_info->listentry, &phba->luns); lpfc_enable_oas_lun()
5882 &phba->luns, vport_wwpn, lpfc_disable_oas_lun()
H A Dlpfc_attr.c2336 * lpfc_oas_tgt_show - Return wwpn of target whose luns maybe enabled for
2357 * lpfc_oas_tgt_store - Store wwpn of target whose luns maybe enabled for
2473 * of whether luns will be enabled or disabled
2494 * of whether luns will be enabled or disabled
2662 * lpfc_oas_lun_show - Return oas enabled luns from a chosen target
4603 # As it bounds the sequential scan loop, scanning for thousands of luns
H A Dlpfc_init.c5672 INIT_LIST_HEAD(&phba->luns); lpfc_setup_driver_resource_phase1()
/linux-4.4.14/include/scsi/
H A Dscsi.h47 * possible channels, (target) ids, or luns on a given shost.
H A Dscsi_device.h262 * allow I/O to one of the luns
/linux-4.4.14/drivers/scsi/aic7xxx/
H A Daic79xx.h144 * The maximum number of supported luns.
145 * The identify message only supports 64 luns in non-packetized transfers.
146 * You can have 2^64 luns when information unit transfers are enabled,
835 #define CFMULTILUNDEV 0x0800 /* Probe multiple luns in BIOS scan */
1112 * disabled luns on enabled targets.
H A Daic7xxx.h118 * The maximum number of supported luns.
119 * The identify message only supports 64 luns in SPI3.
120 * You can have 2^64 luns when information unit transfers are enabled,
783 #define CFMULTILUNDEV 0x0800 /* Probe multiple luns in BIOS scan */
974 * disabled luns on enabled targets.
H A Daic7xxx_core.c6374 * one table entry for all luns of ahc_abort_scbs()
7364 * requests to unattached luns on enabled targets. ahc_find_tmode_devs()
7458 * and there are no enabled luns which ahc_handle_en_lun()
7880 * Commands for disabled luns go to the black hole driver. ahc_handle_target_cmd()
H A Daic79xx_core.c10289 * requests to unattached luns on enabled targets. ahd_find_tmode_devs()
10360 * and there are no enabled luns which ahd_handle_en_lun()
10731 * Commands for disabled luns go to the black hole driver. ahd_handle_target_cmd()
/linux-4.4.14/drivers/scsi/fnic/
H A Dfnic_res.c162 "vNIC flags 0x%x luns per tgt %d\n", fnic_get_vnic_config()
/linux-4.4.14/drivers/scsi/
H A Dscsi_scan.c1231 * scan any SCSI_1 device for non-0 luns, but that check would best scsi_sequential_lun_scan()
1346 * plus the number of luns we are requesting. 511 was the default scsi_report_lun_scan()
1431 * Scan the luns in lun_data. The entry at offset 0 is really scsi_report_lun_scan()
1465 * the sdev we used didn't appear in the report luns scan scsi_report_lun_scan()
H A D53c700.h39 /* The maximum number of luns (make this of the form 2^n) */
H A Dscsi_devinfo.c58 * for one reason or another. Some will respond to all luns,
80 {"SUN", "SENA", NULL, BLIST_NOLUN}, /* responds to all luns */
H A Dhpsa_cmd.h263 u8 lun_count; /* multi-lun device, how many luns */
H A Ddpt_i2o.c461 // TODO: if any luns are at this bus, scsi id then fake a TEST_UNIT_READY and INQUIRY response adpt_queue_lck()
462 // with type 7F (for all luns less than the max for this bus,id) so the lun scan will continue. adpt_queue_lck()
1185 /* else we need to look through all the luns */ adpt_find_device()
H A Dconstants.c88 /* a0-a5 */ "Report luns", "ATA command pass through(12)/Blank",
787 {0x3F0E, "Reported luns data has changed"},
H A Dhpsa.c3392 "report luns requested format %u, got %u\n", hpsa_scsi_do_report_luns()
3787 * logdev. The number of luns in physdev and logdev are returned in
3938 * physical luns and report logical luns cmd, and adjust hpsa_update_scsi_devices()
8251 "report luns failed, can't track lun changes.\n"); hpsa_luns_changed()
8621 * send down a report luns request
H A Dstex.c585 * The shasta firmware does not report actual luns in the stex_queuecommand_lck()
H A Dscsi_debug.c204 /* If REPORT LUNS has luns >= 256 it can choose "flat space" (value 1)
876 cp = "reported luns data has changed"; check_readiness()
3340 /* can produce response with up to 16k luns (lun 0 to lun 16383) */ resp_report_luns()
H A D3w-9xxx.c1761 /* Check if this FW supports luns */ twa_scsi_queue_lck()
H A Dmegaraid.c288 adapter->host->max_lun = 7; /* Up to 7 luns for non disk devices */ mega_query_adapter()
1858 "LSI Logic MegaRAID %s %d commands %d targs %d chans %d luns", megaraid_info()
H A Dwd33c93.c623 * target (and _all_ luns within it), we'll still send the SDTR message wd33c93_execute()
H A Dscsi_transport_fc.c2967 * to ensure that all luns are detected.
/linux-4.4.14/drivers/scsi/bfa/
H A Dbfa_defs.h727 u32 nbluns; /* number of boot luns */
738 u32 nbluns; /* number of boot luns */
H A Dbfa_fcpim.c2204 * set UA for all active luns in LM DB
2330 /* set for all luns in this rp */ bfa_fcpim_lunmask_add()
2389 /* set for all luns in this rp */ bfa_fcpim_lunmask_delete()
H A Dbfa_defs_svc.h64 u16 num_sboot_luns; /* number of SAN boot luns */
/linux-4.4.14/drivers/staging/unisys/include/
H A Diochannel.h251 #define DEV_HISUPPORT 0x10 /* HiSup = 1; shows support for report luns */
/linux-4.4.14/drivers/scsi/device_handler/
H A Dscsi_dh_rdac.c525 * If more than MODE6_MAX_LUN luns are supported, use set_mode_select()
/linux-4.4.14/drivers/staging/unisys/visorhba/
H A Dvisorhba_main.c811 * to issue report luns, but we don't want do_scsi_nolinuxstat()
/linux-4.4.14/drivers/staging/rts5208/
H A Drtsx_chip.c2158 * If multi-luns, it's possible that rtsx_pre_handle_interrupt()
/linux-4.4.14/drivers/scsi/mpt3sas/
H A Dmpt3sas_base.h352 * @num_luns: number luns
/linux-4.4.14/drivers/block/
H A Dcciss_scsi.c1147 physical luns cmd, and adjust our list of devices cciss_update_non_disk_devices()
H A Dcciss.c2338 dev_warn(&h->pdev->dev, "more luns configured" rebuild_lun_table()
/linux-4.4.14/drivers/usb/storage/
H A Dunusual_devs.h708 /* floppy reports multiple luns */
/linux-4.4.14/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c5767 for (i = 0 ; i < 64 ; i++) /* 64 luns/target, no less */ sym_hcb_attach()
/linux-4.4.14/drivers/scsi/qla4xxx/
H A Dql4_os.c9246 * This routine is called by the Linux OS to reset all luns on the

Completed in 2261 milliseconds