Home
last modified time | relevance | path

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

/drivers/xen/
Dgrant-table.c106 int (*end_foreign_access_ref)(grant_ref_t ref, int readonly);
230 unsigned long frame, int readonly) in gnttab_grant_foreign_access_ref() argument
233 GTF_permit_access | (readonly ? GTF_readonly : 0)); in gnttab_grant_foreign_access_ref()
238 int readonly) in gnttab_grant_foreign_access() argument
246 gnttab_grant_foreign_access_ref(ref, domid, frame, readonly); in gnttab_grant_foreign_access()
263 static int gnttab_end_foreign_access_ref_v1(grant_ref_t ref, int readonly) in gnttab_end_foreign_access_ref_v1() argument
279 static inline int _gnttab_end_foreign_access_ref(grant_ref_t ref, int readonly) in _gnttab_end_foreign_access_ref() argument
281 return gnttab_interface->end_foreign_access_ref(ref, readonly); in _gnttab_end_foreign_access_ref()
284 int gnttab_end_foreign_access_ref(grant_ref_t ref, int readonly) in gnttab_end_foreign_access_ref() argument
286 if (_gnttab_end_foreign_access_ref(ref, readonly)) in gnttab_end_foreign_access_ref()
[all …]
Dgntalloc.c124 int i, rc, readonly; in add_grefs() local
129 readonly = !(op->flags & GNTALLOC_FLAG_WRITABLE); in add_grefs()
145 pfn_to_mfn(page_to_pfn(gref->page)), readonly); in add_grefs()
/drivers/hwmon/
Djc42.c392 bool readonly; in jc42_attribute_mode() local
395 readonly = config & JC42_CFG_TCRIT_LOCK; in jc42_attribute_mode()
398 readonly = config & JC42_CFG_EVENT_LOCK; in jc42_attribute_mode()
400 readonly = config & (JC42_CFG_EVENT_LOCK | JC42_CFG_TCRIT_LOCK); in jc42_attribute_mode()
402 readonly = true; in jc42_attribute_mode()
404 return S_IRUGO | (readonly ? 0 : S_IWUSR); in jc42_attribute_mode()
/drivers/mtd/
Dsm_ftl.c326 BUG_ON(ftl->readonly); in sm_write_sector()
471 BUG_ON(ftl->readonly); in sm_erase_block()
576 ftl->readonly = mtd->type == MTD_ROM; in sm_get_media_info()
601 if (!ftl->readonly) in sm_get_media_info()
1063 BUG_ON(ftl->readonly); in sm_write()
1184 trans->readonly = ftl->readonly; in sm_add_mtd()
Dsm_ftl.h40 bool readonly; /* is FS readonly */ member
Dmtdblock_ro.c61 dev->readonly = 1; in mtdblock_add_mtd()
Dmtd_blkdevs.c377 new->readonly = 1; in add_mtd_blktrans_dev()
439 if (new->readonly) in add_mtd_blktrans_dev()
Drfd_ftl.c785 part->mbd.readonly = 1; in rfd_ftl_add_mtd()
789 part->mbd.readonly = 1; in rfd_ftl_add_mtd()
Dmtdblock.c364 dev->mbd.readonly = 1; in mtdblock_add_mtd()
Dssfdc.c309 ssfdc->mbd.readonly = 1; in ssfdcr_add_mtd()
Dmtdswap.c1522 mbd_dev->readonly = 1; in mtdswap_add_mtd()
/drivers/mtd/nand/
Dr852.c610 int readonly; in r852_update_media_status() local
619 readonly = r852_read_reg(dev, R852_CARD_STA) & R852_CARD_STA_RO; in r852_update_media_status()
625 readonly ? "readonly" : "writeable"); in r852_update_media_status()
627 dev->readonly = readonly; in r852_update_media_status()
648 if (dev->readonly) in r852_register_nand_device()
Dr852.h137 int readonly; /* card is readonly */ member
/drivers/block/xen-blkback/
Dxenbus.c403 blkdev_put(vbd->bdev, vbd->readonly ? FMODE_READ : FMODE_WRITE); in xen_vbd_free()
408 unsigned major, unsigned minor, int readonly, in xen_vbd_create() argument
417 vbd->readonly = readonly; in xen_vbd_create()
422 bdev = blkdev_get_by_dev(vbd->pdevice, vbd->readonly ? in xen_vbd_create()
814 (be->blkif->vbd.readonly ? VDISK_READONLY : 0)); in connect()
Dcommon.h221 unsigned char readonly; member
Dblkback.c472 if ((operation != READ) && vbd->readonly) in xen_vbd_translate()
/drivers/s390/block/
Ddasd_fba.c132 int readonly; in dasd_fba_check_characteristics() local
175 readonly = dasd_device_is_ro(device); in dasd_fba_check_characteristics()
176 if (readonly) in dasd_fba_check_characteristics()
189 readonly ? ", read-only device" : ""); in dasd_fba_check_characteristics()
Ddasd_eckd.c1676 int readonly; in dasd_eckd_check_characteristics() local
1785 readonly = dasd_device_is_ro(device); in dasd_eckd_check_characteristics()
1786 if (readonly) in dasd_eckd_check_characteristics()
1798 readonly ? ", read-only device" : ""); in dasd_eckd_check_characteristics()
Ddasd_devmap.c804 static DEVICE_ATTR(readonly, 0644, dasd_ro_show, dasd_ro_store);
/drivers/misc/eeprom/
DKconfig13 24c00, 24c01, 24c02, spd (readonly 24c02), 24c04, 24c08,
/drivers/hwmon/pmbus/
Dpmbus_core.c850 bool update, bool readonly) in pmbus_add_sensor() argument
867 readonly ? S_IRUGO : S_IRUGO | S_IWUSR, in pmbus_add_sensor()
/drivers/gpu/drm/i915/
Di915_gem.c46 bool readonly);
1308 bool readonly) in i915_gem_object_wait_rendering() argument
1314 seqno = readonly ? obj->last_write_seqno : obj->last_read_seqno; in i915_gem_object_wait_rendering()
1331 bool readonly) in i915_gem_object_wait_rendering__nonblocking() argument
1343 seqno = readonly ? obj->last_write_seqno : obj->last_read_seqno; in i915_gem_object_wait_rendering__nonblocking()
/drivers/md/
Dmd.c3627 enum array_state { clear, inactive, suspended, readonly, read_auto, clean, active, enumerator
3650 st = readonly; in array_state_show()
3702 case readonly: in array_state_store()