Home
last modified time | relevance | path

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

/drivers/hwmon/
Demc2305.c156 int cdev_idx; in emc2305_get_cur_state() local
159 cdev_idx = emc2305_get_cdev_idx(cdev); in emc2305_get_cur_state()
160 if (cdev_idx < 0) in emc2305_get_cur_state()
161 return cdev_idx; in emc2305_get_cur_state()
163 *state = data->cdev_data[cdev_idx].cur_state; in emc2305_get_cur_state()
174 static int __emc2305_set_cur_state(struct emc2305_data *data, int cdev_idx, unsigned long state) in __emc2305_set_cur_state() argument
180 state = max_t(unsigned long, state, data->cdev_data[cdev_idx].last_hwmon_state); in __emc2305_set_cur_state()
184 data->cdev_data[cdev_idx].cur_state = state; in __emc2305_set_cur_state()
186 ret = i2c_smbus_write_byte_data(client, EMC2305_REG_FAN_DRIVE(cdev_idx), val); in __emc2305_set_cur_state()
206 int cdev_idx, ret; in emc2305_set_cur_state() local
[all …]
/drivers/fsi/
Dfsi-core.c85 int cdev_idx; member
906 return kasprintf(GFP_KERNEL, "fsi/cfam%d", slave->cdev_idx); in cfam_devnode()
908 return kasprintf(GFP_KERNEL, "cfam%d", slave->cdev_idx); in cfam_devnode()
1082 &slave->cdev_idx); in fsi_slave_init()
/drivers/misc/habanalabs/common/
Ddevice.c1785 hdev->cdev_idx = hdev->id / 2; in hl_device_init()
1787 name = kasprintf(GFP_KERNEL, "hl%d", hdev->cdev_idx); in hl_device_init()
1802 name = kasprintf(GFP_KERNEL, "hl_controlD%d", hdev->cdev_idx); in hl_device_init()
2081 hdev->cdev_idx, dev_name(&(hdev)->pdev->dev)); in hl_device_init()
2084 hdev->cdev_idx, dev_name(&(hdev)->pdev->dev)); in hl_device_init()
Dhabanalabs.h3321 u16 cdev_idx; member