Home
last modified time | relevance | path

Searched refs:to_index (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/hwmon/
Dapplesmc.c102 #define to_index(attr) (to_sensor_dev_attr(attr)->index & 0xffff) macro
783 const char *key = smcreg.index[to_index(devattr)]; in applesmc_show_sensor_label()
792 const char *key = smcreg.index[to_index(devattr)]; in applesmc_show_temperature()
814 sprintf(newkey, fan_speed_fmt[to_option(attr)], to_index(attr)); in applesmc_show_fan_speed()
837 sprintf(newkey, fan_speed_fmt[to_option(attr)], to_index(attr)); in applesmc_store_fan_speed()
857 manual = ((buffer[0] << 8 | buffer[1]) >> to_index(attr)) & 0x01; in applesmc_show_fan_manual()
883 val = val | (0x01 << to_index(attr)); in applesmc_store_fan_manual()
885 val = val & ~(0x01 << to_index(attr)); in applesmc_store_fan_manual()
906 sprintf(newkey, FAN_ID_FMT, to_index(attr)); in applesmc_show_fan_position()
/linux-4.4.14/drivers/md/
Ddm-cache-policy-smq.c93 static unsigned to_index(struct entry_space *es, struct entry *e) in to_index() function
153 head->prev = l->head = to_index(es, e); in l_add_head()
155 l->head = l->tail = to_index(es, e); in l_add_head()
169 tail->next = l->tail = to_index(es, e); in l_add_tail()
171 l->head = l->tail = to_index(es, e); in l_add_tail()
187 e->next = to_index(es, old); in l_add_before()
188 prev->next = old->prev = to_index(es, e); in l_add_before()
599 ht->buckets[bucket] = to_index(ht->es, e); in __h_insert()
752 return to_index(ea->es, e) - ea->begin; in get_index()