Lines Matching refs:dl
127 struct rfcomm_dev_list_req *dl;
131 dl = malloc(sizeof(*dl) + RFCOMM_MAX_DEV * sizeof(*di));
132 if (!dl) {
137 dl->dev_num = RFCOMM_MAX_DEV;
138 di = dl->dev_info;
140 if (ioctl(ctl, RFCOMMGETDEVLIST, (void *) dl) < 0) {
142 free(dl);
146 for (i = 0; i < dl->dev_num; i++)
148 free(dl);
239 struct rfcomm_dev_list_req *dl;
243 dl = malloc(sizeof(*dl) + RFCOMM_MAX_DEV * sizeof(*di));
244 if (!dl) {
249 dl->dev_num = RFCOMM_MAX_DEV;
250 di = dl->dev_info;
252 if (ioctl(ctl, RFCOMMGETDEVLIST, (void *) dl) < 0) {
254 free(dl);
258 for (i = 0; i < dl->dev_num; i++)
261 free(dl);