Home
last modified time | relevance | path

Searched refs:removable (Results 1 - 25 of 59) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/usb/gadget/function/
H A Df_mass_storage.h11 bool removable[FSG_MAX_LUNS]; member
37 _FSG_MODULE_PARAM_ARRAY(prefix, params, removable, bool, \
38 "true to simulate removable media"); \
90 char removable; member
H A Dstorage_common.c366 return sprintf(buf, "%u\n", curlun->removable); in fsg_show_removable()
493 bool removable; in fsg_store_removable() local
496 ret = strtobool(buf, &removable); in fsg_store_removable()
500 curlun->removable = removable; in fsg_store_removable()
H A Df_mass_storage.c66 * removable.
72 * ->removable Flag specifying that LUN shall be indicated as
73 * being removable.
92 * If "removable" is not set for a LUN then a backing file must be
1091 buf[1] = curlun->removable ? 0x80 : 0; in do_inquiry()
1321 } else if (!curlun->removable) { in do_start_stop()
1371 } else if (!common->curlun->removable) { in do_prevent_allow()
2740 return lun->removable ? (S_IWUSR | S_IRUGO) : S_IRUGO; in fsg_lun_dev_is_visible()
2768 if (!cfg->filename && !cfg->removable) { in fsg_common_create_lun()
2782 lun->removable in fsg_common_create_lun()
[all...]
H A Dstorage_common.h105 unsigned int removable:1; member
/kernel/linux/linux-6.6/drivers/usb/gadget/function/
H A Df_mass_storage.h11 bool removable[FSG_MAX_LUNS]; member
37 _FSG_MODULE_PARAM_ARRAY(prefix, params, removable, bool, \
38 "true to simulate removable media"); \
90 char removable; member
H A Dstorage_common.c367 return sprintf(buf, "%u\n", curlun->removable); in fsg_show_removable()
494 bool removable; in fsg_store_removable() local
497 ret = kstrtobool(buf, &removable); in fsg_store_removable()
501 curlun->removable = removable; in fsg_store_removable()
H A Df_mass_storage.c36 * removable.
42 * ->removable Flag specifying that LUN shall be indicated as
43 * being removable.
62 * If "removable" is not set for a LUN then a backing file must be
1067 buf[1] = curlun->removable ? 0x80 : 0; in do_inquiry()
1370 } else if (!curlun->removable) { in do_start_stop()
1420 } else if (!common->curlun->removable) { in do_prevent_allow()
2687 * removable device.
2857 return lun->removable ? (S_IWUSR | S_IRUGO) : S_IRUGO; in fsg_lun_dev_is_visible()
2885 if (!cfg->filename && !cfg->removable) { in fsg_common_create_lun()
[all...]
H A Dstorage_common.h105 unsigned int removable:1; member
/kernel/linux/linux-5.10/drivers/pci/hotplug/
H A Dacpi_pcihp.c148 unsigned long long removable; in pcihp_is_ejectable() local
153 status = acpi_evaluate_integer(handle, "_RMV", NULL, &removable); in pcihp_is_ejectable()
154 if (ACPI_SUCCESS(status) && removable) in pcihp_is_ejectable()
/kernel/linux/linux-6.6/drivers/pci/hotplug/
H A Dacpi_pcihp.c148 unsigned long long removable; in pcihp_is_ejectable() local
153 status = acpi_evaluate_integer(handle, "_RMV", NULL, &removable); in pcihp_is_ejectable()
154 if (ACPI_SUCCESS(status) && removable) in pcihp_is_ejectable()
/kernel/linux/linux-5.10/drivers/scsi/
H A Dscsi_ioctl.c118 if (sdev->removable) in ioctl_internal_command()
122 if (sdev->removable) { in ioctl_internal_command()
127 fallthrough; /* for non-removable media */ in ioctl_internal_command()
147 if (!sdev->removable || !sdev->lockable) in scsi_set_medium_removal()
/kernel/linux/linux-5.10/drivers/block/paride/
H A Dpd.c234 int removable; /* removable media device ? */ member
736 disk->removable = pd_scratch[0] & 0x80; in pd_identify()
743 disk->removable ? "removable" : "fixed"); in pd_identify()
798 if (disk->removable) { in pd_open()
845 if (!--disk->access && disk->removable) in pd_release()
854 if (!disk->removable) in pd_check_events()
H A Dpf.c234 int removable; /* removable media device ? */ member
347 if (pf->removable) in pf_open()
401 if (!pf->access && pf->removable) in pf_release()
673 pf->removable = (buf[1] & 0x80); in pf_identify()
683 if (pf->removable) in pf_identify()
684 printk(", removable"); in pf_identify()
/kernel/linux/linux-5.10/include/linux/
H A Ddevice.h352 * enum device_removable - Whether the device is removable. The criteria for a
353 * device to be classified as removable is determined by its subsystem or bus.
357 * @DEVICE_FIXED: Device is not removable by the user.
358 * @DEVICE_REMOVABLE: Device is removable by the user.
454 * @removable: Whether the device can be removed from the system. This
568 enum device_removable removable; member
806 enum device_removable removable) in dev_set_removable()
808 dev->removable = removable; in dev_set_removable()
813 return dev->removable in dev_is_removable()
805 dev_set_removable(struct device *dev, enum device_removable removable) dev_set_removable() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Ddevice.h495 * enum device_removable - Whether the device is removable. The criteria for a
496 * device to be classified as removable is determined by its subsystem or bus.
500 * @DEVICE_FIXED: Device is not removable by the user.
501 * @DEVICE_REMOVABLE: Device is removable by the user.
675 * @removable: Whether the device can be removed from the system. This
793 enum device_removable removable; member
1036 enum device_removable removable) in dev_set_removable()
1038 dev->removable = removable; in dev_set_removable()
1043 return dev->removable in dev_is_removable()
1035 dev_set_removable(struct device *dev, enum device_removable removable) dev_set_removable() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/memory-hotplug/
H A Dmem-on-off-test.sh30 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then
44 if grep -q 1 $memory/removable &&
/kernel/linux/linux-6.6/tools/testing/selftests/memory-hotplug/
H A Dmem-on-off-test.sh30 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then
44 if grep -q 1 $memory/removable &&
/kernel/linux/linux-5.10/drivers/s390/block/
H A Ddasd_fba.h57 unsigned char removable:1; member
/kernel/linux/linux-6.6/drivers/s390/block/
H A Ddasd_fba.h57 unsigned char removable:1; member
/kernel/linux/linux-5.10/drivers/ide/
H A Dide-atapi.c40 u8 gcw[2], protocol, device_type, removable, drq_type, packet_size; in ide_check_atapi_device() local
46 removable = (gcw[0] & 0x80) >> 7; in ide_check_atapi_device()
65 else if (removable == 0) in ide_check_atapi_device()
66 printk(KERN_ERR "%s: %s: the removable flag is not set\n", in ide_check_atapi_device()
/kernel/linux/linux-6.6/drivers/scsi/
H A Dscsi_ioctl.c100 if (sdev->removable) in ioctl_internal_command()
104 if (sdev->removable) { in ioctl_internal_command()
109 fallthrough; /* for non-removable media */ in ioctl_internal_command()
129 if (!sdev->removable || !sdev->lockable) in scsi_set_medium_removal()
/kernel/linux/linux-6.6/security/landlock/
H A Dfs.c766 * @removable: Sets to true if it is a rename operation.
816 const bool removable, const bool exchange) in current_check_refer_path()
842 if (removable) { in current_check_refer_path()
813 current_check_refer_path(struct dentry *const old_dentry, const struct path *const new_dir, struct dentry *const new_dentry, const bool removable, const bool exchange) current_check_refer_path() argument
/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/
H A Dnokia.c38 .removable = { 1, 1, },
/kernel/linux/linux-5.10/drivers/pnp/pnpacpi/
H A Dcore.c247 if (device->flags.removable) in pnpacpi_add_device()
/kernel/linux/linux-6.6/drivers/pnp/pnpacpi/
H A Dcore.c247 if (device->flags.removable) in pnpacpi_add_device()

Completed in 25 milliseconds

123