Lines Matching refs:echild
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()
146 return echild; in bbc_i2c_getdev()
150 struct bbc_i2c_client *bbc_i2c_attach(struct linux_ebus_child *echild) in bbc_i2c_attach() argument
152 struct bbc_i2c_bus *bp = find_bus_for_device(echild); in bbc_i2c_attach()
162 client->echild = echild; in bbc_i2c_attach()
163 client->bus = echild->resource[0].start; in bbc_i2c_attach()
164 client->address = echild->resource[1].start; in bbc_i2c_attach()
166 claim_device(bp, echild); in bbc_i2c_attach()
174 struct linux_ebus_child *echild = client->echild; in bbc_i2c_detach() local
176 release_device(bp, echild); in bbc_i2c_detach()
357 struct linux_ebus_child *echild; in attach_one_i2c() local
388 for (echild = edev->children; in attach_one_i2c()
389 echild && entry < 8; in attach_one_i2c()
390 echild = echild->next, entry++) { in attach_one_i2c()
391 bp->devs[entry].device = echild; in attach_one_i2c()