Home
last modified time | relevance | path

Searched refs:ro (Results 1 – 25 of 25) sorted by relevance

/drivers/usb/gadget/
Dstorage_common.c129 unsigned int ro:1; member
416 int ro; in fsg_lun_open() local
427 ro = curlun->initially_ro; in fsg_lun_open()
428 if (!ro) { in fsg_lun_open()
431 ro = 1; in fsg_lun_open()
433 if (ro) in fsg_lun_open()
441 ro = 1; in fsg_lun_open()
458 ro = 1; in fsg_lun_open()
500 curlun->ro = ro; in fsg_lun_open()
523 if (curlun->ro || !filp) in fsg_lun_fsync_sub()
[all …]
Df_mass_storage.c320 char ro; member
784 if (curlun->ro) { in do_write()
1268 buf[2] = (curlun->ro ? 0x80 : 0x00); /* WP, DPOFUA */ in do_mode_sense()
1272 buf[3] = (curlun->ro ? 0x80 : 0x00); /* WP, DPOFUA */ in do_mode_sense()
2579 static DEVICE_ATTR(ro, 0644, fsg_show_ro, fsg_store_ro);
2584 __ATTR(ro, 0444, fsg_show_ro, NULL);
2681 curlun->ro = lcfg->cdrom || lcfg->ro; in fsg_common_init()
2682 curlun->initially_ro = curlun->ro; in fsg_common_init()
2793 curlun->ro ? "read only " : "", in fsg_common_init()
2988 bool ro[FSG_MAX_LUNS]; member
[all …]
/drivers/gpu/drm/
Ddrm_crtc_helper.c559 int count = 0, ro, fail = 0; in drm_crtc_helper_set_config() local
676 for (ro = 0; ro < set->num_connectors; ro++) { in drm_crtc_helper_set_config()
677 if (set->connectors[ro] == connector) { in drm_crtc_helper_set_config()
715 for (ro = 0; ro < set->num_connectors; ro++) { in drm_crtc_helper_set_config()
716 if (set->connectors[ro] == connector) in drm_crtc_helper_set_config()
/drivers/mtd/nand/
Datmel_nand.c487 int ro; in pmecc_get_sigma() local
555 ro = 0; in pmecc_get_sigma()
561 ro = j; in pmecc_get_sigma()
566 diff = (mu[i] - mu[ro]); in pmecc_get_sigma()
569 if ((lmu[i] >> 1) > ((lmu[ro] >> 1) + diff)) in pmecc_get_sigma()
572 lmu[i + 1] = ((lmu[ro] >> 1) + diff) * 2; in pmecc_get_sigma()
579 for (k = 0; k <= lmu[ro] >> 1; k++) { in pmecc_get_sigma()
582 if (!(smu[ro * num + k] && dmu[i])) in pmecc_get_sigma()
585 b = readw_relaxed(index_of + dmu[ro]); in pmecc_get_sigma()
586 c = readw_relaxed(index_of + smu[ro * num + k]); in pmecc_get_sigma()
/drivers/md/
Dmd.c304 if (mddev->ro == 1 && unlikely(rw == WRITE)) { in md_make_request()
2408 if (mddev->ro) { in md_update_sb()
3849 switch(mddev->ro) { in array_state_show()
3877 static int do_md_stop(struct mddev * mddev, int ro, struct block_device *bdev);
3907 mddev->ro = 1; in array_state_store()
3914 if (mddev->ro == 0) in array_state_store()
3916 else if (mddev->ro == 1) in array_state_store()
3919 mddev->ro = 2; in array_state_store()
3923 mddev->ro = 2; in array_state_store()
3952 mddev->ro = 0; in array_state_store()
[all …]
Ddm-raid.c1288 (!mddev->ro && test_bit(MD_RECOVERY_NEEDED, &mddev->recovery))) { in decipher_sync_action()
1518 if (mddev->ro == 2) { in raid_message()
1522 mddev->ro = 0; in raid_message()
Dmd.h216 int ro; member
Draid1.c2207 if (mddev->ro == 0) { in handle_read_error()
2230 mddev->ro ? IO_BLOCKED : NULL; in handle_read_error()
Draid5.c3633 if (s.failed <= conf->max_degraded && !conf->mddev->ro) in handle_stripe()
5393 else if (mddev->ro == 0) { in run()
Draid10.c2624 if (mddev->ro == 0) { in handle_read_error()
/drivers/hwmon/
Dibmaem.c925 struct aem_ro_sensor_template *ro, in aem_register_sensors() argument
933 while (ro->label) { in aem_register_sensors()
935 sensors->dev_attr.attr.name = ro->label; in aem_register_sensors()
937 sensors->dev_attr.show = ro->show; in aem_register_sensors()
938 sensors->index = ro->index; in aem_register_sensors()
946 ro++; in aem_register_sensors()
/drivers/scsi/
Dosst.h230 unsigned ro :1; /* Read Only Mode */ member
232 unsigned ro :1; /* Read Only Mode */ member
/drivers/mmc/core/
Dsd.c877 int ro = -1; in mmc_sd_setup_card() local
881 ro = host->ops->get_ro(host); in mmc_sd_setup_card()
885 if (ro < 0) { in mmc_sd_setup_card()
890 } else if (ro > 0) { in mmc_sd_setup_card()
/drivers/net/ethernet/chelsio/cxgb/
Dpm3393.c444 if (ro & \
452 u64 ro; in pm3393_update_statistics() local
464 ro = ((u64)val0 & 0xffff) | (((u64)val1 & 0xffff) << 16) | in pm3393_update_statistics()
/drivers/xen/
Dgrant-table.c475 bool ro; member
499 if (_gnttab_end_foreign_access_ref(entry->ref, entry->ro)) { in gnttab_handle_deferred()
539 entry->ro = readonly; in gnttab_add_deferred()
/drivers/mmc/host/
Drtsx_pci_sdmmc.c963 int ro = 0; in sdmmc_get_ro() local
977 ro = 1; in sdmmc_get_ro()
981 return ro; in sdmmc_get_ro()
/drivers/staging/imx-drm/ipu-v3/
Dipu-common.c143 int bpp = 0, npb = 0, ro, go, bo, to; in ipu_cpmem_set_format_rgb() local
145 ro = rgb->bits_per_pixel - rgb->red.length - rgb->red.offset; in ipu_cpmem_set_format_rgb()
151 ipu_ch_param_write_field(p, IPU_FIELD_OFS0, ro); in ipu_cpmem_set_format_rgb()
/drivers/zorro/
Dzorro.ids296 # The Rainbow II and III are actually made by Ingenieurbüro Helfrich
354 0893 Ingenieurbüro Helfrich
/drivers/mtd/
DKconfig93 <partdef> := <size>[@offset][<name>][ro]
109 mtdparts=sa1100:256k(ARMboot)ro,-(root)
/drivers/media/dvb-frontends/
Dstv090x.c943 u32 ro; in stv090x_car_width() local
947 ro = 20; in stv090x_car_width()
950 ro = 25; in stv090x_car_width()
954 ro = 35; in stv090x_car_width()
958 return srate + (srate * ro) / 100; in stv090x_car_width()
Dstv0900_sw.c450 static u32 stv0900_carrier_width(u32 srate, enum fe_stv0900_rolloff ro) in stv0900_carrier_width() argument
454 switch (ro) { in stv0900_carrier_width()
/drivers/gpu/drm/i915/
Dintel_display.c8208 int count, ro; in intel_modeset_stage_output_state() local
8220 for (ro = 0; ro < set->num_connectors; ro++) { in intel_modeset_stage_output_state()
8221 if (set->connectors[ro] == &connector->base) { in intel_modeset_stage_output_state()
8230 if ((!set->fb || ro == set->num_connectors) && in intel_modeset_stage_output_state()
8257 for (ro = 0; ro < set->num_connectors; ro++) { in intel_modeset_stage_output_state()
8258 if (set->connectors[ro] == &connector->base) in intel_modeset_stage_output_state()
/drivers/scsi/bfa/
Dbfa_fc.h86 u32 ro; /* relative offset */ member
/drivers/scsi/aacraid/
Daacraid.h855 u8 ro; member
Daachba.c552 fsa_dev_ptr->ro = ((le32_to_cpu(dresp->mnt[0].state) & FSCS_READONLY) != 0); in _aac_probe_container2()