/drivers/input/misc/ |
D | gpio_input.c | 37 struct gpio_input_state *ds; member 56 struct gpio_input_state *ds = in gpio_event_input_timer_func() local 58 unsigned gpio_flags = ds->info->flags; in gpio_event_input_timer_func() 60 int nkeys = ds->info->keymap_size; in gpio_event_input_timer_func() 74 key_entry = ds->info->keymap; in gpio_event_input_timer_func() 75 key_state = ds->key_state; in gpio_event_input_timer_func() 77 spin_lock_irqsave(&ds->irq_lock, irqflags); in gpio_event_input_timer_func() 88 ds->info->type, key_entry->code, in gpio_event_input_timer_func() 95 ds->debounce_count++; in gpio_event_input_timer_func() 100 ds->info->type, key_entry->code, in gpio_event_input_timer_func() [all …]
|
/drivers/acpi/ |
D | dock.c | 103 add_dock_dependent_device(struct dock_station *ds, acpi_handle handle) in add_dock_dependent_device() argument 115 spin_lock(&ds->dd_lock); in add_dock_dependent_device() 116 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device() 117 spin_unlock(&ds->dd_lock); in add_dock_dependent_device() 130 dock_add_hotplug_device(struct dock_station *ds, in dock_add_hotplug_device() argument 133 mutex_lock(&ds->hp_lock); in dock_add_hotplug_device() 134 list_add_tail(&dd->hotplug_list, &ds->hotplug_devices); in dock_add_hotplug_device() 135 mutex_unlock(&ds->hp_lock); in dock_add_hotplug_device() 146 dock_del_hotplug_device(struct dock_station *ds, in dock_del_hotplug_device() argument 149 mutex_lock(&ds->hp_lock); in dock_del_hotplug_device() [all …]
|
/drivers/net/dsa/ |
D | mv88e6131.c | 43 static int mv88e6131_switch_reset(struct dsa_switch *ds) in mv88e6131_switch_reset() argument 82 static int mv88e6131_setup_global(struct dsa_switch *ds) in mv88e6131_setup_global() argument 105 ret = mv88e6xxx_config_prio(ds); in mv88e6131_setup_global() 119 REG_WRITE(REG_GLOBAL, 0x1a, (dsa_upstream_port(ds) * 0x1100) | 0x00f0); in mv88e6131_setup_global() 126 if (ds->dst->pd->nr_chips > 1) in mv88e6131_setup_global() 127 REG_WRITE(REG_GLOBAL, 0x1c, 0xf000 | (ds->index & 0x1f)); in mv88e6131_setup_global() 129 REG_WRITE(REG_GLOBAL, 0x1c, 0xe000 | (ds->index & 0x1f)); in mv88e6131_setup_global() 152 if (i != ds->index && i < ds->dst->pd->nr_chips) in mv88e6131_setup_global() 153 nexthop = ds->pd->rtable[i] & 0x1f; in mv88e6131_setup_global() 179 static int mv88e6131_setup_port(struct dsa_switch *ds, int p) in mv88e6131_setup_port() argument [all …]
|
D | mv88e6xxx.c | 82 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg) in mv88e6xxx_reg_read() argument 84 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6xxx_reg_read() 88 ret = __mv88e6xxx_reg_read(ds->master_mii_bus, in mv88e6xxx_reg_read() 89 ds->pd->sw_addr, addr, reg); in mv88e6xxx_reg_read() 134 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in mv88e6xxx_reg_write() argument 136 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6xxx_reg_write() 140 ret = __mv88e6xxx_reg_write(ds->master_mii_bus, in mv88e6xxx_reg_write() 141 ds->pd->sw_addr, addr, reg, val); in mv88e6xxx_reg_write() 147 int mv88e6xxx_config_prio(struct dsa_switch *ds) in mv88e6xxx_config_prio() argument 169 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr) in mv88e6xxx_set_addr_direct() argument [all …]
|
D | mv88e6123_61_65.c | 49 static int mv88e6123_61_65_switch_reset(struct dsa_switch *ds) in mv88e6123_61_65_switch_reset() argument 88 static int mv88e6123_61_65_setup_global(struct dsa_switch *ds) in mv88e6123_61_65_setup_global() argument 110 ret = mv88e6xxx_config_prio(ds); in mv88e6123_61_65_setup_global() 119 REG_WRITE(REG_GLOBAL, 0x1a, (dsa_upstream_port(ds) * 0x1110)); in mv88e6123_61_65_setup_global() 125 REG_WRITE(REG_GLOBAL, 0x1c, ds->index & 0x1f); in mv88e6123_61_65_setup_global() 156 if (i != ds->index && i < ds->dst->pd->nr_chips) in mv88e6123_61_65_setup_global() 157 nexthop = ds->pd->rtable[i] & 0x1f; in mv88e6123_61_65_setup_global() 197 static int mv88e6123_61_65_setup_port(struct dsa_switch *ds, int p) in mv88e6123_61_65_setup_port() argument 208 if (dsa_is_cpu_port(ds, p) || ds->dsa_port_mask & (1 << p)) in mv88e6123_61_65_setup_port() 236 if (dsa_is_cpu_port(ds, p)) { in mv88e6123_61_65_setup_port() [all …]
|
D | mv88e6060.c | 20 static int reg_read(struct dsa_switch *ds, int addr, int reg) in reg_read() argument 22 return mdiobus_read(ds->master_mii_bus, ds->pd->sw_addr + addr, reg); in reg_read() 29 __ret = reg_read(ds, addr, reg); \ 36 static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in reg_write() argument 38 return mdiobus_write(ds->master_mii_bus, ds->pd->sw_addr + addr, in reg_write() 46 __ret = reg_write(ds, addr, reg, val); \ 65 static int mv88e6060_switch_reset(struct dsa_switch *ds) in mv88e6060_switch_reset() argument 104 static int mv88e6060_setup_global(struct dsa_switch *ds) in mv88e6060_setup_global() argument 123 static int mv88e6060_setup_port(struct dsa_switch *ds, int p) in mv88e6060_setup_port() argument 133 REG_WRITE(addr, 0x04, dsa_is_cpu_port(ds, p) ? 0x4103 : 0x0003); in mv88e6060_setup_port() [all …]
|
D | mv88e6xxx.h | 53 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg); 56 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val); 57 int mv88e6xxx_config_prio(struct dsa_switch *ds); 58 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr); 59 int mv88e6xxx_set_addr_indirect(struct dsa_switch *ds, u8 *addr); 60 int mv88e6xxx_phy_read(struct dsa_switch *ds, int addr, int regnum); 61 int mv88e6xxx_phy_write(struct dsa_switch *ds, int addr, int regnum, u16 val); 62 void mv88e6xxx_ppu_state_init(struct dsa_switch *ds); 63 int mv88e6xxx_phy_read_ppu(struct dsa_switch *ds, int addr, int regnum); 64 int mv88e6xxx_phy_write_ppu(struct dsa_switch *ds, int addr, [all …]
|
/drivers/isdn/divert/ |
D | isdn_divert.c | 277 { struct deflect_struc *ds, *ds1 = NULL; in insertrule() local 280 if (!(ds = kmalloc(sizeof(struct deflect_struc), in insertrule() 284 ds->rule = *newrule; /* set rule */ in insertrule() 298 { ds->prev = table_tail; /* previous entry */ in insertrule() 299 ds->next = NULL; /* end of chain */ in insertrule() 300 if (ds->prev) in insertrule() 301 ds->prev->next = ds; /* last forward */ in insertrule() 303 table_head = ds; /* is first entry */ in insertrule() 304 table_tail = ds; /* end of queue */ in insertrule() 307 { ds->next = ds1; /* next entry */ in insertrule() [all …]
|
/drivers/md/ |
D | dm-thin.c | 375 struct deferred_set *ds; member 387 static void ds_init(struct deferred_set *ds) in ds_init() argument 391 spin_lock_init(&ds->lock); in ds_init() 392 ds->current_entry = 0; in ds_init() 393 ds->sweeper = 0; in ds_init() 395 ds->entries[i].ds = ds; in ds_init() 396 ds->entries[i].count = 0; in ds_init() 397 INIT_LIST_HEAD(&ds->entries[i].work_items); in ds_init() 401 static struct deferred_entry *ds_inc(struct deferred_set *ds) in ds_inc() argument 406 spin_lock_irqsave(&ds->lock, flags); in ds_inc() [all …]
|
/drivers/dma/ |
D | txx9dmac.c | 337 struct txx9dmac_slave *ds = dc->chan.private; in txx9dmac_dostart() local 354 if (ds) { in txx9dmac_dostart() 355 if (ds->tx_reg) { in txx9dmac_dostart() 356 sai = ds->reg_width; in txx9dmac_dostart() 360 dai = ds->reg_width; in txx9dmac_dostart() 375 if (ds) { in txx9dmac_dostart() 376 if (ds->tx_reg) { in txx9dmac_dostart() 377 sai = ds->reg_width; in txx9dmac_dostart() 381 dai = ds->reg_width; in txx9dmac_dostart() 409 struct txx9dmac_slave *ds = dc->chan.private; in txx9dmac_descriptor_complete() local [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | hw-ops.h | 38 static inline void ath9k_hw_set_desc_link(struct ath_hw *ah, void *ds, in ath9k_hw_set_desc_link() argument 41 ath9k_hw_ops(ah)->set_desc_link(ds, link); in ath9k_hw_set_desc_link() 57 static inline void ath9k_hw_set_txdesc(struct ath_hw *ah, void *ds, in ath9k_hw_set_txdesc() argument 60 return ath9k_hw_ops(ah)->set_txdesc(ah, ds, i); in ath9k_hw_set_txdesc() 63 static inline int ath9k_hw_txprocdesc(struct ath_hw *ah, void *ds, in ath9k_hw_txprocdesc() argument 66 return ath9k_hw_ops(ah)->proc_txdesc(ah, ds, ts); in ath9k_hw_txprocdesc()
|
D | ar9002_mac.c | 27 static void ar9002_hw_set_desc_link(void *ds, u32 ds_link) in ar9002_hw_set_desc_link() argument 29 ((struct ath_desc*) ds)->ds_link = ds_link; in ar9002_hw_set_desc_link() 175 ar9002_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i) in ar9002_set_txdesc() argument 177 struct ar5416_desc *ads = AR5416DESC(ds); in ar9002_set_txdesc() 274 static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds, in ar9002_hw_proc_txdesc() argument 277 struct ar5416_desc *ads = AR5416DESC(ds); in ar9002_hw_proc_txdesc() 346 void ath9k_hw_setuprxdesc(struct ath_hw *ah, struct ath_desc *ds, in ath9k_hw_setuprxdesc() argument 349 struct ar5416_desc *ads = AR5416DESC(ds); in ath9k_hw_setuprxdesc()
|
D | init.c | 327 u8 *ds; in ath_descdma_setup() local 376 ds = (u8 *) dd->dd_desc; in ath_descdma_setup() 378 name, ds, (u32) dd->dd_desc_len, in ath_descdma_setup() 390 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup() 391 bf->bf_desc = ds; in ath_descdma_setup() 392 bf->bf_daddr = DS2PHYS(dd, ds); in ath_descdma_setup() 406 ds += (desc_len * ndesc); in ath_descdma_setup() 407 bf->bf_desc = ds; in ath_descdma_setup() 408 bf->bf_daddr = DS2PHYS(dd, ds); in ath_descdma_setup()
|
/drivers/lguest/x86/ |
D | switcher_32.S | 113 pushl %ds 182 popl %ds 205 pushl %ds; \ 221 movl %eax, %ds; \ 258 popl %ds; \
|
/drivers/usb/gadget/ |
D | f_fs.c | 1535 struct usb_endpoint_descriptor *ds; in ffs_func_eps_enable() local 1537 ds = ep->descs[desc_idx]; in ffs_func_eps_enable() 1538 if (!ds) { in ffs_func_eps_enable() 1544 ep->ep->desc = ds; in ffs_func_eps_enable() 1548 epfile->in = usb_endpoint_dir_in(ds); in ffs_func_eps_enable() 1549 epfile->isoc = usb_endpoint_xfer_isoc(ds); in ffs_func_eps_enable() 1634 struct usb_interface_descriptor *ds = (void *)_ds; in ffs_do_desc() local 1636 if (length != sizeof *ds) in ffs_do_desc() 1639 __entity(INTERFACE, ds->bInterfaceNumber); in ffs_do_desc() 1640 if (ds->iInterface) in ffs_do_desc() [all …]
|
/drivers/net/wireless/ath/ath5k/ |
D | base.c | 599 struct ath5k_desc *ds; in ath5k_rxbuf_setup() local 624 ds = bf->desc; in ath5k_rxbuf_setup() 625 ds->ds_link = bf->daddr; /* link to self */ in ath5k_rxbuf_setup() 626 ds->ds_data = bf->skbaddr; in ath5k_rxbuf_setup() 627 ret = ath5k_hw_setup_rx_desc(ah, ds, ah->common.rx_bufsize, 0); in ath5k_rxbuf_setup() 635 ah->rxlink = &ds->ds_link; in ath5k_rxbuf_setup() 666 struct ath5k_desc *ds = bf->desc; in ath5k_txbuf_setup() local 718 ret = ah->ah_setup_tx_desc(ah, ds, pktlen, in ath5k_txbuf_setup() 741 ath5k_hw_setup_mrr_tx_desc(ah, ds, in ath5k_txbuf_setup() 747 ds->ds_link = 0; in ath5k_txbuf_setup() [all …]
|
D | debug.c | 972 struct ath5k_desc *ds = bf->desc; in ath5k_debug_printrxbuf() local 973 struct ath5k_hw_all_rx_desc *rd = &ds->ud.ds_rx; in ath5k_debug_printrxbuf() 976 ds, (unsigned long long)bf->daddr, in ath5k_debug_printrxbuf() 977 ds->ds_link, ds->ds_data, in ath5k_debug_printrxbuf() 986 struct ath5k_desc *ds; in ath5k_debug_printrxbuffs() local 999 ds = bf->desc; in ath5k_debug_printrxbuffs() 1000 status = ah->ah_proc_rx_desc(ah, ds, &rs); in ath5k_debug_printrxbuffs() 1010 struct ath5k_desc *ds = bf->desc; in ath5k_debug_printtxbuf() local 1011 struct ath5k_hw_5212_tx_desc *td = &ds->ud.ds_tx5212; in ath5k_debug_printtxbuf() 1021 "%08x %c\n", ds, (unsigned long long)bf->daddr, ds->ds_link, in ath5k_debug_printtxbuf() [all …]
|
/drivers/ide/ |
D | ide-proc.c | 195 const struct ide_devset *ds = setting->setting; in ide_read_setting() local 198 if (ds->get) in ide_read_setting() 199 val = ds->get(drive); in ide_read_setting() 225 const struct ide_devset *ds = setting->setting; in ide_write_setting() local 229 if (!ds->set) in ide_write_setting() 231 if ((ds->flags & DS_SYNC) in ide_write_setting() 234 return ide_devset_execute(drive, ds, val); in ide_write_setting() 284 const struct ide_devset *ds; in ide_settings_proc_show() local 315 ds = setting->setting; in ide_settings_proc_show() 316 if (ds->get) in ide_settings_proc_show() [all …]
|
D | ide-ioctls.c | 23 const struct ide_devset *ds; in ide_setting_ioctl() local 26 for (; (ds = s->setting); s++) { in ide_setting_ioctl() 27 if (ds->get && s->get_ioctl == cmd) in ide_setting_ioctl() 29 else if (ds->set && s->set_ioctl == cmd) in ide_setting_ioctl() 37 err = ds->get(drive); in ide_setting_ioctl() 49 err = ide_devset_execute(drive, ds, arg); in ide_setting_ioctl()
|
/drivers/s390/scsi/ |
D | zfcp_fc.c | 162 zfcp_fc_wka_port_force_offline(&gs->ds); in zfcp_fc_wka_ports_force_offline() 316 ret = zfcp_fsf_send_ct(&adapter->gs->ds, &fc_req->ct_els, in zfcp_fc_ns_gid_pn_request() 343 ret = zfcp_fc_wka_port_get(&adapter->gs->ds); in zfcp_fc_ns_gid_pn() 349 zfcp_fc_wka_port_put(&adapter->gs->ds); in zfcp_fc_ns_gid_pn() 567 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_send_gpn_ft() 677 if (zfcp_fc_wka_port_get(&adapter->gs->ds)) in zfcp_fc_scan_ports() 697 zfcp_fc_wka_port_put(&adapter->gs->ds); in zfcp_fc_scan_ports() 722 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_gspn() 770 ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, in zfcp_fc_rspn() 802 ret = zfcp_fc_wka_port_get(&adapter->gs->ds); in zfcp_fc_sym_name_update() [all …]
|
/drivers/net/fddi/skfp/ |
D | hwmtm.c | 357 struct s_smt_fp_txd volatile *ds ; in init_txd_ring() local 364 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + in init_txd_ring() 368 (void)init_descr_ring(smc,(union s_fp_descr volatile *)ds, in init_txd_ring() 370 phys = le32_to_cpu(ds->txd_ntdadr) ; in init_txd_ring() 371 ds++ ; in init_txd_ring() 372 queue->tx_curr_put = queue->tx_curr_get = ds ; in init_txd_ring() 373 ds-- ; in init_txd_ring() 378 ds = (struct s_smt_fp_txd volatile *) ((char *)ds + in init_txd_ring() 382 (void)init_descr_ring(smc,(union s_fp_descr volatile *)ds, in init_txd_ring() 384 phys = le32_to_cpu(ds->txd_ntdadr) ; in init_txd_ring() [all …]
|
/drivers/sh/maple/ |
D | maple.c | 409 struct maple_device_specify *ds; in check_maple_device() local 412 ds = portptr; in check_maple_device() 414 if (mdev->port == ds->port && mdev->unit == ds->unit) in check_maple_device() 496 struct maple_device_specify ds; in maple_map_subunits() local 498 ds.port = mdev->port; in maple_map_subunits() 500 ds.unit = k + 1; in maple_map_subunits() 502 bus_for_each_dev(&maple_bus_type, NULL, &ds, in maple_map_subunits()
|
/drivers/net/wireless/libertas/ |
D | cfg.c | 366 struct mrvl_ie_ds_param_set *ds = (void *) tlv; in lbs_add_channel_tlv() local 373 ds->header.type = cpu_to_le16(TLV_TYPE_PHY_DS); in lbs_add_channel_tlv() 374 ds->header.len = cpu_to_le16(sizeof(*ds)-sizeof(ds->header)); in lbs_add_channel_tlv() 375 ds->channel = channel; in lbs_add_channel_tlv() 376 return sizeof(*ds); in lbs_add_channel_tlv() 1818 cmd.bss.ds.header.id = WLAN_EID_DS_PARAMS; in lbs_ibss_join_existing() 1819 cmd.bss.ds.header.len = 1; in lbs_ibss_join_existing() 1820 cmd.bss.ds.channel = params->channel->hw_value; in lbs_ibss_join_existing() 1927 cmd.ds.header.id = WLAN_EID_DS_PARAMS; in lbs_ibss_start_new() 1928 cmd.ds.header.len = 1; in lbs_ibss_start_new() [all …]
|
/drivers/message/fusion/ |
D | mptbase.c | 7282 char *ds = NULL; in mpt_display_event_info() local 7293 ds = "None"; in mpt_display_event_info() 7296 ds = "Log Data"; in mpt_display_event_info() 7299 ds = "State Change"; in mpt_display_event_info() 7302 ds = "Unit Attention"; in mpt_display_event_info() 7305 ds = "IOC Bus Reset"; in mpt_display_event_info() 7308 ds = "External Bus Reset"; in mpt_display_event_info() 7311 ds = "Bus Rescan Event"; in mpt_display_event_info() 7315 ds = "Link Status(FAILURE) Change"; in mpt_display_event_info() 7317 ds = "Link Status(ACTIVE) Change"; in mpt_display_event_info() [all …]
|
/drivers/crypto/amcc/ |
D | crypto4xx_alg.c | 239 int ds; in crypto4xx_hash_init() local 243 ds = crypto_ahash_digestsize( in crypto4xx_hash_init() 245 sa->sa_command_0.bf.digest_len = ds >> 2; in crypto4xx_hash_init()
|