/linux-2.6.39/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 …]
|
/linux-2.6.39/net/dsa/ |
D | mv88e6123_61_65.c | 35 static int mv88e6123_61_65_switch_reset(struct dsa_switch *ds) in mv88e6123_61_65_switch_reset() argument 74 static int mv88e6123_61_65_setup_global(struct dsa_switch *ds) in mv88e6123_61_65_setup_global() argument 96 ret = mv88e6xxx_config_prio(ds); in mv88e6123_61_65_setup_global() 105 REG_WRITE(REG_GLOBAL, 0x1a, (dsa_upstream_port(ds) * 0x1110)); in mv88e6123_61_65_setup_global() 111 REG_WRITE(REG_GLOBAL, 0x1c, ds->index & 0x1f); in mv88e6123_61_65_setup_global() 142 if (i != ds->index && i < ds->dst->pd->nr_chips) in mv88e6123_61_65_setup_global() 143 nexthop = ds->pd->rtable[i] & 0x1f; in mv88e6123_61_65_setup_global() 183 static int mv88e6123_61_65_setup_port(struct dsa_switch *ds, int p) in mv88e6123_61_65_setup_port() argument 194 if (dsa_is_cpu_port(ds, p) || ds->dsa_port_mask & (1 << p)) in mv88e6123_61_65_setup_port() 222 if (dsa_is_cpu_port(ds, p)) { in mv88e6123_61_65_setup_port() [all …]
|
D | mv88e6131.c | 42 static int mv88e6131_switch_reset(struct dsa_switch *ds) in mv88e6131_switch_reset() argument 81 static int mv88e6131_setup_global(struct dsa_switch *ds) in mv88e6131_setup_global() argument 104 ret = mv88e6xxx_config_prio(ds); in mv88e6131_setup_global() 118 REG_WRITE(REG_GLOBAL, 0x1a, (dsa_upstream_port(ds) * 0x1100) | 0x00f0); in mv88e6131_setup_global() 124 REG_WRITE(REG_GLOBAL, 0x1c, 0xe000 | (ds->index & 0x1f)); in mv88e6131_setup_global() 147 if (i != ds->index && i < ds->dst->pd->nr_chips) in mv88e6131_setup_global() 148 nexthop = ds->pd->rtable[i] & 0x1f; in mv88e6131_setup_global() 174 static int mv88e6131_setup_port(struct dsa_switch *ds, int p) in mv88e6131_setup_port() argument 176 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6131_setup_port() 186 if (dsa_is_cpu_port(ds, p) || ds->dsa_port_mask & (1 << p)) in mv88e6131_setup_port() [all …]
|
D | mv88e6xxx.c | 81 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg) in mv88e6xxx_reg_read() argument 83 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6xxx_reg_read() 87 ret = __mv88e6xxx_reg_read(ds->master_mii_bus, in mv88e6xxx_reg_read() 88 ds->pd->sw_addr, addr, reg); in mv88e6xxx_reg_read() 133 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in mv88e6xxx_reg_write() argument 135 struct mv88e6xxx_priv_state *ps = (void *)(ds + 1); in mv88e6xxx_reg_write() 139 ret = __mv88e6xxx_reg_write(ds->master_mii_bus, in mv88e6xxx_reg_write() 140 ds->pd->sw_addr, addr, reg, val); in mv88e6xxx_reg_write() 146 int mv88e6xxx_config_prio(struct dsa_switch *ds) in mv88e6xxx_config_prio() argument 168 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr) in mv88e6xxx_set_addr_direct() argument [all …]
|
D | dsa.c | 76 struct dsa_switch *ds; in dsa_switch_setup() local 97 ds = kzalloc(sizeof(*ds) + drv->priv_size, GFP_KERNEL); in dsa_switch_setup() 98 if (ds == NULL) in dsa_switch_setup() 101 ds->dst = dst; in dsa_switch_setup() 102 ds->index = index; in dsa_switch_setup() 103 ds->pd = dst->pd->chip + index; in dsa_switch_setup() 104 ds->drv = drv; in dsa_switch_setup() 105 ds->master_mii_bus = bus; in dsa_switch_setup() 127 ds->dsa_port_mask |= 1 << i; in dsa_switch_setup() 129 ds->phys_port_mask |= 1 << i; in dsa_switch_setup() [all …]
|
D | mv88e6060.c | 19 static int reg_read(struct dsa_switch *ds, int addr, int reg) in reg_read() argument 21 return mdiobus_read(ds->master_mii_bus, ds->pd->sw_addr + addr, reg); in reg_read() 28 __ret = reg_read(ds, addr, reg); \ 35 static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in reg_write() argument 37 return mdiobus_write(ds->master_mii_bus, ds->pd->sw_addr + addr, in reg_write() 45 __ret = reg_write(ds, addr, reg, val); \ 64 static int mv88e6060_switch_reset(struct dsa_switch *ds) in mv88e6060_switch_reset() argument 103 static int mv88e6060_setup_global(struct dsa_switch *ds) in mv88e6060_setup_global() argument 122 static int mv88e6060_setup_port(struct dsa_switch *ds, int p) in mv88e6060_setup_port() argument 132 REG_WRITE(addr, 0x04, dsa_is_cpu_port(ds, p) ? 0x4103 : 0x0003); in mv88e6060_setup_port() [all …]
|
D | dsa_priv.h | 81 struct dsa_switch *ds[DSA_MAX_SWITCHES]; member 84 static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p) in dsa_is_cpu_port() argument 86 return !!(ds->index == ds->dst->cpu_switch && p == ds->dst->cpu_port); in dsa_is_cpu_port() 89 static inline u8 dsa_upstream_port(struct dsa_switch *ds) in dsa_upstream_port() argument 91 struct dsa_switch_tree *dst = ds->dst; in dsa_upstream_port() 99 if (dst->cpu_switch == ds->index) in dsa_upstream_port() 102 return ds->pd->rtable[dst->cpu_switch]; in dsa_upstream_port() 136 int (*setup)(struct dsa_switch *ds); 137 int (*set_addr)(struct dsa_switch *ds, u8 *addr); 142 int (*phy_read)(struct dsa_switch *ds, int port, int regnum); [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 …]
|
D | slave.c | 20 struct dsa_switch *ds = bus->priv; in dsa_slave_phy_read() local 22 if (ds->phys_port_mask & (1 << addr)) in dsa_slave_phy_read() 23 return ds->drv->phy_read(ds, addr, reg); in dsa_slave_phy_read() 30 struct dsa_switch *ds = bus->priv; in dsa_slave_phy_write() local 32 if (ds->phys_port_mask & (1 << addr)) in dsa_slave_phy_write() 33 return ds->drv->phy_write(ds, addr, reg, val); in dsa_slave_phy_write() 38 void dsa_slave_mii_bus_init(struct dsa_switch *ds) in dsa_slave_mii_bus_init() argument 40 ds->slave_mii_bus->priv = (void *)ds; in dsa_slave_mii_bus_init() 41 ds->slave_mii_bus->name = "dsa slave smi"; in dsa_slave_mii_bus_init() 42 ds->slave_mii_bus->read = dsa_slave_phy_read; in dsa_slave_mii_bus_init() [all …]
|
D | tag_trailer.c | 73 struct dsa_switch *ds; in trailer_rcv() local 79 ds = dst->ds[0]; in trailer_rcv() 94 if (source_port >= DSA_MAX_PORTS || ds->ports[source_port] == NULL) in trailer_rcv() 99 skb->dev = ds->ports[source_port]; in trailer_rcv()
|
/linux-2.6.39/arch/x86/kernel/cpu/ |
D | perf_event_intel_ds.c | 59 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in init_debug_store_on_cpu() local 61 if (!ds) in init_debug_store_on_cpu() 65 (u32)((u64)(unsigned long)ds), in init_debug_store_on_cpu() 66 (u32)((u64)(unsigned long)ds >> 32)); in init_debug_store_on_cpu() 71 if (!per_cpu(cpu_hw_events, cpu).ds) in fini_debug_store_on_cpu() 79 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in alloc_pebs_buffer() local 93 ds->pebs_buffer_base = (u64)(unsigned long)buffer; in alloc_pebs_buffer() 94 ds->pebs_index = ds->pebs_buffer_base; in alloc_pebs_buffer() 95 ds->pebs_absolute_maximum = ds->pebs_buffer_base + in alloc_pebs_buffer() 98 ds->pebs_interrupt_threshold = ds->pebs_buffer_base + in alloc_pebs_buffer() [all …]
|
/linux-2.6.39/fs/nfs/ |
D | nfs4filelayoutdev.c | 77 print_ds(struct nfs4_pnfs_ds *ds) in print_ds() argument 79 if (ds == NULL) { in print_ds() 87 ntohl(ds->ds_ip_addr), ntohs(ds->ds_port), in print_ds() 88 atomic_read(&ds->ds_count), ds->ds_clp, in print_ds() 89 ds->ds_clp ? ds->ds_clp->cl_exchange_flags : 0); in print_ds() 117 struct nfs4_pnfs_ds *ds; in _data_server_lookup_locked() local 122 list_for_each_entry(ds, &nfs4_data_server_cache, ds_node) { in _data_server_lookup_locked() 123 if (ds->ds_ip_addr == ip_addr && in _data_server_lookup_locked() 124 ds->ds_port == port) { in _data_server_lookup_locked() 125 return ds; in _data_server_lookup_locked() [all …]
|
/linux-2.6.39/drivers/net/wireless/ath/ath9k/ |
D | hw-ops.h | 36 static inline void ath9k_hw_set_desc_link(struct ath_hw *ah, void *ds, in ath9k_hw_set_desc_link() argument 39 ath9k_hw_ops(ah)->set_desc_link(ds, link); in ath9k_hw_set_desc_link() 42 static inline void ath9k_hw_get_desc_link(struct ath_hw *ah, void *ds, in ath9k_hw_get_desc_link() argument 45 ath9k_hw_ops(ah)->get_desc_link(ds, link); in ath9k_hw_get_desc_link() 60 static inline void ath9k_hw_filltxdesc(struct ath_hw *ah, void *ds, u32 seglen, in ath9k_hw_filltxdesc() argument 65 ath9k_hw_ops(ah)->fill_txdesc(ah, ds, seglen, is_firstseg, is_lastseg, in ath9k_hw_filltxdesc() 69 static inline int ath9k_hw_txprocdesc(struct ath_hw *ah, void *ds, in ath9k_hw_txprocdesc() argument 72 return ath9k_hw_ops(ah)->proc_txdesc(ah, ds, ts); in ath9k_hw_txprocdesc() 75 static inline void ath9k_hw_set11n_txdesc(struct ath_hw *ah, void *ds, in ath9k_hw_set11n_txdesc() argument 81 ath9k_hw_ops(ah)->set11n_txdesc(ah, ds, pktLen, type, txPower, keyIx, in ath9k_hw_set11n_txdesc() [all …]
|
D | ar9002_mac.c | 26 static void ar9002_hw_set_desc_link(void *ds, u32 ds_link) in ar9002_hw_set_desc_link() argument 28 ((struct ath_desc*) ds)->ds_link = ds_link; in ar9002_hw_set_desc_link() 31 static void ar9002_hw_get_desc_link(void *ds, u32 **ds_link) in ar9002_hw_get_desc_link() argument 33 *ds_link = &((struct ath_desc *)ds)->ds_link; in ar9002_hw_get_desc_link() 178 static void ar9002_hw_fill_txdesc(struct ath_hw *ah, void *ds, u32 seglen, in ar9002_hw_fill_txdesc() argument 183 struct ar5416_desc *ads = AR5416DESC(ds); in ar9002_hw_fill_txdesc() 207 static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds, in ar9002_hw_proc_txdesc() argument 210 struct ar5416_desc *ads = AR5416DESC(ds); in ar9002_hw_proc_txdesc() 279 static void ar9002_hw_set11n_txdesc(struct ath_hw *ah, void *ds, in ar9002_hw_set11n_txdesc() argument 284 struct ar5416_desc *ads = AR5416DESC(ds); in ar9002_hw_set11n_txdesc() [all …]
|
D | ar9003_mac.c | 37 static void ar9003_hw_set_desc_link(void *ds, u32 ds_link) in ar9003_hw_set_desc_link() argument 39 struct ar9003_txc *ads = ds; in ar9003_hw_set_desc_link() 46 static void ar9003_hw_get_desc_link(void *ds, u32 **ds_link) in ar9003_hw_get_desc_link() argument 48 struct ar9003_txc *ads = ds; in ar9003_hw_get_desc_link() 195 static void ar9003_hw_fill_txdesc(struct ath_hw *ah, void *ds, u32 seglen, in ar9003_hw_fill_txdesc() argument 200 struct ar9003_txc *ads = (struct ar9003_txc *) ds; in ar9003_hw_fill_txdesc() 236 static int ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds, in ar9003_hw_proc_txdesc() argument 316 static void ar9003_hw_set11n_txdesc(struct ath_hw *ah, void *ds, in ar9003_hw_set11n_txdesc() argument 320 struct ar9003_txc *ads = (struct ar9003_txc *) ds; in ar9003_hw_set11n_txdesc() 353 static void ar9003_hw_set11n_ratescenario(struct ath_hw *ah, void *ds, in ar9003_hw_set11n_ratescenario() argument [all …]
|
/linux-2.6.39/fs/logfs/ |
D | super.c | 176 static void logfs_write_ds(struct super_block *sb, struct logfs_disk_super *ds, in logfs_write_ds() argument 180 struct logfs_segment_header *sh = &ds->ds_sh; in logfs_write_ds() 183 memset(ds, 0, sizeof(*ds)); in logfs_write_ds() 186 ds->ds_ifile_levels = super->s_ifile_levels; in logfs_write_ds() 187 ds->ds_iblock_levels = super->s_iblock_levels; in logfs_write_ds() 188 ds->ds_data_levels = super->s_data_levels; /* XXX: Remove */ in logfs_write_ds() 189 ds->ds_segment_shift = super->s_segshift; in logfs_write_ds() 190 ds->ds_block_shift = sb->s_blocksize_bits; in logfs_write_ds() 191 ds->ds_write_shift = super->s_writeshift; in logfs_write_ds() 192 ds->ds_filesystem_size = cpu_to_be64(super->s_size); in logfs_write_ds() [all …]
|
/linux-2.6.39/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 …]
|
/linux-2.6.39/fs/9p/ |
D | fid.c | 110 struct dentry *ds; in build_path_from_dentry() local 112 for (ds = dentry; !IS_ROOT(ds); ds = ds->d_parent) in build_path_from_dentry() 119 for (ds = dentry, i = (n-1); i >= 0; i--, ds = ds->d_parent) in build_path_from_dentry() 120 wnames[i] = (char *)ds->d_name.name; in build_path_from_dentry() 131 struct dentry *ds; in v9fs_fid_lookup_with_uid() local 148 ds = dentry->d_parent; in v9fs_fid_lookup_with_uid() 149 fid = v9fs_fid_find(ds, uid, any); in v9fs_fid_lookup_with_uid()
|
/linux-2.6.39/fs/befs/ |
D | datastream.c | 48 befs_read_datastream(struct super_block *sb, befs_data_stream * ds, in befs_read_datastream() argument 60 if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { in befs_read_datastream() 125 befs_read_lsymlink(struct super_block * sb, befs_data_stream * ds, void *buff, in befs_read_lsymlink() argument 134 bh = befs_read_datastream(sb, ds, bytes_read, NULL); in befs_read_lsymlink() 165 befs_count_blocks(struct super_block * sb, befs_data_stream * ds) in befs_count_blocks() argument 174 datablocks = ds->size >> befs_sb->block_shift; in befs_count_blocks() 175 if (ds->size & (befs_sb->block_size - 1)) in befs_count_blocks() 181 if (ds->size > ds->max_direct_range) in befs_count_blocks() 182 metablocks += ds->indirect.len; in befs_count_blocks() 193 if (ds->size > ds->max_indirect_range && ds->max_indirect_range != 0) { in befs_count_blocks() [all …]
|
D | btree.c | 91 static int befs_btree_seekleaf(struct super_block *sb, befs_data_stream * ds, 96 static int befs_bt_read_super(struct super_block *sb, befs_data_stream * ds, 99 static int befs_bt_read_node(struct super_block *sb, befs_data_stream * ds, 134 befs_bt_read_super(struct super_block *sb, befs_data_stream * ds, in befs_bt_read_super() argument 142 bh = befs_read_datastream(sb, ds, 0, NULL); in befs_bt_read_super() 193 befs_bt_read_node(struct super_block *sb, befs_data_stream * ds, in befs_bt_read_node() argument 203 node->bh = befs_read_datastream(sb, ds, node_off, &off); in befs_bt_read_node() 247 befs_btree_find(struct super_block *sb, befs_data_stream * ds, in befs_btree_find() argument 257 if (befs_bt_read_super(sb, ds, &bt_super) != BEFS_OK) { in befs_btree_find() 275 if (befs_bt_read_node(sb, ds, this_node, node_off) != BEFS_OK) { in befs_btree_find() [all …]
|
/linux-2.6.39/arch/x86/boot/ |
D | copy.S | 52 pushw %ds 54 popw %ds 56 popw %ds 71 pushw %ds 73 popw %ds 75 popw %ds
|
D | regs.c | 25 reg->ds = ds(); in initregs() 26 reg->es = ds(); in initregs()
|
/linux-2.6.39/crypto/ |
D | hmac.c | 48 int ds = crypto_shash_digestsize(parent); in hmac_setkey() local 72 keylen = ds; in hmac_setkey() 130 int ds = crypto_shash_digestsize(parent); in hmac_final() local 139 crypto_shash_finup(desc, out, ds, out); in hmac_final() 147 int ds = crypto_shash_digestsize(parent); in hmac_finup() local 156 crypto_shash_finup(desc, out, ds, out); in hmac_finup() 190 int ds; in hmac_create() local 202 ds = salg->digestsize; in hmac_create() 205 if (ds > alg->cra_blocksize || in hmac_create() 224 inst->alg.digestsize = ds; in hmac_create()
|
/linux-2.6.39/lib/zlib_deflate/ |
D | deflate.c | 583 deflate_state *ds; 599 ds = &(mem->deflate_memory); 601 dest->state = (struct internal_state *) ds; 602 *ds = *ss; 603 ds->strm = dest; 605 ds->window = (Byte *) mem->window_memory; 606 ds->prev = (Pos *) mem->prev_memory; 607 ds->head = (Pos *) mem->head_memory; 609 ds->pending_buf = (uch *) overlay; 611 memcpy(ds->window, ss->window, ds->w_size * 2 * sizeof(Byte)); [all …]
|
/linux-2.6.39/arch/powerpc/sysdev/ |
D | dcr.c | 130 unsigned int ds; in dcr_resource_start() local 131 const u32 *dr = of_get_property(np, "dcr-reg", &ds); in dcr_resource_start() 133 if (dr == NULL || ds & 1 || index >= (ds / 8)) in dcr_resource_start() 142 unsigned int ds; in dcr_resource_len() local 143 const u32 *dr = of_get_property(np, "dcr-reg", &ds); in dcr_resource_len() 145 if (dr == NULL || ds & 1 || index >= (ds / 8)) in dcr_resource_len()
|