Lines Matching refs:kind
92 static int fscpos_detect(struct i2c_client *client, int kind,
353 #define create_getter(kind, sub) \ argument
354 …static ssize_t sysfs_show_##kind##sub(struct device *dev, struct device_attribute *attr, char *buf…
357 return show_##kind##sub(data, buf); \
360 #define create_getter_n(kind, offset, sub) \ argument
361 …static ssize_t sysfs_show_##kind##offset##sub(struct device *dev, struct device_attribute *attr, c…
365 return show_##kind##sub(data, buf, offset); \
368 #define create_setter(kind, sub, reg) \ argument
369 …static ssize_t sysfs_set_##kind##sub (struct device *dev, struct device_attribute *attr, const cha…
374 return set_##kind##sub(client, data, buf, count, reg); \
377 #define create_setter_n(kind, offset, sub, reg) \ argument
378 static ssize_t sysfs_set_##kind##offset##sub (struct device *dev, struct device_attribute *attr, \
383 return set_##kind##sub(client, data, buf, count, offset, reg);\
386 #define create_sysfs_device_ro(kind, sub, offset) \ argument
387 static DEVICE_ATTR(kind##offset##sub, S_IRUGO, \
388 sysfs_show_##kind##offset##sub, NULL);
390 #define create_sysfs_device_rw(kind, sub, offset) \ argument
391 static DEVICE_ATTR(kind##offset##sub, S_IRUGO | S_IWUSR, \
392 sysfs_show_##kind##offset##sub, sysfs_set_##kind##offset##sub);
394 #define sysfs_ro_n(kind, sub, offset) \ argument
395 create_getter_n(kind, offset, sub); \
396 create_sysfs_device_ro(kind, sub, offset);
398 #define sysfs_rw_n(kind, sub, offset, reg) \ argument
399 create_getter_n(kind, offset, sub); \
400 create_setter_n(kind, offset, sub, reg); \
401 create_sysfs_device_rw(kind, sub, offset);
403 #define sysfs_rw(kind, sub, reg) \ argument
404 create_getter(kind, sub); \
405 create_setter(kind, sub, reg); \
406 create_sysfs_device_rw(kind, sub,);
484 static int fscpos_detect(struct i2c_client *new_client, int kind, in fscpos_detect() argument
493 if (kind < 0) { in fscpos_detect()