uniq
unsigned long *freq, unsigned long *uniq);
WRITE_RANGE(hid_device, uniq, true),
strlen(hdev->uniq) ?
hdev->uniq : dev_name(&hdev->dev));
if (add_uevent_var(env, "HID_UNIQ=%s", hdev->uniq))
input->uniq = hdev->uniq;
input_dev->uniq = hid->uniq;
strlen(dev->uniq) ?
dev->uniq : dev_name(&dev->dev));
strlen(hdev->uniq) ?
hdev->uniq : dev_name(&hdev->dev));
input->uniq = data->hdev->uniq;
input->uniq = hdev->uniq;
snprintf(hdev->uniq, sizeof(hdev->uniq), "%4phD", &serial);
dbg_hid("HID++ DeviceInformation: Got serial: %s\n", hdev->uniq);
val->strval = hidpp->hid_dev->uniq;
input_dev->uniq = hdev->uniq;
snprintf(hdev->uniq, sizeof(hdev->uniq), "%4phD", &serial);
dbg_hid("HID++ Unifying: Got serial: %s\n", hdev->uniq);
ctlr->imu_input->uniq = ctlr->mac_addr_str;
ctlr->input->uniq = ctlr->mac_addr_str;
idev->uniq = hdev->uniq;
idev->uniq = hdev->uniq;
snprintf(hdev->uniq, sizeof(hdev->uniq), "%pMR", ds->base.mac_address);
if (strlen(hdev->uniq) != 17)
ret = sscanf(hdev->uniq, "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx",
snprintf(hdev->uniq, sizeof(hdev->uniq), "%pMR", ds4->base.mac_address);
input_dev->uniq = hdev->uniq;
strncmp(hdev->uniq, "20201111000001", 14) == 0)
sc->touchpad->uniq = sc->hdev->uniq;
sc->sensor_dev->uniq = sc->hdev->uniq;
ret = strlen(sc->hdev->uniq);
ret = sscanf(sc->hdev->uniq,
snprintf(sc->hdev->uniq, sizeof(sc->hdev->uniq),
input->uniq = steam->serial_no;
sensors->uniq = steam->serial_no;
name_sz = strlen(hdev->uniq) + 16;
snprintf(name, name_sz, "SRWS1::%s::RPMALL", hdev->uniq);
snprintf(name, name_sz, "SRWS1::%s::RPM%d", hdev->uniq, i+1);
snprintf(hdev->uniq, sizeof(hdev->uniq), "%x-%x", hdev->vendor,
strscpy(hdev->uniq, ver_ptr, sizeof(hdev->uniq));
input_dev->uniq = hdev->uniq;
wdata->hdev->uniq);
field_len = strlen(hid->uniq) + 1;
return copy_to_user(user_arg, hid->uniq, len) ? -EFAULT : len;
__u8 uniq[64];
memcpy(event->u.create.uniq, compat->uniq,
sizeof(compat->uniq));
BUILD_BUG_ON(sizeof(hid->uniq) != sizeof(ev->u.create2.uniq));
strscpy(hid->uniq, ev->u.create2.uniq, sizeof(hid->uniq));
memcpy(ev->u.create2.uniq, orig.uniq, sizeof(orig.uniq));
if (usb_string(dev, dev->descriptor.iSerialNumber, hid->uniq, 64) <= 0)
hid->uniq[0] = 0;
input_dev->uniq = hdev->uniq;
remote->remotes[index].input->uniq = remote->remotes[index].group.name;
return str_to_user(dev->uniq, size, p);
seq_printf(seq, "U: Uniq=%s\n", dev->uniq ? dev->uniq : "");
INPUT_DEV_STRING_ATTR_SHOW(uniq);
if (dev->uniq)
INPUT_ADD_HOTPLUG_VAR("UNIQ=\"%s\"", dev->uniq);
typeof(dest) uniq = (src); \
memcpy_flushcache(&(dest), &uniq, sizeof(dest)); \
vi->idev->uniq = vi->serial;
memcpy(key + len, uniq, ulen);
int nfs_fscache_get_super_cookie(struct super_block *sb, const char *uniq, int ulen)
if (uniq) {
nfss->fscache_uniq = kmemdup_nul(uniq, ulen, GFP_KERNEL);
char *uniq = NULL;
uniq = mnt_s->fscache_uniq;
ulen = strlen(uniq);
uniq = ctx->fscache_uniq;
return nfs_fscache_get_super_cookie(sb, uniq, ulen);
struct rpc_clnt *clnt, const char *uniq)
strncat(name, uniq ? uniq : "", sizeof(name) - strlen(name) - 1);
char uniq[64]; /* Device unique identifier (serial #) */
const char *uniq;
__u8 uniq[64];
__u8 uniq[64];
snprintf(hid->uniq, sizeof(hid->uniq), "%pMR",
struct uniqframe __percpu *uniq;
if (this_cpu_ptr(ro->uniq)->skb == oskb &&
this_cpu_ptr(ro->uniq)->hash == oskb->hash) {
this_cpu_inc(ro->uniq->join_rx_count);
if (this_cpu_ptr(ro->uniq)->join_rx_count < ro->count)
this_cpu_ptr(ro->uniq)->skb = oskb;
this_cpu_ptr(ro->uniq)->hash = oskb->hash;
this_cpu_ptr(ro->uniq)->join_rx_count = 1;
ro->uniq = alloc_percpu(struct uniqframe);
if (unlikely(!ro->uniq))
free_percpu(ro->uniq);
uniq(main_cmds);
uniq(other_cmds);
void uniq(struct cmdnames *cmds);
uniq(&cmds);
uniq(main_cmds);
char uniq[256] = {0};
err = ioctl(self->hidraw_fd, HIDIOCGRAWUNIQ(sizeof(uniq)), uniq);
ASSERT_EQ(strlen(uniq), 0) TH_LOG("expected empty uniq, got '%s'", uniq);