/linux-4.1.27/drivers/clk/mmp/ |
H A D | reset.c | 14 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); mmp_of_reset_xlate() local 22 cell = &unit->cells[i]; mmp_of_reset_xlate() 36 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); mmp_clk_reset_assert() local 41 cell = &unit->cells[id]; mmp_clk_reset_assert() 58 struct mmp_clk_reset_unit *unit = rcdev_to_unit(rcdev); mmp_clk_reset_deassert() local 63 cell = &unit->cells[id]; mmp_clk_reset_deassert() 85 struct mmp_clk_reset_unit *unit; mmp_clk_reset_register() local 87 unit = kzalloc(sizeof(*unit), GFP_KERNEL); mmp_clk_reset_register() 88 if (!unit) mmp_clk_reset_register() 91 unit->cells = cells; mmp_clk_reset_register() 92 unit->rcdev.of_reset_n_cells = 1; mmp_clk_reset_register() 93 unit->rcdev.nr_resets = nr_resets; mmp_clk_reset_register() 94 unit->rcdev.ops = &mmp_clk_reset_ops; mmp_clk_reset_register() 95 unit->rcdev.of_node = np; mmp_clk_reset_register() 96 unit->rcdev.of_xlate = mmp_of_reset_xlate; mmp_clk_reset_register() 98 reset_controller_register(&unit->rcdev); mmp_clk_reset_register()
|
H A D | clk.c | 10 void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, mmp_clk_init() argument 19 unit->clk_table = clk_table; mmp_clk_init() 20 unit->nr_clks = nr_clks; mmp_clk_init() 21 unit->clk_data.clks = clk_table; mmp_clk_init() 22 unit->clk_data.clk_num = nr_clks; mmp_clk_init() 23 of_clk_add_provider(np, of_clk_src_onecell_get, &unit->clk_data); mmp_clk_init() 26 void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit, mmp_register_fixed_rate_clks() argument 44 unit->clk_table[clks[i].id] = clk; mmp_register_fixed_rate_clks() 48 void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit, mmp_register_fixed_factor_clks() argument 66 unit->clk_table[clks[i].id] = clk; mmp_register_fixed_factor_clks() 70 void mmp_register_general_gate_clks(struct mmp_clk_unit *unit, mmp_register_general_gate_clks() argument 92 unit->clk_table[clks[i].id] = clk; mmp_register_general_gate_clks() 96 void mmp_register_gate_clks(struct mmp_clk_unit *unit, mmp_register_gate_clks() argument 120 unit->clk_table[clks[i].id] = clk; mmp_register_gate_clks() 124 void mmp_register_mux_clks(struct mmp_clk_unit *unit, mmp_register_mux_clks() argument 148 unit->clk_table[clks[i].id] = clk; mmp_register_mux_clks() 152 void mmp_register_div_clks(struct mmp_clk_unit *unit, mmp_register_div_clks() argument 175 unit->clk_table[clks[i].id] = clk; mmp_register_div_clks() 179 void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id, mmp_clk_add() argument 186 if (id > unit->nr_clks) { mmp_clk_add() 191 unit->clk_table[id] = clk; mmp_clk_add()
|
H A D | clk-of-pxa910.c | 49 struct mmp_clk_unit unit; member in struct:pxa910_clk_unit 93 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa910_pll_init() local 95 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, pxa910_pll_init() 98 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, pxa910_pll_init() 106 mmp_clk_add(unit, PXA910_CLK_UART_PLL, clk); pxa910_pll_init() 155 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa910_apb_periph_clk_init() local 157 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, pxa910_apb_periph_clk_init() 160 mmp_register_mux_clks(unit, apbcp_mux_clks, pxa_unit->apbcp_base, pxa910_apb_periph_clk_init() 163 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, pxa910_apb_periph_clk_init() 166 mmp_register_gate_clks(unit, apbcp_gate_clks, pxa_unit->apbcp_base, pxa910_apb_periph_clk_init() 210 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa910_axi_periph_clk_init() local 212 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, pxa910_axi_periph_clk_init() 215 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, pxa910_axi_periph_clk_init() 218 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, pxa910_axi_periph_clk_init() 290 mmp_clk_init(np, &pxa_unit->unit, PXA910_NR_CLKS); pxa910_clk_init()
|
H A D | clk-of-pxa168.c | 51 struct mmp_clk_unit unit; member in struct:pxa168_clk_unit 94 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa168_pll_init() local 96 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, pxa168_pll_init() 99 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, pxa168_pll_init() 107 mmp_clk_add(unit, PXA168_CLK_UART_PLL, clk); pxa168_pll_init() 158 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa168_apb_periph_clk_init() local 160 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, pxa168_apb_periph_clk_init() 163 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, pxa168_apb_periph_clk_init() 208 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa168_axi_periph_clk_init() local 210 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, pxa168_axi_periph_clk_init() 213 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, pxa168_axi_periph_clk_init() 216 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, pxa168_axi_periph_clk_init() 268 mmp_clk_init(np, &pxa_unit->unit, PXA168_NR_CLKS); pxa168_clk_init()
|
H A D | clk-of-mmp2.c | 58 struct mmp_clk_unit unit; member in struct:mmp2_clk_unit 110 struct mmp_clk_unit *unit = &pxa_unit->unit; mmp2_pll_init() local 112 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, mmp2_pll_init() 115 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, mmp2_pll_init() 123 mmp_clk_add(unit, MMP2_CLK_UART_PLL, clk); mmp2_pll_init() 177 struct mmp_clk_unit *unit = &pxa_unit->unit; mmp2_apb_periph_clk_init() local 179 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, mmp2_apb_periph_clk_init() 182 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, mmp2_apb_periph_clk_init() 243 struct mmp_clk_unit *unit = &pxa_unit->unit; mmp2_axi_periph_clk_init() local 256 mmp_clk_add(unit, MMP2_CLK_CCIC0_MIX, clk); mmp2_axi_periph_clk_init() 263 mmp_clk_add(unit, MMP2_CLK_CCIC1_MIX, clk); mmp2_axi_periph_clk_init() 265 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, mmp2_axi_periph_clk_init() 268 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, mmp2_axi_periph_clk_init() 271 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, mmp2_axi_periph_clk_init() 323 mmp_clk_init(np, &pxa_unit->unit, MMP2_NR_CLKS); mmp2_clk_init()
|
H A 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/drivers/s390/scsi/ |
H A D | zfcp_unit.c | 15 * @unit: The zfcp LUN/unit to register 21 void zfcp_unit_scsi_scan(struct zfcp_unit *unit) zfcp_unit_scsi_scan() argument 23 struct fc_rport *rport = unit->port->rport; zfcp_unit_scsi_scan() 26 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); zfcp_unit_scsi_scan() 34 struct zfcp_unit *unit = container_of(work, struct zfcp_unit, zfcp_unit_scsi_scan_work() local 37 zfcp_unit_scsi_scan(unit); zfcp_unit_scsi_scan_work() 38 put_device(&unit->dev); zfcp_unit_scsi_scan_work() 53 struct zfcp_unit *unit; zfcp_unit_queue_scsi_scan() local 56 list_for_each_entry(unit, &port->unit_list, list) { zfcp_unit_queue_scsi_scan() 57 get_device(&unit->dev); zfcp_unit_queue_scsi_scan() 59 &unit->scsi_work) <= 0) zfcp_unit_queue_scsi_scan() 60 put_device(&unit->dev); zfcp_unit_queue_scsi_scan() 67 struct zfcp_unit *unit; _zfcp_unit_find() local 69 list_for_each_entry(unit, &port->unit_list, list) _zfcp_unit_find() 70 if (unit->fcp_lun == fcp_lun) { _zfcp_unit_find() 71 get_device(&unit->dev); _zfcp_unit_find() 72 return unit; _zfcp_unit_find() 80 * @port: zfcp_port where to look for the unit 91 struct zfcp_unit *unit; zfcp_unit_find() local 94 unit = _zfcp_unit_find(port, fcp_lun); zfcp_unit_find() 96 return unit; zfcp_unit_find() 105 struct zfcp_unit *unit = container_of(dev, struct zfcp_unit, dev); zfcp_unit_release() local 107 atomic_dec(&unit->port->units); zfcp_unit_release() 108 kfree(unit); zfcp_unit_release() 112 * zfcp_unit_enqueue - enqueue unit to unit list of a port. 113 * @port: pointer to port where unit is added 114 * @fcp_lun: FCP LUN of unit to be enqueued 117 * Sets up some unit internal structures and creates sysfs entry. 121 struct zfcp_unit *unit; zfcp_unit_add() local 131 unit = zfcp_unit_find(port, fcp_lun); zfcp_unit_add() 132 if (unit) { zfcp_unit_add() 133 put_device(&unit->dev); zfcp_unit_add() 138 unit = kzalloc(sizeof(struct zfcp_unit), GFP_KERNEL); zfcp_unit_add() 139 if (!unit) { zfcp_unit_add() 144 unit->port = port; zfcp_unit_add() 145 unit->fcp_lun = fcp_lun; zfcp_unit_add() 146 unit->dev.parent = &port->dev; zfcp_unit_add() 147 unit->dev.release = zfcp_unit_release; zfcp_unit_add() 148 unit->dev.groups = zfcp_unit_attr_groups; zfcp_unit_add() 149 INIT_WORK(&unit->scsi_work, zfcp_unit_scsi_scan_work); zfcp_unit_add() 151 if (dev_set_name(&unit->dev, "0x%016llx", zfcp_unit_add() 153 kfree(unit); zfcp_unit_add() 158 if (device_register(&unit->dev)) { zfcp_unit_add() 159 put_device(&unit->dev); zfcp_unit_add() 167 list_add_tail(&unit->list, &port->unit_list); zfcp_unit_add() 170 zfcp_unit_scsi_scan(unit); zfcp_unit_add() 179 * @unit: The zfcp_unit where to get the SCSI device for 187 struct scsi_device *zfcp_unit_sdev(struct zfcp_unit *unit) zfcp_unit_sdev() argument 193 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); zfcp_unit_sdev() 194 port = unit->port; zfcp_unit_sdev() 201 * @unit: The unit to lookup the SCSI device for 206 unsigned int zfcp_unit_sdev_status(struct zfcp_unit *unit) zfcp_unit_sdev_status() argument 212 sdev = zfcp_unit_sdev(unit); zfcp_unit_sdev_status() 224 * @port: The port where to remove the unit from the configuration 225 * @fcp_lun: The 64 bit LUN of the unit to remove 227 * Returns: -EINVAL if a unit with the specified LUN does not exist, 232 struct zfcp_unit *unit; zfcp_unit_remove() local 236 unit = _zfcp_unit_find(port, fcp_lun); zfcp_unit_remove() 237 if (unit) zfcp_unit_remove() 238 list_del(&unit->list); zfcp_unit_remove() 241 if (!unit) zfcp_unit_remove() 244 sdev = zfcp_unit_sdev(unit); zfcp_unit_remove() 250 put_device(&unit->dev); zfcp_unit_remove() 252 device_unregister(&unit->dev); zfcp_unit_remove()
|
H A 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); zfcp_sysfs_unit_failed_show() local 129 sdev = zfcp_unit_sdev(unit); zfcp_sysfs_unit_failed_show() 143 struct zfcp_unit *unit = container_of(dev, struct zfcp_unit, dev); zfcp_sysfs_unit_failed_store() local 150 sdev = zfcp_unit_sdev(unit); zfcp_sysfs_unit_failed_store() 155 zfcp_erp_wait(unit->port->adapter); zfcp_sysfs_unit_failed_store() 157 zfcp_unit_scsi_scan(unit); zfcp_sysfs_unit_failed_store() 161 static ZFCP_DEV_ATTR(unit, failed, S_IWUSR | S_IRUGO,
|
/linux-4.1.27/arch/mn10300/unit-asb2303/ |
H A D | Makefile | 6 obj-y := unit-init.o smc91111.o flash.o leds.o
|
H A D | unit-init.c | 24 * initialise some of the unit hardware before gdbstub is set up 45 * initialise the rest of the unit hardware after gdbstub is ready 52 * initialise the external interrupts used by a unit of this type
|
H A D | smc91111.c | 22 #include <unit/smc91111.h>
|
/linux-4.1.27/arch/mn10300/unit-asb2305/ |
H A D | Makefile | 6 obj-y := unit-init.o leds.o
|
H A D | unit-init.c | 21 #include <unit/serial.h> 24 * initialise some of the unit hardware before gdbstub is set up 37 * initialise the rest of the unit hardware after gdbstub is ready 47 * initialise the external interrupts used by a unit of this type
|
/linux-4.1.27/include/linux/ |
H A 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 device *dev); 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);
|
H A D | i2c-omap.h | 7 * Version 2 of the I2C peripheral unit has a different register 9 * unit on the OMAP4430 reports the same ID as the V1 peripheral 10 * unit on the OMAP3530, so we must inform the driver which IP 25 /* how the CPU address bus must be translated for I2C unit access */
|
H A D | lis3lv02d.h | 6 * @click_flags: Click detection unit configuration 7 * @click_thresh_x: Click detection unit x axis threshold 8 * @click_thresh_y: Click detection unit y axis threshold 9 * @click_thresh_z: Click detection unit z axis threshold 10 * @click_time_limit: Click detection unit time parameter 11 * @click_latency: Click detection unit latency parameter 12 * @click_window: Click detection unit window parameter 17 * @duration1: Wake up unit 1 duration parameter 18 * @duration2: Wake up unit 2 duration parameter 19 * @wakeup_flags: Wake up unit 1 flags 20 * @wakeup_thresh: Wake up unit 1 threshold value 21 * @wakeup_flags2: Wake up unit 2 flags 22 * @wakeup_thresh2: Wake up unit 2 threshold value 40 * detection units and click detection unit. There are plenty of ways to
|
H A D | amifd.h | 45 struct fd_drive_type *type; /* type of floppy for this unit */ 46 struct fd_data_type *dtype; /* type of floppy for this unit */ 57 int status; /* current error code for unit */
|
H A D | ppp_channel.h | 60 /* Attach a channel to a given PPP unit in specified net. */ 63 /* Attach a channel to a given PPP unit. */ 66 /* Detach a channel from its PPP unit (e.g. on hangup). */ 72 /* Get the unit number associated with a channel, or -1 if none */
|
H A D | maple.h | 15 MAPLE_RESPONSE_NONE, /* unit didn't respond*/ 75 unsigned char port, unit; member in struct:maple_device
|
H A D | firewire.h | 234 static inline struct fw_unit *fw_unit_get(struct fw_unit *unit) fw_unit_get() argument 236 get_device(&unit->device); fw_unit_get() 238 return unit; fw_unit_get() 241 static inline void fw_unit_put(struct fw_unit *unit) fw_unit_put() argument 243 put_device(&unit->device); fw_unit_put() 246 static inline struct fw_device *fw_parent_device(struct fw_unit *unit) fw_parent_device() argument 248 return fw_device(unit->device.parent); 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);
|
H A D | fsl_devices.h | 123 #define SPI_CPM1 (1 << 2) /* SPI unit is in CPM1 block */ 124 #define SPI_CPM2 (1 << 3) /* SPI unit is in CPM2 block */ 125 #define SPI_QE (1 << 4) /* SPI unit is in QE block */
|
/linux-4.1.27/sound/firewire/ |
H A 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);
|
H A D | packets-buffer.h | 20 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, 24 struct fw_unit *unit);
|
H A D | lib.c | 18 * @unit: the driver's unit on the target device 28 * response. The node ID and the current generation are derived from @unit. 32 int snd_fw_transaction(struct fw_unit *unit, int tcode, snd_fw_transaction() argument 36 struct fw_device *device = fw_parent_device(unit); snd_fw_transaction() 58 dev_err(&unit->device, snd_fw_transaction()
|
H A D | packets-buffer.c | 16 * @unit: the device at the other end of the stream 21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, iso_packets_buffer_init() argument 44 err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, iso_packets_buffer_init() 69 * @unit: the device at the other end of the stream 72 struct fw_unit *unit) iso_packets_buffer_destroy() 74 fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); iso_packets_buffer_destroy() 71 iso_packets_buffer_destroy(struct iso_packets_buffer *b, struct fw_unit *unit) iso_packets_buffer_destroy() argument
|
H A D | lib.h | 13 int snd_fw_transaction(struct fw_unit *unit, int tcode,
|
H A D | fcp.c | 28 int avc_general_set_sig_fmt(struct fw_unit *unit, unsigned int rate, avc_general_set_sig_fmt() argument 64 err = fcp_avc_transaction(unit, buf, 8, buf, 8, avc_general_set_sig_fmt() 82 int avc_general_get_sig_fmt(struct fw_unit *unit, unsigned int *rate, avc_general_get_sig_fmt() argument 107 err = fcp_avc_transaction(unit, buf, 8, buf, 8, avc_general_get_sig_fmt() 135 int avc_general_get_plug_info(struct fw_unit *unit, unsigned int subunit_type, avc_general_get_plug_info() argument 156 err = fcp_avc_transaction(unit, buf, 8, buf, 8, BIT(1) | BIT(2)); avc_general_get_plug_info() 192 struct fw_unit *unit; member in struct:fcp_transaction 203 * @unit: a unit on the target device 223 int fcp_avc_transaction(struct fw_unit *unit, fcp_avc_transaction() argument 231 t.unit = unit; fcp_avc_transaction() 248 ret = snd_fw_transaction(t.unit, tcode, fcp_avc_transaction() 273 dev_err(&t.unit->device, "FCP command timed out\n"); fcp_avc_transaction() 289 * @unit: the unit that might be used by fcp_avc_transaction() 295 void fcp_bus_reset(struct fw_unit *unit) fcp_bus_reset() argument 301 if (t->unit == unit && fcp_bus_reset() 347 struct fw_device *device = fw_parent_device(t->unit); fcp_response()
|
H A D | isight.c | 51 struct fw_unit *unit; member in struct:isight 200 dev_err(&isight->unit->device, "queueing error: %d\n", err); isight_packet() 227 err = snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, isight_connect() 270 return iso_packets_buffer_init(&isight->buffer, isight->unit, isight_open() 280 iso_packets_buffer_destroy(&isight->buffer, isight->unit); isight_close() 303 return snd_fw_transaction(isight->unit, TCODE_READ_QUADLET_REQUEST, reg_read() 309 return snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, reg_write() 325 snd_fw_transaction(isight->unit, TCODE_WRITE_QUADLET_REQUEST, isight_stop_streaming() 604 fw_unit_put(isight->unit); isight_card_free() 608 static u64 get_unit_base(struct fw_unit *unit) get_unit_base() argument 613 fw_csr_iterator_init(&i, unit->directory); get_unit_base() 620 static int isight_probe(struct fw_unit *unit, isight_probe() argument 623 struct fw_device *fw_dev = fw_parent_device(unit); isight_probe() 628 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, isight_probe() 636 isight->unit = fw_unit_get(unit); isight_probe() 638 isight->audio_base = get_unit_base(unit); isight_probe() 640 dev_err(&unit->device, "audio unit base not found\n"); isight_probe() 644 fw_iso_resources_init(&isight->resources, unit); isight_probe() 653 dev_name(&unit->device), 100 << fw_dev->max_speed); isight_probe() 668 dev_set_drvdata(&unit->device, isight); isight_probe() 673 fw_unit_put(isight->unit); isight_probe() 680 static void isight_bus_reset(struct fw_unit *unit) isight_bus_reset() argument 682 struct isight *isight = dev_get_drvdata(&unit->device); isight_bus_reset() 693 static void isight_remove(struct fw_unit *unit) isight_remove() argument 695 struct isight *isight = dev_get_drvdata(&unit->device); isight_remove()
|
H A D | scs1x.c | 34 struct fw_unit *unit; member in struct:scs 219 dev = fw_parent_device(scs->unit); scs_output_tasklet() 371 err = snd_fw_transaction(scs->unit, TCODE_WRITE_BLOCK_REQUEST, scs_init_hss_address() 374 dev_err(&scs->unit->device, "HSS1394 communication failed\n"); scs_init_hss_address() 387 static int scs_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) scs_probe() argument 389 struct fw_device *fw_dev = fw_parent_device(unit); scs_probe() 394 err = snd_card_new(&unit->device, -16, NULL, THIS_MODULE, scs_probe() 401 scs->unit = unit; scs_probe() 424 fw_csr_string(unit->directory, CSR_MODEL, scs_probe() 429 dev_name(&unit->device), 100 << fw_dev->max_speed); scs_probe() 444 dev_set_drvdata(&unit->device, scs); scs_probe() 455 static void scs_update(struct fw_unit *unit) scs_update() argument 457 struct scs *scs = dev_get_drvdata(&unit->device); scs_update() 463 generation = fw_parent_device(unit)->generation; scs_update() 465 snd_fw_transaction(scs->unit, TCODE_WRITE_BLOCK_REQUEST, scs_update() 470 static void scs_remove(struct fw_unit *unit) scs_remove() argument 472 struct scs *scs = dev_get_drvdata(&unit->device); scs_remove()
|
H A D | iso-resources.c | 21 * @unit: the device unit for which the resources will be needed 26 int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) fw_iso_resources_init() argument 29 r->unit = unit; fw_iso_resources_init() 108 struct fw_card *card = fw_parent_device(r->unit)->card; fw_iso_resources_allocate() 140 dev_err(&r->unit->device, fw_iso_resources_allocate() 143 dev_err(&r->unit->device, fw_iso_resources_allocate() 166 struct fw_card *card = fw_parent_device(r->unit)->card; fw_iso_resources_update() 192 dev_err(&r->unit->device, fw_iso_resources_update() 195 dev_err(&r->unit->device, fw_iso_resources_update() 213 struct fw_card *card = fw_parent_device(r->unit)->card; fw_iso_resources_free() 223 dev_err(&r->unit->device, fw_iso_resources_free()
|
H A D | iso-resources.h | 20 struct fw_unit *unit; member in struct:fw_iso_resources 30 struct fw_unit *unit);
|
H A D | cmp.c | 51 dev_err(&c->resources.unit->device, "%cPCR%u: %pV", cmp_error() 87 c->resources.unit, TCODE_LOCK_COMPARE_SWAP, pcr_modify() 116 * @unit: a unit of the target device 121 struct fw_unit *unit, cmp_connection_init() 130 err = snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, cmp_connection_init() 139 err = fw_iso_resources_init(&c->resources, unit); cmp_connection_init() 166 c->resources.unit, TCODE_READ_QUADLET_REQUEST, cmp_connection_check_used() 282 fw_parent_device(c->resources.unit)->max_speed); cmp_connection_establish() 120 cmp_connection_init(struct cmp_connection *c, struct fw_unit *unit, enum cmp_direction direction, unsigned int pcr_index) cmp_connection_init() argument
|
H A D | cmp.h | 38 struct fw_unit *unit,
|
/linux-4.1.27/arch/frv/include/asm/ |
H A D | fpu.h | 6 * MAX floating point unit state size (FSAVE/FRESTORE)
|
/linux-4.1.27/arch/metag/kernel/ |
H A D | core_reg.c | 31 * core_reg_write() - modify the content of a register in a core unit. 32 * @unit: The unit to be modified. 33 * @reg: Register number within the unit. 41 void core_reg_write(int unit, int reg, int thread, unsigned int val) core_reg_write() argument 46 if (unit == TXUCT_ID) { core_reg_write() 62 val = UNIT_VAL(unit) | REG_VAL(reg) | THREAD_VAL(thread); core_reg_write() 74 * core_reg_read() - read the content of a register in a core unit. 75 * @unit: The unit to be modified. 76 * @reg: Register number within the unit. 83 unsigned int core_reg_read(int unit, int reg, int thread) core_reg_read() argument 89 if (unit == TXUCT_ID) { core_reg_read() 102 val = (UNIT_VAL(unit) | REG_VAL(reg) | THREAD_VAL(thread) | core_reg_read()
|
/linux-4.1.27/sound/ |
H A D | sound_core.c | 227 static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) __sound_remove_unit() argument 232 if(p->unit_minor==unit) __sound_remove_unit() 239 printk(KERN_ERR "Sound device %d went missing!\n", unit); __sound_remove_unit() 278 * to the next unit; otherwise, -EBUSY. sound_insert_unit() 304 * Remove a unit. Acquires locks as needed. The drivers MUST have 309 static void sound_remove_unit(struct sound_unit **list, int unit) sound_remove_unit() argument 314 p = __sound_remove_unit(list, unit); sound_remove_unit() 351 * @unit: Unit number to allocate 361 int register_sound_special_device(const struct file_operations *fops, int unit, register_sound_special_device() argument 364 const int chain = unit % SOUND_STEP; register_sound_special_device() 375 if (unit >= SOUND_STEP) register_sound_special_device() 377 max_unit = unit + 1; register_sound_special_device() 393 if (unit >= SOUND_STEP) register_sound_special_device() 395 max_unit = unit + 1; register_sound_special_device() 416 if (unit >= SOUND_STEP) register_sound_special_device() 422 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, register_sound_special_device() 428 int register_sound_special(const struct file_operations *fops, int unit) register_sound_special() argument 430 return register_sound_special_device(fops, unit, NULL); register_sound_special() 441 * Pass -1 to request the next free mixer unit. 461 * Pass -1 to request the next free midi unit. 486 * Pass -1 to request the next free DSP unit. 505 * @unit: unit number to allocate 508 * register_sound_special(). The unit passed is the return value from 513 void unregister_sound_special(int unit) unregister_sound_special() argument 515 sound_remove_unit(&chains[unit % SOUND_STEP], unit); unregister_sound_special() 522 * @unit: unit number to allocate 525 * The unit passed is the return value from the register function. 528 void unregister_sound_mixer(int unit) unregister_sound_mixer() argument 530 sound_remove_unit(&chains[0], unit); unregister_sound_mixer() 537 * @unit: unit number to allocate 540 * The unit passed is the return value from the register function. 543 void unregister_sound_midi(int unit) unregister_sound_midi() argument 545 sound_remove_unit(&chains[2], unit); unregister_sound_midi() 552 * @unit: unit number to allocate 555 * The unit passed is the return value from the register function. 560 void unregister_sound_dsp(int unit) unregister_sound_dsp() argument 562 sound_remove_unit(&chains[3], unit); unregister_sound_dsp() 568 static struct sound_unit *__look_for_unit(int chain, int unit) __look_for_unit() argument 573 while(s && s->unit_minor <= unit) __look_for_unit() 575 if(s->unit_minor==unit) __look_for_unit() 585 int unit = iminor(inode); soundcore_open() local 589 chain=unit&0x0F; soundcore_open() 592 unit&=0xF0; soundcore_open() 593 unit|=3; soundcore_open() 598 s = __look_for_unit(chain, unit); soundcore_open() 611 request_module("sound-slot-%i", unit>>4); soundcore_open() 612 request_module("sound-service-%i-%i", unit>>4, chain); soundcore_open() 621 if (request_module("char-major-%d-%d", SOUND_MAJOR, unit) > 0) soundcore_open() 625 s = __look_for_unit(chain, unit); soundcore_open()
|
/linux-4.1.27/arch/powerpc/perf/ |
H A D | power4-pmu.c | 22 #define PM_UNIT_SH 8 /* TTMMUX number and setting - unit select */ 116 * UC1 - unit constraint 1: can't have all three of FPU/ISU1/IDU0|ISU2 122 * UC2 - unit constraint 2: can't have all three of FPU/IFU/LSU0 128 * UC3 - unit constraint 3: can't have all four of LSU0/IFU/IDU0|ISU2/ISU1 185 int unit; member in struct:unitinfo 220 int pmc, psel, unit, byte, bit; p4_marked_instr_event() local 238 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; p4_marked_instr_event() 240 switch (unit) { p4_marked_instr_event() 257 int pmc, byte, unit, lower, sh; p4_get_constraint() local 270 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; p4_get_constraint() 272 if (unit) { p4_get_constraint() 282 if (!p4_unitinfo[unit].unit) p4_get_constraint() 284 mask |= p4_unitinfo[unit].mask; p4_get_constraint() 285 value |= p4_unitinfo[unit].value; p4_get_constraint() 286 sh = p4_unitinfo[unit].lowerbit; p4_get_constraint() 291 unit = p4_unitinfo[unit].unit; p4_get_constraint() 295 value |= (unsigned long)unit << (28 - 4 * byte); p4_get_constraint() 362 unsigned int pmc, unit, byte, psel, lower; p4_compute_mmcr() local 387 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; p4_compute_mmcr() 390 if (unit) { p4_compute_mmcr() 393 if (unit == 6 || unit == 8) p4_compute_mmcr() 395 unit = (unit >> 1) - 1; p4_compute_mmcr() 396 if (busbyte[byte] && busbyte[byte] != unit) p4_compute_mmcr() 398 busbyte[byte] = unit; p4_compute_mmcr() 399 lower <<= unit; p4_compute_mmcr() local 400 if (unituse[unit] && lower != (unitlower & lower)) p4_compute_mmcr() 402 unituse[unit] = 1; p4_compute_mmcr() 413 * Each TTMx can only select one unit, but since p4_compute_mmcr() 426 /* Check only one unit per TTMx */ p4_compute_mmcr() 453 unit = busbyte[byte]; p4_compute_mmcr() 454 if (!unit) p4_compute_mmcr() 456 if (unit == 0xf) { p4_compute_mmcr() 460 if (!unituse[unit]) p4_compute_mmcr() 461 ttm = unit - 1; /* 2->1, 3->2 */ p4_compute_mmcr() 463 ttm = unit >> 2; p4_compute_mmcr() 472 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; p4_compute_mmcr() 477 if (unit) p4_compute_mmcr() 483 if (unit) { p4_compute_mmcr()
|
H A D | ppc970-pmu.c | 21 #define PM_UNIT_SH 8 /* TTMMUX number and setting - unit select */ 102 * UC - unit constraint: can't have all three of FPU|IFU|VPU, ISU, IDU|STS 149 int pmc, psel, unit, byte, bit; p970_marked_instr_event() local 167 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; p970_marked_instr_event() 169 switch (unit) { p970_marked_instr_event() 197 int pmc, byte, unit, sh, spcsel; p970_get_constraint() local 210 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; p970_get_constraint() 211 if (unit) { p970_get_constraint() 212 if (unit > PM_LASTUNIT) p970_get_constraint() 214 mask |= unit_cons[unit][0]; p970_get_constraint() 215 value |= unit_cons[unit][1]; p970_get_constraint() 225 value |= (unsigned long)unit << (28 - 4 * byte); p970_get_constraint() 263 unsigned int pmc, unit, byte, psel; p970_compute_mmcr() local 291 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; p970_compute_mmcr() 293 if (unit) { p970_compute_mmcr() 294 if (unit > PM_LASTUNIT) p970_compute_mmcr() 298 if (busbyte[byte] && busbyte[byte] != unit) p970_compute_mmcr() 300 busbyte[byte] = unit; p970_compute_mmcr() 301 unituse[unit] = 1; p970_compute_mmcr() 325 /* Check only one unit per TTMx */ p970_compute_mmcr() 331 unit = busbyte[byte]; p970_compute_mmcr() 332 if (!unit) p970_compute_mmcr() 334 if (unit <= PM_STS) p970_compute_mmcr() 335 ttm = (unitmap[unit] >> 2) & 1; p970_compute_mmcr() 336 else if (unit == PM_LSU0) p970_compute_mmcr() 340 if (unit == PM_LSU1L && byte >= 2) p970_compute_mmcr() 351 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; p970_compute_mmcr() 356 if (unit) p970_compute_mmcr() 364 if (unit) { p970_compute_mmcr()
|
H A D | power5+-pmu.c | 23 #define PM_UNIT_SH 16 /* TTMMUX number and setting - unit select */ 99 * UC - unit constraint: can't have all three of FPU|IFU|ISU1, ISU0, IDU|GRS 139 int pmc, byte, unit, sh; power5p_get_constraint() local 154 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; power5p_get_constraint() 155 if (unit > PM_LASTUNIT) power5p_get_constraint() 157 if (unit == PM_ISU0_ALT) power5p_get_constraint() 158 unit = PM_ISU0; power5p_get_constraint() 159 mask |= unit_cons[unit][0]; power5p_get_constraint() 160 value |= unit_cons[unit][1]; power5p_get_constraint() 163 if (unit != PM_LSU1) power5p_get_constraint() 165 /* Map LSU1 low word (bytes 4-7) to unit LSU1+1 */ power5p_get_constraint() 166 ++unit; power5p_get_constraint() 169 if (unit == PM_GRS) { power5p_get_constraint() 179 value |= (unsigned long)unit << (24 - 4 * byte); power5p_get_constraint() 408 int bit, byte, unit; power5p_marked_instr_event() local 440 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; power5p_marked_instr_event() 441 if (unit == PM_LSU0) { power5p_marked_instr_event() 444 } else if (unit == PM_LSU1 && byte >= 4) { power5p_marked_instr_event() 459 unsigned int pmc, unit, byte, psel; power5p_compute_mmcr() local 483 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; power5p_compute_mmcr() 485 if (unit > PM_LASTUNIT) power5p_compute_mmcr() 487 if (unit == PM_ISU0_ALT) power5p_compute_mmcr() 488 unit = PM_ISU0; power5p_compute_mmcr() 490 if (unit != PM_LSU1) power5p_compute_mmcr() 492 ++unit; power5p_compute_mmcr() 495 if (busbyte[byte] && busbyte[byte] != unit) power5p_compute_mmcr() 497 busbyte[byte] = unit; power5p_compute_mmcr() 498 unituse[unit] = 1; power5p_compute_mmcr() 535 unit = busbyte[byte]; power5p_compute_mmcr() 536 if (!unit) power5p_compute_mmcr() 538 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) { power5p_compute_mmcr() 540 unit = PM_ISU0_ALT; power5p_compute_mmcr() 541 } else if (unit == PM_LSU1 + 1) { power5p_compute_mmcr() 545 ttm = unit >> 2; power5p_compute_mmcr() 553 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; power5p_compute_mmcr() 577 if (isbus && unit == PM_GRS) { power5p_compute_mmcr()
|
H A D | power5-pmu.c | 23 #define PM_UNIT_SH 16 /* TTMMUX number and setting - unit select */ 99 * UC - unit constraint: can't have all three of FPU|IFU|ISU1, ISU0, IDU|GRS 143 int pmc, byte, unit, sh; power5_get_constraint() local 161 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; power5_get_constraint() 162 if (unit > PM_LASTUNIT) power5_get_constraint() 164 if (unit == PM_ISU0_ALT) power5_get_constraint() 165 unit = PM_ISU0; power5_get_constraint() 166 mask |= unit_cons[unit][0]; power5_get_constraint() 167 value |= unit_cons[unit][1]; power5_get_constraint() 170 if (unit != PM_LSU1) power5_get_constraint() 172 /* Map LSU1 low word (bytes 4-7) to unit LSU1+1 */ power5_get_constraint() 173 ++unit; power5_get_constraint() 176 if (unit == PM_GRS) { power5_get_constraint() 192 value |= (unsigned long)unit << (24 - 4 * byte); power5_get_constraint() 344 int bit, byte, unit; power5_marked_instr_event() local 371 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; power5_marked_instr_event() 372 if (unit == PM_LSU0) { power5_marked_instr_event() 375 } else if (unit == PM_LSU1 && byte >= 4) { power5_marked_instr_event() 390 unsigned int pmc, unit, byte, psel; power5_compute_mmcr() local 419 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; power5_compute_mmcr() 421 if (unit > PM_LASTUNIT) power5_compute_mmcr() 423 if (unit == PM_ISU0_ALT) power5_compute_mmcr() 424 unit = PM_ISU0; power5_compute_mmcr() 426 if (unit != PM_LSU1) power5_compute_mmcr() 428 ++unit; power5_compute_mmcr() 433 if (busbyte[byte] && busbyte[byte] != unit) power5_compute_mmcr() 435 busbyte[byte] = unit; power5_compute_mmcr() 436 unituse[unit] = 1; power5_compute_mmcr() 475 unit = busbyte[byte]; power5_compute_mmcr() 476 if (!unit) power5_compute_mmcr() 478 if (unit == PM_ISU0 && unituse[PM_ISU0_ALT]) { power5_compute_mmcr() 480 unit = PM_ISU0_ALT; power5_compute_mmcr() 481 } else if (unit == PM_LSU1 + 1) { power5_compute_mmcr() 485 ttm = unit >> 2; power5_compute_mmcr() 493 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; power5_compute_mmcr() 522 if (isbus && unit == PM_GRS) { power5_compute_mmcr()
|
H A D | power7-pmu.c | 23 #define PM_UNIT_SH 12 /* TTMMUX number and setting - unit select */ 88 int pmc, sh, unit; power7_get_constraint() local 107 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; power7_get_constraint() 108 if (unit == 6) { power7_get_constraint() 218 int unit; power7_marked_instr_event() local 221 unit = (event >> PM_UNIT_SH) & PM_UNIT_MSK; power7_marked_instr_event() 237 return unit == 0xd; power7_marked_instr_event() 242 return unit == 0xd; power7_marked_instr_event() 252 unsigned int pmc, unit, combine, l2sel, psel; power7_compute_mmcr() local 271 unit = (event[i] >> PM_UNIT_SH) & PM_UNIT_MSK; power7_compute_mmcr() 289 mmcr1 |= (unsigned long) unit power7_compute_mmcr() 294 if (unit == 6) /* L2 events */ power7_compute_mmcr()
|
H A D | power8-pmu.c | 76 * [ ] [ sample ] [cache] [ pmc ] [unit ] c m [ pmcxsel ] 87 * MMCR1[x:y] = unit (PMCxUNIT) 90 * if pmc == 3 and unit == 0 and pmcxsel[0:6] == 0b0101011 93 * else if pmc == 4 and unit == 0xf and pmcxsel[0:6] == 0b0101001 106 * if unit == 6 or unit == 7 108 * else if unit == 8 or unit == 9: 278 /* Only check pmc, unit and pmcxsel, ignore the edge bit (0) */ event_is_fab_match() 287 unsigned int unit, pmc, cache, ebb; power8_get_constraint() local 296 unit = (event >> EVENT_UNIT_SHIFT) & EVENT_UNIT_MASK; power8_get_constraint() 327 if (unit >= 6 && unit <= 9) { power8_get_constraint() 405 unsigned long mmcra, mmcr1, mmcr2, unit, combine, psel, cache, val; power8_compute_mmcr() local 425 unit = (event[i] >> EVENT_UNIT_SHIFT) & EVENT_UNIT_MASK; power8_compute_mmcr() 439 mmcr1 |= unit << MMCR1_UNIT_SHIFT(pmc); power8_compute_mmcr() 611 PMU_FORMAT_ATTR(unit, "config:12-15");
|
/linux-4.1.27/arch/tile/kernel/ |
H A D | usb.c | 28 #define USB_HOST_DEF(unit, type, dmamask) \ 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/sound/firewire/dice/ |
H A D | dice.c | 19 static int dice_interface_check(struct fw_unit *unit) dice_interface_check() argument 28 struct fw_device *device = fw_parent_device(unit); dice_interface_check() 41 * Check that GUID and unit directory are constructed according to DICE dice_interface_check() 46 fw_csr_iterator_init(&it, unit->directory); dice_interface_check() 72 err = snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, dice_interface_check() 91 err = snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, dice_interface_check() 100 dev_err(&unit->device, dice_interface_check() 197 struct fw_device *dev = fw_parent_device(dice->unit); dice_card_strings() 220 fw_csr_string(dice->unit->directory, CSR_MODEL, model, sizeof(model)); dice_card_strings() 224 dev_name(&dice->unit->device), 100 << dev->max_speed); dice_card_strings() 230 * This module releases the FireWire unit data after all ALSA character devices 233 * references for the unit. 241 fw_unit_put(dice->unit); dice_card_free() 246 static int dice_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) dice_probe() argument 252 err = dice_interface_check(unit); dice_probe() 256 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, dice_probe() 263 dice->unit = fw_unit_get(unit); dice_probe() 305 dev_set_drvdata(&unit->device, dice); dice_probe() 313 static void dice_remove(struct fw_unit *unit) dice_remove() argument 315 struct snd_dice *dice = dev_get_drvdata(&unit->device); dice_remove() 321 static void dice_bus_reset(struct fw_unit *unit) dice_bus_reset() argument 323 struct snd_dice *dice = dev_get_drvdata(&unit->device); dice_bus_reset()
|
H A D | dice-stream.c | 69 fw_parent_device(dice->unit)->max_speed); keep_resources() 149 dev_err(&dice->unit->device, start_stream() 155 fw_parent_device(dice->unit)->max_speed); start_stream() 217 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 234 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 242 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 248 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 255 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 300 err = fw_iso_resources_init(resources, dice->unit); init_stream() 305 err = amdtp_stream_init(stream, dice->unit, dir, CIP_BLOCKING); init_stream()
|
H A D | dice-transaction.c | 43 return snd_fw_transaction(dice->unit, snd_dice_transaction_write() 53 return snd_fw_transaction(dice->unit, snd_dice_transaction_read() 175 err = snd_fw_transaction(dice->unit, TCODE_WRITE_QUADLET_REQUEST, snd_dice_transaction_set_enable() 193 snd_fw_transaction(dice->unit, TCODE_WRITE_QUADLET_REQUEST, snd_dice_transaction_clear_enable() 235 struct fw_device *device = fw_parent_device(dice->unit); register_notification_address() 254 err = snd_fw_transaction(dice->unit, TCODE_LOCK_COMPARE_SWAP, register_notification_address() 269 dev_err(&dice->unit->device, register_notification_address() 289 struct fw_device *device = fw_parent_device(dice->unit); unregister_notification_address() 300 snd_fw_transaction(dice->unit, TCODE_LOCK_COMPARE_SWAP, unregister_notification_address() 346 err = snd_fw_transaction(dice->unit, TCODE_READ_BLOCK_REQUEST, snd_dice_transaction_init()
|
/linux-4.1.27/sound/firewire/bebob/ |
H A D | bebob.c | 69 struct fw_device *fw_dev = fw_parent_device(bebob->unit); name_device() 83 /* get model name from unit directory */ name_device() 84 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, name_device() 90 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, name_device() 96 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, name_device() 102 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, name_device() 113 data[0], data[1], dev_name(&bebob->unit->device), name_device() 120 * This module releases the FireWire unit data after all ALSA character devices 123 * references for the unit. 131 fw_unit_put(bebob->unit); bebob_card_free() 145 get_saffire_spec(struct fw_unit *unit) get_saffire_spec() argument 149 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) get_saffire_spec() 159 check_audiophile_booted(struct fw_unit *unit) check_audiophile_booted() argument 163 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) check_audiophile_booted() 170 bebob_probe(struct fw_unit *unit, bebob_probe() argument 192 spec = get_saffire_spec(unit); bebob_probe() 195 !check_audiophile_booted(unit)) bebob_probe() 203 err = snd_bebob_maudio_load_firmware(unit); bebob_probe() 209 err = snd_card_new(&unit->device, index[card_index], id[card_index], bebob_probe() 219 bebob->unit = fw_unit_get(unit); bebob_probe() 279 fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, bebob_probe() 283 dev_set_drvdata(&unit->device, bebob); bebob_probe() 294 bebob_update(struct fw_unit *unit) bebob_update() argument 296 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); bebob_update() 301 fcp_bus_reset(bebob->unit); bebob_update() 313 static void bebob_remove(struct fw_unit *unit) bebob_remove() argument 315 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); bebob_remove()
|
H A D | bebob_terratec.c | 20 err = avc_audio_get_selector(bebob->unit, 0, 9, &enable_ext); phase88_rack_clk_src_get() 23 err = avc_audio_get_selector(bebob->unit, 0, 8, &enable_word); phase88_rack_clk_src_get() 43 return avc_audio_get_selector(bebob->unit, 0, 4, id); phase24_series_clk_src_get()
|
H A D | bebob_stream.c | 72 err = avc_general_get_sig_fmt(bebob->unit, &tx_rate, snd_bebob_stream_get_rate() 80 err = avc_general_get_sig_fmt(bebob->unit, &rx_rate, snd_bebob_stream_get_rate() 91 err = avc_general_set_sig_fmt(bebob->unit, rx_rate, snd_bebob_stream_get_rate() 102 err = avc_general_set_sig_fmt(bebob->unit, rate, snd_bebob_stream_set_rate() 107 err = avc_general_set_sig_fmt(bebob->unit, rate, snd_bebob_stream_set_rate() 135 dev_err(&bebob->unit->device, snd_bebob_stream_check_internal_clock() 141 dev_err(&bebob->unit->device, snd_bebob_stream_check_internal_clock() 170 err = avc_bridgeco_get_plug_input(bebob->unit, addr, input); snd_bebob_stream_check_internal_clock() 172 dev_err(&bebob->unit->device, snd_bebob_stream_check_internal_clock() 223 err = avc_bridgeco_get_plug_ch_pos(bebob->unit, addr, buf, 256); map_data_channels() 225 dev_err(&bebob->unit->device, map_data_channels() 244 err = avc_bridgeco_get_plug_section_type(bebob->unit, addr, map_data_channels() 247 dev_err(&bebob->unit->device, map_data_channels() 327 bebob->unit, CMP_INPUT, 0); init_both_connections() 332 bebob->unit, CMP_OUTPUT, 0); init_both_connections() 353 dev_err(&bebob->unit->device, check_connection_used_by_others() 464 err = amdtp_stream_init(&bebob->tx_stream, bebob->unit, snd_bebob_stream_init_duplex() 482 err = amdtp_stream_init(&bebob->rx_stream, bebob->unit, snd_bebob_stream_init_duplex() 564 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 591 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 604 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 618 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 640 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 827 err = avc_bridgeco_get_plug_strm_fmt(bebob->unit, addr, buf, fill_stream_formations() 834 dev_err(&bebob->unit->device, fill_stream_formations() 861 err = avc_general_get_plug_info(bebob->unit, 0x0c, 0x00, 0x00, plugs); seek_msu_sync_input_plug() 863 dev_err(&bebob->unit->device, seek_msu_sync_input_plug() 873 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); seek_msu_sync_input_plug() 875 dev_err(&bebob->unit->device, seek_msu_sync_input_plug() 899 err = avc_general_get_plug_info(bebob->unit, 0x1f, 0x07, 0x00, plugs); snd_bebob_stream_discover() 901 dev_err(&bebob->unit->device, snd_bebob_stream_discover() 918 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); snd_bebob_stream_discover() 920 dev_err(&bebob->unit->device, snd_bebob_stream_discover() 933 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); snd_bebob_stream_discover() 935 dev_err(&bebob->unit->device, snd_bebob_stream_discover() 951 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); snd_bebob_stream_discover() 953 dev_err(&bebob->unit->device, snd_bebob_stream_discover() 967 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); snd_bebob_stream_discover() 969 dev_err(&bebob->unit->device, snd_bebob_stream_discover()
|
H A D | bebob.h | 75 struct fw_unit *unit; member in struct:snd_bebob 116 snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) snd_bebob_read_block() argument 118 return snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, snd_bebob_read_block() 124 snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) snd_bebob_read_quad() argument 126 return snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, 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, avc_bridgeco_fill_unit_addr() 173 buf[3] = unit; avc_bridgeco_fill_unit_addr() 189 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, 192 int avc_bridgeco_get_plug_type(struct fw_unit *unit, 195 int avc_bridgeco_get_plug_section_type(struct fw_unit *unit, 198 int avc_bridgeco_get_plug_input(struct fw_unit *unit, 201 int avc_bridgeco_get_plug_strm_fmt(struct fw_unit *unit, 244 int snd_bebob_maudio_load_firmware(struct fw_unit *unit); 165 avc_bridgeco_fill_unit_addr(u8 buf[AVC_BRIDGECO_ADDR_BYTES], enum avc_bridgeco_plug_dir dir, enum avc_bridgeco_plug_unit unit, unsigned int pid) avc_bridgeco_fill_unit_addr() argument
|
H A D | bebob_command.c | 11 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, avc_audio_set_selector() argument 31 err = fcp_avc_transaction(unit, buf, 12, buf, 12, avc_audio_set_selector() 47 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, avc_audio_get_selector() argument 67 err = fcp_avc_transaction(unit, buf, 12, buf, 12, avc_audio_get_selector() 106 int avc_bridgeco_get_plug_type(struct fw_unit *unit, avc_bridgeco_get_plug_type() argument 120 err = fcp_avc_transaction(unit, buf, 12, buf, 12, avc_bridgeco_get_plug_type() 141 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, avc_bridgeco_get_plug_ch_pos() argument 150 err = fcp_avc_transaction(unit, buf, 12, buf, 256, avc_bridgeco_get_plug_ch_pos() 171 int avc_bridgeco_get_plug_section_type(struct fw_unit *unit, avc_bridgeco_get_plug_section_type() argument 187 err = fcp_avc_transaction(unit, buf, 12, buf, 12, avc_bridgeco_get_plug_section_type() 208 int avc_bridgeco_get_plug_input(struct fw_unit *unit, avc_bridgeco_get_plug_input() argument 221 err = fcp_avc_transaction(unit, buf, 16, buf, 16, avc_bridgeco_get_plug_input() 242 int avc_bridgeco_get_plug_strm_fmt(struct fw_unit *unit, avc_bridgeco_get_plug_strm_fmt() argument 260 err = fcp_avc_transaction(unit, buf, 12, buf, *len, avc_bridgeco_get_plug_strm_fmt()
|
H A D | bebob_maudio.c | 94 int snd_bebob_maudio_load_firmware(struct fw_unit *unit) snd_bebob_maudio_load_firmware() argument 96 struct fw_device *device = fw_parent_device(unit); snd_bebob_maudio_load_firmware() 106 err = snd_bebob_read_block(unit, INFO_OFFSET_SW_DATE, snd_bebob_maudio_load_firmware() 115 dev_err(&unit->device, snd_bebob_maudio_load_firmware() 126 dev_err(&unit->device, snd_bebob_maudio_load_firmware() 137 return snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, get_meter() 197 err = fcp_avc_transaction(bebob->unit, buf, 12, buf, 12, avc_maudio_set_special_clk() 274 dev_err(&bebob->unit->device, snd_bebob_maudio_special_discover() 308 err = avc_general_get_sig_fmt(bebob->unit, rate, special_get_rate() 319 err = avc_general_set_sig_fmt(bebob->unit, rate, special_set_rate() 330 err = avc_general_set_sig_fmt(bebob->unit, rate, special_set_rate() 452 err = avc_audio_get_selector(bebob->unit, 0x00, 0x04, special_dig_in_iface_ctl_get() 455 dev_err(&bebob->unit->device, special_dig_in_iface_ctl_get() 505 err = avc_audio_set_selector(bebob->unit, 0x00, 0x04, dig_in_iface); special_dig_in_iface_ctl_set() 507 dev_err(&bebob->unit->device, special_dig_in_iface_ctl_set()
|
/linux-4.1.27/include/linux/i2c/ |
H A D | pxa-i2c.h | 30 * 14. UR 0 (No unit reset) 31 * 13. SADIE 0 (Disables the unit from interrupting on slave addresses 33 * 12. ALDIE 0 (Disables the unit from interrupt when it loses arbitration 38 * 8. ITEIE 1 (Enables the I2C unit to interrupt when transmit buffer empty) 39 * 7. GCD 1 (Disables i2c unit response to general call messages as a slave) 40 * 6. IUE 0 (Disable unit until we change settings) 44 * 2. ACKNAK 0 (Send an ACK after the unit receives a byte)
|
/linux-4.1.27/sound/firewire/oxfw/ |
H A D | oxfw.c | 30 static bool detect_loud_models(struct fw_unit *unit) detect_loud_models() argument 43 err = fw_csr_string(unit->directory, CSR_MODEL, detect_loud_models() 58 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); name_card() 71 /* get model name from unit directory */ name_card() 72 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, name_card() 77 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, name_card() 102 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); name_card() 108 * This module releases the FireWire unit data after all ALSA character devices 111 * references for the unit. 122 fw_unit_put(oxfw->unit); oxfw_card_free() 132 static int oxfw_probe(struct fw_unit *unit, oxfw_probe() argument 139 if ((id->vendor_id == VENDOR_LOUD) && !detect_loud_models(unit)) oxfw_probe() 142 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, oxfw_probe() 151 oxfw->unit = fw_unit_get(unit); oxfw_probe() 200 dev_set_drvdata(&unit->device, oxfw); oxfw_probe() 208 static void oxfw_bus_reset(struct fw_unit *unit) oxfw_bus_reset() argument 210 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); oxfw_bus_reset() 212 fcp_bus_reset(oxfw->unit); oxfw_bus_reset() 223 static void oxfw_remove(struct fw_unit *unit) oxfw_remove() argument 225 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); oxfw_remove()
|
H A D | oxfw.h | 47 struct fw_unit *unit; member in struct:snd_oxfw 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, avc_stream_get_format_single() argument 90 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); avc_stream_get_format_single() 93 avc_stream_get_format_list(struct fw_unit *unit, avc_stream_get_format_list() argument 98 return avc_stream_get_format(unit, dir, pid, buf, len, eid); avc_stream_get_format_list() 105 int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate,
|
H A D | oxfw-stream.c | 46 err = avc_general_set_sig_fmt(oxfw->unit, rate, set_rate() 52 err = avc_general_set_sig_fmt(oxfw->unit, rate, set_rate() 94 err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); set_stream_format() 196 dev_err(&oxfw->unit->device, check_connection_used_by_others() 224 err = cmp_connection_init(conn, oxfw->unit, c_dir, 0); snd_oxfw_stream_init_simplex() 228 err = amdtp_stream_init(stream, oxfw->unit, s_dir, CIP_NONBLOCKING); snd_oxfw_stream_init_simplex() 303 dev_err(&oxfw->unit->device, snd_oxfw_stream_start_simplex() 313 dev_err(&oxfw->unit->device, snd_oxfw_stream_start_simplex() 324 dev_err(&oxfw->unit->device, snd_oxfw_stream_start_simplex() 388 err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len); snd_oxfw_stream_get_current_formation() 494 err = avc_stream_get_format_single(oxfw->unit, dir, pid, buf, len); assume_stream_formats() 496 dev_err(&oxfw->unit->device, assume_stream_formats() 521 err = avc_general_inquiry_sig_fmt(oxfw->unit, assume_stream_formats() 563 err = avc_stream_get_format_list(oxfw->unit, dir, 0, buf, &len, 0); fill_stream_formats() 571 dev_err(&oxfw->unit->device, fill_stream_formats() 600 err = avc_stream_get_format_list(oxfw->unit, dir, 0, fill_stream_formats() 607 dev_err(&oxfw->unit->device, fill_stream_formats() 626 err = avc_general_get_plug_info(oxfw->unit, 0x1f, 0x07, 0x00, plugs); snd_oxfw_stream_discover() 628 dev_err(&oxfw->unit->device, snd_oxfw_stream_discover()
|
H A D | oxfw-command.c | 11 int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, avc_stream_set_format() argument 34 err = fcp_avc_transaction(unit, buf, len + 10, buf, len + 10, avc_stream_set_format() 51 int avc_stream_get_format(struct fw_unit *unit, avc_stream_get_format() argument 77 err = fcp_avc_transaction(unit, buf, 12, buf, *len, avc_stream_get_format() 108 int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate, avc_general_inquiry_sig_fmt() argument 140 err = fcp_avc_transaction(unit, buf, 8, buf, 8, avc_general_inquiry_sig_fmt()
|
H A D | oxfw-control.c | 35 buf[1] = 0x08; /* audio unit 0 */ oxfw_mute_command() 49 err = fcp_avc_transaction(oxfw->unit, buf, 11, buf, 11, 0x3fe); oxfw_mute_command() 53 dev_err(&oxfw->unit->device, "short FCP response\n"); oxfw_mute_command() 58 dev_err(&oxfw->unit->device, "mute command failed\n"); oxfw_mute_command() 93 buf[1] = 0x08; /* audio unit 0 */ oxfw_volume_command() 110 err = fcp_avc_transaction(oxfw->unit, buf, 12, buf, 12, 0x3fe); oxfw_volume_command() 114 dev_err(&oxfw->unit->device, "short FCP response\n"); oxfw_volume_command() 119 dev_err(&oxfw->unit->device, "volume command failed\n"); oxfw_volume_command()
|
/linux-4.1.27/arch/arm/include/asm/ |
H A D | neon.h | 20 * compilation unit. To prevent issues that may arise from GCC reordering or 23 * separate compilation unit, and calling it from another unit from inside a
|
/linux-4.1.27/arch/alpha/include/asm/ |
H A 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/net/batman-adv/ |
H A D | gateway_common.h | 28 * enum batadv_bandwidth_units - bandwidth unit types 29 * @BATADV_BW_UNIT_KBIT: unit type kbit 30 * @BATADV_BW_UNIT_MBIT: unit type mbit
|
/linux-4.1.27/drivers/block/ |
H A D | amiflop.c | 94 #define FD_NOUNIT 1 /* unit does not exist */ 95 #define FD_UNITBUSY 2 /* unit already active */ 96 #define FD_NOTACTIVE 3 /* unit is not active */ 97 #define FD_NOTREADY 4 /* unit is not ready (motor not on/no disk) */ 107 #define FD_NODRIVE 0x00000000 /* response when no unit is present */ 144 /* current info on each unit */ 145 static struct amiga_floppy_struct unit[FD_MAX_UNITS]; variable in typeref:struct:amiga_floppy_struct 287 if (unit[drive].track % 2 != 0) fd_select() 289 if (unit[drive].motor == 1) fd_select() 342 if (!unit[nr].motor) { fd_motor_on() 343 unit[nr].motor = 1; fd_motor_on() 385 unit[drive].motor = 0; fd_motor_off() 415 for (n = unit[drive].type->tracks/2; n != 0; --n) { fd_calibrate() 423 ms_delay(unit[drive].type->step_delay); fd_calibrate() 425 ms_delay (unit[drive].type->settle_time); fd_calibrate() 427 n = unit[drive].type->tracks + 20; fd_calibrate() 434 ms_delay(unit[drive].type->step_delay + 1); fd_calibrate() 440 unit[drive].track = -1; fd_calibrate() 445 unit[drive].track = 0; fd_calibrate() 446 ms_delay(unit[drive].type->settle_time); fd_calibrate() 463 if (unit[drive].track == track) { fd_seek() 471 if (unit[drive].track < 0 && !fd_calibrate(drive)) { fd_seek() 477 cnt = unit[drive].track/2 - track/2; fd_seek() 487 if (track % 2 != unit[drive].track % 2) fd_seek() 488 ms_delay (unit[drive].type->side_time); fd_seek() 489 unit[drive].track = track; fd_seek() 501 ms_delay (unit[drive].type->step_delay); fd_seek() 503 ms_delay (unit[drive].type->settle_time); fd_seek() 592 custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; raw_read() 593 custom.dsklen = unit[drive].type->read_size/sizeof(short) | DSKLEN_DMAEN; raw_read() 620 if ((ulong)unit[drive].track >= unit[drive].type->precomp2) raw_write() 622 else if ((ulong)unit[drive].track >= unit[drive].type->precomp1) raw_write() 628 custom.dsklen = unit[drive].type->write_size/sizeof(short) | DSKLEN_DMAEN|DSKLEN_WRITE; raw_write() 629 custom.dsklen = unit[drive].type->write_size/sizeof(short) | DSKLEN_DMAEN|DSKLEN_WRITE; raw_write() 649 unit[drive].dirty = 0; post_write() 728 end = raw + unit[drive].type->read_size; amiga_read() 730 for (scnt = 0;scnt < unit[drive].dtype->sects * unit[drive].type->sect_mult; scnt++) { amiga_read() 757 if (hdr.track != unit[drive].track) { amiga_read() 758 printk(KERN_INFO "MFM_TRACK: %d, %d\n", hdr.track, unit[drive].track); amiga_read() 762 raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512), amiga_read() 764 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512); amiga_read() 771 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[0], amiga_read() 772 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[1], amiga_read() 773 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[2], amiga_read() 774 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[3]); amiga_read() 825 hdr.track = unit[disk].track; putsec() 827 hdr.ord = unit[disk].dtype->sects * unit[disk].type->sect_mult - cnt; putsec() 832 hdr.datachk = checksum((ulong *)(unit[disk].trackbuf+cnt*512), 512); putsec() 842 encode_block(raw, (ulong *)(unit[disk].trackbuf+cnt*512), 512); putsec() 855 for (cnt = 0; cnt < 415 * unit[disk].type->sect_mult; cnt++) amiga_write() 859 for (cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) amiga_write() 1043 end = raw + unit[drive].type->read_size; dos_read() 1045 for (scnt=0; scnt < unit[drive].dtype->sects * unit[drive].type->sect_mult; scnt++) { dos_read() 1049 "track %d, unit %d for sector %d\n", dos_read() 1050 unit[drive].track,drive,scnt); dos_read() 1071 if (hdr.track != unit[drive].track/unit[drive].type->heads) { dos_read() 1074 unit[drive].track/unit[drive].type->heads); dos_read() 1078 if (hdr.side != unit[drive].track%unit[drive].type->heads) { dos_read() 1081 unit[drive].track%unit[drive].type->heads); dos_read() 1095 "%d, unit %d for sector%d, disk sector %d\n", dos_read() 1096 unit[drive].track, drive, scnt, hdr.sec); dos_read() 1111 raw = dos_decode((unsigned char *)(unit[drive].trackbuf + (hdr.sec - 1) * 512), (ushort *) raw, 512); dos_read() 1113 crc = dos_data_crc(unit[drive].trackbuf + (hdr.sec - 1) * 512); dos_read() 1120 ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[0], dos_read() 1121 ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[1], dos_read() 1122 ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[2], dos_read() 1123 ((ulong *)(unit[drive].trackbuf+(hdr.sec-1)*512))[3]); dos_read() 1171 hdr.track=unit[drive].track/unit[drive].type->heads; ms_putsec() 1172 hdr.side=unit[drive].track%unit[drive].type->heads; ms_putsec() 1190 (unsigned char *)unit[drive].trackbuf+cnt*512,512); ms_putsec() 1194 crc[0]=dos_data_crc(unit[drive].trackbuf+cnt*512); ms_putsec() 1217 if (unit[disk].type->sect_mult==2) /* check for HD-Disks */ dos_write() 1232 for(cnt = 0; cnt < unit[disk].dtype->sects * unit[disk].type->sect_mult; cnt++) dos_write() 1259 (*unit[nr].dtype->write_fkt)(nr); flush_track_callback() 1284 (*unit[nr].dtype->write_fkt)(nr); non_int_flush_track() 1307 if (unit[drive].track == track) get_track() 1315 if (unit[drive].dirty == 1) { get_track() 1324 error = (*unit[drive].dtype->read_fkt)(drive); get_track() 1330 unit[drive].track = -1; get_track() 1353 if (unit[fdc_queue].type->code == FD_NODRIVE) { set_next_request() 1359 q = unit[fdc_queue].gendisk->queue; set_next_request() 1391 drive = floppy - unit; redo_fd_request() 1457 geo->heads = unit[drive].type->heads; fd_getgeo() 1458 geo->sectors = unit[drive].dtype->sects * unit[drive].type->sect_mult; fd_getgeo() 1459 geo->cylinders = unit[drive].type->tracks; fd_getgeo() 1467 int drive = p - unit; fd_locked_ioctl() 1569 unit[drive].type = &drive_types[num_dr_types-1]; /* FD_NODRIVE */ fd_probe() 1573 unit[drive].type = drive_types + type; fd_probe() 1574 unit[drive].track = -1; fd_probe() 1576 unit[drive].disk = -1; fd_probe() 1577 unit[drive].motor = 0; fd_probe() 1578 unit[drive].busy = 0; fd_probe() 1579 unit[drive].status = -1; fd_probe() 1625 unit[drive].dtype=&data_types[system]; floppy_open() 1626 unit[drive].blocks=unit[drive].type->heads*unit[drive].type->tracks* floppy_open() 1627 data_types[system].sects*unit[drive].type->sect_mult; floppy_open() 1628 set_capacity(unit[drive].gendisk, unit[drive].blocks); floppy_open() 1631 unit[drive].type->name, data_types[system].name); floppy_open() 1640 int drive = p - unit; floppy_release() 1643 if (unit[drive].dirty == 1) { floppy_release() 1668 int drive = p - unit; amiga_check_events() 1712 if (unit[drive].type->code == FD_NODRIVE) fd_probe_drives() 1716 unit[drive].type->code = FD_NODRIVE; fd_probe_drives() 1719 unit[drive].gendisk = disk; fd_probe_drives() 1723 unit[drive].type->code = FD_NODRIVE; fd_probe_drives() 1728 if ((unit[drive].trackbuf = kmalloc(FLOPPY_MAX_SECTORS * 512, GFP_KERNEL)) == NULL) { fd_probe_drives() 1730 unit[drive].type = &drive_types[num_dr_types - 1]; /* FD_NODRIVE */ fd_probe_drives() 1739 disk->private_data = &unit[drive]; fd_probe_drives() 1756 if (unit[drive].type->code == FD_NODRIVE) floppy_find() 1759 return get_disk(unit[drive].gendisk); floppy_find() 1809 unit[i].track = -1; amiga_floppy_probe() 1846 if (unit[i].type->code != FD_NODRIVE) { 1847 struct request_queue *q = unit[i].gendisk->queue; 1848 del_gendisk(unit[i].gendisk); 1849 put_disk(unit[i].gendisk); 1850 kfree(unit[i].trackbuf);
|
H A D | ida_ioctl.h | 42 * Normally, the ioctl determines the logical unit for this command by 44 * a command to a different/nonexistant unit (such as during config), you 45 * can override the normal behavior by setting the unit valid bit. (Normally, 54 __u8 unit; member in struct:__anon3601
|
H A D | swim.c | 216 struct floppy_state unit[FD_MAX_UNIT]; member in struct:swim_priv 786 return get_disk(swd->unit[drive].disk); floppy_find() 791 struct floppy_state *fs = &swd->unit[swd->floppy_count]; swim_add_floppy() 837 swd->unit[drive].disk = alloc_disk(1); swim_floppy_init() 838 if (swd->unit[drive].disk == NULL) { swim_floppy_init() 842 swd->unit[drive].swd = swd; swim_floppy_init() 853 swd->unit[drive].disk->flags = GENHD_FL_REMOVABLE; swim_floppy_init() 854 swd->unit[drive].disk->major = FLOPPY_MAJOR; swim_floppy_init() 855 swd->unit[drive].disk->first_minor = drive; swim_floppy_init() 856 sprintf(swd->unit[drive].disk->disk_name, "fd%d", drive); swim_floppy_init() 857 swd->unit[drive].disk->fops = &floppy_fops; swim_floppy_init() 858 swd->unit[drive].disk->private_data = &swd->unit[drive]; swim_floppy_init() 859 swd->unit[drive].disk->queue = swd->queue; swim_floppy_init() 860 set_capacity(swd->unit[drive].disk, 2880); swim_floppy_init() 861 add_disk(swd->unit[drive].disk); swim_floppy_init() 872 put_disk(swd->unit[drive].disk); swim_floppy_init() 945 del_gendisk(swd->unit[drive].disk); swim_remove() 946 put_disk(swd->unit[drive].disk); swim_remove() 956 floppy_eject(&swd->unit[drive]); swim_remove()
|
H A D | ataflop.c | 204 * default_params[].blocks > 0 - a bit in unit[].flags might be used for this?) 208 /* current info on each unit */ 224 } unit[FD_MAX_UNITS]; variable in typeref:struct:atari_floppy_struct 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, fd_rwsec_done1() 1091 set_capacity(unit[SelectedDrive].disk, fd_rwsec_done1() 1332 unsigned int drive = p - unit; floppy_check_events() 1354 unsigned int drive = p - unit; floppy_revalidate() 1407 q = unit[fdc_queue].disk->queue; set_next_request() 1440 drive = floppy - unit; redo_fd_request() 1514 int drive = floppy - unit; fd_locked_ioctl() 1706 /* Initialize the 'unit' variable for drive 'drive' */ 1918 return get_disk(unit[drive].disk); floppy_find() 1933 unit[i].disk = alloc_disk(1); atari_floppy_init() 1934 if (!unit[i].disk) atari_floppy_init() 1960 unit[i].track = -1; atari_floppy_init() 1961 unit[i].flags = 0; atari_floppy_init() 1962 unit[i].disk->major = FLOPPY_MAJOR; atari_floppy_init() 1963 unit[i].disk->first_minor = i; atari_floppy_init() 1964 sprintf(unit[i].disk->disk_name, "fd%d", i); atari_floppy_init() 1965 unit[i].disk->fops = &floppy_fops; atari_floppy_init() 1966 unit[i].disk->private_data = &unit[i]; atari_floppy_init() 1967 unit[i].disk->queue = blk_init_queue(do_fd_request, atari_floppy_init() 1969 if (!unit[i].disk->queue) atari_floppy_init() 1971 set_capacity(unit[i].disk, MAX_DISK_SIZE * 2); atari_floppy_init() 1972 add_disk(unit[i].disk); atari_floppy_init() 1986 struct request_queue *q = unit[i].disk->queue; atari_floppy_init() 1988 put_disk(unit[i].disk); atari_floppy_init() 2041 struct request_queue *q = unit[i].disk->queue; atari_floppy_exit() 2043 del_gendisk(unit[i].disk); atari_floppy_exit() 2044 put_disk(unit[i].disk); atari_floppy_exit()
|
/linux-4.1.27/include/linux/platform_data/ |
H A D | regulator-haptic.h | 20 * <The unit of the voltage is a micro> 22 * <The unit of the voltage is a micro>
|
/linux-4.1.27/arch/metag/include/asm/ |
H A 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);
|
H A D | hwthread.h | 32 base = T0UCTREG0; /* Control unit base */ __CU_addr()
|
/linux-4.1.27/drivers/media/pci/saa7164/ |
H A D | saa7164-cards.c | 63 .unit = {{ 109 .unit = {{ 155 .unit = {{ 215 .unit = {{ 275 .unit = {{ 335 .unit = {{ 395 .unit = {{ 451 .unit = {{ 687 * register access to 'processing units'. Each unit has a unique 703 struct saa7164_unit *unit; saa7164_i2caddr_to_unitid() local 707 unit = &saa7164_boards[dev->board].unit[i]; saa7164_i2caddr_to_unitid() 709 if (unit->type == SAA7164_UNIT_UNDEFINED) saa7164_i2caddr_to_unitid() 711 if ((bus->nr == unit->i2c_bus_nr) && saa7164_i2caddr_to_unitid() 712 (addr == unit->i2c_bus_addr)) saa7164_i2caddr_to_unitid() 713 return unit->id; saa7164_i2caddr_to_unitid() 730 struct saa7164_unit *unit; saa7164_i2caddr_to_reglen() local 734 unit = &saa7164_boards[dev->board].unit[i]; saa7164_i2caddr_to_reglen() 736 if (unit->type == SAA7164_UNIT_UNDEFINED) saa7164_i2caddr_to_reglen() 739 if ((bus->nr == unit->i2c_bus_nr) && saa7164_i2caddr_to_reglen() 740 (addr == unit->i2c_bus_addr)) saa7164_i2caddr_to_reglen() 741 return unit->i2c_reg_len; saa7164_i2caddr_to_reglen() 755 struct saa7164_unit *unit; saa7164_unitid_name() local 762 unit = &saa7164_boards[dev->board].unit[i]; saa7164_unitid_name() 764 if (unit->type == SAA7164_UNIT_UNDEFINED) saa7164_unitid_name() 767 if (unitid == unit->id) saa7164_unitid_name() 768 return unit->name; saa7164_unitid_name()
|
/linux-4.1.27/arch/sparc/mm/ |
H A D | Makefile | 10 obj-$(CONFIG_SPARC32) += extable.o srmmu.o iommu.o io-unit.o
|
/linux-4.1.27/arch/mips/include/asm/sgi/ |
H A D | wd.h | 14 unsigned int unit; member in struct:sgiwd93_platform_data
|
/linux-4.1.27/arch/mn10300/unit-asb2364/ |
H A D | Makefile | 10 obj-y := unit-init.o leds.o irq-fpga.o
|
H A D | unit-init.c | 24 #include <unit/fpga-regs.h> 25 #include <unit/serial.h> 26 #include <unit/smsc911x.h> 33 * initialise some of the unit hardware before gdbstub is set up 83 * initialise the rest of the unit hardware after gdbstub is ready 107 * initialise the external interrupts used by a unit of this type
|
H A D | smsc911x.c | 18 #include <unit/smsc911x.h>
|
/linux-4.1.27/arch/m68k/include/asm/ |
H A D | fpu.h | 6 * MAX floating point unit state size (FSAVE/FRESTORE)
|
/linux-4.1.27/arch/alpha/mm/ |
H A D | extable.c | 18 unsigned int t = ex_a->fixup.unit; swap_ex() 20 ex_a->fixup.unit = ex_b->fixup.unit; swap_ex() 21 ex_b->fixup.unit = t; swap_ex()
|
/linux-4.1.27/arch/mn10300/ |
H A 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 96 # include the appropriate processor- and unit-specific headers 99 KBUILD_CPPFLAGS += -I$(srctree)/arch/mn10300/unit-$(UNIT)/include
|
/linux-4.1.27/net/netfilter/ |
H A D | nft_limit.c | 25 u64 unit; member in struct:nft_limit 38 priv->stamp = jiffies + priv->unit * HZ; nft_limit_eval() 67 priv->unit = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_UNIT])); nft_limit_init() 68 priv->stamp = jiffies + priv->unit * HZ; nft_limit_init() 79 if (nla_put_be64(skb, NFTA_LIMIT_UNIT, cpu_to_be64(priv->unit))) nft_limit_dump()
|
/linux-4.1.27/sound/firewire/fireworks/ |
H A D | fireworks.c | 75 struct fw_device *fw_dev = fw_parent_device(efw->unit); get_hardware_info() 101 dev_name(&efw->unit->device), 100 << fw_dev->max_speed); get_hardware_info() 177 * This module releases the FireWire unit data after all ALSA character devices 180 * references for the unit. 189 fw_unit_put(efw->unit); efw_card_free() 203 efw_probe(struct fw_unit *unit, efw_probe() argument 222 err = snd_card_new(&unit->device, index[card_index], id[card_index], efw_probe() 232 efw->unit = fw_unit_get(unit); efw_probe() 288 dev_set_drvdata(&unit->device, efw); efw_probe() 299 static void efw_update(struct fw_unit *unit) efw_update() argument 301 struct snd_efw *efw = dev_get_drvdata(&unit->device); efw_update() 303 snd_efw_transaction_bus_reset(efw->unit); efw_update() 307 static void efw_remove(struct fw_unit *unit) efw_remove() argument 309 struct snd_efw *efw = dev_get_drvdata(&unit->device); efw_remove()
|
H A D | fireworks_transaction.c | 55 struct fw_unit *unit; member in struct:transaction_queue 63 int snd_efw_transaction_cmd(struct fw_unit *unit, snd_efw_transaction_cmd() argument 66 return snd_fw_transaction(unit, TCODE_WRITE_BLOCK_REQUEST, snd_efw_transaction_cmd() 71 int snd_efw_transaction_run(struct fw_unit *unit, snd_efw_transaction_run() argument 79 t.unit = unit; snd_efw_transaction_run() 92 ret = snd_efw_transaction_cmd(t.unit, (void *)cmd, cmd_size); snd_efw_transaction_run() 105 dev_err(&t.unit->device, "EFW transaction timed out\n"); snd_efw_transaction_run() 180 device = fw_parent_device(efw->unit); handle_resp_for_user() 208 device = fw_parent_device(t->unit); handle_resp_for_kernel() 291 void snd_efw_transaction_bus_reset(struct fw_unit *unit) snd_efw_transaction_bus_reset() argument 297 if ((t->unit == unit) && snd_efw_transaction_bus_reset()
|
H A D | fireworks.h | 62 struct fw_unit *unit; member in struct:snd_efw 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);
|
H A D | fireworks_stream.c | 30 err = cmp_connection_init(conn, efw->unit, c_dir, 0); init_stream() 34 err = amdtp_stream_init(stream, efw->unit, s_dir, CIP_BLOCKING); init_stream() 152 dev_err(&efw->unit->device, check_connection_used_by_others() 271 dev_err(&efw->unit->device, snd_efw_stream_start_duplex() 281 dev_err(&efw->unit->device, snd_efw_stream_start_duplex()
|
/linux-4.1.27/drivers/block/paride/ |
H A D | pcd.c | 32 devices, this is the unit selector for the 89 1.01 GRG 1998.01.24 Added test unit ready support 198 int present; /* does this unit exist ? */ 295 int unit; pcd_init_units() local 298 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_init_units() 307 cd->drive = (*drives[unit])[D_SLV]; pcd_init_units() 308 if ((*drives[unit])[D_PRT]) pcd_init_units() 312 snprintf(cd->name, sizeof(cd->info.name), "%s%d", name, unit); pcd_init_units() 319 disk->first_minor = unit; pcd_init_units() 583 pcd_atapi(cd, tr_cmd, 0, NULL, DBMSG("test unit ready")); pcd_ready_wait() 657 int unit, r; pcd_probe_capabilities() local 662 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_probe_capabilities() 687 int k, unit; pcd_detect() local 705 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_detect() 706 int *conf = *drives[unit]; pcd_detect() 724 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) pcd_detect() 933 int unit; pcd_init() local 947 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) pcd_init() 955 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) pcd_init() 960 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_init() 975 int unit; pcd_exit() local 977 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_exit()
|
H A D | pt.c | 43 devices, this is the unit selector for the 139 #define DU (*drives[unit]) 491 pt_atapi(tape, tr_cmd, 0, NULL, DBMSG("test unit ready")); pt_ready_wait() 604 int unit; pt_detect() local 609 for (unit = 0; unit < PT_UNITS; unit++) { pt_detect() 610 struct pt_unit *tape = &pt[unit]; pt_detect() 618 snprintf(tape->name, PT_NAMELEN, "%s%d", name, unit); pt_detect() 653 int unit = iminor(inode) & 0x7F; pt_open() local 654 struct pt_unit *tape = pt + unit; pt_open() 658 if (unit >= PT_UNITS || (!tape->present)) { pt_open() 956 int unit; pt_init() local 972 for (unit = 0; unit < PT_UNITS; unit++) pt_init() 973 if (pt[unit].present) pt_init() 974 pi_release(pt[unit].pi); pt_init() 984 for (unit = 0; unit < PT_UNITS; unit++) pt_init() 985 if (pt[unit].present) { pt_init() 986 device_create(pt_class, NULL, MKDEV(major, unit), NULL, pt_init() 987 "pt%d", unit); pt_init() 988 device_create(pt_class, NULL, MKDEV(major, unit + 128), pt_init() 989 NULL, "pt%dn", unit); pt_init() 1001 int unit; pt_exit() local 1002 for (unit = 0; unit < PT_UNITS; unit++) pt_exit() 1003 if (pt[unit].present) { pt_exit() 1004 device_destroy(pt_class, MKDEV(major, unit)); pt_exit() 1005 device_destroy(pt_class, MKDEV(major, unit + 128)); pt_exit() 1009 for (unit = 0; unit < PT_UNITS; unit++) pt_exit() 1010 if (pt[unit].present) pt_exit() 1011 pi_release(pt[unit].pi); pt_exit()
|
H A D | pg.c | 66 devices, this is the unit selector for the 244 int unit; pg_init_units() local 247 for (unit = 0; unit < PG_UNITS; unit++) { pg_init_units() 248 int *parm = *drives[unit]; pg_init_units() 249 struct pg *dev = &devices[unit]; pg_init_units() 256 snprintf(dev->name, PG_NAMELEN, "%s%c", name, 'a'+unit); pg_init_units() 480 int k, unit; pg_detect() local 496 for (unit = 0; unit < PG_UNITS; unit++, dev++) { pg_detect() 497 int *parm = *drives[unit]; pg_detect() 520 int unit = iminor(inode) & 0x7f; pg_open() local 521 struct pg *dev = &devices[unit]; pg_open() 525 if ((unit >= PG_UNITS) || (!dev->present)) { pg_open() 659 int unit; pg_init() local 677 for (unit = 0; unit < PG_UNITS; unit++) { pg_init() 678 struct pg *dev = &devices[unit]; pg_init() 690 for (unit = 0; unit < PG_UNITS; unit++) { pg_init() 691 struct pg *dev = &devices[unit]; pg_init() 693 device_create(pg_class, NULL, MKDEV(major, unit), NULL, pg_init() 694 "pg%u", unit); pg_init() 707 int unit; pg_exit() local 709 for (unit = 0; unit < PG_UNITS; unit++) { pg_exit() 710 struct pg *dev = &devices[unit]; pg_exit() 712 device_destroy(pg_class, MKDEV(major, unit)); pg_exit() 717 for (unit = 0; unit < PG_UNITS; unit++) { pg_exit() 718 struct pg *dev = &devices[unit]; pg_exit()
|
H A D | paride.c | 302 static int pi_probe_unit(PIA * pi, int unit, char *scratch, int verbose) pi_probe_unit() argument 306 s = unit; pi_probe_unit() 326 for (pi->unit = s; pi->unit < e; pi->unit++) pi_probe_unit() 348 int unit, int protocol, int delay, char *scratch, pi_init() 364 (!protocols[s]) || (unit < 0) || pi_init() 365 (unit >= protocols[s]->max_units)) { pi_init() 400 if (pi_probe_unit(pi, unit, scratch, verbose)) pi_init() 407 (pi, unit, scratch, verbose)) pi_init() 347 pi_init(PIA * pi, int autoprobe, int port, int mode, int unit, int protocol, int delay, char *scratch, int devtype, int verbose, char *device) pi_init() argument
|
H A D | bpck.c | 201 id = pi->unit; bpck_probe_unit() 222 w0(0xff-pi->unit); w2(4); w0(pi->unit); bpck_connect() 265 w0(0xff-pi->unit); w2(4); w0(pi->unit); bpck_force_spp() 337 printk("%s: bpck: 0x%x unit %d mode %d: ", bpck_test_proto() 338 pi->device,pi->port,pi->unit,pi->mode); bpck_test_proto() 440 printk("%s: bpck %s, backpack %8.8s unit %d", bpck_log_adapter() 441 pi->device,BPCK_VERSION,&scratch[110],pi->unit); bpck_log_adapter()
|
H A D | pf.c | 32 devices, this is the unit selector for the 264 static struct pf_unit *pf_current;/* unit of current request */ 282 int unit; pf_init_units() local 285 for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { pf_init_units() 292 pf->drive = (*drives[unit])[D_SLV]; pf_init_units() 293 pf->lun = (*drives[unit])[D_LUN]; pf_init_units() 294 snprintf(pf->name, PF_NAMELEN, "%s%d", name, unit); pf_init_units() 296 disk->first_minor = unit; pf_init_units() 299 if (!(*drives[unit])[D_PRT]) pf_init_units() 701 int k, unit; pf_detect() local 718 for (unit = 0; unit < PF_UNITS; unit++, pf++) { pf_detect() 719 int *conf = *drives[unit]; pf_detect() 736 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) pf_detect() 952 int unit; pf_init() local 964 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) pf_init() 971 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) pf_init() 978 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { pf_init() 993 int unit; pf_exit() local 995 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { pf_exit()
|
H A D | paride.h | 44 int unit; /* unit number for chained adapters */ member in struct:pi_adapter 65 int unit, /* unit number, if supported */
|
H A D | pd.c | 32 devices, this is the unit selector for the 857 int found = 0, unit, pd_drive_count = 0; pd_detect() local 860 for (unit = 0; unit < PD_UNITS; unit++) { pd_detect() 861 int *parm = *drives[unit]; pd_detect() 862 struct pd_unit *disk = pd + unit; pd_detect() 868 snprintf(disk->name, PD_NAMELEN, "%s%c", name, 'a'+unit); pd_detect() 885 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { pd_detect() 886 int *parm = *drives[unit]; pd_detect() 898 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { pd_detect() 942 int unit; pd_exit() local 944 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { pd_exit()
|
/linux-4.1.27/drivers/ide/ |
H A D | it821x.c | 144 u8 unit = drive->dn & 1, conf; it821x_program_udma() local 153 pci_write_config_byte(dev, 0x56 + 4 * channel + unit, conf); it821x_program_udma() 175 u8 unit = drive->dn & 1, v; it821x_clock_strategy() local 216 if(pair && itdev->udma[1-unit] != UDMA_OFF) { it821x_clock_strategy() 217 it821x_program_udma(pair, itdev->udma[1-unit]); it821x_clock_strategy() 218 it821x_program(pair, itdev->pio[1-unit]); it821x_clock_strategy() 224 if(itdev->udma[unit] != UDMA_OFF) { it821x_clock_strategy() 225 it821x_program_udma(drive, itdev->udma[unit]); it821x_clock_strategy() 226 it821x_program(drive, itdev->pio[unit]); it821x_clock_strategy() 244 u8 unit = drive->dn & 1, set_pio = pio; it821x_set_pio_mode() local 263 itdev->want[unit][1] = pio_want[set_pio]; it821x_set_pio_mode() 264 itdev->want[unit][0] = 1; /* PIO is lowest priority */ it821x_set_pio_mode() 265 itdev->pio[unit] = pio_timings[set_pio]; it821x_set_pio_mode() 267 it821x_program(drive, itdev->pio[unit]); it821x_set_pio_mode() 286 u8 unit = drive->dn & 1, channel = hwif->channel, conf; it821x_tune_mwdma() local 291 itdev->want[unit][1] = mwdma_want[mode_wanted]; it821x_tune_mwdma() 292 itdev->want[unit][0] = 2; /* MWDMA is low priority */ it821x_tune_mwdma() 293 itdev->mwdma[unit] = dma[mode_wanted]; it821x_tune_mwdma() 294 itdev->udma[unit] = UDMA_OFF; it821x_tune_mwdma() 301 conf |= 1 << (3 + 2 * channel + unit); it821x_tune_mwdma() 306 /* it821x_program(drive, itdev->mwdma[unit]); */ it821x_tune_mwdma() 323 u8 unit = drive->dn & 1, channel = hwif->channel, conf; it821x_tune_udma() local 328 itdev->want[unit][1] = udma_want[mode_wanted]; it821x_tune_udma() 329 itdev->want[unit][0] = 3; /* UDMA is high priority */ it821x_tune_udma() 330 itdev->mwdma[unit] = MWDMA_OFF; it821x_tune_udma() 331 itdev->udma[unit] = udma[mode_wanted]; it821x_tune_udma() 333 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ it821x_tune_udma() 340 conf &= ~ (1 << (3 + 2 * channel + unit)); it821x_tune_udma() 344 it821x_program_udma(drive, itdev->udma[unit]); it821x_tune_udma() 365 u8 unit = drive->dn & 1; it821x_dma_start() local 367 if(itdev->mwdma[unit] != MWDMA_OFF) it821x_dma_start() 368 it821x_program(drive, itdev->mwdma[unit]); it821x_dma_start() 369 else if(itdev->udma[unit] != UDMA_OFF && itdev->timing10) it821x_dma_start() 370 it821x_program_udma(drive, itdev->udma[unit]); it821x_dma_start() 388 u8 unit = drive->dn & 1; it821x_dma_end() local 390 if(itdev->mwdma[unit] != MWDMA_OFF) it821x_dma_end() 391 it821x_program(drive, itdev->pio[unit]); it821x_dma_end()
|
H A D | ide-cd_verbose.c | 20 /* Suppress printing unit attention and `in progress of becoming ready' ide_cd_log_error() 135 " - Predicted logical unit failure" }, 140 { 0x020400, "Logical unit not ready - cause not reportable" }, 142 { 0x020401, "Logical unit not ready" 144 { 0x020402, "Logical unit not ready - initializing command required" }, 145 { 0x020403, "Logical unit not ready - manual intervention required" }, 146 { 0x020404, "Logical unit not ready - format in progress" }, 147 { 0x020407, "Logical unit not ready - operation in progress" }, 148 { 0x020408, "Logical unit not ready - long write in progress" }, 193 { 0x044400, "Internal CD/DVD logical unit failure" }, 221 { 0x056f04, "Media region code is mismatched to logical unit" }, 233 { 0x063f00, "Logical unit operating conditions have changed" }, 240 { 0xff0401, "Logical unit is in process of becoming ready" }, 241 { 0xff0400, "Logical unit not ready, cause not reportable" }, 242 { 0xff0402, "Logical unit not ready, initializing command required" }, 243 { 0xff0403, "Logical unit not ready, manual intervention required" }, 244 { 0xff0500, "Logical unit does not respond to selection" }, 245 { 0xff0800, "Logical unit communication failure" }, 246 { 0xff0802, "Logical unit communication parity error" }, 247 { 0xff0801, "Logical unit communication time-out" }, 248 { 0xff2500, "Logical unit not supported" }, 249 { 0xff4c00, "Logical unit failed self-configuration" }, 250 { 0xff3e00, "Logical unit has not self-configured yet" },
|
H A D | cs5535.c | 79 u8 unit = drive->dn & 1; cs5535_set_speed() local 98 wrmsr(unit ? ATAC_CH0D1_PIO : ATAC_CH0D0_PIO, reg, 0); cs5535_set_speed() 101 rdmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, dummy); cs5535_set_speed() 107 wrmsr(unit ? ATAC_CH0D0_PIO : ATAC_CH0D1_PIO, reg, 0); cs5535_set_speed() 111 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); cs5535_set_speed() 112 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, cs5535_set_speed() 115 rdmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, dummy); cs5535_set_speed() 126 wrmsr(unit ? ATAC_CH0D1_DMA : ATAC_CH0D0_DMA, reg, 0); cs5535_set_speed()
|
H A D | triflex.c | 42 u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; triflex_set_mode() local 78 triflex_timings &= ~(0xFFFF << (16 * unit)); triflex_set_mode() 79 triflex_timings |= (timing << (16 * unit)); triflex_set_mode()
|
H A D | ide-timings.c | 106 #define ENOUGH(v, unit) (((v) - 1) / (unit) + 1) 107 #define EZ(v, unit) ((v) ? ENOUGH(v, unit) : 0)
|
H A D | cmd64x.c | 150 u8 unit = drive->dn & 0x01; cmd64x_set_dma_mode() local 155 regU &= ~(unit ? 0xCA : 0x35); cmd64x_set_dma_mode() 159 regU |= unit ? 0x0A : 0x05; cmd64x_set_dma_mode() 162 regU |= unit ? 0x4A : 0x15; cmd64x_set_dma_mode() 165 regU |= unit ? 0x8A : 0x25; cmd64x_set_dma_mode() 168 regU |= unit ? 0x42 : 0x11; cmd64x_set_dma_mode() 171 regU |= unit ? 0x82 : 0x21; cmd64x_set_dma_mode() 174 regU |= unit ? 0xC2 : 0x31; cmd64x_set_dma_mode()
|
H A D | aec62xx.c | 117 u8 unit = drive->dn & 1; aec6260_set_mode() local 130 tmp1 = ((0x00 << (4*unit)) | (ultra & ~(7 << (4*unit)))); aec6260_set_mode() 132 tmp2 = ((ultra_conf << (4*unit)) | (tmp1 & ~(7 << (4*unit)))); aec6260_set_mode()
|
/linux-4.1.27/drivers/char/hw_random/ |
H A D | n2-drv.c | 109 unsigned long unit) n2rng_generic_read_control_v2() 115 hv_err = sun4v_rng_ctl_read_v2(ra, unit, &state, n2rng_generic_read_control_v2() 140 * queue up the RNG control register write if it's for a unit 146 static unsigned long n2rng_control_settle_v2(struct n2rng *np, int unit) n2rng_control_settle_v2() argument 150 return n2rng_generic_read_control_v2(ra, unit); n2rng_control_settle_v2() 153 static unsigned long n2rng_write_ctl_one(struct n2rng *np, int unit, n2rng_write_ctl_one() argument 166 watchdog_timeout, unit); n2rng_write_ctl_one() 168 hv_err = n2rng_control_settle_v2(np, unit); n2rng_write_ctl_one() 201 unsigned long unit, n2rng_read_diag_data_one() 212 unit, ticks); n2rng_read_diag_data_one() 220 unsigned long unit, n2rng_generic_read_diag_data() 228 hv_err = n2rng_read_diag_data_one(np, unit, n2rng_generic_read_diag_data() 250 unsigned long unit, n2rng_generic_write_control() 257 hv_err = n2rng_write_ctl_one(np, unit, state, control_ra, n2rng_generic_write_control() 429 static int n2rng_entropy_diag_read(struct n2rng *np, unsigned long unit, n2rng_entropy_diag_read() argument 439 err = n2rng_generic_write_control(np, pre_ctl_ra, unit, pre_state); n2rng_entropy_diag_read() 443 err = n2rng_generic_read_diag_data(np, unit, n2rng_entropy_diag_read() 446 (void) n2rng_generic_write_control(np, post_ctl_ra, unit, n2rng_entropy_diag_read() 488 static int n2rng_check_selftest_buffer(struct n2rng *np, unsigned long unit) n2rng_check_selftest_buffer() argument 504 dev_err(&np->op->dev, "Selftest failed on unit %lu\n", unit); n2rng_check_selftest_buffer() 507 dev_info(&np->op->dev, "Selftest passed on unit %lu\n", unit); n2rng_check_selftest_buffer() 512 static int n2rng_control_selftest(struct n2rng *np, unsigned long unit) n2rng_control_selftest() argument 524 err = n2rng_entropy_diag_read(np, unit, np->test_control, n2rng_control_selftest() 528 &np->units[unit].control[0], n2rng_control_selftest() 533 return n2rng_check_selftest_buffer(np, unit); n2rng_control_selftest() 553 int unit, err; n2rng_control_configure_units() local 556 for (unit = 0; unit < np->num_units; unit++) { n2rng_control_configure_units() 557 struct n2rng_unit *up = &np->units[unit]; n2rng_control_configure_units() 579 err = n2rng_generic_write_control(np, ctl_ra, unit, n2rng_control_configure_units() 662 dev_err(&op->dev, "multi-unit-capable RNG requires " n2rng_probe() 692 "multi-unit-capable" : "single-unit"), n2rng_probe() 108 n2rng_generic_read_control_v2(unsigned long ra, unsigned long unit) n2rng_generic_read_control_v2() argument 200 n2rng_read_diag_data_one(struct n2rng *np, unsigned long unit, unsigned long data_ra, unsigned long data_len, unsigned long *ticks) n2rng_read_diag_data_one() argument 219 n2rng_generic_read_diag_data(struct n2rng *np, unsigned long unit, unsigned long data_ra, unsigned long data_len) n2rng_generic_read_diag_data() argument 248 n2rng_generic_write_control(struct n2rng *np, unsigned long control_ra, unsigned long unit, unsigned long state) n2rng_generic_write_control() argument
|
H A D | n2rng.h | 40 unsigned long unit, 52 unsigned long unit); 58 unsigned long unit, 71 #define N2RNG_FLAG_MULTI 0x00000001 /* Multi-unit capable RNG */
|
/linux-4.1.27/include/uapi/linux/ |
H A D | chio.h | 23 * accessing elements works by specifing type and unit of the element. 25 * unit = 0 .. cp_nslots-1 53 int cm_fromtype; /* type/unit of source element */ 55 int cm_totype; /* type/unit of destination element */ 69 int ce_srctype; /* type/unit of element #1 */ 71 int ce_fdsttype; /* type/unit of element #2 */ 73 int ce_sdsttype; /* type/unit of element #3 */ 114 int cge_type; /* type/unit */ 140 int csv_type; /* type/unit */
|
H A D | ppp-ioctl.h | 89 #define PPPIOCGUNIT _IOR('t', 86, int) /* get ppp unit number */ 92 #define PPPIOCGMRU _IOR('t', 83, int) /* get max receive unit */ 93 #define PPPIOCSMRU _IOW('t', 82, int) /* set max receive unit */ 97 #define PPPIOCXFERUNIT _IO('t', 78) /* transfer PPP unit */ 106 #define PPPIOCNEWUNIT _IOWR('t', 62, int) /* create new ppp unit */ 107 #define PPPIOCATTACH _IOW('t', 61, int) /* attach to ppp unit */ 108 #define PPPIOCDETACH _IOW('t', 60, int) /* detach from ppp unit/chan */ 110 #define PPPIOCCONNECT _IOW('t', 58, int) /* connect channel to unit */
|
H A D | sysinfo.h | 20 __u32 mem_unit; /* Memory unit size in bytes */
|
H A D | uvcvideo.h | 59 __u8 unit; member in struct:uvc_xu_control_query
|
H A D | i2o-dev.h | 49 unsigned int iop; /* IOP unit number */ 54 unsigned int iop; /* IOP unit number */ 59 unsigned int iop; /* IOP unit number */ 65 unsigned int iop; /* IOP unit number */ 74 unsigned int iop; /* IOP unit number */ 85 unsigned int iop; /* IOP unit number */
|
/linux-4.1.27/arch/metag/include/uapi/asm/ |
H A D | ptrace.h | 52 * @dx: GP data unit regs (dx[reg][unit] = D{unit:0-1}.{reg:0-7}) 53 * @ax: GP address unit regs (ax[reg][unit] = A{unit:0-1}.{reg:0-3})
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | io-unit.h | 1 /* io-unit.h: Definitions for the sun4d IO-UNIT. 12 /* The io-unit handles all virtual to physical address translations 15 * translated by the on chip SRMMU. The io-unit and the srmmu do 18 * Basically the io-unit handles all dvma sbus activity.
|
/linux-4.1.27/arch/mn10300/proc-mn103e010/include/proc/ |
H A D | clock.h | 14 #include <unit/clock.h>
|
/linux-4.1.27/arch/mn10300/proc-mn2ws0050/include/proc/ |
H A D | clock.h | 18 #include <unit/clock.h>
|
/linux-4.1.27/drivers/staging/sm750fb/ |
H A D | ddk750_chip.h | 48 unsigned short chipClock; /* Speed of main chip clock in MHz unit 52 unsigned short memClock; /* Speed of memory clock in MHz unit 56 unsigned short masterClock; /* Speed of master clock in MHz unit
|
/linux-4.1.27/tools/perf/util/ |
H A D | pmu.h | 30 const char *unit; member in struct:perf_pmu_info 36 #define UNIT_MAX_LEN 31 /* max length for event unit name */ 42 char unit[UNIT_MAX_LEN+1]; member in struct:perf_pmu_alias
|
H A D | pmu.c | 145 snprintf(path, PATH_MAX, "%s/%s.unit", dir, name); perf_pmu__parse_unit() 151 sret = read(fd, alias->unit, UNIT_MAX_LEN); perf_pmu__parse_unit() 157 alias->unit[sret] = '\0'; perf_pmu__parse_unit() 162 alias->unit[0] = '\0'; perf_pmu__parse_unit() 218 alias->unit[0] = '\0'; perf_pmu__new_alias() 229 * load unit name and scale if available perf_pmu__new_alias() 246 if (len > 5 && !strcmp(name + len - 5, ".unit")) pmu_alias_info_file() 720 * define unit, scale and snapshot, fail check_info_data() 723 if ((info->unit && alias->unit) || check_info_data() 728 if (alias->unit) check_info_data() 729 info->unit = alias->unit; check_info_data() 754 * Mark unit and scale as not set perf_pmu__check_alias() 757 info->unit = NULL; perf_pmu__check_alias() 781 * if no unit or scale foundin aliases, then 783 * unit cannot left to NULL 785 if (info->unit == NULL) 786 info->unit = "";
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
H A D | qib_fs.c | 378 char unit[10]; add_cntr_files() local 381 /* create the per-unit directory */ add_cntr_files() 382 snprintf(unit, sizeof(unit), "%u", dd->unit); add_cntr_files() 383 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, add_cntr_files() 386 pr_err("create_file(%s) failed: %d\n", unit, ret); add_cntr_files() 395 unit, ret); add_cntr_files() 402 unit, ret); add_cntr_files() 409 unit, "portcounter_names", ret); add_cntr_files() 421 unit, fname, ret); add_cntr_files() 431 unit, fname, ret); add_cntr_files() 440 unit, ret); add_cntr_files() 480 char unit[10]; remove_device_files() local 485 snprintf(unit, sizeof(unit), "%u", dd->unit); remove_device_files() 486 dir = lookup_one_len(unit, root, strlen(unit)); remove_device_files() 490 pr_err("Lookup of %s failed\n", unit); remove_device_files() 581 * On first unit initialized, qib_super will not yet exist qibfs_add()
|
H A D | qib_driver.c | 85 const char *qib_get_unit_name(int unit) qib_get_unit_name() argument 89 snprintf(iname, sizeof(iname), "infinipath%u", unit); qib_get_unit_name() 664 dd->unit, ppd->port, lid); qib_set_lid() 748 * @unit: the device to reset 755 int qib_reset_device(int unit) qib_reset_device() argument 758 struct qib_devdata *dd = qib_lookup(unit); qib_reset_device() 768 qib_devinfo(dd->pcidev, "Reset on unit %u requested\n", unit); qib_reset_device() 772 "Invalid unit number %u or not initialized or not present\n", qib_reset_device() 773 unit); qib_reset_device() 811 "Reinitialize unit %u after reset failed with %d\n", qib_reset_device() 812 unit, ret); qib_reset_device() 815 "Reinitialized unit %u after resetting\n", qib_reset_device() 816 unit); qib_reset_device()
|
/linux-4.1.27/drivers/sh/maple/ |
H A D | maple.c | 57 int unit; member in struct:maple_device_specify 207 mdev->port, mdev->unit); maple_allocq() 211 static struct maple_device *maple_alloc_dev(int port, int unit) maple_alloc_dev() argument 223 mdev->unit = unit; maple_alloc_dev() 249 int port, unit, from, to, len; maple_build_block() local 253 unit = mq->dev->unit; maple_build_block() 256 to = (port << 6) | (unit > 0 ? (1 << (unit - 1)) & 0x1f : 0x20); maple_build_block() 366 mdev->product_name, function, mdev->port, mdev->unit); maple_attach_driver() 384 mdev->unit, function); maple_attach_driver() 394 " (%d, %d), with error 0x%X\n", mdev->unit, maple_attach_driver() 404 * port and unit then return 1 - allows identification 414 if (mdev->port == ds->port && mdev->unit == ds->unit) check_maple_device() 500 ds.unit = k + 1; maple_map_subunits() 528 killbit = (mdev->unit > 0 ? (1 << (mdev->unit - 1)) & 0x1f : 0x20); maple_clean_submap() 539 if (likely(mdev->unit != 0)) { maple_response_none() 558 mdev->port, mdev->unit); maple_response_none() 572 /* Some hardware devices generate false detach messages on unit 0 */ maple_response_none() 582 if ((mdev->unit == 0) && (checked[mdev->port] == false)) { maple_response_devinfo() 586 if (mdev->unit != 0) maple_response_devinfo() 588 if (mdev->unit == 0) { maple_response_devinfo() 594 if (mdev->unit == 0) { maple_response_devinfo() 610 "file error 0x%X\n", mdev->port, mdev->unit, maple_response_fileerr() 678 mdev->port, mdev->unit); maple_dma_handler() 686 mdev->unit); maple_dma_handler()
|
/linux-4.1.27/drivers/net/ |
H A D | Space.c | 42 struct net_device *(*probe)(int unit); 46 static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) probe_list2() argument 52 dev = p->probe(unit); probe_list2() 131 static void __init ethif_probe2(int unit) ethif_probe2() argument 133 unsigned long base_addr = netdev_boot_base("eth", unit); ethif_probe2() 138 (void)( probe_list2(unit, m68k_probes, base_addr == 0) && ethif_probe2() 139 probe_list2(unit, isa_probes, base_addr == 0)); ethif_probe2()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
H A D | base.c | 52 struct nvkm_subdev *unit; nvkm_mc_intr() local 65 unit = nvkm_subdev(pmc, map->unit); nvkm_mc_intr() 66 if (unit && unit->intr) nvkm_mc_intr() 67 unit->intr(unit); nvkm_mc_intr()
|
H A D | priv.h | 25 u32 unit; member in struct:nvkm_mc_intr
|
/linux-4.1.27/drivers/scsi/ |
H A D | constants.c | 327 {0x001F, "Logical unit transitioning to another power condition"}, 339 {0x0400, "Logical unit not ready, cause not reportable"}, 340 {0x0401, "Logical unit is in process of becoming ready"}, 341 {0x0402, "Logical unit not ready, initializing command required"}, 342 {0x0403, "Logical unit not ready, manual intervention required"}, 343 {0x0404, "Logical unit not ready, format in progress"}, 344 {0x0405, "Logical unit not ready, rebuild in progress"}, 345 {0x0406, "Logical unit not ready, recalculation in progress"}, 346 {0x0407, "Logical unit not ready, operation in progress"}, 347 {0x0408, "Logical unit not ready, long write in progress"}, 348 {0x0409, "Logical unit not ready, self-test in progress"}, 349 {0x040A, "Logical unit not accessible, asymmetric access state " 351 {0x040B, "Logical unit not accessible, target port in standby state"}, 352 {0x040C, "Logical unit not accessible, target port in unavailable " 354 {0x040D, "Logical unit not ready, structure check required"}, 355 {0x040E, "Logical unit not ready, security session in progress"}, 356 {0x0410, "Logical unit not ready, auxiliary memory not accessible"}, 357 {0x0411, "Logical unit not ready, notify (enable spinup) required"}, 358 {0x0412, "Logical unit not ready, offline"}, 359 {0x0413, "Logical unit not ready, SA creation in progress"}, 360 {0x0414, "Logical unit not ready, space allocation in progress"}, 361 {0x0415, "Logical unit not ready, robotics disabled"}, 362 {0x0416, "Logical unit not ready, configuration required"}, 363 {0x0417, "Logical unit not ready, calibration required"}, 364 {0x0418, "Logical unit not ready, a door is open"}, 365 {0x0419, "Logical unit not ready, operating in sequential mode"}, 366 {0x041A, "Logical unit not ready, start stop unit command in " 368 {0x041B, "Logical unit not ready, sanitize in progress"}, 369 {0x041C, "Logical unit not ready, additional power use not yet " 371 {0x041D, "Logical unit not ready, configuration in progress"}, 372 {0x041E, "Logical unit not ready, microcode activation required"}, 373 {0x041F, "Logical unit not ready, microcode download required"}, 374 {0x0420, "Logical unit not ready, logical unit reset required"}, 375 {0x0421, "Logical unit not ready, hard reset required"}, 376 {0x0422, "Logical unit not ready, power cycle required"}, 378 {0x0500, "Logical unit does not respond to selection"}, 384 {0x0800, "Logical unit communication failure"}, 385 {0x0801, "Logical unit communication time-out"}, 386 {0x0802, "Logical unit communication parity error"}, 387 {0x0803, "Logical unit communication CRC error (Ultra-DMA/32)"}, 435 {0x0E00, "Invalid information unit"}, 436 {0x0E01, "Information unit too short"}, 437 {0x0E02, "Information unit too long"}, 438 {0x0E03, "Invalid field in command information unit"}, 582 {0x2500, "Logical unit not supported"}, 606 {0x2702, "Logical unit software write protected"}, 738 {0x3B03, "Tape or electronic vertical forms unit not ready"}, 767 {0x3E00, "Logical unit has not self-configured yet"}, 768 {0x3E01, "Logical unit failure"}, 769 {0x3E02, "Timeout on logical unit"}, 770 {0x3E03, "Logical unit failed self-test"}, 771 {0x3E04, "Logical unit unable to update self-test log"}, 815 {0x4703, "Information unit iuCRC error detected"}, 850 {0x4C00, "Logical unit failed self-configuration"}, 920 {0x5D02, "Logical unit failure prediction threshold exceeded"}, 928 {0x5D16, "Hardware impending failure start unit times too high"}, 941 {0x5D26, "Controller impending failure start unit times too high"}, 954 {0x5D36, "Data channel impending failure start unit times too high"}, 968 {0x5D46, "Servo impending failure start unit times too high"}, 981 {0x5D56, "Spindle impending failure start unit times too high"}, 994 {0x5D66, "Firmware impending failure start unit times too high"}, 1043 {0x6702, "Add logical unit failed"}, 1044 {0x6703, "Modification of logical unit failed"}, 1045 {0x6704, "Exchange of logical unit failed"}, 1046 {0x6705, "Remove of logical unit failed"}, 1047 {0x6706, "Attachment of logical unit failed"}, 1048 {0x6707, "Creation of logical unit failed"}, 1050 {0x6709, "Multiply assigned logical unit"}, 1054 {0x6800, "Logical unit not configured"}, 1055 {0x6801, "Subsidiary logical unit not configured"}, 1057 {0x6900, "Data loss on logical unit"}, 1058 {0x6901, "Multiple logical unit failures"}, 1071 {0x6E00, "Command to logical unit failed"}, 1078 {0x6F04, "Media region code is mismatched to logical unit region"}, 1133 {0x7471, "Logical unit access not authorized"},
|
H A D | atp870u.h | 64 unsigned int unit; member in struct:atp_unit
|
H A D | zalon.c | 93 static int unit = 0; zalon_probe() local 135 host = ncr_attach(&zalon7xx_template, unit, &device); zalon_probe() 145 unit++; zalon_probe()
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
H A D | ipath_fs.c | 236 char unit[10]; create_device_files() local 239 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); create_device_files() 240 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, create_device_files() 243 printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret); create_device_files() 251 "failed: %d\n", unit, ret); create_device_files() 259 "failed: %d\n", unit, ret); create_device_files() 301 char unit[10]; remove_device_files() local 306 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); remove_device_files() 307 dir = lookup_one_len(unit, root, strlen(unit)); remove_device_files() 311 printk(KERN_ERR "Lookup of %s failed\n", unit); remove_device_files()
|
H A D | ipath_diag.c | 283 int unit = iminor(in) - IPATH_DIAG_MINOR_BASE; ipath_diag_open() local 294 dd = ipath_lookup(unit); ipath_diag_open() 350 dp.unit = odp.unit; ipath_diagpkt_write() 366 dd = ipath_lookup(dp.unit); ipath_diagpkt_write() 369 ipath_cdbg(VERBOSE, "illegal unit %u for diag data send\n", ipath_diagpkt_write() 370 dp.unit); ipath_diagpkt_write() 386 ipath_cdbg(VERBOSE, "unit %u not usable\n", dd->ipath_unit); ipath_diagpkt_write() 401 ipath_cdbg(VERBOSE, "unit %u not ready (state %llx)\n", ipath_diagpkt_write() 442 ipath_cdbg(VERBOSE, "No PIO buffers avail unit for %u\n", ipath_diagpkt_write() 451 ipath_cdbg(VERBOSE, "unit %u 0x%x+1w pio%d\n", ipath_diagpkt_write()
|
/linux-4.1.27/drivers/crypto/ |
H A D | talitos.h | 227 /* execution unit interrupt status registers */ 228 #define TALITOS_DEUISR 0x2030 /* DES unit */ 230 #define TALITOS_AESUISR 0x4030 /* AES unit */ 232 #define TALITOS_MDEUISR 0x6030 /* message digest unit */ 237 #define TALITOS_AFEUISR 0x8030 /* arc4 unit */ 239 #define TALITOS_RNGUISR 0xa030 /* random number unit */ 252 #define TALITOS_PKEUISR 0xc030 /* public key unit */ 254 #define TALITOS_KEUISR 0xe030 /* kasumi unit */ 256 #define TALITOS_CRCUISR 0xf030 /* cyclic redundancy check unit*/ 272 /* primary execution unit select */ 284 /* primary execution unit mode (MODE0) and derivatives */ 306 /* secondary execution unit select (SEL1) */ 312 /* secondary execution unit mode (MODE1) and derivatives */
|
/linux-4.1.27/drivers/gpu/drm/radeon/ |
H A D | sumo_smc.c | 133 static u32 sumo_power_of_4(u32 unit) sumo_power_of_4() argument 138 for (i = 0; i < unit; i++) sumo_power_of_4() 147 u32 period, unit, timer_value; sumo_enable_boost_timer() local 150 unit = (RREG32_RCU(RCU_LCLK_SCALING_CNTL) & LCLK_SCALING_TIMER_PRESCALER_MASK) sumo_enable_boost_timer() 153 period = 100 * (xclk / 100 / sumo_power_of_4(unit)); sumo_enable_boost_timer() 155 timer_value = (period << 16) | (unit << 4); sumo_enable_boost_timer()
|
H A D | atombios.h | 445 ULONG ulClockFreq:24; // in unit of 10kHz 447 ULONG ulClockFreq:24; // in unit of 10kHz 584 ULONG ulTargetEngineClock; //In 10Khz unit 589 ULONG ulTargetEngineClock; //In 10Khz unit 598 ULONG ulTargetMemoryClock; //In 10Khz unit 603 ULONG ulTargetMemoryClock; //In 10Khz unit 612 ULONG ulDefaultEngineClock; //In 10Khz unit 613 ULONG ulDefaultMemoryClock; //In 10Khz unit 1544 USHORT usPixelClock; // in 10kHz unit; for bios convenient = (RefClk*FB_Div)/(Ref_Div*Post_Div) 1564 USHORT usPixelClock; // in 10kHz unit; for bios convenient = (RefClk*FB_Div)/(Ref_Div*Post_Div) 1611 USHORT usPixelClock; // in 10kHz unit; for bios convenient = (RefClk*FB_Div)/(Ref_Div*Post_Div) 1813 ULONG ulReturnMemoryClock; // current memory speed in 10KHz unit 1822 ULONG ulReturnEngineClock; // current engine speed in 10KHz unit 1886 USHORT usPwrBudget; //how much power currently boot to in unit of watt 1893 USHORT usPwrBudget; //how much power currently boot to in unit of watt 2002 ULONG ulTargetMemoryClock; //In 10Khz unit 2233 USHORT usVoltageLevel; // real voltage level in unit of mv or Voltage Phase (0, 1, 2, .. ) 2271 USHORT usVoltageLevel; // Input: real voltage level in unit of mv or Voltage Phase (0, 1, 2, .. ) or Leakage Id 2310 USHORT usVoltageLevel; // Input: real voltage level in unit of mv or Voltage Phase (0, 1, 2, .. ) or Leakage Id 2320 USHORT usVoltageLevel; // real voltage level in unit of mv 2510 ULONG ulDefaultEngineClock; //In 10Khz unit 2511 ULONG ulDefaultMemoryClock; //In 10Khz unit 2512 ULONG ulDriverTargetEngineClock; //In 10Khz unit 2513 ULONG ulDriverTargetMemoryClock; //In 10Khz unit 2514 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2515 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2516 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2517 ULONG ulASICMaxEngineClock; //In 10Khz unit 2518 ULONG ulASICMaxMemoryClock; //In 10Khz unit 2522 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2523 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2524 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2525 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2526 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2527 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2528 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2529 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2530 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2531 USHORT usMinPixelClockPLL_Output; //In 10Khz unit, the definitions above can't change!!! 2533 USHORT usReferenceClock; //In 10Khz unit 2534 USHORT usPM_RTS_Location; //RTS PM4 starting location in ROM in 1Kb unit 2535 UCHAR ucPM_RTS_StreamSize; //RTS PM4 packets in Kb unit 2544 ULONG ulDefaultEngineClock; //In 10Khz unit 2545 ULONG ulDefaultMemoryClock; //In 10Khz unit 2546 ULONG ulDriverTargetEngineClock; //In 10Khz unit 2547 ULONG ulDriverTargetMemoryClock; //In 10Khz unit 2548 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2549 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2550 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2551 ULONG ulASICMaxEngineClock; //In 10Khz unit 2552 ULONG ulASICMaxMemoryClock; //In 10Khz unit 2557 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2558 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2559 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2560 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2561 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2562 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2563 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2564 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2565 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2566 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2567 USHORT usMinPixelClockPLL_Output; //In 10Khz unit - lower 16bit of ulMinPixelClockPLL_Output 2569 USHORT usReferenceClock; //In 10Khz unit 2570 USHORT usPM_RTS_Location; //RTS PM4 starting location in ROM in 1Kb unit 2571 UCHAR ucPM_RTS_StreamSize; //RTS PM4 packets in Kb unit 2580 ULONG ulDefaultEngineClock; //In 10Khz unit 2581 ULONG ulDefaultMemoryClock; //In 10Khz unit 2582 ULONG ulDriverTargetEngineClock; //In 10Khz unit 2583 ULONG ulDriverTargetMemoryClock; //In 10Khz unit 2584 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2585 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2586 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2587 ULONG ulASICMaxEngineClock; //In 10Khz unit 2588 ULONG ulASICMaxMemoryClock; //In 10Khz unit 2593 ULONG ul3DAccelerationEngineClock;//In 10Khz unit 2594 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2595 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2596 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2597 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2598 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2599 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2600 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2601 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2602 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2603 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2604 USHORT usMinPixelClockPLL_Output; //In 10Khz unit - lower 16bit of ulMinPixelClockPLL_Output 2606 USHORT usReferenceClock; //In 10Khz unit 2607 USHORT usPM_RTS_Location; //RTS PM4 starting location in ROM in 1Kb unit 2608 UCHAR ucPM_RTS_StreamSize; //RTS PM4 packets in Kb unit 2617 ULONG ulDefaultEngineClock; //In 10Khz unit 2618 ULONG ulDefaultMemoryClock; //In 10Khz unit 2619 ULONG ulDriverTargetEngineClock; //In 10Khz unit 2620 ULONG ulDriverTargetMemoryClock; //In 10Khz unit 2621 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2622 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2623 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2624 ULONG ulASICMaxEngineClock; //In 10Khz unit 2625 ULONG ulASICMaxMemoryClock; //In 10Khz unit 2628 USHORT usBootUpVDDCVoltage; //In MV unit 2629 USHORT usLcdMinPixelClockPLL_Output; // In MHz unit 2630 USHORT usLcdMaxPixelClockPLL_Output; // In MHz unit 2631 ULONG ul3DAccelerationEngineClock;//In 10Khz unit 2632 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2633 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2634 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2635 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2636 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2637 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2638 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2639 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2640 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2641 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2642 USHORT usMinPixelClockPLL_Output; //In 10Khz unit - lower 16bit of ulMinPixelClockPLL_Output 2644 USHORT usReferenceClock; //In 10Khz unit 2645 USHORT usPM_RTS_Location; //RTS PM4 starting location in ROM in 1Kb unit 2646 UCHAR ucPM_RTS_StreamSize; //RTS PM4 packets in Kb unit 2656 ULONG ulDefaultEngineClock; //In 10Khz unit 2657 ULONG ulDefaultMemoryClock; //In 10Khz unit 2660 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2661 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2662 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2664 ULONG ulDefaultDispEngineClkFreq; //In 10Khz unit 2667 USHORT usBootUpVDDCVoltage; //In MV unit 2668 USHORT usLcdMinPixelClockPLL_Output; // In MHz unit 2669 USHORT usLcdMaxPixelClockPLL_Output; // In MHz unit 2671 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2672 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2673 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2674 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2675 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2676 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2677 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2678 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2679 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2680 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2681 USHORT usMinPixelClockPLL_Output; //In 10Khz unit - lower 16bit of ulMinPixelClockPLL_Output 2683 USHORT usCoreReferenceClock; //In 10Khz unit 2684 USHORT usMemoryReferenceClock; //In 10Khz unit 2685 USHORT usUniphyDPModeExtClkFreq; //In 10Khz unit, if it is 0, In DP Mode Uniphy Input clock from internal PPLL, otherwise Input clock from external Spread clock 2697 ULONG ulDefaultEngineClock; //In 10Khz unit 2698 ULONG ulDefaultMemoryClock; //In 10Khz unit 2699 ULONG ulSPLL_OutputFreq; //In 10Khz unit 2700 ULONG ulGPUPLL_OutputFreq; //In 10Khz unit 2701 ULONG ulReserved1; //Was ulMaxEngineClockPLL_Output; //In 10Khz unit* 2702 ULONG ulReserved2; //Was ulMaxMemoryClockPLL_Output; //In 10Khz unit* 2703 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2705 ULONG ulDefaultDispEngineClkFreq; //In 10Khz unit. This is the frequency before DCDTO, corresponding to usBootUpVDDCVoltage. 2708 USHORT usBootUpVDDCVoltage; //In MV unit 2709 USHORT usLcdMinPixelClockPLL_Output; // In MHz unit 2710 USHORT usLcdMaxPixelClockPLL_Output; // In MHz unit 2712 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2717 USHORT usReserved11; //Was usMaxPixelClock; //In 10Khz unit, Max. Pclk used only for DAC 2718 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2719 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2720 USHORT usBootUpVDDCIVoltage; //In unit of mv; Was usMinPixelClockPLL_Output; 2722 USHORT usCoreReferenceClock; //In 10Khz unit 2723 USHORT usMemoryReferenceClock; //In 10Khz unit 2724 USHORT usUniphyDPModeExtClkFreq; //In 10Khz unit, if it is 0, In DP Mode Uniphy Input clock from internal PPLL, otherwise Input clock from external Spread clock 2727 USHORT usBootUpMVDDCVoltage; //In unit of mv; Was usMinPixelClockPLL_Output; 2750 ULONG ulBootUpEngineClock; //in 10kHz unit 2751 ULONG ulBootUpMemoryClock; //in 10kHz unit 2752 ULONG ulMaxSystemMemoryClock; //in 10kHz unit 2753 ULONG ulMinSystemMemoryClock; //in 10kHz unit 2761 USHORT usFSBClock; //In MHz unit 2766 USHORT usK8MemoryClock; //in MHz unit 2767 USHORT usK8SyncStartDelay; //in 0.01 us unit 2768 USHORT usK8DataReturnTime; //in 0.01 us unit 2822 ULONG ulBootUpEngineClock; //in 10kHz unit 2824 ULONG ulBootUpUMAClock; //in 10kHz unit 2825 ULONG ulBootUpSidePortClock; //in 10kHz unit 2826 ULONG ulMinSidePortClock; //in 10kHz unit 2937 usLinkStatusZeroTime:Memory access latency required for watermark calculation, set this to 0x0 for K8 CPU, set a proper value in 0.01 the unit of us 2995 ULONG ulBootUpEngineClock; //in 10kHz unit 2996 ULONG ulDentistVCOFreq; //Dentist VCO clock in 10kHz unit, the source of GPU SCLK, LCLK, UCLK and VCLK. 2997 ULONG ulLClockFreq; //GPU Lclk freq in 10kHz unit, have relationship with NCLK in NorthBridge 2998 ULONG ulBootUpUMAClock; //in 10kHz unit 3376 USHORT usPixelClock; //in 10Khz unit 4455 USHORT usVDDCBaseLevel; //In number of 50mv unit 4459 UCHAR ucVoltageStep; //Indicating in how many mv increament is one step, 0.5mv unit 4476 USHORT usVoltageBaseLevel; // In number of 1mv unit 4477 USHORT usVoltageStep; // Indicating in how many mv increament is one step, 1mv unit 4615 UCHAR ucPhaseDelay; // phase delay in unit of micro second 4749 USHORT usSensPwr; // in unit of watt 4775 ULONG ulMaximumSupportedCLK; // Maximum clock supported with specified voltage index, unit in 10kHz 4780 ULONG ulSupportedSCLK; // Maximum clock supported with specified voltage index, unit in 10kHz 4864 ulBootUpEngineClock: VBIOS bootup Engine clock frequency, in 10kHz unit. if it is equal 0, then VBIOS use pre-defined bootup engine clock 4865 ulDentistVCOFreq: Dentist VCO clock in 10kHz unit. 4866 ulBootUpUMAClock: System memory boot up clock frequency in 10Khz unit. 4906 ulMinEngineClock: Minimum SCLK allowed in 10kHz unit. This is calculated based on WRCK Fuse settings. 4935 usPCIEClkSSPercentage: PCIE Clock Spred Spectrum Percentage in unit 0.01%; 100 mean 1%. 4937 usLvdsSSPercentage: LVDS panel ( not include eDP ) Spread Spectrum Percentage in unit of 0.01%, =0, use VBIOS default setting. 4938 usLvdsSSpreadRateIn10Hz: LVDS panel ( not include eDP ) Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 4939 usHDMISSPercentage: HDMI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 4940 usHDMISSpreadRateIn10Hz: HDMI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 4941 usDVISSPercentage: DVI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 4942 usDVISSpreadRateIn10Hz: DVI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5079 ulBootUpEngineClock: VBIOS bootup Engine clock frequency, in 10kHz unit. if it is equal 0, then VBIOS use pre-defined bootup engine clock 5080 ulDentistVCOFreq: Dentist VCO clock in 10kHz unit. 5081 ulBootUpUMAClock: System memory boot up clock frequency in 10Khz unit. 5130 ulMinEngineClock: Minimum SCLK allowed in 10kHz unit. This is calculated based on WRCK Fuse settings. 5161 usPCIEClkSSPercentage: PCIE Clock Spread Spectrum Percentage in unit 0.01%; 100 mean 1%. 5163 usLvdsSSPercentage: LVDS panel ( not include eDP ) Spread Spectrum Percentage in unit of 0.01%, =0, use VBIOS default setting. 5164 usLvdsSSpreadRateIn10Hz: LVDS panel ( not include eDP ) Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5165 usHDMISSPercentage: HDMI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5166 usHDMISSpreadRateIn10Hz: HDMI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5167 usDVISSPercentage: DVI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5168 usDVISSpreadRateIn10Hz: DVI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5178 ucLVDSPwrOnSeqDIGONtoDE_in4Ms: LVDS power up sequence time in unit of 4ms, time delay from DIGON signal active to data enable signal active( DE ). 5181 ucLVDSPwrOnDEtoVARY_BL_in4Ms: LVDS power up sequence time in unit of 4ms., time delay from DE( data enable ) active to Vary Brightness enable signal active( VARY_BL ). 5185 ucLVDSPwrOffVARY_BLtoDE_in4Ms: LVDS power down sequence time in unit of 4ms, time delay from data enable ( DE ) signal off to LCDVCC (DIGON) off. 5189 ucLVDSPwrOffDEtoDIGON_in4Ms: LVDS power down sequence time in unit of 4ms, time delay from vary brightness enable signal( VARY_BL) off to data enable ( DE ) signal off. 5193 ucLVDSOffToOnDelay_in4Ms: LVDS power down sequence time in unit of 4ms. Time delay from DIGON signal off to DIGON signal active. 5198 LVDS power up sequence time in unit of 4ms. Time delay from VARY_BL signal on to DLON signal active. 5203 LVDS power down sequence time in unit of 4ms. Time delay from BLON signal off to VARY_BL signal off. 5209 ulNbpStateMemclkFreq[4]: system memory clock frequncey in unit of 10Khz in different NB pstate. 5280 ulBootUpEngineClock: VBIOS bootup Engine clock frequency, in 10kHz unit. if it is equal 0, then VBIOS use pre-defined bootup engine clock 5281 ulDentistVCOFreq: Dentist VCO clock in 10kHz unit. 5282 ulBootUpUMAClock: System memory boot up clock frequency in 10Khz unit. 5361 usPCIEClkSSPercentage: PCIE Clock Spread Spectrum Percentage in unit 0.01%; 100 mean 1%. 5363 usLvdsSSPercentage: LVDS panel ( not include eDP ) Spread Spectrum Percentage in unit of 0.01%, =0, use VBIOS default setting. 5364 usLvdsSSpreadRateIn10Hz: LVDS panel ( not include eDP ) Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5365 usHDMISSPercentage: HDMI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5366 usHDMISSpreadRateIn10Hz: HDMI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5367 usDVISSPercentage: DVI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5368 usDVISSpreadRateIn10Hz: DVI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5384 LVDS power up sequence time in unit of 4ms, time delay from DIGON signal active to data enable signal active( DE ). 5388 LVDS power up sequence time in unit of 4ms., time delay from DE( data enable ) active to Vary Brightness enable signal active( VARY_BL ). 5392 LVDS power down sequence time in unit of 4ms, time delay from data enable ( DE ) signal off to LCDVCC (DIGON) off. 5396 LVDS power down sequence time in unit of 4ms, time delay from vary brightness enable signal( VARY_BL) off to data enable ( DE ) signal off. 5400 LVDS power down sequence time in unit of 4ms. Time delay from DIGON signal off to DIGON signal active. 5404 LVDS power up sequence time in unit of 4ms. Time delay from VARY_BL signal on to DLON signal active. 5409 LVDS power down sequence time in unit of 4ms. Time delay from BLON signal off to VARY_BL signal off. 5416 ulNbpStateMemclkFreq[4]: system memory clock frequncey in unit of 10Khz in different NB P-State(P0, P1, P2 & P3). 5472 ULONG ulTargetClockRange; //Clock Out frequence (VCO ), in unit of 10Khz 5473 USHORT usSpreadSpectrumPercentage; //in unit of 0.01% 5474 USHORT usSpreadRateInKhz; //in unit of kHz, modulation freq 5497 ULONG ulTargetClockRange; //For mem/engine/uvd, Clock Out frequence (VCO ), in unit of 10Khz 5499 USHORT usSpreadSpectrumPercentage; //in unit of 0.01% or 0.001%, decided by ucSpreadSpectrumMode bit4 5500 USHORT usSpreadRateIn10Hz; //in unit of 10Hz, modulation freq 5528 ULONG ulTargetClockRange; //For mem/engine/uvd, Clock Out frequence (VCO ), in unit of 10Khz 5530 USHORT usSpreadSpectrumPercentage; //in unit of 0.01% 5531 USHORT usSpreadRateIn10Hz; //in unit of 10Hz, modulation freq 6004 ULONG ulTargetMemoryClock; //In 10Khz unit 6443 ULONG ulClkRange; // memory clock in 10kHz unit, when target memory clock is below this clock, use this memory timing 6479 ULONG ulClkRange; // memory clock in 10kHz unit, when target memory clock is below this clock, use this memory timing 6512 ULONG ulClkRange; // memory clock in 10kHz unit, when target memory clock is below this clock, use this memory timing 6565 UCHAR ucRefreshRateFactor; // memory refresh rate in unit of ms 6613 // Total memory size in unit of 16MB for CONFIG_MEMSIZE - bit[23:0] zeros 6655 // Total memory size in unit of 16MB for CONFIG_MEMSIZE - bit[23:0] zeros 6686 // Total memory size in unit of 16MB for CONFIG_MEMSIZE - bit[23:0] zeros 6716 UCHAR ucMemorySize; // Total memory size in unit of 16MB for CONFIG_MEMSIZE - bit[23:0] zeros 7414 USHORT usMaxFrequency; // in 10kHz unit
|
/linux-4.1.27/drivers/mtd/ |
H A D | ftl.c | 136 /* Transfer unit states */ 152 partition. build_maps() reads all the erase unit headers, builds 153 the erase unit map, and then builds the virtual page map. 207 /* Set up erase unit maps */ build_maps() 329 transfer unit. 341 pr_debug("ftl_cs: erasing xfer unit at 0x%x\n", xfer->Offset); erase_xfer() 369 Prepare_xfer() takes a freshly erased transfer unit and gives 380 /* Look up the transfer unit */ ftl_erase_callback() 417 pr_debug("ftl_cs: preparing xfer unit at 0x%x\n", xfer->Offset); prepare_xfer() 419 /* Write the transfer unit header */ prepare_xfer() 453 Copy_erase_unit() takes a full erase block and a transfer unit, 454 copies everything to the transfer unit, then swaps the block 458 target unit, so the virtual block map does not need to be 470 uint16_t unit; copy_erase_unit() local 500 /* Write the LogicalEUN for the transfer unit */ copy_erase_unit() 503 unit = cpu_to_le16(0x7fff); copy_erase_unit() 506 (u_char *)&unit); copy_erase_unit() 513 /* Copy all data blocks from source unit to transfer unit */ copy_erase_unit() 528 printk(KERN_WARNING "ftl: Error reading old xfer unit in copy_erase_unit\n"); copy_erase_unit() 536 printk(KERN_WARNING "ftl: Error writing new xfer unit in copy_erase_unit\n"); copy_erase_unit() 551 /* Write the BAM to the transfer unit */ copy_erase_unit() 593 reclaim_block() picks a full erase unit and a transfer unit and 597 What's a good way to decide which transfer unit and which erase 598 unit to use? Beats me. My way is to always pick the transfer 599 unit with the fewest erases, and usually pick the data unit with 601 oldest data unit instead. This means that we generally postpone 615 /* Pick the least erased transfer unit */ reclaim_block() 651 "unit to be prepared...\n"); reclaim_block() 706 the BAM cache for the erase unit containing the free block. It 707 returns the block index -- the erase unit is just the currently 708 cached unit. If there are no free blocks, it returns 0 -- this 719 printk(KERN_DEBUG "ftl_cs: unit %d: %d phys, %d free, " dump_lists() 733 /* Find an erase unit with some free space */ find_free() 745 /* Is this unit's BAM cached? */ find_free()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | gk104.c | 711 gk104_fifo_intr_fault(struct gk104_fifo_priv *priv, int unit) gk104_fifo_intr_fault() argument 713 u32 inst = nv_rd32(priv, 0x002800 + (unit * 0x10)); gk104_fifo_intr_fault() 714 u32 valo = nv_rd32(priv, 0x002804 + (unit * 0x10)); gk104_fifo_intr_fault() 715 u32 vahi = nv_rd32(priv, 0x002808 + (unit * 0x10)); gk104_fifo_intr_fault() 716 u32 stat = nv_rd32(priv, 0x00280c + (unit * 0x10)); gk104_fifo_intr_fault() 734 eu = nvkm_enum_find(gk104_fifo_fault_engine, unit); gk104_fifo_intr_fault() 753 snprintf(euunk, sizeof(euunk), "UNK%02x", unit); gk104_fifo_intr_fault() 822 gk104_fifo_intr_pbdma_0(struct gk104_fifo_priv *priv, int unit) gk104_fifo_intr_pbdma_0() argument 824 u32 mask = nv_rd32(priv, 0x04010c + (unit * 0x2000)); gk104_fifo_intr_pbdma_0() 825 u32 stat = nv_rd32(priv, 0x040108 + (unit * 0x2000)) & mask; gk104_fifo_intr_pbdma_0() 826 u32 addr = nv_rd32(priv, 0x0400c0 + (unit * 0x2000)); gk104_fifo_intr_pbdma_0() 827 u32 data = nv_rd32(priv, 0x0400c4 + (unit * 0x2000)); gk104_fifo_intr_pbdma_0() 828 u32 chid = nv_rd32(priv, 0x040120 + (unit * 0x2000)) & 0xfff; gk104_fifo_intr_pbdma_0() 836 nv_wr32(priv, 0x0400c0 + (unit * 0x2000), 0x80600008); gk104_fifo_intr_pbdma_0() 840 nv_error(priv, "PBDMA%d:", unit); gk104_fifo_intr_pbdma_0() 845 unit, chid, gk104_fifo_intr_pbdma_0() 850 nv_wr32(priv, 0x040108 + (unit * 0x2000), stat); gk104_fifo_intr_pbdma_0() 863 gk104_fifo_intr_pbdma_1(struct gk104_fifo_priv *priv, int unit) gk104_fifo_intr_pbdma_1() argument 865 u32 mask = nv_rd32(priv, 0x04014c + (unit * 0x2000)); gk104_fifo_intr_pbdma_1() 866 u32 stat = nv_rd32(priv, 0x040148 + (unit * 0x2000)) & mask; gk104_fifo_intr_pbdma_1() 867 u32 chid = nv_rd32(priv, 0x040120 + (unit * 0x2000)) & 0xfff; gk104_fifo_intr_pbdma_1() 870 nv_error(priv, "PBDMA%d:", unit); gk104_fifo_intr_pbdma_1() 873 nv_error(priv, "PBDMA%d: ch %d %08x %08x\n", unit, chid, gk104_fifo_intr_pbdma_1() 874 nv_rd32(priv, 0x040150 + (unit * 0x2000)), gk104_fifo_intr_pbdma_1() 875 nv_rd32(priv, 0x040154 + (unit * 0x2000))); gk104_fifo_intr_pbdma_1() 878 nv_wr32(priv, 0x040148 + (unit * 0x2000), stat); gk104_fifo_intr_pbdma_1() 951 u32 unit = __ffs(mask); gk104_fifo_intr() local 952 gk104_fifo_intr_fault(priv, unit); gk104_fifo_intr() 953 nv_wr32(priv, 0x00259c, (1 << unit)); gk104_fifo_intr() 954 mask &= ~(1 << unit); gk104_fifo_intr() 962 u32 unit = __ffs(mask); gk104_fifo_intr() local 963 gk104_fifo_intr_pbdma_0(priv, unit); gk104_fifo_intr() 964 gk104_fifo_intr_pbdma_1(priv, unit); gk104_fifo_intr() 965 nv_wr32(priv, 0x0025a0, (1 << unit)); gk104_fifo_intr() 966 mask &= ~(1 << unit); gk104_fifo_intr() 1038 nv_debug(priv, "%d PBDMA unit(s)\n", priv->spoon_nr); gk104_fifo_init() 1122 nv_subdev(priv)->unit = 0x00000100; gk104_fifo_ctor()
|
H A D | gf100.c | 597 gf100_fifo_intr_fault(struct gf100_fifo_priv *priv, int unit) gf100_fifo_intr_fault() argument 599 u32 inst = nv_rd32(priv, 0x002800 + (unit * 0x10)); gf100_fifo_intr_fault() 600 u32 valo = nv_rd32(priv, 0x002804 + (unit * 0x10)); gf100_fifo_intr_fault() 601 u32 vahi = nv_rd32(priv, 0x002808 + (unit * 0x10)); gf100_fifo_intr_fault() 602 u32 stat = nv_rd32(priv, 0x00280c + (unit * 0x10)); gf100_fifo_intr_fault() 620 eu = nvkm_enum_find(gf100_fifo_fault_engine, unit); gf100_fifo_intr_fault() 639 snprintf(euunk, sizeof(euunk), "UNK%02x", unit); gf100_fifo_intr_fault() 681 gf100_fifo_intr_pbdma(struct gf100_fifo_priv *priv, int unit) gf100_fifo_intr_pbdma() argument 683 u32 stat = nv_rd32(priv, 0x040108 + (unit * 0x2000)); gf100_fifo_intr_pbdma() 684 u32 addr = nv_rd32(priv, 0x0400c0 + (unit * 0x2000)); gf100_fifo_intr_pbdma() 685 u32 data = nv_rd32(priv, 0x0400c4 + (unit * 0x2000)); gf100_fifo_intr_pbdma() 686 u32 chid = nv_rd32(priv, 0x040120 + (unit * 0x2000)) & 0x7f; gf100_fifo_intr_pbdma() 697 nv_error(priv, "PBDMA%d:", unit); gf100_fifo_intr_pbdma() 702 unit, chid, gf100_fifo_intr_pbdma() 707 nv_wr32(priv, 0x0400c0 + (unit * 0x2000), 0x80600008); gf100_fifo_intr_pbdma() 708 nv_wr32(priv, 0x040108 + (unit * 0x2000), stat); gf100_fifo_intr_pbdma() 755 u32 unit = __ffs(mask); gf100_fifo_intr_engine() local 756 gf100_fifo_intr_engine_unit(priv, unit); gf100_fifo_intr_engine() 757 mask &= ~(1 << unit); gf100_fifo_intr_engine() 798 u32 unit = __ffs(mask); gf100_fifo_intr() local 799 gf100_fifo_intr_fault(priv, unit); gf100_fifo_intr() 800 nv_wr32(priv, 0x00259c, (1 << unit)); gf100_fifo_intr() 801 mask &= ~(1 << unit); gf100_fifo_intr() 809 u32 unit = __ffs(mask); gf100_fifo_intr() local 810 gf100_fifo_intr_pbdma(priv, unit); gf100_fifo_intr() 811 nv_wr32(priv, 0x0025a0, (1 << unit)); gf100_fifo_intr() 812 mask &= ~(1 << unit); gf100_fifo_intr() 896 nv_subdev(priv)->unit = 0x00000100; gf100_fifo_ctor() 930 nv_debug(priv, "%d PBDMA unit(s)\n", priv->spoon_nr); gf100_fifo_init()
|
/linux-4.1.27/drivers/net/fddi/skfp/h/ |
H A D | types.h | 4 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
|
H A D | mbuf.h | 4 * a business unit of Schneider & Koch & Co. Datensysteme GmbH.
|
/linux-4.1.27/drivers/s390/char/ |
H A D | vmur.h | 2 * Linux driver for System z and s390 unit record devices 14 #define DEV_CLASS_UR_I 0x20 /* diag210 unit record input device class */ 15 #define DEV_CLASS_UR_O 0x10 /* diag210 unit record output device class */ 17 * we only support z/VM's default unit record devices:
|
H A D | tape_34xx.c | 282 " the control unit and tape unit\n"); tape_34xx_erp_overrun() 311 * This function analyses the tape's sense-data in case of a unit-check. 553 dev_warn (&device->cdev->dev, "The tape unit cannot process " tape_34xx_unit_check() 571 dev_warn (&device->cdev->dev, "The tape unit failed to load" tape_34xx_unit_check() 594 " on the tape unit\n"); tape_34xx_unit_check() 625 dev_warn (&device->cdev->dev, "The tape unit is not ready\n"); tape_34xx_unit_check() 668 dev_warn (&device->cdev->dev, "The tape unit is already " tape_34xx_unit_check() 677 dev_warn (&device->cdev->dev, "The tape unit is not online\n"); tape_34xx_unit_check() 681 dev_warn (&device->cdev->dev, "The control unit has fenced " tape_34xx_unit_check() 694 /* Control unit erp failed. */ tape_34xx_unit_check() 696 "the tape control unit\n"); tape_34xx_unit_check() 703 dev_warn (&device->cdev->dev, "The tape unit requires a " tape_34xx_unit_check() 786 dev_warn (&device->cdev->dev, "The tape unit does not support " tape_34xx_unit_check() 794 dev_warn (&device->cdev->dev, "The tape unit does not support" tape_34xx_unit_check() 799 dev_warn (&device->cdev->dev, "The tape unit does not support tape " tape_34xx_unit_check() 804 dev_warn (&device->cdev->dev, "The tape unit does not support" tape_34xx_unit_check() 809 dev_warn (&device->cdev->dev, "The tape unit does not support" tape_34xx_unit_check() 849 * A unit exception occurs on skipping over a tapemark block. tape_34xx_irq()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/ |
H A D | subdev.c | 67 if (subdev->unit) { nvkm_subdev_fini() 68 nv_mask(subdev, 0x000200, subdev->unit, 0x00000000); nvkm_subdev_fini() 69 nv_mask(subdev, 0x000200, subdev->unit, subdev->unit); nvkm_subdev_fini()
|
/linux-4.1.27/drivers/ata/ |
H A D | pata_acpi.c | 113 int unit = adev->devno; pacpi_set_piomode() local 118 unit = 0; pacpi_set_piomode() 122 acpi->gtm.drive[unit].pio = t->cycle; pacpi_set_piomode() 136 int unit = adev->devno; pacpi_set_dmamode() local 141 unit = 0; pacpi_set_dmamode() 146 acpi->gtm.drive[unit].dma = t->udma; pacpi_set_dmamode() 147 acpi->gtm.flags |= (1 << (2 * unit)); pacpi_set_dmamode() 149 acpi->gtm.drive[unit].dma = t->cycle; pacpi_set_dmamode() 150 acpi->gtm.flags &= ~(1 << (2 * unit)); pacpi_set_dmamode()
|
H A D | pata_it821x.c | 159 int unit = adev->devno; it821x_program_udma() local 168 pci_write_config_byte(pdev, 0x56 + 4 * channel + unit, conf); it821x_program_udma() 189 u8 unit = adev->devno; it821x_clock_strategy() local 232 if (pair && itdev->udma[1-unit] != UDMA_OFF) { it821x_clock_strategy() 233 it821x_program_udma(ap, pair, itdev->udma[1-unit]); it821x_clock_strategy() 234 it821x_program(ap, pair, itdev->pio[1-unit]); it821x_clock_strategy() 240 if (itdev->udma[unit] != UDMA_OFF) { it821x_clock_strategy() 241 it821x_program_udma(ap, adev, itdev->udma[unit]); it821x_clock_strategy() 242 it821x_program(ap, adev, itdev->pio[unit]); it821x_clock_strategy() 262 int unit = adev->devno; it821x_passthru_set_piomode() local 266 itdev->want[unit][1] = pio_want[mode_wanted]; it821x_passthru_set_piomode() 267 itdev->want[unit][0] = 1; /* PIO is lowest priority */ it821x_passthru_set_piomode() 268 itdev->pio[unit] = pio[mode_wanted]; it821x_passthru_set_piomode() 270 it821x_program(ap, adev, itdev->pio[unit]); it821x_passthru_set_piomode() 295 int unit = adev->devno; it821x_passthru_set_dmamode() local 301 itdev->want[unit][1] = udma_want[mode_wanted]; it821x_passthru_set_dmamode() 302 itdev->want[unit][0] = 3; /* UDMA is high priority */ it821x_passthru_set_dmamode() 303 itdev->mwdma[unit] = MWDMA_OFF; it821x_passthru_set_dmamode() 304 itdev->udma[unit] = udma[mode_wanted]; it821x_passthru_set_dmamode() 306 itdev->udma[unit] |= 0x8080; /* UDMA 5/6 select on */ it821x_passthru_set_dmamode() 313 conf &= ~ (1 << (3 + 2 * channel + unit)); it821x_passthru_set_dmamode() 316 it821x_program_udma(ap, adev, itdev->udma[unit]); it821x_passthru_set_dmamode() 320 itdev->want[unit][1] = mwdma_want[mode_wanted]; it821x_passthru_set_dmamode() 321 itdev->want[unit][0] = 2; /* MWDMA is low priority */ it821x_passthru_set_dmamode() 322 itdev->mwdma[unit] = dma[mode_wanted]; it821x_passthru_set_dmamode() 323 itdev->udma[unit] = UDMA_OFF; it821x_passthru_set_dmamode() 330 conf |= 1 << (3 + 2 * channel + unit); it821x_passthru_set_dmamode() 350 int unit = adev->devno; it821x_passthru_bmdma_start() local 352 if (itdev->mwdma[unit] != MWDMA_OFF) it821x_passthru_bmdma_start() 353 it821x_program(ap, adev, itdev->mwdma[unit]); it821x_passthru_bmdma_start() 354 else if (itdev->udma[unit] != UDMA_OFF && itdev->timing10) it821x_passthru_bmdma_start() 355 it821x_program_udma(ap, adev, itdev->udma[unit]); it821x_passthru_bmdma_start() 373 int unit = adev->devno; it821x_passthru_bmdma_stop() local 376 if (itdev->mwdma[unit] != MWDMA_OFF) it821x_passthru_bmdma_stop() 377 it821x_program(ap, adev, itdev->pio[unit]); it821x_passthru_bmdma_stop()
|
/linux-4.1.27/drivers/media/firewire/ |
H A D | firedtv-fw.c | 251 static int node_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) node_probe() argument 261 dev_set_drvdata(&unit->device, fdtv); node_probe() 262 fdtv->device = &unit->device; node_probe() 272 name_len = fw_csr_string(unit->directory, CSR_MODEL, node_probe() 280 err = fdtv_register_rc(fdtv, &unit->device); node_probe() 310 static void node_remove(struct fw_unit *unit) node_remove() argument 312 struct firedtv *fdtv = dev_get_drvdata(&unit->device); node_remove() 325 static void node_update(struct fw_unit *unit) node_update() argument 327 struct firedtv *fdtv = dev_get_drvdata(&unit->device); node_update()
|
/linux-4.1.27/include/media/ |
H A D | sh_mobile_csi2.h | 2 * Driver header for the SH-Mobile MIPI CSI-2 unit
|
/linux-4.1.27/arch/mn10300/include/asm/ |
H A D | timex.h | 14 #include <unit/timex.h>
|
H A D | irq.h | 29 #include <unit/irq.h>
|
H A D | serial.h | 34 #include <unit/serial.h>
|
/linux-4.1.27/arch/mn10300/unit-asb2364/include/unit/ |
H A D | clock.h | 1 /* clock.h: unit-specific clocks
|
/linux-4.1.27/drivers/media/usb/uvc/ |
H A D | uvc_driver.c | 282 * Terminal and unit management 882 struct uvc_entity *unit; uvc_parse_vendor_control() local 914 * extension unit. uvc_parse_vendor_control() 927 unit = uvc_alloc_entity(UVC_VC_EXTENSION_UNIT, buffer[3], uvc_parse_vendor_control() 929 if (unit == NULL) uvc_parse_vendor_control() 932 memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); uvc_parse_vendor_control() 933 unit->extension.bNumControls = buffer[20]; uvc_parse_vendor_control() 934 memcpy(unit->baSourceID, &buffer[22], p); uvc_parse_vendor_control() 935 unit->extension.bControlSize = buffer[22+p]; uvc_parse_vendor_control() 936 unit->extension.bmControls = (__u8 *)unit + sizeof(*unit); uvc_parse_vendor_control() 937 unit->extension.bmControlsType = (__u8 *)unit + sizeof(*unit) uvc_parse_vendor_control() 939 memcpy(unit->extension.bmControls, &buffer[23+p], 2*n); uvc_parse_vendor_control() 942 usb_string(udev, buffer[24+p+2*n], unit->name, uvc_parse_vendor_control() 943 sizeof unit->name); uvc_parse_vendor_control() 945 sprintf(unit->name, "Extension %u", buffer[3]); uvc_parse_vendor_control() 947 list_add_tail(&unit->list, &dev->entities); uvc_parse_vendor_control() 959 struct uvc_entity *unit, *term; uvc_parse_standard_control() local 1002 * could be confused with a unit. uvc_parse_standard_control() 1083 * could be confused with a unit. uvc_parse_standard_control() 1120 unit = uvc_alloc_entity(buffer[2], buffer[3], p + 1, 0); uvc_parse_standard_control() 1121 if (unit == NULL) uvc_parse_standard_control() 1124 memcpy(unit->baSourceID, &buffer[5], p); uvc_parse_standard_control() 1127 usb_string(udev, buffer[5+p], unit->name, uvc_parse_standard_control() 1128 sizeof unit->name); uvc_parse_standard_control() 1130 sprintf(unit->name, "Selector %u", buffer[3]); uvc_parse_standard_control() 1132 list_add_tail(&unit->list, &dev->entities); uvc_parse_standard_control() 1146 unit = uvc_alloc_entity(buffer[2], buffer[3], 2, n); uvc_parse_standard_control() 1147 if (unit == NULL) uvc_parse_standard_control() 1150 memcpy(unit->baSourceID, &buffer[4], 1); uvc_parse_standard_control() 1151 unit->processing.wMaxMultiplier = uvc_parse_standard_control() 1153 unit->processing.bControlSize = buffer[7]; uvc_parse_standard_control() 1154 unit->processing.bmControls = (__u8 *)unit + sizeof *unit; uvc_parse_standard_control() 1155 memcpy(unit->processing.bmControls, &buffer[8], n); uvc_parse_standard_control() 1157 unit->processing.bmVideoStandards = buffer[9+n]; uvc_parse_standard_control() 1160 usb_string(udev, buffer[8+n], unit->name, uvc_parse_standard_control() 1161 sizeof unit->name); uvc_parse_standard_control() 1163 sprintf(unit->name, "Processing %u", buffer[3]); uvc_parse_standard_control() 1165 list_add_tail(&unit->list, &dev->entities); uvc_parse_standard_control() 1179 unit = uvc_alloc_entity(buffer[2], buffer[3], p + 1, n); uvc_parse_standard_control() 1180 if (unit == NULL) uvc_parse_standard_control() 1183 memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); uvc_parse_standard_control() 1184 unit->extension.bNumControls = buffer[20]; uvc_parse_standard_control() 1185 memcpy(unit->baSourceID, &buffer[22], p); uvc_parse_standard_control() 1186 unit->extension.bControlSize = buffer[22+p]; uvc_parse_standard_control() 1187 unit->extension.bmControls = (__u8 *)unit + sizeof *unit; uvc_parse_standard_control() 1188 memcpy(unit->extension.bmControls, &buffer[23+p], n); uvc_parse_standard_control() 1191 usb_string(udev, buffer[23+p+n], unit->name, uvc_parse_standard_control() 1192 sizeof unit->name); uvc_parse_standard_control() 1194 sprintf(unit->name, "Extension %u", buffer[3]); uvc_parse_standard_control() 1196 list_add_tail(&unit->list, &dev->entities); uvc_parse_standard_control() 1282 * Extension Units connected to the main chain as single-unit branches are 1294 uvc_trace(UVC_TRACE_DESCR, "Extension unit %d has more " uvc_scan_chain_entity() 1389 uvc_trace(UVC_TRACE_DESCR, "Extension unit %d " uvc_scan_chain_forward() 1460 uvc_trace(UVC_TRACE_DESCR, "Selector unit %d " uvc_scan_chain_backward()
|
/linux-4.1.27/drivers/net/ppp/ |
H A D | ppp_mppe.c | 105 /* the unit has to change to bits */ 111 int unit; member in struct:ppp_mppe_state 273 mppe_init(void *arg, unsigned char *options, int optlen, int unit, int debug, mppe_init() argument 290 unit); mppe_init() 305 debugstr, unit, (state->keylen == 16) ? 128 : 40, mppe_init() 314 debugstr, unit, mkey, skey); mppe_init() 331 state->unit = unit; mppe_init() 338 mppe_comp_init(void *arg, unsigned char *options, int optlen, int unit, mppe_comp_init() argument 342 return mppe_init(arg, options, optlen, unit, debug, "mppe_comp_init"); mppe_comp_init() 386 "(have: %d need: %d)\n", state->unit, mppe_compress() 403 printk(KERN_DEBUG "mppe_compress[%d]: ccount %d\n", state->unit, mppe_compress() 413 state->unit); mppe_compress() 454 mppe_decomp_init(void *arg, unsigned char *options, int optlen, int unit, mppe_decomp_init() argument 458 return mppe_init(arg, options, optlen, unit, debug, "mppe_decomp_init"); mppe_decomp_init() 487 state->unit, isize); mppe_decompress() 499 "(have: %d need: %d)\n", state->unit, mppe_decompress() 508 state->unit, ccount); mppe_decompress() 514 state->unit); mppe_decompress() 520 "stateless mode!\n", state->unit); mppe_decompress() 526 "flag packet!\n", state->unit); mppe_decompress() 672 "(proto %04x)\n", state->unit, PPP_PROTOCOL(ibuf)); mppe_incomp()
|
H A D | ppp_generic.c | 75 * interface unit or a ppp channel. In both cases, file->private_data 87 int index; /* interface unit / channel number */ 88 int dead; /* unit/channel has been shut down */ 109 * Data structure describing one ppp unit. 110 * A ppp unit corresponds to a ppp network interface device 116 struct file *owner; /* file that owns this unit 48 */ 121 int mru; /* max receive unit 60 */ 140 int mrru; /* MP: max reconst. receive unit */ 174 struct ppp *ppp; /* ppp unit we're connected to */ 176 struct list_head clist; /* link in list of channels per unit */ 207 * It also ensures that finding a ppp unit in the units_idr 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); 371 * The /dev/ppp device is used by pppd to control the ppp unit. 374 * unattached, attached to a ppp unit, or attached to a ppp channel. 571 int unit, cflags; ppp_ioctl() local 618 if (get_user(unit, p)) ppp_ioctl() 620 err = ppp_connect_channel(pch, unit); ppp_ioctl() 827 int unit, err = -EFAULT; ppp_unattached_ioctl() local 836 /* Create a new ppp unit */ ppp_unattached_ioctl() 837 if (get_user(unit, p)) ppp_unattached_ioctl() 839 ppp = ppp_create_interface(net, unit, &err); ppp_unattached_ioctl() 851 /* Attach to an existing ppp unit */ ppp_unattached_ioctl() 852 if (get_user(unit, p)) ppp_unattached_ioctl() 857 ppp = ppp_find_unit(pn, unit); ppp_unattached_ioctl() 867 if (get_user(unit, p)) ppp_unattached_ioctl() 872 chan = ppp_find_channel(pn, unit); ppp_unattached_ioctl() 970 * Network interface unit routines. 1617 /* see if there is anything from the attached unit to be sent */ ppp_channel_push() 1710 * The receive side of the ppp unit is locked. 2004 * side of the ppp unit locked. ppp_receive_mp_frame() 2054 ppp unit receive-side lock. */ skb_queue_walk() 2280 * Return the PPP unit number to which a channel is connected. 2285 int unit = -1; ppp_unit_number() local 2290 unit = pch->ppp->file.index; ppp_unit_number() 2293 return unit; ppp_unit_number() 2664 * Create a new ppp interface unit. Fails if it can't allocate memory 2665 * or if there is already a unit with the requested number. 2666 * unit == -1 means allocate a new number. 2669 ppp_create_interface(struct net *net, int unit, int *retp) ppp_create_interface() argument 2711 if (unit < 0) { ppp_create_interface() 2712 unit = unit_get(&pn->units_idr, ppp); ppp_create_interface() 2713 if (unit < 0) { ppp_create_interface() 2714 ret = unit; ppp_create_interface() 2719 if (unit_find(&pn->units_idr, unit)) ppp_create_interface() 2720 goto out2; /* unit already exists */ ppp_create_interface() 2722 * if caller need a specified unit number ppp_create_interface() 2724 * he should better ask us for new unit number ppp_create_interface() 2728 * new unit in this case so user is happy :) ppp_create_interface() 2730 unit = unit_set(&pn->units_idr, ppp, unit); ppp_create_interface() 2731 if (unit < 0) ppp_create_interface() 2735 /* Initialize the new ppp unit */ ppp_create_interface() 2736 ppp->file.index = unit; ppp_create_interface() 2737 sprintf(dev->name, "ppp%d", unit); ppp_create_interface() 2741 unit_put(&pn->units_idr, unit); ppp_create_interface() 2777 * Take down a ppp interface unit - called when the owning file 2778 * (the one that created the unit) is closed or detached. 2805 * Free the memory used by a ppp unit. This is only called once 2806 * there are no channels connected to the unit and no file structs 2807 * that reference the unit. 2849 * Locate an existing ppp unit. 2853 ppp_find_unit(struct ppp_net *pn, int unit) ppp_find_unit() argument 2855 return unit_find(&pn->units_idr, unit); ppp_find_unit() 2867 ppp_find_channel(struct ppp_net *pn, int unit) ppp_find_channel() argument 2872 if (pch->file.index == unit) { ppp_find_channel() 2879 if (pch->file.index == unit) ppp_find_channel() 2887 * Connect a PPP channel to a PPP interface unit. 2890 ppp_connect_channel(struct channel *pch, int unit) ppp_connect_channel() argument 2900 ppp = ppp_find_unit(pn, unit); ppp_connect_channel() 2929 * Disconnect a channel from its ppp unit. 2942 /* remove it from the ppp unit's list */ ppp_disconnect_channel() 2991 int unit; unit_set() local 2993 unit = idr_alloc(p, ptr, n, n + 1, GFP_KERNEL); unit_set() 2994 if (unit == -ENOSPC) unit_set() 2995 unit = -EINVAL; unit_set() 2996 return unit; unit_set() 2999 /* get new free unit number and associate pointer with it */ unit_get() 3005 /* put unit number back to a pool */ unit_put()
|
H A D | ppp_deflate.c | 30 int unit; member in struct:ppp_deflate_state 45 int unit, int hdrlen, int debug); 48 int unit, int hdrlen, int mru, int debug); 131 * @unit: PPP unit number for diagnostic messages 141 int unit, int hdrlen, int debug) z_comp_init() 154 state->unit = unit; z_comp_init() 345 * @unit: PPP unit number for diagnostic messages 356 int unit, int hdrlen, int mru, int debug) z_decomp_init() 369 state->unit = unit; z_decomp_init() 425 state->unit, isize); z_decompress() 434 state->unit, seq, state->seqno & 0xffff); z_decompress() 467 state->unit, r, (state->strm.msg? state->strm.msg: "")); z_decompress() 493 state->unit); z_decompress() 501 state->unit); z_decompress() 550 state->unit, r, (state->strm.msg? state->strm.msg: "")); z_incomp() 140 z_comp_init(void *arg, unsigned char *options, int opt_len, int unit, int hdrlen, int debug) z_comp_init() argument 355 z_decomp_init(void *arg, unsigned char *options, int opt_len, int unit, int hdrlen, int mru, int debug) z_decomp_init() argument
|
H A D | bsd_comp.c | 143 unsigned char unit; /* ppp unit number */ member in struct:bsd_db 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) bsd_init() 494 db->unit = unit; bsd_init() 507 int opt_len, int unit, int opthdr, int debug) bsd_comp_init() 509 return bsd_init (state, options, opt_len, unit, debug, 0); bsd_comp_init() 513 int opt_len, int unit, int opthdr, int mru, bsd_decomp_init() 516 return bsd_init (state, options, opt_len, unit, debug, 1); bsd_decomp_init() 880 db->unit, seq, db->seqno - 1); bsd_decompress() 941 printk("bsd_decomp%d: bad CLEAR\n", db->unit); bsd_decompress() 956 db->unit, incode, oldcode); bsd_decompress() 981 printk("bsd_decomp%d: ran out of mru\n", db->unit); bsd_decompress() 1006 printk("bsd_decomp%d: fell off end of chain ", db->unit); bsd_decompress() 1016 db->unit, incode, finchar); bsd_decompress() 1034 db->unit, codelen, incode, max_ent); bsd_decompress() 1122 db->unit, db->seqno - 1); bsd_decompress() 463 bsd_init(void *state, unsigned char *options, int opt_len, int unit, int debug, int decomp) bsd_init() argument 506 bsd_comp_init(void *state, unsigned char *options, int opt_len, int unit, int opthdr, int debug) bsd_comp_init() argument 512 bsd_decomp_init(void *state, unsigned char *options, int opt_len, int unit, int opthdr, int mru, int debug) bsd_decomp_init() argument
|
/linux-4.1.27/drivers/staging/fwserial/ |
H A D | fwserial.c | 204 fwtty_err_ratelimited(port, "bad unit addr or write length\n"); fwtty_log_tx_error() 1466 seq_printf(m, " %s:", dev_name(&peer->unit->device)); fwtty_debugfs_show_peer() 1707 fwtty_info(&peer->unit, "peer (guid:%016llx) connected on %s\n", fwserial_virt_plug_complete() 1729 fwtty_dbg(&peer->unit, "mgmt write error: %d\n", rcode); fwserial_send_mgmt_sync() 1851 fwtty_err(&peer->unit, "avail ports in use\n"); fwserial_connect_peer() 1902 * Only used by the unit driver upon unit removal to disconnect and 1969 * b) the remote node has created its remote unit device before this 1970 * local node has created its corresponding remote unit device 1986 * has created its remote unit device before this driver has __fwserial_peer_by_node_id() 1987 * been probed for any unit devices... __fwserial_peer_by_node_id() 2045 * fwserial_add_peer - add a newly probed 'serial' unit device as a 'peer' 2047 * @unit: 'peer' to create and add to peer_list of serial 2049 * Adds a 'peer' (ie, a local or remote 'serial' unit device) to the list of 2052 * as a result of a 'serial' unit device being created & probed. 2060 static int fwserial_add_peer(struct fw_serial *serial, struct fw_unit *unit) fwserial_add_peer() argument 2062 struct device *dev = &unit->device; fwserial_add_peer() 2063 struct fw_device *parent = fw_parent_device(unit); fwserial_add_peer() 2076 peer->unit = unit; fwserial_add_peer() 2088 /* retrieve the mgmt bus addr from the unit directory */ fwserial_add_peer() 2089 fw_csr_iterator_init(&ci, unit->directory); fwserial_add_peer() 2115 fwtty_info(&peer->unit, "peer added (guid:%016llx)\n", fwserial_add_peer() 2118 /* identify the local unit & virt cable to loopback port */ fwserial_add_peer() 2147 * fwserial_remove_peer - remove a 'serial' unit device as a 'peer' 2150 * called by fwserial_remove() on bus removal of the unit device. 2167 /* if this unit is the local unit, clear link */ fwserial_remove_peer() 2179 fwtty_info(&peer->unit, "peer removed (guid:%016llx)\n", fwserial_remove_peer() 2193 * @unit: fw_unit for first 'serial' unit device probed for this fw_card 2197 * unit device is added as the first 'peer'. 2199 * This unit device may represent a local unit device (as specified by the 2200 * config ROM unit directory) or it may represent a remote unit device 2203 * Returns 0 to indicate "ownership" of the unit device, or a negative errno 2206 static int fwserial_create(struct fw_unit *unit) fwserial_create() argument 2208 struct fw_device *parent = fw_parent_device(unit); fwserial_create() 2266 fwtty_err(&unit, "no space in port table\n"); fwserial_create() 2277 fwtty_err(&unit, "register tty device error (%d)\n", fwserial_create() 2295 fwtty_err(&unit, "create loop device failed (%d)\n", fwserial_create() 2304 serial->debugfs = debugfs_create_dir(dev_name(&unit->device), fwserial_create() 2316 fwtty_notice(&unit, "TTY over FireWire on device %s (guid %016llx)\n", fwserial_create() 2319 err = fwserial_add_peer(serial, unit); fwserial_create() 2323 fwtty_err(&unit, "unable to add peer unit device (%d)\n", err); fwserial_create() 2348 * fwserial_probe: bus probe function for firewire 'serial' unit devices 2350 * A 'serial' unit device is created and probed as a result of: 2352 * 'serial' unit specifier id 2353 * - adding a unit directory to the config ROM(s) for a 'serial' unit 2355 * The firewire core registers unit devices by enumerating unit directories 2361 * unit directory in their config ROM (that matches the specifiers in 2363 * - no specific order is enforced for local vs. remote unit devices 2365 * This unit driver copes with the lack of specific order in the same way the 2366 * firewire net driver does -- each probe, for either a local or remote unit 2371 * NB: an early attempt to differentiate local & remote unit devices by creating 2383 static int fwserial_probe(struct fw_unit *unit, fwserial_probe() argument 2390 serial = fwserial_lookup(fw_parent_device(unit)->card); fwserial_probe() 2392 err = fwserial_create(unit); fwserial_probe() 2394 err = fwserial_add_peer(serial, unit); fwserial_probe() 2400 * fwserial_remove: bus removal function for firewire 'serial' unit devices 2402 * The corresponding 'peer' for this unit device is removed from the list of 2407 static void fwserial_remove(struct fw_unit *unit) fwserial_remove() argument 2409 struct fwtty_peer *peer = dev_get_drvdata(&unit->device); fwserial_remove() 2432 * fwserial_update: bus update function for 'firewire' serial unit devices 2445 static void fwserial_update(struct fw_unit *unit) fwserial_update() argument 2447 struct fw_device *parent = fw_parent_device(unit); fwserial_update() 2448 struct fwtty_peer *peer = dev_get_drvdata(&unit->device); fwserial_update() 2522 * The management address is in the unit space region but above other known 2564 fwtty_err(&peer->unit, "no more ports avail\n"); fwserial_handle_plug_req() 2606 fwtty_err(&peer->unit, "PLUG_RSP error (%d)\n", rcode); fwserial_handle_plug_req() 2657 fwtty_err(&peer->unit, "UNPLUG_RSP error (%d)\n", fwserial_handle_unplug_req() 2688 * remote unit that just wrote this transaction was fwserial_parse_mgmt_write() 2692 fwtty_err(&peer->unit, "peer already removed\n"); fwserial_parse_mgmt_write() 2699 fwtty_dbg(&peer->unit, "mgmt: hdr.code: %04hx\n", pkt->hdr.code); fwserial_parse_mgmt_write() 2704 fwtty_err(&peer->unit, "plug req: busy\n"); fwserial_parse_mgmt_write() 2719 fwtty_notice(&peer->unit, "NACK plug rsp\n"); fwserial_parse_mgmt_write() 2735 fwtty_err(&peer->unit, "unplug req: busy\n"); fwserial_parse_mgmt_write() 2748 fwtty_notice(&peer->unit, "NACK unplug?\n"); fwserial_parse_mgmt_write() 2755 fwtty_err(&peer->unit, "unknown mgmt code %d\n", fwserial_parse_mgmt_write() 2881 * the local unit device(s) are created, a single management handler fwserial_init() 2898 pr_err("add unit descriptor failed (%d)\n", err); fwserial_init()
|
H A D | fwserial.h | 51 * fwtty_peer: structure representing local & remote unit devices 52 * @unit: unit child device of fw_device node 54 * @guid: unique 64-bit guid for this unit device 76 struct fw_unit *unit; member in struct:fwtty_peer 317 * @self: local unit device as 'peer'. Not valid until local unit device 320 * @peer_list: list of local & remote unit devices attached to this card 356 * Returns the max send async payload size in bytes based on the unit device
|
/linux-4.1.27/drivers/firewire/ |
H A D | core-device.c | 111 * @directory: e.g. root directory or unit directory 149 static void get_modalias_ids(struct fw_unit *unit, int *id) get_modalias_ids() argument 151 get_ids(&fw_parent_device(unit)->config_rom[5], id); get_modalias_ids() 152 get_ids(unit->directory, id); get_modalias_ids() 211 static int get_modalias(struct fw_unit *unit, char *buffer, size_t buffer_size) get_modalias() argument 215 get_modalias_ids(unit, id); get_modalias() 224 struct fw_unit *unit = fw_unit(dev); fw_unit_uevent() local 227 get_modalias(unit, modalias, sizeof(modalias)); fw_unit_uevent() 373 struct fw_unit *unit = fw_unit(dev); modalias_show() local 376 length = get_modalias(unit, buf, PAGE_SIZE); modalias_show() 386 struct fw_unit *unit = fw_unit(dev); rom_index_show() local 389 (int)(unit->directory - device->config_rom)); rom_index_show() 686 struct fw_unit *unit = fw_unit(dev); fw_unit_release() local 688 fw_device_put(fw_parent_device(unit)); fw_unit_release() 689 kfree(unit); fw_unit_release() 705 struct fw_unit *unit; create_units() local 715 * Get the address of the unit directory and try to create_units() 718 unit = kzalloc(sizeof(*unit), GFP_KERNEL); create_units() 719 if (unit == NULL) create_units() 722 unit->directory = ci.p + value - 1; create_units() 723 unit->device.bus = &fw_bus_type; create_units() 724 unit->device.type = &fw_unit_type; create_units() 725 unit->device.parent = &device->device; create_units() 726 dev_set_name(&unit->device, "%s.%d", dev_name(&device->device), i++); create_units() 728 BUILD_BUG_ON(ARRAY_SIZE(unit->attribute_group.attrs) < create_units() 731 init_fw_attribute_group(&unit->device, create_units() 733 &unit->attribute_group); create_units() 735 if (device_register(&unit->device) < 0) create_units() 742 kfree(unit); create_units() 863 struct fw_unit *unit = fw_unit(dev); update_unit() local 868 driver->update(unit); update_unit()
|
H A D | sbp2.c | 122 ", set power condition in start stop unit = " 143 * to the logical unit. Thus, I/O to the device will automatically 165 struct fw_unit *unit; member in struct:sbp2_target 178 int dont_block; /* counter for each logical unit */ 184 return fw_parent_device(tgt->unit); target_parent_device() 189 return &tgt->unit->device; tgt_dev() 194 return &lu->tgt->unit->device; lu_dev() 332 #define SBP2_ROM_VALUE_MISSING 0xff000000 /* not present in the unit dir. */ 1133 static void sbp2_remove(struct fw_unit *unit); 1135 static int sbp2_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) sbp2_probe() argument 1137 struct fw_device *device = fw_parent_device(unit); sbp2_probe() 1156 dev_set_drvdata(&unit->device, tgt); sbp2_probe() 1157 tgt->unit = unit; sbp2_probe() 1167 if (scsi_add_host_with_dma(shost, &unit->device, sbp2_probe() 1172 tgt->directory_id = ((unit->directory - device->config_rom) * 4 sbp2_probe() 1178 if (sbp2_scan_unit_dir(tgt, unit->directory, &model, sbp2_probe() 1201 sbp2_remove(unit); sbp2_probe() 1209 static void sbp2_update(struct fw_unit *unit) sbp2_update() argument 1211 struct sbp2_target *tgt = dev_get_drvdata(&unit->device); sbp2_update() 1214 fw_device_enable_phys_dma(fw_parent_device(unit)); sbp2_update() 1227 static void sbp2_remove(struct fw_unit *unit) sbp2_remove() argument 1229 struct fw_device *device = fw_parent_device(unit); sbp2_remove() 1230 struct sbp2_target *tgt = dev_get_drvdata(&unit->device); sbp2_remove() 1265 dev_notice(&unit->device, "released target %d:0:0\n", shost->host_no); sbp2_remove() 1577 * This is the concatenation of target port identifier and logical unit
|
/linux-4.1.27/net/ceph/ |
H A D | ceph_fs.c | 16 /* stripe unit, object size must be non-zero, 64k increment */ ceph_file_layout_is_valid() 21 /* object size must be a multiple of stripe unit */ ceph_file_layout_is_valid()
|
/linux-4.1.27/arch/mips/bcm63xx/ |
H A D | dev-enet.c | 202 int __init bcm63xx_enet_register(int unit, bcm63xx_enet_register() argument 209 if (unit > 1) bcm63xx_enet_register() 212 if (unit == 1 && (BCMCPU_IS_6338() || BCMCPU_IS_6345())) bcm63xx_enet_register() 219 if (unit == 0) { bcm63xx_enet_register() 245 if (unit == 1) bcm63xx_enet_register()
|
/linux-4.1.27/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_kms.h | 75 * Base class display unit. 78 * so the display unit is all of them at the same time. This is true for both 96 unsigned unit; member in struct:vmw_display_unit 121 * Shared display unit functions - vmwgfx_kms.c 149 * Legacy display unit functions - vmwgfx_ldu.c
|
H A D | vmwgfx_ldu.c | 49 * Display unit using the legacy register interface. 197 if (entry->base.unit > ldu->base.unit) vmw_ldu_add_active() 340 static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit) vmw_ldu_init() argument 352 ldu->base.unit = unit; vmw_ldu_init() 359 ldu->base.pref_active = (unit == 0); vmw_ldu_init() 372 encoder->possible_crtcs = (1 << unit); vmw_ldu_init()
|
H A D | vmwgfx_kms.c | 527 /* do per unit writing, reuse fifo for each */ do_surface_dirty_sou() 529 struct vmw_display_unit *unit = units[i]; do_surface_dirty_sou() local 533 clip.x1 = left - unit->crtc.x; do_surface_dirty_sou() 534 clip.y1 = top - unit->crtc.y; do_surface_dirty_sou() 535 clip.x2 = right - unit->crtc.x; do_surface_dirty_sou() 536 clip.y2 = bottom - unit->crtc.y; do_surface_dirty_sou() 539 if (clip.x1 >= unit->crtc.mode.hdisplay || do_surface_dirty_sou() 540 clip.y1 >= unit->crtc.mode.vdisplay || do_surface_dirty_sou() 554 clip.x2 = unit->crtc.mode.hdisplay - clip.x1; do_surface_dirty_sou() 555 clip.y2 = unit->crtc.mode.vdisplay - clip.y1; do_surface_dirty_sou() 561 cmd->body.destScreenId = unit->unit; do_surface_dirty_sou() 891 struct vmw_display_unit *unit = units[k]; do_dmabuf_dirty_sou() local 896 int clip_x1 = clips_ptr->x1 - unit->crtc.x; do_dmabuf_dirty_sou() 897 int clip_y1 = clips_ptr->y1 - unit->crtc.y; do_dmabuf_dirty_sou() 898 int clip_x2 = clips_ptr->x2 - unit->crtc.x; do_dmabuf_dirty_sou() 899 int clip_y2 = clips_ptr->y2 - unit->crtc.y; do_dmabuf_dirty_sou() 903 if (clip_x1 >= unit->crtc.mode.hdisplay || do_dmabuf_dirty_sou() 904 clip_y1 >= unit->crtc.mode.vdisplay || do_dmabuf_dirty_sou() 909 clip_x2 = min_t(int, clip_x2, unit->crtc.mode.hdisplay); do_dmabuf_dirty_sou() 910 clip_y2 = min_t(int, clip_y2, unit->crtc.mode.vdisplay); do_dmabuf_dirty_sou() 918 blits[hit_num].body.destScreenId = unit->unit; do_dmabuf_dirty_sou() 1299 struct vmw_display_unit *unit = units[k]; vmw_kms_present() local 1303 clip.x1 = left + destX - unit->crtc.x; vmw_kms_present() 1304 clip.y1 = top + destY - unit->crtc.y; vmw_kms_present() 1305 clip.x2 = right + destX - unit->crtc.x; vmw_kms_present() 1306 clip.y2 = bottom + destY - unit->crtc.y; vmw_kms_present() 1309 if (clip.x1 >= unit->crtc.mode.hdisplay || vmw_kms_present() 1310 clip.y1 >= unit->crtc.mode.vdisplay || vmw_kms_present() 1324 clip.x2 = unit->crtc.mode.hdisplay - clip.x1; vmw_kms_present() 1325 clip.y2 = unit->crtc.mode.vdisplay - clip.y1; vmw_kms_present() 1331 cmd->body.destScreenId = unit->unit; vmw_kms_present() 1442 blits[blits_pos].body.srcScreenId = units[i]->unit; vmw_kms_readback() 1699 if (num > du->unit) { vmw_du_update_layout() 1700 du->pref_width = rects[du->unit].w; vmw_du_update_layout() 1701 du->pref_height = rects[du->unit].h; vmw_du_update_layout() 1703 du->gui_x = rects[du->unit].x; vmw_du_update_layout() 1704 du->gui_y = rects[du->unit].y; vmw_du_update_layout() 1833 return ((vmw_connector_to_du(connector)->unit < num_displays && vmw_du_connector_detect()
|
H A D | vmwgfx_scrn.c | 46 * Display unit using screen objects. 131 cmd->obj.id = sou->base.unit; vmw_sou_fifo_create() 133 (sou->base.unit == 0 ? SVGA_SCREEN_IS_PRIMARY : 0); vmw_sou_fifo_create() 185 cmd->body.screenId = sou->base.unit; vmw_sou_fifo_destroy() 436 static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit) vmw_sou_init() argument 448 sou->base.unit = unit; vmw_sou_init() 455 sou->base.pref_active = (unit == 0); vmw_sou_init() 468 encoder->possible_crtcs = (1 << unit); vmw_sou_init() 547 * Returns if this unit can be page flipped.
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | sun4d_irq.c | 338 bus_connection = "io-unit"; sun4d_build_device_irq() 343 bus_connection = "cpu-unit"; sun4d_build_device_irq() 359 * If Bus nodes parent is not io-unit/cpu-unit or the io-unit/cpu-unit sun4d_build_device_irq() 426 dp = of_find_node_by_name(NULL, "cpu-unit"); sun4d_init_timers() 428 prom_printf("sun4d_init_timers: Unable to find cpu-unit\n"); sun4d_init_timers() 432 /* Which cpu-unit we use is arbitrary, we can view the bootbus timer sun4d_init_timers() 444 prom_printf("sun4d_init_timers: No board# property on cpu-unit\n"); sun4d_init_timers()
|
/linux-4.1.27/drivers/mtd/maps/ |
H A D | vmu-flash.c | 135 mdev->unit); maple_vmu_read_block() 154 " is busy\n", mdev->port, mdev->unit); maple_vmu_read_block() 199 mdev->port, mdev->unit, num); maple_vmu_read_block() 203 mdev->port, mdev->unit, num); maple_vmu_read_block() 261 mdev->port, mdev->unit); maple_vmu_write_block() 283 mdev->unit, num, x); maple_vmu_write_block() 299 mdev->unit); maple_vmu_write_block() 532 mdev->port, mdev->unit, card->partition); vmu_queryblocks() 580 "error is 0x%X\n", mdev->port, mdev->unit, error); vmu_queryblocks() 662 mdev->port, mdev->unit); vmu_connect() 678 " error is 0x%X\n", mdev->port, mdev->unit, error); vmu_connect() 740 mdev->port, mdev->unit); vmu_file_error() 745 mdev->port, mdev->unit); vmu_file_error() 750 mdev->port, mdev->unit); vmu_file_error() 755 mdev->port, mdev->unit); vmu_file_error() 760 mdev->port, mdev->unit); vmu_file_error() 765 mdev->port, mdev->unit); vmu_file_error() 770 mdev->port, mdev->unit, error); vmu_file_error()
|
/linux-4.1.27/drivers/crypto/ccp/ |
H A D | ccp-crypto-aes-xts.c | 124 unsigned int unit; ccp_aes_xts_crypt() local 139 for (unit = 0; unit < ARRAY_SIZE(unit_size_map); unit++) { ccp_aes_xts_crypt() 140 if (!(req->nbytes & (unit_size_map[unit].size - 1))) { ccp_aes_xts_crypt() 141 unit_size = unit_size_map[unit].value; ccp_aes_xts_crypt() 150 * unsupported unit sizes or key sizes ccp_aes_xts_crypt()
|
/linux-4.1.27/drivers/char/ |
H A D | pc8736x_gpio.c | 51 #define SIO_UNIT_SEL 0x7 /* unit select reg */ 52 #define SIO_UNIT_ACT 0x30 /* unit enable */ 53 #define SIO_GPIO_UNIT 0x7 /* unit number of GPIO */ 57 /* config-space addrs to read/write each unit's runtime addr */ 277 /* Verify that chip and it's GPIO unit are both enabled. pc8736x_gpio_init() 289 dev_err(&pdev->dev, "GPIO unit not enabled\n"); pc8736x_gpio_init() 293 /* read the GPIO unit base addr that chip responds to */ pc8736x_gpio_init()
|
/linux-4.1.27/drivers/staging/gdm724x/ |
H A D | netlink_k.h | 20 struct sock *netlink_init(int unit,
|
H A D | netlink_k.c | 90 struct sock *netlink_init(int unit, netlink_init() argument 102 sock = netlink_kernel_create(&init_net, unit, &cfg); netlink_init()
|
/linux-4.1.27/drivers/staging/gdm72xx/ |
H A D | netlink_k.h | 20 struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type,
|
H A D | netlink_k.c | 91 struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type, netlink_init() argument 103 sock = netlink_kernel_create(&init_net, unit, &cfg); netlink_init()
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
H A D | centaur.c | 27 /* enable ACE unit, if present and disabled */ init_c3() 30 lo |= ACE_FCR; /* enable ACE unit */ init_c3() 35 /* enable RNG unit, if present and disabled */ init_c3() 38 lo |= RNG_ENABLE; /* enable RNG unit */ init_c3()
|
H A D | perf_event_intel_rapl.c | 12 * Each of those counters increments in a power unit defined by the 13 * RAPL_POWER_UNIT MSR. On SandyBridge, this unit is 1/(2^16) Joules 126 ktime_t timer_interval; /* in ktime_t unit */ 162 * scale delta to smallest unit (1/2^32) rapl_scale() 429 RAPL_EVENT_ATTR_STR(energy-cores.unit, rapl_cores_unit, "Joules"); 430 RAPL_EVENT_ATTR_STR(energy-pkg.unit , rapl_pkg_unit, "Joules"); 431 RAPL_EVENT_ATTR_STR(energy-ram.unit , rapl_ram_unit, "Joules"); 432 RAPL_EVENT_ATTR_STR(energy-gpu.unit , rapl_gpu_unit, "Joules"); 574 * DRAM domain on HSW server has fixed energy unit which can be rapl_hsw_server_quirk() 575 * different than the unit from power unit MSR. rapl_hsw_server_quirk() 608 * if hw unit is 32, then we use 2 ms 1/200/2 rapl_cpu_prepare() 767 " API unit is 2^-32 Joules," 774 pr_info("hw unit of domain %s 2^-%d Joules\n",
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | i8254.h | 28 s64 period; /* unit: ns */
|
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
H A D | bus.h | 7 u32 unit; member in struct:nvkm_bus_intr
|
/linux-4.1.27/drivers/usb/core/ |
H A D | endpoint.c | 86 char unit; interval_show() local 118 unit = 'u'; interval_show() 120 unit = 'm'; interval_show() 124 return sprintf(buf, "%d%cs\n", interval, unit); interval_show()
|
/linux-4.1.27/arch/s390/mm/ |
H A D | dump_pagetables.c | 61 const char *unit = units; note_page() local 86 while (!(delta & 0x3ff) && unit[1]) { note_page() 88 unit++; note_page() 90 seq_printf(m, "%9lu%c ", delta, *unit); note_page()
|
/linux-4.1.27/drivers/staging/android/uapi/ |
H A D | ion_test.h | 53 * used by unit tests to emulate a DMA engine as close as possible. Only 63 * used by unit tests to test heap map_kernel functions. Only expected to be
|
/linux-4.1.27/drivers/staging/rtl8188eu/include/ |
H A D | rtl8188e_cmd.h | 70 u8 AwakeInterval; /* unit: beacon interval */ 77 u16 gpio_period; /* unit: 1024 us */
|
/linux-4.1.27/drivers/cpufreq/ |
H A D | ppc_cbe_cpufreq_pervasive.c | 4 * This driver makes use of the pervasive unit to 97 "pervasive unit\n", time); cbe_cpufreq_set_pmode()
|
/linux-4.1.27/arch/mips/include/asm/mach-lantiq/xway/ |
H A D | lantiq_soc.h | 69 /* EBU - external bus unit */ 81 /* MPS - multi processor unit (voice) */
|
/linux-4.1.27/drivers/video/fbdev/omap/ |
H A D | lcd_osk.c | 48 /* Enable PWL unit */ osk_panel_enable() 65 /* Disable PWL unit */ osk_panel_disable()
|
/linux-4.1.27/arch/mips/alchemy/common/ |
H A D | platform.c | 160 int unit; alchemy_ohci_power_on() local 162 unit = (pdev->id == 1) ? alchemy_ohci_power_on() 165 return alchemy_usb_control(unit, 1); alchemy_ohci_power_on() 171 int unit; alchemy_ohci_power_off() local 173 unit = (pdev->id == 1) ? alchemy_ohci_power_off() 176 alchemy_usb_control(unit, 0); alchemy_ohci_power_off()
|
/linux-4.1.27/tools/power/cpupower/utils/ |
H A D | cpufreq-set.c | 65 const struct freq_units *unit; string_to_frequency() local 83 for (unit = def_units; unit->str_unit; unit++) { string_to_frequency() 85 scan[i] && tolower(scan[i]) == unit->str_unit[i]; string_to_frequency() 91 power = unit->power_of_ten; string_to_frequency()
|
/linux-4.1.27/arch/powerpc/sysdev/ |
H A D | fsl_rmu.c | 513 * @mport: Master port implementing the port write unit 534 * @mport: Master port implementing the port write unit 536 * Initializes port write unit hardware and DMA buffer 702 * @mport: Master port implementing the outbound message unit 708 * and enables the outbound message unit. Returns %0 on success and 775 * Configure outbound message unit fsl_open_outb_mbox() 788 /* Now enable the unit */ fsl_open_outb_mbox() 810 * @mport: Master port implementing the outbound message unit 813 * Disables the outbound message unit, free all buffers, and 821 /* Disable inbound message unit */ fsl_close_outb_mbox() 835 * @mport: Master port implementing the inbound message unit 841 * and enables the inbound message unit. Returns %0 on success 891 * Configure inbound message unit: fsl_open_inb_mbox() 902 /* Now enable the unit */ fsl_open_inb_mbox() 911 * @mport: Master port implementing the inbound message unit 914 * Disables the inbound message unit, free all buffers, and 922 /* Disable inbound message unit */ fsl_close_inb_mbox() 935 * @mport: Master port implementing the inbound message unit 967 * fsl_get_inb_message - Fetch inbound message from the MPC85xx message unit 968 * @mport: Master port implementing the inbound message unit 1014 * @mport: Master port implementing the inbound doorbell unit 1016 * Initializes doorbell unit hardware and inbound DMA buffer 1085 pr_err("%s: unable to find 'reg' property of message-unit\n", fsl_rio_setup_rmu()
|
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/ |
H A D | atl2.h | 129 #define REG_TXS_MEM_SIZE 0x1550 /* double word unit, max 4*2047 132 * Status Memory low 32-bit(unit 8 135 * number (unit 1536bytes, max 144 * threshold(unit word) */ 158 #define REG_MB_RXD_RD_IDX 0x15F4 /* RXD Read index (unit: 1536byets) */ 390 * control in half-duplex mode. In unit of 400 * bytes for mac retry . (8*4bytes unit) */ 483 u32 txd_ring_size; /* bytes per unit */ 484 u32 txs_ring_size; /* dwords per unit */ 485 u32 rxd_ring_size; /* 1536 bytes per unit */
|
/linux-4.1.27/drivers/watchdog/ |
H A D | smsc37b787_wdt.c | 80 static int unit = UNIT_SECOND; /* timer's unit */ variable 240 if (unit == UNIT_SECOND) wb_smsc_wdt_initialize() 367 timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)"); wb_smsc_wdt_open() 475 if (unit == UNIT_MINUTE) wb_smsc_wdt_ioctl() 484 if (unit == UNIT_MINUTE) wb_smsc_wdt_ioctl() 565 timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)"); wb_smsc_wdt_init() 607 module_param(unit, int, 0); 608 MODULE_PARM_DESC(unit, 609 "set unit to use, 0=seconds or 1=minutes, default is 0");
|
/linux-4.1.27/sound/usb/ |
H A D | mixer.c | 128 /* get the mapped name if the unit matches */ 179 * find an audio control unit with the given unit id 182 unsigned char unit) find_audio_control_unit() 192 hdr->bUnitID == unit) find_audio_control_unit() 560 * used for mixer unit parser 699 * parse the source unit recursively until it reaches to a terminal 700 * or a branched unit. 768 /* UAC2/UAC1 unit IDs overlap here in an check_input_term() 769 * uncompatible way. Ignore this unit for now. check_input_term() 802 /* feature unit control information */ 1030 /* USB descriptions contain the dB scale in 1/256 dB unit get_min_max_with_quirks() 1031 * while ALSA TLV contains in 1/100 dB unit get_min_max_with_quirks() 1052 /* get a feature/mixer unit info */ mixer_ctl_feature_info() 1087 /* get the current value from feature/mixer unit */ mixer_ctl_feature_get() 1119 /* put the current value to feature/mixer unit */ mixer_ctl_feature_put() 1177 * hook up to the standard feature unit control mechanism 1376 * parse a feature unit 1394 "unit %u: invalid bControlSize == 0\n", parse_audio_feature_unit() 1402 "unit %u: invalid UAC_FEATURE_UNIT descriptor\n", parse_audio_feature_unit() 1413 "unit %u: invalid UAC_FEATURE_UNIT descriptor\n", parse_audio_feature_unit() 1419 /* parse the source unit */ parse_audio_feature_unit() 1522 * build a mixer unit control 1524 * the callbacks are identical with feature unit. 1583 * parse a mixer unit 1638 /* get callback for processing/extension unit */ mixer_ctl_procunit_get() 1655 /* put callback for processing/extension unit */ mixer_ctl_procunit_put() 1674 /* alsa control interface for processing/extension unit */ 1775 * build a processing/extension unit 1900 * Note that we parse extension units with processing unit descriptors. parse_audio_extension_unit() 1912 * info callback for selector unit 1926 /* get callback for selector unit */ mixer_ctl_selector_get() 1943 /* put callback for selector unit */ mixer_ctl_selector_put() 1962 /* alsa control interface for selector unit */ 1995 * parse a selector unit 2105 * parse an audio unit recursively 2113 return 0; /* the unit already visited */ parse_audio_unit() 2117 usb_audio_err(state->chip, "unit %d not found!\n", unitid); parse_audio_unit() 2148 "unit %u: unexpected type 0x%02x\n", unitid, p1[2]); parse_audio_unit() 181 find_audio_control_unit(struct mixer_build *state, unsigned char unit) find_audio_control_unit() argument
|
/linux-4.1.27/drivers/mtd/devices/ |
H A D | slram.c | 217 static unsigned long handle_unit(unsigned long value, char *unit) handle_unit() argument 219 if ((*unit == 'M') || (*unit == 'm')) { handle_unit() 221 } else if ((*unit == 'K') || (*unit == 'k')) { handle_unit()
|
/linux-4.1.27/drivers/net/ethernet/i825xx/ |
H A D | ether1.h | 181 #define SCB_STRXMASK (7 << 4) /* Receive unit status */ 186 #define SCB_STCUMASK (7 << 8) /* Command unit status */ 190 #define SCB_STRNR (1 << 12) /* Receive unit not ready */ 191 #define SCB_STCNA (1 << 13) /* Command unit not ready */ 207 unsigned short scb_cbl_offset; /* Offset of first command unit */
|
/linux-4.1.27/drivers/net/wan/ |
H A D | sealevel.c | 84 int unit = slvl->channel; sealevel_open() local 90 switch (unit) { sealevel_open() 104 switch (unit) { sealevel_open() 127 int unit = slvl->channel; sealevel_close() local 138 switch (unit) { sealevel_close()
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
H A D | hvcserver.c | 123 * The first long of this buffer is used to store a partner unit address. The 208 * @unit_address: The unit address of the vty-server adapter that is to be 211 * @p_unit_address: The unit address of the vty adapter to which the vty-server 216 * target unit address at which point the caller must invoke 238 * @unit_address: The unit address of the vty-server that is to have its
|
/linux-4.1.27/arch/m68k/emu/ |
H A D | nfeth.c | 191 static struct net_device * __init nfeth_probe(int unit) nfeth_probe() argument 198 if (!nf_call(nfEtherID + XIF_GET_MAC, unit, virt_to_phys(mac), nfeth_probe() 212 priv->ethX = unit; nfeth_probe() 220 nf_call(nfEtherID + XIF_GET_IPHOST, unit, nfeth_probe() 222 nf_call(nfEtherID + XIF_GET_IPATARI, unit, nfeth_probe()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | main.c | 42 /* watchdog timer, in unit of ms */ 44 /* radio monitor timer, in unit of ms */ 47 /* beacon interval, in unit of 1024TU */ 462 static struct brcms_bss_cfg *brcms_c_bsscfg_malloc(uint unit) brcms_c_bsscfg_malloc() argument 482 brcms_c_attach_malloc(uint unit, uint *err, uint devid) brcms_c_attach_malloc() argument 536 wlc->bsscfg = brcms_c_bsscfg_malloc(unit); brcms_c_attach_malloc() 612 * time in usec unit 622 wlc->pub->unit); brcms_c_calc_frame_time() 688 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); brcms_c_write_inits() 729 __func__, wlc_hw->unit, brcms_c_ucode_bsinit() 739 __func__, wlc_hw->unit, brcms_c_ucode_bsinit() 744 __func__, wlc_hw->unit, wlc_hw->corerev); brcms_c_ucode_bsinit() 759 brcms_dbg_info(wlc_hw->d11core, "wl%d: clk %d\n", wlc_hw->unit, clk); brcms_b_core_phy_clk() 784 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: bandunit %d\n", wlc_hw->unit, brcms_c_setxband() 813 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); brcms_c_setband_inact() 1049 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, brcms_b_txstatus() 1121 uint unit = wlc_hw->unit; brcms_b_attach_dmapio() local 1124 snprintf(name, sizeof(name), "wl%d", unit); brcms_b_attach_dmapio() 1177 unit); brcms_b_attach_dmapio() 1511 brcms_dbg_rx(core, "wl%d: brcms_b_set_addrmatch\n", wlc_hw->unit); brcms_b_set_addrmatch() 1534 brcms_dbg_info(core, "wl%d\n", wlc_hw->unit); brcms_b_write_template_ram() 1707 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: bandunit %d\n", wlc_hw->unit, brcms_b_bsinit() 1787 brcms_dbg_info(wlc_hw->d11core, "wl%d: reset phy\n", wlc_hw->unit); brcms_b_phy_reset() 1921 brcms_dbg_info(wlc_hw->d11core, "wl%d: want %d\n", wlc_hw->unit, want); brcms_b_xtal() 2010 brcms_dbg_info(wlc_hw->d11core, "wl%d: core reset\n", wlc_hw->unit); brcms_b_corereset() 2023 wlc_hw->unit, __func__, i); brcms_b_corereset() 2029 wlc_hw->unit, __func__, RX_FIFO); brcms_b_corereset() 2266 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); brcms_ucode_write() 2296 __func__, wlc_hw->unit, wlc_hw->corerev); brcms_ucode_download() 2305 __func__, wlc_hw->unit, wlc_hw->corerev); brcms_ucode_download() 2338 uint unit; brcms_b_fifoerrors() local 2342 unit = wlc_hw->unit; brcms_b_fifoerrors() 2354 unit, idx, intstatus); brcms_b_fifoerrors() 2358 "overflow\n", unit, idx); brcms_b_fifoerrors() 2364 unit, idx); brcms_b_fifoerrors() 2369 brcms_err(core, "wl%d: fifo %d: data error\n", unit, brcms_b_fifoerrors() 2376 "error\n", unit, idx); brcms_b_fifoerrors() 2382 "underflow\n", idx, unit); brcms_b_fifoerrors() 2386 "underflow\n", idx, unit); brcms_b_fifoerrors() 2650 brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit, brcms_c_suspend_mac_and_wait() 2666 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, brcms_c_suspend_mac_and_wait() 2677 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, brcms_c_suspend_mac_and_wait() 2692 wlc_hw->unit, BRCMS_MAX_MAC_SUSPEND); brcms_c_suspend_mac_and_wait() 2694 "psm_brc 0x%04x\n", wlc_hw->unit, brcms_c_suspend_mac_and_wait() 2702 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, brcms_c_suspend_mac_and_wait() 2718 brcms_dbg_mac80211(core, "wl%d: bandunit %d\n", wlc_hw->unit, brcms_c_enable_mac() 2778 "expected 0xaa5555aa\n", wlc_hw->unit, val); brcms_b_validate_chip_access() 2791 "expected 0x55aaaa55\n", wlc_hw->unit, val); brcms_b_validate_chip_access() 2806 "0x%x, expected 0x%x or 0x%x\n", wlc_hw->unit, w, brcms_b_validate_chip_access() 2822 brcms_dbg_info(core, "wl%d\n", wlc_hw->unit); brcms_b_core_phypll_ctl() 2874 brcms_dbg_info(wlc_hw->d11core, "wl%d: disable core\n", wlc_hw->unit); brcms_c_coredisable() 3114 wlc->pub->unit, delta); brcms_c_statsupd() 3122 wlc->pub->unit, delta, i); brcms_c_statsupd() 3145 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); brcms_c_reset() 3191 brcms_dbg_info(core, "wl%d: core init\n", wlc_hw->unit); brcms_b_coreinit() 3212 "suspend!\n", wlc_hw->unit); brcms_b_coreinit() 3223 " %d\n", __func__, wlc_hw->unit, brcms_b_coreinit() 3230 " %d\n", __func__, wlc_hw->unit, brcms_b_coreinit() 3234 __func__, wlc_hw->unit, wlc_hw->corerev); brcms_b_coreinit() 3707 wlc->pub->unit, wlc->band->bandunit); brcms_c_bsinit() 3732 wlc->pub->unit); brcms_c_duty_cycle_set() 3758 brcms_dbg_mac80211(wlc->hw->d11core, "wl%d: hps %d\n", wlc->pub->unit, brcms_c_set_ps_ctrl() 3854 brcms_dbg_mac80211(wlc_hw->d11core, "wl%d: 0x%x\n", wlc_hw->unit, brcms_b_set_chanspec() 3917 wlc->pub->unit, __func__, CHSPEC_CHANNEL(chanspec)); brcms_c_set_chanspec() 3929 wlc->pub->unit, __func__, brcms_c_set_chanspec() 4069 wlc->pub->unit, __func__); brcms_c_wme_setparams() 4088 "aifs %d\n", wlc->pub->unit, acp_shm.aifs); brcms_c_wme_setparams() 4207 wlc->pub->unit, __func__); brcms_c_radio_timer() 4238 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); brcms_c_watchdog() 4245 wlc->pub->unit, __func__); brcms_c_watchdog() 4282 static bool brcms_c_timers_init(struct brcms_c_info *wlc, int unit) brcms_c_timers_init() argument 4288 "failed\n", unit); brcms_c_timers_init() 4296 "failed\n", unit); brcms_c_timers_init() 4310 static void brcms_c_info_init(struct brcms_c_info *wlc, int unit) brcms_c_info_init() argument 4363 uint unit; brcms_c_attach_module() local 4364 unit = wlc->pub->unit; brcms_c_attach_module() 4369 "failed\n", unit); brcms_c_attach_module() 4377 "failed\n", unit); brcms_c_attach_module() 4384 "failed\n", unit); brcms_c_attach_module() 4404 uint unit, bool piomode) brcms_b_attach() 4416 brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit, brcms_b_attach() 4420 brcms_dbg_info(core, "wl%d: vendor 0x%x device 0x%x\n", unit, brcms_b_attach() 4428 wlc_hw->unit = unit; brcms_b_attach() 4442 unit); brcms_b_attach() 4450 unit); brcms_b_attach() 4486 "failed\n", unit); brcms_b_attach() 4500 unit, ai_get_boardtype(wlc_hw->sih), brcms_b_attach() 4541 "failed\n", unit); brcms_b_attach() 4549 sha_params.unit = unit; brcms_b_attach() 4602 "attach failed\n", unit); brcms_b_attach() 4633 "phy type/rev (%d/%d)\n", unit, brcms_b_attach() 4654 brcms_dbg_info(core, "wl%d: phy %u/%u radio %x/%u\n", unit, brcms_b_attach() 4692 unit); brcms_b_attach() 4704 wiphy_err(wiphy, "wl%d: brcms_b_attach: failed with err %d\n", unit, brcms_b_attach() 4712 uint unit; brcms_c_attach_stf_ant_init() local 4716 unit = wlc->pub->unit; brcms_c_attach_stf_ant_init() 4727 " srom (0x%x), using 3\n", unit, __func__, aa); brcms_c_attach_stf_ant_init() 4911 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); brcms_b_hw_up() 4948 brcms_dbg_info(wlc_hw->d11core, "wl%d\n", wlc_hw->unit); brcms_b_up_prep() 5018 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); brcms_c_up() 5062 wlc->pub->unit); brcms_c_up() 5194 brcms_dbg_info(wlc->hw->d11core, "wl%d\n", wlc->pub->unit); brcms_c_down() 5200 wlc->pub->unit, __func__); brcms_c_down() 5314 wlc->pub->unit, __func__, gmode); brcms_c_set_gmode() 5780 * rate MPDU rate in unit of 500kbps 5882 "not in hw_rateset\n", wlc->pub->unit, rspec); brcms_c_valid_rate() 5909 wlc->pub->unit, __func__); mac80211_wlc_set_nrate() 5920 wlc->pub->unit, __func__); mac80211_wlc_set_nrate() 5930 wlc->pub->unit, rate); mac80211_wlc_set_nrate() 5942 wlc->pub->unit, __func__); mac80211_wlc_set_nrate() 5950 wlc->pub->unit, __func__); mac80211_wlc_set_nrate() 5958 wlc->pub->unit, __func__); mac80211_wlc_set_nrate() 5964 wlc->pub->unit, __func__); mac80211_wlc_set_nrate() 5971 "request\n", wlc->pub->unit, __func__); mac80211_wlc_set_nrate() 6122 * rts_rate rts or cts rate in unit of 500kbps 6123 * rate next MPDU rate in unit of 500kbps 6281 wlc->pub->unit, __func__); brcms_c_d11hdrs_mac80211() 6453 wlc->pub->unit, __func__); brcms_c_d11hdrs_mac80211() 6845 wlc->pub->unit, fifo_names[queue], brcms_c_d11hdrs_mac80211() 6852 wlc->pub->unit, __func__, brcms_c_d11hdrs_mac80211() 7683 wlc->pub->unit, p->len); brcms_c_recv() 7783 brcms_err(core, "wl%d: %s: dead chip\n", wlc_hw->unit, brcms_c_dpc() 7794 wlc_hw->unit, macintstatus); brcms_c_dpc() 7833 "(seconds). Resetting.\n", wlc_hw->unit, wlc_hw->now); brcms_c_dpc() 7847 " RF Disable Input\n", wlc_hw->unit); brcms_c_dpc() 7869 brcms_dbg_info(core, "wl%d\n", wlc->pub->unit); brcms_c_init() 7966 brcms_c_attach(struct brcms_info *wl, struct bcma_device *core, uint unit, brcms_c_attach() argument 7975 wlc = brcms_c_attach_malloc(unit, &err, 0); brcms_c_attach() 7988 pub->unit = unit; brcms_c_attach() 7994 brcms_c_info_init(wlc, unit); brcms_c_attach() 8003 err = brcms_b_attach(wlc, core, unit, piomode); brcms_c_attach() 8081 if (!brcms_c_timers_init(wlc, unit)) { brcms_c_attach() 8082 wiphy_err(wl->wiphy, "wl%d: %s: init_timer failed\n", unit, brcms_c_attach() 8092 "\n", unit, __func__); brcms_c_attach() 8132 unit, __func__, err); brcms_c_attach() 4403 brcms_b_attach(struct brcms_c_info *wlc, struct bcma_device *core, uint unit, bool piomode) brcms_b_attach() argument
|
/linux-4.1.27/drivers/media/rc/img-ir/ |
H A D | img-ir-hw.c | 70 unsigned int unit) img_ir_timing_preprocess() 74 if (unit) { img_ir_timing_preprocess() 75 /* multiply by unit and convert to microseconds */ img_ir_timing_preprocess() 76 range->min = (range->min*unit)/1000; img_ir_timing_preprocess() 77 range->max = (range->max*unit + 999)/1000; /* round up */ img_ir_timing_preprocess() 82 unsigned int unit) img_ir_symbol_timing_preprocess() 84 img_ir_timing_preprocess(&timing->pulse, unit); img_ir_symbol_timing_preprocess() 85 img_ir_timing_preprocess(&timing->space, unit); img_ir_symbol_timing_preprocess() 89 unsigned int unit) img_ir_timings_preprocess() 91 img_ir_symbol_timing_preprocess(&timings->ldr, unit); img_ir_timings_preprocess() 92 img_ir_symbol_timing_preprocess(&timings->s00, unit); img_ir_timings_preprocess() 93 img_ir_symbol_timing_preprocess(&timings->s01, unit); img_ir_timings_preprocess() 94 img_ir_symbol_timing_preprocess(&timings->s10, unit); img_ir_timings_preprocess() 95 img_ir_symbol_timing_preprocess(&timings->s11, unit); img_ir_timings_preprocess() 97 if (unit) img_ir_timings_preprocess() 98 /* multiply by unit and convert to microseconds (round up) */ img_ir_timings_preprocess() 99 timings->ft.ft_min = (timings->ft.ft_min*unit + 999)/1000; img_ir_timings_preprocess() 330 img_ir_timings_preprocess(&decoder->timings, decoder->unit); img_ir_decoder_preprocess() 334 img_ir_timings_preprocess(&decoder->rtimings, decoder->unit); img_ir_decoder_preprocess() 69 img_ir_timing_preprocess(struct img_ir_timing_range *range, unsigned int unit) img_ir_timing_preprocess() argument 81 img_ir_symbol_timing_preprocess(struct img_ir_symbol_timing *timing, unsigned int unit) img_ir_symbol_timing_preprocess() argument 88 img_ir_timings_preprocess(struct img_ir_timings *timings, unsigned int unit) img_ir_timings_preprocess() argument
|
/linux-4.1.27/drivers/powercap/ |
H A D | intel_rapl.c | 76 #define ENERGY_UNIT_SCALE 1000 /* scale from driver unit to powercap unit */ 212 enum unit_type unit; member in struct:rapl_primitive_info 221 .unit = u, \ 650 pr_info("DRAM domain energy unit %dpj\n", rapl_init_domains() 679 /* per domain unit takes precedence */ rapl_unit_xlate() 702 /* name, mask, shift, msr index, unit divisor */ 748 * is pre-assigned based on RAPL unit MSRs read at init time. 793 *data = rapl_unit_xlate(rd, rd->package_id, rp->unit, final, 0); rapl_read_data_raw() 819 value = rapl_unit_xlate(rd, rd->package_id, rp->unit, value, 1); rapl_write_data_raw() 834 * the RAPL unit MSRs. This is specific to CPUs as the method to 838 * energy unit: picoJoules : Represented in picoJoules by default 839 * power unit : microWatts : Represented in milliWatts by default 840 * time unit : microseconds: Represented in seconds by default 848 pr_err("Failed to read power unit MSR 0x%x on CPU %d, exit.\n", rapl_check_unit_core() 874 pr_err("Failed to read power unit MSR 0x%x on CPU %d, exit.\n", rapl_check_unit_atom() 997 u64 f, y; /* fraction and exp. used for time unit */ rapl_compute_time_window_core() 1020 * Atom time unit encoding is straight forward val * time_unit, rapl_compute_time_window_atom() 1090 rpi[prim].unit, rapl_update_domain_data()
|
/linux-4.1.27/drivers/net/ethernet/amd/ |
H A D | mvme147.c | 71 struct net_device * __init mvme147lance_probe(int unit) mvme147lance_probe() argument 89 if (unit >= 0) mvme147lance_probe() 90 sprintf(dev->name, "eth%d", unit); mvme147lance_probe()
|
/linux-4.1.27/drivers/mfd/ |
H A D | dbx500-prcmu-regs.h | 175 /* Debug power control unit registers */ 178 /* Miscellaneous unit registers */ 220 /* Miscellaneous unit registers */
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
H A D | gk104.c | 93 nv_subdev(priv)->unit = 0x00000040; gk104_ce0_ctor() 114 nv_subdev(priv)->unit = 0x00000080; gk104_ce1_ctor() 135 nv_subdev(priv)->unit = 0x00200000; gk104_ce2_ctor()
|
H A D | gm204.c | 93 nv_subdev(priv)->unit = 0x00000040; gm204_ce0_ctor() 114 nv_subdev(priv)->unit = 0x00000080; gm204_ce1_ctor() 135 nv_subdev(priv)->unit = 0x00200000; gm204_ce2_ctor()
|
/linux-4.1.27/drivers/video/console/ |
H A 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) newport_set_font() argument 537 if (i == unit) newport_set_font() 544 if (font_data[unit] != FONT_DATA) { newport_set_font() 545 if (--REFCOUNT(font_data[unit]) == 0) newport_set_font() 546 kfree(font_data[unit] - newport_set_font() 550 font_data[unit] = new_data; newport_set_font() 555 static int newport_set_def_font(int unit, struct console_font *op) newport_set_def_font() argument 557 if (font_data[unit] != FONT_DATA) { newport_set_def_font() 558 if (--REFCOUNT(font_data[unit]) == 0) newport_set_def_font() 559 kfree(font_data[unit] - newport_set_def_font() 561 font_data[unit] = FONT_DATA; newport_set_def_font()
|
/linux-4.1.27/fs/jfs/ |
H A D | jfs_xtree.h | 34 __u8 off1; /* 1: offset in unit of fsblksize */ 35 __le32 off2; /* 4: offset in unit of fsblksize */ 36 pxd_t loc; /* 8: length and address in unit of fsblksize */
|
/linux-4.1.27/tools/firewire/ |
H A D | decode-fcp.c | 38 [0x0f] = "(reserved 0x0f)", [0x1f] = "unit", 73 [0x30] = { "unit info", { 76 { "unit", 13, 3 },
|
/linux-4.1.27/drivers/media/platform/vsp1/ |
H A D | vsp1_bru.c | 108 /* Route BRU input 1 as SRC input to the ROP unit and configure the ROP bru_s_stream() 109 * unit with a NOP operation to make BRU input 1 available as the bru_s_stream() 110 * Blend/ROP unit B SRC input. bru_s_stream() 135 /* Select the virtual RPF as the Blend/ROP unit A DST input to bru_s_stream() 142 * D in that order. The Blend/ROP unit B SRC is hardwired to the bru_s_stream() 143 * ROP unit output, the corresponding register bits must be set bru_s_stream()
|
/linux-4.1.27/arch/powerpc/platforms/cell/ |
H A D | interrupt.c | 64 unsigned char unit = bits.source & 0xf; iic_pending_to_hwnum() local 72 return (node << IIC_IRQ_NODE_SHIFT) | (class << 4) | unit; iic_pending_to_hwnum() 253 unsigned int node, ext, unit, class; iic_host_xlate() local 268 unit = intspec[0] & 0xff; iic_host_xlate() 276 if (unit == IIC_UNIT_IIC && class == 1) iic_host_xlate() 280 (class << IIC_IRQ_CLASS_SHIFT) | unit; iic_host_xlate()
|
/linux-4.1.27/arch/powerpc/oprofile/ |
H A D | op_model_power4.c | 44 u64 psel, unit; power7_marked_instr_event() local 57 unit = mmcr1 & (OPROFILE_PM_UNIT_MSK power7_marked_instr_event() 60 unit = unit >> (OPROFILE_PM_UNIT_SHIFT power7_marked_instr_event() 82 cntr_marked_events |= (unit == 0xd) << pmc; power7_marked_instr_event() 89 cntr_marked_events |= (unit == 0xd) << pmc; power7_marked_instr_event()
|
/linux-4.1.27/drivers/staging/rtl8723au/include/ |
H A D | rtl8723a_cmd.h | 64 u8 AwakeInterval; /* unit: beacon interval */ 75 u16 gpio_period; /* unit: 1024 us */
|