/linux-4.1.27/drivers/s390/scsi/ |
D | zfcp_unit.c | 21 void zfcp_unit_scsi_scan(struct zfcp_unit *unit) in zfcp_unit_scsi_scan() argument 23 struct fc_rport *rport = unit->port->rport; in zfcp_unit_scsi_scan() 26 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_scsi_scan() 34 struct zfcp_unit *unit = container_of(work, struct zfcp_unit, in zfcp_unit_scsi_scan_work() local 37 zfcp_unit_scsi_scan(unit); in zfcp_unit_scsi_scan_work() 38 put_device(&unit->dev); in zfcp_unit_scsi_scan_work() 53 struct zfcp_unit *unit; in zfcp_unit_queue_scsi_scan() local 56 list_for_each_entry(unit, &port->unit_list, list) { in zfcp_unit_queue_scsi_scan() 57 get_device(&unit->dev); in zfcp_unit_queue_scsi_scan() 59 &unit->scsi_work) <= 0) in zfcp_unit_queue_scsi_scan() [all …]
|
D | zfcp_sysfs.c | 78 ZFCP_DEFINE_ATTR(zfcp_unit, unit, status, "0x%08x\n", 79 zfcp_unit_sdev_status(unit)); 80 ZFCP_DEFINE_ATTR(zfcp_unit, unit, in_recovery, "%d\n", 81 (zfcp_unit_sdev_status(unit) & 83 ZFCP_DEFINE_ATTR(zfcp_unit, unit, access_denied, "%d\n", 84 (zfcp_unit_sdev_status(unit) & 86 ZFCP_DEFINE_ATTR_CONST(unit, access_shared, "%d\n", 0); 87 ZFCP_DEFINE_ATTR_CONST(unit, access_readonly, "%d\n", 0); 125 struct zfcp_unit *unit = container_of(dev, struct zfcp_unit, dev); in zfcp_sysfs_unit_failed_show() local 129 sdev = zfcp_unit_sdev(unit); in zfcp_sysfs_unit_failed_show() [all …]
|
D | zfcp_ccw.c | 115 struct zfcp_unit *unit, *u; in zfcp_ccw_remove() local 128 list_for_each_entry_safe(unit, u, &port->unit_list, list) in zfcp_ccw_remove() 129 list_move(&unit->list, &unit_remove_lh); in zfcp_ccw_remove() 136 list_for_each_entry_safe(unit, u, &unit_remove_lh, list) in zfcp_ccw_remove() 137 device_unregister(&unit->dev); in zfcp_ccw_remove()
|
/linux-4.1.27/include/net/ |
D | Space.h | 5 struct net_device *hp100_probe(int unit); 6 struct net_device *ultra_probe(int unit); 7 struct net_device *wd_probe(int unit); 8 struct net_device *ne_probe(int unit); 9 struct net_device *fmv18x_probe(int unit); 10 struct net_device *i82596_probe(int unit); 11 struct net_device *ni65_probe(int unit); 12 struct net_device *sonic_probe(int unit); 13 struct net_device *smc_init(int unit); 14 struct net_device *atarilance_probe(int unit); [all …]
|
D | addrconf.h | 95 unsigned int unit) in addrconf_timeout_fixup() argument 105 if (0xfffffffe > LONG_MAX / unit && timeout > LONG_MAX / unit) in addrconf_timeout_fixup() 106 return LONG_MAX / unit; in addrconf_timeout_fixup()
|
/linux-4.1.27/sound/ |
D | sound_core.c | 227 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) in __sound_remove_unit() argument 232 if(p->unit_minor==unit) in __sound_remove_unit() 239 printk(KERN_ERR "Sound device %d went missing!\n", unit); in __sound_remove_unit() 309 static void sound_remove_unit(struct sound_unit **list, int unit) in sound_remove_unit() argument 314 p = __sound_remove_unit(list, unit); in sound_remove_unit() 361 int register_sound_special_device(const struct file_operations *fops, int unit, in register_sound_special_device() argument 364 const int chain = unit % SOUND_STEP; in register_sound_special_device() 375 if (unit >= SOUND_STEP) in register_sound_special_device() 377 max_unit = unit + 1; in register_sound_special_device() 393 if (unit >= SOUND_STEP) in register_sound_special_device() [all …]
|
/linux-4.1.27/drivers/clk/mmp/ |
D | reset.c | 14 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_of_reset_xlate() local 22 cell = &unit->cells[i]; in mmp_of_reset_xlate() 36 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_assert() local 41 cell = &unit->cells[id]; in mmp_clk_reset_assert() 58 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); in mmp_clk_reset_deassert() local 63 cell = &unit->cells[id]; in mmp_clk_reset_deassert() 85 struct mmp_clk_reset_unit *unit; in mmp_clk_reset_register() local 87 unit = kzalloc(sizeof(*unit), GFP_KERNEL); in mmp_clk_reset_register() 88 if (!unit) in mmp_clk_reset_register() 91 unit->cells = cells; in mmp_clk_reset_register() [all …]
|
D | clk.c | 10 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 …]
|
D | clk-of-pxa910.c | 49 struct mmp_clk_unit unit; member 93 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_pll_init() local 95 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa910_pll_init() 98 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa910_pll_init() 106 mmp_clk_add(unit, PXA910_CLK_UART_PLL, clk); in pxa910_pll_init() 155 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa910_apb_periph_clk_init() local 157 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init() 160 mmp_register_mux_clks(unit, apbcp_mux_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init() 163 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa910_apb_periph_clk_init() 166 mmp_register_gate_clks(unit, apbcp_gate_clks, pxa_unit->apbcp_base, in pxa910_apb_periph_clk_init() [all …]
|
D | clk-of-pxa168.c | 51 struct mmp_clk_unit unit; member 94 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_pll_init() local 96 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in pxa168_pll_init() 99 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in pxa168_pll_init() 107 mmp_clk_add(unit, PXA168_CLK_UART_PLL, clk); in pxa168_pll_init() 158 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_apb_periph_clk_init() local 160 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in pxa168_apb_periph_clk_init() 163 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in pxa168_apb_periph_clk_init() 208 struct mmp_clk_unit *unit = &pxa_unit->unit; in pxa168_axi_periph_clk_init() local 210 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, in pxa168_axi_periph_clk_init() [all …]
|
D | clk-of-mmp2.c | 58 struct mmp_clk_unit unit; member 110 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_pll_init() local 112 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, in mmp2_pll_init() 115 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, in mmp2_pll_init() 123 mmp_clk_add(unit, MMP2_CLK_UART_PLL, clk); in mmp2_pll_init() 177 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_apb_periph_clk_init() local 179 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, in mmp2_apb_periph_clk_init() 182 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, in mmp2_apb_periph_clk_init() 243 struct mmp_clk_unit *unit = &pxa_unit->unit; in mmp2_axi_periph_clk_init() local 256 mmp_clk_add(unit, MMP2_CLK_CCIC0_MIX, clk); in mmp2_axi_periph_clk_init() [all …]
|
D | clk.h | 149 void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit, 161 void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit, 175 void mmp_register_general_gate_clks(struct mmp_clk_unit *unit, 191 void mmp_register_gate_clks(struct mmp_clk_unit *unit, 207 void mmp_register_mux_clks(struct mmp_clk_unit *unit, 222 void mmp_register_div_clks(struct mmp_clk_unit *unit, 235 void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, 237 void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id,
|
/linux-4.1.27/arch/powerpc/perf/ |
D | power4-pmu.c | 185 int unit; member 220 int pmc, psel, unit, byte, bit; in p4_marked_instr_event() local 238 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p4_marked_instr_event() 240 switch (unit) { in p4_marked_instr_event() 257 int pmc, byte, unit, lower, sh; in p4_get_constraint() local 270 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p4_get_constraint() 272 if (unit) { in p4_get_constraint() 282 if (!p4_unitinfo[unit].unit) in p4_get_constraint() 284 mask |= p4_unitinfo[unit].mask; in p4_get_constraint() 285 value |= p4_unitinfo[unit].value; in p4_get_constraint() [all …]
|
D | power5-pmu.c | 143 int pmc, byte, unit, sh; in power5_get_constraint() local 161 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5_get_constraint() 162 if (unit > PM_LASTUNIT) in power5_get_constraint() 164 if (unit == PM_ISU0_ALT) in power5_get_constraint() 165 unit = PM_ISU0; in power5_get_constraint() 166 mask |= unit_cons[unit][0]; in power5_get_constraint() 167 value |= unit_cons[unit][1]; in power5_get_constraint() 170 if (unit != PM_LSU1) in power5_get_constraint() 173 ++unit; in power5_get_constraint() 176 if (unit == PM_GRS) { in power5_get_constraint() [all …]
|
D | power5+-pmu.c | 139 int pmc, byte, unit, sh; in power5p_get_constraint() local 154 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power5p_get_constraint() 155 if (unit > PM_LASTUNIT) in power5p_get_constraint() 157 if (unit == PM_ISU0_ALT) in power5p_get_constraint() 158 unit = PM_ISU0; in power5p_get_constraint() 159 mask |= unit_cons[unit][0]; in power5p_get_constraint() 160 value |= unit_cons[unit][1]; in power5p_get_constraint() 163 if (unit != PM_LSU1) in power5p_get_constraint() 166 ++unit; in power5p_get_constraint() 169 if (unit == PM_GRS) { in power5p_get_constraint() [all …]
|
D | ppc970-pmu.c | 149 int pmc, psel, unit, byte, bit; in p970_marked_instr_event() local 167 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_marked_instr_event() 169 switch (unit) { in p970_marked_instr_event() 197 int pmc, byte, unit, sh, spcsel; in p970_get_constraint() local 210 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in p970_get_constraint() 211 if (unit) { in p970_get_constraint() 212 if (unit > PM_LASTUNIT) in p970_get_constraint() 214 mask |= unit_cons[unit][0]; in p970_get_constraint() 215 value |= unit_cons[unit][1]; in p970_get_constraint() 225 value |= (unsigned long)unit << (28 - 4 * byte); in p970_get_constraint() [all …]
|
D | power7-pmu.c | 88 int pmc, sh, unit; in power7_get_constraint() local 107 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_get_constraint() 108 if (unit == 6) { in power7_get_constraint() 218 int unit; in power7_marked_instr_event() local 221 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_marked_instr_event() 237 return unit == 0xd; in power7_marked_instr_event() 242 return unit == 0xd; in power7_marked_instr_event() 252 unsigned int pmc, unit, combine, l2sel, psel; in power7_compute_mmcr() local 271 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; in power7_compute_mmcr() 289 mmcr1 |= (unsigned long) unit in power7_compute_mmcr() [all …]
|
D | power8-pmu.c | 287 unsigned int unit, pmc, cache, ebb; in power8_get_constraint() local 296 unit = (event >> EVENT_UNIT_SHIFT) & EVENT_UNIT_MASK; in power8_get_constraint() 327 if (unit >= 6 && unit <= 9) { in power8_get_constraint() 405 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; in power8_compute_mmcr() local 425 unit = (event[i] >> EVENT_UNIT_SHIFT) & EVENT_UNIT_MASK; in power8_compute_mmcr() 439 mmcr1 |= unit << MMCR1_UNIT_SHIFT(pmc); in power8_compute_mmcr() 611 PMU_FORMAT_ATTR(unit, "config:12-15");
|
D | power6-pmu.c | 142 int bit, byte, unit; in power6_marked_instr_event() local 169 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; in power6_marked_instr_event() 170 mask = marked_bus_events[unit]; in power6_marked_instr_event()
|
/linux-4.1.27/drivers/block/ |
D | amiflop.c | 145 static struct amiga_floppy_struct unit[FD_MAX_UNITS]; variable 287 if (unit[drive].track % 2 != 0) in fd_select() 289 if (unit[drive].motor == 1) in fd_select() 342 if (!unit[nr].motor) { in fd_motor_on() 343 unit[nr].motor = 1; in fd_motor_on() 385 unit[drive].motor = 0; in fd_motor_off() 415 for (n = unit[drive].type->tracks/2; n != 0; --n) { in fd_calibrate() 423 ms_delay(unit[drive].type->step_delay); in fd_calibrate() 425 ms_delay (unit[drive].type->settle_time); in fd_calibrate() 427 n = unit[drive].type->tracks + 20; in fd_calibrate() [all …]
|
D | ataflop.c | 224 } unit[FD_MAX_UNITS]; variable 226 #define UD unit[drive] 227 #define UDT unit[drive].disktype 228 #define SUD unit[SelectedDrive] 229 #define SUDT unit[SelectedDrive].disktype 1076 set_capacity(unit[SelectedDrive].disk, in fd_rwsec_done1() 1091 set_capacity(unit[SelectedDrive].disk, in fd_rwsec_done1() 1332 unsigned int drive = p - unit; in floppy_check_events() 1354 unsigned int drive = p - unit; in floppy_revalidate() 1407 q = unit[fdc_queue].disk->queue; in set_next_request() [all …]
|
D | swim.c | 216 struct floppy_state unit[FD_MAX_UNIT]; member 786 return get_disk(swd->unit[drive].disk); in floppy_find() 791 struct floppy_state *fs = &swd->unit[swd->floppy_count]; in swim_add_floppy() 837 swd->unit[drive].disk = alloc_disk(1); in swim_floppy_init() 838 if (swd->unit[drive].disk == NULL) { in swim_floppy_init() 842 swd->unit[drive].swd = swd; in swim_floppy_init() 853 swd->unit[drive].disk->flags = GENHD_FL_REMOVABLE; in swim_floppy_init() 854 swd->unit[drive].disk->major = FLOPPY_MAJOR; in swim_floppy_init() 855 swd->unit[drive].disk->first_minor = drive; in swim_floppy_init() 856 sprintf(swd->unit[drive].disk->disk_name, "fd%d", drive); in swim_floppy_init() [all …]
|
/linux-4.1.27/drivers/ide/ |
D | it821x.c | 144 u8 unit = drive->dn & 1, conf; in it821x_program_udma() local 153 pci_write_config_byte(dev, 0x56 + 4 * channel + unit, conf); in it821x_program_udma() 175 u8 unit = drive->dn & 1, v; in it821x_clock_strategy() local 216 if(pair && itdev->udma[1-unit] != UDMA_OFF) { in it821x_clock_strategy() 217 it821x_program_udma(pair, itdev->udma[1-unit]); in it821x_clock_strategy() 218 it821x_program(pair, itdev->pio[1-unit]); in it821x_clock_strategy() 224 if(itdev->udma[unit] != UDMA_OFF) { in it821x_clock_strategy() 225 it821x_program_udma(drive, itdev->udma[unit]); in it821x_clock_strategy() 226 it821x_program(drive, itdev->pio[unit]); in it821x_clock_strategy() 244 u8 unit = drive->dn & 1, set_pio = pio; in it821x_set_pio_mode() local [all …]
|
D | cs5535.c | 79 u8 unit = drive->dn & 1; in cs5535_set_speed() local 98 wrmsr(unit ? ATAC_CH0D1_PIO : ATAC_CH0D0_PIO, reg, 0); in cs5535_set_speed() 101 rdmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, dummy); in cs5535_set_speed() 107 wrmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, 0); in cs5535_set_speed() 111 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); in cs5535_set_speed() 112 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, in cs5535_set_speed() 115 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); in cs5535_set_speed() 126 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, 0); in cs5535_set_speed()
|
D | cmd64x.c | 150 u8 unit = drive->dn & 0x01; in cmd64x_set_dma_mode() local 155 regU &= ~(unit ? 0xCA : 0x35); in cmd64x_set_dma_mode() 159 regU |= unit ? 0x0A : 0x05; in cmd64x_set_dma_mode() 162 regU |= unit ? 0x4A : 0x15; in cmd64x_set_dma_mode() 165 regU |= unit ? 0x8A : 0x25; in cmd64x_set_dma_mode() 168 regU |= unit ? 0x42 : 0x11; in cmd64x_set_dma_mode() 171 regU |= unit ? 0x82 : 0x21; in cmd64x_set_dma_mode() 174 regU |= unit ? 0xC2 : 0x31; in cmd64x_set_dma_mode()
|
D | triflex.c | 42 u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; in triflex_set_mode() local 78 triflex_timings &= ~(0xFFFF << (16 * unit)); in triflex_set_mode() 79 triflex_timings |= (timing << (16 * unit)); in triflex_set_mode()
|
D | siimage.c | 118 u8 unit = drive->dn & 1; in siimage_seldev() local 125 base |= unit << unit; in siimage_seldev() 257 u8 unit = drive->dn & 1; in sil_set_pio_mode() local 279 mode &= ~(unit ? 0x30 : 0x03); in sil_set_pio_mode() 283 mode |= unit ? 0x10 : 0x01; in sil_set_pio_mode() 307 u8 mode = 0, unit = drive->dn & 1; in sil_set_dma_mode() local 320 mode &= ~(unit ? 0x30 : 0x03); in sil_set_dma_mode() 330 mode |= unit ? 0x30 : 0x03; in sil_set_dma_mode() 333 mode |= unit ? 0x20 : 0x02; in sil_set_dma_mode()
|
D | aec62xx.c | 117 u8 unit = drive->dn & 1; in aec6260_set_mode() local 130 tmp1 = ((0x00 << (4*unit)) | (ultra & ~(7 << (4*unit)))); in aec6260_set_mode() 132 tmp2 = ((ultra_conf << (4*unit)) | (tmp1 & ~(7 << (4*unit)))); in aec6260_set_mode()
|
D | ide-timings.c | 106 #define ENOUGH(v, unit) (((v) - 1) / (unit) + 1) argument 107 #define EZ(v, unit) ((v) ? ENOUGH(v, unit) : 0) argument
|
D | ide-dma-sff.c | 85 u8 unit = drive->dn & 1; in ide_dma_host_set() local 89 dma_stat |= (1 << (5 + unit)); in ide_dma_host_set() 91 dma_stat &= ~(1 << (5 + unit)); in ide_dma_host_set()
|
D | qd65xx.c | 357 u8 config, unit, control; in qd_probe() local 365 unit = ! (config & QD_CONFIG_IDE_BASEPORT); in qd_probe() 367 if (unit) in qd_probe()
|
D | serverworks.c | 139 u8 unit = drive->dn & 1; in svwks_set_dma_mode() local 146 ultra_timing &= ~(0x0F << (4*unit)); in svwks_set_dma_mode() 151 ultra_timing |= (udma_modes[speed - XFER_UDMA_0] << (4 * unit)); in svwks_set_dma_mode()
|
/linux-4.1.27/drivers/block/paride/ |
D | pg.c | 244 int unit; in pg_init_units() local 247 for (unit = 0; unit < PG_UNITS; unit++) { in pg_init_units() 248 int *parm = *drives[unit]; in pg_init_units() 249 struct pg *dev = &devices[unit]; in pg_init_units() 256 snprintf(dev->name, PG_NAMELEN, "%s%c", name, 'a'+unit); in pg_init_units() 480 int k, unit; in pg_detect() local 496 for (unit = 0; unit < PG_UNITS; unit++, dev++) { in pg_detect() 497 int *parm = *drives[unit]; in pg_detect() 520 int unit = iminor(inode) & 0x7f; in pg_open() local 521 struct pg *dev = &devices[unit]; in pg_open() [all …]
|
D | pcd.c | 295 int unit; in pcd_init_units() local 298 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { in pcd_init_units() 307 cd->drive = (*drives[unit])[D_SLV]; in pcd_init_units() 308 if ((*drives[unit])[D_PRT]) in pcd_init_units() 312 snprintf(cd->name, sizeof(cd->info.name), "%s%d", name, unit); in pcd_init_units() 319 disk->first_minor = unit; in pcd_init_units() 657 int unit, r; in pcd_probe_capabilities() local 662 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { in pcd_probe_capabilities() 687 int k, unit; in pcd_detect() local 705 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { in pcd_detect() [all …]
|
D | pt.c | 139 #define DU (*drives[unit]) 604 int unit; in pt_detect() local 609 for (unit = 0; unit < PT_UNITS; unit++) { in pt_detect() 610 struct pt_unit *tape = &pt[unit]; in pt_detect() 618 snprintf(tape->name, PT_NAMELEN, "%s%d", name, unit); in pt_detect() 653 int unit = iminor(inode) & 0x7F; in pt_open() local 654 struct pt_unit *tape = pt + unit; in pt_open() 658 if (unit >= PT_UNITS || (!tape->present)) { in pt_open() 956 int unit; in pt_init() local 972 for (unit = 0; unit < PT_UNITS; unit++) in pt_init() [all …]
|
D | pf.c | 282 int unit; in pf_init_units() local 285 for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { in pf_init_units() 292 pf->drive = (*drives[unit])[D_SLV]; in pf_init_units() 293 pf->lun = (*drives[unit])[D_LUN]; in pf_init_units() 294 snprintf(pf->name, PF_NAMELEN, "%s%d", name, unit); in pf_init_units() 296 disk->first_minor = unit; in pf_init_units() 299 if (!(*drives[unit])[D_PRT]) in pf_init_units() 701 int k, unit; in pf_detect() local 718 for (unit = 0; unit < PF_UNITS; unit++, pf++) { in pf_detect() 719 int *conf = *drives[unit]; in pf_detect() [all …]
|
D | pd.c | 857 int found = 0, unit, pd_drive_count = 0; in pd_detect() local 860 for (unit = 0; unit < PD_UNITS; unit++) { in pd_detect() 861 int *parm = *drives[unit]; in pd_detect() 862 struct pd_unit *disk = pd + unit; in pd_detect() 868 snprintf(disk->name, PD_NAMELEN, "%s%c", name, 'a'+unit); in pd_detect() 885 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { in pd_detect() 886 int *parm = *drives[unit]; in pd_detect() 898 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { in pd_detect() 942 int unit; in pd_exit() local 944 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { in pd_exit()
|
D | paride.c | 302 static int pi_probe_unit(PIA * pi, int unit, char *scratch, int verbose) in pi_probe_unit() argument 306 s = unit; in pi_probe_unit() 326 for (pi->unit = s; pi->unit < e; pi->unit++) in pi_probe_unit() 348 int unit, int protocol, int delay, char *scratch, in pi_init() argument 364 (!protocols[s]) || (unit < 0) || in pi_init() 365 (unit >= protocols[s]->max_units)) { in pi_init() 400 if (pi_probe_unit(pi, unit, scratch, verbose)) in pi_init() 407 (pi, unit, scratch, verbose)) in pi_init()
|
D | bpck6.c | 135 PPCSTRUCT(pi)->ppc_id=pi->unit; in bpck6_test_port() 163 printk(KERN_DEBUG "PROBE UNIT %x on port:%x\n",pi->unit,pi->port); in bpck6_probe_unit() 167 PPCSTRUCT(pi)->ppc_id=pi->unit; in bpck6_probe_unit() 208 pi->unit,pi->mode,mode_string[pi->mode],pi->delay); in bpck6_log_adapter()
|
D | bpck.c | 201 id = pi->unit; in bpck_probe_unit() 222 w0(0xff-pi->unit); w2(4); w0(pi->unit); in bpck_connect() 265 w0(0xff-pi->unit); w2(4); w0(pi->unit); in bpck_force_spp() 338 pi->device,pi->port,pi->unit,pi->mode); in bpck_test_proto() 441 pi->device,BPCK_VERSION,&scratch[110],pi->unit); in bpck_log_adapter()
|
D | paride.h | 44 int unit; /* unit number for chained adapters */ member 65 int unit, /* unit number, if supported */
|
/linux-4.1.27/sound/firewire/bebob/ |
D | bebob.c | 69 struct fw_device *fw_dev = fw_parent_device(bebob->unit); in name_device() 84 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, in name_device() 90 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, in name_device() 96 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, in name_device() 102 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, in name_device() 113 data[0], data[1], dev_name(&bebob->unit->device), in name_device() 131 fw_unit_put(bebob->unit); in bebob_card_free() 145 get_saffire_spec(struct fw_unit *unit) in get_saffire_spec() argument 149 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) in get_saffire_spec() 159 check_audiophile_booted(struct fw_unit *unit) in check_audiophile_booted() argument [all …]
|
D | bebob.h | 75 struct fw_unit *unit; member 116 snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) in snd_bebob_read_block() argument 118 return snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, in snd_bebob_read_block() 124 snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) in snd_bebob_read_quad() argument 126 return snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, in snd_bebob_read_quad() 132 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, 134 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, 167 enum avc_bridgeco_plug_unit unit, in avc_bridgeco_fill_unit_addr() argument 173 buf[3] = unit; in avc_bridgeco_fill_unit_addr() 189 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, [all …]
|
D | bebob_stream.c | 72 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, in snd_bebob_stream_get_rate() 80 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, in snd_bebob_stream_get_rate() 91 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, in snd_bebob_stream_get_rate() 102 err = avc_general_set_sig_fmt(bebob->unit, rate, in snd_bebob_stream_set_rate() 107 err = avc_general_set_sig_fmt(bebob->unit, rate, in snd_bebob_stream_set_rate() 135 dev_err(&bebob->unit->device, in snd_bebob_stream_check_internal_clock() 141 dev_err(&bebob->unit->device, in snd_bebob_stream_check_internal_clock() 170 err = avc_bridgeco_get_plug_input(bebob->unit, addr, input); in snd_bebob_stream_check_internal_clock() 172 dev_err(&bebob->unit->device, in snd_bebob_stream_check_internal_clock() 223 err = avc_bridgeco_get_plug_ch_pos(bebob->unit, addr, buf, 256); in map_data_channels() [all …]
|
D | bebob_command.c | 11 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, in avc_audio_set_selector() argument 31 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_set_selector() 47 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, in avc_audio_get_selector() argument 67 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_audio_get_selector() 106 int avc_bridgeco_get_plug_type(struct fw_unit *unit, in avc_bridgeco_get_plug_type() argument 120 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_type() 141 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, in avc_bridgeco_get_plug_ch_pos() argument 150 err = fcp_avc_transaction(unit, buf, 12, buf, 256, in avc_bridgeco_get_plug_ch_pos() 171 int avc_bridgeco_get_plug_section_type(struct fw_unit *unit, in avc_bridgeco_get_plug_section_type() argument 187 err = fcp_avc_transaction(unit, buf, 12, buf, 12, in avc_bridgeco_get_plug_section_type() [all …]
|
D | bebob_maudio.c | 94 int snd_bebob_maudio_load_firmware(struct fw_unit *unit) in snd_bebob_maudio_load_firmware() argument 96 struct fw_device *device = fw_parent_device(unit); in snd_bebob_maudio_load_firmware() 106 err = snd_bebob_read_block(unit, INFO_OFFSET_SW_DATE, in snd_bebob_maudio_load_firmware() 115 dev_err(&unit->device, in snd_bebob_maudio_load_firmware() 126 dev_err(&unit->device, in snd_bebob_maudio_load_firmware() 137 return snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in get_meter() 197 err = fcp_avc_transaction(bebob->unit, buf, 12, buf, 12, in avc_maudio_set_special_clk() 274 dev_err(&bebob->unit->device, in snd_bebob_maudio_special_discover() 308 err = avc_general_get_sig_fmt(bebob->unit, rate, in special_get_rate() 319 err = avc_general_set_sig_fmt(bebob->unit, rate, in special_set_rate() [all …]
|
D | bebob_terratec.c | 20 err = avc_audio_get_selector(bebob->unit, 0, 9, &enable_ext); in phase88_rack_clk_src_get() 23 err = avc_audio_get_selector(bebob->unit, 0, 8, &enable_word); in phase88_rack_clk_src_get() 43 return avc_audio_get_selector(bebob->unit, 0, 4, id); in phase24_series_clk_src_get()
|
D | bebob_focusrite.c | 67 err = snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in saffire_read_block() 85 err = snd_fw_transaction(bebob->unit, TCODE_READ_QUADLET_REQUEST, in saffire_read_quad() 101 return snd_fw_transaction(bebob->unit, TCODE_WRITE_QUADLET_REQUEST, in saffire_write_quad()
|
D | bebob_yamaha.c | 35 return avc_audio_get_selector(bebob->unit, 0, 4, id); in clk_src_get()
|
/linux-4.1.27/sound/firewire/dice/ |
D | dice.c | 19 static int dice_interface_check(struct fw_unit *unit) in dice_interface_check() argument 28 struct fw_device *device = fw_parent_device(unit); in dice_interface_check() 46 fw_csr_iterator_init(&it, unit->directory); in dice_interface_check() 72 err = snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, in dice_interface_check() 91 err = snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, in dice_interface_check() 100 dev_err(&unit->device, in dice_interface_check() 197 struct fw_device *dev = fw_parent_device(dice->unit); in dice_card_strings() 220 fw_csr_string(dice->unit->directory, CSR_MODEL, model, sizeof(model)); in dice_card_strings() 224 dev_name(&dice->unit->device), 100 << dev->max_speed); in dice_card_strings() 241 fw_unit_put(dice->unit); in dice_card_free() [all …]
|
D | dice-stream.c | 69 fw_parent_device(dice->unit)->max_speed); in keep_resources() 149 dev_err(&dice->unit->device, in start_stream() 155 fw_parent_device(dice->unit)->max_speed); in start_stream() 217 dev_err(&dice->unit->device, in snd_dice_stream_start_duplex() 234 dev_err(&dice->unit->device, in snd_dice_stream_start_duplex() 242 dev_err(&dice->unit->device, in snd_dice_stream_start_duplex() 248 dev_err(&dice->unit->device, in snd_dice_stream_start_duplex() 255 dev_err(&dice->unit->device, in snd_dice_stream_start_duplex() 300 err = fw_iso_resources_init(resources, dice->unit); in init_stream() 305 err = amdtp_stream_init(stream, dice->unit, dir, CIP_BLOCKING); in init_stream()
|
D | dice-transaction.c | 43 return snd_fw_transaction(dice->unit, in snd_dice_transaction_write() 53 return snd_fw_transaction(dice->unit, in snd_dice_transaction_read() 175 err = snd_fw_transaction(dice->unit, TCODE_WRITE_QUADLET_REQUEST, in snd_dice_transaction_set_enable() 193 snd_fw_transaction(dice->unit, TCODE_WRITE_QUADLET_REQUEST, in snd_dice_transaction_clear_enable() 235 struct fw_device *device = fw_parent_device(dice->unit); in register_notification_address() 254 err = snd_fw_transaction(dice->unit, TCODE_LOCK_COMPARE_SWAP, in register_notification_address() 269 dev_err(&dice->unit->device, in register_notification_address() 289 struct fw_device *device = fw_parent_device(dice->unit); in unregister_notification_address() 300 snd_fw_transaction(dice->unit, TCODE_LOCK_COMPARE_SWAP, in unregister_notification_address() 346 err = snd_fw_transaction(dice->unit, TCODE_READ_BLOCK_REQUEST, in snd_dice_transaction_init()
|
/linux-4.1.27/drivers/char/hw_random/ |
D | n2-drv.c | 109 unsigned long unit) in n2rng_generic_read_control_v2() argument 115 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, in n2rng_generic_read_control_v2() 146 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) in n2rng_control_settle_v2() argument 150 return n2rng_generic_read_control_v2(ra, unit); in n2rng_control_settle_v2() 153 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, in n2rng_write_ctl_one() argument 166 watchdog_timeout, unit); in n2rng_write_ctl_one() 168 hv_err = n2rng_control_settle_v2(np, unit); in n2rng_write_ctl_one() 201 unsigned long unit, in n2rng_read_diag_data_one() argument 212 unit, ticks); in n2rng_read_diag_data_one() 220 unsigned long unit, in n2rng_generic_read_diag_data() argument [all …]
|
D | n2rng.h | 40 unsigned long unit, 52 unsigned long unit); 58 unsigned long unit,
|
/linux-4.1.27/sound/firewire/oxfw/ |
D | oxfw.c | 30 static bool detect_loud_models(struct fw_unit *unit) in detect_loud_models() argument 43 err = fw_csr_string(unit->directory, CSR_MODEL, in detect_loud_models() 58 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); in name_card() 72 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, in name_card() 77 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, in name_card() 102 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); in name_card() 122 fw_unit_put(oxfw->unit); in oxfw_card_free() 132 static int oxfw_probe(struct fw_unit *unit, in oxfw_probe() argument 139 if ((id->vendor_id == VENDOR_LOUD) && !detect_loud_models(unit)) in oxfw_probe() 142 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, in oxfw_probe() [all …]
|
D | oxfw.h | 47 struct fw_unit *unit; member 80 int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, 82 int avc_stream_get_format(struct fw_unit *unit, 86 avc_stream_get_format_single(struct fw_unit *unit, in avc_stream_get_format_single() argument 90 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); in avc_stream_get_format_single() 93 avc_stream_get_format_list(struct fw_unit *unit, in avc_stream_get_format_list() argument 98 return avc_stream_get_format(unit, dir, pid, buf, len, eid); in avc_stream_get_format_list() 105 int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate,
|
D | oxfw-stream.c | 46 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 52 err = avc_general_set_sig_fmt(oxfw->unit, rate, in set_rate() 94 err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); in set_stream_format() 196 dev_err(&oxfw->unit->device, in check_connection_used_by_others() 224 err = cmp_connection_init(conn, oxfw->unit, c_dir, 0); in snd_oxfw_stream_init_simplex() 228 err = amdtp_stream_init(stream, oxfw->unit, s_dir, CIP_NONBLOCKING); in snd_oxfw_stream_init_simplex() 303 dev_err(&oxfw->unit->device, in snd_oxfw_stream_start_simplex() 313 dev_err(&oxfw->unit->device, in snd_oxfw_stream_start_simplex() 324 dev_err(&oxfw->unit->device, in snd_oxfw_stream_start_simplex() 388 err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len); in snd_oxfw_stream_get_current_formation() [all …]
|
D | oxfw-command.c | 11 int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, in avc_stream_set_format() argument 34 err = fcp_avc_transaction(unit, buf, len + 10, buf, len + 10, in avc_stream_set_format() 51 int avc_stream_get_format(struct fw_unit *unit, in avc_stream_get_format() argument 77 err = fcp_avc_transaction(unit, buf, 12, buf, *len, in avc_stream_get_format() 108 int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate, in avc_general_inquiry_sig_fmt() argument 140 err = fcp_avc_transaction(unit, buf, 8, buf, 8, in avc_general_inquiry_sig_fmt()
|
D | oxfw-control.c | 49 err = fcp_avc_transaction(oxfw->unit, buf, 11, buf, 11, 0x3fe); in oxfw_mute_command() 53 dev_err(&oxfw->unit->device, "short FCP response\n"); in oxfw_mute_command() 58 dev_err(&oxfw->unit->device, "mute command failed\n"); in oxfw_mute_command() 110 err = fcp_avc_transaction(oxfw->unit, buf, 12, buf, 12, 0x3fe); in oxfw_volume_command() 114 dev_err(&oxfw->unit->device, "short FCP response\n"); in oxfw_volume_command() 119 dev_err(&oxfw->unit->device, "volume command failed\n"); in oxfw_volume_command()
|
/linux-4.1.27/drivers/ata/ |
D | pata_it821x.c | 159 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 …]
|
D | pata_acpi.c | 113 int unit = adev->devno; in pacpi_set_piomode() local 118 unit = 0; in pacpi_set_piomode() 122 acpi->gtm.drive[unit].pio = t->cycle; in pacpi_set_piomode() 136 int unit = adev->devno; in pacpi_set_dmamode() local 141 unit = 0; in pacpi_set_dmamode() 146 acpi->gtm.drive[unit].dma = t->udma; in pacpi_set_dmamode() 147 acpi->gtm.flags |= (1 << (2 * unit)); in pacpi_set_dmamode() 149 acpi->gtm.drive[unit].dma = t->cycle; in pacpi_set_dmamode() 150 acpi->gtm.flags &= ~(1 << (2 * unit)); in pacpi_set_dmamode()
|
D | pata_ns87415.c | 55 int unit = 2 * ap->port_no + adev->devno; in ns87415_set_mode() local 56 int timing = 0x44 + 2 * unit; in ns87415_set_mode() 76 iordy &= ~(1 << (4 + unit)); in ns87415_set_mode() 78 iordy |= (1 << (4 + unit)); in ns87415_set_mode()
|
D | pata_optidma.c | 206 int unit = 2 * ap->port_no + adev->devno; in optiplus_mode_setup() local 211 udcfg &= ~(1 << unit); in optiplus_mode_setup() 214 udcfg |= (1 << unit); in optiplus_mode_setup()
|
D | libata-acpi.c | 495 int unit; in ata_acpi_gtm_xfermask() local 499 unit = dev->devno; in ata_acpi_gtm_xfermask() 501 unit = 0; in ata_acpi_gtm_xfermask() 504 mode = ata_timing_cycle2mode(ATA_SHIFT_PIO, gtm->drive[unit].pio); in ata_acpi_gtm_xfermask() 511 if (!(gtm->flags & (1 << (2 * unit)))) in ata_acpi_gtm_xfermask() 516 mode = ata_timing_cycle2mode(type, gtm->drive[unit].dma); in ata_acpi_gtm_xfermask()
|
/linux-4.1.27/drivers/media/pci/saa7164/ |
D | saa7164-cards.c | 63 .unit = {{ 109 .unit = {{ 155 .unit = {{ 215 .unit = {{ 275 .unit = {{ 335 .unit = {{ 395 .unit = {{ 451 .unit = {{ 703 struct saa7164_unit *unit; in saa7164_i2caddr_to_unitid() local 707 unit = &saa7164_boards[dev->board].unit[i]; in saa7164_i2caddr_to_unitid() [all …]
|
/linux-4.1.27/include/linux/ |
D | sound.h | 11 extern int register_sound_special(const struct file_operations *fops, int unit); 12 extern int register_sound_special_device(const struct file_operations *fops, int unit, struct devic… 17 extern void unregister_sound_special(int unit); 18 extern void unregister_sound_mixer(int unit); 19 extern void unregister_sound_midi(int unit); 20 extern void unregister_sound_dsp(int unit);
|
D | firewire.h | 234 static inline struct fw_unit *fw_unit_get(struct fw_unit *unit) in fw_unit_get() argument 236 get_device(&unit->device); in fw_unit_get() 238 return unit; in fw_unit_get() 241 static inline void fw_unit_put(struct fw_unit *unit) in fw_unit_put() argument 243 put_device(&unit->device); in fw_unit_put() 246 static inline struct fw_device *fw_parent_device(struct fw_unit *unit) in fw_parent_device() argument 248 return fw_device(unit->device.parent); in fw_parent_device() 255 int (*probe)(struct fw_unit *unit, const struct ieee1394_device_id *id); 257 void (*update)(struct fw_unit *unit); 258 void (*remove)(struct fw_unit *unit);
|
D | ppp-comp.h | 47 int opt_len, int unit, int opthdr, int debug); 67 int opt_len, int unit, int opthdr, int mru,
|
D | netlink.h | 54 extern struct sock *__netlink_kernel_create(struct net *net, int unit, 58 netlink_kernel_create(struct net *net, int unit, struct netlink_kernel_cfg *cfg) in netlink_kernel_create() argument 60 return __netlink_kernel_create(net, unit, THIS_MODULE, cfg); in netlink_kernel_create()
|
D | isdn_ppp.h | 71 int unit,int debug); 174 int unit; member
|
/linux-4.1.27/sound/firewire/ |
D | fcp.c | 28 int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate, in avc_general_set_sig_fmt() argument 64 err = fcp_avc_transaction(unit, buf, 8, buf, 8, in avc_general_set_sig_fmt() 82 int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate, in avc_general_get_sig_fmt() argument 107 err = fcp_avc_transaction(unit, buf, 8, buf, 8, in avc_general_get_sig_fmt() 135 int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type, in avc_general_get_plug_info() argument 156 err = fcp_avc_transaction(unit, buf, 8, buf, 8, BIT(1) | BIT(2)); in avc_general_get_plug_info() 192 struct fw_unit *unit; member 223 int fcp_avc_transaction(struct fw_unit *unit, in fcp_avc_transaction() argument 231 t.unit = unit; in fcp_avc_transaction() 248 ret = snd_fw_transaction(t.unit, tcode, in fcp_avc_transaction() [all …]
|
D | iso-resources.c | 26 int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) in fw_iso_resources_init() argument 29 r->unit = unit; in fw_iso_resources_init() 108 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_allocate() 140 dev_err(&r->unit->device, in fw_iso_resources_allocate() 143 dev_err(&r->unit->device, in fw_iso_resources_allocate() 166 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_update() 192 dev_err(&r->unit->device, in fw_iso_resources_update() 195 dev_err(&r->unit->device, in fw_iso_resources_update() 213 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_free() 223 dev_err(&r->unit->device, in fw_iso_resources_free()
|
D | fcp.h | 17 int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate, 20 int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate, 23 int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type, 27 int fcp_avc_transaction(struct fw_unit *unit, 31 void fcp_bus_reset(struct fw_unit *unit);
|
D | isight.c | 51 struct fw_unit *unit; member 200 dev_err(&isight->unit->device, "queueing error: %d\n", err); in isight_packet() 227 err = snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, in isight_connect() 270 return iso_packets_buffer_init(&isight->buffer, isight->unit, in isight_open() 280 iso_packets_buffer_destroy(&isight->buffer, isight->unit); in isight_close() 303 return snd_fw_transaction(isight->unit, TCODE_READ_QUADLET_REQUEST, in reg_read() 309 return snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, in reg_write() 325 snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, in isight_stop_streaming() 604 fw_unit_put(isight->unit); in isight_card_free() 608 static u64 get_unit_base(struct fw_unit *unit) in get_unit_base() argument [all …]
|
D | scs1x.c | 34 struct fw_unit *unit; member 219 dev = fw_parent_device(scs->unit); in scs_output_tasklet() 371 err = snd_fw_transaction(scs->unit, TCODE_WRITE_BLOCK_REQUEST, in scs_init_hss_address() 374 dev_err(&scs->unit->device, "HSS1394 communication failed\n"); in scs_init_hss_address() 387 static int scs_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) in scs_probe() argument 389 struct fw_device *fw_dev = fw_parent_device(unit); in scs_probe() 394 err = snd_card_new(&unit->device, -16, NULL, THIS_MODULE, in scs_probe() 401 scs->unit = unit; in scs_probe() 424 fw_csr_string(unit->directory, CSR_MODEL, in scs_probe() 429 dev_name(&unit->device), 100 << fw_dev->max_speed); in scs_probe() [all …]
|
D | packets-buffer.c | 21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, in iso_packets_buffer_init() argument 44 err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, in iso_packets_buffer_init() 72 struct fw_unit *unit) in iso_packets_buffer_destroy() argument 74 fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); in iso_packets_buffer_destroy()
|
D | lib.c | 32 int snd_fw_transaction(struct fw_unit *unit, int tcode, in snd_fw_transaction() argument 36 struct fw_device *device = fw_parent_device(unit); in snd_fw_transaction() 58 dev_err(&unit->device, in snd_fw_transaction()
|
D | cmp.c | 51 dev_err(&c->resources.unit->device, "%cPCR%u: %pV", in cmp_error() 87 c->resources.unit, TCODE_LOCK_COMPARE_SWAP, in pcr_modify() 121 struct fw_unit *unit, in cmp_connection_init() argument 130 err = snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, in cmp_connection_init() 139 err = fw_iso_resources_init(&c->resources, unit); in cmp_connection_init() 166 c->resources.unit, TCODE_READ_QUADLET_REQUEST, in cmp_connection_check_used() 282 fw_parent_device(c->resources.unit)->max_speed); in cmp_connection_establish()
|
D | packets-buffer.h | 20 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, 24 struct fw_unit *unit);
|
D | iso-resources.h | 20 struct fw_unit *unit; member 30 struct fw_unit *unit);
|
D | amdtp.c | 78 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, in amdtp_stream_init() argument 81 s->unit = unit; in amdtp_stream_init() 613 dev_err(&s->unit->device, "queueing error: %d\n", err); in queue_packet() 700 dev_info_ratelimited(&s->unit->device, in handle_in_packet() 716 dev_info_ratelimited(&s->unit->device, in handle_in_packet() 750 dev_info(&s->unit->device, in handle_in_packet() 939 err = iso_packets_buffer_init(&s->buffer, s->unit, QUEUE_LENGTH, in amdtp_stream_start() 944 s->context = fw_iso_context_create(fw_parent_device(s->unit)->card, in amdtp_stream_start() 950 dev_err(&s->unit->device, in amdtp_stream_start() 985 iso_packets_buffer_destroy(&s->buffer, s->unit); in amdtp_stream_start() [all …]
|
D | amdtp.h | 113 struct fw_unit *unit; member 164 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit,
|
D | lib.h | 13 int snd_fw_transaction(struct fw_unit *unit, int tcode,
|
D | cmp.h | 38 struct fw_unit *unit,
|
/linux-4.1.27/arch/tile/kernel/ |
D | usb.c | 28 #define USB_HOST_DEF(unit, type, dmamask) \ argument 31 hci ## unit = { \ 32 .dev_index = unit, \ 35 static struct platform_device tilegx_usb_ ## type ## hci ## unit = { \ 37 .id = unit, \ 43 unit, \
|
/linux-4.1.27/drivers/net/ |
D | Space.c | 42 struct net_device *(*probe)(int unit); 46 static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) in probe_list2() argument 52 dev = p->probe(unit); in probe_list2() 131 static void __init ethif_probe2(int unit) in ethif_probe2() argument 133 unsigned long base_addr = netdev_boot_base("eth", unit); in ethif_probe2() 138 (void)( probe_list2(unit, m68k_probes, base_addr == 0) && in ethif_probe2() 139 probe_list2(unit, isa_probes, base_addr == 0)); in ethif_probe2()
|
/linux-4.1.27/Documentation/devicetree/bindings/powerpc/fsl/ |
D | srio-rmu.txt | 1 Message unit node: 3 For SRIO controllers that implement the message unit as part of the controller 5 node is composed of three types of sub-nodes ("fsl-srio-msg-unit", 6 "fsl-srio-dbell-unit" and "fsl-srio-port-write-unit"). 33 (msg-unit, doorbell, port-write). 44 Definition: Must include "fsl,srio-msg-unit-vX.Y", "fsl,srio-msg-unit". 74 "fsl,srio-dbell-unit-vX.Y", "fsl,srio-dbell-unit" 104 "fsl,srio-port-write-unit-vX.Y", "fsl,srio-port-write-unit" 137 message-unit@0 { 138 compatible = "fsl,srio-msg-unit"; [all …]
|
/linux-4.1.27/Documentation/mn10300/ |
D | compartmentalisation.txt | 25 The "unit level" is a processor plus all the external peripherals 32 (*) include/asm-mn10300/unit-asb2303/ 33 (*) arch/mn10300/unit-asb2303/ 37 (*) include/asm-mn10300/unit-asb2305/ 38 (*) arch/mn10300/unit-asb2305/ 54 include/asm-mn10300/unit => include/asm-mn10300/unit-ZZZZ/ 59 The appropriate arch/mn10300/unit-ZZZZ directory will also be entered by the 60 compilation process; all other unit-specific directories will be ignored.
|
/linux-4.1.27/drivers/net/ppp/ |
D | ppp_mppe.c | 111 int unit; member 273 mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, in mppe_init() argument 290 unit); in mppe_init() 305 debugstr, unit, (state->keylen == 16) ? 128 : 40, in mppe_init() 314 debugstr, unit, mkey, skey); in mppe_init() 331 state->unit = unit; in mppe_init() 338 mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, in mppe_comp_init() argument 342 return mppe_init(arg, options, optlen, unit, debug, "mppe_comp_init"); in mppe_comp_init() 386 "(have: %d need: %d)\n", state->unit, in mppe_compress() 403 printk(KERN_DEBUG "mppe_compress[%d]: ccount %d\n", state->unit, in mppe_compress() [all …]
|
D | ppp_deflate.c | 30 int unit; member 45 int unit, int hdrlen, int debug); 48 int unit, int hdrlen, int mru, int debug); 141 int unit, int hdrlen, int debug) in z_comp_init() argument 154 state->unit = unit; in z_comp_init() 356 int unit, int hdrlen, int mru, int debug) in z_decomp_init() argument 369 state->unit = unit; in z_decomp_init() 425 state->unit, isize); in z_decompress() 434 state->unit, seq, state->seqno & 0xffff); in z_decompress() 467 state->unit, r, (state->strm.msg? state->strm.msg: "")); in z_decompress() [all …]
|
D | bsd_comp.c | 143 unsigned char unit; /* ppp unit number */ member 174 int opt_len, int unit, int debug, int decomp); 176 int opt_len, int unit, int opthdr, int debug); 178 int opt_len, int unit, int opthdr, int mru, 464 int opt_len, int unit, int debug, int decomp) in bsd_init() argument 494 db->unit = unit; in bsd_init() 507 int opt_len, int unit, int opthdr, int debug) in bsd_comp_init() argument 509 return bsd_init (state, options, opt_len, unit, debug, 0); in bsd_comp_init() 513 int opt_len, int unit, int opthdr, int mru, in bsd_decomp_init() argument 516 return bsd_init (state, options, opt_len, unit, debug, 1); in bsd_decomp_init() [all …]
|
D | ppp_generic.c | 272 static struct ppp *ppp_create_interface(struct net *net, int unit, int *retp); 276 static struct ppp *ppp_find_unit(struct ppp_net *pn, int unit); 277 static struct channel *ppp_find_channel(struct ppp_net *pn, int unit); 278 static int ppp_connect_channel(struct channel *pch, int unit); 571 int unit, cflags; in ppp_ioctl() local 618 if (get_user(unit, p)) in ppp_ioctl() 620 err = ppp_connect_channel(pch, unit); in ppp_ioctl() 827 int unit, err = -EFAULT; in ppp_unattached_ioctl() local 837 if (get_user(unit, p)) in ppp_unattached_ioctl() 839 ppp = ppp_create_interface(net, unit, &err); in ppp_unattached_ioctl() [all …]
|
/linux-4.1.27/drivers/sh/maple/ |
D | maple.c | 57 int unit; member 207 mdev->port, mdev->unit); in maple_allocq() 211 static struct maple_device *maple_alloc_dev(int port, int unit) in maple_alloc_dev() argument 223 mdev->unit = unit; in maple_alloc_dev() 249 int port, unit, from, to, len; in maple_build_block() local 253 unit = mq->dev->unit; in maple_build_block() 256 to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); in maple_build_block() 366 mdev->product_name, function, mdev->port, mdev->unit); in maple_attach_driver() 384 mdev->unit, function); in maple_attach_driver() 394 " (%d, %d), with error 0x%X\n", mdev->unit, in maple_attach_driver() [all …]
|
/linux-4.1.27/sound/firewire/fireworks/ |
D | fireworks_transaction.c | 55 struct fw_unit *unit; member 63 int snd_efw_transaction_cmd(struct fw_unit *unit, in snd_efw_transaction_cmd() argument 66 return snd_fw_transaction(unit, TCODE_WRITE_BLOCK_REQUEST, in snd_efw_transaction_cmd() 71 int snd_efw_transaction_run(struct fw_unit *unit, in snd_efw_transaction_run() argument 79 t.unit = unit; in snd_efw_transaction_run() 92 ret = snd_efw_transaction_cmd(t.unit, (void *)cmd, cmd_size); in snd_efw_transaction_run() 105 dev_err(&t.unit->device, "EFW transaction timed out\n"); in snd_efw_transaction_run() 180 device = fw_parent_device(efw->unit); in handle_resp_for_user() 208 device = fw_parent_device(t->unit); in handle_resp_for_kernel() 291 void snd_efw_transaction_bus_reset(struct fw_unit *unit) in snd_efw_transaction_bus_reset() argument [all …]
|
D | fireworks.c | 75 struct fw_device *fw_dev = fw_parent_device(efw->unit); in get_hardware_info() 101 dev_name(&efw->unit->device), 100 << fw_dev->max_speed); in get_hardware_info() 189 fw_unit_put(efw->unit); in efw_card_free() 203 efw_probe(struct fw_unit *unit, in efw_probe() argument 222 err = snd_card_new(&unit->device, index[card_index], id[card_index], in efw_probe() 232 efw->unit = fw_unit_get(unit); in efw_probe() 288 dev_set_drvdata(&unit->device, efw); in efw_probe() 299 static void efw_update(struct fw_unit *unit) in efw_update() argument 301 struct snd_efw *efw = dev_get_drvdata(&unit->device); in efw_update() 303 snd_efw_transaction_bus_reset(efw->unit); in efw_update() [all …]
|
D | fireworks.h | 62 struct fw_unit *unit; member 112 int snd_efw_transaction_cmd(struct fw_unit *unit, 114 int snd_efw_transaction_run(struct fw_unit *unit, 119 void snd_efw_transaction_bus_reset(struct fw_unit *unit);
|
D | fireworks_stream.c | 30 err = cmp_connection_init(conn, efw->unit, c_dir, 0); in init_stream() 34 err = amdtp_stream_init(stream, efw->unit, s_dir, CIP_BLOCKING); in init_stream() 152 dev_err(&efw->unit->device, in check_connection_used_by_others() 271 dev_err(&efw->unit->device, in snd_efw_stream_start_duplex() 281 dev_err(&efw->unit->device, in snd_efw_stream_start_duplex()
|
/linux-4.1.27/arch/metag/kernel/ |
D | core_reg.c | 41 void core_reg_write(int unit, int reg, int thread, unsigned int val) in core_reg_write() argument 46 if (unit == TXUCT_ID) { in core_reg_write() 62 val = UNIT_VAL(unit) | REG_VAL(reg) | THREAD_VAL(thread); in core_reg_write() 83 unsigned int core_reg_read(int unit, int reg, int thread) in core_reg_read() argument 89 if (unit == TXUCT_ID) { in core_reg_read() 102 val = (UNIT_VAL(unit) | REG_VAL(reg) | THREAD_VAL(thread) | in core_reg_read()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | gk104.c | 711 gk104_fifo_intr_fault(struct gk104_fifo_priv *priv, int unit) in gk104_fifo_intr_fault() argument 713 u32 inst = nv_rd32(priv, 0x002800 + (unit * 0x10)); in gk104_fifo_intr_fault() 714 u32 valo = nv_rd32(priv, 0x002804 + (unit * 0x10)); in gk104_fifo_intr_fault() 715 u32 vahi = nv_rd32(priv, 0x002808 + (unit * 0x10)); in gk104_fifo_intr_fault() 716 u32 stat = nv_rd32(priv, 0x00280c + (unit * 0x10)); in gk104_fifo_intr_fault() 734 eu = nvkm_enum_find(gk104_fifo_fault_engine, unit); in gk104_fifo_intr_fault() 753 snprintf(euunk, sizeof(euunk), "UNK%02x", unit); in gk104_fifo_intr_fault() 822 gk104_fifo_intr_pbdma_0(struct gk104_fifo_priv *priv, int unit) in gk104_fifo_intr_pbdma_0() argument 824 u32 mask = nv_rd32(priv, 0x04010c + (unit * 0x2000)); in gk104_fifo_intr_pbdma_0() 825 u32 stat = nv_rd32(priv, 0x040108 + (unit * 0x2000)) & mask; in gk104_fifo_intr_pbdma_0() [all …]
|
D | gf100.c | 597 gf100_fifo_intr_fault(struct gf100_fifo_priv *priv, int unit) in gf100_fifo_intr_fault() argument 599 u32 inst = nv_rd32(priv, 0x002800 + (unit * 0x10)); in gf100_fifo_intr_fault() 600 u32 valo = nv_rd32(priv, 0x002804 + (unit * 0x10)); in gf100_fifo_intr_fault() 601 u32 vahi = nv_rd32(priv, 0x002808 + (unit * 0x10)); in gf100_fifo_intr_fault() 602 u32 stat = nv_rd32(priv, 0x00280c + (unit * 0x10)); in gf100_fifo_intr_fault() 620 eu = nvkm_enum_find(gf100_fifo_fault_engine, unit); in gf100_fifo_intr_fault() 639 snprintf(euunk, sizeof(euunk), "UNK%02x", unit); in gf100_fifo_intr_fault() 681 gf100_fifo_intr_pbdma(struct gf100_fifo_priv *priv, int unit) in gf100_fifo_intr_pbdma() argument 683 u32 stat = nv_rd32(priv, 0x040108 + (unit * 0x2000)); in gf100_fifo_intr_pbdma() 684 u32 addr = nv_rd32(priv, 0x0400c0 + (unit * 0x2000)); in gf100_fifo_intr_pbdma() [all …]
|
/linux-4.1.27/Documentation/ABI/stable/ |
D | sysfs-bus-firewire | 32 version of each unit present in the node. Specifier_id 34 u24 of the respective unit directory entries. 58 IEEE 1394 unit device attributes. 59 Read-only. Immutable during the unit device's lifetime. 66 Offset of the unit directory within the parent device's 76 Attributes common to IEEE 1394 node devices and unit devices. 78 Immutable during the unit device's lifetime. 82 IEEE 1394 node or the unit directory of an IEEE 1394 unit 99 Mandatory in unit directories according to IEEE 1212. 110 Mandatory in unit directories according to IEEE 1212. [all …]
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_fs.c | 236 char unit[10]; in create_device_files() local 239 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); in create_device_files() 240 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, in create_device_files() 243 printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret); in create_device_files() 251 "failed: %d\n", unit, ret); in create_device_files() 259 "failed: %d\n", unit, ret); in create_device_files() 301 char unit[10]; in remove_device_files() local 306 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); in remove_device_files() 307 dir = lookup_one_len(unit, root, strlen(unit)); in remove_device_files() 311 printk(KERN_ERR "Lookup of %s failed\n", unit); in remove_device_files()
|
D | ipath_diag.c | 283 int unit = iminor(in) - IPATH_DIAG_MINOR_BASE; in ipath_diag_open() local 294 dd = ipath_lookup(unit); in ipath_diag_open() 350 dp.unit = odp.unit; in ipath_diagpkt_write() 366 dd = ipath_lookup(dp.unit); in ipath_diagpkt_write() 370 dp.unit); in ipath_diagpkt_write()
|
D | ipath_user_sdma.h | 37 ipath_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 378 char unit[10]; in add_cntr_files() local 382 snprintf(unit, sizeof(unit), "%u", dd->unit); in add_cntr_files() 383 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, in add_cntr_files() 386 pr_err("create_file(%s) failed: %d\n", unit, ret); in add_cntr_files() 395 unit, ret); in add_cntr_files() 402 unit, ret); in add_cntr_files() 409 unit, "portcounter_names", ret); in add_cntr_files() 421 unit, fname, ret); in add_cntr_files() 431 unit, fname, ret); in add_cntr_files() 440 unit, ret); in add_cntr_files() [all …]
|
D | qib_driver.c | 85 const char *qib_get_unit_name(int unit) in qib_get_unit_name() argument 89 snprintf(iname, sizeof(iname), "infinipath%u", unit); in qib_get_unit_name() 664 dd->unit, ppd->port, lid); in qib_set_lid() 755 int qib_reset_device(int unit) in qib_reset_device() argument 758 struct qib_devdata *dd = qib_lookup(unit); in qib_reset_device() 768 qib_devinfo(dd->pcidev, "Reset on unit %u requested\n", unit); in qib_reset_device() 773 unit); in qib_reset_device() 812 unit, ret); in qib_reset_device() 816 unit); in qib_reset_device()
|
D | qib_user_sdma.h | 37 qib_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
|
D | qib_file_ops.c | 160 kinfo->spi_unit = dd->unit; in qib_get_base_info() 1415 static int find_free_ctxt(int unit, struct file *fp, in find_free_ctxt() argument 1418 struct qib_devdata *dd = qib_lookup(unit); in find_free_ctxt() 1552 static int find_hca(unsigned int cpu, int *unit) in find_hca() argument 1556 *unit = -1; in find_hca() 1577 *unit = ndev; in find_hca() 1595 dd->unit, in do_qib_user_sdma_queue_create() 1649 int unit; in qib_assign_ctxt() local 1655 if (!find_hca(cpu, &unit) && unit >= 0) in qib_assign_ctxt() 1656 if (!find_free_ctxt(unit, fp, uinfo)) { in qib_assign_ctxt() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
D | base.c | 52 struct nvkm_subdev *unit; in nvkm_mc_intr() local 65 unit = nvkm_subdev(pmc, map->unit); in nvkm_mc_intr() 66 if (unit && unit->intr) in nvkm_mc_intr() 67 unit->intr(unit); in nvkm_mc_intr()
|
/linux-4.1.27/arch/powerpc/boot/dts/fsl/ |
D | qoriq-rmu-0.dtsi | 42 message-unit@0 { 43 compatible = "fsl,srio-msg-unit"; 49 message-unit@100 { 50 compatible = "fsl,srio-msg-unit"; 56 doorbell-unit@400 { 57 compatible = "fsl,srio-dbell-unit"; 63 port-write-unit@4e0 { 64 compatible = "fsl,srio-port-write-unit";
|
D | pq3-rmu-0.dtsi | 42 message-unit@0 { 43 compatible = "fsl,srio-msg-unit"; 49 message-unit@100 { 50 compatible = "fsl,srio-msg-unit"; 56 doorbell-unit@400 { 57 compatible = "fsl,srio-dbell-unit"; 63 port-write-unit@4e0 { 64 compatible = "fsl,srio-port-write-unit";
|
/linux-4.1.27/drivers/firewire/ |
D | core-device.c | 149 static void get_modalias_ids(struct fw_unit *unit, int *id) in get_modalias_ids() argument 151 get_ids(&fw_parent_device(unit)->config_rom[5], id); in get_modalias_ids() 152 get_ids(unit->directory, id); in get_modalias_ids() 211 static int get_modalias(struct fw_unit *unit, char *buffer, size_t buffer_size) in get_modalias() argument 215 get_modalias_ids(unit, id); in get_modalias() 224 struct fw_unit *unit = fw_unit(dev); in fw_unit_uevent() local 227 get_modalias(unit, modalias, sizeof(modalias)); in fw_unit_uevent() 373 struct fw_unit *unit = fw_unit(dev); in modalias_show() local 376 length = get_modalias(unit, buf, PAGE_SIZE); in modalias_show() 386 struct fw_unit *unit = fw_unit(dev); in rom_index_show() local [all …]
|
D | sbp2.c | 165 struct fw_unit *unit; member 184 return fw_parent_device(tgt->unit); in target_parent_device() 189 return &tgt->unit->device; in tgt_dev() 194 return &lu->tgt->unit->device; in lu_dev() 1133 static void sbp2_remove(struct fw_unit *unit); 1135 static int sbp2_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) in sbp2_probe() argument 1137 struct fw_device *device = fw_parent_device(unit); in sbp2_probe() 1156 dev_set_drvdata(&unit->device, tgt); in sbp2_probe() 1157 tgt->unit = unit; in sbp2_probe() 1167 if (scsi_add_host_with_dma(shost, &unit->device, in sbp2_probe() [all …]
|
/linux-4.1.27/net/netfilter/ |
D | nft_limit.c | 25 u64 unit; member 38 priv->stamp = jiffies + priv->unit * HZ; in nft_limit_eval() 67 priv->unit = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_UNIT])); in nft_limit_init() 68 priv->stamp = jiffies + priv->unit * HZ; in nft_limit_init() 79 if (nla_put_be64(skb, NFTA_LIMIT_UNIT, cpu_to_be64(priv->unit))) in nft_limit_dump()
|
/linux-4.1.27/drivers/media/usb/uvc/ |
D | uvc_driver.c | 882 struct uvc_entity *unit; in uvc_parse_vendor_control() local 927 unit = uvc_alloc_entity(UVC_VC_EXTENSION_UNIT, buffer[3], in uvc_parse_vendor_control() 929 if (unit == NULL) in uvc_parse_vendor_control() 932 memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); in uvc_parse_vendor_control() 933 unit->extension.bNumControls = buffer[20]; in uvc_parse_vendor_control() 934 memcpy(unit->baSourceID, &buffer[22], p); in uvc_parse_vendor_control() 935 unit->extension.bControlSize = buffer[22+p]; in uvc_parse_vendor_control() 936 unit->extension.bmControls = (__u8 *)unit + sizeof(*unit); in uvc_parse_vendor_control() 937 unit->extension.bmControlsType = (__u8 *)unit + sizeof(*unit) in uvc_parse_vendor_control() 939 memcpy(unit->extension.bmControls, &buffer[23+p], 2*n); in uvc_parse_vendor_control() [all …]
|
/linux-4.1.27/Documentation/usb/ |
D | mass-storage.txt | 35 backing storage for each logical unit. There may be at most 42 read, but (if the logical unit is writable) due to buffering on 45 The size of the logical unit will be rounded down to a full 52 This parameter specifies whether each logical unit should be 56 If this option is set for a logical unit, gadget will accept an 59 unit will not be mountable by the host until a new backing file is 63 If a logical unit is not removable (the default), a backing file 75 Note that “removable” means the logical unit's media can be 83 This parameter specifies whether each logical unit should simulate 88 This parameter specifies whether each logical unit should be [all …]
|
/linux-4.1.27/drivers/watchdog/ |
D | smsc37b787_wdt.c | 80 static int unit = UNIT_SECOND; /* timer's unit */ variable 240 if (unit == UNIT_SECOND) in wb_smsc_wdt_initialize() 367 timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)"); in wb_smsc_wdt_open() 475 if (unit == UNIT_MINUTE) in wb_smsc_wdt_ioctl() 484 if (unit == UNIT_MINUTE) in wb_smsc_wdt_ioctl() 565 timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)"); in wb_smsc_wdt_init() 607 module_param(unit, int, 0); 608 MODULE_PARM_DESC(unit,
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
D | sumo_smc.c | 133 static u32 sumo_power_of_4(u32 unit) in sumo_power_of_4() argument 138 for (i = 0; i < unit; i++) in sumo_power_of_4() 147 u32 period, unit, timer_value; in sumo_enable_boost_timer() local 150 unit = (RREG32_RCU(RCU_LCLK_SCALING_CNTL) & LCLK_SCALING_TIMER_PRESCALER_MASK) in sumo_enable_boost_timer() 153 period = 100 * (xclk / 100 / sumo_power_of_4(unit)); in sumo_enable_boost_timer() 155 timer_value = (period << 16) | (unit << 4); in sumo_enable_boost_timer()
|
/linux-4.1.27/arch/alpha/include/asm/ |
D | console.h | 7 extern long callback_puts(long unit, const char *s, long length); 8 extern long callback_getc(long unit); 12 extern long callback_close(long unit);
|
/linux-4.1.27/arch/alpha/mm/ |
D | extable.c | 18 unsigned int t = ex_a->fixup.unit; in swap_ex() 20 ex_a->fixup.unit = ex_b->fixup.unit; in swap_ex() 21 ex_b->fixup.unit = t; in swap_ex()
|
/linux-4.1.27/drivers/mtd/maps/ |
D | vmu-flash.c | 135 mdev->unit); in maple_vmu_read_block() 154 " is busy\n", mdev->port, mdev->unit); in maple_vmu_read_block() 199 mdev->port, mdev->unit, num); in maple_vmu_read_block() 203 mdev->port, mdev->unit, num); in maple_vmu_read_block() 261 mdev->port, mdev->unit); in maple_vmu_write_block() 283 mdev->unit, num, x); in maple_vmu_write_block() 299 mdev->unit); in maple_vmu_write_block() 532 mdev->port, mdev->unit, card->partition); in vmu_queryblocks() 580 "error is 0x%X\n", mdev->port, mdev->unit, error); in vmu_queryblocks() 662 mdev->port, mdev->unit); in vmu_connect() [all …]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
D | subdev.c | 67 if (subdev->unit) { in nvkm_subdev_fini() 68 nv_mask(subdev, 0x000200, subdev->unit, 0x00000000); in nvkm_subdev_fini() 69 nv_mask(subdev, 0x000200, subdev->unit, subdev->unit); in nvkm_subdev_fini()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
D | main.c | 462 static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit) in brcms_c_bsscfg_malloc() argument 482 brcms_c_attach_malloc(uint unit, uint *err, uint devid) in brcms_c_attach_malloc() argument 536 wlc->bsscfg = brcms_c_bsscfg_malloc(unit); in brcms_c_attach_malloc() 622 wlc->pub->unit); in brcms_c_calc_frame_time() 688 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); in brcms_c_write_inits() 729 __func__, wlc_hw->unit, in brcms_c_ucode_bsinit() 739 __func__, wlc_hw->unit, in brcms_c_ucode_bsinit() 744 __func__, wlc_hw->unit, wlc_hw->corerev); in brcms_c_ucode_bsinit() 759 brcms_dbg_info(wlc_hw->d11core, "wl%d: clk %d\n", wlc_hw->unit, clk); in brcms_b_core_phy_clk() 784 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: bandunit %d\n", wlc_hw->unit, in brcms_c_setxband() [all …]
|
/linux-4.1.27/mm/ |
D | percpu.c | 1381 int unit; in pcpu_alloc_alloc_info() local 1395 for (unit = 0; unit < nr_units; unit++) in pcpu_alloc_alloc_info() 1396 ai->groups[0].cpu_map[unit] = NR_CPUS; in pcpu_alloc_alloc_info() 1450 int unit = 0, unit_end = 0; in pcpu_dump_alloc_info() local 1461 for (unit_end += upa; unit < unit_end; unit++) in pcpu_dump_alloc_info() 1462 if (gi->cpu_map[unit] != NR_CPUS) in pcpu_dump_alloc_info() 1464 gi->cpu_map[unit]); in pcpu_dump_alloc_info() 1541 int group, unit, i; in pcpu_setup_first_chunk() local 1581 for (group = 0, unit = 0; group < ai->nr_groups; group++, unit += i) { in pcpu_setup_first_chunk() 1596 unit_map[cpu] = unit + i; in pcpu_setup_first_chunk() [all …]
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_kms.c | 529 struct vmw_display_unit *unit = units[i]; in do_surface_dirty_sou() local 533 clip.x1 = left - unit->crtc.x; in do_surface_dirty_sou() 534 clip.y1 = top - unit->crtc.y; in do_surface_dirty_sou() 535 clip.x2 = right - unit->crtc.x; in do_surface_dirty_sou() 536 clip.y2 = bottom - unit->crtc.y; in do_surface_dirty_sou() 539 if (clip.x1 >= unit->crtc.mode.hdisplay || in do_surface_dirty_sou() 540 clip.y1 >= unit->crtc.mode.vdisplay || in do_surface_dirty_sou() 554 clip.x2 = unit->crtc.mode.hdisplay - clip.x1; in do_surface_dirty_sou() 555 clip.y2 = unit->crtc.mode.vdisplay - clip.y1; in do_surface_dirty_sou() 561 cmd->body.destScreenId = unit->unit; in do_surface_dirty_sou() [all …]
|
D | vmwgfx_ldu.c | 197 if (entry->base.unit > ldu->base.unit) in vmw_ldu_add_active() 340 static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit) in vmw_ldu_init() argument 352 ldu->base.unit = unit; in vmw_ldu_init() 359 ldu->base.pref_active = (unit == 0); in vmw_ldu_init() 372 encoder->possible_crtcs = (1 << unit); in vmw_ldu_init()
|
D | vmwgfx_scrn.c | 131 cmd->obj.id = sou->base.unit; in vmw_sou_fifo_create() 133 (sou->base.unit == 0 ? SVGA_SCREEN_IS_PRIMARY : 0); in vmw_sou_fifo_create() 185 cmd->body.screenId = sou->base.unit; in vmw_sou_fifo_destroy() 436 static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit) in vmw_sou_init() argument 448 sou->base.unit = unit; in vmw_sou_init() 455 sou->base.pref_active = (unit == 0); in vmw_sou_init() 468 encoder->possible_crtcs = (1 << unit); in vmw_sou_init()
|
/linux-4.1.27/tools/power/cpupower/utils/ |
D | cpufreq-set.c | 65 const struct freq_units *unit; in string_to_frequency() local 83 for (unit = def_units; unit->str_unit; unit++) { in string_to_frequency() 85 scan[i] && tolower(scan[i]) == unit->str_unit[i]; in string_to_frequency() 91 power = unit->power_of_ten; in string_to_frequency()
|
/linux-4.1.27/drivers/media/firewire/ |
D | firedtv-fw.c | 251 static int node_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) in node_probe() argument 261 dev_set_drvdata(&unit->device, fdtv); in node_probe() 262 fdtv->device = &unit->device; in node_probe() 272 name_len = fw_csr_string(unit->directory, CSR_MODEL, in node_probe() 280 err = fdtv_register_rc(fdtv, &unit->device); in node_probe() 310 static void node_remove(struct fw_unit *unit) in node_remove() argument 312 struct firedtv *fdtv = dev_get_drvdata(&unit->device); in node_remove() 325 static void node_update(struct fw_unit *unit) in node_update() argument 327 struct firedtv *fdtv = dev_get_drvdata(&unit->device); in node_update()
|
/linux-4.1.27/Documentation/arm/ |
D | kernel_mode_neon.txt | 8 * Isolate your NEON code in a separate compilation unit, and compile it with 32 contending for the NEON/VFP unit (or, in the SMP case, when a task migrates to 33 another core). Lazy restore is implemented by disabling the NEON/VFP unit after 38 Any use of the NEON/VFP unit in kernel mode should not interfere with this, so 40 enable the NEON/VFP unit explicitly so no exceptions are generated on first 43 Likewise, the NEON/VFP unit should be disabled again after use to make sure user 68 like IEEE-754 compliant underflow handling etc. When the VFP unit needs such 89 * isolate the NEON code in a separate compilation unit and compile it with 92 into the unit containing the NEON code from a compilation unit which is *not* 118 * Compile the unit containing the NEON intrinsics with '-ffreestanding' so GCC
|
/linux-4.1.27/drivers/isdn/i4l/ |
D | isdn_bsdcomp.c | 122 unsigned char unit; /* ppp unit number */ member 378 static int bsd_init(void *state, struct isdn_ppp_comp_data *data, int unit, int debug) in bsd_init() argument 385 printk(KERN_ERR "isdn_bsd_init: [%d] ERR, state %lx data %lx\n", unit, (long)state, (long)data); in bsd_init() 409 db->unit = unit; in bsd_init() 692 db->unit, seq, db->seqno - 1); in bsd_decompress() 740 printk(KERN_DEBUG "bsd_decomp%d: bad CLEAR\n", db->unit); in bsd_decompress() 751 db->unit, incode, oldcode); in bsd_decompress() 770 printk(KERN_DEBUG "bsd_decomp%d: ran out of mru\n", db->unit); in bsd_decompress() 793 printk(KERN_ERR "bsd_decomp%d: fell off end of chain ", db->unit); in bsd_decompress() 797 printk(KERN_ERR "bsd_decomp%d: bad code chain 0x%x finchar=0x%x ", db->unit, incode, finchar); in bsd_decompress() [all …]
|
D | isdn_ppp.c | 72 static int isdn_ppp_bundle(struct ippp_struct *, int unit); 85 isdn_ppp_frame_log(char *info, char *data, int len, int maxlen, int unit, int slot) in isdn_ppp_frame_log() argument 98 printk(KERN_DEBUG "[%d/%d].%s[%d]: %s\n", unit, slot, info, i, buf); in isdn_ppp_frame_log() 159 int unit = 0; in isdn_ppp_bind() local 195 unit = isdn_ppp_if_get_unit(lp->netdev->dev->name); in isdn_ppp_bind() 196 if (unit < 0) { in isdn_ppp_bind() 206 is->unit = unit; in isdn_ppp_bind() 312 is->unit = -1; /* set, when we have our interface */ in isdn_ppp_open() 502 (int) min, (int) is->unit, (int) val); in isdn_ppp_ioctl() 509 if ((r = set_arg(argp, &is->unit, sizeof(is->unit)))) in isdn_ppp_ioctl() [all …]
|
/linux-4.1.27/arch/mn10300/ |
D | Makefile | 62 core-y += arch/mn10300/unit-$(UNIT)/ 88 $(Q)$(MAKE) $(clean)=arch/mn10300/unit-asb2303 89 $(Q)$(MAKE) $(clean)=arch/mn10300/unit-asb2305 99 KBUILD_CPPFLAGS += -I$(srctree)/arch/mn10300/unit-$(UNIT)/include
|
/linux-4.1.27/arch/powerpc/oprofile/ |
D | op_model_power4.c | 44 u64 psel, unit; in power7_marked_instr_event() local 57 unit = mmcr1 & (OPROFILE_PM_UNIT_MSK in power7_marked_instr_event() 60 unit = unit >> (OPROFILE_PM_UNIT_SHIFT in power7_marked_instr_event() 82 cntr_marked_events |= (unit == 0xd) << pmc; in power7_marked_instr_event() 89 cntr_marked_events |= (unit == 0xd) << pmc; in power7_marked_instr_event()
|
/linux-4.1.27/Documentation/devicetree/bindings/phy/ |
D | apm-xgene-phy.txt | 21 127 in unit of one bit period. Default is 10. 30 between 0 to 31 in unit of dB. Default is 3. 33 Range is between 0 to 199500 in unit of uV. 37 speed on the host. Range is 0 to 273000 in unit of 41 speed on the host. Range is 0 to 127400 in unit uV. 45 between 0 to 0x1f in unit of 18.2mV. Default is 0xf.
|
/linux-4.1.27/arch/m68k/emu/ |
D | nfeth.c | 191 static struct net_device * __init nfeth_probe(int unit) in nfeth_probe() argument 198 if (!nf_call(nfEtherID + XIF_GET_MAC, unit, virt_to_phys(mac), in nfeth_probe() 212 priv->ethX = unit; in nfeth_probe() 220 nf_call(nfEtherID + XIF_GET_IPHOST, unit, in nfeth_probe() 222 nf_call(nfEtherID + XIF_GET_IPATARI, unit, in nfeth_probe()
|
/linux-4.1.27/drivers/media/rc/img-ir/ |
D | img-ir-hw.c | 70 unsigned int unit) in img_ir_timing_preprocess() argument 74 if (unit) { in img_ir_timing_preprocess() 76 range->min = (range->min*unit)/1000; in img_ir_timing_preprocess() 77 range->max = (range->max*unit + 999)/1000; /* round up */ in img_ir_timing_preprocess() 82 unsigned int unit) in img_ir_symbol_timing_preprocess() argument 84 img_ir_timing_preprocess(&timing->pulse, unit); in img_ir_symbol_timing_preprocess() 85 img_ir_timing_preprocess(&timing->space, unit); in img_ir_symbol_timing_preprocess() 89 unsigned int unit) in img_ir_timings_preprocess() argument 91 img_ir_symbol_timing_preprocess(&timings->ldr, unit); in img_ir_timings_preprocess() 92 img_ir_symbol_timing_preprocess(&timings->s00, unit); in img_ir_timings_preprocess() [all …]
|
/linux-4.1.27/scripts/dtc/ |
D | dtc.c | 36 const char *unit; in fill_fullpaths() local 40 unit = strchr(tree->name, '@'); in fill_fullpaths() 41 if (unit) in fill_fullpaths() 42 tree->basenamelen = unit - tree->name; in fill_fullpaths()
|
/linux-4.1.27/drivers/crypto/ccp/ |
D | ccp-crypto-aes-xts.c | 124 unsigned int unit; in ccp_aes_xts_crypt() local 139 for (unit = 0; unit < ARRAY_SIZE(unit_size_map); unit++) { in ccp_aes_xts_crypt() 140 if (!(req->nbytes & (unit_size_map[unit].size - 1))) { in ccp_aes_xts_crypt() 141 unit_size = unit_size_map[unit].value; in ccp_aes_xts_crypt()
|
/linux-4.1.27/arch/mips/bcm63xx/ |
D | dev-enet.c | 202 int __init bcm63xx_enet_register(int unit, in bcm63xx_enet_register() argument 209 if (unit > 1) in bcm63xx_enet_register() 212 if (unit == 1 && (BCMCPU_IS_6338() || BCMCPU_IS_6345())) in bcm63xx_enet_register() 219 if (unit == 0) { in bcm63xx_enet_register() 245 if (unit == 1) in bcm63xx_enet_register()
|
/linux-4.1.27/arch/metag/include/asm/ |
D | core_reg.h | 6 extern void core_reg_write(int unit, int reg, int thread, unsigned int val); 7 extern unsigned int core_reg_read(int unit, int reg, int thread);
|
/linux-4.1.27/Documentation/s390/ |
D | 3270.ChangeLog | 22 Sep 2002: Recognize 3270 control unit type 3174 23 * Recognize control-unit type 0x3174 as well as 0x327?. 24 The IBM 2047 device emulates a 3174 control unit. 25 Modularize control-unit recognition in tuball.c by
|
/linux-4.1.27/Documentation/devicetree/bindings/lpddr2/ |
D | lpddr2-timings.txt | 12 of type <u32> and the default unit is ps (pico seconds). Parameters with 13 a different unit have a suffix indicating the unit such as 'tRAS-max-ns'
|
/linux-4.1.27/arch/powerpc/platforms/cell/ |
D | interrupt.c | 64 unsigned char unit = bits.source & 0xf; in iic_pending_to_hwnum() local 72 return (node << IIC_IRQ_NODE_SHIFT) | (class << 4) | unit; in iic_pending_to_hwnum() 253 unsigned int node, ext, unit, class; in iic_host_xlate() local 268 unit = intspec[0] & 0xff; in iic_host_xlate() 276 if (unit == IIC_UNIT_IIC && class == 1) in iic_host_xlate() 280 (class << IIC_IRQ_CLASS_SHIFT) | unit; in iic_host_xlate()
|
D | spider-pic.c | 232 int imaplen, intsize, unit; in spider_find_cascade_and_node() local 261 unit = imap[intsize - 1]; in spider_find_cascade_and_node() 280 unit); in spider_find_cascade_and_node()
|
/linux-4.1.27/arch/ia64/mm/ |
D | discontig.c | 193 int node, prev_node, unit, nr_units, rc; in setup_per_cpu_areas() local 208 unit = 0; in setup_per_cpu_areas() 212 cpu_map[unit++] = cpu; in setup_per_cpu_areas() 213 nr_units = unit; in setup_per_cpu_areas() 236 for (unit = 0; unit < nr_units; unit++) { in setup_per_cpu_areas() 237 cpu = cpu_map[unit]; in setup_per_cpu_areas() 249 gi->cpu_map = &cpu_map[unit]; in setup_per_cpu_areas()
|
/linux-4.1.27/drivers/staging/fwserial/ |
D | fwserial.c | 1466 seq_printf(m, " %s:", dev_name(&peer->unit->device)); in fwtty_debugfs_show_peer() 1707 fwtty_info(&peer->unit, "peer (guid:%016llx) connected on %s\n", in fwserial_virt_plug_complete() 1729 fwtty_dbg(&peer->unit, "mgmt write error: %d\n", rcode); in fwserial_send_mgmt_sync() 1851 fwtty_err(&peer->unit, "avail ports in use\n"); in fwserial_connect_peer() 2060 static int fwserial_add_peer(struct fw_serial *serial, struct fw_unit *unit) in fwserial_add_peer() argument 2062 struct device *dev = &unit->device; in fwserial_add_peer() 2063 struct fw_device *parent = fw_parent_device(unit); in fwserial_add_peer() 2076 peer->unit = unit; in fwserial_add_peer() 2089 fw_csr_iterator_init(&ci, unit->directory); in fwserial_add_peer() 2115 fwtty_info(&peer->unit, "peer added (guid:%016llx)\n", in fwserial_add_peer() [all …]
|
/linux-4.1.27/tools/perf/util/ |
D | pmu.c | 151 sret = read(fd, alias->unit, UNIT_MAX_LEN); in perf_pmu__parse_unit() 157 alias->unit[sret] = '\0'; in perf_pmu__parse_unit() 162 alias->unit[0] = '\0'; in perf_pmu__parse_unit() 218 alias->unit[0] = '\0'; in perf_pmu__new_alias() 723 if ((info->unit && alias->unit) || in check_info_data() 728 if (alias->unit) in check_info_data() 729 info->unit = alias->unit; in check_info_data() 757 info->unit = NULL; in perf_pmu__check_alias() 785 if (info->unit == NULL) in perf_pmu__check_alias() 786 info->unit = ""; in perf_pmu__check_alias()
|
D | pmu.h | 30 const char *unit; member 42 char unit[UNIT_MAX_LEN+1]; member
|
D | util.c | 149 unsigned long convert_unit(unsigned long value, char *unit) in convert_unit() argument 151 *unit = ' '; in convert_unit() 155 *unit = 'K'; in convert_unit() 160 *unit = 'M'; in convert_unit() 165 *unit = 'G'; in convert_unit()
|
/linux-4.1.27/drivers/video/console/ |
D | newport_con.c | 53 static int newport_set_def_font(int unit, struct console_font *op); 501 static int newport_set_font(int unit, struct console_font *op) in newport_set_font() argument 537 if (i == unit) in newport_set_font() 544 if (font_data[unit] != FONT_DATA) { in newport_set_font() 545 if (--REFCOUNT(font_data[unit]) == 0) in newport_set_font() 546 kfree(font_data[unit] - in newport_set_font() 550 font_data[unit] = new_data; in newport_set_font() 555 static int newport_set_def_font(int unit, struct console_font *op) in newport_set_def_font() argument 557 if (font_data[unit] != FONT_DATA) { in newport_set_def_font() 558 if (--REFCOUNT(font_data[unit]) == 0) in newport_set_def_font() [all …]
|
/linux-4.1.27/Documentation/networking/ |
D | ppp_generic.txt | 11 * the network interface unit (ppp0 etc.) 33 be linked to each ppp network interface unit. The generic layer is 89 * ppp_unit_number() returns the unit number of the ppp network 149 transmit packets for the PPP unit (network interface device) plus a 151 transmit queue for the unit will contain at most one packet; the 159 Transmit packets are dequeued from the PPP unit transmit queue and 252 /dev/ppp acts independently and can be attached either to a PPP unit 261 existing unit, attached to a newly-created unit, or attached to an 262 existing channel. An instance attached to a unit can be used to send 268 In multilink terms, the unit represents the bundle, while the channels [all …]
|
/linux-4.1.27/drivers/usb/core/ |
D | endpoint.c | 86 char unit; in interval_show() local 118 unit = 'u'; in interval_show() 120 unit = 'm'; in interval_show() 124 return sprintf(buf, "%d%cs\n", interval, unit); in interval_show()
|
/linux-4.1.27/Documentation/ABI/testing/ |
D | sysfs-bus-event_source-devices-events | 35 Each file (except for some of those with a '.' in them, '.unit' 67 What: /sys/bus/event_source/devices/<pmu>/events/<event>.unit 72 A string specifying the English plural numerical unit that <event> 86 recieved from the kernel to match the unit specified in the 87 <event>.unit file.
|
D | sysfs-class-iommu-intel-iommu | 16 of this DRHD unit. Format: %llx. 24 value of this DRHD unit. Format: %llx.
|
D | sysfs-block | 98 This is the smallest unit the storage device can 105 This is the smallest unit a physical storage device can 132 the device's preferred unit for sustained I/O. This is 162 device is offset from the internal allocation unit's 173 partition is offset from the internal allocation unit's 184 unit in bytes if reported by the device. Otherwise the
|
/linux-4.1.27/arch/mips/alchemy/common/ |
D | platform.c | 160 int unit; in alchemy_ohci_power_on() local 162 unit = (pdev->id == 1) ? in alchemy_ohci_power_on() 165 return alchemy_usb_control(unit, 1); in alchemy_ohci_power_on() 171 int unit; in alchemy_ohci_power_off() local 173 unit = (pdev->id == 1) ? in alchemy_ohci_power_off() 176 alchemy_usb_control(unit, 0); in alchemy_ohci_power_off()
|
/linux-4.1.27/drivers/mtd/devices/ |
D | slram.c | 217 static unsigned long handle_unit(unsigned long value, char *unit) in handle_unit() argument 219 if ((*unit == 'M') || (*unit == 'm')) { in handle_unit() 221 } else if ((*unit == 'K') || (*unit == 'k')) { in handle_unit()
|
/linux-4.1.27/drivers/net/wan/ |
D | sealevel.c | 84 int unit = slvl->channel; in sealevel_open() local 90 switch (unit) { in sealevel_open() 104 switch (unit) { in sealevel_open() 127 int unit = slvl->channel; in sealevel_close() local 138 switch (unit) { in sealevel_close()
|
/linux-4.1.27/arch/s390/mm/ |
D | dump_pagetables.c | 61 const char *unit = units; in note_page() local 86 while (!(delta & 0x3ff) && unit[1]) { in note_page() 88 unit++; in note_page() 90 seq_printf(m, "%9lu%c ", delta, *unit); in note_page()
|
/linux-4.1.27/Documentation/devicetree/bindings/input/ |
D | regulator-haptic.txt | 9 [The unit of the voltage is a micro] 12 [The unit of the voltage is a micro]
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
D | gk104.c | 93 nv_subdev(priv)->unit = 0x00000040; in gk104_ce0_ctor() 114 nv_subdev(priv)->unit = 0x00000080; in gk104_ce1_ctor() 135 nv_subdev(priv)->unit = 0x00200000; in gk104_ce2_ctor()
|
D | gm204.c | 93 nv_subdev(priv)->unit = 0x00000040; in gm204_ce0_ctor() 114 nv_subdev(priv)->unit = 0x00000080; in gm204_ce1_ctor() 135 nv_subdev(priv)->unit = 0x00200000; in gm204_ce2_ctor()
|
D | gf100.c | 106 nv_subdev(priv)->unit = 0x00000040; in gf100_ce0_ctor() 131 nv_subdev(priv)->unit = 0x00000080; in gf100_ce1_ctor()
|
/linux-4.1.27/Documentation/devicetree/bindings/regulator/ |
D | pwm-regulator.txt | 7 brackets, first one is voltage(unit: uv), the next is duty(unit: percent)
|
/linux-4.1.27/fs/btrfs/ |
D | free-space-cache.c | 1409 static inline unsigned long offset_to_bit(u64 bitmap_start, u32 unit, in offset_to_bit() argument 1414 return (unsigned long)(div_u64(offset, unit)); in offset_to_bit() 1417 static inline unsigned long bytes_to_bits(u64 bytes, u32 unit) in bytes_to_bits() argument 1419 return (unsigned long)(div_u64(bytes, unit)); in bytes_to_bits() 1428 bytes_per_bitmap = BITS_PER_BITMAP * ctl->unit; in offset_to_bitmap() 1585 if (entry->offset + BITS_PER_BITMAP * ctl->unit > offset) in tree_search_offset() 1596 ctl->unit > offset) in tree_search_offset() 1649 u32 bytes_per_bg = BITS_PER_BITMAP * ctl->unit; in recalculate_thresholds() 1696 start = offset_to_bit(info->offset, ctl->unit, offset); in __bitmap_clear_bits() 1697 count = bytes_to_bits(bytes, ctl->unit); in __bitmap_clear_bits() [all …]
|
/linux-4.1.27/lib/ |
D | string_helpers.c | 50 const char *unit; in string_get_size() local 119 unit = "UNK"; in string_get_size() 121 unit = units_str[units][i]; in string_get_size() 124 tmp, unit); in string_get_size()
|
/linux-4.1.27/Documentation/metag/ |
D | kernel-ABI.txt | 23 CT Special Control unit 24 D0 General Data unit 0 0-7 8-15 16-31 16-31 25 D1 General Data unit 1 0-7 8-15 16-31 16-31 26 A0 General Address unit 0 0-3 4-7 8-15 8-15 27 A1 General Address unit 1 0-3 4-7 8-15 8-15 28 PC Special PC unit 0 1 30 TR Special Trigger unit 0-7 31 TT Special Trace unit 0-5 32 FX General FP unit 0-15
|
/linux-4.1.27/drivers/scsi/ |
D | zalon.c | 93 static int unit = 0; in zalon_probe() local 135 host = ncr_attach(&zalon7xx_template, unit, &device); in zalon_probe() 145 unit++; in zalon_probe()
|
D | sgiwd93.c | 237 unsigned int unit = pd->unit; in sgiwd93_probe() local 256 "host %d buffer.\n", unit); in sgiwd93_probe() 275 "for host %d.\n", irq, unit); in sgiwd93_probe()
|
D | dpt_i2o.c | 281 NULL, MKDEV(DPTI_I2O_MAJOR, pHba->unit), NULL, in adpt_detect() 282 "dpti%d", pHba->unit); in adpt_detect() 286 pHba->unit); in adpt_detect() 549 int unit; in adpt_show_info() local 579 unit = d->pI2o_dev->lct_data.tid; in adpt_show_info() 581 unit, (int)d->scsi_channel, (int)d->scsi_id, d->scsi_lun, in adpt_show_info() 1021 pHba->unit = hba_count; in adpt_install_hba() 1151 MKDEV(DPTI_I2O_MAJOR, pHba->unit)); in adpt_i2o_delete_hba() 1253 printk(KERN_INFO"dpti%d: POST WAIT TIMEOUT\n",pHba->unit); in adpt_i2o_post_wait() 1295 printk(KERN_WARNING"dpti%d: Timeout waiting for message frame!\n", pHba->unit); in adpt_i2o_post_this() [all …]
|
D | NCR_Q720.c | 83 static int unit = 0; in NCR_Q720_probe_one() local 109 printk("Q720 probe unit %d (siop%d) at 0x%lx, diff = %d, vers = %d\n", unit, siop, in NCR_Q720_probe_one() 112 p->hosts[siop] = ncr_attach(&NCR_Q720_tpnt, unit++, &device); in NCR_Q720_probe_one()
|
/linux-4.1.27/drivers/net/ethernet/amd/ |
D | mvme147.c | 71 struct net_device * __init mvme147lance_probe(int unit) in mvme147lance_probe() argument 89 if (unit >= 0) in mvme147lance_probe() 90 sprintf(dev->name, "eth%d", unit); in mvme147lance_probe()
|
/linux-4.1.27/drivers/of/ |
D | Kconfig | 11 bool "Device Tree runtime unit tests" 41 can enable it manually to improve device tree unit test coverage. 98 enable it manually to improve device tree unit test coverage.
|
/linux-4.1.27/arch/um/drivers/ |
D | ubd_kern.c | 805 static int ubd_disk_register(int major, u64 size, int unit, in ubd_disk_register() argument 815 disk->first_minor = unit << UBD_SHIFT; in ubd_disk_register() 819 sprintf(disk->disk_name, "ubd%c", 'a' + unit); in ubd_disk_register() 821 sprintf(disk->disk_name, "ubd_fake%d", unit); in ubd_disk_register() 825 ubd_devs[unit].pdev.id = unit; in ubd_disk_register() 826 ubd_devs[unit].pdev.name = DRIVER_NAME; in ubd_disk_register() 827 ubd_devs[unit].pdev.dev.release = ubd_device_release; in ubd_disk_register() 828 dev_set_drvdata(&ubd_devs[unit].pdev.dev, &ubd_devs[unit]); in ubd_disk_register() 829 platform_device_register(&ubd_devs[unit].pdev); in ubd_disk_register() 830 disk->driverfs_dev = &ubd_devs[unit].pdev.dev; in ubd_disk_register() [all …]
|
/linux-4.1.27/Documentation/video4linux/ |
D | uvcvideo.txt | 17 units (XUs). The Linux UVC driver supports extension unit controls (XU controls) 63 In order to make such a request the UVC unit ID of the control's extension unit 145 __u8 entity[16] UVC extension unit GUID 178 This ioctl queries a UVC XU control identified by its extension unit ID 222 extension unit could not be found. 235 __u8 unit Extension unit ID
|
/linux-4.1.27/arch/arm64/mm/ |
D | dump.c | 197 const char *unit = units; in note_page() local 205 while (!(delta & 1023) && unit[1]) { in note_page() 207 unit++; in note_page() 209 seq_printf(st->seq, "%9lu%c", delta, *unit); in note_page()
|
/linux-4.1.27/Documentation/scsi/ |
D | hptiop.txt | 139 Fill a free inbound list unit with the physical address and the size of 142 Set up the inbound list write pointer with the index of previous unit, 149 free outbound list unit and the index of the outbound list unit will be 155 read the (N+1)th outbound list unit. 158 unit and complete the request.
|
/linux-4.1.27/drivers/staging/i2o/ |
D | iop.c | 238 struct i2o_controller *i2o_find_iop(int unit) in i2o_find_iop() argument 243 if (c->unit == unit) in i2o_find_iop() 736 msg->body[0] = cpu_to_le32(c->unit + 2); in i2o_iop_systab_set() 875 systab->iops[count].iop_id = c->unit + 2; in i2o_systab_build() 1045 static int unit; /* 0 and 1 are NULL IOP and Local Host */ in i2o_iop_alloc() local 1056 c->unit = unit++; in i2o_iop_alloc() 1057 sprintf(c->name, "iop%d", c->unit); in i2o_iop_alloc() 1075 dev_set_name(&c->device, "iop%d", c->unit); in i2o_iop_alloc()
|
D | README.ioctl | 46 IOP unit is active, and NULL if it is inactive or non-existent. 63 u32 iop; /* IOP unit number */ 92 u32 iop; /* IOP unit number */ 121 u32 iop; /* IOP unit number */ 162 u32 iop; /* IOP unit number */ 199 u32 iop; /* IOP unit number */ 240 u32 iop; /* IOP unit number */ 282 u32 iop; /* IOP unit number */ 340 u32 iop; /* IOP unit number */
|
/linux-4.1.27/arch/arm/mm/ |
D | dump.c | 229 const char *unit = units; in note_page() local 237 while (!(delta & 1023) && unit[1]) { in note_page() 239 unit++; in note_page() 241 seq_printf(st->seq, "%9lu%c", delta, *unit); in note_page()
|
/linux-4.1.27/arch/powerpc/boot/dts/ |
D | mpc8641_hpcn.dts | 360 message-unit@0 { 361 compatible = "fsl,srio-msg-unit"; 367 message-unit@100 { 368 compatible = "fsl,srio-msg-unit"; 374 doorbell-unit@400 { 375 compatible = "fsl,srio-dbell-unit"; 381 port-write-unit@4e0 { 382 compatible = "fsl,srio-port-write-unit";
|
/linux-4.1.27/drivers/platform/x86/ |
D | dell-laptop.c | 1376 u8 unit; in kbd_led_timeout_store() local 1394 unit = KBD_TIMEOUT_SECONDS; in kbd_led_timeout_store() 1399 unit = KBD_TIMEOUT_MINUTES; in kbd_led_timeout_store() 1404 unit = KBD_TIMEOUT_HOURS; in kbd_led_timeout_store() 1409 unit = KBD_TIMEOUT_DAYS; in kbd_led_timeout_store() 1420 switch (unit) { in kbd_led_timeout_store() 1427 unit = KBD_TIMEOUT_SECONDS; in kbd_led_timeout_store() 1440 unit = KBD_TIMEOUT_SECONDS; in kbd_led_timeout_store() 1443 unit = KBD_TIMEOUT_MINUTES; in kbd_led_timeout_store() 1446 unit = KBD_TIMEOUT_HOURS; in kbd_led_timeout_store() [all …]
|
/linux-4.1.27/drivers/gpu/ipu-v3/ |
D | ipu-common.c | 797 char *unit; in ipu_submodules_init() local 804 unit = "cpmem"; in ipu_submodules_init() 811 unit = "csi0"; in ipu_submodules_init() 818 unit = "csi1"; in ipu_submodules_init() 826 unit = "ic"; in ipu_submodules_init() 833 unit = "di0"; in ipu_submodules_init() 840 unit = "di1"; in ipu_submodules_init() 847 unit = "dc_template"; in ipu_submodules_init() 854 unit = "dmfc"; in ipu_submodules_init() 860 unit = "dp"; in ipu_submodules_init() [all …]
|
/linux-4.1.27/sound/soc/sh/ |
D | Kconfig | 12 ## Audio unit modules 61 AC97 unit of the SH7760.
|
/linux-4.1.27/drivers/mfd/ |
D | sm501.c | 316 int sm501_unit_power(struct device *dev, unsigned int unit, unsigned int to) in sm501_unit_power() argument 331 if (unit >= ARRAY_SIZE(sm->unit_power)) { in sm501_unit_power() 332 dev_err(dev, "%s: bad unit %d\n", __func__, unit); in sm501_unit_power() 336 dev_dbg(sm->dev, "%s: unit %d, cur %d, to %d\n", __func__, unit, in sm501_unit_power() 337 sm->unit_power[unit], to); in sm501_unit_power() 339 if (to == 0 && sm->unit_power[unit] == 0) { in sm501_unit_power() 340 dev_err(sm->dev, "unit %d is already shutdown\n", unit); in sm501_unit_power() 344 sm->unit_power[unit] += to ? 1 : -1; in sm501_unit_power() 345 to = sm->unit_power[unit] ? 1 : 0; in sm501_unit_power() 348 if (gate & (1 << unit)) in sm501_unit_power() [all …]
|
/linux-4.1.27/arch/x86/mm/ |
D | dump_pagetables.c | 214 const char *unit = units; in note_page() local 229 while (!(delta & 1023) && unit[1]) { in note_page() 231 unit++; in note_page() 234 delta, *unit); in note_page()
|
/linux-4.1.27/arch/mips/include/asm/sgi/ |
D | wd.h | 14 unsigned int unit; member
|
/linux-4.1.27/drivers/staging/gdm72xx/ |
D | netlink_k.c | 91 struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type, in netlink_init() argument 103 sock = netlink_kernel_create(&init_net, unit, &cfg); in netlink_init()
|
D | netlink_k.h | 20 struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type,
|
/linux-4.1.27/drivers/staging/gdm724x/ |
D | netlink_k.c | 90 struct sock *netlink_init(int unit, in netlink_init() argument 102 sock = netlink_kernel_create(&init_net, unit, &cfg); in netlink_init()
|
D | netlink_k.h | 20 struct sock *netlink_init(int unit,
|
/linux-4.1.27/arch/mips/cavium-octeon/ |
D | octeon-memcpy.S | 131 #define FIRST(unit) ((unit)*NBYTES) argument 132 #define REST(unit) (FIRST(unit)+NBYTES-1) argument 133 #define UNIT(unit) FIRST(unit) argument
|
/linux-4.1.27/arch/mn10300/unit-asb2303/ |
D | Makefile | 6 obj-y := unit-init.o smc91111.o flash.o leds.o
|
/linux-4.1.27/arch/mn10300/unit-asb2364/ |
D | Makefile | 10 obj-y := unit-init.o leds.o irq-fpga.o
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
D | mcdi_mon.c | 110 const char *name = NULL, *state_txt, *unit; in efx_mcdi_sensor_event() local 127 unit = efx_hwmon_unit[hwmon_type]; in efx_mcdi_sensor_event() 128 if (!unit) in efx_mcdi_sensor_event() 129 unit = ""; in efx_mcdi_sensor_event() 133 type, name, state_txt, value, unit); in efx_mcdi_sensor_event()
|
/linux-4.1.27/arch/mn10300/unit-asb2305/ |
D | Makefile | 6 obj-y := unit-init.o leds.o
|
/linux-4.1.27/arch/mips/sgi-ip22/ |
D | ip22-platform.c | 23 .unit = 0, 47 .unit = 1,
|
/linux-4.1.27/drivers/net/ethernet/8390/ |
D | apne.c | 78 struct net_device * __init apne_probe(int unit); 123 struct net_device * __init apne_probe(int unit) in apne_probe() argument 153 if (unit >= 0) { in apne_probe() 154 sprintf(dev->name, "eth%d", unit); in apne_probe()
|
/linux-4.1.27/arch/mips/lib/ |
D | memcpy.S | 241 #define FIRST(unit) ((unit)*NBYTES) argument 242 #define REST(unit) (FIRST(unit)+NBYTES-1) argument 243 #define UNIT(unit) FIRST(unit) argument
|