Searched refs:echild (Results 1 – 2 of 2) sorted by relevance
/linux-2.4.37.9/drivers/sbus/char/ |
D | bbc_i2c.c | 77 struct linux_ebus_child *echild; member 82 static int find_device(struct bbc_i2c_bus *bp, struct linux_ebus_child *echild) in find_device() argument 87 if (bp->devs[i].device == echild) { in find_device() 96 static void set_device_claimage(struct bbc_i2c_bus *bp, struct linux_ebus_child *echild, int val) in set_device_claimage() argument 101 if (bp->devs[i].device == echild) { in set_device_claimage() 111 static struct bbc_i2c_bus *find_bus_for_device(struct linux_ebus_child *echild) in find_bus_for_device() argument 116 if (find_device(bp, echild) != 0) in find_bus_for_device() 127 struct linux_ebus_child *echild = NULL; in bbc_i2c_getdev() local 135 if (!(echild = bp->devs[i].device)) in bbc_i2c_getdev() 139 echild = NULL; in bbc_i2c_getdev() [all …]
|
D | bbc_envctrl.c | 490 static void attach_one_temp(struct linux_ebus_child *echild, int temp_idx) in attach_one_temp() argument 497 tp->client = bbc_i2c_attach(echild); in attach_one_temp() 536 static void attach_one_fan(struct linux_ebus_child *echild, int fan_idx) in attach_one_fan() argument 543 fp->client = bbc_i2c_attach(echild); in attach_one_fan() 576 struct linux_ebus_child *echild; in bbc_envctrl_init() local 582 while ((echild = bbc_i2c_getdev(devidx++)) != NULL) { in bbc_envctrl_init() 583 if (!strcmp(echild->prom_name, "temperature")) in bbc_envctrl_init() 584 attach_one_temp(echild, temp_index++); in bbc_envctrl_init() 585 if (!strcmp(echild->prom_name, "fan-control")) in bbc_envctrl_init() 586 attach_one_fan(echild, fan_index++); in bbc_envctrl_init()
|