db 104 arch/ia64/include/asm/processor.h __u64 db : 1; db 515 arch/ia64/kernel/traps.c ia64_psr(®s)->db = 0; db 566 arch/ia64/kernel/traps.c ia64_psr(®s)->db = 1; db 229 arch/mips/include/asm/netlogic/xlp-hal/pic.h int sch, int vec, int dt, int db, int cpu) db 243 arch/mips/include/asm/netlogic/xlp-hal/pic.h int sch, int vec, int dt, int db, int dte) db 249 arch/mips/include/asm/netlogic/xlp-hal/pic.h ((dt & 0x1) << 19) | ((db & 0x7) << 16) | db 373 arch/powerpc/platforms/ps3/os-area.c static int db_verify(const struct os_area_db *db) db 375 arch/powerpc/platforms/ps3/os-area.c if (memcmp(db->magic_num, OS_AREA_DB_MAGIC_NUM, db 376 arch/powerpc/platforms/ps3/os-area.c sizeof(db->magic_num))) { db 381 arch/powerpc/platforms/ps3/os-area.c if (db->version != 1) { db 395 arch/powerpc/platforms/ps3/os-area.c const struct os_area_db *db; db 418 arch/powerpc/platforms/ps3/os-area.c static int db_for_each_64(const struct os_area_db *db, db 422 arch/powerpc/platforms/ps3/os-area.c if (!i->db) { db 423 arch/powerpc/platforms/ps3/os-area.c i->db = db; db 425 arch/powerpc/platforms/ps3/os-area.c i->idx = (void *)db + db->index_64; db 426 arch/powerpc/platforms/ps3/os-area.c i->last_idx = i->idx + db->count_64; db 427 arch/powerpc/platforms/ps3/os-area.c i->value_64 = (void *)db + db->index_64 db 428 arch/powerpc/platforms/ps3/os-area.c + db_align_up(db->count_64, 8); db 449 arch/powerpc/platforms/ps3/os-area.c static int db_delete_64(struct os_area_db *db, const struct os_area_db_id *id) db 453 arch/powerpc/platforms/ps3/os-area.c for (i.db = NULL; db_for_each_64(db, id, &i); ) { db 466 arch/powerpc/platforms/ps3/os-area.c static int db_set_64(struct os_area_db *db, const struct os_area_db_id *id, db 481 arch/powerpc/platforms/ps3/os-area.c db_delete_64(db, id); db 483 arch/powerpc/platforms/ps3/os-area.c i.db = NULL; db 484 arch/powerpc/platforms/ps3/os-area.c if (db_for_each_64(db, &os_area_db_id_empty, &i)) { db 504 arch/powerpc/platforms/ps3/os-area.c static int db_get_64(const struct os_area_db *db, db 509 arch/powerpc/platforms/ps3/os-area.c i.db = NULL; db 510 arch/powerpc/platforms/ps3/os-area.c if (db_for_each_64(db, id, &i)) { db 520 arch/powerpc/platforms/ps3/os-area.c static int db_get_rtc_diff(const struct os_area_db *db, int64_t *rtc_diff) db 522 arch/powerpc/platforms/ps3/os-area.c return db_get_64(db, &os_area_db_id_rtc_diff, (uint64_t*)rtc_diff); db 526 arch/powerpc/platforms/ps3/os-area.c static void _dump_db(const struct os_area_db *db, const char *func, db 529 arch/powerpc/platforms/ps3/os-area.c char str[sizeof(db->magic_num) + 1]; db 531 arch/powerpc/platforms/ps3/os-area.c dump_field(str, db->magic_num, sizeof(db->magic_num)); db 535 arch/powerpc/platforms/ps3/os-area.c db->version); db 537 arch/powerpc/platforms/ps3/os-area.c db->index_64); db 539 arch/powerpc/platforms/ps3/os-area.c db->count_64); db 541 arch/powerpc/platforms/ps3/os-area.c db->index_32); db 543 arch/powerpc/platforms/ps3/os-area.c db->count_32); db 545 arch/powerpc/platforms/ps3/os-area.c db->index_16); db 547 arch/powerpc/platforms/ps3/os-area.c db->count_16); db 550 arch/powerpc/platforms/ps3/os-area.c static void os_area_db_init(struct os_area_db *db) db 562 arch/powerpc/platforms/ps3/os-area.c memset(db, 0, sizeof(struct os_area_db)); db 564 arch/powerpc/platforms/ps3/os-area.c memcpy(db->magic_num, OS_AREA_DB_MAGIC_NUM, sizeof(db->magic_num)); db 565 arch/powerpc/platforms/ps3/os-area.c db->version = 1; db 566 arch/powerpc/platforms/ps3/os-area.c db->index_64 = HEADER_SIZE; db 567 arch/powerpc/platforms/ps3/os-area.c db->count_64 = VALUES_64_COUNT; db 568 arch/powerpc/platforms/ps3/os-area.c db->index_32 = HEADER_SIZE db 571 arch/powerpc/platforms/ps3/os-area.c db->count_32 = VALUES_32_COUNT; db 572 arch/powerpc/platforms/ps3/os-area.c db->index_16 = HEADER_SIZE db 577 arch/powerpc/platforms/ps3/os-area.c db->count_16 = VALUES_16_COUNT; db 611 arch/powerpc/platforms/ps3/os-area.c struct os_area_db* db; db 640 arch/powerpc/platforms/ps3/os-area.c db = (void *)header + pos; db 642 arch/powerpc/platforms/ps3/os-area.c error = db_verify(db); db 646 arch/powerpc/platforms/ps3/os-area.c dump_db(db); db 647 arch/powerpc/platforms/ps3/os-area.c os_area_db_init(db); db 652 arch/powerpc/platforms/ps3/os-area.c db_set_64(db, &os_area_db_id_rtc_diff, saved_params.rtc_diff); db 654 arch/powerpc/platforms/ps3/os-area.c count = os_area_flash_write(db, sizeof(struct os_area_db), pos); db 724 arch/powerpc/platforms/ps3/os-area.c struct os_area_db *db; db 749 arch/powerpc/platforms/ps3/os-area.c db = (struct os_area_db *)__va(lpar_addr db 754 arch/powerpc/platforms/ps3/os-area.c dump_db(db); db 756 arch/powerpc/platforms/ps3/os-area.c result = db_verify(db) || db_get_rtc_diff(db, &saved_params.rtc_diff); db 702 arch/x86/include/asm/kvm_host.h unsigned long db[KVM_NR_DB_REGS]; db 1043 arch/x86/include/asm/kvm_host.h void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l); db 1390 arch/x86/include/asm/kvm_host.h void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l); db 136 arch/x86/include/uapi/asm/kvm.h __u8 present, dpl, db, s, l, g, avl; db 333 arch/x86/include/uapi/asm/kvm.h __u64 db[4]; db 2472 arch/x86/kvm/svm.c var->db = (s->attrib >> SVM_SELECTOR_DB_SHIFT) & 1; db 2520 arch/x86/kvm/svm.c var->db = 0; db 2668 arch/x86/kvm/svm.c s->attrib |= (var->db & 1) << SVM_SELECTOR_DB_SHIFT; db 2728 arch/x86/kvm/svm.c get_debugreg(vcpu->arch.db[0], 0); db 2729 arch/x86/kvm/svm.c get_debugreg(vcpu->arch.db[1], 1); db 2730 arch/x86/kvm/svm.c get_debugreg(vcpu->arch.db[2], 2); db 2731 arch/x86/kvm/svm.c get_debugreg(vcpu->arch.db[3], 3); db 3894 arch/x86/kvm/vmx/nested.c seg.db = 1; db 3902 arch/x86/kvm/vmx/nested.c .db = 1, db 2697 arch/x86/kvm/vmx/vmx.c var.db = 0; db 3111 arch/x86/kvm/vmx/vmx.c var->db = (ar >> 14) & 1; db 3151 arch/x86/kvm/vmx/vmx.c ar |= (var->db & 1) << 14; db 3198 arch/x86/kvm/vmx/vmx.c static void vmx_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) db 3202 arch/x86/kvm/vmx/vmx.c *db = (ar >> 14) & 1; db 4955 arch/x86/kvm/vmx/vmx.c get_debugreg(vcpu->arch.db[0], 0); db 4956 arch/x86/kvm/vmx/vmx.c get_debugreg(vcpu->arch.db[1], 1); db 4957 arch/x86/kvm/vmx/vmx.c get_debugreg(vcpu->arch.db[2], 2); db 4958 arch/x86/kvm/vmx/vmx.c get_debugreg(vcpu->arch.db[3], 3); db 1074 arch/x86/kvm/x86.c vcpu->arch.eff_db[i] = vcpu->arch.db[i]; db 1110 arch/x86/kvm/x86.c size_t size = ARRAY_SIZE(vcpu->arch.db); db 1114 arch/x86/kvm/x86.c vcpu->arch.db[array_index_nospec(dr, size)] = val; db 1151 arch/x86/kvm/x86.c size_t size = ARRAY_SIZE(vcpu->arch.db); db 1155 arch/x86/kvm/x86.c *val = vcpu->arch.db[array_index_nospec(dr, size)]; db 3919 arch/x86/kvm/x86.c memcpy(dbgregs->db, vcpu->arch.db, sizeof(vcpu->arch.db)); db 3938 arch/x86/kvm/x86.c memcpy(vcpu->arch.db, dbgregs->db, sizeof(vcpu->arch.db)); db 6149 arch/x86/kvm/x86.c desc->d = var.db; db 6172 arch/x86/kvm/x86.c var.db = desc->d; db 6572 arch/x86/kvm/x86.c unsigned long *db) db 6581 arch/x86/kvm/x86.c if ((enable & 3) && (rwlen & 15) == type && db[i] == addr) db 6649 arch/x86/kvm/x86.c vcpu->arch.db); db 7705 arch/x86/kvm/x86.c flags |= seg->db << 22; db 7911 arch/x86/kvm/x86.c cs.db = ds.db = 0; db 8712 arch/x86/kvm/x86.c void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l) db 8717 arch/x86/kvm/x86.c *db = cs.db; db 8997 arch/x86/kvm/x86.c vcpu->arch.eff_db[i] = vcpu->arch.db[i]; db 9227 arch/x86/kvm/x86.c memset(vcpu->arch.db, 0, sizeof(vcpu->arch.db)); db 599 drivers/atm/iphase.h #define TABLE_ADDRESS(db, dn, to) \ db 600 drivers/atm/iphase.h (((unsigned long)(db & 0x04)) << 16) | (dn << 5) | (to << 1) db 93 drivers/block/drbd/drbd_proc.c unsigned long db, dt, dbdt, rt, rs_total, rs_left; db 148 drivers/block/drbd/drbd_proc.c db = device->rs_mark_left[i] - rs_left; db 149 drivers/block/drbd/drbd_proc.c rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ db 154 drivers/block/drbd/drbd_proc.c dbdt = Bit2KB(db/dt); db 165 drivers/block/drbd/drbd_proc.c db = device->rs_mark_left[i] - rs_left; db 166 drivers/block/drbd/drbd_proc.c dbdt = Bit2KB(db/dt); db 177 drivers/block/drbd/drbd_proc.c db = rs_total - rs_left; db 178 drivers/block/drbd/drbd_proc.c dbdt = Bit2KB(db/dt); db 2792 drivers/block/drbd/drbd_receiver.c unsigned long db, dt, dbdt; db 2826 drivers/block/drbd/drbd_receiver.c db = device->rs_mark_left[i] - rs_left; db 2827 drivers/block/drbd/drbd_receiver.c dbdt = Bit2KB(db/dt); db 856 drivers/block/drbd/drbd_worker.c unsigned long db, dt, dbdt; db 887 drivers/block/drbd/drbd_worker.c db = device->rs_total; db 890 drivers/block/drbd/drbd_worker.c db -= device->ov_left; db 892 drivers/block/drbd/drbd_worker.c dbdt = Bit2KB(db/dt); db 427 drivers/bluetooth/hci_bcsp.c const u8 c0 = 0xc0, db = 0xdb; db 456 drivers/bluetooth/hci_bcsp.c skb_put_data(bcsp->rx_skb, &db, 1); db 301 drivers/firmware/arm_scmi/perf.c if (db->mask) \ db 302 drivers/firmware/arm_scmi/perf.c val = ioread##w(db->addr) & db->mask; \ db 303 drivers/firmware/arm_scmi/perf.c iowrite##w((u##w)db->set | val, db->addr); \ db 306 drivers/firmware/arm_scmi/perf.c static void scmi_perf_fc_ring_db(struct scmi_fc_db_info *db) db 308 drivers/firmware/arm_scmi/perf.c if (!db || !db->addr) db 311 drivers/firmware/arm_scmi/perf.c if (db->width == 1) db 313 drivers/firmware/arm_scmi/perf.c else if (db->width == 2) db 315 drivers/firmware/arm_scmi/perf.c else if (db->width == 4) db 324 drivers/firmware/arm_scmi/perf.c if (db->mask) db 325 drivers/firmware/arm_scmi/perf.c val = ioread64_hi_lo(db->addr) & db->mask; db 326 drivers/firmware/arm_scmi/perf.c iowrite64_hi_lo(db->set | val, db->addr); db 505 drivers/firmware/arm_scmi/perf.c struct scmi_fc_db_info *db; db 540 drivers/firmware/arm_scmi/perf.c db = devm_kzalloc(handle->dev, sizeof(*db), GFP_KERNEL); db 541 drivers/firmware/arm_scmi/perf.c if (!db) db 551 drivers/firmware/arm_scmi/perf.c db->addr = addr; db 552 drivers/firmware/arm_scmi/perf.c db->width = size; db 553 drivers/firmware/arm_scmi/perf.c db->set = le32_to_cpu(resp->db_set_lmask); db 554 drivers/firmware/arm_scmi/perf.c db->set |= (u64)le32_to_cpu(resp->db_set_hmask) << 32; db 555 drivers/firmware/arm_scmi/perf.c db->mask = le32_to_cpu(resp->db_preserve_lmask); db 556 drivers/firmware/arm_scmi/perf.c db->mask |= (u64)le32_to_cpu(resp->db_preserve_hmask) << 32; db 557 drivers/firmware/arm_scmi/perf.c *p_db = db; db 29 drivers/gpio/gpio-menz127.c #define MEN_Z127_DB_IN_RANGE(db) ((db >= MEN_Z127_DB_MIN_US) && \ db 30 drivers/gpio/gpio-menz127.c (db <= MEN_Z127_DB_MAX_US)) db 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)) db 210 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c void write_kernel_doorbell(void __iomem *db, u32 value) db 212 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c if (db) { db 213 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c writel(value, db); db 214 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c pr_debug("Writing %d to doorbell address %p\n", value, db); db 218 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c void write_kernel_doorbell64(void __iomem *db, u64 value) db 220 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c if (db) { db 221 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c WARN(((unsigned long)db & 7) != 0, db 223 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c writeq(value, (u64 __iomem *)db); db 224 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c pr_debug("writing %llu to doorbell address %p\n", value, db); db 817 drivers/gpu/drm/amd/amdkfd/kfd_priv.h u32 read_kernel_doorbell(u32 __iomem *db); db 818 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void write_kernel_doorbell(void __iomem *db, u32 value); db 819 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void write_kernel_doorbell64(void __iomem *db, u64 value); db 1008 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c psr_vsc.db[0] = 0; db 1009 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c psr_vsc.db[1] = EDP_VSC_PSR_STATE_ACTIVE | EDP_VSC_PSR_CRC_VALUES_VALID; db 1054 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c psr_vsc.db[0] = 0; db 1055 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c psr_vsc.db[1] = 0; db 1068 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c writel(vsc->db[0], dp->reg_base + ANALOGIX_DP_VSC_SHADOW_DB0); db 1069 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c writel(vsc->db[1], dp->reg_base + ANALOGIX_DP_VSC_SHADOW_DB1); db 1091 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c ((vsc->db[1] && psr_status == DP_PSR_SINK_ACTIVE_RFB) || db 1092 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c (!vsc->db[1] && psr_status == DP_PSR_SINK_INACTIVE)), 1500, db 3372 drivers/gpu/drm/drm_edid.c do_cea_modes(struct drm_connector *connector, const u8 *db, u8 len) db 3379 drivers/gpu/drm/drm_edid.c mode = drm_display_mode_from_vic_index(connector, db, len, i); db 3391 drivers/gpu/drm/drm_edid.c drm_add_cmdb_modes(connector, db[i]); db 3534 drivers/gpu/drm/drm_edid.c do_hdmi_vsdb_modes(struct drm_connector *connector, const u8 *db, u8 len, db 3547 drivers/gpu/drm/drm_edid.c if (!(db[8] & (1 << 5))) db 3551 drivers/gpu/drm/drm_edid.c if (db[8] & (1 << 7)) db 3555 drivers/gpu/drm/drm_edid.c if (db[8] & (1 << 6)) db 3565 drivers/gpu/drm/drm_edid.c if (db[8 + offset] & (1 << 7)) { db 3569 drivers/gpu/drm/drm_edid.c multi_present = (db[8 + offset] & 0x60) >> 5; db 3573 drivers/gpu/drm/drm_edid.c vic_len = db[8 + offset] >> 5; db 3574 drivers/gpu/drm/drm_edid.c hdmi_3d_len = db[8 + offset] & 0x1f; db 3579 drivers/gpu/drm/drm_edid.c vic = db[9 + offset + i]; db 3599 drivers/gpu/drm/drm_edid.c structure_all = (db[8 + offset] << 8) | db[9 + offset]; db 3603 drivers/gpu/drm/drm_edid.c mask = (db[10 + offset] << 8) | db[11 + offset]; db 3624 drivers/gpu/drm/drm_edid.c detail_present = ((db[8 + offset + i] & 0x0f) > 7); db 3630 drivers/gpu/drm/drm_edid.c vic_index = db[8 + offset + i] >> 4; db 3633 drivers/gpu/drm/drm_edid.c switch (db[8 + offset + i] & 0x0f) { db 3642 drivers/gpu/drm/drm_edid.c if ((db[9 + offset + i] >> 4) == 1) db 3671 drivers/gpu/drm/drm_edid.c cea_db_payload_len(const u8 *db) db 3673 drivers/gpu/drm/drm_edid.c return db[0] & 0x1f; db 3677 drivers/gpu/drm/drm_edid.c cea_db_extended_tag(const u8 *db) db 3679 drivers/gpu/drm/drm_edid.c return db[1]; db 3683 drivers/gpu/drm/drm_edid.c cea_db_tag(const u8 *db) db 3685 drivers/gpu/drm/drm_edid.c return db[0] >> 5; db 3732 drivers/gpu/drm/drm_edid.c static bool cea_db_is_hdmi_vsdb(const u8 *db) db 3736 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) != VENDOR_BLOCK) db 3739 drivers/gpu/drm/drm_edid.c if (cea_db_payload_len(db) < 5) db 3742 drivers/gpu/drm/drm_edid.c hdmi_id = db[1] | (db[2] << 8) | (db[3] << 16); db 3747 drivers/gpu/drm/drm_edid.c static bool cea_db_is_hdmi_forum_vsdb(const u8 *db) db 3751 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) != VENDOR_BLOCK) db 3754 drivers/gpu/drm/drm_edid.c if (cea_db_payload_len(db) < 7) db 3757 drivers/gpu/drm/drm_edid.c oui = db[3] << 16 | db[2] << 8 | db[1]; db 3762 drivers/gpu/drm/drm_edid.c static bool cea_db_is_vcdb(const u8 *db) db 3764 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) != USE_EXTENDED_TAG) db 3767 drivers/gpu/drm/drm_edid.c if (cea_db_payload_len(db) != 2) db 3770 drivers/gpu/drm/drm_edid.c if (cea_db_extended_tag(db) != EXT_VIDEO_CAPABILITY_BLOCK) db 3776 drivers/gpu/drm/drm_edid.c static bool cea_db_is_y420cmdb(const u8 *db) db 3778 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) != USE_EXTENDED_TAG) db 3781 drivers/gpu/drm/drm_edid.c if (!cea_db_payload_len(db)) db 3784 drivers/gpu/drm/drm_edid.c if (cea_db_extended_tag(db) != EXT_VIDEO_CAP_BLOCK_Y420CMDB) db 3790 drivers/gpu/drm/drm_edid.c static bool cea_db_is_y420vdb(const u8 *db) db 3792 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) != USE_EXTENDED_TAG) db 3795 drivers/gpu/drm/drm_edid.c if (!cea_db_payload_len(db)) db 3798 drivers/gpu/drm/drm_edid.c if (cea_db_extended_tag(db) != EXT_VIDEO_DATA_BLOCK_420) db 3808 drivers/gpu/drm/drm_edid.c const u8 *db) db 3812 drivers/gpu/drm/drm_edid.c u8 map_len = cea_db_payload_len(db) - 1; db 3839 drivers/gpu/drm/drm_edid.c map |= (u64)db[2 + count] << (8 * count); db 3851 drivers/gpu/drm/drm_edid.c const u8 *db, *hdmi = NULL, *video = NULL; db 3862 drivers/gpu/drm/drm_edid.c db = &cea[i]; db 3863 drivers/gpu/drm/drm_edid.c dbl = cea_db_payload_len(db); db 3865 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) == VIDEO_BLOCK) { db 3866 drivers/gpu/drm/drm_edid.c video = db + 1; db 3869 drivers/gpu/drm/drm_edid.c } else if (cea_db_is_hdmi_vsdb(db)) { db 3870 drivers/gpu/drm/drm_edid.c hdmi = db; db 3872 drivers/gpu/drm/drm_edid.c } else if (cea_db_is_y420vdb(db)) { db 3873 drivers/gpu/drm/drm_edid.c const u8 *vdb420 = &db[2]; db 3937 drivers/gpu/drm/drm_edid.c static bool cea_db_is_hdmi_hdr_metadata_block(const u8 *db) db 3939 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) != USE_EXTENDED_TAG) db 3942 drivers/gpu/drm/drm_edid.c if (db[1] != HDR_STATIC_METADATA_BLOCK) db 3945 drivers/gpu/drm/drm_edid.c if (cea_db_payload_len(db) < 3) db 3967 drivers/gpu/drm/drm_edid.c drm_parse_hdr_metadata_block(struct drm_connector *connector, const u8 *db) db 3971 drivers/gpu/drm/drm_edid.c len = cea_db_payload_len(db); db 3974 drivers/gpu/drm/drm_edid.c eotf_supported(db); db 3976 drivers/gpu/drm/drm_edid.c hdr_metadata_type(db); db 3979 drivers/gpu/drm/drm_edid.c connector->hdr_sink_metadata.hdmi_type1.max_cll = db[4]; db 3981 drivers/gpu/drm/drm_edid.c connector->hdr_sink_metadata.hdmi_type1.max_fall = db[5]; db 3983 drivers/gpu/drm/drm_edid.c connector->hdr_sink_metadata.hdmi_type1.min_cll = db[6]; db 3987 drivers/gpu/drm/drm_edid.c drm_parse_hdmi_vsdb_audio(struct drm_connector *connector, const u8 *db) db 3989 drivers/gpu/drm/drm_edid.c u8 len = cea_db_payload_len(db); db 3991 drivers/gpu/drm/drm_edid.c if (len >= 6 && (db[6] & (1 << 7))) db 3994 drivers/gpu/drm/drm_edid.c connector->latency_present[0] = db[8] >> 7; db 3995 drivers/gpu/drm/drm_edid.c connector->latency_present[1] = (db[8] >> 6) & 1; db 3998 drivers/gpu/drm/drm_edid.c connector->video_latency[0] = db[9]; db 4000 drivers/gpu/drm/drm_edid.c connector->audio_latency[0] = db[10]; db 4002 drivers/gpu/drm/drm_edid.c connector->video_latency[1] = db[11]; db 4004 drivers/gpu/drm/drm_edid.c connector->audio_latency[1] = db[12]; db 4088 drivers/gpu/drm/drm_edid.c u8 *db; db 4126 drivers/gpu/drm/drm_edid.c db = &cea[i]; db 4127 drivers/gpu/drm/drm_edid.c dbl = cea_db_payload_len(db); db 4129 drivers/gpu/drm/drm_edid.c switch (cea_db_tag(db)) { db 4137 drivers/gpu/drm/drm_edid.c &db[1], sad_count * 3); db 4143 drivers/gpu/drm/drm_edid.c eld[DRM_ELD_SPEAKER] = db[1]; db 4147 drivers/gpu/drm/drm_edid.c if (cea_db_is_hdmi_vsdb(db)) db 4148 drivers/gpu/drm/drm_edid.c drm_parse_hdmi_vsdb_audio(connector, db); db 4204 drivers/gpu/drm/drm_edid.c u8 *db = &cea[i]; db 4206 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) == AUDIO_BLOCK) { db 4208 drivers/gpu/drm/drm_edid.c dbl = cea_db_payload_len(db); db 4215 drivers/gpu/drm/drm_edid.c u8 *sad = &db[1 + j * 3]; db 4265 drivers/gpu/drm/drm_edid.c const u8 *db = &cea[i]; db 4267 drivers/gpu/drm/drm_edid.c if (cea_db_tag(db) == SPEAKER_BLOCK) { db 4268 drivers/gpu/drm/drm_edid.c dbl = cea_db_payload_len(db); db 4272 drivers/gpu/drm/drm_edid.c *sadb = kmemdup(&db[1], dbl, GFP_KERNEL); db 4427 drivers/gpu/drm/drm_edid.c static void drm_parse_vcdb(struct drm_connector *connector, const u8 *db) db 4431 drivers/gpu/drm/drm_edid.c DRM_DEBUG_KMS("CEA VCDB 0x%02x\n", db[2]); db 4433 drivers/gpu/drm/drm_edid.c if (db[2] & EDID_CEA_VCDB_QS) db 4438 drivers/gpu/drm/drm_edid.c const u8 *db) db 4443 drivers/gpu/drm/drm_edid.c dc_mask = db[7] & DRM_EDID_YCBCR420_DC_MASK; db 4561 drivers/gpu/drm/drm_edid.c drm_parse_hdmi_vsdb_video(struct drm_connector *connector, const u8 *db) db 4564 drivers/gpu/drm/drm_edid.c u8 len = cea_db_payload_len(db); db 4567 drivers/gpu/drm/drm_edid.c info->dvi_dual = db[6] & 1; db 4569 drivers/gpu/drm/drm_edid.c info->max_tmds_clock = db[7] * 5000; db 4576 drivers/gpu/drm/drm_edid.c drm_parse_hdmi_deep_color_info(connector, db); db 4603 drivers/gpu/drm/drm_edid.c const u8 *db = &edid_ext[i]; db 4605 drivers/gpu/drm/drm_edid.c if (cea_db_is_hdmi_vsdb(db)) db 4606 drivers/gpu/drm/drm_edid.c drm_parse_hdmi_vsdb_video(connector, db); db 4607 drivers/gpu/drm/drm_edid.c if (cea_db_is_hdmi_forum_vsdb(db)) db 4608 drivers/gpu/drm/drm_edid.c drm_parse_hdmi_forum_vsdb(connector, db); db 4609 drivers/gpu/drm/drm_edid.c if (cea_db_is_y420cmdb(db)) db 4610 drivers/gpu/drm/drm_edid.c drm_parse_y420cmdb_bitmap(connector, db); db 4611 drivers/gpu/drm/drm_edid.c if (cea_db_is_vcdb(db)) db 4612 drivers/gpu/drm/drm_edid.c drm_parse_vcdb(connector, db); db 4613 drivers/gpu/drm/drm_edid.c if (cea_db_is_hdmi_hdr_metadata_block(db)) db 4614 drivers/gpu/drm/drm_edid.c drm_parse_hdr_metadata_block(connector, db); db 4448 drivers/gpu/drm/i915/display/intel_dp.c vsc_sdp.db[16] = 0x3 << 4; /* 0x3 << 4 , YCbCr 420*/ db 4450 drivers/gpu/drm/i915/display/intel_dp.c vsc_sdp.db[16] |= 0x1; /* 0x1, ITU-R BT.709 */ db 4462 drivers/gpu/drm/i915/display/intel_dp.c vsc_sdp.db[17] = 0x1; db 4465 drivers/gpu/drm/i915/display/intel_dp.c vsc_sdp.db[17] = 0x2; db 4468 drivers/gpu/drm/i915/display/intel_dp.c vsc_sdp.db[17] = 0x3; db 4471 drivers/gpu/drm/i915/display/intel_dp.c vsc_sdp.db[17] = 0x4; db 4483 drivers/gpu/drm/i915/display/intel_dp.c vsc_sdp.db[17] |= 0x80; db 4496 drivers/gpu/drm/i915/display/intel_dp.c vsc_sdp.db[18] = 0; db 444 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c struct guc_doorbell_info *db; db 450 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c db = __get_doorbell(client); db 456 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c cookie = READ_ONCE(db->cookie); db 457 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c WARN_ON_ONCE(xchg(&db->cookie, cookie + 1 ?: cookie + 2) != cookie); db 460 drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c GEM_BUG_ON(db->db_status != GUC_DOORBELL_ENABLED); db 495 drivers/infiniband/hw/bnxt_re/qplib_fp.c void __iomem *db; db 502 drivers/infiniband/hw/bnxt_re/qplib_fp.c db = (arm_type == DBC_DBC_TYPE_SRQ_ARMENA) ? srq->dbr_base : db 507 drivers/infiniband/hw/bnxt_re/qplib_fp.c writeq(val, db); db 436 drivers/infiniband/hw/bnxt_re/qplib_fp.h static inline void bnxt_qplib_ring_nq_db64(void __iomem *db, u32 index, db 446 drivers/infiniband/hw/bnxt_re/qplib_fp.h writeq(val, db); db 449 drivers/infiniband/hw/bnxt_re/qplib_fp.h static inline void bnxt_qplib_ring_nq_db_rearm(void __iomem *db, u32 raw_cons, db 456 drivers/infiniband/hw/bnxt_re/qplib_fp.h bnxt_qplib_ring_nq_db64(db, index, xid, true); db 458 drivers/infiniband/hw/bnxt_re/qplib_fp.h writel(NQ_DB_CP_FLAGS_REARM | (index & DBC_DBC32_XID_MASK), db); db 461 drivers/infiniband/hw/bnxt_re/qplib_fp.h static inline void bnxt_qplib_ring_nq_db(void __iomem *db, u32 raw_cons, db 468 drivers/infiniband/hw/bnxt_re/qplib_fp.h bnxt_qplib_ring_nq_db64(db, index, xid, false); db 470 drivers/infiniband/hw/bnxt_re/qplib_fp.h writel(NQ_DB_CP_FLAGS | (index & DBC_DBC32_XID_MASK), db); db 166 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h static inline void bnxt_qplib_ring_creq_db64(void __iomem *db, u32 index, db 177 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h writeq(val, db); db 180 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h static inline void bnxt_qplib_ring_creq_db_rearm(void __iomem *db, u32 raw_cons, db 187 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h bnxt_qplib_ring_creq_db64(db, index, xid, true); db 190 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h db); db 193 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h static inline void bnxt_qplib_ring_creq_db(void __iomem *db, u32 raw_cons, db 200 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h bnxt_qplib_ring_creq_db64(db, index, xid, true); db 203 drivers/infiniband/hw/bnxt_re/qplib_rcfw.h db); db 280 drivers/infiniband/hw/cxgb4/qp.c wq->db = rdev->lldi.db_reg; db 386 drivers/infiniband/hw/cxgb4/qp.c wq->sq.qid, wq->rq.qid, wq->db, db 385 drivers/infiniband/hw/cxgb4/t4.h void __iomem *db; db 632 drivers/infiniband/hw/cxgb4/t4.h writel(QID_V(wq->sq.qid) | PIDX_V(inc), wq->db); db 657 drivers/infiniband/hw/cxgb4/t4.h writel(QID_V(wq->rq.qid) | PIDX_V(inc), wq->db); db 328 drivers/infiniband/hw/hns/hns_roce_cq.c &hr_cq->db); db 354 drivers/infiniband/hw/hns/hns_roce_cq.c ret = hns_roce_alloc_db(hr_dev, &hr_cq->db, 1); db 358 drivers/infiniband/hw/hns/hns_roce_cq.c hr_cq->set_ci_db = hr_cq->db.db_record; db 378 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_free_db(hr_dev, &hr_cq->db); db 393 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_db_unmap_user(context, &hr_cq->db); db 406 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_free_db(hr_dev, &hr_cq->db); db 512 drivers/infiniband/hw/hns/hns_roce_cq.c &hr_cq->db); db 517 drivers/infiniband/hw/hns/hns_roce_cq.c hns_roce_free_db(hr_dev, &hr_cq->db); db 13 drivers/infiniband/hw/hns/hns_roce_db.c struct hns_roce_db *db) db 45 drivers/infiniband/hw/hns/hns_roce_db.c db->dma = sg_dma_address(page->umem->sg_head.sgl) + offset; db 46 drivers/infiniband/hw/hns/hns_roce_db.c db->virt_addr = sg_virt(page->umem->sg_head.sgl) + offset; db 47 drivers/infiniband/hw/hns/hns_roce_db.c db->u.user_page = page; db 57 drivers/infiniband/hw/hns/hns_roce_db.c struct hns_roce_db *db) db 61 drivers/infiniband/hw/hns/hns_roce_db.c refcount_dec(&db->u.user_page->refcount); db 62 drivers/infiniband/hw/hns/hns_roce_db.c if (refcount_dec_if_one(&db->u.user_page->refcount)) { db 63 drivers/infiniband/hw/hns/hns_roce_db.c list_del(&db->u.user_page->list); db 64 drivers/infiniband/hw/hns/hns_roce_db.c ib_umem_release(db->u.user_page->umem); db 65 drivers/infiniband/hw/hns/hns_roce_db.c kfree(db->u.user_page); db 95 drivers/infiniband/hw/hns/hns_roce_db.c struct hns_roce_db *db, int order) db 116 drivers/infiniband/hw/hns/hns_roce_db.c db->u.pgdir = pgdir; db 117 drivers/infiniband/hw/hns/hns_roce_db.c db->index = i; db 118 drivers/infiniband/hw/hns/hns_roce_db.c db->db_record = pgdir->page + db->index; db 119 drivers/infiniband/hw/hns/hns_roce_db.c db->dma = pgdir->db_dma + db->index * HNS_ROCE_DB_UNIT_SIZE; db 120 drivers/infiniband/hw/hns/hns_roce_db.c db->order = order; db 125 drivers/infiniband/hw/hns/hns_roce_db.c int hns_roce_alloc_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db, db 134 drivers/infiniband/hw/hns/hns_roce_db.c if (!hns_roce_alloc_db_from_pgdir(pgdir, db, order)) db 146 drivers/infiniband/hw/hns/hns_roce_db.c WARN_ON(hns_roce_alloc_db_from_pgdir(pgdir, db, order)); db 154 drivers/infiniband/hw/hns/hns_roce_db.c void hns_roce_free_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db) db 161 drivers/infiniband/hw/hns/hns_roce_db.c o = db->order; db 162 drivers/infiniband/hw/hns/hns_roce_db.c i = db->index; db 164 drivers/infiniband/hw/hns/hns_roce_db.c if (db->order == 0 && test_bit(i ^ 1, db->u.pgdir->order0)) { db 165 drivers/infiniband/hw/hns/hns_roce_db.c clear_bit(i ^ 1, db->u.pgdir->order0); db 170 drivers/infiniband/hw/hns/hns_roce_db.c set_bit(i, db->u.pgdir->bits[o]); db 172 drivers/infiniband/hw/hns/hns_roce_db.c if (bitmap_full(db->u.pgdir->order1, db 174 drivers/infiniband/hw/hns/hns_roce_db.c dma_free_coherent(hr_dev->dev, PAGE_SIZE, db->u.pgdir->page, db 175 drivers/infiniband/hw/hns/hns_roce_db.c db->u.pgdir->db_dma); db 176 drivers/infiniband/hw/hns/hns_roce_db.c list_del(&db->u.pgdir->list); db 177 drivers/infiniband/hw/hns/hns_roce_db.c kfree(db->u.pgdir); db 493 drivers/infiniband/hw/hns/hns_roce_device.h struct hns_roce_db db; db 1268 drivers/infiniband/hw/hns/hns_roce_device.h struct hns_roce_db *db); db 1270 drivers/infiniband/hw/hns/hns_roce_device.h struct hns_roce_db *db); db 1271 drivers/infiniband/hw/hns/hns_roce_device.h int hns_roce_alloc_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db, db 1273 drivers/infiniband/hw/hns/hns_roce_device.h void hns_roce_free_db(struct hns_roce_dev *hr_dev, struct hns_roce_db *db); db 513 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_db_table *db; db 519 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db = &priv->db_table; db 526 drivers/infiniband/hw/hns/hns_roce_hw_v1.c sdb_dma_addr = db->ext_db->sdb_buf_list->map; db 534 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->esdb_dep); db 545 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dev_dbg(dev, "ext SDB depth: 0x%x\n", db->ext_db->esdb_dep); db 555 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_db_table *db; db 561 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db = &priv->db_table; db 568 drivers/infiniband/hw/hns/hns_roce_hw_v1.c odb_dma_addr = db->ext_db->odb_buf_list->map; db 576 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->eodb_dep); db 579 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->eodb_dep); db 583 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dev_dbg(dev, "ext ODB depth: 0x%x\n", db->ext_db->eodb_dep); db 593 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_db_table *db; db 599 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db = &priv->db_table; db 601 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db = kmalloc(sizeof(*db->ext_db), GFP_KERNEL); db 602 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!db->ext_db) db 606 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->sdb_buf_list = kmalloc( db 607 drivers/infiniband/hw/hns/hns_roce_hw_v1.c sizeof(*db->ext_db->sdb_buf_list), GFP_KERNEL); db 608 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!db->ext_db->sdb_buf_list) { db 613 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->sdb_buf_list->buf = dma_alloc_coherent(dev, db 616 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!db->ext_db->sdb_buf_list->buf) { db 620 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->sdb_buf_list->map = sdb_dma_addr; db 622 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->esdb_dep = ilog2(HNS_ROCE_V1_EXT_SDB_DEPTH); db 630 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->odb_buf_list = kmalloc( db 631 drivers/infiniband/hw/hns/hns_roce_hw_v1.c sizeof(*db->ext_db->odb_buf_list), GFP_KERNEL); db 632 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!db->ext_db->odb_buf_list) { db 637 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->odb_buf_list->buf = dma_alloc_coherent(dev, db 640 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (!db->ext_db->odb_buf_list->buf) { db 644 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->odb_buf_list->map = odb_dma_addr; db 646 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->eodb_dep = ilog2(HNS_ROCE_V1_EXT_ODB_DEPTH); db 658 drivers/infiniband/hw/hns/hns_roce_hw_v1.c kfree(db->ext_db->odb_buf_list); db 663 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->sdb_buf_list->buf, db 664 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->sdb_buf_list->map); db 669 drivers/infiniband/hw/hns/hns_roce_hw_v1.c kfree(db->ext_db->sdb_buf_list); db 672 drivers/infiniband/hw/hns/hns_roce_hw_v1.c kfree(db->ext_db); db 907 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_db_table *db; db 915 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db = &priv->db_table; db 917 drivers/infiniband/hw/hns/hns_roce_hw_v1.c memset(db, 0, sizeof(*db)); db 925 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->sdb_ext_mod = sdb_ext_mod; db 926 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->odb_ext_mod = odb_ext_mod; db 1173 drivers/infiniband/hw/hns/hns_roce_hw_v1.c struct hns_roce_db_table *db; db 1176 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db = &priv->db_table; db 1178 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (db->sdb_ext_mod) { db 1180 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->sdb_buf_list->buf, db 1181 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->sdb_buf_list->map); db 1182 drivers/infiniband/hw/hns/hns_roce_hw_v1.c kfree(db->ext_db->sdb_buf_list); db 1185 drivers/infiniband/hw/hns/hns_roce_hw_v1.c if (db->odb_ext_mod) { db 1187 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->odb_buf_list->buf, db 1188 drivers/infiniband/hw/hns/hns_roce_hw_v1.c db->ext_db->odb_buf_list->map); db 1189 drivers/infiniband/hw/hns/hns_roce_hw_v1.c kfree(db->ext_db->odb_buf_list); db 1192 drivers/infiniband/hw/hns/hns_roce_hw_v1.c kfree(db->ext_db); db 2613 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ((u32)hr_cq->db.dma) >> 1); db 2614 drivers/infiniband/hw/hns/hns_roce_hw_v2.c cq_context->db_record_addr = cpu_to_le32(hr_cq->db.dma >> 32); db 219 drivers/infiniband/hw/mlx4/cq.c err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &cq->db); db 226 drivers/infiniband/hw/mlx4/cq.c err = mlx4_db_alloc(dev->dev, &cq->db, 1); db 230 drivers/infiniband/hw/mlx4/cq.c cq->mcq.set_ci_db = cq->db.db; db 231 drivers/infiniband/hw/mlx4/cq.c cq->mcq.arm_db = cq->db.db + 1; db 248 drivers/infiniband/hw/mlx4/cq.c err = mlx4_cq_alloc(dev->dev, entries, &cq->buf.mtt, uar, cq->db.dma, db 275 drivers/infiniband/hw/mlx4/cq.c mlx4_ib_db_unmap_user(context, &cq->db); db 286 drivers/infiniband/hw/mlx4/cq.c mlx4_db_free(dev->dev, &cq->db); db 492 drivers/infiniband/hw/mlx4/cq.c &mcq->db); db 495 drivers/infiniband/hw/mlx4/cq.c mlx4_db_free(dev->dev, &mcq->db); db 46 drivers/infiniband/hw/mlx4/doorbell.c struct mlx4_db *db) db 77 drivers/infiniband/hw/mlx4/doorbell.c db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); db 78 drivers/infiniband/hw/mlx4/doorbell.c db->u.user_page = page; db 87 drivers/infiniband/hw/mlx4/doorbell.c void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db) db 91 drivers/infiniband/hw/mlx4/doorbell.c if (!--db->u.user_page->refcnt) { db 92 drivers/infiniband/hw/mlx4/doorbell.c list_del(&db->u.user_page->list); db 93 drivers/infiniband/hw/mlx4/doorbell.c ib_umem_release(db->u.user_page->umem); db 94 drivers/infiniband/hw/mlx4/doorbell.c kfree(db->u.user_page); db 120 drivers/infiniband/hw/mlx4/mlx4_ib.h struct mlx4_db db; db 314 drivers/infiniband/hw/mlx4/mlx4_ib.h struct mlx4_db db; db 358 drivers/infiniband/hw/mlx4/mlx4_ib.h struct mlx4_db db; db 727 drivers/infiniband/hw/mlx4/mlx4_ib.h struct mlx4_db *db); db 728 drivers/infiniband/hw/mlx4/mlx4_ib.h void mlx4_ib_db_unmap_user(struct mlx4_ib_ucontext *context, struct mlx4_db *db); db 936 drivers/infiniband/hw/mlx4/qp.c err = mlx4_ib_db_map_user(udata, wq.db_addr, &qp->db); db 980 drivers/infiniband/hw/mlx4/qp.c mlx4_ib_db_unmap_user(context, &qp->db); db 1132 drivers/infiniband/hw/mlx4/qp.c err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &qp->db); db 1161 drivers/infiniband/hw/mlx4/qp.c err = mlx4_db_alloc(dev->dev, &qp->db, 0); db 1165 drivers/infiniband/hw/mlx4/qp.c *qp->db.db = 0; db 1277 drivers/infiniband/hw/mlx4/qp.c mlx4_ib_db_unmap_user(context, &qp->db); db 1293 drivers/infiniband/hw/mlx4/qp.c mlx4_db_free(dev->dev, &qp->db); db 1498 drivers/infiniband/hw/mlx4/qp.c mlx4_ib_db_unmap_user(mcontext, &qp->db); db 1508 drivers/infiniband/hw/mlx4/qp.c mlx4_db_free(dev->dev, &qp->db); db 2461 drivers/infiniband/hw/mlx4/qp.c context->db_rec_addr = cpu_to_be64(qp->db.dma); db 2612 drivers/infiniband/hw/mlx4/qp.c *qp->db.db = 0; db 3935 drivers/infiniband/hw/mlx4/qp.c *qp->db.db = cpu_to_be32(qp->rq.head & 0xffff); db 126 drivers/infiniband/hw/mlx4/srq.c err = mlx4_ib_db_map_user(udata, ucmd.db_addr, &srq->db); db 130 drivers/infiniband/hw/mlx4/srq.c err = mlx4_db_alloc(dev->dev, &srq->db, 0); db 134 drivers/infiniband/hw/mlx4/srq.c *srq->db.db = 0; db 180 drivers/infiniband/hw/mlx4/srq.c &srq->mtt, srq->db.dma, &srq->msrq); db 199 drivers/infiniband/hw/mlx4/srq.c mlx4_ib_db_unmap_user(ucontext, &srq->db); db 213 drivers/infiniband/hw/mlx4/srq.c mlx4_db_free(dev->dev, &srq->db); db 276 drivers/infiniband/hw/mlx4/srq.c &msrq->db); db 281 drivers/infiniband/hw/mlx4/srq.c mlx4_db_free(dev->dev, &msrq->db); db 361 drivers/infiniband/hw/mlx4/srq.c *srq->db.db = cpu_to_be32(srq->wqe_ctr); db 742 drivers/infiniband/hw/mlx5/cq.c err = mlx5_ib_db_map_user(context, udata, ucmd.db_addr, &cq->db); db 815 drivers/infiniband/hw/mlx5/cq.c mlx5_ib_db_unmap_user(context, &cq->db); db 827 drivers/infiniband/hw/mlx5/cq.c mlx5_ib_db_unmap_user(context, &cq->db); db 853 drivers/infiniband/hw/mlx5/cq.c err = mlx5_db_alloc(dev->mdev, &cq->db); db 857 drivers/infiniband/hw/mlx5/cq.c cq->mcq.set_ci_db = cq->db.db; db 858 drivers/infiniband/hw/mlx5/cq.c cq->mcq.arm_db = cq->db.db + 1; db 892 drivers/infiniband/hw/mlx5/cq.c mlx5_db_free(dev->mdev, &cq->db); db 899 drivers/infiniband/hw/mlx5/cq.c mlx5_db_free(dev->mdev, &cq->db); db 977 drivers/infiniband/hw/mlx5/cq.c MLX5_SET64(cqc, cqc, dbr_addr, cq->db.dma); db 48 drivers/infiniband/hw/mlx5/doorbell.c struct mlx5_db *db) db 77 drivers/infiniband/hw/mlx5/doorbell.c db->dma = sg_dma_address(page->umem->sg_head.sgl) + (virt & ~PAGE_MASK); db 78 drivers/infiniband/hw/mlx5/doorbell.c db->u.user_page = page; db 87 drivers/infiniband/hw/mlx5/doorbell.c void mlx5_ib_db_unmap_user(struct mlx5_ib_ucontext *context, struct mlx5_db *db) db 91 drivers/infiniband/hw/mlx5/doorbell.c if (!--db->u.user_page->refcnt) { db 92 drivers/infiniband/hw/mlx5/doorbell.c list_del(&db->u.user_page->list); db 93 drivers/infiniband/hw/mlx5/doorbell.c ib_umem_release(db->u.user_page->umem); db 94 drivers/infiniband/hw/mlx5/doorbell.c kfree(db->u.user_page); db 315 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_db db; db 410 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_db db; db 507 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_db db; db 537 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_db db; db 1101 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_db *db); db 1102 drivers/infiniband/hw/mlx5/mlx5_ib.h void mlx5_ib_db_unmap_user(struct mlx5_ib_ucontext *context, struct mlx5_db *db); db 790 drivers/infiniband/hw/mlx5/qp.c mlx5_ib_db_unmap_user(context, &rwq->db); db 834 drivers/infiniband/hw/mlx5/qp.c err = mlx5_ib_db_map_user(ucontext, udata, ucmd->db_addr, &rwq->db); db 955 drivers/infiniband/hw/mlx5/qp.c err = mlx5_ib_db_map_user(context, udata, ucmd.db_addr, &qp->db); db 971 drivers/infiniband/hw/mlx5/qp.c mlx5_ib_db_unmap_user(context, &qp->db); db 995 drivers/infiniband/hw/mlx5/qp.c mlx5_ib_db_unmap_user(context, &qp->db); db 1116 drivers/infiniband/hw/mlx5/qp.c err = mlx5_db_alloc(dev->mdev, &qp->db); db 1148 drivers/infiniband/hw/mlx5/qp.c mlx5_db_free(dev->mdev, &qp->db); db 1165 drivers/infiniband/hw/mlx5/qp.c mlx5_db_free(dev->mdev, &qp->db); db 1573 drivers/infiniband/hw/mlx5/qp.c sq->doorbell = &qp->db; db 1574 drivers/infiniband/hw/mlx5/qp.c rq->doorbell = &qp->db; db 2249 drivers/infiniband/hw/mlx5/qp.c MLX5_SET64(qpc, qpc, dbr_addr, qp->db.dma); db 3612 drivers/infiniband/hw/mlx5/qp.c context->db_rec_addr = cpu_to_be64(qp->db.dma); db 3729 drivers/infiniband/hw/mlx5/qp.c qp->db.db[MLX5_RCV_DBR] = 0; db 3730 drivers/infiniband/hw/mlx5/qp.c qp->db.db[MLX5_SND_DBR] = 0; db 5325 drivers/infiniband/hw/mlx5/qp.c qp->db.db[MLX5_SND_DBR] = cpu_to_be32(qp->sq.cur_post); db 5427 drivers/infiniband/hw/mlx5/qp.c *qp->db.db = cpu_to_be32(qp->rq.head & 0xffff); db 5972 drivers/infiniband/hw/mlx5/qp.c MLX5_SET64(wq, wq, dbr_addr, rwq->db.dma); db 107 drivers/infiniband/hw/mlx5/srq.c err = mlx5_ib_db_map_user(ucontext, udata, ucmd.db_addr, &srq->db); db 138 drivers/infiniband/hw/mlx5/srq.c err = mlx5_db_alloc(dev->mdev, &srq->db); db 193 drivers/infiniband/hw/mlx5/srq.c mlx5_db_free(dev->mdev, &srq->db); db 205 drivers/infiniband/hw/mlx5/srq.c &srq->db); db 214 drivers/infiniband/hw/mlx5/srq.c mlx5_db_free(dev->mdev, &srq->db); db 300 drivers/infiniband/hw/mlx5/srq.c in.db_record = srq->db.dma; db 399 drivers/infiniband/hw/mlx5/srq.c &msrq->db); db 481 drivers/infiniband/hw/mlx5/srq.c *srq->db.db = cpu_to_be32(srq->wqe_ctr); db 65 drivers/infiniband/hw/mthca/mthca_doorbell.h static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) db 67 drivers/infiniband/hw/mthca/mthca_doorbell.h *(u64 *) db = *(u64 *) val; db 102 drivers/infiniband/hw/mthca/mthca_doorbell.h static inline void mthca_write_db_rec(__be32 val[2], __be32 *db) db 104 drivers/infiniband/hw/mthca/mthca_doorbell.h db[0] = val[0]; db 106 drivers/infiniband/hw/mthca/mthca_doorbell.h db[1] = val[1]; db 567 drivers/infiniband/hw/mthca/mthca_memfree.c u32 qn, __be32 **db) db 656 drivers/infiniband/hw/mthca/mthca_memfree.c *db = (__be32 *) &page->db_rec[j]; db 176 drivers/infiniband/hw/mthca/mthca_memfree.h u32 qn, __be32 **db); db 234 drivers/infiniband/hw/mthca/mthca_provider.h __be32 *db; /* Arbel only */ db 258 drivers/infiniband/hw/mthca/mthca_provider.h __be32 *db; db 847 drivers/infiniband/hw/mthca/mthca_qp.c *qp->sq.db = 0; db 848 drivers/infiniband/hw/mthca/mthca_qp.c *qp->rq.db = 0; db 1135 drivers/infiniband/hw/mthca/mthca_qp.c qp->qpn, &qp->rq.db); db 1140 drivers/infiniband/hw/mthca/mthca_qp.c qp->qpn, &qp->sq.db); db 1971 drivers/infiniband/hw/mthca/mthca_qp.c *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff); db 2144 drivers/infiniband/hw/mthca/mthca_qp.c *qp->sq.db = cpu_to_be32(qp->sq.head & 0xffff); db 2224 drivers/infiniband/hw/mthca/mthca_qp.c *qp->rq.db = cpu_to_be32(qp->rq.head & 0xffff); db 248 drivers/infiniband/hw/mthca/mthca_srq.c srq->srqn, &srq->db); db 635 drivers/infiniband/hw/mthca/mthca_srq.c *srq->db = cpu_to_be32(srq->counter); db 377 drivers/infiniband/hw/ocrdma/ocrdma.h u8 __iomem *db; db 318 drivers/infiniband/hw/ocrdma/ocrdma_hw.c iowrite32(val, dev->nic_info.db + OCRDMA_DB_CQ_OFFSET); db 327 drivers/infiniband/hw/ocrdma/ocrdma_hw.c iowrite32(val, dev->nic_info.db + OCRDMA_DB_MQ_OFFSET); db 343 drivers/infiniband/hw/ocrdma/ocrdma_hw.c iowrite32(val, dev->nic_info.db + OCRDMA_DB_EQ_OFFSET); db 1247 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp->sq_db = dev->nic_info.db + db 1250 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp->rq_db = dev->nic_info.db + db 1254 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp->sq_db = dev->nic_info.db + db 1257 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp->rq_db = dev->nic_info.db + db 1795 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c srq->db = dev->nic_info.db + (pd->id * dev->nic_info.db_page_size); db 2301 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c iowrite32(val, srq->db + OCRDMA_DB_GEN2_SRQ_OFFSET); db 285 drivers/infiniband/hw/qedr/qedr.h union db_prod64 db; db 331 drivers/infiniband/hw/qedr/qedr.h void __iomem *db; db 769 drivers/infiniband/hw/qedr/verbs.c cq->db.data.agg_flags = flags; db 770 drivers/infiniband/hw/qedr/verbs.c cq->db.data.value = cpu_to_le32(cons); db 771 drivers/infiniband/hw/qedr/verbs.c writeq(cq->db.raw, cq->db_addr); db 906 drivers/infiniband/hw/qedr/verbs.c cq->db.data.icid = cq->icid; db 907 drivers/infiniband/hw/qedr/verbs.c cq->db.data.params = DB_AGG_CMD_SET << db 1231 drivers/infiniband/hw/qedr/verbs.c qp->sq.db = dev->db_addr + db 1235 drivers/infiniband/hw/qedr/verbs.c qp->rq.db = dev->db_addr + db 1673 drivers/infiniband/hw/qedr/verbs.c qp->sq.db = dev->db_addr + db 1677 drivers/infiniband/hw/qedr/verbs.c qp->rq.db = dev->db_addr + db 2030 drivers/infiniband/hw/qedr/verbs.c writel(qp->rq.db_data.raw, qp->rq.db); db 3448 drivers/infiniband/hw/qedr/verbs.c writel(qp->sq.db_data.raw, qp->sq.db); db 3638 drivers/infiniband/hw/qedr/verbs.c writel(qp->rq.db_data.raw, qp->rq.db); db 889 drivers/infiniband/ulp/srpt/ib_srpt.c struct srp_direct_buf *db, int nbufs, struct scatterlist **sg, db 907 drivers/infiniband/ulp/srpt/ib_srpt.c for (i = ioctx->n_rw_ctx; i < nbufs; i++, db++) { db 909 drivers/infiniband/ulp/srpt/ib_srpt.c u64 remote_addr = be64_to_cpu(db->va); db 910 drivers/infiniband/ulp/srpt/ib_srpt.c u32 size = be32_to_cpu(db->len); db 911 drivers/infiniband/ulp/srpt/ib_srpt.c u32 rkey = be32_to_cpu(db->key); db 1039 drivers/infiniband/ulp/srpt/ib_srpt.c struct srp_direct_buf *db = srpt_get_desc_buf(srp_cmd); db 1041 drivers/infiniband/ulp/srpt/ib_srpt.c *data_len = be32_to_cpu(db->len); db 1042 drivers/infiniband/ulp/srpt/ib_srpt.c return srpt_alloc_rw_ctxs(ioctx, db, 1, sg, sg_cnt); db 129 drivers/input/joystick/iforce/iforce-ff.c __u16 rsat, __u16 lsat, __s16 rk, __s16 lk, u16 db, __s16 center) db 154 drivers/input/joystick/iforce/iforce-ff.c db = (1000 * db) >> 16; db 155 drivers/input/joystick/iforce/iforce-ff.c data[6] = LO(db); db 156 drivers/input/joystick/iforce/iforce-ff.c data[7] = HI(db); db 59 drivers/ipack/devices/scc2698.h u8 db, rhrb; /* Receive holding register (b) */ db 77 drivers/ipack/devices/scc2698.h u8 db, thrb; /* Transmit holding register (b) */ db 619 drivers/irqchip/irq-gic-v3-its.c u32 db; db 622 drivers/irqchip/irq-gic-v3-its.c db = desc->its_vmapti_cmd.vpe->vpe_db_lpi; db 624 drivers/irqchip/irq-gic-v3-its.c db = 1023; db 630 drivers/irqchip/irq-gic-v3-its.c its_encode_db_phys_id(cmd, db); db 642 drivers/irqchip/irq-gic-v3-its.c u32 db; db 645 drivers/irqchip/irq-gic-v3-its.c db = desc->its_vmovi_cmd.vpe->vpe_db_lpi; db 647 drivers/irqchip/irq-gic-v3-its.c db = 1023; db 653 drivers/irqchip/irq-gic-v3-its.c its_encode_db_phys_id(cmd, db); db 168 drivers/macintosh/rack-meter.c struct rackmeter_dma *db = rm->dma_buf_v; db 169 drivers/macintosh/rack-meter.c struct dbdma_cmd *cmd = db->cmd; db 326 drivers/macintosh/rack-meter.c struct rackmeter_dma *db = rm->dma_buf_v; db 340 drivers/macintosh/rack-meter.c mark = db->mark; db 354 drivers/macintosh/rack-meter.c buf = mark == 1 ? db->buf1 : db->buf2; db 130 drivers/mailbox/tegra-hsp.c static bool tegra_hsp_doorbell_can_ring(struct tegra_hsp_doorbell *db) db 134 drivers/mailbox/tegra-hsp.c value = tegra_hsp_channel_readl(&db->channel, HSP_DB_ENABLE); db 154 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db; db 158 drivers/mailbox/tegra-hsp.c db = __tegra_hsp_doorbell_get(hsp, master); db 161 drivers/mailbox/tegra-hsp.c return db; db 167 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db; db 170 drivers/mailbox/tegra-hsp.c db = tegra_hsp_doorbell_get(hsp, TEGRA_HSP_DB_MASTER_CCPLEX); db 171 drivers/mailbox/tegra-hsp.c if (!db) db 174 drivers/mailbox/tegra-hsp.c value = tegra_hsp_channel_readl(&db->channel, HSP_DB_PENDING); db 175 drivers/mailbox/tegra-hsp.c tegra_hsp_channel_writel(&db->channel, value, HSP_DB_PENDING); db 180 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db; db 182 drivers/mailbox/tegra-hsp.c db = __tegra_hsp_doorbell_get(hsp, master); db 194 drivers/mailbox/tegra-hsp.c if (db && db->channel.chan) db 195 drivers/mailbox/tegra-hsp.c mbox_chan_received_data(db->channel.chan, NULL); db 272 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db; db 276 drivers/mailbox/tegra-hsp.c db = devm_kzalloc(hsp->dev, sizeof(*db), GFP_KERNEL); db 277 drivers/mailbox/tegra-hsp.c if (!db) db 283 drivers/mailbox/tegra-hsp.c db->channel.regs = hsp->regs + offset; db 284 drivers/mailbox/tegra-hsp.c db->channel.hsp = hsp; db 286 drivers/mailbox/tegra-hsp.c db->name = devm_kstrdup_const(hsp->dev, name, GFP_KERNEL); db 287 drivers/mailbox/tegra-hsp.c db->master = master; db 288 drivers/mailbox/tegra-hsp.c db->index = index; db 291 drivers/mailbox/tegra-hsp.c list_add_tail(&db->list, &hsp->doorbells); db 294 drivers/mailbox/tegra-hsp.c return &db->channel; db 299 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db = chan->con_priv; db 301 drivers/mailbox/tegra-hsp.c tegra_hsp_channel_writel(&db->channel, 1, HSP_DB_TRIGGER); db 308 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db = chan->con_priv; db 309 drivers/mailbox/tegra-hsp.c struct tegra_hsp *hsp = db->channel.hsp; db 314 drivers/mailbox/tegra-hsp.c if (db->master >= chan->mbox->num_chans) { db 317 drivers/mailbox/tegra-hsp.c db->master); db 325 drivers/mailbox/tegra-hsp.c if (!tegra_hsp_doorbell_can_ring(db)) db 331 drivers/mailbox/tegra-hsp.c value |= BIT(db->master); db 341 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db = chan->con_priv; db 342 drivers/mailbox/tegra-hsp.c struct tegra_hsp *hsp = db->channel.hsp; db 354 drivers/mailbox/tegra-hsp.c value &= ~BIT(db->master); db 499 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db; db 507 drivers/mailbox/tegra-hsp.c db = tegra_hsp_doorbell_get(hsp, master); db 508 drivers/mailbox/tegra-hsp.c if (db) db 509 drivers/mailbox/tegra-hsp.c channel = &db->channel; db 520 drivers/mailbox/tegra-hsp.c chan->con_priv = db; db 778 drivers/mailbox/tegra-hsp.c struct tegra_hsp_doorbell *db; db 780 drivers/mailbox/tegra-hsp.c list_for_each_entry(db, &hsp->doorbells, list) { db 781 drivers/mailbox/tegra-hsp.c if (db && db->channel.chan) db 782 drivers/mailbox/tegra-hsp.c tegra_hsp_doorbell_startup(db->channel.chan); db 4862 drivers/md/md.c unsigned long resync, dt, db; db 4868 drivers/md/md.c db = resync - mddev->resync_mark_cnt; db 4869 drivers/md/md.c return sprintf(page, "%lu\n", db/dt/2); /* K/sec */ db 7814 drivers/md/md.c unsigned long dt, db = 0; db 7925 drivers/md/md.c db = curr_mark_cnt - (recovery_active + resync_mark_cnt); db 7928 drivers/md/md.c rt = div64_u64(rt, db/32+1); db 7935 drivers/md/md.c seq_printf(seq, " speed=%ldK/sec", db/2/dt); db 883 drivers/md/raid5.c const struct r5pending_data *db = list_entry(b, db 885 drivers/md/raid5.c if (da->sector > db->sector) db 887 drivers/md/raid5.c if (da->sector < db->sector) db 1903 drivers/media/dvb-frontends/dib7000p.c s32 db; db 1909 drivers/media/dvb-frontends/dib7000p.c db = interpolate_value(val, db 1912 drivers/media/dvb-frontends/dib7000p.c c->strength.stat[0].svalue = db; db 4105 drivers/media/dvb-frontends/dib8000.c s32 db; db 4111 drivers/media/dvb-frontends/dib8000.c db = interpolate_value(val, db 4114 drivers/media/dvb-frontends/dib8000.c c->strength.stat[0].svalue = db; db 668 drivers/media/platform/qcom/venus/hfi_cmds.c struct hfi_h264_db_control *in = pdata, *db = prop_data; db 680 drivers/media/platform/qcom/venus/hfi_cmds.c db->mode = in->mode; db 681 drivers/media/platform/qcom/venus/hfi_cmds.c db->slice_alpha_offset = in->slice_alpha_offset; db 682 drivers/media/platform/qcom/venus/hfi_cmds.c db->slice_beta_offset = in->slice_beta_offset; db 683 drivers/media/platform/qcom/venus/hfi_cmds.c pkt->shdr.hdr.size += sizeof(u32) + sizeof(*db); db 35 drivers/mfd/wm8350-gpio.c static int wm8350_gpio_set_debounce(struct wm8350 *wm8350, int gpio, int db) db 37 drivers/mfd/wm8350-gpio.c if (db == WM8350_GPIO_DEBOUNCE_ON) db 92 drivers/misc/mic/bus/scif_bus.h int db); db 96 drivers/misc/mic/bus/scif_bus.h void (*send_intr)(struct scif_hw_dev *sdev, int db); db 97 drivers/misc/mic/bus/scif_bus.h void (*send_p2p_intr)(struct scif_hw_dev *sdev, int db, db 95 drivers/misc/mic/bus/vop_bus.h void (*send_intr)(struct vop_device *vpdev, int db); db 176 drivers/misc/mic/card/mic_device.c int db) db 178 drivers/misc/mic/card/mic_device.c return mic_request_card_irq(func, NULL, name, data, db); db 200 drivers/misc/mic/card/mic_device.c static void ___mic_send_intr(struct scif_hw_dev *scdev, int db) db 204 drivers/misc/mic/card/mic_device.c mic_send_intr(&mdrv->mdev, db); db 207 drivers/misc/mic/card/mic_device.c static void ___mic_send_p2p_intr(struct scif_hw_dev *scdev, int db, db 210 drivers/misc/mic/card/mic_device.c mic_send_p2p_intr(db, mw); db 278 drivers/misc/mic/card/mic_device.c static void __mic_send_intr(struct vop_device *vpdev, int db) db 282 drivers/misc/mic/card/mic_device.c mic_send_intr(&mdrv->mdev, db); db 122 drivers/misc/mic/card/mic_device.h const char *name, void *data, int db); db 127 drivers/misc/mic/card/mic_device.h int mic_db_to_irq(struct mic_driver *mdrv, int db); db 107 drivers/misc/mic/card/mic_x100.c static inline int mic_get_sbox_irq(int db) db 109 drivers/misc/mic/card/mic_x100.c return MIC_X100_IRQ_BASE + db; db 117 drivers/misc/mic/card/mic_x100.c void mic_send_p2p_intr(int db, struct mic_mw *mw) db 121 drivers/misc/mic/card/mic_x100.c if (db < MIC_X100_NUM_SBOX_IRQ) { db 122 drivers/misc/mic/card/mic_x100.c mic_x100_send_sbox_intr(mw, db); db 124 drivers/misc/mic/card/mic_x100.c rdmasr_index = db - MIC_X100_NUM_SBOX_IRQ; db 148 drivers/misc/mic/card/mic_x100.c int mic_db_to_irq(struct mic_driver *mdrv, int db) db 156 drivers/misc/mic/card/mic_x100.c if (db < MIC_X100_NUM_SBOX_IRQ) { db 157 drivers/misc/mic/card/mic_x100.c return mic_get_sbox_irq(db); db 159 drivers/misc/mic/card/mic_x100.c rdmasr_index = db - MIC_X100_NUM_SBOX_IRQ; db 96 drivers/misc/mic/host/mic_boot.c static void __mic_send_intr(struct vop_device *vpdev, int db) db 100 drivers/misc/mic/host/mic_boot.c mdev->ops->send_intr(mdev, db); db 249 drivers/misc/mic/host/mic_boot.c void *data, int db) db 254 drivers/misc/mic/host/mic_boot.c db, MIC_INTR_DB); db 280 drivers/misc/mic/host/mic_boot.c static void ___mic_send_intr(struct scif_hw_dev *scdev, int db) db 284 drivers/misc/mic/host/mic_boot.c mdev->ops->send_intr(mdev, db); db 70 drivers/misc/mic/scif/scif_main.c sdev->hw_ops->ack_interrupt(sdev, scifdev->db); db 162 drivers/misc/mic/scif/scif_main.c scifdev->db = sdev->hw_ops->next_db(sdev); db 165 drivers/misc/mic/scif/scif_main.c scifdev->db); db 173 drivers/misc/mic/scif/scif_main.c bp->c2h_scif_db = scifdev->db; db 178 drivers/misc/mic/scif/scif_main.c iowrite8(scifdev->db, &bp->h2c_scif_db); db 177 drivers/misc/mic/scif/scif_main.h int db; db 814 drivers/misc/mic/scif/scif_nodeqp.c newdev->db = sdev->hw_ops->next_db(sdev); db 817 drivers/misc/mic/scif/scif_nodeqp.c newdev->db); db 827 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[2] = newdev->db; db 50 drivers/misc/mic/vop/vop_vringh.c s8 db = vdev->dc->h2c_vdev_db; db 52 drivers/misc/mic/vop/vop_vringh.c if (db != -1) db 53 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->send_intr(vpdev, db); db 160 drivers/misc/mic/vop/vop_vringh.c s8 db = bootparam->h2c_config_db; db 166 drivers/misc/mic/vop/vop_vringh.c if (db == -1 || vdev->dd->type == -1) { db 173 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->send_intr(vpdev, db); db 268 drivers/misc/mic/vop/vop_vringh.c s8 db = -1; db 374 drivers/misc/mic/vop/vop_vringh.c db = bootparam->h2c_config_db; db 375 drivers/misc/mic/vop/vop_vringh.c if (db != -1) db 376 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->send_intr(vpdev, db); db 378 drivers/misc/mic/vop/vop_vringh.c dev_dbg(&vpdev->dev, "Added virtio id %d db %d\n", dd->type, db); db 397 drivers/misc/mic/vop/vop_vringh.c s8 db; db 402 drivers/misc/mic/vop/vop_vringh.c db = bootparam->h2c_config_db; db 403 drivers/misc/mic/vop/vop_vringh.c if (db != -1) db 404 drivers/misc/mic/vop/vop_vringh.c vpdev->hw_ops->send_intr(vpdev, db); db 267 drivers/mtd/nand/raw/marvell_nand.c #define MARVELL_LAYOUT(ws, dc, ds, nc, fcc, db, sb, eb, ldb, lsb, leb) \ db 274 drivers/mtd/nand/raw/marvell_nand.c .data_bytes = db, \ db 95 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 99 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_MAC_SUPP_REG); db 101 drivers/net/ethernet/allwinner/sun4i-emac.c if (db->speed == SPEED_100) db 103 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_MAC_SUPP_REG); db 108 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 112 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); db 114 drivers/net/ethernet/allwinner/sun4i-emac.c if (db->duplex) db 116 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); db 121 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 127 drivers/net/ethernet/allwinner/sun4i-emac.c if (db->speed != phydev->speed) { db 128 drivers/net/ethernet/allwinner/sun4i-emac.c spin_lock_irqsave(&db->lock, flags); db 129 drivers/net/ethernet/allwinner/sun4i-emac.c db->speed = phydev->speed; db 131 drivers/net/ethernet/allwinner/sun4i-emac.c spin_unlock_irqrestore(&db->lock, flags); db 135 drivers/net/ethernet/allwinner/sun4i-emac.c if (db->duplex != phydev->duplex) { db 136 drivers/net/ethernet/allwinner/sun4i-emac.c spin_lock_irqsave(&db->lock, flags); db 137 drivers/net/ethernet/allwinner/sun4i-emac.c db->duplex = phydev->duplex; db 139 drivers/net/ethernet/allwinner/sun4i-emac.c spin_unlock_irqrestore(&db->lock, flags); db 144 drivers/net/ethernet/allwinner/sun4i-emac.c if (phydev->link != db->link) { db 146 drivers/net/ethernet/allwinner/sun4i-emac.c db->speed = 0; db 147 drivers/net/ethernet/allwinner/sun4i-emac.c db->duplex = -1; db 149 drivers/net/ethernet/allwinner/sun4i-emac.c db->link = phydev->link; db 160 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 166 drivers/net/ethernet/allwinner/sun4i-emac.c phydev = of_phy_connect(db->ndev, db->phy_node, db 168 drivers/net/ethernet/allwinner/sun4i-emac.c db->phy_interface); db 170 drivers/net/ethernet/allwinner/sun4i-emac.c netdev_err(db->ndev, "could not find the PHY\n"); db 177 drivers/net/ethernet/allwinner/sun4i-emac.c db->link = 0; db 178 drivers/net/ethernet/allwinner/sun4i-emac.c db->speed = 0; db 179 drivers/net/ethernet/allwinner/sun4i-emac.c db->duplex = -1; db 189 drivers/net/ethernet/allwinner/sun4i-emac.c static void emac_reset(struct emac_board_info *db) db 191 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "resetting device\n"); db 194 drivers/net/ethernet/allwinner/sun4i-emac.c writel(0, db->membase + EMAC_CTL_REG); db 196 drivers/net/ethernet/allwinner/sun4i-emac.c writel(EMAC_CTL_RESET, db->membase + EMAC_CTL_REG); db 234 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 236 drivers/net/ethernet/allwinner/sun4i-emac.c return db->msg_enable; db 241 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 243 drivers/net/ethernet/allwinner/sun4i-emac.c db->msg_enable = value; db 257 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); db 261 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_TX_MODE_REG); db 264 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_TX_MODE_REG); db 268 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_MAC_CTL0_REG); db 271 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_MAC_CTL0_REG); db 274 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_MAC_CTL1_REG); db 278 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_MAC_CTL1_REG); db 281 drivers/net/ethernet/allwinner/sun4i-emac.c writel(EMAC_MAC_IPGT_FULL_DUPLEX, db->membase + EMAC_MAC_IPGT_REG); db 285 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_MAC_IPGR_REG); db 289 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_MAC_CLRT_REG); db 293 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_MAC_MAXF_REG); db 300 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); db 304 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_RX_CTL_REG); db 315 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_RX_CTL_REG); db 320 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); db 325 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_RX_CTL_REG); db 327 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_RX_CTL_REG); db 332 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_MAC_CTL0_REG); db 334 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_MAC_CTL0_REG); db 337 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_MAC_MCFG_REG); db 340 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_MAC_MCFG_REG); db 343 drivers/net/ethernet/allwinner/sun4i-emac.c writel(0x0, db->membase + EMAC_RX_FBC_REG); db 346 drivers/net/ethernet/allwinner/sun4i-emac.c writel(0, db->membase + EMAC_INT_CTL_REG); db 347 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_INT_STA_REG); db 348 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_INT_STA_REG); db 357 drivers/net/ethernet/allwinner/sun4i-emac.c dev_addr[2], db->membase + EMAC_MAC_A1_REG); db 359 drivers/net/ethernet/allwinner/sun4i-emac.c dev_addr[5], db->membase + EMAC_MAC_A0_REG); db 369 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 377 drivers/net/ethernet/allwinner/sun4i-emac.c dev_addr[2], db->membase + EMAC_MAC_A1_REG); db 379 drivers/net/ethernet/allwinner/sun4i-emac.c dev_addr[5], db->membase + EMAC_MAC_A0_REG); db 387 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 391 drivers/net/ethernet/allwinner/sun4i-emac.c spin_lock_irqsave(&db->lock, flags); db 397 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_CTL_REG); db 399 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_CTL_REG); db 402 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_INT_CTL_REG); db 404 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_INT_CTL_REG); db 406 drivers/net/ethernet/allwinner/sun4i-emac.c spin_unlock_irqrestore(&db->lock, flags); db 412 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 415 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_timer(db)) db 416 drivers/net/ethernet/allwinner/sun4i-emac.c dev_err(db->dev, "tx time out.\n"); db 419 drivers/net/ethernet/allwinner/sun4i-emac.c spin_lock_irqsave(&db->lock, flags); db 422 drivers/net/ethernet/allwinner/sun4i-emac.c emac_reset(db); db 429 drivers/net/ethernet/allwinner/sun4i-emac.c spin_unlock_irqrestore(&db->lock, flags); db 437 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 441 drivers/net/ethernet/allwinner/sun4i-emac.c channel = db->tx_fifo_stat & 3; db 447 drivers/net/ethernet/allwinner/sun4i-emac.c spin_lock_irqsave(&db->lock, flags); db 449 drivers/net/ethernet/allwinner/sun4i-emac.c writel(channel, db->membase + EMAC_TX_INS_REG); db 451 drivers/net/ethernet/allwinner/sun4i-emac.c emac_outblk_32bit(db->membase + EMAC_TX_IO_DATA_REG, db 455 drivers/net/ethernet/allwinner/sun4i-emac.c db->tx_fifo_stat |= 1 << channel; db 459 drivers/net/ethernet/allwinner/sun4i-emac.c writel(skb->len, db->membase + EMAC_TX_PL0_REG); db 461 drivers/net/ethernet/allwinner/sun4i-emac.c writel(readl(db->membase + EMAC_TX_CTL0_REG) | 1, db 462 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_TX_CTL0_REG); db 468 drivers/net/ethernet/allwinner/sun4i-emac.c writel(skb->len, db->membase + EMAC_TX_PL1_REG); db 470 drivers/net/ethernet/allwinner/sun4i-emac.c writel(readl(db->membase + EMAC_TX_CTL1_REG) | 1, db 471 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_TX_CTL1_REG); db 477 drivers/net/ethernet/allwinner/sun4i-emac.c if ((db->tx_fifo_stat & 3) == 3) { db 482 drivers/net/ethernet/allwinner/sun4i-emac.c spin_unlock_irqrestore(&db->lock, flags); db 493 drivers/net/ethernet/allwinner/sun4i-emac.c static void emac_tx_done(struct net_device *dev, struct emac_board_info *db, db 497 drivers/net/ethernet/allwinner/sun4i-emac.c db->tx_fifo_stat &= ~(tx_status & 3); db 503 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_tx_done(db)) db 504 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "tx done, NSR %02x\n", tx_status); db 513 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 527 drivers/net/ethernet/allwinner/sun4i-emac.c rxcount = readl(db->membase + EMAC_RX_FBC_REG); db 529 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_rx_status(db)) db 530 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "RXCount: %x\n", rxcount); db 532 drivers/net/ethernet/allwinner/sun4i-emac.c if ((db->skb_last != NULL) && (rxlen_last > 0)) { db 536 drivers/net/ethernet/allwinner/sun4i-emac.c db->skb_last->protocol = eth_type_trans(db->skb_last, db 538 drivers/net/ethernet/allwinner/sun4i-emac.c netif_rx(db->skb_last); db 540 drivers/net/ethernet/allwinner/sun4i-emac.c db->skb_last = NULL; db 543 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_RX_CTL_REG); db 545 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_RX_CTL_REG); db 549 drivers/net/ethernet/allwinner/sun4i-emac.c db->emacrx_completed_flag = 1; db 550 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_INT_CTL_REG); db 552 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_INT_CTL_REG); db 555 drivers/net/ethernet/allwinner/sun4i-emac.c rxcount = readl(db->membase + EMAC_RX_FBC_REG); db 560 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_RX_IO_DATA_REG); db 561 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_rx_status(db)) db 562 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "receive header: %x\n", reg_val); db 565 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_CTL_REG); db 567 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_CTL_REG); db 570 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_RX_CTL_REG); db 572 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_RX_CTL_REG); db 575 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_RX_CTL_REG); db 579 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_CTL_REG); db 581 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase + EMAC_CTL_REG); db 582 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_INT_CTL_REG); db 584 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_INT_CTL_REG); db 586 drivers/net/ethernet/allwinner/sun4i-emac.c db->emacrx_completed_flag = 1; db 594 drivers/net/ethernet/allwinner/sun4i-emac.c rxhdr = readl(db->membase + EMAC_RX_IO_DATA_REG); db 596 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_rx_status(db)) db 597 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "rxhdr: %x\n", *((int *)(&rxhdr))); db 602 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_rx_status(db)) db 603 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "RX: status %02x, length %04x\n", db 609 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_rx_err(db)) db 610 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "RX: Bad Packet (runt)\n"); db 617 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_rx_err(db)) db 618 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "crc error\n"); db 623 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_rx_err(db)) db 624 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "length error\n"); db 638 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_rx_status(db)) db 639 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "RxLen %x\n", rxlen); db 641 drivers/net/ethernet/allwinner/sun4i-emac.c emac_inblk_32bit(db->membase + EMAC_RX_IO_DATA_REG, db 656 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 664 drivers/net/ethernet/allwinner/sun4i-emac.c spin_lock_irqsave(&db->lock, flags); db 667 drivers/net/ethernet/allwinner/sun4i-emac.c writel(0, db->membase + EMAC_INT_CTL_REG); db 671 drivers/net/ethernet/allwinner/sun4i-emac.c int_status = readl(db->membase + EMAC_INT_STA_REG); db 673 drivers/net/ethernet/allwinner/sun4i-emac.c writel(int_status, db->membase + EMAC_INT_STA_REG); db 675 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_intr(db)) db 676 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "emac interrupt %02x\n", int_status); db 679 drivers/net/ethernet/allwinner/sun4i-emac.c if ((int_status & 0x100) && (db->emacrx_completed_flag == 1)) { db 681 drivers/net/ethernet/allwinner/sun4i-emac.c db->emacrx_completed_flag = 0; db 687 drivers/net/ethernet/allwinner/sun4i-emac.c emac_tx_done(dev, db, int_status); db 693 drivers/net/ethernet/allwinner/sun4i-emac.c if (db->emacrx_completed_flag == 1) { db 694 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_INT_CTL_REG); db 696 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_INT_CTL_REG); db 698 drivers/net/ethernet/allwinner/sun4i-emac.c spin_unlock_irqrestore(&db->lock, flags); db 720 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 723 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_ifup(db)) db 724 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "enabling %s\n", dev->name); db 730 drivers/net/ethernet/allwinner/sun4i-emac.c emac_reset(db); db 749 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(dev); db 752 drivers/net/ethernet/allwinner/sun4i-emac.c writel(0, db->membase + EMAC_INT_CTL_REG); db 755 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_INT_STA_REG); db 756 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_INT_STA_REG); db 759 drivers/net/ethernet/allwinner/sun4i-emac.c reg_val = readl(db->membase + EMAC_CTL_REG); db 761 drivers/net/ethernet/allwinner/sun4i-emac.c writel(reg_val, db->membase + EMAC_CTL_REG); db 769 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); db 771 drivers/net/ethernet/allwinner/sun4i-emac.c if (netif_msg_ifdown(db)) db 772 drivers/net/ethernet/allwinner/sun4i-emac.c dev_dbg(db->dev, "shutting down %s\n", ndev->name); db 807 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db; db 820 drivers/net/ethernet/allwinner/sun4i-emac.c db = netdev_priv(ndev); db 822 drivers/net/ethernet/allwinner/sun4i-emac.c db->dev = &pdev->dev; db 823 drivers/net/ethernet/allwinner/sun4i-emac.c db->ndev = ndev; db 824 drivers/net/ethernet/allwinner/sun4i-emac.c db->pdev = pdev; db 825 drivers/net/ethernet/allwinner/sun4i-emac.c db->msg_enable = netif_msg_init(debug, EMAC_DEFAULT_MSG_ENABLE); db 827 drivers/net/ethernet/allwinner/sun4i-emac.c spin_lock_init(&db->lock); db 829 drivers/net/ethernet/allwinner/sun4i-emac.c db->membase = of_iomap(np, 0); db 830 drivers/net/ethernet/allwinner/sun4i-emac.c if (!db->membase) { db 837 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->base_addr = (unsigned long)db->membase; db 845 drivers/net/ethernet/allwinner/sun4i-emac.c db->clk = devm_clk_get(&pdev->dev, NULL); db 846 drivers/net/ethernet/allwinner/sun4i-emac.c if (IS_ERR(db->clk)) { db 847 drivers/net/ethernet/allwinner/sun4i-emac.c ret = PTR_ERR(db->clk); db 851 drivers/net/ethernet/allwinner/sun4i-emac.c ret = clk_prepare_enable(db->clk); db 863 drivers/net/ethernet/allwinner/sun4i-emac.c db->phy_node = of_parse_phandle(np, "phy-handle", 0); db 864 drivers/net/ethernet/allwinner/sun4i-emac.c if (!db->phy_node) db 865 drivers/net/ethernet/allwinner/sun4i-emac.c db->phy_node = of_parse_phandle(np, "phy", 0); db 866 drivers/net/ethernet/allwinner/sun4i-emac.c if (!db->phy_node) { db 884 drivers/net/ethernet/allwinner/sun4i-emac.c db->emacrx_completed_flag = 1; db 886 drivers/net/ethernet/allwinner/sun4i-emac.c emac_reset(db); db 905 drivers/net/ethernet/allwinner/sun4i-emac.c ndev->name, db->membase, ndev->irq, ndev->dev_addr); db 912 drivers/net/ethernet/allwinner/sun4i-emac.c clk_disable_unprepare(db->clk); db 914 drivers/net/ethernet/allwinner/sun4i-emac.c iounmap(db->membase); db 916 drivers/net/ethernet/allwinner/sun4i-emac.c dev_err(db->dev, "not found (%d).\n", ret); db 926 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); db 930 drivers/net/ethernet/allwinner/sun4i-emac.c clk_disable_unprepare(db->clk); db 931 drivers/net/ethernet/allwinner/sun4i-emac.c iounmap(db->membase); db 952 drivers/net/ethernet/allwinner/sun4i-emac.c struct emac_board_info *db = netdev_priv(ndev); db 954 drivers/net/ethernet/allwinner/sun4i-emac.c emac_reset(db); db 1252 drivers/net/ethernet/amd/au1000_eth.c pDB = aup->db; db 72 drivers/net/ethernet/amd/au1000_eth.h struct db_dest db[NUM_RX_BUFFS+NUM_TX_BUFFS]; db 273 drivers/net/ethernet/broadcom/bnxt/bnxt.c #define BNXT_CP_DB_IRQ_DIS(db) \ db 274 drivers/net/ethernet/broadcom/bnxt/bnxt.c writel(DB_CP_IRQ_DIS_FLAGS, db) db 276 drivers/net/ethernet/broadcom/bnxt/bnxt.c #define BNXT_DB_CQ(db, idx) \ db 277 drivers/net/ethernet/broadcom/bnxt/bnxt.c writel(DB_CP_FLAGS | RING_CMP(idx), (db)->doorbell) db 279 drivers/net/ethernet/broadcom/bnxt/bnxt.c #define BNXT_DB_NQ_P5(db, idx) \ db 280 drivers/net/ethernet/broadcom/bnxt/bnxt.c writeq((db)->db_key64 | DBR_TYPE_NQ | RING_CMP(idx), (db)->doorbell) db 282 drivers/net/ethernet/broadcom/bnxt/bnxt.c #define BNXT_DB_CQ_ARM(db, idx) \ db 283 drivers/net/ethernet/broadcom/bnxt/bnxt.c writel(DB_CP_REARM_FLAGS | RING_CMP(idx), (db)->doorbell) db 285 drivers/net/ethernet/broadcom/bnxt/bnxt.c #define BNXT_DB_NQ_ARM_P5(db, idx) \ db 286 drivers/net/ethernet/broadcom/bnxt/bnxt.c writeq((db)->db_key64 | DBR_TYPE_NQ_ARM | RING_CMP(idx), (db)->doorbell) db 288 drivers/net/ethernet/broadcom/bnxt/bnxt.c static void bnxt_db_nq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) db 291 drivers/net/ethernet/broadcom/bnxt/bnxt.c BNXT_DB_NQ_P5(db, idx); db 293 drivers/net/ethernet/broadcom/bnxt/bnxt.c BNXT_DB_CQ(db, idx); db 296 drivers/net/ethernet/broadcom/bnxt/bnxt.c static void bnxt_db_nq_arm(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) db 299 drivers/net/ethernet/broadcom/bnxt/bnxt.c BNXT_DB_NQ_ARM_P5(db, idx); db 301 drivers/net/ethernet/broadcom/bnxt/bnxt.c BNXT_DB_CQ_ARM(db, idx); db 304 drivers/net/ethernet/broadcom/bnxt/bnxt.c static void bnxt_db_cq(struct bnxt *bp, struct bnxt_db_info *db, u32 idx) db 307 drivers/net/ethernet/broadcom/bnxt/bnxt.c writeq(db->db_key64 | DBR_TYPE_CQ_ARMALL | RING_CMP(idx), db 308 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->doorbell); db 310 drivers/net/ethernet/broadcom/bnxt/bnxt.c BNXT_DB_CQ(db, idx); db 404 drivers/net/ethernet/broadcom/bnxt/bnxt.c void __iomem *db = txr->tx_db.doorbell; db 462 drivers/net/ethernet/broadcom/bnxt/bnxt.c __iowrite64_copy(db, tx_push_buf, 16); db 463 drivers/net/ethernet/broadcom/bnxt/bnxt.c __iowrite32_copy(db + 4, tx_push_buf + 1, db 466 drivers/net/ethernet/broadcom/bnxt/bnxt.c __iowrite64_copy(db, tx_push_buf, push_len); db 2400 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct bnxt_db_info *db; db 2403 drivers/net/ethernet/broadcom/bnxt/bnxt.c db = &cpr2->cp_db; db 2404 drivers/net/ethernet/broadcom/bnxt/bnxt.c writeq(db->db_key64 | dbr_type | db 2405 drivers/net/ethernet/broadcom/bnxt/bnxt.c RING_CMP(cpr2->cp_raw_cons), db->doorbell); db 5356 drivers/net/ethernet/broadcom/bnxt/bnxt.c static void bnxt_set_db(struct bnxt *bp, struct bnxt_db_info *db, u32 ring_type, db 5361 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->doorbell = bp->bar1 + 0x10000; db 5363 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->doorbell = bp->bar1 + 0x4000; db 5366 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->db_key64 = DBR_PATH_L2 | DBR_TYPE_SQ; db 5370 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->db_key64 = DBR_PATH_L2 | DBR_TYPE_SRQ; db 5373 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->db_key64 = DBR_PATH_L2; db 5376 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->db_key64 = DBR_PATH_L2; db 5379 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->db_key64 |= (u64)xid << DBR_XID_SFT; db 5381 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->doorbell = bp->bar1 + map_idx * 0x80; db 5384 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->db_key32 = DB_KEY_TX; db 5388 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->db_key32 = DB_KEY_RX; db 5391 drivers/net/ethernet/broadcom/bnxt/bnxt.c db->db_key32 = DB_KEY_CP; db 1859 drivers/net/ethernet/broadcom/bnxt/bnxt.h #define writeq(val64, db) \ db 1862 drivers/net/ethernet/broadcom/bnxt/bnxt.h writel((val64) & 0xffffffff, db); \ db 1863 drivers/net/ethernet/broadcom/bnxt/bnxt.h writel((val64) >> 32, (db) + 4); \ db 1872 drivers/net/ethernet/broadcom/bnxt/bnxt.h struct bnxt_db_info *db, u32 idx) db 1875 drivers/net/ethernet/broadcom/bnxt/bnxt.h writeq_relaxed(db->db_key64 | idx, db->doorbell); db 1877 drivers/net/ethernet/broadcom/bnxt/bnxt.h u32 db_val = db->db_key32 | idx; db 1879 drivers/net/ethernet/broadcom/bnxt/bnxt.h writel_relaxed(db_val, db->doorbell); db 1881 drivers/net/ethernet/broadcom/bnxt/bnxt.h writel_relaxed(db_val, db->doorbell); db 1886 drivers/net/ethernet/broadcom/bnxt/bnxt.h static inline void bnxt_db_write(struct bnxt *bp, struct bnxt_db_info *db, db 1890 drivers/net/ethernet/broadcom/bnxt/bnxt.h writeq(db->db_key64 | idx, db->doorbell); db 1892 drivers/net/ethernet/broadcom/bnxt/bnxt.h u32 db_val = db->db_key32 | idx; db 1894 drivers/net/ethernet/broadcom/bnxt/bnxt.h writel(db_val, db->doorbell); db 1896 drivers/net/ethernet/broadcom/bnxt/bnxt.h writel(db_val, db->doorbell); db 141 drivers/net/ethernet/davicom/dm9000.c #define dm9000_dbg(db, lev, msg...) do { \ db 143 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, msg); \ db 158 drivers/net/ethernet/davicom/dm9000.c ior(struct board_info *db, int reg) db 160 drivers/net/ethernet/davicom/dm9000.c writeb(reg, db->io_addr); db 161 drivers/net/ethernet/davicom/dm9000.c return readb(db->io_data); db 169 drivers/net/ethernet/davicom/dm9000.c iow(struct board_info *db, int reg, int value) db 171 drivers/net/ethernet/davicom/dm9000.c writeb(reg, db->io_addr); db 172 drivers/net/ethernet/davicom/dm9000.c writeb(value, db->io_data); db 176 drivers/net/ethernet/davicom/dm9000.c dm9000_reset(struct board_info *db) db 178 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "resetting device\n"); db 184 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_NCR, NCR_RST | NCR_MAC_LBK); db 186 drivers/net/ethernet/davicom/dm9000.c if (ior(db, DM9000_NCR) & 1) db 187 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "dm9000 did not respond to first reset\n"); db 189 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_NCR, 0); db 190 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_NCR, NCR_RST | NCR_MAC_LBK); db 192 drivers/net/ethernet/davicom/dm9000.c if (ior(db, DM9000_NCR) & 1) db 193 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "dm9000 did not respond to second reset\n"); db 268 drivers/net/ethernet/davicom/dm9000.c static void dm9000_msleep(struct board_info *db, unsigned int ms) db 270 drivers/net/ethernet/davicom/dm9000.c if (db->in_suspend || db->in_timeout) db 280 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 285 drivers/net/ethernet/davicom/dm9000.c mutex_lock(&db->addr_lock); db 287 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 290 drivers/net/ethernet/davicom/dm9000.c reg_save = readb(db->io_addr); db 293 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPAR, DM9000_PHY | reg); db 296 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPCR, EPCR_ERPRR | EPCR_EPOS); db 298 drivers/net/ethernet/davicom/dm9000.c writeb(reg_save, db->io_addr); db 299 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 301 drivers/net/ethernet/davicom/dm9000.c dm9000_msleep(db, 1); /* Wait read complete */ db 303 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 304 drivers/net/ethernet/davicom/dm9000.c reg_save = readb(db->io_addr); db 306 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPCR, 0x0); /* Clear phyxcer read command */ db 309 drivers/net/ethernet/davicom/dm9000.c ret = (ior(db, DM9000_EPDRH) << 8) | ior(db, DM9000_EPDRL); db 312 drivers/net/ethernet/davicom/dm9000.c writeb(reg_save, db->io_addr); db 313 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 315 drivers/net/ethernet/davicom/dm9000.c mutex_unlock(&db->addr_lock); db 317 drivers/net/ethernet/davicom/dm9000.c dm9000_dbg(db, 5, "phy_read[%02x] -> %04x\n", reg, ret); db 326 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 330 drivers/net/ethernet/davicom/dm9000.c dm9000_dbg(db, 5, "phy_write[%02x] = %04x\n", reg, value); db 331 drivers/net/ethernet/davicom/dm9000.c if (!db->in_timeout) db 332 drivers/net/ethernet/davicom/dm9000.c mutex_lock(&db->addr_lock); db 334 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 337 drivers/net/ethernet/davicom/dm9000.c reg_save = readb(db->io_addr); db 340 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPAR, DM9000_PHY | reg); db 343 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPDRL, value); db 344 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPDRH, value >> 8); db 347 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPCR, EPCR_EPOS | EPCR_ERPRW); db 349 drivers/net/ethernet/davicom/dm9000.c writeb(reg_save, db->io_addr); db 350 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 352 drivers/net/ethernet/davicom/dm9000.c dm9000_msleep(db, 1); /* Wait write complete */ db 354 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 355 drivers/net/ethernet/davicom/dm9000.c reg_save = readb(db->io_addr); db 357 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPCR, 0x0); /* Clear phyxcer write command */ db 360 drivers/net/ethernet/davicom/dm9000.c writeb(reg_save, db->io_addr); db 362 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 363 drivers/net/ethernet/davicom/dm9000.c if (!db->in_timeout) db 364 drivers/net/ethernet/davicom/dm9000.c mutex_unlock(&db->addr_lock); db 373 drivers/net/ethernet/davicom/dm9000.c static void dm9000_set_io(struct board_info *db, int byte_width) db 381 drivers/net/ethernet/davicom/dm9000.c db->dumpblk = dm9000_dumpblk_8bit; db 382 drivers/net/ethernet/davicom/dm9000.c db->outblk = dm9000_outblk_8bit; db 383 drivers/net/ethernet/davicom/dm9000.c db->inblk = dm9000_inblk_8bit; db 388 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, ": 3 byte IO, falling back to 16bit\n"); db 391 drivers/net/ethernet/davicom/dm9000.c db->dumpblk = dm9000_dumpblk_16bit; db 392 drivers/net/ethernet/davicom/dm9000.c db->outblk = dm9000_outblk_16bit; db 393 drivers/net/ethernet/davicom/dm9000.c db->inblk = dm9000_inblk_16bit; db 398 drivers/net/ethernet/davicom/dm9000.c db->dumpblk = dm9000_dumpblk_32bit; db 399 drivers/net/ethernet/davicom/dm9000.c db->outblk = dm9000_outblk_32bit; db 400 drivers/net/ethernet/davicom/dm9000.c db->inblk = dm9000_inblk_32bit; db 405 drivers/net/ethernet/davicom/dm9000.c static void dm9000_schedule_poll(struct board_info *db) db 407 drivers/net/ethernet/davicom/dm9000.c if (db->type == TYPE_DM9000E) db 408 drivers/net/ethernet/davicom/dm9000.c schedule_delayed_work(&db->phy_poll, HZ * 2); db 422 drivers/net/ethernet/davicom/dm9000.c dm9000_read_locked(struct board_info *db, int reg) db 427 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 428 drivers/net/ethernet/davicom/dm9000.c ret = ior(db, reg); db 429 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 434 drivers/net/ethernet/davicom/dm9000.c static int dm9000_wait_eeprom(struct board_info *db) db 451 drivers/net/ethernet/davicom/dm9000.c status = dm9000_read_locked(db, DM9000_EPCR); db 459 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "timeout waiting EEPROM\n"); db 471 drivers/net/ethernet/davicom/dm9000.c dm9000_read_eeprom(struct board_info *db, int offset, u8 *to) db 475 drivers/net/ethernet/davicom/dm9000.c if (db->flags & DM9000_PLATF_NO_EEPROM) { db 481 drivers/net/ethernet/davicom/dm9000.c mutex_lock(&db->addr_lock); db 483 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 485 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPAR, offset); db 486 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPCR, EPCR_ERPRR); db 488 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 490 drivers/net/ethernet/davicom/dm9000.c dm9000_wait_eeprom(db); db 495 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 497 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPCR, 0x0); db 499 drivers/net/ethernet/davicom/dm9000.c to[0] = ior(db, DM9000_EPDRL); db 500 drivers/net/ethernet/davicom/dm9000.c to[1] = ior(db, DM9000_EPDRH); db 502 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 504 drivers/net/ethernet/davicom/dm9000.c mutex_unlock(&db->addr_lock); db 511 drivers/net/ethernet/davicom/dm9000.c dm9000_write_eeprom(struct board_info *db, int offset, u8 *data) db 515 drivers/net/ethernet/davicom/dm9000.c if (db->flags & DM9000_PLATF_NO_EEPROM) db 518 drivers/net/ethernet/davicom/dm9000.c mutex_lock(&db->addr_lock); db 520 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 521 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPAR, offset); db 522 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPDRH, data[1]); db 523 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPDRL, data[0]); db 524 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPCR, EPCR_WEP | EPCR_ERPRW); db 525 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 527 drivers/net/ethernet/davicom/dm9000.c dm9000_wait_eeprom(db); db 531 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 532 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_EPCR, 0); db 533 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 535 drivers/net/ethernet/davicom/dm9000.c mutex_unlock(&db->addr_lock); db 751 drivers/net/ethernet/davicom/dm9000.c static void dm9000_show_carrier(struct board_info *db, db 755 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev = db->ndev; db 756 drivers/net/ethernet/davicom/dm9000.c struct mii_if_info *mii = &db->mii; db 757 drivers/net/ethernet/davicom/dm9000.c unsigned ncr = dm9000_read_locked(db, DM9000_NCR); db 761 drivers/net/ethernet/davicom/dm9000.c dev_info(db->dev, db 766 drivers/net/ethernet/davicom/dm9000.c dev_info(db->dev, "%s: link down\n", ndev->name); db 774 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = container_of(dw, struct board_info, phy_poll); db 775 drivers/net/ethernet/davicom/dm9000.c struct net_device *ndev = db->ndev; db 777 drivers/net/ethernet/davicom/dm9000.c if (db->flags & DM9000_PLATF_SIMPLE_PHY && db 778 drivers/net/ethernet/davicom/dm9000.c !(db->flags & DM9000_PLATF_EXT_PHY)) { db 779 drivers/net/ethernet/davicom/dm9000.c unsigned nsr = dm9000_read_locked(db, DM9000_NSR); db 786 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_link(db)) db 787 drivers/net/ethernet/davicom/dm9000.c dm9000_show_carrier(db, new_carrier, nsr); db 795 drivers/net/ethernet/davicom/dm9000.c mii_check_media(&db->mii, netif_msg_link(db), 0); db 798 drivers/net/ethernet/davicom/dm9000.c dm9000_schedule_poll(db); db 807 drivers/net/ethernet/davicom/dm9000.c dm9000_release_board(struct platform_device *pdev, struct board_info *db) db 811 drivers/net/ethernet/davicom/dm9000.c iounmap(db->io_addr); db 812 drivers/net/ethernet/davicom/dm9000.c iounmap(db->io_data); db 816 drivers/net/ethernet/davicom/dm9000.c if (db->data_req) db 817 drivers/net/ethernet/davicom/dm9000.c release_resource(db->data_req); db 818 drivers/net/ethernet/davicom/dm9000.c kfree(db->data_req); db 820 drivers/net/ethernet/davicom/dm9000.c if (db->addr_req) db 821 drivers/net/ethernet/davicom/dm9000.c release_resource(db->addr_req); db 822 drivers/net/ethernet/davicom/dm9000.c kfree(db->addr_req); db 842 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 849 drivers/net/ethernet/davicom/dm9000.c dm9000_dbg(db, 1, "entering %s\n", __func__); db 852 drivers/net/ethernet/davicom/dm9000.c iow(db, oft, dev->dev_addr[i]); db 868 drivers/net/ethernet/davicom/dm9000.c iow(db, oft++, hash_table[i]); db 869 drivers/net/ethernet/davicom/dm9000.c iow(db, oft++, hash_table[i] >> 8); db 872 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_RCR, rcr); db 878 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 881 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 883 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 887 drivers/net/ethernet/davicom/dm9000.c dm9000_mask_interrupts(struct board_info *db) db 889 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_IMR, IMR_PAR); db 893 drivers/net/ethernet/davicom/dm9000.c dm9000_unmask_interrupts(struct board_info *db) db 895 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_IMR, db->imr_all); db 904 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 908 drivers/net/ethernet/davicom/dm9000.c dm9000_dbg(db, 1, "entering %s\n", __func__); db 910 drivers/net/ethernet/davicom/dm9000.c dm9000_reset(db); db 911 drivers/net/ethernet/davicom/dm9000.c dm9000_mask_interrupts(db); db 914 drivers/net/ethernet/davicom/dm9000.c db->io_mode = ior(db, DM9000_ISR) >> 6; /* ISR bit7:6 keeps I/O mode */ db 918 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_RCSR, db 921 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_GPCR, GPCR_GEP_CNTL); /* Let GPIO0 output */ db 922 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_GPR, 0); db 927 drivers/net/ethernet/davicom/dm9000.c if (db->type == TYPE_DM9000B) { db 932 drivers/net/ethernet/davicom/dm9000.c ncr = (db->flags & DM9000_PLATF_EXT_PHY) ? NCR_EXT_PHY : 0; db 937 drivers/net/ethernet/davicom/dm9000.c if (db->wake_supported) db 940 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_NCR, ncr); db 943 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_TCR, 0); /* TX Polling clear */ db 944 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_BPTR, 0x3f); /* Less 3Kb, 200us */ db 945 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_FCR, 0xff); /* Flow Control */ db 946 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_SMCR, 0); /* Special Mode */ db 948 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_NSR, NSR_WAKEST | NSR_TX2END | NSR_TX1END); db 949 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_ISR, ISR_CLR_STATUS); /* Clear interrupt status */ db 955 drivers/net/ethernet/davicom/dm9000.c if (db->type != TYPE_DM9000E) db 958 drivers/net/ethernet/davicom/dm9000.c db->imr_all = imr; db 961 drivers/net/ethernet/davicom/dm9000.c db->tx_pkt_cnt = 0; db 962 drivers/net/ethernet/davicom/dm9000.c db->queue_pkt_len = 0; db 969 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 974 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 975 drivers/net/ethernet/davicom/dm9000.c db->in_timeout = 1; db 976 drivers/net/ethernet/davicom/dm9000.c reg_save = readb(db->io_addr); db 980 drivers/net/ethernet/davicom/dm9000.c dm9000_unmask_interrupts(db); db 986 drivers/net/ethernet/davicom/dm9000.c writeb(reg_save, db->io_addr); db 987 drivers/net/ethernet/davicom/dm9000.c db->in_timeout = 0; db 988 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 1022 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 1024 drivers/net/ethernet/davicom/dm9000.c dm9000_dbg(db, 3, "%s:\n", __func__); db 1026 drivers/net/ethernet/davicom/dm9000.c if (db->tx_pkt_cnt > 1) db 1029 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 1032 drivers/net/ethernet/davicom/dm9000.c writeb(DM9000_MWCMD, db->io_addr); db 1034 drivers/net/ethernet/davicom/dm9000.c (db->outblk)(db->io_data, skb->data, skb->len); db 1037 drivers/net/ethernet/davicom/dm9000.c db->tx_pkt_cnt++; db 1039 drivers/net/ethernet/davicom/dm9000.c if (db->tx_pkt_cnt == 1) { db 1043 drivers/net/ethernet/davicom/dm9000.c db->queue_pkt_len = skb->len; db 1044 drivers/net/ethernet/davicom/dm9000.c db->queue_ip_summed = skb->ip_summed; db 1048 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 1061 drivers/net/ethernet/davicom/dm9000.c static void dm9000_tx_done(struct net_device *dev, struct board_info *db) db 1063 drivers/net/ethernet/davicom/dm9000.c int tx_status = ior(db, DM9000_NSR); /* Got TX status */ db 1067 drivers/net/ethernet/davicom/dm9000.c db->tx_pkt_cnt--; db 1070 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_tx_done(db)) db 1071 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "tx done, NSR %02x\n", tx_status); db 1074 drivers/net/ethernet/davicom/dm9000.c if (db->tx_pkt_cnt > 0) db 1075 drivers/net/ethernet/davicom/dm9000.c dm9000_send_packet(dev, db->queue_ip_summed, db 1076 drivers/net/ethernet/davicom/dm9000.c db->queue_pkt_len); db 1093 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 1102 drivers/net/ethernet/davicom/dm9000.c ior(db, DM9000_MRCMDX); /* Dummy read */ db 1105 drivers/net/ethernet/davicom/dm9000.c rxbyte = readb(db->io_data); db 1109 drivers/net/ethernet/davicom/dm9000.c dev_warn(db->dev, "status check fail: %d\n", rxbyte); db 1110 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_RCR, 0x00); /* Stop Device */ db 1119 drivers/net/ethernet/davicom/dm9000.c writeb(DM9000_MRCMD, db->io_addr); db 1121 drivers/net/ethernet/davicom/dm9000.c (db->inblk)(db->io_data, &rxhdr, sizeof(rxhdr)); db 1125 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_rx_status(db)) db 1126 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "RX: status %02x, length %04x\n", db 1132 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_rx_err(db)) db 1133 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "RX: Bad Packet (runt)\n"); db 1137 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "RST: RX Len:%x\n", RxLen); db 1146 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_rx_err(db)) db 1147 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "fifo error\n"); db 1151 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_rx_err(db)) db 1152 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "crc error\n"); db 1156 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_rx_err(db)) db 1157 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "length error\n"); db 1170 drivers/net/ethernet/davicom/dm9000.c (db->inblk)(db->io_data, rdptr, RxLen); db 1187 drivers/net/ethernet/davicom/dm9000.c (db->dumpblk)(db->io_data, RxLen); db 1195 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 1200 drivers/net/ethernet/davicom/dm9000.c dm9000_dbg(db, 3, "entering %s\n", __func__); db 1205 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 1208 drivers/net/ethernet/davicom/dm9000.c reg_save = readb(db->io_addr); db 1210 drivers/net/ethernet/davicom/dm9000.c dm9000_mask_interrupts(db); db 1212 drivers/net/ethernet/davicom/dm9000.c int_status = ior(db, DM9000_ISR); /* Got ISR */ db 1213 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_ISR, int_status); /* Clear ISR status */ db 1215 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_intr(db)) db 1216 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "interrupt status %02x\n", int_status); db 1224 drivers/net/ethernet/davicom/dm9000.c dm9000_tx_done(dev, db); db 1226 drivers/net/ethernet/davicom/dm9000.c if (db->type != TYPE_DM9000E) { db 1229 drivers/net/ethernet/davicom/dm9000.c schedule_delayed_work(&db->phy_poll, 1); db 1233 drivers/net/ethernet/davicom/dm9000.c dm9000_unmask_interrupts(db); db 1235 drivers/net/ethernet/davicom/dm9000.c writeb(reg_save, db->io_addr); db 1237 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 1245 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 1249 drivers/net/ethernet/davicom/dm9000.c spin_lock_irqsave(&db->lock, flags); db 1251 drivers/net/ethernet/davicom/dm9000.c nsr = ior(db, DM9000_NSR); db 1252 drivers/net/ethernet/davicom/dm9000.c wcr = ior(db, DM9000_WCR); db 1254 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "%s: NSR=0x%02x, WCR=0x%02x\n", __func__, nsr, wcr); db 1258 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_NSR, NSR_WAKEST); db 1261 drivers/net/ethernet/davicom/dm9000.c dev_info(db->dev, "wake by link status change\n"); db 1263 drivers/net/ethernet/davicom/dm9000.c dev_info(db->dev, "wake by sample packet\n"); db 1265 drivers/net/ethernet/davicom/dm9000.c dev_info(db->dev, "wake by magic packet\n"); db 1267 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "wake signalled with no reason? " db 1271 drivers/net/ethernet/davicom/dm9000.c spin_unlock_irqrestore(&db->lock, flags); db 1295 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 1298 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_ifup(db)) db 1299 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "enabling %s\n", dev->name); db 1305 drivers/net/ethernet/davicom/dm9000.c dev_warn(db->dev, "WARNING: no IRQ resource flags set.\n"); db 1310 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_GPR, 0); /* REG_1F bit0 activate phyxcer */ db 1321 drivers/net/ethernet/davicom/dm9000.c dm9000_unmask_interrupts(db); db 1324 drivers/net/ethernet/davicom/dm9000.c db->dbug_cnt = 0; db 1326 drivers/net/ethernet/davicom/dm9000.c mii_check_media(&db->mii, netif_msg_link(db), 1); db 1330 drivers/net/ethernet/davicom/dm9000.c schedule_delayed_work(&db->phy_poll, 1); db 1338 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(dev); db 1342 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_GPR, 0x01); /* Power-Down PHY */ db 1343 drivers/net/ethernet/davicom/dm9000.c dm9000_mask_interrupts(db); db 1344 drivers/net/ethernet/davicom/dm9000.c iow(db, DM9000_RCR, 0x00); /* Disable RX */ db 1354 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(ndev); db 1356 drivers/net/ethernet/davicom/dm9000.c if (netif_msg_ifdown(db)) db 1357 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "shutting down %s\n", ndev->name); db 1359 drivers/net/ethernet/davicom/dm9000.c cancel_delayed_work_sync(&db->phy_poll); db 1421 drivers/net/ethernet/davicom/dm9000.c struct board_info *db; /* Point a board information structure */ db 1483 drivers/net/ethernet/davicom/dm9000.c db = netdev_priv(ndev); db 1485 drivers/net/ethernet/davicom/dm9000.c db->dev = &pdev->dev; db 1486 drivers/net/ethernet/davicom/dm9000.c db->ndev = ndev; db 1488 drivers/net/ethernet/davicom/dm9000.c spin_lock_init(&db->lock); db 1489 drivers/net/ethernet/davicom/dm9000.c mutex_init(&db->addr_lock); db 1491 drivers/net/ethernet/davicom/dm9000.c INIT_DELAYED_WORK(&db->phy_poll, dm9000_poll_work); db 1493 drivers/net/ethernet/davicom/dm9000.c db->addr_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); db 1494 drivers/net/ethernet/davicom/dm9000.c db->data_res = platform_get_resource(pdev, IORESOURCE_MEM, 1); db 1496 drivers/net/ethernet/davicom/dm9000.c if (!db->addr_res || !db->data_res) { db 1497 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "insufficient resources addr=%p data=%p\n", db 1498 drivers/net/ethernet/davicom/dm9000.c db->addr_res, db->data_res); db 1509 drivers/net/ethernet/davicom/dm9000.c db->irq_wake = platform_get_irq(pdev, 1); db 1510 drivers/net/ethernet/davicom/dm9000.c if (db->irq_wake >= 0) { db 1511 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "wakeup irq %d\n", db->irq_wake); db 1513 drivers/net/ethernet/davicom/dm9000.c ret = request_irq(db->irq_wake, dm9000_wol_interrupt, db 1514 drivers/net/ethernet/davicom/dm9000.c IRQF_SHARED, dev_name(db->dev), ndev); db 1516 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "cannot get wakeup irq (%d)\n", ret); db 1520 drivers/net/ethernet/davicom/dm9000.c ret = irq_set_irq_wake(db->irq_wake, 1); db 1522 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "irq %d cannot set wakeup (%d)\n", db 1523 drivers/net/ethernet/davicom/dm9000.c db->irq_wake, ret); db 1526 drivers/net/ethernet/davicom/dm9000.c irq_set_irq_wake(db->irq_wake, 0); db 1527 drivers/net/ethernet/davicom/dm9000.c db->wake_supported = 1; db 1532 drivers/net/ethernet/davicom/dm9000.c iosize = resource_size(db->addr_res); db 1533 drivers/net/ethernet/davicom/dm9000.c db->addr_req = request_mem_region(db->addr_res->start, iosize, db 1536 drivers/net/ethernet/davicom/dm9000.c if (db->addr_req == NULL) { db 1537 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "cannot claim address reg area\n"); db 1542 drivers/net/ethernet/davicom/dm9000.c db->io_addr = ioremap(db->addr_res->start, iosize); db 1544 drivers/net/ethernet/davicom/dm9000.c if (db->io_addr == NULL) { db 1545 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "failed to ioremap address reg\n"); db 1550 drivers/net/ethernet/davicom/dm9000.c iosize = resource_size(db->data_res); db 1551 drivers/net/ethernet/davicom/dm9000.c db->data_req = request_mem_region(db->data_res->start, iosize, db 1554 drivers/net/ethernet/davicom/dm9000.c if (db->data_req == NULL) { db 1555 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "cannot claim data reg area\n"); db 1560 drivers/net/ethernet/davicom/dm9000.c db->io_data = ioremap(db->data_res->start, iosize); db 1562 drivers/net/ethernet/davicom/dm9000.c if (db->io_data == NULL) { db 1563 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "failed to ioremap data reg\n"); db 1569 drivers/net/ethernet/davicom/dm9000.c ndev->base_addr = (unsigned long)db->io_addr; db 1572 drivers/net/ethernet/davicom/dm9000.c dm9000_set_io(db, iosize); db 1580 drivers/net/ethernet/davicom/dm9000.c dm9000_set_io(db, 1); db 1583 drivers/net/ethernet/davicom/dm9000.c dm9000_set_io(db, 2); db 1586 drivers/net/ethernet/davicom/dm9000.c dm9000_set_io(db, 4); db 1592 drivers/net/ethernet/davicom/dm9000.c db->inblk = pdata->inblk; db 1595 drivers/net/ethernet/davicom/dm9000.c db->outblk = pdata->outblk; db 1598 drivers/net/ethernet/davicom/dm9000.c db->dumpblk = pdata->dumpblk; db 1600 drivers/net/ethernet/davicom/dm9000.c db->flags = pdata->flags; db 1604 drivers/net/ethernet/davicom/dm9000.c db->flags |= DM9000_PLATF_SIMPLE_PHY; db 1607 drivers/net/ethernet/davicom/dm9000.c dm9000_reset(db); db 1611 drivers/net/ethernet/davicom/dm9000.c id_val = ior(db, DM9000_VIDL); db 1612 drivers/net/ethernet/davicom/dm9000.c id_val |= (u32)ior(db, DM9000_VIDH) << 8; db 1613 drivers/net/ethernet/davicom/dm9000.c id_val |= (u32)ior(db, DM9000_PIDL) << 16; db 1614 drivers/net/ethernet/davicom/dm9000.c id_val |= (u32)ior(db, DM9000_PIDH) << 24; db 1618 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "read wrong id 0x%08x\n", id_val); db 1622 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "wrong id: 0x%08x\n", id_val); db 1629 drivers/net/ethernet/davicom/dm9000.c id_val = ior(db, DM9000_CHIPR); db 1630 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "dm9000 revision 0x%02x\n", id_val); db 1634 drivers/net/ethernet/davicom/dm9000.c db->type = TYPE_DM9000A; db 1637 drivers/net/ethernet/davicom/dm9000.c db->type = TYPE_DM9000B; db 1640 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, "ID %02x => defaulting to DM9000E\n", id_val); db 1641 drivers/net/ethernet/davicom/dm9000.c db->type = TYPE_DM9000E; db 1645 drivers/net/ethernet/davicom/dm9000.c if (db->type == TYPE_DM9000A || db->type == TYPE_DM9000B) { db 1656 drivers/net/ethernet/davicom/dm9000.c db->msg_enable = NETIF_MSG_LINK; db 1657 drivers/net/ethernet/davicom/dm9000.c db->mii.phy_id_mask = 0x1f; db 1658 drivers/net/ethernet/davicom/dm9000.c db->mii.reg_num_mask = 0x1f; db 1659 drivers/net/ethernet/davicom/dm9000.c db->mii.force_media = 0; db 1660 drivers/net/ethernet/davicom/dm9000.c db->mii.full_duplex = 0; db 1661 drivers/net/ethernet/davicom/dm9000.c db->mii.dev = ndev; db 1662 drivers/net/ethernet/davicom/dm9000.c db->mii.mdio_read = dm9000_phy_read; db 1663 drivers/net/ethernet/davicom/dm9000.c db->mii.mdio_write = dm9000_phy_write; db 1669 drivers/net/ethernet/davicom/dm9000.c dm9000_read_eeprom(db, i / 2, ndev->dev_addr+i); db 1681 drivers/net/ethernet/davicom/dm9000.c ndev->dev_addr[i] = ior(db, i+DM9000_PAR); db 1696 drivers/net/ethernet/davicom/dm9000.c dev_warn(db->dev, "%s: Invalid ethernet MAC address. Please set using ip\n", db 1699 drivers/net/ethernet/davicom/dm9000.c ndev->name, dm9000_type_to_char(db->type), db 1700 drivers/net/ethernet/davicom/dm9000.c db->io_addr, db->io_data, ndev->irq, db 1706 drivers/net/ethernet/davicom/dm9000.c dev_err(db->dev, "not found (%d).\n", ret); db 1708 drivers/net/ethernet/davicom/dm9000.c dm9000_release_board(pdev, db); db 1718 drivers/net/ethernet/davicom/dm9000.c struct board_info *db; db 1721 drivers/net/ethernet/davicom/dm9000.c db = netdev_priv(ndev); db 1722 drivers/net/ethernet/davicom/dm9000.c db->in_suspend = 1; db 1730 drivers/net/ethernet/davicom/dm9000.c if (!db->wake_state) db 1740 drivers/net/ethernet/davicom/dm9000.c struct board_info *db = netdev_priv(ndev); db 1746 drivers/net/ethernet/davicom/dm9000.c if (!db->wake_state) { db 1748 drivers/net/ethernet/davicom/dm9000.c dm9000_unmask_interrupts(db); db 1754 drivers/net/ethernet/davicom/dm9000.c db->in_suspend = 0; db 360 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db; /* board information structure */ db 387 drivers/net/ethernet/dec/tulip/dmfe.c dev = alloc_etherdev(sizeof(*db)); db 431 drivers/net/ethernet/dec/tulip/dmfe.c db = netdev_priv(dev); db 434 drivers/net/ethernet/dec/tulip/dmfe.c db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * db 435 drivers/net/ethernet/dec/tulip/dmfe.c DESC_ALL_CNT + 0x20, &db->desc_pool_dma_ptr); db 436 drivers/net/ethernet/dec/tulip/dmfe.c if (!db->desc_pool_ptr) { db 441 drivers/net/ethernet/dec/tulip/dmfe.c db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * db 442 drivers/net/ethernet/dec/tulip/dmfe.c TX_DESC_CNT + 4, &db->buf_pool_dma_ptr); db 443 drivers/net/ethernet/dec/tulip/dmfe.c if (!db->buf_pool_ptr) { db 448 drivers/net/ethernet/dec/tulip/dmfe.c db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; db 449 drivers/net/ethernet/dec/tulip/dmfe.c db->first_tx_desc_dma = db->desc_pool_dma_ptr; db 450 drivers/net/ethernet/dec/tulip/dmfe.c db->buf_pool_start = db->buf_pool_ptr; db 451 drivers/net/ethernet/dec/tulip/dmfe.c db->buf_pool_dma_start = db->buf_pool_dma_ptr; db 453 drivers/net/ethernet/dec/tulip/dmfe.c db->chip_id = ent->driver_data; db 455 drivers/net/ethernet/dec/tulip/dmfe.c db->ioaddr = pci_iomap(pdev, 0, 0); db 456 drivers/net/ethernet/dec/tulip/dmfe.c if (!db->ioaddr) { db 461 drivers/net/ethernet/dec/tulip/dmfe.c db->chip_revision = pdev->revision; db 462 drivers/net/ethernet/dec/tulip/dmfe.c db->wol_mode = 0; db 464 drivers/net/ethernet/dec/tulip/dmfe.c db->pdev = pdev; db 470 drivers/net/ethernet/dec/tulip/dmfe.c spin_lock_init(&db->lock); db 474 drivers/net/ethernet/dec/tulip/dmfe.c if ( (pci_pmr == 0x10000) && (db->chip_revision == 0x31) ) db 475 drivers/net/ethernet/dec/tulip/dmfe.c db->chip_type = 1; /* DM9102A E3 */ db 477 drivers/net/ethernet/dec/tulip/dmfe.c db->chip_type = 0; db 481 drivers/net/ethernet/dec/tulip/dmfe.c ((__le16 *) db->srom)[i] = db 482 drivers/net/ethernet/dec/tulip/dmfe.c cpu_to_le16(read_srom_word(db->ioaddr, i)); db 487 drivers/net/ethernet/dec/tulip/dmfe.c dev->dev_addr[i] = db->srom[20 + i]; db 502 drivers/net/ethernet/dec/tulip/dmfe.c pci_iounmap(pdev, db->ioaddr); db 505 drivers/net/ethernet/dec/tulip/dmfe.c db->buf_pool_ptr, db->buf_pool_dma_ptr); db 508 drivers/net/ethernet/dec/tulip/dmfe.c db->desc_pool_ptr, db->desc_pool_dma_ptr); db 523 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 530 drivers/net/ethernet/dec/tulip/dmfe.c pci_iounmap(db->pdev, db->ioaddr); db 531 drivers/net/ethernet/dec/tulip/dmfe.c pci_free_consistent(db->pdev, sizeof(struct tx_desc) * db 532 drivers/net/ethernet/dec/tulip/dmfe.c DESC_ALL_CNT + 0x20, db->desc_pool_ptr, db 533 drivers/net/ethernet/dec/tulip/dmfe.c db->desc_pool_dma_ptr); db 534 drivers/net/ethernet/dec/tulip/dmfe.c pci_free_consistent(db->pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, db 535 drivers/net/ethernet/dec/tulip/dmfe.c db->buf_pool_ptr, db->buf_pool_dma_ptr); db 551 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 552 drivers/net/ethernet/dec/tulip/dmfe.c const int irq = db->pdev->irq; db 562 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data = CR6_DEFAULT | dmfe_cr6_user_set; db 563 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_packet_cnt = 0; db 564 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_queue_cnt = 0; db 565 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_avail_cnt = 0; db 566 drivers/net/ethernet/dec/tulip/dmfe.c db->wait_reset = 0; db 568 drivers/net/ethernet/dec/tulip/dmfe.c db->first_in_callback = 0; db 569 drivers/net/ethernet/dec/tulip/dmfe.c db->NIC_capability = 0xf; /* All capability*/ db 570 drivers/net/ethernet/dec/tulip/dmfe.c db->PHY_reg4 = 0x1e0; db 573 drivers/net/ethernet/dec/tulip/dmfe.c if ( !chkmode || (db->chip_id == PCI_DM9132_ID) || db 574 drivers/net/ethernet/dec/tulip/dmfe.c (db->chip_revision >= 0x30) ) { db 575 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= DMFE_TXTH_256; db 576 drivers/net/ethernet/dec/tulip/dmfe.c db->cr0_data = CR0_DEFAULT; db 577 drivers/net/ethernet/dec/tulip/dmfe.c db->dm910x_chk_mode=4; /* Enter the normal mode */ db 579 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= CR6_SFT; /* Store & Forward mode */ db 580 drivers/net/ethernet/dec/tulip/dmfe.c db->cr0_data = 0; db 581 drivers/net/ethernet/dec/tulip/dmfe.c db->dm910x_chk_mode = 1; /* Enter the check mode */ db 591 drivers/net/ethernet/dec/tulip/dmfe.c timer_setup(&db->timer, dmfe_timer, 0); db 592 drivers/net/ethernet/dec/tulip/dmfe.c db->timer.expires = DMFE_TIMER_WUT + HZ * 2; db 593 drivers/net/ethernet/dec/tulip/dmfe.c add_timer(&db->timer); db 608 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 609 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 616 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR0, db->cr0_data); db 620 drivers/net/ethernet/dec/tulip/dmfe.c db->phy_addr = 1; db 623 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_parse_srom(db); db 624 drivers/net/ethernet/dec/tulip/dmfe.c db->media_mode = dmfe_media_mode; db 628 drivers/net/ethernet/dec/tulip/dmfe.c if (db->chip_id == PCI_DM9009_ID) { db 635 drivers/net/ethernet/dec/tulip/dmfe.c if ( !(db->media_mode & 0x10) ) /* Force 1M mode */ db 636 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_set_phyxcer(db); db 639 drivers/net/ethernet/dec/tulip/dmfe.c if ( !(db->media_mode & DMFE_AUTO) ) db 640 drivers/net/ethernet/dec/tulip/dmfe.c db->op_mode = db->media_mode; /* Force Mode */ db 646 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 649 drivers/net/ethernet/dec/tulip/dmfe.c if (db->chip_id == PCI_DM9132_ID) db 655 drivers/net/ethernet/dec/tulip/dmfe.c db->cr7_data = CR7_DEFAULT; db 656 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR7, db->cr7_data); db 659 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR15, db->cr15_data); db 662 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= CR6_RXSC | CR6_TXSC | 0x40000; db 663 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 675 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 676 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 692 drivers/net/ethernet/dec/tulip/dmfe.c spin_lock_irqsave(&db->lock, flags); db 695 drivers/net/ethernet/dec/tulip/dmfe.c if (db->tx_queue_cnt >= TX_FREE_DESC_CNT) { db 696 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 697 drivers/net/ethernet/dec/tulip/dmfe.c pr_err("No Tx resource %ld\n", db->tx_queue_cnt); db 705 drivers/net/ethernet/dec/tulip/dmfe.c txptr = db->tx_insert_ptr; db 710 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_insert_ptr = txptr->next_tx_desc; db 713 drivers/net/ethernet/dec/tulip/dmfe.c if ( (!db->tx_queue_cnt) && (db->tx_packet_cnt < TX_MAX_SEND_CNT) ) { db 715 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_packet_cnt++; /* Ready to send */ db 719 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_queue_cnt++; /* queue TX packet */ db 724 drivers/net/ethernet/dec/tulip/dmfe.c if ( db->tx_queue_cnt < TX_FREE_DESC_CNT ) db 728 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 729 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR7, db->cr7_data); db 745 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 746 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 754 drivers/net/ethernet/dec/tulip/dmfe.c del_timer_sync(&db->timer); db 759 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x8000, db->chip_id); db 762 drivers/net/ethernet/dec/tulip/dmfe.c free_irq(db->pdev->irq, dev); db 765 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_free_rxbuffer(db); db 770 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_fifo_underrun, db->tx_excessive_collision, db 771 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_late_collision, db->tx_no_carrier, db->tx_loss_carrier, db 772 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_jabber_timeout, db->reset_count, db->reset_cr8, db 773 drivers/net/ethernet/dec/tulip/dmfe.c db->reset_fatal, db->reset_TXtimeout); db 788 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 789 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 794 drivers/net/ethernet/dec/tulip/dmfe.c spin_lock_irqsave(&db->lock, flags); db 797 drivers/net/ethernet/dec/tulip/dmfe.c db->cr5_data = dr32(DCR5); db 798 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR5, db->cr5_data); db 799 drivers/net/ethernet/dec/tulip/dmfe.c if ( !(db->cr5_data & 0xc1) ) { db 800 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 808 drivers/net/ethernet/dec/tulip/dmfe.c if (db->cr5_data & 0x2000) { db 810 drivers/net/ethernet/dec/tulip/dmfe.c DMFE_DBUG(1, "System bus error happen. CR5=", db->cr5_data); db 811 drivers/net/ethernet/dec/tulip/dmfe.c db->reset_fatal++; db 812 drivers/net/ethernet/dec/tulip/dmfe.c db->wait_reset = 1; /* Need to RESET */ db 813 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 818 drivers/net/ethernet/dec/tulip/dmfe.c if ( (db->cr5_data & 0x40) && db->rx_avail_cnt ) db 819 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_rx_packet(dev, db); db 822 drivers/net/ethernet/dec/tulip/dmfe.c if (db->rx_avail_cnt<RX_DESC_CNT) db 826 drivers/net/ethernet/dec/tulip/dmfe.c if ( db->cr5_data & 0x01) db 827 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_free_tx_pkt(dev, db); db 830 drivers/net/ethernet/dec/tulip/dmfe.c if (db->dm910x_chk_mode & 0x2) { db 831 drivers/net/ethernet/dec/tulip/dmfe.c db->dm910x_chk_mode = 0x4; db 832 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= 0x100; db 833 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 837 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR7, db->cr7_data); db 839 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 853 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 854 drivers/net/ethernet/dec/tulip/dmfe.c const int irq = db->pdev->irq; db 868 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_free_tx_pkt(struct net_device *dev, struct dmfe_board_info *db) db 871 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 874 drivers/net/ethernet/dec/tulip/dmfe.c txptr = db->tx_remove_ptr; db 875 drivers/net/ethernet/dec/tulip/dmfe.c while(db->tx_packet_cnt) { db 881 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_packet_cnt--; db 892 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_fifo_underrun++; db 893 drivers/net/ethernet/dec/tulip/dmfe.c if ( !(db->cr6_data & CR6_SFT) ) { db 894 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data = db->cr6_data | CR6_SFT; db 895 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 899 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_excessive_collision++; db 901 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_late_collision++; db 903 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_no_carrier++; db 905 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_loss_carrier++; db 907 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_jabber_timeout++; db 915 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_remove_ptr = txptr; db 918 drivers/net/ethernet/dec/tulip/dmfe.c if ( (db->tx_packet_cnt < TX_MAX_SEND_CNT) && db->tx_queue_cnt ) { db 920 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_packet_cnt++; /* Ready to send */ db 921 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_queue_cnt--; db 927 drivers/net/ethernet/dec/tulip/dmfe.c if ( db->tx_queue_cnt < TX_WAKE_DESC_CNT ) db 950 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_rx_packet(struct net_device *dev, struct dmfe_board_info *db) db 957 drivers/net/ethernet/dec/tulip/dmfe.c rxptr = db->rx_ready_ptr; db 959 drivers/net/ethernet/dec/tulip/dmfe.c while(db->rx_avail_cnt) { db 964 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_avail_cnt--; db 965 drivers/net/ethernet/dec/tulip/dmfe.c db->interval_rx_cnt++; db 967 drivers/net/ethernet/dec/tulip/dmfe.c pci_unmap_single(db->pdev, le32_to_cpu(rxptr->rdes2), db 974 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_reuse_skb(db, rxptr->rx_skb_ptr); db 992 drivers/net/ethernet/dec/tulip/dmfe.c ((db->cr6_data & CR6_PM) && (rxlen>6)) ) { db 996 drivers/net/ethernet/dec/tulip/dmfe.c if ( (db->dm910x_chk_mode & 1) && db 1000 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_reuse_skb(db, rxptr->rx_skb_ptr); db 1001 drivers/net/ethernet/dec/tulip/dmfe.c db->dm910x_chk_mode = 3; db 1015 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_reuse_skb(db, rxptr->rx_skb_ptr); db 1027 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_reuse_skb(db, rxptr->rx_skb_ptr); db 1034 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_ready_ptr = rxptr; db 1043 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 1048 drivers/net/ethernet/dec/tulip/dmfe.c spin_lock_irqsave(&db->lock, flags); db 1052 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= CR6_PM | CR6_PBF; db 1053 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, db->ioaddr); db 1054 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 1060 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data &= ~(CR6_PM | CR6_PBF); db 1061 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= CR6_PAM; db 1062 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 1067 drivers/net/ethernet/dec/tulip/dmfe.c if (db->chip_id == PCI_DM9132_ID) db 1071 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 1091 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 1097 drivers/net/ethernet/dec/tulip/dmfe.c db->wol_mode = wolinfo->wolopts; db 1104 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 1107 drivers/net/ethernet/dec/tulip/dmfe.c wolinfo->wolopts = db->wol_mode; db 1125 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = from_timer(db, t, timer); db 1126 drivers/net/ethernet/dec/tulip/dmfe.c struct net_device *dev = pci_get_drvdata(db->pdev); db 1127 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 1135 drivers/net/ethernet/dec/tulip/dmfe.c spin_lock_irqsave(&db->lock, flags); db 1138 drivers/net/ethernet/dec/tulip/dmfe.c if (db->first_in_callback == 0) { db 1139 drivers/net/ethernet/dec/tulip/dmfe.c db->first_in_callback = 1; db 1140 drivers/net/ethernet/dec/tulip/dmfe.c if (db->chip_type && (db->chip_id==PCI_DM9102_ID)) { db 1141 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data &= ~0x40000; db 1142 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 1143 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(ioaddr, db->phy_addr, 0, 0x1000, db->chip_id); db 1144 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= 0x40000; db 1145 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 1146 drivers/net/ethernet/dec/tulip/dmfe.c db->timer.expires = DMFE_TIMER_WUT + HZ * 2; db 1147 drivers/net/ethernet/dec/tulip/dmfe.c add_timer(&db->timer); db 1148 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 1155 drivers/net/ethernet/dec/tulip/dmfe.c if ( (db->dm910x_chk_mode & 0x1) && db 1157 drivers/net/ethernet/dec/tulip/dmfe.c db->dm910x_chk_mode = 0x4; db 1161 drivers/net/ethernet/dec/tulip/dmfe.c if ( (db->interval_rx_cnt==0) && (tmp_cr8) ) { db 1162 drivers/net/ethernet/dec/tulip/dmfe.c db->reset_cr8++; db 1163 drivers/net/ethernet/dec/tulip/dmfe.c db->wait_reset = 1; db 1165 drivers/net/ethernet/dec/tulip/dmfe.c db->interval_rx_cnt = 0; db 1168 drivers/net/ethernet/dec/tulip/dmfe.c if ( db->tx_packet_cnt && db 1174 drivers/net/ethernet/dec/tulip/dmfe.c db->reset_TXtimeout++; db 1175 drivers/net/ethernet/dec/tulip/dmfe.c db->wait_reset = 1; db 1180 drivers/net/ethernet/dec/tulip/dmfe.c if (db->wait_reset) { db 1181 drivers/net/ethernet/dec/tulip/dmfe.c DMFE_DBUG(0, "Dynamic Reset device", db->tx_packet_cnt); db 1182 drivers/net/ethernet/dec/tulip/dmfe.c db->reset_count++; db 1184 drivers/net/ethernet/dec/tulip/dmfe.c db->first_in_callback = 0; db 1185 drivers/net/ethernet/dec/tulip/dmfe.c db->timer.expires = DMFE_TIMER_WUT; db 1186 drivers/net/ethernet/dec/tulip/dmfe.c add_timer(&db->timer); db 1187 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 1192 drivers/net/ethernet/dec/tulip/dmfe.c if (db->chip_id == PCI_DM9132_ID) db 1197 drivers/net/ethernet/dec/tulip/dmfe.c if ( ((db->chip_id == PCI_DM9102_ID) && db 1198 drivers/net/ethernet/dec/tulip/dmfe.c (db->chip_revision == 0x30)) || db 1199 drivers/net/ethernet/dec/tulip/dmfe.c ((db->chip_id == PCI_DM9132_ID) && db 1200 drivers/net/ethernet/dec/tulip/dmfe.c (db->chip_revision == 0x10)) ) { db 1219 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_read (db->ioaddr, db->phy_addr, 1, db->chip_id); db 1220 drivers/net/ethernet/dec/tulip/dmfe.c link_ok_phy = (dmfe_phy_read (db->ioaddr, db 1221 drivers/net/ethernet/dec/tulip/dmfe.c db->phy_addr, 1, db->chip_id) & 0x4) ? 1 : 0; db 1235 drivers/net/ethernet/dec/tulip/dmfe.c if ( !(db->media_mode & 0x38) ) db 1236 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, db 1237 drivers/net/ethernet/dec/tulip/dmfe.c 0, 0x1000, db->chip_id); db 1240 drivers/net/ethernet/dec/tulip/dmfe.c if (db->media_mode & DMFE_AUTO) { db 1242 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data|=0x00040000; /* bit18=1, MII */ db 1243 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data&=~0x00000200; /* bit9=0, HD mode */ db 1244 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 1251 drivers/net/ethernet/dec/tulip/dmfe.c if ( !(db->media_mode & DMFE_AUTO) || !dmfe_sense_speed(db)) { db 1253 drivers/net/ethernet/dec/tulip/dmfe.c SHOW_MEDIA_TYPE(db->op_mode); db 1256 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_process_mode(db); db 1260 drivers/net/ethernet/dec/tulip/dmfe.c if (db->HPNA_command & 0xf00) { db 1261 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_timer--; db 1262 drivers/net/ethernet/dec/tulip/dmfe.c if (!db->HPNA_timer) db 1263 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_HPNA_remote_cmd_chk(db); db 1267 drivers/net/ethernet/dec/tulip/dmfe.c db->timer.expires = DMFE_TIMER_WUT; db 1268 drivers/net/ethernet/dec/tulip/dmfe.c add_timer(&db->timer); db 1269 drivers/net/ethernet/dec/tulip/dmfe.c spin_unlock_irqrestore(&db->lock, flags); db 1283 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 1284 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 1289 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data &= ~(CR6_RXSC | CR6_TXSC); /* Disable Tx/Rx */ db 1290 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 1298 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_free_rxbuffer(db); db 1301 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_packet_cnt = 0; db 1302 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_queue_cnt = 0; db 1303 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_avail_cnt = 0; db 1305 drivers/net/ethernet/dec/tulip/dmfe.c db->wait_reset = 0; db 1319 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_free_rxbuffer(struct dmfe_board_info * db) db 1324 drivers/net/ethernet/dec/tulip/dmfe.c while (db->rx_avail_cnt) { db 1325 drivers/net/ethernet/dec/tulip/dmfe.c dev_kfree_skb(db->rx_ready_ptr->rx_skb_ptr); db 1326 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_ready_ptr = db->rx_ready_ptr->next_rx_desc; db 1327 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_avail_cnt--; db 1336 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_reuse_skb(struct dmfe_board_info *db, struct sk_buff * skb) db 1338 drivers/net/ethernet/dec/tulip/dmfe.c struct rx_desc *rxptr = db->rx_insert_ptr; db 1342 drivers/net/ethernet/dec/tulip/dmfe.c rxptr->rdes2 = cpu_to_le32( pci_map_single(db->pdev, db 1346 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_avail_cnt++; db 1347 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_insert_ptr = rxptr->next_rx_desc; db 1349 drivers/net/ethernet/dec/tulip/dmfe.c DMFE_DBUG(0, "SK Buffer reuse method error", db->rx_avail_cnt); db 1360 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 1361 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 1372 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_insert_ptr = db->first_tx_desc; db 1373 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_remove_ptr = db->first_tx_desc; db 1374 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR4, db->first_tx_desc_dma); /* TX DESC address */ db 1377 drivers/net/ethernet/dec/tulip/dmfe.c db->first_rx_desc = (void *)db->first_tx_desc + db 1380 drivers/net/ethernet/dec/tulip/dmfe.c db->first_rx_desc_dma = db->first_tx_desc_dma + db 1382 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_insert_ptr = db->first_rx_desc; db 1383 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_ready_ptr = db->first_rx_desc; db 1384 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR3, db->first_rx_desc_dma); /* RX DESC address */ db 1387 drivers/net/ethernet/dec/tulip/dmfe.c tmp_buf = db->buf_pool_start; db 1388 drivers/net/ethernet/dec/tulip/dmfe.c tmp_buf_dma = db->buf_pool_dma_start; db 1389 drivers/net/ethernet/dec/tulip/dmfe.c tmp_tx_dma = db->first_tx_desc_dma; db 1390 drivers/net/ethernet/dec/tulip/dmfe.c for (tmp_tx = db->first_tx_desc, i = 0; i < TX_DESC_CNT; i++, tmp_tx++) { db 1401 drivers/net/ethernet/dec/tulip/dmfe.c (--tmp_tx)->tdes3 = cpu_to_le32(db->first_tx_desc_dma); db 1402 drivers/net/ethernet/dec/tulip/dmfe.c tmp_tx->next_tx_desc = db->first_tx_desc; db 1405 drivers/net/ethernet/dec/tulip/dmfe.c tmp_rx_dma=db->first_rx_desc_dma; db 1406 drivers/net/ethernet/dec/tulip/dmfe.c for (tmp_rx = db->first_rx_desc, i = 0; i < RX_DESC_CNT; i++, tmp_rx++) { db 1413 drivers/net/ethernet/dec/tulip/dmfe.c (--tmp_rx)->rdes3 = cpu_to_le32(db->first_rx_desc_dma); db 1414 drivers/net/ethernet/dec/tulip/dmfe.c tmp_rx->next_rx_desc = db->first_rx_desc; db 1445 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 1446 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr + 0xc0; db 1483 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 1492 drivers/net/ethernet/dec/tulip/dmfe.c txptr = db->tx_insert_ptr; db 1521 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_insert_ptr = txptr->next_tx_desc; db 1525 drivers/net/ethernet/dec/tulip/dmfe.c if (!db->tx_packet_cnt) { db 1526 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 1529 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_packet_cnt++; db 1531 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data | 0x2000, ioaddr); db 1533 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 1536 drivers/net/ethernet/dec/tulip/dmfe.c db->tx_queue_cnt++; /* Put in TX queue */ db 1547 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 1551 drivers/net/ethernet/dec/tulip/dmfe.c rxptr = db->rx_insert_ptr; db 1553 drivers/net/ethernet/dec/tulip/dmfe.c while(db->rx_avail_cnt < RX_DESC_CNT) { db 1557 drivers/net/ethernet/dec/tulip/dmfe.c rxptr->rdes2 = cpu_to_le32( pci_map_single(db->pdev, skb->data, db 1562 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_avail_cnt++; db 1565 drivers/net/ethernet/dec/tulip/dmfe.c db->rx_insert_ptr = rxptr; db 1629 drivers/net/ethernet/dec/tulip/dmfe.c static u8 dmfe_sense_speed(struct dmfe_board_info *db) db 1631 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 1636 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data & ~0x40000, ioaddr); db 1638 drivers/net/ethernet/dec/tulip/dmfe.c phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); db 1639 drivers/net/ethernet/dec/tulip/dmfe.c phy_mode = dmfe_phy_read(db->ioaddr, db->phy_addr, 1, db->chip_id); db 1642 drivers/net/ethernet/dec/tulip/dmfe.c if (db->chip_id == PCI_DM9132_ID) /* DM9132 */ db 1643 drivers/net/ethernet/dec/tulip/dmfe.c phy_mode = dmfe_phy_read(db->ioaddr, db 1644 drivers/net/ethernet/dec/tulip/dmfe.c db->phy_addr, 7, db->chip_id) & 0xf000; db 1646 drivers/net/ethernet/dec/tulip/dmfe.c phy_mode = dmfe_phy_read(db->ioaddr, db 1647 drivers/net/ethernet/dec/tulip/dmfe.c db->phy_addr, 17, db->chip_id) & 0xf000; db 1649 drivers/net/ethernet/dec/tulip/dmfe.c case 0x1000: db->op_mode = DMFE_10MHF; break; db 1650 drivers/net/ethernet/dec/tulip/dmfe.c case 0x2000: db->op_mode = DMFE_10MFD; break; db 1651 drivers/net/ethernet/dec/tulip/dmfe.c case 0x4000: db->op_mode = DMFE_100MHF; break; db 1652 drivers/net/ethernet/dec/tulip/dmfe.c case 0x8000: db->op_mode = DMFE_100MFD; break; db 1653 drivers/net/ethernet/dec/tulip/dmfe.c default: db->op_mode = DMFE_10MHF; db 1658 drivers/net/ethernet/dec/tulip/dmfe.c db->op_mode = DMFE_10MHF; db 1673 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_set_phyxcer(struct dmfe_board_info *db) db 1675 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 1679 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data &= ~0x40000; db 1680 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 1683 drivers/net/ethernet/dec/tulip/dmfe.c if (db->chip_id == PCI_DM9009_ID) { db 1684 drivers/net/ethernet/dec/tulip/dmfe.c phy_reg = dmfe_phy_read(db->ioaddr, db 1685 drivers/net/ethernet/dec/tulip/dmfe.c db->phy_addr, 18, db->chip_id) & ~0x1000; db 1687 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db 1688 drivers/net/ethernet/dec/tulip/dmfe.c db->phy_addr, 18, phy_reg, db->chip_id); db 1692 drivers/net/ethernet/dec/tulip/dmfe.c phy_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 4, db->chip_id) & ~0x01e0; db 1694 drivers/net/ethernet/dec/tulip/dmfe.c if (db->media_mode & DMFE_AUTO) { db 1696 drivers/net/ethernet/dec/tulip/dmfe.c phy_reg |= db->PHY_reg4; db 1699 drivers/net/ethernet/dec/tulip/dmfe.c switch(db->media_mode) { db 1705 drivers/net/ethernet/dec/tulip/dmfe.c if (db->chip_id == PCI_DM9009_ID) phy_reg &= 0x61; db 1710 drivers/net/ethernet/dec/tulip/dmfe.c phy_reg|=db->PHY_reg4; db 1711 drivers/net/ethernet/dec/tulip/dmfe.c db->media_mode|=DMFE_AUTO; db 1713 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 4, phy_reg, db->chip_id); db 1716 drivers/net/ethernet/dec/tulip/dmfe.c if ( db->chip_type && (db->chip_id == PCI_DM9102_ID) ) db 1717 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 0, 0x1800, db->chip_id); db 1718 drivers/net/ethernet/dec/tulip/dmfe.c if ( !db->chip_type ) db 1719 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 0, 0x1200, db->chip_id); db 1730 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_process_mode(struct dmfe_board_info *db) db 1735 drivers/net/ethernet/dec/tulip/dmfe.c if (db->op_mode & 0x4) db 1736 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= CR6_FDM; /* Set Full Duplex Bit */ db 1738 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data &= ~CR6_FDM; /* Clear Full Duplex Bit */ db 1741 drivers/net/ethernet/dec/tulip/dmfe.c if (db->op_mode & 0x10) /* 1M HomePNA */ db 1742 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data |= 0x40000;/* External MII select */ db 1744 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data &= ~0x40000;/* Internal 10/100 transciver */ db 1746 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, db->ioaddr); db 1749 drivers/net/ethernet/dec/tulip/dmfe.c if ( !(db->media_mode & 0x18)) { db 1751 drivers/net/ethernet/dec/tulip/dmfe.c phy_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 6, db->chip_id); db 1755 drivers/net/ethernet/dec/tulip/dmfe.c switch(db->op_mode) { db 1761 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db 1762 drivers/net/ethernet/dec/tulip/dmfe.c db->phy_addr, 0, phy_reg, db->chip_id); db 1763 drivers/net/ethernet/dec/tulip/dmfe.c if ( db->chip_type && (db->chip_id == PCI_DM9102_ID) ) db 1765 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db 1766 drivers/net/ethernet/dec/tulip/dmfe.c db->phy_addr, 0, phy_reg, db->chip_id); db 1908 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_parse_srom(struct dmfe_board_info * db) db 1910 drivers/net/ethernet/dec/tulip/dmfe.c char * srom = db->srom; db 1916 drivers/net/ethernet/dec/tulip/dmfe.c db->cr15_data = CR15_DEFAULT; db 1922 drivers/net/ethernet/dec/tulip/dmfe.c db->NIC_capability = le16_to_cpup((__le16 *) (srom + 34)); db 1923 drivers/net/ethernet/dec/tulip/dmfe.c db->PHY_reg4 = 0; db 1925 drivers/net/ethernet/dec/tulip/dmfe.c switch( db->NIC_capability & tmp_reg ) { db 1926 drivers/net/ethernet/dec/tulip/dmfe.c case 0x1: db->PHY_reg4 |= 0x0020; break; db 1927 drivers/net/ethernet/dec/tulip/dmfe.c case 0x2: db->PHY_reg4 |= 0x0040; break; db 1928 drivers/net/ethernet/dec/tulip/dmfe.c case 0x4: db->PHY_reg4 |= 0x0080; break; db 1929 drivers/net/ethernet/dec/tulip/dmfe.c case 0x8: db->PHY_reg4 |= 0x0100; break; db 1947 drivers/net/ethernet/dec/tulip/dmfe.c db->cr15_data |= 0x40; db 1951 drivers/net/ethernet/dec/tulip/dmfe.c db->cr15_data |= 0x400; db 1955 drivers/net/ethernet/dec/tulip/dmfe.c db->cr15_data |= 0x9800; db 1959 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_command = 1; db 1963 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_command |= 0x8000; db 1968 drivers/net/ethernet/dec/tulip/dmfe.c case 0: db->HPNA_command |= 0x0904; break; db 1969 drivers/net/ethernet/dec/tulip/dmfe.c case 1: db->HPNA_command |= 0x0a00; break; db 1970 drivers/net/ethernet/dec/tulip/dmfe.c case 2: db->HPNA_command |= 0x0506; break; db 1971 drivers/net/ethernet/dec/tulip/dmfe.c case 3: db->HPNA_command |= 0x0602; break; db 1975 drivers/net/ethernet/dec/tulip/dmfe.c case 0: db->HPNA_command |= 0x0004; break; db 1976 drivers/net/ethernet/dec/tulip/dmfe.c case 1: db->HPNA_command |= 0x0000; break; db 1977 drivers/net/ethernet/dec/tulip/dmfe.c case 2: db->HPNA_command |= 0x0006; break; db 1978 drivers/net/ethernet/dec/tulip/dmfe.c case 3: db->HPNA_command |= 0x0002; break; db 1982 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_present = 0; db 1983 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data | 0x40000, db->ioaddr); db 1984 drivers/net/ethernet/dec/tulip/dmfe.c tmp_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 3, db->chip_id); db 1987 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_timer = 8; db 1988 drivers/net/ethernet/dec/tulip/dmfe.c if ( dmfe_phy_read(db->ioaddr, db->phy_addr, 31, db->chip_id) == 0x4404) { db 1990 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_present = 1; db 1991 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_program_DM9801(db, tmp_reg); db 1994 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_present = 2; db 1995 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_program_DM9802(db); db 2006 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_program_DM9801(struct dmfe_board_info * db, int HPNA_rev) db 2013 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_command |= 0x1000; db 2014 drivers/net/ethernet/dec/tulip/dmfe.c reg25 = dmfe_phy_read(db->ioaddr, db->phy_addr, 24, db->chip_id); db 2016 drivers/net/ethernet/dec/tulip/dmfe.c reg17 = dmfe_phy_read(db->ioaddr, db->phy_addr, 17, db->chip_id); db 2019 drivers/net/ethernet/dec/tulip/dmfe.c reg25 = dmfe_phy_read(db->ioaddr, db->phy_addr, 25, db->chip_id); db 2021 drivers/net/ethernet/dec/tulip/dmfe.c reg17 = dmfe_phy_read(db->ioaddr, db->phy_addr, 17, db->chip_id); db 2027 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_command |= 0x1000; db 2028 drivers/net/ethernet/dec/tulip/dmfe.c reg25 = dmfe_phy_read(db->ioaddr, db->phy_addr, 25, db->chip_id); db 2030 drivers/net/ethernet/dec/tulip/dmfe.c reg17 = dmfe_phy_read(db->ioaddr, db->phy_addr, 17, db->chip_id); db 2034 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 16, db->HPNA_command, db->chip_id); db 2035 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 17, reg17, db->chip_id); db 2036 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 25, reg25, db->chip_id); db 2044 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_program_DM9802(struct dmfe_board_info * db) db 2049 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 16, db->HPNA_command, db->chip_id); db 2050 drivers/net/ethernet/dec/tulip/dmfe.c phy_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 25, db->chip_id); db 2052 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 25, phy_reg, db->chip_id); db 2061 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_HPNA_remote_cmd_chk(struct dmfe_board_info * db) db 2066 drivers/net/ethernet/dec/tulip/dmfe.c phy_reg = dmfe_phy_read(db->ioaddr, db->phy_addr, 17, db->chip_id) & 0x60; db 2075 drivers/net/ethernet/dec/tulip/dmfe.c if ( phy_reg != (db->HPNA_command & 0x0f00) ) { db 2076 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_phy_write(db->ioaddr, db->phy_addr, 16, db->HPNA_command, db 2077 drivers/net/ethernet/dec/tulip/dmfe.c db->chip_id); db 2078 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_timer=8; db 2080 drivers/net/ethernet/dec/tulip/dmfe.c db->HPNA_timer=600; /* Match, every 10 minutes, check */ db 2099 drivers/net/ethernet/dec/tulip/dmfe.c struct dmfe_board_info *db = netdev_priv(dev); db 2100 drivers/net/ethernet/dec/tulip/dmfe.c void __iomem *ioaddr = db->ioaddr; db 2107 drivers/net/ethernet/dec/tulip/dmfe.c db->cr6_data &= ~(CR6_RXSC | CR6_TXSC); db 2108 drivers/net/ethernet/dec/tulip/dmfe.c update_cr6(db->cr6_data, ioaddr); db 2115 drivers/net/ethernet/dec/tulip/dmfe.c dmfe_free_rxbuffer(db); db 2121 drivers/net/ethernet/dec/tulip/dmfe.c if (db->wol_mode & WAKE_PHY) db 2123 drivers/net/ethernet/dec/tulip/dmfe.c if (db->wol_mode & WAKE_MAGIC) db 232 drivers/net/ethernet/dec/tulip/uli526x.c static void phy_write_1bit(struct uli526x_board_info *db, u32); db 233 drivers/net/ethernet/dec/tulip/uli526x.c static u16 phy_read_1bit(struct uli526x_board_info *db); db 245 drivers/net/ethernet/dec/tulip/uli526x.c static void srom_clk_write(struct uli526x_board_info *db, u32 data) db 247 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 278 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db; /* board information structure */ db 289 drivers/net/ethernet/dec/tulip/uli526x.c dev = alloc_etherdev(sizeof(*db)); db 324 drivers/net/ethernet/dec/tulip/uli526x.c db = netdev_priv(dev); db 329 drivers/net/ethernet/dec/tulip/uli526x.c db->desc_pool_ptr = pci_alloc_consistent(pdev, sizeof(struct tx_desc) * DESC_ALL_CNT + 0x20, &db->desc_pool_dma_ptr); db 330 drivers/net/ethernet/dec/tulip/uli526x.c if (!db->desc_pool_ptr) db 333 drivers/net/ethernet/dec/tulip/uli526x.c db->buf_pool_ptr = pci_alloc_consistent(pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, &db->buf_pool_dma_ptr); db 334 drivers/net/ethernet/dec/tulip/uli526x.c if (!db->buf_pool_ptr) db 337 drivers/net/ethernet/dec/tulip/uli526x.c db->first_tx_desc = (struct tx_desc *) db->desc_pool_ptr; db 338 drivers/net/ethernet/dec/tulip/uli526x.c db->first_tx_desc_dma = db->desc_pool_dma_ptr; db 339 drivers/net/ethernet/dec/tulip/uli526x.c db->buf_pool_start = db->buf_pool_ptr; db 340 drivers/net/ethernet/dec/tulip/uli526x.c db->buf_pool_dma_start = db->buf_pool_dma_ptr; db 344 drivers/net/ethernet/dec/tulip/uli526x.c db->phy.write = phy_writeby_cr10; db 345 drivers/net/ethernet/dec/tulip/uli526x.c db->phy.read = phy_readby_cr10; db 348 drivers/net/ethernet/dec/tulip/uli526x.c db->phy.write = phy_writeby_cr9; db 349 drivers/net/ethernet/dec/tulip/uli526x.c db->phy.read = phy_readby_cr9; db 358 drivers/net/ethernet/dec/tulip/uli526x.c db->ioaddr = ioaddr; db 359 drivers/net/ethernet/dec/tulip/uli526x.c db->pdev = pdev; db 360 drivers/net/ethernet/dec/tulip/uli526x.c db->init = 1; db 368 drivers/net/ethernet/dec/tulip/uli526x.c spin_lock_init(&db->lock); db 373 drivers/net/ethernet/dec/tulip/uli526x.c ((__le16 *) db->srom)[i] = cpu_to_le16(read_srom_word(db, i)); db 376 drivers/net/ethernet/dec/tulip/uli526x.c if(((u16 *) db->srom)[0] == 0xffff || ((u16 *) db->srom)[0] == 0) /* SROM absent, so read MAC address from ID Table */ db 396 drivers/net/ethernet/dec/tulip/uli526x.c dev->dev_addr[i] = db->srom[20 + i]; db 411 drivers/net/ethernet/dec/tulip/uli526x.c pci_iounmap(pdev, db->ioaddr); db 414 drivers/net/ethernet/dec/tulip/uli526x.c db->buf_pool_ptr, db->buf_pool_dma_ptr); db 417 drivers/net/ethernet/dec/tulip/uli526x.c db->desc_pool_ptr, db->desc_pool_dma_ptr); db 432 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 435 drivers/net/ethernet/dec/tulip/uli526x.c pci_iounmap(pdev, db->ioaddr); db 436 drivers/net/ethernet/dec/tulip/uli526x.c pci_free_consistent(db->pdev, sizeof(struct tx_desc) * db 437 drivers/net/ethernet/dec/tulip/uli526x.c DESC_ALL_CNT + 0x20, db->desc_pool_ptr, db 438 drivers/net/ethernet/dec/tulip/uli526x.c db->desc_pool_dma_ptr); db 439 drivers/net/ethernet/dec/tulip/uli526x.c pci_free_consistent(db->pdev, TX_BUF_ALLOC * TX_DESC_CNT + 4, db 440 drivers/net/ethernet/dec/tulip/uli526x.c db->buf_pool_ptr, db->buf_pool_dma_ptr); db 455 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 460 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data = CR6_DEFAULT | uli526x_cr6_user_set; db 461 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_packet_cnt = 0; db 462 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_avail_cnt = 0; db 463 drivers/net/ethernet/dec/tulip/uli526x.c db->link_failed = 1; db 465 drivers/net/ethernet/dec/tulip/uli526x.c db->wait_reset = 0; db 467 drivers/net/ethernet/dec/tulip/uli526x.c db->NIC_capability = 0xf; /* All capability*/ db 468 drivers/net/ethernet/dec/tulip/uli526x.c db->PHY_reg4 = 0x1e0; db 471 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data |= ULI526X_TXTH_256; db 472 drivers/net/ethernet/dec/tulip/uli526x.c db->cr0_data = CR0_DEFAULT; db 477 drivers/net/ethernet/dec/tulip/uli526x.c ret = request_irq(db->pdev->irq, uli526x_interrupt, IRQF_SHARED, db 486 drivers/net/ethernet/dec/tulip/uli526x.c timer_setup(&db->timer, uli526x_timer, 0); db 487 drivers/net/ethernet/dec/tulip/uli526x.c db->timer.expires = ULI526X_TIMER_WUT + HZ * 2; db 488 drivers/net/ethernet/dec/tulip/uli526x.c add_timer(&db->timer); db 503 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 504 drivers/net/ethernet/dec/tulip/uli526x.c struct uli_phy_ops *phy = &db->phy; db 505 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 516 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR0, db->cr0_data); db 520 drivers/net/ethernet/dec/tulip/uli526x.c db->phy_addr = 1; db 524 drivers/net/ethernet/dec/tulip/uli526x.c phy_value = phy->read(db, phy_tmp, 3); //peer add db 526 drivers/net/ethernet/dec/tulip/uli526x.c db->phy_addr = phy_tmp; db 534 drivers/net/ethernet/dec/tulip/uli526x.c db->media_mode = uli526x_media_mode; db 537 drivers/net/ethernet/dec/tulip/uli526x.c phy_reg_reset = phy->read(db, db->phy_addr, 0); db 539 drivers/net/ethernet/dec/tulip/uli526x.c phy->write(db, db->phy_addr, 0, phy_reg_reset); db 546 drivers/net/ethernet/dec/tulip/uli526x.c while (timeout-- && phy->read(db, db->phy_addr, 0) & 0x8000) db 550 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_set_phyxcer(db); db 553 drivers/net/ethernet/dec/tulip/uli526x.c if ( !(db->media_mode & ULI526X_AUTO) ) db 554 drivers/net/ethernet/dec/tulip/uli526x.c db->op_mode = db->media_mode; /* Force Mode */ db 560 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data, ioaddr); db 566 drivers/net/ethernet/dec/tulip/uli526x.c db->cr7_data = CR7_DEFAULT; db 567 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR7, db->cr7_data); db 570 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR15, db->cr15_data); db 573 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data |= CR6_RXSC | CR6_TXSC; db 574 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data, ioaddr); db 586 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 587 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 603 drivers/net/ethernet/dec/tulip/uli526x.c spin_lock_irqsave(&db->lock, flags); db 606 drivers/net/ethernet/dec/tulip/uli526x.c if (db->tx_packet_cnt >= TX_FREE_DESC_CNT) { db 607 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 608 drivers/net/ethernet/dec/tulip/uli526x.c netdev_err(dev, "No Tx resource %ld\n", db->tx_packet_cnt); db 616 drivers/net/ethernet/dec/tulip/uli526x.c txptr = db->tx_insert_ptr; db 621 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_insert_ptr = txptr->next_tx_desc; db 624 drivers/net/ethernet/dec/tulip/uli526x.c if (db->tx_packet_cnt < TX_DESC_CNT) { db 626 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_packet_cnt++; /* Ready to send */ db 632 drivers/net/ethernet/dec/tulip/uli526x.c if ( db->tx_packet_cnt < TX_FREE_DESC_CNT ) db 636 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 637 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR7, db->cr7_data); db 653 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 654 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 660 drivers/net/ethernet/dec/tulip/uli526x.c del_timer_sync(&db->timer); db 665 drivers/net/ethernet/dec/tulip/uli526x.c db->phy.write(db, db->phy_addr, 0, 0x8000); db 668 drivers/net/ethernet/dec/tulip/uli526x.c free_irq(db->pdev->irq, dev); db 671 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_free_rxbuffer(db); db 685 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 686 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 689 drivers/net/ethernet/dec/tulip/uli526x.c spin_lock_irqsave(&db->lock, flags); db 693 drivers/net/ethernet/dec/tulip/uli526x.c db->cr5_data = ur32(DCR5); db 694 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR5, db->cr5_data); db 695 drivers/net/ethernet/dec/tulip/uli526x.c if ( !(db->cr5_data & 0x180c1) ) { db 697 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR7, db->cr7_data); db 698 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 703 drivers/net/ethernet/dec/tulip/uli526x.c if (db->cr5_data & 0x2000) { db 705 drivers/net/ethernet/dec/tulip/uli526x.c ULI526X_DBUG(1, "System bus error happen. CR5=", db->cr5_data); db 706 drivers/net/ethernet/dec/tulip/uli526x.c db->reset_fatal++; db 707 drivers/net/ethernet/dec/tulip/uli526x.c db->wait_reset = 1; /* Need to RESET */ db 708 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 713 drivers/net/ethernet/dec/tulip/uli526x.c if ( (db->cr5_data & 0x40) && db->rx_avail_cnt ) db 714 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_rx_packet(dev, db); db 717 drivers/net/ethernet/dec/tulip/uli526x.c if (db->rx_avail_cnt<RX_DESC_CNT) db 721 drivers/net/ethernet/dec/tulip/uli526x.c if ( db->cr5_data & 0x01) db 722 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_free_tx_pkt(dev, db); db 725 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR7, db->cr7_data); db 727 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 734 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 737 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_interrupt(db->pdev->irq, dev); db 746 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info * db) db 751 drivers/net/ethernet/dec/tulip/uli526x.c txptr = db->tx_remove_ptr; db 752 drivers/net/ethernet/dec/tulip/uli526x.c while(db->tx_packet_cnt) { db 758 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_packet_cnt--; db 768 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_fifo_underrun++; db 769 drivers/net/ethernet/dec/tulip/uli526x.c if ( !(db->cr6_data & CR6_SFT) ) { db 770 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data = db->cr6_data | CR6_SFT; db 771 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data, db->ioaddr); db 775 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_excessive_collision++; db 777 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_late_collision++; db 779 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_no_carrier++; db 781 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_loss_carrier++; db 783 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_jabber_timeout++; db 791 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_remove_ptr = txptr; db 794 drivers/net/ethernet/dec/tulip/uli526x.c if ( db->tx_packet_cnt < TX_WAKE_DESC_CNT ) db 803 drivers/net/ethernet/dec/tulip/uli526x.c static void uli526x_rx_packet(struct net_device *dev, struct uli526x_board_info * db) db 810 drivers/net/ethernet/dec/tulip/uli526x.c rxptr = db->rx_ready_ptr; db 812 drivers/net/ethernet/dec/tulip/uli526x.c while(db->rx_avail_cnt) { db 819 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_avail_cnt--; db 820 drivers/net/ethernet/dec/tulip/uli526x.c db->interval_rx_cnt++; db 822 drivers/net/ethernet/dec/tulip/uli526x.c pci_unmap_single(db->pdev, le32_to_cpu(rxptr->rdes2), RX_ALLOC_SIZE, PCI_DMA_FROMDEVICE); db 827 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_reuse_skb(db, rxptr->rx_skb_ptr); db 845 drivers/net/ethernet/dec/tulip/uli526x.c ((db->cr6_data & CR6_PM) && (rxlen>6)) ) { db 860 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_reuse_skb(db, rxptr->rx_skb_ptr); db 872 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_reuse_skb(db, rxptr->rx_skb_ptr); db 879 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_ready_ptr = rxptr; db 889 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 893 drivers/net/ethernet/dec/tulip/uli526x.c spin_lock_irqsave(&db->lock, flags); db 897 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data |= CR6_PM | CR6_PBF; db 898 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data, db->ioaddr); db 899 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 907 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data &= ~(CR6_PM | CR6_PBF); db 908 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data |= CR6_PAM; db 909 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 915 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 919 drivers/net/ethernet/dec/tulip/uli526x.c ULi_ethtool_get_link_ksettings(struct uli526x_board_info *db, db 944 drivers/net/ethernet/dec/tulip/uli526x.c cmd->base.phy_address = db->phy_addr; db 949 drivers/net/ethernet/dec/tulip/uli526x.c if(db->op_mode==ULI526X_100MHF || db->op_mode==ULI526X_100MFD) db 953 drivers/net/ethernet/dec/tulip/uli526x.c if(db->op_mode==ULI526X_10MFD || db->op_mode==ULI526X_100MFD) db 957 drivers/net/ethernet/dec/tulip/uli526x.c if(db->link_failed) db 963 drivers/net/ethernet/dec/tulip/uli526x.c if (db->media_mode & ULI526X_AUTO) db 1018 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = from_timer(db, t, timer); db 1019 drivers/net/ethernet/dec/tulip/uli526x.c struct net_device *dev = pci_get_drvdata(db->pdev); db 1020 drivers/net/ethernet/dec/tulip/uli526x.c struct uli_phy_ops *phy = &db->phy; db 1021 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 1027 drivers/net/ethernet/dec/tulip/uli526x.c spin_lock_irqsave(&db->lock, flags); db 1032 drivers/net/ethernet/dec/tulip/uli526x.c if ( (db->interval_rx_cnt==0) && (tmp_cr8) ) { db 1033 drivers/net/ethernet/dec/tulip/uli526x.c db->reset_cr8++; db 1034 drivers/net/ethernet/dec/tulip/uli526x.c db->wait_reset = 1; db 1036 drivers/net/ethernet/dec/tulip/uli526x.c db->interval_rx_cnt = 0; db 1039 drivers/net/ethernet/dec/tulip/uli526x.c if ( db->tx_packet_cnt && db 1045 drivers/net/ethernet/dec/tulip/uli526x.c db->reset_TXtimeout++; db 1046 drivers/net/ethernet/dec/tulip/uli526x.c db->wait_reset = 1; db 1051 drivers/net/ethernet/dec/tulip/uli526x.c if (db->wait_reset) { db 1052 drivers/net/ethernet/dec/tulip/uli526x.c ULI526X_DBUG(0, "Dynamic Reset device", db->tx_packet_cnt); db 1053 drivers/net/ethernet/dec/tulip/uli526x.c db->reset_count++; db 1055 drivers/net/ethernet/dec/tulip/uli526x.c db->timer.expires = ULI526X_TIMER_WUT; db 1056 drivers/net/ethernet/dec/tulip/uli526x.c add_timer(&db->timer); db 1057 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 1062 drivers/net/ethernet/dec/tulip/uli526x.c if ((phy->read(db, db->phy_addr, 5) & 0x01e0)!=0) db 1065 drivers/net/ethernet/dec/tulip/uli526x.c if ( !(tmp_cr12 & 0x3) && !db->link_failed ) { db 1070 drivers/net/ethernet/dec/tulip/uli526x.c db->link_failed = 1; db 1074 drivers/net/ethernet/dec/tulip/uli526x.c if ( !(db->media_mode & 0x8) ) db 1075 drivers/net/ethernet/dec/tulip/uli526x.c phy->write(db, db->phy_addr, 0, 0x1000); db 1078 drivers/net/ethernet/dec/tulip/uli526x.c if (db->media_mode & ULI526X_AUTO) { db 1079 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data&=~0x00000200; /* bit9=0, HD mode */ db 1080 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data, db->ioaddr); db 1083 drivers/net/ethernet/dec/tulip/uli526x.c if ((tmp_cr12 & 0x3) && db->link_failed) { db 1085 drivers/net/ethernet/dec/tulip/uli526x.c db->link_failed = 0; db 1088 drivers/net/ethernet/dec/tulip/uli526x.c if ( (db->media_mode & ULI526X_AUTO) && db 1089 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_sense_speed(db) ) db 1090 drivers/net/ethernet/dec/tulip/uli526x.c db->link_failed = 1; db 1091 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_process_mode(db); db 1093 drivers/net/ethernet/dec/tulip/uli526x.c if(db->link_failed==0) db 1096 drivers/net/ethernet/dec/tulip/uli526x.c (db->op_mode == ULI526X_100MHF || db 1097 drivers/net/ethernet/dec/tulip/uli526x.c db->op_mode == ULI526X_100MFD) db 1099 drivers/net/ethernet/dec/tulip/uli526x.c (db->op_mode == ULI526X_10MFD || db 1100 drivers/net/ethernet/dec/tulip/uli526x.c db->op_mode == ULI526X_100MFD) db 1106 drivers/net/ethernet/dec/tulip/uli526x.c else if(!(tmp_cr12 & 0x3) && db->link_failed) db 1108 drivers/net/ethernet/dec/tulip/uli526x.c if(db->init==1) db 1114 drivers/net/ethernet/dec/tulip/uli526x.c db->init = 0; db 1117 drivers/net/ethernet/dec/tulip/uli526x.c db->timer.expires = ULI526X_TIMER_WUT; db 1118 drivers/net/ethernet/dec/tulip/uli526x.c add_timer(&db->timer); db 1119 drivers/net/ethernet/dec/tulip/uli526x.c spin_unlock_irqrestore(&db->lock, flags); db 1131 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 1132 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 1135 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data &= ~(CR6_RXSC | CR6_TXSC); /* Disable Tx/Rx */ db 1136 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data, ioaddr); db 1144 drivers/net/ethernet/dec/tulip/uli526x.c uli526x_free_rxbuffer(db); db 1147 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_packet_cnt = 0; db 1148 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_avail_cnt = 0; db 1149 drivers/net/ethernet/dec/tulip/uli526x.c db->link_failed = 1; db 1150 drivers/net/ethernet/dec/tulip/uli526x.c db->init=1; db 1151 drivers/net/ethernet/dec/tulip/uli526x.c db->wait_reset = 0; db 1256 drivers/net/ethernet/dec/tulip/uli526x.c static void uli526x_free_rxbuffer(struct uli526x_board_info * db) db 1261 drivers/net/ethernet/dec/tulip/uli526x.c while (db->rx_avail_cnt) { db 1262 drivers/net/ethernet/dec/tulip/uli526x.c dev_kfree_skb(db->rx_ready_ptr->rx_skb_ptr); db 1263 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_ready_ptr = db->rx_ready_ptr->next_rx_desc; db 1264 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_avail_cnt--; db 1273 drivers/net/ethernet/dec/tulip/uli526x.c static void uli526x_reuse_skb(struct uli526x_board_info *db, struct sk_buff * skb) db 1275 drivers/net/ethernet/dec/tulip/uli526x.c struct rx_desc *rxptr = db->rx_insert_ptr; db 1279 drivers/net/ethernet/dec/tulip/uli526x.c rxptr->rdes2 = cpu_to_le32(pci_map_single(db->pdev, db 1285 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_avail_cnt++; db 1286 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_insert_ptr = rxptr->next_rx_desc; db 1288 drivers/net/ethernet/dec/tulip/uli526x.c ULI526X_DBUG(0, "SK Buffer reuse method error", db->rx_avail_cnt); db 1299 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 1310 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_insert_ptr = db->first_tx_desc; db 1311 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_remove_ptr = db->first_tx_desc; db 1312 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR4, db->first_tx_desc_dma); /* TX DESC address */ db 1315 drivers/net/ethernet/dec/tulip/uli526x.c db->first_rx_desc = (void *)db->first_tx_desc + sizeof(struct tx_desc) * TX_DESC_CNT; db 1316 drivers/net/ethernet/dec/tulip/uli526x.c db->first_rx_desc_dma = db->first_tx_desc_dma + sizeof(struct tx_desc) * TX_DESC_CNT; db 1317 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_insert_ptr = db->first_rx_desc; db 1318 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_ready_ptr = db->first_rx_desc; db 1319 drivers/net/ethernet/dec/tulip/uli526x.c uw32(DCR3, db->first_rx_desc_dma); /* RX DESC address */ db 1322 drivers/net/ethernet/dec/tulip/uli526x.c tmp_buf = db->buf_pool_start; db 1323 drivers/net/ethernet/dec/tulip/uli526x.c tmp_buf_dma = db->buf_pool_dma_start; db 1324 drivers/net/ethernet/dec/tulip/uli526x.c tmp_tx_dma = db->first_tx_desc_dma; db 1325 drivers/net/ethernet/dec/tulip/uli526x.c for (tmp_tx = db->first_tx_desc, i = 0; i < TX_DESC_CNT; i++, tmp_tx++) { db 1336 drivers/net/ethernet/dec/tulip/uli526x.c (--tmp_tx)->tdes3 = cpu_to_le32(db->first_tx_desc_dma); db 1337 drivers/net/ethernet/dec/tulip/uli526x.c tmp_tx->next_tx_desc = db->first_tx_desc; db 1340 drivers/net/ethernet/dec/tulip/uli526x.c tmp_rx_dma=db->first_rx_desc_dma; db 1341 drivers/net/ethernet/dec/tulip/uli526x.c for (tmp_rx = db->first_rx_desc, i = 0; i < RX_DESC_CNT; i++, tmp_rx++) { db 1348 drivers/net/ethernet/dec/tulip/uli526x.c (--tmp_rx)->rdes3 = cpu_to_le32(db->first_rx_desc_dma); db 1349 drivers/net/ethernet/dec/tulip/uli526x.c tmp_rx->next_rx_desc = db->first_rx_desc; db 1380 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 1381 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 1390 drivers/net/ethernet/dec/tulip/uli526x.c txptr = db->tx_insert_ptr; db 1419 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_insert_ptr = txptr->next_tx_desc; db 1423 drivers/net/ethernet/dec/tulip/uli526x.c if (db->tx_packet_cnt < TX_DESC_CNT) { db 1425 drivers/net/ethernet/dec/tulip/uli526x.c db->tx_packet_cnt++; db 1427 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data | 0x2000, ioaddr); db 1429 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data, ioaddr); db 1443 drivers/net/ethernet/dec/tulip/uli526x.c struct uli526x_board_info *db = netdev_priv(dev); db 1447 drivers/net/ethernet/dec/tulip/uli526x.c rxptr = db->rx_insert_ptr; db 1449 drivers/net/ethernet/dec/tulip/uli526x.c while(db->rx_avail_cnt < RX_DESC_CNT) { db 1454 drivers/net/ethernet/dec/tulip/uli526x.c rxptr->rdes2 = cpu_to_le32(pci_map_single(db->pdev, db 1461 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_avail_cnt++; db 1464 drivers/net/ethernet/dec/tulip/uli526x.c db->rx_insert_ptr = rxptr; db 1472 drivers/net/ethernet/dec/tulip/uli526x.c static u16 read_srom_word(struct uli526x_board_info *db, int offset) db 1474 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 1482 drivers/net/ethernet/dec/tulip/uli526x.c srom_clk_write(db, SROM_DATA_1); db 1483 drivers/net/ethernet/dec/tulip/uli526x.c srom_clk_write(db, SROM_DATA_1); db 1484 drivers/net/ethernet/dec/tulip/uli526x.c srom_clk_write(db, SROM_DATA_0); db 1489 drivers/net/ethernet/dec/tulip/uli526x.c srom_clk_write(db, srom_data); db 1512 drivers/net/ethernet/dec/tulip/uli526x.c static u8 uli526x_sense_speed(struct uli526x_board_info * db) db 1514 drivers/net/ethernet/dec/tulip/uli526x.c struct uli_phy_ops *phy = &db->phy; db 1518 drivers/net/ethernet/dec/tulip/uli526x.c phy_mode = phy->read(db, db->phy_addr, 1); db 1519 drivers/net/ethernet/dec/tulip/uli526x.c phy_mode = phy->read(db, db->phy_addr, 1); db 1523 drivers/net/ethernet/dec/tulip/uli526x.c phy_mode = ((phy->read(db, db->phy_addr, 5) & 0x01e0)<<7); db 1534 drivers/net/ethernet/dec/tulip/uli526x.c case 0x1000: db->op_mode = ULI526X_10MHF; break; db 1535 drivers/net/ethernet/dec/tulip/uli526x.c case 0x2000: db->op_mode = ULI526X_10MFD; break; db 1536 drivers/net/ethernet/dec/tulip/uli526x.c case 0x4000: db->op_mode = ULI526X_100MHF; break; db 1537 drivers/net/ethernet/dec/tulip/uli526x.c case 0x8000: db->op_mode = ULI526X_100MFD; break; db 1538 drivers/net/ethernet/dec/tulip/uli526x.c default: db->op_mode = ULI526X_10MHF; ErrFlag = 1; break; db 1541 drivers/net/ethernet/dec/tulip/uli526x.c db->op_mode = ULI526X_10MHF; db 1556 drivers/net/ethernet/dec/tulip/uli526x.c static void uli526x_set_phyxcer(struct uli526x_board_info *db) db 1558 drivers/net/ethernet/dec/tulip/uli526x.c struct uli_phy_ops *phy = &db->phy; db 1562 drivers/net/ethernet/dec/tulip/uli526x.c phy_reg = phy->read(db, db->phy_addr, 4) & ~0x01e0; db 1564 drivers/net/ethernet/dec/tulip/uli526x.c if (db->media_mode & ULI526X_AUTO) { db 1566 drivers/net/ethernet/dec/tulip/uli526x.c phy_reg |= db->PHY_reg4; db 1569 drivers/net/ethernet/dec/tulip/uli526x.c switch(db->media_mode) { db 1580 drivers/net/ethernet/dec/tulip/uli526x.c phy_reg|=db->PHY_reg4; db 1581 drivers/net/ethernet/dec/tulip/uli526x.c db->media_mode|=ULI526X_AUTO; db 1583 drivers/net/ethernet/dec/tulip/uli526x.c phy->write(db, db->phy_addr, 4, phy_reg); db 1586 drivers/net/ethernet/dec/tulip/uli526x.c phy->write(db, db->phy_addr, 0, 0x1200); db 1598 drivers/net/ethernet/dec/tulip/uli526x.c static void uli526x_process_mode(struct uli526x_board_info *db) db 1600 drivers/net/ethernet/dec/tulip/uli526x.c struct uli_phy_ops *phy = &db->phy; db 1604 drivers/net/ethernet/dec/tulip/uli526x.c if (db->op_mode & 0x4) db 1605 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data |= CR6_FDM; /* Set Full Duplex Bit */ db 1607 drivers/net/ethernet/dec/tulip/uli526x.c db->cr6_data &= ~CR6_FDM; /* Clear Full Duplex Bit */ db 1609 drivers/net/ethernet/dec/tulip/uli526x.c update_cr6(db->cr6_data, db->ioaddr); db 1612 drivers/net/ethernet/dec/tulip/uli526x.c if (!(db->media_mode & 0x8)) { db 1614 drivers/net/ethernet/dec/tulip/uli526x.c phy_reg = phy->read(db, db->phy_addr, 6); db 1618 drivers/net/ethernet/dec/tulip/uli526x.c switch(db->op_mode) { db 1624 drivers/net/ethernet/dec/tulip/uli526x.c phy->write(db, db->phy_addr, 0, phy_reg); db 1631 drivers/net/ethernet/dec/tulip/uli526x.c static void phy_writeby_cr9(struct uli526x_board_info *db, u8 phy_addr, db 1638 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_1); db 1641 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_0); db 1642 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_1); db 1645 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_0); db 1646 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_1); db 1650 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, phy_addr & i ? PHY_DATA_1 : PHY_DATA_0); db 1654 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, offset & i ? PHY_DATA_1 : PHY_DATA_0); db 1657 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_1); db 1658 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_0); db 1662 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, phy_data & i ? PHY_DATA_1 : PHY_DATA_0); db 1665 drivers/net/ethernet/dec/tulip/uli526x.c static u16 phy_readby_cr9(struct uli526x_board_info *db, u8 phy_addr, u8 offset) db 1672 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_1); db 1675 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_0); db 1676 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_1); db 1679 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_1); db 1680 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, PHY_DATA_0); db 1684 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, phy_addr & i ? PHY_DATA_1 : PHY_DATA_0); db 1688 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, offset & i ? PHY_DATA_1 : PHY_DATA_0); db 1691 drivers/net/ethernet/dec/tulip/uli526x.c phy_read_1bit(db); db 1696 drivers/net/ethernet/dec/tulip/uli526x.c phy_data |= phy_read_1bit(db); db 1702 drivers/net/ethernet/dec/tulip/uli526x.c static u16 phy_readby_cr10(struct uli526x_board_info *db, u8 phy_addr, db 1705 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 1720 drivers/net/ethernet/dec/tulip/uli526x.c static void phy_writeby_cr10(struct uli526x_board_info *db, u8 phy_addr, db 1723 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 1735 drivers/net/ethernet/dec/tulip/uli526x.c static void phy_write_1bit(struct uli526x_board_info *db, u32 data) db 1737 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 1752 drivers/net/ethernet/dec/tulip/uli526x.c static u16 phy_read_1bit(struct uli526x_board_info *db) db 1754 drivers/net/ethernet/dec/tulip/uli526x.c void __iomem *ioaddr = db->ioaddr; db 557 drivers/net/ethernet/emulex/benet/be.h u8 __iomem *db; /* Door Bell */ db 131 drivers/net/ethernet/emulex/benet/be_cmds.c iowrite32(val, adapter->db + DB_MCCQ_OFFSET); db 627 drivers/net/ethernet/emulex/benet/be_cmds.c static int be_mbox_db_ready_wait(struct be_adapter *adapter, void __iomem *db) db 636 drivers/net/ethernet/emulex/benet/be_cmds.c ready = ioread32(db); db 666 drivers/net/ethernet/emulex/benet/be_cmds.c void __iomem *db = adapter->db + MPU_MAILBOX_DB_OFFSET; db 672 drivers/net/ethernet/emulex/benet/be_cmds.c status = be_mbox_db_ready_wait(adapter, db); db 679 drivers/net/ethernet/emulex/benet/be_cmds.c iowrite32(val, db); db 682 drivers/net/ethernet/emulex/benet/be_cmds.c status = be_mbox_db_ready_wait(adapter, db); db 689 drivers/net/ethernet/emulex/benet/be_cmds.c iowrite32(val, db); db 691 drivers/net/ethernet/emulex/benet/be_cmds.c status = be_mbox_db_ready_wait(adapter, db); db 728 drivers/net/ethernet/emulex/benet/be_cmds.c sliport_status = ioread32(adapter->db + SLIPORT_STATUS_OFFSET); db 2155 drivers/net/ethernet/emulex/benet/be_cmds.c adapter->db + SLIPORT_CONTROL_OFFSET); db 4767 drivers/net/ethernet/emulex/benet/be_cmds.c reg_val = ioread32(adapter->db + PHYSDEV_CONTROL_OFFSET); db 4788 drivers/net/ethernet/emulex/benet/be_cmds.c iowrite32(mask, adapter->db + PHYSDEV_CONTROL_OFFSET); db 4798 drivers/net/ethernet/emulex/benet/be_cmds.c sliport_status = ioread32(adapter->db + SLIPORT_STATUS_OFFSET); db 219 drivers/net/ethernet/emulex/benet/be_main.c iowrite32(val, adapter->db + DB_RQ_OFFSET); db 234 drivers/net/ethernet/emulex/benet/be_main.c iowrite32(val, adapter->db + txo->db_offset); db 256 drivers/net/ethernet/emulex/benet/be_main.c iowrite32(val, adapter->db + DB_EQ_OFFSET); db 273 drivers/net/ethernet/emulex/benet/be_main.c iowrite32(val, adapter->db + DB_CQ_OFFSET); db 3350 drivers/net/ethernet/emulex/benet/be_main.c sliport_status = ioread32(adapter->db + SLIPORT_STATUS_OFFSET); db 3353 drivers/net/ethernet/emulex/benet/be_main.c sliport_err1 = ioread32(adapter->db + db 3355 drivers/net/ethernet/emulex/benet/be_main.c sliport_err2 = ioread32(adapter->db + db 5670 drivers/net/ethernet/emulex/benet/be_main.c if (adapter->db) db 5671 drivers/net/ethernet/emulex/benet/be_main.c pci_iounmap(adapter->pdev, adapter->db); db 5716 drivers/net/ethernet/emulex/benet/be_main.c adapter->db = addr; db 5727 drivers/net/ethernet/emulex/benet/be_main.c adapter->pcicfg = adapter->db + SRIOV_VF_PCICFG_OFFSET; db 52 drivers/net/ethernet/emulex/benet/be_roce.c dev_info.db = adapter->db; db 32 drivers/net/ethernet/emulex/benet/be_roce.h u8 __iomem *db; db 34 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c #define DB_IDX(db, db_base) \ db 35 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c (((unsigned long)(db) - (unsigned long)(db_base)) / HINIC_DB_PAGE_SIZE) db 685 drivers/net/ethernet/mellanox/mlx4/alloc.c struct mlx4_db *db, int order) db 706 drivers/net/ethernet/mellanox/mlx4/alloc.c db->u.pgdir = pgdir; db 707 drivers/net/ethernet/mellanox/mlx4/alloc.c db->index = i; db 708 drivers/net/ethernet/mellanox/mlx4/alloc.c db->db = pgdir->db_page + db->index; db 709 drivers/net/ethernet/mellanox/mlx4/alloc.c db->dma = pgdir->db_dma + db->index * 4; db 710 drivers/net/ethernet/mellanox/mlx4/alloc.c db->order = order; db 715 drivers/net/ethernet/mellanox/mlx4/alloc.c int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order) db 724 drivers/net/ethernet/mellanox/mlx4/alloc.c if (!mlx4_alloc_db_from_pgdir(pgdir, db, order)) db 736 drivers/net/ethernet/mellanox/mlx4/alloc.c WARN_ON(mlx4_alloc_db_from_pgdir(pgdir, db, order)); db 745 drivers/net/ethernet/mellanox/mlx4/alloc.c void mlx4_db_free(struct mlx4_dev *dev, struct mlx4_db *db) db 753 drivers/net/ethernet/mellanox/mlx4/alloc.c o = db->order; db 754 drivers/net/ethernet/mellanox/mlx4/alloc.c i = db->index; db 756 drivers/net/ethernet/mellanox/mlx4/alloc.c if (db->order == 0 && test_bit(i ^ 1, db->u.pgdir->order0)) { db 757 drivers/net/ethernet/mellanox/mlx4/alloc.c clear_bit(i ^ 1, db->u.pgdir->order0); db 761 drivers/net/ethernet/mellanox/mlx4/alloc.c set_bit(i, db->u.pgdir->bits[o]); db 763 drivers/net/ethernet/mellanox/mlx4/alloc.c if (bitmap_full(db->u.pgdir->order1, MLX4_DB_PER_PAGE / 2)) { db 765 drivers/net/ethernet/mellanox/mlx4/alloc.c db->u.pgdir->db_page, db->u.pgdir->db_dma); db 766 drivers/net/ethernet/mellanox/mlx4/alloc.c list_del(&db->u.pgdir->list); db 767 drivers/net/ethernet/mellanox/mlx4/alloc.c kfree(db->u.pgdir); db 779 drivers/net/ethernet/mellanox/mlx4/alloc.c err = mlx4_db_alloc(dev, &wqres->db, 1); db 783 drivers/net/ethernet/mellanox/mlx4/alloc.c *wqres->db.db = 0; db 805 drivers/net/ethernet/mellanox/mlx4/alloc.c mlx4_db_free(dev, &wqres->db); db 816 drivers/net/ethernet/mellanox/mlx4/alloc.c mlx4_db_free(dev, &wqres->db); db 98 drivers/net/ethernet/mellanox/mlx4/en_cq.c cq->mcq.set_ci_db = cq->wqres.db.db; db 99 drivers/net/ethernet/mellanox/mlx4/en_cq.c cq->mcq.arm_db = cq->wqres.db.db + 1; db 142 drivers/net/ethernet/mellanox/mlx4/en_cq.c &mdev->priv_uar, cq->wqres.db.dma, &cq->mcq, db 83 drivers/net/ethernet/mellanox/mlx4/en_resources.c context->db_rec_addr = cpu_to_be64(priv->res.db.dma << 2); db 164 drivers/net/ethernet/mellanox/mlx4/en_rx.c *ring->wqres.db.db = cpu_to_be32(ring->prod & 0xffff); db 1079 drivers/net/ethernet/mellanox/mlx4/en_rx.c context->db_rec_addr = cpu_to_be64(ring->wqres.db.dma); db 210 drivers/net/ethernet/mellanox/mlx5/core/alloc.c struct mlx5_db *db) db 222 drivers/net/ethernet/mellanox/mlx5/core/alloc.c db->u.pgdir = pgdir; db 223 drivers/net/ethernet/mellanox/mlx5/core/alloc.c db->index = i; db 224 drivers/net/ethernet/mellanox/mlx5/core/alloc.c offset = db->index * cache_line_size(); db 225 drivers/net/ethernet/mellanox/mlx5/core/alloc.c db->db = pgdir->db_page + offset / sizeof(*pgdir->db_page); db 226 drivers/net/ethernet/mellanox/mlx5/core/alloc.c db->dma = pgdir->db_dma + offset; db 228 drivers/net/ethernet/mellanox/mlx5/core/alloc.c db->db[0] = 0; db 229 drivers/net/ethernet/mellanox/mlx5/core/alloc.c db->db[1] = 0; db 234 drivers/net/ethernet/mellanox/mlx5/core/alloc.c int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db, int node) db 242 drivers/net/ethernet/mellanox/mlx5/core/alloc.c if (!mlx5_alloc_db_from_pgdir(pgdir, db)) db 254 drivers/net/ethernet/mellanox/mlx5/core/alloc.c WARN_ON(mlx5_alloc_db_from_pgdir(pgdir, db)); db 263 drivers/net/ethernet/mellanox/mlx5/core/alloc.c int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db) db 265 drivers/net/ethernet/mellanox/mlx5/core/alloc.c return mlx5_db_alloc_node(dev, db, dev->priv.numa_node); db 269 drivers/net/ethernet/mellanox/mlx5/core/alloc.c void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db) db 275 drivers/net/ethernet/mellanox/mlx5/core/alloc.c __set_bit(db->index, db->u.pgdir->bitmap); db 277 drivers/net/ethernet/mellanox/mlx5/core/alloc.c if (bitmap_full(db->u.pgdir->bitmap, db_per_page)) { db 279 drivers/net/ethernet/mellanox/mlx5/core/alloc.c db->u.pgdir->db_page, db->u.pgdir->db_dma); db 280 drivers/net/ethernet/mellanox/mlx5/core/alloc.c list_del(&db->u.pgdir->list); db 281 drivers/net/ethernet/mellanox/mlx5/core/alloc.c bitmap_free(db->u.pgdir->bitmap); db 282 drivers/net/ethernet/mellanox/mlx5/core/alloc.c kfree(db->u.pgdir); db 406 drivers/net/ethernet/mellanox/mlx5/core/en.h } db; db 531 drivers/net/ethernet/mellanox/mlx5/core/en.h } db; db 556 drivers/net/ethernet/mellanox/mlx5/core/en.h } db; db 88 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h struct mlx5e_tx_wqe_info *edge_wi, *wi = &sq->db.wqe_info[pi]; db 109 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h *wq->db = cpu_to_be32(pc); db 153 drivers/net/ethernet/mellanox/mlx5/core/en/txrx.h return &sq->db.dma_fifo[i & sq->dma_fifo_mask]; db 212 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c struct mlx5e_xdp_wqe_info *wi = &sq->db.wqe_info[pi]; db 282 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c mlx5e_xdpi_fifo_push(&sq->db.xdpi_fifo, xdpi); db 350 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c mlx5e_xdpi_fifo_push(&sq->db.xdpi_fifo, xdpi); db 360 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c struct mlx5e_xdp_info_fifo *xdpi_fifo = &sq->db.xdpi_fifo; db 429 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c wi = &sq->db.wqe_info[ci]; db 460 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c wi = &sq->db.wqe_info[ci]; db 144 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.h struct mlx5e_xdp_wqe_info *edge_wi, *wi = &sq->db.wqe_info[pi]; db 56 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c struct mlx5e_xdp_wqe_info *wi = &sq->db.wqe_info[pi]; db 63 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c mlx5e_xdpi_fifo_push(&sq->db.xdpi_fifo, xdpi); db 109 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c struct mlx5e_tx_wqe_info *wi = &sq->db.wqe_info[pi]; db 437 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq->mpwqe.wq.db = &rq->mpwqe.wq.db[MLX5_RCV_DBR]; db 490 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq->wqe.wq.db = &rq->wqe.wq.db[MLX5_RCV_DBR]; db 700 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET64(wq, wq, dbr_addr, rq->wq_ctrl.db.dma); db 947 drivers/net/ethernet/mellanox/mlx5/core/en_main.c kvfree(sq->db.xdpi_fifo.xi); db 948 drivers/net/ethernet/mellanox/mlx5/core/en_main.c kvfree(sq->db.wqe_info); db 953 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct mlx5e_xdp_info_fifo *xdpi_fifo = &sq->db.xdpi_fifo; db 974 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sq->db.wqe_info = kvzalloc_node(sizeof(*sq->db.wqe_info) * wq_sz, db 976 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (!sq->db.wqe_info) db 1018 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wq->db = &wq->db[MLX5_SND_DBR]; db 1040 drivers/net/ethernet/mellanox/mlx5/core/en_main.c kvfree(sq->db.ico_wqe); db 1047 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sq->db.ico_wqe = kvzalloc_node(array_size(wq_sz, db 1048 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sizeof(*sq->db.ico_wqe)), db 1050 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (!sq->db.ico_wqe) db 1080 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wq->db = &wq->db[MLX5_SND_DBR]; db 1104 drivers/net/ethernet/mellanox/mlx5/core/en_main.c kvfree(sq->db.wqe_info); db 1105 drivers/net/ethernet/mellanox/mlx5/core/en_main.c kvfree(sq->db.dma_fifo); db 1113 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sq->db.dma_fifo = kvzalloc_node(array_size(df_sz, db 1114 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sizeof(*sq->db.dma_fifo)), db 1116 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sq->db.wqe_info = kvzalloc_node(array_size(wq_sz, db 1117 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sizeof(*sq->db.wqe_info)), db 1119 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (!sq->db.dma_fifo || !sq->db.wqe_info) { db 1172 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wq->db = &wq->db[MLX5_SND_DBR]; db 1238 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET64(wq, wq, dbr_addr, csp->wq_ctrl->db.dma); db 1380 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wi = &sq->db.wqe_info[pi]; db 1495 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct mlx5e_xdp_wqe_info *wi = &sq->db.wqe_info[i]; db 1553 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mcq->set_ci_db = cq->wq_ctrl.db.db; db 1554 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mcq->arm_db = cq->wq_ctrl.db.db + 1; db 1632 drivers/net/ethernet/mellanox/mlx5/core/en_main.c MLX5_SET64(cqc, cqc, dbr_addr, cq->wq_ctrl.db.dma); db 473 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_sq_wqe_info *edge_wi, *wi = &sq->db.ico_wqe[pi]; db 528 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c sq->db.ico_wqe[pi].opcode = MLX5_OPCODE_UMR; db 529 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c sq->db.ico_wqe[pi].num_wqebbs = MLX5E_UMR_WQEBBS; db 530 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c sq->db.ico_wqe[pi].umr.rq = rq; db 632 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c wi = &sq->db.ico_wqe[ci]; db 338 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wi = &sq->db.wqe_info[pi]; db 481 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wi = &sq->db.wqe_info[ci]; db 550 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wi = &sq->db.wqe_info[ci]; db 650 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c wi = &sq->db.wqe_info[pi]; db 80 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c sq->db.ico_wqe[pi].opcode = MLX5_OPCODE_NOP; db 81 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c sq->db.ico_wqe[pi].num_wqebbs = 1; db 126 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c *conn->qp.wq.rq.db = cpu_to_be32(conn->qp.rq.pc & 0xffff); db 135 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c *conn->qp.wq.sq.db = cpu_to_be32(conn->qp.sq.pc); db 478 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET64(cqc, cqc, dbr_addr, conn->cq.wq_ctrl.db.dma); db 490 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->cq.mcq.set_ci_db = conn->cq.wq_ctrl.db.db; db 491 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->cq.mcq.arm_db = conn->cq.wq_ctrl.db.db + 1; db 596 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET64(qpc, qpc, dbr_addr, conn->qp.wq_ctrl.db.dma); db 701 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET64(qpc, qpc, dbr_addr, conn->qp.wq_ctrl.db.dma); db 176 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET64(qpc, qpc, dbr_addr, dr_qp->wq_ctrl.db.dma); db 216 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c *dr_qp->wq.sq.db = cpu_to_be32(dr_qp->sq.pc & 0xfffff); db 753 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET64(cqc, cqc, dbr_addr, cq->wq_ctrl.db.dma); db 768 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c cq->mcq.set_ci_db = cq->wq_ctrl.db.db; db 769 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c cq->mcq.arm_db = cq->wq_ctrl.db.db + 1; db 71 drivers/net/ethernet/mellanox/mlx5/core/wq.c err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); db 77 drivers/net/ethernet/mellanox/mlx5/core/wq.c wq->db = wq_ctrl->db.db; db 94 drivers/net/ethernet/mellanox/mlx5/core/wq.c mlx5_db_free(mdev, &wq_ctrl->db); db 120 drivers/net/ethernet/mellanox/mlx5/core/wq.c err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); db 153 drivers/net/ethernet/mellanox/mlx5/core/wq.c wq->rq.db = &wq_ctrl->db.db[MLX5_RCV_DBR]; db 154 drivers/net/ethernet/mellanox/mlx5/core/wq.c wq->sq.db = &wq_ctrl->db.db[MLX5_SND_DBR]; db 161 drivers/net/ethernet/mellanox/mlx5/core/wq.c mlx5_db_free(mdev, &wq_ctrl->db); db 175 drivers/net/ethernet/mellanox/mlx5/core/wq.c err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); db 181 drivers/net/ethernet/mellanox/mlx5/core/wq.c wq->db = wq_ctrl->db.db; db 199 drivers/net/ethernet/mellanox/mlx5/core/wq.c mlx5_db_free(mdev, &wq_ctrl->db); db 226 drivers/net/ethernet/mellanox/mlx5/core/wq.c err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); db 232 drivers/net/ethernet/mellanox/mlx5/core/wq.c wq->db = wq_ctrl->db.db; db 249 drivers/net/ethernet/mellanox/mlx5/core/wq.c mlx5_db_free(mdev, &wq_ctrl->db); db 266 drivers/net/ethernet/mellanox/mlx5/core/wq.c mlx5_db_free(wq_ctrl->mdev, &wq_ctrl->db); db 48 drivers/net/ethernet/mellanox/mlx5/core/wq.h struct mlx5_db db; db 53 drivers/net/ethernet/mellanox/mlx5/core/wq.h __be32 *db; db 66 drivers/net/ethernet/mellanox/mlx5/core/wq.h __be32 *db; db 72 drivers/net/ethernet/mellanox/mlx5/core/wq.h __be32 *db; db 137 drivers/net/ethernet/mellanox/mlx5/core/wq.h *wq->db = cpu_to_be32(wq->wqe_ctr); db 210 drivers/net/ethernet/mellanox/mlx5/core/wq.h *wq->db = cpu_to_be32(wq->cc & 0xffffff); db 273 drivers/net/ethernet/mellanox/mlx5/core/wq.h *wq->db = cpu_to_be32(wq->wqe_ctr); db 129 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c hwinfo_db_validate(struct nfp_cpp *cpp, struct nfp_hwinfo *db, u32 len) db 133 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c size = le32_to_cpu(db->size); db 140 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c crc = crc32_posix(db, size); db 141 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c if (crc != get_unaligned_le32(db->start + size)) { db 143 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c crc, get_unaligned_le32(db->start + size)); db 148 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c return hwinfo_db_walk(cpp, db, size); db 159 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c u8 *db; db 181 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c db = kmalloc(*cpp_size + 1, GFP_KERNEL); db 182 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c if (!db) db 185 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c err = nfp_cpp_read(cpp, cpp_id, cpp_addr, db, *cpp_size); db 189 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c header = (void *)db; db 200 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c db[*cpp_size] = '\0'; db 202 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c return (void *)db; db 204 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c kfree(db); db 211 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c struct nfp_hwinfo *db; db 217 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c db = hwinfo_try_fetch(cpp, hwdb_size); db 218 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c if (db) db 219 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c return db; db 231 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c struct nfp_hwinfo *db; db 235 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c db = hwinfo_fetch(cpp, &hwdb_size); db 236 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c if (!db) db 239 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c err = hwinfo_db_validate(cpp, db, hwdb_size); db 241 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c kfree(db); db 245 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_hwinfo.c return db; db 918 drivers/net/ethernet/tehuti/tehuti.c static void bdx_rxdb_destroy(struct rxdb *db) db 920 drivers/net/ethernet/tehuti/tehuti.c vfree(db); db 925 drivers/net/ethernet/tehuti/tehuti.c struct rxdb *db; db 928 drivers/net/ethernet/tehuti/tehuti.c db = vmalloc(sizeof(struct rxdb) db 931 drivers/net/ethernet/tehuti/tehuti.c if (likely(db != NULL)) { db 932 drivers/net/ethernet/tehuti/tehuti.c db->stack = (int *)(db + 1); db 933 drivers/net/ethernet/tehuti/tehuti.c db->elems = (void *)(db->stack + nelem); db 934 drivers/net/ethernet/tehuti/tehuti.c db->nelem = nelem; db 935 drivers/net/ethernet/tehuti/tehuti.c db->top = nelem; db 937 drivers/net/ethernet/tehuti/tehuti.c db->stack[i] = nelem - i - 1; /* to make first allocs db 941 drivers/net/ethernet/tehuti/tehuti.c return db; db 944 drivers/net/ethernet/tehuti/tehuti.c static inline int bdx_rxdb_alloc_elem(struct rxdb *db) db 946 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(db->top <= 0); db 947 drivers/net/ethernet/tehuti/tehuti.c return db->stack[--(db->top)]; db 950 drivers/net/ethernet/tehuti/tehuti.c static inline void *bdx_rxdb_addr_elem(struct rxdb *db, int n) db 952 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT((n < 0) || (n >= db->nelem)); db 953 drivers/net/ethernet/tehuti/tehuti.c return db->elems + n; db 956 drivers/net/ethernet/tehuti/tehuti.c static inline int bdx_rxdb_available(struct rxdb *db) db 958 drivers/net/ethernet/tehuti/tehuti.c return db->top; db 961 drivers/net/ethernet/tehuti/tehuti.c static inline void bdx_rxdb_free_elem(struct rxdb *db, int n) db 963 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT((n >= db->nelem) || (n < 0)); db 964 drivers/net/ethernet/tehuti/tehuti.c db->stack[(db->top)++] = n; db 1022 drivers/net/ethernet/tehuti/tehuti.c struct rxdb *db = priv->rxdb; db 1026 drivers/net/ethernet/tehuti/tehuti.c DBG("total=%d free=%d busy=%d\n", db->nelem, bdx_rxdb_available(db), db 1027 drivers/net/ethernet/tehuti/tehuti.c db->nelem - bdx_rxdb_available(db)); db 1028 drivers/net/ethernet/tehuti/tehuti.c while (bdx_rxdb_available(db) > 0) { db 1029 drivers/net/ethernet/tehuti/tehuti.c i = bdx_rxdb_alloc_elem(db); db 1030 drivers/net/ethernet/tehuti/tehuti.c dm = bdx_rxdb_addr_elem(db, i); db 1033 drivers/net/ethernet/tehuti/tehuti.c for (i = 0; i < db->nelem; i++) { db 1034 drivers/net/ethernet/tehuti/tehuti.c dm = bdx_rxdb_addr_elem(db, i); db 1087 drivers/net/ethernet/tehuti/tehuti.c struct rxdb *db = priv->rxdb; db 1090 drivers/net/ethernet/tehuti/tehuti.c dno = bdx_rxdb_available(db) - 1; db 1098 drivers/net/ethernet/tehuti/tehuti.c idx = bdx_rxdb_alloc_elem(db); db 1099 drivers/net/ethernet/tehuti/tehuti.c dm = bdx_rxdb_addr_elem(db, idx); db 1149 drivers/net/ethernet/tehuti/tehuti.c struct rxdb *db; db 1155 drivers/net/ethernet/tehuti/tehuti.c db = priv->rxdb; db 1156 drivers/net/ethernet/tehuti/tehuti.c DBG("db=%p f=%p\n", db, f); db 1157 drivers/net/ethernet/tehuti/tehuti.c dm = bdx_rxdb_addr_elem(db, rxdd->va_lo); db 1202 drivers/net/ethernet/tehuti/tehuti.c struct rxdb *db = NULL; db 1254 drivers/net/ethernet/tehuti/tehuti.c db = priv->rxdb; db 1255 drivers/net/ethernet/tehuti/tehuti.c dm = bdx_rxdb_addr_elem(db, rxdd->va_lo); db 1272 drivers/net/ethernet/tehuti/tehuti.c bdx_rxdb_free_elem(db, rxdd->va_lo); db 1368 drivers/net/ethernet/tehuti/tehuti.c static inline int bdx_tx_db_size(struct txdb *db) db 1370 drivers/net/ethernet/tehuti/tehuti.c int taken = db->wptr - db->rptr; db 1372 drivers/net/ethernet/tehuti/tehuti.c taken = db->size + 1 + taken; /* (size + 1) equals memsz */ db 1374 drivers/net/ethernet/tehuti/tehuti.c return db->size - taken; db 1382 drivers/net/ethernet/tehuti/tehuti.c static inline void __bdx_tx_db_ptr_next(struct txdb *db, struct tx_map **pptr) db 1384 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(db == NULL || pptr == NULL); /* sanity */ db 1386 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(*pptr != db->rptr && /* expect either read */ db 1387 drivers/net/ethernet/tehuti/tehuti.c *pptr != db->wptr); /* or write pointer */ db 1389 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(*pptr < db->start || /* pointer has to be */ db 1390 drivers/net/ethernet/tehuti/tehuti.c *pptr >= db->end); /* in range */ db 1393 drivers/net/ethernet/tehuti/tehuti.c if (unlikely(*pptr == db->end)) db 1394 drivers/net/ethernet/tehuti/tehuti.c *pptr = db->start; db 1401 drivers/net/ethernet/tehuti/tehuti.c static inline void bdx_tx_db_inc_rptr(struct txdb *db) db 1403 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(db->rptr == db->wptr); /* can't read from empty db */ db 1404 drivers/net/ethernet/tehuti/tehuti.c __bdx_tx_db_ptr_next(db, &db->rptr); db 1411 drivers/net/ethernet/tehuti/tehuti.c static inline void bdx_tx_db_inc_wptr(struct txdb *db) db 1413 drivers/net/ethernet/tehuti/tehuti.c __bdx_tx_db_ptr_next(db, &db->wptr); db 1414 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(db->rptr == db->wptr); /* we can not get empty db as db 1487 drivers/net/ethernet/tehuti/tehuti.c struct txdb *db = &priv->txdb; db 1492 drivers/net/ethernet/tehuti/tehuti.c db->wptr->len = skb_headlen(skb); db 1493 drivers/net/ethernet/tehuti/tehuti.c db->wptr->addr.dma = pci_map_single(priv->pdev, skb->data, db 1494 drivers/net/ethernet/tehuti/tehuti.c db->wptr->len, PCI_DMA_TODEVICE); db 1495 drivers/net/ethernet/tehuti/tehuti.c pbl->len = CPU_CHIP_SWAP32(db->wptr->len); db 1496 drivers/net/ethernet/tehuti/tehuti.c pbl->pa_lo = CPU_CHIP_SWAP32(L32_64(db->wptr->addr.dma)); db 1497 drivers/net/ethernet/tehuti/tehuti.c pbl->pa_hi = CPU_CHIP_SWAP32(H32_64(db->wptr->addr.dma)); db 1501 drivers/net/ethernet/tehuti/tehuti.c bdx_tx_db_inc_wptr(db); db 1507 drivers/net/ethernet/tehuti/tehuti.c db->wptr->len = skb_frag_size(frag); db 1508 drivers/net/ethernet/tehuti/tehuti.c db->wptr->addr.dma = skb_frag_dma_map(&priv->pdev->dev, frag, db 1513 drivers/net/ethernet/tehuti/tehuti.c pbl->len = CPU_CHIP_SWAP32(db->wptr->len); db 1514 drivers/net/ethernet/tehuti/tehuti.c pbl->pa_lo = CPU_CHIP_SWAP32(L32_64(db->wptr->addr.dma)); db 1515 drivers/net/ethernet/tehuti/tehuti.c pbl->pa_hi = CPU_CHIP_SWAP32(H32_64(db->wptr->addr.dma)); db 1516 drivers/net/ethernet/tehuti/tehuti.c bdx_tx_db_inc_wptr(db); db 1520 drivers/net/ethernet/tehuti/tehuti.c db->wptr->len = -txd_sizes[nr_frags].bytes; db 1521 drivers/net/ethernet/tehuti/tehuti.c db->wptr->addr.skb = skb; db 1522 drivers/net/ethernet/tehuti/tehuti.c bdx_tx_db_inc_wptr(db); db 1715 drivers/net/ethernet/tehuti/tehuti.c struct txdb *db = &priv->txdb; db 1728 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(db->rptr->len == 0); db 1730 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(db->rptr->addr.dma == 0); db 1731 drivers/net/ethernet/tehuti/tehuti.c pci_unmap_page(priv->pdev, db->rptr->addr.dma, db 1732 drivers/net/ethernet/tehuti/tehuti.c db->rptr->len, PCI_DMA_TODEVICE); db 1733 drivers/net/ethernet/tehuti/tehuti.c bdx_tx_db_inc_rptr(db); db 1734 drivers/net/ethernet/tehuti/tehuti.c } while (db->rptr->len > 0); db 1735 drivers/net/ethernet/tehuti/tehuti.c tx_level -= db->rptr->len; /* '-' koz len is negative */ db 1738 drivers/net/ethernet/tehuti/tehuti.c dev_consume_skb_irq(db->rptr->addr.skb); db 1739 drivers/net/ethernet/tehuti/tehuti.c bdx_tx_db_inc_rptr(db); db 1775 drivers/net/ethernet/tehuti/tehuti.c struct txdb *db = &priv->txdb; db 1778 drivers/net/ethernet/tehuti/tehuti.c while (db->rptr != db->wptr) { db 1779 drivers/net/ethernet/tehuti/tehuti.c if (likely(db->rptr->len)) db 1780 drivers/net/ethernet/tehuti/tehuti.c pci_unmap_page(priv->pdev, db->rptr->addr.dma, db 1781 drivers/net/ethernet/tehuti/tehuti.c db->rptr->len, PCI_DMA_TODEVICE); db 1783 drivers/net/ethernet/tehuti/tehuti.c dev_kfree_skb(db->rptr->addr.skb); db 1784 drivers/net/ethernet/tehuti/tehuti.c bdx_tx_db_inc_rptr(db); db 118 drivers/net/fddi/skfp/ess.c SMbuf *db ; db 200 drivers/net/fddi/skfp/ess.c if (!(db = smt_get_mbuf(smc))) db 203 drivers/net/fddi/skfp/ess.c db->sm_len = mb->sm_len ; db 204 drivers/net/fddi/skfp/ess.c db->sm_off = mb->sm_off ; db 205 drivers/net/fddi/skfp/ess.c memcpy(((char *)(db->sm_data+db->sm_off)),(char *)sm, db 206 drivers/net/fddi/skfp/ess.c (int)db->sm_len) ; db 208 drivers/net/fddi/skfp/ess.c (struct smt_header *)(db->sm_data+db->sm_off), db 210 drivers/net/fddi/skfp/ess.c smt_send_frame(smc,db,FC_SMT_INFO,0) ; db 603 drivers/net/ieee802154/adf7242.c int db = mbm / 100; db 605 drivers/net/ieee802154/adf7242.c dev_vdbg(&lp->spi->dev, "%s : Power %d dB\n", __func__, db); db 607 drivers/net/ieee802154/adf7242.c if (db > 5 || db < -26) db 610 drivers/net/ieee802154/adf7242.c db = DIV_ROUND_CLOSEST(db + 29, 2); db 612 drivers/net/ieee802154/adf7242.c if (db > 15) { db 620 drivers/net/ieee802154/adf7242.c pwr = clamp_t(u8, db, 3, 15); db 173 drivers/net/ppp/bsd_comp.c static int bsd_init (void *db, unsigned char *options, db 222 drivers/net/ppp/bsd_comp.c bsd_clear(struct bsd_db *db) db 224 drivers/net/ppp/bsd_comp.c db->clear_count++; db 225 drivers/net/ppp/bsd_comp.c db->max_ent = FIRST-1; db 226 drivers/net/ppp/bsd_comp.c db->n_bits = BSD_INIT_BITS; db 227 drivers/net/ppp/bsd_comp.c db->bytes_out = 0; db 228 drivers/net/ppp/bsd_comp.c db->in_count = 0; db 229 drivers/net/ppp/bsd_comp.c db->ratio = 0; db 230 drivers/net/ppp/bsd_comp.c db->checkpoint = CHECK_GAP; db 247 drivers/net/ppp/bsd_comp.c static int bsd_check (struct bsd_db *db) /* 1=output CLEAR */ db 251 drivers/net/ppp/bsd_comp.c if (db->in_count >= db->checkpoint) db 254 drivers/net/ppp/bsd_comp.c if (db->in_count >= RATIO_MAX || db->bytes_out >= RATIO_MAX) db 256 drivers/net/ppp/bsd_comp.c db->in_count -= (db->in_count >> 2); db 257 drivers/net/ppp/bsd_comp.c db->bytes_out -= (db->bytes_out >> 2); db 260 drivers/net/ppp/bsd_comp.c db->checkpoint = db->in_count + CHECK_GAP; db 262 drivers/net/ppp/bsd_comp.c if (db->max_ent >= db->maxmaxcode) db 272 drivers/net/ppp/bsd_comp.c new_ratio = db->in_count << RATIO_SCALE_LOG; db 273 drivers/net/ppp/bsd_comp.c if (db->bytes_out != 0) db 275 drivers/net/ppp/bsd_comp.c new_ratio /= db->bytes_out; db 278 drivers/net/ppp/bsd_comp.c if (new_ratio < db->ratio || new_ratio < 1 * RATIO_SCALE) db 280 drivers/net/ppp/bsd_comp.c bsd_clear (db); db 283 drivers/net/ppp/bsd_comp.c db->ratio = new_ratio; db 295 drivers/net/ppp/bsd_comp.c struct bsd_db *db = (struct bsd_db *) state; db 297 drivers/net/ppp/bsd_comp.c stats->unc_bytes = db->uncomp_bytes; db 298 drivers/net/ppp/bsd_comp.c stats->unc_packets = db->uncomp_count; db 299 drivers/net/ppp/bsd_comp.c stats->comp_bytes = db->comp_bytes; db 300 drivers/net/ppp/bsd_comp.c stats->comp_packets = db->comp_count; db 301 drivers/net/ppp/bsd_comp.c stats->inc_bytes = db->incomp_bytes; db 302 drivers/net/ppp/bsd_comp.c stats->inc_packets = db->incomp_count; db 303 drivers/net/ppp/bsd_comp.c stats->in_count = db->in_count; db 304 drivers/net/ppp/bsd_comp.c stats->bytes_out = db->bytes_out; db 313 drivers/net/ppp/bsd_comp.c struct bsd_db *db = (struct bsd_db *) state; db 315 drivers/net/ppp/bsd_comp.c bsd_clear(db); db 317 drivers/net/ppp/bsd_comp.c db->seqno = 0; db 318 drivers/net/ppp/bsd_comp.c db->clear_count = 0; db 327 drivers/net/ppp/bsd_comp.c struct bsd_db *db = state; db 329 drivers/net/ppp/bsd_comp.c if (!db) db 335 drivers/net/ppp/bsd_comp.c vfree(db->dict); db 336 drivers/net/ppp/bsd_comp.c db->dict = NULL; db 340 drivers/net/ppp/bsd_comp.c vfree(db->lens); db 341 drivers/net/ppp/bsd_comp.c db->lens = NULL; db 345 drivers/net/ppp/bsd_comp.c kfree(db); db 356 drivers/net/ppp/bsd_comp.c struct bsd_db *db; db 398 drivers/net/ppp/bsd_comp.c db = kzalloc(sizeof (struct bsd_db), db 400 drivers/net/ppp/bsd_comp.c if (!db) db 409 drivers/net/ppp/bsd_comp.c db->dict = vmalloc(array_size(hsize, sizeof(struct bsd_dict))); db 410 drivers/net/ppp/bsd_comp.c if (!db->dict) db 412 drivers/net/ppp/bsd_comp.c bsd_free (db); db 421 drivers/net/ppp/bsd_comp.c db->lens = NULL; db 428 drivers/net/ppp/bsd_comp.c db->lens = vmalloc(array_size(sizeof(db->lens[0]), (maxmaxcode + 1))); db 429 drivers/net/ppp/bsd_comp.c if (!db->lens) db 431 drivers/net/ppp/bsd_comp.c bsd_free (db); db 438 drivers/net/ppp/bsd_comp.c db->totlen = sizeof (struct bsd_db) + db 441 drivers/net/ppp/bsd_comp.c db->hsize = hsize; db 442 drivers/net/ppp/bsd_comp.c db->hshift = hshift; db 443 drivers/net/ppp/bsd_comp.c db->maxmaxcode = maxmaxcode; db 444 drivers/net/ppp/bsd_comp.c db->maxbits = bits; db 446 drivers/net/ppp/bsd_comp.c return (void *) db; db 466 drivers/net/ppp/bsd_comp.c struct bsd_db *db = state; db 471 drivers/net/ppp/bsd_comp.c || (BSD_NBITS(options[2]) != db->maxbits) db 472 drivers/net/ppp/bsd_comp.c || (decomp && db->lens == NULL)) db 482 drivers/net/ppp/bsd_comp.c db->lens[indx] = 1; db 487 drivers/net/ppp/bsd_comp.c indx = db->hsize; db 490 drivers/net/ppp/bsd_comp.c db->dict[indx].codem1 = BADCODEM1; db 491 drivers/net/ppp/bsd_comp.c db->dict[indx].cptr = 0; db 494 drivers/net/ppp/bsd_comp.c db->unit = unit; db 495 drivers/net/ppp/bsd_comp.c db->mru = 0; db 499 drivers/net/ppp/bsd_comp.c db->debug = 1; db 501 drivers/net/ppp/bsd_comp.c bsd_reset(db); db 527 drivers/net/ppp/bsd_comp.c static unsigned short *lens_ptr(struct bsd_db *db, int idx) db 529 drivers/net/ppp/bsd_comp.c if ((unsigned int) idx > (unsigned int) db->maxmaxcode) db 534 drivers/net/ppp/bsd_comp.c return lens_ptrx (db, idx); db 537 drivers/net/ppp/bsd_comp.c static struct bsd_dict *dict_ptr(struct bsd_db *db, int idx) db 539 drivers/net/ppp/bsd_comp.c if ((unsigned int) idx >= (unsigned int) db->hsize) db 544 drivers/net/ppp/bsd_comp.c return dict_ptrx (db, idx); db 548 drivers/net/ppp/bsd_comp.c #define lens_ptr(db,idx) lens_ptrx(db,idx) db 549 drivers/net/ppp/bsd_comp.c #define dict_ptr(db,idx) dict_ptrx(db,idx) db 566 drivers/net/ppp/bsd_comp.c struct bsd_db *db; db 621 drivers/net/ppp/bsd_comp.c db = (struct bsd_db *) state; db 622 drivers/net/ppp/bsd_comp.c hshift = db->hshift; db 623 drivers/net/ppp/bsd_comp.c max_ent = db->max_ent; db 624 drivers/net/ppp/bsd_comp.c n_bits = db->n_bits; db 645 drivers/net/ppp/bsd_comp.c *wptr++ = db->seqno >> 8; db 646 drivers/net/ppp/bsd_comp.c *wptr++ = db->seqno; db 659 drivers/net/ppp/bsd_comp.c dictp = dict_ptr (db, hval); db 679 drivers/net/ppp/bsd_comp.c if (hval >= db->hsize) db 681 drivers/net/ppp/bsd_comp.c hval -= db->hsize; db 683 drivers/net/ppp/bsd_comp.c dictp = dict_ptr (db, hval); db 698 drivers/net/ppp/bsd_comp.c if (max_ent < db->maxmaxcode) db 707 drivers/net/ppp/bsd_comp.c db->n_bits = ++n_bits; db 715 drivers/net/ppp/bsd_comp.c dictp2 = dict_ptr (db, max_ent + 1); db 717 drivers/net/ppp/bsd_comp.c dictp3 = dict_ptr (db, indx); db 727 drivers/net/ppp/bsd_comp.c db->max_ent = ++max_ent; db 729 drivers/net/ppp/bsd_comp.c if (db->lens) db 731 drivers/net/ppp/bsd_comp.c unsigned short *len1 = lens_ptr (db, max_ent); db 732 drivers/net/ppp/bsd_comp.c unsigned short *len2 = lens_ptr (db, ent); db 741 drivers/net/ppp/bsd_comp.c db->bytes_out += olen - PPP_HDRLEN - BSD_OVHD; db 742 drivers/net/ppp/bsd_comp.c db->uncomp_bytes += isize; db 743 drivers/net/ppp/bsd_comp.c db->in_count += isize; db 744 drivers/net/ppp/bsd_comp.c ++db->uncomp_count; db 745 drivers/net/ppp/bsd_comp.c ++db->seqno; db 749 drivers/net/ppp/bsd_comp.c ++db->bytes_out; /* must be set before calling bsd_check */ db 756 drivers/net/ppp/bsd_comp.c if (bsd_check(db)) db 776 drivers/net/ppp/bsd_comp.c if (max_ent >= mxcode && max_ent < db->maxmaxcode) db 778 drivers/net/ppp/bsd_comp.c db->n_bits++; db 784 drivers/net/ppp/bsd_comp.c ++db->incomp_count; db 785 drivers/net/ppp/bsd_comp.c db->incomp_bytes += isize; db 790 drivers/net/ppp/bsd_comp.c ++db->comp_count; db 791 drivers/net/ppp/bsd_comp.c db->comp_bytes += olen; db 830 drivers/net/ppp/bsd_comp.c struct bsd_db *db; db 850 drivers/net/ppp/bsd_comp.c db = (struct bsd_db *) state; db 851 drivers/net/ppp/bsd_comp.c max_ent = db->max_ent; db 854 drivers/net/ppp/bsd_comp.c n_bits = db->n_bits; db 875 drivers/net/ppp/bsd_comp.c if (seq != db->seqno) db 877 drivers/net/ppp/bsd_comp.c if (db->debug) db 880 drivers/net/ppp/bsd_comp.c db->unit, seq, db->seqno - 1); db 885 drivers/net/ppp/bsd_comp.c ++db->seqno; db 886 drivers/net/ppp/bsd_comp.c db->bytes_out += ilen; db 910 drivers/net/ppp/bsd_comp.c db->in_count += (explen - 3); /* don't count the header */ db 939 drivers/net/ppp/bsd_comp.c if (db->debug) db 941 drivers/net/ppp/bsd_comp.c printk("bsd_decomp%d: bad CLEAR\n", db->unit); db 946 drivers/net/ppp/bsd_comp.c bsd_clear(db); db 950 drivers/net/ppp/bsd_comp.c if ((incode > max_ent + 2) || (incode > db->maxmaxcode) db 953 drivers/net/ppp/bsd_comp.c if (db->debug) db 956 drivers/net/ppp/bsd_comp.c db->unit, incode, oldcode); db 958 drivers/net/ppp/bsd_comp.c max_ent, explen, db->seqno); db 975 drivers/net/ppp/bsd_comp.c codelen = *(lens_ptr (db, finchar)); db 979 drivers/net/ppp/bsd_comp.c if (db->debug) db 981 drivers/net/ppp/bsd_comp.c printk("bsd_decomp%d: ran out of mru\n", db->unit); db 998 drivers/net/ppp/bsd_comp.c struct bsd_dict *dictp2 = dict_ptr (db, finchar); db 1000 drivers/net/ppp/bsd_comp.c dictp = dict_ptr (db, dictp2->cptr); db 1006 drivers/net/ppp/bsd_comp.c printk("bsd_decomp%d: fell off end of chain ", db->unit); db 1016 drivers/net/ppp/bsd_comp.c db->unit, incode, finchar); db 1034 drivers/net/ppp/bsd_comp.c db->unit, codelen, incode, max_ent); db 1051 drivers/net/ppp/bsd_comp.c if (oldcode != CLEAR && max_ent < db->maxmaxcode) db 1059 drivers/net/ppp/bsd_comp.c hval = BSD_HASH(oldcode,finchar,db->hshift); db 1060 drivers/net/ppp/bsd_comp.c dictp = dict_ptr (db, hval); db 1069 drivers/net/ppp/bsd_comp.c if (hval >= db->hsize) db 1071 drivers/net/ppp/bsd_comp.c hval -= db->hsize; db 1073 drivers/net/ppp/bsd_comp.c dictp = dict_ptr (db, hval); db 1083 drivers/net/ppp/bsd_comp.c dictp2 = dict_ptr (db, max_ent + 1); db 1085 drivers/net/ppp/bsd_comp.c dictp3 = dict_ptr (db, indx); db 1095 drivers/net/ppp/bsd_comp.c db->max_ent = ++max_ent; db 1098 drivers/net/ppp/bsd_comp.c lens1 = lens_ptr (db, max_ent); db 1099 drivers/net/ppp/bsd_comp.c lens2 = lens_ptr (db, oldcode); db 1103 drivers/net/ppp/bsd_comp.c if (max_ent >= MAXCODE(n_bits) && max_ent < db->maxmaxcode) db 1105 drivers/net/ppp/bsd_comp.c db->n_bits = ++n_bits; db 1112 drivers/net/ppp/bsd_comp.c ++db->comp_count; db 1113 drivers/net/ppp/bsd_comp.c ++db->uncomp_count; db 1114 drivers/net/ppp/bsd_comp.c db->comp_bytes += isize - BSD_OVHD - PPP_HDRLEN; db 1115 drivers/net/ppp/bsd_comp.c db->uncomp_bytes += explen; db 1117 drivers/net/ppp/bsd_comp.c if (bsd_check(db)) db 1119 drivers/net/ppp/bsd_comp.c if (db->debug) db 1122 drivers/net/ppp/bsd_comp.c db->unit, db->seqno - 1); db 359 drivers/net/wireless/ath/ath9k/eeprom.h u8 db; db 174 drivers/net/wireless/ath/ath9k/eeprom_def.c PR_EEP("Chain0 DriverBias", modal_hdr->db); db 363 drivers/net/wireless/ath/ath9k/eeprom_def.c return pModal[0].db; db 367 drivers/net/wireless/ath/ath9k/eeprom_def.c return pModal[1].db; db 517 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->db); db 534 drivers/net/wireless/ath/ath9k/eeprom_def.c pModal->db); db 67 drivers/net/wireless/ath/carl9170/eeprom.h u8 db; db 140 drivers/pinctrl/meson/pinctrl-meson.h #define BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, \ db 151 drivers/pinctrl/meson/pinctrl-meson.h [REG_DIR] = { dr, db }, \ db 158 drivers/pinctrl/meson/pinctrl-meson.h #define BANK(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib) \ db 159 drivers/pinctrl/meson/pinctrl-meson.h BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, 0, 0) db 245 drivers/pinctrl/sirf/pinctrl-atlas7.c #define MUX(b, pad, f, dr, db, dvr, dvb) \ db 251 drivers/pinctrl/sirf/pinctrl-atlas7.c .dinput_bit = db, \ db 113 drivers/scsi/be2iscsi/be.h u8 __iomem *db; /* Door Bell */ db 589 drivers/scsi/be2iscsi/be_cmds.c void __iomem *db = ctrl->db + MPU_MAILBOX_DB_OFFSET; db 603 drivers/scsi/be2iscsi/be_cmds.c ready = ioread32(db); db 639 drivers/scsi/be2iscsi/be_cmds.c void __iomem *db = ctrl->db + MPU_MAILBOX_DB_OFFSET; db 650 drivers/scsi/be2iscsi/be_cmds.c iowrite32(val, db); db 660 drivers/scsi/be2iscsi/be_cmds.c iowrite32(val, db); db 466 drivers/scsi/be2iscsi/be_main.c phba->ctrl.db = addr; db 427 drivers/scsi/constants.c int db = driver_byte(result); db 429 drivers/scsi/constants.c if (db < ARRAY_SIZE(driverbyte_table)) db 430 drivers/scsi/constants.c db_string = driverbyte_table[db]; db 351 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define h_copy_rdma(l, sa, sb, da, db) \ db 352 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h plpar_hcall_norets(H_COPY_RDMA, l, sa, sb, da, db) db 375 drivers/scsi/ibmvscsi_tgt/libsrp.c struct srp_direct_buf *db; db 403 drivers/scsi/ibmvscsi_tgt/libsrp.c db = (struct srp_direct_buf *)(srp_cmd->add_data db 405 drivers/scsi/ibmvscsi_tgt/libsrp.c *data_len = be32_to_cpu(db->len); db 107 drivers/staging/fbtft/fb_agm1264k-fl.c if (!par->gpio.db[i]) { db 420 drivers/staging/fbtft/fb_agm1264k-fl.c gpiod_set_value(par->gpio.db[i], data & (1 << i)); db 123 drivers/staging/fbtft/fbtft-core.c &par->gpio.db[i]); db 1130 drivers/staging/fbtft/fbtft-core.c if (!par->gpio.db[i]) { db 154 drivers/staging/fbtft/fbtft-io.c gpiod_set_value(par->gpio.db[i], db 162 drivers/staging/fbtft/fbtft-io.c gpiod_set_value(par->gpio.db[i], data & 1); db 204 drivers/staging/fbtft/fbtft-io.c gpiod_set_value(par->gpio.db[i], db 212 drivers/staging/fbtft/fbtft-io.c gpiod_set_value(par->gpio.db[i], data & 1); db 215 drivers/staging/fbtft/fbtft.h struct gpio_desc *db[16]; db 40 drivers/tee/optee/optee_private.h struct list_head db; db 24 drivers/tee/optee/rpc.c INIT_LIST_HEAD(&priv->db); db 58 drivers/tee/optee/rpc.c list_for_each_entry(w, &wq->db, link) db 66 drivers/tee/optee/rpc.c list_add_tail(&w->link, &wq->db); db 979 drivers/video/fbdev/aty/radeon_monitor.c const struct fb_videomode *db = vesa_modes; db 990 drivers/video/fbdev/aty/radeon_monitor.c db = rinfo->mon1_modedb; db 1016 drivers/video/fbdev/aty/radeon_monitor.c while (db) { db 1020 drivers/video/fbdev/aty/radeon_monitor.c if (db[i].yres < src->yres) db 1022 drivers/video/fbdev/aty/radeon_monitor.c if (db[i].xres < src->xres) db 1024 drivers/video/fbdev/aty/radeon_monitor.c d = radeon_compare_modes(src, &db[i]); db 1029 drivers/video/fbdev/aty/radeon_monitor.c candidate = &db[i]; db 1033 drivers/video/fbdev/aty/radeon_monitor.c db = NULL; db 1036 drivers/video/fbdev/aty/radeon_monitor.c db = vesa_modes; db 619 drivers/video/fbdev/core/modedb.c const struct fb_videomode *db, unsigned int dbsize, db 626 drivers/video/fbdev/core/modedb.c if (!db) { db 627 drivers/video/fbdev/core/modedb.c db = modedb; db 632 drivers/video/fbdev/core/modedb.c default_mode = &db[0]; db 760 drivers/video/fbdev/core/modedb.c if (db != modedb && db 773 drivers/video/fbdev/core/modedb.c if ((name_matches(db[i], name, namelen) || db 774 drivers/video/fbdev/core/modedb.c (res_specified && res_matches(db[i], xres, yres))) && db 775 drivers/video/fbdev/core/modedb.c !fb_try_mode(var, info, &db[i], bpp)) { db 776 drivers/video/fbdev/core/modedb.c const int db_interlace = (db[i].vmode & db 778 drivers/video/fbdev/core/modedb.c int score = abs(db[i].refresh - refresh); db 786 drivers/video/fbdev/core/modedb.c db[i].refresh == refresh) db 796 drivers/video/fbdev/core/modedb.c fb_try_mode(var, info, &db[best], bpp); db 804 drivers/video/fbdev/core/modedb.c DPRINTK("Trying %ix%i\n", db[i].xres, db[i].yres); db 805 drivers/video/fbdev/core/modedb.c if (!fb_try_mode(var, info, &db[i], bpp)) { db 806 drivers/video/fbdev/core/modedb.c tdiff = abs(db[i].xres - xres) + db 807 drivers/video/fbdev/core/modedb.c abs(db[i].yres - yres); db 813 drivers/video/fbdev/core/modedb.c if (xres > db[i].xres || yres > db[i].yres) db 823 drivers/video/fbdev/core/modedb.c fb_try_mode(var, info, &db[best], bpp); db 834 drivers/video/fbdev/core/modedb.c if (!fb_try_mode(var, info, &db[i], default_bpp)) db 1472 drivers/video/fbdev/fsl-diu-fb.c struct fb_videomode *db = fsl_diu_mode_db; db 1493 drivers/video/fbdev/fsl-diu-fb.c db = info->monspecs.modedb; db 1500 drivers/video/fbdev/fsl-diu-fb.c rc = fb_find_mode(&info->var, info, aoi_mode, db, dbsize, NULL, db 401 drivers/video/fbdev/macmodes.c const struct fb_videomode *db = NULL; db 406 drivers/video/fbdev/macmodes.c db = mac_modedb; db 409 drivers/video/fbdev/macmodes.c return fb_find_mode(var, info, mode_option, db, dbsize, db 2802 fs/ext4/mballoc.c struct ext4_group_info *db; db 2816 fs/ext4/mballoc.c db = e4b.bd_info; db 2822 fs/ext4/mballoc.c rb_erase(&entry->efd_node, &(db->bb_free_root)); db 2832 fs/ext4/mballoc.c EXT4_MB_GRP_CLEAR_TRIMMED(db); db 2834 fs/ext4/mballoc.c if (!db->bb_free_root.rb_node) { db 4653 fs/ext4/mballoc.c struct ext4_group_info *db = e4b->bd_info; db 4656 fs/ext4/mballoc.c struct rb_node **n = &db->bb_free_root.rb_node, *node; db 4692 fs/ext4/mballoc.c rb_insert_color(new_node, &db->bb_free_root); db 4699 fs/ext4/mballoc.c &(db->bb_free_root)); db 4706 fs/ext4/mballoc.c &(db->bb_free_root)); db 65 fs/kernfs/dir.c size_t da, db; db 72 fs/kernfs/dir.c db = kernfs_depth(rb->kn, b); db 74 fs/kernfs/dir.c while (da > db) { db 78 fs/kernfs/dir.c while (db > da) { db 80 fs/kernfs/dir.c db--; db 1278 fs/ocfs2/cluster/heartbeat.c struct o2hb_debug_buf *db = inode->i_private; db 1287 fs/ocfs2/cluster/heartbeat.c BUG_ON(sizeof(map) < db->db_size); db 1293 fs/ocfs2/cluster/heartbeat.c switch (db->db_type) { db 1299 fs/ocfs2/cluster/heartbeat.c memcpy(map, db->db_data, db->db_size); db 1305 fs/ocfs2/cluster/heartbeat.c reg = (struct o2hb_region *)db->db_data; db 1306 fs/ocfs2/cluster/heartbeat.c memcpy(map, reg->hr_live_node_bitmap, db->db_size); db 1311 fs/ocfs2/cluster/heartbeat.c reg = (struct o2hb_region *)db->db_data; db 1317 fs/ocfs2/cluster/heartbeat.c reg = (struct o2hb_region *)db->db_data; db 1326 fs/ocfs2/cluster/heartbeat.c reg = (struct o2hb_region *)db->db_data; db 1335 fs/ocfs2/cluster/heartbeat.c while ((i = find_next_bit(map, db->db_len, i + 1)) < db->db_len) db 1394 fs/ocfs2/cluster/heartbeat.c struct o2hb_debug_buf **db, int db_len, int type, db 1397 fs/ocfs2/cluster/heartbeat.c *db = kmalloc(db_len, GFP_KERNEL); db 1398 fs/ocfs2/cluster/heartbeat.c if (!*db) db 1401 fs/ocfs2/cluster/heartbeat.c (*db)->db_type = type; db 1402 fs/ocfs2/cluster/heartbeat.c (*db)->db_size = size; db 1403 fs/ocfs2/cluster/heartbeat.c (*db)->db_len = len; db 1404 fs/ocfs2/cluster/heartbeat.c (*db)->db_data = data; db 1406 fs/ocfs2/cluster/heartbeat.c debugfs_create_file(name, S_IFREG|S_IRUSR, dir, *db, &o2hb_debug_fops); db 3961 fs/ocfs2/dir.c struct ocfs2_dir_block_trailer *db; db 3980 fs/ocfs2/dir.c db = ocfs2_trailer_from_bh(leaf_bh, dir->i_sb); db 3981 fs/ocfs2/dir.c if (rec_len <= le16_to_cpu(db->db_free_rec_len)) { db 3989 fs/ocfs2/dir.c next_block = le64_to_cpu(db->db_free_next); db 589 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) db 592 fs/xfs/libxfs/xfs_da_format.c (db / xfs_dir2_free_max_bests(geo)); db 599 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) db 601 fs/xfs/libxfs/xfs_da_format.c return db % xfs_dir2_free_max_bests(geo); db 621 fs/xfs/libxfs/xfs_da_format.c xfs_dir3_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) db 624 fs/xfs/libxfs/xfs_da_format.c (db / xfs_dir3_free_max_bests(geo)); db 631 fs/xfs/libxfs/xfs_da_format.c xfs_dir3_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) db 633 fs/xfs/libxfs/xfs_da_format.c return db % xfs_dir3_free_max_bests(geo); db 634 fs/xfs/libxfs/xfs_dir2.c xfs_dir2_db_t db, db 645 fs/xfs/libxfs/xfs_dir2.c trace_xfs_dir2_shrink_inode(args, db); db 650 fs/xfs/libxfs/xfs_dir2.c da = xfs_dir2_db_to_da(args->geo, db); db 677 fs/xfs/libxfs/xfs_dir2.c if (db >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)) db 682 fs/xfs/libxfs/xfs_dir2.c if (dp->i_d.di_size > xfs_dir2_db_off_to_byte(args->geo, db + 1, 0)) db 691 fs/xfs/libxfs/xfs_dir2.c if (db == args->geo->datablk) db 98 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_t db); db 100 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_t db); db 143 fs/xfs/libxfs/xfs_dir2.h extern int xfs_dir2_shrink_inode(struct xfs_da_args *args, xfs_dir2_db_t db, db 241 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, db 244 fs/xfs/libxfs/xfs_dir2.h return ((xfs_dir2_off_t)db << geo->blklog) + o; db 251 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_to_da(struct xfs_da_geometry *geo, xfs_dir2_db_t db) db 253 fs/xfs/libxfs/xfs_dir2.h return (xfs_dablk_t)(db << (geo->blklog - geo->fsblog)); db 269 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_off_to_dataptr(struct xfs_da_geometry *geo, xfs_dir2_db_t db, db 272 fs/xfs/libxfs/xfs_dir2.h return xfs_dir2_byte_to_dataptr(xfs_dir2_db_off_to_byte(geo, db, o)); db 1302 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_db_t db; /* data block number */ db 1339 fs/xfs/libxfs/xfs_dir2_leaf.c db = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); db 1346 fs/xfs/libxfs/xfs_dir2_leaf.c if (be16_to_cpu(bestsp[db]) != oldbest) db 1377 fs/xfs/libxfs/xfs_dir2_leaf.c bestsp[db] = bf[0].length; db 1378 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir3_leaf_log_bests(args, lbp, db, db); db 1386 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(db != args->geo->datablk); db 1387 fs/xfs/libxfs/xfs_dir2_leaf.c if ((error = xfs_dir2_shrink_inode(args, db, dbp))) { db 1404 fs/xfs/libxfs/xfs_dir2_leaf.c if (db == be32_to_cpu(ltp->bestcount) - 1) { db 1408 fs/xfs/libxfs/xfs_dir2_leaf.c for (i = db - 1; i > 0; i--) { db 1416 fs/xfs/libxfs/xfs_dir2_leaf.c memmove(&bestsp[db - i], bestsp, db 1417 fs/xfs/libxfs/xfs_dir2_leaf.c (be32_to_cpu(ltp->bestcount) - (db - i)) * sizeof(*bestsp)); db 1418 fs/xfs/libxfs/xfs_dir2_leaf.c be32_add_cpu(<p->bestcount, -(db - i)); db 1423 fs/xfs/libxfs/xfs_dir2_leaf.c bestsp[db] = cpu_to_be16(NULLDATAOFF); db 1428 fs/xfs/libxfs/xfs_dir2_leaf.c else if (db != args->geo->datablk) db 1553 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_db_t db) /* data block number */ db 1568 fs/xfs/libxfs/xfs_dir2_leaf.c error = xfs_dir3_data_read(tp, dp, xfs_dir2_db_to_da(args->geo, db), db 1585 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(db == be32_to_cpu(ltp->bestcount) - 1); db 1592 fs/xfs/libxfs/xfs_dir2_leaf.c if ((error = xfs_dir2_shrink_inode(args, db, dbp))) { db 508 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_db_t db) db 516 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(hdr.firstdb <= db); db 517 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(db < hdr.firstdb + hdr.nvalid); db 520 fs/xfs/libxfs/xfs_dir2_node.c #define xfs_dir2_free_hdr_check(dp, bp, db) db 1205 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_db_t db; /* data block number */ db 1236 fs/xfs/libxfs/xfs_dir2_node.c db = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); db 1237 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(dblk->blkno == db); db 1288 fs/xfs/libxfs/xfs_dir2_node.c fdb = dp->d_ops->db_to_fdb(args->geo, db); db 1307 fs/xfs/libxfs/xfs_dir2_node.c findex = dp->d_ops->db_to_fdindex(args->geo, db); db 1318 fs/xfs/libxfs/xfs_dir2_node.c error = xfs_dir2_shrink_inode(args, db, dbp); db 74 fs/xfs/libxfs/xfs_dir2_priv.h struct xfs_buf *lbp, xfs_dir2_db_t db); db 193 fs/xfs/scrub/dir.c xfs_dir2_db_t db; db 212 fs/xfs/scrub/dir.c db = xfs_dir2_dataptr_to_db(mp->m_dir_geo, ptr); db 214 fs/xfs/scrub/dir.c rec_bno = xfs_dir2_db_to_da(mp->m_dir_geo, db); db 1118 include/drm/drm_dp_helper.h u8 db[32]; db 802 include/linux/fb.h const struct fb_videomode *db, db 672 include/linux/mlx4/device.h __be32 *db; db 683 include/linux/mlx4/device.h struct mlx4_db db; db 1130 include/linux/mlx4/device.h int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order); db 1131 include/linux/mlx4/device.h void mlx4_db_free(struct mlx4_dev *dev, struct mlx4_db *db); db 725 include/linux/mlx5/driver.h __be32 *db; db 987 include/linux/mlx5/driver.h int mlx5_db_alloc(struct mlx5_core_dev *dev, struct mlx5_db *db); db 988 include/linux/mlx5/driver.h int mlx5_db_alloc_node(struct mlx5_core_dev *dev, struct mlx5_db *db, db 990 include/linux/mlx5/driver.h void mlx5_db_free(struct mlx5_core_dev *dev, struct mlx5_db *db); db 442 lib/debugobjects.c struct debug_bucket *db = obj_hash; db 451 lib/debugobjects.c for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { db 452 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 453 lib/debugobjects.c hlist_move_list(&db->list, &freelist); db 454 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 536 lib/debugobjects.c struct debug_bucket *db; db 542 lib/debugobjects.c db = get_bucket((unsigned long) addr); db 544 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 546 lib/debugobjects.c obj = lookup_object(addr, db); db 548 lib/debugobjects.c obj = alloc_object(addr, db, descr); db 551 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 567 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 573 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 580 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 623 lib/debugobjects.c struct debug_bucket *db; db 634 lib/debugobjects.c db = get_bucket((unsigned long) addr); db 636 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 638 lib/debugobjects.c obj = lookup_object(addr, db); db 651 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 664 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 670 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 700 lib/debugobjects.c struct debug_bucket *db; db 708 lib/debugobjects.c db = get_bucket((unsigned long) addr); db 710 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 712 lib/debugobjects.c obj = lookup_object(addr, db); db 732 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 753 lib/debugobjects.c struct debug_bucket *db; db 761 lib/debugobjects.c db = get_bucket((unsigned long) addr); db 763 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 765 lib/debugobjects.c obj = lookup_object(addr, db); db 777 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 789 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 803 lib/debugobjects.c struct debug_bucket *db; db 810 lib/debugobjects.c db = get_bucket((unsigned long) addr); db 812 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 814 lib/debugobjects.c obj = lookup_object(addr, db); db 821 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 827 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 832 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 843 lib/debugobjects.c struct debug_bucket *db; db 850 lib/debugobjects.c db = get_bucket((unsigned long) addr); db 852 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 854 lib/debugobjects.c obj = lookup_object(addr, db); db 860 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 877 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 892 lib/debugobjects.c struct debug_bucket *db; db 900 lib/debugobjects.c db = get_bucket((unsigned long) addr); db 902 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 904 lib/debugobjects.c obj = lookup_object(addr, db); db 920 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 939 lib/debugobjects.c struct debug_bucket *db; db 951 lib/debugobjects.c db = get_bucket(paddr); db 955 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 956 lib/debugobjects.c hlist_for_each_entry_safe(obj, tmp, &db->list, node) { db 966 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 977 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 1154 lib/debugobjects.c struct debug_bucket *db; db 1159 lib/debugobjects.c db = get_bucket((unsigned long) addr); db 1161 lib/debugobjects.c raw_spin_lock_irqsave(&db->lock, flags); db 1163 lib/debugobjects.c obj = lookup_object(addr, db); db 1185 lib/debugobjects.c raw_spin_unlock_irqrestore(&db->lock, flags); db 1297 lib/debugobjects.c struct debug_bucket *db = obj_hash; db 1323 lib/debugobjects.c for (i = 0; i < ODEBUG_HASH_SIZE; i++, db++) { db 1324 lib/debugobjects.c hlist_move_list(&db->list, &objects); db 1331 lib/debugobjects.c hlist_add_head(&new->node, &db->list); db 24 lib/raid6/recov.c u8 px, qx, db; db 57 lib/raid6/recov.c *dq++ = db = pbmul[px] ^ qx; /* Reconstructed B */ db 58 lib/raid6/recov.c *dp++ = db ^ px; /* Reconstructed A */ db 50 lib/raid6/recov_neon_inner.c uint8x16_t vx, vy, px, qx, db; db 64 lib/raid6/recov_neon_inner.c db = veorq_u8(vx, qx); db 66 lib/raid6/recov_neon_inner.c vst1q_u8(dq, db); db 67 lib/raid6/recov_neon_inner.c vst1q_u8(dp, veorq_u8(db, px)); db 290 net/iucv/iucv.c struct iucv_cmd_db db; db 480 net/iucv/iucv.c parm->db.ipbfadr1 = virt_to_phys(iucv_irq_data[cpu]); db 1173 net/iucv/iucv.c parm->db.ipbfadr1 = (u32)(addr_t) buffer; db 1174 net/iucv/iucv.c parm->db.ipbfln1f = (u32) size; db 1175 net/iucv/iucv.c parm->db.ipmsgid = msg->id; db 1176 net/iucv/iucv.c parm->db.ippathid = path->pathid; db 1177 net/iucv/iucv.c parm->db.iptrgcls = msg->class; db 1178 net/iucv/iucv.c parm->db.ipflags1 = (flags | IUCV_IPFGPID | db 1182 net/iucv/iucv.c msg->flags = parm->db.ipflags1; db 1184 net/iucv/iucv.c *residual = parm->db.ipbfln1f; db 1246 net/iucv/iucv.c parm->db.ippathid = path->pathid; db 1247 net/iucv/iucv.c parm->db.ipmsgid = msg->id; db 1248 net/iucv/iucv.c parm->db.iptrgcls = msg->class; db 1249 net/iucv/iucv.c parm->db.ipflags1 = (IUCV_IPTRGCLS | IUCV_IPFGMID | IUCV_IPFGPID); db 1292 net/iucv/iucv.c parm->db.ipbfadr1 = (u32)(addr_t) reply; db 1293 net/iucv/iucv.c parm->db.ipbfln1f = (u32) size; db 1294 net/iucv/iucv.c parm->db.ippathid = path->pathid; db 1295 net/iucv/iucv.c parm->db.ipflags1 = flags; db 1296 net/iucv/iucv.c parm->db.ipmsgid = msg->id; db 1297 net/iucv/iucv.c parm->db.iptrgcls = msg->class; db 1344 net/iucv/iucv.c parm->db.ipbfadr1 = (u32)(addr_t) buffer; db 1345 net/iucv/iucv.c parm->db.ipbfln1f = (u32) size; db 1346 net/iucv/iucv.c parm->db.ippathid = path->pathid; db 1347 net/iucv/iucv.c parm->db.ipflags1 = flags | IUCV_IPNORPY; db 1348 net/iucv/iucv.c parm->db.iptrgcls = msg->class; db 1349 net/iucv/iucv.c parm->db.ipsrccls = srccls; db 1350 net/iucv/iucv.c parm->db.ipmsgtag = msg->tag; db 1354 net/iucv/iucv.c msg->id = parm->db.ipmsgid; db 1432 net/iucv/iucv.c parm->db.ippathid = path->pathid; db 1433 net/iucv/iucv.c parm->db.ipflags1 = path->flags; /* priority message */ db 1434 net/iucv/iucv.c parm->db.iptrgcls = msg->class; db 1435 net/iucv/iucv.c parm->db.ipsrccls = srccls; db 1436 net/iucv/iucv.c parm->db.ipmsgtag = msg->tag; db 1437 net/iucv/iucv.c parm->db.ipbfadr1 = (u32)(addr_t) buffer; db 1438 net/iucv/iucv.c parm->db.ipbfln1f = (u32) size; db 1439 net/iucv/iucv.c parm->db.ipbfadr2 = (u32)(addr_t) answer; db 1440 net/iucv/iucv.c parm->db.ipbfln2f = (u32) asize; db 1444 net/iucv/iucv.c msg->id = parm->db.ipmsgid; db 857 net/wireless/reg.c static void set_wmm_rule(const struct fwdb_header *db, db 867 net/wireless/reg.c wmm = (void *)((u8 *)db + wmm_ptr); db 892 net/wireless/reg.c static int __regdb_query_wmm(const struct fwdb_header *db, db 897 net/wireless/reg.c struct fwdb_collection *coll = (void *)((u8 *)db + ptr); db 903 net/wireless/reg.c struct fwdb_rule *rule = (void *)((u8 *)db + rule_ptr); db 910 net/wireless/reg.c set_wmm_rule(db, country, rule, rrule); db 941 net/wireless/reg.c static int regdb_query_country(const struct fwdb_header *db, db 945 net/wireless/reg.c struct fwdb_collection *coll = (void *)((u8 *)db + ptr); db 962 net/wireless/reg.c struct fwdb_rule *rule = (void *)((u8 *)db + rule_ptr); db 991 net/wireless/reg.c set_wmm_rule(db, country, rule, rrule); db 1021 net/wireless/reg.c void *db; db 1042 net/wireless/reg.c db = kmemdup(fw->data, fw->size, GFP_KERNEL); db 1043 net/wireless/reg.c if (db) { db 1044 net/wireless/reg.c regdb = db; db 1080 net/wireless/reg.c void *db; db 1092 net/wireless/reg.c db = kmemdup(fw->data, fw->size, GFP_KERNEL); db 1093 net/wireless/reg.c if (!db) { db 1101 net/wireless/reg.c regdb = db; db 30 security/integrity/platform_certs/load_uefi.c unsigned int db = 0; db 31 security/integrity/platform_certs/load_uefi.c unsigned long size = sizeof(db); db 34 security/integrity/platform_certs/load_uefi.c status = efi.get_variable(L"MokIgnoreDB", &guid, NULL, &size, &db); db 46 security/integrity/platform_certs/load_uefi.c void *db; db 57 security/integrity/platform_certs/load_uefi.c db = kmalloc(lsize, GFP_KERNEL); db 58 security/integrity/platform_certs/load_uefi.c if (!db) db 61 security/integrity/platform_certs/load_uefi.c *status = efi.get_variable(name, guid, NULL, &lsize, db); db 63 security/integrity/platform_certs/load_uefi.c kfree(db); db 69 security/integrity/platform_certs/load_uefi.c return db; db 147 security/integrity/platform_certs/load_uefi.c void *db = NULL, *dbx = NULL, *mok = NULL; db 159 security/integrity/platform_certs/load_uefi.c db = get_cert_list(L"db", &secure_var, &dbsize, &status); db 160 security/integrity/platform_certs/load_uefi.c if (!db) { db 167 security/integrity/platform_certs/load_uefi.c db, dbsize, get_handler_for_db); db 171 security/integrity/platform_certs/load_uefi.c kfree(db); db 191 sound/soc/codecs/88pm860x-codec.c unsigned int db; db 635 sound/soc/codecs/sgtl5000.c int db, i; db 648 sound/soc/codecs/sgtl5000.c db = i; db 650 sound/soc/codecs/sgtl5000.c ucontrol->value.integer.value[0] = db; db 651 sound/soc/codecs/sgtl5000.c ucontrol->value.integer.value[1] = db; db 668 sound/soc/codecs/sgtl5000.c int db; db 671 sound/soc/codecs/sgtl5000.c db = (int)ucontrol->value.integer.value[0]; db 672 sound/soc/codecs/sgtl5000.c if (db < 0 || db > 96) db 674 sound/soc/codecs/sgtl5000.c reg = avc_thr_db2reg[db]; db 136 tools/arch/x86/include/uapi/asm/kvm.h __u8 present, dpl, db, s, l, g, avl; db 333 tools/arch/x86/include/uapi/asm/kvm.h __u64 db[4]; db 61 tools/testing/selftests/kvm/include/x86_64/processor.h unsigned limit1:4, avl:1, l:1, db:1, g:1, base2:8; db 142 tools/testing/selftests/kvm/lib/x86_64/processor.c segment->db, segment->s, segment->l); db 455 tools/testing/selftests/kvm/lib/x86_64/processor.c desc->db = segp->db; db 351 tools/testing/selftests/x86/sigreturn.c bool db = (ar & (1 << 22)); db 357 tools/testing/selftests/x86/sigreturn.c if (l && !db) db 359 tools/testing/selftests/x86/sigreturn.c else if (!l && db) db 361 tools/testing/selftests/x86/sigreturn.c else if (!l && !db) db 143 virt/kvm/arm/vgic/vgic-its.c phys_addr_t db; db 539 virt/kvm/arm/vgic/vgic-its.c phys_addr_t db, db 552 virt/kvm/arm/vgic/vgic-its.c if (cte->db != db || cte->devid != devid || db 569 virt/kvm/arm/vgic/vgic-its.c static struct vgic_irq *vgic_its_check_cache(struct kvm *kvm, phys_addr_t db, db 577 virt/kvm/arm/vgic/vgic-its.c irq = __vgic_its_check_cache(dist, db, devid, eventid); db 590 virt/kvm/arm/vgic/vgic-its.c phys_addr_t db; db 606 virt/kvm/arm/vgic/vgic-its.c db = its->vgic_its_base + GITS_TRANSLATER; db 607 virt/kvm/arm/vgic/vgic-its.c if (__vgic_its_check_cache(dist, db, devid, eventid)) db 624 virt/kvm/arm/vgic/vgic-its.c cte->db = db; db 746 virt/kvm/arm/vgic/vgic-its.c phys_addr_t db; db 748 virt/kvm/arm/vgic/vgic-its.c db = (u64)msi->address_hi << 32 | msi->address_lo; db 749 virt/kvm/arm/vgic/vgic-its.c irq = vgic_its_check_cache(kvm, db, msi->devid, msi->data);