/linux-4.4.14/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 | 9 void mmp_clk_init(struct device_node *np, struct mmp_clk_unit *unit, mmp_clk_init() argument 18 unit->clk_table = clk_table; mmp_clk_init() 19 unit->nr_clks = nr_clks; mmp_clk_init() 20 unit->clk_data.clks = clk_table; mmp_clk_init() 21 unit->clk_data.clk_num = nr_clks; mmp_clk_init() 22 of_clk_add_provider(np, of_clk_src_onecell_get, &unit->clk_data); mmp_clk_init() 25 void mmp_register_fixed_rate_clks(struct mmp_clk_unit *unit, mmp_register_fixed_rate_clks() argument 43 unit->clk_table[clks[i].id] = clk; mmp_register_fixed_rate_clks() 47 void mmp_register_fixed_factor_clks(struct mmp_clk_unit *unit, mmp_register_fixed_factor_clks() argument 65 unit->clk_table[clks[i].id] = clk; mmp_register_fixed_factor_clks() 69 void mmp_register_general_gate_clks(struct mmp_clk_unit *unit, mmp_register_general_gate_clks() argument 91 unit->clk_table[clks[i].id] = clk; mmp_register_general_gate_clks() 95 void mmp_register_gate_clks(struct mmp_clk_unit *unit, mmp_register_gate_clks() argument 119 unit->clk_table[clks[i].id] = clk; mmp_register_gate_clks() 123 void mmp_register_mux_clks(struct mmp_clk_unit *unit, mmp_register_mux_clks() argument 147 unit->clk_table[clks[i].id] = clk; mmp_register_mux_clks() 151 void mmp_register_div_clks(struct mmp_clk_unit *unit, mmp_register_div_clks() argument 174 unit->clk_table[clks[i].id] = clk; mmp_register_div_clks() 178 void mmp_clk_add(struct mmp_clk_unit *unit, unsigned int id, mmp_clk_add() argument 185 if (id > unit->nr_clks) { mmp_clk_add() 190 unit->clk_table[id] = clk; mmp_clk_add()
|
H A D | clk-of-pxa910.c | 51 struct mmp_clk_unit unit; member in struct:pxa910_clk_unit 97 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa910_pll_init() local 99 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, pxa910_pll_init() 102 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, pxa910_pll_init() 110 mmp_clk_add(unit, PXA910_CLK_UART_PLL, clk); pxa910_pll_init() 167 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa910_apb_periph_clk_init() local 169 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, pxa910_apb_periph_clk_init() 172 mmp_register_mux_clks(unit, apbcp_mux_clks, pxa_unit->apbcp_base, pxa910_apb_periph_clk_init() 175 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, pxa910_apb_periph_clk_init() 178 mmp_register_gate_clks(unit, apbcp_gate_clks, pxa_unit->apbcp_base, pxa910_apb_periph_clk_init() 222 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa910_axi_periph_clk_init() local 224 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, pxa910_axi_periph_clk_init() 227 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, pxa910_axi_periph_clk_init() 230 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, pxa910_axi_periph_clk_init() 302 mmp_clk_init(np, &pxa_unit->unit, PXA910_NR_CLKS); pxa910_clk_init()
|
H A D | clk-of-pxa168.c | 52 struct mmp_clk_unit unit; member in struct:pxa168_clk_unit 97 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa168_pll_init() local 99 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, pxa168_pll_init() 102 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, pxa168_pll_init() 110 mmp_clk_add(unit, PXA168_CLK_UART_PLL, clk); pxa168_pll_init() 166 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa168_apb_periph_clk_init() local 168 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, pxa168_apb_periph_clk_init() 171 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, pxa168_apb_periph_clk_init() 216 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa168_axi_periph_clk_init() local 218 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, pxa168_axi_periph_clk_init() 221 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, pxa168_axi_periph_clk_init() 224 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, pxa168_axi_periph_clk_init() 276 mmp_clk_init(np, &pxa_unit->unit, PXA168_NR_CLKS); pxa168_clk_init()
|
H A D | clk-of-pxa1928.c | 29 struct mmp_clk_unit unit; member in struct:pxa1928_clk_unit 72 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa1928_pll_init() local 74 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, pxa1928_pll_init() 77 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, pxa1928_pll_init() 133 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa1928_apb_periph_clk_init() local 135 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, pxa1928_apb_periph_clk_init() 138 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, pxa1928_apb_periph_clk_init() 172 struct mmp_clk_unit *unit = &pxa_unit->unit; pxa1928_axi_periph_clk_init() local 174 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, pxa1928_axi_periph_clk_init() 177 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, pxa1928_axi_periph_clk_init() 180 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, pxa1928_axi_periph_clk_init() 240 mmp_clk_init(np, &pxa_unit->unit, PXA1928_APMU_NR_CLKS); pxa1928_apmu_clk_init() 260 mmp_clk_init(np, &pxa_unit->unit, PXA1928_APBC_NR_CLKS); pxa1928_apbc_clk_init()
|
H A D | clk-of-mmp2.c | 59 struct mmp_clk_unit unit; member in struct:mmp2_clk_unit 109 struct mmp_clk_unit *unit = &pxa_unit->unit; mmp2_pll_init() local 111 mmp_register_fixed_rate_clks(unit, fixed_rate_clks, mmp2_pll_init() 114 mmp_register_fixed_factor_clks(unit, fixed_factor_clks, mmp2_pll_init() 122 mmp_clk_add(unit, MMP2_CLK_UART_PLL, clk); mmp2_pll_init() 181 struct mmp_clk_unit *unit = &pxa_unit->unit; mmp2_apb_periph_clk_init() local 183 mmp_register_mux_clks(unit, apbc_mux_clks, pxa_unit->apbc_base, mmp2_apb_periph_clk_init() 186 mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->apbc_base, mmp2_apb_periph_clk_init() 247 struct mmp_clk_unit *unit = &pxa_unit->unit; mmp2_axi_periph_clk_init() local 260 mmp_clk_add(unit, MMP2_CLK_CCIC0_MIX, clk); mmp2_axi_periph_clk_init() 267 mmp_clk_add(unit, MMP2_CLK_CCIC1_MIX, clk); mmp2_axi_periph_clk_init() 269 mmp_register_mux_clks(unit, apmu_mux_clks, pxa_unit->apmu_base, mmp2_axi_periph_clk_init() 272 mmp_register_div_clks(unit, apmu_div_clks, pxa_unit->apmu_base, mmp2_axi_periph_clk_init() 275 mmp_register_gate_clks(unit, apmu_gate_clks, pxa_unit->apmu_base, mmp2_axi_periph_clk_init() 327 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.4.14/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.4.14/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.4.14/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.4.14/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);
|
/linux-4.4.14/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 | 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 | 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 | lib.c | 19 * @unit: the driver's unit on the target device 29 * response. The node ID and the current generation are derived from @unit. 33 int snd_fw_transaction(struct fw_unit *unit, int tcode, snd_fw_transaction() argument 37 struct fw_device *device = fw_parent_device(unit); snd_fw_transaction() 59 dev_err(&unit->device, snd_fw_transaction() 170 * @unit: the target of the asynchronous transaction 178 struct fw_unit *unit, u64 addr, unsigned int len, snd_fw_async_midi_port_init() 186 port->parent = fw_parent_device(unit); snd_fw_async_midi_port_init() 177 snd_fw_async_midi_port_init(struct snd_fw_async_midi_port *port, struct fw_unit *unit, u64 addr, unsigned int len, snd_fw_async_midi_port_fill fill) snd_fw_async_midi_port_init() argument
|
H A D | lib.h | 15 int snd_fw_transaction(struct fw_unit *unit, int tcode, 49 struct fw_unit *unit, u64 addr, unsigned int len,
|
H A D | amdtp-stream.c | 60 * @unit: the target of the stream 67 int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, amdtp_stream_init() argument 80 s->unit = unit; amdtp_stream_init() 187 * @data_block_quadlets: the size of a data block in quadlet unit 384 dev_err(&s->unit->device, "queueing error: %d\n", err); queue_packet() 460 dev_info_ratelimited(&s->unit->device, handle_in_packet() 471 dev_info_ratelimited(&s->unit->device, handle_in_packet() 489 dev_err(&s->unit->device, handle_in_packet() 523 dev_err(&s->unit->device, handle_in_packet() 605 dev_err(&s->unit->device, in_stream_callback() 735 err = iso_packets_buffer_init(&s->buffer, s->unit, QUEUE_LENGTH, amdtp_stream_start() 740 s->context = fw_iso_context_create(fw_parent_device(s->unit)->card, amdtp_stream_start() 746 dev_err(&s->unit->device, amdtp_stream_start() 781 iso_packets_buffer_destroy(&s->buffer, s->unit); amdtp_stream_start() 815 (fw_parent_device(s->unit)->card->node_id << CIP_SID_SHIFT) & amdtp_stream_update() 840 iso_packets_buffer_destroy(&s->buffer, s->unit); amdtp_stream_stop()
|
H A D | amdtp-am824.h | 50 int amdtp_am824_init(struct amdtp_stream *s, struct fw_unit *unit,
|
H A D | cmp.h | 38 struct fw_unit *unit,
|
/linux-4.4.14/arch/frv/include/asm/ |
H A D | fpu.h | 6 * MAX floating point unit state size (FSAVE/FRESTORE)
|
/linux-4.4.14/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.4.14/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.4.14/sound/firewire/digi00x/ |
H A D | digi00x.c | 20 struct fw_device *fw_dev = fw_parent_device(dg00x->unit); name_card() 25 err = fw_csr_string(dg00x->unit->directory, CSR_MODEL, name, name_card() 38 dev_name(&dg00x->unit->device), 100 << fw_dev->max_speed); name_card() 50 fw_unit_put(dg00x->unit); dg00x_card_free() 55 static int snd_dg00x_probe(struct fw_unit *unit, snd_dg00x_probe() argument 63 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, snd_dg00x_probe() 72 dg00x->unit = fw_unit_get(unit); snd_dg00x_probe() 108 dev_set_drvdata(&unit->device, dg00x); snd_dg00x_probe() 116 static void snd_dg00x_update(struct fw_unit *unit) snd_dg00x_update() argument 118 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); snd_dg00x_update() 127 static void snd_dg00x_remove(struct fw_unit *unit) snd_dg00x_remove() argument 129 struct snd_dg00x *dg00x = dev_get_drvdata(&unit->device); snd_dg00x_remove()
|
H A D | digi00x-stream.c | 37 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, snd_dg00x_stream_get_local_rate() 65 return snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST, snd_dg00x_stream_set_local_rate() 76 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, snd_dg00x_stream_get_clock() 94 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, snd_dg00x_stream_check_external_clock() 110 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, snd_dg00x_stream_get_external_rate() 130 snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST, finish_session() 141 err = snd_fw_transaction(dg00x->unit, TCODE_READ_QUADLET_REQUEST, begin_session() 154 err = snd_fw_transaction(dg00x->unit, begin_session() 177 snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST, release_resources() 207 fw_parent_device(dg00x->unit)->max_speed); keep_resources() 218 fw_parent_device(dg00x->unit)->max_speed); keep_resources() 225 err = snd_fw_transaction(dg00x->unit, TCODE_WRITE_QUADLET_REQUEST, keep_resources() 242 err = fw_iso_resources_init(&dg00x->rx_resources, dg00x->unit); snd_dg00x_stream_init_duplex() 245 err = amdtp_dot_init(&dg00x->rx_stream, dg00x->unit, AMDTP_OUT_STREAM); snd_dg00x_stream_init_duplex() 250 err = fw_iso_resources_init(&dg00x->tx_resources, dg00x->unit); snd_dg00x_stream_init_duplex() 253 err = amdtp_dot_init(&dg00x->tx_stream, dg00x->unit, AMDTP_IN_STREAM); snd_dg00x_stream_init_duplex() 319 fw_parent_device(dg00x->unit)->max_speed); snd_dg00x_stream_start_duplex() 337 fw_parent_device(dg00x->unit)->max_speed); snd_dg00x_stream_start_duplex()
|
H A D | digi00x-transaction.c | 76 struct fw_device *device = fw_parent_device(dg00x->unit); snd_dg00x_transaction_reregister() 84 err = snd_fw_transaction(dg00x->unit, TCODE_WRITE_BLOCK_REQUEST, snd_dg00x_transaction_reregister() 94 return snd_fw_transaction(dg00x->unit, TCODE_WRITE_BLOCK_REQUEST, snd_dg00x_transaction_reregister() 120 err = snd_fw_async_midi_port_init(&dg00x->out_control, dg00x->unit, snd_dg00x_transaction_register()
|
/linux-4.4.14/sound/firewire/tascam/ |
H A D | tascam.c | 41 struct fw_device *fw_dev = fw_parent_device(tscm->unit); identify_model() 48 dev_err(&tscm->unit->device, identify_model() 77 dev_name(&tscm->unit->device), 100 << fw_dev->max_speed); identify_model() 89 fw_unit_put(tscm->unit); tscm_card_free() 94 static int snd_tscm_probe(struct fw_unit *unit, snd_tscm_probe() argument 102 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, snd_tscm_probe() 111 tscm->unit = fw_unit_get(unit); snd_tscm_probe() 147 dev_set_drvdata(&unit->device, tscm); snd_tscm_probe() 155 static void snd_tscm_update(struct fw_unit *unit) snd_tscm_update() argument 157 struct snd_tscm *tscm = dev_get_drvdata(&unit->device); snd_tscm_update() 166 static void snd_tscm_remove(struct fw_unit *unit) snd_tscm_remove() argument 168 struct snd_tscm *tscm = dev_get_drvdata(&unit->device); snd_tscm_remove()
|
H A D | tascam-stream.c | 19 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, get_clock() 65 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, set_clock() 76 return snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, set_clock() 144 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, enable_data_channels() 159 return snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, enable_data_channels() 171 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, set_stream_formats() 189 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, finish_session() 194 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, finish_session() 206 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, begin_session() 213 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, begin_session() 221 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, begin_session() 229 return snd_fw_transaction(tscm->unit, begin_session() 241 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, release_resources() 245 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, release_resources() 249 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, release_resources() 269 fw_parent_device(tscm->unit)->max_speed); keep_resources() 279 fw_parent_device(tscm->unit)->max_speed); keep_resources() 285 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, keep_resources() 293 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, keep_resources() 301 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, keep_resources() 319 err = fw_iso_resources_init(&tscm->rx_resources, tscm->unit); snd_tscm_stream_init_duplex() 327 err = amdtp_tscm_init(&tscm->rx_stream, tscm->unit, AMDTP_OUT_STREAM, snd_tscm_stream_init_duplex() 333 err = fw_iso_resources_init(&tscm->tx_resources, tscm->unit); snd_tscm_stream_init_duplex() 341 err = amdtp_tscm_init(&tscm->tx_stream, tscm->unit, AMDTP_IN_STREAM, snd_tscm_stream_init_duplex() 411 fw_parent_device(tscm->unit)->max_speed); snd_tscm_stream_start_duplex() 425 fw_parent_device(tscm->unit)->max_speed); snd_tscm_stream_start_duplex()
|
H A D | tascam-proc.c | 19 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, proc_read_firmware() 26 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, proc_read_firmware() 33 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, proc_read_firmware() 40 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, proc_read_firmware()
|
H A D | tascam-transaction.c | 223 &tscm->out_ports[i], tscm->unit, snd_tscm_transaction_register() 239 struct fw_device *device = fw_parent_device(tscm->unit); snd_tscm_transaction_reregister() 246 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, snd_tscm_transaction_reregister() 253 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, snd_tscm_transaction_reregister() 261 err = snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, snd_tscm_transaction_reregister() 269 return snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, snd_tscm_transaction_reregister() 281 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, snd_tscm_transaction_unregister() 287 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, snd_tscm_transaction_unregister() 292 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, snd_tscm_transaction_unregister() 295 snd_fw_transaction(tscm->unit, TCODE_WRITE_QUADLET_REQUEST, snd_tscm_transaction_unregister()
|
/linux-4.4.14/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.4.14/arch/tile/kernel/ |
H A D | usb.c | 30 #define USB_HOST_DEF(unit, type, dmamask) \ 33 hci ## unit = { \ 34 .dev_index = unit, \ 37 static struct platform_device tilegx_usb_ ## type ## hci ## unit = { \ 39 .id = unit, \ 45 unit, \
|
/linux-4.4.14/sound/firewire/dice/ |
H A D | dice.c | 21 static int dice_interface_check(struct fw_unit *unit) dice_interface_check() argument 30 struct fw_device *device = fw_parent_device(unit); dice_interface_check() 44 * Check that GUID and unit directory are constructed according to DICE dice_interface_check() 49 fw_csr_iterator_init(&it, unit->directory); dice_interface_check() 77 err = snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, dice_interface_check() 96 err = snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, dice_interface_check() 105 dev_err(&unit->device, dice_interface_check() 202 struct fw_device *dev = fw_parent_device(dice->unit); dice_card_strings() 225 fw_csr_string(dice->unit->directory, CSR_MODEL, model, sizeof(model)); dice_card_strings() 229 dev_name(&dice->unit->device), 100 << dev->max_speed); dice_card_strings() 235 * This module releases the FireWire unit data after all ALSA character devices 238 * references for the unit. 246 fw_unit_put(dice->unit); dice_card_free() 251 static int dice_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) dice_probe() argument 257 err = dice_interface_check(unit); dice_probe() 261 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, dice_probe() 268 dice->unit = fw_unit_get(unit); dice_probe() 310 dev_set_drvdata(&unit->device, dice); dice_probe() 318 static void dice_remove(struct fw_unit *unit) dice_remove() argument 320 struct snd_dice *dice = dev_get_drvdata(&unit->device); dice_remove() 326 static void dice_bus_reset(struct fw_unit *unit) dice_bus_reset() argument 328 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() 153 dev_err(&dice->unit->device, start_stream() 159 fw_parent_device(dice->unit)->max_speed); start_stream() 221 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 238 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 246 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 252 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 259 dev_err(&dice->unit->device, snd_dice_stream_start_duplex() 304 err = fw_iso_resources_init(resources, dice->unit); init_stream() 309 err = amdtp_am824_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.4.14/drivers/media/usb/stk1160/ |
H A D | stk1160-reg.h | 46 * send count unit (0x105) before each unit skipped. 48 * skip count unit (0x105) before each unit sent. 54 * send count unit (0x105) before each unit skipped. 56 * skip count unit (0x105) before each unit sent. 58 * 0 Decimation will work with 2 rows or columns per unit. 59 * 1 Decimation will work with 4 rows or columns per unit.
|
/linux-4.4.14/sound/firewire/oxfw/ |
H A D | oxfw.c | 33 static bool detect_loud_models(struct fw_unit *unit) detect_loud_models() argument 46 err = fw_csr_string(unit->directory, CSR_MODEL, detect_loud_models() 61 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); name_card() 74 /* get model name from unit directory */ name_card() 75 err = fw_csr_string(oxfw->unit->directory, CSR_MODEL, name_card() 80 err = snd_fw_transaction(oxfw->unit, TCODE_READ_QUADLET_REQUEST, name_card() 105 dev_name(&oxfw->unit->device), 100 << fw_dev->max_speed); name_card() 111 * This module releases the FireWire unit data after all ALSA character devices 114 * references for the unit. 125 fw_unit_put(oxfw->unit); oxfw_card_free() 137 struct fw_device *fw_dev = fw_parent_device(oxfw->unit); detect_quirks() 169 static int oxfw_probe(struct fw_unit *unit, oxfw_probe() argument 176 if ((id->vendor_id == VENDOR_LOUD) && !detect_loud_models(unit)) oxfw_probe() 179 err = snd_card_new(&unit->device, -1, NULL, THIS_MODULE, oxfw_probe() 188 oxfw->unit = fw_unit_get(unit); oxfw_probe() 239 dev_set_drvdata(&unit->device, oxfw); oxfw_probe() 247 static void oxfw_bus_reset(struct fw_unit *unit) oxfw_bus_reset() argument 249 struct snd_oxfw *oxfw = dev_get_drvdata(&unit->device); oxfw_bus_reset() 251 fcp_bus_reset(oxfw->unit); oxfw_bus_reset() 262 static void oxfw_remove(struct fw_unit *unit) oxfw_remove() argument 264 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 81 int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, 83 int avc_stream_get_format(struct fw_unit *unit, 87 avc_stream_get_format_single(struct fw_unit *unit, avc_stream_get_format_single() argument 91 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); avc_stream_get_format_single() 94 avc_stream_get_format_list(struct fw_unit *unit, avc_stream_get_format_list() argument 99 return avc_stream_get_format(unit, dir, pid, buf, len, eid); avc_stream_get_format_list() 106 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() 199 dev_err(&oxfw->unit->device, check_connection_used_by_others() 227 err = cmp_connection_init(conn, oxfw->unit, c_dir, 0); snd_oxfw_stream_init_simplex() 231 err = amdtp_am824_init(stream, oxfw->unit, s_dir, CIP_NONBLOCKING); snd_oxfw_stream_init_simplex() 315 dev_err(&oxfw->unit->device, snd_oxfw_stream_start_simplex() 325 dev_err(&oxfw->unit->device, snd_oxfw_stream_start_simplex() 336 dev_err(&oxfw->unit->device, snd_oxfw_stream_start_simplex() 400 err = avc_stream_get_format_single(oxfw->unit, dir, 0, format, &len); snd_oxfw_stream_get_current_formation() 506 err = avc_stream_get_format_single(oxfw->unit, dir, pid, buf, len); assume_stream_formats() 508 dev_err(&oxfw->unit->device, assume_stream_formats() 532 err = avc_general_inquiry_sig_fmt(oxfw->unit, assume_stream_formats() 573 err = avc_stream_get_format_list(oxfw->unit, dir, 0, buf, &len, 0); fill_stream_formats() 581 dev_err(&oxfw->unit->device, fill_stream_formats() 609 err = avc_stream_get_format_list(oxfw->unit, dir, 0, fill_stream_formats() 616 dev_err(&oxfw->unit->device, fill_stream_formats() 638 err = avc_general_get_plug_info(oxfw->unit, 0x1f, 0x07, 0x00, plugs); snd_oxfw_stream_discover() 640 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.4.14/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.4.14/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.4.14/net/batman-adv/ |
H A D | gateway_common.h | 34 * enum batadv_bandwidth_units - bandwidth unit types 35 * @BATADV_BW_UNIT_KBIT: unit type kbit 36 * @BATADV_BW_UNIT_MBIT: unit type mbit
|
/linux-4.4.14/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.4.14/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:__anon3629
|
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.4.14/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.4.14/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.4.14/sound/firewire/bebob/ |
H A D | bebob.c | 72 struct fw_device *fw_dev = fw_parent_device(bebob->unit); name_device() 87 /* get model name from unit directory */ name_device() 88 err = fw_csr_string(bebob->unit->directory, CSR_MODEL, name_device() 94 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_ID, name_device() 100 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_HW_MODEL_REVISION, name_device() 106 err = snd_bebob_read_block(bebob->unit, INFO_OFFSET_GUID, name_device() 111 err = snd_bebob_read_quad(bebob->unit, INFO_OFFSET_BEBOB_VERSION, name_device() 123 data[0], data[1], dev_name(&bebob->unit->device), name_device() 130 * This module releases the FireWire unit data after all ALSA character devices 133 * references for the unit. 141 fw_unit_put(bebob->unit); bebob_card_free() 155 get_saffire_spec(struct fw_unit *unit) get_saffire_spec() argument 159 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) get_saffire_spec() 169 check_audiophile_booted(struct fw_unit *unit) check_audiophile_booted() argument 173 if (fw_csr_string(unit->directory, CSR_MODEL, name, sizeof(name)) < 0) check_audiophile_booted() 180 bebob_probe(struct fw_unit *unit, bebob_probe() argument 202 spec = get_saffire_spec(unit); bebob_probe() 205 !check_audiophile_booted(unit)) bebob_probe() 213 err = snd_bebob_maudio_load_firmware(unit); bebob_probe() 219 err = snd_card_new(&unit->device, index[card_index], id[card_index], bebob_probe() 229 bebob->unit = fw_unit_get(unit); bebob_probe() 289 fw_schedule_bus_reset(fw_parent_device(bebob->unit)->card, bebob_probe() 293 dev_set_drvdata(&unit->device, bebob); bebob_probe() 304 bebob_update(struct fw_unit *unit) bebob_update() argument 306 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); bebob_update() 311 fcp_bus_reset(bebob->unit); bebob_update() 323 static void bebob_remove(struct fw_unit *unit) bebob_remove() argument 325 struct snd_bebob *bebob = dev_get_drvdata(&unit->device); bebob_remove()
|
H A D | bebob.h | 80 struct fw_unit *unit; member in struct:snd_bebob 123 snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) snd_bebob_read_block() argument 125 return snd_fw_transaction(unit, TCODE_READ_BLOCK_REQUEST, snd_bebob_read_block() 131 snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) snd_bebob_read_quad() argument 133 return snd_fw_transaction(unit, TCODE_READ_QUADLET_REQUEST, snd_bebob_read_quad() 139 int avc_audio_set_selector(struct fw_unit *unit, unsigned int subunit_id, 141 int avc_audio_get_selector(struct fw_unit *unit, unsigned int subunit_id, 175 enum avc_bridgeco_plug_unit unit, avc_bridgeco_fill_unit_addr() 181 buf[3] = unit; avc_bridgeco_fill_unit_addr() 197 int avc_bridgeco_get_plug_ch_pos(struct fw_unit *unit, 200 int avc_bridgeco_get_plug_type(struct fw_unit *unit, 203 int avc_bridgeco_get_plug_section_type(struct fw_unit *unit, 206 int avc_bridgeco_get_plug_input(struct fw_unit *unit, 209 int avc_bridgeco_get_plug_strm_fmt(struct fw_unit *unit, 252 int snd_bebob_maudio_load_firmware(struct fw_unit *unit); 173 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_terratec.c | 22 err = avc_audio_get_selector(bebob->unit, 0, 9, &enable_ext); phase88_rack_clk_src_get() 25 err = avc_audio_get_selector(bebob->unit, 0, 8, &enable_word); phase88_rack_clk_src_get() 48 err = 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() 134 dev_err(&bebob->unit->device, snd_bebob_stream_get_clock_src() 140 dev_err(&bebob->unit->device, snd_bebob_stream_get_clock_src() 166 err = avc_bridgeco_get_plug_input(bebob->unit, addr, input); snd_bebob_stream_get_clock_src() 168 dev_err(&bebob->unit->device, snd_bebob_stream_get_clock_src() 223 err = avc_bridgeco_get_plug_type(bebob->unit, addr, snd_bebob_stream_get_clock_src() 280 err = avc_bridgeco_get_plug_ch_pos(bebob->unit, addr, buf, 256); map_data_channels() 282 dev_err(&bebob->unit->device, map_data_channels() 301 err = avc_bridgeco_get_plug_section_type(bebob->unit, addr, map_data_channels() 304 dev_err(&bebob->unit->device, map_data_channels() 385 bebob->unit, CMP_INPUT, 0); init_both_connections() 390 bebob->unit, CMP_OUTPUT, 0); init_both_connections() 411 dev_err(&bebob->unit->device, check_connection_used_by_others() 545 err = amdtp_am824_init(&bebob->tx_stream, bebob->unit, snd_bebob_stream_init_duplex() 574 err = amdtp_am824_init(&bebob->rx_stream, bebob->unit, snd_bebob_stream_init_duplex() 652 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 679 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 692 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 706 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 728 dev_err(&bebob->unit->device, snd_bebob_stream_start_duplex() 909 err = avc_bridgeco_get_plug_strm_fmt(bebob->unit, addr, buf, fill_stream_formations() 916 dev_err(&bebob->unit->device, fill_stream_formations() 943 err = avc_general_get_plug_info(bebob->unit, 0x0c, 0x00, 0x00, plugs); seek_msu_sync_input_plug() 945 dev_err(&bebob->unit->device, seek_msu_sync_input_plug() 955 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); seek_msu_sync_input_plug() 957 dev_err(&bebob->unit->device, seek_msu_sync_input_plug() 981 err = avc_general_get_plug_info(bebob->unit, 0x1f, 0x07, 0x00, plugs); snd_bebob_stream_discover() 983 dev_err(&bebob->unit->device, snd_bebob_stream_discover() 1000 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); snd_bebob_stream_discover() 1002 dev_err(&bebob->unit->device, snd_bebob_stream_discover() 1015 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); snd_bebob_stream_discover() 1017 dev_err(&bebob->unit->device, snd_bebob_stream_discover() 1033 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); snd_bebob_stream_discover() 1035 dev_err(&bebob->unit->device, snd_bebob_stream_discover() 1049 err = avc_bridgeco_get_plug_type(bebob->unit, addr, &type); snd_bebob_stream_discover() 1051 dev_err(&bebob->unit->device, snd_bebob_stream_discover()
|
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() 461 err = avc_audio_get_selector(bebob->unit, 0x00, 0x04, special_dig_in_iface_ctl_get() 464 dev_err(&bebob->unit->device, special_dig_in_iface_ctl_get() 514 err = avc_audio_set_selector(bebob->unit, 0x00, 0x04, dig_in_iface); special_dig_in_iface_ctl_set() 516 dev_err(&bebob->unit->device, special_dig_in_iface_ctl_set()
|
/linux-4.4.14/arch/sparc/mm/ |
H A D | Makefile | 10 obj-$(CONFIG_SPARC32) += extable.o srmmu.o iommu.o io-unit.o
|
/linux-4.4.14/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.4.14/arch/mips/include/asm/sgi/ |
H A D | wd.h | 14 unsigned int unit; member in struct:sgiwd93_platform_data
|
/linux-4.4.14/arch/m68k/include/asm/ |
H A D | fpu.h | 6 * MAX floating point unit state size (FSAVE/FRESTORE)
|
/linux-4.4.14/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.4.14/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.4.14/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_am824_init(stream, efw->unit, s_dir, CIP_BLOCKING); init_stream() 154 dev_err(&efw->unit->device, check_connection_used_by_others() 273 dev_err(&efw->unit->device, snd_efw_stream_start_duplex() 283 dev_err(&efw->unit->device, snd_efw_stream_start_duplex()
|
/linux-4.4.14/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 ? */ 296 int unit; pcd_init_units() local 299 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_init_units() 308 cd->drive = (*drives[unit])[D_SLV]; pcd_init_units() 309 if ((*drives[unit])[D_PRT]) pcd_init_units() 313 snprintf(cd->name, sizeof(cd->info.name), "%s%d", name, unit); pcd_init_units() 320 disk->first_minor = unit; pcd_init_units() 584 pcd_atapi(cd, tr_cmd, 0, NULL, DBMSG("test unit ready")); pcd_ready_wait() 658 int unit, r; pcd_probe_capabilities() local 663 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_probe_capabilities() 688 int k, unit; pcd_detect() local 712 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_detect() 713 int *conf = *drives[unit]; pcd_detect() 731 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) pcd_detect() 941 int unit; pcd_init() local 955 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) pcd_init() 963 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) pcd_init() 968 for (unit = 0, cd = pcd; unit < PCD_UNITS; unit++, cd++) { pcd_init() 983 int unit; pcd_exit() local 985 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]) 492 pt_atapi(tape, tr_cmd, 0, NULL, DBMSG("test unit ready")); pt_ready_wait() 605 int unit; pt_detect() local 616 for (unit = 0; unit < PT_UNITS; unit++) { pt_detect() 617 struct pt_unit *tape = &pt[unit]; pt_detect() 625 snprintf(tape->name, PT_NAMELEN, "%s%d", name, unit); pt_detect() 661 int unit = iminor(inode) & 0x7F; pt_open() local 662 struct pt_unit *tape = pt + unit; pt_open() 666 if (unit >= PT_UNITS || (!tape->present)) { pt_open() 964 int unit; pt_init() local 980 for (unit = 0; unit < PT_UNITS; unit++) pt_init() 981 if (pt[unit].present) pt_init() 982 pi_release(pt[unit].pi); pt_init() 992 for (unit = 0; unit < PT_UNITS; unit++) pt_init() 993 if (pt[unit].present) { pt_init() 994 device_create(pt_class, NULL, MKDEV(major, unit), NULL, pt_init() 995 "pt%d", unit); pt_init() 996 device_create(pt_class, NULL, MKDEV(major, unit + 128), pt_init() 997 NULL, "pt%dn", unit); pt_init() 1009 int unit; pt_exit() local 1010 for (unit = 0; unit < PT_UNITS; unit++) pt_exit() 1011 if (pt[unit].present) { pt_exit() 1012 device_destroy(pt_class, MKDEV(major, unit)); pt_exit() 1013 device_destroy(pt_class, MKDEV(major, unit + 128)); pt_exit() 1017 for (unit = 0; unit < PT_UNITS; unit++) pt_exit() 1018 if (pt[unit].present) pt_exit() 1019 pi_release(pt[unit].pi); pt_exit()
|
H A D | pg.c | 66 devices, this is the unit selector for the 245 int unit; pg_init_units() local 248 for (unit = 0; unit < PG_UNITS; unit++) { pg_init_units() 249 int *parm = *drives[unit]; pg_init_units() 250 struct pg *dev = &devices[unit]; pg_init_units() 257 snprintf(dev->name, PG_NAMELEN, "%s%c", name, 'a'+unit); pg_init_units() 481 int k, unit; pg_detect() local 503 for (unit = 0; unit < PG_UNITS; unit++, dev++) { pg_detect() 504 int *parm = *drives[unit]; pg_detect() 528 int unit = iminor(inode) & 0x7f; pg_open() local 529 struct pg *dev = &devices[unit]; pg_open() 533 if ((unit >= PG_UNITS) || (!dev->present)) { pg_open() 667 int unit; pg_init() local 685 for (unit = 0; unit < PG_UNITS; unit++) { pg_init() 686 struct pg *dev = &devices[unit]; pg_init() 698 for (unit = 0; unit < PG_UNITS; unit++) { pg_init() 699 struct pg *dev = &devices[unit]; pg_init() 701 device_create(pg_class, NULL, MKDEV(major, unit), NULL, pg_init() 702 "pg%u", unit); pg_init() 715 int unit; pg_exit() local 717 for (unit = 0; unit < PG_UNITS; unit++) { pg_exit() 718 struct pg *dev = &devices[unit]; pg_exit() 720 device_destroy(pg_class, MKDEV(major, unit)); pg_exit() 725 for (unit = 0; unit < PG_UNITS; unit++) { pg_exit() 726 struct pg *dev = &devices[unit]; pg_exit()
|
H A D | paride.c | 248 static int pi_register_parport(PIA *pi, int verbose, int unit) pi_register_parport() argument 260 unit); pi_register_parport() 305 static int pi_probe_unit(PIA * pi, int unit, char *scratch, int verbose) pi_probe_unit() argument 309 s = unit; pi_probe_unit() 329 for (pi->unit = s; pi->unit < e; pi->unit++) pi_probe_unit() 351 int unit, int protocol, int delay, char *scratch, pi_init() 367 (!protocols[s]) || (unit < 0) || pi_init() 368 (unit >= protocols[s]->max_units)) { pi_init() 403 if (pi_probe_unit(pi, unit, scratch, verbose)) pi_init() 410 (pi, unit, scratch, verbose)) pi_init() 350 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 */ 283 int unit; pf_init_units() local 286 for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { pf_init_units() 293 pf->drive = (*drives[unit])[D_SLV]; pf_init_units() 294 pf->lun = (*drives[unit])[D_LUN]; pf_init_units() 295 snprintf(pf->name, PF_NAMELEN, "%s%d", name, unit); pf_init_units() 297 disk->first_minor = unit; pf_init_units() 300 if (!(*drives[unit])[D_PRT]) pf_init_units() 702 int k, unit; pf_detect() local 724 for (unit = 0; unit < PF_UNITS; unit++, pf++) { pf_detect() 725 int *conf = *drives[unit]; pf_detect() 742 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) pf_detect() 959 int unit; pf_init() local 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() 985 for (pf = units, unit = 0; unit < PF_UNITS; pf++, unit++) { pf_init() 1000 int unit; pf_exit() local 1002 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 859 int found = 0, unit, pd_drive_count = 0; pd_detect() local 862 for (unit = 0; unit < PD_UNITS; unit++) { pd_detect() 863 int *parm = *drives[unit]; pd_detect() 864 struct pd_unit *disk = pd + unit; pd_detect() 870 snprintf(disk->name, PD_NAMELEN, "%s%c", name, 'a'+unit); pd_detect() 893 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { pd_detect() 894 int *parm = *drives[unit]; pd_detect() 906 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { pd_detect() 952 int unit; pd_exit() local 954 for (unit = 0, disk = pd; unit < PD_UNITS; unit++, disk++) { pd_exit()
|
/linux-4.4.14/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.4.14/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.4.14/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
|
/linux-4.4.14/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.4.14/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | gk104.c | 354 gk104_fifo_intr_fault(struct gk104_fifo *fifo, int unit) gk104_fifo_intr_fault() argument 358 u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); gk104_fifo_intr_fault() 359 u32 valo = nvkm_rd32(device, 0x002804 + (unit * 0x10)); gk104_fifo_intr_fault() 360 u32 vahi = nvkm_rd32(device, 0x002808 + (unit * 0x10)); gk104_fifo_intr_fault() 361 u32 stat = nvkm_rd32(device, 0x00280c + (unit * 0x10)); gk104_fifo_intr_fault() 374 eu = nvkm_enum_find(gk104_fifo_fault_engine, unit); gk104_fifo_intr_fault() 405 unit, eu ? eu->name : "", client, gpcid, ec ? ec->name : "", gk104_fifo_intr_fault() 450 gk104_fifo_intr_pbdma_0(struct gk104_fifo *fifo, int unit) gk104_fifo_intr_pbdma_0() argument 454 u32 mask = nvkm_rd32(device, 0x04010c + (unit * 0x2000)); gk104_fifo_intr_pbdma_0() 455 u32 stat = nvkm_rd32(device, 0x040108 + (unit * 0x2000)) & mask; gk104_fifo_intr_pbdma_0() 456 u32 addr = nvkm_rd32(device, 0x0400c0 + (unit * 0x2000)); gk104_fifo_intr_pbdma_0() 457 u32 data = nvkm_rd32(device, 0x0400c4 + (unit * 0x2000)); gk104_fifo_intr_pbdma_0() 458 u32 chid = nvkm_rd32(device, 0x040120 + (unit * 0x2000)) & 0xfff; gk104_fifo_intr_pbdma_0() 471 nvkm_wr32(device, 0x0400c0 + (unit * 0x2000), 0x80600008); gk104_fifo_intr_pbdma_0() 479 unit, show, msg, chid, chan ? chan->inst->addr : 0, gk104_fifo_intr_pbdma_0() 485 nvkm_wr32(device, 0x040108 + (unit * 0x2000), stat); gk104_fifo_intr_pbdma_0() 498 gk104_fifo_intr_pbdma_1(struct gk104_fifo *fifo, int unit) gk104_fifo_intr_pbdma_1() argument 502 u32 mask = nvkm_rd32(device, 0x04014c + (unit * 0x2000)); gk104_fifo_intr_pbdma_1() 503 u32 stat = nvkm_rd32(device, 0x040148 + (unit * 0x2000)) & mask; gk104_fifo_intr_pbdma_1() 504 u32 chid = nvkm_rd32(device, 0x040120 + (unit * 0x2000)) & 0xfff; gk104_fifo_intr_pbdma_1() 510 unit, stat, msg, chid, gk104_fifo_intr_pbdma_1() 511 nvkm_rd32(device, 0x040150 + (unit * 0x2000)), gk104_fifo_intr_pbdma_1() 512 nvkm_rd32(device, 0x040154 + (unit * 0x2000))); gk104_fifo_intr_pbdma_1() 515 nvkm_wr32(device, 0x040148 + (unit * 0x2000), stat); gk104_fifo_intr_pbdma_1() 591 u32 unit = __ffs(mask); gk104_fifo_intr() local 592 gk104_fifo_intr_fault(fifo, unit); gk104_fifo_intr() 593 nvkm_wr32(device, 0x00259c, (1 << unit)); gk104_fifo_intr() 594 mask &= ~(1 << unit); gk104_fifo_intr() 602 u32 unit = __ffs(mask); gk104_fifo_intr() local 603 gk104_fifo_intr_pbdma_0(fifo, unit); gk104_fifo_intr() 604 gk104_fifo_intr_pbdma_1(fifo, unit); gk104_fifo_intr() 605 nvkm_wr32(device, 0x0025a0, (1 << unit)); gk104_fifo_intr() 606 mask &= ~(1 << unit); gk104_fifo_intr() 689 nvkm_debug(subdev, "%d PBDMA unit(s)\n", fifo->spoon_nr); gk104_fifo_init()
|
H A D | gf100.c | 289 gf100_fifo_intr_fault(struct gf100_fifo *fifo, int unit) gf100_fifo_intr_fault() argument 293 u32 inst = nvkm_rd32(device, 0x002800 + (unit * 0x10)); gf100_fifo_intr_fault() 294 u32 valo = nvkm_rd32(device, 0x002804 + (unit * 0x10)); gf100_fifo_intr_fault() 295 u32 vahi = nvkm_rd32(device, 0x002808 + (unit * 0x10)); gf100_fifo_intr_fault() 296 u32 stat = nvkm_rd32(device, 0x00280c + (unit * 0x10)); gf100_fifo_intr_fault() 309 eu = nvkm_enum_find(gf100_fifo_fault_engine, unit); gf100_fifo_intr_fault() 340 unit, eu ? eu->name : "", client, gpcid, ec ? ec->name : "", gf100_fifo_intr_fault() 359 gf100_fifo_intr_pbdma(struct gf100_fifo *fifo, int unit) gf100_fifo_intr_pbdma() argument 363 u32 stat = nvkm_rd32(device, 0x040108 + (unit * 0x2000)); gf100_fifo_intr_pbdma() 364 u32 addr = nvkm_rd32(device, 0x0400c0 + (unit * 0x2000)); gf100_fifo_intr_pbdma() 365 u32 data = nvkm_rd32(device, 0x0400c4 + (unit * 0x2000)); gf100_fifo_intr_pbdma() 366 u32 chid = nvkm_rd32(device, 0x040120 + (unit * 0x2000)) & 0x7f; gf100_fifo_intr_pbdma() 386 unit, show, msg, chid, chan ? chan->inst->addr : 0, gf100_fifo_intr_pbdma() 392 nvkm_wr32(device, 0x0400c0 + (unit * 0x2000), 0x80600008); gf100_fifo_intr_pbdma() 393 nvkm_wr32(device, 0x040108 + (unit * 0x2000), stat); gf100_fifo_intr_pbdma() 446 u32 unit = __ffs(mask); gf100_fifo_intr_engine() local 447 gf100_fifo_intr_engine_unit(fifo, unit); gf100_fifo_intr_engine() 448 mask &= ~(1 << unit); gf100_fifo_intr_engine() 491 u32 unit = __ffs(mask); gf100_fifo_intr() local 492 gf100_fifo_intr_fault(fifo, unit); gf100_fifo_intr() 493 nvkm_wr32(device, 0x00259c, (1 << unit)); gf100_fifo_intr() 494 mask &= ~(1 << unit); gf100_fifo_intr() 502 u32 unit = __ffs(mask); gf100_fifo_intr() local 503 gf100_fifo_intr_pbdma(fifo, unit); gf100_fifo_intr() 504 nvkm_wr32(device, 0x0025a0, (1 << unit)); gf100_fifo_intr() 505 mask &= ~(1 << unit); gf100_fifo_intr() 578 nvkm_debug(subdev, "%d PBDMA unit(s)\n", fifo->spoon_nr); gf100_fifo_init()
|
/linux-4.4.14/drivers/media/pci/saa7164/ |
H A D | saa7164-cards.c | 64 .unit = {{ 110 .unit = {{ 156 .unit = {{ 216 .unit = {{ 276 .unit = {{ 336 .unit = {{ 396 .unit = {{ 452 .unit = {{ 512 .unit = {{ 558 .unit = {{ 604 .unit = {{ 873 * register access to 'processing units'. Each unit has a unique 889 struct saa7164_unit *unit; saa7164_i2caddr_to_unitid() local 893 unit = &saa7164_boards[dev->board].unit[i]; saa7164_i2caddr_to_unitid() 895 if (unit->type == SAA7164_UNIT_UNDEFINED) saa7164_i2caddr_to_unitid() 897 if ((bus->nr == unit->i2c_bus_nr) && saa7164_i2caddr_to_unitid() 898 (addr == unit->i2c_bus_addr)) saa7164_i2caddr_to_unitid() 899 return unit->id; saa7164_i2caddr_to_unitid() 916 struct saa7164_unit *unit; saa7164_i2caddr_to_reglen() local 920 unit = &saa7164_boards[dev->board].unit[i]; saa7164_i2caddr_to_reglen() 922 if (unit->type == SAA7164_UNIT_UNDEFINED) saa7164_i2caddr_to_reglen() 925 if ((bus->nr == unit->i2c_bus_nr) && saa7164_i2caddr_to_reglen() 926 (addr == unit->i2c_bus_addr)) saa7164_i2caddr_to_reglen() 927 return unit->i2c_reg_len; saa7164_i2caddr_to_reglen() 941 struct saa7164_unit *unit; saa7164_unitid_name() local 948 unit = &saa7164_boards[dev->board].unit[i]; saa7164_unitid_name() 950 if (unit->type == SAA7164_UNIT_UNDEFINED) saa7164_unitid_name() 953 if (unitid == unit->id) saa7164_unitid_name() 954 return unit->name; saa7164_unitid_name()
|
/linux-4.4.14/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.4.14/arch/mn10300/proc-mn103e010/include/proc/ |
H A D | clock.h | 14 #include <unit/clock.h>
|
/linux-4.4.14/arch/mn10300/proc-mn2ws0050/include/proc/ |
H A D | clock.h | 18 #include <unit/clock.h>
|
/linux-4.4.14/drivers/staging/sm750fb/ |
H A D | ddk750_chip.h | 44 * Speed of main chip clock in MHz unit 49 * Speed of memory clock in MHz unit 54 * Speed of master clock in MHz unit
|
/linux-4.4.14/tools/perf/util/ |
H A D | pmu.h | 31 const char *unit; member in struct:perf_pmu_info 37 #define UNIT_MAX_LEN 31 /* max length for event unit name */ 43 char unit[UNIT_MAX_LEN+1]; member in struct:perf_pmu_alias
|
H A D | pmu.c | 150 snprintf(path, PATH_MAX, "%s/%s.unit", dir, name); perf_pmu__parse_unit() 156 sret = read(fd, alias->unit, UNIT_MAX_LEN); perf_pmu__parse_unit() 162 if (alias->unit[sret - 1] == '\n') perf_pmu__parse_unit() 163 alias->unit[sret - 1] = '\0'; perf_pmu__parse_unit() 165 alias->unit[sret] = '\0'; perf_pmu__parse_unit() 170 alias->unit[0] = '\0'; perf_pmu__parse_unit() 221 alias->unit[0] = '\0'; __perf_pmu__new_alias() 234 * load unit name and scale if available __perf_pmu__new_alias() 266 if (len > 5 && !strcmp(name + len - 5, ".unit")) pmu_alias_info_file() 821 * define unit, scale and snapshot, fail check_info_data() 824 if ((info->unit && alias->unit) || check_info_data() 829 if (alias->unit) check_info_data() 830 info->unit = alias->unit; check_info_data() 855 * Mark unit and scale as not set perf_pmu__check_alias() 858 info->unit = NULL; perf_pmu__check_alias() 882 * if no unit or scale foundin aliases, then 884 * unit cannot left to NULL 886 if (info->unit == NULL) 887 info->unit = "";
|
/linux-4.4.14/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.4.14/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.4.14/arch/x86/kvm/ |
H A D | mtrr.c | 142 * - unit, it corresponds to the MSR entry in the segment. 156 /* MSR_MTRRfix64K_00000, 1 unit. 64K fixed mtrr. */ 188 * The size of unit is covered in one MSR, one MSR entry contains 189 * 8 ranges so that unit size is always 8 * 2^range_shift. 196 static bool fixed_msr_to_seg_unit(u32 msr, int *seg, int *unit) fixed_msr_to_seg_unit() argument 201 *unit = 0; fixed_msr_to_seg_unit() 205 *unit = msr - MSR_MTRRfix16K_80000; fixed_msr_to_seg_unit() 209 *unit = msr - MSR_MTRRfix4K_C0000; fixed_msr_to_seg_unit() 218 static void fixed_mtrr_seg_unit_range(int seg, int unit, u64 *start, u64 *end) fixed_mtrr_seg_unit_range() argument 223 *start = mtrr_seg->start + unit * unit_size; fixed_mtrr_seg_unit_range() 228 static int fixed_mtrr_seg_unit_range_index(int seg, int unit) fixed_mtrr_seg_unit_range_index() argument 232 WARN_ON(mtrr_seg->start + unit * fixed_mtrr_seg_unit_size(seg) fixed_mtrr_seg_unit_range_index() 235 /* each unit has 8 ranges. */ fixed_mtrr_seg_unit_range_index() 236 return mtrr_seg->range_start + 8 * unit; fixed_mtrr_seg_unit_range_index() 250 int seg, unit; fixed_msr_to_range() local 252 if (!fixed_msr_to_seg_unit(msr, &seg, &unit)) fixed_msr_to_range() 255 fixed_mtrr_seg_unit_range(seg, unit, start, end); fixed_msr_to_range() 261 int seg, unit; fixed_msr_to_range_index() local 263 if (!fixed_msr_to_seg_unit(msr, &seg, &unit)) fixed_msr_to_range_index() 266 return fixed_mtrr_seg_unit_range_index(seg, unit); fixed_msr_to_range_index()
|
H A D | i8254.h | 28 s64 period; /* unit: ns */
|
/linux-4.4.14/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.4.14/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 | 63 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.4.14/drivers/staging/rdma/ipath/ |
H A D | ipath_fs.c | 229 char unit[10]; create_device_files() local 232 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); create_device_files() 233 ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir, create_device_files() 236 printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret); create_device_files() 244 "failed: %d\n", unit, ret); create_device_files() 252 "failed: %d\n", unit, ret); create_device_files() 294 char unit[10]; remove_device_files() local 299 snprintf(unit, sizeof unit, "%02d", dd->ipath_unit); remove_device_files() 300 dir = lookup_one_len(unit, root, strlen(unit)); remove_device_files() 304 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.4.14/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_kms.h | 39 * @fifo_commit: Callback that is called once for each display unit after 42 * @clip: Callback that is called for each cliprect on each display unit. 45 * each display unit. Set up by the caller. 47 * @unit: The current display unit. Set up by the helper before a call to @clip. 50 * @num_hits: Number of clip rect commands for this display unit. 69 struct vmw_display_unit *unit; member in struct:vmw_kms_dirty 142 * Base class display unit. 145 * so the display unit is all of them at the same time. This is true for both 165 unsigned unit; member in struct:vmw_display_unit 190 * Shared display unit functions - vmwgfx_kms.c 250 unsigned unit, 259 * Legacy display unit functions - vmwgfx_ldu.c
|
H A D | vmwgfx_stdu.c | 101 * @defined: true if the current display unit has been initialized 187 * @stdu: display unit to create a Screen Target for 213 cmd->body.stid = stdu->base.unit; vmw_stdu_define_st() 239 * @stdu: display unit affected 275 cmd->body.stid = stdu->base.unit; vmw_stdu_bind_st() 288 * @unit: Screen target unit. 294 static void vmw_stdu_populate_update(void *cmd, int unit, vmw_stdu_populate_update() argument 302 update->body.stid = unit; vmw_stdu_populate_update() 313 * @stdu: display unit affected 340 vmw_stdu_populate_update(cmd, stdu->base.unit, 0, crtc->mode.hdisplay, vmw_stdu_update_st() 354 * @stdu: display unit to destroy 381 cmd->body.stid = stdu->base.unit; vmw_stdu_destroy_st() 783 container_of(dirty->unit, typeof(*stdu), base); vmw_stdu_dmabuf_fifo_commit() 809 vmw_stdu_populate_update(&suffix[1], stdu->base.unit, vmw_stdu_dmabuf_fifo_commit() 900 container_of(dirty->unit, typeof(*stdu), base); vmw_kms_stdu_surface_clip() 938 container_of(dirty->unit, typeof(*stdu), base); vmw_kms_stdu_surface_fifo_commit() 963 vmw_stdu_populate_update(update, stdu->base.unit, sdirty->left, vmw_kms_stdu_surface_fifo_commit() 1118 * @unit: unit number range from 0 to VMWGFX_NUM_DISPLAY_UNITS 1121 * display unit to represent that CRTC. Since the SVGA device does not separate 1124 static int vmw_stdu_init(struct vmw_private *dev_priv, unsigned unit) vmw_stdu_init() argument 1137 stdu->base.unit = unit; vmw_stdu_init() 1142 stdu->base.pref_active = (unit == 0); vmw_stdu_init() 1154 encoder->possible_crtcs = (1 << unit); vmw_stdu_init()
|
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()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/include/media/ |
H A D | sh_mobile_csi2.h | 2 * Driver header for the SH-Mobile MIPI CSI-2 unit
|
/linux-4.4.14/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.4.14/arch/mn10300/unit-asb2364/include/unit/ |
H A D | clock.h | 1 /* clock.h: unit-specific clocks
|
/linux-4.4.14/drivers/media/usb/uvc/ |
H A D | uvc_driver.c | 283 * Terminal and unit management 883 struct uvc_entity *unit; uvc_parse_vendor_control() local 915 * extension unit. uvc_parse_vendor_control() 928 unit = uvc_alloc_entity(UVC_VC_EXTENSION_UNIT, buffer[3], uvc_parse_vendor_control() 930 if (unit == NULL) uvc_parse_vendor_control() 933 memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); uvc_parse_vendor_control() 934 unit->extension.bNumControls = buffer[20]; uvc_parse_vendor_control() 935 memcpy(unit->baSourceID, &buffer[22], p); uvc_parse_vendor_control() 936 unit->extension.bControlSize = buffer[22+p]; uvc_parse_vendor_control() 937 unit->extension.bmControls = (__u8 *)unit + sizeof(*unit); uvc_parse_vendor_control() 938 unit->extension.bmControlsType = (__u8 *)unit + sizeof(*unit) uvc_parse_vendor_control() 940 memcpy(unit->extension.bmControls, &buffer[23+p], 2*n); uvc_parse_vendor_control() 943 usb_string(udev, buffer[24+p+2*n], unit->name, uvc_parse_vendor_control() 944 sizeof unit->name); uvc_parse_vendor_control() 946 sprintf(unit->name, "Extension %u", buffer[3]); uvc_parse_vendor_control() 948 list_add_tail(&unit->list, &dev->entities); uvc_parse_vendor_control() 960 struct uvc_entity *unit, *term; uvc_parse_standard_control() local 1003 * could be confused with a unit. uvc_parse_standard_control() 1084 * could be confused with a unit. uvc_parse_standard_control() 1121 unit = uvc_alloc_entity(buffer[2], buffer[3], p + 1, 0); uvc_parse_standard_control() 1122 if (unit == NULL) uvc_parse_standard_control() 1125 memcpy(unit->baSourceID, &buffer[5], p); uvc_parse_standard_control() 1128 usb_string(udev, buffer[5+p], unit->name, uvc_parse_standard_control() 1129 sizeof unit->name); uvc_parse_standard_control() 1131 sprintf(unit->name, "Selector %u", buffer[3]); uvc_parse_standard_control() 1133 list_add_tail(&unit->list, &dev->entities); uvc_parse_standard_control() 1147 unit = uvc_alloc_entity(buffer[2], buffer[3], 2, n); uvc_parse_standard_control() 1148 if (unit == NULL) uvc_parse_standard_control() 1151 memcpy(unit->baSourceID, &buffer[4], 1); uvc_parse_standard_control() 1152 unit->processing.wMaxMultiplier = uvc_parse_standard_control() 1154 unit->processing.bControlSize = buffer[7]; uvc_parse_standard_control() 1155 unit->processing.bmControls = (__u8 *)unit + sizeof *unit; uvc_parse_standard_control() 1156 memcpy(unit->processing.bmControls, &buffer[8], n); uvc_parse_standard_control() 1158 unit->processing.bmVideoStandards = buffer[9+n]; uvc_parse_standard_control() 1161 usb_string(udev, buffer[8+n], unit->name, uvc_parse_standard_control() 1162 sizeof unit->name); uvc_parse_standard_control() 1164 sprintf(unit->name, "Processing %u", buffer[3]); uvc_parse_standard_control() 1166 list_add_tail(&unit->list, &dev->entities); uvc_parse_standard_control() 1180 unit = uvc_alloc_entity(buffer[2], buffer[3], p + 1, n); uvc_parse_standard_control() 1181 if (unit == NULL) uvc_parse_standard_control() 1184 memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); uvc_parse_standard_control() 1185 unit->extension.bNumControls = buffer[20]; uvc_parse_standard_control() 1186 memcpy(unit->baSourceID, &buffer[22], p); uvc_parse_standard_control() 1187 unit->extension.bControlSize = buffer[22+p]; uvc_parse_standard_control() 1188 unit->extension.bmControls = (__u8 *)unit + sizeof *unit; uvc_parse_standard_control() 1189 memcpy(unit->extension.bmControls, &buffer[23+p], n); uvc_parse_standard_control() 1192 usb_string(udev, buffer[23+p+n], unit->name, uvc_parse_standard_control() 1193 sizeof unit->name); uvc_parse_standard_control() 1195 sprintf(unit->name, "Extension %u", buffer[3]); uvc_parse_standard_control() 1197 list_add_tail(&unit->list, &dev->entities); uvc_parse_standard_control() 1283 * Extension Units connected to the main chain as single-unit branches are 1295 uvc_trace(UVC_TRACE_DESCR, "Extension unit %d has more " uvc_scan_chain_entity() 1390 uvc_trace(UVC_TRACE_DESCR, "Extension unit %d " uvc_scan_chain_forward() 1461 uvc_trace(UVC_TRACE_DESCR, "Selector unit %d " uvc_scan_chain_backward()
|
/linux-4.4.14/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, 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); 373 * The /dev/ppp device is used by pppd to control the ppp unit. 376 * unattached, attached to a ppp unit, or attached to a ppp channel. 575 int unit, cflags; ppp_ioctl() local 626 if (get_user(unit, p)) ppp_ioctl() 628 err = ppp_connect_channel(pch, unit); ppp_ioctl() 837 int unit, err = -EFAULT; ppp_unattached_ioctl() local 845 /* Create a new ppp unit */ ppp_unattached_ioctl() 846 if (get_user(unit, p)) ppp_unattached_ioctl() 848 ppp = ppp_create_interface(net, unit, file, &err); ppp_unattached_ioctl() 859 /* Attach to an existing ppp unit */ ppp_unattached_ioctl() 860 if (get_user(unit, p)) ppp_unattached_ioctl() 865 ppp = ppp_find_unit(pn, unit); ppp_unattached_ioctl() 875 if (get_user(unit, p)) ppp_unattached_ioctl() 880 chan = ppp_find_channel(pn, unit); ppp_unattached_ioctl() 997 * Network interface unit routines. 1664 /* see if there is anything from the attached unit to be sent */ ppp_channel_push() 1757 * The receive side of the ppp unit is locked. 2053 * side of the ppp unit locked. ppp_receive_mp_frame() 2103 ppp unit receive-side lock. */ skb_queue_walk() 2329 * Return the PPP unit number to which a channel is connected. 2334 int unit = -1; ppp_unit_number() local 2339 unit = pch->ppp->file.index; ppp_unit_number() 2342 return unit; ppp_unit_number() 2715 * Create a new ppp interface unit. Fails if it can't allocate memory 2716 * or if there is already a unit with the requested number. 2717 * unit == -1 means allocate a new number. 2719 static struct ppp *ppp_create_interface(struct net *net, int unit, ppp_create_interface() argument 2764 if (unit < 0) { ppp_create_interface() 2765 unit = unit_get(&pn->units_idr, ppp); ppp_create_interface() 2766 if (unit < 0) { ppp_create_interface() 2767 ret = unit; ppp_create_interface() 2772 if (unit_find(&pn->units_idr, unit)) ppp_create_interface() 2773 goto out2; /* unit already exists */ ppp_create_interface() 2775 * if caller need a specified unit number ppp_create_interface() 2777 * he should better ask us for new unit number ppp_create_interface() 2781 * new unit in this case so user is happy :) ppp_create_interface() 2783 unit = unit_set(&pn->units_idr, ppp, unit); ppp_create_interface() 2784 if (unit < 0) ppp_create_interface() 2788 /* Initialize the new ppp unit */ ppp_create_interface() 2789 ppp->file.index = unit; ppp_create_interface() 2790 sprintf(dev->name, "ppp%d", unit); ppp_create_interface() 2794 unit_put(&pn->units_idr, unit); ppp_create_interface() 2832 * Free the memory used by a ppp unit. This is only called once 2833 * there are no channels connected to the unit and no file structs 2834 * that reference the unit. 2876 * Locate an existing ppp unit. 2880 ppp_find_unit(struct ppp_net *pn, int unit) ppp_find_unit() argument 2882 return unit_find(&pn->units_idr, unit); ppp_find_unit() 2894 ppp_find_channel(struct ppp_net *pn, int unit) ppp_find_channel() argument 2899 if (pch->file.index == unit) { ppp_find_channel() 2906 if (pch->file.index == unit) ppp_find_channel() 2914 * Connect a PPP channel to a PPP interface unit. 2917 ppp_connect_channel(struct channel *pch, int unit) ppp_connect_channel() argument 2927 ppp = ppp_find_unit(pn, unit); ppp_connect_channel() 2956 * Disconnect a channel from its ppp unit. 2969 /* remove it from the ppp unit's list */ ppp_disconnect_channel() 3018 int unit; unit_set() local 3020 unit = idr_alloc(p, ptr, n, n + 1, GFP_KERNEL); unit_set() 3021 if (unit == -ENOSPC) unit_set() 3022 unit = -EINVAL; unit_set() 3023 return unit; unit_set() 3026 /* get new free unit number and associate pointer with it */ unit_get() 3032 /* 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.4.14/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() 2882 * the local unit device(s) are created, a single management handler fwserial_init() 2899 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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/gpu/drm/amd/include/ |
H A D | atombios.h | 433 ULONG ulClockFreq:24; // in unit of 10kHz 435 ULONG ulClockFreq:24; // in unit of 10kHz 571 ULONG ulTargetEngineClock; //In 10Khz unit 576 ULONG ulTargetEngineClock; //In 10Khz unit 585 ULONG ulTargetMemoryClock; //In 10Khz unit 590 ULONG ulTargetMemoryClock; //In 10Khz unit 599 ULONG ulDefaultEngineClock; //In 10Khz unit 600 ULONG ulDefaultMemoryClock; //In 10Khz unit 617 ASIC_INIT_CLOCK_PARAMETERS asSclkClock; //In 10Khz unit 618 ASIC_INIT_CLOCK_PARAMETERS asMemClock; //In 10Khz unit 1471 USHORT usPwmFreq; // in unit of Hz, 200 means 200Hz 1584 USHORT usPixelClock; // in 10kHz unit; for bios convenient = (RefClk*FB_Div)/(Ref_Div*Post_Div) 1604 USHORT usPixelClock; // in 10kHz unit; for bios convenient = (RefClk*FB_Div)/(Ref_Div*Post_Div) 1651 USHORT usPixelClock; // in 10kHz unit; for bios convenient = (RefClk*FB_Div)/(Ref_Div*Post_Div) 1856 ULONG ulReturnMemoryClock; // current memory speed in 10KHz unit 1865 ULONG ulReturnEngineClock; // current engine speed in 10KHz unit 1928 USHORT usPwrBudget; //how much power currently boot to in unit of watt 1935 USHORT usPwrBudget; //how much power currently boot to in unit of watt 2046 ULONG ulTargetMemoryClock; //In 10Khz unit 2286 USHORT usVoltageLevel; // real voltage level in unit of mv or Voltage Phase (0, 1, 2, .. ) 2337 USHORT usVoltageLevel; // Input: real voltage level in unit of mv or Voltage Phase (0, 1, 2, .. ) or Leakage Id 2376 USHORT usVoltageLevel; // Input: real voltage level in unit of mv or Voltage Phase (0, 1, 2, .. ) or Leakage Id 2386 USHORT usVoltageLevel; // real voltage level in unit of mv 2388 USHORT usTDP_Current; // TDP_Current in unit of 0.01A 2389 USHORT usTDP_Power; // TDP_Current in unit of 0.1W 2582 ULONG ulDefaultEngineClock; //In 10Khz unit 2583 ULONG ulDefaultMemoryClock; //In 10Khz unit 2584 ULONG ulDriverTargetEngineClock; //In 10Khz unit 2585 ULONG ulDriverTargetMemoryClock; //In 10Khz unit 2586 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2587 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2588 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2589 ULONG ulASICMaxEngineClock; //In 10Khz unit 2590 ULONG ulASICMaxMemoryClock; //In 10Khz unit 2594 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2595 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2596 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2597 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2598 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2599 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2600 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2601 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2602 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2603 USHORT usMinPixelClockPLL_Output; //In 10Khz unit, the definitions above can't change!!! 2605 USHORT usReferenceClock; //In 10Khz unit 2606 USHORT usPM_RTS_Location; //RTS PM4 starting location in ROM in 1Kb unit 2607 UCHAR ucPM_RTS_StreamSize; //RTS PM4 packets in Kb unit 2616 ULONG ulDefaultEngineClock; //In 10Khz unit 2617 ULONG ulDefaultMemoryClock; //In 10Khz unit 2618 ULONG ulDriverTargetEngineClock; //In 10Khz unit 2619 ULONG ulDriverTargetMemoryClock; //In 10Khz unit 2620 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2621 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2622 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2623 ULONG ulASICMaxEngineClock; //In 10Khz unit 2624 ULONG ulASICMaxMemoryClock; //In 10Khz unit 2629 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2630 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2631 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2632 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2633 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2634 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2635 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2636 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2637 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2638 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2639 USHORT usMinPixelClockPLL_Output; //In 10Khz unit - lower 16bit of ulMinPixelClockPLL_Output 2641 USHORT usReferenceClock; //In 10Khz unit 2642 USHORT usPM_RTS_Location; //RTS PM4 starting location in ROM in 1Kb unit 2643 UCHAR ucPM_RTS_StreamSize; //RTS PM4 packets in Kb unit 2652 ULONG ulDefaultEngineClock; //In 10Khz unit 2653 ULONG ulDefaultMemoryClock; //In 10Khz unit 2654 ULONG ulDriverTargetEngineClock; //In 10Khz unit 2655 ULONG ulDriverTargetMemoryClock; //In 10Khz unit 2656 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2657 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2658 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2659 ULONG ulASICMaxEngineClock; //In 10Khz unit 2660 ULONG ulASICMaxMemoryClock; //In 10Khz unit 2665 ULONG ul3DAccelerationEngineClock;//In 10Khz unit 2666 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2667 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2668 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2669 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2670 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2671 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2672 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2673 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2674 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2675 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2676 USHORT usMinPixelClockPLL_Output; //In 10Khz unit - lower 16bit of ulMinPixelClockPLL_Output 2678 USHORT usReferenceClock; //In 10Khz unit 2679 USHORT usPM_RTS_Location; //RTS PM4 starting location in ROM in 1Kb unit 2680 UCHAR ucPM_RTS_StreamSize; //RTS PM4 packets in Kb unit 2689 ULONG ulDefaultEngineClock; //In 10Khz unit 2690 ULONG ulDefaultMemoryClock; //In 10Khz unit 2691 ULONG ulDriverTargetEngineClock; //In 10Khz unit 2692 ULONG ulDriverTargetMemoryClock; //In 10Khz unit 2693 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2694 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2695 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2696 ULONG ulASICMaxEngineClock; //In 10Khz unit 2697 ULONG ulASICMaxMemoryClock; //In 10Khz unit 2700 USHORT usBootUpVDDCVoltage; //In MV unit 2701 USHORT usLcdMinPixelClockPLL_Output; // In MHz unit 2702 USHORT usLcdMaxPixelClockPLL_Output; // In MHz unit 2703 ULONG ul3DAccelerationEngineClock;//In 10Khz unit 2704 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2705 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2706 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2707 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2708 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2709 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2710 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2711 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2712 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2713 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2714 USHORT usMinPixelClockPLL_Output; //In 10Khz unit - lower 16bit of ulMinPixelClockPLL_Output 2716 USHORT usReferenceClock; //In 10Khz unit 2717 USHORT usPM_RTS_Location; //RTS PM4 starting location in ROM in 1Kb unit 2718 UCHAR ucPM_RTS_StreamSize; //RTS PM4 packets in Kb unit 2728 ULONG ulDefaultEngineClock; //In 10Khz unit 2729 ULONG ulDefaultMemoryClock; //In 10Khz unit 2732 ULONG ulMaxEngineClockPLL_Output; //In 10Khz unit 2733 ULONG ulMaxMemoryClockPLL_Output; //In 10Khz unit 2734 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2736 ULONG ulDefaultDispEngineClkFreq; //In 10Khz unit 2739 USHORT usBootUpVDDCVoltage; //In MV unit 2740 USHORT usLcdMinPixelClockPLL_Output; // In MHz unit 2741 USHORT usLcdMaxPixelClockPLL_Output; // In MHz unit 2743 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2744 USHORT usMinEngineClockPLL_Input; //In 10Khz unit 2745 USHORT usMaxEngineClockPLL_Input; //In 10Khz unit 2746 USHORT usMinEngineClockPLL_Output; //In 10Khz unit 2747 USHORT usMinMemoryClockPLL_Input; //In 10Khz unit 2748 USHORT usMaxMemoryClockPLL_Input; //In 10Khz unit 2749 USHORT usMinMemoryClockPLL_Output; //In 10Khz unit 2750 USHORT usMaxPixelClock; //In 10Khz unit, Max. Pclk 2751 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2752 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2753 USHORT usMinPixelClockPLL_Output; //In 10Khz unit - lower 16bit of ulMinPixelClockPLL_Output 2755 USHORT usCoreReferenceClock; //In 10Khz unit 2756 USHORT usMemoryReferenceClock; //In 10Khz unit 2757 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 2778 ULONG ulDefaultEngineClock; //In 10Khz unit 2779 ULONG ulDefaultMemoryClock; //In 10Khz unit 2780 ULONG ulSPLL_OutputFreq; //In 10Khz unit 2781 ULONG ulGPUPLL_OutputFreq; //In 10Khz unit 2782 ULONG ulReserved1; //Was ulMaxEngineClockPLL_Output; //In 10Khz unit* 2783 ULONG ulReserved2; //Was ulMaxMemoryClockPLL_Output; //In 10Khz unit* 2784 ULONG ulMaxPixelClockPLL_Output; //In 10Khz unit 2786 ULONG ulDefaultDispEngineClkFreq; //In 10Khz unit. This is the frequency before DCDTO, corresponding to usBootUpVDDCVoltage. 2789 USHORT usBootUpVDDCVoltage; //In MV unit 2790 USHORT usLcdMinPixelClockPLL_Output; // In MHz unit 2791 USHORT usLcdMaxPixelClockPLL_Output; // In MHz unit 2793 ULONG ulMinPixelClockPLL_Output; //In 10Khz unit 2798 USHORT usReserved11; //Was usMaxPixelClock; //In 10Khz unit, Max. Pclk used only for DAC 2799 USHORT usMinPixelClockPLL_Input; //In 10Khz unit 2800 USHORT usMaxPixelClockPLL_Input; //In 10Khz unit 2801 USHORT usBootUpVDDCIVoltage; //In unit of mv; Was usMinPixelClockPLL_Output; 2803 USHORT usCoreReferenceClock; //In 10Khz unit 2804 USHORT usMemoryReferenceClock; //In 10Khz unit 2805 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 2810 USHORT usBootUpMVDDCVoltage; //In unit of mv; Was usMinPixelClockPLL_Output; 2811 USHORT usBootUpVDDGFXVoltage; //In unit of mv; 2833 ULONG ulBootUpEngineClock; //in 10kHz unit 2834 ULONG ulBootUpMemoryClock; //in 10kHz unit 2835 ULONG ulMaxSystemMemoryClock; //in 10kHz unit 2836 ULONG ulMinSystemMemoryClock; //in 10kHz unit 2844 USHORT usFSBClock; //In MHz unit 2849 USHORT usK8MemoryClock; //in MHz unit 2850 USHORT usK8SyncStartDelay; //in 0.01 us unit 2851 USHORT usK8DataReturnTime; //in 0.01 us unit 2905 ULONG ulBootUpEngineClock; //in 10kHz unit 2907 ULONG ulBootUpUMAClock; //in 10kHz unit 2908 ULONG ulBootUpSidePortClock; //in 10kHz unit 2909 ULONG ulMinSidePortClock; //in 10kHz unit 3021 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 3079 ULONG ulBootUpEngineClock; //in 10kHz unit 3080 ULONG ulDentistVCOFreq; //Dentist VCO clock in 10kHz unit, the source of GPU SCLK, LCLK, UCLK and VCLK. 3081 ULONG ulLClockFreq; //GPU Lclk freq in 10kHz unit, have relationship with NCLK in NorthBridge 3082 ULONG ulBootUpUMAClock; //in 10kHz unit 3485 USHORT usPixelClock; //in 10Khz unit 4581 USHORT usVDDCBaseLevel; //In number of 50mv unit 4585 UCHAR ucVoltageStep; //Indicating in how many mv increament is one step, 0.5mv unit 4602 USHORT usVoltageBaseLevel; // In number of 1mv unit 4603 USHORT usVoltageStep; // Indicating in how many mv increament is one step, 1mv unit 4748 UCHAR ucPhaseDelay; // phase delay in unit of micro second 5001 USHORT usSensPwr; // in unit of watt 5027 ULONG ulMaximumSupportedCLK; // Maximum clock supported with specified voltage index, unit in 10kHz 5033 USHORT usVoltageLevel; // The real Voltage Level round up value in unit of mv, 5034 ULONG ulMaximumSupportedCLK; // Maximum clock supported with specified voltage index, unit in 10kHz 5039 ULONG ulSupportedSCLK; // Maximum clock supported with specified voltage index, unit in 10kHz 5123 ulBootUpEngineClock: VBIOS bootup Engine clock frequency, in 10kHz unit. if it is equal 0, then VBIOS use pre-defined bootup engine clock 5124 ulDentistVCOFreq: Dentist VCO clock in 10kHz unit. 5125 ulBootUpUMAClock: System memory boot up clock frequency in 10Khz unit. 5165 ulMinEngineClock: Minimum SCLK allowed in 10kHz unit. This is calculated based on WRCK Fuse settings. 5194 usPCIEClkSSPercentage: PCIE Clock Spred Spectrum Percentage in unit 0.01%; 100 mean 1%. 5196 usLvdsSSPercentage: LVDS panel ( not include eDP ) Spread Spectrum Percentage in unit of 0.01%, =0, use VBIOS default setting. 5197 usLvdsSSpreadRateIn10Hz: LVDS panel ( not include eDP ) Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5198 usHDMISSPercentage: HDMI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5199 usHDMISSpreadRateIn10Hz: HDMI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5200 usDVISSPercentage: DVI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5201 usDVISSpreadRateIn10Hz: DVI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5343 ulBootUpEngineClock: VBIOS bootup Engine clock frequency, in 10kHz unit. if it is equal 0, then VBIOS use pre-defined bootup engine clock 5344 ulDentistVCOFreq: Dentist VCO clock in 10kHz unit. 5345 ulBootUpUMAClock: System memory boot up clock frequency in 10Khz unit. 5394 ulMinEngineClock: Minimum SCLK allowed in 10kHz unit. This is calculated based on WRCK Fuse settings. 5425 usPCIEClkSSPercentage: PCIE Clock Spread Spectrum Percentage in unit 0.01%; 100 mean 1%. 5427 usLvdsSSPercentage: LVDS panel ( not include eDP ) Spread Spectrum Percentage in unit of 0.01%, =0, use VBIOS default setting. 5428 usLvdsSSpreadRateIn10Hz: LVDS panel ( not include eDP ) Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5429 usHDMISSPercentage: HDMI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5430 usHDMISSpreadRateIn10Hz: HDMI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5431 usDVISSPercentage: DVI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5432 usDVISSpreadRateIn10Hz: DVI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5442 ucLVDSPwrOnSeqDIGONtoDE_in4Ms: LVDS power up sequence time in unit of 4ms, time delay from DIGON signal active to data enable signal active( DE ). 5445 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 ). 5449 ucLVDSPwrOffVARY_BLtoDE_in4Ms: LVDS power down sequence time in unit of 4ms, time delay from data enable ( DE ) signal off to LCDVCC (DIGON) off. 5453 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. 5457 ucLVDSOffToOnDelay_in4Ms: LVDS power down sequence time in unit of 4ms. Time delay from DIGON signal off to DIGON signal active. 5462 LVDS power up sequence time in unit of 4ms. Time delay from VARY_BL signal on to DLON signal active. 5467 LVDS power down sequence time in unit of 4ms. Time delay from BLON signal off to VARY_BL signal off. 5473 ulNbpStateMemclkFreq[4]: system memory clock frequncey in unit of 10Khz in different NB pstate. 5545 ulBootUpEngineClock: VBIOS bootup Engine clock frequency, in 10kHz unit. if it is equal 0, then VBIOS use pre-defined bootup engine clock 5546 ulDentistVCOFreq: Dentist VCO clock in 10kHz unit. 5547 ulBootUpUMAClock: System memory boot up clock frequency in 10Khz unit. 5626 usPCIEClkSSPercentage: PCIE Clock Spread Spectrum Percentage in unit 0.01%; 100 mean 1%. 5628 usLvdsSSPercentage: LVDS panel ( not include eDP ) Spread Spectrum Percentage in unit of 0.01%, =0, use VBIOS default setting. 5629 usLvdsSSpreadRateIn10Hz: LVDS panel ( not include eDP ) Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5630 usHDMISSPercentage: HDMI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5631 usHDMISSpreadRateIn10Hz: HDMI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5632 usDVISSPercentage: DVI Spread Spectrum Percentage in unit 0.01%; 100 mean 1%, =0, use VBIOS default setting. 5633 usDVISSpreadRateIn10Hz: DVI Spread Spectrum frequency in unit of 10Hz, =0, use VBIOS default setting. 5649 LVDS power up sequence time in unit of 4ms, time delay from DIGON signal active to data enable signal active( DE ). 5653 LVDS power up sequence time in unit of 4ms., time delay from DE( data enable ) active to Vary Brightness enable signal active( VARY_BL ). 5657 LVDS power down sequence time in unit of 4ms, time delay from data enable ( DE ) signal off to LCDVCC (DIGON) off. 5661 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. 5665 LVDS power down sequence time in unit of 4ms. Time delay from DIGON signal off to DIGON signal active. 5669 LVDS power up sequence time in unit of 4ms. Time delay from VARY_BL signal on to DLON signal active. 5674 LVDS power down sequence time in unit of 4ms. Time delay from BLON signal off to VARY_BL signal off. 5681 ulNbpStateMemclkFreq[4]: system memory clock frequncey in unit of 10Khz in different NB P-State(P0, P1, P2 & P3). 5891 ULONG ulTargetClockRange; //Clock Out frequence (VCO ), in unit of 10Khz 5892 USHORT usSpreadSpectrumPercentage; //in unit of 0.01% 5893 USHORT usSpreadRateInKhz; //in unit of kHz, modulation freq 5916 ULONG ulTargetClockRange; //For mem/engine/uvd, Clock Out frequence (VCO ), in unit of 10Khz 5918 USHORT usSpreadSpectrumPercentage; //in unit of 0.01% 5919 USHORT usSpreadRateIn10Hz; //in unit of 10Hz, modulation freq 5947 ULONG ulTargetClockRange; //For mem/engine/uvd, Clock Out frequence (VCO ), in unit of 10Khz 5949 USHORT usSpreadSpectrumPercentage; //in unit of 0.01% or 0.001%, decided by ucSpreadSpectrumMode bit4 5950 USHORT usSpreadRateIn10Hz; //in unit of 10Hz, modulation freq 6431 ULONG ulTargetMemoryClock; //In 10Khz unit 6908 ULONG ulClkRange; // memory clock in 10kHz unit, when target memory clock is below this clock, use this memory timing 6944 ULONG ulClkRange; // memory clock in 10kHz unit, when target memory clock is below this clock, use this memory timing 6980 ULONG ulClkRange; // memory clock in 10kHz unit, when target memory clock is below this clock, use this memory timing 7034 UCHAR ucRefreshRateFactor; // memory refresh rate in unit of ms 7082 // Total memory size in unit of 16MB for CONFIG_MEMSIZE - bit[23:0] zeros 7124 // Total memory size in unit of 16MB for CONFIG_MEMSIZE - bit[23:0] zeros 7156 // Total memory size in unit of 16MB for CONFIG_MEMSIZE - bit[23:0] zeros 7186 UCHAR ucMemorySize; // Total memory size in unit of 16MB for CONFIG_MEMSIZE - bit[23:0] zeros 7216 USHORT usMemorySize; // Total memory size in unit of MB for CONFIG_MEMSIZE zeros 7983 USHORT usMaxFrequency; // in 10kHz unit
|
/linux-4.4.14/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.4.14/drivers/staging/gdm724x/ |
H A D | netlink_k.h | 20 struct sock *netlink_init(int unit,
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
H A D | netlink_k.h | 20 struct sock *netlink_init(int unit, void (*cb)(struct net_device *dev, u16 type,
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
H A D | priv.h | 11 u32 unit; member in struct:nvkm_mc_intr
|
/linux-4.4.14/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 124 ktime_t timer_interval; /* in ktime_t unit */ 160 * scale delta to smallest unit (1/2^32) rapl_scale() 426 RAPL_EVENT_ATTR_STR(energy-cores.unit, rapl_cores_unit, "Joules"); 427 RAPL_EVENT_ATTR_STR(energy-pkg.unit , rapl_pkg_unit, "Joules"); 428 RAPL_EVENT_ATTR_STR(energy-ram.unit , rapl_ram_unit, "Joules"); 429 RAPL_EVENT_ATTR_STR(energy-gpu.unit , rapl_gpu_unit, "Joules"); 583 * DRAM domain on HSW server has fixed energy unit which can be rapl_hsw_server_quirk() 584 * different than the unit from power unit MSR. rapl_hsw_server_quirk() 617 * if hw unit is 32, then we use 2 ms 1/200/2 rapl_cpu_prepare() 780 " API unit is 2^-32 Joules," 787 pr_info("hw unit of domain %s 2^-%d Joules\n",
|
/linux-4.4.14/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.4.14/net/netfilter/ |
H A D | nft_limit.c | 57 u64 unit; nft_limit_init() local 64 unit = be64_to_cpu(nla_get_be64(tb[NFTA_LIMIT_UNIT])); nft_limit_init() 65 limit->nsecs = unit * NSEC_PER_SEC; nft_limit_init() 66 if (limit->rate == 0 || limit->nsecs < unit) nft_limit_init()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/mips/include/asm/mach-lantiq/xway/ |
H A D | lantiq_soc.h | 83 /* EBU - external bus unit */ 95 /* MPS - multi processor unit (voice) */
|
/linux-4.4.14/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.4.14/tools/power/cpupower/utils/ |
H A D | cpufreq-set.c | 66 const struct freq_units *unit; string_to_frequency() local 84 for (unit = def_units; unit->str_unit; unit++) { string_to_frequency() 86 scan[i] && tolower(scan[i]) == unit->str_unit[i]; string_to_frequency() 92 power = unit->power_of_ten; string_to_frequency()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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. 774 /* UAC2/UAC1 unit IDs overlap here in an check_input_term() 775 * uncompatible way. Ignore this unit for now. check_input_term() 808 /* feature unit control information */ 1036 /* USB descriptions contain the dB scale in 1/256 dB unit get_min_max_with_quirks() 1037 * while ALSA TLV contains in 1/100 dB unit get_min_max_with_quirks() 1058 /* get a feature/mixer unit info */ mixer_ctl_feature_info() 1093 /* get the current value from feature/mixer unit */ mixer_ctl_feature_get() 1125 /* put the current value to feature/mixer unit */ mixer_ctl_feature_put() 1183 * hook up to the standard feature unit control mechanism 1382 * parse a feature unit 1400 "unit %u: invalid bControlSize == 0\n", parse_audio_feature_unit() 1408 "unit %u: invalid UAC_FEATURE_UNIT descriptor\n", parse_audio_feature_unit() 1419 "unit %u: invalid UAC_FEATURE_UNIT descriptor\n", parse_audio_feature_unit() 1425 /* parse the source unit */ parse_audio_feature_unit() 1528 * build a mixer unit control 1530 * the callbacks are identical with feature unit. 1589 * parse a mixer unit 1644 /* get callback for processing/extension unit */ mixer_ctl_procunit_get() 1661 /* put callback for processing/extension unit */ mixer_ctl_procunit_put() 1680 /* alsa control interface for processing/extension unit */ 1781 * build a processing/extension unit 1906 * Note that we parse extension units with processing unit descriptors. parse_audio_extension_unit() 1918 * info callback for selector unit 1932 /* get callback for selector unit */ mixer_ctl_selector_get() 1949 /* put callback for selector unit */ mixer_ctl_selector_put() 1968 /* alsa control interface for selector unit */ 2001 * parse a selector unit 2111 * parse an audio unit recursively 2119 return 0; /* the unit already visited */ parse_audio_unit() 2123 usb_audio_err(state->chip, "unit %d not found!\n", unitid); parse_audio_unit() 2154 "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.4.14/drivers/hwtracing/coresight/ |
H A D | coresight-etm4x.h | 204 * @nr_event: Indicates how many events the trace unit support. 212 * @trccond: If the trace unit supports conditional 215 * @trc_error: Whether a trace unit can trace a system 223 * @stallctl: If functionality that prevents trace unit buffer overflows 227 * @stall_ctrl: Enables trace unit functionality that prevents trace 228 * unit buffer overflows. 235 * @trccci: Indicates if the trace unit supports cycle counting 241 * @trcbb: Indicates if the trace unit supports branch broadcast tracing. 258 * @res_ctrl: Controls the selection of the resources in the trace unit.
|
/linux-4.4.14/drivers/crypto/ |
H A D | talitos.h | 277 /* execution unit registers base */ 298 /* execution unit interrupt status registers */ 311 /* DES unit */ 313 /* message digest unit */ 315 /* random number unit */ 333 /* primary execution unit select */ 345 /* primary execution unit mode (MODE0) and derivatives */ 367 /* secondary execution unit select (SEL1) */ 373 /* secondary execution unit mode (MODE1) and derivatives */
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/clk/sirf/ |
H A D | clk-atlas7.c | 1055 /* new unit should add start from the tail of list */ 1251 pr_err("unit NoC Clock disconnect Error:timeout\n"); unit_clk_disable() 1277 struct clk_unit *unit; atlas7_unit_clk_register() local 1280 unit = kzalloc(sizeof(*unit), GFP_KERNEL); atlas7_unit_clk_register() 1281 if (!unit) atlas7_unit_clk_register() 1290 unit->hw.init = &init; atlas7_unit_clk_register() 1291 unit->regofs = regofs; atlas7_unit_clk_register() 1292 unit->bit = bit; atlas7_unit_clk_register() 1294 unit->type = type; atlas7_unit_clk_register() 1295 unit->idle_bit = idle_bit; atlas7_unit_clk_register() 1296 unit->lock = lock; atlas7_unit_clk_register() 1298 clk = clk_register(dev, &unit->hw); atlas7_unit_clk_register() 1300 kfree(unit); atlas7_unit_clk_register() 1396 * HW suggest unit reset sequence: atlas7_reset_module() 1441 struct atlas7_unit_init_data *unit; atlas7_clk_init() local 1667 unit = &unit_list[i]; atlas7_clk_init() 1668 atlas7_clks[i] = atlas7_unit_clk_register(NULL, unit->unit_name, unit->parent_name, atlas7_clk_init() 1669 unit->flags, unit->regofs, unit->bit, unit->type, unit->idle_bit, unit->lock); atlas7_clk_init()
|
/linux-4.4.14/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.4.14/drivers/powercap/ |
H A D | intel_rapl.c | 76 #define ENERGY_UNIT_SCALE 1000 /* scale from driver unit to powercap unit */ 214 enum unit_type unit; member in struct:rapl_primitive_info 223 .unit = u, \ 653 pr_info("DRAM domain energy unit %dpj\n", rapl_init_domains() 682 /* per domain unit takes precedence */ rapl_unit_xlate() 705 /* name, mask, shift, msr index, unit divisor */ 751 * is pre-assigned based on RAPL unit MSRs read at init time. 796 *data = rapl_unit_xlate(rd, rd->package_id, rp->unit, final, 0); rapl_read_data_raw() 822 value = rapl_unit_xlate(rd, rd->package_id, rp->unit, value, 1); rapl_write_data_raw() 837 * the RAPL unit MSRs. This is specific to CPUs as the method to 841 * energy unit: picoJoules : Represented in picoJoules by default 842 * power unit : microWatts : Represented in milliWatts by default 843 * time unit : microseconds: Represented in seconds by default 851 pr_err("Failed to read power unit MSR 0x%x on CPU %d, exit.\n", rapl_check_unit_core() 877 pr_err("Failed to read power unit MSR 0x%x on CPU %d, exit.\n", rapl_check_unit_atom() 1006 u64 f, y; /* fraction and exp. used for time unit */ rapl_compute_time_window_core() 1029 * Atom time unit encoding is straight forward val * time_unit, rapl_compute_time_window_atom() 1126 rpi[prim].unit, rapl_update_domain_data()
|
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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 */
|