/linux-4.4.14/drivers/lightnvm/ |
H A D | gennvm.h | 41 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 D | rrpc.c | 26 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 D | gennvm.c | 40 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 D | rrpc.h | 93 struct rrpc_lun *luns; member in struct:rrpc
|
/linux-4.4.14/drivers/usb/gadget/function/ |
H A D | f_mass_storage.h | 16 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 D | f_mass_storage.c | 58 * 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 D | snic_res.c | 104 SNIC_INFO("vNIC flags 0x%x luns per tgt %d\n", snic_get_vnic_config()
|
/linux-4.4.14/drivers/scsi/cxlflash/ |
H A D | superpipe.h | 109 struct list_head luns; /* LUNs attached to this context */ member in struct:ctx_info
|
H A D | superpipe.c | 207 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 D | vlun.c | 1182 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 D | tcm_usb_gadget.c | 431 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 D | nokia.c | 39 .luns = 2,
|
/linux-4.4.14/drivers/scsi/lpfc/ |
H A D | lpfc_mem.c | 267 while (!list_empty(&phba->luns)) { lpfc_mem_free() 268 device_data = list_first_entry(&phba->luns, lpfc_mem_free()
|
H A D | lpfc.h | 995 spinlock_t devicelock; /* lock for luns list */ 997 struct list_head luns; member in struct:lpfc_hba
|
H A D | lpfc_scsi.c | 5449 &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 D | lpfc_attr.c | 2336 * 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 D | lpfc_init.c | 5672 INIT_LIST_HEAD(&phba->luns); lpfc_setup_driver_resource_phase1()
|
/linux-4.4.14/include/scsi/ |
H A D | scsi.h | 47 * possible channels, (target) ids, or luns on a given shost.
|
H A D | scsi_device.h | 262 * allow I/O to one of the luns
|
/linux-4.4.14/drivers/scsi/aic7xxx/ |
H A D | aic79xx.h | 144 * 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 D | aic7xxx.h | 118 * 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 D | aic7xxx_core.c | 6374 * 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 D | aic79xx_core.c | 10289 * 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 D | fnic_res.c | 162 "vNIC flags 0x%x luns per tgt %d\n", fnic_get_vnic_config()
|
/linux-4.4.14/drivers/scsi/ |
H A D | scsi_scan.c | 1231 * 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 D | 53c700.h | 39 /* The maximum number of luns (make this of the form 2^n) */
|
H A D | scsi_devinfo.c | 58 * for one reason or another. Some will respond to all luns, 80 {"SUN", "SENA", NULL, BLIST_NOLUN}, /* responds to all luns */
|
H A D | hpsa_cmd.h | 263 u8 lun_count; /* multi-lun device, how many luns */
|
H A D | dpt_i2o.c | 461 // 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 D | constants.c | 88 /* a0-a5 */ "Report luns", "ATA command pass through(12)/Blank", 787 {0x3F0E, "Reported luns data has changed"},
|
H A D | hpsa.c | 3392 "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 D | stex.c | 585 * The shasta firmware does not report actual luns in the stex_queuecommand_lck()
|
H A D | scsi_debug.c | 204 /* 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 D | 3w-9xxx.c | 1761 /* Check if this FW supports luns */ twa_scsi_queue_lck()
|
H A D | megaraid.c | 288 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 D | wd33c93.c | 623 * target (and _all_ luns within it), we'll still send the SDTR message wd33c93_execute()
|
H A D | scsi_transport_fc.c | 2967 * to ensure that all luns are detected.
|
/linux-4.4.14/drivers/scsi/bfa/ |
H A D | bfa_defs.h | 727 u32 nbluns; /* number of boot luns */ 738 u32 nbluns; /* number of boot luns */
|
H A D | bfa_fcpim.c | 2204 * 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 D | bfa_defs_svc.h | 64 u16 num_sboot_luns; /* number of SAN boot luns */
|
/linux-4.4.14/drivers/staging/unisys/include/ |
H A D | iochannel.h | 251 #define DEV_HISUPPORT 0x10 /* HiSup = 1; shows support for report luns */
|
/linux-4.4.14/drivers/scsi/device_handler/ |
H A D | scsi_dh_rdac.c | 525 * If more than MODE6_MAX_LUN luns are supported, use set_mode_select()
|
/linux-4.4.14/drivers/staging/unisys/visorhba/ |
H A D | visorhba_main.c | 811 * to issue report luns, but we don't want do_scsi_nolinuxstat()
|
/linux-4.4.14/drivers/staging/rts5208/ |
H A D | rtsx_chip.c | 2158 * If multi-luns, it's possible that rtsx_pre_handle_interrupt()
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_base.h | 352 * @num_luns: number luns
|
/linux-4.4.14/drivers/block/ |
H A D | cciss_scsi.c | 1147 physical luns cmd, and adjust our list of devices cciss_update_non_disk_devices()
|
H A D | cciss.c | 2338 dev_warn(&h->pdev->dev, "more luns configured" rebuild_lun_table()
|
/linux-4.4.14/drivers/usb/storage/ |
H A D | unusual_devs.h | 708 /* floppy reports multiple luns */
|
/linux-4.4.14/drivers/scsi/sym53c8xx_2/ |
H A D | sym_hipd.c | 5767 for (i = 0 ; i < 64 ; i++) /* 64 luns/target, no less */ sym_hcb_attach()
|
/linux-4.4.14/drivers/scsi/qla4xxx/ |
H A D | ql4_os.c | 9246 * This routine is called by the Linux OS to reset all luns on the
|