/drivers/net/dsa/ |
D | mv88e6xxx.c | 27 static void assert_smi_lock(struct dsa_switch *ds) in assert_smi_lock() argument 29 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); in assert_smi_lock() 32 dev_err(ds->master_dev, "SMI lock not held!\n"); in assert_smi_lock() 94 static int _mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg) in _mv88e6xxx_reg_read() argument 96 struct mii_bus *bus = dsa_host_dev_to_mii_bus(ds->master_dev); in _mv88e6xxx_reg_read() 99 assert_smi_lock(ds); in _mv88e6xxx_reg_read() 104 ret = __mv88e6xxx_reg_read(bus, ds->pd->sw_addr, addr, reg); in _mv88e6xxx_reg_read() 108 dev_dbg(ds->master_dev, "<- addr: 0x%.2x reg: 0x%.2x val: 0x%.4x\n", in _mv88e6xxx_reg_read() 114 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg) in mv88e6xxx_reg_read() argument 116 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); in mv88e6xxx_reg_read() [all …]
|
D | mv88e6352.c | 45 static int mv88e6352_setup_global(struct dsa_switch *ds) in mv88e6352_setup_global() argument 47 u32 upstream_port = dsa_upstream_port(ds); in mv88e6352_setup_global() 51 ret = mv88e6xxx_setup_global(ds); in mv88e6352_setup_global() 73 REG_WRITE(REG_GLOBAL, 0x1c, ds->index & 0x1f); in mv88e6352_setup_global() 78 static int mv88e6352_setup(struct dsa_switch *ds) in mv88e6352_setup() argument 80 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); in mv88e6352_setup() 83 ret = mv88e6xxx_setup_common(ds); in mv88e6352_setup() 91 ret = mv88e6xxx_switch_reset(ds, true); in mv88e6352_setup() 95 ret = mv88e6352_setup_global(ds); in mv88e6352_setup() 99 return mv88e6xxx_setup_ports(ds); in mv88e6352_setup() [all …]
|
D | mv88e6xxx.h | 429 int mv88e6xxx_switch_reset(struct dsa_switch *ds, bool ppu_active); 433 int mv88e6xxx_setup_ports(struct dsa_switch *ds); 434 int mv88e6xxx_setup_common(struct dsa_switch *ds); 435 int mv88e6xxx_setup_global(struct dsa_switch *ds); 436 int mv88e6xxx_reg_read(struct dsa_switch *ds, int addr, int reg); 437 int mv88e6xxx_reg_write(struct dsa_switch *ds, int addr, int reg, u16 val); 438 int mv88e6xxx_set_addr_direct(struct dsa_switch *ds, u8 *addr); 439 int mv88e6xxx_set_addr_indirect(struct dsa_switch *ds, u8 *addr); 440 int mv88e6xxx_phy_read(struct dsa_switch *ds, int port, int regnum); 441 int mv88e6xxx_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val); [all …]
|
D | mv88e6131.c | 34 static int mv88e6131_setup_global(struct dsa_switch *ds) in mv88e6131_setup_global() argument 36 u32 upstream_port = dsa_upstream_port(ds); in mv88e6131_setup_global() 40 ret = mv88e6xxx_setup_global(ds); in mv88e6131_setup_global() 68 if (ds->dst->pd->nr_chips > 1) in mv88e6131_setup_global() 71 (ds->index & 0x1f)); in mv88e6131_setup_global() 75 (ds->index & 0x1f)); in mv88e6131_setup_global() 89 static int mv88e6131_setup(struct dsa_switch *ds) in mv88e6131_setup() argument 91 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); in mv88e6131_setup() 94 ret = mv88e6xxx_setup_common(ds); in mv88e6131_setup() 98 mv88e6xxx_ppu_state_init(ds); in mv88e6131_setup() [all …]
|
D | mv88e6060.c | 20 static int reg_read(struct dsa_switch *ds, int addr, int reg) in reg_read() argument 22 struct mii_bus *bus = dsa_host_dev_to_mii_bus(ds->master_dev); in reg_read() 27 return mdiobus_read_nested(bus, ds->pd->sw_addr + addr, reg); in reg_read() 34 __ret = reg_read(ds, addr, reg); \ 41 static int reg_write(struct dsa_switch *ds, int addr, int reg, u16 val) in reg_write() argument 43 struct mii_bus *bus = dsa_host_dev_to_mii_bus(ds->master_dev); in reg_write() 48 return mdiobus_write_nested(bus, ds->pd->sw_addr + addr, reg, val); in reg_write() 55 __ret = reg_write(ds, addr, reg, val); \ 82 static int mv88e6060_switch_reset(struct dsa_switch *ds) in mv88e6060_switch_reset() argument 118 static int mv88e6060_setup_global(struct dsa_switch *ds) in mv88e6060_setup_global() argument [all …]
|
D | bcm_sf2.c | 95 static void bcm_sf2_sw_get_strings(struct dsa_switch *ds, in bcm_sf2_sw_get_strings() argument 105 static void bcm_sf2_sw_get_ethtool_stats(struct dsa_switch *ds, in bcm_sf2_sw_get_ethtool_stats() argument 108 struct bcm_sf2_priv *priv = ds_to_priv(ds); in bcm_sf2_sw_get_ethtool_stats() 133 static int bcm_sf2_sw_get_sset_count(struct dsa_switch *ds) in bcm_sf2_sw_get_sset_count() argument 143 static void bcm_sf2_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) in bcm_sf2_imp_vlan_setup() argument 145 struct bcm_sf2_priv *priv = ds_to_priv(ds); in bcm_sf2_imp_vlan_setup() 154 if (!((1 << i) & ds->phys_port_mask)) in bcm_sf2_imp_vlan_setup() 163 static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) in bcm_sf2_imp_setup() argument 165 struct bcm_sf2_priv *priv = ds_to_priv(ds); in bcm_sf2_imp_setup() 228 static void bcm_sf2_eee_enable_set(struct dsa_switch *ds, int port, bool enable) in bcm_sf2_eee_enable_set() argument [all …]
|
D | mv88e6123_61_65.c | 38 static int mv88e6123_61_65_setup_global(struct dsa_switch *ds) in mv88e6123_61_65_setup_global() argument 40 u32 upstream_port = dsa_upstream_port(ds); in mv88e6123_61_65_setup_global() 44 ret = mv88e6xxx_setup_global(ds); in mv88e6123_61_65_setup_global() 66 REG_WRITE(REG_GLOBAL, GLOBAL_CONTROL_2, ds->index & 0x1f); in mv88e6123_61_65_setup_global() 71 static int mv88e6123_61_65_setup(struct dsa_switch *ds) in mv88e6123_61_65_setup() argument 73 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); in mv88e6123_61_65_setup() 76 ret = mv88e6xxx_setup_common(ds); in mv88e6123_61_65_setup() 92 ret = mv88e6xxx_switch_reset(ds, false); in mv88e6123_61_65_setup() 96 ret = mv88e6123_61_65_setup_global(ds); in mv88e6123_61_65_setup() 100 return mv88e6xxx_setup_ports(ds); in mv88e6123_61_65_setup()
|
D | mv88e6171.c | 33 static int mv88e6171_setup_global(struct dsa_switch *ds) in mv88e6171_setup_global() argument 35 u32 upstream_port = dsa_upstream_port(ds); in mv88e6171_setup_global() 39 ret = mv88e6xxx_setup_global(ds); in mv88e6171_setup_global() 62 REG_WRITE(REG_GLOBAL, GLOBAL_CONTROL_2, ds->index & 0x1f); in mv88e6171_setup_global() 67 static int mv88e6171_setup(struct dsa_switch *ds) in mv88e6171_setup() argument 69 struct mv88e6xxx_priv_state *ps = ds_to_priv(ds); in mv88e6171_setup() 72 ret = mv88e6xxx_setup_common(ds); in mv88e6171_setup() 78 ret = mv88e6xxx_switch_reset(ds, true); in mv88e6171_setup() 82 ret = mv88e6171_setup_global(ds); in mv88e6171_setup() 86 return mv88e6xxx_setup_ports(ds); in mv88e6171_setup()
|
/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 | 91 static int add_dock_dependent_device(struct dock_station *ds, in add_dock_dependent_device() argument 102 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device() 152 struct dock_station *ds; in find_dock_station() local 154 list_for_each_entry(ds, &dock_stations, sibling) in find_dock_station() 155 if (ds->handle == handle) in find_dock_station() 156 return ds; in find_dock_station() 170 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device() argument 174 list_for_each_entry(dd, &ds->dependent_devices, list) in find_dock_dependent_device() 184 struct dock_station *ds = find_dock_station(dshandle); in register_dock_dependent_device() local 186 if (ds && !find_dock_dependent_device(ds, adev)) in register_dock_dependent_device() [all …]
|
/drivers/md/ |
D | dm-bio-prison.c | 291 struct dm_deferred_set *ds; member 306 struct dm_deferred_set *ds; in dm_deferred_set_create() local 308 ds = kmalloc(sizeof(*ds), GFP_KERNEL); in dm_deferred_set_create() 309 if (!ds) in dm_deferred_set_create() 312 spin_lock_init(&ds->lock); in dm_deferred_set_create() 313 ds->current_entry = 0; in dm_deferred_set_create() 314 ds->sweeper = 0; in dm_deferred_set_create() 316 ds->entries[i].ds = ds; in dm_deferred_set_create() 317 ds->entries[i].count = 0; in dm_deferred_set_create() 318 INIT_LIST_HEAD(&ds->entries[i].work_items); in dm_deferred_set_create() [all …]
|
D | dm-bio-prison.h | 130 void dm_deferred_set_destroy(struct dm_deferred_set *ds); 132 struct dm_deferred_entry *dm_deferred_entry_inc(struct dm_deferred_set *ds); 134 int dm_deferred_set_add_work(struct dm_deferred_set *ds, struct list_head *work);
|
/drivers/dma/ |
D | zx296702_dma.c | 202 struct zx_dma_desc_sw *ds = in zx_dma_start_txd() local 208 list_del(&ds->vd.node); in zx_dma_start_txd() 209 c->phy->ds_run = ds; in zx_dma_start_txd() 212 zx_dma_set_desc(c->phy, ds->desc_hw); in zx_dma_start_txd() 363 struct zx_dma_desc_sw *ds = p->ds_run; in zx_dma_tx_status() local 368 index = (clli - ds->desc_hw_lli) / sizeof(struct zx_desc_hw); in zx_dma_tx_status() 369 for (; index < ds->desc_num; index++) { in zx_dma_tx_status() 370 bytes += ds->desc_hw[index].src_x; in zx_dma_tx_status() 372 if (!ds->desc_hw[index].lli) in zx_dma_tx_status() 408 static void zx_dma_fill_desc(struct zx_dma_desc_sw *ds, dma_addr_t dst, in zx_dma_fill_desc() argument [all …]
|
D | k3dma.c | 242 struct k3_dma_desc_sw *ds = in k3_dma_start_txd() local 248 list_del(&ds->vd.node); in k3_dma_start_txd() 249 c->phy->ds_run = ds; in k3_dma_start_txd() 252 k3_dma_set_desc(c->phy, &ds->desc_hw[0]); in k3_dma_start_txd() 358 struct k3_dma_desc_sw *ds = p->ds_run; in k3_dma_tx_status() local 363 index = (clli - ds->desc_hw_lli) / sizeof(struct k3_desc_hw); in k3_dma_tx_status() 364 for (; index < ds->desc_num; index++) { in k3_dma_tx_status() 365 bytes += ds->desc_hw[index].count; in k3_dma_tx_status() 367 if (!ds->desc_hw[index].lli) in k3_dma_tx_status() 401 static void k3_dma_fill_desc(struct k3_dma_desc_sw *ds, dma_addr_t dst, in k3_dma_fill_desc() argument [all …]
|
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() 816 struct txx9dmac_slave *ds = chan->private; in txx9dmac_prep_slave_sg() local [all …]
|
/drivers/isdn/divert/ |
D | isdn_divert.c | 275 struct deflect_struc *ds, *ds1 = NULL; in insertrule() local 278 if (!(ds = kmalloc(sizeof(struct deflect_struc), GFP_KERNEL))) in insertrule() 281 ds->rule = *newrule; /* set rule */ in insertrule() 295 ds->prev = table_tail; /* previous entry */ in insertrule() 296 ds->next = NULL; /* end of chain */ in insertrule() 297 if (ds->prev) in insertrule() 298 ds->prev->next = ds; /* last forward */ in insertrule() 300 table_head = ds; /* is first entry */ in insertrule() 301 table_tail = ds; /* end of queue */ in insertrule() 303 ds->next = ds1; /* next entry */ in insertrule() [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() 69 static inline int ath9k_hw_get_duration(struct ath_hw *ah, const void *ds, in ath9k_hw_get_duration() argument 72 return ath9k_hw_ops(ah)->get_duration(ah, ds, index); in ath9k_hw_get_duration()
|
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() 212 ar9002_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i) in ar9002_set_txdesc() argument 214 struct ar5416_desc *ads = AR5416DESC(ds); in ar9002_set_txdesc() 315 static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds, in ar9002_hw_proc_txdesc() argument 318 struct ar5416_desc *ads = AR5416DESC(ds); in ar9002_hw_proc_txdesc() 387 static int ar9002_hw_get_duration(struct ath_hw *ah, const void *ds, int index) in ar9002_hw_get_duration() argument 389 struct ar5416_desc *ads = AR5416DESC(ds); in ar9002_hw_get_duration() 405 void ath9k_hw_setuprxdesc(struct ath_hw *ah, struct ath_desc *ds, in ath9k_hw_setuprxdesc() argument 408 struct ar5416_desc *ads = AR5416DESC(ds); in ath9k_hw_setuprxdesc()
|
D | init.c | 230 u8 *ds; in ath_descdma_setup() local 276 ds = (u8 *) dd->dd_desc; in ath_descdma_setup() 278 name, ds, (u32) dd->dd_desc_len, in ath_descdma_setup() 290 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup() 291 bf->bf_desc = ds; in ath_descdma_setup() 292 bf->bf_daddr = DS2PHYS(dd, ds); in ath_descdma_setup() 306 ds += (desc_len * ndesc); in ath_descdma_setup() 307 bf->bf_desc = ds; in ath_descdma_setup() 308 bf->bf_daddr = DS2PHYS(dd, ds); in ath_descdma_setup() 321 for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { in ath_descdma_setup() [all …]
|
/drivers/clk/rockchip/ |
D | clk.h | 240 #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ argument 253 .div_shift = ds, \ 261 #define COMPOSITE_NOMUX(_id, cname, pname, f, mo, ds, dw, df, \ argument 271 .div_shift = ds, \ 279 #define COMPOSITE_NOMUX_DIVTBL(_id, cname, pname, f, mo, ds, dw,\ argument 289 .div_shift = ds, \ 317 ds, dw, df) \ argument 329 .div_shift = ds, \ 336 mw, mf, ds, dw, df, dt) \ argument 348 .div_shift = ds, \
|
/drivers/lguest/x86/ |
D | switcher_32.S | 113 pushl %ds 182 popl %ds 205 pushl %ds; \ 221 movl %eax, %ds; \ 258 popl %ds; \
|
/drivers/ide/ |
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()
|
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 …]
|
/drivers/net/wireless/ath/ath5k/ |
D | base.c | 632 struct ath5k_desc *ds; in ath5k_rxbuf_setup() local 657 ds = bf->desc; in ath5k_rxbuf_setup() 658 ds->ds_link = bf->daddr; /* link to self */ in ath5k_rxbuf_setup() 659 ds->ds_data = bf->skbaddr; in ath5k_rxbuf_setup() 660 ret = ath5k_hw_setup_rx_desc(ah, ds, ah->common.rx_bufsize, 0); in ath5k_rxbuf_setup() 668 ah->rxlink = &ds->ds_link; in ath5k_rxbuf_setup() 736 struct ath5k_desc *ds = bf->desc; in ath5k_txbuf_setup() local 796 ret = ah->ah_setup_tx_desc(ah, ds, pktlen, in ath5k_txbuf_setup() 821 ath5k_hw_setup_mrr_tx_desc(ah, ds, in ath5k_txbuf_setup() 827 ds->ds_link = 0; in ath5k_txbuf_setup() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | gddr5.c | 38 int WL, CL, WR, at[2], dt, ds; in nvkm_gddr5_calc() local 64 ds = ram->next->bios.timing_20_2f_03; in nvkm_gddr5_calc() 84 ram->mr[1] |= (ds & 0x03) << 0; in nvkm_gddr5_calc()
|