ds 280 arch/mips/include/asm/pci/bridge.h ds:2, /* Data size */ ds 241 arch/mips/include/asm/xtalk/xwidget.h unsigned ds:2; ds 118 arch/powerpc/sysdev/dcr.c unsigned int ds; ds 119 arch/powerpc/sysdev/dcr.c const u32 *dr = of_get_property(np, "dcr-reg", &ds); ds 121 arch/powerpc/sysdev/dcr.c if (dr == NULL || ds & 1 || index >= (ds / 8)) ds 130 arch/powerpc/sysdev/dcr.c unsigned int ds; ds 131 arch/powerpc/sysdev/dcr.c const u32 *dr = of_get_property(np, "dcr-reg", &ds); ds 133 arch/powerpc/sysdev/dcr.c if (dr == NULL || ds & 1 || index >= (ds / 8)) ds 56 arch/s390/include/asm/nmi.h u64 ds : 1; /* 19 storage degradation */ ds 438 arch/s390/kernel/nmi.c if (mci.ds && mci.fa) ds 252 arch/x86/boot/boot.h u16 es, ds; ds 51 arch/x86/boot/edd.c buf_base = (ds() << 4) + (u32)&_end; ds 50 arch/x86/boot/main.c cmdline_seg = ds(); ds 85 arch/x86/boot/pm.c gdt.ptr = (u32)&boot_gdt + (ds() << 4); ds 123 arch/x86/boot/pm.c (u32)&boot_params + (ds() << 4)); ds 23 arch/x86/boot/regs.c reg->ds = ds(); ds 24 arch/x86/boot/regs.c reg->es = ds(); ds 264 arch/x86/boot/video-vesa.c ireg.es = ds(); ds 147 arch/x86/events/intel/bts.c struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; ds 168 arch/x86/events/intel/bts.c ds->bts_buffer_base = (u64)(long)page_address(page) + phys->displacement; ds 169 arch/x86/events/intel/bts.c ds->bts_index = ds->bts_buffer_base + index; ds 170 arch/x86/events/intel/bts.c ds->bts_absolute_maximum = ds->bts_buffer_base + end; ds 171 arch/x86/events/intel/bts.c ds->bts_interrupt_threshold = !buf->snapshot ds 172 arch/x86/events/intel/bts.c ? ds->bts_buffer_base + thresh ds 173 arch/x86/events/intel/bts.c : ds->bts_absolute_maximum + BTS_RECORD_SIZE; ds 186 arch/x86/events/intel/bts.c struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; ds 188 arch/x86/events/intel/bts.c unsigned long index = ds->bts_index - ds->bts_buffer_base, old, head; ds 200 arch/x86/events/intel/bts.c if (ds->bts_index >= ds->bts_absolute_maximum) ds 267 arch/x86/events/intel/bts.c bts->ds_back.bts_buffer_base = cpuc->ds->bts_buffer_base; ds 268 arch/x86/events/intel/bts.c bts->ds_back.bts_absolute_maximum = cpuc->ds->bts_absolute_maximum; ds 269 arch/x86/events/intel/bts.c bts->ds_back.bts_interrupt_threshold = cpuc->ds->bts_interrupt_threshold; ds 326 arch/x86/events/intel/bts.c cpuc->ds->bts_index = bts->ds_back.bts_buffer_base; ds 327 arch/x86/events/intel/bts.c cpuc->ds->bts_buffer_base = bts->ds_back.bts_buffer_base; ds 328 arch/x86/events/intel/bts.c cpuc->ds->bts_absolute_maximum = bts->ds_back.bts_absolute_maximum; ds 329 arch/x86/events/intel/bts.c cpuc->ds->bts_interrupt_threshold = bts->ds_back.bts_interrupt_threshold; ds 446 arch/x86/events/intel/bts.c struct debug_store *ds = this_cpu_ptr(&cpu_hw_events)->ds; ds 457 arch/x86/events/intel/bts.c if (ds && (ds->bts_index >= ds->bts_interrupt_threshold)) ds 2294 arch/x86/events/intel/core.c struct debug_store *ds = __this_cpu_read(cpu_hw_events.ds); ds 2312 arch/x86/events/intel/core.c if (ds) ds 2313 arch/x86/events/intel/core.c ds->bts_index = ds->bts_buffer_base; ds 265 arch/x86/events/intel/ds.c struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; ds 267 arch/x86/events/intel/ds.c if (!ds) ds 271 arch/x86/events/intel/ds.c (u32)((u64)(unsigned long)ds), ds 272 arch/x86/events/intel/ds.c (u32)((u64)(unsigned long)ds >> 32)); ds 277 arch/x86/events/intel/ds.c if (!per_cpu(cpu_hw_events, cpu).ds) ds 337 arch/x86/events/intel/ds.c struct debug_store *ds = hwev->ds; ds 364 arch/x86/events/intel/ds.c ds->pebs_buffer_base = (unsigned long) cea; ds 366 arch/x86/events/intel/ds.c ds->pebs_index = ds->pebs_buffer_base; ds 368 arch/x86/events/intel/ds.c ds->pebs_absolute_maximum = ds->pebs_buffer_base + max; ds 393 arch/x86/events/intel/ds.c struct debug_store *ds = hwev->ds; ds 408 arch/x86/events/intel/ds.c ds->bts_buffer_base = (unsigned long) cea; ds 410 arch/x86/events/intel/ds.c ds->bts_index = ds->bts_buffer_base; ds 412 arch/x86/events/intel/ds.c ds->bts_absolute_maximum = ds->bts_buffer_base + ds 414 arch/x86/events/intel/ds.c ds->bts_interrupt_threshold = ds->bts_absolute_maximum - ds 436 arch/x86/events/intel/ds.c struct debug_store *ds = &get_cpu_entry_area(cpu)->cpu_debug_store; ds 438 arch/x86/events/intel/ds.c memset(ds, 0, sizeof(*ds)); ds 439 arch/x86/events/intel/ds.c per_cpu(cpu_hw_events, cpu).ds = ds; ds 445 arch/x86/events/intel/ds.c per_cpu(cpu_hw_events, cpu).ds = NULL; ds 568 arch/x86/events/intel/ds.c if (!cpuc->ds) ds 583 arch/x86/events/intel/ds.c struct debug_store *ds = cpuc->ds; ds 603 arch/x86/events/intel/ds.c base = (struct bts_record *)(unsigned long)ds->bts_buffer_base; ds 604 arch/x86/events/intel/ds.c top = (struct bts_record *)(unsigned long)ds->bts_index; ds 611 arch/x86/events/intel/ds.c ds->bts_index = ds->bts_buffer_base; ds 921 arch/x86/events/intel/ds.c struct debug_store *ds = cpuc->ds; ds 934 arch/x86/events/intel/ds.c threshold = ds->pebs_absolute_maximum - ds 937 arch/x86/events/intel/ds.c threshold = ds->pebs_buffer_base + cpuc->pebs_record_size; ds 940 arch/x86/events/intel/ds.c ds->pebs_interrupt_threshold = threshold; ds 1089 arch/x86/events/intel/ds.c struct debug_store *ds = cpuc->ds; ds 1099 arch/x86/events/intel/ds.c wrmsrl(MSR_RELOAD_PMC0 + hwc->idx, ds->pebs_event_reset[hwc->idx]); ds 1106 arch/x86/events/intel/ds.c struct debug_store *ds = cpuc->ds; ds 1134 arch/x86/events/intel/ds.c ds->pebs_event_reset[idx] = ds 1137 arch/x86/events/intel/ds.c ds->pebs_event_reset[hwc->idx] = 0; ds 1775 arch/x86/events/intel/ds.c struct debug_store *ds = cpuc->ds; ds 1783 arch/x86/events/intel/ds.c at = (struct pebs_record_core *)(unsigned long)ds->pebs_buffer_base; ds 1784 arch/x86/events/intel/ds.c top = (struct pebs_record_core *)(unsigned long)ds->pebs_index; ds 1789 arch/x86/events/intel/ds.c ds->pebs_index = ds->pebs_buffer_base; ds 1832 arch/x86/events/intel/ds.c struct debug_store *ds = cpuc->ds; ds 1843 arch/x86/events/intel/ds.c base = (struct pebs_record_nhm *)(unsigned long)ds->pebs_buffer_base; ds 1844 arch/x86/events/intel/ds.c top = (struct pebs_record_nhm *)(unsigned long)ds->pebs_index; ds 1846 arch/x86/events/intel/ds.c ds->pebs_index = ds->pebs_buffer_base; ds 1947 arch/x86/events/intel/ds.c struct debug_store *ds = cpuc->ds; ds 1956 arch/x86/events/intel/ds.c base = (struct pebs_basic *)(unsigned long)ds->pebs_buffer_base; ds 1957 arch/x86/events/intel/ds.c top = (struct pebs_basic *)(unsigned long)ds->pebs_index; ds 1959 arch/x86/events/intel/ds.c ds->pebs_index = ds->pebs_buffer_base; ds 2096 arch/x86/events/intel/ds.c struct debug_store *ds = __this_cpu_read(cpu_hw_events.ds); ds 2101 arch/x86/events/intel/ds.c wrmsrl(MSR_IA32_DS_AREA, (unsigned long)ds); ds 215 arch/x86/events/perf_event.h struct debug_store *ds; ds 235 arch/x86/ia32/ia32_aout.c loadsegment(ds, __USER32_DS); ds 44 arch/x86/ia32/ia32_signal.c #define loadsegment_ds(v) loadsegment(ds, v) ds 75 arch/x86/ia32/ia32_signal.c u16 gs, fs, es, ds; ds 85 arch/x86/ia32/ia32_signal.c ds = GET_SEG(ds); ds 112 arch/x86/ia32/ia32_signal.c RELOAD_SEG(ds); ds 189 arch/x86/ia32/ia32_signal.c put_user_ex(get_user_seg(ds), (unsigned int __user *)&sc->ds); ds 321 arch/x86/ia32/ia32_signal.c loadsegment(ds, __USER32_DS); ds 400 arch/x86/ia32/ia32_signal.c loadsegment(ds, __USER32_DS); ds 130 arch/x86/include/asm/elf.h pr_reg[7] = regs->ds; \ ds 173 arch/x86/include/asm/elf.h struct pt_regs *regs, const u16 ds) ds 182 arch/x86/include/asm/elf.h t->ds = t->es = ds; ds 95 arch/x86/include/asm/kexec.h asm volatile("movl %%ds, %%eax;" :"=a"(newregs->ds)); ds 325 arch/x86/include/asm/nospec-branch.h static const u16 ds = __KERNEL_DS; ds 336 arch/x86/include/asm/nospec-branch.h asm volatile("verw %[ds]" : : [ds] "m" (ds) : "cc"); ds 291 arch/x86/include/asm/processor.h unsigned short ds, __dsh; ds 451 arch/x86/include/asm/processor.h unsigned short ds; ds 34 arch/x86/include/asm/ptrace.h unsigned short ds; ds 222 arch/x86/include/asm/ptrace.h offset == offsetof(struct pt_regs, ds) || ds 333 arch/x86/include/asm/segment.h #define __loadsegment_ds(value) __loadsegment_simple(ds, (value)) ds 28 arch/x86/include/asm/suspend_64.h u16 ds, es, fs, gs; ds 165 arch/x86/include/asm/svm.h struct vmcb_seg ds; ds 38 arch/x86/include/asm/user32.h unsigned short ds, __ds, es, __es; ds 86 arch/x86/include/asm/user_32.h unsigned long ds; ds 93 arch/x86/include/asm/user_64.h unsigned long ds; ds 26 arch/x86/include/asm/vm86.h unsigned short ds, __dsh; ds 67 arch/x86/include/asm/xen/interface_32.h uint16_t ds, _pad3; ds 125 arch/x86/include/asm/xen/interface_64.h uint16_t ds, _pad4[3]; ds 151 arch/x86/include/uapi/asm/kvm.h struct kvm_segment cs, ds, es, fs, gs, ss; ds 206 arch/x86/include/uapi/asm/sigcontext.h __u16 ds, __dsh; ds 304 arch/x86/include/uapi/asm/sigcontext.h __u16 ds, __dsh; ds 88 arch/x86/include/uapi/asm/vm86.h unsigned short ds, __dsh; ds 34 arch/x86/kernel/asm-offsets_32.c OFFSET(PT_DS, pt_regs, ds); ds 66 arch/x86/kernel/doublefault.c .ds = __USER_DS, ds 252 arch/x86/kernel/fpu/regset.c savesegment(ds, env->fos); ds 254 arch/x86/kernel/fpu/regset.c env->fos = tsk->thread.ds; ds 61 arch/x86/kernel/kgdb.c { "ds", 4, offsetof(struct pt_regs, ds) }, ds 41 arch/x86/kernel/ldt.c savesegment(ds, sel); ds 43 arch/x86/kernel/ldt.c loadsegment(ds, sel); ds 34 arch/x86/kernel/perf_regs.c PT_REGS_OFFSET(PERF_REG_X86_DS, ds), ds 79 arch/x86/kernel/process_32.c (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, regs->ss, regs->flags); ds 188 arch/x86/kernel/process_32.c regs->ds = __USER_DS; ds 72 arch/x86/kernel/process_64.c unsigned int ds, es; ds 103 arch/x86/kernel/process_64.c asm("movl %%ds,%0" : "=r" (ds)); ds 119 arch/x86/kernel/process_64.c printk(KERN_DEFAULT "CS: %04lx DS: %04x ES: %04x CR0: %016lx\n", regs->cs, ds, ds 397 arch/x86/kernel/process_64.c savesegment(ds, p->thread.ds); ds 464 arch/x86/kernel/process_64.c loadsegment(ds, _ds); ds 556 arch/x86/kernel/process_64.c savesegment(ds, prev->ds); ds 557 arch/x86/kernel/process_64.c if (unlikely(next->ds | prev->ds)) ds 558 arch/x86/kernel/process_64.c loadsegment(ds, next->ds); ds 85 arch/x86/kernel/ptrace.c REG_OFFSET_NAME(ds), ds 251 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, ds): ds 256 arch/x86/kernel/ptrace.c return task->thread.ds; ds 291 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct,ds): ds 292 arch/x86/kernel/ptrace.c task->thread.ds = value; ds 294 arch/x86/kernel/ptrace.c loadsegment(ds, task->thread.ds); ds 359 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, ds): ds 401 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, ds): ds 872 arch/x86/kernel/ptrace.c SEG32(ds); ds 944 arch/x86/kernel/ptrace.c SEG32(ds); ds 115 arch/x86/kernel/signal.c COPY_SEG(ds); ds 170 arch/x86/kernel/signal.c put_user_ex(regs->ds, (unsigned int __user *)&sc->ds); ds 367 arch/x86/kernel/signal.c regs->ds = __USER_DS; ds 433 arch/x86/kernel/signal.c regs->ds = __USER_DS; ds 594 arch/x86/kernel/signal.c loadsegment(ds, __USER_DS); ds 156 arch/x86/kernel/tls.c savesegment(ds, sel); ds 158 arch/x86/kernel/tls.c loadsegment(ds, sel); ds 138 arch/x86/kernel/vm86_32.c put_user_ex(regs->ds, &user->regs.ds); ds 304 arch/x86/kernel/vm86_32.c get_user_ex(vm86regs.ds, &user_vm86->regs.ds); ds 3067 arch/x86/kvm/emulate.c tss->ds = get_segment_selector(ctxt, VCPU_SREG_DS); ds 3096 arch/x86/kvm/emulate.c set_segment_selector(ctxt, tss->ds, VCPU_SREG_DS); ds 3120 arch/x86/kvm/emulate.c ret = __load_segment_descriptor(ctxt, tss->ds, VCPU_SREG_DS, cpl, ds 3181 arch/x86/kvm/emulate.c tss->ds = get_segment_selector(ctxt, VCPU_SREG_DS); ds 3216 arch/x86/kvm/emulate.c set_segment_selector(ctxt, tss->ds, VCPU_SREG_DS); ds 3253 arch/x86/kvm/emulate.c ret = __load_segment_descriptor(ctxt, tss->ds, VCPU_SREG_DS, cpl, ds 1608 arch/x86/kvm/svm.c init_seg(&save->ds); ds 2439 arch/x86/kvm/svm.c case VCPU_SREG_DS: return &save->ds; ds 3384 arch/x86/kvm/svm.c nested_vmcb->save.ds = vmcb->save.ds; ds 3454 arch/x86/kvm/svm.c svm->vmcb->save.ds = hsave->save.ds; ds 3558 arch/x86/kvm/svm.c svm->vmcb->save.ds = nested_vmcb->save.ds; ds 3700 arch/x86/kvm/svm.c hsave->save.ds = vmcb->save.ds; ds 4911 arch/x86/kvm/svm.c save->ds.selector, save->ds.attrib, ds 4912 arch/x86/kvm/svm.c save->ds.limit, save->ds.base); ds 27 arch/x86/kvm/tss.h u32 ds; ds 56 arch/x86/kvm/tss.h u16 ds; ds 1145 arch/x86/kvm/vmx/vmx.c savesegment(ds, host_state->ds_sel); ds 1200 arch/x86/kvm/vmx/vmx.c loadsegment(ds, host_state->ds_sel); ds 6608 arch/x86/kvm/vmx/vmx.c loadsegment(ds, __USER_DS); ds 7858 arch/x86/kvm/x86.c struct kvm_segment cs, ds; ds 7905 arch/x86/kvm/x86.c ds.selector = 0; ds 7906 arch/x86/kvm/x86.c ds.base = 0; ds 7908 arch/x86/kvm/x86.c cs.limit = ds.limit = 0xffffffff; ds 7909 arch/x86/kvm/x86.c cs.type = ds.type = 0x3; ds 7910 arch/x86/kvm/x86.c cs.dpl = ds.dpl = 0; ds 7911 arch/x86/kvm/x86.c cs.db = ds.db = 0; ds 7912 arch/x86/kvm/x86.c cs.s = ds.s = 1; ds 7913 arch/x86/kvm/x86.c cs.l = ds.l = 0; ds 7914 arch/x86/kvm/x86.c cs.g = ds.g = 1; ds 7915 arch/x86/kvm/x86.c cs.avl = ds.avl = 0; ds 7916 arch/x86/kvm/x86.c cs.present = ds.present = 1; ds 7917 arch/x86/kvm/x86.c cs.unusable = ds.unusable = 0; ds 7918 arch/x86/kvm/x86.c cs.padding = ds.padding = 0; ds 7921 arch/x86/kvm/x86.c kvm_set_segment(vcpu, &ds, VCPU_SREG_DS); ds 7922 arch/x86/kvm/x86.c kvm_set_segment(vcpu, &ds, VCPU_SREG_ES); ds 7923 arch/x86/kvm/x86.c kvm_set_segment(vcpu, &ds, VCPU_SREG_FS); ds 7924 arch/x86/kvm/x86.c kvm_set_segment(vcpu, &ds, VCPU_SREG_GS); ds 7925 arch/x86/kvm/x86.c kvm_set_segment(vcpu, &ds, VCPU_SREG_SS); ds 8727 arch/x86/kvm/x86.c kvm_get_segment(vcpu, &sregs->ds, VCPU_SREG_DS); ds 8928 arch/x86/kvm/x86.c kvm_set_segment(vcpu, &sregs->ds, VCPU_SREG_DS); ds 333 arch/x86/lib/insn-eval.c savesegment(ds, sel); ds 357 arch/x86/lib/insn-eval.c return vm86regs->ds; ds 377 arch/x86/lib/insn-eval.c return (unsigned short)(regs->ds & 0xffff); ds 81 arch/x86/math-emu/fpu_system.h #define FPU_DS (*(unsigned short *) &(FPU_info->regs->ds)) ds 47 arch/x86/math-emu/get_address.c offsetof(struct kernel_vm86_regs, ds), ds 52 arch/x86/math-emu/get_address.c offsetof(struct kernel_vm86_regs, ds) ds 60 arch/x86/math-emu/get_address.c offsetof(struct pt_regs, ds), ds 63 arch/x86/math-emu/get_address.c offsetof(struct pt_regs, ds), /* dummy, not saved on stack */ ds 65 arch/x86/math-emu/get_address.c offsetof(struct pt_regs, ds) ds 108 arch/x86/power/cpu.c savesegment(ds, ctxt->ds); ds 222 arch/x86/power/cpu.c loadsegment(ds, __USER_DS); ds 244 arch/x86/power/cpu.c loadsegment(ds, ctxt->es); ds 172 arch/x86/um/signal.c GETREG(DS, ds); ds 251 arch/x86/um/signal.c PUTREG(DS, ds); ds 218 arch/x86/xen/smp_pv.c loadsegment(ds, __USER_DS); ds 316 arch/x86/xen/smp_pv.c ctxt->user_regs.ds = __USER_DS; ds 234 crypto/ahash.c unsigned int ds = crypto_ahash_digestsize(tfm); ds 237 crypto/ahash.c priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), ds 34 crypto/algif_hash.c unsigned ds; ds 39 crypto/algif_hash.c ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); ds 41 crypto/algif_hash.c ctx->result = sock_kmalloc(sk, ds, GFP_KERNEL); ds 45 crypto/algif_hash.c memset(ctx->result, 0, ds); ds 52 crypto/algif_hash.c unsigned ds; ds 57 crypto/algif_hash.c ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); ds 59 crypto/algif_hash.c sock_kzfree_s(sk, ctx->result, ds); ds 189 crypto/algif_hash.c unsigned ds = crypto_ahash_digestsize(crypto_ahash_reqtfm(&ctx->req)); ds 193 crypto/algif_hash.c if (len > ds) ds 194 crypto/algif_hash.c len = ds; ds 195 crypto/algif_hash.c else if (len < ds) ds 44 crypto/hmac.c int ds = crypto_shash_digestsize(parent); ds 63 crypto/hmac.c keylen = ds; ds 116 crypto/hmac.c int ds = crypto_shash_digestsize(parent); ds 123 crypto/hmac.c crypto_shash_finup(desc, out, ds, out); ds 131 crypto/hmac.c int ds = crypto_shash_digestsize(parent); ds 138 crypto/hmac.c crypto_shash_finup(desc, out, ds, out); ds 176 crypto/hmac.c int ds; ds 193 crypto/hmac.c ds = salg->digestsize; ds 195 crypto/hmac.c if (ds > alg->cra_blocksize || ds 214 crypto/hmac.c inst->alg.digestsize = ds; ds 129 crypto/shash.c unsigned int ds = crypto_shash_digestsize(tfm); ds 138 crypto/shash.c if (WARN_ON(buf + ds > ubuf + sizeof(ubuf))) ds 145 crypto/shash.c memcpy(out, buf, ds); ds 148 crypto/shash.c memset(buf, 0, ds); ds 73 drivers/acpi/dock.c static int add_dock_dependent_device(struct dock_station *ds, ds 84 drivers/acpi/dock.c list_add_tail(&dd->list, &ds->dependent_devices); ds 134 drivers/acpi/dock.c struct dock_station *ds; ds 136 drivers/acpi/dock.c list_for_each_entry(ds, &dock_stations, sibling) ds 137 drivers/acpi/dock.c if (ds->handle == handle) ds 138 drivers/acpi/dock.c return ds; ds 152 drivers/acpi/dock.c find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) ds 156 drivers/acpi/dock.c list_for_each_entry(dd, &ds->dependent_devices, list) ds 166 drivers/acpi/dock.c struct dock_station *ds = find_dock_station(dshandle); ds 168 drivers/acpi/dock.c if (ds && !find_dock_dependent_device(ds, adev)) ds 169 drivers/acpi/dock.c add_dock_dependent_device(ds, adev); ds 209 drivers/acpi/dock.c static int dock_present(struct dock_station *ds) ds 214 drivers/acpi/dock.c if (ds) { ds 215 drivers/acpi/dock.c status = acpi_evaluate_integer(ds->handle, "_STA", NULL, &sta); ds 226 drivers/acpi/dock.c static void hot_remove_dock_devices(struct dock_station *ds) ds 235 drivers/acpi/dock.c list_for_each_entry_reverse(dd, &ds->dependent_devices, list) ds 238 drivers/acpi/dock.c list_for_each_entry_reverse(dd, &ds->dependent_devices, list) ds 252 drivers/acpi/dock.c static void hotplug_dock_devices(struct dock_station *ds, u32 event) ds 257 drivers/acpi/dock.c list_for_each_entry(dd, &ds->dependent_devices, list) ds 261 drivers/acpi/dock.c list_for_each_entry(dd, &ds->dependent_devices, list) ds 270 drivers/acpi/dock.c list_for_each_entry(dd, &ds->dependent_devices, list) { ds 281 drivers/acpi/dock.c static void dock_event(struct dock_station *ds, u32 event, int num) ds 283 drivers/acpi/dock.c struct device *dev = &ds->dock_device->dev; ds 300 drivers/acpi/dock.c list_for_each_entry(dd, &ds->dependent_devices, list) ds 314 drivers/acpi/dock.c static void handle_dock(struct dock_station *ds, int dock) ds 321 drivers/acpi/dock.c acpi_handle_info(ds->handle, "%s\n", dock ? "docking" : "undocking"); ds 328 drivers/acpi/dock.c status = acpi_evaluate_integer(ds->handle, "_DCK", &arg_list, &value); ds 330 drivers/acpi/dock.c acpi_handle_err(ds->handle, "Failed to execute _DCK (0x%x)\n", ds 334 drivers/acpi/dock.c static inline void dock(struct dock_station *ds) ds 336 drivers/acpi/dock.c handle_dock(ds, 1); ds 339 drivers/acpi/dock.c static inline void undock(struct dock_station *ds) ds 341 drivers/acpi/dock.c handle_dock(ds, 0); ds 344 drivers/acpi/dock.c static inline void begin_dock(struct dock_station *ds) ds 346 drivers/acpi/dock.c ds->flags |= DOCK_DOCKING; ds 349 drivers/acpi/dock.c static inline void complete_dock(struct dock_station *ds) ds 351 drivers/acpi/dock.c ds->flags &= ~(DOCK_DOCKING); ds 352 drivers/acpi/dock.c ds->last_dock_time = jiffies; ds 355 drivers/acpi/dock.c static inline void begin_undock(struct dock_station *ds) ds 357 drivers/acpi/dock.c ds->flags |= DOCK_UNDOCKING; ds 360 drivers/acpi/dock.c static inline void complete_undock(struct dock_station *ds) ds 362 drivers/acpi/dock.c ds->flags &= ~(DOCK_UNDOCKING); ds 373 drivers/acpi/dock.c static int dock_in_progress(struct dock_station *ds) ds 375 drivers/acpi/dock.c if ((ds->flags & DOCK_DOCKING) || ds 376 drivers/acpi/dock.c time_before(jiffies, (ds->last_dock_time + HZ))) ds 387 drivers/acpi/dock.c static int handle_eject_request(struct dock_station *ds, u32 event) ds 389 drivers/acpi/dock.c if (dock_in_progress(ds)) ds 399 drivers/acpi/dock.c dock_event(ds, event, UNDOCK_EVENT); ds 401 drivers/acpi/dock.c hot_remove_dock_devices(ds); ds 402 drivers/acpi/dock.c undock(ds); ds 403 drivers/acpi/dock.c acpi_evaluate_lck(ds->handle, 0); ds 404 drivers/acpi/dock.c acpi_evaluate_ej0(ds->handle); ds 405 drivers/acpi/dock.c if (dock_present(ds)) { ds 406 drivers/acpi/dock.c acpi_handle_err(ds->handle, "Unable to undock!\n"); ds 409 drivers/acpi/dock.c complete_undock(ds); ds 425 drivers/acpi/dock.c struct dock_station *ds = find_dock_station(handle); ds 428 drivers/acpi/dock.c if (!ds) ds 436 drivers/acpi/dock.c if ((ds->flags & DOCK_IS_DOCK) && event == ACPI_NOTIFY_DEVICE_CHECK) ds 451 drivers/acpi/dock.c if (!dock_in_progress(ds) && !acpi_device_enumerated(adev)) { ds 452 drivers/acpi/dock.c begin_dock(ds); ds 453 drivers/acpi/dock.c dock(ds); ds 454 drivers/acpi/dock.c if (!dock_present(ds)) { ds 456 drivers/acpi/dock.c complete_dock(ds); ds 459 drivers/acpi/dock.c hotplug_dock_devices(ds, event); ds 460 drivers/acpi/dock.c complete_dock(ds); ds 461 drivers/acpi/dock.c dock_event(ds, event, DOCK_EVENT); ds 462 drivers/acpi/dock.c acpi_evaluate_lck(ds->handle, 1); ds 466 drivers/acpi/dock.c if (dock_present(ds) || dock_in_progress(ds)) ds 474 drivers/acpi/dock.c begin_undock(ds); ds 475 drivers/acpi/dock.c if ((immediate_undock && !(ds->flags & DOCK_IS_ATA)) ds 477 drivers/acpi/dock.c handle_eject_request(ds, event); ds 479 drivers/acpi/dock.c dock_event(ds, event, UNDOCK_EVENT); ds 588 drivers/acpi/dock.c struct dock_station *dock_station, ds = { NULL, }; ds 598 drivers/acpi/dock.c pdevinfo.data = &ds; ds 599 drivers/acpi/dock.c pdevinfo.size_data = sizeof(ds); ds 3031 drivers/block/drbd/drbd_main.c static void drbd_free_one_sock(struct drbd_socket *ds) ds 3034 drivers/block/drbd/drbd_main.c mutex_lock(&ds->mutex); ds 3035 drivers/block/drbd/drbd_main.c s = ds->socket; ds 3036 drivers/block/drbd/drbd_main.c ds->socket = NULL; ds 3037 drivers/block/drbd/drbd_main.c mutex_unlock(&ds->mutex); ds 1866 drivers/block/drbd/drbd_receiver.c unsigned int data_size = pi->size, ds; ds 1888 drivers/block/drbd/drbd_receiver.c ds = data_size; ds 1892 drivers/block/drbd/drbd_receiver.c ds = be32_to_cpu(trim->size); ds 1896 drivers/block/drbd/drbd_receiver.c ds = be32_to_cpu(zeroes->size); ds 1908 drivers/block/drbd/drbd_receiver.c ds = be32_to_cpu(wsame->size); ds 1911 drivers/block/drbd/drbd_receiver.c if (!expect(IS_ALIGNED(ds, 512))) ds 1914 drivers/block/drbd/drbd_receiver.c if (!expect(ds <= (DRBD_MAX_BBIO_SECTORS << 9))) ds 1916 drivers/block/drbd/drbd_receiver.c } else if (!expect(ds <= DRBD_MAX_BIO_SIZE)) ds 1921 drivers/block/drbd/drbd_receiver.c if (sector + (ds>>9) > capacity) { ds 1925 drivers/block/drbd/drbd_receiver.c (unsigned long long)sector, ds); ds 1932 drivers/block/drbd/drbd_receiver.c peer_req = drbd_alloc_peer_req(peer_device, id, sector, ds, data_size, GFP_NOIO); ds 1949 drivers/block/drbd/drbd_receiver.c ds = data_size; ds 1952 drivers/block/drbd/drbd_receiver.c unsigned len = min_t(int, ds, PAGE_SIZE); ds 1964 drivers/block/drbd/drbd_receiver.c ds -= len; ds 425 drivers/clk/rockchip/clk.h #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ ds 438 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 447 drivers/clk/rockchip/clk.h mf, do, ds, dw, df, go, gs, gf) \ ds 460 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 468 drivers/clk/rockchip/clk.h #define COMPOSITE_NOMUX(_id, cname, pname, f, mo, ds, dw, df, \ ds 478 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 486 drivers/clk/rockchip/clk.h #define COMPOSITE_NOMUX_DIVTBL(_id, cname, pname, f, mo, ds, dw,\ ds 496 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 524 drivers/clk/rockchip/clk.h ds, dw, df) \ ds 536 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 543 drivers/clk/rockchip/clk.h mw, mf, ds, dw, df, dt) \ ds 555 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 614 drivers/clk/rockchip/clk.h ds, dw, df) \ ds 625 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 754 drivers/clk/rockchip/clk.h #define COMPOSITE_HALFDIV(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ ds 767 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 776 drivers/clk/rockchip/clk.h ds, dw, df) \ ds 788 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 794 drivers/clk/rockchip/clk.h #define COMPOSITE_NOMUX_HALFDIV(_id, cname, pname, f, mo, ds, dw, df, \ ds 804 drivers/clk/rockchip/clk.h .div_shift = ds, \ ds 690 drivers/crypto/amcc/crypto4xx_alg.c int ds; ds 694 drivers/crypto/amcc/crypto4xx_alg.c ds = crypto_ahash_digestsize( ds 696 drivers/crypto/amcc/crypto4xx_alg.c sa->sa_command_0.bf.digest_len = ds >> 2; ds 707 drivers/crypto/amcc/crypto4xx_alg.c unsigned int ds = crypto_ahash_digestsize(ahash); ds 709 drivers/crypto/amcc/crypto4xx_alg.c sg_init_one(&dst, req->result, ds); ds 726 drivers/crypto/amcc/crypto4xx_alg.c unsigned int ds = crypto_ahash_digestsize(ahash); ds 728 drivers/crypto/amcc/crypto4xx_alg.c sg_init_one(&dst, req->result, ds); ds 1819 drivers/crypto/atmel-sha.c size_t ds = crypto_ahash_digestsize(tfm); ds 1821 drivers/crypto/atmel-sha.c size_t i, num_words = ds / sizeof(u32); ds 1826 drivers/crypto/atmel-sha.c memset((u8 *)hmac->ipad + ds, 0, bs - ds); ds 1959 drivers/crypto/atmel-sha.c size_t ds = crypto_ahash_digestsize(tfm); ds 1966 drivers/crypto/atmel-sha.c num_words = ds / sizeof(u32); ds 1979 drivers/crypto/atmel-sha.c atmel_sha_write(dd, SHA_MSR, bs + ds); ds 1980 drivers/crypto/atmel-sha.c atmel_sha_write(dd, SHA_BCR, ds); ds 1983 drivers/crypto/atmel-sha.c sg_init_one(&dd->tmp, digest, ds); ds 1984 drivers/crypto/atmel-sha.c return atmel_sha_cpu_start(dd, &dd->tmp, ds, false, true, ds 88 drivers/crypto/cavium/zip/zip_deflate.c zip_cmd->s.ds = 0; ds 91 drivers/crypto/cavium/zip/zip_inflate.c zip_cmd->s.ds = 0; ds 192 drivers/crypto/cavium/zip/zip_regs.h u64 ds : 1; ds 198 drivers/crypto/cavium/zip/zip_regs.h u64 ds : 1; ds 285 drivers/crypto/chelsio/chcr_algo.c static struct crypto_shash *chcr_alloc_shash(unsigned int ds) ds 289 drivers/crypto/chelsio/chcr_algo.c switch (ds) { ds 354 drivers/crypto/chelsio/chcr_algo.c static void chcr_change_order(char *buf, int ds) ds 358 drivers/crypto/chelsio/chcr_algo.c if (ds == SHA512_DIGEST_SIZE) { ds 359 drivers/crypto/chelsio/chcr_algo.c for (i = 0; i < (ds / sizeof(u64)); i++) ds 363 drivers/crypto/chelsio/chcr_algo.c for (i = 0; i < (ds / sizeof(u32)); i++) ds 92 drivers/crypto/mediatek/mtk-sha.c size_t ds; ds 283 drivers/crypto/mediatek/mtk-sha.c info->tfm[0] = SHA_TFM_HASH | SHA_TFM_SIZE(SIZE_IN_WORDS(ctx->ds)); ds 313 drivers/crypto/mediatek/mtk-sha.c info->cmd[2] = SHA_CMD2 | SHA_TFM_DIGEST(SIZE_IN_WORDS(ctx->ds)); ds 368 drivers/crypto/mediatek/mtk-sha.c crypto_shash_finup(shash, req->result, ctx->ds, req->result); ds 379 drivers/crypto/mediatek/mtk-sha.c ctx->ds = crypto_ahash_digestsize(tfm); ds 381 drivers/crypto/mediatek/mtk-sha.c switch (ctx->ds) { ds 626 drivers/crypto/mediatek/mtk-sha.c for (i = 0; i < SIZE_IN_WORDS(ctx->ds); i++) ds 805 drivers/crypto/mediatek/mtk-sha.c size_t ds = crypto_shash_digestsize(bctx->shash); ds 816 drivers/crypto/mediatek/mtk-sha.c keylen = ds; ds 465 drivers/crypto/n2_core.c int err, bs, ds; ds 475 drivers/crypto/n2_core.c ds = crypto_shash_digestsize(child_shash); ds 476 drivers/crypto/n2_core.c BUG_ON(ds > N2_HASH_KEY_MAX); ds 482 drivers/crypto/n2_core.c keylen = ds; ds 613 drivers/crypto/n2_core.c int ds; ds 615 drivers/crypto/n2_core.c ds = n2alg->digest_size; ds 617 drivers/crypto/n2_core.c memcpy(req->result, n2alg->hash_zero, ds); ds 623 drivers/crypto/n2_core.c n2alg->hw_op_hashsz, ds, ds 633 drivers/crypto/n2_core.c int ds; ds 635 drivers/crypto/n2_core.c ds = n2alg->derived.digest_size; ds 654 drivers/crypto/n2_core.c n2alg->derived.hw_op_hashsz, ds, ds 1051 drivers/crypto/omap-sham.c int ds = crypto_shash_digestsize(bctx->shash); ds 1058 drivers/crypto/omap-sham.c crypto_shash_finup(shash, req->result, ds, req->result); ds 1304 drivers/crypto/omap-sham.c int ds = crypto_shash_digestsize(bctx->shash); ds 1330 drivers/crypto/omap-sham.c keylen = ds; ds 289 drivers/dma/imx-sdma.c u32 ds; ds 281 drivers/dma/k3dma.c struct k3_dma_desc_sw *ds = ds 287 drivers/dma/k3dma.c list_del(&ds->vd.node); ds 289 drivers/dma/k3dma.c c->phy->ds_run = ds; ds 292 drivers/dma/k3dma.c k3_dma_set_desc(c->phy, &ds->desc_hw[0]); ds 404 drivers/dma/k3dma.c struct k3_dma_desc_sw *ds = p->ds_run; ds 409 drivers/dma/k3dma.c index = ((clli - ds->desc_hw_lli) / ds 411 drivers/dma/k3dma.c for (; index < ds->desc_num; index++) { ds 412 drivers/dma/k3dma.c bytes += ds->desc_hw[index].count; ds 414 drivers/dma/k3dma.c if (!ds->desc_hw[index].lli) ds 448 drivers/dma/k3dma.c static void k3_dma_fill_desc(struct k3_dma_desc_sw *ds, dma_addr_t dst, ds 451 drivers/dma/k3dma.c if (num != ds->desc_num - 1) ds 452 drivers/dma/k3dma.c ds->desc_hw[num].lli = ds->desc_hw_lli + (num + 1) * ds 455 drivers/dma/k3dma.c ds->desc_hw[num].lli |= CX_LLI_CHAIN_EN; ds 456 drivers/dma/k3dma.c ds->desc_hw[num].count = len; ds 457 drivers/dma/k3dma.c ds->desc_hw[num].saddr = src; ds 458 drivers/dma/k3dma.c ds->desc_hw[num].daddr = dst; ds 459 drivers/dma/k3dma.c ds->desc_hw[num].config = ccfg; ds 466 drivers/dma/k3dma.c struct k3_dma_desc_sw *ds; ds 476 drivers/dma/k3dma.c ds = kzalloc(sizeof(*ds), GFP_NOWAIT); ds 477 drivers/dma/k3dma.c if (!ds) ds 480 drivers/dma/k3dma.c ds->desc_hw = dma_pool_zalloc(d->pool, GFP_NOWAIT, &ds->desc_hw_lli); ds 481 drivers/dma/k3dma.c if (!ds->desc_hw) { ds 483 drivers/dma/k3dma.c kfree(ds); ds 486 drivers/dma/k3dma.c ds->desc_num = num; ds 487 drivers/dma/k3dma.c return ds; ds 495 drivers/dma/k3dma.c struct k3_dma_desc_sw *ds; ds 504 drivers/dma/k3dma.c ds = k3_dma_alloc_desc_resource(num, chan); ds 505 drivers/dma/k3dma.c if (!ds) ds 509 drivers/dma/k3dma.c ds->size = len; ds 521 drivers/dma/k3dma.c k3_dma_fill_desc(ds, dst, src, copy, num++, c->ccfg); ds 528 drivers/dma/k3dma.c ds->desc_hw[num-1].lli = 0; /* end of link */ ds 529 drivers/dma/k3dma.c return vchan_tx_prep(&c->vc, &ds->vd, flags); ds 537 drivers/dma/k3dma.c struct k3_dma_desc_sw *ds; ds 554 drivers/dma/k3dma.c ds = k3_dma_alloc_desc_resource(num, chan); ds 555 drivers/dma/k3dma.c if (!ds) ds 576 drivers/dma/k3dma.c k3_dma_fill_desc(ds, dst, src, len, num++, c->ccfg); ds 583 drivers/dma/k3dma.c ds->desc_hw[num-1].lli = 0; /* end of link */ ds 584 drivers/dma/k3dma.c ds->size = total; ds 585 drivers/dma/k3dma.c return vchan_tx_prep(&c->vc, &ds->vd, flags); ds 595 drivers/dma/k3dma.c struct k3_dma_desc_sw *ds; ds 610 drivers/dma/k3dma.c ds = k3_dma_alloc_desc_resource(num, chan); ds 611 drivers/dma/k3dma.c if (!ds) ds 642 drivers/dma/k3dma.c k3_dma_fill_desc(ds, dst, src, len, num++, c->ccfg | en_tc2); ds 649 drivers/dma/k3dma.c ds->desc_hw[num - 1].lli |= ds->desc_hw_lli; ds 651 drivers/dma/k3dma.c ds->size = total; ds 653 drivers/dma/k3dma.c return vchan_tx_prep(&c->vc, &ds->vd, flags); ds 713 drivers/dma/k3dma.c struct k3_dma_desc_sw *ds = ds 717 drivers/dma/k3dma.c dma_pool_free(d->pool, ds->desc_hw, ds->desc_hw_lli); ds 718 drivers/dma/k3dma.c kfree(ds); ds 333 drivers/dma/txx9dmac.c struct txx9dmac_slave *ds = dc->chan.private; ds 350 drivers/dma/txx9dmac.c if (ds) { ds 351 drivers/dma/txx9dmac.c if (ds->tx_reg) { ds 352 drivers/dma/txx9dmac.c sai = ds->reg_width; ds 356 drivers/dma/txx9dmac.c dai = ds->reg_width; ds 371 drivers/dma/txx9dmac.c if (ds) { ds 372 drivers/dma/txx9dmac.c if (ds->tx_reg) { ds 373 drivers/dma/txx9dmac.c sai = ds->reg_width; ds 377 drivers/dma/txx9dmac.c dai = ds->reg_width; ds 809 drivers/dma/txx9dmac.c struct txx9dmac_slave *ds = chan->private; ds 817 drivers/dma/txx9dmac.c BUG_ON(!ds || !ds->reg_width); ds 818 drivers/dma/txx9dmac.c if (ds->tx_reg) ds 843 drivers/dma/txx9dmac.c desc->hwdesc.DAR = ds->tx_reg; ds 845 drivers/dma/txx9dmac.c desc->hwdesc.SAR = ds->rx_reg; ds 852 drivers/dma/txx9dmac.c desc->hwdesc32.DAR = ds->tx_reg; ds 854 drivers/dma/txx9dmac.c desc->hwdesc32.SAR = ds->rx_reg; ds 860 drivers/dma/txx9dmac.c sai = ds->reg_width; ds 864 drivers/dma/txx9dmac.c dai = ds->reg_width; ds 987 drivers/dma/txx9dmac.c struct txx9dmac_slave *ds = chan->private; ds 1006 drivers/dma/txx9dmac.c if (ds) ds 1010 drivers/dma/txx9dmac.c if (!ds || ds 1011 drivers/dma/txx9dmac.c (ds->tx_reg && ds->rx_reg) || (!ds->tx_reg && !ds->rx_reg)) ds 1014 drivers/dma/txx9dmac.c TXX9_DMA_CCR_XFSZ(__ffs(ds->reg_width)); ds 199 drivers/dma/zx_dma.c struct zx_dma_desc_sw *ds = ds 205 drivers/dma/zx_dma.c list_del(&ds->vd.node); ds 206 drivers/dma/zx_dma.c c->phy->ds_run = ds; ds 209 drivers/dma/zx_dma.c zx_dma_set_desc(c->phy, ds->desc_hw); ds 360 drivers/dma/zx_dma.c struct zx_dma_desc_sw *ds = p->ds_run; ds 365 drivers/dma/zx_dma.c index = (clli - ds->desc_hw_lli) / ds 367 drivers/dma/zx_dma.c for (; index < ds->desc_num; index++) { ds 368 drivers/dma/zx_dma.c bytes += ds->desc_hw[index].src_x; ds 370 drivers/dma/zx_dma.c if (!ds->desc_hw[index].lli) ds 406 drivers/dma/zx_dma.c static void zx_dma_fill_desc(struct zx_dma_desc_sw *ds, dma_addr_t dst, ds 409 drivers/dma/zx_dma.c if ((num + 1) < ds->desc_num) ds 410 drivers/dma/zx_dma.c ds->desc_hw[num].lli = ds->desc_hw_lli + (num + 1) * ds 412 drivers/dma/zx_dma.c ds->desc_hw[num].saddr = src; ds 413 drivers/dma/zx_dma.c ds->desc_hw[num].daddr = dst; ds 414 drivers/dma/zx_dma.c ds->desc_hw[num].src_x = len; ds 415 drivers/dma/zx_dma.c ds->desc_hw[num].ctr = ccfg; ds 422 drivers/dma/zx_dma.c struct zx_dma_desc_sw *ds; ds 432 drivers/dma/zx_dma.c ds = kzalloc(sizeof(*ds), GFP_ATOMIC); ds 433 drivers/dma/zx_dma.c if (!ds) ds 436 drivers/dma/zx_dma.c ds->desc_hw = dma_pool_zalloc(d->pool, GFP_NOWAIT, &ds->desc_hw_lli); ds 437 drivers/dma/zx_dma.c if (!ds->desc_hw) { ds 439 drivers/dma/zx_dma.c kfree(ds); ds 442 drivers/dma/zx_dma.c ds->desc_num = num; ds 443 drivers/dma/zx_dma.c return ds; ds 511 drivers/dma/zx_dma.c struct zx_dma_desc_sw *ds; ds 523 drivers/dma/zx_dma.c ds = zx_alloc_desc_resource(num, chan); ds 524 drivers/dma/zx_dma.c if (!ds) ds 527 drivers/dma/zx_dma.c ds->size = len; ds 532 drivers/dma/zx_dma.c zx_dma_fill_desc(ds, dst, src, copy, num++, c->ccfg); ds 540 drivers/dma/zx_dma.c ds->desc_hw[num - 1].lli = 0; /* end of link */ ds 541 drivers/dma/zx_dma.c ds->desc_hw[num - 1].ctr |= ZX_IRQ_ENABLE_ALL; ds 542 drivers/dma/zx_dma.c return vchan_tx_prep(&c->vc, &ds->vd, flags); ds 550 drivers/dma/zx_dma.c struct zx_dma_desc_sw *ds; ds 568 drivers/dma/zx_dma.c ds = zx_alloc_desc_resource(num, chan); ds 569 drivers/dma/zx_dma.c if (!ds) ds 590 drivers/dma/zx_dma.c zx_dma_fill_desc(ds, dst, src, len, num++, c->ccfg); ds 597 drivers/dma/zx_dma.c ds->desc_hw[num - 1].lli = 0; /* end of link */ ds 598 drivers/dma/zx_dma.c ds->desc_hw[num - 1].ctr |= ZX_IRQ_ENABLE_ALL; ds 599 drivers/dma/zx_dma.c ds->size = total; ds 600 drivers/dma/zx_dma.c return vchan_tx_prep(&c->vc, &ds->vd, flags); ds 609 drivers/dma/zx_dma.c struct zx_dma_desc_sw *ds; ds 622 drivers/dma/zx_dma.c ds = zx_alloc_desc_resource(num_periods, chan); ds 623 drivers/dma/zx_dma.c if (!ds) ds 635 drivers/dma/zx_dma.c zx_dma_fill_desc(ds, dst, src, period_len, num++, ds 641 drivers/dma/zx_dma.c ds->desc_hw[num - 1].lli = ds->desc_hw_lli; ds 642 drivers/dma/zx_dma.c ds->size = buf_len; ds 643 drivers/dma/zx_dma.c return vchan_tx_prep(&c->vc, &ds->vd, flags); ds 717 drivers/dma/zx_dma.c struct zx_dma_desc_sw *ds = ds 721 drivers/dma/zx_dma.c dma_pool_free(d->pool, ds->desc_hw, ds->desc_hw_lli); ds 722 drivers/dma/zx_dma.c kfree(ds); ds 215 drivers/fsi/fsi-master-ast-cf.c uint8_t ds, opcode; ds 257 drivers/fsi/fsi-master-ast-cf.c ds = size > 1 ? 1 : 0; ds 266 drivers/fsi/fsi-master-ast-cf.c msg_push_bits(cmd, ds, 1); ds 240 drivers/fsi/fsi-master-gpio.c uint8_t ds, opcode; ds 282 drivers/fsi/fsi-master-gpio.c ds = size > 1 ? 1 : 0; ds 291 drivers/fsi/fsi-master-gpio.c msg_push_bits(cmd, ds, 1); ds 242 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_emit_gds_switch(r, v, db, ds, wb, ws, ab, as) (r)->funcs->emit_gds_switch((r), (v), (db), (ds), (wb), (ws), (ab), (as)) ds 1324 drivers/gpu/drm/amd/display/dc/bios/command_table.c cpu_to_le16((uint16_t)(bp_params->ds.ds_frac_size)); ds 1338 drivers/gpu/drm/amd/display/dc/bios/command_table.c ((bp_params->ds.feedback_amount << ds 1341 drivers/gpu/drm/amd/display/dc/bios/command_table.c ((bp_params->ds.nfrac_amount << ds 1394 drivers/gpu/drm/amd/display/dc/bios/command_table.c cpu_to_le16((uint16_t)(bp_params->ds.ds_frac_size)); ds 1407 drivers/gpu/drm/amd/display/dc/bios/command_table.c ((bp_params->ds.feedback_amount << ds 1410 drivers/gpu/drm/amd/display/dc/bios/command_table.c ((bp_params->ds.nfrac_amount << ds 729 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c bp_params.ds.feedback_amount = ds 731 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c bp_params.ds.nfrac_amount = ds 733 drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c bp_params.ds.ds_frac_size = d_s_data.ds_frac_size; ds 299 drivers/gpu/drm/amd/display/include/bios_parser_types.h } ds; ds 32 drivers/gpu/drm/nouveau/include/nvif/cl9097.h __u32 ds[4]; ds 42 drivers/gpu/drm/nouveau/include/nvif/cl9097.h __u32 ds; ds 53 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x405804, gr->zbc_color[zbc].ds[0]); ds 54 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x405808, gr->zbc_color[zbc].ds[1]); ds 55 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x40580c, gr->zbc_color[zbc].ds[2]); ds 56 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x405810, gr->zbc_color[zbc].ds[3]); ds 65 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c const u32 ds[4], const u32 l2[4]) ds 74 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c if (memcmp(gr->zbc_color[i].ds, ds, sizeof( ds 75 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->zbc_color[i].ds))) ds 91 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c memcpy(gr->zbc_color[zbc].ds, ds, sizeof(gr->zbc_color[zbc].ds)); ds 104 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x405818, gr->zbc_depth[zbc].ds); ds 112 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c const u32 ds, const u32 l2) ds 121 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c if (gr->zbc_depth[i].ds != ds) ds 137 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c gr->zbc_depth[zbc].ds = ds; ds 191 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c args->v0.ds, ds 219 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c args->v0.ds, ds 65 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h u32 ds[4]; ds 71 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h u32 ds; ds 77 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h u32 ds; ds 155 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h const u32 ds, const u32 l2); ds 40 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c nvkm_wr32(device, 0x418010 + zoff, gr->zbc_color[zbc].ds[0]); ds 41 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c nvkm_wr32(device, 0x41804c + zoff, gr->zbc_color[zbc].ds[1]); ds 42 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c nvkm_wr32(device, 0x418088 + zoff, gr->zbc_color[zbc].ds[2]); ds 43 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c nvkm_wr32(device, 0x4180c4 + zoff, gr->zbc_color[zbc].ds[3]); ds 59 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp100.c nvkm_wr32(device, 0x418110 + zoff, gr->zbc_depth[zbc].ds); ds 37 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c nvkm_wr32(device, 0x41815c + zoff, gr->zbc_stencil[zbc].ds); ds 45 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c const u32 ds, const u32 l2) ds 54 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c if (gr->zbc_stencil[i].ds != ds) ds 70 drivers/gpu/drm/nouveau/nvkm/engine/gr/gp102.c gr->zbc_stencil[zbc].ds = ds; ds 38 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c int WL, CL, WR, at[2], dt, ds; ds 64 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ds = ram->next->bios.timing_20_2f_03; ds 84 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gddr5.c ram->mr[1] |= (ds & 0x03) << 0; ds 2146 drivers/gpu/drm/omapdrm/dss/dispc.c const int ds = DIV_ROUND_UP(height, out_height); ds 2177 drivers/gpu/drm/omapdrm/dss/dispc.c val, max(0, ds - 2) * width); ds 2178 drivers/gpu/drm/omapdrm/dss/dispc.c if (val < max(0, ds - 2) * width) ds 2188 drivers/gpu/drm/omapdrm/dss/dispc.c val, max(0, ds - 1) * width); ds 2189 drivers/gpu/drm/omapdrm/dss/dispc.c if (val < max(0, ds - 1) * width) ds 24 drivers/ide/ide-ioctls.c const struct ide_devset *ds; ds 27 drivers/ide/ide-ioctls.c for (; (ds = s->setting); s++) { ds 28 drivers/ide/ide-ioctls.c if (ds->get && s->get_ioctl == cmd) ds 30 drivers/ide/ide-ioctls.c else if (ds->set && s->set_ioctl == cmd) ds 38 drivers/ide/ide-ioctls.c err = ds->get(drive); ds 50 drivers/ide/ide-ioctls.c err = ide_devset_execute(drive, ds, arg); ds 144 drivers/ide/ide-proc.c const struct ide_devset *ds = setting->setting; ds 147 drivers/ide/ide-proc.c if (ds->get) ds 148 drivers/ide/ide-proc.c val = ds->get(drive); ds 174 drivers/ide/ide-proc.c const struct ide_devset *ds = setting->setting; ds 178 drivers/ide/ide-proc.c if (!ds->set) ds 180 drivers/ide/ide-proc.c if ((ds->flags & DS_SYNC) ds 183 drivers/ide/ide-proc.c return ide_devset_execute(drive, ds, val); ds 233 drivers/ide/ide-proc.c const struct ide_devset *ds; ds 264 drivers/ide/ide-proc.c ds = setting->setting; ds 265 drivers/ide/ide-proc.c if (ds->get) ds 267 drivers/ide/ide-proc.c if (ds->set) ds 1032 drivers/infiniband/hw/mlx5/odp.c unsigned ds, opcode; ds 1035 drivers/infiniband/hw/mlx5/odp.c ds = be32_to_cpu(ctrl->qpn_ds) & MLX5_WQE_CTRL_DS_MASK; ds 1036 drivers/infiniband/hw/mlx5/odp.c if (ds * MLX5_WQE_DS_UNITS > wqe_length) { ds 1038 drivers/infiniband/hw/mlx5/odp.c ds, wqe_length); ds 1042 drivers/infiniband/hw/mlx5/odp.c if (ds == 0) { ds 1048 drivers/infiniband/hw/mlx5/odp.c *wqe_end = *wqe + ds * MLX5_WQE_DS_UNITS; ds 177 drivers/infiniband/hw/mlx5/qp.c int ds; ds 200 drivers/infiniband/hw/mlx5/qp.c ds = be32_to_cpu(ctrl->qpn_ds) & MLX5_WQE_CTRL_DS_MASK; ds 201 drivers/infiniband/hw/mlx5/qp.c wqe_length = ds * MLX5_WQE_DS_UNITS; ds 211 drivers/infiniband/hw/mthca/mthca_srq.c int ds; ds 228 drivers/infiniband/hw/mthca/mthca_srq.c ds = max(64UL, ds 232 drivers/infiniband/hw/mthca/mthca_srq.c if (!mthca_is_memfree(dev) && (ds > dev->limits.max_desc_sz)) ds 235 drivers/infiniband/hw/mthca/mthca_srq.c srq->wqe_shift = ilog2(ds); ds 293 drivers/md/dm-bio-prison-v1.c struct dm_deferred_set *ds; ds 308 drivers/md/dm-bio-prison-v1.c struct dm_deferred_set *ds; ds 310 drivers/md/dm-bio-prison-v1.c ds = kmalloc(sizeof(*ds), GFP_KERNEL); ds 311 drivers/md/dm-bio-prison-v1.c if (!ds) ds 314 drivers/md/dm-bio-prison-v1.c spin_lock_init(&ds->lock); ds 315 drivers/md/dm-bio-prison-v1.c ds->current_entry = 0; ds 316 drivers/md/dm-bio-prison-v1.c ds->sweeper = 0; ds 318 drivers/md/dm-bio-prison-v1.c ds->entries[i].ds = ds; ds 319 drivers/md/dm-bio-prison-v1.c ds->entries[i].count = 0; ds 320 drivers/md/dm-bio-prison-v1.c INIT_LIST_HEAD(&ds->entries[i].work_items); ds 323 drivers/md/dm-bio-prison-v1.c return ds; ds 327 drivers/md/dm-bio-prison-v1.c void dm_deferred_set_destroy(struct dm_deferred_set *ds) ds 329 drivers/md/dm-bio-prison-v1.c kfree(ds); ds 333 drivers/md/dm-bio-prison-v1.c struct dm_deferred_entry *dm_deferred_entry_inc(struct dm_deferred_set *ds) ds 338 drivers/md/dm-bio-prison-v1.c spin_lock_irqsave(&ds->lock, flags); ds 339 drivers/md/dm-bio-prison-v1.c entry = ds->entries + ds->current_entry; ds 341 drivers/md/dm-bio-prison-v1.c spin_unlock_irqrestore(&ds->lock, flags); ds 352 drivers/md/dm-bio-prison-v1.c static void __sweep(struct dm_deferred_set *ds, struct list_head *head) ds 354 drivers/md/dm-bio-prison-v1.c while ((ds->sweeper != ds->current_entry) && ds 355 drivers/md/dm-bio-prison-v1.c !ds->entries[ds->sweeper].count) { ds 356 drivers/md/dm-bio-prison-v1.c list_splice_init(&ds->entries[ds->sweeper].work_items, head); ds 357 drivers/md/dm-bio-prison-v1.c ds->sweeper = ds_next(ds->sweeper); ds 360 drivers/md/dm-bio-prison-v1.c if ((ds->sweeper == ds->current_entry) && !ds->entries[ds->sweeper].count) ds 361 drivers/md/dm-bio-prison-v1.c list_splice_init(&ds->entries[ds->sweeper].work_items, head); ds 368 drivers/md/dm-bio-prison-v1.c spin_lock_irqsave(&entry->ds->lock, flags); ds 371 drivers/md/dm-bio-prison-v1.c __sweep(entry->ds, head); ds 372 drivers/md/dm-bio-prison-v1.c spin_unlock_irqrestore(&entry->ds->lock, flags); ds 379 drivers/md/dm-bio-prison-v1.c int dm_deferred_set_add_work(struct dm_deferred_set *ds, struct list_head *work) ds 385 drivers/md/dm-bio-prison-v1.c spin_lock_irqsave(&ds->lock, flags); ds 386 drivers/md/dm-bio-prison-v1.c if ((ds->sweeper == ds->current_entry) && ds 387 drivers/md/dm-bio-prison-v1.c !ds->entries[ds->current_entry].count) ds 390 drivers/md/dm-bio-prison-v1.c list_add(work, &ds->entries[ds->current_entry].work_items); ds 391 drivers/md/dm-bio-prison-v1.c next_entry = ds_next(ds->current_entry); ds 392 drivers/md/dm-bio-prison-v1.c if (!ds->entries[next_entry].count) ds 393 drivers/md/dm-bio-prison-v1.c ds->current_entry = next_entry; ds 395 drivers/md/dm-bio-prison-v1.c spin_unlock_irqrestore(&ds->lock, flags); ds 130 drivers/md/dm-bio-prison-v1.h void dm_deferred_set_destroy(struct dm_deferred_set *ds); ds 132 drivers/md/dm-bio-prison-v1.h struct dm_deferred_entry *dm_deferred_entry_inc(struct dm_deferred_set *ds); ds 134 drivers/md/dm-bio-prison-v1.h int dm_deferred_set_add_work(struct dm_deferred_set *ds, struct list_head *work); ds 1602 drivers/md/dm-raid.c sector_t ds = ~0; ds 1607 drivers/md/dm-raid.c ds = min(ds, to_sector(i_size_read(rdev->bdev->bd_inode))); ds 1608 drivers/md/dm-raid.c if (ds < rs->md.dev_sectors) { ds 7241 drivers/message/fusion/mptbase.c char *ds = NULL; ds 7252 drivers/message/fusion/mptbase.c ds = "None"; ds 7255 drivers/message/fusion/mptbase.c ds = "Log Data"; ds 7258 drivers/message/fusion/mptbase.c ds = "State Change"; ds 7261 drivers/message/fusion/mptbase.c ds = "Unit Attention"; ds 7264 drivers/message/fusion/mptbase.c ds = "IOC Bus Reset"; ds 7267 drivers/message/fusion/mptbase.c ds = "External Bus Reset"; ds 7270 drivers/message/fusion/mptbase.c ds = "Bus Rescan Event"; ds 7274 drivers/message/fusion/mptbase.c ds = "Link Status(FAILURE) Change"; ds 7276 drivers/message/fusion/mptbase.c ds = "Link Status(ACTIVE) Change"; ds 7280 drivers/message/fusion/mptbase.c ds = "Loop State(LIP) Change"; ds 7282 drivers/message/fusion/mptbase.c ds = "Loop State(LPE) Change"; ds 7284 drivers/message/fusion/mptbase.c ds = "Loop State(LPB) Change"; ds 7287 drivers/message/fusion/mptbase.c ds = "Logout"; ds 7291 drivers/message/fusion/mptbase.c ds = "Events ON"; ds 7293 drivers/message/fusion/mptbase.c ds = "Events OFF"; ds 7300 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Volume Created"; ds 7303 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Volume Deleted"; ds 7306 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Volume Settings Changed"; ds 7309 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Volume Status Changed"; ds 7312 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Volume Physdisk Changed"; ds 7315 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Physdisk Created"; ds 7318 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Physdisk Deleted"; ds 7321 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Physdisk Settings Changed"; ds 7324 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Physdisk Status Changed"; ds 7327 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Domain Validation Needed"; ds 7330 drivers/message/fusion/mptbase.c ds = "Integrated Raid; Smart Data"; ds 7333 drivers/message/fusion/mptbase.c ds = "Integrated Raid: Replace Action Started"; ds 7336 drivers/message/fusion/mptbase.c ds = "Integrated Raid"; ds 7342 drivers/message/fusion/mptbase.c ds = "SCSI Device Status Change"; ds 7409 drivers/message/fusion/mptbase.c ds = "Bus Timer Expired"; ds 7423 drivers/message/fusion/mptbase.c ds = "SAS SES Event"; ds 7426 drivers/message/fusion/mptbase.c ds = "Persistent Table Full"; ds 7478 drivers/message/fusion/mptbase.c ds = "SAS Discovery Error"; ds 7550 drivers/message/fusion/mptbase.c ds = "IR2"; ds 7558 drivers/message/fusion/mptbase.c ds = "SAS Discovery: Start"; ds 7560 drivers/message/fusion/mptbase.c ds = "SAS Discovery: Stop"; ds 7564 drivers/message/fusion/mptbase.c ds = "SAS Log Entry Added"; ds 7586 drivers/message/fusion/mptbase.c ds = "SAS Initiator Status Change: Added"; ds 7589 drivers/message/fusion/mptbase.c ds = "SAS Initiator Status Change: Deleted"; ds 7592 drivers/message/fusion/mptbase.c ds = "SAS Initiator Status Change"; ds 7648 drivers/message/fusion/mptbase.c ds = "Expander Status Change: Added"; ds 7651 drivers/message/fusion/mptbase.c ds = "Expander Status Change: Deleted"; ds 7654 drivers/message/fusion/mptbase.c ds = "Expander Status Change"; ds 7664 drivers/message/fusion/mptbase.c ds = "Unknown"; ds 7667 drivers/message/fusion/mptbase.c if (ds) ds 7668 drivers/message/fusion/mptbase.c strlcpy(evStr, ds, EVENT_DESCR_STR_SZ); ds 1421 drivers/message/fusion/mptsas.c char *ds = NULL; ds 1450 drivers/message/fusion/mptsas.c ds = "ssp"; ds 1453 drivers/message/fusion/mptsas.c ds = "stp"; ds 1456 drivers/message/fusion/mptsas.c ds = "sata"; ds 1459 drivers/message/fusion/mptsas.c " phy %d, sas_addr 0x%llx\n", ioc->name, ds, ds 1499 drivers/message/fusion/mptsas.c char *ds = NULL; ds 1528 drivers/message/fusion/mptsas.c ds = "initiator"; ds 1531 drivers/message/fusion/mptsas.c ds = "ssp"; ds 1534 drivers/message/fusion/mptsas.c ds = "stp"; ds 1537 drivers/message/fusion/mptsas.c ds = "sata"; ds 1541 drivers/message/fusion/mptsas.c "sas_addr 0x%llx\n", ioc->name, ds, phy_info->attached.channel, ds 141 drivers/mtd/nand/raw/diskonchip.c uint16_t ds[4], s[5], tmp, errval[8], syn[4]; ds 146 drivers/mtd/nand/raw/diskonchip.c ds[0] = ((ecc[4] & 0xff) >> 0) | ((ecc[5] & 0x03) << 8); ds 147 drivers/mtd/nand/raw/diskonchip.c ds[1] = ((ecc[5] & 0xfc) >> 2) | ((ecc[2] & 0x0f) << 6); ds 148 drivers/mtd/nand/raw/diskonchip.c ds[2] = ((ecc[2] & 0xf0) >> 4) | ((ecc[3] & 0x3f) << 4); ds 149 drivers/mtd/nand/raw/diskonchip.c ds[3] = ((ecc[3] & 0xc0) >> 6) | ((ecc[0] & 0xff) << 2); ds 154 drivers/mtd/nand/raw/diskonchip.c s[i] = ds[0]; ds 161 drivers/mtd/nand/raw/diskonchip.c if (ds[j] == 0) ds 163 drivers/mtd/nand/raw/diskonchip.c tmp = cd->index_of[ds[j]]; ds 267 drivers/mtd/nand/raw/marvell_nand.c #define MARVELL_LAYOUT(ws, dc, ds, nc, fcc, db, sb, eb, ldb, lsb, leb) \ ds 271 drivers/mtd/nand/raw/marvell_nand.c .strength = ds, \ ds 284 drivers/net/dsa/b53/b53_common.c dev_dbg(dev->ds->dev, "VID: %d, members: 0x%04x, untag: 0x%04x\n", ds 499 drivers/net/dsa/b53/b53_common.c void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) ds 501 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 517 drivers/net/dsa/b53/b53_common.c int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy) ds 519 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 524 drivers/net/dsa/b53/b53_common.c if (!dsa_is_user_port(ds, port)) ds 527 drivers/net/dsa/b53/b53_common.c cpu_port = ds->ports[port].cpu_dp->index; ds 529 drivers/net/dsa/b53/b53_common.c b53_br_egress_floods(ds, port, true, true); ds 549 drivers/net/dsa/b53/b53_common.c b53_imp_vlan_setup(ds, cpu_port); ds 553 drivers/net/dsa/b53/b53_common.c b53_eee_enable_set(ds, port, true); ds 559 drivers/net/dsa/b53/b53_common.c void b53_disable_port(struct dsa_switch *ds, int port) ds 561 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 574 drivers/net/dsa/b53/b53_common.c void b53_brcm_hdr_setup(struct dsa_switch *ds, int port) ds 576 drivers/net/dsa/b53/b53_common.c bool tag_en = !(ds->ops->get_tag_protocol(ds, port) == ds 578 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 645 drivers/net/dsa/b53/b53_common.c b53_brcm_hdr_setup(dev->ds, port); ds 647 drivers/net/dsa/b53/b53_common.c b53_br_egress_floods(dev->ds, port, true, true); ds 667 drivers/net/dsa/b53/b53_common.c int b53_configure_vlan(struct dsa_switch *ds) ds 669 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 683 drivers/net/dsa/b53/b53_common.c b53_enable_vlan(dev, dev->vlan_enabled, ds->vlan_filtering); ds 769 drivers/net/dsa/b53/b53_common.c static int b53_phy_read16(struct dsa_switch *ds, int addr, int reg) ds 771 drivers/net/dsa/b53/b53_common.c struct b53_device *priv = ds->priv; ds 784 drivers/net/dsa/b53/b53_common.c static int b53_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val) ds 786 drivers/net/dsa/b53/b53_common.c struct b53_device *priv = ds->priv; ds 812 drivers/net/dsa/b53/b53_common.c b53_configure_vlan(priv->ds); ds 856 drivers/net/dsa/b53/b53_common.c static struct phy_device *b53_get_phy_device(struct dsa_switch *ds, int port) ds 866 drivers/net/dsa/b53/b53_common.c return mdiobus_get_phy(ds->slave_mii_bus, port); ds 869 drivers/net/dsa/b53/b53_common.c void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset, ds 872 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 883 drivers/net/dsa/b53/b53_common.c phydev = b53_get_phy_device(ds, port); ds 892 drivers/net/dsa/b53/b53_common.c void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) ds 894 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 925 drivers/net/dsa/b53/b53_common.c void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data) ds 929 drivers/net/dsa/b53/b53_common.c phydev = b53_get_phy_device(ds, port); ds 937 drivers/net/dsa/b53/b53_common.c int b53_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 939 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 945 drivers/net/dsa/b53/b53_common.c phydev = b53_get_phy_device(ds, port); ds 956 drivers/net/dsa/b53/b53_common.c static int b53_setup(struct dsa_switch *ds) ds 958 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 964 drivers/net/dsa/b53/b53_common.c dev_err(ds->dev, "failed to reset switch\n"); ds 972 drivers/net/dsa/b53/b53_common.c dev_err(ds->dev, "failed to apply configuration\n"); ds 978 drivers/net/dsa/b53/b53_common.c if (dsa_is_cpu_port(ds, port)) ds 981 drivers/net/dsa/b53/b53_common.c b53_disable_port(ds, port); ds 989 drivers/net/dsa/b53/b53_common.c ds->vlan_filtering_is_global = true; ds 1063 drivers/net/dsa/b53/b53_common.c static void b53_adjust_link(struct dsa_switch *ds, int port, ds 1066 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1121 drivers/net/dsa/b53/b53_common.c dev_info(ds->dev, "Configured port %d for %s\n", port, ds 1138 drivers/net/dsa/b53/b53_common.c dev_err(ds->dev, ds 1152 drivers/net/dsa/b53/b53_common.c p->eee_enabled = b53_eee_init(ds, port, phydev); ds 1155 drivers/net/dsa/b53/b53_common.c void b53_port_event(struct dsa_switch *ds, int port) ds 1157 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1163 drivers/net/dsa/b53/b53_common.c dsa_port_phylink_mac_change(ds, port, link); ds 1167 drivers/net/dsa/b53/b53_common.c void b53_phylink_validate(struct dsa_switch *ds, int port, ds 1171 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1210 drivers/net/dsa/b53/b53_common.c int b53_phylink_mac_link_state(struct dsa_switch *ds, int port, ds 1213 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1225 drivers/net/dsa/b53/b53_common.c void b53_phylink_mac_config(struct dsa_switch *ds, int port, ds 1229 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1247 drivers/net/dsa/b53/b53_common.c void b53_phylink_mac_an_restart(struct dsa_switch *ds, int port) ds 1249 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1256 drivers/net/dsa/b53/b53_common.c void b53_phylink_mac_link_down(struct dsa_switch *ds, int port, ds 1260 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1276 drivers/net/dsa/b53/b53_common.c void b53_phylink_mac_link_up(struct dsa_switch *ds, int port, ds 1281 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1297 drivers/net/dsa/b53/b53_common.c int b53_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering) ds 1299 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1325 drivers/net/dsa/b53/b53_common.c int b53_vlan_prepare(struct dsa_switch *ds, int port, ds 1328 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1336 drivers/net/dsa/b53/b53_common.c b53_enable_vlan(dev, true, ds->vlan_filtering); ds 1342 drivers/net/dsa/b53/b53_common.c void b53_vlan_add(struct dsa_switch *ds, int port, ds 1345 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1360 drivers/net/dsa/b53/b53_common.c if (untagged && !dsa_is_cpu_port(ds, port)) ds 1369 drivers/net/dsa/b53/b53_common.c if (pvid && !dsa_is_cpu_port(ds, port)) { ds 1377 drivers/net/dsa/b53/b53_common.c int b53_vlan_del(struct dsa_switch *ds, int port, ds 1380 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1398 drivers/net/dsa/b53/b53_common.c if (untagged && !dsa_is_cpu_port(ds, port)) ds 1557 drivers/net/dsa/b53/b53_common.c int b53_fdb_add(struct dsa_switch *ds, int port, ds 1560 drivers/net/dsa/b53/b53_common.c struct b53_device *priv = ds->priv; ds 1572 drivers/net/dsa/b53/b53_common.c int b53_fdb_del(struct dsa_switch *ds, int port, ds 1575 drivers/net/dsa/b53/b53_common.c struct b53_device *priv = ds->priv; ds 1625 drivers/net/dsa/b53/b53_common.c int b53_fdb_dump(struct dsa_switch *ds, int port, ds 1628 drivers/net/dsa/b53/b53_common.c struct b53_device *priv = ds->priv; ds 1664 drivers/net/dsa/b53/b53_common.c int b53_br_join(struct dsa_switch *ds, int port, struct net_device *br) ds 1666 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1667 drivers/net/dsa/b53/b53_common.c s8 cpu_port = ds->ports[port].cpu_dp->index; ds 1685 drivers/net/dsa/b53/b53_common.c if (dsa_to_port(ds, i)->bridge_dev != br) ds 1709 drivers/net/dsa/b53/b53_common.c void b53_br_leave(struct dsa_switch *ds, int port, struct net_device *br) ds 1711 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1713 drivers/net/dsa/b53/b53_common.c s8 cpu_port = ds->ports[port].cpu_dp->index; ds 1721 drivers/net/dsa/b53/b53_common.c if (dsa_to_port(ds, i)->bridge_dev != br) ds 1755 drivers/net/dsa/b53/b53_common.c void b53_br_set_stp_state(struct dsa_switch *ds, int port, u8 state) ds 1757 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1778 drivers/net/dsa/b53/b53_common.c dev_err(ds->dev, "invalid STP state: %d\n", state); ds 1789 drivers/net/dsa/b53/b53_common.c void b53_br_fast_age(struct dsa_switch *ds, int port) ds 1791 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1794 drivers/net/dsa/b53/b53_common.c dev_err(ds->dev, "fast ageing failed\n"); ds 1798 drivers/net/dsa/b53/b53_common.c int b53_br_egress_floods(struct dsa_switch *ds, int port, ds 1801 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1830 drivers/net/dsa/b53/b53_common.c static bool b53_possible_cpu_port(struct dsa_switch *ds, int port) ds 1845 drivers/net/dsa/b53/b53_common.c static bool b53_can_enable_brcm_tags(struct dsa_switch *ds, int port) ds 1847 drivers/net/dsa/b53/b53_common.c bool ret = b53_possible_cpu_port(ds, port); ds 1850 drivers/net/dsa/b53/b53_common.c dev_warn(ds->dev, "Port %d is not Broadcom tag capable\n", ds 1855 drivers/net/dsa/b53/b53_common.c enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds, int port) ds 1857 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1865 drivers/net/dsa/b53/b53_common.c !b53_can_enable_brcm_tags(ds, port)) ds 1878 drivers/net/dsa/b53/b53_common.c int b53_mirror_add(struct dsa_switch *ds, int port, ds 1881 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1903 drivers/net/dsa/b53/b53_common.c void b53_mirror_del(struct dsa_switch *ds, int port, ds 1906 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1942 drivers/net/dsa/b53/b53_common.c void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable) ds 1944 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1959 drivers/net/dsa/b53/b53_common.c int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy) ds 1967 drivers/net/dsa/b53/b53_common.c b53_eee_enable_set(ds, port, true); ds 1973 drivers/net/dsa/b53/b53_common.c int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e) ds 1975 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1990 drivers/net/dsa/b53/b53_common.c int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e) ds 1992 drivers/net/dsa/b53/b53_common.c struct b53_device *dev = ds->priv; ds 1999 drivers/net/dsa/b53/b53_common.c b53_eee_enable_set(ds, port, e->eee_enabled); ds 2350 drivers/net/dsa/b53/b53_common.c if (!(dev->ds->phys_mii_mask & BIT(i)) && ds 2351 drivers/net/dsa/b53/b53_common.c !b53_possible_cpu_port(dev->ds, i)) ds 2352 drivers/net/dsa/b53/b53_common.c dev->ds->phys_mii_mask |= BIT(i); ds 2383 drivers/net/dsa/b53/b53_common.c struct dsa_switch *ds; ds 2386 drivers/net/dsa/b53/b53_common.c ds = dsa_switch_alloc(base, DSA_MAX_PORTS); ds 2387 drivers/net/dsa/b53/b53_common.c if (!ds) ds 2394 drivers/net/dsa/b53/b53_common.c ds->priv = dev; ds 2397 drivers/net/dsa/b53/b53_common.c dev->ds = ds; ds 2400 drivers/net/dsa/b53/b53_common.c ds->ops = &b53_switch_ops; ds 2492 drivers/net/dsa/b53/b53_common.c return dsa_register_switch(dev->ds); ds 354 drivers/net/dsa/b53/b53_mdio.c struct dsa_switch *ds = dev->ds; ds 356 drivers/net/dsa/b53/b53_mdio.c dsa_unregister_switch(ds); ds 104 drivers/net/dsa/b53/b53_priv.h struct dsa_switch *ds; ds 224 drivers/net/dsa/b53/b53_priv.h dsa_unregister_switch(dev->ds); ds 311 drivers/net/dsa/b53/b53_priv.h void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port); ds 312 drivers/net/dsa/b53/b53_priv.h int b53_configure_vlan(struct dsa_switch *ds); ds 313 drivers/net/dsa/b53/b53_priv.h void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset, ds 315 drivers/net/dsa/b53/b53_priv.h void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data); ds 316 drivers/net/dsa/b53/b53_priv.h int b53_get_sset_count(struct dsa_switch *ds, int port, int sset); ds 317 drivers/net/dsa/b53/b53_priv.h void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data); ds 318 drivers/net/dsa/b53/b53_priv.h int b53_br_join(struct dsa_switch *ds, int port, struct net_device *bridge); ds 319 drivers/net/dsa/b53/b53_priv.h void b53_br_leave(struct dsa_switch *ds, int port, struct net_device *bridge); ds 320 drivers/net/dsa/b53/b53_priv.h void b53_br_set_stp_state(struct dsa_switch *ds, int port, u8 state); ds 321 drivers/net/dsa/b53/b53_priv.h void b53_br_fast_age(struct dsa_switch *ds, int port); ds 322 drivers/net/dsa/b53/b53_priv.h int b53_br_egress_floods(struct dsa_switch *ds, int port, ds 324 drivers/net/dsa/b53/b53_priv.h void b53_port_event(struct dsa_switch *ds, int port); ds 325 drivers/net/dsa/b53/b53_priv.h void b53_phylink_validate(struct dsa_switch *ds, int port, ds 328 drivers/net/dsa/b53/b53_priv.h int b53_phylink_mac_link_state(struct dsa_switch *ds, int port, ds 330 drivers/net/dsa/b53/b53_priv.h void b53_phylink_mac_config(struct dsa_switch *ds, int port, ds 333 drivers/net/dsa/b53/b53_priv.h void b53_phylink_mac_an_restart(struct dsa_switch *ds, int port); ds 334 drivers/net/dsa/b53/b53_priv.h void b53_phylink_mac_link_down(struct dsa_switch *ds, int port, ds 337 drivers/net/dsa/b53/b53_priv.h void b53_phylink_mac_link_up(struct dsa_switch *ds, int port, ds 341 drivers/net/dsa/b53/b53_priv.h int b53_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering); ds 342 drivers/net/dsa/b53/b53_priv.h int b53_vlan_prepare(struct dsa_switch *ds, int port, ds 344 drivers/net/dsa/b53/b53_priv.h void b53_vlan_add(struct dsa_switch *ds, int port, ds 346 drivers/net/dsa/b53/b53_priv.h int b53_vlan_del(struct dsa_switch *ds, int port, ds 348 drivers/net/dsa/b53/b53_priv.h int b53_fdb_add(struct dsa_switch *ds, int port, ds 350 drivers/net/dsa/b53/b53_priv.h int b53_fdb_del(struct dsa_switch *ds, int port, ds 352 drivers/net/dsa/b53/b53_priv.h int b53_fdb_dump(struct dsa_switch *ds, int port, ds 354 drivers/net/dsa/b53/b53_priv.h int b53_mirror_add(struct dsa_switch *ds, int port, ds 356 drivers/net/dsa/b53/b53_priv.h enum dsa_tag_protocol b53_get_tag_protocol(struct dsa_switch *ds, int port); ds 357 drivers/net/dsa/b53/b53_priv.h void b53_mirror_del(struct dsa_switch *ds, int port, ds 359 drivers/net/dsa/b53/b53_priv.h int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy); ds 360 drivers/net/dsa/b53/b53_priv.h void b53_disable_port(struct dsa_switch *ds, int port); ds 361 drivers/net/dsa/b53/b53_priv.h void b53_brcm_hdr_setup(struct dsa_switch *ds, int port); ds 362 drivers/net/dsa/b53/b53_priv.h void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable); ds 363 drivers/net/dsa/b53/b53_priv.h int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy); ds 364 drivers/net/dsa/b53/b53_priv.h int b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e); ds 365 drivers/net/dsa/b53/b53_priv.h int b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e); ds 377 drivers/net/dsa/b53/b53_srab.c b53_port_event(dev->ds, port->num); ds 34 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) ds 36 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 61 drivers/net/dsa/bcm_sf2.c b53_brcm_hdr_setup(ds, port); ds 87 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_gphy_enable_set(struct dsa_switch *ds, bool enable) ds 89 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 160 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_port_setup(struct dsa_switch *ds, int port, ds 163 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 167 drivers/net/dsa/bcm_sf2.c if (!dsa_is_user_port(ds, port)) ds 182 drivers/net/dsa/bcm_sf2.c b53_brcm_hdr_setup(ds, port); ds 194 drivers/net/dsa/bcm_sf2.c bcm_sf2_gphy_enable_set(ds, true); ds 227 drivers/net/dsa/bcm_sf2.c return b53_enable_port(ds, port, phy); ds 230 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_port_disable(struct dsa_switch *ds, int port) ds 232 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 247 drivers/net/dsa/bcm_sf2.c bcm_sf2_gphy_enable_set(ds, false); ds 249 drivers/net/dsa/bcm_sf2.c b53_disable_port(ds, port); ds 319 drivers/net/dsa/bcm_sf2.c struct dsa_switch *ds = dev_id; ds 320 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 331 drivers/net/dsa/bcm_sf2.c struct dsa_switch *ds = dev_id; ds 332 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 340 drivers/net/dsa/bcm_sf2.c dsa_port_phylink_mac_change(ds, 7, true); ds 344 drivers/net/dsa/bcm_sf2.c dsa_port_phylink_mac_change(ds, 7, false); ds 414 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_mdio_register(struct dsa_switch *ds) ds 416 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 430 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus = devm_mdiobus_alloc(ds->dev); ds 457 drivers/net/dsa/bcm_sf2.c ds->phys_mii_mask = priv->indir_phy_mask; ds 458 drivers/net/dsa/bcm_sf2.c ds->slave_mii_bus = priv->slave_mii_bus; ds 459 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->parent = ds->dev->parent; ds 475 drivers/net/dsa/bcm_sf2.c static u32 bcm_sf2_sw_get_phy_flags(struct dsa_switch *ds, int port) ds 477 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 487 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_validate(struct dsa_switch *ds, int port, ds 491 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 502 drivers/net/dsa/bcm_sf2.c dev_err(ds->dev, ds 534 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_mac_config(struct dsa_switch *ds, int port, ds 538 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 608 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_mac_link_set(struct dsa_switch *ds, int port, ds 611 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 628 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_mac_link_down(struct dsa_switch *ds, int port, ds 632 drivers/net/dsa/bcm_sf2.c bcm_sf2_sw_mac_link_set(ds, port, interface, false); ds 635 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_mac_link_up(struct dsa_switch *ds, int port, ds 640 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 643 drivers/net/dsa/bcm_sf2.c bcm_sf2_sw_mac_link_set(ds, port, interface, true); ds 646 drivers/net/dsa/bcm_sf2.c p->eee_enabled = b53_eee_init(ds, port, phydev); ds 649 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_fixed_state(struct dsa_switch *ds, int port, ds 652 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 672 drivers/net/dsa/bcm_sf2.c netif_carrier_off(ds->ports[port].slave); ds 679 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_enable_acb(struct dsa_switch *ds) ds 681 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 693 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_suspend(struct dsa_switch *ds) ds 695 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 704 drivers/net/dsa/bcm_sf2.c for (port = 0; port < ds->num_ports; port++) { ds 705 drivers/net/dsa/bcm_sf2.c if (dsa_is_user_port(ds, port) || dsa_is_cpu_port(ds, port)) ds 706 drivers/net/dsa/bcm_sf2.c bcm_sf2_port_disable(ds, port); ds 712 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_resume(struct dsa_switch *ds) ds 714 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 723 drivers/net/dsa/bcm_sf2.c ret = bcm_sf2_cfp_resume(ds); ds 728 drivers/net/dsa/bcm_sf2.c bcm_sf2_gphy_enable_set(ds, true); ds 730 drivers/net/dsa/bcm_sf2.c ds->ops->setup(ds); ds 735 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_get_wol(struct dsa_switch *ds, int port, ds 738 drivers/net/dsa/bcm_sf2.c struct net_device *p = ds->ports[port].cpu_dp->master; ds 739 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 759 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_set_wol(struct dsa_switch *ds, int port, ds 762 drivers/net/dsa/bcm_sf2.c struct net_device *p = ds->ports[port].cpu_dp->master; ds 763 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 764 drivers/net/dsa/bcm_sf2.c s8 cpu_port = ds->ports[port].cpu_dp->index; ds 789 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_setup(struct dsa_switch *ds) ds 791 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 797 drivers/net/dsa/bcm_sf2.c if (dsa_is_user_port(ds, port)) ds 798 drivers/net/dsa/bcm_sf2.c bcm_sf2_port_setup(ds, port, NULL); ds 799 drivers/net/dsa/bcm_sf2.c else if (dsa_is_cpu_port(ds, port)) ds 800 drivers/net/dsa/bcm_sf2.c bcm_sf2_imp_setup(ds, port); ds 802 drivers/net/dsa/bcm_sf2.c bcm_sf2_port_disable(ds, port); ds 805 drivers/net/dsa/bcm_sf2.c b53_configure_vlan(ds); ds 806 drivers/net/dsa/bcm_sf2.c bcm_sf2_enable_acb(ds); ds 910 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_get_strings(struct dsa_switch *ds, int port, ds 913 drivers/net/dsa/bcm_sf2.c int cnt = b53_get_sset_count(ds, port, stringset); ds 915 drivers/net/dsa/bcm_sf2.c b53_get_strings(ds, port, stringset, data); ds 916 drivers/net/dsa/bcm_sf2.c bcm_sf2_cfp_get_strings(ds, port, stringset, ds 920 drivers/net/dsa/bcm_sf2.c static void bcm_sf2_sw_get_ethtool_stats(struct dsa_switch *ds, int port, ds 923 drivers/net/dsa/bcm_sf2.c int cnt = b53_get_sset_count(ds, port, ETH_SS_STATS); ds 925 drivers/net/dsa/bcm_sf2.c b53_get_ethtool_stats(ds, port, data); ds 926 drivers/net/dsa/bcm_sf2.c bcm_sf2_cfp_get_ethtool_stats(ds, port, data + cnt); ds 929 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_get_sset_count(struct dsa_switch *ds, int port, ds 932 drivers/net/dsa/bcm_sf2.c int cnt = b53_get_sset_count(ds, port, sset); ds 937 drivers/net/dsa/bcm_sf2.c cnt += bcm_sf2_cfp_get_sset_count(ds, port, sset); ds 1059 drivers/net/dsa/bcm_sf2.c struct dsa_switch *ds; ds 1101 drivers/net/dsa/bcm_sf2.c ds = dev->ds; ds 1102 drivers/net/dsa/bcm_sf2.c ds->ops = &bcm_sf2_ops; ds 1105 drivers/net/dsa/bcm_sf2.c ds->num_tx_queues = SF2_NUM_EGRESS_QUEUES; ds 1144 drivers/net/dsa/bcm_sf2.c bcm_sf2_gphy_enable_set(priv->dev->ds, true); ds 1146 drivers/net/dsa/bcm_sf2.c ret = bcm_sf2_mdio_register(ds); ds 1152 drivers/net/dsa/bcm_sf2.c bcm_sf2_gphy_enable_set(priv->dev->ds, false); ds 1164 drivers/net/dsa/bcm_sf2.c "switch_0", ds); ds 1171 drivers/net/dsa/bcm_sf2.c "switch_1", ds); ds 1226 drivers/net/dsa/bcm_sf2.c dsa_unregister_switch(priv->dev->ds); ds 1227 drivers/net/dsa/bcm_sf2.c bcm_sf2_cfp_exit(priv->dev->ds); ds 1244 drivers/net/dsa/bcm_sf2.c bcm_sf2_gphy_enable_set(priv->dev->ds, true); ds 1252 drivers/net/dsa/bcm_sf2.c return dsa_switch_suspend(priv->dev->ds); ds 1259 drivers/net/dsa/bcm_sf2.c return dsa_switch_resume(priv->dev->ds); ds 112 drivers/net/dsa/bcm_sf2.h static inline struct bcm_sf2_priv *bcm_sf2_to_priv(struct dsa_switch *ds) ds 114 drivers/net/dsa/bcm_sf2.h struct b53_device *dev = ds->priv; ds 205 drivers/net/dsa/bcm_sf2.h int bcm_sf2_get_rxnfc(struct dsa_switch *ds, int port, ds 207 drivers/net/dsa/bcm_sf2.h int bcm_sf2_set_rxnfc(struct dsa_switch *ds, int port, ds 210 drivers/net/dsa/bcm_sf2.h void bcm_sf2_cfp_exit(struct dsa_switch *ds); ds 211 drivers/net/dsa/bcm_sf2.h int bcm_sf2_cfp_resume(struct dsa_switch *ds); ds 212 drivers/net/dsa/bcm_sf2.h void bcm_sf2_cfp_get_strings(struct dsa_switch *ds, int port, ds 214 drivers/net/dsa/bcm_sf2.h void bcm_sf2_cfp_get_ethtool_stats(struct dsa_switch *ds, int port, ds 216 drivers/net/dsa/bcm_sf2.h int bcm_sf2_cfp_get_sset_count(struct dsa_switch *ds, int port, int sset); ds 820 drivers/net/dsa/bcm_sf2_cfp.c static int bcm_sf2_cfp_rule_insert(struct dsa_switch *ds, int port, ds 823 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 824 drivers/net/dsa/bcm_sf2_cfp.c s8 cpu_port = ds->ports[port].cpu_dp->index; ds 842 drivers/net/dsa/bcm_sf2_cfp.c !(dsa_is_user_port(ds, port_num) || ds 843 drivers/net/dsa/bcm_sf2_cfp.c dsa_is_cpu_port(ds, port_num)) || ds 873 drivers/net/dsa/bcm_sf2_cfp.c static int bcm_sf2_cfp_rule_set(struct dsa_switch *ds, int port, ds 876 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 901 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_rule_insert(ds, port, fs); ds 1046 drivers/net/dsa/bcm_sf2_cfp.c int bcm_sf2_get_rxnfc(struct dsa_switch *ds, int port, ds 1049 drivers/net/dsa/bcm_sf2_cfp.c struct net_device *p = ds->ports[port].cpu_dp->master; ds 1050 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 1089 drivers/net/dsa/bcm_sf2_cfp.c int bcm_sf2_set_rxnfc(struct dsa_switch *ds, int port, ds 1092 drivers/net/dsa/bcm_sf2_cfp.c struct net_device *p = ds->ports[port].cpu_dp->master; ds 1093 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 1100 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_rule_set(ds, port, &nfc->fs); ds 1156 drivers/net/dsa/bcm_sf2_cfp.c void bcm_sf2_cfp_exit(struct dsa_switch *ds) ds 1158 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 1168 drivers/net/dsa/bcm_sf2_cfp.c int bcm_sf2_cfp_resume(struct dsa_switch *ds) ds 1170 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 1190 drivers/net/dsa/bcm_sf2_cfp.c dev_err(ds->dev, "failed to remove rule\n"); ds 1194 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_rule_insert(ds, rule->port, &rule->fs); ds 1196 drivers/net/dsa/bcm_sf2_cfp.c dev_err(ds->dev, "failed to restore rule\n"); ds 1226 drivers/net/dsa/bcm_sf2_cfp.c void bcm_sf2_cfp_get_strings(struct dsa_switch *ds, int port, ds 1229 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 1249 drivers/net/dsa/bcm_sf2_cfp.c void bcm_sf2_cfp_get_ethtool_stats(struct dsa_switch *ds, int port, ds 1252 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 1281 drivers/net/dsa/bcm_sf2_cfp.c int bcm_sf2_cfp_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 1283 drivers/net/dsa/bcm_sf2_cfp.c struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); ds 63 drivers/net/dsa/dsa_loop.c static enum dsa_tag_protocol dsa_loop_get_protocol(struct dsa_switch *ds, ds 66 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s: port: %d\n", __func__, port); ds 71 drivers/net/dsa/dsa_loop.c static int dsa_loop_setup(struct dsa_switch *ds) ds 73 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 76 drivers/net/dsa/dsa_loop.c for (i = 0; i < ds->num_ports; i++) ds 80 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s\n", __func__); ds 85 drivers/net/dsa/dsa_loop.c static int dsa_loop_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 93 drivers/net/dsa/dsa_loop.c static void dsa_loop_get_strings(struct dsa_switch *ds, int port, ds 96 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 107 drivers/net/dsa/dsa_loop.c static void dsa_loop_get_ethtool_stats(struct dsa_switch *ds, int port, ds 110 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 117 drivers/net/dsa/dsa_loop.c static int dsa_loop_phy_read(struct dsa_switch *ds, int port, int regnum) ds 119 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 132 drivers/net/dsa/dsa_loop.c static int dsa_loop_phy_write(struct dsa_switch *ds, int port, ds 135 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 148 drivers/net/dsa/dsa_loop.c static int dsa_loop_port_bridge_join(struct dsa_switch *ds, int port, ds 151 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s: port: %d, bridge: %s\n", ds 157 drivers/net/dsa/dsa_loop.c static void dsa_loop_port_bridge_leave(struct dsa_switch *ds, int port, ds 160 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s: port: %d, bridge: %s\n", ds 164 drivers/net/dsa/dsa_loop.c static void dsa_loop_port_stp_state_set(struct dsa_switch *ds, int port, ds 167 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s: port: %d, state: %d\n", ds 171 drivers/net/dsa/dsa_loop.c static int dsa_loop_port_vlan_filtering(struct dsa_switch *ds, int port, ds 174 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s: port: %d, vlan_filtering: %d\n", ds 181 drivers/net/dsa/dsa_loop.c dsa_loop_port_vlan_prepare(struct dsa_switch *ds, int port, ds 184 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 187 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s: port: %d, vlan: %d-%d", ds 199 drivers/net/dsa/dsa_loop.c static void dsa_loop_port_vlan_add(struct dsa_switch *ds, int port, ds 204 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 221 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s: port: %d vlan: %d, %stagged, pvid: %d\n", ds 229 drivers/net/dsa/dsa_loop.c static int dsa_loop_port_vlan_del(struct dsa_switch *ds, int port, ds 233 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 251 drivers/net/dsa/dsa_loop.c dev_dbg(ds->dev, "%s: port: %d vlan: %d, %stagged, pvid: %d\n", ds 281 drivers/net/dsa/dsa_loop.c struct dsa_switch *ds; ds 289 drivers/net/dsa/dsa_loop.c ds = dsa_switch_alloc(&mdiodev->dev, DSA_MAX_PORTS); ds 290 drivers/net/dsa/dsa_loop.c if (!ds) ds 303 drivers/net/dsa/dsa_loop.c ds->dev = &mdiodev->dev; ds 304 drivers/net/dsa/dsa_loop.c ds->ops = &dsa_loop_driver; ds 305 drivers/net/dsa/dsa_loop.c ds->priv = ps; ds 308 drivers/net/dsa/dsa_loop.c dev_set_drvdata(&mdiodev->dev, ds); ds 310 drivers/net/dsa/dsa_loop.c return dsa_register_switch(ds); ds 315 drivers/net/dsa/dsa_loop.c struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); ds 316 drivers/net/dsa/dsa_loop.c struct dsa_loop_priv *ps = ds->priv; ds 318 drivers/net/dsa/dsa_loop.c dsa_unregister_switch(ds); ds 885 drivers/net/dsa/lan9303-core.c static enum dsa_tag_protocol lan9303_get_tag_protocol(struct dsa_switch *ds, ds 891 drivers/net/dsa/lan9303-core.c static int lan9303_setup(struct dsa_switch *ds) ds 893 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 897 drivers/net/dsa/lan9303-core.c if (!dsa_is_cpu_port(ds, 0)) { ds 971 drivers/net/dsa/lan9303-core.c static void lan9303_get_strings(struct dsa_switch *ds, int port, ds 985 drivers/net/dsa/lan9303-core.c static void lan9303_get_ethtool_stats(struct dsa_switch *ds, int port, ds 988 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1005 drivers/net/dsa/lan9303-core.c static int lan9303_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 1013 drivers/net/dsa/lan9303-core.c static int lan9303_phy_read(struct dsa_switch *ds, int phy, int regnum) ds 1015 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1026 drivers/net/dsa/lan9303-core.c static int lan9303_phy_write(struct dsa_switch *ds, int phy, int regnum, ds 1029 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1040 drivers/net/dsa/lan9303-core.c static void lan9303_adjust_link(struct dsa_switch *ds, int port, ds 1043 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1049 drivers/net/dsa/lan9303-core.c ctl = lan9303_phy_read(ds, port, MII_BMCR); ds 1058 drivers/net/dsa/lan9303-core.c dev_err(ds->dev, "unsupported speed: %d\n", phydev->speed); ds 1065 drivers/net/dsa/lan9303-core.c res = lan9303_phy_write(ds, port, MII_BMCR, ctl); ds 1077 drivers/net/dsa/lan9303-core.c static int lan9303_port_enable(struct dsa_switch *ds, int port, ds 1080 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1082 drivers/net/dsa/lan9303-core.c if (!dsa_is_user_port(ds, port)) ds 1088 drivers/net/dsa/lan9303-core.c static void lan9303_port_disable(struct dsa_switch *ds, int port) ds 1090 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1092 drivers/net/dsa/lan9303-core.c if (!dsa_is_user_port(ds, port)) ds 1096 drivers/net/dsa/lan9303-core.c lan9303_phy_write(ds, chip->phy_addr_base + port, MII_BMCR, BMCR_PDOWN); ds 1099 drivers/net/dsa/lan9303-core.c static int lan9303_port_bridge_join(struct dsa_switch *ds, int port, ds 1102 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1105 drivers/net/dsa/lan9303-core.c if (dsa_to_port(ds, 1)->bridge_dev == dsa_to_port(ds, 2)->bridge_dev) { ds 1113 drivers/net/dsa/lan9303-core.c static void lan9303_port_bridge_leave(struct dsa_switch *ds, int port, ds 1116 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1125 drivers/net/dsa/lan9303-core.c static void lan9303_port_stp_state_set(struct dsa_switch *ds, int port, ds 1129 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1165 drivers/net/dsa/lan9303-core.c static void lan9303_port_fast_age(struct dsa_switch *ds, int port) ds 1167 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1176 drivers/net/dsa/lan9303-core.c static int lan9303_port_fdb_add(struct dsa_switch *ds, int port, ds 1179 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1188 drivers/net/dsa/lan9303-core.c static int lan9303_port_fdb_del(struct dsa_switch *ds, int port, ds 1192 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1202 drivers/net/dsa/lan9303-core.c static int lan9303_port_fdb_dump(struct dsa_switch *ds, int port, ds 1205 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1218 drivers/net/dsa/lan9303-core.c static int lan9303_port_mdb_prepare(struct dsa_switch *ds, int port, ds 1221 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1235 drivers/net/dsa/lan9303-core.c static void lan9303_port_mdb_add(struct dsa_switch *ds, int port, ds 1238 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1245 drivers/net/dsa/lan9303-core.c static int lan9303_port_mdb_del(struct dsa_switch *ds, int port, ds 1248 drivers/net/dsa/lan9303-core.c struct lan9303 *chip = ds->priv; ds 1286 drivers/net/dsa/lan9303-core.c chip->ds = dsa_switch_alloc(chip->dev, LAN9303_NUM_PORTS); ds 1287 drivers/net/dsa/lan9303-core.c if (!chip->ds) ds 1290 drivers/net/dsa/lan9303-core.c chip->ds->priv = chip; ds 1291 drivers/net/dsa/lan9303-core.c chip->ds->ops = &lan9303_switch_ops; ds 1293 drivers/net/dsa/lan9303-core.c chip->ds->phys_mii_mask = GENMASK(LAN9303_NUM_PORTS - 1 + base, base); ds 1295 drivers/net/dsa/lan9303-core.c return dsa_register_switch(chip->ds); ds 1362 drivers/net/dsa/lan9303-core.c dsa_unregister_switch(chip->ds); ds 250 drivers/net/dsa/lantiq_gswip.c struct dsa_switch *ds; ds 485 drivers/net/dsa/lantiq_gswip.c struct dsa_switch *ds = priv->ds; ds 487 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus = devm_mdiobus_alloc(priv->dev); ds 488 drivers/net/dsa/lantiq_gswip.c if (!ds->slave_mii_bus) ds 491 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->priv = priv; ds 492 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->read = gswip_mdio_rd; ds 493 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->write = gswip_mdio_wr; ds 494 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->name = "lantiq,xrx200-mdio"; ds 495 drivers/net/dsa/lantiq_gswip.c snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "%s-mii", ds 497 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->parent = priv->dev; ds 498 drivers/net/dsa/lantiq_gswip.c ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; ds 500 drivers/net/dsa/lantiq_gswip.c return of_mdiobus_register(ds->slave_mii_bus, mdio_np); ds 639 drivers/net/dsa/lantiq_gswip.c static int gswip_port_enable(struct dsa_switch *ds, int port, ds 642 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 645 drivers/net/dsa/lantiq_gswip.c if (!dsa_is_user_port(ds, port)) ds 648 drivers/net/dsa/lantiq_gswip.c if (!dsa_is_cpu_port(ds, port)) { ds 664 drivers/net/dsa/lantiq_gswip.c if (!dsa_is_cpu_port(ds, port)) { ds 680 drivers/net/dsa/lantiq_gswip.c static void gswip_port_disable(struct dsa_switch *ds, int port) ds 682 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 684 drivers/net/dsa/lantiq_gswip.c if (!dsa_is_user_port(ds, port)) ds 687 drivers/net/dsa/lantiq_gswip.c if (!dsa_is_cpu_port(ds, port)) { ds 738 drivers/net/dsa/lantiq_gswip.c static int gswip_port_vlan_filtering(struct dsa_switch *ds, int port, ds 741 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 742 drivers/net/dsa/lantiq_gswip.c struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; ds 771 drivers/net/dsa/lantiq_gswip.c static int gswip_setup(struct dsa_switch *ds) ds 773 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 784 drivers/net/dsa/lantiq_gswip.c gswip_port_disable(ds, i); ds 785 drivers/net/dsa/lantiq_gswip.c gswip_port_vlan_filtering(ds, i, false); ds 839 drivers/net/dsa/lantiq_gswip.c gswip_port_enable(ds, cpu_port, NULL); ds 843 drivers/net/dsa/lantiq_gswip.c static enum dsa_tag_protocol gswip_get_tag_protocol(struct dsa_switch *ds, ds 1102 drivers/net/dsa/lantiq_gswip.c static int gswip_port_bridge_join(struct dsa_switch *ds, int port, ds 1105 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1122 drivers/net/dsa/lantiq_gswip.c static void gswip_port_bridge_leave(struct dsa_switch *ds, int port, ds 1125 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1136 drivers/net/dsa/lantiq_gswip.c static int gswip_port_vlan_prepare(struct dsa_switch *ds, int port, ds 1139 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1140 drivers/net/dsa/lantiq_gswip.c struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; ds 1147 drivers/net/dsa/lantiq_gswip.c if (!dsa_is_cpu_port(ds, port) && !bridge) ds 1184 drivers/net/dsa/lantiq_gswip.c static void gswip_port_vlan_add(struct dsa_switch *ds, int port, ds 1187 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1188 drivers/net/dsa/lantiq_gswip.c struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; ds 1198 drivers/net/dsa/lantiq_gswip.c if (dsa_is_cpu_port(ds, port)) ds 1205 drivers/net/dsa/lantiq_gswip.c static int gswip_port_vlan_del(struct dsa_switch *ds, int port, ds 1208 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1209 drivers/net/dsa/lantiq_gswip.c struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; ds 1219 drivers/net/dsa/lantiq_gswip.c if (dsa_is_cpu_port(ds, port)) ds 1231 drivers/net/dsa/lantiq_gswip.c static void gswip_port_fast_age(struct dsa_switch *ds, int port) ds 1233 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1268 drivers/net/dsa/lantiq_gswip.c static void gswip_port_stp_state_set(struct dsa_switch *ds, int port, u8 state) ds 1270 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1299 drivers/net/dsa/lantiq_gswip.c static int gswip_port_fdb(struct dsa_switch *ds, int port, ds 1302 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1303 drivers/net/dsa/lantiq_gswip.c struct net_device *bridge = dsa_to_port(ds, port)->bridge_dev; ds 1342 drivers/net/dsa/lantiq_gswip.c static int gswip_port_fdb_add(struct dsa_switch *ds, int port, ds 1345 drivers/net/dsa/lantiq_gswip.c return gswip_port_fdb(ds, port, addr, vid, true); ds 1348 drivers/net/dsa/lantiq_gswip.c static int gswip_port_fdb_del(struct dsa_switch *ds, int port, ds 1351 drivers/net/dsa/lantiq_gswip.c return gswip_port_fdb(ds, port, addr, vid, false); ds 1354 drivers/net/dsa/lantiq_gswip.c static int gswip_port_fdb_dump(struct dsa_switch *ds, int port, ds 1357 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1394 drivers/net/dsa/lantiq_gswip.c static void gswip_phylink_validate(struct dsa_switch *ds, int port, ds 1422 drivers/net/dsa/lantiq_gswip.c dev_err(ds->dev, "Unsupported port: %i\n", port); ds 1454 drivers/net/dsa/lantiq_gswip.c dev_err(ds->dev, "Unsupported interface: %d\n", state->interface); ds 1458 drivers/net/dsa/lantiq_gswip.c static void gswip_phylink_mac_config(struct dsa_switch *ds, int port, ds 1462 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1485 drivers/net/dsa/lantiq_gswip.c dev_err(ds->dev, ds 1507 drivers/net/dsa/lantiq_gswip.c static void gswip_phylink_mac_link_down(struct dsa_switch *ds, int port, ds 1511 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1516 drivers/net/dsa/lantiq_gswip.c static void gswip_phylink_mac_link_up(struct dsa_switch *ds, int port, ds 1521 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1528 drivers/net/dsa/lantiq_gswip.c static void gswip_get_strings(struct dsa_switch *ds, int port, u32 stringset, ds 1567 drivers/net/dsa/lantiq_gswip.c static void gswip_get_ethtool_stats(struct dsa_switch *ds, int port, ds 1570 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = ds->priv; ds 1588 drivers/net/dsa/lantiq_gswip.c static int gswip_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 1857 drivers/net/dsa/lantiq_gswip.c priv->ds = dsa_switch_alloc(dev, priv->hw_info->max_ports); ds 1858 drivers/net/dsa/lantiq_gswip.c if (!priv->ds) ds 1861 drivers/net/dsa/lantiq_gswip.c priv->ds->priv = priv; ds 1862 drivers/net/dsa/lantiq_gswip.c priv->ds->ops = &gswip_switch_ops; ds 1887 drivers/net/dsa/lantiq_gswip.c err = dsa_register_switch(priv->ds); ds 1892 drivers/net/dsa/lantiq_gswip.c if (!dsa_is_cpu_port(priv->ds, priv->hw_info->cpu_port)) { ds 1908 drivers/net/dsa/lantiq_gswip.c dsa_unregister_switch(priv->ds); ds 1911 drivers/net/dsa/lantiq_gswip.c mdiobus_unregister(priv->ds->slave_mii_bus); ds 1927 drivers/net/dsa/lantiq_gswip.c dsa_unregister_switch(priv->ds); ds 1929 drivers/net/dsa/lantiq_gswip.c if (priv->ds->slave_mii_bus) { ds 1930 drivers/net/dsa/lantiq_gswip.c mdiobus_unregister(priv->ds->slave_mii_bus); ds 1931 drivers/net/dsa/lantiq_gswip.c of_node_put(priv->ds->slave_mii_bus->dev.of_node); ds 647 drivers/net/dsa/microchip/ksz8795.c static enum dsa_tag_protocol ksz8795_get_tag_protocol(struct dsa_switch *ds, ds 653 drivers/net/dsa/microchip/ksz8795.c static void ksz8795_get_strings(struct dsa_switch *ds, int port, ds 676 drivers/net/dsa/microchip/ksz8795.c static void ksz8795_port_stp_state_set(struct dsa_switch *ds, int port, ds 679 drivers/net/dsa/microchip/ksz8795.c struct ksz_device *dev = ds->priv; ds 727 drivers/net/dsa/microchip/ksz8795.c dev_err(ds->dev, "invalid STP state: %d\n", state); ds 792 drivers/net/dsa/microchip/ksz8795.c static int ksz8795_port_vlan_filtering(struct dsa_switch *ds, int port, ds 795 drivers/net/dsa/microchip/ksz8795.c struct ksz_device *dev = ds->priv; ds 802 drivers/net/dsa/microchip/ksz8795.c static void ksz8795_port_vlan_add(struct dsa_switch *ds, int port, ds 806 drivers/net/dsa/microchip/ksz8795.c struct ksz_device *dev = ds->priv; ds 840 drivers/net/dsa/microchip/ksz8795.c static int ksz8795_port_vlan_del(struct dsa_switch *ds, int port, ds 844 drivers/net/dsa/microchip/ksz8795.c struct ksz_device *dev = ds->priv; ds 878 drivers/net/dsa/microchip/ksz8795.c static int ksz8795_port_mirror_add(struct dsa_switch *ds, int port, ds 882 drivers/net/dsa/microchip/ksz8795.c struct ksz_device *dev = ds->priv; ds 902 drivers/net/dsa/microchip/ksz8795.c static void ksz8795_port_mirror_del(struct dsa_switch *ds, int port, ds 905 drivers/net/dsa/microchip/ksz8795.c struct ksz_device *dev = ds->priv; ds 991 drivers/net/dsa/microchip/ksz8795.c static void ksz8795_config_cpu_port(struct dsa_switch *ds) ds 993 drivers/net/dsa/microchip/ksz8795.c struct ksz_device *dev = ds->priv; ds 998 drivers/net/dsa/microchip/ksz8795.c ds->num_ports = dev->port_cnt + 1; ds 1019 drivers/net/dsa/microchip/ksz8795.c ksz8795_port_stp_state_set(ds, i, BR_STATE_DISABLED); ds 1043 drivers/net/dsa/microchip/ksz8795.c static int ksz8795_setup(struct dsa_switch *ds) ds 1045 drivers/net/dsa/microchip/ksz8795.c struct ksz_device *dev = ds->priv; ds 1056 drivers/net/dsa/microchip/ksz8795.c dev_err(ds->dev, "failed to reset switch\n"); ds 1077 drivers/net/dsa/microchip/ksz8795.c ksz8795_config_cpu_port(ds); ds 1227 drivers/net/dsa/microchip/ksz8795.c dev->ds->ops = &ksz8795_switch_ops; ds 297 drivers/net/dsa/microchip/ksz9477.c static enum dsa_tag_protocol ksz9477_get_tag_protocol(struct dsa_switch *ds, ds 301 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 308 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_phy_read16(struct dsa_switch *ds, int addr, int reg) ds 310 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 358 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_phy_write16(struct dsa_switch *ds, int addr, int reg, ds 361 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 375 drivers/net/dsa/microchip/ksz9477.c static void ksz9477_get_strings(struct dsa_switch *ds, int port, ds 396 drivers/net/dsa/microchip/ksz9477.c static void ksz9477_port_stp_state_set(struct dsa_switch *ds, int port, ds 399 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 447 drivers/net/dsa/microchip/ksz9477.c dev_err(ds->dev, "invalid STP state: %d\n", state); ds 503 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_port_vlan_filtering(struct dsa_switch *ds, int port, ds 506 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 521 drivers/net/dsa/microchip/ksz9477.c static void ksz9477_port_vlan_add(struct dsa_switch *ds, int port, ds 524 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 555 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_port_vlan_del(struct dsa_switch *ds, int port, ds 558 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 592 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_port_fdb_add(struct dsa_switch *ds, int port, ds 595 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 649 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_port_fdb_del(struct dsa_switch *ds, int port, ds 652 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 739 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_port_fdb_dump(struct dsa_switch *ds, int port, ds 742 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 791 drivers/net/dsa/microchip/ksz9477.c static void ksz9477_port_mdb_add(struct dsa_switch *ds, int port, ds 794 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 861 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_port_mdb_del(struct dsa_switch *ds, int port, ds 864 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 936 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_port_mirror_add(struct dsa_switch *ds, int port, ds 940 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 958 drivers/net/dsa/microchip/ksz9477.c static void ksz9477_port_mirror_del(struct dsa_switch *ds, int port, ds 961 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 1290 drivers/net/dsa/microchip/ksz9477.c static void ksz9477_config_cpu_port(struct dsa_switch *ds) ds 1292 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 1296 drivers/net/dsa/microchip/ksz9477.c ds->num_ports = dev->port_cnt; ds 1299 drivers/net/dsa/microchip/ksz9477.c if (dsa_is_cpu_port(ds, i) && (dev->cpu_ports & (1 << i))) { ds 1339 drivers/net/dsa/microchip/ksz9477.c ksz9477_port_stp_state_set(ds, i, BR_STATE_DISABLED); ds 1352 drivers/net/dsa/microchip/ksz9477.c static int ksz9477_setup(struct dsa_switch *ds) ds 1354 drivers/net/dsa/microchip/ksz9477.c struct ksz_device *dev = ds->priv; ds 1364 drivers/net/dsa/microchip/ksz9477.c dev_err(ds->dev, "failed to reset switch\n"); ds 1378 drivers/net/dsa/microchip/ksz9477.c ksz9477_config_cpu_port(ds); ds 1547 drivers/net/dsa/microchip/ksz9477.c dev->ds->ops = &ksz9477_switch_ops; ds 76 drivers/net/dsa/microchip/ksz_common.c if (dsa_is_unused_port(dev->ds, i)) ds 87 drivers/net/dsa/microchip/ksz_common.c const struct dsa_port *dp = dsa_to_port(dev->ds, i); ds 125 drivers/net/dsa/microchip/ksz_common.c int ksz_phy_read16(struct dsa_switch *ds, int addr, int reg) ds 127 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 136 drivers/net/dsa/microchip/ksz_common.c int ksz_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val) ds 138 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 146 drivers/net/dsa/microchip/ksz_common.c void ksz_adjust_link(struct dsa_switch *ds, int port, ds 149 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 167 drivers/net/dsa/microchip/ksz_common.c int ksz_sset_count(struct dsa_switch *ds, int port, int sset) ds 169 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 178 drivers/net/dsa/microchip/ksz_common.c void ksz_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *buf) ds 180 drivers/net/dsa/microchip/ksz_common.c const struct dsa_port *dp = dsa_to_port(ds, port); ds 181 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 196 drivers/net/dsa/microchip/ksz_common.c int ksz_port_bridge_join(struct dsa_switch *ds, int port, ds 199 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 213 drivers/net/dsa/microchip/ksz_common.c void ksz_port_bridge_leave(struct dsa_switch *ds, int port, ds 216 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 229 drivers/net/dsa/microchip/ksz_common.c void ksz_port_fast_age(struct dsa_switch *ds, int port) ds 231 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 237 drivers/net/dsa/microchip/ksz_common.c int ksz_port_vlan_prepare(struct dsa_switch *ds, int port, ds 246 drivers/net/dsa/microchip/ksz_common.c int ksz_port_fdb_dump(struct dsa_switch *ds, int port, dsa_fdb_dump_cb_t *cb, ds 249 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 277 drivers/net/dsa/microchip/ksz_common.c int ksz_port_mdb_prepare(struct dsa_switch *ds, int port, ds 285 drivers/net/dsa/microchip/ksz_common.c void ksz_port_mdb_add(struct dsa_switch *ds, int port, ds 288 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 328 drivers/net/dsa/microchip/ksz_common.c int ksz_port_mdb_del(struct dsa_switch *ds, int port, ds 331 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 360 drivers/net/dsa/microchip/ksz_common.c int ksz_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy) ds 362 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 364 drivers/net/dsa/microchip/ksz_common.c if (!dsa_is_user_port(ds, port)) ds 380 drivers/net/dsa/microchip/ksz_common.c void ksz_disable_port(struct dsa_switch *ds, int port) ds 382 drivers/net/dsa/microchip/ksz_common.c struct ksz_device *dev = ds->priv; ds 384 drivers/net/dsa/microchip/ksz_common.c if (!dsa_is_user_port(ds, port)) ds 398 drivers/net/dsa/microchip/ksz_common.c struct dsa_switch *ds; ds 401 drivers/net/dsa/microchip/ksz_common.c ds = dsa_switch_alloc(base, DSA_MAX_PORTS); ds 402 drivers/net/dsa/microchip/ksz_common.c if (!ds) ds 409 drivers/net/dsa/microchip/ksz_common.c ds->priv = swdev; ds 412 drivers/net/dsa/microchip/ksz_common.c swdev->ds = ds; ds 463 drivers/net/dsa/microchip/ksz_common.c ret = dsa_register_switch(dev->ds); ds 482 drivers/net/dsa/microchip/ksz_common.c dsa_unregister_switch(dev->ds); ds 45 drivers/net/dsa/microchip/ksz_common.h struct dsa_switch *ds; ds 161 drivers/net/dsa/microchip/ksz_common.h int ksz_phy_read16(struct dsa_switch *ds, int addr, int reg); ds 162 drivers/net/dsa/microchip/ksz_common.h int ksz_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val); ds 163 drivers/net/dsa/microchip/ksz_common.h void ksz_adjust_link(struct dsa_switch *ds, int port, ds 165 drivers/net/dsa/microchip/ksz_common.h int ksz_sset_count(struct dsa_switch *ds, int port, int sset); ds 166 drivers/net/dsa/microchip/ksz_common.h void ksz_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *buf); ds 167 drivers/net/dsa/microchip/ksz_common.h int ksz_port_bridge_join(struct dsa_switch *ds, int port, ds 169 drivers/net/dsa/microchip/ksz_common.h void ksz_port_bridge_leave(struct dsa_switch *ds, int port, ds 171 drivers/net/dsa/microchip/ksz_common.h void ksz_port_fast_age(struct dsa_switch *ds, int port); ds 172 drivers/net/dsa/microchip/ksz_common.h int ksz_port_vlan_prepare(struct dsa_switch *ds, int port, ds 174 drivers/net/dsa/microchip/ksz_common.h int ksz_port_fdb_dump(struct dsa_switch *ds, int port, dsa_fdb_dump_cb_t *cb, ds 176 drivers/net/dsa/microchip/ksz_common.h int ksz_port_mdb_prepare(struct dsa_switch *ds, int port, ds 178 drivers/net/dsa/microchip/ksz_common.h void ksz_port_mdb_add(struct dsa_switch *ds, int port, ds 180 drivers/net/dsa/microchip/ksz_common.h int ksz_port_mdb_del(struct dsa_switch *ds, int port, ds 182 drivers/net/dsa/microchip/ksz_common.h int ksz_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy); ds 183 drivers/net/dsa/microchip/ksz_common.h void ksz_disable_port(struct dsa_switch *ds, int port); ds 376 drivers/net/dsa/mt7530.c mt7530_pad_clk_setup(struct dsa_switch *ds, int mode) ds 378 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 485 drivers/net/dsa/mt7530.c mt7530_mib_reset(struct dsa_switch *ds) ds 487 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 504 drivers/net/dsa/mt7530.c static int mt7530_phy_read(struct dsa_switch *ds, int port, int regnum) ds 506 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 511 drivers/net/dsa/mt7530.c static int mt7530_phy_write(struct dsa_switch *ds, int port, int regnum, ds 514 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 520 drivers/net/dsa/mt7530.c mt7530_get_strings(struct dsa_switch *ds, int port, u32 stringset, ds 534 drivers/net/dsa/mt7530.c mt7530_get_ethtool_stats(struct dsa_switch *ds, int port, ds 537 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 555 drivers/net/dsa/mt7530.c mt7530_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 563 drivers/net/dsa/mt7530.c static void mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface) ds 565 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 596 drivers/net/dsa/mt7530.c dev_err(ds->dev, "Unsupported p5_intf_sel %d\n", ds 609 drivers/net/dsa/mt7530.c if (!dsa_is_dsa_port(priv->ds, 5) && ds 625 drivers/net/dsa/mt7530.c dev_dbg(ds->dev, "Setup P5, HWTRAP=0x%x, intf_sel=%s, phy-mode=%s\n", ds 653 drivers/net/dsa/mt7530.c PCR_MATRIX(dsa_user_ports(priv->ds))); ds 659 drivers/net/dsa/mt7530.c mt7530_port_enable(struct dsa_switch *ds, int port, ds 662 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 664 drivers/net/dsa/mt7530.c if (!dsa_is_user_port(ds, port)) ds 685 drivers/net/dsa/mt7530.c mt7530_port_disable(struct dsa_switch *ds, int port) ds 687 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 689 drivers/net/dsa/mt7530.c if (!dsa_is_user_port(ds, port)) ds 706 drivers/net/dsa/mt7530.c mt7530_stp_state_set(struct dsa_switch *ds, int port, u8 state) ds 708 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 734 drivers/net/dsa/mt7530.c mt7530_port_bridge_join(struct dsa_switch *ds, int port, ds 737 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 748 drivers/net/dsa/mt7530.c if (dsa_is_user_port(ds, i) && i != port) { ds 749 drivers/net/dsa/mt7530.c if (dsa_to_port(ds, i)->bridge_dev != bridge) ds 772 drivers/net/dsa/mt7530.c mt7530_port_set_vlan_unaware(struct dsa_switch *ds, int port) ds 774 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 789 drivers/net/dsa/mt7530.c if (dsa_is_user_port(ds, i) && ds 790 drivers/net/dsa/mt7530.c dsa_port_is_vlan_filtering(&ds->ports[i])) { ds 801 drivers/net/dsa/mt7530.c PCR_MATRIX(dsa_user_ports(priv->ds))); ds 808 drivers/net/dsa/mt7530.c mt7530_port_set_vlan_aware(struct dsa_switch *ds, int port) ds 810 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 824 drivers/net/dsa/mt7530.c if (dsa_is_cpu_port(ds, port)) ds 840 drivers/net/dsa/mt7530.c mt7530_port_bridge_leave(struct dsa_switch *ds, int port, ds 843 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 855 drivers/net/dsa/mt7530.c if (dsa_is_user_port(ds, i) && i != port && ds 856 drivers/net/dsa/mt7530.c !dsa_port_is_vlan_filtering(&ds->ports[i])) { ds 857 drivers/net/dsa/mt7530.c if (dsa_to_port(ds, i)->bridge_dev != bridge) ds 878 drivers/net/dsa/mt7530.c mt7530_port_fdb_add(struct dsa_switch *ds, int port, ds 881 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 894 drivers/net/dsa/mt7530.c mt7530_port_fdb_del(struct dsa_switch *ds, int port, ds 897 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 910 drivers/net/dsa/mt7530.c mt7530_port_fdb_dump(struct dsa_switch *ds, int port, ds 913 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 972 drivers/net/dsa/mt7530.c mt7530_port_vlan_filtering(struct dsa_switch *ds, int port, ds 981 drivers/net/dsa/mt7530.c mt7530_port_set_vlan_aware(ds, port); ds 982 drivers/net/dsa/mt7530.c mt7530_port_set_vlan_aware(ds, MT7530_CPU_PORT); ds 984 drivers/net/dsa/mt7530.c mt7530_port_set_vlan_unaware(ds, port); ds 991 drivers/net/dsa/mt7530.c mt7530_port_vlan_prepare(struct dsa_switch *ds, int port, ds 1087 drivers/net/dsa/mt7530.c mt7530_port_vlan_add(struct dsa_switch *ds, int port, ds 1093 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 1099 drivers/net/dsa/mt7530.c if (!dsa_port_is_vlan_filtering(&ds->ports[port])) ds 1120 drivers/net/dsa/mt7530.c mt7530_port_vlan_del(struct dsa_switch *ds, int port, ds 1124 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 1130 drivers/net/dsa/mt7530.c if (!dsa_port_is_vlan_filtering(&ds->ports[port])) ds 1157 drivers/net/dsa/mt7530.c mtk_get_tag_protocol(struct dsa_switch *ds, int port) ds 1159 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 1171 drivers/net/dsa/mt7530.c mt7530_setup(struct dsa_switch *ds) ds 1173 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 1186 drivers/net/dsa/mt7530.c dn = ds->ports[MT7530_CPU_PORT].master->dev.of_node->parent; ds 1249 drivers/net/dsa/mt7530.c mt7530_mib_reset(ds); ds 1256 drivers/net/dsa/mt7530.c if (dsa_is_cpu_port(ds, i)) ds 1259 drivers/net/dsa/mt7530.c mt7530_port_disable(ds, i); ds 1270 drivers/net/dsa/mt7530.c if (!dsa_is_unused_port(ds, 5)) { ds 1272 drivers/net/dsa/mt7530.c interface = of_get_phy_mode(ds->ports[5].dn); ds 1290 drivers/net/dsa/mt7530.c id = of_mdio_parse_addr(ds->dev, phy_node); ds 1301 drivers/net/dsa/mt7530.c mt7530_setup_port5(ds, interface); ds 1311 drivers/net/dsa/mt7530.c static void mt7530_phylink_mac_config(struct dsa_switch *ds, int port, ds 1315 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 1335 drivers/net/dsa/mt7530.c mt7530_setup_port5(ds, state->interface); ds 1346 drivers/net/dsa/mt7530.c mt7530_pad_clk_setup(ds, state->interface); ds 1351 drivers/net/dsa/mt7530.c dev_err(ds->dev, "%s: unsupported port: %i\n", __func__, port); ds 1356 drivers/net/dsa/mt7530.c dev_err(ds->dev, "%s: in-band negotiation unsupported\n", ds 1369 drivers/net/dsa/mt7530.c if (port == 5 && dsa_is_user_port(ds, 5)) ds 1392 drivers/net/dsa/mt7530.c static void mt7530_phylink_mac_link_down(struct dsa_switch *ds, int port, ds 1396 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 1401 drivers/net/dsa/mt7530.c static void mt7530_phylink_mac_link_up(struct dsa_switch *ds, int port, ds 1406 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 1411 drivers/net/dsa/mt7530.c static void mt7530_phylink_validate(struct dsa_switch *ds, int port, ds 1441 drivers/net/dsa/mt7530.c dev_err(ds->dev, "%s: unsupported port: %i\n", __func__, port); ds 1474 drivers/net/dsa/mt7530.c mt7530_phylink_mac_link_state(struct dsa_switch *ds, int port, ds 1477 drivers/net/dsa/mt7530.c struct mt7530_priv *priv = ds->priv; ds 1559 drivers/net/dsa/mt7530.c priv->ds = dsa_switch_alloc(&mdiodev->dev, DSA_MAX_PORTS); ds 1560 drivers/net/dsa/mt7530.c if (!priv->ds) ds 1609 drivers/net/dsa/mt7530.c priv->ds->priv = priv; ds 1610 drivers/net/dsa/mt7530.c priv->ds->ops = &mt7530_switch_ops; ds 1614 drivers/net/dsa/mt7530.c return dsa_register_switch(priv->ds); ds 1633 drivers/net/dsa/mt7530.c dsa_unregister_switch(priv->ds); ds 456 drivers/net/dsa/mt7530.h struct dsa_switch *ds; ds 45 drivers/net/dsa/mv88e6060.c static enum dsa_tag_protocol mv88e6060_get_tag_protocol(struct dsa_switch *ds, ds 126 drivers/net/dsa/mv88e6060.c dsa_is_cpu_port(priv->ds, p) ? ds 141 drivers/net/dsa/mv88e6060.c (dsa_is_cpu_port(priv->ds, p) ? ds 142 drivers/net/dsa/mv88e6060.c dsa_user_ports(priv->ds) : ds 143 drivers/net/dsa/mv88e6060.c BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); ds 183 drivers/net/dsa/mv88e6060.c static int mv88e6060_setup(struct dsa_switch *ds) ds 185 drivers/net/dsa/mv88e6060.c struct mv88e6060_priv *priv = ds->priv; ds 189 drivers/net/dsa/mv88e6060.c priv->ds = ds; ds 221 drivers/net/dsa/mv88e6060.c static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) ds 223 drivers/net/dsa/mv88e6060.c struct mv88e6060_priv *priv = ds->priv; ds 234 drivers/net/dsa/mv88e6060.c mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) ds 236 drivers/net/dsa/mv88e6060.c struct mv88e6060_priv *priv = ds->priv; ds 257 drivers/net/dsa/mv88e6060.c struct dsa_switch *ds; ds 273 drivers/net/dsa/mv88e6060.c ds = dsa_switch_alloc(dev, MV88E6060_PORTS); ds 274 drivers/net/dsa/mv88e6060.c if (!ds) ds 277 drivers/net/dsa/mv88e6060.c ds->priv = priv; ds 278 drivers/net/dsa/mv88e6060.c ds->dev = dev; ds 279 drivers/net/dsa/mv88e6060.c ds->ops = &mv88e6060_switch_ops; ds 281 drivers/net/dsa/mv88e6060.c dev_set_drvdata(dev, ds); ds 283 drivers/net/dsa/mv88e6060.c return dsa_register_switch(ds); ds 288 drivers/net/dsa/mv88e6060.c struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); ds 290 drivers/net/dsa/mv88e6060.c dsa_unregister_switch(ds); ds 116 drivers/net/dsa/mv88e6060.h struct dsa_switch *ds; ds 471 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_phy_is_internal(struct dsa_switch *ds, int port) ds 473 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 557 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_validate(struct dsa_switch *ds, int port, ds 562 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 582 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_link_state(struct dsa_switch *ds, int port, ds 585 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 598 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_mac_config(struct dsa_switch *ds, int port, ds 602 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 605 drivers/net/dsa/mv88e6xxx/chip.c if ((mode == MLO_AN_PHY) && mv88e6xxx_phy_is_internal(ds, port)) ds 612 drivers/net/dsa/mv88e6xxx/chip.c } else if (!mv88e6xxx_phy_is_internal(ds, port)) { ds 629 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "p%d: failed to configure MAC\n", port); ds 632 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_mac_link_force(struct dsa_switch *ds, int port, int link) ds 634 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 645 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_mac_link_down(struct dsa_switch *ds, int port, ds 650 drivers/net/dsa/mv88e6xxx/chip.c mv88e6xxx_mac_link_force(ds, port, LINK_FORCED_DOWN); ds 653 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_mac_link_up(struct dsa_switch *ds, int port, ds 658 drivers/net/dsa/mv88e6xxx/chip.c mv88e6xxx_mac_link_force(ds, port, LINK_FORCED_UP); ds 828 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_get_strings(struct dsa_switch *ds, int port, ds 831 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 884 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 886 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 998 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, int port, ds 1001 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1016 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_get_regs_len(struct dsa_switch *ds, int port) ds 1021 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_get_regs(struct dsa_switch *ds, int port, ds 1024 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1046 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_get_mac_eee(struct dsa_switch *ds, int port, ds 1053 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_set_mac_eee(struct dsa_switch *ds, int port, ds 1062 drivers/net/dsa/mv88e6xxx/chip.c struct dsa_switch *ds = NULL; ds 1068 drivers/net/dsa/mv88e6xxx/chip.c ds = chip->ds->dst->ds[dev]; ds 1071 drivers/net/dsa/mv88e6xxx/chip.c if (!ds || port >= ds->num_ports) ds 1075 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port)) ds 1078 drivers/net/dsa/mv88e6xxx/chip.c br = ds->ports[port].bridge_dev; ds 1085 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_cpu_port(chip->ds, i) || ds 1086 drivers/net/dsa/mv88e6xxx/chip.c dsa_is_dsa_port(chip->ds, i) || ds 1087 drivers/net/dsa/mv88e6xxx/chip.c (br && dsa_to_port(chip->ds, i)->bridge_dev == br)) ds 1095 drivers/net/dsa/mv88e6xxx/chip.c u16 output_ports = mv88e6xxx_port_vlan(chip, chip->ds->index, port); ds 1103 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_port_stp_state_set(struct dsa_switch *ds, int port, ds 1106 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1114 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "p%d: failed to update state\n", port); ds 1148 drivers/net/dsa/mv88e6xxx/chip.c if (chip->ds->rtable[target] != DSA_RTABLE_NONE) ds 1149 drivers/net/dsa/mv88e6xxx/chip.c port = chip->ds->rtable[target]; ds 1163 drivers/net/dsa/mv88e6xxx/chip.c err = mv88e6xxx_g1_set_device_number(chip, chip->ds->index); ds 1259 drivers/net/dsa/mv88e6xxx/chip.c if (dev != chip->ds->index) ds 1291 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_port_fast_age(struct dsa_switch *ds, int port) ds 1293 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1301 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "p%d: failed to flush ATU\n", port); ds 1373 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_check_hw_vlan(struct dsa_switch *ds, int port, ds 1376 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1381 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_dsa_port(ds, port) || dsa_is_cpu_port(ds, port)) ds 1402 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_dsa_port(ds, i) || dsa_is_cpu_port(ds, i)) ds 1405 drivers/net/dsa/mv88e6xxx/chip.c if (!ds->ports[i].slave) ds 1412 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_to_port(ds, i)->bridge_dev == ds 1413 drivers/net/dsa/mv88e6xxx/chip.c ds->ports[port].bridge_dev) ds 1416 drivers/net/dsa/mv88e6xxx/chip.c if (!dsa_to_port(ds, i)->bridge_dev) ds 1419 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "p%d: hw VLAN %d already used by port %d in %s\n", ds 1421 drivers/net/dsa/mv88e6xxx/chip.c netdev_name(dsa_to_port(ds, i)->bridge_dev)); ds 1429 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_vlan_filtering(struct dsa_switch *ds, int port, ds 1432 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1448 drivers/net/dsa/mv88e6xxx/chip.c mv88e6xxx_port_vlan_prepare(struct dsa_switch *ds, int port, ds 1451 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1461 drivers/net/dsa/mv88e6xxx/chip.c err = mv88e6xxx_port_check_hw_vlan(ds, port, vlan->vid_begin, ds 1657 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_get_rxnfc(struct dsa_switch *ds, int port, ds 1661 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1704 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_set_rxnfc(struct dsa_switch *ds, int port, ds 1708 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1814 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_port_vlan_add(struct dsa_switch *ds, int port, ds 1817 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1826 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_dsa_port(ds, port) || dsa_is_cpu_port(ds, port)) ds 1837 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "p%d: failed to add VLAN %d%c\n", port, ds 1841 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "p%d: failed to set PVID %d\n", port, ds 1889 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_vlan_del(struct dsa_switch *ds, int port, ds 1892 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1923 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_fdb_add(struct dsa_switch *ds, int port, ds 1926 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 1937 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_fdb_del(struct dsa_switch *ds, int port, ds 1940 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2022 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_fdb_dump(struct dsa_switch *ds, int port, ds 2025 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2038 drivers/net/dsa/mv88e6xxx/chip.c struct dsa_switch *ds; ds 2045 drivers/net/dsa/mv88e6xxx/chip.c if (chip->ds->ports[port].bridge_dev == br) { ds 2057 drivers/net/dsa/mv88e6xxx/chip.c ds = chip->ds->dst->ds[dev]; ds 2058 drivers/net/dsa/mv88e6xxx/chip.c if (!ds) ds 2061 drivers/net/dsa/mv88e6xxx/chip.c for (port = 0; port < ds->num_ports; ++port) { ds 2062 drivers/net/dsa/mv88e6xxx/chip.c if (ds->ports[port].bridge_dev == br) { ds 2073 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_bridge_join(struct dsa_switch *ds, int port, ds 2076 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2086 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_port_bridge_leave(struct dsa_switch *ds, int port, ds 2089 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2094 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "failed to remap in-chip Port VLAN\n"); ds 2098 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_crosschip_bridge_join(struct dsa_switch *ds, int dev, ds 2101 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2114 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_crosschip_bridge_leave(struct dsa_switch *ds, int dev, ds 2117 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2124 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "failed to remap cross-chip Port VLAN\n"); ds 2228 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_dsa_port(chip->ds, port)) ds 2231 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_user_port(chip->ds, port)) ds 2246 drivers/net/dsa/mv88e6xxx/chip.c bool message = dsa_is_dsa_port(chip->ds, port); ds 2253 drivers/net/dsa/mv88e6xxx/chip.c struct dsa_switch *ds = chip->ds; ds 2257 drivers/net/dsa/mv88e6xxx/chip.c flood = dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port); ds 2359 drivers/net/dsa/mv88e6xxx/chip.c struct dsa_switch *ds = chip->ds; ds 2363 drivers/net/dsa/mv88e6xxx/chip.c upstream_port = dsa_upstream_port(ds, port); ds 2392 drivers/net/dsa/mv88e6xxx/chip.c struct dsa_switch *ds = chip->ds; ds 2403 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port)) ds 2477 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_cpu_port(ds, port)) ds 2545 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_enable(struct dsa_switch *ds, int port, ds 2548 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2558 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_port_disable(struct dsa_switch *ds, int port) ds 2560 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2568 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_set_ageing_time(struct dsa_switch *ds, ds 2571 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2644 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_setup(struct dsa_switch *ds) ds 2646 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2651 drivers/net/dsa/mv88e6xxx/chip.c chip->ds = ds; ds 2652 drivers/net/dsa/mv88e6xxx/chip.c ds->slave_mii_bus = mv88e6xxx_default_mdio_bus(chip); ds 2675 drivers/net/dsa/mv88e6xxx/chip.c if (dsa_is_unused_port(ds, i)) ds 2933 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_get_eeprom_len(struct dsa_switch *ds) ds 2935 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2940 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_get_eeprom(struct dsa_switch *ds, ds 2943 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 2961 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_set_eeprom(struct dsa_switch *ds, ds 2964 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 4873 drivers/net/dsa/mv88e6xxx/chip.c static enum dsa_tag_protocol mv88e6xxx_get_tag_protocol(struct dsa_switch *ds, ds 4876 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 4881 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_mdb_prepare(struct dsa_switch *ds, int port, ds 4891 drivers/net/dsa/mv88e6xxx/chip.c static void mv88e6xxx_port_mdb_add(struct dsa_switch *ds, int port, ds 4894 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 4899 drivers/net/dsa/mv88e6xxx/chip.c dev_err(ds->dev, "p%d: failed to load multicast MAC address\n", ds 4904 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_mdb_del(struct dsa_switch *ds, int port, ds 4907 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 4917 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_port_egress_floods(struct dsa_switch *ds, int port, ds 4920 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 4983 drivers/net/dsa/mv88e6xxx/chip.c struct dsa_switch *ds; ds 4985 drivers/net/dsa/mv88e6xxx/chip.c ds = dsa_switch_alloc(dev, mv88e6xxx_num_ports(chip)); ds 4986 drivers/net/dsa/mv88e6xxx/chip.c if (!ds) ds 4989 drivers/net/dsa/mv88e6xxx/chip.c ds->priv = chip; ds 4990 drivers/net/dsa/mv88e6xxx/chip.c ds->dev = dev; ds 4991 drivers/net/dsa/mv88e6xxx/chip.c ds->ops = &mv88e6xxx_switch_ops; ds 4992 drivers/net/dsa/mv88e6xxx/chip.c ds->ageing_time_min = chip->info->age_time_coeff; ds 4993 drivers/net/dsa/mv88e6xxx/chip.c ds->ageing_time_max = chip->info->age_time_coeff * U8_MAX; ds 4995 drivers/net/dsa/mv88e6xxx/chip.c dev_set_drvdata(dev, ds); ds 4997 drivers/net/dsa/mv88e6xxx/chip.c return dsa_register_switch(ds); ds 5002 drivers/net/dsa/mv88e6xxx/chip.c dsa_unregister_switch(chip->ds); ds 5180 drivers/net/dsa/mv88e6xxx/chip.c struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); ds 5181 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_chip *chip = ds->priv; ds 237 drivers/net/dsa/mv88e6xxx/chip.h struct dsa_switch *ds; ds 66 drivers/net/dsa/mv88e6xxx/hwtstamp.c int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, ds 72 drivers/net/dsa/mv88e6xxx/hwtstamp.c chip = ds->priv; ds 175 drivers/net/dsa/mv88e6xxx/hwtstamp.c int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port, ds 178 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip = ds->priv; ds 200 drivers/net/dsa/mv88e6xxx/hwtstamp.c int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port, ds 203 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip = ds->priv; ds 365 drivers/net/dsa/mv88e6xxx/hwtstamp.c bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, ds 372 drivers/net/dsa/mv88e6xxx/hwtstamp.c chip = ds->priv; ds 483 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct dsa_switch *ds = chip->ds; ds 487 drivers/net/dsa/mv88e6xxx/hwtstamp.c for (i = 0; i < ds->num_ports; i++) { ds 488 drivers/net/dsa/mv88e6xxx/hwtstamp.c if (!dsa_is_user_port(ds, i)) ds 501 drivers/net/dsa/mv88e6xxx/hwtstamp.c bool mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, ds 504 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct mv88e6xxx_chip *chip = ds->priv; ds 113 drivers/net/dsa/mv88e6xxx/hwtstamp.h int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port, ds 115 drivers/net/dsa/mv88e6xxx/hwtstamp.h int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port, ds 118 drivers/net/dsa/mv88e6xxx/hwtstamp.h bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, ds 120 drivers/net/dsa/mv88e6xxx/hwtstamp.h bool mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, ds 123 drivers/net/dsa/mv88e6xxx/hwtstamp.h int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, ds 135 drivers/net/dsa/mv88e6xxx/hwtstamp.h static inline int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, ds 141 drivers/net/dsa/mv88e6xxx/hwtstamp.h static inline int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, ds 147 drivers/net/dsa/mv88e6xxx/hwtstamp.h static inline bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, ds 154 drivers/net/dsa/mv88e6xxx/hwtstamp.h static inline bool mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, ds 161 drivers/net/dsa/mv88e6xxx/hwtstamp.h static inline int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, ds 183 drivers/net/dsa/mv88e6xxx/serdes.c struct dsa_switch *ds = chip->ds; ds 202 drivers/net/dsa/mv88e6xxx/serdes.c dsa_port_phylink_mac_change(ds, port, up); ds 430 drivers/net/dsa/mv88e6xxx/serdes.c struct dsa_switch *ds = chip->ds; ds 490 drivers/net/dsa/mv88e6xxx/serdes.c dsa_port_phylink_mac_change(ds, port, link == LINK_FORCED_UP); ds 552 drivers/net/dsa/qca8k.c qca8k_phy_write(struct dsa_switch *ds, int port, int regnum, u16 data) ds 554 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = ds->priv; ds 560 drivers/net/dsa/qca8k.c qca8k_phy_read(struct dsa_switch *ds, int port, int regnum) ds 562 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = ds->priv; ds 592 drivers/net/dsa/qca8k.c if (!dsa_is_user_port(priv->ds, reg)) ds 639 drivers/net/dsa/qca8k.c qca8k_setup(struct dsa_switch *ds) ds 641 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 646 drivers/net/dsa/qca8k.c if (!dsa_is_cpu_port(ds, 0)) { ds 654 drivers/net/dsa/qca8k.c priv->regmap = devm_regmap_init(ds->dev, NULL, priv, ds 664 drivers/net/dsa/qca8k.c phy_mode = of_get_phy_mode(ds->ports[QCA8K_CPU_PORT].dn); ds 697 drivers/net/dsa/qca8k.c if (dsa_is_user_port(ds, i)) ds 710 drivers/net/dsa/qca8k.c if (dsa_is_cpu_port(ds, i)) { ds 712 drivers/net/dsa/qca8k.c QCA8K_PORT_LOOKUP_MEMBER, dsa_user_ports(ds)); ds 716 drivers/net/dsa/qca8k.c if (dsa_is_user_port(ds, i)) { ds 745 drivers/net/dsa/qca8k.c qca8k_adjust_link(struct dsa_switch *ds, int port, struct phy_device *phy) ds 747 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = ds->priv; ds 776 drivers/net/dsa/qca8k.c if (dsa_is_cpu_port(ds, port)) ds 786 drivers/net/dsa/qca8k.c qca8k_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data) ds 799 drivers/net/dsa/qca8k.c qca8k_get_ethtool_stats(struct dsa_switch *ds, int port, ds 802 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 820 drivers/net/dsa/qca8k.c qca8k_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 829 drivers/net/dsa/qca8k.c qca8k_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *eee) ds 831 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 848 drivers/net/dsa/qca8k.c qca8k_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_eee *e) ds 855 drivers/net/dsa/qca8k.c qca8k_port_stp_state_set(struct dsa_switch *ds, int port, u8 state) ds 857 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 884 drivers/net/dsa/qca8k.c qca8k_port_bridge_join(struct dsa_switch *ds, int port, struct net_device *br) ds 886 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 891 drivers/net/dsa/qca8k.c if (dsa_to_port(ds, i)->bridge_dev != br) ds 910 drivers/net/dsa/qca8k.c qca8k_port_bridge_leave(struct dsa_switch *ds, int port, struct net_device *br) ds 912 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 916 drivers/net/dsa/qca8k.c if (dsa_to_port(ds, i)->bridge_dev != br) ds 934 drivers/net/dsa/qca8k.c qca8k_port_enable(struct dsa_switch *ds, int port, ds 937 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 939 drivers/net/dsa/qca8k.c if (!dsa_is_user_port(ds, port)) ds 951 drivers/net/dsa/qca8k.c qca8k_port_disable(struct dsa_switch *ds, int port) ds 953 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 972 drivers/net/dsa/qca8k.c qca8k_port_fdb_add(struct dsa_switch *ds, int port, ds 975 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 982 drivers/net/dsa/qca8k.c qca8k_port_fdb_del(struct dsa_switch *ds, int port, ds 985 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 995 drivers/net/dsa/qca8k.c qca8k_port_fdb_dump(struct dsa_switch *ds, int port, ds 998 drivers/net/dsa/qca8k.c struct qca8k_priv *priv = (struct qca8k_priv *)ds->priv; ds 1019 drivers/net/dsa/qca8k.c qca8k_get_tag_protocol(struct dsa_switch *ds, int port) ds 1080 drivers/net/dsa/qca8k.c priv->ds = dsa_switch_alloc(&mdiodev->dev, QCA8K_NUM_PORTS); ds 1081 drivers/net/dsa/qca8k.c if (!priv->ds) ds 1084 drivers/net/dsa/qca8k.c priv->ds->priv = priv; ds 1086 drivers/net/dsa/qca8k.c priv->ds->ops = &priv->ops; ds 1090 drivers/net/dsa/qca8k.c return dsa_register_switch(priv->ds); ds 1102 drivers/net/dsa/qca8k.c dsa_unregister_switch(priv->ds); ds 1125 drivers/net/dsa/qca8k.c return dsa_switch_suspend(priv->ds); ds 1134 drivers/net/dsa/qca8k.c return dsa_switch_resume(priv->ds); ds 174 drivers/net/dsa/qca8k.h struct dsa_switch *ds; ds 366 drivers/net/dsa/realtek-smi-core.c smi->ds->index); ds 369 drivers/net/dsa/realtek-smi-core.c smi->ds->slave_mii_bus = smi->slave_mii_bus; ds 447 drivers/net/dsa/realtek-smi-core.c smi->ds = dsa_switch_alloc(dev, smi->num_ports); ds 448 drivers/net/dsa/realtek-smi-core.c if (!smi->ds) ds 450 drivers/net/dsa/realtek-smi-core.c smi->ds->priv = smi; ds 452 drivers/net/dsa/realtek-smi-core.c smi->ds->ops = var->ds_ops; ds 453 drivers/net/dsa/realtek-smi-core.c ret = dsa_register_switch(smi->ds); ds 465 drivers/net/dsa/realtek-smi-core.c dsa_unregister_switch(smi->ds); ds 55 drivers/net/dsa/realtek-smi-core.h struct dsa_switch *ds; ds 129 drivers/net/dsa/realtek-smi-core.h int rtl8366_vlan_filtering(struct dsa_switch *ds, int port, ds 131 drivers/net/dsa/realtek-smi-core.h int rtl8366_vlan_prepare(struct dsa_switch *ds, int port, ds 133 drivers/net/dsa/realtek-smi-core.h void rtl8366_vlan_add(struct dsa_switch *ds, int port, ds 135 drivers/net/dsa/realtek-smi-core.h int rtl8366_vlan_del(struct dsa_switch *ds, int port, ds 137 drivers/net/dsa/realtek-smi-core.h void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset, ds 139 drivers/net/dsa/realtek-smi-core.h int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset); ds 140 drivers/net/dsa/realtek-smi-core.h void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data); ds 304 drivers/net/dsa/rtl8366.c int rtl8366_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering) ds 306 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; ds 338 drivers/net/dsa/rtl8366.c int rtl8366_vlan_prepare(struct dsa_switch *ds, int port, ds 341 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; ds 364 drivers/net/dsa/rtl8366.c void rtl8366_vlan_add(struct dsa_switch *ds, int port, ds 369 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; ds 384 drivers/net/dsa/rtl8366.c if (dsa_is_dsa_port(ds, port) || dsa_is_cpu_port(ds, port)) ds 420 drivers/net/dsa/rtl8366.c int rtl8366_vlan_del(struct dsa_switch *ds, int port, ds 423 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; ds 465 drivers/net/dsa/rtl8366.c void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset, ds 468 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; ds 483 drivers/net/dsa/rtl8366.c int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 485 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; ds 497 drivers/net/dsa/rtl8366.c void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) ds 499 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; ds 711 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_setup(struct dsa_switch *ds) ds 713 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = ds->priv; ds 966 drivers/net/dsa/rtl8366rb.c static enum dsa_tag_protocol rtl8366_get_tag_protocol(struct dsa_switch *ds, ds 986 drivers/net/dsa/rtl8366rb.c static void rtl8366rb_adjust_link(struct dsa_switch *ds, int port, ds 989 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = ds->priv; ds 1063 drivers/net/dsa/rtl8366rb.c rtl8366rb_port_enable(struct dsa_switch *ds, int port, ds 1066 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = ds->priv; ds 1080 drivers/net/dsa/rtl8366rb.c rtl8366rb_port_disable(struct dsa_switch *ds, int port) ds 1082 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = ds->priv; ds 78 drivers/net/dsa/sja1105/sja1105.h int (*fdb_add_cmd)(struct dsa_switch *ds, int port, ds 80 drivers/net/dsa/sja1105/sja1105.h int (*fdb_del_cmd)(struct dsa_switch *ds, int port, ds 92 drivers/net/dsa/sja1105/sja1105.h struct dsa_switch *ds; ds 175 drivers/net/dsa/sja1105/sja1105.h void sja1105_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data); ds 176 drivers/net/dsa/sja1105/sja1105.h void sja1105_get_strings(struct dsa_switch *ds, int port, ds 178 drivers/net/dsa/sja1105/sja1105.h int sja1105_get_sset_count(struct dsa_switch *ds, int port, int sset); ds 194 drivers/net/dsa/sja1105/sja1105.h int sja1105et_fdb_add(struct dsa_switch *ds, int port, ds 196 drivers/net/dsa/sja1105/sja1105.h int sja1105et_fdb_del(struct dsa_switch *ds, int port, ds 198 drivers/net/dsa/sja1105/sja1105.h int sja1105pqrs_fdb_add(struct dsa_switch *ds, int port, ds 200 drivers/net/dsa/sja1105/sja1105.h int sja1105pqrs_fdb_del(struct dsa_switch *ds, int port, ds 105 drivers/net/dsa/sja1105/sja1105_clocking.c struct device *dev = priv->ds->dev; ds 253 drivers/net/dsa/sja1105/sja1105_clocking.c struct device *dev = priv->ds->dev; ds 470 drivers/net/dsa/sja1105/sja1105_clocking.c struct device *dev = priv->ds->dev; ds 578 drivers/net/dsa/sja1105/sja1105_clocking.c struct device *dev = priv->ds->dev; ds 621 drivers/net/dsa/sja1105/sja1105_clocking.c struct device *dev = priv->ds->dev; ds 652 drivers/net/dsa/sja1105/sja1105_clocking.c struct device *dev = priv->ds->dev; ds 313 drivers/net/dsa/sja1105/sja1105_ethtool.c void sja1105_get_ethtool_stats(struct dsa_switch *ds, int port, u64 *data) ds 315 drivers/net/dsa/sja1105/sja1105_ethtool.c struct sja1105_private *priv = ds->priv; ds 323 drivers/net/dsa/sja1105/sja1105_ethtool.c dev_err(ds->dev, "Failed to read port %d counters: %d\n", ds 381 drivers/net/dsa/sja1105/sja1105_ethtool.c void sja1105_get_strings(struct dsa_switch *ds, int port, ds 384 drivers/net/dsa/sja1105/sja1105_ethtool.c struct sja1105_private *priv = ds->priv; ds 406 drivers/net/dsa/sja1105/sja1105_ethtool.c int sja1105_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 409 drivers/net/dsa/sja1105/sja1105_ethtool.c struct sja1105_private *priv = ds->priv; ds 125 drivers/net/dsa/sja1105/sja1105_main.c if (i == dsa_upstream_port(priv->ds, i)) { ds 330 drivers/net/dsa/sja1105/sja1105_main.c unsigned int upstream = dsa_upstream_port(priv->ds, i); ds 387 drivers/net/dsa/sja1105/sja1105_main.c .switchid = priv->ds->index, ds 405 drivers/net/dsa/sja1105/sja1105_main.c .host_port = dsa_upstream_port(priv->ds, 0), ds 407 drivers/net/dsa/sja1105/sja1105_main.c .mirr_port = dsa_upstream_port(priv->ds, 0), ds 432 drivers/net/dsa/sja1105/sja1105_main.c if (dsa_is_dsa_port(priv->ds, i)) ds 434 drivers/net/dsa/sja1105/sja1105_main.c else if (dsa_is_user_port(priv->ds, i)) ds 708 drivers/net/dsa/sja1105/sja1105_main.c struct device *dev = priv->ds->dev; ds 806 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_mac_config(struct dsa_switch *ds, int port, ds 810 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 816 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "In-band AN not supported!\n"); ds 823 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_mac_link_down(struct dsa_switch *ds, int port, ds 827 drivers/net/dsa/sja1105/sja1105_main.c sja1105_inhibit_tx(ds->priv, BIT(port), true); ds 830 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_mac_link_up(struct dsa_switch *ds, int port, ds 835 drivers/net/dsa/sja1105/sja1105_main.c sja1105_inhibit_tx(ds->priv, BIT(port), false); ds 838 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_phylink_validate(struct dsa_switch *ds, int port, ds 847 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 991 drivers/net/dsa/sja1105/sja1105_main.c int sja1105et_fdb_add(struct dsa_switch *ds, int port, ds 995 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 996 drivers/net/dsa/sja1105/sja1105_main.c struct device *dev = ds->dev; ds 1051 drivers/net/dsa/sja1105/sja1105_main.c int sja1105et_fdb_del(struct dsa_switch *ds, int port, ds 1055 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1086 drivers/net/dsa/sja1105/sja1105_main.c int sja1105pqrs_fdb_add(struct dsa_switch *ds, int port, ds 1090 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1098 drivers/net/dsa/sja1105/sja1105_main.c if (dsa_port_is_vlan_filtering(&ds->ports[port])) { ds 1133 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "FDB is full, cannot add entry.\n"); ds 1149 drivers/net/dsa/sja1105/sja1105_main.c int sja1105pqrs_fdb_del(struct dsa_switch *ds, int port, ds 1153 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1161 drivers/net/dsa/sja1105/sja1105_main.c if (dsa_port_is_vlan_filtering(&ds->ports[port])) { ds 1193 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_fdb_add(struct dsa_switch *ds, int port, ds 1196 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1207 drivers/net/dsa/sja1105/sja1105_main.c if (!dsa_port_is_vlan_filtering(&ds->ports[port])) ds 1210 drivers/net/dsa/sja1105/sja1105_main.c return priv->info->fdb_add_cmd(ds, port, addr, vid); ds 1213 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_fdb_del(struct dsa_switch *ds, int port, ds 1216 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1218 drivers/net/dsa/sja1105/sja1105_main.c if (!dsa_port_is_vlan_filtering(&ds->ports[port])) ds 1221 drivers/net/dsa/sja1105/sja1105_main.c return priv->info->fdb_del_cmd(ds, port, addr, vid); ds 1224 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_fdb_dump(struct dsa_switch *ds, int port, ds 1227 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1228 drivers/net/dsa/sja1105/sja1105_main.c struct device *dev = ds->dev; ds 1257 drivers/net/dsa/sja1105/sja1105_main.c if (!dsa_port_is_vlan_filtering(&ds->ports[port])) ds 1265 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_mdb_prepare(struct dsa_switch *ds, int port, ds 1271 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_mdb_add(struct dsa_switch *ds, int port, ds 1274 drivers/net/dsa/sja1105/sja1105_main.c sja1105_fdb_add(ds, port, mdb->addr, mdb->vid); ds 1277 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_mdb_del(struct dsa_switch *ds, int port, ds 1280 drivers/net/dsa/sja1105/sja1105_main.c return sja1105_fdb_del(ds, port, mdb->addr, mdb->vid); ds 1283 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_bridge_member(struct dsa_switch *ds, int port, ds 1287 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1296 drivers/net/dsa/sja1105/sja1105_main.c if (!dsa_is_user_port(ds, i)) ds 1309 drivers/net/dsa/sja1105/sja1105_main.c if (dsa_to_port(ds, i)->bridge_dev != br) ds 1324 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_bridge_stp_state_set(struct dsa_switch *ds, int port, ds 1327 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1360 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "invalid STP state: %d\n", state); ds 1368 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_bridge_join(struct dsa_switch *ds, int port, ds 1371 drivers/net/dsa/sja1105/sja1105_main.c return sja1105_bridge_member(ds, port, br, true); ds 1374 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_bridge_leave(struct dsa_switch *ds, int port, ds 1377 drivers/net/dsa/sja1105/sja1105_main.c sja1105_bridge_member(ds, port, br, false); ds 1501 drivers/net/dsa/sja1105/sja1105_main.c dev_dbg(priv->ds->dev, ds 1518 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_setup_8021q_tagging(struct dsa_switch *ds, bool enabled) ds 1523 drivers/net/dsa/sja1105/sja1105_main.c rc = dsa_port_setup_8021q_tagging(ds, i, enabled); ds 1525 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to setup VLAN tagging for port %d: %d\n", ds 1530 drivers/net/dsa/sja1105/sja1105_main.c dev_info(ds->dev, "%s switch tagging\n", ds 1536 drivers/net/dsa/sja1105/sja1105_main.c sja1105_get_tag_protocol(struct dsa_switch *ds, int port) ds 1542 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_vlan_prepare(struct dsa_switch *ds, int port, ds 1552 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled) ds 1556 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1607 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to change VLAN Ethertype\n"); ds 1613 drivers/net/dsa/sja1105/sja1105_main.c return sja1105_setup_8021q_tagging(ds, !enabled); ds 1616 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_vlan_add(struct dsa_switch *ds, int port, ds 1619 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1627 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to add VLAN %d to port %d: %d\n", ds 1632 drivers/net/dsa/sja1105/sja1105_main.c rc = sja1105_pvid_apply(ds->priv, port, vid); ds 1634 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to set pvid %d on port %d: %d\n", ds 1642 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_vlan_del(struct dsa_switch *ds, int port, ds 1645 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1653 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to remove VLAN %d from port %d: %d\n", ds 1673 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_setup(struct dsa_switch *ds) ds 1676 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1681 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to parse DT: %d\n", rc); ds 1690 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "RGMII delay not supported\n"); ds 1696 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to register PTP clock: %d\n", rc); ds 1702 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to load static config: %d\n", rc); ds 1708 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "Failed to configure MII clocking: %d\n", rc); ds 1719 drivers/net/dsa/sja1105/sja1105_main.c ds->vlan_filtering_is_global = true; ds 1722 drivers/net/dsa/sja1105/sja1105_main.c ds->num_tx_queues = SJA1105_NUM_TC; ds 1728 drivers/net/dsa/sja1105/sja1105_main.c return sja1105_setup_8021q_tagging(ds, true); ds 1731 drivers/net/dsa/sja1105/sja1105_main.c static void sja1105_teardown(struct dsa_switch *ds) ds 1733 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1735 drivers/net/dsa/sja1105/sja1105_main.c sja1105_tas_teardown(ds); ds 1742 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_port_enable(struct dsa_switch *ds, int port, ds 1747 drivers/net/dsa/sja1105/sja1105_main.c if (!dsa_is_user_port(ds, port)) ds 1750 drivers/net/dsa/sja1105/sja1105_main.c slave = ds->ports[port].slave; ds 1757 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_mgmt_xmit(struct dsa_switch *ds, int port, int slot, ds 1761 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1782 drivers/net/dsa/sja1105/sja1105_main.c dsa_enqueue_skb(skb, ds->ports[port].slave); ds 1789 drivers/net/dsa/sja1105/sja1105_main.c dev_err_ratelimited(priv->ds->dev, ds 1809 drivers/net/dsa/sja1105/sja1105_main.c dev_err_ratelimited(priv->ds->dev, "xmit timed out\n"); ds 1819 drivers/net/dsa/sja1105/sja1105_main.c static netdev_tx_t sja1105_port_deferred_xmit(struct dsa_switch *ds, int port, ds 1822 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1849 drivers/net/dsa/sja1105/sja1105_main.c sja1105_mgmt_xmit(ds, port, slot, skb, !!clone); ds 1862 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, "xmit: timed out polling for tstamp\n"); ds 1883 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_set_ageing_time(struct dsa_switch *ds, ds 1887 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1932 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_hwtstamp_set(struct dsa_switch *ds, int port, ds 1935 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 1968 drivers/net/dsa/sja1105/sja1105_main.c dev_err(ds->dev, ds 1981 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_hwtstamp_get(struct dsa_switch *ds, int port, ds 1984 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 2035 drivers/net/dsa/sja1105/sja1105_main.c static bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port, ds 2038 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 2056 drivers/net/dsa/sja1105/sja1105_main.c static bool sja1105_port_txtstamp(struct dsa_switch *ds, int port, ds 2059 drivers/net/dsa/sja1105/sja1105_main.c struct sja1105_private *priv = ds->priv; ds 2068 drivers/net/dsa/sja1105/sja1105_main.c static int sja1105_port_setup_tc(struct dsa_switch *ds, int port, ds 2074 drivers/net/dsa/sja1105/sja1105_main.c return sja1105_setup_tc_taprio(ds, port, type_data); ds 2156 drivers/net/dsa/sja1105/sja1105_main.c struct dsa_switch *ds; ds 2200 drivers/net/dsa/sja1105/sja1105_main.c ds = dsa_switch_alloc(dev, SJA1105_NUM_PORTS); ds 2201 drivers/net/dsa/sja1105/sja1105_main.c if (!ds) ds 2204 drivers/net/dsa/sja1105/sja1105_main.c ds->ops = &sja1105_switch_ops; ds 2205 drivers/net/dsa/sja1105/sja1105_main.c ds->priv = priv; ds 2206 drivers/net/dsa/sja1105/sja1105_main.c priv->ds = ds; ds 2217 drivers/net/dsa/sja1105/sja1105_main.c ds->ports[i].priv = sp; ds 2218 drivers/net/dsa/sja1105/sja1105_main.c sp->dp = &ds->ports[i]; ds 2223 drivers/net/dsa/sja1105/sja1105_main.c sja1105_tas_setup(ds); ds 2225 drivers/net/dsa/sja1105/sja1105_main.c return dsa_register_switch(priv->ds); ds 2232 drivers/net/dsa/sja1105/sja1105_main.c dsa_unregister_switch(priv->ds); ds 61 drivers/net/dsa/sja1105/sja1105_ptp.c int sja1105_get_ts_info(struct dsa_switch *ds, int port, ds 64 drivers/net/dsa/sja1105/sja1105_ptp.c struct sja1105_private *priv = ds->priv; ds 221 drivers/net/dsa/sja1105/sja1105_ptp.c struct dsa_switch *ds = priv->ds; ds 228 drivers/net/dsa/sja1105/sja1105_ptp.c dev_dbg(ds->dev, "Resetting PTP clock\n"); ds 333 drivers/net/dsa/sja1105/sja1105_ptp.c dev_err_ratelimited(priv->ds->dev, ds 362 drivers/net/dsa/sja1105/sja1105_ptp.c struct dsa_switch *ds = priv->ds; ds 374 drivers/net/dsa/sja1105/sja1105_ptp.c priv->clock = ptp_clock_register(&priv->ptp_caps, ds->dev); ds 19 drivers/net/dsa/sja1105/sja1105_ptp.h int sja1105_get_ts_info(struct dsa_switch *ds, int port, ds 224 drivers/net/dsa/sja1105/sja1105_spi.c struct device *dev = priv->ds->dev; ds 253 drivers/net/dsa/sja1105/sja1105_spi.c struct device *dev = priv->ds->dev; ds 321 drivers/net/dsa/sja1105/sja1105_tas.c dev_warn(priv->ds->dev, ds 334 drivers/net/dsa/sja1105/sja1105_tas.c int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, ds 337 drivers/net/dsa/sja1105/sja1105_tas.c struct sja1105_private *priv = ds->priv; ds 370 drivers/net/dsa/sja1105/sja1105_tas.c dev_err(ds->dev, "A base time of zero is not hardware-allowed\n"); ds 382 drivers/net/dsa/sja1105/sja1105_tas.c dev_err(priv->ds->dev, ds 406 drivers/net/dsa/sja1105/sja1105_tas.c void sja1105_tas_setup(struct dsa_switch *ds) ds 410 drivers/net/dsa/sja1105/sja1105_tas.c void sja1105_tas_teardown(struct dsa_switch *ds) ds 412 drivers/net/dsa/sja1105/sja1105_tas.c struct sja1105_private *priv = ds->priv; ds 15 drivers/net/dsa/sja1105/sja1105_tas.h int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, ds 18 drivers/net/dsa/sja1105/sja1105_tas.h void sja1105_tas_setup(struct dsa_switch *ds); ds 20 drivers/net/dsa/sja1105/sja1105_tas.h void sja1105_tas_teardown(struct dsa_switch *ds); ds 29 drivers/net/dsa/sja1105/sja1105_tas.h static inline int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, ds 35 drivers/net/dsa/sja1105/sja1105_tas.h static inline void sja1105_tas_setup(struct dsa_switch *ds) { } ds 37 drivers/net/dsa/sja1105/sja1105_tas.h static inline void sja1105_tas_teardown(struct dsa_switch *ds) { } ds 487 drivers/net/dsa/vitesse-vsc73xx-core.c static int vsc73xx_phy_read(struct dsa_switch *ds, int phy, int regnum) ds 489 drivers/net/dsa/vitesse-vsc73xx-core.c struct vsc73xx *vsc = ds->priv; ds 516 drivers/net/dsa/vitesse-vsc73xx-core.c static int vsc73xx_phy_write(struct dsa_switch *ds, int phy, int regnum, ds 519 drivers/net/dsa/vitesse-vsc73xx-core.c struct vsc73xx *vsc = ds->priv; ds 544 drivers/net/dsa/vitesse-vsc73xx-core.c static enum dsa_tag_protocol vsc73xx_get_tag_protocol(struct dsa_switch *ds, ds 559 drivers/net/dsa/vitesse-vsc73xx-core.c static int vsc73xx_setup(struct dsa_switch *ds) ds 561 drivers/net/dsa/vitesse-vsc73xx-core.c struct vsc73xx *vsc = ds->priv; ds 766 drivers/net/dsa/vitesse-vsc73xx-core.c static void vsc73xx_adjust_link(struct dsa_switch *ds, int port, ds 769 drivers/net/dsa/vitesse-vsc73xx-core.c struct vsc73xx *vsc = ds->priv; ds 887 drivers/net/dsa/vitesse-vsc73xx-core.c static int vsc73xx_port_enable(struct dsa_switch *ds, int port, ds 890 drivers/net/dsa/vitesse-vsc73xx-core.c struct vsc73xx *vsc = ds->priv; ds 898 drivers/net/dsa/vitesse-vsc73xx-core.c static void vsc73xx_port_disable(struct dsa_switch *ds, int port) ds 900 drivers/net/dsa/vitesse-vsc73xx-core.c struct vsc73xx *vsc = ds->priv; ds 935 drivers/net/dsa/vitesse-vsc73xx-core.c static void vsc73xx_get_strings(struct dsa_switch *ds, int port, u32 stringset, ds 939 drivers/net/dsa/vitesse-vsc73xx-core.c struct vsc73xx *vsc = ds->priv; ds 994 drivers/net/dsa/vitesse-vsc73xx-core.c static int vsc73xx_get_sset_count(struct dsa_switch *ds, int port, int sset) ds 1003 drivers/net/dsa/vitesse-vsc73xx-core.c static void vsc73xx_get_ethtool_stats(struct dsa_switch *ds, int port, ds 1006 drivers/net/dsa/vitesse-vsc73xx-core.c struct vsc73xx *vsc = ds->priv; ds 1181 drivers/net/dsa/vitesse-vsc73xx-core.c vsc->ds = dsa_switch_alloc(dev, 8); ds 1182 drivers/net/dsa/vitesse-vsc73xx-core.c if (!vsc->ds) ds 1184 drivers/net/dsa/vitesse-vsc73xx-core.c vsc->ds->priv = vsc; ds 1186 drivers/net/dsa/vitesse-vsc73xx-core.c vsc->ds->ops = &vsc73xx_ds_ops; ds 1187 drivers/net/dsa/vitesse-vsc73xx-core.c ret = dsa_register_switch(vsc->ds); ds 1195 drivers/net/dsa/vitesse-vsc73xx-core.c dsa_unregister_switch(vsc->ds); ds 1205 drivers/net/dsa/vitesse-vsc73xx-core.c dsa_unregister_switch(vsc->ds); ds 12 drivers/net/dsa/vitesse-vsc73xx.h struct dsa_switch *ds; ds 1026 drivers/net/ethernet/mellanox/mlx5/core/cmd.c s64 ds; ds 1063 drivers/net/ethernet/mellanox/mlx5/core/cmd.c ds = ent->ts2 - ent->ts1; ds 1068 drivers/net/ethernet/mellanox/mlx5/core/cmd.c stats->sum += ds; ds 1074 drivers/net/ethernet/mellanox/mlx5/core/cmd.c mlx5_command_str(op), ds); ds 1473 drivers/net/ethernet/mellanox/mlx5/core/cmd.c s64 ds; ds 1527 drivers/net/ethernet/mellanox/mlx5/core/cmd.c ds = ent->ts2 - ent->ts1; ds 1531 drivers/net/ethernet/mellanox/mlx5/core/cmd.c stats->sum += ds; ds 440 drivers/net/ethernet/mscc/ocelot_ace.c struct ocelot_vcap_u8 proto, ds; ds 449 drivers/net/ethernet/mscc/ocelot_ace.c ds = ipv4->ds; ds 470 drivers/net/ethernet/mscc/ocelot_ace.c ds = ipv6->ds; ds 502 drivers/net/ethernet/mscc/ocelot_ace.c VCAP_KEY_BYTES_SET(L3_TOS, ds.value, ds.mask); ds 139 drivers/net/ethernet/mscc/ocelot_ace.h struct ocelot_vcap_u8 ds; ds 161 drivers/net/ethernet/mscc/ocelot_ace.h struct ocelot_vcap_u8 ds; ds 868 drivers/net/ethernet/renesas/ravb.h __le16 ds; /* Descriptor size */ ds 353 drivers/net/fddi/skfp/hwmtm.c struct s_smt_fp_txd volatile *ds ; ds 360 drivers/net/fddi/skfp/hwmtm.c ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + ds 364 drivers/net/fddi/skfp/hwmtm.c (void)init_descr_ring(smc,(union s_fp_descr volatile *)ds, ds 366 drivers/net/fddi/skfp/hwmtm.c phys = le32_to_cpu(ds->txd_ntdadr) ; ds 367 drivers/net/fddi/skfp/hwmtm.c ds++ ; ds 368 drivers/net/fddi/skfp/hwmtm.c queue->tx_curr_put = queue->tx_curr_get = ds ; ds 369 drivers/net/fddi/skfp/hwmtm.c ds-- ; ds 374 drivers/net/fddi/skfp/hwmtm.c ds = (struct s_smt_fp_txd volatile *) ((char *)ds + ds 378 drivers/net/fddi/skfp/hwmtm.c (void)init_descr_ring(smc,(union s_fp_descr volatile *)ds, ds 380 drivers/net/fddi/skfp/hwmtm.c phys = le32_to_cpu(ds->txd_ntdadr) ; ds 381 drivers/net/fddi/skfp/hwmtm.c ds++ ; ds 382 drivers/net/fddi/skfp/hwmtm.c queue->tx_curr_put = queue->tx_curr_get = ds ; ds 390 drivers/net/fddi/skfp/hwmtm.c struct s_smt_fp_rxd volatile *ds ; ds 397 drivers/net/fddi/skfp/hwmtm.c ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; ds 400 drivers/net/fddi/skfp/hwmtm.c (void)init_descr_ring(smc,(union s_fp_descr volatile *)ds, ds 402 drivers/net/fddi/skfp/hwmtm.c phys = le32_to_cpu(ds->rxd_nrdadr) ; ds 403 drivers/net/fddi/skfp/hwmtm.c ds++ ; ds 404 drivers/net/fddi/skfp/hwmtm.c queue->rx_curr_put = queue->rx_curr_get = ds ; ds 632 drivers/net/wireless/ath/ath5k/base.c struct ath5k_desc *ds; ds 657 drivers/net/wireless/ath/ath5k/base.c ds = bf->desc; ds 658 drivers/net/wireless/ath/ath5k/base.c ds->ds_link = bf->daddr; /* link to self */ ds 659 drivers/net/wireless/ath/ath5k/base.c ds->ds_data = bf->skbaddr; ds 660 drivers/net/wireless/ath/ath5k/base.c ret = ath5k_hw_setup_rx_desc(ah, ds, ah->common.rx_bufsize, 0); ds 668 drivers/net/wireless/ath/ath5k/base.c ah->rxlink = &ds->ds_link; ds 736 drivers/net/wireless/ath/ath5k/base.c struct ath5k_desc *ds = bf->desc; ds 796 drivers/net/wireless/ath/ath5k/base.c ret = ah->ah_setup_tx_desc(ah, ds, pktlen, ds 821 drivers/net/wireless/ath/ath5k/base.c ath5k_hw_setup_mrr_tx_desc(ah, ds, ds 827 drivers/net/wireless/ath/ath5k/base.c ds->ds_link = 0; ds 828 drivers/net/wireless/ath/ath5k/base.c ds->ds_data = bf->skbaddr; ds 838 drivers/net/wireless/ath/ath5k/base.c txq->link = &ds->ds_link; ds 855 drivers/net/wireless/ath/ath5k/base.c struct ath5k_desc *ds; ds 872 drivers/net/wireless/ath/ath5k/base.c ds = ah->desc; ds 875 drivers/net/wireless/ath/ath5k/base.c ds, ah->desc_len, (unsigned long long)ah->desc_daddr); ds 887 drivers/net/wireless/ath/ath5k/base.c for (i = 0; i < ATH_RXBUF; i++, bf++, ds++, da += sizeof(*ds)) { ds 888 drivers/net/wireless/ath/ath5k/base.c bf->desc = ds; ds 895 drivers/net/wireless/ath/ath5k/base.c for (i = 0; i < ATH_TXBUF; i++, bf++, ds++, da += sizeof(*ds)) { ds 896 drivers/net/wireless/ath/ath5k/base.c bf->desc = ds; ds 903 drivers/net/wireless/ath/ath5k/base.c for (i = 0; i < ATH_BCBUF; i++, bf++, ds++, da += sizeof(*ds)) { ds 904 drivers/net/wireless/ath/ath5k/base.c bf->desc = ds; ds 1547 drivers/net/wireless/ath/ath5k/base.c struct ath5k_desc *ds; ds 1559 drivers/net/wireless/ath/ath5k/base.c ds = bf->desc; ds 1565 drivers/net/wireless/ath/ath5k/base.c ret = ah->ah_proc_rx_desc(ah, ds, &rs); ds 1736 drivers/net/wireless/ath/ath5k/base.c struct ath5k_desc *ds; ds 1747 drivers/net/wireless/ath/ath5k/base.c ds = bf->desc; ds 1749 drivers/net/wireless/ath/ath5k/base.c ret = ah->ah_proc_tx_desc(ah, ds, &ts); ds 1813 drivers/net/wireless/ath/ath5k/base.c struct ath5k_desc *ds; ds 1832 drivers/net/wireless/ath/ath5k/base.c ds = bf->desc; ds 1837 drivers/net/wireless/ath/ath5k/base.c ds->ds_link = bf->daddr; /* self-linked */ ds 1840 drivers/net/wireless/ath/ath5k/base.c ds->ds_link = 0; ds 1867 drivers/net/wireless/ath/ath5k/base.c ds->ds_data = bf->skbaddr; ds 1868 drivers/net/wireless/ath/ath5k/base.c ret = ah->ah_setup_tx_desc(ah, ds, skb->len, ds 1070 drivers/net/wireless/ath/ath5k/debug.c struct ath5k_desc *ds = bf->desc; ds 1071 drivers/net/wireless/ath/ath5k/debug.c struct ath5k_hw_all_rx_desc *rd = &ds->ud.ds_rx; ds 1074 drivers/net/wireless/ath/ath5k/debug.c ds, (unsigned long long)bf->daddr, ds 1075 drivers/net/wireless/ath/ath5k/debug.c ds->ds_link, ds->ds_data, ds 1084 drivers/net/wireless/ath/ath5k/debug.c struct ath5k_desc *ds; ds 1097 drivers/net/wireless/ath/ath5k/debug.c ds = bf->desc; ds 1098 drivers/net/wireless/ath/ath5k/debug.c status = ah->ah_proc_rx_desc(ah, ds, &rs); ds 1108 drivers/net/wireless/ath/ath5k/debug.c struct ath5k_desc *ds = bf->desc; ds 1109 drivers/net/wireless/ath/ath5k/debug.c struct ath5k_hw_5212_tx_desc *td = &ds->ud.ds_tx5212; ds 1119 drivers/net/wireless/ath/ath5k/debug.c "%08x %c\n", ds, (unsigned long long)bf->daddr, ds->ds_link, ds 1120 drivers/net/wireless/ath/ath5k/debug.c ds->ds_data, td->tx_ctl.tx_control_0, td->tx_ctl.tx_control_1, ds 27 drivers/net/wireless/ath/ath9k/ar9002_mac.c static void ar9002_hw_set_desc_link(void *ds, u32 ds_link) ds 29 drivers/net/wireless/ath/ath9k/ar9002_mac.c ((struct ath_desc*) ds)->ds_link = ds_link; ds 212 drivers/net/wireless/ath/ath9k/ar9002_mac.c ar9002_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i) ds 214 drivers/net/wireless/ath/ath9k/ar9002_mac.c struct ar5416_desc *ads = AR5416DESC(ds); ds 315 drivers/net/wireless/ath/ath9k/ar9002_mac.c static int ar9002_hw_proc_txdesc(struct ath_hw *ah, void *ds, ds 318 drivers/net/wireless/ath/ath9k/ar9002_mac.c struct ar5416_desc *ads = AR5416DESC(ds); ds 387 drivers/net/wireless/ath/ath9k/ar9002_mac.c static int ar9002_hw_get_duration(struct ath_hw *ah, const void *ds, int index) ds 389 drivers/net/wireless/ath/ath9k/ar9002_mac.c struct ar5416_desc *ads = AR5416DESC(ds); ds 405 drivers/net/wireless/ath/ath9k/ar9002_mac.c void ath9k_hw_setuprxdesc(struct ath_hw *ah, struct ath_desc *ds, ds 408 drivers/net/wireless/ath/ath9k/ar9002_mac.c struct ar5416_desc *ads = AR5416DESC(ds); ds 27 drivers/net/wireless/ath/ath9k/ar9003_mac.c ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i) ds 29 drivers/net/wireless/ath/ath9k/ar9003_mac.c struct ar9003_txc *ads = ds; ds 173 drivers/net/wireless/ath/ath9k/ar9003_mac.c static void ar9003_hw_set_desc_link(void *ds, u32 ds_link) ds 175 drivers/net/wireless/ath/ath9k/ar9003_mac.c struct ar9003_txc *ads = ds; ds 354 drivers/net/wireless/ath/ath9k/ar9003_mac.c static int ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds, ds 434 drivers/net/wireless/ath/ath9k/ar9003_mac.c static int ar9003_hw_get_duration(struct ath_hw *ah, const void *ds, int index) ds 436 drivers/net/wireless/ath/ath9k/ar9003_mac.c const struct ar9003_txc *adc = ds; ds 38 drivers/net/wireless/ath/ath9k/hw-ops.h static inline void ath9k_hw_set_desc_link(struct ath_hw *ah, void *ds, ds 41 drivers/net/wireless/ath/ath9k/hw-ops.h ath9k_hw_ops(ah)->set_desc_link(ds, link); ds 57 drivers/net/wireless/ath/ath9k/hw-ops.h static inline void ath9k_hw_set_txdesc(struct ath_hw *ah, void *ds, ds 60 drivers/net/wireless/ath/ath9k/hw-ops.h return ath9k_hw_ops(ah)->set_txdesc(ah, ds, i); ds 63 drivers/net/wireless/ath/ath9k/hw-ops.h static inline int ath9k_hw_txprocdesc(struct ath_hw *ah, void *ds, ds 66 drivers/net/wireless/ath/ath9k/hw-ops.h return ath9k_hw_ops(ah)->proc_txdesc(ah, ds, ts); ds 69 drivers/net/wireless/ath/ath9k/hw-ops.h static inline int ath9k_hw_get_duration(struct ath_hw *ah, const void *ds, ds 72 drivers/net/wireless/ath/ath9k/hw-ops.h return ath9k_hw_ops(ah)->get_duration(ah, ds, index); ds 726 drivers/net/wireless/ath/ath9k/hw.h void (*set_desc_link)(void *ds, u32 link); ds 731 drivers/net/wireless/ath/ath9k/hw.h void (*set_txdesc)(struct ath_hw *ah, void *ds, ds 733 drivers/net/wireless/ath/ath9k/hw.h int (*proc_txdesc)(struct ath_hw *ah, void *ds, ds 735 drivers/net/wireless/ath/ath9k/hw.h int (*get_duration)(struct ath_hw *ah, const void *ds, int index); ds 288 drivers/net/wireless/ath/ath9k/init.c u8 *ds; ds 334 drivers/net/wireless/ath/ath9k/init.c ds = dd->dd_desc; ds 336 drivers/net/wireless/ath/ath9k/init.c name, ds, (u32) dd->dd_desc_len, ds 348 drivers/net/wireless/ath/ath9k/init.c for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { ds 349 drivers/net/wireless/ath/ath9k/init.c bf->bf_desc = ds; ds 350 drivers/net/wireless/ath/ath9k/init.c bf->bf_daddr = DS2PHYS(dd, ds); ds 364 drivers/net/wireless/ath/ath9k/init.c ds += (desc_len * ndesc); ds 365 drivers/net/wireless/ath/ath9k/init.c bf->bf_desc = ds; ds 366 drivers/net/wireless/ath/ath9k/init.c bf->bf_daddr = DS2PHYS(dd, ds); ds 379 drivers/net/wireless/ath/ath9k/init.c for (i = 0; i < nbuf; i++, bf++, ds += (desc_len * ndesc)) { ds 380 drivers/net/wireless/ath/ath9k/init.c bf->bf_desc = ds; ds 381 drivers/net/wireless/ath/ath9k/init.c bf->bf_daddr = DS2PHYS(dd, ds); ds 395 drivers/net/wireless/ath/ath9k/init.c ds += (desc_len * ndesc); ds 396 drivers/net/wireless/ath/ath9k/init.c bf->bf_desc = ds; ds 397 drivers/net/wireless/ath/ath9k/init.c bf->bf_daddr = DS2PHYS(dd, ds); ds 524 drivers/net/wireless/ath/ath9k/mac.c int ath9k_hw_rxprocdesc(struct ath_hw *ah, struct ath_desc *ds, ds 528 drivers/net/wireless/ath/ath9k/mac.c struct ar5416_desc *adsp = AR5416DESC(ds); ds 731 drivers/net/wireless/ath/ath9k/mac.h int ath9k_hw_rxprocdesc(struct ath_hw *ah, struct ath_desc *ds, ds 733 drivers/net/wireless/ath/ath9k/mac.h void ath9k_hw_setuprxdesc(struct ath_hw *ah, struct ath_desc *ds, ds 42 drivers/net/wireless/ath/ath9k/recv.c struct ath_desc *ds; ds 45 drivers/net/wireless/ath/ath9k/recv.c ds = bf->bf_desc; ds 46 drivers/net/wireless/ath/ath9k/recv.c ds->ds_link = 0; /* link to null */ ds 47 drivers/net/wireless/ath/ath9k/recv.c ds->ds_data = bf->bf_buf_addr; ds 52 drivers/net/wireless/ath/ath9k/recv.c ds->ds_vdata = skb->data; ds 59 drivers/net/wireless/ath/ath9k/recv.c ath9k_hw_setuprxdesc(ah, ds, ds 68 drivers/net/wireless/ath/ath9k/recv.c sc->rx.rxlink = &ds->ds_link; ds 699 drivers/net/wireless/ath/ath9k/recv.c struct ath_desc *ds; ds 712 drivers/net/wireless/ath/ath9k/recv.c ds = bf->bf_desc; ds 725 drivers/net/wireless/ath/ath9k/recv.c ret = ath9k_hw_rxprocdesc(ah, ds, rs); ds 759 drivers/net/wireless/ath/ath9k/recv.c ret = ath9k_hw_rxprocdesc(ah, ds, rs); ds 2559 drivers/net/wireless/ath/ath9k/xmit.c struct ath_desc *ds; ds 2598 drivers/net/wireless/ath/ath9k/xmit.c ds = lastbf->bf_desc; ds 2601 drivers/net/wireless/ath/ath9k/xmit.c status = ath9k_hw_txprocdesc(ah, ds, &ts); ds 373 drivers/net/wireless/marvell/libertas/cfg.c struct mrvl_ie_ds_param_set *ds = (void *) tlv; ds 380 drivers/net/wireless/marvell/libertas/cfg.c ds->header.type = cpu_to_le16(TLV_TYPE_PHY_DS); ds 381 drivers/net/wireless/marvell/libertas/cfg.c ds->header.len = cpu_to_le16(sizeof(*ds)-sizeof(ds->header)); ds 382 drivers/net/wireless/marvell/libertas/cfg.c ds->channel = channel; ds 383 drivers/net/wireless/marvell/libertas/cfg.c return sizeof(*ds); ds 1770 drivers/net/wireless/marvell/libertas/cfg.c cmd.bss.ds.header.id = WLAN_EID_DS_PARAMS; ds 1771 drivers/net/wireless/marvell/libertas/cfg.c cmd.bss.ds.header.len = 1; ds 1772 drivers/net/wireless/marvell/libertas/cfg.c cmd.bss.ds.channel = params->chandef.chan->hw_value; ds 1884 drivers/net/wireless/marvell/libertas/cfg.c cmd.ds.header.id = WLAN_EID_DS_PARAMS; ds 1885 drivers/net/wireless/marvell/libertas/cfg.c cmd.ds.header.len = 1; ds 1886 drivers/net/wireless/marvell/libertas/cfg.c cmd.ds.channel = params->chandef.chan->hw_value; ds 750 drivers/net/wireless/marvell/libertas/host.h struct ieee_ie_ds_param_set ds; ds 773 drivers/net/wireless/marvell/libertas/host.h struct ieee_ie_ds_param_set ds; ds 55 drivers/net/wireless/marvell/libertas/types.h struct ieee_ie_ds_param_set ds; ds 1841 drivers/nvme/host/core.c ns->lba_shift = id->lbaf[id->flbas & NVME_NS_FLBAS_LBA_MASK].ds; ds 464 drivers/nvme/target/admin-cmd.c id->lbaf[0].ds = ns->blksize_shift; ds 1509 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c u32 ds = 0; ds 1517 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c ds = val ? DSHI(flg) : DSLO(flg); ds 1519 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c "pin %d strength %d = %d\n", pin, val, ds); ds 1520 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c return ds; ds 227 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_force_offline(&gs->ds); ds 395 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fsf_send_ct(&adapter->gs->ds, &fc_req->ct_els, ds 422 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fc_wka_port_get(&adapter->gs->ds); ds 428 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_put(&adapter->gs->ds); ds 690 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, ds 804 drivers/s390/scsi/zfcp_fc.c if (zfcp_fc_wka_port_get(&adapter->gs->ds)) ds 824 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_put(&adapter->gs->ds); ds 849 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, ds 897 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fsf_send_ct(&adapter->gs->ds, ct_els, NULL, ds 929 drivers/s390/scsi/zfcp_fc.c ret = zfcp_fc_wka_port_get(&adapter->gs->ds); ds 941 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_put(&adapter->gs->ds); ds 982 drivers/s390/scsi/zfcp_fc.c return &adapter->gs->ds; ds 1093 drivers/s390/scsi/zfcp_fc.c zfcp_fc_wka_port_init(&wka_ports->ds, FC_FID_DIR_SERV, adapter); ds 217 drivers/s390/scsi/zfcp_fc.h struct zfcp_fc_wka_port ds; ds 2237 drivers/scsi/mpt3sas/mpt3sas_scsih.c char *ds = ""; ds 2282 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds = "SSP"; ds 2287 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds = "SATA"; ds 2289 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds = "STP"; ds 2327 drivers/scsi/mpt3sas/mpt3sas_scsih.c raid_device->num_pds, ds); ds 2377 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds = "NVMe"; ds 2380 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds, handle, (unsigned long long)pcie_device->wwid, ds 2385 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds, ds 2391 drivers/scsi/mpt3sas/mpt3sas_scsih.c "connector name( %s)\n", ds, ds 2435 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds = "SES"; ds 2437 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds = "SSP"; ds 2441 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds = "STP"; ds 2444 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds = "SATA"; ds 2449 drivers/scsi/mpt3sas/mpt3sas_scsih.c ds, handle, (unsigned long long)sas_device->sas_address, ds 901 drivers/scsi/qlogicpti.c struct dataseg *ds; ds 913 drivers/scsi/qlogicpti.c ds = cmd->dataseg; ds 921 drivers/scsi/qlogicpti.c ds[i].d_base = sg_dma_address(s); ds 922 drivers/scsi/qlogicpti.c ds[i].d_count = sg_dma_len(s); ds 940 drivers/scsi/qlogicpti.c ds = cont->dataseg; ds 945 drivers/scsi/qlogicpti.c ds[i].d_base = sg_dma_address(s); ds 946 drivers/scsi/qlogicpti.c ds[i].d_count = sg_dma_len(s); ds 409 drivers/sh/maple/maple.c struct maple_device_specify *ds; ds 412 drivers/sh/maple/maple.c ds = portptr; ds 414 drivers/sh/maple/maple.c if (mdev->port == ds->port && mdev->unit == ds->unit) ds 496 drivers/sh/maple/maple.c struct maple_device_specify ds; ds 498 drivers/sh/maple/maple.c ds.port = mdev->port; ds 500 drivers/sh/maple/maple.c ds.unit = k + 1; ds 502 drivers/sh/maple/maple.c bus_for_each_dev(&maple_bus_type, NULL, &ds, ds 1700 drivers/staging/media/ipu3/ipu3-abi.h u8 ds; ds 2054 drivers/usb/core/devio.c struct usbdevfs_disconnectsignal32 ds; ds 2056 drivers/usb/core/devio.c if (copy_from_user(&ds, arg, sizeof(ds))) ds 2058 drivers/usb/core/devio.c ps->discsignr = ds.signr; ds 2059 drivers/usb/core/devio.c ps->disccontext.sival_int = ds.context; ds 2173 drivers/usb/core/devio.c struct usbdevfs_disconnectsignal ds; ds 2175 drivers/usb/core/devio.c if (copy_from_user(&ds, arg, sizeof(ds))) ds 2177 drivers/usb/core/devio.c ps->discsignr = ds.signr; ds 2178 drivers/usb/core/devio.c ps->disccontext.sival_ptr = ds.context; ds 2079 drivers/usb/gadget/function/f_fs.c struct usb_interface_descriptor *ds = (void *)_ds; ds 2081 drivers/usb/gadget/function/f_fs.c if (length != sizeof *ds) ds 2084 drivers/usb/gadget/function/f_fs.c __entity(INTERFACE, ds->bInterfaceNumber); ds 2085 drivers/usb/gadget/function/f_fs.c if (ds->iInterface) ds 2086 drivers/usb/gadget/function/f_fs.c __entity(STRING, ds->iInterface); ds 2087 drivers/usb/gadget/function/f_fs.c *current_class = ds->bInterfaceClass; ds 2092 drivers/usb/gadget/function/f_fs.c struct usb_endpoint_descriptor *ds = (void *)_ds; ds 2097 drivers/usb/gadget/function/f_fs.c __entity(ENDPOINT, ds->bEndpointAddress); ds 2124 drivers/usb/gadget/function/f_fs.c struct usb_interface_assoc_descriptor *ds = (void *)_ds; ds 2126 drivers/usb/gadget/function/f_fs.c if (length != sizeof *ds) ds 2128 drivers/usb/gadget/function/f_fs.c if (ds->iFunction) ds 2129 drivers/usb/gadget/function/f_fs.c __entity(STRING, ds->iFunction); ds 2813 drivers/usb/gadget/function/f_fs.c struct usb_endpoint_descriptor *ds = (void *)desc; ds 2843 drivers/usb/gadget/function/f_fs.c idx = ffs_ep_addr2idx(func->ffs, ds->bEndpointAddress) - 1; ds 2852 drivers/usb/gadget/function/f_fs.c ds->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK); ds 2855 drivers/usb/gadget/function/f_fs.c ffs_ep->descs[ep_desc_id] = ds; ds 2857 drivers/usb/gadget/function/f_fs.c ffs_dump_mem(": Original ep desc", ds, ds->bLength); ds 2859 drivers/usb/gadget/function/f_fs.c ds->bEndpointAddress = ffs_ep->descs[0]->bEndpointAddress; ds 2860 drivers/usb/gadget/function/f_fs.c if (!ds->wMaxPacketSize) ds 2861 drivers/usb/gadget/function/f_fs.c ds->wMaxPacketSize = ffs_ep->descs[0]->wMaxPacketSize; ds 2872 drivers/usb/gadget/function/f_fs.c bEndpointAddress = ds->bEndpointAddress; ds 2877 drivers/usb/gadget/function/f_fs.c wMaxPacketSize = ds->wMaxPacketSize; ds 2879 drivers/usb/gadget/function/f_fs.c ep = usb_ep_autoconfig(func->gadget, ds); ds 2890 drivers/usb/gadget/function/f_fs.c func->eps_revmap[ds->bEndpointAddress & ds 2897 drivers/usb/gadget/function/f_fs.c ds->bEndpointAddress = bEndpointAddress; ds 2902 drivers/usb/gadget/function/f_fs.c ds->wMaxPacketSize = wMaxPacketSize; ds 2904 drivers/usb/gadget/function/f_fs.c ffs_dump_mem(": Rewritten ep desc", ds, ds->bLength); ds 2144 drivers/video/fbdev/omap2/omapfb/dss/dispc.c const int ds = DIV_ROUND_UP(height, out_height); ds 2173 drivers/video/fbdev/omap2/omapfb/dss/dispc.c val, max(0, ds - 2) * width); ds 2174 drivers/video/fbdev/omap2/omapfb/dss/dispc.c if (val < max(0, ds - 2) * width) ds 2184 drivers/video/fbdev/omap2/omapfb/dss/dispc.c val, max(0, ds - 1) * width); ds 2185 drivers/video/fbdev/omap2/omapfb/dss/dispc.c if (val < max(0, ds - 1) * width) ds 83 fs/9p/fid.c struct dentry *ds; ds 85 fs/9p/fid.c for (ds = dentry; !IS_ROOT(ds); ds = ds->d_parent) ds 92 fs/9p/fid.c for (ds = dentry, i = (n-1); i >= 0; i--, ds = ds->d_parent) ds 93 fs/9p/fid.c wnames[i] = ds->d_name.name; ds 104 fs/9p/fid.c struct dentry *ds; ds 121 fs/9p/fid.c ds = dentry->d_parent; ds 122 fs/9p/fid.c fid = v9fs_fid_find(ds, uid, any); ds 142 fs/affs/affs.h extern void affs_secs_to_datestamp(time64_t secs, struct affs_date *ds); ds 372 fs/affs/amigaffs.c affs_secs_to_datestamp(time64_t secs, struct affs_date *ds) ds 385 fs/affs/amigaffs.c ds->days = cpu_to_be32(days); ds 386 fs/affs/amigaffs.c ds->mins = cpu_to_be32(minute); ds 387 fs/affs/amigaffs.c ds->ticks = cpu_to_be32(rem * 50); ds 72 fs/befs/befs.h befs_data_stream ds; ds 91 fs/befs/btree.c static int befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds, ds 96 fs/befs/btree.c static int befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds, ds 99 fs/befs/btree.c static int befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds, ds 134 fs/befs/btree.c befs_bt_read_super(struct super_block *sb, const befs_data_stream *ds, ds 142 fs/befs/btree.c bh = befs_read_datastream(sb, ds, 0, NULL); ds 191 fs/befs/btree.c befs_bt_read_node(struct super_block *sb, const befs_data_stream *ds, ds 201 fs/befs/btree.c node->bh = befs_read_datastream(sb, ds, node_off, &off); ds 245 fs/befs/btree.c befs_btree_find(struct super_block *sb, const befs_data_stream *ds, ds 255 fs/befs/btree.c if (befs_bt_read_super(sb, ds, &bt_super) != BEFS_OK) { ds 273 fs/befs/btree.c if (befs_bt_read_node(sb, ds, this_node, node_off) != BEFS_OK) { ds 284 fs/befs/btree.c if (befs_bt_read_node(sb, ds, this_node, node_off) != BEFS_OK) { ds 411 fs/befs/btree.c befs_btree_read(struct super_block *sb, const befs_data_stream *ds, ds 428 fs/befs/btree.c if (befs_bt_read_super(sb, ds, &bt_super) != BEFS_OK) { ds 445 fs/befs/btree.c res = befs_btree_seekleaf(sb, ds, &bt_super, this_node, &node_off); ds 477 fs/befs/btree.c if (befs_bt_read_node(sb, ds, this_node, node_off) != BEFS_OK) { ds 542 fs/befs/btree.c befs_btree_seekleaf(struct super_block *sb, const befs_data_stream *ds, ds 550 fs/befs/btree.c if (befs_bt_read_node(sb, ds, this_node, *node_off) != BEFS_OK) { ds 574 fs/befs/btree.c if (befs_bt_read_node(sb, ds, this_node, *node_off) != BEFS_OK) { ds 7 fs/befs/btree.h int befs_btree_find(struct super_block *sb, const befs_data_stream *ds, ds 10 fs/befs/btree.h int befs_btree_read(struct super_block *sb, const befs_data_stream *ds, ds 49 fs/befs/datastream.c befs_read_datastream(struct super_block *sb, const befs_data_stream *ds, ds 61 fs/befs/datastream.c if (befs_fblock2brun(sb, ds, block, &run) != BEFS_OK) { ds 130 fs/befs/datastream.c befs_read_lsymlink(struct super_block *sb, const befs_data_stream *ds, ds 140 fs/befs/datastream.c bh = befs_read_datastream(sb, ds, bytes_read, NULL); ds 172 fs/befs/datastream.c befs_count_blocks(struct super_block *sb, const befs_data_stream *ds) ds 181 fs/befs/datastream.c datablocks = ds->size >> befs_sb->block_shift; ds 182 fs/befs/datastream.c if (ds->size & (befs_sb->block_size - 1)) ds 188 fs/befs/datastream.c if (ds->size > ds->max_direct_range) ds 189 fs/befs/datastream.c metablocks += ds->indirect.len; ds 200 fs/befs/datastream.c if (ds->size > ds->max_indirect_range && ds->max_indirect_range != 0) { ds 206 fs/befs/datastream.c ds->max_double_indirect_range - ds->max_indirect_range; ds 211 fs/befs/datastream.c metablocks += ds->double_indirect.len; ds 8 fs/befs/datastream.h const befs_data_stream *ds, ds 18 fs/befs/datastream.h const befs_data_stream *ds); ds 136 fs/befs/linuxvfs.c befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; ds 150 fs/befs/linuxvfs.c res = befs_fblock2brun(sb, ds, block, &run); ds 175 fs/befs/linuxvfs.c const befs_data_stream *ds = &BEFS_I(dir)->i_data.ds; ds 193 fs/befs/linuxvfs.c ret = befs_btree_find(sb, ds, utfname, &offset); ds 197 fs/befs/linuxvfs.c ret = befs_btree_find(sb, ds, name, &offset); ds 219 fs/befs/linuxvfs.c const befs_data_stream *ds = &BEFS_I(inode)->i_data.ds; ds 229 fs/befs/linuxvfs.c result = befs_btree_read(sb, ds, ctx->pos, BEFS_NAME_LEN + 1, ds 382 fs/befs/linuxvfs.c befs_ino->i_data.ds = ds 385 fs/befs/linuxvfs.c num_blks = befs_count_blocks(sb, &befs_ino->i_data.ds); ds 388 fs/befs/linuxvfs.c inode->i_size = befs_ino->i_data.ds.size; ds 475 fs/befs/linuxvfs.c befs_data_stream *data = &befs_ino->i_data.ds; ds 257 fs/btrfs/check-integrity.c static void btrfsic_dev_state_init(struct btrfsic_dev_state *ds); ds 259 fs/btrfs/check-integrity.c static void btrfsic_dev_state_free(struct btrfsic_dev_state *ds); ds 283 fs/btrfs/check-integrity.c struct btrfsic_dev_state *ds, ds 285 fs/btrfs/check-integrity.c static void btrfsic_dev_state_hashtable_remove(struct btrfsic_dev_state *ds); ds 457 fs/btrfs/check-integrity.c static void btrfsic_dev_state_init(struct btrfsic_dev_state *ds) ds 459 fs/btrfs/check-integrity.c ds->magic_num = BTRFSIC_DEV2STATE_MAGIC_NUMBER; ds 460 fs/btrfs/check-integrity.c ds->bdev = NULL; ds 461 fs/btrfs/check-integrity.c ds->state = NULL; ds 462 fs/btrfs/check-integrity.c ds->name[0] = '\0'; ds 463 fs/btrfs/check-integrity.c INIT_LIST_HEAD(&ds->collision_resolving_node); ds 464 fs/btrfs/check-integrity.c ds->last_flush_gen = 0; ds 465 fs/btrfs/check-integrity.c btrfsic_block_init(&ds->dummy_block_for_bio_bh_flush); ds 466 fs/btrfs/check-integrity.c ds->dummy_block_for_bio_bh_flush.is_iodone = 1; ds 467 fs/btrfs/check-integrity.c ds->dummy_block_for_bio_bh_flush.dev_state = ds; ds 472 fs/btrfs/check-integrity.c struct btrfsic_dev_state *ds; ds 474 fs/btrfs/check-integrity.c ds = kzalloc(sizeof(*ds), GFP_NOFS); ds 475 fs/btrfs/check-integrity.c if (NULL != ds) ds 476 fs/btrfs/check-integrity.c btrfsic_dev_state_init(ds); ds 478 fs/btrfs/check-integrity.c return ds; ds 481 fs/btrfs/check-integrity.c static void btrfsic_dev_state_free(struct btrfsic_dev_state *ds) ds 483 fs/btrfs/check-integrity.c BUG_ON(!(NULL == ds || ds 484 fs/btrfs/check-integrity.c BTRFSIC_DEV2STATE_MAGIC_NUMBER == ds->magic_num)); ds 485 fs/btrfs/check-integrity.c kfree(ds); ds 599 fs/btrfs/check-integrity.c struct btrfsic_dev_state *ds, ds 603 fs/btrfs/check-integrity.c (((unsigned int)((uintptr_t)ds->bdev->bd_dev)) & ds 606 fs/btrfs/check-integrity.c list_add(&ds->collision_resolving_node, h->table + hashval); ds 609 fs/btrfs/check-integrity.c static void btrfsic_dev_state_hashtable_remove(struct btrfsic_dev_state *ds) ds 611 fs/btrfs/check-integrity.c list_del(&ds->collision_resolving_node); ds 619 fs/btrfs/check-integrity.c struct btrfsic_dev_state *ds; ds 621 fs/btrfs/check-integrity.c list_for_each_entry(ds, h->table + hashval, collision_resolving_node) { ds 622 fs/btrfs/check-integrity.c if (ds->bdev->bd_dev == dev) ds 623 fs/btrfs/check-integrity.c return ds; ds 2933 fs/btrfs/check-integrity.c struct btrfsic_dev_state *ds; ds 2939 fs/btrfs/check-integrity.c ds = btrfsic_dev_state_alloc(); ds 2940 fs/btrfs/check-integrity.c if (NULL == ds) { ds 2945 fs/btrfs/check-integrity.c ds->bdev = device->bdev; ds 2946 fs/btrfs/check-integrity.c ds->state = state; ds 2947 fs/btrfs/check-integrity.c bdevname(ds->bdev, ds->name); ds 2948 fs/btrfs/check-integrity.c ds->name[BDEVNAME_SIZE - 1] = '\0'; ds 2949 fs/btrfs/check-integrity.c p = kbasename(ds->name); ds 2950 fs/btrfs/check-integrity.c strlcpy(ds->name, p, sizeof(ds->name)); ds 2951 fs/btrfs/check-integrity.c btrfsic_dev_state_hashtable_add(ds, ds 2985 fs/btrfs/check-integrity.c struct btrfsic_dev_state *ds; ds 2990 fs/btrfs/check-integrity.c ds = btrfsic_dev_state_hashtable_lookup( ds 2993 fs/btrfs/check-integrity.c if (NULL != ds) { ds 2994 fs/btrfs/check-integrity.c state = ds->state; ds 2995 fs/btrfs/check-integrity.c btrfsic_dev_state_hashtable_remove(ds); ds 2996 fs/btrfs/check-integrity.c btrfsic_dev_state_free(ds); ds 4030 fs/btrfs/tree-log.c u64 ds, dl, cs, cl; ds 4031 fs/btrfs/tree-log.c ds = btrfs_file_extent_disk_bytenr(src, ds 4034 fs/btrfs/tree-log.c if (ds == 0) ds 4050 fs/btrfs/tree-log.c ds + cs, ds + cs + cl - 1, ds 283 fs/fat/dir.c struct msdos_dir_slot *ds; ds 294 fs/fat/dir.c ds = (struct msdos_dir_slot *)*de; ds 295 fs/fat/dir.c id = ds->id; ds 302 fs/fat/dir.c alias_checksum = ds->alias_checksum; ds 310 fs/fat/dir.c fat16_towchar(*unicode + offset, ds->name0_4, 5); ds 311 fs/fat/dir.c fat16_towchar(*unicode + offset + 5, ds->name5_10, 6); ds 312 fs/fat/dir.c fat16_towchar(*unicode + offset + 11, ds->name11_12, 2); ds 314 fs/fat/dir.c if (ds->id & 0x40) ds 320 fs/fat/dir.c ds = (struct msdos_dir_slot *)*de; ds 321 fs/fat/dir.c if (ds->attr != ATTR_EXT) ds 323 fs/fat/dir.c if ((ds->id & ~0x40) != slot) ds 325 fs/fat/dir.c if (ds->alias_checksum != alias_checksum) ds 291 fs/nfs/direct.c cinfo->ds = &dreq->ds_cinfo; ds 615 fs/nfs/direct.c if (cinfo->ds != NULL && cinfo->ds->nwritten != 0) ds 452 fs/nfs/filelayout/filelayout.c struct nfs4_pnfs_ds *ds; ds 465 fs/nfs/filelayout/filelayout.c ds = nfs4_fl_prepare_ds(lseg, idx); ds 466 fs/nfs/filelayout/filelayout.c if (!ds) ds 469 fs/nfs/filelayout/filelayout.c ds_clnt = nfs4_find_or_create_ds_client(ds->ds_clp, hdr->inode); ds 474 fs/nfs/filelayout/filelayout.c ds->ds_remotestr, refcount_read(&ds->ds_clp->cl_count)); ds 477 fs/nfs/filelayout/filelayout.c refcount_inc(&ds->ds_clp->cl_count); ds 478 fs/nfs/filelayout/filelayout.c hdr->ds_clp = ds->ds_clp; ds 499 fs/nfs/filelayout/filelayout.c struct nfs4_pnfs_ds *ds; ds 508 fs/nfs/filelayout/filelayout.c ds = nfs4_fl_prepare_ds(lseg, idx); ds 509 fs/nfs/filelayout/filelayout.c if (!ds) ds 512 fs/nfs/filelayout/filelayout.c ds_clnt = nfs4_find_or_create_ds_client(ds->ds_clp, hdr->inode); ds 518 fs/nfs/filelayout/filelayout.c offset, ds->ds_remotestr, refcount_read(&ds->ds_clp->cl_count)); ds 521 fs/nfs/filelayout/filelayout.c refcount_inc(&ds->ds_clp->cl_count); ds 522 fs/nfs/filelayout/filelayout.c hdr->ds_clp = ds->ds_clp; ds 777 fs/nfs/filelayout/filelayout.c if (cinfo->ds->nbuckets >= size) { ds 799 fs/nfs/filelayout/filelayout.c if (cinfo->ds->nbuckets >= size) ds 801 fs/nfs/filelayout/filelayout.c for (i = 0; i < cinfo->ds->nbuckets; i++) { ds 802 fs/nfs/filelayout/filelayout.c list_splice(&cinfo->ds->buckets[i].written, ds 804 fs/nfs/filelayout/filelayout.c list_splice(&cinfo->ds->buckets[i].committing, ds 807 fs/nfs/filelayout/filelayout.c cinfo->ds->buckets[i].direct_verf.committed; ds 808 fs/nfs/filelayout/filelayout.c buckets[i].wlseg = cinfo->ds->buckets[i].wlseg; ds 809 fs/nfs/filelayout/filelayout.c buckets[i].clseg = cinfo->ds->buckets[i].clseg; ds 811 fs/nfs/filelayout/filelayout.c swap(cinfo->ds->buckets, buckets); ds 812 fs/nfs/filelayout/filelayout.c cinfo->ds->nbuckets = size; ds 1050 fs/nfs/filelayout/filelayout.c struct nfs4_pnfs_ds *ds; ds 1056 fs/nfs/filelayout/filelayout.c ds = nfs4_fl_prepare_ds(lseg, idx); ds 1057 fs/nfs/filelayout/filelayout.c if (!ds) ds 1060 fs/nfs/filelayout/filelayout.c ds_clnt = nfs4_find_or_create_ds_client(ds->ds_clp, data->inode); ds 1065 fs/nfs/filelayout/filelayout.c data->inode->i_ino, how, refcount_read(&ds->ds_clp->cl_count)); ds 1067 fs/nfs/filelayout/filelayout.c refcount_inc(&ds->ds_clp->cl_count); ds 1068 fs/nfs/filelayout/filelayout.c data->ds_clp = ds->ds_clp; ds 1097 fs/nfs/filelayout/filelayout.c for (i = 0, b = cinfo->ds->buckets; i < cinfo->ds->nbuckets; i++, b++) { ds 47 fs/nfs/filelayout/filelayoutdev.c struct nfs4_pnfs_ds *ds; ds 53 fs/nfs/filelayout/filelayoutdev.c ds = dsaddr->ds_list[i]; ds 54 fs/nfs/filelayout/filelayoutdev.c if (ds != NULL) ds 55 fs/nfs/filelayout/filelayoutdev.c nfs4_pnfs_ds_put(ds); ds 265 fs/nfs/filelayout/filelayoutdev.c struct nfs4_pnfs_ds *ds = dsaddr->ds_list[ds_idx]; ds 267 fs/nfs/filelayout/filelayoutdev.c struct nfs4_pnfs_ds *ret = ds; ds 271 fs/nfs/filelayout/filelayoutdev.c if (ds == NULL) { ds 278 fs/nfs/filelayout/filelayoutdev.c if (ds->ds_clp) ds 281 fs/nfs/filelayout/filelayoutdev.c status = nfs4_pnfs_ds_connect(s, ds, devid, dataserver_timeo, ds 758 fs/nfs/flexfilelayout/flexfilelayout.c if (cinfo->ds->nbuckets != 0) { ds 777 fs/nfs/flexfilelayout/flexfilelayout.c if (cinfo->ds->nbuckets != 0) ds 780 fs/nfs/flexfilelayout/flexfilelayout.c cinfo->ds->buckets = buckets; ds 781 fs/nfs/flexfilelayout/flexfilelayout.c cinfo->ds->nbuckets = size; ds 820 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_pnfs_ds *ds; ds 830 fs/nfs/flexfilelayout/flexfilelayout.c ds = nfs4_ff_layout_prepare_ds(lseg, mirror, fail_return); ds 831 fs/nfs/flexfilelayout/flexfilelayout.c if (!ds) ds 839 fs/nfs/flexfilelayout/flexfilelayout.c return ds; ds 863 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_pnfs_ds *ds; ds 865 fs/nfs/flexfilelayout/flexfilelayout.c ds = ff_layout_choose_valid_ds_for_read(lseg, start_idx, best_idx); ds 866 fs/nfs/flexfilelayout/flexfilelayout.c if (ds) ds 867 fs/nfs/flexfilelayout/flexfilelayout.c return ds; ds 896 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_pnfs_ds *ds; ds 913 fs/nfs/flexfilelayout/flexfilelayout.c ds = ff_layout_choose_best_ds_for_read(pgio->pg_lseg, 0, &ds_idx); ds 914 fs/nfs/flexfilelayout/flexfilelayout.c if (!ds) { ds 957 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_pnfs_ds *ds; ds 993 fs/nfs/flexfilelayout/flexfilelayout.c ds = nfs4_ff_layout_prepare_ds(pgio->pg_lseg, mirror, true); ds 994 fs/nfs/flexfilelayout/flexfilelayout.c if (!ds) { ds 1781 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_pnfs_ds *ds; ds 1795 fs/nfs/flexfilelayout/flexfilelayout.c ds = nfs4_ff_layout_prepare_ds(lseg, mirror, false); ds 1796 fs/nfs/flexfilelayout/flexfilelayout.c if (!ds) ds 1799 fs/nfs/flexfilelayout/flexfilelayout.c ds_clnt = nfs4_ff_find_or_create_ds_client(mirror, ds->ds_clp, ds 1811 fs/nfs/flexfilelayout/flexfilelayout.c ds->ds_remotestr, refcount_read(&ds->ds_clp->cl_count), vers); ds 1814 fs/nfs/flexfilelayout/flexfilelayout.c refcount_inc(&ds->ds_clp->cl_count); ds 1815 fs/nfs/flexfilelayout/flexfilelayout.c hdr->ds_clp = ds->ds_clp; ds 1830 fs/nfs/flexfilelayout/flexfilelayout.c nfs_initiate_pgio(ds_clnt, hdr, ds_cred, ds->ds_clp->rpc_ops, ds 1851 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_pnfs_ds *ds; ds 1861 fs/nfs/flexfilelayout/flexfilelayout.c ds = nfs4_ff_layout_prepare_ds(lseg, mirror, true); ds 1862 fs/nfs/flexfilelayout/flexfilelayout.c if (!ds) ds 1865 fs/nfs/flexfilelayout/flexfilelayout.c ds_clnt = nfs4_ff_find_or_create_ds_client(mirror, ds->ds_clp, ds 1878 fs/nfs/flexfilelayout/flexfilelayout.c offset, ds->ds_remotestr, refcount_read(&ds->ds_clp->cl_count), ds 1882 fs/nfs/flexfilelayout/flexfilelayout.c refcount_inc(&ds->ds_clp->cl_count); ds 1883 fs/nfs/flexfilelayout/flexfilelayout.c hdr->ds_clp = ds->ds_clp; ds 1898 fs/nfs/flexfilelayout/flexfilelayout.c nfs_initiate_pgio(ds_clnt, hdr, ds_cred, ds->ds_clp->rpc_ops, ds 1933 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_pnfs_ds *ds; ds 1947 fs/nfs/flexfilelayout/flexfilelayout.c ds = nfs4_ff_layout_prepare_ds(lseg, mirror, true); ds 1948 fs/nfs/flexfilelayout/flexfilelayout.c if (!ds) ds 1951 fs/nfs/flexfilelayout/flexfilelayout.c ds_clnt = nfs4_ff_find_or_create_ds_client(mirror, ds->ds_clp, ds 1963 fs/nfs/flexfilelayout/flexfilelayout.c data->inode->i_ino, how, refcount_read(&ds->ds_clp->cl_count), ds 1967 fs/nfs/flexfilelayout/flexfilelayout.c refcount_inc(&ds->ds_clp->cl_count); ds 1968 fs/nfs/flexfilelayout/flexfilelayout.c data->ds_clp = ds->ds_clp; ds 1973 fs/nfs/flexfilelayout/flexfilelayout.c ret = nfs_initiate_commit(ds_clnt, data, ds->ds_clp->rpc_ops, ds 2361 fs/nfs/flexfilelayout/flexfilelayout.c struct nfs4_pnfs_ds *ds = mirror->mirror_ds->ds; ds 2365 fs/nfs/flexfilelayout/flexfilelayout.c da = list_first_entry(&ds->ds_addrs, struct nfs4_pnfs_ds_addr, da_node); ds 2367 fs/nfs/flexfilelayout/flexfilelayout.c __func__, ds->ds_remotestr, da->da_remotestr); ds 41 fs/nfs/flexfilelayout/flexfilelayout.h struct nfs4_pnfs_ds *ds; ds 35 fs/nfs/flexfilelayout/flexfilelayoutdev.c nfs4_pnfs_ds_put(mirror_ds->ds); ds 150 fs/nfs/flexfilelayout/flexfilelayoutdev.c new_ds->ds = nfs4_pnfs_ds_add(&dsaddrs, gfp_flags); ds 151 fs/nfs/flexfilelayout/flexfilelayoutdev.c if (!new_ds->ds) ds 371 fs/nfs/flexfilelayout/flexfilelayoutdev.c struct nfs4_pnfs_ds *ds = NULL; ds 380 fs/nfs/flexfilelayout/flexfilelayoutdev.c ds = mirror->mirror_ds->ds; ds 383 fs/nfs/flexfilelayout/flexfilelayoutdev.c if (ds->ds_clp) ds 389 fs/nfs/flexfilelayout/flexfilelayoutdev.c status = nfs4_pnfs_ds_connect(s, ds, &mirror->mirror_ds->id_node, ds 397 fs/nfs/flexfilelayout/flexfilelayoutdev.c nfs_block_size(rpc_max_payload(ds->ds_clp->cl_rpcclient), ds 413 fs/nfs/flexfilelayout/flexfilelayoutdev.c ds = NULL; ds 415 fs/nfs/flexfilelayout/flexfilelayoutdev.c return ds; ds 378 fs/nfs/pnfs.h void nfs4_pnfs_ds_put(struct nfs4_pnfs_ds *ds); ds 382 fs/nfs/pnfs.h int nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds, ds 441 fs/nfs/pnfs.h if (cinfo->ds == NULL || cinfo->ds->ncommitting == 0) ds 491 fs/nfs/pnfs.h if (cinfo->ds == NULL || cinfo->ds->nwritten == 0) ds 74 fs/nfs/pnfs_nfs.c cinfo->ds->nwritten--; ds 102 fs/nfs/pnfs_nfs.c cinfo->ds->nwritten -= ret; ds 103 fs/nfs/pnfs_nfs.c cinfo->ds->ncommitting += ret; ds 123 fs/nfs/pnfs_nfs.c for (i = 0; i < cinfo->ds->nbuckets && max != 0; i++) { ds 124 fs/nfs/pnfs_nfs.c cnt = pnfs_generic_scan_ds_commit_list(&cinfo->ds->buckets[i], ds 144 fs/nfs/pnfs_nfs.c for (i = 0, b = cinfo->ds->buckets; i < cinfo->ds->nbuckets; i++, b++) { ds 148 fs/nfs/pnfs_nfs.c cinfo->ds->nwritten -= nwritten; ds 161 fs/nfs/pnfs_nfs.c struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; ds 176 fs/nfs/pnfs_nfs.c cinfo->ds->ncommitting--; ds 196 fs/nfs/pnfs_nfs.c fl_cinfo = cinfo->ds; ds 222 fs/nfs/pnfs_nfs.c bucket = &cinfo->ds->buckets[data->ds_commit_index]; ds 225 fs/nfs/pnfs_nfs.c cinfo->ds->ncommitting--; ds 328 fs/nfs/pnfs_nfs.c print_ds(struct nfs4_pnfs_ds *ds) ds 330 fs/nfs/pnfs_nfs.c if (ds == NULL) { ds 338 fs/nfs/pnfs_nfs.c ds->ds_remotestr, ds 339 fs/nfs/pnfs_nfs.c refcount_read(&ds->ds_count), ds->ds_clp, ds 340 fs/nfs/pnfs_nfs.c ds->ds_clp ? ds->ds_clp->cl_exchange_flags : 0); ds 419 fs/nfs/pnfs_nfs.c struct nfs4_pnfs_ds *ds; ds 421 fs/nfs/pnfs_nfs.c list_for_each_entry(ds, &nfs4_data_server_cache, ds_node) ds 422 fs/nfs/pnfs_nfs.c if (_same_data_server_addrs_locked(&ds->ds_addrs, dsaddrs)) ds 423 fs/nfs/pnfs_nfs.c return ds; ds 427 fs/nfs/pnfs_nfs.c static void destroy_ds(struct nfs4_pnfs_ds *ds) ds 433 fs/nfs/pnfs_nfs.c print_ds(ds); ds 435 fs/nfs/pnfs_nfs.c nfs_put_client(ds->ds_clp); ds 437 fs/nfs/pnfs_nfs.c while (!list_empty(&ds->ds_addrs)) { ds 438 fs/nfs/pnfs_nfs.c da = list_first_entry(&ds->ds_addrs, ds 446 fs/nfs/pnfs_nfs.c kfree(ds->ds_remotestr); ds 447 fs/nfs/pnfs_nfs.c kfree(ds); ds 450 fs/nfs/pnfs_nfs.c void nfs4_pnfs_ds_put(struct nfs4_pnfs_ds *ds) ds 452 fs/nfs/pnfs_nfs.c if (refcount_dec_and_lock(&ds->ds_count, ds 454 fs/nfs/pnfs_nfs.c list_del_init(&ds->ds_node); ds 456 fs/nfs/pnfs_nfs.c destroy_ds(ds); ds 517 fs/nfs/pnfs_nfs.c struct nfs4_pnfs_ds *tmp_ds, *ds = NULL; ds 525 fs/nfs/pnfs_nfs.c ds = kzalloc(sizeof(*ds), gfp_flags); ds 526 fs/nfs/pnfs_nfs.c if (!ds) ds 535 fs/nfs/pnfs_nfs.c INIT_LIST_HEAD(&ds->ds_addrs); ds 536 fs/nfs/pnfs_nfs.c list_splice_init(dsaddrs, &ds->ds_addrs); ds 537 fs/nfs/pnfs_nfs.c ds->ds_remotestr = remotestr; ds 538 fs/nfs/pnfs_nfs.c refcount_set(&ds->ds_count, 1); ds 539 fs/nfs/pnfs_nfs.c INIT_LIST_HEAD(&ds->ds_node); ds 540 fs/nfs/pnfs_nfs.c ds->ds_clp = NULL; ds 541 fs/nfs/pnfs_nfs.c list_add(&ds->ds_node, &nfs4_data_server_cache); ds 543 fs/nfs/pnfs_nfs.c ds->ds_remotestr); ds 546 fs/nfs/pnfs_nfs.c kfree(ds); ds 551 fs/nfs/pnfs_nfs.c ds = tmp_ds; ds 555 fs/nfs/pnfs_nfs.c return ds; ds 559 fs/nfs/pnfs_nfs.c static void nfs4_wait_ds_connect(struct nfs4_pnfs_ds *ds) ds 562 fs/nfs/pnfs_nfs.c wait_on_bit(&ds->ds_state, NFS4DS_CONNECTING, ds 566 fs/nfs/pnfs_nfs.c static void nfs4_clear_ds_conn_bit(struct nfs4_pnfs_ds *ds) ds 569 fs/nfs/pnfs_nfs.c clear_bit(NFS4DS_CONNECTING, &ds->ds_state); ds 571 fs/nfs/pnfs_nfs.c wake_up_bit(&ds->ds_state, NFS4DS_CONNECTING); ds 601 fs/nfs/pnfs_nfs.c struct nfs4_pnfs_ds *ds, ds 609 fs/nfs/pnfs_nfs.c dprintk("--> %s DS %s\n", __func__, ds->ds_remotestr); ds 614 fs/nfs/pnfs_nfs.c list_for_each_entry(da, &ds->ds_addrs, da_node) { ds 616 fs/nfs/pnfs_nfs.c __func__, ds->ds_remotestr, da->da_remotestr); ds 647 fs/nfs/pnfs_nfs.c ds->ds_clp = clp; ds 648 fs/nfs/pnfs_nfs.c dprintk("%s [new] addr: %s\n", __func__, ds->ds_remotestr); ds 654 fs/nfs/pnfs_nfs.c struct nfs4_pnfs_ds *ds, ds 663 fs/nfs/pnfs_nfs.c dprintk("--> %s DS %s\n", __func__, ds->ds_remotestr); ds 665 fs/nfs/pnfs_nfs.c list_for_each_entry(da, &ds->ds_addrs, da_node) { ds 667 fs/nfs/pnfs_nfs.c __func__, ds->ds_remotestr, da->da_remotestr); ds 720 fs/nfs/pnfs_nfs.c ds->ds_clp = clp; ds 721 fs/nfs/pnfs_nfs.c dprintk("%s [new] addr: %s\n", __func__, ds->ds_remotestr); ds 731 fs/nfs/pnfs_nfs.c int nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds, ds 739 fs/nfs/pnfs_nfs.c if (test_and_set_bit(NFS4DS_CONNECTING, &ds->ds_state) == 0) { ds 741 fs/nfs/pnfs_nfs.c err = _nfs4_pnfs_v3_ds_connect(mds_srv, ds, timeo, ds 744 fs/nfs/pnfs_nfs.c err = _nfs4_pnfs_v4_ds_connect(mds_srv, ds, timeo, ds 752 fs/nfs/pnfs_nfs.c nfs4_clear_ds_conn_bit(ds); ds 754 fs/nfs/pnfs_nfs.c nfs4_wait_ds_connect(ds); ds 757 fs/nfs/pnfs_nfs.c if (!ds->ds_clp && !nfs4_test_deviceid_unavailable(devid)) ds 766 fs/nfs/pnfs_nfs.c if (!ds->ds_clp || !nfs_client_init_is_complete(ds->ds_clp)) { ds 767 fs/nfs/pnfs_nfs.c WARN_ON_ONCE(ds->ds_clp || ds 771 fs/nfs/pnfs_nfs.c err = nfs_client_init_status(ds->ds_clp); ds 936 fs/nfs/pnfs_nfs.c buckets = cinfo->ds->buckets; ds 954 fs/nfs/pnfs_nfs.c cinfo->ds->nwritten++; ds 928 fs/nfs/write.c cinfo->ds = pnfs_get_ds_info(inode); ds 2436 fs/nfsd/nfs4state.c struct nfs4_delegation *ds; ds 2440 fs/nfsd/nfs4state.c ds = delegstateid(st); ds 2448 fs/nfsd/nfs4state.c ds->dl_type == NFS4_OPEN_DELEGATE_READ ? "r" : "w"); ds 611 fs/ntfs/runlist.c int ds = dend + 1; /* Number of elements in drl & srl */ ds 629 fs/ntfs/runlist.c ntfs_debug("ds = %i, ss = %i, dins = %i", ds, ss, dins); ds 633 fs/ntfs/runlist.c drl = ntfs_rl_replace(drl, ds, srl + sstart, ss, dins); ds 635 fs/ntfs/runlist.c drl = ntfs_rl_insert(drl, ds, srl + sstart, ss, dins); ds 638 fs/ntfs/runlist.c drl = ntfs_rl_append(drl, ds, srl + sstart, ss, dins); ds 640 fs/ntfs/runlist.c drl = ntfs_rl_split(drl, ds, srl + sstart, ss, dins); ds 649 fs/ntfs/runlist.c for (ds = dend; drl[ds].length; ds++) ds 652 fs/ntfs/runlist.c if (drl[ds].vcn <= marker_vcn) { ds 655 fs/ntfs/runlist.c if (drl[ds].vcn == marker_vcn) { ds 659 fs/ntfs/runlist.c drl[ds].lcn); ds 660 fs/ntfs/runlist.c drl[ds].lcn = LCN_ENOENT; ds 668 fs/ntfs/runlist.c if (drl[ds].lcn == LCN_ENOENT) { ds 669 fs/ntfs/runlist.c ds--; ds 672 fs/ntfs/runlist.c if (drl[ds].lcn != LCN_RL_NOT_MAPPED) { ds 675 fs/ntfs/runlist.c drl = ntfs_rl_realloc_nofail(drl, ds, ds 676 fs/ntfs/runlist.c ds + 2); ds 679 fs/ntfs/runlist.c ds++; ds 682 fs/ntfs/runlist.c drl[ds].vcn = drl[ds - 1].vcn + ds 683 fs/ntfs/runlist.c drl[ds - 1].length; ds 684 fs/ntfs/runlist.c drl[ds].lcn = LCN_RL_NOT_MAPPED; ds 688 fs/ntfs/runlist.c drl[ds].length = marker_vcn - drl[ds].vcn; ds 690 fs/ntfs/runlist.c ds++; ds 692 fs/ntfs/runlist.c drl = ntfs_rl_realloc_nofail(drl, ds, ds + 1); ds 693 fs/ntfs/runlist.c drl[ds].vcn = marker_vcn; ds 694 fs/ntfs/runlist.c drl[ds].lcn = LCN_ENOENT; ds 695 fs/ntfs/runlist.c drl[ds].length = (s64)0; ds 243 fs/xfs/scrub/attr.c struct xchk_da_btree *ds, ds 253 fs/xfs/scrub/attr.c struct xfs_mount *mp = ds->state->mp; ds 254 fs/xfs/scrub/attr.c unsigned long *usedmap = xchk_xattr_usedmap(ds->sc); ds 262 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 266 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 272 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 283 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 289 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 292 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 294 fs/xfs/scrub/attr.c if (!xchk_xattr_set_map(ds->sc, usedmap, nameidx, namesize)) ds 295 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 296 fs/xfs/scrub/attr.c if (!(ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)) ds 303 fs/xfs/scrub/attr.c struct xchk_da_btree *ds, ds 307 fs/xfs/scrub/attr.c struct xfs_mount *mp = ds->state->mp; ds 308 fs/xfs/scrub/attr.c struct xfs_da_state_blk *blk = &ds->state->path.blk[level]; ds 310 fs/xfs/scrub/attr.c xfs_dablk_t *last_checked = ds->private; ds 327 fs/xfs/scrub/attr.c error = xchk_setup_xattr_buf(ds->sc, 0, KM_MAYFAIL); ds 332 fs/xfs/scrub/attr.c usedmap = xchk_xattr_usedmap(ds->sc); ds 338 fs/xfs/scrub/attr.c if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb)) { ds 343 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 346 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 354 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 356 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 358 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 359 fs/xfs/scrub/attr.c if (!xchk_xattr_set_map(ds->sc, usedmap, 0, hdrsize)) ds 360 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 362 fs/xfs/scrub/attr.c if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) ds 367 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 373 fs/xfs/scrub/attr.c if (!xchk_xattr_set_map(ds->sc, usedmap, off, ds 375 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 380 fs/xfs/scrub/attr.c xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, ds 383 fs/xfs/scrub/attr.c if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) ds 387 fs/xfs/scrub/attr.c if (!xchk_xattr_check_freemap(ds->sc, usedmap, &leafhdr)) ds 388 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 391 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 400 fs/xfs/scrub/attr.c struct xchk_da_btree *ds, ds 404 fs/xfs/scrub/attr.c struct xfs_mount *mp = ds->state->mp; ds 417 fs/xfs/scrub/attr.c blk = &ds->state->path.blk[level]; ds 420 fs/xfs/scrub/attr.c error = xchk_xattr_block(ds, level); ds 423 fs/xfs/scrub/attr.c if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) ds 427 fs/xfs/scrub/attr.c error = xchk_da_btree_hash(ds, level, &ent->hashval); ds 436 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 445 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 450 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 458 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 464 fs/xfs/scrub/attr.c xchk_da_set_corrupt(ds, level); ds 31 fs/xfs/scrub/dabtree.c struct xchk_da_btree *ds, ds 35 fs/xfs/scrub/dabtree.c struct xfs_scrub *sc = ds->sc; ds 52 fs/xfs/scrub/dabtree.c trace_xchk_file_op_error(sc, ds->dargs.whichfork, ds 53 fs/xfs/scrub/dabtree.c xfs_dir2_da_to_db(ds->dargs.geo, ds 54 fs/xfs/scrub/dabtree.c ds->state->path.blk[level].blkno), ds 67 fs/xfs/scrub/dabtree.c struct xchk_da_btree *ds, ds 70 fs/xfs/scrub/dabtree.c struct xfs_scrub *sc = ds->sc; ds 74 fs/xfs/scrub/dabtree.c trace_xchk_fblock_error(sc, ds->dargs.whichfork, ds 75 fs/xfs/scrub/dabtree.c xfs_dir2_da_to_db(ds->dargs.geo, ds 76 fs/xfs/scrub/dabtree.c ds->state->path.blk[level].blkno), ds 83 fs/xfs/scrub/dabtree.c struct xchk_da_btree *ds, ds 92 fs/xfs/scrub/dabtree.c blk = &ds->state->path.blk[level]; ds 101 fs/xfs/scrub/dabtree.c ents = (char *)ds->dargs.dp->d_ops->leaf_ents_p(baddr); ds 105 fs/xfs/scrub/dabtree.c ents = (char *)ds->dargs.dp->d_ops->leaf_ents_p(baddr); ds 109 fs/xfs/scrub/dabtree.c ents = (char *)ds->dargs.dp->d_ops->node_tree_p(baddr); ds 119 fs/xfs/scrub/dabtree.c struct xchk_da_btree *ds, ds 130 fs/xfs/scrub/dabtree.c if (hash < ds->hashes[level]) ds 131 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 132 fs/xfs/scrub/dabtree.c ds->hashes[level] = hash; ds 138 fs/xfs/scrub/dabtree.c blks = ds->state->path.blk; ds 139 fs/xfs/scrub/dabtree.c entry = xchk_da_btree_entry(ds, level - 1, blks[level - 1].index); ds 142 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 153 fs/xfs/scrub/dabtree.c struct xchk_da_btree *ds, ds 157 fs/xfs/scrub/dabtree.c if (blkno < ds->lowest || (ds->highest != 0 && blkno >= ds->highest)) { ds 158 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 241 fs/xfs/scrub/dabtree.c struct xchk_da_btree *ds, ds 249 fs/xfs/scrub/dabtree.c memcpy(&ds->state->altpath, &ds->state->path, ds 250 fs/xfs/scrub/dabtree.c sizeof(ds->state->altpath)); ds 257 fs/xfs/scrub/dabtree.c error = xfs_da3_path_shift(ds->state, &ds->state->altpath, ds 260 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 266 fs/xfs/scrub/dabtree.c error = xfs_da3_path_shift(ds->state, &ds->state->altpath, ds 268 fs/xfs/scrub/dabtree.c if (!xchk_da_process_error(ds, level, &error)) ds 271 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 274 fs/xfs/scrub/dabtree.c if (ds->state->altpath.blk[level].bp) ds 275 fs/xfs/scrub/dabtree.c xchk_buffer_recheck(ds->sc, ds 276 fs/xfs/scrub/dabtree.c ds->state->altpath.blk[level].bp); ds 279 fs/xfs/scrub/dabtree.c if (ds->state->altpath.blk[level].blkno != sibling) ds 280 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 281 fs/xfs/scrub/dabtree.c if (ds->state->altpath.blk[level].bp) { ds 282 fs/xfs/scrub/dabtree.c xfs_trans_brelse(ds->dargs.trans, ds 283 fs/xfs/scrub/dabtree.c ds->state->altpath.blk[level].bp); ds 284 fs/xfs/scrub/dabtree.c ds->state->altpath.blk[level].bp = NULL; ds 293 fs/xfs/scrub/dabtree.c struct xchk_da_btree *ds, ds 307 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 315 fs/xfs/scrub/dabtree.c error = xchk_da_btree_block_check_sibling(ds, level, 0, back); ds 318 fs/xfs/scrub/dabtree.c error = xchk_da_btree_block_check_sibling(ds, level, 1, forw); ds 321 fs/xfs/scrub/dabtree.c memset(&ds->state->altpath, 0, sizeof(ds->state->altpath)); ds 328 fs/xfs/scrub/dabtree.c struct xchk_da_btree *ds, ds 336 fs/xfs/scrub/dabtree.c struct xfs_da_args *dargs = &ds->dargs; ds 337 fs/xfs/scrub/dabtree.c struct xfs_inode *ip = ds->dargs.dp; ds 343 fs/xfs/scrub/dabtree.c blk = &ds->state->path.blk[level]; ds 344 fs/xfs/scrub/dabtree.c ds->state->path.active = level + 1; ds 354 fs/xfs/scrub/dabtree.c if (!xchk_da_btree_ptr_ok(ds, level, blkno)) ds 361 fs/xfs/scrub/dabtree.c if (!xchk_da_process_error(ds, level, &error)) ds 364 fs/xfs/scrub/dabtree.c xchk_buffer_recheck(ds->sc, blk->bp); ds 371 fs/xfs/scrub/dabtree.c if (ds->dargs.whichfork == XFS_DATA_FORK && level == 0 && ds 377 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 383 fs/xfs/scrub/dabtree.c pmaxrecs = &ds->maxrecs[level]; ds 386 fs/xfs/scrub/dabtree.c if (xfs_sb_version_hascrc(&ds->sc->mp->m_sb) && hdr3->hdr.pad) ds 387 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 393 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 397 fs/xfs/scrub/dabtree.c error = xchk_da_btree_block_check_siblings(ds, level, &hdr3->hdr); ds 409 fs/xfs/scrub/dabtree.c if (ds->tree_level != 0) ds 410 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 418 fs/xfs/scrub/dabtree.c if (ds->tree_level != 0) ds 419 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 427 fs/xfs/scrub/dabtree.c if (ds->tree_level != 0) ds 428 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 442 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 445 fs/xfs/scrub/dabtree.c ds->tree_level = nodehdr.level; ds 447 fs/xfs/scrub/dabtree.c if (ds->tree_level != nodehdr.level) { ds 448 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 456 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(ds, level); ds 478 fs/xfs/scrub/dabtree.c struct xchk_da_btree ds = {}; ds 493 fs/xfs/scrub/dabtree.c ds.dargs.dp = sc->ip; ds 494 fs/xfs/scrub/dabtree.c ds.dargs.whichfork = whichfork; ds 495 fs/xfs/scrub/dabtree.c ds.dargs.trans = sc->tp; ds 496 fs/xfs/scrub/dabtree.c ds.dargs.op_flags = XFS_DA_OP_OKNOENT; ds 497 fs/xfs/scrub/dabtree.c ds.state = xfs_da_state_alloc(); ds 498 fs/xfs/scrub/dabtree.c ds.state->args = &ds.dargs; ds 499 fs/xfs/scrub/dabtree.c ds.state->mp = mp; ds 500 fs/xfs/scrub/dabtree.c ds.sc = sc; ds 501 fs/xfs/scrub/dabtree.c ds.private = private; ds 503 fs/xfs/scrub/dabtree.c ds.dargs.geo = mp->m_attr_geo; ds 504 fs/xfs/scrub/dabtree.c ds.lowest = 0; ds 505 fs/xfs/scrub/dabtree.c ds.highest = 0; ds 507 fs/xfs/scrub/dabtree.c ds.dargs.geo = mp->m_dir_geo; ds 508 fs/xfs/scrub/dabtree.c ds.lowest = ds.dargs.geo->leafblk; ds 509 fs/xfs/scrub/dabtree.c ds.highest = ds.dargs.geo->freeblk; ds 511 fs/xfs/scrub/dabtree.c blkno = ds.lowest; ds 515 fs/xfs/scrub/dabtree.c blks = ds.state->path.blk; ds 516 fs/xfs/scrub/dabtree.c error = xchk_da_btree_block(&ds, level, blkno); ds 532 fs/xfs/scrub/dabtree.c if (blks[level].index >= ds.maxrecs[level]) { ds 535 fs/xfs/scrub/dabtree.c ds.tree_level++; ds 541 fs/xfs/scrub/dabtree.c rec = xchk_da_btree_entry(&ds, level, ds 543 fs/xfs/scrub/dabtree.c error = scrub_fn(&ds, level, rec); ds 556 fs/xfs/scrub/dabtree.c if (blks[level].index >= ds.maxrecs[level]) { ds 559 fs/xfs/scrub/dabtree.c ds.tree_level++; ds 565 fs/xfs/scrub/dabtree.c key = xchk_da_btree_entry(&ds, level, blks[level].index); ds 566 fs/xfs/scrub/dabtree.c error = xchk_da_btree_hash(&ds, level, &key->hashval); ds 575 fs/xfs/scrub/dabtree.c xchk_da_set_corrupt(&ds, level - 1); ds 578 fs/xfs/scrub/dabtree.c ds.tree_level--; ds 579 fs/xfs/scrub/dabtree.c error = xchk_da_btree_block(&ds, level, blkno); ds 598 fs/xfs/scrub/dabtree.c xfs_da_state_free(ds.state); ds 31 fs/xfs/scrub/dabtree.h typedef int (*xchk_da_btree_rec_fn)(struct xchk_da_btree *ds, ds 35 fs/xfs/scrub/dabtree.h bool xchk_da_process_error(struct xchk_da_btree *ds, int level, int *error); ds 38 fs/xfs/scrub/dabtree.h void xchk_da_set_corrupt(struct xchk_da_btree *ds, int level); ds 40 fs/xfs/scrub/dabtree.h int xchk_da_btree_hash(struct xchk_da_btree *ds, int level, __be32 *hashp); ds 181 fs/xfs/scrub/dir.c struct xchk_da_btree *ds, ds 185 fs/xfs/scrub/dir.c struct xfs_mount *mp = ds->state->mp; ds 187 fs/xfs/scrub/dir.c struct xfs_inode *dp = ds->dargs.dp; ds 202 fs/xfs/scrub/dir.c error = xchk_da_btree_hash(ds, level, &ent->hashval); ds 217 fs/xfs/scrub/dir.c xchk_da_set_corrupt(ds, level); ds 220 fs/xfs/scrub/dir.c error = xfs_dir3_data_read(ds->dargs.trans, dp, rec_bno, -2, &bp); ds 221 fs/xfs/scrub/dir.c if (!xchk_fblock_process_error(ds->sc, XFS_DATA_FORK, rec_bno, ds 225 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(ds->sc, XFS_DATA_FORK, rec_bno); ds 228 fs/xfs/scrub/dir.c xchk_buffer_recheck(ds->sc, bp); ds 230 fs/xfs/scrub/dir.c if (ds->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) ds 239 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(ds->sc, XFS_DATA_FORK, rec_bno); ds 257 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(ds->sc, XFS_DATA_FORK, rec_bno); ds 266 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(ds->sc, XFS_DATA_FORK, rec_bno); ds 268 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(ds->sc, XFS_DATA_FORK, rec_bno); ds 273 fs/xfs/scrub/dir.c xchk_fblock_set_corrupt(ds->sc, XFS_DATA_FORK, rec_bno); ds 276 fs/xfs/scrub/dir.c xfs_trans_brelse(ds->dargs.trans, bp); ds 17 include/linux/dsa/8021q.h int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int index, ds 23 include/linux/dsa/8021q.h u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port); ds 25 include/linux/dsa/8021q.h u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port); ds 33 include/linux/dsa/8021q.h int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int index, ds 45 include/linux/dsa/8021q.h u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port) ds 50 include/linux/dsa/8021q.h u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port) ds 27 include/linux/dsa/lan9303.h struct dsa_switch *ds; ds 1561 include/linux/nfs_xdr.h struct pnfs_ds_commit_info *ds; ds 302 include/linux/nvme.h __u8 ds; ds 133 include/net/dsa.h struct dsa_switch *ds[DSA_MAX_SWITCHES]; ds 183 include/net/dsa.h struct dsa_switch *ds; ds 283 include/net/dsa.h static inline const struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) ds 285 include/net/dsa.h return &ds->ports[p]; ds 288 include/net/dsa.h static inline bool dsa_is_unused_port(struct dsa_switch *ds, int p) ds 290 include/net/dsa.h return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_UNUSED; ds 293 include/net/dsa.h static inline bool dsa_is_cpu_port(struct dsa_switch *ds, int p) ds 295 include/net/dsa.h return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_CPU; ds 298 include/net/dsa.h static inline bool dsa_is_dsa_port(struct dsa_switch *ds, int p) ds 300 include/net/dsa.h return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_DSA; ds 303 include/net/dsa.h static inline bool dsa_is_user_port(struct dsa_switch *ds, int p) ds 305 include/net/dsa.h return dsa_to_port(ds, p)->type == DSA_PORT_TYPE_USER; ds 308 include/net/dsa.h static inline u32 dsa_user_ports(struct dsa_switch *ds) ds 313 include/net/dsa.h for (p = 0; p < ds->num_ports; p++) ds 314 include/net/dsa.h if (dsa_is_user_port(ds, p)) ds 321 include/net/dsa.h static inline unsigned int dsa_towards_port(struct dsa_switch *ds, int device, ds 324 include/net/dsa.h if (device == ds->index) ds 327 include/net/dsa.h return ds->rtable[device]; ds 331 include/net/dsa.h static inline unsigned int dsa_upstream_port(struct dsa_switch *ds, int port) ds 333 include/net/dsa.h const struct dsa_port *dp = dsa_to_port(ds, port); ds 339 include/net/dsa.h return dsa_towards_port(ds, cpu_dp->ds->index, cpu_dp->index); ds 344 include/net/dsa.h const struct dsa_switch *ds = dp->ds; ds 346 include/net/dsa.h if (ds->vlan_filtering_is_global) ds 347 include/net/dsa.h return ds->vlan_filtering; ds 355 include/net/dsa.h enum dsa_tag_protocol (*get_tag_protocol)(struct dsa_switch *ds, ds 358 include/net/dsa.h int (*setup)(struct dsa_switch *ds); ds 359 include/net/dsa.h void (*teardown)(struct dsa_switch *ds); ds 360 include/net/dsa.h u32 (*get_phy_flags)(struct dsa_switch *ds, int port); ds 365 include/net/dsa.h int (*phy_read)(struct dsa_switch *ds, int port, int regnum); ds 366 include/net/dsa.h int (*phy_write)(struct dsa_switch *ds, int port, ds 372 include/net/dsa.h void (*adjust_link)(struct dsa_switch *ds, int port, ds 374 include/net/dsa.h void (*fixed_link_update)(struct dsa_switch *ds, int port, ds 380 include/net/dsa.h void (*phylink_validate)(struct dsa_switch *ds, int port, ds 383 include/net/dsa.h int (*phylink_mac_link_state)(struct dsa_switch *ds, int port, ds 385 include/net/dsa.h void (*phylink_mac_config)(struct dsa_switch *ds, int port, ds 388 include/net/dsa.h void (*phylink_mac_an_restart)(struct dsa_switch *ds, int port); ds 389 include/net/dsa.h void (*phylink_mac_link_down)(struct dsa_switch *ds, int port, ds 392 include/net/dsa.h void (*phylink_mac_link_up)(struct dsa_switch *ds, int port, ds 396 include/net/dsa.h void (*phylink_fixed_state)(struct dsa_switch *ds, int port, ds 401 include/net/dsa.h void (*get_strings)(struct dsa_switch *ds, int port, ds 403 include/net/dsa.h void (*get_ethtool_stats)(struct dsa_switch *ds, ds 405 include/net/dsa.h int (*get_sset_count)(struct dsa_switch *ds, int port, int sset); ds 406 include/net/dsa.h void (*get_ethtool_phy_stats)(struct dsa_switch *ds, ds 412 include/net/dsa.h void (*get_wol)(struct dsa_switch *ds, int port, ds 414 include/net/dsa.h int (*set_wol)(struct dsa_switch *ds, int port, ds 420 include/net/dsa.h int (*get_ts_info)(struct dsa_switch *ds, int port, ds 426 include/net/dsa.h int (*suspend)(struct dsa_switch *ds); ds 427 include/net/dsa.h int (*resume)(struct dsa_switch *ds); ds 432 include/net/dsa.h int (*port_enable)(struct dsa_switch *ds, int port, ds 434 include/net/dsa.h void (*port_disable)(struct dsa_switch *ds, int port); ds 439 include/net/dsa.h int (*set_mac_eee)(struct dsa_switch *ds, int port, ds 441 include/net/dsa.h int (*get_mac_eee)(struct dsa_switch *ds, int port, ds 445 include/net/dsa.h int (*get_eeprom_len)(struct dsa_switch *ds); ds 446 include/net/dsa.h int (*get_eeprom)(struct dsa_switch *ds, ds 448 include/net/dsa.h int (*set_eeprom)(struct dsa_switch *ds, ds 454 include/net/dsa.h int (*get_regs_len)(struct dsa_switch *ds, int port); ds 455 include/net/dsa.h void (*get_regs)(struct dsa_switch *ds, int port, ds 461 include/net/dsa.h int (*set_ageing_time)(struct dsa_switch *ds, unsigned int msecs); ds 462 include/net/dsa.h int (*port_bridge_join)(struct dsa_switch *ds, int port, ds 464 include/net/dsa.h void (*port_bridge_leave)(struct dsa_switch *ds, int port, ds 466 include/net/dsa.h void (*port_stp_state_set)(struct dsa_switch *ds, int port, ds 468 include/net/dsa.h void (*port_fast_age)(struct dsa_switch *ds, int port); ds 469 include/net/dsa.h int (*port_egress_floods)(struct dsa_switch *ds, int port, ds 475 include/net/dsa.h int (*port_vlan_filtering)(struct dsa_switch *ds, int port, ds 477 include/net/dsa.h int (*port_vlan_prepare)(struct dsa_switch *ds, int port, ds 479 include/net/dsa.h void (*port_vlan_add)(struct dsa_switch *ds, int port, ds 481 include/net/dsa.h int (*port_vlan_del)(struct dsa_switch *ds, int port, ds 486 include/net/dsa.h int (*port_fdb_add)(struct dsa_switch *ds, int port, ds 488 include/net/dsa.h int (*port_fdb_del)(struct dsa_switch *ds, int port, ds 490 include/net/dsa.h int (*port_fdb_dump)(struct dsa_switch *ds, int port, ds 496 include/net/dsa.h int (*port_mdb_prepare)(struct dsa_switch *ds, int port, ds 498 include/net/dsa.h void (*port_mdb_add)(struct dsa_switch *ds, int port, ds 500 include/net/dsa.h int (*port_mdb_del)(struct dsa_switch *ds, int port, ds 505 include/net/dsa.h int (*get_rxnfc)(struct dsa_switch *ds, int port, ds 507 include/net/dsa.h int (*set_rxnfc)(struct dsa_switch *ds, int port, ds 513 include/net/dsa.h int (*port_mirror_add)(struct dsa_switch *ds, int port, ds 516 include/net/dsa.h void (*port_mirror_del)(struct dsa_switch *ds, int port, ds 518 include/net/dsa.h int (*port_setup_tc)(struct dsa_switch *ds, int port, ds 524 include/net/dsa.h int (*crosschip_bridge_join)(struct dsa_switch *ds, int sw_index, ds 526 include/net/dsa.h void (*crosschip_bridge_leave)(struct dsa_switch *ds, int sw_index, ds 532 include/net/dsa.h int (*port_hwtstamp_get)(struct dsa_switch *ds, int port, ds 534 include/net/dsa.h int (*port_hwtstamp_set)(struct dsa_switch *ds, int port, ds 536 include/net/dsa.h bool (*port_txtstamp)(struct dsa_switch *ds, int port, ds 538 include/net/dsa.h bool (*port_rxtstamp)(struct dsa_switch *ds, int port, ds 544 include/net/dsa.h netdev_tx_t (*port_deferred_xmit)(struct dsa_switch *ds, int port, ds 574 include/net/dsa.h void dsa_unregister_switch(struct dsa_switch *ds); ds 575 include/net/dsa.h int dsa_register_switch(struct dsa_switch *ds); ds 577 include/net/dsa.h int dsa_switch_suspend(struct dsa_switch *ds); ds 578 include/net/dsa.h int dsa_switch_resume(struct dsa_switch *ds); ds 580 include/net/dsa.h static inline int dsa_switch_suspend(struct dsa_switch *ds) ds 584 include/net/dsa.h static inline int dsa_switch_resume(struct dsa_switch *ds) ds 645 include/net/dsa.h void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up); ds 458 include/soc/fsl/qman.h static inline void qm_fqd_set_stashing(struct qm_fqd *fqd, u8 as, u8 ds, u8 cs) ds 463 include/soc/fsl/qman.h ((ds & QM_FQD_XS_MASK) << QM_FQD_DS_OFF) | ds 21 include/uapi/video/uvesafb.h __u16 ds; ds 182 net/dsa/dsa.c struct dsa_switch *ds = p->dp->ds; ds 197 net/dsa/dsa.c if (likely(ds->ops->port_rxtstamp)) ds 198 net/dsa/dsa.c return ds->ops->port_rxtstamp(ds, p->dp->index, skb, type); ds 247 net/dsa/dsa.c static bool dsa_is_port_initialized(struct dsa_switch *ds, int p) ds 249 net/dsa/dsa.c return dsa_is_user_port(ds, p) && ds->ports[p].slave; ds 252 net/dsa/dsa.c int dsa_switch_suspend(struct dsa_switch *ds) ds 257 net/dsa/dsa.c for (i = 0; i < ds->num_ports; i++) { ds 258 net/dsa/dsa.c if (!dsa_is_port_initialized(ds, i)) ds 261 net/dsa/dsa.c ret = dsa_slave_suspend(ds->ports[i].slave); ds 266 net/dsa/dsa.c if (ds->ops->suspend) ds 267 net/dsa/dsa.c ret = ds->ops->suspend(ds); ds 273 net/dsa/dsa.c int dsa_switch_resume(struct dsa_switch *ds) ds 277 net/dsa/dsa.c if (ds->ops->resume) ds 278 net/dsa/dsa.c ret = ds->ops->resume(ds); ds 284 net/dsa/dsa.c for (i = 0; i < ds->num_ports; i++) { ds 285 net/dsa/dsa.c if (!dsa_is_port_initialized(ds, i)) ds 288 net/dsa/dsa.c ret = dsa_slave_resume(ds->ports[i].slave); ds 114 net/dsa/dsa2.c struct dsa_switch *ds; ds 119 net/dsa/dsa2.c ds = dst->ds[device]; ds 120 net/dsa/dsa2.c if (!ds) ds 123 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { ds 124 net/dsa/dsa2.c dp = &ds->ports[port]; ds 136 net/dsa/dsa2.c struct dsa_switch *ds = dp->ds; ds 137 net/dsa/dsa2.c struct dsa_switch_tree *dst = ds->dst; ds 150 net/dsa/dsa2.c ds->rtable[link_dp->ds->index] = dp->index; ds 156 net/dsa/dsa2.c static bool dsa_switch_setup_routing_table(struct dsa_switch *ds) ds 163 net/dsa/dsa2.c ds->rtable[i] = DSA_RTABLE_NONE; ds 165 net/dsa/dsa2.c for (i = 0; i < ds->num_ports; i++) { ds 166 net/dsa/dsa2.c dp = &ds->ports[i]; ds 180 net/dsa/dsa2.c struct dsa_switch *ds; ds 185 net/dsa/dsa2.c ds = dst->ds[device]; ds 186 net/dsa/dsa2.c if (!ds) ds 189 net/dsa/dsa2.c complete = dsa_switch_setup_routing_table(ds); ds 199 net/dsa/dsa2.c struct dsa_switch *ds; ds 204 net/dsa/dsa2.c ds = dst->ds[device]; ds 205 net/dsa/dsa2.c if (!ds) ds 208 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { ds 209 net/dsa/dsa2.c dp = &ds->ports[port]; ds 221 net/dsa/dsa2.c struct dsa_switch *ds; ds 234 net/dsa/dsa2.c ds = dst->ds[device]; ds 235 net/dsa/dsa2.c if (!ds) ds 238 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { ds 239 net/dsa/dsa2.c dp = &ds->ports[port]; ds 257 net/dsa/dsa2.c struct dsa_switch *ds = dp->ds; ds 258 net/dsa/dsa2.c struct dsa_switch_tree *dst = ds->dst; ds 264 net/dsa/dsa2.c struct devlink *dl = ds->devlink; ds 368 net/dsa/dsa2.c static int dsa_switch_setup(struct dsa_switch *ds) ds 377 net/dsa/dsa2.c ds->phys_mii_mask |= dsa_user_ports(ds); ds 382 net/dsa/dsa2.c ds->devlink = devlink_alloc(&dsa_devlink_ops, 0); ds 383 net/dsa/dsa2.c if (!ds->devlink) ds 386 net/dsa/dsa2.c err = devlink_register(ds->devlink, ds->dev); ds 390 net/dsa/dsa2.c err = dsa_switch_register_notifier(ds); ds 394 net/dsa/dsa2.c err = ds->ops->setup(ds); ds 398 net/dsa/dsa2.c if (!ds->slave_mii_bus && ds->ops->phy_read) { ds 399 net/dsa/dsa2.c ds->slave_mii_bus = devm_mdiobus_alloc(ds->dev); ds 400 net/dsa/dsa2.c if (!ds->slave_mii_bus) { ds 405 net/dsa/dsa2.c dsa_slave_mii_bus_init(ds); ds 407 net/dsa/dsa2.c err = mdiobus_register(ds->slave_mii_bus); ds 415 net/dsa/dsa2.c dsa_switch_unregister_notifier(ds); ds 417 net/dsa/dsa2.c devlink_unregister(ds->devlink); ds 419 net/dsa/dsa2.c devlink_free(ds->devlink); ds 420 net/dsa/dsa2.c ds->devlink = NULL; ds 425 net/dsa/dsa2.c static void dsa_switch_teardown(struct dsa_switch *ds) ds 427 net/dsa/dsa2.c if (ds->slave_mii_bus && ds->ops->phy_read) ds 428 net/dsa/dsa2.c mdiobus_unregister(ds->slave_mii_bus); ds 430 net/dsa/dsa2.c dsa_switch_unregister_notifier(ds); ds 432 net/dsa/dsa2.c if (ds->ops->teardown) ds 433 net/dsa/dsa2.c ds->ops->teardown(ds); ds 435 net/dsa/dsa2.c if (ds->devlink) { ds 436 net/dsa/dsa2.c devlink_unregister(ds->devlink); ds 437 net/dsa/dsa2.c devlink_free(ds->devlink); ds 438 net/dsa/dsa2.c ds->devlink = NULL; ds 445 net/dsa/dsa2.c struct dsa_switch *ds; ds 451 net/dsa/dsa2.c ds = dst->ds[device]; ds 452 net/dsa/dsa2.c if (!ds) ds 455 net/dsa/dsa2.c err = dsa_switch_setup(ds); ds 459 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { ds 460 net/dsa/dsa2.c dp = &ds->ports[port]; ds 472 net/dsa/dsa2.c ds = dst->ds[i]; ds 473 net/dsa/dsa2.c if (!ds) ds 476 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { ds 477 net/dsa/dsa2.c dp = &ds->ports[port]; ds 482 net/dsa/dsa2.c dsa_switch_teardown(ds); ds 490 net/dsa/dsa2.c struct dsa_switch *ds; ds 495 net/dsa/dsa2.c ds = dst->ds[device]; ds 496 net/dsa/dsa2.c if (!ds) ds 499 net/dsa/dsa2.c for (port = 0; port < ds->num_ports; port++) { ds 500 net/dsa/dsa2.c dp = &ds->ports[port]; ds 505 net/dsa/dsa2.c dsa_switch_teardown(ds); ds 588 net/dsa/dsa2.c dst->ds[index] = NULL; ds 593 net/dsa/dsa2.c struct dsa_switch *ds) ds 595 net/dsa/dsa2.c unsigned int index = ds->index; ds 598 net/dsa/dsa2.c if (dst->ds[index]) ds 602 net/dsa/dsa2.c dst->ds[index] = ds; ds 606 net/dsa/dsa2.c dst->ds[index] = NULL; ds 633 net/dsa/dsa2.c struct dsa_switch *ds = dp->ds; ds 634 net/dsa/dsa2.c struct dsa_switch_tree *dst = ds->dst; ds 638 net/dsa/dsa2.c tag_protocol = ds->ops->get_tag_protocol(ds, dp->index); ds 643 net/dsa/dsa2.c dev_warn(ds->dev, "No tagger for this switch\n"); ds 681 net/dsa/dsa2.c static int dsa_switch_parse_ports_of(struct dsa_switch *ds, ds 691 net/dsa/dsa2.c dev_err(ds->dev, "no ports child node found\n"); ds 700 net/dsa/dsa2.c if (reg >= ds->num_ports) { ds 705 net/dsa/dsa2.c dp = &ds->ports[reg]; ds 717 net/dsa/dsa2.c static int dsa_switch_parse_member_of(struct dsa_switch *ds, ds 728 net/dsa/dsa2.c ds->index = m[1]; ds 729 net/dsa/dsa2.c if (ds->index >= DSA_MAX_SWITCHES) ds 732 net/dsa/dsa2.c ds->dst = dsa_tree_touch(m[0]); ds 733 net/dsa/dsa2.c if (!ds->dst) ds 739 net/dsa/dsa2.c static int dsa_switch_parse_of(struct dsa_switch *ds, struct device_node *dn) ds 743 net/dsa/dsa2.c err = dsa_switch_parse_member_of(ds, dn); ds 747 net/dsa/dsa2.c return dsa_switch_parse_ports_of(ds, dn); ds 771 net/dsa/dsa2.c static int dsa_switch_parse_ports(struct dsa_switch *ds, ds 784 net/dsa/dsa2.c dp = &ds->ports[i]; ds 802 net/dsa/dsa2.c static int dsa_switch_parse(struct dsa_switch *ds, struct dsa_chip_data *cd) ds 804 net/dsa/dsa2.c ds->cd = cd; ds 809 net/dsa/dsa2.c ds->index = 0; ds 810 net/dsa/dsa2.c ds->dst = dsa_tree_touch(0); ds 811 net/dsa/dsa2.c if (!ds->dst) ds 814 net/dsa/dsa2.c return dsa_switch_parse_ports(ds, cd); ds 817 net/dsa/dsa2.c static int dsa_switch_add(struct dsa_switch *ds) ds 819 net/dsa/dsa2.c struct dsa_switch_tree *dst = ds->dst; ds 821 net/dsa/dsa2.c return dsa_tree_add_switch(dst, ds); ds 824 net/dsa/dsa2.c static int dsa_switch_probe(struct dsa_switch *ds) ds 826 net/dsa/dsa2.c struct dsa_chip_data *pdata = ds->dev->platform_data; ds 827 net/dsa/dsa2.c struct device_node *np = ds->dev->of_node; ds 831 net/dsa/dsa2.c err = dsa_switch_parse_of(ds, np); ds 833 net/dsa/dsa2.c err = dsa_switch_parse(ds, pdata); ds 840 net/dsa/dsa2.c return dsa_switch_add(ds); ds 845 net/dsa/dsa2.c struct dsa_switch *ds; ds 848 net/dsa/dsa2.c ds = devm_kzalloc(dev, struct_size(ds, ports, n), GFP_KERNEL); ds 849 net/dsa/dsa2.c if (!ds) ds 852 net/dsa/dsa2.c ds->dev = dev; ds 853 net/dsa/dsa2.c ds->num_ports = n; ds 855 net/dsa/dsa2.c for (i = 0; i < ds->num_ports; ++i) { ds 856 net/dsa/dsa2.c ds->ports[i].index = i; ds 857 net/dsa/dsa2.c ds->ports[i].ds = ds; ds 860 net/dsa/dsa2.c return ds; ds 864 net/dsa/dsa2.c int dsa_register_switch(struct dsa_switch *ds) ds 869 net/dsa/dsa2.c err = dsa_switch_probe(ds); ds 870 net/dsa/dsa2.c dsa_tree_put(ds->dst); ds 877 net/dsa/dsa2.c static void dsa_switch_remove(struct dsa_switch *ds) ds 879 net/dsa/dsa2.c struct dsa_switch_tree *dst = ds->dst; ds 880 net/dsa/dsa2.c unsigned int index = ds->index; ds 885 net/dsa/dsa2.c void dsa_unregister_switch(struct dsa_switch *ds) ds 888 net/dsa/dsa2.c dsa_switch_remove(ds); ds 107 net/dsa/dsa_priv.h struct dsa_switch *ds; ds 113 net/dsa/dsa_priv.h ds = dst->ds[device]; ds 114 net/dsa/dsa_priv.h if (!ds) ds 117 net/dsa/dsa_priv.h if (port < 0 || port >= ds->num_ports) ds 120 net/dsa/dsa_priv.h slave_port = &ds->ports[port]; ds 186 net/dsa/dsa_priv.h void dsa_slave_mii_bus_init(struct dsa_switch *ds); ds 212 net/dsa/dsa_priv.h int dsa_switch_register_notifier(struct dsa_switch *ds); ds 213 net/dsa/dsa_priv.h void dsa_switch_unregister_notifier(struct dsa_switch *ds); ds 15 net/dsa/master.c struct dsa_switch *ds = cpu_dp->ds; ds 30 net/dsa/master.c if (ds->ops->get_regs_len) { ds 31 net/dsa/master.c len = ds->ops->get_regs_len(ds, port); ds 45 net/dsa/master.c struct dsa_switch *ds = cpu_dp->ds; ds 66 net/dsa/master.c if (ds->ops->get_regs_len && ds->ops->get_regs) { ds 67 net/dsa/master.c len = ds->ops->get_regs_len(ds, port); ds 71 net/dsa/master.c ds->ops->get_regs(ds, port, cpu_regs, data); ds 81 net/dsa/master.c struct dsa_switch *ds = cpu_dp->ds; ds 90 net/dsa/master.c if (ds->ops->get_ethtool_stats) ds 91 net/dsa/master.c ds->ops->get_ethtool_stats(ds, port, data + count); ds 100 net/dsa/master.c struct dsa_switch *ds = cpu_dp->ds; ds 116 net/dsa/master.c if (ds->ops->get_ethtool_phy_stats) ds 117 net/dsa/master.c ds->ops->get_ethtool_phy_stats(ds, port, data + count); ds 124 net/dsa/master.c struct dsa_switch *ds = cpu_dp->ds; ds 136 net/dsa/master.c if (ds->ops->get_sset_count) ds 137 net/dsa/master.c count += ds->ops->get_sset_count(ds, cpu_dp->index, sset); ds 147 net/dsa/master.c struct dsa_switch *ds = cpu_dp->ds; ds 173 net/dsa/master.c if (ds->ops->get_strings) { ds 179 net/dsa/master.c ds->ops->get_strings(ds, port, stringset, ndata); ds 180 net/dsa/master.c count = ds->ops->get_sset_count(ds, port, stringset); ds 203 net/dsa/master.c struct dsa_switch *ds = cpu_dp->ds; ds 206 net/dsa/master.c ops = devm_kzalloc(ds->dev, sizeof(*ops), GFP_KERNEL); ds 237 net/dsa/master.c struct dsa_switch *ds = cpu_dp->ds; ds 243 net/dsa/master.c ops = devm_kzalloc(ds->dev, sizeof(*ops), GFP_KERNEL); ds 18 net/dsa/port.c struct raw_notifier_head *nh = &dp->ds->dst->nh; ds 29 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 33 net/dsa/port.c return ds->ops->port_stp_state_set ? 0 : -EOPNOTSUPP; ds 35 net/dsa/port.c if (ds->ops->port_stp_state_set) ds 36 net/dsa/port.c ds->ops->port_stp_state_set(ds, port, state); ds 38 net/dsa/port.c if (ds->ops->port_fast_age) { ds 49 net/dsa/port.c ds->ops->port_fast_age(ds, port); ds 68 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 72 net/dsa/port.c if (ds->ops->port_enable) { ds 73 net/dsa/port.c err = ds->ops->port_enable(ds, port, phy); ds 100 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 109 net/dsa/port.c if (ds->ops->port_disable) ds 110 net/dsa/port.c ds->ops->port_disable(ds, port); ds 123 net/dsa/port.c .sw_index = dp->ds->index, ds 153 net/dsa/port.c .sw_index = dp->ds->index, ds 180 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 183 net/dsa/port.c if (!ds->vlan_filtering_is_global) ds 191 net/dsa/port.c for (i = 0; i < ds->num_ports; i++) { ds 194 net/dsa/port.c other_bridge = dsa_to_port(ds, i)->bridge_dev; ds 203 net/dsa/port.c dev_err(ds->dev, "VLAN filtering is a global setting\n"); ds 213 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 220 net/dsa/port.c if (!ds->ops->port_vlan_filtering) ds 229 net/dsa/port.c err = ds->ops->port_vlan_filtering(ds, dp->index, ds 234 net/dsa/port.c if (ds->vlan_filtering_is_global) ds 235 net/dsa/port.c ds->vlan_filtering = vlan_filtering; ds 262 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 264 net/dsa/port.c if (!ds->ops->port_egress_floods || ds 274 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 281 net/dsa/port.c if (ds->ops->port_egress_floods) ds 282 net/dsa/port.c err = ds->ops->port_egress_floods(ds, port, flags & BR_FLOOD, ds 291 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 295 net/dsa/port.c return ds->ops->port_egress_floods ? 0 : -EOPNOTSUPP; ds 297 net/dsa/port.c return ds->ops->port_egress_floods(ds, port, true, mrouter); ds 304 net/dsa/port.c .sw_index = dp->ds->index, ds 317 net/dsa/port.c .sw_index = dp->ds->index, ds 329 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 332 net/dsa/port.c if (!ds->ops->port_fdb_dump) ds 335 net/dsa/port.c return ds->ops->port_fdb_dump(ds, port, cb, data); ds 343 net/dsa/port.c .sw_index = dp->ds->index, ds 356 net/dsa/port.c .sw_index = dp->ds->index, ds 369 net/dsa/port.c .sw_index = dp->ds->index, ds 382 net/dsa/port.c .sw_index = dp->ds->index, ds 447 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 449 net/dsa/port.c if (!ds->ops->phylink_validate) ds 452 net/dsa/port.c ds->ops->phylink_validate(ds, dp->index, supported, state); ds 460 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 463 net/dsa/port.c if (!ds->ops->phylink_mac_link_state) ds 466 net/dsa/port.c return ds->ops->phylink_mac_link_state(ds, dp->index, state); ds 475 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 477 net/dsa/port.c if (!ds->ops->phylink_mac_config) ds 480 net/dsa/port.c ds->ops->phylink_mac_config(ds, dp->index, mode, state); ds 487 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 489 net/dsa/port.c if (!ds->ops->phylink_mac_an_restart) ds 492 net/dsa/port.c ds->ops->phylink_mac_an_restart(ds, dp->index); ds 502 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 504 net/dsa/port.c if (dsa_is_user_port(ds, dp->index)) ds 507 net/dsa/port.c if (!ds->ops->phylink_mac_link_down) { ds 508 net/dsa/port.c if (ds->ops->adjust_link && phydev) ds 509 net/dsa/port.c ds->ops->adjust_link(ds, dp->index, phydev); ds 513 net/dsa/port.c ds->ops->phylink_mac_link_down(ds, dp->index, mode, interface); ds 523 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 525 net/dsa/port.c if (!ds->ops->phylink_mac_link_up) { ds 526 net/dsa/port.c if (ds->ops->adjust_link && phydev) ds 527 net/dsa/port.c ds->ops->adjust_link(ds, dp->index, phydev); ds 531 net/dsa/port.c ds->ops->phylink_mac_link_up(ds, dp->index, mode, interface, phydev); ds 546 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 572 net/dsa/port.c if (ds->ops->adjust_link) ds 573 net/dsa/port.c ds->ops->adjust_link(ds, port, phydev); ds 575 net/dsa/port.c dev_dbg(ds->dev, "enabled port's phy: %s", phydev_name(phydev)); ds 585 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 593 net/dsa/port.c dev_err(ds->dev, ds 608 net/dsa/port.c if (ds->ops->adjust_link) ds 609 net/dsa/port.c ds->ops->adjust_link(ds, port, phydev); ds 618 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 626 net/dsa/port.c dp->pl_config.dev = ds->dev; ds 651 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 654 net/dsa/port.c if (!ds->ops->adjust_link) { ds 661 net/dsa/port.c dev_warn(ds->dev, ds 672 net/dsa/port.c struct dsa_switch *ds = dp->ds; ds 674 net/dsa/port.c if (!ds->ops->adjust_link && dp->pl) { ds 30 net/dsa/slave.c struct dsa_switch *ds = bus->priv; ds 32 net/dsa/slave.c if (ds->phys_mii_mask & (1 << addr)) ds 33 net/dsa/slave.c return ds->ops->phy_read(ds, addr, reg); ds 40 net/dsa/slave.c struct dsa_switch *ds = bus->priv; ds 42 net/dsa/slave.c if (ds->phys_mii_mask & (1 << addr)) ds 43 net/dsa/slave.c return ds->ops->phy_write(ds, addr, reg, val); ds 48 net/dsa/slave.c void dsa_slave_mii_bus_init(struct dsa_switch *ds) ds 50 net/dsa/slave.c ds->slave_mii_bus->priv = (void *)ds; ds 51 net/dsa/slave.c ds->slave_mii_bus->name = "dsa slave smi"; ds 52 net/dsa/slave.c ds->slave_mii_bus->read = dsa_slave_phy_read; ds 53 net/dsa/slave.c ds->slave_mii_bus->write = dsa_slave_phy_write; ds 54 net/dsa/slave.c snprintf(ds->slave_mii_bus->id, MII_BUS_ID_SIZE, "dsa-%d.%d", ds 55 net/dsa/slave.c ds->dst->index, ds->index); ds 56 net/dsa/slave.c ds->slave_mii_bus->parent = ds->dev; ds 57 net/dsa/slave.c ds->slave_mii_bus->phy_mask = ~ds->phys_mii_mask; ds 257 net/dsa/slave.c struct dsa_switch *ds = p->dp->ds; ds 263 net/dsa/slave.c if (ds->ops->port_hwtstamp_get) ds 264 net/dsa/slave.c return ds->ops->port_hwtstamp_get(ds, port, ifr); ds 267 net/dsa/slave.c if (ds->ops->port_hwtstamp_set) ds 268 net/dsa/slave.c return ds->ops->port_hwtstamp_set(ds, port, ifr); ds 431 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 432 net/dsa/slave.c struct dsa_switch_tree *dst = ds->dst; ds 438 net/dsa/slave.c if (dp->ds->devlink) ds 464 net/dsa/slave.c struct dsa_switch *ds = p->dp->ds; ds 472 net/dsa/slave.c if (!ds->ops->port_txtstamp) ds 481 net/dsa/slave.c if (ds->ops->port_txtstamp(ds, p->dp->index, clone, type)) ds 553 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 556 net/dsa/slave.c if (unlikely(!ds->ops->port_deferred_xmit)) ds 560 net/dsa/slave.c ds->ops->port_deferred_xmit(ds, dp->index, skb); ds 576 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 578 net/dsa/slave.c if (ds->ops->get_regs_len) ds 579 net/dsa/slave.c return ds->ops->get_regs_len(ds, dp->index); ds 588 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 590 net/dsa/slave.c if (ds->ops->get_regs) ds 591 net/dsa/slave.c ds->ops->get_regs(ds, dp->index, regs, _p); ds 604 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 606 net/dsa/slave.c if (ds->cd && ds->cd->eeprom_len) ds 607 net/dsa/slave.c return ds->cd->eeprom_len; ds 609 net/dsa/slave.c if (ds->ops->get_eeprom_len) ds 610 net/dsa/slave.c return ds->ops->get_eeprom_len(ds); ds 619 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 621 net/dsa/slave.c if (ds->ops->get_eeprom) ds 622 net/dsa/slave.c return ds->ops->get_eeprom(ds, eeprom, data); ds 631 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 633 net/dsa/slave.c if (ds->ops->set_eeprom) ds 634 net/dsa/slave.c return ds->ops->set_eeprom(ds, eeprom, data); ds 643 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 652 net/dsa/slave.c if (ds->ops->get_strings) ds 653 net/dsa/slave.c ds->ops->get_strings(ds, dp->index, stringset, ds 664 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 685 net/dsa/slave.c if (ds->ops->get_ethtool_stats) ds 686 net/dsa/slave.c ds->ops->get_ethtool_stats(ds, dp->index, data + 4); ds 692 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 698 net/dsa/slave.c if (ds->ops->get_sset_count) ds 699 net/dsa/slave.c count += ds->ops->get_sset_count(ds, dp->index, sset); ds 710 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 714 net/dsa/slave.c if (ds->ops->get_wol) ds 715 net/dsa/slave.c ds->ops->get_wol(ds, dp->index, w); ds 721 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 726 net/dsa/slave.c if (ds->ops->set_wol) ds 727 net/dsa/slave.c ret = ds->ops->set_wol(ds, dp->index, w); ds 735 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 742 net/dsa/slave.c if (!ds->ops->set_mac_eee) ds 745 net/dsa/slave.c ret = ds->ops->set_mac_eee(ds, dp->index, e); ds 755 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 762 net/dsa/slave.c if (!ds->ops->get_mac_eee) ds 765 net/dsa/slave.c ret = ds->ops->get_mac_eee(ds, dp->index, e); ds 839 net/dsa/slave.c if (dp->ds->devlink) ds 869 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 874 net/dsa/slave.c if (!ds->ops->port_mirror_add) ds 904 net/dsa/slave.c err = ds->ops->port_mirror_add(ds, dp->index, mirror, ingress); ds 921 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 923 net/dsa/slave.c if (!ds->ops->port_mirror_del) ds 934 net/dsa/slave.c ds->ops->port_mirror_del(ds, dp->index, &mall_tc_entry->mirror); ds 1035 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 1040 net/dsa/slave.c if (!ds->ops->port_setup_tc) ds 1043 net/dsa/slave.c return ds->ops->port_setup_tc(ds, dp->index, type, type_data); ds 1078 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 1080 net/dsa/slave.c if (!ds->ops->get_rxnfc) ds 1083 net/dsa/slave.c return ds->ops->get_rxnfc(ds, dp->index, nfc, rule_locs); ds 1090 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 1092 net/dsa/slave.c if (!ds->ops->set_rxnfc) ds 1095 net/dsa/slave.c return ds->ops->set_rxnfc(ds, dp->index, nfc); ds 1102 net/dsa/slave.c struct dsa_switch *ds = p->dp->ds; ds 1104 net/dsa/slave.c if (!ds->ops->get_ts_info) ds 1107 net/dsa/slave.c return ds->ops->get_ts_info(ds, p->dp->index, ts); ds 1221 net/dsa/slave.c return dp->ds->devlink ? &dp->devlink_port : NULL; ds 1254 net/dsa/slave.c void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up) ds 1256 net/dsa/slave.c const struct dsa_port *dp = dsa_to_port(ds, port); ds 1266 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 1271 net/dsa/slave.c ds->ops->phylink_fixed_state(ds, dp->index, state); ds 1278 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 1280 net/dsa/slave.c slave_dev->phydev = mdiobus_get_phy(ds->slave_mii_bus, addr); ds 1293 net/dsa/slave.c struct dsa_switch *ds = dp->ds; ds 1316 net/dsa/slave.c if (ds->ops->phylink_fixed_state) ds 1319 net/dsa/slave.c if (ds->ops->get_phy_flags) ds 1320 net/dsa/slave.c phy_flags = ds->ops->get_phy_flags(ds, dp->index); ds 1323 net/dsa/slave.c if (ret == -ENODEV && ds->slave_mii_bus) { ds 1380 net/dsa/slave.c .switch_number = dp->ds->index, ds 1393 net/dsa/slave.c struct dsa_switch *ds = port->ds; ds 1399 net/dsa/slave.c if (!ds->num_tx_queues) ds 1400 net/dsa/slave.c ds->num_tx_queues = 1; ds 1404 net/dsa/slave.c ds->num_tx_queues, 1); ds 1409 net/dsa/slave.c if (ds->ops->port_vlan_add && ds->ops->port_vlan_del) ds 1424 net/dsa/slave.c SET_NETDEV_DEV(slave_dev, port->ds->dev); ds 17 net/dsa/switch.c static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds, ds 22 net/dsa/switch.c for (i = 0; i < ds->num_ports; ++i) { ds 23 net/dsa/switch.c struct dsa_port *dp = &ds->ports[i]; ds 32 net/dsa/switch.c static int dsa_switch_ageing_time(struct dsa_switch *ds, ds 39 net/dsa/switch.c if (ds->ageing_time_min && ageing_time < ds->ageing_time_min) ds 41 net/dsa/switch.c if (ds->ageing_time_max && ageing_time > ds->ageing_time_max) ds 47 net/dsa/switch.c ageing_time = dsa_switch_fastest_ageing_time(ds, ageing_time); ds 49 net/dsa/switch.c if (ds->ops->set_ageing_time) ds 50 net/dsa/switch.c return ds->ops->set_ageing_time(ds, ageing_time); ds 55 net/dsa/switch.c static int dsa_switch_bridge_join(struct dsa_switch *ds, ds 58 net/dsa/switch.c if (ds->index == info->sw_index && ds->ops->port_bridge_join) ds 59 net/dsa/switch.c return ds->ops->port_bridge_join(ds, info->port, info->br); ds 61 net/dsa/switch.c if (ds->index != info->sw_index && ds->ops->crosschip_bridge_join) ds 62 net/dsa/switch.c return ds->ops->crosschip_bridge_join(ds, info->sw_index, ds 68 net/dsa/switch.c static int dsa_switch_bridge_leave(struct dsa_switch *ds, ds 74 net/dsa/switch.c if (ds->index == info->sw_index && ds->ops->port_bridge_leave) ds 75 net/dsa/switch.c ds->ops->port_bridge_leave(ds, info->port, info->br); ds 77 net/dsa/switch.c if (ds->index != info->sw_index && ds->ops->crosschip_bridge_leave) ds 78 net/dsa/switch.c ds->ops->crosschip_bridge_leave(ds, info->sw_index, info->port, ds 88 net/dsa/switch.c if (unset_vlan_filtering && ds->vlan_filtering_is_global) { ds 89 net/dsa/switch.c for (i = 0; i < ds->num_ports; i++) { ds 92 net/dsa/switch.c if (dsa_to_port(ds, i)->bridge_dev == info->br) { ds 101 net/dsa/switch.c err = dsa_port_vlan_filtering(&ds->ports[info->port], ds 109 net/dsa/switch.c static int dsa_switch_fdb_add(struct dsa_switch *ds, ds 112 net/dsa/switch.c int port = dsa_towards_port(ds, info->sw_index, info->port); ds 114 net/dsa/switch.c if (!ds->ops->port_fdb_add) ds 117 net/dsa/switch.c return ds->ops->port_fdb_add(ds, port, info->addr, info->vid); ds 120 net/dsa/switch.c static int dsa_switch_fdb_del(struct dsa_switch *ds, ds 123 net/dsa/switch.c int port = dsa_towards_port(ds, info->sw_index, info->port); ds 125 net/dsa/switch.c if (!ds->ops->port_fdb_del) ds 128 net/dsa/switch.c return ds->ops->port_fdb_del(ds, port, info->addr, info->vid); ds 131 net/dsa/switch.c static bool dsa_switch_mdb_match(struct dsa_switch *ds, int port, ds 134 net/dsa/switch.c if (ds->index == info->sw_index && port == info->port) ds 137 net/dsa/switch.c if (dsa_is_dsa_port(ds, port)) ds 143 net/dsa/switch.c static int dsa_switch_mdb_prepare(struct dsa_switch *ds, ds 148 net/dsa/switch.c if (!ds->ops->port_mdb_prepare || !ds->ops->port_mdb_add) ds 151 net/dsa/switch.c for (port = 0; port < ds->num_ports; port++) { ds 152 net/dsa/switch.c if (dsa_switch_mdb_match(ds, port, info)) { ds 153 net/dsa/switch.c err = ds->ops->port_mdb_prepare(ds, port, info->mdb); ds 162 net/dsa/switch.c static int dsa_switch_mdb_add(struct dsa_switch *ds, ds 168 net/dsa/switch.c return dsa_switch_mdb_prepare(ds, info); ds 170 net/dsa/switch.c if (!ds->ops->port_mdb_add) ds 173 net/dsa/switch.c for (port = 0; port < ds->num_ports; port++) ds 174 net/dsa/switch.c if (dsa_switch_mdb_match(ds, port, info)) ds 175 net/dsa/switch.c ds->ops->port_mdb_add(ds, port, info->mdb); ds 180 net/dsa/switch.c static int dsa_switch_mdb_del(struct dsa_switch *ds, ds 183 net/dsa/switch.c if (!ds->ops->port_mdb_del) ds 186 net/dsa/switch.c if (ds->index == info->sw_index) ds 187 net/dsa/switch.c return ds->ops->port_mdb_del(ds, info->port, info->mdb); ds 207 net/dsa/switch.c static int dsa_port_vlan_check(struct dsa_switch *ds, int port, ds 210 net/dsa/switch.c const struct dsa_port *dp = dsa_to_port(ds, port); ds 229 net/dsa/switch.c static bool dsa_switch_vlan_match(struct dsa_switch *ds, int port, ds 232 net/dsa/switch.c if (ds->index == info->sw_index && port == info->port) ds 235 net/dsa/switch.c if (dsa_is_dsa_port(ds, port)) ds 241 net/dsa/switch.c static int dsa_switch_vlan_prepare(struct dsa_switch *ds, ds 246 net/dsa/switch.c if (!ds->ops->port_vlan_prepare || !ds->ops->port_vlan_add) ds 249 net/dsa/switch.c for (port = 0; port < ds->num_ports; port++) { ds 250 net/dsa/switch.c if (dsa_switch_vlan_match(ds, port, info)) { ds 251 net/dsa/switch.c err = dsa_port_vlan_check(ds, port, info->vlan); ds 255 net/dsa/switch.c err = ds->ops->port_vlan_prepare(ds, port, info->vlan); ds 264 net/dsa/switch.c static int dsa_switch_vlan_add(struct dsa_switch *ds, ds 270 net/dsa/switch.c return dsa_switch_vlan_prepare(ds, info); ds 272 net/dsa/switch.c if (!ds->ops->port_vlan_add) ds 275 net/dsa/switch.c for (port = 0; port < ds->num_ports; port++) ds 276 net/dsa/switch.c if (dsa_switch_vlan_match(ds, port, info)) ds 277 net/dsa/switch.c ds->ops->port_vlan_add(ds, port, info->vlan); ds 282 net/dsa/switch.c static int dsa_switch_vlan_del(struct dsa_switch *ds, ds 285 net/dsa/switch.c if (!ds->ops->port_vlan_del) ds 288 net/dsa/switch.c if (ds->index == info->sw_index) ds 289 net/dsa/switch.c return ds->ops->port_vlan_del(ds, info->port, info->vlan); ds 300 net/dsa/switch.c struct dsa_switch *ds = container_of(nb, struct dsa_switch, nb); ds 305 net/dsa/switch.c err = dsa_switch_ageing_time(ds, info); ds 308 net/dsa/switch.c err = dsa_switch_bridge_join(ds, info); ds 311 net/dsa/switch.c err = dsa_switch_bridge_leave(ds, info); ds 314 net/dsa/switch.c err = dsa_switch_fdb_add(ds, info); ds 317 net/dsa/switch.c err = dsa_switch_fdb_del(ds, info); ds 320 net/dsa/switch.c err = dsa_switch_mdb_add(ds, info); ds 323 net/dsa/switch.c err = dsa_switch_mdb_del(ds, info); ds 326 net/dsa/switch.c err = dsa_switch_vlan_add(ds, info); ds 329 net/dsa/switch.c err = dsa_switch_vlan_del(ds, info); ds 341 net/dsa/switch.c dev_dbg(ds->dev, "breaking chain for DSA event %lu (%d)\n", ds 347 net/dsa/switch.c int dsa_switch_register_notifier(struct dsa_switch *ds) ds 349 net/dsa/switch.c ds->nb.notifier_call = dsa_switch_event; ds 351 net/dsa/switch.c return raw_notifier_chain_register(&ds->dst->nh, &ds->nb); ds 354 net/dsa/switch.c void dsa_switch_unregister_notifier(struct dsa_switch *ds) ds 358 net/dsa/switch.c err = raw_notifier_chain_unregister(&ds->dst->nh, &ds->nb); ds 360 net/dsa/switch.c dev_err(ds->dev, "failed to unregister notifier (%d)\n", err); ds 65 net/dsa/tag_8021q.c u16 dsa_8021q_tx_vid(struct dsa_switch *ds, int port) ds 67 net/dsa/tag_8021q.c return DSA_8021Q_DIR_TX | DSA_8021Q_SWITCH_ID(ds->index) | ds 75 net/dsa/tag_8021q.c u16 dsa_8021q_rx_vid(struct dsa_switch *ds, int port) ds 77 net/dsa/tag_8021q.c return DSA_8021Q_DIR_RX | DSA_8021Q_SWITCH_ID(ds->index) | ds 96 net/dsa/tag_8021q.c static int dsa_8021q_restore_pvid(struct dsa_switch *ds, int port) ds 103 net/dsa/tag_8021q.c if (!dsa_is_user_port(ds, port)) ds 106 net/dsa/tag_8021q.c slave = ds->ports[port].slave; ds 117 net/dsa/tag_8021q.c dev_err(ds->dev, "Couldn't determine PVID attributes\n"); ds 121 net/dsa/tag_8021q.c return dsa_port_vid_add(&ds->ports[port], pvid, vinfo.flags); ds 130 net/dsa/tag_8021q.c static int dsa_8021q_vid_apply(struct dsa_switch *ds, int port, u16 vid, ds 133 net/dsa/tag_8021q.c struct dsa_port *dp = &ds->ports[port]; ds 149 net/dsa/tag_8021q.c if (!dsa_is_user_port(ds, port)) ds 221 net/dsa/tag_8021q.c int dsa_port_setup_8021q_tagging(struct dsa_switch *ds, int port, bool enabled) ds 223 net/dsa/tag_8021q.c int upstream = dsa_upstream_port(ds, port); ds 224 net/dsa/tag_8021q.c u16 rx_vid = dsa_8021q_rx_vid(ds, port); ds 225 net/dsa/tag_8021q.c u16 tx_vid = dsa_8021q_tx_vid(ds, port); ds 231 net/dsa/tag_8021q.c if (!dsa_is_user_port(ds, port)) ds 239 net/dsa/tag_8021q.c for (i = 0; i < ds->num_ports; i++) { ds 252 net/dsa/tag_8021q.c err = dsa_8021q_vid_apply(ds, i, rx_vid, flags, enabled); ds 254 net/dsa/tag_8021q.c dev_err(ds->dev, "Failed to apply RX VID %d to port %d: %d\n", ds 263 net/dsa/tag_8021q.c err = dsa_8021q_vid_apply(ds, upstream, rx_vid, 0, enabled); ds 265 net/dsa/tag_8021q.c dev_err(ds->dev, "Failed to apply RX VID %d to port %d: %d\n", ds 271 net/dsa/tag_8021q.c err = dsa_8021q_vid_apply(ds, port, tx_vid, BRIDGE_VLAN_INFO_UNTAGGED, ds 274 net/dsa/tag_8021q.c dev_err(ds->dev, "Failed to apply TX VID %d on port %d: %d\n", ds 278 net/dsa/tag_8021q.c err = dsa_8021q_vid_apply(ds, upstream, tx_vid, 0, enabled); ds 280 net/dsa/tag_8021q.c dev_err(ds->dev, "Failed to apply TX VID %d on port %d: %d\n", ds 286 net/dsa/tag_8021q.c err = dsa_8021q_restore_pvid(ds, port); ds 33 net/dsa/tag_dsa.c dsa_header[0] = 0x60 | dp->ds->index; ds 54 net/dsa/tag_dsa.c dsa_header[0] = 0x40 | dp->ds->index; ds 42 net/dsa/tag_edsa.c edsa_header[4] = 0x60 | dp->ds->index; ds 67 net/dsa/tag_edsa.c edsa_header[4] = 0x40 | dp->ds->index; ds 50 net/dsa/tag_lan9303.c struct lan9303 *chip = dp->ds->priv; ds 90 net/dsa/tag_sja1105.c struct dsa_switch *ds = dp->ds; ds 91 net/dsa/tag_sja1105.c u16 tx_vid = dsa_8021q_tx_vid(ds, dp->index); ds 169 net/dsa/tag_sja1105.c dev_err_ratelimited(dp->ds->dev, ds 209 net/dsa/tag_sja1105.c dev_err_ratelimited(dp->ds->dev, ds 216 net/dsa/tag_sja1105.c dev_err_ratelimited(dp->ds->dev, ds 126 net/netfilter/ipvs/ip_vs_mh.c struct ip_vs_mh_dest_setup *ds; ds 139 net/netfilter/ipvs/ip_vs_mh.c ds = &s->dest_setup[0]; ds 143 net/netfilter/ipvs/ip_vs_mh.c ds->offset = ip_vs_mh_hashkey(svc->af, &dest->addr, ds 146 net/netfilter/ipvs/ip_vs_mh.c ds->skip = ip_vs_mh_hashkey(svc->af, &dest->addr, ds 149 net/netfilter/ipvs/ip_vs_mh.c ds->perm = ds->offset; ds 152 net/netfilter/ipvs/ip_vs_mh.c ds->turns = ((lw / s->gcd) >> s->rshift) ? : (lw != 0); ds 153 net/netfilter/ipvs/ip_vs_mh.c ds++; ds 165 net/netfilter/ipvs/ip_vs_mh.c struct ip_vs_mh_dest_setup *ds; ds 189 net/netfilter/ipvs/ip_vs_mh.c ds = &s->dest_setup[0]; ds 192 net/netfilter/ipvs/ip_vs_mh.c if (ds->turns < 1) { ds 194 net/netfilter/ipvs/ip_vs_mh.c ds++; ds 198 net/netfilter/ipvs/ip_vs_mh.c c = ds->perm; ds 201 net/netfilter/ipvs/ip_vs_mh.c ds->perm += ds->skip; ds 202 net/netfilter/ipvs/ip_vs_mh.c if (ds->perm >= IP_VS_MH_TAB_SIZE) ds 203 net/netfilter/ipvs/ip_vs_mh.c ds->perm -= IP_VS_MH_TAB_SIZE; ds 204 net/netfilter/ipvs/ip_vs_mh.c c = ds->perm; ds 221 net/netfilter/ipvs/ip_vs_mh.c if (++dt_count >= ds->turns) { ds 224 net/netfilter/ipvs/ip_vs_mh.c ds++; ds 812 scripts/kconfig/confdata.c struct symbol *ds; ds 815 scripts/kconfig/confdata.c ds = sym_choice_default(cs); ds 816 scripts/kconfig/confdata.c if (!sym_is_optional(cs) && sym == ds) { ds 417 scripts/kconfig/symbol.c struct symbol *ds = prop_get_symbol(prop); ds 418 scripts/kconfig/symbol.c if (ds) { ds 420 scripts/kconfig/symbol.c sym_calc_value(ds); ds 421 scripts/kconfig/symbol.c newval.val = ds->curr.val; ds 697 scripts/kconfig/symbol.c struct symbol *ds; ds 721 scripts/kconfig/symbol.c ds = prop_get_symbol(prop); ds 722 scripts/kconfig/symbol.c if (ds != NULL) { ds 723 scripts/kconfig/symbol.c sym_calc_value(ds); ds 724 scripts/kconfig/symbol.c str = (const char *)ds->curr.val; ds 597 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *ds = runtime->private_data; ds 606 sound/pci/asihpi/asihpi.c ds->drained_count = 0; ds 614 sound/pci/asihpi/asihpi.c unsigned int preload = ds->period_bytes * 1; ds 617 sound/pci/asihpi/asihpi.c ds->h_stream, ds 620 sound/pci/asihpi/asihpi.c &ds->format)); ds 621 sound/pci/asihpi/asihpi.c ds->pcm_buf_host_rw_ofs = preload; ds 628 sound/pci/asihpi/asihpi.c ds->h_stream); ds 760 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *ds = s->runtime->private_data; ds 771 sound/pci/asihpi/asihpi.c ds->h_stream, &state, ds 782 sound/pci/asihpi/asihpi.c pcm_buf_dma_ofs = ds->pcm_buf_host_rw_ofs - bytes_avail; ds 785 sound/pci/asihpi/asihpi.c hpi_handle_error(hpi_stream_start(ds->h_stream)); ds 787 sound/pci/asihpi/asihpi.c ds->drained_count = 0; ds 792 sound/pci/asihpi/asihpi.c ds->drained_count++; ds 793 sound/pci/asihpi/asihpi.c if (ds->drained_count > 20) { ds 798 sound/pci/asihpi/asihpi.c ds->drained_count = 0; ds 801 sound/pci/asihpi/asihpi.c pcm_buf_dma_ofs = bytes_avail + ds->pcm_buf_host_rw_ofs; ds 806 sound/pci/asihpi/asihpi.c newdata = (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes; ds 812 sound/pci/asihpi/asihpi.c (pcm_buf_dma_ofs - ds->pcm_buf_elapsed_dma_ofs) % ds->buffer_bytes, ds 819 sound/pci/asihpi/asihpi.c ds->pcm_buf_elapsed_dma_ofs, ds 820 sound/pci/asihpi/asihpi.c ds->pcm_buf_host_rw_ofs, ds 852 sound/pci/asihpi/asihpi.c struct snd_card_asihpi_pcm *ds = s->runtime->private_data; ds 859 sound/pci/asihpi/asihpi.c ds->pcm_buf_dma_ofs = pcm_buf_dma_ofs; ds 863 sound/pci/asihpi/asihpi.c ((on_card_bytes <= ds->period_bytes) || ds 868 sound/pci/asihpi/asihpi.c unsigned int buf_ofs = ds->pcm_buf_host_rw_ofs % ds->buffer_bytes; ds 876 sound/pci/asihpi/asihpi.c xfer1 = min(xfercount, ds->buffer_bytes - buf_ofs); ds 885 sound/pci/asihpi/asihpi.c ds->h_stream, pd, xfer1, ds 886 sound/pci/asihpi/asihpi.c &ds->format)); ds 896 sound/pci/asihpi/asihpi.c ds->h_stream, pd, ds 898 sound/pci/asihpi/asihpi.c &ds->format)); ds 905 sound/pci/asihpi/asihpi.c ds->h_stream, ds 913 sound/pci/asihpi/asihpi.c ds->h_stream, ds 918 sound/pci/asihpi/asihpi.c ds->pcm_buf_host_rw_ofs += xfercount; ds 919 sound/pci/asihpi/asihpi.c ds->pcm_buf_elapsed_dma_ofs += xfercount; ds 499 sound/pci/rme32.c int ds; ds 501 sound/pci/rme32.c ds = rme32->wcreg & RME32_WCR_DS_BM; ds 542 sound/pci/rme32.c if ((!ds && rme32->wcreg & RME32_WCR_DS_BM) || ds 543 sound/pci/rme32.c (ds && !(rme32->wcreg & RME32_WCR_DS_BM))) ds 702 sound/pci/rme96.c int ds; ds 704 sound/pci/rme96.c ds = rme96->wcreg & RME96_WCR_DS; ds 739 sound/pci/rme96.c if ((!ds && rme96->wcreg & RME96_WCR_DS) || ds 740 sound/pci/rme96.c (ds && !(rme96->wcreg & RME96_WCR_DS))) ds 3341 sound/pci/rme9652/hdspm.c static int hdspm_set_ds_wire(struct hdspm * hdspm, int ds) ds 3343 sound/pci/rme9652/hdspm.c if (ds) ds 6210 sound/pci/rme9652/hdspm.c levels->speed = ds; ds 62 sound/soc/meson/axg-pdm.c unsigned int ds; ds 72 sound/soc/meson/axg-pdm.c unsigned int ds; ds 151 sound/soc/meson/axg-pdm.c unsigned int os = filters->hcic.ds; ds 160 sound/soc/meson/axg-pdm.c os *= filters->lpf[i].ds; ds 310 sound/soc/meson/axg-pdm.c val |= PDM_HCIC_CTRL1_DSR(hcic->ds); ds 330 sound/soc/meson/axg-pdm.c val |= PDM_LPF_DSR(lpf->ds); ds 543 sound/soc/meson/axg-pdm.c .ds = 8, ds 551 sound/soc/meson/axg-pdm.c .ds = 2, ds 557 sound/soc/meson/axg-pdm.c .ds = 2, ds 563 sound/soc/meson/axg-pdm.c .ds = 2, ds 347 sound/soc/txx9/txx9aclc.c struct txx9dmac_slave *ds = &dmadata->dma_slave; ds 352 sound/soc/txx9/txx9aclc.c ds->reg_width = sizeof(u32); ds 354 sound/soc/txx9/txx9aclc.c ds->tx_reg = drvdata->physbase + ACAUDODAT; ds 355 sound/soc/txx9/txx9aclc.c ds->rx_reg = 0; ds 357 sound/soc/txx9/txx9aclc.c ds->tx_reg = 0; ds 358 sound/soc/txx9/txx9aclc.c ds->rx_reg = drvdata->physbase + ACAUDIDAT; ds 151 tools/arch/x86/include/uapi/asm/kvm.h struct kvm_segment cs, ds, es, fs, gs, ss; ds 133 tools/testing/selftests/ipc/msgque.c struct msqid_ds ds; ds 138 tools/testing/selftests/ipc/msgque.c ret = msgctl(kern_id, MSG_STAT, &ds); ds 151 tools/testing/selftests/ipc/msgque.c msgque->messages = malloc(sizeof(struct msg1) * ds.msg_qnum); ds 157 tools/testing/selftests/ipc/msgque.c msgque->qnum = ds.msg_qnum; ds 158 tools/testing/selftests/ipc/msgque.c msgque->mode = ds.msg_perm.mode; ds 159 tools/testing/selftests/ipc/msgque.c msgque->qbytes = ds.msg_qbytes; ds 155 tools/testing/selftests/kvm/include/x86_64/processor.h uint16_t ds; ds 158 tools/testing/selftests/kvm/include/x86_64/processor.h : /* output */ [ds]"=rm"(ds)); ds 159 tools/testing/selftests/kvm/include/x86_64/processor.h return ds; ds 194 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->ds, indent + 2); ds 631 tools/testing/selftests/kvm/lib/x86_64/processor.c kvm_seg_set_kernel_data_64bit(vm, 0x10, &sregs.ds); ds 267 tools/testing/selftests/x86/entry_from_vm86.c v86.regs.ds = load_addr / 16;