/linux-3.4.99/drivers/gpio/ |
D | gpio-mc33880.c | 55 static int mc33880_write_config(struct mc33880 *mc) in mc33880_write_config() argument 57 return spi_write(mc->spi, &mc->port_config, sizeof(mc->port_config)); in mc33880_write_config() 61 static int __mc33880_set(struct mc33880 *mc, unsigned offset, int value) in __mc33880_set() argument 64 mc->port_config |= 1 << offset; in __mc33880_set() 66 mc->port_config &= ~(1 << offset); in __mc33880_set() 68 return mc33880_write_config(mc); in __mc33880_set() 74 struct mc33880 *mc = container_of(chip, struct mc33880, chip); in mc33880_set() local 76 mutex_lock(&mc->lock); in mc33880_set() 78 __mc33880_set(mc, offset, value); in mc33880_set() 80 mutex_unlock(&mc->lock); in mc33880_set() [all …]
|
/linux-3.4.99/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 348 static int pcan_usb_update_ts(struct pcan_usb_msg_context *mc) in pcan_usb_update_ts() argument 352 if ((mc->ptr+2) > mc->end) in pcan_usb_update_ts() 355 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_update_ts() 357 mc->ts16 = le16_to_cpu(tmp16); in pcan_usb_update_ts() 359 if (mc->rec_idx > 0) in pcan_usb_update_ts() 360 peak_usb_update_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts() 362 peak_usb_set_ts_now(&mc->pdev->time_ref, mc->ts16); in pcan_usb_update_ts() 370 static int pcan_usb_decode_ts(struct pcan_usb_msg_context *mc, u8 first_packet) in pcan_usb_decode_ts() argument 376 if ((mc->ptr + 2) > mc->end) in pcan_usb_decode_ts() 379 memcpy(&tmp16, mc->ptr, 2); in pcan_usb_decode_ts() [all …]
|
/linux-3.4.99/drivers/misc/ |
D | pti.c | 59 struct pti_masterchannel *mc; member 107 static void pti_write_to_aperture(struct pti_masterchannel *mc, in pti_write_to_aperture() argument 122 aperture = drv_data->pti_ioaddr + (mc->master << 15) in pti_write_to_aperture() 123 + (mc->channel << 8); in pti_write_to_aperture() 165 static void pti_control_frame_built_and_sent(struct pti_masterchannel *mc, in pti_control_frame_built_and_sent() argument 195 snprintf(control_frame, CONTROL_FRAME_LEN, control_format, mc->master, in pti_control_frame_built_and_sent() 196 mc->channel, thread_name_p); in pti_control_frame_built_and_sent() 214 static void pti_write_full_frame_to_aperture(struct pti_masterchannel *mc, in pti_write_full_frame_to_aperture() argument 218 pti_control_frame_built_and_sent(mc, NULL); in pti_write_full_frame_to_aperture() 219 pti_write_to_aperture(mc, (u8 *)buf, len); in pti_write_full_frame_to_aperture() [all …]
|
/linux-3.4.99/arch/x86/kernel/ |
D | microcode_intel.c | 129 #define get_totalsize(mc) \ argument 130 (((struct microcode_intel *)mc)->hdr.totalsize ? \ 131 ((struct microcode_intel *)mc)->hdr.totalsize : \ 134 #define get_datasize(mc) \ argument 135 (((struct microcode_intel *)mc)->hdr.datasize ? \ 136 ((struct microcode_intel *)mc)->hdr.datasize : DEFAULT_UCODE_DATASIZE) 176 static int microcode_sanity_check(void *mc) in microcode_sanity_check() argument 179 struct microcode_header_intel *mc_header = mc; in microcode_sanity_check() 203 ext_header = mc + MC_HEADER_SIZE + data_size; in microcode_sanity_check() 229 orig_sum += ((int *)mc)[i]; in microcode_sanity_check() [all …]
|
/linux-3.4.99/arch/x86/um/shared/sysdep/ |
D | mcontext.h | 13 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument 15 (fi).cr2 = (mc)->cr2; \ 16 (fi).error_code = (mc)->gregs[REG_ERR]; \ 17 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \ 22 #define GET_FAULTINFO_FROM_MC(fi, mc) \ argument 24 (fi).cr2 = (mc)->gregs[REG_CR2]; \ 25 (fi).error_code = (mc)->gregs[REG_ERR]; \ 26 (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \
|
/linux-3.4.99/drivers/gpu/drm/radeon/ |
D | r520.c | 98 rdev->mc.vram_width = 128; in r520_vram_get_type() 99 rdev->mc.vram_is_ddr = true; in r520_vram_get_type() 103 rdev->mc.vram_width = 32; in r520_vram_get_type() 106 rdev->mc.vram_width = 64; in r520_vram_get_type() 109 rdev->mc.vram_width = 128; in r520_vram_get_type() 112 rdev->mc.vram_width = 256; in r520_vram_get_type() 115 rdev->mc.vram_width = 128; in r520_vram_get_type() 119 rdev->mc.vram_width *= 2; in r520_vram_get_type() 127 radeon_vram_location(rdev, &rdev->mc, 0); in r520_mc_init() 128 rdev->mc.gtt_base_align = 0; in r520_mc_init() [all …]
|
D | radeon_device.c | 296 void radeon_vram_location(struct radeon_device *rdev, struct radeon_mc *mc, u64 base) in radeon_vram_location() argument 298 mc->vram_start = base; in radeon_vram_location() 299 if (mc->mc_vram_size > (0xFFFFFFFF - base + 1)) { in radeon_vram_location() 301 mc->real_vram_size = mc->aper_size; in radeon_vram_location() 302 mc->mc_vram_size = mc->aper_size; in radeon_vram_location() 304 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in radeon_vram_location() 305 if (rdev->flags & RADEON_IS_AGP && mc->vram_end > mc->gtt_start && mc->vram_start <= mc->gtt_end) { in radeon_vram_location() 307 mc->real_vram_size = mc->aper_size; in radeon_vram_location() 308 mc->mc_vram_size = mc->aper_size; in radeon_vram_location() 310 mc->vram_end = mc->vram_start + mc->mc_vram_size - 1; in radeon_vram_location() [all …]
|
D | rv770.c | 160 WREG32(VM_CONTEXT0_PAGE_TABLE_START_ADDR, rdev->mc.gtt_start >> 12); in rv770_pcie_gart_enable() 161 WREG32(VM_CONTEXT0_PAGE_TABLE_END_ADDR, rdev->mc.gtt_end >> 12); in rv770_pcie_gart_enable() 172 (unsigned)(rdev->mc.gtt_size >> 20), in rv770_pcie_gart_enable() 266 if (rdev->mc.vram_start < rdev->mc.gtt_start) { in rv770_mc_program() 269 rdev->mc.vram_start >> 12); in rv770_mc_program() 271 rdev->mc.gtt_end >> 12); in rv770_mc_program() 275 rdev->mc.gtt_start >> 12); in rv770_mc_program() 277 rdev->mc.vram_end >> 12); in rv770_mc_program() 281 rdev->mc.vram_start >> 12); in rv770_mc_program() 283 rdev->mc.vram_end >> 12); in rv770_mc_program() [all …]
|
D | radeon_agp.c | 245 rdev->mc.agp_base = rdev->ddev->agp->agp_info.aper_base; in radeon_agp_init() 246 rdev->mc.gtt_size = rdev->ddev->agp->agp_info.aper_size << 20; in radeon_agp_init() 247 rdev->mc.gtt_start = rdev->mc.agp_base; in radeon_agp_init() 248 rdev->mc.gtt_end = rdev->mc.gtt_start + rdev->mc.gtt_size - 1; in radeon_agp_init() 250 rdev->mc.gtt_size >> 20, rdev->mc.gtt_start, rdev->mc.gtt_end); in radeon_agp_init()
|
D | rs400.c | 41 switch (rdev->mc.gtt_size/(1024*1024)) { in rs400_gart_adjust_size() 52 (unsigned)(rdev->mc.gtt_size >> 20)); in rs400_gart_adjust_size() 55 rdev->mc.gtt_size = 32 * 1024 * 1024; in rs400_gart_adjust_size() 85 switch(rdev->mc.gtt_size / (1024 * 1024)) { in rs400_gart_init() 117 switch(rdev->mc.gtt_size / (1024 * 1024)) { in rs400_gart_enable() 150 tmp = REG_SET(RS690_MC_AGP_TOP, rdev->mc.gtt_end >> 16); in rs400_gart_enable() 151 tmp |= REG_SET(RS690_MC_AGP_START, rdev->mc.gtt_start >> 16); in rs400_gart_enable() 189 (unsigned)(rdev->mc.gtt_size >> 20), in rs400_gart_enable() 263 rdev->mc.igp_sideport_enabled = radeon_combios_sideport_present(rdev); in rs400_mc_init() 265 rdev->mc.vram_is_ddr = true; in rs400_mc_init() [all …]
|
D | radeon_object.c | 129 max_size = min(rdev->mc.visible_vram_size, rdev->mc.gtt_size); in radeon_bo_create() 241 domain_start = bo->rdev->mc.vram_start; in radeon_bo_pin_restricted() 243 domain_start = bo->rdev->mc.gtt_start; in radeon_bo_pin_restricted() 253 bo->placement.lpfn = bo->rdev->mc.visible_vram_size >> PAGE_SHIFT; in radeon_bo_pin_restricted() 259 bo->placement.lpfn = bo->rdev->mc.gtt_size >> PAGE_SHIFT; in radeon_bo_pin_restricted() 305 if (rdev->mc.igp_sideport_enabled == false) in radeon_bo_evict_vram() 337 rdev->mc.vram_mtrr = mtrr_add(rdev->mc.aper_base, rdev->mc.aper_size, in radeon_bo_init() 340 rdev->mc.mc_vram_size >> 20, in radeon_bo_init() 341 (unsigned long long)rdev->mc.aper_size >> 20); in radeon_bo_init() 343 rdev->mc.vram_width, rdev->mc.vram_is_ddr ? 'D' : 'S'); in radeon_bo_init() [all …]
|
/linux-3.4.99/sound/soc/codecs/ |
D | max9877.c | 42 struct soc_mixer_control *mc = in max9877_get_reg() local 44 unsigned int reg = mc->reg; in max9877_get_reg() 45 unsigned int shift = mc->shift; in max9877_get_reg() 46 unsigned int mask = mc->max; in max9877_get_reg() 47 unsigned int invert = mc->invert; in max9877_get_reg() 61 struct soc_mixer_control *mc = in max9877_set_reg() local 63 unsigned int reg = mc->reg; in max9877_set_reg() 64 unsigned int shift = mc->shift; in max9877_set_reg() 65 unsigned int mask = mc->max; in max9877_set_reg() 66 unsigned int invert = mc->invert; in max9877_set_reg() [all …]
|
/linux-3.4.99/arch/mn10300/include/asm/ |
D | mmu_context.h | 66 unsigned long mc = ++(*pmc); in allocate_mmu_context() local 68 if (!(mc & MMU_CONTEXT_TLBPID_MASK)) { in allocate_mmu_context() 75 if (!mc) in allocate_mmu_context() 76 *pmc = mc = MMU_CONTEXT_FIRST_VERSION; in allocate_mmu_context() 78 mm_context(mm) = mc; in allocate_mmu_context() 79 return mc; in allocate_mmu_context() 87 unsigned long mc = MMU_NO_CONTEXT, cache; in get_mmu_context() local 91 mc = mm_context(mm); in get_mmu_context() 94 if ((mc ^ cache) & MMU_CONTEXT_VERSION_MASK) in get_mmu_context() 95 mc = allocate_mmu_context(mm); in get_mmu_context() [all …]
|
/linux-3.4.99/drivers/mtd/maps/ |
D | wr_sbc82xx_flash.c | 78 volatile memctl_cpm2_t *mc = &cpm2_immr->im_memctl; in init_sbc82xx_flash() local 83 mc = ioremap(0xff700000 + 0x5000, sizeof(memctl_cpm2_t)); in init_sbc82xx_flash() 85 mc = &cpm2_immr->im_memctl; in init_sbc82xx_flash() 89 if ((mc->memc_br0 & 0x00001800) == 0x00001800) in init_sbc82xx_flash() 92 init_sbc82xx_one_flash(sbc82xx_flash_map[0], mc->memc_br0, mc->memc_or0); in init_sbc82xx_flash() 93 init_sbc82xx_one_flash(sbc82xx_flash_map[1], mc->memc_br6, mc->memc_or6); in init_sbc82xx_flash() 94 init_sbc82xx_one_flash(sbc82xx_flash_map[2], mc->memc_br1, mc->memc_or1); in init_sbc82xx_flash() 97 iounmap((void *) mc); in init_sbc82xx_flash()
|
/linux-3.4.99/arch/um/os-Linux/ |
D | signal.c | 27 static void sig_handler_common(int sig, mcontext_t *mc) in sig_handler_common() argument 35 get_regs_from_mc(&r, mc); in sig_handler_common() 36 GET_FAULTINFO_FROM_MC(r.faultinfo, mc); in sig_handler_common() 63 void sig_handler(int sig, mcontext_t *mc) in sig_handler() argument 75 sig_handler_common(sig, mc); in sig_handler() 80 static void real_alarm_handler(mcontext_t *mc) in real_alarm_handler() argument 84 if (mc != NULL) in real_alarm_handler() 85 get_regs_from_mc(®s, mc); in real_alarm_handler() 91 void alarm_handler(int sig, mcontext_t *mc) in alarm_handler() argument 103 real_alarm_handler(mc); in alarm_handler() [all …]
|
/linux-3.4.99/arch/x86/xen/ |
D | multicalls.c | 58 struct multicall_entry *mc; in xen_mc_flush() local 80 mc = &b->entries[0]; in xen_mc_flush() 82 mc->result = privcmd_call(mc->op, in xen_mc_flush() 83 mc->args[0], mc->args[1], mc->args[2], in xen_mc_flush() 84 mc->args[3], mc->args[4]); in xen_mc_flush() 85 ret = mc->result < 0; in xen_mc_flush() 151 ret.mc = &b->entries[b->mcidx]; in __xen_mc_entry() 182 ret.mc = &b->entries[b->mcidx - 1]; in xen_mc_extend_args()
|
/linux-3.4.99/drivers/infiniband/core/ |
D | ucma.c | 110 struct ucma_multicast *mc; member 188 struct ucma_multicast *mc; in ucma_alloc_multicast() local 191 mc = kzalloc(sizeof(*mc), GFP_KERNEL); in ucma_alloc_multicast() 192 if (!mc) in ucma_alloc_multicast() 201 ret = idr_get_new(&multicast_idr, mc, &mc->id); in ucma_alloc_multicast() 208 mc->ctx = ctx; in ucma_alloc_multicast() 209 list_add_tail(&mc->list, &ctx->mc_list); in ucma_alloc_multicast() 210 return mc; in ucma_alloc_multicast() 213 kfree(mc); in ucma_alloc_multicast() 253 uevent->mc = (struct ucma_multicast *) in ucma_set_event_context() [all …]
|
/linux-3.4.99/arch/avr32/include/asm/ |
D | mmu_context.h | 43 unsigned long mc = mmu_context_cache; in get_mmu_context() local 45 if (((mm->context ^ mc) & MMU_CONTEXT_VERSION_MASK) == 0) in get_mmu_context() 50 mc = ++mmu_context_cache; in get_mmu_context() 51 if (!(mc & MMU_CONTEXT_ASID_MASK)) { in get_mmu_context() 61 if (!mc) in get_mmu_context() 62 mmu_context_cache = mc = MMU_CONTEXT_FIRST_VERSION; in get_mmu_context() 64 mm->context = mc; in get_mmu_context()
|
/linux-3.4.99/arch/x86/um/os-Linux/ |
D | mcontext.c | 6 void get_regs_from_mc(struct uml_pt_regs *regs, mcontext_t *mc) in get_regs_from_mc() argument 9 #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y] in get_regs_from_mc() 10 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] in get_regs_from_mc() 11 #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff; in get_regs_from_mc() 12 #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3; in get_regs_from_mc() 19 #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y] in get_regs_from_mc() 20 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X] in get_regs_from_mc()
|
/linux-3.4.99/arch/m32r/include/asm/ |
D | mmu_context.h | 41 unsigned long mc = ++mmu_context_cache; in get_new_mmu_context() local 43 if (!(mc & MMU_CONTEXT_ASID_MASK)) { in get_new_mmu_context() 49 if (!mc) in get_new_mmu_context() 50 mmu_context_cache = mc = MMU_CONTEXT_FIRST_VERSION; in get_new_mmu_context() 52 mm_context(mm) = mc; in get_new_mmu_context() 61 unsigned long mc = mmu_context_cache; in get_mmu_context() local 65 if ((mm_context(mm) ^ mc) & MMU_CONTEXT_VERSION_MASK) in get_mmu_context()
|
/linux-3.4.99/net/ipv6/ |
D | mcast.c | 613 struct ipv6_mc_socklist *mc; in inet6_mc_check() local 618 for_each_pmc_rcu(np, mc) { in inet6_mc_check() 619 if (ipv6_addr_equal(&mc->addr, mc_addr)) in inet6_mc_check() 622 if (!mc) { in inet6_mc_check() 626 read_lock(&mc->sflock); in inet6_mc_check() 627 psl = mc->sflist; in inet6_mc_check() 629 rv = mc->sfmode == MCAST_EXCLUDE; in inet6_mc_check() 637 if (mc->sfmode == MCAST_INCLUDE && i >= psl->sl_count) in inet6_mc_check() 639 if (mc->sfmode == MCAST_EXCLUDE && i < psl->sl_count) in inet6_mc_check() 642 read_unlock(&mc->sflock); in inet6_mc_check() [all …]
|
/linux-3.4.99/drivers/gpu/drm/nouveau/ |
D | nv50_display.c | 555 u32 mc, int pxclk) in nv50_display_script_select() argument 576 script = (mc >> 8) & 0xf; in nv50_display_script_select() 617 script = (mc >> 8) & 0xf; in nv50_display_script_select() 629 script = (mc >> 8) & 0xf; in nv50_display_script_select() 679 u32 unk30 = nv_rd32(dev, 0x610030), mc; in nv50_display_unk10_handler() local 701 mc = nv_rd32(dev, NV50_PDISPLAY_DAC_MODE_CTRL_C(i)); in nv50_display_unk10_handler() 702 NV_DEBUG_KMS(dev, "DAC-%d mc: 0x%08x\n", i, mc); in nv50_display_unk10_handler() 703 if (!(mc & (1 << crtc))) in nv50_display_unk10_handler() 706 switch ((mc & 0x00000f00) >> 8) { in nv50_display_unk10_handler() 710 NV_ERROR(dev, "invalid mc, DAC-%d: 0x%08x\n", i, mc); in nv50_display_unk10_handler() [all …]
|
/linux-3.4.99/drivers/scsi/qla2xxx/ |
D | qla_mbx.c | 390 mbx_cmd_t mc; in qla2x00_load_ram() local 391 mbx_cmd_t *mcp = &mc; in qla2x00_load_ram() 454 mbx_cmd_t mc; in qla2x00_execute_fw() local 455 mbx_cmd_t *mcp = &mc; in qla2x00_execute_fw() 522 mbx_cmd_t mc; in qla2x00_get_fw_version() local 523 mbx_cmd_t *mcp = &mc; in qla2x00_get_fw_version() 602 mbx_cmd_t mc; in qla2x00_get_fw_options() local 603 mbx_cmd_t *mcp = &mc; in qla2x00_get_fw_options() 648 mbx_cmd_t mc; in qla2x00_set_fw_options() local 649 mbx_cmd_t *mcp = &mc; in qla2x00_set_fw_options() [all …]
|
/linux-3.4.99/drivers/edac/ |
D | i5100_edac.c | 81 static inline u32 i5100_mc_scrben(u32 mc) in i5100_mc_scrben() argument 83 return mc >> 7 & 1; in i5100_mc_scrben() 86 static inline u32 i5100_mc_errdeten(u32 mc) in i5100_mc_errdeten() argument 88 return mc >> 5 & 1; in i5100_mc_errdeten() 91 static inline u32 i5100_mc_scrbdone(u32 mc) in i5100_mc_scrbdone() argument 93 return mc >> 4 & 1; in i5100_mc_scrbdone() 335 struct pci_dev *mc; /* device 16 func 1 */ member 540 pci_read_config_dword(priv->mc, I5100_FERR_NF_MEM, &dw); in i5100_check_error() 543 pci_read_config_dword(priv->mc, I5100_NERR_NF_MEM, &dw2); in i5100_check_error() 549 pci_write_config_dword(priv->mc, I5100_NERR_NF_MEM, dw2); in i5100_check_error() [all …]
|
/linux-3.4.99/drivers/net/ethernet/ibm/emac/ |
D | mal.c | 340 struct mal_commac *mc = list_entry(l, struct mal_commac, list); in mal_rxde() local 341 if (deir & mc->rx_chan_mask) { in mal_rxde() 342 set_bit(MAL_COMMAC_RX_STOPPED, &mc->flags); in mal_rxde() 343 mc->ops->rxde(mc->dev); in mal_rxde() 406 struct mal_commac *mc = in mal_poll() local 408 mc->ops->poll_tx(mc->dev); in mal_poll() 417 struct mal_commac *mc = in mal_poll() local 420 if (unlikely(test_bit(MAL_COMMAC_POLL_DISABLED, &mc->flags))) in mal_poll() 422 n = mc->ops->poll_rx(mc->dev, budget); in mal_poll() 439 struct mal_commac *mc = in mal_poll() local [all …]
|