Home
last modified time | relevance | path

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

/drivers/hwmon/
Dapplesmc.c90 #define to_index(attr) (to_sensor_dev_attr(attr)->index & 0xffff) macro
773 const char *key = smcreg.index[to_index(devattr)]; in applesmc_show_sensor_label()
782 const char *key = smcreg.index[to_index(devattr)]; in applesmc_show_temperature()
805 to_index(attr)); in applesmc_show_fan_speed()
829 to_index(attr)); in applesmc_store_fan_speed()
849 manual = ((buffer[0] << 8 | buffer[1]) >> to_index(attr)) & 0x01; in applesmc_show_fan_manual()
875 val = val | (0x01 << to_index(attr)); in applesmc_store_fan_manual()
877 val = val & ~(0x01 << to_index(attr)); in applesmc_store_fan_manual()
898 scnprintf(newkey, sizeof(newkey), FAN_ID_FMT, to_index(attr)); in applesmc_show_fan_position()
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_ctcam.c137 unsigned long to_index, in mlxsw_sp_acl_ctcam_region_parman_move() argument
145 from_index, to_index, count); in mlxsw_sp_acl_ctcam_region_parman_move()
Dspectrum1_mr_tcam.c216 unsigned long to_index, in mlxsw_sp1_mr_tcam_region_parman_move() argument
225 mr_tcam_region->rtar_key_type, to_index); in mlxsw_sp1_mr_tcam_region_parman_move()
/drivers/md/
Ddm-cache-policy-smq.c95 static unsigned to_index(struct entry_space *es, struct entry *e) in to_index() function
155 head->prev = l->head = to_index(es, e); in l_add_head()
157 l->head = l->tail = to_index(es, e); in l_add_head()
171 tail->next = l->tail = to_index(es, e); in l_add_tail()
173 l->head = l->tail = to_index(es, e); in l_add_tail()
189 e->next = to_index(es, old); in l_add_before()
190 prev->next = old->prev = to_index(es, e); in l_add_before()
619 ht->buckets[bucket] = to_index(ht->es, e); in __h_insert()
775 return to_index(ea->es, e) - ea->begin; in get_index()