Home | History | Annotate | Download | only in btt

Lines Matching refs:device

62 struct d_info *__dip_find(__u32 device)
67 __list_for_each(p, &dev_heads[DEV_HASH(device)]) {
69 if (device == dip->device)
106 static inline char *mkhandle(char *str, __u32 device, char *post)
108 int mjr = device >> MINORBITS;
109 int mnr = device & ((1 << MINORBITS) - 1);
125 struct d_info *dip_alloc(__u32 device, struct io *iop)
127 struct d_info *dip = __dip_find(device);
136 dip->device = device;
138 dip->devmap = dev_map_find(device);
139 dip->bno_dump_handle = bno_dump_alloc(device);
140 dip->up_hist_handle = unplug_hist_alloc(device);
141 dip->seek_handle = seeki_alloc(mkhandle(str, device, "_d2d"));
142 dip->q2q_handle = seeki_alloc(mkhandle(str, device, "_q2q"));
143 dip->aqd_handle = aqd_alloc(mkhandle(str, device, "_aqd"));
145 plat_alloc(mkhandle(str, device, "_q2d_plat"));
147 plat_alloc(mkhandle(str, device, "_q2c_plat"));
149 plat_alloc(mkhandle(str, device, "_d2c_plat"));
151 list_add_tail(&dip->hash_head, &dev_heads[DEV_HASH(device)]);
160 device, "_pit.dat"));