Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/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-6.1.9/include/linux/
Dparman.h60 unsigned long to_index, unsigned long count);
/linux-6.1.9/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-6.1.9/fs/overlayfs/
Dcopy_up.c800 bool to_index = false; in ovl_do_copy_up() local
813 to_index = true; in ovl_do_copy_up()
816 if (S_ISDIR(c->stat.mode) || c->stat.nlink == 1 || to_index) in ovl_do_copy_up()
819 if (to_index) { in ovl_do_copy_up()
848 if (to_index) { in ovl_do_copy_up()
863 if (to_index) in ovl_do_copy_up()
/linux-6.1.9/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()
/linux-6.1.9/drivers/media/i2c/
Dmax9286.c210 #define to_index(priv, source) ((source) - &(priv)->sources[0]) macro
320 unsigned int index = to_index(priv, source); in max9286_i2c_mux_init()
530 unsigned int index = to_index(priv, source); in max9286_notify_bound()
592 unsigned int index = to_index(priv, source); in max9286_notify_unbind()
615 unsigned int i = to_index(priv, source); in max9286_v4l2_notifier_register()