Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/
H A Demc2305.c158 int cdev_idx; in emc2305_get_cur_state() local
161 cdev_idx = emc2305_get_cdev_idx(cdev); in emc2305_get_cur_state()
162 if (cdev_idx < 0) in emc2305_get_cur_state()
163 return cdev_idx; in emc2305_get_cur_state()
165 *state = data->cdev_data[cdev_idx].cur_state; in emc2305_get_cur_state()
176 static int __emc2305_set_cur_state(struct emc2305_data *data, int cdev_idx, unsigned long state) in __emc2305_set_cur_state() argument
182 state = max_t(unsigned long, state, data->cdev_data[cdev_idx].last_hwmon_state); in __emc2305_set_cur_state()
186 data->cdev_data[cdev_idx].cur_state = state; in __emc2305_set_cur_state()
188 ret = i2c_smbus_write_byte_data(client, EMC2305_REG_FAN_DRIVE(cdev_idx), val); in __emc2305_set_cur_state()
208 int cdev_idx, ret; in emc2305_set_cur_state() local
[all …]
/openbmc/linux/drivers/fsi/
H A Dfsi-slave.h16 int cdev_idx; member
H A Dfsi-core.c870 return kasprintf(GFP_KERNEL, "fsi/cfam%d", slave->cdev_idx); in cfam_devnode()
872 return kasprintf(GFP_KERNEL, "cfam%d", slave->cdev_idx); in cfam_devnode()
1076 &slave->cdev_idx); in fsi_slave_init()
/openbmc/linux/drivers/accel/habanalabs/common/
H A Ddevice.c840 snprintf(workq_name, 32, "hl%u-free-jobs-%u", hdev->cdev_idx, (u32) i); in device_early_init()
849 snprintf(workq_name, 32, "hl%u-events", hdev->cdev_idx); in device_early_init()
857 snprintf(workq_name, 32, "hl%u-cs-completions", hdev->cdev_idx); in device_early_init()
866 snprintf(workq_name, 32, "hl%u-ts-free-obj", hdev->cdev_idx); in device_early_init()
875 snprintf(workq_name, 32, "hl%u-prefetch", hdev->cdev_idx); in device_early_init()
895 snprintf(workq_name, 32, "hl%u_device_reset", hdev->cdev_idx); in device_early_init()
2011 hdev->cdev_idx = hdev->id / 2; in create_cdev()
2013 name = kasprintf(GFP_KERNEL, "hl%d", hdev->cdev_idx); in create_cdev()
2028 name = kasprintf(GFP_KERNEL, "hl_controlD%d", hdev->cdev_idx); in create_cdev()
2336 hdev->cdev_idx, dev_name(&hdev->pdev->dev)); in hl_device_init()
H A Dhabanalabs.h3424 u16 cdev_idx; member
/openbmc/linux/include/trace/events/
H A Dfsi.h171 __entry->idx = slave->cdev_idx;