/drivers/char/ |
D | misc.c | 185 int misc_register(struct miscdevice * misc) in misc_register() argument 189 bool is_dynamic = (misc->minor == MISC_DYNAMIC_MINOR); in misc_register() 191 INIT_LIST_HEAD(&misc->list); in misc_register() 201 misc->minor = DYNAMIC_MINORS - i - 1; in misc_register() 207 if (c->minor == misc->minor) { in misc_register() 214 dev = MKDEV(MISC_MAJOR, misc->minor); in misc_register() 216 misc->this_device = in misc_register() 217 device_create_with_groups(misc_class, misc->parent, dev, in misc_register() 218 misc, misc->groups, "%s", misc->name); in misc_register() 219 if (IS_ERR(misc->this_device)) { in misc_register() [all …]
|
/drivers/phy/ |
D | phy-spear1340-miphy.c | 87 struct regmap *misc; member 94 regmap_update_bits(priv->misc, SPEAR1340_PCIE_SATA_CFG, in spear1340_miphy_sata_init() 97 regmap_update_bits(priv->misc, SPEAR1340_PCIE_MIPHY_CFG, in spear1340_miphy_sata_init() 101 regmap_update_bits(priv->misc, SPEAR1340_PCM_CFG, in spear1340_miphy_sata_init() 108 regmap_update_bits(priv->misc, SPEAR1340_PERIP1_SW_RST, in spear1340_miphy_sata_init() 118 regmap_update_bits(priv->misc, SPEAR1340_PCIE_SATA_CFG, in spear1340_miphy_sata_exit() 120 regmap_update_bits(priv->misc, SPEAR1340_PCIE_MIPHY_CFG, in spear1340_miphy_sata_exit() 124 regmap_update_bits(priv->misc, SPEAR1340_PERIP1_SW_RST, in spear1340_miphy_sata_exit() 130 regmap_update_bits(priv->misc, SPEAR1340_PCM_CFG, in spear1340_miphy_sata_exit() 140 regmap_update_bits(priv->misc, SPEAR1340_PCIE_MIPHY_CFG, in spear1340_miphy_pcie_init() [all …]
|
D | phy-spear1310-miphy.c | 110 struct regmap *misc; member 119 regmap_update_bits(priv->misc, SPEAR1310_PCIE_MIPHY_CFG_1, in spear1310_miphy_pcie_init() 137 regmap_update_bits(priv->misc, SPEAR1310_PCIE_SATA_CFG, in spear1310_miphy_pcie_init() 145 regmap_update_bits(priv->misc, SPEAR1310_PCIE_SATA_CFG, in spear1310_miphy_pcie_exit() 148 regmap_update_bits(priv->misc, SPEAR1310_PCIE_MIPHY_CFG_1, in spear1310_miphy_pcie_exit() 218 priv->misc = in spear1310_miphy_probe() 220 if (IS_ERR(priv->misc)) { in spear1310_miphy_probe() 222 return PTR_ERR(priv->misc); in spear1310_miphy_probe()
|
/drivers/scsi/snic/ |
D | snic_debugfs.c | 171 memset(&stats->misc, 0, sizeof(struct snic_misc_stats)); in snic_reset_stats_write() 315 jiffies_to_timespec(stats->misc.last_isr_time, &last_isr_tms); in snic_stats_show() 316 jiffies_to_timespec(stats->misc.last_ack_time, &last_ack_tms); in snic_stats_show() 335 (u64) stats->misc.last_isr_time, in snic_stats_show() 337 (u64)stats->misc.last_ack_time, in snic_stats_show() 339 (u64) atomic64_read(&stats->misc.ack_isr_cnt), in snic_stats_show() 340 (u64) atomic64_read(&stats->misc.cmpl_isr_cnt), in snic_stats_show() 341 (u64) atomic64_read(&stats->misc.errnotify_isr_cnt), in snic_stats_show() 342 (u64) atomic64_read(&stats->misc.max_cq_ents), in snic_stats_show() 343 (u64) atomic64_read(&stats->misc.data_cnt_mismat), in snic_stats_show() [all …]
|
D | snic_isr.c | 40 snic->s_stats.misc.last_isr_time = jiffies; in snic_isr_msix_wq() 41 atomic64_inc(&snic->s_stats.misc.ack_isr_cnt); in snic_isr_msix_wq() 58 snic->s_stats.misc.last_isr_time = jiffies; in snic_isr_msix_io_cmpl() 59 atomic64_inc(&snic->s_stats.misc.cmpl_isr_cnt); in snic_isr_msix_io_cmpl() 75 snic->s_stats.misc.last_isr_time = jiffies; in snic_isr_msix_err_notify() 76 atomic64_inc(&snic->s_stats.misc.errnotify_isr_cnt); in snic_isr_msix_err_notify()
|
/drivers/fmc/ |
D | fmc-chardev.c | 26 struct miscdevice misc; member 37 if (fc->misc.minor == minor) in fc_open() 39 if (fc->misc.minor != minor) in fc_open() 142 fc->misc.minor = MISC_DYNAMIC_MINOR; in fc_probe() 143 fc->misc.fops = &fc_fops; in fc_probe() 144 fc->misc.name = kstrdup(dev_name(&fmc->dev), GFP_KERNEL); in fc_probe() 146 ret = misc_register(&fc->misc); in fc_probe() 153 fc->misc.name); in fc_probe() 157 kfree(fc->misc.name); in fc_probe() 177 misc_deregister(&fc->misc); in fc_remove() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch_offloads.c | 54 void *misc; in mlx5_eswitch_add_offloaded_rule() local 75 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5_eswitch_add_offloaded_rule() 76 MLX5_SET(fte_match_set_misc, misc, source_port, attr->in_rep->vport); in mlx5_eswitch_add_offloaded_rule() 78 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5_eswitch_add_offloaded_rule() 79 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in mlx5_eswitch_add_offloaded_rule() 279 void *misc; in mlx5_eswitch_add_send_to_vport_rule() local 288 misc = MLX5_ADDR_OF(fte_match_param, spec->match_value, misc_parameters); in mlx5_eswitch_add_send_to_vport_rule() 289 MLX5_SET(fte_match_set_misc, misc, source_sqn, sqn); in mlx5_eswitch_add_send_to_vport_rule() 290 MLX5_SET(fte_match_set_misc, misc, source_port, 0x0); /* source vport is 0 */ in mlx5_eswitch_add_send_to_vport_rule() 292 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5_eswitch_add_send_to_vport_rule() [all …]
|
/drivers/scsi/bfa/ |
D | bfa_plog.h | 51 u16 misc; /* can be used to indicate fc frame length */ member 146 enum bfa_plog_eid event, u16 misc, char *log_str); 148 enum bfa_plog_eid event, u16 misc, 151 enum bfa_plog_eid event, u16 misc, struct fchs_s *fchdr); 153 enum bfa_plog_eid event, u16 misc,
|
/drivers/macintosh/ |
D | smu.c | 166 void (*done)(struct smu_cmd *cmd, void *misc) = NULL; in smu_db_intr() 167 void *misc = NULL; in smu_db_intr() local 224 misc = cmd->misc; in smu_db_intr() 238 done(cmd, misc); in smu_db_intr() 292 void (*done)(struct smu_cmd *cmd, void *misc), in smu_queue_simple() argument 293 void *misc, ...) in smu_queue_simple() 309 cmd->misc = misc; in smu_queue_simple() 311 va_start(list, misc); in smu_queue_simple() 335 void smu_done_complete(struct smu_cmd *cmd, void *misc) in smu_done_complete() argument 337 struct completion *comp = misc; in smu_done_complete() [all …]
|
/drivers/xen/ |
D | efi.c | 37 .u.efi_runtime_call.misc = 0} 56 tc->sets_to_zero = !!(efi_data(op).misc & in xen_efi_get_time() 92 *enabled = !!(efi_data(op).misc & XEN_EFI_GET_WAKEUP_TIME_ENABLED); in xen_efi_get_wakeup_time() 95 *pending = !!(efi_data(op).misc & XEN_EFI_GET_WAKEUP_TIME_PENDING); in xen_efi_get_wakeup_time() 107 efi_data(op).misc = XEN_EFI_SET_WAKEUP_TIME_ENABLE; in xen_efi_set_wakeup_time() 111 efi_data(op).misc |= XEN_EFI_SET_WAKEUP_TIME_ENABLE_ONLY; in xen_efi_set_wakeup_time() 138 *attr = efi_data(op).misc; in xen_efi_get_variable() 175 efi_data(op).misc = attr; in xen_efi_set_variable() 218 *count = efi_data(op).misc; in xen_efi_get_next_high_mono_count()
|
/drivers/video/fbdev/geode/ |
D | video_gx.c | 239 u32 dcfg, misc; in gx_configure_display() local 259 misc = read_vp(par, VP_MISC); in gx_configure_display() 262 misc |= VP_MISC_GAM_EN; in gx_configure_display() 267 misc &= ~(VP_MISC_APWRDN | VP_MISC_DACPWRDN); in gx_configure_display() 268 write_vp(par, VP_MISC, misc); in gx_configure_display() 279 misc |= (VP_MISC_APWRDN | VP_MISC_DACPWRDN); in gx_configure_display() 280 write_vp(par, VP_MISC, misc); in gx_configure_display()
|
/drivers/usb/host/ |
D | ohci-tmio.c | 301 u8 misc; in ohci_hcd_tmio_drv_suspend() local 310 misc = tmio_ioread8(tmio->ccr + CCR_MISC); in ohci_hcd_tmio_drv_suspend() 311 misc |= 1 << 3; /* USSUSP */ in ohci_hcd_tmio_drv_suspend() 312 tmio_iowrite8(misc, tmio->ccr + CCR_MISC); in ohci_hcd_tmio_drv_suspend() 331 u8 misc; in ohci_hcd_tmio_drv_resume() local 348 misc = tmio_ioread8(tmio->ccr + CCR_MISC); in ohci_hcd_tmio_drv_resume() 349 misc &= ~(1 << 3); /* USSUSP */ in ohci_hcd_tmio_drv_resume() 350 tmio_iowrite8(misc, tmio->ccr + CCR_MISC); in ohci_hcd_tmio_drv_resume()
|
/drivers/staging/android/ion/ |
D | ion_test.c | 36 struct miscdevice misc; member 252 testdev->misc.minor = MISC_DYNAMIC_MINOR; in ion_test_probe() 253 testdev->misc.name = "ion-test"; in ion_test_probe() 254 testdev->misc.fops = &ion_test_fops; in ion_test_probe() 255 testdev->misc.parent = &pdev->dev; in ion_test_probe() 256 ret = misc_register(&testdev->misc); in ion_test_probe() 275 misc_deregister(&testdev->misc); in ion_test_remove()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_config.h | 161 #define CFG_GET_CTRL_Q_GRP(cfg) ((cfg)->misc.ctrlq_grp) 163 ((cfg)->misc.host_link_query_interval) 165 ((cfg)->misc.oct_link_query_interval) 166 #define CFG_GET_IS_SLI_BP_ON(cfg) ((cfg)->misc.enable_sli_oq_bp) 416 struct octeon_misc_config misc; member
|
/drivers/pci/hotplug/ |
D | cpqphp.h | 125 u16 misc; /* 0x02 */ member 156 MISC = offsetof(struct ctrl_reg, misc), 481 u16 misc; in set_SOGO() local 483 misc = readw(ctrl->hpc_reg + MISC); in set_SOGO() 484 misc = (misc | 0x0001) & 0xFFFB; in set_SOGO() 485 writew(misc, ctrl->hpc_reg + MISC); in set_SOGO() 596 u16 misc; in get_controller_speed() local 612 misc = readw(ctrl->hpc_reg + MISC); in get_controller_speed() 613 return (misc & 0x0800) ? PCI_SPEED_66MHz : PCI_SPEED_33MHz; in get_controller_speed()
|
/drivers/net/ethernet/tundra/ |
D | tsi108_eth.c | 630 if (data->txring[tx].misc & TSI108_TX_OWN) in tsi108_complete_tx() 635 if (!(data->txring[tx].misc & TSI108_TX_OK)) in tsi108_complete_tx() 637 dev->name, data->txring[tx].misc); in tsi108_complete_tx() 642 if (data->txring[tx].misc & TSI108_TX_EOF) { in tsi108_complete_tx() 686 int misc = 0; in tsi108_send_packet() local 701 misc = TSI108_TX_INT; in tsi108_send_packet() 709 misc |= TSI108_TX_SOF; in tsi108_send_packet() 721 misc |= TSI108_TX_EOF; in tsi108_send_packet() 731 data->txring[tx].misc = misc | TSI108_TX_OWN; in tsi108_send_packet() 759 if (data->rxring[rx].misc & TSI108_RX_OWN) in tsi108_complete_rx() [all …]
|
/drivers/gpu/drm/radeon/ |
D | radeon_atombios.c | 1633 uint16_t data_offset, misc; in radeon_atombios_get_lvds_info() local 1671 misc = le16_to_cpu(lvds_info->info.sLCDTiming.susModeMiscInfo.usAccess); in radeon_atombios_get_lvds_info() 1672 if (misc & ATOM_VSYNC_POLARITY) in radeon_atombios_get_lvds_info() 1674 if (misc & ATOM_HSYNC_POLARITY) in radeon_atombios_get_lvds_info() 1676 if (misc & ATOM_COMPOSITESYNC) in radeon_atombios_get_lvds_info() 1678 if (misc & ATOM_INTERLACE) in radeon_atombios_get_lvds_info() 1680 if (misc & ATOM_DOUBLE_CLOCK_MODE) in radeon_atombios_get_lvds_info() 1806 u16 data_offset, misc; in radeon_atom_get_tv_timings() local 1831 misc = le16_to_cpu(tv_info->aModeTimings[index].susModeMiscInfo.usAccess); in radeon_atom_get_tv_timings() 1832 if (misc & ATOM_VSYNC_POLARITY) in radeon_atom_get_tv_timings() [all …]
|
D | radeon_asic.c | 245 .misc = &r100_pm_misc, 313 .misc = &r100_pm_misc, 409 .misc = &r100_pm_misc, 477 .misc = &r100_pm_misc, 545 .misc = &r100_pm_misc, 613 .misc = &r100_pm_misc, 681 .misc = &rs600_pm_misc, 749 .misc = &rs600_pm_misc, 817 .misc = &rs600_pm_misc, 885 .misc = &rs600_pm_misc, [all …]
|
/drivers/ide/ |
D | opti621.c | 71 u8 tim, misc, addr_pio = pio, clk; in opti621_set_pio_mode() local 110 misc = addr_timings[clk][addr_pio]; in opti621_set_pio_mode() 125 write_reg(misc, MISC_REG); in opti621_set_pio_mode()
|
/drivers/video/ |
D | vgastate.c | 31 __u8 misc; member 52 u8 misc, attr10, gr4, gr5, gr6, seq1, seq2, seq4; in save_vga_text() local 56 misc = vga_r(state->vgabase, VGA_MIS_R); in save_vga_text() 57 iobase = (misc & 1) ? 0x3d0 : 0x3b0; in save_vga_text() 232 saved->misc = vga_r(state->vgabase, VGA_MIS_R); in save_vga_mode() 233 if (saved->misc & 1) in save_vga_mode() 263 vga_w(state->vgabase, VGA_MIS_W, saved->misc); in restore_vga_mode() 265 if (saved->misc & 1) in restore_vga_mode()
|
/drivers/target/sbp/ |
D | sbp_target.c | 286 LOGIN_ORB_LUN(be32_to_cpu(req->orb.misc)), &ret); in sbp_management_request_login() 289 LOGIN_ORB_LUN(be32_to_cpu(req->orb.misc))); in sbp_management_request_login() 339 if (LOGIN_ORB_EXCLUSIVE(be32_to_cpu(req->orb.misc)) && in sbp_management_request_login() 406 1 << LOGIN_ORB_RECONNECT(be32_to_cpu(req->orb.misc)), in sbp_management_request_login() 424 login->exclusive = LOGIN_ORB_EXCLUSIVE(be32_to_cpu(req->orb.misc)); in sbp_management_request_login() 461 response->misc = cpu_to_be32( in sbp_management_request_login() 526 RECONNECT_ORB_LOGIN_ID(be32_to_cpu(req->orb.misc))); in sbp_management_request_reconnect() 571 id = LOGOUT_ORB_LOGIN_ID(be32_to_cpu(req->orb.misc)); in sbp_management_request_logout() 877 be32_to_cpu(req->orb.misc)); in tgt_agent_process_work() 882 switch (ORB_REQUEST_FORMAT(be32_to_cpu(req->orb.misc))) { in tgt_agent_process_work() [all …]
|
D | sbp_target.h | 94 __be32 misc; member 107 __be32 misc; member 119 __be32 misc; member
|
/drivers/firewire/ |
D | nosy.c | 92 struct miscdevice misc; member 285 if (tmp->misc.minor == minor) { in nosy_open() 511 misc_deregister(&lynx->misc); in remove_card() 652 lynx->misc.parent = &dev->dev; in add_card() 653 lynx->misc.minor = MISC_DYNAMIC_MINOR; in add_card() 654 lynx->misc.name = "nosy"; in add_card() 655 lynx->misc.fops = &nosy_ops; in add_card() 658 ret = misc_register(&lynx->misc); in add_card()
|
/drivers/char/agp/ |
D | amd64-agp.c | 127 dev = node_to_amd_nb(0)->misc; in amd64_fetch_size() 190 amd64_configure(node_to_amd_nb(i)->misc, gatt_bus); in amd_8151_configure() 206 struct pci_dev *dev = node_to_amd_nb(i)->misc; in amd64_cleanup() 337 struct pci_dev *dev = node_to_amd_nb(i)->misc; in cache_nbs() 414 pci_read_config_dword (node_to_amd_nb(0)->misc, AMD64_GARTAPERTUREBASE, in uli_agp_init() 482 pci_read_config_dword (node_to_amd_nb(0)->misc, AMD64_GARTAPERTUREBASE, in nforce3_agp_init()
|
/drivers/watchdog/ |
D | cpwd.c | 84 struct miscdevice misc; member 591 struct miscdevice *mp = &p->devs[i].misc; in cpwd_probe() 605 err = misc_register(&p->devs[i].misc); in cpwd_probe() 630 misc_deregister(&p->devs[i].misc); in cpwd_probe() 646 misc_deregister(&p->devs[i].misc); in cpwd_remove()
|