Home
last modified time | relevance | path

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

1234

/drivers/s390/block/
Ddasd_alias.c52 static struct alias_server *_find_server(struct dasd_uid *uid) in _find_server() argument
56 if (!strncmp(pos->uid.vendor, uid->vendor, in _find_server()
57 sizeof(uid->vendor)) in _find_server()
58 && !strncmp(pos->uid.serial, uid->serial, in _find_server()
59 sizeof(uid->serial))) in _find_server()
66 struct dasd_uid *uid) in _find_lcu() argument
70 if (pos->uid.ssid == uid->ssid) in _find_lcu()
77 struct dasd_uid *uid) in _find_group() argument
92 if (uid->type == UA_BASE_DEVICE) in _find_group()
93 search_unit_addr = uid->real_unit_addr; in _find_group()
[all …]
Ddasd_devmap.c1081 struct dasd_uid uid; in dasd_alias_show() local
1088 !device->discipline->get_uid(device, &uid)) { in dasd_alias_show()
1089 if (uid.type == UA_BASE_PAV_ALIAS || in dasd_alias_show()
1090 uid.type == UA_HYPER_PAV_ALIAS) { in dasd_alias_show()
1106 struct dasd_uid uid; in dasd_vendor_show() local
1115 !device->discipline->get_uid(device, &uid)) in dasd_vendor_show()
1116 vendor = uid.vendor; in dasd_vendor_show()
1133 struct dasd_uid uid; in dasd_uid_show() local
1143 !device->discipline->get_uid(device, &uid)) { in dasd_uid_show()
1144 switch (uid.type) { in dasd_uid_show()
[all …]
Ddasd_eckd.c524 if (startpriv->uid.type == UA_BASE_PAV_ALIAS) in prefix_LRE()
527 if (startpriv->uid.type == UA_HYPER_PAV_ALIAS) { in prefix_LRE()
777 struct dasd_uid *uid; in create_uid() local
779 uid = &private->uid; in create_uid()
780 memset(uid, 0, sizeof(struct dasd_uid)); in create_uid()
781 memcpy(uid->vendor, private->ned->HDA_manufacturer, in create_uid()
782 sizeof(uid->vendor) - 1); in create_uid()
783 EBCASC(uid->vendor, sizeof(uid->vendor) - 1); in create_uid()
784 memcpy(uid->serial, private->ned->HDA_location, in create_uid()
785 sizeof(uid->serial) - 1); in create_uid()
[all …]
/drivers/cpufreq/
Dcpufreq_times.c36 uid_t uid; member
63 static struct uid_entry *find_uid_entry_rcu(uid_t uid) in find_uid_entry_rcu() argument
67 hash_for_each_possible_rcu(uid_hash_table, uid_entry, hash, uid) { in find_uid_entry_rcu()
68 if (uid_entry->uid == uid) in find_uid_entry_rcu()
75 static struct uid_entry *find_uid_entry_locked(uid_t uid) in find_uid_entry_locked() argument
79 hash_for_each_possible(uid_hash_table, uid_entry, hash, uid) { in find_uid_entry_locked()
80 if (uid_entry->uid == uid) in find_uid_entry_locked()
87 static struct uid_entry *find_or_register_uid_locked(uid_t uid) in find_or_register_uid_locked() argument
94 uid_entry = find_uid_entry_locked(uid); in find_or_register_uid_locked()
119 uid_entry->uid = uid; in find_or_register_uid_locked()
[all …]
/drivers/misc/
Duid_sys_stats.c68 uid_t uid; member
301 static struct uid_entry *find_uid_entry(uid_t uid) in find_uid_entry() argument
304 hash_for_each_possible(hash_table, uid_entry, hash, uid) { in find_uid_entry()
305 if (uid_entry->uid == uid) in find_uid_entry()
311 static struct uid_entry *find_or_register_uid(uid_t uid) in find_or_register_uid() argument
315 uid_entry = find_uid_entry(uid); in find_or_register_uid()
323 uid_entry->uid = uid; in find_or_register_uid()
327 hash_add(hash_table, &uid_entry->hash, uid); in find_or_register_uid()
340 uid_t uid; in uid_cputime_show() local
351 uid = from_kuid_munged(user_ns, task_uid(task)); in uid_cputime_show()
[all …]
Dad525x_dpot.c90 unsigned uid; member
136 if (dpot->uid == DPOT_UID(AD5291_ID) || in dpot_read_spi()
137 dpot->uid == DPOT_UID(AD5292_ID) || in dpot_read_spi()
138 dpot->uid == DPOT_UID(AD5293_ID)) { in dpot_read_spi()
143 if (dpot->uid == DPOT_UID(AD5291_ID)) in dpot_read_spi()
147 } else if (dpot->uid == DPOT_UID(AD5270_ID) || in dpot_read_spi()
148 dpot->uid == DPOT_UID(AD5271_ID)) { in dpot_read_spi()
156 if (dpot->uid == DPOT_UID(AD5271_ID)) in dpot_read_spi()
180 switch (dpot->uid) { in dpot_read_i2c()
219 if (dpot->uid == DPOT_UID(AD5274_ID)) in dpot_read_i2c()
[all …]
/drivers/staging/greybus/Documentation/firmware/
Dauthenticate.c63 struct cap_ioc_get_endpoint_uid uid; variable
99 ret = ioctl(fd, CAP_IOC_GET_ENDPOINT_UID, &uid); in main()
106 printf("UID received: 0x%llx\n", *(long long unsigned int *)(uid.uid)); in main()
123 memcpy(authenticate.uid, uid.uid, 8); in main()
/drivers/soc/ux500/
Dux500-soc-id.c162 void __iomem *uid; in db8500_read_soc_id() local
168 uid = base + 0x1fc0; in db8500_read_soc_id()
171 add_device_randomness(uid, 0x14); in db8500_read_soc_id()
173 readl((u32 *)uid+0), in db8500_read_soc_id()
174 readl((u32 *)uid+1), readl((u32 *)uid+2), in db8500_read_soc_id()
175 readl((u32 *)uid+3), readl((u32 *)uid+4)); in db8500_read_soc_id()
/drivers/mmc/host/
Dsdhci-acpi.c217 const char *hid, const char *uid) in sdhci_acpi_emmc_probe_slot() argument
229 if (hid && uid && !strcmp(hid, "80860F14") && !strcmp(uid, "1") && in sdhci_acpi_emmc_probe_slot()
238 const char *hid, const char *uid) in sdhci_acpi_sdio_probe_slot() argument
254 const char *hid, const char *uid) in sdhci_acpi_sd_probe_slot() argument
322 const char *uid; member
363 const char *uid) in sdhci_acpi_get_slot() argument
370 if (!u->uid) in sdhci_acpi_get_slot()
372 if (uid && !strcmp(u->uid, uid)) in sdhci_acpi_get_slot()
388 const char *uid; in sdhci_acpi_probe() local
407 uid = device->pnp.unique_id; in sdhci_acpi_probe()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Dtime-event.c95 te_data->uid = 0; in iwl_mvm_te_clear_data()
364 if (le32_to_cpu(notif->unique_id) == te_data->uid) { in iwl_mvm_aux_roc_te_handle_notif()
387 te_data->uid = 0; in iwl_mvm_aux_roc_te_handle_notif()
424 if (le32_to_cpu(notif->unique_id) == te_data->uid) in iwl_mvm_rx_time_event_notif()
451 if (le32_to_cpu(resp->unique_id) != te_data->uid) in iwl_mvm_te_notif()
455 te_data->uid); in iwl_mvm_te_notif()
486 te_data->uid = le32_to_cpu(resp->unique_id); in iwl_mvm_time_event_response()
488 te_data->uid); in iwl_mvm_time_event_response()
575 te_data->uid, in iwl_mvm_protect_session()
631 u32 *uid) in __iwl_mvm_remove_time_event() argument
[all …]
Dscan.c1132 int uid, i; in iwl_mvm_scan_umac() local
1141 uid = iwl_mvm_scan_uid_by_status(mvm, 0); in iwl_mvm_scan_umac()
1142 if (uid < 0) in iwl_mvm_scan_umac()
1143 return uid; in iwl_mvm_scan_umac()
1149 mvm->scan_uid_status[uid] = type; in iwl_mvm_scan_umac()
1151 cmd->uid = cpu_to_le32(uid); in iwl_mvm_scan_umac()
1472 u32 uid = __le32_to_cpu(notif->uid); in iwl_mvm_rx_umac_scan_complete_notif() local
1475 if (WARN_ON(!(mvm->scan_uid_status[uid] & mvm->scan_status))) in iwl_mvm_rx_umac_scan_complete_notif()
1479 if (mvm->scan_uid_status[uid] == IWL_MVM_SCAN_REGULAR) { in iwl_mvm_rx_umac_scan_complete_notif()
1490 } else if (mvm->scan_uid_status[uid] == IWL_MVM_SCAN_SCHED) { in iwl_mvm_rx_umac_scan_complete_notif()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c216 u32 uid; member
264 zone->uid = zone_alloc->last_uid++; in mlx4_zone_add_one()
280 *puid = zone->uid; in mlx4_zone_add_one()
342 u32 uid; in __mlx4_alloc_from_zone() local
352 uid = zone->uid; in __mlx4_alloc_from_zone()
369 uid = it->uid; in __mlx4_alloc_from_zone()
389 uid = it->uid; in __mlx4_alloc_from_zone()
408 uid = curr_node->uid; in __mlx4_alloc_from_zone()
416 *puid = uid; in __mlx4_alloc_from_zone()
429 struct mlx4_zone_allocator *zones, u32 uid) in __mlx4_find_zone_by_uid() argument
[all …]
/drivers/acpi/acpica/
Dutids.c151 struct acpi_pnp_device_id *uid; in acpi_ut_execute_UID() local
174 uid = in acpi_ut_execute_UID()
177 if (!uid) { in acpi_ut_execute_UID()
184 uid->string = in acpi_ut_execute_UID()
185 ACPI_ADD_PTR(char, uid, sizeof(struct acpi_pnp_device_id)); in acpi_ut_execute_UID()
190 acpi_ex_integer_to_string(uid->string, obj_desc->integer.value); in acpi_ut_execute_UID()
192 strcpy(uid->string, obj_desc->string.pointer); in acpi_ut_execute_UID()
195 uid->length = length; in acpi_ut_execute_UID()
196 *return_id = uid; in acpi_ut_execute_UID()
Dnsxfname.c287 struct acpi_pnp_device_id *uid = NULL; in acpi_get_object_info() local
350 status = acpi_ut_execute_UID(node, &uid); in acpi_get_object_info()
352 info_size += uid->length; in acpi_get_object_info()
470 if (uid) { in acpi_get_object_info()
472 uid, next_id_string); in acpi_get_object_info()
513 if (uid) { in acpi_get_object_info()
514 ACPI_FREE(uid); in acpi_get_object_info()
/drivers/staging/lustre/lustre/obdclass/
Dkernelcomm.c111 int libcfs_kkuc_group_add(struct file *filp, int uid, unsigned int group, in libcfs_kkuc_group_add() argument
131 reg->kr_uid = uid; in libcfs_kkuc_group_add()
140 CDEBUG(D_KUC, "Added uid=%d fp=%p to group %d\n", uid, filp, group); in libcfs_kkuc_group_add()
146 int libcfs_kkuc_group_rem(int uid, unsigned int group) in libcfs_kkuc_group_rem() argument
153 if (!uid) { in libcfs_kkuc_group_rem()
166 if (!uid || (uid == reg->kr_uid)) { in libcfs_kkuc_group_rem()
/drivers/staging/greybus/
Dauthentication.c100 memcpy(euid, response.uid, sizeof(response.uid)); in cap_get_endpoint_uid()
143 static int cap_authenticate(struct gb_cap *cap, u32 auth_type, u8 *uid, in cap_authenticate() argument
163 memcpy(request->uid, uid, sizeof(request->uid)); in cap_authenticate()
217 ret = cap_get_endpoint_uid(cap, endpoint_uid.uid); in cap_ioctl()
248 authenticate->uid, in cap_ioctl()
/drivers/base/
Ddevtmpfs.c45 kuid_t uid; member
91 req.uid = GLOBAL_ROOT_UID; in devtmpfs_create_node()
93 req.name = device_get_devnode(dev, &req.mode, &req.uid, &req.gid, &tmp); in devtmpfs_create_node()
195 static int handle_create(const char *nodename, umode_t mode, kuid_t uid, in handle_create() argument
215 newattrs.ia_uid = uid; in handle_create()
367 static int handle(const char *name, umode_t mode, kuid_t uid, kgid_t gid, in handle() argument
371 return handle_create(name, mode, uid, gid, dev); in handle()
398 req->uid, req->gid, req->dev); in devtmpfsd()
/drivers/thunderbolt/
Deeprom.c179 u64 uid; member
269 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) in tb_drom_read_uid_only() argument
290 *uid = *(u64 *)(data+1); in tb_drom_read_uid_only()
380 tb_drom_read_uid_only(sw, &sw->uid); in tb_drom_read()
428 crc = tb_crc8((u8 *) &header->uid, 8); in tb_drom_read()
435 sw->uid = header->uid; in tb_drom_read()
Dswitch.c407 tb_sw_info(sw, "uid: %#llx\n", sw->uid); in tb_switch_alloc()
455 u64 uid; in tb_switch_resume() local
458 err = tb_drom_read_uid_only(sw, &uid); in tb_switch_resume()
463 if (sw->uid != uid) { in tb_switch_resume()
466 sw->uid, uid); in tb_switch_resume()
/drivers/iommu/
Damd_iommu_init.c129 u8 uid; member
882 static int __init add_acpi_hid_device(u8 *hid, u8 *uid, u16 *devid, in add_acpi_hid_device() argument
890 (*uid && *entry->uid && strcmp(entry->uid, uid)) || in add_acpi_hid_device()
895 hid, uid); in add_acpi_hid_device()
904 memcpy(entry->uid, uid, strlen(uid)); in add_acpi_hid_device()
912 entry->hid, entry->uid, entry->root_devid); in add_acpi_hid_device()
942 early_acpihid_map[i].uid, in add_early_maps()
1172 u8 uid[ACPIHID_UID_LEN] = {0}; in init_iommu_from_acpi() local
1198 sprintf(uid, "%d", e->uid); in init_iommu_from_acpi()
1203 memcpy(uid, (u8 *)(&e->uid), ACPIHID_UID_LEN - 1); in init_iommu_from_acpi()
[all …]
/drivers/pinctrl/intel/
Dpinctrl-broxton.c180 .uid = "1",
297 .uid = "2",
404 .uid = "3",
480 .uid = "4",
519 .uid = "5",
658 .uid = "1",
778 .uid = "2",
888 .uid = "3",
980 .uid = "4",
1031 if (!strcmp(adev->pnp.unique_id, soc_table[i]->uid)) { in bxt_pinctrl_probe()
/drivers/gpu/drm/
Ddrm_info.c79 kuid_t uid; in drm_clients_info() local
98 uid = task ? __task_cred(task)->euid : GLOBAL_ROOT_UID; in drm_clients_info()
105 from_kuid_munged(seq_user_ns(m), uid), in drm_clients_info()
/drivers/misc/genwqe/
Dcard_utils.c855 int genwqe_ffdc_buff_size(struct genwqe_dev *cd, int uid) in genwqe_ffdc_buff_size() argument
861 eevptr_addr = GENWQE_UID_OFFS(uid) | IO_EXTENDED_ERROR_POINTER; in genwqe_ffdc_buff_size()
865 l_addr = GENWQE_UID_OFFS(uid) | eevptr; in genwqe_ffdc_buff_size()
890 addr = GENWQE_UID_OFFS(uid) | IO_EXTENDED_DIAG_MAP(ring); in genwqe_ffdc_buff_size()
908 int genwqe_ffdc_buff_read(struct genwqe_dev *cd, int uid, in genwqe_ffdc_buff_read() argument
916 eevptr_addr = GENWQE_UID_OFFS(uid) | IO_EXTENDED_ERROR_POINTER; in genwqe_ffdc_buff_read()
920 l_addr = GENWQE_UID_OFFS(uid) | eevptr; in genwqe_ffdc_buff_read()
929 d_addr |= GENWQE_UID_OFFS(uid); in genwqe_ffdc_buff_read()
955 addr = GENWQE_UID_OFFS(uid) | IO_EXTENDED_DIAG_MAP(ring); in genwqe_ffdc_buff_read()
972 addr = (GENWQE_UID_OFFS(uid) | in genwqe_ffdc_buff_read()
[all …]
Dcard_debugfs.c64 static int curr_dbg_uidn_show(struct seq_file *s, void *unused, int uid) in curr_dbg_uidn_show() argument
70 entries = genwqe_ffdc_buff_size(cd, uid); in curr_dbg_uidn_show()
82 genwqe_ffdc_buff_read(cd, uid, regs, entries); in curr_dbg_uidn_show()
111 static int prev_dbg_uidn_show(struct seq_file *s, void *unused, int uid) in prev_dbg_uidn_show() argument
115 dbg_uidn_show(s, cd->ffdc[uid].regs, cd->ffdc[uid].entries); in prev_dbg_uidn_show()
/drivers/staging/lustre/lustre/include/
Dlustre_kernelcomm.h49 int libcfs_kkuc_group_add(struct file *fp, int uid, unsigned int group,
51 int libcfs_kkuc_group_rem(int uid, unsigned int group);

1234