/linux-4.1.27/tools/include/linux/ |
D | log2.h | 28 int __ilog2_u32(u32 n) in __ilog2_u32() argument 30 return fls(n) - 1; in __ilog2_u32() 34 int __ilog2_u64(u64 n) in __ilog2_u64() argument 36 return fls64(n) - 1; in __ilog2_u64() 45 bool is_power_of_2(unsigned long n) in is_power_of_2() argument 47 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2() 54 unsigned long __roundup_pow_of_two(unsigned long n) in __roundup_pow_of_two() argument 56 return 1UL << fls_long(n - 1); in __roundup_pow_of_two() 63 unsigned long __rounddown_pow_of_two(unsigned long n) in __rounddown_pow_of_two() argument 65 return 1UL << (fls_long(n) - 1); in __rounddown_pow_of_two() [all …]
|
/linux-4.1.27/include/linux/ |
D | log2.h | 32 int __ilog2_u32(u32 n) in __ilog2_u32() argument 34 return fls(n) - 1; in __ilog2_u32() 40 int __ilog2_u64(u64 n) in __ilog2_u64() argument 42 return fls64(n) - 1; in __ilog2_u64() 52 bool is_power_of_2(unsigned long n) in is_power_of_2() argument 54 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2() 61 unsigned long __roundup_pow_of_two(unsigned long n) in __roundup_pow_of_two() argument 63 return 1UL << fls_long(n - 1); in __roundup_pow_of_two() 70 unsigned long __rounddown_pow_of_two(unsigned long n) in __rounddown_pow_of_two() argument 72 return 1UL << (fls_long(n) - 1); in __rounddown_pow_of_two() [all …]
|
D | list.h | 425 #define list_for_each_safe(pos, n, head) \ argument 426 for (pos = (head)->next, n = pos->next; pos != (head); \ 427 pos = n, n = pos->next) 435 #define list_for_each_prev_safe(pos, n, head) \ argument 436 for (pos = (head)->prev, n = pos->prev; \ 438 pos = n, n = pos->prev) 520 #define list_for_each_entry_safe(pos, n, head, member) \ argument 522 n = list_next_entry(pos, member); \ 524 pos = n, n = list_next_entry(n, member)) 536 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument [all …]
|
D | list_bl.h | 63 struct hlist_bl_node *n) in hlist_bl_set_first() argument 65 LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK); in hlist_bl_set_first() 68 h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK); in hlist_bl_set_first() 76 static inline void hlist_bl_add_head(struct hlist_bl_node *n, in hlist_bl_add_head() argument 81 n->next = first; in hlist_bl_add_head() 83 first->pprev = &n->next; in hlist_bl_add_head() 84 n->pprev = &h->first; in hlist_bl_add_head() 85 hlist_bl_set_first(h, n); in hlist_bl_add_head() 88 static inline void __hlist_bl_del(struct hlist_bl_node *n) in __hlist_bl_del() argument 90 struct hlist_bl_node *next = n->next; in __hlist_bl_del() [all …]
|
D | rculist_bl.h | 11 struct hlist_bl_node *n) in hlist_bl_set_first_rcu() argument 13 LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK); in hlist_bl_set_first_rcu() 17 (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK)); in hlist_bl_set_first_rcu() 46 static inline void hlist_bl_del_init_rcu(struct hlist_bl_node *n) in hlist_bl_del_init_rcu() argument 48 if (!hlist_bl_unhashed(n)) { in hlist_bl_del_init_rcu() 49 __hlist_bl_del(n); in hlist_bl_del_init_rcu() 50 n->pprev = NULL; in hlist_bl_del_init_rcu() 73 static inline void hlist_bl_del_rcu(struct hlist_bl_node *n) in hlist_bl_del_rcu() argument 75 __hlist_bl_del(n); in hlist_bl_del_rcu() 76 n->pprev = LIST_POISON2; in hlist_bl_del_rcu() [all …]
|
D | hash.h | 59 u64 n = hash; in hash_64() local 60 n <<= 18; in hash_64() 61 hash -= n; in hash_64() 62 n <<= 33; in hash_64() 63 hash -= n; in hash_64() 64 n <<= 3; in hash_64() 65 hash += n; in hash_64() 66 n <<= 3; in hash_64() 67 hash -= n; in hash_64() 68 n <<= 4; in hash_64() [all …]
|
D | kmemcheck.h | 20 void kmemcheck_show_pages(struct page *p, unsigned int n); 21 void kmemcheck_hide_pages(struct page *p, unsigned int n); 25 void kmemcheck_mark_unallocated(void *address, unsigned int n); 26 void kmemcheck_mark_uninitialized(void *address, unsigned int n); 27 void kmemcheck_mark_initialized(void *address, unsigned int n); 28 void kmemcheck_mark_freed(void *address, unsigned int n); 30 void kmemcheck_mark_unallocated_pages(struct page *p, unsigned int n); 31 void kmemcheck_mark_uninitialized_pages(struct page *p, unsigned int n); 32 void kmemcheck_mark_initialized_pages(struct page *p, unsigned int n); 123 static inline void kmemcheck_mark_unallocated(void *address, unsigned int n) in kmemcheck_mark_unallocated() argument [all …]
|
D | rculist_nulls.h | 32 static inline void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_init_rcu() argument 34 if (!hlist_nulls_unhashed(n)) { in hlist_nulls_del_init_rcu() 35 __hlist_nulls_del(n); in hlist_nulls_del_init_rcu() 36 n->pprev = NULL; in hlist_nulls_del_init_rcu() 65 static inline void hlist_nulls_del_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_rcu() argument 67 __hlist_nulls_del(n); in hlist_nulls_del_rcu() 68 n->pprev = LIST_POISON2; in hlist_nulls_del_rcu() 90 static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, in hlist_nulls_add_head_rcu() argument 95 n->next = first; in hlist_nulls_add_head_rcu() 96 n->pprev = &h->first; in hlist_nulls_add_head_rcu() [all …]
|
D | ioport.h | 184 #define request_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name), 0) argument 185 #define request_muxed_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name),… argument 186 #define __request_mem_region(start,n,name, excl) __request_region(&iomem_resource, (start), (n), (n… argument 187 #define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name), 0) argument 188 #define request_mem_region_exclusive(start,n,name) \ argument 189 __request_region(&iomem_resource, (start), (n), (name), IORESOURCE_EXCLUSIVE) 194 resource_size_t n, 198 #define release_region(start,n) __release_region(&ioport_resource, (start), (n)) argument 199 #define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n)) argument 215 #define devm_request_region(dev,start,n,name) \ argument [all …]
|
D | fsl_ifc.h | 77 #define IFC_AMASK(n) (IFC_AMASK_MASK << \ argument 78 (__ilog2(n) - IFC_AMASK_SHIFT)) 119 #define CSOR_NAND_PB(n) ((__ilog2(n) - 5) << CSOR_NAND_PB_SHIFT) argument 143 #define CSOR_NOR_ADM_SHIFT(n) ((n) << CSOR_NOR_ADM_SHIFT_SHIFT) argument 172 #define CSOR_GPCM_GPTO(n) ((__ilog2(n) - 8) << CSOR_GPCM_GPTO_SHIFT) argument 180 #define CSOR_GPCM_ADM_SHIFT(n) ((n) << CSOR_GPCM_ADM_SHIFT_SHIFT) argument 184 #define CSOR_GPCM_GAPERRD(n) (((n) - 1) << CSOR_GPCM_GAPERRD_SHIFT) argument 249 #define IFC_CCR_CLK_DIV(n) ((n-1) << IFC_CCR_CLK_DIV_SHIFT) argument 253 #define IFC_CCR_CLK_DLY(n) ((n) << IFC_CCR_CLK_DLY_SHIFT) argument 280 #define IFC_NAND_NCFGR_NUM_LOOP(n) ((n) << IFC_NAND_NCFGR_NUM_LOOP_SHIFT) argument [all …]
|
D | rculist.h | 155 static inline void hlist_del_init_rcu(struct hlist_node *n) in hlist_del_init_rcu() argument 157 if (!hlist_unhashed(n)) { in hlist_del_init_rcu() 158 __hlist_del(n); in hlist_del_init_rcu() 159 n->pprev = NULL; in hlist_del_init_rcu() 343 static inline void hlist_del_rcu(struct hlist_node *n) in hlist_del_rcu() argument 345 __hlist_del(n); in hlist_del_rcu() 346 n->pprev = LIST_POISON2; in hlist_del_rcu() 395 static inline void hlist_add_head_rcu(struct hlist_node *n, in hlist_add_head_rcu() argument 400 n->next = first; in hlist_add_head_rcu() 401 n->pprev = &h->first; in hlist_add_head_rcu() [all …]
|
/linux-4.1.27/drivers/media/pci/solo6x10/ |
D | solo6x10-regs.h | 41 #define SOLO_DMA_CTRL_REFRESH_CYCLE(n) ((n)<<8) argument 43 #define SOLO_DMA_CTRL_SDRAM_SIZE(n) ((n)<<6) argument 48 #define SOLO_DMA_CTRL_LATENCY(n) ((n)<<0) argument 56 #define SOLO_VCLK_SELECT(n) ((n)<<20) argument 57 #define SOLO_VCLK_VIN1415_DELAY(n) ((n)<<14) argument 58 #define SOLO_VCLK_VIN1213_DELAY(n) ((n)<<12) argument 59 #define SOLO_VCLK_VIN1011_DELAY(n) ((n)<<10) argument 60 #define SOLO_VCLK_VIN0809_DELAY(n) ((n)<<8) argument 61 #define SOLO_VCLK_VIN0607_DELAY(n) ((n)<<6) argument 62 #define SOLO_VCLK_VIN0405_DELAY(n) ((n)<<4) argument [all …]
|
D | solo6x10-tw28.h | 28 #define TW_CHIP_OFFSET_ADDR(n) (TW_BASE_ADDR + (n)) argument 32 #define TW_HUE_ADDR(n) (0x07 | ((n) << 4)) argument 33 #define TW_SATURATION_ADDR(n) (0x08 | ((n) << 4)) argument 34 #define TW_CONTRAST_ADDR(n) (0x09 | ((n) << 4)) argument 35 #define TW_BRIGHTNESS_ADDR(n) (0x0a | ((n) << 4)) argument 37 #define TW_AUDIO_INPUT_GAIN_ADDR(n) (0x60 + ((n > 1) ? 1 : 0)) argument 41 #define TW286x_HUE_ADDR(n) (0x06 | ((n) << 4)) argument 42 #define TW286x_SATURATIONU_ADDR(n) (0x04 | ((n) << 4)) argument 43 #define TW286x_SATURATIONV_ADDR(n) (0x05 | ((n) << 4)) argument 44 #define TW286x_CONTRAST_ADDR(n) (0x02 | ((n) << 4)) argument [all …]
|
/linux-4.1.27/drivers/media/common/siano/ |
D | smsdvb-debugfs.c | 52 int n = 0; in smsdvb_print_dvb_stats() local 63 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 65 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 67 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 69 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 71 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 73 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 75 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 77 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() 79 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats() [all …]
|
/linux-4.1.27/arch/tile/include/uapi/arch/ |
D | opcode_tilepro.h | 82 const unsigned int n = (unsigned int)num; in get_BrOff_SN() local 83 return (((n >> 0)) & 0x3ff); in get_BrOff_SN() 87 get_BrOff_X1(tilepro_bundle_bits n) in get_BrOff_X1() argument 89 return (((unsigned int)(n >> 43)) & 0x00007fff) | in get_BrOff_X1() 90 (((unsigned int)(n >> 20)) & 0x00018000); in get_BrOff_X1() 94 get_BrType_X1(tilepro_bundle_bits n) in get_BrType_X1() argument 96 return (((unsigned int)(n >> 31)) & 0xf); in get_BrType_X1() 100 get_Dest_Imm8_X1(tilepro_bundle_bits n) in get_Dest_Imm8_X1() argument 102 return (((unsigned int)(n >> 31)) & 0x0000003f) | in get_Dest_Imm8_X1() 103 (((unsigned int)(n >> 43)) & 0x000000c0); in get_Dest_Imm8_X1() [all …]
|
D | opcode_tilegx.h | 72 const unsigned int n = (unsigned int)num; in get_BFEnd_X0() local 73 return (((n >> 12)) & 0x3f); in get_BFEnd_X0() 79 const unsigned int n = (unsigned int)num; in get_BFOpcodeExtension_X0() local 80 return (((n >> 24)) & 0xf); in get_BFOpcodeExtension_X0() 86 const unsigned int n = (unsigned int)num; in get_BFStart_X0() local 87 return (((n >> 18)) & 0x3f); in get_BFStart_X0() 91 get_BrOff_X1(tilegx_bundle_bits n) in get_BrOff_X1() argument 93 return (((unsigned int)(n >> 31)) & 0x0000003f) | in get_BrOff_X1() 94 (((unsigned int)(n >> 37)) & 0x0001ffc0); in get_BrOff_X1() 98 get_BrType_X1(tilegx_bundle_bits n) in get_BrType_X1() argument [all …]
|
/linux-4.1.27/arch/arm/mach-davinci/include/mach/ |
D | cp_intc.h | 34 #define CP_INTC_PACING_PARAM(n) (0x0100 + (n << 4)) argument 35 #define CP_INTC_PACING_DEC(n) (0x0104 + (n << 4)) argument 36 #define CP_INTC_PACING_MAP(n) (0x0108 + (n << 4)) argument 37 #define CP_INTC_SYS_RAW_STAT(n) (0x0200 + (n << 2)) argument 38 #define CP_INTC_SYS_STAT_CLR(n) (0x0280 + (n << 2)) argument 39 #define CP_INTC_SYS_ENABLE_SET(n) (0x0300 + (n << 2)) argument 40 #define CP_INTC_SYS_ENABLE_CLR(n) (0x0380 + (n << 2)) argument 41 #define CP_INTC_CHAN_MAP(n) (0x0400 + (n << 2)) argument 42 #define CP_INTC_HOST_MAP(n) (0x0800 + (n << 2)) argument 43 #define CP_INTC_HOST_PRIO_IDX(n) (0x0900 + (n << 2)) argument [all …]
|
/linux-4.1.27/arch/alpha/lib/ |
D | memcpy.c | 24 #define ALIGN_DEST_TO8_UP(d,s,n) \ argument 26 if (n <= 0) return; \ 27 n--; \ 31 #define ALIGN_DEST_TO8_DN(d,s,n) \ argument 33 if (n <= 0) return; \ 34 n--; \ 43 #define DO_REST_UP(d,s,n) \ argument 44 while (n > 0) { \ 45 n--; \ 49 #define DO_REST_DN(d,s,n) \ argument [all …]
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
D | fusb300_udc.h | 24 #define FUSB300_OFFSET_EPSET0(n) (0x20 + (n - 1) * 0x30) argument 25 #define FUSB300_OFFSET_EPSET1(n) (0x24 + (n - 1) * 0x30) argument 26 #define FUSB300_OFFSET_EPSET2(n) (0x28 + (n - 1) * 0x30) argument 27 #define FUSB300_OFFSET_EPFFR(n) (0x2c + (n - 1) * 0x30) argument 28 #define FUSB300_OFFSET_EPSTRID(n) (0x40 + (n - 1) * 0x30) argument 57 #define FUSB300_OFFSET_EPPRD_W0(n) (0x520 + (n - 1) * 0x10) argument 58 #define FUSB300_OFFSET_EPPRD_W1(n) (0x524 + (n - 1) * 0x10) argument 59 #define FUSB300_OFFSET_EPPRD_W2(n) (0x528 + (n - 1) * 0x10) argument 60 #define FUSB300_OFFSET_EPRD_PTR(n) (0x52C + (n - 1) * 0x10) argument 63 #define FUSB300_OFFSET_EPPORT(n) (0x1010 + (n - 1) * 0x10) argument [all …]
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | ppc_asm.h | 78 #define SAVE_GPR(n, base) std n,GPR0+8*(n)(base) argument 79 #define REST_GPR(n, base) ld n,GPR0+8*(n)(base) argument 83 #define SAVE_GPR(n, base) stw n,GPR0+4*(n)(base) argument 84 #define REST_GPR(n, base) lwz n,GPR0+4*(n)(base) argument 91 #define SAVE_2GPRS(n, base) SAVE_GPR(n, base); SAVE_GPR(n+1, base) argument 92 #define SAVE_4GPRS(n, base) SAVE_2GPRS(n, base); SAVE_2GPRS(n+2, base) argument 93 #define SAVE_8GPRS(n, base) SAVE_4GPRS(n, base); SAVE_4GPRS(n+4, base) argument 94 #define SAVE_10GPRS(n, base) SAVE_8GPRS(n, base); SAVE_2GPRS(n+8, base) argument 95 #define REST_2GPRS(n, base) REST_GPR(n, base); REST_GPR(n+1, base) argument 96 #define REST_4GPRS(n, base) REST_2GPRS(n, base); REST_2GPRS(n+2, base) argument [all …]
|
/linux-4.1.27/drivers/staging/unisys/common-spar/include/diagnostics/ |
D | appos_subsystems.h | 31 subsys_unknown_to_s(int subsys, char *s, int n) in subsys_unknown_to_s() argument 33 snprintf(s, n, "SUBSYS-%-2.2d", subsys); in subsys_unknown_to_s() 34 s[n - 1] = '\0'; in subsys_unknown_to_s() 62 subsys_generic_to_s(int subsys, char *s, int n) in subsys_generic_to_s() argument 66 strncpy(s, "APPOS_DEFAULT", n); in subsys_generic_to_s() 69 strncpy(s, "APPOS_CHIPSET", n); in subsys_generic_to_s() 72 strncpy(s, "APPOS_BUS", n); in subsys_generic_to_s() 75 strncpy(s, "APPOS_CHANNELACCESS", n); in subsys_generic_to_s() 78 strncpy(s, "APPOS_NICCLIENT", n); in subsys_generic_to_s() 81 strncpy(s, "APPOS_HBACLIENT", n); in subsys_generic_to_s() [all …]
|
/linux-4.1.27/arch/cris/include/asm/ |
D | uaccess.h | 193 extern unsigned long __copy_user(void __user *to, const void *from, unsigned long n); 194 extern unsigned long __copy_user_zeroing(void *to, const void __user *from, unsigned long n); 195 extern unsigned long __do_clear_user(void __user *to, unsigned long n); 198 __generic_copy_to_user(void __user *to, const void *from, unsigned long n) in __generic_copy_to_user() argument 200 if (access_ok(VERIFY_WRITE, to, n)) in __generic_copy_to_user() 201 return __copy_user(to, from, n); in __generic_copy_to_user() 202 return n; in __generic_copy_to_user() 206 __generic_copy_from_user(void *to, const void __user *from, unsigned long n) in __generic_copy_from_user() argument 208 if (access_ok(VERIFY_READ, from, n)) in __generic_copy_from_user() 209 return __copy_user_zeroing(to, from, n); in __generic_copy_from_user() [all …]
|
/linux-4.1.27/sound/ppc/ |
D | snd_ps3_reg.h | 35 #define PS3_AUDIO_KICK(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x00) argument 36 #define PS3_AUDIO_SOURCE(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x04) argument 37 #define PS3_AUDIO_DEST(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x08) argument 38 #define PS3_AUDIO_DMASIZE(n) (PS3_AUDIO_DMAC_REGBASE(n) + 0x0C) argument 57 #define PS3_AUDIO_AO_3WCTRL(n) (0x00006200 + 0x200 * (n)) argument 65 #define PS3_AUDIO_AO_SPD_REGBASE(n) (0x00007200 + 0x200 * (n)) argument 67 #define PS3_AUDIO_AO_SPDCTRL(n) \ argument 68 (PS3_AUDIO_AO_SPD_REGBASE(n) + 0x00) 69 #define PS3_AUDIO_AO_SPDUB(n, x) \ argument 70 (PS3_AUDIO_AO_SPD_REGBASE(n) + 0x04 + 0x04 * (x)) [all …]
|
/linux-4.1.27/arch/arm/include/debug/ |
D | imx-uart.h | 14 #define IMX1_UART_BASE_ADDR(n) IMX1_UART##n##_BASE_ADDR argument 15 #define IMX1_UART_BASE(n) IMX1_UART_BASE_ADDR(n) argument 21 #define IMX21_UART_BASE_ADDR(n) IMX21_UART##n##_BASE_ADDR argument 22 #define IMX21_UART_BASE(n) IMX21_UART_BASE_ADDR(n) argument 29 #define IMX25_UART_BASE_ADDR(n) IMX25_UART##n##_BASE_ADDR argument 30 #define IMX25_UART_BASE(n) IMX25_UART_BASE_ADDR(n) argument 37 #define IMX31_UART_BASE_ADDR(n) IMX31_UART##n##_BASE_ADDR argument 38 #define IMX31_UART_BASE(n) IMX31_UART_BASE_ADDR(n) argument 43 #define IMX35_UART_BASE_ADDR(n) IMX35_UART##n##_BASE_ADDR argument 44 #define IMX35_UART_BASE(n) IMX35_UART_BASE_ADDR(n) argument [all …]
|
/linux-4.1.27/arch/mips/loongson1/common/ |
D | irq.c | 17 #define LS1X_INTC_REG(n, x) \ argument 18 ((void __iomem *)KSEG1ADDR(LS1X_INTC_BASE + (n * 0x18) + (x))) 20 #define LS1X_INTC_INTISR(n) LS1X_INTC_REG(n, 0x0) argument 21 #define LS1X_INTC_INTIEN(n) LS1X_INTC_REG(n, 0x4) argument 22 #define LS1X_INTC_INTSET(n) LS1X_INTC_REG(n, 0x8) argument 23 #define LS1X_INTC_INTCLR(n) LS1X_INTC_REG(n, 0xc) argument 24 #define LS1X_INTC_INTPOL(n) LS1X_INTC_REG(n, 0x10) argument 25 #define LS1X_INTC_INTEDGE(n) LS1X_INTC_REG(n, 0x14) argument 30 unsigned int n = (d->irq - LS1X_IRQ_BASE) >> 5; in ls1x_irq_ack() local 32 __raw_writel(__raw_readl(LS1X_INTC_INTCLR(n)) in ls1x_irq_ack() [all …]
|
/linux-4.1.27/drivers/video/fbdev/omap2/dss/ |
D | dispc.h | 46 #define DISPC_OVL_BA0(n) (DISPC_OVL_BASE(n) + \ argument 47 DISPC_BA0_OFFSET(n)) 48 #define DISPC_OVL_BA1(n) (DISPC_OVL_BASE(n) + \ argument 49 DISPC_BA1_OFFSET(n)) 50 #define DISPC_OVL_BA0_UV(n) (DISPC_OVL_BASE(n) + \ argument 51 DISPC_BA0_UV_OFFSET(n)) 52 #define DISPC_OVL_BA1_UV(n) (DISPC_OVL_BASE(n) + \ argument 53 DISPC_BA1_UV_OFFSET(n)) 54 #define DISPC_OVL_POSITION(n) (DISPC_OVL_BASE(n) + \ argument 55 DISPC_POS_OFFSET(n)) [all …]
|
D | hdmi_common.c | 51 int hdmi_compute_acr(u32 pclk, u32 sample_freq, u32 *n, u32 *cts) in hdmi_compute_acr() argument 56 if (n == NULL || cts == NULL) in hdmi_compute_acr() 94 *n = 8192; in hdmi_compute_acr() 97 *n = 12544; in hdmi_compute_acr() 100 *n = 8192; in hdmi_compute_acr() 103 *n = 25088; in hdmi_compute_acr() 106 *n = 16384; in hdmi_compute_acr() 109 *n = 50176; in hdmi_compute_acr() 112 *n = 32768; in hdmi_compute_acr() 120 *n = 4096; in hdmi_compute_acr() [all …]
|
D | omapdss-boot-init.c | 122 struct dss_conv_node *n = kmalloc(sizeof(struct dss_conv_node), in omapdss_add_to_list() local 124 if (n) { in omapdss_add_to_list() 125 n->node = node; in omapdss_add_to_list() 126 n->root = root; in omapdss_add_to_list() 127 list_add(&n->list, &dss_conv_list); in omapdss_add_to_list() 133 struct dss_conv_node *n; in omapdss_list_contains() local 135 list_for_each_entry(n, &dss_conv_list, list) { in omapdss_list_contains() 136 if (n->node == node) in omapdss_list_contains() 145 struct device_node *n; in omapdss_walk_device() local 153 n = of_get_child_by_name(node, "ports"); in omapdss_walk_device() [all …]
|
D | hdmi5_core.h | 115 #define HDMI_CORE_FC_VSDPAYLOAD(n) (n * 4 + 0x040C8) argument 116 #define HDMI_CORE_FC_SPDVENDORNAME(n) (n * 4 + 0x04128) argument 117 #define HDMI_CORE_FC_SPDPRODUCTNAME(n) (n * 4 + 0x04148) argument 123 #define HDMI_CORE_FC_AUDSCHNLS(n) (n * 4 + 0x0419C) argument 127 #define HDMI_CORE_FC_ACP(n) ((16-n) * 4 + 0x04208) argument 129 #define HDMI_CORE_FC_ISCR1(n) ((16-n) * 4 + 0x0424C) argument 130 #define HDMI_CORE_FC_ISCR2(n) ((15-n) * 4 + 0x0428C) argument 136 #define HDMI_CORE_FC_RDRB(n) (n * 4 + 0x042E0) argument 155 #define HDMI_CORE_FC_GMD_PB(n) (n * 4 + 0x04414) argument
|
/linux-4.1.27/arch/cris/arch-v10/lib/ |
D | usercopy.c | 45 register int n __asm__ ("r12") = pn; in __copy_user() 55 && n >= 3) in __copy_user() 60 n--; in __copy_user() 66 n -= 2; in __copy_user() 71 if (n >= 44*2) /* Break even between movem and in __copy_user() 148 /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n), "=r" (retn) in __copy_user() 149 /* Inputs */ : "0" (dst), "1" (src), "2" (n), "3" (retn)); in __copy_user() 158 while (n >= 16) in __copy_user() 161 n -= 16; in __copy_user() 166 while (n >= 4) in __copy_user() [all …]
|
/linux-4.1.27/arch/cris/arch-v32/lib/ |
D | usercopy.c | 41 register int n __asm__ ("r12") = pn; in __copy_user() 51 && n >= 3) in __copy_user() 56 n--; in __copy_user() 62 n -= 2; in __copy_user() 68 if (n >= 44) in __copy_user() 121 /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n), "=r" (retn) in __copy_user() 122 /* Inputs */ : "0" (dst), "1" (src), "2" (n), "3" (retn)); in __copy_user() 126 while (n >= 16) in __copy_user() 129 n -= 16; in __copy_user() 134 while (n >= 4) in __copy_user() [all …]
|
/linux-4.1.27/drivers/gpu/drm/rcar-du/ |
D | rcar_du_regs.h | 74 #define DSSR_DFB(n) (1 << ((n)+15)) argument 80 #define DSSR_ADC(n) (1 << ((n)-1)) argument 88 #define DSRCR_ADCL(n) (1 << ((n)-1)) argument 97 #define DIER_ADCE(n) (1 << ((n)-1)) argument 106 #define DPPR_DPE(n) (1 << ((n)*4-1)) argument 107 #define DPPR_DPS(n, p) (((p)-1) << DPPR_DPS_SHIFT(n)) argument 108 #define DPPR_DPS_SHIFT(n) (((n)-1)*4) argument 156 #define DVCSR_VCnFB2_DSA0(n) (0 << ((n)*2+16)) argument 157 #define DVCSR_VCnFB2_DSA1(n) (1 << ((n)*2+16)) argument 158 #define DVCSR_VCnFB2_DSA2(n) (2 << ((n)*2+16)) argument [all …]
|
/linux-4.1.27/arch/ia64/include/asm/sn/ |
D | addrs.h | 110 #define NASID_SPACE(n) ((u64)(n) << NASID_SHIFT) argument 111 #define REMOTE_ADDR(n,a) (NASID_SPACE(n) | (a)) argument 116 #define GLOBAL_MMR_ADDR(n,a) (GLOBAL_MMR_SPACE | REMOTE_ADDR(n,a)) argument 117 #define GLOBAL_MMR_PHYS_ADDR(n,a) (GLOBAL_PHYS_MMR_SPACE | REMOTE_ADDR(n,a)) argument 118 #define GLOBAL_CAC_ADDR(n,a) (CAC_BASE | REMOTE_ADDR(n,a)) argument 119 #define CHANGE_NASID(n,x) ((void *)(((u64)(x) & ~NASID_MASK) | NASID_SPACE(n))) argument 120 #define IS_TIO_NASID(n) ((n) & 1) argument 192 #define NODE_SWIN_BASE(n, w) ((w == 0) ? NODE_BWIN_BASE((n), SWIN0_BIGWIN) \ argument 193 : RAW_NODE_SWIN_BASE(n, w)) 194 #define TIO_SWIN_BASE(n, w) (TIO_IO_BASE(n) + \ argument [all …]
|
/linux-4.1.27/drivers/vhost/ |
D | test.c | 38 static void handle_vq(struct vhost_test *n) in handle_vq() argument 40 struct vhost_virtqueue *vq = &n->vqs[VHOST_TEST_VQ]; in handle_vq() 53 vhost_disable_notify(&n->dev, vq); in handle_vq() 65 if (unlikely(vhost_enable_notify(&n->dev, vq))) { in handle_vq() 66 vhost_disable_notify(&n->dev, vq); in handle_vq() 82 vhost_add_used_and_signal(&n->dev, vq, head, 0); in handle_vq() 97 struct vhost_test *n = container_of(vq->dev, struct vhost_test, dev); in handle_vq_kick() local 99 handle_vq(n); in handle_vq_kick() 104 struct vhost_test *n = kmalloc(sizeof *n, GFP_KERNEL); in vhost_test_open() local 108 if (!n) in vhost_test_open() [all …]
|
D | net.c | 158 static void vhost_net_clear_ubuf_info(struct vhost_net *n) in vhost_net_clear_ubuf_info() argument 163 kfree(n->vqs[i].ubuf_info); in vhost_net_clear_ubuf_info() 164 n->vqs[i].ubuf_info = NULL; in vhost_net_clear_ubuf_info() 168 static int vhost_net_set_ubuf_info(struct vhost_net *n) in vhost_net_set_ubuf_info() argument 177 n->vqs[i].ubuf_info = kmalloc(sizeof(*n->vqs[i].ubuf_info) * in vhost_net_set_ubuf_info() 179 if (!n->vqs[i].ubuf_info) in vhost_net_set_ubuf_info() 185 vhost_net_clear_ubuf_info(n); in vhost_net_set_ubuf_info() 189 static void vhost_net_vq_reset(struct vhost_net *n) in vhost_net_vq_reset() argument 193 vhost_net_clear_ubuf_info(n); in vhost_net_vq_reset() 196 n->vqs[i].done_idx = 0; in vhost_net_vq_reset() [all …]
|
/linux-4.1.27/drivers/media/platform/vsp1/ |
D | vsp1_regs.h | 20 #define VI6_CMD(n) (0x0000 + (n) * 4) argument 30 #define VI6_SRESET_SRTS(n) (1 << (n)) argument 33 #define VI6_STATUS_SYS_ACT(n) (1 << ((n) + 8)) argument 35 #define VI6_WPF_IRQ_ENB(n) (0x0048 + (n) * 12) argument 39 #define VI6_WPF_IRQ_STA(n) (0x004c + (n) * 12) argument 46 #define VI6_DISP_IRQ_ENB_LNEE(n) (1 << (n)) argument 51 #define VI6_DISP_IRQ_STA_LNE(n) (1 << (n)) argument 53 #define VI6_WPF_LINE_COUNT(n) (0x0084 + (n) * 4) argument 70 #define VI6_DL_HDR_ADDR(n) (0x0104 + (n) * 4) argument 231 #define VI6_WPF_SRCRPF_RPF_ACT_DIS(n) (0 << ((n) * 2)) argument [all …]
|
/linux-4.1.27/fs/befs/ |
D | endian.h | 15 fs64_to_cpu(const struct super_block *sb, fs64 n) in fs64_to_cpu() argument 18 return le64_to_cpu((__force __le64)n); in fs64_to_cpu() 20 return be64_to_cpu((__force __be64)n); in fs64_to_cpu() 24 cpu_to_fs64(const struct super_block *sb, u64 n) in cpu_to_fs64() argument 27 return (__force fs64)cpu_to_le64(n); in cpu_to_fs64() 29 return (__force fs64)cpu_to_be64(n); in cpu_to_fs64() 33 fs32_to_cpu(const struct super_block *sb, fs32 n) in fs32_to_cpu() argument 36 return le32_to_cpu((__force __le32)n); in fs32_to_cpu() 38 return be32_to_cpu((__force __be32)n); in fs32_to_cpu() 42 cpu_to_fs32(const struct super_block *sb, u32 n) in cpu_to_fs32() argument [all …]
|
/linux-4.1.27/sound/isa/galaxy/ |
D | galaxy.c | 207 static int snd_galaxy_match(struct device *dev, unsigned int n) in snd_galaxy_match() argument 209 if (!enable[n]) in snd_galaxy_match() 212 switch (port[n]) { in snd_galaxy_match() 217 config[n] |= GALAXY_CONFIG_SBA_220; in snd_galaxy_match() 220 config[n] |= GALAXY_CONFIG_SBA_240; in snd_galaxy_match() 223 config[n] |= GALAXY_CONFIG_SBA_260; in snd_galaxy_match() 226 config[n] |= GALAXY_CONFIG_SBA_280; in snd_galaxy_match() 229 dev_err(dev, "invalid port %#lx\n", port[n]); in snd_galaxy_match() 233 switch (wss_port[n]) { in snd_galaxy_match() 238 config[n] |= GALAXY_CONFIG_WSS_ENABLE | GALAXY_CONFIG_WSSA_530; in snd_galaxy_match() [all …]
|
/linux-4.1.27/drivers/usb/dwc3/ |
D | core.h | 113 #define DWC3_GUSB2PHYCFG(n) (0xc200 + (n * 0x04)) argument 114 #define DWC3_GUSB2I2CCTL(n) (0xc240 + (n * 0x04)) argument 116 #define DWC3_GUSB2PHYACC(n) (0xc280 + (n * 0x04)) argument 118 #define DWC3_GUSB3PIPECTL(n) (0xc2c0 + (n * 0x04)) argument 120 #define DWC3_GTXFIFOSIZ(n) (0xc300 + (n * 0x04)) argument 121 #define DWC3_GRXFIFOSIZ(n) (0xc380 + (n * 0x04)) argument 123 #define DWC3_GEVNTADRLO(n) (0xc400 + (n * 0x10)) argument 124 #define DWC3_GEVNTADRHI(n) (0xc404 + (n * 0x10)) argument 125 #define DWC3_GEVNTSIZ(n) (0xc408 + (n * 0x10)) argument 126 #define DWC3_GEVNTCOUNT(n) (0xc40c + (n * 0x10)) argument [all …]
|
D | gadget.h | 31 #define DWC3_DEPCFG_INT_NUM(n) ((n) << 0) argument 37 #define DWC3_DEPCFG_BINTERVAL_M1(n) ((n) << 16) argument 39 #define DWC3_DEPCFG_EP_NUMBER(n) ((n) << 25) argument 44 #define DWC3_DEPCFG_EP_TYPE(n) ((n) << 1) argument 45 #define DWC3_DEPCFG_MAX_PACKET_SIZE(n) ((n) << 3) argument 46 #define DWC3_DEPCFG_FIFO_NUMBER(n) ((n) << 17) argument 47 #define DWC3_DEPCFG_BURST_SIZE(n) ((n) << 22) argument 48 #define DWC3_DEPCFG_DATA_SEQ_NUM(n) ((n) << 26) argument 57 #define DWC3_DEPXFERCFG_NUM_XFER_RES(n) ((n) & 0xffff) argument
|
/linux-4.1.27/arch/x86/include/asm/ |
D | syscall.h | 78 unsigned int i, unsigned int n, in syscall_get_arguments() argument 81 BUG_ON(i + n > 6); in syscall_get_arguments() 82 memcpy(args, ®s->bx + i, n * sizeof(args[0])); in syscall_get_arguments() 87 unsigned int i, unsigned int n, in syscall_set_arguments() argument 90 BUG_ON(i + n > 6); in syscall_set_arguments() 91 memcpy(®s->bx + i, args, n * sizeof(args[0])); in syscall_set_arguments() 103 unsigned int i, unsigned int n, in syscall_get_arguments() argument 110 if (!n--) break; in syscall_get_arguments() 113 if (!n--) break; in syscall_get_arguments() 116 if (!n--) break; in syscall_get_arguments() [all …]
|
D | uaccess_32.h | 14 (void __user *to, const void *from, unsigned long n); 16 (void *to, const void __user *from, unsigned long n); 18 (void *to, const void __user *from, unsigned long n); 20 (void *to, const void __user *from, unsigned long n); 22 (void *to, const void __user *from, unsigned long n); 44 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) in __copy_to_user_inatomic() argument 46 if (__builtin_constant_p(n)) { in __copy_to_user_inatomic() 49 switch (n) { in __copy_to_user_inatomic() 64 return __copy_to_user_ll(to, from, n); in __copy_to_user_inatomic() 82 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument [all …]
|
D | string_32.h | 32 static __always_inline void *__memcpy(void *to, const void *from, size_t n) in __memcpy() argument 42 : "0" (n / 4), "g" (n), "1" ((long)to), "2" ((long)from) in __memcpy() 52 size_t n) in __constant_memcpy() argument 55 if (!n) in __constant_memcpy() 58 switch (n) { in __constant_memcpy() 88 if (n >= 5 * 4) { in __constant_memcpy() 93 : "0" (n / 4), "1" (edi), "2" (esi) in __constant_memcpy() 98 if (n >= 4 * 4) in __constant_memcpy() 103 if (n >= 3 * 4) in __constant_memcpy() 108 if (n >= 2 * 4) in __constant_memcpy() [all …]
|
/linux-4.1.27/fs/ufs/ |
D | swab.h | 26 fs64_to_cpu(struct super_block *sbp, __fs64 n) in fs64_to_cpu() argument 29 return le64_to_cpu((__force __le64)n); in fs64_to_cpu() 31 return be64_to_cpu((__force __be64)n); in fs64_to_cpu() 35 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() argument 38 return (__force __fs64)cpu_to_le64(n); in cpu_to_fs64() 40 return (__force __fs64)cpu_to_be64(n); in cpu_to_fs64() 44 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() argument 47 return le32_to_cpu((__force __le32)n); in fs32_to_cpu() 49 return be32_to_cpu((__force __be32)n); in fs32_to_cpu() 53 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() argument [all …]
|
/linux-4.1.27/kernel/time/ |
D | timeconst.bc | 14 define fmul(b,n,d) { 15 return (2^b*n+d-1)/d; 19 (imul * n) + (fmulxx * n + fadjxx) >> xx) */ 20 define fadj(b,n,d) { 22 d = d/gcd(n,d); 31 define fmuls(b,n,d) { 34 m = fmul(s,n,d); 42 print "/* Automatically generated by kernel/timeconst.bc */\n" 43 print "/* Time conversion constants for HZ == ", hz, " */\n" 44 print "\n" [all …]
|
/linux-4.1.27/net/sched/ |
D | cls_u32.c | 114 struct tc_u_knode *n; in u32_classify() local 124 n = rcu_dereference_bh(ht->ht[sel]); in u32_classify() 127 if (n) { in u32_classify() 128 struct tc_u32_key *key = n->sel.keys; in u32_classify() 131 __this_cpu_inc(n->pf->rcnt); in u32_classify() 136 if ((skb->mark & n->mask) != n->val) { in u32_classify() 137 n = rcu_dereference_bh(n->next); in u32_classify() 140 __this_cpu_inc(*n->pcpu_success); in u32_classify() 144 for (i = n->sel.nkeys; i > 0; i--, key++) { in u32_classify() 155 n = rcu_dereference_bh(n->next); in u32_classify() [all …]
|
/linux-4.1.27/drivers/video/fbdev/ |
D | c2p_core.h | 32 static inline u32 get_mask(unsigned int n) in get_mask() argument 34 switch (n) { in get_mask() 60 static inline void transp8(u32 d[], unsigned int n, unsigned int m) in transp8() argument 62 u32 mask = get_mask(n); in transp8() 67 _transp(d, 0, 1, n, mask); in transp8() 69 _transp(d, 2, 3, n, mask); in transp8() 71 _transp(d, 4, 5, n, mask); in transp8() 73 _transp(d, 6, 7, n, mask); in transp8() 78 _transp(d, 0, 2, n, mask); in transp8() 79 _transp(d, 1, 3, n, mask); in transp8() [all …]
|
/linux-4.1.27/arch/arm/mach-mmp/include/mach/ |
D | regs-timers.h | 20 #define TMR_TN_MM(n, m) (0x0004 + ((n) << 3) + (((n) + (m)) << 2)) argument 21 #define TMR_CR(n) (0x0028 + ((n) << 2)) argument 22 #define TMR_SR(n) (0x0034 + ((n) << 2)) argument 23 #define TMR_IER(n) (0x0040 + ((n) << 2)) argument 24 #define TMR_PLVR(n) (0x004c + ((n) << 2)) argument 25 #define TMR_PLCR(n) (0x0058 + ((n) << 2)) argument 30 #define TMR_ICR(n) (0x0074 + ((n) << 2)) argument 34 #define TMR_ILR(n) (0x008c + ((n) << 2)) argument 38 #define TMR_CVWR(n) (0x00A4 + ((n) << 2)) argument
|
/linux-4.1.27/security/selinux/ss/ |
D | ebitmap.h | 47 struct ebitmap_node **n) in ebitmap_start_positive() argument 51 for (*n = e->node; *n; *n = (*n)->next) { in ebitmap_start_positive() 52 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_start_positive() 54 return (*n)->startbit + ofs; in ebitmap_start_positive() 65 struct ebitmap_node **n, in ebitmap_next_positive() argument 70 ofs = find_next_bit((*n)->maps, EBITMAP_SIZE, bit - (*n)->startbit + 1); in ebitmap_next_positive() 72 return ofs + (*n)->startbit; in ebitmap_next_positive() 74 for (*n = (*n)->next; *n; *n = (*n)->next) { in ebitmap_next_positive() 75 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_next_positive() 77 return ofs + (*n)->startbit; in ebitmap_next_positive() [all …]
|
D | ebitmap.c | 51 struct ebitmap_node *n, *new, *prev; in ebitmap_cpy() local 54 n = src->node; in ebitmap_cpy() 56 while (n) { in ebitmap_cpy() 62 new->startbit = n->startbit; in ebitmap_cpy() 63 memcpy(new->maps, n->maps, EBITMAP_SIZE / 8); in ebitmap_cpy() 70 n = n->next; in ebitmap_cpy() 241 struct ebitmap_node *n; in ebitmap_get_bit() local 246 n = e->node; in ebitmap_get_bit() 247 while (n && (n->startbit <= bit)) { in ebitmap_get_bit() 248 if ((n->startbit + EBITMAP_SIZE) > bit) in ebitmap_get_bit() [all …]
|
/linux-4.1.27/tools/power/cpupower/po/ |
D | de.po | 8 "Project-Id-Version: cpufrequtils 006\n" 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 11 "PO-Revision-Date: 2009-08-08 17:18+0100\n" 12 "Last-Translator: <linux@dominikbrodowski.net>\n" 13 "Language-Team: NONE\n" 14 "Language: \n" 15 "MIME-Version: 1.0\n" 16 "Content-Type: text/plain; charset=ISO-8859-1\n" 17 "Content-Transfer-Encoding: 8bit\n" [all …]
|
D | cs.po | 10 "Project-Id-Version: cs\n" 11 "Report-Msgid-Bugs-To: \n" 12 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 13 "PO-Revision-Date: 2008-06-11 16:26+0200\n" 14 "Last-Translator: Karel Volný <kavol@seznam.cz>\n" 15 "Language-Team: Czech <diskuze@lists.l10n.cz>\n" 16 "Language: cs\n" 17 "MIME-Version: 1.0\n" 18 "Content-Type: text/plain; charset=UTF-8\n" 19 "Content-Transfer-Encoding: 8bit\n" [all …]
|
D | pt.po | 9 "Project-Id-Version: cpufrequtils 004\n" 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 12 "PO-Revision-Date: 2008-06-14 22:16-0400\n" 13 "Last-Translator: Claudio Eduardo <claudioeddy@gmail.com>\n" 14 "MIME-Version: 1.0\n" 15 "Content-Type: text/plain; charset=UTF-8\n" 16 "Content-Transfer-Encoding: 8bit\n" 74 "interval_sec | -c command ...]\n" 81 "interval_sec | -c command ...]\n" [all …]
|
D | fr.po | 9 "Project-Id-Version: cpufrequtils 0.1-pre2\n" 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 12 "PO-Revision-Date: 2004-11-17 15:53+1000\n" 13 "Last-Translator: Bruno Ducrot <ducrot@poupinou.org>\n" 14 "Language-Team: NONE\n" 15 "Language: \n" 16 "MIME-Version: 1.0\n" 17 "Content-Type: text/plain; charset=ISO-8859-1\n" 18 "Content-Transfer-Encoding: 8bit\n" [all …]
|
D | it.po | 9 "Project-Id-Version: cpufrequtils 0.3\n" 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2011-03-08 17:03+0100\n" 12 "PO-Revision-Date: 2009-08-15 12:00+0900\n" 13 "Last-Translator: Mattia Dongili <malattia@gmail.com>\n" 14 "Language-Team: NONE\n" 15 "Language: \n" 16 "MIME-Version: 1.0\n" 17 "Content-Type: text/plain; charset=UTF-8\n" 18 "Content-Transfer-Encoding: 8bit\n" [all …]
|
/linux-4.1.27/lib/ |
D | klist.c | 95 static void add_head(struct klist *k, struct klist_node *n) in add_head() argument 98 list_add(&n->n_node, &k->k_list); in add_head() 102 static void add_tail(struct klist *k, struct klist_node *n) in add_tail() argument 105 list_add_tail(&n->n_node, &k->k_list); in add_tail() 109 static void klist_node_init(struct klist *k, struct klist_node *n) in klist_node_init() argument 111 INIT_LIST_HEAD(&n->n_node); in klist_node_init() 112 kref_init(&n->n_ref); in klist_node_init() 113 knode_set_klist(n, k); in klist_node_init() 115 k->get(n); in klist_node_init() 123 void klist_add_head(struct klist_node *n, struct klist *k) in klist_add_head() argument [all …]
|
D | idr.c | 223 int n, m, sh; in sub_alloc() local 236 n = (id >> (IDR_BITS*l)) & IDR_MASK; in sub_alloc() 237 m = find_next_zero_bit(p->bitmap, IDR_SIZE, n); in sub_alloc() 261 if (m != n) { in sub_alloc() 263 id = ((id >> sh) ^ n ^ m) << sh; in sub_alloc() 514 int n; in sub_remove() local 520 n = (id >> shift) & IDR_MASK; in sub_remove() 521 __clear_bit(n, p->bitmap); in sub_remove() 522 *++paa = &p->ary[n]; in sub_remove() 523 p = p->ary[n]; in sub_remove() [all …]
|
/linux-4.1.27/drivers/media/rc/ |
D | ir-xmp-decoder.c | 87 u32 *n; in ir_xmp_decode() local 97 n = data->durations; in ir_xmp_decode() 103 divider = (n[3] - XMP_NIBBLE_PREFIX) / 15 - 2000; in ir_xmp_decode() 112 n[i] = (n[i] - XMP_NIBBLE_PREFIX) / divider; in ir_xmp_decode() 113 sum1 = (15 + n[0] + n[1] + n[2] + n[3] + in ir_xmp_decode() 114 n[4] + n[5] + n[6] + n[7]) % 16; in ir_xmp_decode() 115 sum2 = (15 + n[8] + n[9] + n[10] + n[11] + in ir_xmp_decode() 116 n[12] + n[13] + n[14] + n[15]) % 16; in ir_xmp_decode() 125 subaddr = n[0] << 4 | n[2]; in ir_xmp_decode() 126 subaddr2 = n[8] << 4 | n[11]; in ir_xmp_decode() [all …]
|
/linux-4.1.27/arch/x86/lib/ |
D | usercopy_32.c | 25 static inline int __movsl_is_ok(unsigned long a1, unsigned long a2, unsigned long n) in __movsl_is_ok() argument 28 if (n >= 64 && ((a1 ^ a2) & movsl_mask.mask)) in __movsl_is_ok() 33 #define movsl_is_ok(a1, a2, n) \ argument 34 __movsl_is_ok((unsigned long)(a1), (unsigned long)(a2), (n)) 71 clear_user(void __user *to, unsigned long n) in clear_user() argument 74 if (access_ok(VERIFY_WRITE, to, n)) in clear_user() 75 __do_clear_user(to, n); in clear_user() 76 return n; in clear_user() 92 __clear_user(void __user *to, unsigned long n) in __clear_user() argument 94 __do_clear_user(to, n); in __clear_user() [all …]
|
/linux-4.1.27/drivers/leds/trigger/ |
D | ledtrig-backlight.c | 35 struct bl_trig_notifier *n = container_of(p, in fb_notifier_callback() local 37 struct led_classdev *led = n->led; in fb_notifier_callback() 49 if (new_status == n->old_status) in fb_notifier_callback() 52 if ((n->old_status == UNBLANK) ^ n->invert) { in fb_notifier_callback() 53 n->brightness = led->brightness; in fb_notifier_callback() 56 led_set_brightness_async(led, n->brightness); in fb_notifier_callback() 59 n->old_status = new_status; in fb_notifier_callback() 68 struct bl_trig_notifier *n = led->trigger_data; in bl_trig_invert_show() local 70 return sprintf(buf, "%u\n", n->invert); in bl_trig_invert_show() 77 struct bl_trig_notifier *n = led->trigger_data; in bl_trig_invert_store() local [all …]
|
/linux-4.1.27/arch/arc/include/asm/ |
D | uaccess.h | 166 __arc_copy_from_user(void *to, const void __user *from, unsigned long n) in __arc_copy_from_user() argument 171 unsigned long orig_n = n; in __arc_copy_from_user() 173 if (n == 0) in __arc_copy_from_user() 197 : "+r" (n), in __arc_copy_from_user() 207 return n; in __arc_copy_from_user() 246 : "ir"(n) in __arc_copy_from_user() 383 : "=r" (res), "+r"(to), "+r"(from), "+r"(n), "=r"(val), in __arc_copy_from_user() 393 unsigned long n); 396 __arc_copy_to_user(void __user *to, const void *from, unsigned long n) in __arc_copy_to_user() argument 401 unsigned long orig_n = n; in __arc_copy_to_user() [all …]
|
/linux-4.1.27/arch/powerpc/lib/ |
D | usercopy_64.c | 12 unsigned long copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument 14 if (likely(access_ok(VERIFY_READ, from, n))) in copy_from_user() 15 n = __copy_from_user(to, from, n); in copy_from_user() 17 memset(to, 0, n); in copy_from_user() 18 return n; in copy_from_user() 21 unsigned long copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument 23 if (likely(access_ok(VERIFY_WRITE, to, n))) in copy_to_user() 24 n = __copy_to_user(to, from, n); in copy_to_user() 25 return n; in copy_to_user() 29 unsigned long n) in copy_in_user() argument [all …]
|
/linux-4.1.27/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.c | 63 unsigned n; in mvebu_pinctrl_find_group_by_pid() local 64 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_pid() 65 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid() 66 pid < pctl->groups[n].pins[0] + in mvebu_pinctrl_find_group_by_pid() 67 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid() 68 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_pid() 76 unsigned n; in mvebu_pinctrl_find_group_by_name() local 77 for (n = 0; n < pctl->num_groups; n++) { in mvebu_pinctrl_find_group_by_name() 78 if (strcmp(name, pctl->groups[n].name) == 0) in mvebu_pinctrl_find_group_by_name() 79 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_name() [all …]
|
/linux-4.1.27/sound/isa/es1688/ |
D | es1688.c | 93 static int snd_es1688_match(struct device *dev, unsigned int n) in snd_es1688_match() argument 95 return enable[n] && !is_isapnp_selected(n); in snd_es1688_match() 99 struct device *dev, unsigned int n) in snd_es1688_legacy_create() argument 108 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_es1688_legacy_create() 109 irq[n] = snd_legacy_find_free_irq(possible_irqs); in snd_es1688_legacy_create() 110 if (irq[n] < 0) { in snd_es1688_legacy_create() 115 if (dma8[n] == SNDRV_AUTO_DMA) { in snd_es1688_legacy_create() 116 dma8[n] = snd_legacy_find_free_dma(possible_dmas); in snd_es1688_legacy_create() 117 if (dma8[n] < 0) { in snd_es1688_legacy_create() 123 if (port[n] != SNDRV_AUTO_PORT) in snd_es1688_legacy_create() [all …]
|
/linux-4.1.27/arch/powerpc/perf/ |
D | bhrb.S | 36 #define MFBHRB_TABLE1(n) PPC_MFBHRBE(R3,n); blr argument 37 #define MFBHRB_TABLE2(n) MFBHRB_TABLE1(n); MFBHRB_TABLE1(n+1) argument 38 #define MFBHRB_TABLE4(n) MFBHRB_TABLE2(n); MFBHRB_TABLE2(n+2) argument 39 #define MFBHRB_TABLE8(n) MFBHRB_TABLE4(n); MFBHRB_TABLE4(n+4) argument 40 #define MFBHRB_TABLE16(n) MFBHRB_TABLE8(n); MFBHRB_TABLE8(n+8) argument 41 #define MFBHRB_TABLE32(n) MFBHRB_TABLE16(n); MFBHRB_TABLE16(n+16) argument
|
/linux-4.1.27/arch/mn10300/lib/ |
D | usercopy.c | 15 __generic_copy_to_user(void *to, const void *from, unsigned long n) in __generic_copy_to_user() argument 17 if (access_ok(VERIFY_WRITE, to, n)) in __generic_copy_to_user() 18 __copy_user(to, from, n); in __generic_copy_to_user() 19 return n; in __generic_copy_to_user() 23 __generic_copy_from_user(void *to, const void *from, unsigned long n) in __generic_copy_from_user() argument 25 if (access_ok(VERIFY_READ, from, n)) in __generic_copy_from_user() 26 __copy_user_zeroing(to, from, n); in __generic_copy_from_user() 27 return n; in __generic_copy_from_user() 116 __clear_user(void *to, unsigned long n) in __clear_user() argument 118 __do_clear_user(to, n); in __clear_user() [all …]
|
/linux-4.1.27/arch/um/kernel/skas/ |
D | uaccess.c | 65 int n, faulted; in do_op_one_page() local 79 n = (*op)(addr, len, arg); in do_op_one_page() 81 n = -1; in do_op_one_page() 87 return n; in do_op_one_page() 93 int size, remain, n; in buffer_op() local 98 n = do_op_one_page(addr, size, is_write, op, arg); in buffer_op() 99 if (n != 0) { in buffer_op() 100 remain = (n < 0 ? remain : 0); in buffer_op() 110 n = do_op_one_page(addr, PAGE_SIZE, is_write, op, arg); in buffer_op() 111 if (n != 0) { in buffer_op() [all …]
|
/linux-4.1.27/tools/testing/selftests/rcutorture/configs/rcu/ |
D | TREE02 | 3 CONFIG_PREEMPT_NONE=n 4 CONFIG_PREEMPT_VOLUNTARY=n 7 CONFIG_HZ_PERIODIC=n 9 CONFIG_NO_HZ_FULL=n 10 CONFIG_RCU_FAST_NO_HZ=n 11 CONFIG_RCU_TRACE=n 12 CONFIG_HOTPLUG_CPU=n 13 CONFIG_SUSPEND=n 14 CONFIG_HIBERNATION=n 17 CONFIG_RCU_FANOUT_EXACT=n [all …]
|
D | TREE09 | 1 CONFIG_SMP=n 3 CONFIG_PREEMPT_NONE=n 4 CONFIG_PREEMPT_VOLUNTARY=n 7 CONFIG_HZ_PERIODIC=n 9 CONFIG_NO_HZ_FULL=n 10 CONFIG_RCU_TRACE=n 11 CONFIG_HOTPLUG_CPU=n 12 CONFIG_SUSPEND=n 13 CONFIG_HIBERNATION=n 14 CONFIG_RCU_NOCB_CPU=n [all …]
|
D | TREE02-T | 3 CONFIG_PREEMPT_NONE=n 4 CONFIG_PREEMPT_VOLUNTARY=n 7 CONFIG_HZ_PERIODIC=n 9 CONFIG_NO_HZ_FULL=n 10 CONFIG_RCU_FAST_NO_HZ=n 12 CONFIG_HOTPLUG_CPU=n 13 CONFIG_SUSPEND=n 14 CONFIG_HIBERNATION=n 17 CONFIG_RCU_FANOUT_EXACT=n 18 CONFIG_RCU_NOCB_CPU=n [all …]
|
D | TREE08 | 3 CONFIG_PREEMPT_NONE=n 4 CONFIG_PREEMPT_VOLUNTARY=n 7 CONFIG_HZ_PERIODIC=n 9 CONFIG_NO_HZ_FULL=n 10 CONFIG_RCU_FAST_NO_HZ=n 11 CONFIG_RCU_TRACE=n 12 CONFIG_HOTPLUG_CPU=n 13 CONFIG_SUSPEND=n 14 CONFIG_HIBERNATION=n 20 CONFIG_DEBUG_LOCK_ALLOC=n [all …]
|
D | TREE08-T | 3 CONFIG_PREEMPT_NONE=n 4 CONFIG_PREEMPT_VOLUNTARY=n 7 CONFIG_HZ_PERIODIC=n 9 CONFIG_NO_HZ_FULL=n 10 CONFIG_RCU_FAST_NO_HZ=n 12 CONFIG_HOTPLUG_CPU=n 13 CONFIG_SUSPEND=n 14 CONFIG_HIBERNATION=n 20 CONFIG_DEBUG_LOCK_ALLOC=n 21 CONFIG_RCU_CPU_STALL_INFO=n [all …]
|
D | TREE04 | 4 CONFIG_PREEMPT_VOLUNTARY=n 5 CONFIG_PREEMPT=n 7 CONFIG_HZ_PERIODIC=n 8 CONFIG_NO_HZ_IDLE=n 13 CONFIG_HOTPLUG_CPU=n 14 CONFIG_SUSPEND=n 15 CONFIG_HIBERNATION=n 18 CONFIG_RCU_FANOUT_EXACT=n 19 CONFIG_RCU_NOCB_CPU=n 20 CONFIG_DEBUG_LOCK_ALLOC=n [all …]
|
D | TREE06 | 4 CONFIG_PREEMPT_VOLUNTARY=n 5 CONFIG_PREEMPT=n 7 CONFIG_HZ_PERIODIC=n 9 CONFIG_NO_HZ_FULL=n 10 CONFIG_RCU_FAST_NO_HZ=n 11 CONFIG_RCU_TRACE=n 12 CONFIG_HOTPLUG_CPU=n 13 CONFIG_SUSPEND=n 14 CONFIG_HIBERNATION=n 18 CONFIG_RCU_NOCB_CPU=n [all …]
|
D | TREE07 | 5 CONFIG_PREEMPT_VOLUNTARY=n 6 CONFIG_PREEMPT=n 8 CONFIG_HZ_PERIODIC=n 9 CONFIG_NO_HZ_IDLE=n 11 CONFIG_NO_HZ_FULL_ALL=n 13 CONFIG_RCU_FAST_NO_HZ=n 18 CONFIG_RCU_FANOUT_EXACT=n 19 CONFIG_RCU_NOCB_CPU=n 20 CONFIG_DEBUG_LOCK_ALLOC=n 22 CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
|
D | TINY01 | 1 CONFIG_SMP=n 3 CONFIG_PREEMPT_VOLUNTARY=n 4 CONFIG_PREEMPT=n 6 CONFIG_HZ_PERIODIC=n 8 CONFIG_NO_HZ_FULL=n 9 CONFIG_RCU_TRACE=n 10 CONFIG_DEBUG_LOCK_ALLOC=n 11 CONFIG_DEBUG_OBJECTS_RCU_HEAD=n 12 CONFIG_PREEMPT_COUNT=n
|
D | TREE03 | 3 CONFIG_PREEMPT_NONE=n 4 CONFIG_PREEMPT_VOLUNTARY=n 8 CONFIG_NO_HZ_IDLE=n 9 CONFIG_NO_HZ_FULL=n 14 CONFIG_RCU_FANOUT_EXACT=n 15 CONFIG_RCU_NOCB_CPU=n 16 CONFIG_DEBUG_LOCK_ALLOC=n 17 CONFIG_RCU_CPU_STALL_INFO=n 20 CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
|
D | TREE05 | 4 CONFIG_PREEMPT_VOLUNTARY=n 5 CONFIG_PREEMPT=n 7 CONFIG_HZ_PERIODIC=n 9 CONFIG_NO_HZ_FULL=n 10 CONFIG_RCU_FAST_NO_HZ=n 11 CONFIG_RCU_TRACE=n 15 CONFIG_RCU_FANOUT_EXACT=n 21 CONFIG_RCU_CPU_STALL_INFO=n 22 CONFIG_DEBUG_OBJECTS_RCU_HEAD=n
|
/linux-4.1.27/sound/isa/gus/ |
D | gusextreme.c | 92 static int snd_gusextreme_match(struct device *dev, unsigned int n) in snd_gusextreme_match() argument 94 return enable[n]; in snd_gusextreme_match() 99 struct device *dev, unsigned int n) in snd_gusextreme_es1688_create() argument 107 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_gusextreme_es1688_create() 108 irq[n] = snd_legacy_find_free_irq(possible_irqs); in snd_gusextreme_es1688_create() 109 if (irq[n] < 0) { in snd_gusextreme_es1688_create() 114 if (dma8[n] == SNDRV_AUTO_DMA) { in snd_gusextreme_es1688_create() 115 dma8[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusextreme_es1688_create() 116 if (dma8[n] < 0) { in snd_gusextreme_es1688_create() 122 if (port[n] != SNDRV_AUTO_PORT) in snd_gusextreme_es1688_create() [all …]
|
D | gusclassic.c | 76 static int snd_gusclassic_match(struct device *dev, unsigned int n) in snd_gusclassic_match() argument 78 return enable[n]; in snd_gusclassic_match() 82 struct device *dev, unsigned int n, in snd_gusclassic_create() argument 91 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_gusclassic_create() 92 irq[n] = snd_legacy_find_free_irq(possible_irqs); in snd_gusclassic_create() 93 if (irq[n] < 0) { in snd_gusclassic_create() 98 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_gusclassic_create() 99 dma1[n] = snd_legacy_find_free_dma(possible_dmas); in snd_gusclassic_create() 100 if (dma1[n] < 0) { in snd_gusclassic_create() 105 if (dma2[n] == SNDRV_AUTO_DMA) { in snd_gusclassic_create() [all …]
|
/linux-4.1.27/sound/pci/ice1712/ |
D | wm8766.c | 199 int n = kcontrol->private_value; in snd_wm8766_volume_info() local 202 uinfo->count = (wm->ctl[n].flags & WM8766_FLAG_STEREO) ? 2 : 1; in snd_wm8766_volume_info() 203 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8766_volume_info() 204 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8766_volume_info() 213 int n = kcontrol->private_value; in snd_wm8766_enum_info() local 215 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8766_enum_info() 216 wm->ctl[n].enum_names); in snd_wm8766_enum_info() 223 int n = kcontrol->private_value; in snd_wm8766_ctl_get() local 226 if (wm->ctl[n].get) in snd_wm8766_ctl_get() 227 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8766_ctl_get() [all …]
|
D | wm8776.c | 473 int n = kcontrol->private_value; in snd_wm8776_volume_info() local 476 uinfo->count = (wm->ctl[n].flags & WM8776_FLAG_STEREO) ? 2 : 1; in snd_wm8776_volume_info() 477 uinfo->value.integer.min = wm->ctl[n].min; in snd_wm8776_volume_info() 478 uinfo->value.integer.max = wm->ctl[n].max; in snd_wm8776_volume_info() 487 int n = kcontrol->private_value; in snd_wm8776_enum_info() local 489 return snd_ctl_enum_info(uinfo, 1, wm->ctl[n].max, in snd_wm8776_enum_info() 490 wm->ctl[n].enum_names); in snd_wm8776_enum_info() 497 int n = kcontrol->private_value; in snd_wm8776_ctl_get() local 500 if (wm->ctl[n].get) in snd_wm8776_ctl_get() 501 wm->ctl[n].get(wm, &val1, &val2); in snd_wm8776_ctl_get() [all …]
|
D | se.c | 421 static int se200pci_get_enum_count(int n) in se200pci_get_enum_count() argument 426 member = se200pci_cont[n].member; in se200pci_get_enum_count() 449 int n, c; in se200pci_cont_enum_info() local 451 n = kc->private_value; in se200pci_cont_enum_info() 452 c = se200pci_get_enum_count(n); in se200pci_cont_enum_info() 455 return snd_ctl_enum_info(uinfo, 1, c, se200pci_cont[n].member); in se200pci_cont_enum_info() 463 int n = kc->private_value; in se200pci_cont_volume_get() local 464 uc->value.integer.value[0] = spec->vol[n].ch1; in se200pci_cont_volume_get() 465 uc->value.integer.value[1] = spec->vol[n].ch2; in se200pci_cont_volume_get() 474 int n = kc->private_value; in se200pci_cont_boolean_get() local [all …]
|
/linux-4.1.27/arch/m32r/lib/ |
D | usercopy.c | 15 __generic_copy_to_user(void __user *to, const void *from, unsigned long n) in __generic_copy_to_user() argument 18 if (access_ok(VERIFY_WRITE, to, n)) in __generic_copy_to_user() 19 __copy_user(to,from,n); in __generic_copy_to_user() 20 return n; in __generic_copy_to_user() 24 __generic_copy_from_user(void *to, const void __user *from, unsigned long n) in __generic_copy_from_user() argument 27 if (access_ok(VERIFY_READ, from, n)) in __generic_copy_from_user() 28 __copy_user_zeroing(to,from,n); in __generic_copy_from_user() 30 memset(to, 0, n); in __generic_copy_from_user() 31 return n; in __generic_copy_from_user() 224 clear_user(void __user *to, unsigned long n) in clear_user() argument [all …]
|
/linux-4.1.27/arch/ia64/kernel/ |
D | mca_drv.h | 56 #define peidx_cache_check_idx(p, n) (n) argument 57 #define peidx_tlb_check_idx(p, n) (peidx_cache_check_idx(p, peidx_cache_check_num(p)) + n) argument 58 #define peidx_bus_check_idx(p, n) (peidx_tlb_check_idx(p, peidx_tlb_check_num(p)) + n) argument 59 #define peidx_reg_file_check_idx(p, n) (peidx_bus_check_idx(p, peidx_bus_check_num(p)) + n) argument 60 #define peidx_ms_check_idx(p, n) (peidx_reg_file_check_idx(p, peidx_reg_file_check_num(p)) + … argument 62 #define peidx_mod_error_info(p, name, n) \ argument 63 ({ int __idx = peidx_##name##_idx(p, n); \ 65 if (peidx_##name##_num(p) > n) /*BUG*/ \ 69 #define peidx_cache_check(p, n) peidx_mod_error_info(p, cache_check, n) argument 70 #define peidx_tlb_check(p, n) peidx_mod_error_info(p, tlb_check, n) argument [all …]
|
/linux-4.1.27/arch/x86/mm/kmemcheck/ |
D | shadow.c | 36 static void mark_shadow(void *address, unsigned int n, in mark_shadow() argument 40 unsigned long last_addr = addr + n - 1; in mark_shadow() 48 first_n = n; in mark_shadow() 57 n -= first_n; in mark_shadow() 60 while (n >= PAGE_SIZE) { in mark_shadow() 66 n -= PAGE_SIZE; in mark_shadow() 70 if (n > 0) { in mark_shadow() 73 memset(shadow, status, n); in mark_shadow() 77 void kmemcheck_mark_unallocated(void *address, unsigned int n) in kmemcheck_mark_unallocated() argument 79 mark_shadow(address, n, KMEMCHECK_SHADOW_UNALLOCATED); in kmemcheck_mark_unallocated() [all …]
|
/linux-4.1.27/arch/nios2/include/asm/ |
D | syscall.h | 61 struct pt_regs *regs, unsigned int i, unsigned int n, in syscall_get_arguments() argument 64 BUG_ON(i + n > 6); in syscall_get_arguments() 68 if (!n--) in syscall_get_arguments() 72 if (!n--) in syscall_get_arguments() 76 if (!n--) in syscall_get_arguments() 80 if (!n--) in syscall_get_arguments() 84 if (!n--) in syscall_get_arguments() 88 if (!n--) in syscall_get_arguments() 92 if (!n--) in syscall_get_arguments() 100 struct pt_regs *regs, unsigned int i, unsigned int n, in syscall_set_arguments() argument [all …]
|
D | uaccess.h | 72 unsigned long n) in __clear_user() argument 83 : "=r" (n), "=r" (to) in __clear_user() 84 : "0" (n), "1" (to) in __clear_user() 87 return n; in __clear_user() 91 unsigned long n) in clear_user() argument 93 if (!access_ok(VERIFY_WRITE, to, n)) in clear_user() 94 return n; in clear_user() 95 return __clear_user(to, n); in clear_user() 99 unsigned long n); 100 extern long __copy_to_user(void __user *to, const void *from, unsigned long n); [all …]
|
/linux-4.1.27/include/uapi/linux/usb/ |
D | video.h | 203 #define UVC_DT_HEADER_SIZE(n) (12+(n)) argument 205 #define UVC_HEADER_DESCRIPTOR(n) \ argument 206 uvc_header_descriptor_##n 208 #define DECLARE_UVC_HEADER_DESCRIPTOR(n) \ argument 209 struct UVC_HEADER_DESCRIPTOR(n) { \ 217 __u8 baInterfaceNr[n]; \ 263 #define UVC_DT_CAMERA_TERMINAL_SIZE(n) (15+(n)) argument 276 #define UVC_DT_SELECTOR_UNIT_SIZE(n) (6+(n)) argument 278 #define UVC_SELECTOR_UNIT_DESCRIPTOR(n) \ argument 279 uvc_selector_unit_descriptor_##n [all …]
|
/linux-4.1.27/arch/metag/lib/ |
D | usercopy.c | 248 to, from, ret, n, id, FIXUP) \ 317 : "=r" (to), "=r" (from), "=r" (ret), "=d" (n) \ 318 : "0" (to), "1" (from), "2" (ret), "3" (n) \ 342 #define __asm_copy_to_user_64bit_rapf_loop(to, from, ret, n, id)\ argument 343 __asm_copy_user_64bit_rapf_loop(to, from, ret, n, id, \ 391 to, from, ret, n, id, FIXUP) \ 488 : "=r" (to), "=r" (from), "=r" (ret), "=d" (n) \ 489 : "0" (to), "1" (from), "2" (ret), "3" (n) \ 513 #define __asm_copy_to_user_32bit_rapf_loop(to, from, ret, n, id)\ argument 514 __asm_copy_user_32bit_rapf_loop(to, from, ret, n, id, \ [all …]
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | ide.h | 49 #define __ide_mm_insw(port, addr, n) raw_insw((u16 *)port, addr, n) argument 50 #define __ide_mm_insl(port, addr, n) raw_insl((u32 *)port, addr, n) argument 53 #define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n) argument 54 #define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n) argument 58 #define __ide_mm_insw(port, addr, n) io_insw((unsigned int)port, addr, n) argument 59 #define __ide_mm_insl(port, addr, n) io_insl((unsigned int)port, addr, n) argument 60 #define __ide_mm_outsw(port, addr, n) io_outsw((unsigned int)port, addr, n) argument 61 #define __ide_mm_outsl(port, addr, n) io_outsl((unsigned int)port, addr, n) argument
|
D | uaccess_no.h | 130 #define copy_from_user(to, from, n) (memcpy(to, from, n), 0) argument 131 #define copy_to_user(to, from, n) (memcpy(to, from, n), 0) argument 133 #define __copy_from_user(to, from, n) copy_from_user(to, from, n) argument 134 #define __copy_to_user(to, from, n) copy_to_user(to, from, n) argument 138 #define copy_to_user_ret(to,from,n,retval) ({ if (copy_to_user(to,from,n)) return retval; }) argument 140 #define copy_from_user_ret(to,from,n,retval) ({ if (copy_from_user(to,from,n)) return retval; }) argument 161 static inline long strnlen_user(const char *src, long n) in strnlen_user() argument 173 __clear_user(void *to, unsigned long n) in __clear_user() argument 175 memset(to, 0, n); in __clear_user() 179 #define clear_user(to,n) __clear_user(to,n) argument
|
D | uaccess_mm.h | 202 unsigned long __generic_copy_from_user(void *to, const void __user *from, unsigned long n); 203 unsigned long __generic_copy_to_user(void __user *to, const void *from, unsigned long n); 205 #define __constant_copy_from_user_asm(res, to, from, tmp, n, s1, s2, s3)\ argument 232 " moveq.l #"#n",%0\n" \ 239 __constant_copy_from_user(void *to, const void __user *from, unsigned long n) in __constant_copy_from_user() argument 243 switch (n) { in __constant_copy_from_user() 279 return __generic_copy_from_user(to, from, n); in __constant_copy_from_user() 285 #define __constant_copy_to_user_asm(res, to, from, tmp, n, s1, s2, s3) \ argument 313 "5: moveq.l #"#n",%0\n" \ 320 __constant_copy_to_user(void __user *to, const void *from, unsigned long n) in __constant_copy_to_user() argument [all …]
|
/linux-4.1.27/drivers/net/ethernet/cisco/enic/ |
D | enic_clsf.c | 94 struct enic_rfs_fltr_node *n; in enic_rfs_flw_tbl_free() local 97 hlist_for_each_entry_safe(n, tmp, hhead, node) { in enic_rfs_flw_tbl_free() 98 enic_delfltr(enic, n->fltr_id); in enic_rfs_flw_tbl_free() 99 hlist_del(&n->node); in enic_rfs_flw_tbl_free() 100 kfree(n); in enic_rfs_flw_tbl_free() 113 struct enic_rfs_fltr_node *n; in htbl_fltr_search() local 116 hlist_for_each_entry_safe(n, tmp, hhead, node) in htbl_fltr_search() 117 if (n->fltr_id == fltr_id) in htbl_fltr_search() 118 return n; in htbl_fltr_search() 135 struct enic_rfs_fltr_node *n; in enic_flow_may_expire() local [all …]
|
/linux-4.1.27/arch/arm/mach-lpc32xx/include/mach/ |
D | platform.h | 23 #define _BIT(n) _SBF(n, 1) argument 293 #define LPC32XX_CLKPWR_HCLKDIV_PCLK_DIV(n) (((n) & 0x1F) << 2) argument 294 #define LPC32XX_CLKPWR_HCLKDIV_DIV_2POW(n) ((n) & 0x3) argument 330 #define LPC32XX_CLKPWR_MOSC_ADD_CAP(n) (((n) & 0x7F) << 2) argument 338 #define LPC32XX_CLKPWR_SYSCTRL_BP_TRIG(n) (((n) & 0x3FF) << 2) argument 356 #define LPC32XX_CLKPWR_LCDCTRL_SET_PSCALE(n) ((n - 1) & 0x1F) argument 366 #define LPC32XX_CLKPWR_HCLKPLL_POSTDIV_2POW(n) (((n) & 0x3) << 11) argument 367 #define LPC32XX_CLKPWR_HCLKPLL_PREDIV_PLUS1(n) (((n) & 0x3) << 9) argument 368 #define LPC32XX_CLKPWR_HCLKPLL_PLLM(n) (((n) & 0xFF) << 1) argument 374 #define LPC32XX_CLKPWR_ADCCTRL1_RTDIV(n) (((n) & 0xFF) << 0) argument [all …]
|
/linux-4.1.27/lib/zlib_deflate/ |
D | deftree.c | 228 int n; /* iterates over tree elements */ in tr_static_init() local 242 for (n = 0; n < (1<<extra_lbits[code]); n++) { in tr_static_init() 257 for (n = 0; n < (1<<extra_dbits[code]); n++) { in tr_static_init() 265 for (n = 0; n < (1<<(extra_dbits[code]-7)); n++) { in tr_static_init() 273 n = 0; in tr_static_init() 274 while (n <= 143) static_ltree[n++].Len = 8, bl_count[8]++; in tr_static_init() 275 while (n <= 255) static_ltree[n++].Len = 9, bl_count[9]++; in tr_static_init() 276 while (n <= 279) static_ltree[n++].Len = 7, bl_count[7]++; in tr_static_init() 277 while (n <= 287) static_ltree[n++].Len = 8, bl_count[8]++; in tr_static_init() 285 for (n = 0; n < D_CODES; n++) { in tr_static_init() [all …]
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | uaccess.h | 239 …rn unsigned long __must_check __copy_from_user(void *to, const void __user *from, unsigned long n); 240 extern unsigned long __must_check __copy_to_user(void __user *to, const void *from, unsigned long n… 241 …signed long __must_check __copy_in_user(void __user *to, const void __user *from, unsigned long n); 242 extern unsigned long __must_check __clear_user(void __user *addr, unsigned long n); 244 …nline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument 246 if (access_ok(VERIFY_READ, from, n)) in copy_from_user() 247 n = __copy_from_user(to, from, n); in copy_from_user() 249 memset(to, 0, n); in copy_from_user() 250 return n; in copy_from_user() 253 … inline unsigned long __must_check copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument [all …]
|
D | syscall.h | 62 unsigned int i, unsigned int n, in syscall_get_arguments() argument 65 if (n == 0) in syscall_get_arguments() 68 if (i + n > SYSCALL_MAX_ARGS) { in syscall_get_arguments() 70 unsigned int n_bad = n + i - SYSCALL_MAX_ARGS; in syscall_get_arguments() 72 __func__, i + n, SYSCALL_MAX_ARGS); in syscall_get_arguments() 80 n--; in syscall_get_arguments() 83 memcpy(args, ®s->regs[i], n * sizeof(args[0])); in syscall_get_arguments() 88 unsigned int i, unsigned int n, in syscall_set_arguments() argument 91 if (n == 0) in syscall_set_arguments() 94 if (i + n > SYSCALL_MAX_ARGS) { in syscall_set_arguments() [all …]
|
D | cmpxchg.h | 213 #define cmpxchg(ptr, o, n) \ argument 217 __cmpxchg_mb((ptr), (unsigned long)(o), (unsigned long)(n), \ 222 #define cmpxchg_local(ptr, o, n) \ argument 227 (unsigned long)(n), sizeof(*(ptr))); \ 249 #define _protect_cmpxchg_local(pcp, o, n) \ argument 253 __ret = cmpxchg_local(raw_cpu_ptr(&(pcp)), o, n); \ 258 #define this_cpu_cmpxchg_1(ptr, o, n) _protect_cmpxchg_local(ptr, o, n) argument 259 #define this_cpu_cmpxchg_2(ptr, o, n) _protect_cmpxchg_local(ptr, o, n) argument 260 #define this_cpu_cmpxchg_4(ptr, o, n) _protect_cmpxchg_local(ptr, o, n) argument 261 #define this_cpu_cmpxchg_8(ptr, o, n) _protect_cmpxchg_local(ptr, o, n) argument [all …]
|
/linux-4.1.27/arch/tile/include/asm/ |
D | cmpxchg.h | 34 int _atomic_xchg(int *ptr, int n); 37 int _atomic_cmpxchg(int *ptr, int o, int n); 38 long long _atomic64_xchg(long long *v, long long n); 41 long long _atomic64_cmpxchg(long long *v, long long o, long long n); 43 #define xchg(ptr, n) \ argument 48 (typeof(*(ptr)))_atomic_xchg((int *)(ptr), (int)(n)); \ 51 #define cmpxchg(ptr, o, n) \ argument 57 (int)n); \ 60 #define xchg64(ptr, n) \ argument 66 (long long)(n)); \ [all …]
|
D | delay.h | 26 #define udelay(n) (__builtin_constant_p(n) ? \ argument 27 ((n) > 20000 ? __bad_udelay() : __ndelay((n) * 1000)) : \ 28 __udelay(n)) 30 #define ndelay(n) (__builtin_constant_p(n) ? \ argument 31 ((n) > 20000 ? __bad_ndelay() : __ndelay(n)) : \ 32 __ndelay(n))
|
D | uaccess.h | 346 void __user *to, const void *from, unsigned long n); 349 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument 352 return __copy_to_user_inatomic(to, from, n); in __copy_to_user() 356 copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument 358 if (access_ok(VERIFY_WRITE, to, n)) in copy_to_user() 359 n = __copy_to_user(to, from, n); in copy_to_user() 360 return n; in copy_to_user() 386 void *to, const void __user *from, unsigned long n); 388 void *to, const void __user *from, unsigned long n); 391 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument [all …]
|
/linux-4.1.27/arch/hexagon/include/asm/ |
D | uaccess.h | 71 unsigned long n); 73 unsigned long n); 75 #define __copy_from_user(to, from, n) __copy_from_user_hexagon(to, from, n) argument 76 #define __copy_to_user(to, from, n) __copy_to_user_hexagon(to, from, n) argument 87 #define __strncpy_from_user(dst, src, n) hexagon_strncpy_from_user(dst, src, n) argument 92 extern long __strnlen_user(const char __user *src, long n); 95 long n); 101 long n) in hexagon_strncpy_from_user() argument 103 long res = __strnlen_user(src, n); in hexagon_strncpy_from_user() 107 if (res > n) { in hexagon_strncpy_from_user() [all …]
|
/linux-4.1.27/drivers/staging/wlan-ng/ |
D | p80211hdr.h | 134 #define WLAN_GET_FC_FTYPE(n) ((((u16)(n)) & (BIT(2) | BIT(3))) >> 2) argument 135 #define WLAN_GET_FC_FSTYPE(n) ((((u16)(n)) & (BIT(4)|BIT(5)|BIT(6)|BIT(7))) >> 4) argument 136 #define WLAN_GET_FC_TODS(n) ((((u16)(n)) & (BIT(8))) >> 8) argument 137 #define WLAN_GET_FC_FROMDS(n) ((((u16)(n)) & (BIT(9))) >> 9) argument 138 #define WLAN_GET_FC_ISWEP(n) ((((u16)(n)) & (BIT(14))) >> 14) argument 140 #define WLAN_SET_FC_FTYPE(n) (((u16)(n)) << 2) argument 141 #define WLAN_SET_FC_FSTYPE(n) (((u16)(n)) << 4) argument 142 #define WLAN_SET_FC_TODS(n) (((u16)(n)) << 8) argument 143 #define WLAN_SET_FC_FROMDS(n) (((u16)(n)) << 9) argument 144 #define WLAN_SET_FC_ISWEP(n) (((u16)(n)) << 14) argument
|
D | p80211mgmt.h | 199 #define WLAN_GET_MGMT_CAP_INFO_ESS(n) ((n) & BIT(0)) argument 200 #define WLAN_GET_MGMT_CAP_INFO_IBSS(n) (((n) & BIT(1)) >> 1) argument 201 #define WLAN_GET_MGMT_CAP_INFO_CFPOLLABLE(n) (((n) & BIT(2)) >> 2) argument 202 #define WLAN_GET_MGMT_CAP_INFO_CFPOLLREQ(n) (((n) & BIT(3)) >> 3) argument 203 #define WLAN_GET_MGMT_CAP_INFO_PRIVACY(n) (((n) & BIT(4)) >> 4) argument 205 #define WLAN_GET_MGMT_CAP_INFO_SHORT(n) (((n) & BIT(5)) >> 5) argument 206 #define WLAN_GET_MGMT_CAP_INFO_PBCC(n) (((n) & BIT(6)) >> 6) argument 207 #define WLAN_GET_MGMT_CAP_INFO_AGILITY(n) (((n) & BIT(7)) >> 7) argument 209 #define WLAN_SET_MGMT_CAP_INFO_ESS(n) (n) argument 210 #define WLAN_SET_MGMT_CAP_INFO_IBSS(n) ((n) << 1) argument [all …]
|
/linux-4.1.27/sound/isa/cs423x/ |
D | cs4231.c | 71 static int snd_cs4231_match(struct device *dev, unsigned int n) in snd_cs4231_match() argument 73 if (!enable[n]) in snd_cs4231_match() 76 if (port[n] == SNDRV_AUTO_PORT) { in snd_cs4231_match() 80 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_cs4231_match() 84 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_cs4231_match() 91 static int snd_cs4231_probe(struct device *dev, unsigned int n) in snd_cs4231_probe() argument 97 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_cs4231_probe() 101 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], dma2[n], in snd_cs4231_probe() 116 chip->pcm->name, chip->port, irq[n], dma1[n]); in snd_cs4231_probe() 117 if (dma2[n] >= 0) in snd_cs4231_probe() [all …]
|
/linux-4.1.27/drivers/video/fbdev/core/ |
D | sysfillrect.c | 26 unsigned long pat, unsigned n, int bits) in bitfill_aligned() argument 30 if (!n) in bitfill_aligned() 34 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitfill_aligned() 36 if (dst_idx+n <= bits) { in bitfill_aligned() 48 n -= bits - dst_idx; in bitfill_aligned() 52 n /= bits; in bitfill_aligned() 53 while (n >= 8) { in bitfill_aligned() 62 n -= 8; in bitfill_aligned() 64 while (n--) in bitfill_aligned() 82 unsigned long pat, int left, int right, unsigned n, int bits) in bitfill_unaligned() argument [all …]
|
D | syscopyarea.c | 29 const unsigned long *src, unsigned src_idx, int bits, unsigned n) in bitcpy() argument 36 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitcpy() 40 if (dst_idx+n <= bits) { in bitcpy() 52 n -= bits - dst_idx; in bitcpy() 56 n /= bits; in bitcpy() 57 while (n >= 8) { in bitcpy() 66 n -= 8; in bitcpy() 68 while (n--) in bitcpy() 83 if (dst_idx+n <= bits) { in bitcpy() 90 } else if (src_idx+n <= bits) { in bitcpy() [all …]
|
D | cfbfillrect.c | 36 unsigned long pat, unsigned n, int bits, u32 bswapmask) in bitfill_aligned() argument 40 if (!n) in bitfill_aligned() 44 last = ~fb_shifted_pixels_mask_long(p, (dst_idx+n) % bits, bswapmask); in bitfill_aligned() 46 if (dst_idx+n <= bits) { in bitfill_aligned() 58 n -= bits - dst_idx; in bitfill_aligned() 62 n /= bits; in bitfill_aligned() 63 while (n >= 8) { in bitfill_aligned() 72 n -= 8; in bitfill_aligned() 74 while (n--) in bitfill_aligned() 93 unsigned long pat, int left, int right, unsigned n, int bits) in bitfill_unaligned() argument [all …]
|
D | cfbcopyarea.c | 48 unsigned n, u32 bswapmask) in bitcpy() argument 59 (char *)src + ((src_idx & (bits - 1))) / 8, n / 8); in bitcpy() 64 last = ~fb_shifted_pixels_mask_long(p, (dst_idx+n) % bits, bswapmask); in bitcpy() 69 if (dst_idx+n <= bits) { in bitcpy() 82 n -= bits - dst_idx; in bitcpy() 86 n /= bits; in bitcpy() 87 while (n >= 8) { in bitcpy() 96 n -= 8; in bitcpy() 98 while (n--) in bitcpy() 113 if (dst_idx+n <= bits) { in bitcpy() [all …]
|
/linux-4.1.27/arch/mn10300/include/asm/ |
D | syscall.h | 55 unsigned int i, unsigned int n, in syscall_get_arguments() argument 60 if (!n--) break; in syscall_get_arguments() 63 if (!n--) break; in syscall_get_arguments() 66 if (!n--) break; in syscall_get_arguments() 69 if (!n--) break; in syscall_get_arguments() 72 if (!n--) break; in syscall_get_arguments() 75 if (!n--) break; in syscall_get_arguments() 78 if (!n--) break; in syscall_get_arguments() 87 unsigned int i, unsigned int n, in syscall_set_arguments() argument 92 if (!n--) break; in syscall_set_arguments() [all …]
|
D | uaccess.h | 364 unsigned long n) in __generic_copy_from_user_nocheck() argument 366 __copy_user_zeroing(to, from, n); in __generic_copy_from_user_nocheck() 367 return n; in __generic_copy_from_user_nocheck() 372 unsigned long n) in __generic_copy_to_user_nocheck() argument 374 __copy_user(to, from, n); in __generic_copy_to_user_nocheck() 375 return n; in __generic_copy_to_user_nocheck() 429 unsigned long n) 431 if (access_ok(VERIFY_WRITE, to, n)) 432 __constant_copy_user(to, from, n); 433 return n; [all …]
|
/linux-4.1.27/arch/c6x/include/asm/ |
D | syscall.h | 50 unsigned int n, unsigned long *args) in syscall_get_arguments() argument 54 if (!n--) in syscall_get_arguments() 58 if (!n--) in syscall_get_arguments() 62 if (!n--) in syscall_get_arguments() 66 if (!n--) in syscall_get_arguments() 70 if (!n--) in syscall_get_arguments() 74 if (!n--) in syscall_get_arguments() 78 if (!n--) in syscall_get_arguments() 87 unsigned int i, unsigned int n, in syscall_set_arguments() argument 92 if (!n--) in syscall_set_arguments() [all …]
|
/linux-4.1.27/drivers/firewire/ |
D | ohci.h | 104 #define OHCI1394_IsoXmitContextBase(n) (0x200 + 16 * (n)) argument 105 #define OHCI1394_IsoXmitContextControlSet(n) (0x200 + 16 * (n)) argument 106 #define OHCI1394_IsoXmitContextControlClear(n) (0x204 + 16 * (n)) argument 107 #define OHCI1394_IsoXmitCommandPtr(n) (0x20C + 16 * (n)) argument 110 #define OHCI1394_IsoRcvContextBase(n) (0x400 + 32 * (n)) argument 111 #define OHCI1394_IsoRcvContextControlSet(n) (0x400 + 32 * (n)) argument 112 #define OHCI1394_IsoRcvContextControlClear(n) (0x404 + 32 * (n)) argument 113 #define OHCI1394_IsoRcvCommandPtr(n) (0x40C + 32 * (n)) argument 114 #define OHCI1394_IsoRcvContextMatch(n) (0x410 + 32 * (n)) argument
|
/linux-4.1.27/fs/ubifs/ |
D | tnc.c | 181 struct ubifs_old_idx *old_idx, *n; in destroy_old_idx() local 183 rbtree_postorder_for_each_entry_safe(old_idx, n, &c->old_idx, rb) in destroy_old_idx() 215 const int n = zn->child_cnt; in copy_znode() local 218 for (i = 0; i < n; i++) { in copy_znode() 573 struct ubifs_znode *znode, int n) in get_znode() argument 577 zbr = &znode->zbranch[n]; in get_znode() 581 znode = ubifs_load_znode(c, zbr, znode, n); in get_znode() 594 static int tnc_next(struct ubifs_info *c, struct ubifs_znode **zn, int *n) in tnc_next() argument 597 int nn = *n; in tnc_next() 601 *n = nn; in tnc_next() [all …]
|
/linux-4.1.27/fs/fscache/ |
D | histogram.c | 30 unsigned n[5], t; in fscache_histogram_show() local 41 n[0] = atomic_read(&fscache_obj_instantiate_histogram[index]); in fscache_histogram_show() 42 n[1] = atomic_read(&fscache_ops_histogram[index]); in fscache_histogram_show() 43 n[2] = atomic_read(&fscache_objs_histogram[index]); in fscache_histogram_show() 44 n[3] = atomic_read(&fscache_retrieval_delay_histogram[index]); in fscache_histogram_show() 45 n[4] = atomic_read(&fscache_retrieval_histogram[index]); in fscache_histogram_show() 46 if (!(n[0] | n[1] | n[2] | n[3] | n[4])) in fscache_histogram_show() 52 index, t, n[0], n[1], n[2], n[3], n[4]); in fscache_histogram_show()
|
/linux-4.1.27/drivers/md/persistent-data/ |
D | dm-btree-remove.c | 56 static void node_shift(struct btree_node *n, int shift) in node_shift() argument 58 uint32_t nr_entries = le32_to_cpu(n->header.nr_entries); in node_shift() 59 uint32_t value_size = le32_to_cpu(n->header.value_size); in node_shift() 64 BUG_ON((void *) key_ptr(n, shift) >= value_ptr(n, shift)); in node_shift() 65 memmove(key_ptr(n, 0), in node_shift() 66 key_ptr(n, shift), in node_shift() 68 memmove(value_ptr(n, 0), in node_shift() 69 value_ptr(n, shift), in node_shift() 72 BUG_ON(nr_entries + shift > le32_to_cpu(n->header.max_entries)); in node_shift() 73 memmove(key_ptr(n, shift), in node_shift() [all …]
|
/linux-4.1.27/net/tipc/ |
D | msg.h | 183 static inline void msg_set_user(struct tipc_msg *m, u32 n) in msg_set_user() argument 185 msg_set_bits(m, 0, 25, 0xf, n); in msg_set_user() 193 static inline void msg_set_hdr_sz(struct tipc_msg *m, u32 n) in msg_set_hdr_sz() argument 195 msg_set_bits(m, 0, 21, 0xf, n>>2); in msg_set_hdr_sz() 213 static inline void msg_set_non_seq(struct tipc_msg *m, u32 n) in msg_set_non_seq() argument 215 msg_set_bits(m, 0, 20, 1, n); in msg_set_non_seq() 261 static inline void msg_set_type(struct tipc_msg *m, u32 n) in msg_set_type() argument 263 msg_set_bits(m, 1, 29, 0x7, n); in msg_set_type() 311 static inline void msg_set_lookup_scope(struct tipc_msg *m, u32 n) in msg_set_lookup_scope() argument 313 msg_set_bits(m, 1, 19, 0x3, n); in msg_set_lookup_scope() [all …]
|
/linux-4.1.27/drivers/clk/mvebu/ |
D | common.c | 116 int n; in mvebu_coreclk_setup() local 158 for (n = 0; n < desc->num_ratios; n++) { in mvebu_coreclk_setup() 159 const char *rclk_name = desc->ratios[n].name; in mvebu_coreclk_setup() 163 2+n, &rclk_name); in mvebu_coreclk_setup() 164 desc->get_clk_ratio(base, desc->ratios[n].id, &mult, &div); in mvebu_coreclk_setup() 165 clk_data.clks[2+n] = clk_register_fixed_factor(NULL, rclk_name, in mvebu_coreclk_setup() 167 WARN_ON(IS_ERR(clk_data.clks[2+n])); in mvebu_coreclk_setup() 209 int n; in clk_gating_get_src() local 214 for (n = 0; n < ctrl->num_gates; n++) { in clk_gating_get_src() 216 to_clk_gate(__clk_get_hw(ctrl->gates[n])); in clk_gating_get_src() [all …]
|
D | kirkwood.c | 265 int n; in clk_muxing_get_src() local 270 for (n = 0; n < ctrl->num_muxes; n++) { in clk_muxing_get_src() 272 to_clk_mux(__clk_get_hw(ctrl->muxes[n])); in clk_muxing_get_src() 274 return ctrl->muxes[n]; in clk_muxing_get_src() 284 int n; in kirkwood_clk_muxing_setup() local 298 for (n = 0; desc[n].name;) in kirkwood_clk_muxing_setup() 299 n++; in kirkwood_clk_muxing_setup() 301 ctrl->num_muxes = n; in kirkwood_clk_muxing_setup() 307 for (n = 0; n < ctrl->num_muxes; n++) { in kirkwood_clk_muxing_setup() 308 ctrl->muxes[n] = clk_register_mux(NULL, desc[n].name, in kirkwood_clk_muxing_setup() [all …]
|
/linux-4.1.27/drivers/media/platform/s5p-g2d/ |
D | g2d-hw.c | 29 u32 n; in g2d_set_src_size() local 34 n = f->o_height & 0xFFF; in g2d_set_src_size() 35 n <<= 16; in g2d_set_src_size() 36 n |= f->o_width & 0xFFF; in g2d_set_src_size() 37 w(n, SRC_LEFT_TOP_REG); in g2d_set_src_size() 39 n = f->bottom & 0xFFF; in g2d_set_src_size() 40 n <<= 16; in g2d_set_src_size() 41 n |= f->right & 0xFFF; in g2d_set_src_size() 42 w(n, SRC_RIGHT_BOTTOM_REG); in g2d_set_src_size() 54 u32 n; in g2d_set_dst_size() local [all …]
|
/linux-4.1.27/drivers/phy/ |
D | phy-qcom-ufs-qmp-20nm.h | 24 #define TX_OFF(n, x) (0x400 + (0x400 * n) + x) argument 25 #define RX_OFF(n, x) (0x600 + (0x400 * n) + x) argument 58 #define QSERDES_TX_EMP_POST1_LVL(n) TX_OFF(n, 0x08) argument 59 #define QSERDES_TX_DRV_LVL(n) TX_OFF(n, 0x0C) argument 60 #define QSERDES_TX_LANE_MODE(n) TX_OFF(n, 0x54) argument 63 #define QSERDES_RX_CDR_CONTROL1(n) RX_OFF(n, 0x0) argument 64 #define QSERDES_RX_CDR_CONTROL_HALF(n) RX_OFF(n, 0x8) argument 65 #define QSERDES_RX_RX_EQ_GAIN1_LSB(n) RX_OFF(n, 0xA8) argument 66 #define QSERDES_RX_RX_EQ_GAIN1_MSB(n) RX_OFF(n, 0xAC) argument 67 #define QSERDES_RX_RX_EQ_GAIN2_LSB(n) RX_OFF(n, 0xB0) argument [all …]
|
/linux-4.1.27/drivers/edac/ |
D | ppc4xx_edac.c | 137 #define SDRAM_MBCF_SZ_TO_MiB(n) (SDRAM_MBCF_SZ_MiB_MIN \ argument 138 << (SDRAM_MBCF_SZ_DECODE(n))) 139 #define SDRAM_MBCF_SZ_TO_PAGES(n) (SDRAM_MBCF_SZ_MiB_MIN \ argument 141 SDRAM_MBCF_SZ_DECODE(n))) 320 int n, total = 0; in ppc4xx_edac_generate_bank_message() local 323 n = snprintf(buffer, size, "%s: Banks: ", mci->dev_name); in ppc4xx_edac_generate_bank_message() 325 if (n < 0 || n >= size) in ppc4xx_edac_generate_bank_message() 328 buffer += n; in ppc4xx_edac_generate_bank_message() 329 size -= n; in ppc4xx_edac_generate_bank_message() 330 total += n; in ppc4xx_edac_generate_bank_message() [all …]
|
/linux-4.1.27/arch/powerpc/kvm/ |
D | book3s_32_sr.S | 41 #define XCHG_SR(n) lwz r9, (SVCPU_SR+(n*4))(r3); \ argument 42 mtsr n, r9 63 #define KVM_KILL_BAT(n, reg) \ argument 64 mtspr SPRN_IBAT##n##U,reg; \ 65 mtspr SPRN_IBAT##n##L,reg; \ 66 mtspr SPRN_DBAT##n##U,reg; \ 67 mtspr SPRN_DBAT##n##L,reg; \ 103 #define KVM_LOAD_BAT(n, reg, RA, RB) \ argument 104 lwz RA,(n*16)+0(reg); \ 105 lwz RB,(n*16)+4(reg); \ [all …]
|
/linux-4.1.27/kernel/ |
D | notifier.c | 22 struct notifier_block *n) in notifier_chain_register() argument 25 if (n->priority > (*nl)->priority) in notifier_chain_register() 29 n->next = *nl; in notifier_chain_register() 30 rcu_assign_pointer(*nl, n); in notifier_chain_register() 35 struct notifier_block *n) in notifier_chain_cond_register() argument 38 if ((*nl) == n) in notifier_chain_cond_register() 40 if (n->priority > (*nl)->priority) in notifier_chain_cond_register() 44 n->next = *nl; in notifier_chain_cond_register() 45 rcu_assign_pointer(*nl, n); in notifier_chain_cond_register() 50 struct notifier_block *n) in notifier_chain_unregister() argument [all …]
|
/linux-4.1.27/drivers/atm/ |
D | uPD98401.h | 109 #define uPD98401_MSH(n) (0x10+(n)) /* Mailbox n Start Address High */ argument 110 #define uPD98401_MSL(n) (0x14+(n)) /* Mailbox n Start Address High */ argument 111 #define uPD98401_MBA(n) (0x18+(n)) /* Mailbox n Bottom Address */ argument 112 #define uPD98401_MTA(n) (0x1c+(n)) /* Mailbox n Tail Address */ argument 113 #define uPD98401_MWA(n) (0x20+(n)) /* Mailbox n Write Address */ argument 160 #define uPD98401_IM(n) (0x40000+(n)) /* Scheduler n I and M */ argument 161 #define uPD98401_X(n) (0x40010+(n)) /* Scheduler n X */ argument 162 #define uPD98401_Y(n) (0x40020+(n)) /* Scheduler n Y */ argument 163 #define uPD98401_PC(n) (0x40030+(n)) /* Scheduler n P, C, p and c */ argument 164 #define uPD98401_PS(n) (0x40040+(n)) /* Scheduler n priority and status */ argument
|
/linux-4.1.27/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 47 u32 n; in tune_ahash_max() local 52 n = curr + AHASH_INIT_SIZE; in tune_ahash_max() 56 return n > curr && n <= 64 ? n : curr; in tune_ahash_max() 121 hbucket_elem_add(struct hbucket *n, u8 ahash_max, size_t dsize) in hbucket_elem_add() argument 123 if (n->pos >= n->size) { in hbucket_elem_add() 126 if (n->size >= ahash_max) in hbucket_elem_add() 130 tmp = kzalloc((n->size + AHASH_INIT_SIZE) * dsize, in hbucket_elem_add() 134 if (n->size) { in hbucket_elem_add() 135 memcpy(tmp, n->value, n->size * dsize); in hbucket_elem_add() 136 kfree(n->value); in hbucket_elem_add() [all …]
|
/linux-4.1.27/arch/m68k/lib/ |
D | memmove.c | 10 void *memmove(void *dest, const void *src, size_t n) in memmove() argument 15 if (!n) in memmove() 25 n--; in memmove() 27 if (n > 2 && (long)dest & 2) { in memmove() 33 n -= 2; in memmove() 35 temp = n >> 2; in memmove() 46 if (n & 2) { in memmove() 53 if (n & 1) { in memmove() 59 dest = (char *)dest + n; in memmove() 60 src = (const char *)src + n; in memmove() [all …]
|
/linux-4.1.27/security/keys/ |
D | proc.c | 85 static struct rb_node *key_serial_next(struct seq_file *p, struct rb_node *n) in key_serial_next() argument 89 n = rb_next(n); in key_serial_next() 90 while (n) { in key_serial_next() 91 struct key *key = rb_entry(n, struct key, serial_node); in key_serial_next() 94 n = rb_next(n); in key_serial_next() 96 return n; in key_serial_next() 107 struct rb_node *n = key_serial_tree.rb_node; in find_ge_key() local 110 while (n) { in find_ge_key() 111 struct key *key = rb_entry(n, struct key, serial_node); in find_ge_key() 115 n = n->rb_left; in find_ge_key() [all …]
|
/linux-4.1.27/arch/arc/kernel/ |
D | setup.c | 148 int n = 0; in arc_cpu_mumbojumbo() local 161 n += scnprintf(buf + n, len - n, in arc_cpu_mumbojumbo() 168 n += scnprintf(buf + n, len - n, in arc_cpu_mumbojumbo() 177 n += scnprintf(buf + n, len - n, "UNKNOWN ARC Processor\n"); in arc_cpu_mumbojumbo() 179 n += scnprintf(buf + n, len - n, "CPU speed\t: %u.%02u Mhz\n", in arc_cpu_mumbojumbo() 183 n += scnprintf(buf + n, len - n, "Timers\t\t: %s%s%s%s\nISA Extn\t: ", in arc_cpu_mumbojumbo() 188 n += i = scnprintf(buf + n, len - n, "%s%s", in arc_cpu_mumbojumbo() 192 n += scnprintf(buf + n, len - n, "\n\t\t: "); in arc_cpu_mumbojumbo() 194 n += scnprintf(buf + n, len - n, "%s%s%s%s%s%s%s%s\n", in arc_cpu_mumbojumbo() 204 n += scnprintf(buf + n, len - n, in arc_cpu_mumbojumbo() [all …]
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
D | perf_event.h | 238 #define __EVENT_CONSTRAINT(c, n, m, w, o, f) {\ argument 239 { .idxmsk64 = (n) }, \ 247 #define EVENT_CONSTRAINT(c, n, m) \ argument 248 __EVENT_CONSTRAINT(c, n, m, HWEIGHT(n), 0, 0) 250 #define INTEL_EXCLEVT_CONSTRAINT(c, n) \ argument 251 __EVENT_CONSTRAINT(c, n, ARCH_PERFMON_EVENTSEL_EVENT, HWEIGHT(n),\ 275 #define EVENT_CONSTRAINT_OVERLAP(c, n, m) \ argument 276 __EVENT_CONSTRAINT(c, n, m, HWEIGHT(n), 1, 0) 281 #define INTEL_EVENT_CONSTRAINT(c, n) \ argument 282 EVENT_CONSTRAINT(c, n, ARCH_PERFMON_EVENTSEL_EVENT) [all …]
|
/linux-4.1.27/net/ipv4/ |
D | fib_trie.c | 92 #define IS_TRIE(n) ((n)->pos >= KEYLENGTH) argument 93 #define IS_TNODE(n) ((n)->bits) argument 94 #define IS_LEAF(n) (!(n)->bits) argument 118 #define TNODE_SIZE(n) offsetof(struct tnode, kv[0].tnode[n]) argument 176 static inline void node_set_parent(struct key_vector *n, struct key_vector *tp) in node_set_parent() argument 178 if (n) in node_set_parent() 179 rcu_assign_pointer(tn_info(n)->parent, tp); in node_set_parent() 182 #define NODE_INIT_PARENT(n, p) RCU_INIT_POINTER(tn_info(n)->parent, p) argument 286 struct tnode *n = container_of(head, struct tnode, rcu); in __node_free_rcu() local 288 if (!n->tn_bits) in __node_free_rcu() [all …]
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | io.c | 127 _memset_io(volatile void __iomem *addr, int c, unsigned long n) in _memset_io() argument 135 while(n && !IO_CHECK_ALIGN(p, 4)) { in _memset_io() 138 n--; in _memset_io() 140 while(n >= 4) { in _memset_io() 143 n -= 4; in _memset_io() 145 while(n) { in _memset_io() 148 n--; in _memset_io() 155 unsigned long n) in _memcpy_fromio() argument 160 while(n && (!IO_CHECK_ALIGN(vsrc, 4) || !IO_CHECK_ALIGN(dest, 4))) { in _memcpy_fromio() 165 n--; in _memcpy_fromio() [all …]
|
D | eeh_cache.c | 65 struct rb_node *n = pci_io_addr_cache_root.rb_root.rb_node; in __eeh_addr_cache_get_device() local 67 while (n) { in __eeh_addr_cache_get_device() 69 piar = rb_entry(n, struct pci_io_addr_range, rb_node); in __eeh_addr_cache_get_device() 72 n = n->rb_left; in __eeh_addr_cache_get_device() 74 n = n->rb_right; in __eeh_addr_cache_get_device() 110 struct rb_node *n; in eeh_addr_cache_print() local 113 n = rb_first(&cache->rb_root); in eeh_addr_cache_print() 114 while (n) { in eeh_addr_cache_print() 116 piar = rb_entry(n, struct pci_io_addr_range, rb_node); in eeh_addr_cache_print() 121 n = rb_next(n); in eeh_addr_cache_print() [all …]
|
/linux-4.1.27/arch/blackfin/include/asm/ |
D | uaccess.h | 166 #define __copy_from_user(to, from, n) copy_from_user(to, from, n) argument 167 #define __copy_to_user(to, from, n) copy_to_user(to, from, n) argument 171 #define copy_to_user_ret(to, from, n, retval) ({ if (copy_to_user(to, from, n))\ argument 174 #define copy_from_user_ret(to, from, n, retval) ({ if (copy_from_user(to, from, n))\ argument 178 copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument 180 if (access_ok(VERIFY_READ, from, n)) in copy_from_user() 181 memcpy(to, (const void __force *)from, n); in copy_from_user() 183 return n; in copy_from_user() 188 copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() argument 190 if (access_ok(VERIFY_WRITE, to, n)) in copy_to_user() [all …]
|
/linux-4.1.27/fs/minix/ |
D | itree_v2.c | 8 static inline unsigned long block_to_cpu(block_t n) in block_to_cpu() argument 10 return n; in block_to_cpu() 13 static inline block_t cpu_to_block(unsigned long n) in cpu_to_block() argument 15 return n; in cpu_to_block() 28 int n = 0; in block_to_path() local 42 offsets[n++] = block; in block_to_path() 44 offsets[n++] = DIRCOUNT; in block_to_path() 45 offsets[n++] = block; in block_to_path() 47 offsets[n++] = DIRCOUNT + 1; in block_to_path() 48 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path() [all …]
|
D | itree_v1.c | 9 static inline unsigned long block_to_cpu(block_t n) in block_to_cpu() argument 11 return n; in block_to_cpu() 14 static inline block_t cpu_to_block(unsigned long n) in cpu_to_block() argument 16 return n; in cpu_to_block() 26 int n = 0; in block_to_path() local 38 offsets[n++] = block; in block_to_path() 40 offsets[n++] = 7; in block_to_path() 41 offsets[n++] = block; in block_to_path() 44 offsets[n++] = 8; in block_to_path() 45 offsets[n++] = block>>9; in block_to_path() [all …]
|
/linux-4.1.27/drivers/net/ethernet/neterion/ |
D | s2io-regs.h | 182 #define TX_TRAFFIC_INT_n(n) s2BIT(n) argument 186 #define RX_TRAFFIC_INT_n(n) s2BIT(n) argument 192 #define PIC_CNTL_SHARED_SPLITS(n) vBIT(n,11,5) argument 232 #define STATREQTO_VAL(n) TBD argument 255 #define STAT_BC(n) vBIT(n,4,12) argument 263 #define STAT_TRSF_PER(n) TBD argument 265 #define SET_UPDT_PERIOD(n) vBIT((PER_SEC*n),32,32) argument 439 #define TTI_CMD_MEM_OFFSET(n) vBIT(n,26,6) argument 442 #define TTI_DATA1_MEM_TX_TIMER_VAL(n) vBIT(n,6,26) argument 443 #define TTI_DATA1_MEM_TX_TIMER_AC_CI(n) vBIT(n,38,2) argument [all …]
|
/linux-4.1.27/sound/soc/ux500/ |
D | ux500_msp_i2s.h | 157 #define MSP_RX_CLKPOL_BIT(n) ((n & RCKPOL_MASK) << RCKPOL_SHIFT) argument 158 #define MSP_TX_CLKPOL_BIT(n) ((n & TCKPOL_MASK) << TCKPOL_SHIFT) argument 186 #define MSP_P1_ELEM_LEN_BITS(n) (n & P1ELEN_MASK) argument 187 #define MSP_P2_ELEM_LEN_BITS(n) (((n) << P2ELEN_SHIFT) & P2ELEN_MASK) argument 188 #define MSP_P1_FRAME_LEN_BITS(n) (((n) << P1FLEN_SHIFT) & P1FLEN_MASK) argument 189 #define MSP_P2_FRAME_LEN_BITS(n) (((n) << P2FLEN_SHIFT) & P2FLEN_MASK) argument 190 #define MSP_DATA_DELAY_BITS(n) (((n) << DDLY_SHIFT) & DDLY_MASK) argument 191 #define MSP_DATA_TYPE_BITS(n) (((n) << DTYP_SHIFT) & DTYP_MASK) argument 192 #define MSP_P2_START_MODE_BIT(n) ((n << P2SM_SHIFT) & P2SM_MASK) argument 193 #define MSP_P2_ENABLE_BIT(n) ((n << P2EN_SHIFT) & P2EN_MASK) argument [all …]
|
/linux-4.1.27/include/acpi/platform/ |
D | acenv.h | 350 #define ACPI_STRNCPY(d,s,n) (void) strncpy((d), (s), (acpi_size)(n)) argument 351 #define ACPI_STRNCMP(d,s,n) strncmp((d), (s), (acpi_size)(n)) argument 354 #define ACPI_STRNCAT(d,s,n) strncat((d), (s), (acpi_size)(n)) argument 355 #define ACPI_STRTOUL(d,s,n) strtoul((d), (s), (acpi_size)(n)) argument 356 #define ACPI_MEMCMP(s1,s2,n) memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n)) argument 357 #define ACPI_MEMCPY(d,s,n) (void) memcpy((d), (s), (acpi_size)(n)) argument 358 #define ACPI_MEMSET(d,s,n) (void) memset((d), (s), (acpi_size)(n)) argument 410 #define ACPI_STRNCPY(d,s,n) (void) acpi_ut_strncpy ((d), (s), (acpi_size)(n)) argument 411 #define ACPI_STRNCMP(d,s,n) acpi_ut_strncmp ((d), (s), (acpi_size)(n)) argument 414 #define ACPI_STRNCAT(d,s,n) acpi_ut_strncat ((d), (s), (acpi_size)(n)) argument [all …]
|
/linux-4.1.27/arch/um/drivers/ |
D | net_user.c | 97 int n; in net_read() local 99 n = read(fd, buf, len); in net_read() 101 if ((n < 0) && (errno == EAGAIN)) in net_read() 103 else if (n == 0) in net_read() 105 return n; in net_read() 110 int n; in net_recvfrom() local 112 CATCH_EINTR(n = recvfrom(fd, buf, len, 0, NULL, NULL)); in net_recvfrom() 113 if (n < 0) { in net_recvfrom() 118 else if (n == 0) in net_recvfrom() 120 return n; in net_recvfrom() [all …]
|
D | ubd_kern.c | 63 __u64 n; in ubd_test_bit() local 67 n = bit / bits; in ubd_test_bit() 69 return (data[n] & (1 << off)) != 0; in ubd_test_bit() 74 __u64 n; in ubd_set_bit() local 78 n = bit / bits; in ubd_set_bit() 80 data[n] |= (1 << off); in ubd_set_bit() 244 int n = -1; in parse_unit() local 247 n = simple_strtoul(str, &end, 0); in parse_unit() 253 n = *str - 'a'; in parse_unit() 257 return n; in parse_unit() [all …]
|
D | line.c | 36 int n; in write_room() local 42 n = line->head - line->tail; in write_room() 44 if (n <= 0) in write_room() 45 n += LINE_BUFSIZE; /* The other case */ in write_room() 46 return n - 1; in write_room() 131 int n, count; in flush_buffer() local 140 n = write_chan(line->chan_out, line->head, count, in flush_buffer() 142 if (n < 0) in flush_buffer() 143 return n; in flush_buffer() 144 if (n == count) { in flush_buffer() [all …]
|
/linux-4.1.27/arch/arm/include/asm/ |
D | syscall.h | 57 unsigned int i, unsigned int n, in syscall_get_arguments() argument 60 if (n == 0) in syscall_get_arguments() 63 if (i + n > SYSCALL_MAX_ARGS) { in syscall_get_arguments() 65 unsigned int n_bad = n + i - SYSCALL_MAX_ARGS; in syscall_get_arguments() 67 __func__, i + n, SYSCALL_MAX_ARGS); in syscall_get_arguments() 69 n = SYSCALL_MAX_ARGS - i; in syscall_get_arguments() 76 n--; in syscall_get_arguments() 79 memcpy(args, ®s->ARM_r0 + i, n * sizeof(args[0])); in syscall_get_arguments() 84 unsigned int i, unsigned int n, in syscall_set_arguments() argument 87 if (n == 0) in syscall_set_arguments() [all …]
|
D | delay.h | 30 #define __delay(n) arm_delay_ops.delay(n) argument 51 #define __udelay(n) arm_delay_ops.udelay(n) argument 52 #define __const_udelay(n) arm_delay_ops.const_udelay(n) argument 54 #define udelay(n) \ argument 55 (__builtin_constant_p(n) ? \ 56 ((n) > (MAX_UDELAY_MS * 1000) ? __bad_udelay() : \ 57 __const_udelay((n) * UDELAY_MULT)) : \ 58 __udelay(n))
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
D | regs-gsc.h | 203 #define GSC_IN_BASE_ADDR_Y(n) (0x50 + (n) * 0x4) argument 205 #define GSC_IN_BASE_ADDR_Y_CUR(n) (0x60 + (n) * 0x4) argument 210 #define GSC_IN_BASE_ADDR_CB(n) (0x80 + (n) * 0x4) argument 212 #define GSC_IN_BASE_ADDR_CB_CUR(n) (0x90 + (n) * 0x4) argument 217 #define GSC_IN_BASE_ADDR_CR(n) (0xB0 + (n) * 0x4) argument 219 #define GSC_IN_BASE_ADDR_CR_CUR(n) (0xC0 + (n) * 0x4) argument 230 #define GSC_OUT_BASE_ADDR_Y(n) (0x110 + (n) * 0x4) argument 235 #define GSC_OUT_BASE_ADDR_CB(n) (0x160 + (n) * 0x4) argument 240 #define GSC_OUT_BASE_ADDR_CR(n) (0x1B0 + (n) * 0x4) argument 249 #define GSC_HCOEF(n, s, x) (0x300 + (n) * 0x4 + (s) * 0x30 + (x) * 0x300) argument [all …]
|
/linux-4.1.27/arch/arm/plat-pxa/include/plat/ |
D | dma.h | 6 #define DCSR(n) DMAC_REG((n) << 2) argument 9 #define DDADR(n) DMAC_REG(0x0200 + ((n) << 4)) argument 10 #define DSADR(n) DMAC_REG(0x0204 + ((n) << 4)) argument 11 #define DTADR(n) DMAC_REG(0x0208 + ((n) << 4)) argument 12 #define DCMD(n) DMAC_REG(0x020c + ((n) << 4)) argument 13 #define DRCMR(n) DMAC_REG((((n) < 64) ? 0x0100 : 0x1100) + \ argument 14 (((n) & 0x3f) << 2))
|
/linux-4.1.27/arch/unicore32/configs/ |
D | unicore32_defconfig | 13 CONFIG_MODULES=n 22 CONFIG_CPU_TLB_SINGLE_ENTRY_DISABLE=n 26 CONFIG_PCI_LEGACY=n 42 CONFIG_CPU_FREQ=n 54 CONFIG_IPV6=n 61 CONFIG_USB_WLAN_HED_AQ3=n 62 CONFIG_USB_CMMB_INNOFIDEI=n 63 CONFIG_I2C_BATTERY_BQ27200=n 64 CONFIG_I2C_EEPROM_AT24=n 65 CONFIG_LCD_BACKLIGHT=n [all …]
|
/linux-4.1.27/arch/x86/platform/uv/ |
D | uv_irq.c | 56 struct uv_irq_2_mmr_pnode *n; in uv_set_irq_2_mmr_info() local 60 n = kmalloc_node(sizeof(struct uv_irq_2_mmr_pnode), GFP_KERNEL, in uv_set_irq_2_mmr_info() 62 if (!n) in uv_set_irq_2_mmr_info() 65 n->irq = irq; in uv_set_irq_2_mmr_info() 66 n->offset = offset; in uv_set_irq_2_mmr_info() 67 n->pnode = uv_blade_to_pnode(blade); in uv_set_irq_2_mmr_info() 79 kfree(n); in uv_set_irq_2_mmr_info() 90 rb_link_node(&n->list, parent, link); in uv_set_irq_2_mmr_info() 91 rb_insert_color(&n->list, &uv_irq_root); in uv_set_irq_2_mmr_info() 101 struct rb_node *n; in uv_irq_2_mmr_info() local [all …]
|
/linux-4.1.27/include/asm-generic/ |
D | uaccess.h | 80 const void __user * from, unsigned long n) in __copy_from_user() argument 82 if (__builtin_constant_p(n)) { in __copy_from_user() 83 switch(n) { in __copy_from_user() 103 memcpy(to, (const void __force *)from, n); in __copy_from_user() 110 const void *from, unsigned long n) in __copy_to_user() argument 112 if (__builtin_constant_p(n)) { in __copy_to_user() 113 switch(n) { in __copy_to_user() 133 memcpy((void __force *)to, from, n); in __copy_to_user() 256 const void __user * from, unsigned long n) in copy_from_user() argument 259 if (access_ok(VERIFY_READ, from, n)) in copy_from_user() [all …]
|
D | delay.h | 19 #define udelay(n) \ argument 21 if (__builtin_constant_p(n)) { \ 22 if ((n) / 20000 >= 1) \ 25 __const_udelay((n) * 0x10c7ul); \ 27 __udelay(n); \ 32 #define ndelay(n) \ argument 34 if (__builtin_constant_p(n)) { \ 35 if ((n) / 20000 >= 1) \ 38 __const_udelay((n) * 5ul); \ 40 __ndelay(n); \
|
D | div64.h | 25 # define do_div(n,base) ({ \ argument 28 __rem = ((uint64_t)(n)) % __base; \ 29 (n) = ((uint64_t)(n)) / __base; \ 40 # define do_div(n,base) ({ \ argument 43 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ 44 if (likely(((n) >> 32) == 0)) { \ 45 __rem = (uint32_t)(n) % __base; \ 46 (n) = (uint32_t)(n) / __base; \ 48 __rem = __div64_32(&(n), __base); \
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_bit.h | 28 static inline __uint64_t xfs_mask64hi(int n) in xfs_mask64hi() argument 30 return (__uint64_t)-1 << (64 - (n)); in xfs_mask64hi() 32 static inline __uint32_t xfs_mask32lo(int n) in xfs_mask32lo() argument 34 return ((__uint32_t)1 << (n)) - 1; in xfs_mask32lo() 36 static inline __uint64_t xfs_mask64lo(int n) in xfs_mask64lo() argument 38 return ((__uint64_t)1 << (n)) - 1; in xfs_mask64lo() 63 int n = 0; in xfs_lowbit64() local 66 n = ffs(w); in xfs_lowbit64() 70 n = ffs(w); in xfs_lowbit64() 71 if (n) in xfs_lowbit64() [all …]
|
/linux-4.1.27/drivers/gpu/drm/shmobile/ |
D | shmob_drm_regs.h | 154 #define LDBCR_UPC(n) (1 << ((n) + 16)) argument 155 #define LDBCR_UPF(n) (1 << ((n) + 8)) argument 156 #define LDBCR_UPD(n) (1 << ((n) + 0)) argument 157 #define LDBnBSIFR(n) (0xb20 + (n) * 0x20 + 0x00) argument 188 #define LDBnBSSZR(n) (0xb20 + (n) * 0x20 + 0x04) argument 193 #define LDBnBLOCR(n) (0xb20 + (n) * 0x20 + 0x08) argument 198 #define LDBnBSMWR(n) (0xb20 + (n) * 0x20 + 0x0c) argument 203 #define LDBnBSAYR(n) (0xb20 + (n) * 0x20 + 0x10) argument 212 #define LDBnBSACR(n) (0xb20 + (n) * 0x20 + 0x14) argument 221 #define LDBnBSAAR(n) (0xb20 + (n) * 0x20 + 0x18) argument [all …]
|
/linux-4.1.27/fs/sysv/ |
D | sysv.h | 191 static inline __u32 fs32_to_cpu(struct sysv_sb_info *sbi, __fs32 n) in fs32_to_cpu() argument 194 return PDP_swab((__force __u32)n); in fs32_to_cpu() 196 return le32_to_cpu((__force __le32)n); in fs32_to_cpu() 198 return be32_to_cpu((__force __be32)n); in fs32_to_cpu() 201 static inline __fs32 cpu_to_fs32(struct sysv_sb_info *sbi, __u32 n) in cpu_to_fs32() argument 204 return (__force __fs32)PDP_swab(n); in cpu_to_fs32() 206 return (__force __fs32)cpu_to_le32(n); in cpu_to_fs32() 208 return (__force __fs32)cpu_to_be32(n); in cpu_to_fs32() 211 static inline __fs32 fs32_add(struct sysv_sb_info *sbi, __fs32 *n, int d) in fs32_add() argument 214 *(__u32*)n = PDP_swab(PDP_swab(*(__u32*)n)+d); in fs32_add() [all …]
|
/linux-4.1.27/arch/s390/lib/ |
D | string.c | 27 static inline char *__strnend(const char *s, size_t n) in __strnend() argument 30 const char *p = s + n; in __strnend() 57 size_t strnlen(const char * s, size_t n) in strnlen() argument 59 return __strnend(s, n) - s; in strnlen() 116 char *strncpy(char *dest, const char *src, size_t n) in strncpy() argument 118 size_t len = __strnend(src, n) - src; in strncpy() 119 memset(dest + len, 0, n - len); in strncpy() 154 size_t strlcat(char *dest, const char *src, size_t n) in strlcat() argument 160 if (dsize < n) { in strlcat() 162 n -= dsize; in strlcat() [all …]
|
/linux-4.1.27/arch/tile/lib/ |
D | memcpy_64.c | 50 void *memcpy(void *__restrict dstv, const void *__restrict srcv, size_t n) in memcpy() argument 58 USERCOPY_FUNC(void *__restrict dstv, const void *__restrict srcv, size_t n) in memcpy() 69 if (n < 16) { in memcpy() 70 for (; n; n--) in memcpy() 79 src1_end = src1 + n - 1; in memcpy() 90 for (; (uintptr_t)dst1 & (sizeof(op_t) - 1); n--) in memcpy() 107 m = (n < m) ? n : m; in memcpy() 111 n -= (sizeof(op_t) * m); in memcpy() 163 if (__builtin_expect(n >= CHIP_L2_LINE_SIZE(), 0)) { in memcpy() 169 for (tmp0 = LD8(src8++); n >= CHIP_L2_LINE_SIZE(); in memcpy() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/ipath/ |
D | ipath_keys.c | 51 u32 n; in ipath_alloc_lkey() local 57 r = n = rkt->next; in ipath_alloc_lkey() 62 if (r == n) { in ipath_alloc_lkey() 126 unsigned n, m; in ipath_lkey_ok() local 166 n = 0; in ipath_lkey_ok() 167 while (off >= mr->map[m]->segs[n].length) { in ipath_lkey_ok() 168 off -= mr->map[m]->segs[n].length; in ipath_lkey_ok() 169 n++; in ipath_lkey_ok() 170 if (n >= IPATH_SEGSZ) { in ipath_lkey_ok() 172 n = 0; in ipath_lkey_ok() [all …]
|
/linux-4.1.27/arch/metag/include/asm/ |
D | delay.h | 20 #define udelay(n) (__builtin_constant_p(n) ? \ argument 21 ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c7ul)) : \ 22 __udelay(n)) 25 #define ndelay(n) (__builtin_constant_p(n) ? \ argument 26 ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \ 27 __ndelay(n))
|
D | uaccess.h | 202 unsigned long n); 205 copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument 207 if (access_ok(VERIFY_READ, from, n)) in copy_from_user() 208 return __copy_user_zeroing(to, from, n); in copy_from_user() 209 return n; in copy_from_user() 212 #define __copy_from_user(to, from, n) __copy_user_zeroing(to, from, n) argument 217 unsigned long n); 220 unsigned long n) in copy_to_user() argument 222 if (access_ok(VERIFY_WRITE, to, n)) in copy_to_user() 223 return __copy_user(to, from, n); in copy_to_user() [all …]
|
/linux-4.1.27/fs/qnx6/ |
D | qnx6.h | 77 static inline __u64 fs64_to_cpu(struct qnx6_sb_info *sbi, __fs64 n) in fs64_to_cpu() argument 80 return le64_to_cpu((__force __le64)n); in fs64_to_cpu() 82 return be64_to_cpu((__force __be64)n); in fs64_to_cpu() 85 static inline __fs64 cpu_to_fs64(struct qnx6_sb_info *sbi, __u64 n) in cpu_to_fs64() argument 88 return (__force __fs64)cpu_to_le64(n); in cpu_to_fs64() 90 return (__force __fs64)cpu_to_be64(n); in cpu_to_fs64() 93 static inline __u32 fs32_to_cpu(struct qnx6_sb_info *sbi, __fs32 n) in fs32_to_cpu() argument 96 return le32_to_cpu((__force __le32)n); in fs32_to_cpu() 98 return be32_to_cpu((__force __be32)n); in fs32_to_cpu() 101 static inline __fs32 cpu_to_fs32(struct qnx6_sb_info *sbi, __u32 n) in cpu_to_fs32() argument [all …]
|
/linux-4.1.27/arch/mips/kernel/ |
D | proc.c | 38 unsigned long n = (unsigned long) v - 1; in show_cpuinfo() local 39 unsigned int version = cpu_data[n].processor_id; in show_cpuinfo() 40 unsigned int fp_vers = cpu_data[n].fpu_id; in show_cpuinfo() 45 if (!cpu_online(n)) in show_cpuinfo() 52 if (n == 0) { in show_cpuinfo() 59 seq_printf(m, "processor\t\t: %ld\n", n); in show_cpuinfo() 61 cpu_data[n].options & MIPS_CPU_FPU ? " FPU V%d.%d" : ""); in show_cpuinfo() 62 seq_printf(m, fmt, __cpu_name[n], in show_cpuinfo() 66 cpu_data[n].udelay_val / (500000/HZ), in show_cpuinfo() 67 (cpu_data[n].udelay_val / (5000/HZ)) % 100); in show_cpuinfo() [all …]
|
/linux-4.1.27/arch/sh/math-emu/ |
D | math.c | 35 #define BANK(n) (n^(FPSCR_FR?16:0)) argument 38 #define FRn (FR[BANK(n)]) 41 #define DRn (DR[BANK(n)/2]) 44 #define XREG(n) (n^16) argument 45 #define XFn (FR[BANK(XREG(n))]) 47 #define XDn (DR[BANK(XREG(n))/2]) 51 #define Rn (regs->regs[n]) 79 fcmp_gt(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fcmp_gt() argument 90 fcmp_eq(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fcmp_eq() argument 106 fadd(struct sh_fpu_soft_struct *fregs, struct pt_regs *regs, int m, int n) in fadd() argument [all …]
|
/linux-4.1.27/arch/microblaze/include/asm/ |
D | uaccess.h | 127 unsigned long n) in __clear_user() argument 139 : "=r"(n), "=r"(to) \ in __clear_user() 140 : "0"(n), "1"(to) in __clear_user() 142 return n; in __clear_user() 146 unsigned long n) in clear_user() argument 149 if (unlikely(!access_ok(VERIFY_WRITE, to, n))) in clear_user() 150 return n; in clear_user() 152 return __clear_user(to, n); in clear_user() 365 #define __copy_from_user(to, from, n) \ argument 367 (void __user *)(from), (n)) [all …]
|
D | delay.h | 64 #define udelay(n) \ argument 66 if (__builtin_constant_p(n)) { \ 67 if ((n) / __MAX_UDELAY >= 1) \ 70 __udelay((n) * (19 * HZ)); \ 72 __udelay((n) * (19 * HZ)); \ 76 #define ndelay(n) \ argument 78 if (__builtin_constant_p(n)) { \ 79 if ((n) / __MAX_NDELAY >= 1) \ 82 __udelay((n) * HZ); \ 84 __udelay((n) * HZ); \
|
/linux-4.1.27/fs/jfs/ |
D | jfs_unicode.h | 56 size_t n) in UniStrncpy_le() argument 60 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le() 63 n++; in UniStrncpy_le() 64 while (n--) /* Pad with nulls */ in UniStrncpy_le() 73 size_t n) in UniStrncmp_le() argument 75 if (!n) in UniStrncmp_le() 77 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le() 88 size_t n) in UniStrncpy_to_le() argument 92 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_to_le() 95 n++; in UniStrncpy_to_le() [all …]
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 89 struct v4l2_clip *clips, unsigned int n) in btcx_screen_clips() argument 93 clips[n].c.left = 0; in btcx_screen_clips() 94 clips[n].c.top = 0; in btcx_screen_clips() 95 clips[n].c.width = -win->left; in btcx_screen_clips() 96 clips[n].c.height = win->height; in btcx_screen_clips() 97 n++; in btcx_screen_clips() 101 clips[n].c.left = swidth - win->left; in btcx_screen_clips() 102 clips[n].c.top = 0; in btcx_screen_clips() 103 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips() 104 clips[n].c.height = win->height; in btcx_screen_clips() [all …]
|
/linux-4.1.27/drivers/firmware/efi/ |
D | cper.c | 212 u32 len, n; in cper_mem_err_location() local 217 n = 0; in cper_mem_err_location() 220 n += scnprintf(msg + n, len - n, "node: %d ", mem->node); in cper_mem_err_location() 222 n += scnprintf(msg + n, len - n, "card: %d ", mem->card); in cper_mem_err_location() 224 n += scnprintf(msg + n, len - n, "module: %d ", mem->module); in cper_mem_err_location() 226 n += scnprintf(msg + n, len - n, "rank: %d ", mem->rank); in cper_mem_err_location() 228 n += scnprintf(msg + n, len - n, "bank: %d ", mem->bank); in cper_mem_err_location() 230 n += scnprintf(msg + n, len - n, "device: %d ", mem->device); in cper_mem_err_location() 232 n += scnprintf(msg + n, len - n, "row: %d ", mem->row); in cper_mem_err_location() 234 n += scnprintf(msg + n, len - n, "column: %d ", mem->column); in cper_mem_err_location() [all …]
|
/linux-4.1.27/arch/mips/include/asm/ |
D | kvm_para.h | 17 register unsigned long n asm("v0"); in kvm_hypercall0() 20 n = num; in kvm_hypercall0() 23 : "=r" (r) : "r" (n) : "memory" in kvm_hypercall0() 32 register unsigned long n asm("v0"); in kvm_hypercall1() 36 n = num; in kvm_hypercall1() 40 : "=r" (r) : "r" (n), "r" (a0) : "memory" in kvm_hypercall1() 49 register unsigned long n asm("v0"); in kvm_hypercall2() 54 n = num; in kvm_hypercall2() 59 : "=r" (r) : "r" (n), "r" (a0), "r" (a1) : "memory" in kvm_hypercall2() 68 register unsigned long n asm("v0"); in kvm_hypercall3() [all …]
|
D | uaccess.h | 789 #define __invoke_copy_to_user(to, from, n) \ argument 797 __cu_len_r = (n); \ 807 #define __invoke_copy_to_kernel(to, from, n) \ argument 808 __invoke_copy_to_user(to, from, n) 826 #define __copy_to_user(to, from, n) \ argument 834 __cu_len = (n); \ 847 #define __copy_to_user_inatomic(to, from, n) \ argument 855 __cu_len = (n); \ 865 #define __copy_from_user_inatomic(to, from, n) \ argument 873 __cu_len = (n); \ [all …]
|
/linux-4.1.27/drivers/usb/gadget/legacy/ |
D | hid.c | 111 struct hidg_func_node *e, *n; in do_config() local 132 list_for_each_entry(n, &hidg_func_list, node) { in do_config() 133 if (n == e) in do_config() 135 usb_remove_function(c, n->f); in do_config() 136 usb_put_function(n->f); in do_config() 154 struct hidg_func_node *n, *m; in hid_bind() local 164 list_for_each_entry(n, &hidg_func_list, node) { in hid_bind() 165 n->fi = usb_get_function_instance("hid"); in hid_bind() 166 if (IS_ERR(n->fi)) { in hid_bind() 167 status = PTR_ERR(n->fi); in hid_bind() [all …]
|
/linux-4.1.27/arch/parisc/kernel/ |
D | perf_asm.S | 171 b,n perf_rdr_shift_in_W_leave 182 b,n perf_rdr_shift_in_W_leave 195 b,n perf_rdr_shift_in_W_leave 200 b,n perf_rdr_shift_in_W_leave 217 b,n perf_rdr_shift_in_W_leave 229 b,n perf_rdr_shift_in_W_leave 241 b,n perf_rdr_shift_in_W_leave 248 b,n perf_rdr_shift_in_W_leave 260 b,n perf_rdr_shift_in_W_leave 272 b,n perf_rdr_shift_in_W_leave [all …]
|
/linux-4.1.27/arch/mips/netlogic/xlp/ |
D | wakeup.c | 114 int core, n, cpu, ncores; in xlp_enable_secondary_cores() local 116 for (n = 0; n < NLM_NR_NODES; n++) { in xlp_enable_secondary_cores() 117 if (n != 0) { in xlp_enable_secondary_cores() 120 int b = xlp9xx_get_socbus(n); in xlp_enable_secondary_cores() 121 pr_info("Node %d SoC PCI bus %d.\n", n, b); in xlp_enable_secondary_cores() 125 syspcibase = nlm_get_sys_pcibase(n); in xlp_enable_secondary_cores() 129 nlm_node_init(n); in xlp_enable_secondary_cores() 133 nodep = nlm_get_node(n); in xlp_enable_secondary_cores() 136 fusebase = nlm_get_fuse_regbase(n); in xlp_enable_secondary_cores() 170 pr_info("Node %d - SYS/FUSE coremask %x\n", n, syscoremask); in xlp_enable_secondary_cores() [all …]
|
/linux-4.1.27/arch/mips/include/asm/sibyte/ |
D | sb1250_defs.h | 228 #define _SB_MAKEMASK1(n) (_SB_MAKE64(1) << _SB_MAKE64(n)) argument 229 #define _SB_MAKEMASK1_32(n) (_SB_MAKE32(1) << _SB_MAKE32(n)) argument 235 #define _SB_MAKEMASK(v, n) (_SB_MAKE64((_SB_MAKE64(1)<<(v))-1) << _SB_MAKE64(n)) argument 236 #define _SB_MAKEMASK_32(v, n) (_SB_MAKE32((_SB_MAKE32(1)<<(v))-1) << _SB_MAKE32(n)) argument 242 #define _SB_MAKEVALUE(v, n) (_SB_MAKE64(v) << _SB_MAKE64(n)) argument 243 #define _SB_MAKEVALUE_32(v, n) (_SB_MAKE32(v) << _SB_MAKE32(n)) argument 245 #define _SB_GETVALUE(v, n, m) ((_SB_MAKE64(v) & _SB_MAKE64(m)) >> _SB_MAKE64(n)) argument 246 #define _SB_GETVALUE_32(v, n, m) ((_SB_MAKE32(v) & _SB_MAKE32(m)) >> _SB_MAKE32(n)) argument
|
/linux-4.1.27/mm/ |
D | slab.c | 246 struct kmem_cache_node *n, int tofree); 698 struct kmem_cache_node *n = get_node(cachep, numa_mem_id()); in recheck_pfmemalloc_active() local 705 spin_lock_irqsave(&n->list_lock, flags); in recheck_pfmemalloc_active() 706 list_for_each_entry(page, &n->slabs_full, lru) in recheck_pfmemalloc_active() 710 list_for_each_entry(page, &n->slabs_partial, lru) in recheck_pfmemalloc_active() 714 list_for_each_entry(page, &n->slabs_free, lru) in recheck_pfmemalloc_active() 720 spin_unlock_irqrestore(&n->list_lock, flags); in recheck_pfmemalloc_active() 731 struct kmem_cache_node *n; in __ac_get_obj() local 753 n = get_node(cachep, numa_mem_id()); in __ac_get_obj() 754 if (!list_empty(&n->slabs_free) && force_refill) { in __ac_get_obj() [all …]
|
/linux-4.1.27/net/core/ |
D | neighbour.c | 55 static void __neigh_notify(struct neighbour *n, int type, int flags); 131 struct neighbour *n; in neigh_forced_gc() local 135 while ((n = rcu_dereference_protected(*np, in neigh_forced_gc() 141 write_lock(&n->lock); in neigh_forced_gc() 142 if (atomic_read(&n->refcnt) == 1 && in neigh_forced_gc() 143 !(n->nud_state & NUD_PERMANENT)) { in neigh_forced_gc() 145 rcu_dereference_protected(n->next, in neigh_forced_gc() 147 n->dead = 1; in neigh_forced_gc() 149 write_unlock(&n->lock); in neigh_forced_gc() 150 neigh_cleanup_and_release(n); in neigh_forced_gc() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/qib/ |
D | qib_keys.c | 53 u32 n; in qib_alloc_lkey() local 75 n = r; in qib_alloc_lkey() 80 if (r == n) in qib_alloc_lkey() 159 unsigned n, m; in qib_lkey_ok() local 184 isge->n = 0; in qib_lkey_ok() 213 n = entries_spanned_by_off%QIB_SEGSZ; in qib_lkey_ok() 216 n = 0; in qib_lkey_ok() 217 while (off >= mr->map[m]->segs[n].length) { in qib_lkey_ok() 218 off -= mr->map[m]->segs[n].length; in qib_lkey_ok() 219 n++; in qib_lkey_ok() [all …]
|
/linux-4.1.27/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 89 __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n) in __copy_to_user_memcpy() argument 94 memcpy((void *)to, from, n); in __copy_to_user_memcpy() 103 while (n) { in __copy_to_user_memcpy() 118 if (tocopy > n) in __copy_to_user_memcpy() 119 tocopy = n; in __copy_to_user_memcpy() 124 n -= tocopy; in __copy_to_user_memcpy() 135 return n; in __copy_to_user_memcpy() 139 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument 148 if (n < 64) in __copy_to_user() 149 return __copy_to_user_std(to, from, n); in __copy_to_user() [all …]
|
/linux-4.1.27/drivers/staging/skein/ |
D | skein_base.c | 142 size_t n; in skein_256_update() local 152 n = SKEIN_256_BLOCK_BYTES - ctx->h.b_cnt; in skein_256_update() 153 if (n) { in skein_256_update() 155 skein_assert(n < msg_byte_cnt); in skein_256_update() 156 memcpy(&ctx->b[ctx->h.b_cnt], msg, n); in skein_256_update() 157 msg_byte_cnt -= n; in skein_256_update() 158 msg += n; in skein_256_update() 159 ctx->h.b_cnt += n; in skein_256_update() 172 n = (msg_byte_cnt-1) / SKEIN_256_BLOCK_BYTES; in skein_256_update() 173 skein_256_process_block(ctx, msg, n, in skein_256_update() [all …]
|
/linux-4.1.27/sound/isa/ad1848/ |
D | ad1848.c | 67 static int snd_ad1848_match(struct device *dev, unsigned int n) in snd_ad1848_match() argument 69 if (!enable[n]) in snd_ad1848_match() 72 if (port[n] == SNDRV_AUTO_PORT) { in snd_ad1848_match() 76 if (irq[n] == SNDRV_AUTO_IRQ) { in snd_ad1848_match() 80 if (dma1[n] == SNDRV_AUTO_DMA) { in snd_ad1848_match() 87 static int snd_ad1848_probe(struct device *dev, unsigned int n) in snd_ad1848_probe() argument 93 error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_ad1848_probe() 97 error = snd_wss_create(card, port[n], -1, irq[n], dma1[n], -1, in snd_ad1848_probe() 98 thinkpad[n] ? WSS_HW_THINKPAD : WSS_HW_DETECT, in snd_ad1848_probe() 117 chip->pcm->name, chip->port, irq[n], dma1[n]); in snd_ad1848_probe() [all …]
|
/linux-4.1.27/drivers/message/fusion/ |
D | mptdebug.h | 163 int ii, n; in DBG_DUMP_PUT_MSG_FRAME() local 169 n = ioc->req_sz/4 - 1; in DBG_DUMP_PUT_MSG_FRAME() 170 while (mfp[n] == 0) in DBG_DUMP_PUT_MSG_FRAME() 171 n--; in DBG_DUMP_PUT_MSG_FRAME() 172 for (ii=0; ii<=n; ii++) { in DBG_DUMP_PUT_MSG_FRAME() 183 int i, n; in DBG_DUMP_FW_REQUEST_FRAME() local 187 n = 10; in DBG_DUMP_FW_REQUEST_FRAME() 189 for (i = 0; i < n; i++) in DBG_DUMP_FW_REQUEST_FRAME() 197 int i, n; in DBG_DUMP_REQUEST_FRAME() local 201 n = 24; in DBG_DUMP_REQUEST_FRAME() [all …]
|
/linux-4.1.27/arch/sparc/kernel/ |
D | cpumap.c | 126 int i, n, num_nodes; in enumerate_cpuinfo_nodes() local 141 n = cpuinfo_id(i, CPUINFO_LVL_NODE); in enumerate_cpuinfo_nodes() 142 if (n > prev_id[CPUINFO_LVL_NODE]) { in enumerate_cpuinfo_nodes() 144 prev_id[CPUINFO_LVL_NODE] = n; in enumerate_cpuinfo_nodes() 147 n = cpuinfo_id(i, CPUINFO_LVL_CORE); in enumerate_cpuinfo_nodes() 148 if (n > prev_id[CPUINFO_LVL_CORE]) { in enumerate_cpuinfo_nodes() 150 prev_id[CPUINFO_LVL_CORE] = n; in enumerate_cpuinfo_nodes() 153 n = cpuinfo_id(i, CPUINFO_LVL_PROC); in enumerate_cpuinfo_nodes() 154 if (n > prev_id[CPUINFO_LVL_PROC]) { in enumerate_cpuinfo_nodes() 156 prev_id[CPUINFO_LVL_PROC] = n; in enumerate_cpuinfo_nodes() [all …]
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
D | vmk80xx.c | 249 int n; in vmk80xx_ai_insn_read() local 270 for (n = 0; n < insn->n; n++) { in vmk80xx_ai_insn_read() 275 data[n] = devpriv->usb_rx_buf[reg[0]]; in vmk80xx_ai_insn_read() 280 data[n] = devpriv->usb_rx_buf[reg[0]] + 256 * in vmk80xx_ai_insn_read() 286 return n; in vmk80xx_ai_insn_read() 298 int n; in vmk80xx_ao_insn_write() local 318 for (n = 0; n < insn->n; n++) { in vmk80xx_ao_insn_write() 319 devpriv->usb_tx_buf[reg] = data[n]; in vmk80xx_ao_insn_write() 327 return n; in vmk80xx_ao_insn_write() 338 int n; in vmk80xx_ao_insn_read() local [all …]
|
/linux-4.1.27/arch/microblaze/lib/ |
D | memset.c | 35 void *memset(void *v_src, int c, __kernel_size_t n) in memset() argument 43 while (n--) in memset() 49 void *memset(void *v_src, int c, __kernel_size_t n) in memset() argument 65 if (likely(n >= 4)) { in memset() 71 --n; in memset() 74 --n; in memset() 77 --n; in memset() 83 for (; n >= 4; n -= 4) in memset() 90 while (n--) in memset()
|
/linux-4.1.27/tools/power/cpupower/utils/helpers/ |
D | bitmask.c | 14 #define longsperbits(n) howmany(n, bitsperlong) argument 23 struct bitmask *bitmask_alloc(unsigned int n) in bitmask_alloc() argument 30 bmp->size = n; in bitmask_alloc() 31 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc() 61 static unsigned int _getbit(const struct bitmask *bmp, unsigned int n) in _getbit() argument 63 if (n < bmp->size) in _getbit() 64 return (bmp->maskp[n/bitsperlong] >> (n % bitsperlong)) & 1; in _getbit() 70 static void _setbit(struct bitmask *bmp, unsigned int n, unsigned int v) in _setbit() argument 72 if (n < bmp->size) { in _setbit() 74 bmp->maskp[n/bitsperlong] |= 1UL << (n % bitsperlong); in _setbit() [all …]
|
/linux-4.1.27/arch/frv/include/asm/ |
D | uaccess.h | 267 #define __copy_from_user_inatomic(to, from, n) __memcpy_user((to), ____force(from), (n)) argument 268 #define __copy_to_user_inatomic(to, from, n) __memcpy_user(____force(to), (from), (n)) argument 273 #define __copy_from_user_inatomic(to, from, n) (memcpy((to), ____force(from), (n)), 0) argument 274 #define __copy_to_user_inatomic(to, from, n) (memcpy(____force(to), (from), (n)), 0) argument 281 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument 284 return __copy_to_user_inatomic(to, from, n); in __copy_to_user() 288 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument 291 return __copy_from_user_inatomic(to, from, n); in __copy_from_user() 294 static inline long copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument 296 unsigned long ret = n; in copy_from_user() [all …]
|
/linux-4.1.27/arch/arm/mach-omap2/ |
D | clkt_dpll.c | 68 static int _dpll_test_fint(struct clk_hw_omap *clk, unsigned int n) in _dpll_test_fint() argument 77 fint = __clk_get_rate(__clk_get_parent(clk->hw.clk)) / n; in _dpll_test_fint() 94 n); in _dpll_test_fint() 95 dd->max_divider = n; in _dpll_test_fint() 99 n); in _dpll_test_fint() 100 dd->min_divider = n; in _dpll_test_fint() 104 pr_debug("rejecting n=%d due to Fint failure\n", n); in _dpll_test_fint() 112 unsigned int m, unsigned int n) in _dpll_compute_new_rate() argument 117 do_div(num, n); in _dpll_compute_new_rate() 141 static int _dpll_test_mult(int *m, int n, unsigned long *new_rate, in _dpll_test_mult() argument [all …]
|
/linux-4.1.27/arch/s390/include/asm/ |
D | syscall.h | 62 unsigned int i, unsigned int n, in syscall_get_arguments() argument 67 BUG_ON(i + n > 6); in syscall_get_arguments() 72 while (n-- > 0) in syscall_get_arguments() 73 if (i + n > 0) in syscall_get_arguments() 74 args[n] = regs->gprs[2 + i + n] & mask; in syscall_get_arguments() 81 unsigned int i, unsigned int n, in syscall_set_arguments() argument 84 BUG_ON(i + n > 6); in syscall_set_arguments() 85 while (n-- > 0) in syscall_set_arguments() 86 if (i + n > 0) in syscall_set_arguments() 87 regs->gprs[2 + i + n] = args[n]; in syscall_set_arguments()
|
/linux-4.1.27/net/irda/ |
D | parameters.c | 130 int n = 0; in irda_insert_integer() local 169 n += irda_param_pack(buf, "bbb", p.pi, p.pl, (__u8) p.pv.i); in irda_insert_integer() 176 n += irda_param_pack(buf, "bbs", p.pi, p.pl, (__u16) p.pv.i); in irda_insert_integer() 183 n += irda_param_pack(buf, "bbi", p.pi, p.pl, p.pv.i); in irda_insert_integer() 206 int n = 0; in irda_extract_integer() local 249 n += irda_param_unpack(buf+2, "b", &p.pv.i); in irda_extract_integer() 252 n += irda_param_unpack(buf+2, "s", &p.pv.i); in irda_extract_integer() 259 n += irda_param_unpack(buf+2, "i", &p.pv.i); in irda_extract_integer() 364 int n = 0; in irda_param_pack() local 371 buf[n++] = (__u8)va_arg(args, int); in irda_param_pack() [all …]
|
/linux-4.1.27/sound/soc/samsung/ |
D | arndale_rt5631.c | 80 int n, ret; in arndale_audio_probe() local 86 for (n = 0; np && n < ARRAY_SIZE(arndale_rt5631_dai); n++) { in arndale_audio_probe() 87 if (!arndale_rt5631_dai[n].cpu_dai_name) { in arndale_audio_probe() 88 arndale_rt5631_dai[n].cpu_of_node = of_parse_phandle(np, in arndale_audio_probe() 89 "samsung,audio-cpu", n); in arndale_audio_probe() 91 if (!arndale_rt5631_dai[n].cpu_of_node) { in arndale_audio_probe() 97 if (!arndale_rt5631_dai[n].platform_name) in arndale_audio_probe() 98 arndale_rt5631_dai[n].platform_of_node = in arndale_audio_probe() 99 arndale_rt5631_dai[n].cpu_of_node; in arndale_audio_probe() 101 arndale_rt5631_dai[n].codec_name = NULL; in arndale_audio_probe() [all …]
|
/linux-4.1.27/Documentation/auxdisplay/ |
D | cfag12864b-example.c | 44 #define CFAG12864B_BIT(n) (((unsigned char) 1) << (n)) argument 167 unsigned char i, j, n; in cfag12864b_format() local 173 for (n = 0; n < CFAG12864B_BPB; n++) in cfag12864b_format() 175 j * CFAG12864B_BPB + n]) in cfag12864b_format() 178 CFAG12864B_BIT(n); in cfag12864b_format() 200 static void example(unsigned char n) in example() argument 205 if (n > EXAMPLES) in example() 208 printf("Example %i/%i - ", n, EXAMPLES); in example() 210 switch (n) { in example() 258 unsigned char n; in main() local [all …]
|
/linux-4.1.27/net/xfrm/ |
D | xfrm_hash.c | 17 struct hlist_head *n; in xfrm_hash_alloc() local 20 n = kzalloc(sz, GFP_KERNEL); in xfrm_hash_alloc() 22 n = vzalloc(sz); in xfrm_hash_alloc() 24 n = (struct hlist_head *) in xfrm_hash_alloc() 28 return n; in xfrm_hash_alloc() 31 void xfrm_hash_free(struct hlist_head *n, unsigned int sz) in xfrm_hash_free() argument 34 kfree(n); in xfrm_hash_free() 36 vfree(n); in xfrm_hash_free() 38 free_pages((unsigned long)n, get_order(sz)); in xfrm_hash_free()
|
/linux-4.1.27/drivers/block/aoe/ |
D | aoechr.c | 82 int major, minor, n; in revalidate() local 94 n = sscanf(buf, "e%d.%d", &major, &minor); in revalidate() 95 if (n != 2) { in revalidate() 130 ulong flags, n; in aoechr_error() local 132 n = strlen(msg); in aoechr_error() 142 mp = kmemdup(msg, n, GFP_ATOMIC); in aoechr_error() 144 printk(KERN_ERR "aoe: allocation failure, len=%ld\n", n); in aoechr_error() 150 em->len = n; in aoechr_error() 191 int n, i; in aoechr_open() local 194 n = iminor(inode); in aoechr_open() [all …]
|
/linux-4.1.27/drivers/usb/gadget/udc/bdc/ |
D | bdc.h | 86 #define BDC_EPSTS0(n) (0x60 + (n * 0x10)) argument 87 #define BDC_EPSTS1(n) (0x64 + (n * 0x10)) argument 88 #define BDC_EPSTS2(n) (0x68 + (n * 0x10)) argument 89 #define BDC_EPSTS3(n) (0x6c + (n * 0x10)) argument 90 #define BDC_EPSTS4(n) (0x70 + (n * 0x10)) argument 91 #define BDC_EPSTS5(n) (0x74 + (n * 0x10)) argument 92 #define BDC_EPSTS6(n) (0x78 + (n * 0x10)) argument 93 #define BDC_EPSTS7(n) (0x7c + (n * 0x10)) argument 94 #define BDC_SRRBAL(n) (0x200 + (n * 0x10)) argument 95 #define BDC_SRRBAH(n) (0x204 + (n * 0x10)) argument [all …]
|
/linux-4.1.27/arch/powerpc/boot/ |
D | crt0.S | 233 #define SAVE_GPR(n, base) std n,8*(n)(base) argument 234 #define REST_GPR(n, base) ld n,8*(n)(base) argument 235 #define SAVE_2GPRS(n, base) SAVE_GPR(n, base); SAVE_GPR(n+1, base) argument 236 #define SAVE_4GPRS(n, base) SAVE_2GPRS(n, base); SAVE_2GPRS(n+2, base) argument 237 #define SAVE_8GPRS(n, base) SAVE_4GPRS(n, base); SAVE_4GPRS(n+4, base) argument 238 #define SAVE_10GPRS(n, base) SAVE_8GPRS(n, base); SAVE_2GPRS(n+8, base) argument 239 #define REST_2GPRS(n, base) REST_GPR(n, base); REST_GPR(n+1, base) argument 240 #define REST_4GPRS(n, base) REST_2GPRS(n, base); REST_2GPRS(n+2, base) argument 241 #define REST_8GPRS(n, base) REST_4GPRS(n, base); REST_4GPRS(n+4, base) argument 242 #define REST_10GPRS(n, base) REST_8GPRS(n, base); REST_2GPRS(n+8, base) argument
|
/linux-4.1.27/arch/blackfin/kernel/ |
D | shadow_console.c | 26 unsigned int n) in early_shadow_write() argument 33 if ((shadow_console_buffer + n) <= (char *)(SHADOW_CONSOLE_END - 2)) { in early_shadow_write() 35 for (i = 0; i <= n; i++) in early_shadow_write() 37 shadow_console_buffer += n; in early_shadow_write() 92 __init void early_shadow_reg(unsigned long reg, unsigned int n) in early_shadow_reg() argument 101 n = n / 4; in early_shadow_reg() 102 reg = reg << ((8 - n) * 4); in early_shadow_reg() 103 n += 3; in early_shadow_reg() 105 for (i = 3; i <= n ; i++) { in early_shadow_reg() 109 early_shadow_write(NULL, ascii, n); in early_shadow_reg()
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
D | ispreg.h | 1212 #define ISPCSI2_IRQSTATUS_CONTEXT(n) (1 << (n)) argument 1255 #define ISPCSI2_PHY_CFG_DATA_POL_SHIFT(n) (3 + ((n) * 4)) argument 1256 #define ISPCSI2_PHY_CFG_DATA_POL_MASK(n) \ argument 1257 (0x1 << ISPCSI2_PHY_CFG_DATA_POL_SHIFT(n)) 1258 #define ISPCSI2_PHY_CFG_DATA_POL_PN(n) \ argument 1259 (0x0 << ISPCSI2_PHY_CFG_DATA_POL_SHIFT(n)) 1260 #define ISPCSI2_PHY_CFG_DATA_POL_NP(n) \ argument 1261 (0x1 << ISPCSI2_PHY_CFG_DATA_POL_SHIFT(n)) 1263 #define ISPCSI2_PHY_CFG_DATA_POSITION_SHIFT(n) ((n) * 4) argument 1264 #define ISPCSI2_PHY_CFG_DATA_POSITION_MASK(n) \ argument [all …]
|
/linux-4.1.27/drivers/usb/core/ |
D | config.c | 17 static inline const char *plural(int n) in plural() argument 19 return (n == 1 ? "" : "s"); in plural() 26 int n = 0; in find_next_descriptor() local 36 ++n; in find_next_descriptor() 42 *num_skipped = n; in find_next_descriptor() 152 int n, i, j, retval; in usb_parse_endpoint() local 159 n = USB_DT_ENDPOINT_AUDIO_SIZE; in usb_parse_endpoint() 161 n = USB_DT_ENDPOINT_SIZE; in usb_parse_endpoint() 184 memcpy(&endpoint->desc, d, n); in usb_parse_endpoint() 200 n = fls(d->bInterval*8); in usb_parse_endpoint() [all …]
|
/linux-4.1.27/drivers/hwtracing/coresight/ |
D | coresight-etm.h | 43 #define ETMACVRn(n) (0x040 + (n * 4)) argument 44 #define ETMACTRn(n) (0x080 + (n * 4)) argument 45 #define ETMCNTRLDVRn(n) (0x140 + (n * 4)) argument 46 #define ETMCNTENRn(n) (0x150 + (n * 4)) argument 47 #define ETMCNTRLDEVRn(n) (0x160 + (n * 4)) argument 48 #define ETMCNTVRn(n) (0x170 + (n * 4)) argument 56 #define ETMEXTOUTEVRn(n) (0x1a0 + (n * 4)) argument 57 #define ETMCIDCVRn(n) (0x1b0 + (n * 4)) argument
|
/linux-4.1.27/Documentation/frv/ |
D | gdbinit | 5 printf "AMRx DAMR IAMR \n" 6 printf "==== ===================== =====================\n" 7 printf "amr0 : L:%08lx P:%08lx : L:%08lx P:%08lx\n",__debug_mmu.damr[0x0].L,__debug_mmu.damr[0x0].P… 8 printf "amr1 : L:%08lx P:%08lx : L:%08lx P:%08lx\n",__debug_mmu.damr[0x1].L,__debug_mmu.damr[0x1].P… 9 printf "amr2 : L:%08lx P:%08lx : L:%08lx P:%08lx\n",__debug_mmu.damr[0x2].L,__debug_mmu.damr[0x2].P… 10 printf "amr3 : L:%08lx P:%08lx : L:%08lx P:%08lx\n",__debug_mmu.damr[0x3].L,__debug_mmu.damr[0x3].P… 11 printf "amr4 : L:%08lx P:%08lx : L:%08lx P:%08lx\n",__debug_mmu.damr[0x4].L,__debug_mmu.damr[0x4].P… 12 printf "amr5 : L:%08lx P:%08lx : L:%08lx P:%08lx\n",__debug_mmu.damr[0x5].L,__debug_mmu.damr[0x5].P… 13 printf "amr6 : L:%08lx P:%08lx : L:%08lx P:%08lx\n",__debug_mmu.damr[0x6].L,__debug_mmu.damr[0x6].P… 14 printf "amr7 : L:%08lx P:%08lx : L:%08lx P:%08lx\n",__debug_mmu.damr[0x7].L,__debug_mmu.damr[0x7].P… [all …]
|