Lines Matching refs:dev
81 ri_dev_t *dev;
88 while ((dev = ap->cpus) != NULL) {
89 ap->cpus = dev->next;
90 ri_dev_free(dev);
92 while ((dev = ap->mems) != NULL) {
93 ap->mems = dev->next;
94 ri_dev_free(dev);
96 while ((dev = ap->ios) != NULL) {
97 ap->ios = dev->next;
98 ri_dev_free(dev);
104 ri_dev_free(ri_dev_t *dev)
108 assert(dev != NULL);
110 nvlist_free(dev->conf_props);
111 while ((client = dev->rcm_clients) != NULL) {
112 dev->rcm_clients = client->next;
115 free(dev);
434 dev_pack(ri_dev_t *dev, char **bufp, size_t *sizep, int encoding)
445 if (pack_add_byte_array(dev->conf_props, RI_DEV_PROPS, nvl,
449 if (client_list_pack(dev->rcm_clients, &buf, &size, encoding) != 0)
846 dev_unpack(char *buf, size_t size, ri_dev_t *dev)
856 &dev->conf_props) != 0) {
862 nvlist_print(stderr, dev->conf_props);
873 if (client_list_unpack(buf, size, &dev->rcm_clients) != 0) {
1021 ri_client_next(ri_dev_t *dev, ri_client_t *rcm_client)
1023 if (dev == NULL) {
1027 return ((rcm_client == NULL) ? dev->rcm_clients : rcm_client->next);
1031 ri_dev_conf_props(ri_dev_t *dev)
1033 if (dev == NULL) {
1037 return (dev->conf_props);