Home
last modified time | relevance | path

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

/Linux-v6.6/lib/
Dparman.c126 struct parman_item *item, unsigned long to_index, in __parman_prio_move() argument
129 parman->ops->move(parman->priv, item->index, to_index, count); in __parman_prio_move()
136 unsigned long to_index; in parman_prio_shift_down() local
141 to_index = parman_prio_last_index(prio) + 1; in parman_prio_shift_down()
142 __parman_prio_move(parman, prio, item, to_index, 1); in parman_prio_shift_down()
144 item->index = to_index; in parman_prio_shift_down()
151 unsigned long to_index; in parman_prio_shift_up() local
156 to_index = parman_prio_first_index(prio) - 1; in parman_prio_shift_up()
157 __parman_prio_move(parman, prio, item, to_index, 1); in parman_prio_shift_up()
159 item->index = to_index; in parman_prio_shift_up()
[all …]
Dtest_parman.c114 unsigned long to_index, unsigned long count) in test_parman_move() argument
119 memmove(&prio_array[to_index], &prio_array[from_index], in test_parman_move()
/Linux-v6.6/drivers/hwmon/
Dapplesmc.c94 #define to_index(attr) (to_sensor_dev_attr(attr)->index & 0xffff) macro
815 const char *key = smcreg.index[to_index(devattr)]; in applesmc_show_sensor_label()
824 const char *key = smcreg.index[to_index(devattr)]; in applesmc_show_temperature()
847 to_index(attr)); in applesmc_show_fan_speed()
870 to_index(attr)); in applesmc_store_fan_speed()
893 manual = ((buffer[0] << 8 | buffer[1]) >> to_index(attr)) & 0x01; in applesmc_show_fan_manual()
916 val = val | (0x01 << to_index(attr)); in applesmc_store_fan_manual()
918 val = val & ~(0x01 << to_index(attr)); in applesmc_store_fan_manual()
939 scnprintf(newkey, sizeof(newkey), FAN_ID_FMT, to_index(attr)); in applesmc_show_fan_position()
/Linux-v6.6/include/linux/
Dparman.h60 unsigned long to_index, unsigned long count);
/Linux-v6.6/drivers/media/i2c/
Dmax9286.c235 #define to_index(priv, source) ((source) - &(priv)->sources[0]) macro
384 unsigned int index = to_index(priv, source); in max9286_i2c_mux_init()
667 unsigned int index = to_index(priv, source); in max9286_notify_bound()
729 unsigned int index = to_index(priv, source); in max9286_notify_unbind()
752 unsigned int i = to_index(priv, source); in max9286_v4l2_notifier_register()
1312 enabled |= BIT(to_index(priv, source)); in max9286_poc_power_on()
1319 if (enabled & BIT(to_index(priv, source))) in max9286_poc_power_on()
1592 unsigned int index = to_index(priv, source); in max9286_get_poc_supplies()
/Linux-v6.6/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()
/Linux-v6.6/fs/overlayfs/
Dcopy_up.c864 bool to_index = false; in ovl_do_copy_up() local
877 to_index = true; in ovl_do_copy_up()
880 if (S_ISDIR(c->stat.mode) || c->stat.nlink == 1 || to_index) in ovl_do_copy_up()
883 if (to_index) { in ovl_do_copy_up()
912 if (to_index) { in ovl_do_copy_up()
928 if (to_index) in ovl_do_copy_up()
/Linux-v6.6/drivers/md/
Ddm-cache-policy-smq.c96 static unsigned int to_index(struct entry_space *es, struct entry *e) in to_index() function
156 head->prev = l->head = to_index(es, e); in l_add_head()
158 l->head = l->tail = to_index(es, e); in l_add_head()
172 tail->next = l->tail = to_index(es, e); in l_add_tail()
174 l->head = l->tail = to_index(es, e); in l_add_tail()
190 e->next = to_index(es, old); in l_add_before()
191 prev->next = old->prev = to_index(es, e); in l_add_before()
621 ht->buckets[bucket] = to_index(ht->es, e); in __h_insert()
778 return to_index(ea->es, e) - ea->begin; in get_index()