Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/drivers/s390/scsi/
Dzfcp_unit.c22 void zfcp_unit_scsi_scan(struct zfcp_unit *unit) in zfcp_unit_scsi_scan() argument
24 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan()
27 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_scsi_scan()
36 struct zfcp_unit *unit = container_of(work, struct zfcp_unit, in zfcp_unit_scsi_scan_work() local
39 zfcp_unit_scsi_scan(unit); in zfcp_unit_scsi_scan_work()
40 put_device(&unit->dev); in zfcp_unit_scsi_scan_work()
55 struct zfcp_unit *unit; in zfcp_unit_queue_scsi_scan() local
58 list_for_each_entry(unit, &port->unit_list, list) { in zfcp_unit_queue_scsi_scan()
59 get_device(&unit->dev); in zfcp_unit_queue_scsi_scan()
61 &unit->scsi_work) <= 0) in zfcp_unit_queue_scsi_scan()
[all …]
/drivers/char/xillybus/
Dxillybus_class.c56 struct xilly_unit *unit, *u; in xillybus_init_chrdev() local
58 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in xillybus_init_chrdev()
60 if (!unit) in xillybus_init_chrdev()
66 snprintf(unit->name, UNITNAMELEN, "%s", prefix); in xillybus_init_chrdev()
69 snprintf(unit->name, UNITNAMELEN, "%s_%02d", in xillybus_init_chrdev()
74 if (!strcmp(unit->name, u->name)) { in xillybus_init_chrdev()
80 rc = alloc_chrdev_region(&mdev, 0, num_nodes, unit->name); in xillybus_init_chrdev()
87 unit->major = MAJOR(mdev); in xillybus_init_chrdev()
88 unit->lowest_minor = MINOR(mdev); in xillybus_init_chrdev()
89 unit->num_nodes = num_nodes; in xillybus_init_chrdev()
[all …]
/drivers/block/
Damiflop.c265 static struct amiga_floppy_struct unit[FD_MAX_UNITS]; variable
407 if (unit[drive].track % 2 != 0) in fd_select()
409 if (unit[drive].motor == 1) in fd_select()
462 if (!unit[nr].motor) { in fd_motor_on()
463 unit[nr].motor = 1; in fd_motor_on()
501 unit[drive].motor = 0; in fd_motor_off()
529 for (n = unit[drive].type->tracks/2; n != 0; --n) { in fd_calibrate()
537 ms_delay(unit[drive].type->step_delay); in fd_calibrate()
539 ms_delay (unit[drive].type->settle_time); in fd_calibrate()
541 n = unit[drive].type->tracks + 20; in fd_calibrate()
[all …]
Dswim.c213 struct floppy_state unit[FD_MAX_UNIT]; member
751 struct floppy_state *fs = &swd->unit[swd->floppy_count]; in swim_add_floppy()
804 err = blk_mq_alloc_sq_tag_set(&swd->unit[drive].tag_set, in swim_floppy_init()
809 swd->unit[drive].disk = in swim_floppy_init()
810 blk_mq_alloc_disk(&swd->unit[drive].tag_set, in swim_floppy_init()
811 &swd->unit[drive]); in swim_floppy_init()
812 if (IS_ERR(swd->unit[drive].disk)) { in swim_floppy_init()
813 blk_mq_free_tag_set(&swd->unit[drive].tag_set); in swim_floppy_init()
814 err = PTR_ERR(swd->unit[drive].disk); in swim_floppy_init()
818 swd->unit[drive].swd = swd; in swim_floppy_init()
[all …]
Dataflop.c306 } unit[FD_MAX_UNITS]; variable
308 #define UD unit[drive]
309 #define UDT unit[drive].disktype
310 #define SUD unit[SelectedDrive]
311 #define SUDT unit[SelectedDrive].disktype
759 q = unit[drive].disk[type]->queue; in do_format()
1183 set_capacity(unit[SelectedDrive].disk[0], in fd_rwsec_done1()
1198 set_capacity(unit[SelectedDrive].disk[0], in fd_rwsec_done1()
1438 unsigned int drive = p - unit; in floppy_check_events()
1460 unsigned int drive = p - unit; in floppy_revalidate()
[all …]
/drivers/clk/mmp/
Dreset.c15 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_of_reset_xlate() local
23 cell = &unit->cells[i]; in mmp_of_reset_xlate()
37 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_assert() local
42 cell = &unit->cells[id]; in mmp_clk_reset_assert()
59 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_deassert() local
64 cell = &unit->cells[id]; in mmp_clk_reset_deassert()
86 struct mmp_clk_reset_unit *unit; in mmp_clk_reset_register() local
88 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in mmp_clk_reset_register()
89 if (!unit) in mmp_clk_reset_register()
92 unit->cells = cells; in mmp_clk_reset_register()
[all …]
Dclk.c10 void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, in mmp_clk_init() argument
19 unit->clk_table = clk_table; in mmp_clk_init()
20 unit->nr_clks = nr_clks; in mmp_clk_init()
21 unit->clk_data.clks = clk_table; in mmp_clk_init()
22 unit->clk_data.clk_num = nr_clks; in mmp_clk_init()
23 of_clk_add_provider(np, of_clk_src_onecell_get, &unit->clk_data); in mmp_clk_init()
26 void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit, in mmp_register_fixed_rate_clks() argument
44 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_rate_clks()
48 void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit, in mmp_register_fixed_factor_clks() argument
66 unit->clk_table[clks[i].id] = clk; in mmp_register_fixed_factor_clks()
[all …]
Dclk-of-pxa1928.c29 struct mmp_clk_unit unit; member
71 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_pll_init() local
73 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa1928_pll_init()
76 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa1928_pll_init()
132 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_apb_periph_clk_init() local
134 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init()
137 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa1928_apb_periph_clk_init()
171 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa1928_axi_periph_clk_init() local
173 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
176 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, in pxa1928_axi_periph_clk_init()
[all …]
Dclk-of-pxa910.c51 struct mmp_clk_unit unit; member
97 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_pll_init() local
99 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa910_pll_init()
102 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa910_pll_init()
110 mmp_clk_add(unit, PXA910_CLK_UART_PLL, clk); in pxa910_pll_init()
167 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_apb_periph_clk_init() local
169 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init()
172 mmp_register_mux_clks(unit, apbcp_mux_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init()
175 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init()
178 mmp_register_gate_clks(unit, apbcp_gate_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init()
[all …]
Dclk-of-pxa168.c52 struct mmp_clk_unit unit; member
97 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_pll_init() local
99 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa168_pll_init()
102 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa168_pll_init()
110 mmp_clk_add(unit, PXA168_CLK_UART_PLL, clk); in pxa168_pll_init()
166 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_apb_periph_clk_init() local
168 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa168_apb_periph_clk_init()
171 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa168_apb_periph_clk_init()
216 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_axi_periph_clk_init() local
218 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa168_axi_periph_clk_init()
[all …]
Dclk-of-mmp2.c90 struct mmp_clk_unit unit; member
183 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_main_clk_init() local
185 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in mmp2_main_clk_init()
189 mmp_register_pll_clks(unit, mmp3_pll_clks, in mmp2_main_clk_init()
193 mmp_register_pll_clks(unit, pll_clks, in mmp2_main_clk_init()
198 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in mmp2_main_clk_init()
206 mmp_clk_add(unit, MMP2_CLK_UART_PLL, clk); in mmp2_main_clk_init()
219 mmp_register_gate_clks(unit, mpmu_gate_clks, pxa_unit->mpmu_base, in mmp2_main_clk_init()
286 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_apb_periph_clk_init() local
288 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in mmp2_apb_periph_clk_init()
[all …]
/drivers/block/paride/
Dpg.c245 int unit; in pg_init_units() local
248 for (unit = 0; unit < PG_UNITS; unit++) { in pg_init_units()
249 int *parm = *drives[unit]; in pg_init_units()
250 struct pg *dev = &devices[unit]; in pg_init_units()
257 snprintf(dev->name, PG_NAMELEN, "%s%c", name, 'a'+unit); in pg_init_units()
481 int k, unit; in pg_detect() local
503 for (unit = 0; unit < PG_UNITS; unit++, dev++) { in pg_detect()
504 int *parm = *drives[unit]; in pg_detect()
528 int unit = iminor(inode) & 0x7f; in pg_open() local
529 struct pg *dev = &devices[unit]; in pg_open()
[all …]
Dpt.c139 #define DU (*drives[unit])
605 int unit; in pt_detect() local
616 for (unit = 0; unit < PT_UNITS; unit++) { in pt_detect()
617 struct pt_unit *tape = &pt[unit]; in pt_detect()
625 snprintf(tape->name, PT_NAMELEN, "%s%d", name, unit); in pt_detect()
661 int unit = iminor(inode) & 0x7F; in pt_open() local
662 struct pt_unit *tape = pt + unit; in pt_open()
666 if (unit >= PT_UNITS || (!tape->present)) { in pt_open()
964 int unit; in pt_init() local
980 for (unit = 0; unit < PT_UNITS; unit++) in pt_init()
[all …]
Dpf.c291 int unit; in pf_init_units() local
294 for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { in pf_init_units()
313 pf->drive = (*drives[unit])[D_SLV]; in pf_init_units()
314 pf->lun = (*drives[unit])[D_LUN]; in pf_init_units()
315 snprintf(pf->name, PF_NAMELEN, "%s%d", name, unit); in pf_init_units()
317 disk->first_minor = unit; in pf_init_units()
322 if (!(*drives[unit])[D_PRT]) in pf_init_units()
724 int k, unit; in pf_detect() local
746 for (unit = 0; unit < PF_UNITS; unit++, pf++) { in pf_detect()
747 int *conf = *drives[unit]; in pf_detect()
[all …]
/drivers/ata/
Dpata_it821x.c159 int unit = adev->devno; in it821x_program_udma() local
168 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf); in it821x_program_udma()
189 u8 unit = adev->devno; in it821x_clock_strategy() local
232 if (pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy()
233 it821x_program_udma(ap, pair, itdev->udma[1-unit]); in it821x_clock_strategy()
234 it821x_program(ap, pair, itdev->pio[1-unit]); in it821x_clock_strategy()
240 if (itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy()
241 it821x_program_udma(ap, adev, itdev->udma[unit]); in it821x_clock_strategy()
242 it821x_program(ap, adev, itdev->pio[unit]); in it821x_clock_strategy()
262 int unit = adev->devno; in it821x_passthru_set_piomode() local
[all …]
/drivers/media/pci/saa7164/
Dsaa7164-cards.c50 .unit = {{
96 .unit = {{
142 .unit = {{
202 .unit = {{
262 .unit = {{
322 .unit = {{
382 .unit = {{
438 .unit = {{
498 .unit = {{
544 .unit = {{
[all …]
/drivers/char/hw_random/
Dn2-drv.c110 unsigned long unit) in n2rng_generic_read_control_v2() argument
116 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, in n2rng_generic_read_control_v2()
147 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument
151 return n2rng_generic_read_control_v2(ra, unit); in n2rng_control_settle_v2()
154 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument
167 watchdog_timeout, unit); in n2rng_write_ctl_one()
169 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one()
202 unsigned long unit, in n2rng_read_diag_data_one() argument
213 unit, ticks); in n2rng_read_diag_data_one()
221 unsigned long unit, in n2rng_generic_read_diag_data() argument
[all …]
/drivers/net/ppp/
Dppp_mppe.c106 int unit; member
250 mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, in mppe_init() argument
267 unit); in mppe_init()
278 debugstr, unit, (state->keylen == 16) ? 128 : 40, in mppe_init()
282 debugstr, unit, in mppe_init()
301 state->unit = unit; in mppe_init()
308 mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, in mppe_comp_init() argument
312 return mppe_init(arg, options, optlen, unit, debug, "mppe_comp_init"); in mppe_comp_init()
354 "(have: %d need: %d)\n", state->unit, in mppe_compress()
371 printk(KERN_DEBUG "mppe_compress[%d]: ccount %d\n", state->unit, in mppe_compress()
[all …]
/drivers/sh/maple/
Dmaple.c56 int unit; member
206 mdev->port, mdev->unit); in maple_allocq()
210 static struct maple_device *maple_alloc_dev(int port, int unit) in maple_alloc_dev() argument
222 mdev->unit = unit; in maple_alloc_dev()
248 int port, unit, from, to, len; in maple_build_block() local
252 unit = mq->dev->unit; in maple_build_block()
255 to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); in maple_build_block()
365 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver()
383 mdev->unit, function); in maple_attach_driver()
393 " (%d, %d), with error 0x%X\n", mdev->unit, in maple_attach_driver()
[all …]
/drivers/media/usb/uvc/
Duvc_driver.c802 struct uvc_entity *unit; in uvc_parse_vendor_control() local
847 unit = uvc_alloc_entity(UVC_VC_EXTENSION_UNIT, buffer[3], in uvc_parse_vendor_control()
849 if (unit == NULL) in uvc_parse_vendor_control()
852 memcpy(unit->guid, &buffer[4], 16); in uvc_parse_vendor_control()
853 unit->extension.bNumControls = buffer[20]; in uvc_parse_vendor_control()
854 memcpy(unit->baSourceID, &buffer[22], p); in uvc_parse_vendor_control()
855 unit->extension.bControlSize = buffer[22+p]; in uvc_parse_vendor_control()
856 unit->extension.bmControls = (u8 *)unit + sizeof(*unit); in uvc_parse_vendor_control()
857 unit->extension.bmControlsType = (u8 *)unit + sizeof(*unit) in uvc_parse_vendor_control()
859 memcpy(unit->extension.bmControls, &buffer[23+p], 2*n); in uvc_parse_vendor_control()
[all …]
/drivers/infiniband/hw/qib/
Dqib_fs.c363 char unit[10]; in add_cntr_files() local
367 snprintf(unit, sizeof(unit), "%u", dd->unit); in add_cntr_files()
368 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, in add_cntr_files()
371 pr_err("create_file(%s) failed: %d\n", unit, ret); in add_cntr_files()
380 unit, ret); in add_cntr_files()
387 unit, ret); in add_cntr_files()
394 unit, "portcounter_names", ret); in add_cntr_files()
406 unit, fname, ret); in add_cntr_files()
416 unit, fname, ret); in add_cntr_files()
425 unit, ret); in add_cntr_files()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dgf100.c373 gf100_fifo_intr_fault(struct nvkm_fifo *fifo, int unit) in gf100_fifo_intr_fault() argument
376 u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); in gf100_fifo_intr_fault()
377 u32 valo = nvkm_rd32(device, 0x002804 + (unit * 0x10)); in gf100_fifo_intr_fault()
378 u32 vahi = nvkm_rd32(device, 0x002808 + (unit * 0x10)); in gf100_fifo_intr_fault()
379 u32 type = nvkm_rd32(device, 0x00280c + (unit * 0x10)); in gf100_fifo_intr_fault()
385 info.engine = unit; in gf100_fifo_intr_fault()
405 gf100_fifo_intr_pbdma(struct gf100_fifo *fifo, int unit) in gf100_fifo_intr_pbdma() argument
409 u32 stat = nvkm_rd32(device, 0x040108 + (unit * 0x2000)); in gf100_fifo_intr_pbdma()
410 u32 addr = nvkm_rd32(device, 0x0400c0 + (unit * 0x2000)); in gf100_fifo_intr_pbdma()
411 u32 data = nvkm_rd32(device, 0x0400c4 + (unit * 0x2000)); in gf100_fifo_intr_pbdma()
[all …]
/drivers/net/
DSpace.c118 static unsigned long netdev_boot_base(const char *prefix, int unit) in netdev_boot_base() argument
124 sprintf(name, "%s%d", prefix, unit); in netdev_boot_base()
180 struct net_device *(*probe)(int unit);
184 static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) in probe_list2() argument
191 dev = p->probe(unit); in probe_list2()
235 static void __init ethif_probe2(int unit) in ethif_probe2() argument
237 unsigned long base_addr = netdev_boot_base("eth", unit); in ethif_probe2()
242 probe_list2(unit, isa_probes, base_addr == 0); in ethif_probe2()
/drivers/iio/imu/
Dadis.c46 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
48 .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
55 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
57 .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
64 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
66 .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
72 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
78 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_write_reg()
146 .delay.unit = SPI_DELAY_UNIT_USECS, in __adis_read_reg()
148 .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, in __adis_read_reg()
[all …]
/drivers/firewire/
Dcore-device.c135 static void get_modalias_ids(struct fw_unit *unit, int *id) in get_modalias_ids() argument
137 get_ids(&fw_parent_device(unit)->config_rom[5], id); in get_modalias_ids()
138 get_ids(unit->directory, id); in get_modalias_ids()
197 static int get_modalias(struct fw_unit *unit, char *buffer, size_t buffer_size) in get_modalias() argument
201 get_modalias_ids(unit, id); in get_modalias()
210 struct fw_unit *unit = fw_unit(dev); in fw_unit_uevent() local
213 get_modalias(unit, modalias, sizeof(modalias)); in fw_unit_uevent()
359 struct fw_unit *unit = fw_unit(dev); in modalias_show() local
362 length = get_modalias(unit, buf, PAGE_SIZE); in modalias_show()
372 struct fw_unit *unit = fw_unit(dev); in rom_index_show() local
[all …]

12345678910>>...12