Searched refs:to_index (Results 1 – 4 of 4) sorted by relevance
/drivers/hwmon/ |
D | applesmc.c | 90 #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/ |
D | spectrum_acl_ctcam.c | 137 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()
|
D | spectrum1_mr_tcam.c | 216 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/ |
D | dm-cache-policy-smq.c | 95 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()
|