Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 200 of 5921) sorted by relevance

12345678910>>...30

/linux-4.4.14/arch/mips/include/asm/octeon/
Dcvmx-pexp-defs.h31 #define CVMX_PEXP_NPEI_BAR1_INDEXX(offset) (CVMX_ADD_IO_SEG(0x00011F0000008000ull) + ((offset) & 31… argument
43 #define CVMX_PEXP_NPEI_DMAX_COUNTS(offset) (CVMX_ADD_IO_SEG(0x00011F0000008450ull) + ((offset) & 7)… argument
44 #define CVMX_PEXP_NPEI_DMAX_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F00000083B0ull) + ((offset) & 7) … argument
45 #define CVMX_PEXP_NPEI_DMAX_IBUFF_SADDR(offset) (CVMX_ADD_IO_SEG(0x00011F0000008400ull) + ((offset)… argument
46 #define CVMX_PEXP_NPEI_DMAX_NADDR(offset) (CVMX_ADD_IO_SEG(0x00011F00000084A0ull) + ((offset) & 7) … argument
68 #define CVMX_PEXP_NPEI_MEM_ACCESS_SUBIDX(offset) (CVMX_ADD_IO_SEG(0x00011F0000008280ull) + ((offset argument
92 #define CVMX_PEXP_NPEI_PKTX_CNTS(offset) (CVMX_ADD_IO_SEG(0x00011F000000A400ull) + ((offset) & 31) … argument
93 #define CVMX_PEXP_NPEI_PKTX_INSTR_BADDR(offset) (CVMX_ADD_IO_SEG(0x00011F000000A800ull) + ((offset)… argument
94 #define CVMX_PEXP_NPEI_PKTX_INSTR_BAOFF_DBELL(offset) (CVMX_ADD_IO_SEG(0x00011F000000AC00ull) + ((o… argument
95 #define CVMX_PEXP_NPEI_PKTX_INSTR_FIFO_RSIZE(offset) (CVMX_ADD_IO_SEG(0x00011F000000B000ull) + ((of… argument
[all …]
Dcvmx-pcsx-defs.h31 static inline uint64_t CVMX_PCSX_ANX_ADV_REG(unsigned long offset, unsigned long block_id) in CVMX_PCSX_ANX_ADV_REG() argument
35 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG()
38 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG()
42 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG()
44 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x4000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG()
46 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_ADV_REG()
49 static inline uint64_t CVMX_PCSX_ANX_EXT_ST_REG(unsigned long offset, unsigned long block_id) in CVMX_PCSX_ANX_EXT_ST_REG() argument
53 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_EXT_ST_REG()
56 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_EXT_ST_REG()
60 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; in CVMX_PCSX_ANX_EXT_ST_REG()
[all …]
Dcvmx-asm.h93 #define CVMX_PREPARE_FOR_STORE(address, offset) \ argument
94 asm volatile ("pref 30, " CVMX_TMP_STR(offset) "(%[rbase])" : : \
101 #define CVMX_DONT_WRITE_BACK(address, offset) \ argument
102 asm volatile ("pref 29, " CVMX_TMP_STR(offset) "(%[rbase])" : : \
117 #define CVMX_CACHE(op, address, offset) \ argument
118 asm volatile ("cache " CVMX_TMP_STR(op) ", " CVMX_TMP_STR(offset) "(%[rbase])" \
121 #define CVMX_CACHE_LCKL2(address, offset) CVMX_CACHE(31, address, offset) argument
123 #define CVMX_CACHE_WBIL2(address, offset) CVMX_CACHE(23, address, offset) argument
125 #define CVMX_CACHE_WBIL2I(address, offset) CVMX_CACHE(3, address, offset) argument
127 #define CVMX_CACHE_LTGL2I(address, offset) CVMX_CACHE(7, address, offset) argument
Dcvmx-gmxx-defs.h75 #define CVMX_GMXX_BPID_MAPX(offset, block_id) (CVMX_ADD_IO_SEG(0x0001180008000680ull) + (((offset) … argument
158 static inline uint64_t CVMX_GMXX_PRTX_CBFC_CTL(unsigned long offset, unsigned long block_id) in CVMX_GMXX_PRTX_CBFC_CTL() argument
175 static inline uint64_t CVMX_GMXX_PRTX_CFG(unsigned long offset, unsigned long block_id) in CVMX_GMXX_PRTX_CFG() argument
179 return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048; in CVMX_GMXX_PRTX_CFG()
182 return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048; in CVMX_GMXX_PRTX_CFG()
185 return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048; in CVMX_GMXX_PRTX_CFG()
191 return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048; in CVMX_GMXX_PRTX_CFG()
193 return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x0ull) * 2048; in CVMX_GMXX_PRTX_CFG()
195 return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x2000ull) * 2048; in CVMX_GMXX_PRTX_CFG()
197 return CVMX_ADD_IO_SEG(0x0001180008000010ull) + ((offset) + (block_id) * 0x10000ull) * 2048; in CVMX_GMXX_PRTX_CFG()
[all …]
Dcvmx-smix-defs.h31 static inline uint64_t CVMX_SMIX_CLK(unsigned long offset) in CVMX_SMIX_CLK() argument
39 return CVMX_ADD_IO_SEG(0x0001180000001818ull) + (offset) * 256; in CVMX_SMIX_CLK()
46 return CVMX_ADD_IO_SEG(0x0001180000001818ull) + (offset) * 256; in CVMX_SMIX_CLK()
48 return CVMX_ADD_IO_SEG(0x0001180000003818ull) + (offset) * 128; in CVMX_SMIX_CLK()
50 return CVMX_ADD_IO_SEG(0x0001180000001818ull) + (offset) * 256; in CVMX_SMIX_CLK()
53 static inline uint64_t CVMX_SMIX_CMD(unsigned long offset) in CVMX_SMIX_CMD() argument
61 return CVMX_ADD_IO_SEG(0x0001180000001800ull) + (offset) * 256; in CVMX_SMIX_CMD()
68 return CVMX_ADD_IO_SEG(0x0001180000001800ull) + (offset) * 256; in CVMX_SMIX_CMD()
70 return CVMX_ADD_IO_SEG(0x0001180000003800ull) + (offset) * 128; in CVMX_SMIX_CMD()
72 return CVMX_ADD_IO_SEG(0x0001180000001800ull) + (offset) * 256; in CVMX_SMIX_CMD()
[all …]
/linux-4.4.14/scripts/dtc/libfdt/
Dfdt_ro.c58 static int _fdt_nodename_eq(const void *fdt, int offset, in _fdt_nodename_eq() argument
61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); in _fdt_nodename_eq()
108 static int _nextprop(const void *fdt, int offset) in _nextprop() argument
114 tag = fdt_next_tag(fdt, offset, &nextoffset); in _nextprop()
124 return offset; in _nextprop()
126 offset = nextoffset; in _nextprop()
132 int fdt_subnode_offset_namelen(const void *fdt, int offset, in fdt_subnode_offset_namelen() argument
140 (offset >= 0) && (depth >= 0); in fdt_subnode_offset_namelen()
141 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
143 && _fdt_nodename_eq(fdt, offset, name, namelen)) in fdt_subnode_offset_namelen()
[all …]
Dfdt.c77 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument
82 if (((offset + len) < offset) in fdt_offset_ptr()
83 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr()
86 p = _fdt_offset_ptr(fdt, offset); in fdt_offset_ptr()
97 int offset = startoffset; in fdt_next_tag() local
101 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag()
105 offset += FDT_TAGSIZE; in fdt_next_tag()
112 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag()
119 lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); in fdt_next_tag()
123 offset += sizeof(struct fdt_property) - FDT_TAGSIZE in fdt_next_tag()
[all …]
Dfdt_sw.c75 int offset = fdt_size_dt_struct(fdt); in _fdt_grab_space() local
81 if ((offset + len < offset) || (offset + len > spaceleft)) in _fdt_grab_space()
84 fdt_set_size_dt_struct(fdt, offset + len); in _fdt_grab_space()
85 return _fdt_offset_ptr_w(fdt, offset); in _fdt_grab_space()
145 int offset; in fdt_add_reservemap_entry() local
152 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
153 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry()
156 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry()
160 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry()
206 int struct_top, offset; in _fdt_find_add_string() local
[all …]
/linux-4.4.14/arch/sh/boards/mach-microdev/
Dio.c57 void __iomem *microdev_ioport_map(unsigned long offset, unsigned int len) in microdev_ioport_map() argument
61 if ((offset >= IO_LAN91C111_BASE) && in microdev_ioport_map()
62 (offset < IO_LAN91C111_BASE + IO_LAN91C111_EXTENT)) { in microdev_ioport_map()
66 result = IO_LAN91C111_PHYS + offset - IO_LAN91C111_BASE; in microdev_ioport_map()
67 } else if ((offset >= IO_SUPERIO_BASE) && in microdev_ioport_map()
68 (offset < IO_SUPERIO_BASE + IO_SUPERIO_EXTENT)) { in microdev_ioport_map()
74 result = IO_SUPERIO_PHYS + (offset << 1); in microdev_ioport_map()
75 } else if (((offset >= IO_IDE1_BASE) && in microdev_ioport_map()
76 (offset < IO_IDE1_BASE + IO_IDE_EXTENT)) || in microdev_ioport_map()
77 (offset == IO_IDE1_MISC)) { in microdev_ioport_map()
[all …]
/linux-4.4.14/drivers/mtd/
Dbcm47xxpart.c53 uint32_t offset[3]; member
57 u64 offset, uint32_t mask_flags) in bcm47xxpart_add_part() argument
60 part->offset = offset; in bcm47xxpart_add_part()
65 size_t offset) in bcm47xxpart_trx_data_part_name() argument
70 if (mtd_read(master, offset, sizeof(buf), &bytes_read, in bcm47xxpart_trx_data_part_name()
73 offset); in bcm47xxpart_trx_data_part_name()
92 uint32_t offset; in bcm47xxpart_parse() local
119 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse()
120 offset += blocksize) { in bcm47xxpart_parse()
122 if (offset >= 0x2000000) in bcm47xxpart_parse()
[all …]
Dar7part.c50 unsigned int offset; in create_mtd_partitions() local
62 ar7_parts[0].offset = 0; in create_mtd_partitions()
67 ar7_parts[1].offset = 0; in create_mtd_partitions()
72 offset = pre_size; in create_mtd_partitions()
73 mtd_read(master, offset, sizeof(header), &len, in create_mtd_partitions()
76 ar7_parts[1].offset = pre_size; in create_mtd_partitions()
84 pre_size = offset; in create_mtd_partitions()
86 if (!ar7_parts[1].offset) { in create_mtd_partitions()
87 ar7_parts[1].offset = master->size - master->erasesize; in create_mtd_partitions()
94 offset += sizeof(header) + header.length; in create_mtd_partitions()
[all …]
Dmtdpart.c45 uint64_t offset; member
69 res = part->master->_read(part->master, from + part->offset, len, in part_read()
85 return part->master->_point(part->master, from + part->offset, len, in part_point()
93 return part->master->_unpoint(part->master, from + part->offset, len); in part_unpoint()
98 unsigned long offset, in part_get_unmapped_area() argument
103 offset += part->offset; in part_get_unmapped_area()
104 return part->master->_get_unmapped_area(part->master, len, offset, in part_get_unmapped_area()
136 res = part->master->_read_oob(part->master, from + part->offset, ops); in part_read_oob()
182 return part->master->_write(part->master, to + part->offset, len, in part_write()
190 return part->master->_panic_write(part->master, to + part->offset, len, in part_panic_write()
[all …]
/linux-4.4.14/drivers/pinctrl/
Dpinctrl-coh901.c220 static int u300_gpio_get(struct gpio_chip *chip, unsigned offset) in u300_gpio_get() argument
224 return readl(U300_PIN_REG(offset, dir)) & U300_PIN_BIT(offset); in u300_gpio_get()
227 static void u300_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in u300_gpio_set() argument
235 val = readl(U300_PIN_REG(offset, dor)); in u300_gpio_set()
237 writel(val | U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set()
239 writel(val & ~U300_PIN_BIT(offset), U300_PIN_REG(offset, dor)); in u300_gpio_set()
244 static int u300_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in u300_gpio_direction_input() argument
251 val = readl(U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input()
253 val &= ~(U300_GPIO_PXPCR_PIN_MODE_MASK << ((offset & 0x07) << 1)); in u300_gpio_direction_input()
254 writel(val, U300_PIN_REG(offset, pcr)); in u300_gpio_direction_input()
[all …]
/linux-4.4.14/drivers/gpio/
Dgpio-cs5535.c82 static void __cs5535_gpio_set(struct cs5535_gpio_chip *chip, unsigned offset, in __cs5535_gpio_set() argument
85 if (offset < 16) in __cs5535_gpio_set()
87 outl(1 << offset, chip->base + reg); in __cs5535_gpio_set()
90 errata_outl(chip, 1 << (offset - 16), reg); in __cs5535_gpio_set()
93 void cs5535_gpio_set(unsigned offset, unsigned int reg) in cs5535_gpio_set() argument
99 __cs5535_gpio_set(chip, offset, reg); in cs5535_gpio_set()
104 static void __cs5535_gpio_clear(struct cs5535_gpio_chip *chip, unsigned offset, in __cs5535_gpio_clear() argument
107 if (offset < 16) in __cs5535_gpio_clear()
109 outl(1 << (offset + 16), chip->base + reg); in __cs5535_gpio_clear()
112 errata_outl(chip, 1 << offset, reg); in __cs5535_gpio_clear()
[all …]
Dgpio-lp3943.c53 static int lp3943_gpio_request(struct gpio_chip *chip, unsigned offset) in lp3943_gpio_request() argument
59 if (test_and_set_bit(offset, &lp3943->pin_used)) in lp3943_gpio_request()
65 static void lp3943_gpio_free(struct gpio_chip *chip, unsigned offset) in lp3943_gpio_free() argument
70 clear_bit(offset, &lp3943->pin_used); in lp3943_gpio_free()
73 static int lp3943_gpio_set_mode(struct lp3943_gpio *lp3943_gpio, u8 offset, in lp3943_gpio_set_mode() argument
79 return lp3943_update_bits(lp3943, mux[offset].reg, mux[offset].mask, in lp3943_gpio_set_mode()
80 val << mux[offset].shift); in lp3943_gpio_set_mode()
83 static int lp3943_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in lp3943_gpio_direction_input() argument
87 lp3943_gpio->input_mask |= BIT(offset); in lp3943_gpio_direction_input()
89 return lp3943_gpio_set_mode(lp3943_gpio, offset, LP3943_GPIO_IN); in lp3943_gpio_direction_input()
[all …]
Dgpio-max730x.c51 static int max7301_direction_input(struct gpio_chip *chip, unsigned offset) in max7301_direction_input() argument
59 offset += 4; in max7301_direction_input()
60 offset_bits = (offset & 3) << 1; in max7301_direction_input()
62 config = &ts->port_config[offset >> 2]; in max7301_direction_input()
64 if (ts->input_pullup_active & BIT(offset)) in max7301_direction_input()
74 ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); in max7301_direction_input()
81 static int __max7301_set(struct max7301 *ts, unsigned offset, int value) in __max7301_set() argument
84 ts->out_level |= 1 << offset; in __max7301_set()
85 return ts->write(ts->dev, 0x20 + offset, 0x01); in __max7301_set()
87 ts->out_level &= ~(1 << offset); in __max7301_set()
[all …]
Dgpio-msic.c75 static int msic_gpio_to_ireg(unsigned offset) in msic_gpio_to_ireg() argument
77 if (offset >= MSIC_NUM_GPIO) in msic_gpio_to_ireg()
80 if (offset < 8) in msic_gpio_to_ireg()
81 return INTEL_MSIC_GPIO0LV0CTLI - offset; in msic_gpio_to_ireg()
82 if (offset < 16) in msic_gpio_to_ireg()
83 return INTEL_MSIC_GPIO1LV0CTLI - offset + 8; in msic_gpio_to_ireg()
84 if (offset < 20) in msic_gpio_to_ireg()
85 return INTEL_MSIC_GPIO0HV0CTLI - offset + 16; in msic_gpio_to_ireg()
87 return INTEL_MSIC_GPIO1HV0CTLI - offset + 20; in msic_gpio_to_ireg()
90 static int msic_gpio_to_oreg(unsigned offset) in msic_gpio_to_oreg() argument
[all …]
Dgpio-da9055.c27 #define DA9055_PORT_SHIFT(offset) (4 * (offset % 2)) argument
43 static int da9055_gpio_get(struct gpio_chip *gc, unsigned offset) in da9055_gpio_get() argument
50 ret = da9055_reg_read(gpio->da9055, (offset >> 1) + DA9055_REG_GPIO0_1); in da9055_gpio_get()
54 gpio_direction = ret & (DA9055_PORT_MASK) << DA9055_PORT_SHIFT(offset); in da9055_gpio_get()
55 gpio_direction >>= DA9055_PORT_SHIFT(offset); in da9055_gpio_get()
68 return ret & (1 << offset); in da9055_gpio_get()
72 static void da9055_gpio_set(struct gpio_chip *gc, unsigned offset, int value) in da9055_gpio_set() argument
78 1 << offset, in da9055_gpio_set()
79 value << offset); in da9055_gpio_set()
82 static int da9055_gpio_direction_input(struct gpio_chip *gc, unsigned offset) in da9055_gpio_direction_input() argument
[all …]
Dgpio-amd8111.c80 static int amd_gpio_request(struct gpio_chip *chip, unsigned offset) in amd_gpio_request() argument
84 agp->orig[offset] = ioread8(agp->pm + AMD_REG_GPIO(offset)) & in amd_gpio_request()
87 dev_dbg(&agp->pdev->dev, "Requested gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_request()
92 static void amd_gpio_free(struct gpio_chip *chip, unsigned offset) in amd_gpio_free() argument
96 dev_dbg(&agp->pdev->dev, "Freed gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_free()
98 iowrite8(agp->orig[offset], agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_free()
101 static void amd_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in amd_gpio_set() argument
108 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set()
110 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set()
113 dev_dbg(&agp->pdev->dev, "Setting gpio %d, value %d, reg=%02x\n", offset, !!value, temp); in amd_gpio_set()
[all …]
Dgpio-da9052.c59 static unsigned char da9052_gpio_port_odd(unsigned offset) in da9052_gpio_port_odd() argument
61 return offset % 2; in da9052_gpio_port_odd()
64 static int da9052_gpio_get(struct gpio_chip *gc, unsigned offset) in da9052_gpio_get() argument
71 DA9052_GPIO_0_1_REG + (offset >> 1)); in da9052_gpio_get()
75 if (da9052_gpio_port_odd(offset)) { in da9052_gpio_get()
84 if (offset < DA9052_GPIO_MAX_PORTS_PER_REGISTER) in da9052_gpio_get()
92 if (ret & (1 << DA9052_GPIO_SHIFT_COUNT(offset))) in da9052_gpio_get()
97 if (da9052_gpio_port_odd(offset)) in da9052_gpio_get()
106 static void da9052_gpio_set(struct gpio_chip *gc, unsigned offset, int value) in da9052_gpio_set() argument
111 if (da9052_gpio_port_odd(offset)) { in da9052_gpio_set()
[all …]
Dgpio-pl061.c61 static int pl061_direction_input(struct gpio_chip *gc, unsigned offset) in pl061_direction_input() argument
67 if (offset >= gc->ngpio) in pl061_direction_input()
72 gpiodir &= ~(BIT(offset)); in pl061_direction_input()
79 static int pl061_direction_output(struct gpio_chip *gc, unsigned offset, in pl061_direction_output() argument
86 if (offset >= gc->ngpio) in pl061_direction_output()
90 writeb(!!value << offset, chip->base + (BIT(offset + 2))); in pl061_direction_output()
92 gpiodir |= BIT(offset); in pl061_direction_output()
99 writeb(!!value << offset, chip->base + (BIT(offset + 2))); in pl061_direction_output()
105 static int pl061_get_value(struct gpio_chip *gc, unsigned offset) in pl061_get_value() argument
109 return !!readb(chip->base + (BIT(offset + 2))); in pl061_get_value()
[all …]
Dgpio-viperboard.c51 u8 offset; member
88 unsigned offset) in vprbrd_gpioa_get() argument
97 if (gpio->gpioa_out & (1 << offset)) in vprbrd_gpioa_get()
98 return gpio->gpioa_val & (1 << offset); in vprbrd_gpioa_get()
104 gamsg->offset = offset; in vprbrd_gpioa_get()
139 unsigned offset, int value) in vprbrd_gpioa_set() argument
147 if (gpio->gpioa_out & (1 << offset)) { in vprbrd_gpioa_set()
149 gpio->gpioa_val |= (1 << offset); in vprbrd_gpioa_set()
151 gpio->gpioa_val &= ~(1 << offset); in vprbrd_gpioa_set()
157 gamsg->offset = offset; in vprbrd_gpioa_set()
[all …]
Dgpio-tz1090.c108 unsigned int offset) in _tz1090_gpio_clear_bit() argument
113 value &= ~BIT(offset); in _tz1090_gpio_clear_bit()
119 unsigned int offset) in tz1090_gpio_clear_bit() argument
124 _tz1090_gpio_clear_bit(bank, reg_offs, offset); in tz1090_gpio_clear_bit()
131 unsigned int offset) in _tz1090_gpio_set_bit() argument
136 value |= BIT(offset); in _tz1090_gpio_set_bit()
142 unsigned int offset) in tz1090_gpio_set_bit() argument
147 _tz1090_gpio_set_bit(bank, reg_offs, offset); in tz1090_gpio_set_bit()
154 unsigned int offset, in _tz1090_gpio_mod_bit() argument
160 value &= ~BIT(offset); in _tz1090_gpio_mod_bit()
[all …]
Dgpio-amdpt.c36 static int pt_gpio_request(struct gpio_chip *gc, unsigned offset) in pt_gpio_request() argument
42 dev_dbg(gc->dev, "pt_gpio_request offset=%x\n", offset); in pt_gpio_request()
47 if (using_pins & BIT(offset)) { in pt_gpio_request()
49 offset); in pt_gpio_request()
54 writel(using_pins | BIT(offset), pt_gpio->reg_base + PT_SYNC_REG); in pt_gpio_request()
61 static void pt_gpio_free(struct gpio_chip *gc, unsigned offset) in pt_gpio_free() argument
70 using_pins &= ~BIT(offset); in pt_gpio_free()
75 dev_dbg(gc->dev, "pt_gpio_free offset=%x\n", offset); in pt_gpio_free()
78 static void pt_gpio_set_value(struct gpio_chip *gc, unsigned offset, int value) in pt_gpio_set_value() argument
85 offset, value); in pt_gpio_set_value()
[all …]
Dgpio-em.c136 unsigned int reg, offset, shift; in em_gio_irq_set_type() local
143 offset = irqd_to_hwirq(d); in em_gio_irq_set_type()
145 pr_debug("gio: sense irq = %d, mode = %d\n", offset, value); in em_gio_irq_set_type()
148 reg = GIO_IDT(offset >> 3); in em_gio_irq_set_type()
149 shift = (offset & 0x07) << 4; in em_gio_irq_set_type()
155 tmp &= ~BIT(offset); in em_gio_irq_set_type()
165 em_gio_write(p, GIO_IIR, BIT(offset)); in em_gio_irq_set_type()
169 tmp |= BIT(offset); in em_gio_irq_set_type()
181 unsigned int offset, irqs_handled = 0; in em_gio_irq_handler() local
184 offset = __ffs(pending); in em_gio_irq_handler()
[all …]
Dgpio-rc5t583.c42 static int rc5t583_gpio_get(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_get() argument
53 return !!(val & BIT(offset)); in rc5t583_gpio_get()
56 static void rc5t583_gpio_set(struct gpio_chip *gc, unsigned int offset, int val) in rc5t583_gpio_set() argument
61 rc5t583_set_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); in rc5t583_gpio_set()
63 rc5t583_clear_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); in rc5t583_gpio_set()
66 static int rc5t583_gpio_dir_input(struct gpio_chip *gc, unsigned int offset) in rc5t583_gpio_dir_input() argument
72 ret = rc5t583_clear_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); in rc5t583_gpio_dir_input()
77 return rc5t583_clear_bits(parent, RC5T583_GPIO_PGSEL, BIT(offset)); in rc5t583_gpio_dir_input()
80 static int rc5t583_gpio_dir_output(struct gpio_chip *gc, unsigned offset, in rc5t583_gpio_dir_output() argument
87 rc5t583_gpio_set(gc, offset, value); in rc5t583_gpio_dir_output()
[all …]
Dgpio-palmas.c43 static int palmas_gpio_get(struct gpio_chip *gc, unsigned offset) in palmas_gpio_get() argument
50 int gpio16 = (offset/8); in palmas_gpio_get()
52 offset %= 8; in palmas_gpio_get()
61 if (val & BIT(offset)) in palmas_gpio_get()
71 return !!(val & BIT(offset)); in palmas_gpio_get()
74 static void palmas_gpio_set(struct gpio_chip *gc, unsigned offset, in palmas_gpio_set() argument
81 int gpio16 = (offset/8); in palmas_gpio_set()
83 offset %= 8; in palmas_gpio_set()
91 ret = palmas_write(palmas, PALMAS_GPIO_BASE, reg, BIT(offset)); in palmas_gpio_set()
96 static int palmas_gpio_output(struct gpio_chip *gc, unsigned offset, in palmas_gpio_output() argument
[all …]
Dgpio-timberdale.c54 unsigned offset, bool enabled) in timbgpio_update_bit() argument
60 reg = ioread32(tgpio->membase + offset); in timbgpio_update_bit()
67 iowrite32(reg, tgpio->membase + offset); in timbgpio_update_bit()
99 static int timbgpio_to_irq(struct gpio_chip *gpio, unsigned offset) in timbgpio_to_irq() argument
106 return tgpio->irq_base + offset; in timbgpio_to_irq()
115 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_disable() local
119 tgpio->last_ier &= ~(1UL << offset); in timbgpio_irq_disable()
127 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_enable() local
131 tgpio->last_ier |= 1UL << offset; in timbgpio_irq_enable()
139 int offset = d->irq - tgpio->irq_base; in timbgpio_irq_type() local
[all …]
Dgpio-twl4030.c206 static int twl_request(struct gpio_chip *chip, unsigned offset) in twl_request() argument
214 if (offset >= TWL4030_GPIO_MAX) { in twl_request()
219 offset -= TWL4030_GPIO_MAX; in twl_request()
220 if (offset) { in twl_request()
268 priv->usage_count |= BIT(offset); in twl_request()
274 static void twl_free(struct gpio_chip *chip, unsigned offset) in twl_free() argument
279 if (offset >= TWL4030_GPIO_MAX) { in twl_free()
280 twl4030_led_set_value(offset - TWL4030_GPIO_MAX, 1); in twl_free()
284 priv->usage_count &= ~BIT(offset); in twl_free()
294 static int twl_direction_in(struct gpio_chip *chip, unsigned offset) in twl_direction_in() argument
[all …]
Dgpio-samsung.c431 static int samsung_gpiolib_2bit_input(struct gpio_chip *chip, unsigned offset) in samsung_gpiolib_2bit_input() argument
441 con &= ~(3 << (offset * 2)); in samsung_gpiolib_2bit_input()
450 unsigned offset, int value) in samsung_gpiolib_2bit_output() argument
461 dat &= ~(1 << offset); in samsung_gpiolib_2bit_output()
463 dat |= 1 << offset; in samsung_gpiolib_2bit_output()
467 con &= ~(3 << (offset * 2)); in samsung_gpiolib_2bit_output()
468 con |= 1 << (offset * 2); in samsung_gpiolib_2bit_output()
494 unsigned int offset) in samsung_gpiolib_4bit_input() argument
501 if (ourchip->bitmap_gpio_int & BIT(offset)) in samsung_gpiolib_4bit_input()
502 con |= 0xf << con_4bit_shift(offset); in samsung_gpiolib_4bit_input()
[all …]
Dgpio-stmpe.c44 static int stmpe_gpio_get(struct gpio_chip *chip, unsigned offset) in stmpe_gpio_get() argument
48 u8 reg = stmpe->regs[STMPE_IDX_GPMR_LSB] - (offset / 8); in stmpe_gpio_get()
49 u8 mask = 1 << (offset % 8); in stmpe_gpio_get()
59 static void stmpe_gpio_set(struct gpio_chip *chip, unsigned offset, int val) in stmpe_gpio_set() argument
64 u8 reg = stmpe->regs[which] - (offset / 8); in stmpe_gpio_set()
65 u8 mask = 1 << (offset % 8); in stmpe_gpio_set()
78 unsigned offset, int val) in stmpe_gpio_direction_output() argument
82 u8 reg = stmpe->regs[STMPE_IDX_GPDR_LSB] - (offset / 8); in stmpe_gpio_direction_output()
83 u8 mask = 1 << (offset % 8); in stmpe_gpio_direction_output()
85 stmpe_gpio_set(chip, offset, val); in stmpe_gpio_direction_output()
[all …]
Dgpio-vr41xx.c86 #define giu_read(offset) readw(giu_base + (offset)) argument
87 #define giu_write(offset, value) writew((value), giu_base + (offset)) argument
93 static inline u16 giu_set(u16 offset, u16 set) in giu_set() argument
97 data = giu_read(offset); in giu_set()
99 giu_write(offset, data); in giu_set()
104 static inline u16 giu_clear(u16 offset, u16 clear) in giu_clear() argument
108 data = giu_read(offset); in giu_clear()
110 giu_write(offset, data); in giu_clear()
335 u16 offset, mask, reg; in giu_set_direction() local
342 offset = GIUIOSELL; in giu_set_direction()
[all …]
Dgpio-kempld.c66 static int kempld_gpio_get(struct gpio_chip *chip, unsigned offset) in kempld_gpio_get() argument
72 return kempld_gpio_get_bit(pld, KEMPLD_GPIO_LVL_NUM(offset), offset); in kempld_gpio_get()
75 static void kempld_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in kempld_gpio_set() argument
82 kempld_gpio_bitop(pld, KEMPLD_GPIO_LVL_NUM(offset), offset, value); in kempld_gpio_set()
86 static int kempld_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in kempld_gpio_direction_input() argument
93 kempld_gpio_bitop(pld, KEMPLD_GPIO_DIR_NUM(offset), offset, 0); in kempld_gpio_direction_input()
99 static int kempld_gpio_direction_output(struct gpio_chip *chip, unsigned offset, in kempld_gpio_direction_output() argument
107 kempld_gpio_bitop(pld, KEMPLD_GPIO_LVL_NUM(offset), offset, value); in kempld_gpio_direction_output()
108 kempld_gpio_bitop(pld, KEMPLD_GPIO_DIR_NUM(offset), offset, 1); in kempld_gpio_direction_output()
114 static int kempld_gpio_get_direction(struct gpio_chip *chip, unsigned offset) in kempld_gpio_get_direction() argument
[all …]
Dgpio-octeon.c25 static unsigned int bit_cfg_reg(unsigned int offset) in bit_cfg_reg() argument
31 if (offset < 16) in bit_cfg_reg()
32 return 8 * offset; in bit_cfg_reg()
34 return 8 * (offset - 16) + 0x100; in bit_cfg_reg()
42 static int octeon_gpio_dir_in(struct gpio_chip *chip, unsigned offset) in octeon_gpio_dir_in() argument
46 cvmx_write_csr(gpio->register_base + bit_cfg_reg(offset), 0); in octeon_gpio_dir_in()
50 static void octeon_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in octeon_gpio_set() argument
53 u64 mask = 1ull << offset; in octeon_gpio_set()
58 static int octeon_gpio_dir_out(struct gpio_chip *chip, unsigned offset, in octeon_gpio_dir_out() argument
64 octeon_gpio_set(chip, offset, value); in octeon_gpio_dir_out()
[all …]
Dgpio-tz1090-pdc.c71 unsigned int offset) in tz1090_pdc_gpio_direction_input() argument
79 value |= BIT(offset); in tz1090_pdc_gpio_direction_input()
87 unsigned int offset, in tz1090_pdc_gpio_direction_output() argument
96 if (offset < 6) { in tz1090_pdc_gpio_direction_output()
99 value |= BIT(offset); in tz1090_pdc_gpio_direction_output()
101 value &= ~BIT(offset); in tz1090_pdc_gpio_direction_output()
106 value &= ~BIT(offset); in tz1090_pdc_gpio_direction_output()
113 static int tz1090_pdc_gpio_get(struct gpio_chip *chip, unsigned int offset) in tz1090_pdc_gpio_get() argument
116 return pdc_read(priv, REG_SOC_GPIO_STATUS) & BIT(offset); in tz1090_pdc_gpio_get()
119 static void tz1090_pdc_gpio_set(struct gpio_chip *chip, unsigned int offset, in tz1090_pdc_gpio_set() argument
[all …]
Dgpio-tc3589x.c42 static int tc3589x_gpio_get(struct gpio_chip *chip, unsigned offset) in tc3589x_gpio_get() argument
46 u8 reg = TC3589x_GPIODATA0 + (offset / 8) * 2; in tc3589x_gpio_get()
47 u8 mask = 1 << (offset % 8); in tc3589x_gpio_get()
57 static void tc3589x_gpio_set(struct gpio_chip *chip, unsigned offset, int val) in tc3589x_gpio_set() argument
61 u8 reg = TC3589x_GPIODATA0 + (offset / 8) * 2; in tc3589x_gpio_set()
62 unsigned pos = offset % 8; in tc3589x_gpio_set()
69 unsigned offset, int val) in tc3589x_gpio_direction_output() argument
73 u8 reg = TC3589x_GPIODIR0 + offset / 8; in tc3589x_gpio_direction_output()
74 unsigned pos = offset % 8; in tc3589x_gpio_direction_output()
76 tc3589x_gpio_set(chip, offset, val); in tc3589x_gpio_direction_output()
[all …]
Dgpio-omap.c89 #define LINE_USED(line, offset) (line & (BIT(offset))) argument
117 static void omap_set_gpio_dataout_reg(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_reg() argument
121 u32 l = BIT(offset); in omap_set_gpio_dataout_reg()
135 static void omap_set_gpio_dataout_mask(struct gpio_bank *bank, unsigned offset, in omap_set_gpio_dataout_mask() argument
139 u32 gpio_bit = BIT(offset); in omap_set_gpio_dataout_mask()
151 static int omap_get_gpio_datain(struct gpio_bank *bank, int offset) in omap_get_gpio_datain() argument
155 return (readl_relaxed(reg) & (BIT(offset))) != 0; in omap_get_gpio_datain()
158 static int omap_get_gpio_dataout(struct gpio_bank *bank, int offset) in omap_get_gpio_dataout() argument
162 return (readl_relaxed(reg) & (BIT(offset))) != 0; in omap_get_gpio_dataout()
213 static void omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, in omap2_set_gpio_debounce() argument
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dinit.c41 init->offset, init_exec(init) ? \
363 return bit_I.offset; in init_table()
375 init_table_(struct nvbios_init *init, u16 offset, const char *name) in init_table_() argument
380 if (len >= offset + 2) { in init_table_()
381 data = nvbios_rd16(bios, data + offset); in init_table_()
459 init_xlat_(struct nvbios_init *init, u8 index, u8 offset) in init_xlat_() argument
466 return nvbios_rd08(bios, data + offset); in init_xlat_()
583 u8 opcode = nvbios_rd08(init->bios, init->offset); in init_reserved()
597 cont(" 0x%02x", nvbios_rd08(init->bios, init->offset + i)); in init_reserved()
599 init->offset += length; in init_reserved()
[all …]
/linux-4.4.14/arch/arm/kernel/
Dmodule.c68 s32 offset; in apply_relocate() local
74 offset = ELF32_R_SYM(rel->r_info); in apply_relocate()
75 if (offset < 0 || offset > (symsec->sh_size / sizeof(Elf32_Sym))) { in apply_relocate()
81 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate()
112 offset = __mem_to_opcode_arm(*(u32 *)loc); in apply_relocate()
113 offset = (offset & 0x00ffffff) << 2; in apply_relocate()
114 if (offset & 0x02000000) in apply_relocate()
115 offset -= 0x04000000; in apply_relocate()
117 offset += sym->st_value - loc; in apply_relocate()
126 (offset <= (s32)0xfe000000 || in apply_relocate()
[all …]
Dinsn.c10 long offset; in __arm_gen_branch_thumb2() local
12 offset = (long)addr - (long)(pc + 4); in __arm_gen_branch_thumb2()
13 if (offset < -16777216 || offset > 16777214) { in __arm_gen_branch_thumb2()
18 s = (offset >> 24) & 0x1; in __arm_gen_branch_thumb2()
19 i1 = (offset >> 23) & 0x1; in __arm_gen_branch_thumb2()
20 i2 = (offset >> 22) & 0x1; in __arm_gen_branch_thumb2()
21 imm10 = (offset >> 12) & 0x3ff; in __arm_gen_branch_thumb2()
22 imm11 = (offset >> 1) & 0x7ff; in __arm_gen_branch_thumb2()
39 long offset; in __arm_gen_branch_arm() local
44 offset = (long)addr - (long)(pc + 8); in __arm_gen_branch_arm()
[all …]
/linux-4.4.14/drivers/gpu/host1x/hw/
Dhost1x02_hardware.h44 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
48 | host1x_uclass_wait_syncpt_base_offset_f(offset); in host1x_class_host_wait_syncpt_base()
52 unsigned base_indx, unsigned offset) in host1x_class_host_incr_syncpt_base() argument
55 | host1x_uclass_incr_syncpt_base_offset_f(offset); in host1x_class_host_incr_syncpt_base()
66 unsigned mod_id, unsigned offset, bool auto_inc) in host1x_class_host_indoff_reg_write() argument
70 | host1x_uclass_indoff_indroffset_f(offset); in host1x_class_host_indoff_reg_write()
77 unsigned mod_id, unsigned offset, bool auto_inc) in host1x_class_host_indoff_reg_read() argument
80 | host1x_uclass_indoff_indroffset_f(offset) in host1x_class_host_indoff_reg_read()
89 unsigned class_id, unsigned offset, unsigned mask) in host1x_opcode_setclass() argument
91 return (0 << 28) | (offset << 16) | (class_id << 6) | mask; in host1x_opcode_setclass()
[all …]
Dhost1x04_hardware.h44 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
48 | host1x_uclass_wait_syncpt_base_offset_f(offset); in host1x_class_host_wait_syncpt_base()
52 unsigned base_indx, unsigned offset) in host1x_class_host_incr_syncpt_base() argument
55 | host1x_uclass_incr_syncpt_base_offset_f(offset); in host1x_class_host_incr_syncpt_base()
66 unsigned mod_id, unsigned offset, bool auto_inc) in host1x_class_host_indoff_reg_write() argument
70 | host1x_uclass_indoff_indroffset_f(offset); in host1x_class_host_indoff_reg_write()
77 unsigned mod_id, unsigned offset, bool auto_inc) in host1x_class_host_indoff_reg_read() argument
80 | host1x_uclass_indoff_indroffset_f(offset) in host1x_class_host_indoff_reg_read()
89 unsigned class_id, unsigned offset, unsigned mask) in host1x_opcode_setclass() argument
91 return (0 << 28) | (offset << 16) | (class_id << 6) | mask; in host1x_opcode_setclass()
[all …]
Dhost1x01_hardware.h44 unsigned indx, unsigned base_indx, unsigned offset) in host1x_class_host_wait_syncpt_base() argument
48 | host1x_uclass_wait_syncpt_base_offset_f(offset); in host1x_class_host_wait_syncpt_base()
52 unsigned base_indx, unsigned offset) in host1x_class_host_incr_syncpt_base() argument
55 | host1x_uclass_incr_syncpt_base_offset_f(offset); in host1x_class_host_incr_syncpt_base()
66 unsigned mod_id, unsigned offset, bool auto_inc) in host1x_class_host_indoff_reg_write() argument
70 | host1x_uclass_indoff_indroffset_f(offset); in host1x_class_host_indoff_reg_write()
77 unsigned mod_id, unsigned offset, bool auto_inc) in host1x_class_host_indoff_reg_read() argument
80 | host1x_uclass_indoff_indroffset_f(offset) in host1x_class_host_indoff_reg_read()
90 unsigned class_id, unsigned offset, unsigned mask) in host1x_opcode_setclass() argument
92 return (0 << 28) | (offset << 16) | (class_id << 6) | mask; in host1x_opcode_setclass()
[all …]
/linux-4.4.14/drivers/gpu/drm/i915/
Ddvo_ns2501.c194 uint8_t offset; member
300 [0] = { .offset = 0x0a, .value = 0x81, },
302 [1] = { .offset = 0x12, .value = 0x02, },
303 [2] = { .offset = 0x18, .value = 0x07, },
304 [3] = { .offset = 0x19, .value = 0x00, },
305 [4] = { .offset = 0x1a, .value = 0x00, }, /* PLL?, ignored */
307 [5] = { .offset = 0x1e, .value = 0x02, },
308 [6] = { .offset = 0x1f, .value = 0x40, },
309 [7] = { .offset = 0x20, .value = 0x00, },
310 [8] = { .offset = 0x21, .value = 0x00, },
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dbmi.c118 u32 offset; in ath6kl_bmi_read() local
143 offset = 0; in ath6kl_bmi_read()
144 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_read()
145 offset += sizeof(cid); in ath6kl_bmi_read()
146 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_read()
147 offset += sizeof(addr); in ath6kl_bmi_read()
148 memcpy(&(ar->bmi.cmd_buf[offset]), &rx_len, sizeof(rx_len)); in ath6kl_bmi_read()
149 offset += sizeof(len); in ath6kl_bmi_read()
151 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_read()
174 u32 offset; in ath6kl_bmi_write() local
[all …]
/linux-4.4.14/arch/sparc/lib/
Dbitext.c29 int offset, count; /* siamese twins */ in bit_map_string_get() local
54 offset = t->first_free; in bit_map_string_get()
56 offset = t->last_off & ~align1; in bit_map_string_get()
59 off_new = find_next_zero_bit(t->map, t->size, offset); in bit_map_string_get()
61 count += off_new - offset; in bit_map_string_get()
62 offset = off_new; in bit_map_string_get()
63 if (offset >= t->size) in bit_map_string_get()
64 offset = 0; in bit_map_string_get()
69 t->size, t->used, offset, len, align, count); in bit_map_string_get()
73 if (offset + len > t->size) { in bit_map_string_get()
[all …]
Dmemcpy.S17 #define MOVE_BIGCHUNK(src, dst, offset, t0, t1, t2, t3, t4, t5, t6, t7) \ argument
18 ldd [%src + (offset) + 0x00], %t0; \
19 ldd [%src + (offset) + 0x08], %t2; \
20 ldd [%src + (offset) + 0x10], %t4; \
21 ldd [%src + (offset) + 0x18], %t6; \
22 st %t0, [%dst + (offset) + 0x00]; \
23 st %t1, [%dst + (offset) + 0x04]; \
24 st %t2, [%dst + (offset) + 0x08]; \
25 st %t3, [%dst + (offset) + 0x0c]; \
26 st %t4, [%dst + (offset) + 0x10]; \
[all …]
Dblockops.S13 #define BLAST_BLOCK(buf, offset) \ argument
14 std %g0, [buf + offset + 0x38]; \
15 std %g0, [buf + offset + 0x30]; \
16 std %g0, [buf + offset + 0x28]; \
17 std %g0, [buf + offset + 0x20]; \
18 std %g0, [buf + offset + 0x18]; \
19 std %g0, [buf + offset + 0x10]; \
20 std %g0, [buf + offset + 0x08]; \
21 std %g0, [buf + offset + 0x00];
26 #define MIRROR_BLOCK(dst, src, offset, t0, t1, t2, t3, t4, t5, t6, t7) \ argument
[all …]
/linux-4.4.14/drivers/mtd/nand/
Domap_elm.c95 static void elm_write_reg(struct elm_info *info, int offset, u32 val) in elm_write_reg() argument
97 writel(val, info->elm_base + offset); in elm_write_reg()
100 static u32 elm_read_reg(struct elm_info *info, int offset) in elm_read_reg() argument
102 return readl(info->elm_base + offset); in elm_read_reg()
174 int i, offset; in elm_load_syndrome() local
182 offset = ELM_SYNDROME_FRAGMENT_0 + in elm_load_syndrome()
188 elm_write_reg(info, offset, val); in elm_load_syndrome()
191 offset += 4; in elm_load_syndrome()
193 elm_write_reg(info, offset, val); in elm_load_syndrome()
196 offset += 4; in elm_load_syndrome()
[all …]
Dfsmc_nand.c47 {.offset = 8, .length = 8},
48 {.offset = 24, .length = 8},
49 {.offset = 40, .length = 8},
50 {.offset = 56, .length = 8},
51 {.offset = 72, .length = 8},
52 {.offset = 88, .length = 8},
53 {.offset = 104, .length = 8},
54 {.offset = 120, .length = 8}
62 {.offset = 8, .length = 8},
63 {.offset = 24, .length = 8},
[all …]
/linux-4.4.14/arch/x86/entry/
Dcalling.h95 .macro SAVE_C_REGS_HELPER offset=0 rax=1 rcx=1 r8910=1 r11=1
97 movq %r11, 6*8+\offset(%rsp)
100 movq %r10, 7*8+\offset(%rsp)
101 movq %r9, 8*8+\offset(%rsp)
102 movq %r8, 9*8+\offset(%rsp)
105 movq %rax, 10*8+\offset(%rsp)
108 movq %rcx, 11*8+\offset(%rsp)
110 movq %rdx, 12*8+\offset(%rsp)
111 movq %rsi, 13*8+\offset(%rsp)
112 movq %rdi, 14*8+\offset(%rsp)
[all …]
/linux-4.4.14/fs/btrfs/tests/
Dinode-tests.c27 u64 ram_bytes, u64 offset, u64 disk_bytenr, in insert_extent() argument
45 key.offset = start; in insert_extent()
54 btrfs_set_file_extent_offset(leaf, fi, offset); in insert_extent()
76 key.offset = 0; in insert_inode_item_key()
104 u64 offset = 0; in setup_file_extents() local
107 insert_extent(root, offset, 5, 5, 0, 0, 0, BTRFS_FILE_EXTENT_REG, 0, in setup_file_extents()
110 offset += 5; in setup_file_extents()
118 insert_extent(root, offset, 1, 1, 0, 0, 0, BTRFS_FILE_EXTENT_INLINE, 0, in setup_file_extents()
121 offset = 4096; in setup_file_extents()
124 insert_extent(root, offset, 4, 4, 0, 0, 0, BTRFS_FILE_EXTENT_REG, 0, in setup_file_extents()
[all …]
/linux-4.4.14/fs/udf/
Ddirectory.c25 sector_t *offset) in udf_fileident_read() argument
53 int lextoffset = epos->offset; in udf_fileident_read()
60 block = udf_get_lb_pblock(dir->i_sb, eloc, *offset); in udf_fileident_read()
62 (*offset)++; in udf_fileident_read()
64 if ((*offset << blocksize_bits) >= *elen) in udf_fileident_read()
65 *offset = 0; in udf_fileident_read()
67 epos->offset = lextoffset; in udf_fileident_read()
75 if (!(*offset & ((16 >> (blocksize_bits - 9)) - 1))) { in udf_fileident_read()
77 if (i + *offset > (*elen >> blocksize_bits)) in udf_fileident_read()
78 i = (*elen >> blocksize_bits)-*offset; in udf_fileident_read()
[all …]
Dmisc.c51 int offset; in udf_add_extendedattr() local
63 offset = inode->i_sb->s_blocksize - udf_file_entry_alloc_offset(inode) - in udf_add_extendedattr()
68 if (loc & 0x01 && offset >= size) { in udf_add_extendedattr()
101 offset = iinfo->i_lenEAttr; in udf_add_extendedattr()
107 memmove(&ea[offset - aal + size], in udf_add_extendedattr()
108 &ea[aal], offset - aal); in udf_add_extendedattr()
109 offset -= aal; in udf_add_extendedattr()
117 memmove(&ea[offset - ial + size], in udf_add_extendedattr()
118 &ea[ial], offset - ial); in udf_add_extendedattr()
119 offset -= ial; in udf_add_extendedattr()
[all …]
/linux-4.4.14/arch/x86/include/asm/numachip/
Dnumachip_csr.h39 static inline void *lcsr_address(unsigned long offset) in lcsr_address() argument
42 CSR_NODE_BITS(0xfff0) | (offset & CSR_OFFSET_MASK)); in lcsr_address()
45 static inline unsigned int read_lcsr(unsigned long offset) in read_lcsr() argument
47 return swab32(readl(lcsr_address(offset))); in read_lcsr()
50 static inline void write_lcsr(unsigned long offset, unsigned int val) in write_lcsr() argument
52 writel(swab32(val), lcsr_address(offset)); in write_lcsr()
67 static inline void __iomem *numachip2_lcsr_address(unsigned long offset) in numachip2_lcsr_address() argument
70 (offset & (NUMACHIP2_LCSR_SIZE - 1))); in numachip2_lcsr_address()
73 static inline u32 numachip2_read32_lcsr(unsigned long offset) in numachip2_read32_lcsr() argument
75 return readl(numachip2_lcsr_address(offset)); in numachip2_read32_lcsr()
[all …]
/linux-4.4.14/include/linux/bcma/
Dbcma.h42 u8 (*read8)(struct bcma_device *core, u16 offset);
43 u16 (*read16)(struct bcma_device *core, u16 offset);
44 u32 (*read32)(struct bcma_device *core, u16 offset);
45 void (*write8)(struct bcma_device *core, u16 offset, u8 value);
46 void (*write16)(struct bcma_device *core, u16 offset, u16 value);
47 void (*write32)(struct bcma_device *core, u16 offset, u32 value);
50 size_t count, u16 offset, u8 reg_width);
52 size_t count, u16 offset, u8 reg_width);
55 u32 (*aread32)(struct bcma_device *core, u16 offset);
56 void (*awrite32)(struct bcma_device *core, u16 offset, u32 value);
[all …]
Dbcma_driver_pcie2.h150 #define pcie2_read16(pcie2, offset) bcma_read16((pcie2)->core, offset) argument
151 #define pcie2_read32(pcie2, offset) bcma_read32((pcie2)->core, offset) argument
152 #define pcie2_write16(pcie2, offset, val) bcma_write16((pcie2)->core, offset, val) argument
153 #define pcie2_write32(pcie2, offset, val) bcma_write32((pcie2)->core, offset, val) argument
155 #define pcie2_set32(pcie2, offset, set) bcma_set32((pcie2)->core, offset, set) argument
156 #define pcie2_mask32(pcie2, offset, mask) bcma_mask32((pcie2)->core, offset, mask) argument
/linux-4.4.14/drivers/pinctrl/spear/
Dpinctrl-plgpio.c71 int (*o2p)(int offset); /* offset_to_pin */
82 u32 offset = PIN_OFFSET(pin); in is_plgpio_set() local
86 return !!(val & (1 << offset)); in is_plgpio_set()
91 u32 offset = PIN_OFFSET(pin); in plgpio_reg_set() local
95 writel_relaxed(val | (1 << offset), reg_off); in plgpio_reg_set()
100 u32 offset = PIN_OFFSET(pin); in plgpio_reg_reset() local
104 writel_relaxed(val & ~(1 << offset), reg_off); in plgpio_reg_reset()
108 static int plgpio_direction_input(struct gpio_chip *chip, unsigned offset) in plgpio_direction_input() argument
115 offset = plgpio->p2o(offset); in plgpio_direction_input()
116 if (offset == -1) in plgpio_direction_input()
[all …]
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dspu_restore.c83 unsigned int offset; in restore_decr() local
92 offset = LSCSA_QW_OFFSET(decr_status); in restore_decr()
93 decr_running = regs_spill[offset].slot[0] & SPU_DECR_STATUS_RUNNING; in restore_decr()
95 offset = LSCSA_QW_OFFSET(decr); in restore_decr()
96 decr = regs_spill[offset].slot[0]; in restore_decr()
103 unsigned int offset; in write_ppu_mb() local
110 offset = LSCSA_QW_OFFSET(ppu_mb); in write_ppu_mb()
111 data = regs_spill[offset].slot[0]; in write_ppu_mb()
117 unsigned int offset; in write_ppuint_mb() local
124 offset = LSCSA_QW_OFFSET(ppuint_mb); in write_ppuint_mb()
[all …]
Dspu_save.c41 unsigned int offset; in save_event_mask() local
46 offset = LSCSA_QW_OFFSET(event_mask); in save_event_mask()
47 regs_spill[offset].slot[0] = spu_readch(SPU_RdEventMask); in save_event_mask()
52 unsigned int offset; in save_tag_mask() local
57 offset = LSCSA_QW_OFFSET(tag_mask); in save_tag_mask()
58 regs_spill[offset].slot[0] = spu_readch(MFC_RdTagMask); in save_tag_mask()
84 unsigned int offset; in save_fpcr() local
90 offset = LSCSA_QW_OFFSET(fpcr); in save_fpcr()
91 regs_spill[offset].v = spu_mffpscr(); in save_fpcr()
96 unsigned int offset; in save_decr() local
[all …]
/linux-4.4.14/arch/ia64/include/asm/uv/
Duv_hub.h172 static inline void *uv_pnode_offset_to_vaddr(int pnode, unsigned long offset) in uv_pnode_offset_to_vaddr() argument
174 return __va(((unsigned long)pnode << uv_hub_info->m_val) | offset); in uv_pnode_offset_to_vaddr()
183 unsigned long offset) in uv_global_mmr32_address() argument
186 UV_GLOBAL_MMR32_PNODE_BITS(pnode) | offset); in uv_global_mmr32_address()
189 static inline void uv_write_global_mmr32(int pnode, unsigned long offset, in uv_write_global_mmr32() argument
192 *uv_global_mmr32_address(pnode, offset) = val; in uv_write_global_mmr32()
196 unsigned long offset) in uv_read_global_mmr32() argument
198 return *uv_global_mmr32_address(pnode, offset); in uv_read_global_mmr32()
206 unsigned long offset) in uv_global_mmr64_address() argument
209 UV_GLOBAL_MMR64_PNODE_BITS(pnode) | offset); in uv_global_mmr64_address()
[all …]
/linux-4.4.14/drivers/ssb/
Dhost_soc.c15 static u8 ssb_host_soc_read8(struct ssb_device *dev, u16 offset) in ssb_host_soc_read8() argument
19 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read8()
20 return readb(bus->mmio + offset); in ssb_host_soc_read8()
23 static u16 ssb_host_soc_read16(struct ssb_device *dev, u16 offset) in ssb_host_soc_read16() argument
27 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read16()
28 return readw(bus->mmio + offset); in ssb_host_soc_read16()
31 static u32 ssb_host_soc_read32(struct ssb_device *dev, u16 offset) in ssb_host_soc_read32() argument
35 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read32()
36 return readl(bus->mmio + offset); in ssb_host_soc_read32()
41 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_read() argument
[all …]
Ddriver_gige.c32 static inline u8 gige_read8(struct ssb_gige *dev, u16 offset) in gige_read8() argument
34 return ssb_read8(dev->dev, offset); in gige_read8()
37 static inline u16 gige_read16(struct ssb_gige *dev, u16 offset) in gige_read16() argument
39 return ssb_read16(dev->dev, offset); in gige_read16()
42 static inline u32 gige_read32(struct ssb_gige *dev, u16 offset) in gige_read32() argument
44 return ssb_read32(dev->dev, offset); in gige_read32()
48 u16 offset, u8 value) in gige_write8() argument
50 ssb_write8(dev->dev, offset, value); in gige_write8()
54 u16 offset, u16 value) in gige_write16() argument
56 ssb_write16(dev->dev, offset, value); in gige_write16()
[all …]
Dsdio.c167 u32 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset) in ssb_sdio_scan_read32() argument
173 val = sdio_readl(bus->host_sdio, offset, &error); in ssb_sdio_scan_read32()
177 bus->sdio_sbaddr >> 16, offset, val, error); in ssb_sdio_scan_read32()
229 static u8 ssb_sdio_read8(struct ssb_device *dev, u16 offset) in ssb_sdio_read8() argument
238 offset |= bus->sdio_sbaddr & 0xffff; in ssb_sdio_read8()
239 offset &= SBSDIO_SB_OFT_ADDR_MASK; in ssb_sdio_read8()
240 val = sdio_readb(bus->host_sdio, offset, &error); in ssb_sdio_read8()
243 bus->sdio_sbaddr >> 16, offset, val, error); in ssb_sdio_read8()
251 static u16 ssb_sdio_read16(struct ssb_device *dev, u16 offset) in ssb_sdio_read16() argument
260 offset |= bus->sdio_sbaddr & 0xffff; in ssb_sdio_read16()
[all …]
Dpcmcia.c71 static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value) in ssb_pcmcia_cfg_write() argument
75 res = pcmcia_write_config_byte(bus->host_pcmcia, offset, value); in ssb_pcmcia_cfg_write()
83 static int ssb_pcmcia_cfg_read(struct ssb_bus *bus, u8 offset, u8 *value) in ssb_pcmcia_cfg_read() argument
87 res = pcmcia_read_config_byte(bus->host_pcmcia, offset, value); in ssb_pcmcia_cfg_read()
198 u16 *offset) in select_core_and_segment() argument
204 if (*offset >= 0x800) { in select_core_and_segment()
205 *offset -= 0x800; in select_core_and_segment()
224 static u8 ssb_pcmcia_read8(struct ssb_device *dev, u16 offset) in ssb_pcmcia_read8() argument
232 err = select_core_and_segment(dev, &offset); in ssb_pcmcia_read8()
234 value = readb(bus->mmio + offset); in ssb_pcmcia_read8()
[all …]
/linux-4.4.14/arch/mips/boot/compressed/
Duart-16550.c12 #define PORT(offset) (CKSEG1ADDR(UART_BASE) + (offset)) argument
17 #define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset)) argument
22 #define PORT(offset) (CKSEG1ADDR(JZ4740_UART0_BASE_ADDR) + (4 * offset)) argument
27 #define PORT(offset) (CKSEG1ADDR(UART0_BASE) + (4 * offset)) argument
33 #define PORT(offset) (CKSEG1ADDR(UART0_BASE) + (4 * offset)) argument
45 static inline unsigned int serial_in(int offset) in serial_in() argument
47 return *((volatile IOTYPE *)PORT(offset)) & 0xFF; in serial_in()
50 static inline void serial_out(int offset, int value) in serial_out() argument
52 *((volatile IOTYPE *)PORT(offset)) = value & 0xFF; in serial_out()
/linux-4.4.14/arch/mips/alchemy/common/
Dgpiolib.c41 static int gpio2_get(struct gpio_chip *chip, unsigned offset) in gpio2_get() argument
43 return alchemy_gpio2_get_value(offset + ALCHEMY_GPIO2_BASE); in gpio2_get()
46 static void gpio2_set(struct gpio_chip *chip, unsigned offset, int value) in gpio2_set() argument
48 alchemy_gpio2_set_value(offset + ALCHEMY_GPIO2_BASE, value); in gpio2_set()
51 static int gpio2_direction_input(struct gpio_chip *chip, unsigned offset) in gpio2_direction_input() argument
53 return alchemy_gpio2_direction_input(offset + ALCHEMY_GPIO2_BASE); in gpio2_direction_input()
56 static int gpio2_direction_output(struct gpio_chip *chip, unsigned offset, in gpio2_direction_output() argument
59 return alchemy_gpio2_direction_output(offset + ALCHEMY_GPIO2_BASE, in gpio2_direction_output()
63 static int gpio2_to_irq(struct gpio_chip *chip, unsigned offset) in gpio2_to_irq() argument
65 return alchemy_gpio2_to_irq(offset + ALCHEMY_GPIO2_BASE); in gpio2_to_irq()
[all …]
/linux-4.4.14/include/linux/
Drio_drv.h23 extern int __rio_local_read_config_32(struct rio_mport *port, u32 offset,
25 extern int __rio_local_write_config_32(struct rio_mport *port, u32 offset,
27 extern int __rio_local_read_config_16(struct rio_mport *port, u32 offset,
29 extern int __rio_local_write_config_16(struct rio_mport *port, u32 offset,
31 extern int __rio_local_read_config_8(struct rio_mport *port, u32 offset,
33 extern int __rio_local_write_config_8(struct rio_mport *port, u32 offset,
37 u8 hopcount, u32 offset, u32 * data);
39 u8 hopcount, u32 offset, u32 data);
41 u8 hopcount, u32 offset, u16 * data);
43 u8 hopcount, u32 offset, u16 data);
[all …]
Dvirtio_config.h62 void (*get)(struct virtio_device *vdev, unsigned offset,
64 void (*set)(struct virtio_device *vdev, unsigned offset,
309 unsigned int offset, in __virtio_cread_many() argument
320 vdev->config->get(vdev, offset + bytes * i, in __virtio_cread_many()
329 unsigned int offset, in virtio_cread_bytes() argument
332 __virtio_cread_many(vdev, offset, buf, len, 1); in virtio_cread_bytes()
335 static inline u8 virtio_cread8(struct virtio_device *vdev, unsigned int offset) in virtio_cread8() argument
338 vdev->config->get(vdev, offset, &ret, sizeof(ret)); in virtio_cread8()
343 unsigned int offset, u8 val) in virtio_cwrite8() argument
345 vdev->config->set(vdev, offset, &val, sizeof(val)); in virtio_cwrite8()
[all …]
/linux-4.4.14/drivers/gpu/drm/radeon/
Dr600_hdmi.c177 void r600_hdmi_update_acr(struct drm_encoder *encoder, long offset, in r600_hdmi_update_acr() argument
186 WREG32_P(acr_ctl + offset, in r600_hdmi_update_acr()
192 WREG32_P(HDMI0_ACR_32_0 + offset, in r600_hdmi_update_acr()
195 WREG32_P(HDMI0_ACR_32_1 + offset, in r600_hdmi_update_acr()
199 WREG32_P(HDMI0_ACR_44_0 + offset, in r600_hdmi_update_acr()
202 WREG32_P(HDMI0_ACR_44_1 + offset, in r600_hdmi_update_acr()
206 WREG32_P(HDMI0_ACR_48_0 + offset, in r600_hdmi_update_acr()
209 WREG32_P(HDMI0_ACR_48_1 + offset, in r600_hdmi_update_acr()
217 void r600_set_avi_packet(struct radeon_device *rdev, u32 offset, in r600_set_avi_packet() argument
222 WREG32(HDMI0_AVI_INFO0 + offset, in r600_set_avi_packet()
[all …]
Devergreen_hdmi.c67 void evergreen_hdmi_update_acr(struct drm_encoder *encoder, long offset, in evergreen_hdmi_update_acr() argument
80 WREG32(HDMI_ACR_PACKET_CONTROL + offset, in evergreen_hdmi_update_acr()
83 WREG32(HDMI_ACR_PACKET_CONTROL + offset, in evergreen_hdmi_update_acr()
87 WREG32(HDMI_ACR_32_0 + offset, HDMI_ACR_CTS_32(acr->cts_32khz)); in evergreen_hdmi_update_acr()
88 WREG32(HDMI_ACR_32_1 + offset, acr->n_32khz); in evergreen_hdmi_update_acr()
90 WREG32(HDMI_ACR_44_0 + offset, HDMI_ACR_CTS_44(acr->cts_44_1khz)); in evergreen_hdmi_update_acr()
91 WREG32(HDMI_ACR_44_1 + offset, acr->n_44_1khz); in evergreen_hdmi_update_acr()
93 WREG32(HDMI_ACR_48_0 + offset, HDMI_ACR_CTS_48(acr->cts_48khz)); in evergreen_hdmi_update_acr()
94 WREG32(HDMI_ACR_48_1 + offset, acr->n_48khz); in evergreen_hdmi_update_acr()
208 void evergreen_set_avi_packet(struct radeon_device *rdev, u32 offset, in evergreen_set_avi_packet() argument
[all …]
Ddce3_1_afmt.c170 void dce3_2_hdmi_update_acr(struct drm_encoder *encoder, long offset, in dce3_2_hdmi_update_acr() argument
176 WREG32(DCE3_HDMI0_ACR_PACKET_CONTROL + offset, in dce3_2_hdmi_update_acr()
180 WREG32_P(HDMI0_ACR_32_0 + offset, in dce3_2_hdmi_update_acr()
183 WREG32_P(HDMI0_ACR_32_1 + offset, in dce3_2_hdmi_update_acr()
187 WREG32_P(HDMI0_ACR_44_0 + offset, in dce3_2_hdmi_update_acr()
190 WREG32_P(HDMI0_ACR_44_1 + offset, in dce3_2_hdmi_update_acr()
194 WREG32_P(HDMI0_ACR_48_0 + offset, in dce3_2_hdmi_update_acr()
197 WREG32_P(HDMI0_ACR_48_1 + offset, in dce3_2_hdmi_update_acr()
202 void dce3_2_set_audio_packet(struct drm_encoder *encoder, u32 offset) in dce3_2_set_audio_packet() argument
207 WREG32(HDMI0_AUDIO_PACKET_CONTROL + offset, in dce3_2_set_audio_packet()
[all …]
/linux-4.4.14/drivers/xen/xen-pciback/
Dconf_space.h14 typedef void *(*conf_field_init) (struct pci_dev *dev, int offset);
15 typedef void (*conf_field_reset) (struct pci_dev *dev, int offset, void *data);
16 typedef void (*conf_field_free) (struct pci_dev *dev, int offset, void *data);
18 typedef int (*conf_dword_write) (struct pci_dev *dev, int offset, u32 value,
20 typedef int (*conf_word_write) (struct pci_dev *dev, int offset, u16 value,
22 typedef int (*conf_byte_write) (struct pci_dev *dev, int offset, u8 value,
24 typedef int (*conf_dword_read) (struct pci_dev *dev, int offset, u32 *value,
26 typedef int (*conf_word_read) (struct pci_dev *dev, int offset, u16 *value,
28 typedef int (*conf_byte_read) (struct pci_dev *dev, int offset, u8 *value,
36 unsigned int offset; member
[all …]
Dconf_space_header.c32 static void *command_init(struct pci_dev *dev, int offset) in command_init() argument
49 static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) in command_read() argument
51 int ret = pci_read_config_word(dev, offset, value); in command_read()
60 static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) in command_write() argument
125 err = pci_read_config_word(dev, offset, &val); in command_write()
132 return pci_write_config_word(dev, offset, value); in command_write()
135 static int rom_write(struct pci_dev *dev, int offset, u32 value, void *data) in rom_write() argument
152 pci_read_config_dword(dev, offset, &tmpval); in rom_write()
155 pci_write_config_dword(dev, offset, bar->val); in rom_write()
169 static int bar_write(struct pci_dev *dev, int offset, u32 value, void *data) in bar_write() argument
[all …]
Dconf_space.c26 (struct pci_dev *dev, int offset, type value, void *data) \
28 return pci_##op##_config_##size(dev, offset, value); \
41 int offset, u32 *value) in DEFINE_PCI_CONFIG()
51 ret = field->u.b.read(dev, offset, (u8 *) value, in DEFINE_PCI_CONFIG()
56 ret = field->u.w.read(dev, offset, (u16 *) value, in DEFINE_PCI_CONFIG()
61 ret = field->u.dw.read(dev, offset, value, entry->data); in DEFINE_PCI_CONFIG()
69 int offset, u32 value) in conf_space_write() argument
77 ret = field->u.b.write(dev, offset, (u8) value, in conf_space_write()
82 ret = field->u.w.write(dev, offset, (u16) value, in conf_space_write()
87 ret = field->u.dw.write(dev, offset, value, in conf_space_write()
[all …]
Dconf_space_capability.c25 .offset = PCI_CAP_LIST_ID,
67 static int vpd_address_write(struct pci_dev *dev, int offset, u16 value, in vpd_address_write() argument
74 return pci_write_config_word(dev, offset, value); in vpd_address_write()
79 .offset = PCI_VPD_ADDR,
85 .offset = PCI_VPD_DATA,
93 static int pm_caps_read(struct pci_dev *dev, int offset, u16 *value, in pm_caps_read() argument
99 err = pci_read_config_word(dev, offset, &real_value); in pm_caps_read()
113 static int pm_ctrl_write(struct pci_dev *dev, int offset, u16 new_value, in pm_ctrl_write() argument
120 err = pci_read_config_word(dev, offset, &old_value); in pm_ctrl_write()
130 err = pci_write_config_word(dev, offset, new_value); in pm_ctrl_write()
[all …]
/linux-4.4.14/drivers/video/fbdev/mmp/fb/
Dmmpfb.c40 if (var->green.offset >= var->blue.offset) in var_to_pixfmt()
51 if (var->green.offset >= var->blue.offset) in var_to_pixfmt()
62 if (var->red.offset == 0) in var_to_pixfmt()
64 else if (var->green.offset >= var->blue.offset) in var_to_pixfmt()
76 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
89 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
95 if (var->bits_per_pixel == 32 && var->transp.offset == 24) { in var_to_pixfmt()
96 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
101 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
118 var->red.offset = 11; var->red.length = 5; in pixfmt_to_var()
[all …]
/linux-4.4.14/virt/kvm/arm/
Dvgic-v3-emul.c53 struct kvm_exit_mmio *mmio, phys_addr_t offset) in handle_mmio_rao_wi() argument
57 vgic_reg_access(mmio, &reg, offset, in handle_mmio_rao_wi()
64 struct kvm_exit_mmio *mmio, phys_addr_t offset) in handle_mmio_ctlr() argument
76 vgic_reg_access(mmio, &reg, offset, in handle_mmio_ctlr()
94 struct kvm_exit_mmio *mmio, phys_addr_t offset) in handle_mmio_typer() argument
102 vgic_reg_access(mmio, &reg, offset, in handle_mmio_typer()
109 struct kvm_exit_mmio *mmio, phys_addr_t offset) in handle_mmio_iidr() argument
114 vgic_reg_access(mmio, &reg, offset, in handle_mmio_iidr()
122 phys_addr_t offset) in handle_mmio_set_enable_reg_dist() argument
124 if (likely(offset >= VGIC_NR_PRIVATE_IRQS / 8)) in handle_mmio_set_enable_reg_dist()
[all …]
Dvgic-v2-emul.c44 struct kvm_exit_mmio *mmio, phys_addr_t offset) in handle_mmio_misc() argument
47 u32 word_offset = offset & 3; in handle_mmio_misc()
49 switch (offset & ~3) { in handle_mmio_misc()
80 phys_addr_t offset) in handle_mmio_set_enable_reg() argument
82 return vgic_handle_enable_reg(vcpu->kvm, mmio, offset, in handle_mmio_set_enable_reg()
88 phys_addr_t offset) in handle_mmio_clear_enable_reg() argument
90 return vgic_handle_enable_reg(vcpu->kvm, mmio, offset, in handle_mmio_clear_enable_reg()
96 phys_addr_t offset) in handle_mmio_set_pending_reg() argument
98 return vgic_handle_set_pending_reg(vcpu->kvm, mmio, offset, in handle_mmio_set_pending_reg()
104 phys_addr_t offset) in handle_mmio_clear_pending_reg() argument
[all …]
/linux-4.4.14/include/drm/
Ddrm_os_linux.h26 #define DRM_READ8(map, offset) readb(((void __iomem *)(map)->handle) + (offset)) argument
28 #define DRM_READ16(map, offset) readw(((void __iomem *)(map)->handle) + (offset)) argument
30 #define DRM_READ32(map, offset) readl(((void __iomem *)(map)->handle) + (offset)) argument
32 #define DRM_WRITE8(map, offset, val) writeb(val, ((void __iomem *)(map)->handle) + (offset)) argument
34 #define DRM_WRITE16(map, offset, val) writew(val, ((void __iomem *)(map)->handle) + (offset)) argument
36 #define DRM_WRITE32(map, offset, val) writel(val, ((void __iomem *)(map)->handle) + (offset)) argument
39 #define DRM_READ64(map, offset) readq(((void __iomem *)(map)->handle) + (offset)) argument
41 #define DRM_WRITE64(map, offset, val) writeq(val, ((void __iomem *)(map)->handle) + (offset)) argument
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Drtw_debug.h121 off_t offset, int count,
125 off_t offset, int count,
131 off_t offset, int count,
138 off_t offset, int count,
141 off_t offset, int count,
144 off_t offset, int count,
148 off_t offset, int count,
151 off_t offset, int count,
154 off_t offset, int count,
157 off_t offset, int count,
[all …]
/linux-4.4.14/drivers/net/wireless/b43/
Dtables_phy_ht.c619 u32 b43_httab_read(struct b43_wldev *dev, u32 offset) in b43_httab_read() argument
623 type = offset & B43_HTTAB_TYPEMASK; in b43_httab_read()
624 offset &= ~B43_HTTAB_TYPEMASK; in b43_httab_read()
625 B43_WARN_ON(offset > 0xFFFF); in b43_httab_read()
629 b43_phy_write(dev, B43_PHY_HT_TABLE_ADDR, offset); in b43_httab_read()
633 b43_phy_write(dev, B43_PHY_HT_TABLE_ADDR, offset); in b43_httab_read()
637 b43_phy_write(dev, B43_PHY_HT_TABLE_ADDR, offset); in b43_httab_read()
650 void b43_httab_read_bulk(struct b43_wldev *dev, u32 offset, in b43_httab_read_bulk() argument
657 type = offset & B43_HTTAB_TYPEMASK; in b43_httab_read_bulk()
658 offset &= ~B43_HTTAB_TYPEMASK; in b43_httab_read_bulk()
[all …]
Dtables_phy_ht.h9 #define B43_HTTAB8(table, offset) (((table) << 10) | (offset) | B43_HTTAB_8BIT) argument
10 #define B43_HTTAB16(table, offset) (((table) << 10) | (offset) | B43_HTTAB_16BIT) argument
11 #define B43_HTTAB32(table, offset) (((table) << 10) | (offset) | B43_HTTAB_32BIT) argument
13 u32 b43_httab_read(struct b43_wldev *dev, u32 offset);
14 void b43_httab_read_bulk(struct b43_wldev *dev, u32 offset,
16 void b43_httab_write(struct b43_wldev *dev, u32 offset, u32 value);
17 void b43_httab_write_few(struct b43_wldev *dev, u32 offset, size_t num, ...);
18 void b43_httab_write_bulk(struct b43_wldev *dev, u32 offset,
Dtables_lpphy.h9 #define B43_LPTAB8(table, offset) (((table) << 10) | (offset) | B43_LPTAB_8BIT) argument
10 #define B43_LPTAB16(table, offset) (((table) << 10) | (offset) | B43_LPTAB_16BIT) argument
11 #define B43_LPTAB32(table, offset) (((table) << 10) | (offset) | B43_LPTAB_32BIT) argument
17 u32 b43_lptab_read(struct b43_wldev *dev, u32 offset);
18 void b43_lptab_write(struct b43_wldev *dev, u32 offset, u32 value);
23 void b43_lptab_read_bulk(struct b43_wldev *dev, u32 offset,
25 void b43_lptab_write_bulk(struct b43_wldev *dev, u32 offset,
35 void lpphy_write_gain_table(struct b43_wldev *dev, int offset,
37 void lpphy_write_gain_table_bulk(struct b43_wldev *dev, int offset, int count,
Dpio.h108 static inline u16 b43_piotx_read16(struct b43_pio_txqueue *q, u16 offset) in b43_piotx_read16() argument
110 return b43_read16(q->dev, q->mmio_base + offset); in b43_piotx_read16()
113 static inline u32 b43_piotx_read32(struct b43_pio_txqueue *q, u16 offset) in b43_piotx_read32() argument
115 return b43_read32(q->dev, q->mmio_base + offset); in b43_piotx_read32()
119 u16 offset, u16 value) in b43_piotx_write16() argument
121 b43_write16(q->dev, q->mmio_base + offset, value); in b43_piotx_write16()
125 u16 offset, u32 value) in b43_piotx_write32() argument
127 b43_write32(q->dev, q->mmio_base + offset, value); in b43_piotx_write32()
131 static inline u16 b43_piorx_read16(struct b43_pio_rxqueue *q, u16 offset) in b43_piorx_read16() argument
133 return b43_read16(q->dev, q->mmio_base + offset); in b43_piorx_read16()
[all …]
Dtables_phy_lcn.h9 #define B43_LCNTAB8(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_8BIT) argument
10 #define B43_LCNTAB16(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_16BIT) argument
11 #define B43_LCNTAB32(table, offset) (((table) << 10) | (offset) | B43_LCNTAB_32BIT) argument
15 u32 b43_lcntab_read(struct b43_wldev *dev, u32 offset);
16 void b43_lcntab_read_bulk(struct b43_wldev *dev, u32 offset,
18 void b43_lcntab_write(struct b43_wldev *dev, u32 offset, u32 value);
19 void b43_lcntab_write_bulk(struct b43_wldev *dev, u32 offset,
Dtables_phy_lcn.c470 u32 b43_lcntab_read(struct b43_wldev *dev, u32 offset) in b43_lcntab_read() argument
474 type = offset & B43_LCNTAB_TYPEMASK; in b43_lcntab_read()
475 offset &= ~B43_LCNTAB_TYPEMASK; in b43_lcntab_read()
476 B43_WARN_ON(offset > 0xFFFF); in b43_lcntab_read()
480 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset); in b43_lcntab_read()
484 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset); in b43_lcntab_read()
488 b43_phy_write(dev, B43_PHY_LCN_TABLE_ADDR, offset); in b43_lcntab_read()
500 void b43_lcntab_read_bulk(struct b43_wldev *dev, u32 offset, in b43_lcntab_read_bulk() argument
507 type = offset & B43_LCNTAB_TYPEMASK; in b43_lcntab_read_bulk()
508 offset &= ~B43_LCNTAB_TYPEMASK; in b43_lcntab_read_bulk()
[all …]
Dbus.c57 static u16 b43_bus_bcma_read16(struct b43_bus_dev *dev, u16 offset) in b43_bus_bcma_read16() argument
59 return bcma_read16(dev->bdev, offset); in b43_bus_bcma_read16()
61 static u32 b43_bus_bcma_read32(struct b43_bus_dev *dev, u16 offset) in b43_bus_bcma_read32() argument
63 return bcma_read32(dev->bdev, offset); in b43_bus_bcma_read32()
66 void b43_bus_bcma_write16(struct b43_bus_dev *dev, u16 offset, u16 value) in b43_bus_bcma_write16() argument
68 bcma_write16(dev->bdev, offset, value); in b43_bus_bcma_write16()
71 void b43_bus_bcma_write32(struct b43_bus_dev *dev, u16 offset, u32 value) in b43_bus_bcma_write32() argument
73 bcma_write32(dev->bdev, offset, value); in b43_bus_bcma_write32()
77 size_t count, u16 offset, u8 reg_width) in b43_bus_bcma_block_read() argument
79 bcma_block_read(dev->bdev, buffer, count, offset, reg_width); in b43_bus_bcma_block_read()
[all …]
/linux-4.4.14/drivers/staging/rdma/ehca/
Dhipz_fns.h50 #define hipz_galpa_store_eq(gal, offset, value) \ argument
51 hipz_galpa_store(gal, EQTEMM_OFFSET(offset), value)
53 #define hipz_galpa_load_eq(gal, offset) \ argument
54 hipz_galpa_load(gal, EQTEMM_OFFSET(offset))
56 #define hipz_galpa_store_qped(gal, offset, value) \ argument
57 hipz_galpa_store(gal, QPEDMM_OFFSET(offset), value)
59 #define hipz_galpa_load_qped(gal, offset) \ argument
60 hipz_galpa_load(gal, QPEDMM_OFFSET(offset))
62 #define hipz_galpa_store_mrmw(gal, offset, value) \ argument
63 hipz_galpa_store(gal, MRMWMM_OFFSET(offset), value)
[all …]
/linux-4.4.14/drivers/pinctrl/bcm/
Dpinctrl-bcm2835.c333 static int bcm2835_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in bcm2835_gpio_direction_input() argument
335 return pinctrl_gpio_direction_input(chip->base + offset); in bcm2835_gpio_direction_input()
338 static int bcm2835_gpio_get(struct gpio_chip *chip, unsigned offset) in bcm2835_gpio_get() argument
342 return bcm2835_gpio_get_bit(pc, GPLEV0, offset); in bcm2835_gpio_get()
345 static void bcm2835_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in bcm2835_gpio_set() argument
349 bcm2835_gpio_set_bit(pc, value ? GPSET0 : GPCLR0, offset); in bcm2835_gpio_set()
353 unsigned offset, int value) in bcm2835_gpio_direction_output() argument
355 bcm2835_gpio_set(chip, offset, value); in bcm2835_gpio_direction_output()
356 return pinctrl_gpio_direction_output(chip->base + offset); in bcm2835_gpio_direction_output()
359 static int bcm2835_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in bcm2835_gpio_to_irq() argument
[all …]
/linux-4.4.14/fs/squashfs/
Dfile.c60 static struct meta_index *locate_meta_index(struct inode *inode, int offset, in locate_meta_index() argument
69 TRACE("locate_meta_index: index %d, offset %d\n", index, offset); in locate_meta_index()
76 msblk->meta_index[i].offset >= offset && in locate_meta_index()
77 msblk->meta_index[i].offset <= index && in locate_meta_index()
80 msblk->meta_index[i].offset); in locate_meta_index()
82 offset = meta->offset; in locate_meta_index()
99 static struct meta_index *empty_meta_index(struct inode *inode, int offset, in empty_meta_index() argument
108 TRACE("empty_meta_index: offset %d, skip %d\n", offset, skip); in empty_meta_index()
149 meta->offset = offset; in empty_meta_index()
174 u64 *start_block, int *offset) in read_indexes() argument
[all …]
Dinode.c117 int err, type, offset = SQUASHFS_INODE_OFFSET(ino); in squashfs_read_inode() local
128 &offset, sizeof(*sqshb_ino)); in squashfs_read_inode()
137 offset = SQUASHFS_INODE_OFFSET(ino); in squashfs_read_inode()
147 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
154 frag_offset = le32_to_cpu(sqsh_ino->offset); in squashfs_read_inode()
176 squashfs_i(inode)->offset = offset; in squashfs_read_inode()
181 offset, squashfs_i(inode)->start, block, offset); in squashfs_read_inode()
190 err = squashfs_read_metadata(sb, sqsh_ino, &block, &offset, in squashfs_read_inode()
197 frag_offset = le32_to_cpu(sqsh_ino->offset); in squashfs_read_inode()
223 squashfs_i(inode)->offset = offset; in squashfs_read_inode()
[all …]
Dblock.c46 u64 *cur_index, int *offset, int *length) in get_block_length() argument
55 if (msblk->devblksize - *offset == 1) { in get_block_length()
56 *length = (unsigned char) bh->b_data[*offset]; in get_block_length()
62 *offset = 1; in get_block_length()
64 *length = (unsigned char) bh->b_data[*offset] | in get_block_length()
65 (unsigned char) bh->b_data[*offset + 1] << 8; in get_block_length()
66 *offset += 2; in get_block_length()
68 if (*offset == msblk->devblksize) { in get_block_length()
73 *offset = 0; in get_block_length()
95 int offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_read_data() local
[all …]
/linux-4.4.14/sound/soc/codecs/
Drt5677-spi.c116 u32 offset; in rt5677_spi_read() local
142 for (offset = 0; offset < len; offset += t[1].len) { in rt5677_spi_read()
143 spi_cmd = rt5677_spi_select_cmd(true, (addr + offset) & 7, in rt5677_spi_read()
144 len - offset, &t[1].len); in rt5677_spi_read()
148 header[1] = ((addr + offset) & 0xff000000) >> 24; in rt5677_spi_read()
149 header[2] = ((addr + offset) & 0x00ff0000) >> 16; in rt5677_spi_read()
150 header[3] = ((addr + offset) & 0x0000ff00) >> 8; in rt5677_spi_read()
151 header[4] = ((addr + offset) & 0x000000ff) >> 0; in rt5677_spi_read()
158 rt5677_spi_reverse(cb + offset, t[1].len, body, t[1].len); in rt5677_spi_read()
170 u32 offset, len_with_pad = len; in rt5677_spi_write() local
[all …]
/linux-4.4.14/arch/x86/include/asm/uv/
Duv_hub.h132 unsigned long offset; member
372 static inline void *uv_pnode_offset_to_vaddr(int pnode, unsigned long offset) in uv_pnode_offset_to_vaddr() argument
374 return __va(((unsigned long)pnode << uv_hub_info->m_val) | offset); in uv_pnode_offset_to_vaddr()
401 static inline unsigned long *uv_global_mmr32_address(int pnode, unsigned long offset) in uv_global_mmr32_address() argument
404 UV_GLOBAL_MMR32_PNODE_BITS(pnode) | offset); in uv_global_mmr32_address()
407 static inline void uv_write_global_mmr32(int pnode, unsigned long offset, unsigned long val) in uv_write_global_mmr32() argument
409 writeq(val, uv_global_mmr32_address(pnode, offset)); in uv_write_global_mmr32()
412 static inline unsigned long uv_read_global_mmr32(int pnode, unsigned long offset) in uv_read_global_mmr32() argument
414 return readq(uv_global_mmr32_address(pnode, offset)); in uv_read_global_mmr32()
421 static inline volatile void __iomem *uv_global_mmr64_address(int pnode, unsigned long offset) in uv_global_mmr64_address() argument
[all …]
/linux-4.4.14/drivers/platform/x86/
Dintel_pmic_gpio.c92 static int pmic_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in pmic_gpio_direction_input() argument
94 if (offset >= 8) { in pmic_gpio_direction_input()
98 return intel_scu_ipc_update_register(GPIO0 + offset, in pmic_gpio_direction_input()
103 unsigned offset, int value) in pmic_gpio_direction_output() argument
107 if (offset < 8)/* it is GPIO */ in pmic_gpio_direction_output()
108 rc = intel_scu_ipc_update_register(GPIO0 + offset, in pmic_gpio_direction_output()
111 else if (offset < 16)/* it is GPOSW */ in pmic_gpio_direction_output()
112 rc = intel_scu_ipc_update_register(GPOSWCTL0 + offset - 8, in pmic_gpio_direction_output()
115 else if (offset > 15 && offset < 24)/* it is GPO */ in pmic_gpio_direction_output()
117 value ? 1 << (offset - 16) : 0, in pmic_gpio_direction_output()
[all …]
/linux-4.4.14/drivers/thunderbolt/
Dcap.c43 static u32 tb_cap_next(struct tb_cap_any *cap, u32 offset) in tb_cap_next() argument
46 if (offset == 1) { in tb_cap_next()
69 if (next == offset) in tb_cap_next()
82 u32 offset = 1; in tb_find_cap() local
87 res = tb_port_read(port, &header, space, offset, 1); in tb_find_cap()
90 if (space == TB_CFG_PORT && offset == 0xa in tb_find_cap()
92 offset = 0x39; in tb_find_cap()
97 if (offset != 1) { in tb_find_cap()
99 return offset; in tb_find_cap()
103 offset, 2); in tb_find_cap()
[all …]
/linux-4.4.14/fs/btrfs/
Dstruct-funcs.c58 unsigned long offset = part_offset + off; \
67 if (token && token->kaddr && token->offset <= offset && \
69 (token->offset + PAGE_CACHE_SIZE >= offset + size)) { \
71 p = kaddr + part_offset - token->offset; \
75 err = map_private_extent_buffer(eb, offset, size, \
80 read_extent_buffer(eb, &leres, offset, size); \
87 token->offset = map_start; \
97 unsigned long offset = part_offset + off; \
105 if (token && token->kaddr && token->offset <= offset && \
107 (token->offset + PAGE_CACHE_SIZE >= offset + size)) { \
[all …]
Dfree-space-cache.c48 u64 offset) in __lookup_free_space_inode() argument
59 key.offset = offset; in __lookup_free_space_inode()
134 u64 ino, u64 offset) in __create_free_space_inode() argument
167 btrfs_set_inode_block_group(leaf, inode_item, offset); in __create_free_space_inode()
172 key.offset = offset; in __create_free_space_inode()
467 unsigned offset = 0; in io_ctl_set_crc() local
475 offset = sizeof(u32) * io_ctl->num_pages; in io_ctl_set_crc()
477 crc = btrfs_csum_data(io_ctl->orig + offset, crc, in io_ctl_set_crc()
478 PAGE_CACHE_SIZE - offset); in io_ctl_set_crc()
490 unsigned offset = 0; in io_ctl_check_crc() local
[all …]
Dfile-item.c44 u64 num_bytes, u64 offset, u64 ram_bytes, in btrfs_insert_file_extent() argument
57 file_key.offset = pos; in btrfs_insert_file_extent()
71 btrfs_set_file_extent_offset(leaf, item, offset); in btrfs_insert_file_extent()
102 file_key.offset = bytenr; in btrfs_lookup_csum()
117 csum_offset = (bytenr - found_key.offset) >> in btrfs_lookup_csum()
142 u64 offset, int mod) in btrfs_lookup_file_extent() argument
150 file_key.offset = offset; in btrfs_lookup_file_extent()
171 u64 offset = 0; in __btrfs_lookup_bio_sums() local
222 offset = logical_offset; in __btrfs_lookup_bio_sums()
225 offset = page_offset(bvec->bv_page) + bvec->bv_offset; in __btrfs_lookup_bio_sums()
[all …]
Duuid-tree.c30 key->offset = get_unaligned_le64(uuid + sizeof(u64)); in btrfs_uuid_to_key()
42 unsigned long offset; in btrfs_uuid_tree_lookup() local
68 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_lookup()
79 read_extent_buffer(eb, &data, offset, sizeof(data)); in btrfs_uuid_tree_lookup()
84 offset += sizeof(data); in btrfs_uuid_tree_lookup()
102 unsigned long offset; in btrfs_uuid_tree_add() local
128 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
137 offset = btrfs_item_ptr_offset(eb, slot); in btrfs_uuid_tree_add()
138 offset += btrfs_item_size_nr(eb, slot) - sizeof(subid_le); in btrfs_uuid_tree_add()
143 (unsigned long long)key.offset, type); in btrfs_uuid_tree_add()
[all …]
/linux-4.4.14/sound/firewire/dice/
Ddice.h91 unsigned int offset,
94 enum snd_dice_addr_type type, unsigned int offset,
98 unsigned int offset, in snd_dice_transaction_write_global() argument
102 SND_DICE_ADDR_TYPE_GLOBAL, offset, in snd_dice_transaction_write_global()
106 unsigned int offset, in snd_dice_transaction_read_global() argument
110 SND_DICE_ADDR_TYPE_GLOBAL, offset, in snd_dice_transaction_read_global()
114 unsigned int offset, in snd_dice_transaction_write_tx() argument
117 return snd_dice_transaction_write(dice, SND_DICE_ADDR_TYPE_TX, offset, in snd_dice_transaction_write_tx()
121 unsigned int offset, in snd_dice_transaction_read_tx() argument
124 return snd_dice_transaction_read(dice, SND_DICE_ADDR_TYPE_TX, offset, in snd_dice_transaction_read_tx()
[all …]
/linux-4.4.14/drivers/staging/vme/devices/
Dvme_pio2_gpio.c33 static int pio2_gpio_get(struct gpio_chip *chip, unsigned int offset) in pio2_gpio_get() argument
39 if ((card->bank[PIO2_CHANNEL_BANK[offset]].config == OUTPUT) | in pio2_gpio_get()
40 (card->bank[PIO2_CHANNEL_BANK[offset]].config == NOFIT)) { in pio2_gpio_get()
47 PIO2_REGS_DATA[PIO2_CHANNEL_BANK[offset]]); in pio2_gpio_get()
57 if (reg & PIO2_CHANNEL_BIT[offset]) { in pio2_gpio_get()
58 if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH) in pio2_gpio_get()
64 if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH) in pio2_gpio_get()
70 static void pio2_gpio_set(struct gpio_chip *chip, unsigned int offset, in pio2_gpio_set() argument
77 if ((card->bank[PIO2_CHANNEL_BANK[offset]].config == INPUT) | in pio2_gpio_set()
78 (card->bank[PIO2_CHANNEL_BANK[offset]].config == NOFIT)) { in pio2_gpio_set()
[all …]
/linux-4.4.14/net/netfilter/
Dnft_payload.c23 nft_payload_copy_vlan(u32 *d, const struct sk_buff *skb, u8 offset, u8 len) in nft_payload_copy_vlan() argument
30 if (offset < ETH_HLEN) { in nft_payload_copy_vlan()
31 u8 ethlen = min_t(u8, len, ETH_HLEN - offset); in nft_payload_copy_vlan()
38 memcpy(dst_u8, vlanh + offset, ethlen); in nft_payload_copy_vlan()
45 offset = ETH_HLEN; in nft_payload_copy_vlan()
46 } else if (offset >= VLAN_ETH_HLEN) { in nft_payload_copy_vlan()
47 offset -= VLAN_HLEN; in nft_payload_copy_vlan()
54 vlanh += offset; in nft_payload_copy_vlan()
56 vlan_len = min_t(u8, len, VLAN_ETH_HLEN - offset); in nft_payload_copy_vlan()
65 return skb_copy_bits(skb, offset + mac_off, dst_u8, len) == 0; in nft_payload_copy_vlan()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/
Dphy.h46 s32 e1000e_read_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 *data);
47 s32 e1000e_read_kmrn_reg_locked(struct e1000_hw *hw, u32 offset, u16 *data);
49 s32 e1000e_read_phy_reg_igp(struct e1000_hw *hw, u32 offset, u16 *data);
50 s32 e1000e_read_phy_reg_igp_locked(struct e1000_hw *hw, u32 offset, u16 *data);
51 s32 e1000e_read_phy_reg_m88(struct e1000_hw *hw, u32 offset, u16 *data);
54 s32 e1000e_write_kmrn_reg(struct e1000_hw *hw, u32 offset, u16 data);
55 s32 e1000e_write_kmrn_reg_locked(struct e1000_hw *hw, u32 offset, u16 data);
56 s32 e1000e_write_phy_reg_igp(struct e1000_hw *hw, u32 offset, u16 data);
57 s32 e1000e_write_phy_reg_igp_locked(struct e1000_hw *hw, u32 offset, u16 data);
58 s32 e1000e_write_phy_reg_m88(struct e1000_hw *hw, u32 offset, u16 data);
[all …]
Dphy.c25 static s32 e1000_access_phy_wakeup_reg_bm(struct e1000_hw *hw, u32 offset,
28 static s32 e1000_access_phy_debug_regs_hv(struct e1000_hw *hw, u32 offset,
136 s32 e1000e_read_phy_reg_mdic(struct e1000_hw *hw, u32 offset, u16 *data) in e1000e_read_phy_reg_mdic() argument
141 if (offset > MAX_PHY_REG_ADDRESS) { in e1000e_read_phy_reg_mdic()
142 e_dbg("PHY Address %d is out of range\n", offset); in e1000e_read_phy_reg_mdic()
150 mdic = ((offset << E1000_MDIC_REG_SHIFT) | in e1000e_read_phy_reg_mdic()
174 if (((mdic & E1000_MDIC_REG_MASK) >> E1000_MDIC_REG_SHIFT) != offset) { in e1000e_read_phy_reg_mdic()
176 offset, in e1000e_read_phy_reg_mdic()
199 s32 e1000e_write_phy_reg_mdic(struct e1000_hw *hw, u32 offset, u16 data) in e1000e_write_phy_reg_mdic() argument
204 if (offset > MAX_PHY_REG_ADDRESS) { in e1000e_write_phy_reg_mdic()
[all …]
/linux-4.4.14/arch/unicore32/kernel/
Dmodule.c45 s32 offset; in apply_relocate() local
47 offset = ELF32_R_SYM(rel->r_info); in apply_relocate()
48 if (offset < 0 || offset > in apply_relocate()
56 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate()
81 offset = (*(u32 *)loc & 0x00ffffff) << 2; in apply_relocate()
82 if (offset & 0x02000000) in apply_relocate()
83 offset -= 0x04000000; in apply_relocate()
85 offset += sym->st_value - loc; in apply_relocate()
86 if (offset & 3 || in apply_relocate()
87 offset <= (s32)0xfe000000 || in apply_relocate()
[all …]
Dgpio.c53 static int puv3_gpio_get(struct gpio_chip *chip, unsigned offset) in puv3_gpio_get() argument
55 return readl(GPIO_GPLR) & GPIO_GPIO(offset); in puv3_gpio_get()
58 static void puv3_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in puv3_gpio_set() argument
61 writel(GPIO_GPIO(offset), GPIO_GPSR); in puv3_gpio_set()
63 writel(GPIO_GPIO(offset), GPIO_GPCR); in puv3_gpio_set()
66 static int puv3_direction_input(struct gpio_chip *chip, unsigned offset) in puv3_direction_input() argument
71 writel(readl(GPIO_GPDR) & ~GPIO_GPIO(offset), GPIO_GPDR); in puv3_direction_input()
76 static int puv3_direction_output(struct gpio_chip *chip, unsigned offset, in puv3_direction_output() argument
82 puv3_gpio_set(chip, offset, value); in puv3_direction_output()
83 writel(readl(GPIO_GPDR) | GPIO_GPIO(offset), GPIO_GPDR); in puv3_direction_output()
/linux-4.4.14/arch/x86/pci/
Dearly.c10 u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config() argument
13 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config()
18 u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_byte() argument
21 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_byte()
22 v = inb(0xcfc + (offset&3)); in read_pci_config_byte()
26 u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) in read_pci_config_16() argument
29 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in read_pci_config_16()
30 v = inw(0xcfc + (offset&2)); in read_pci_config_16()
34 void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, in write_pci_config() argument
37 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); in write_pci_config()
[all …]
/linux-4.4.14/drivers/net/ethernet/intel/e1000/
De1000_osdep.h48 #define GBE_CONFIG_FLASH_WRITE(base, offset, count, data) \ argument
49 (iowrite16_rep(base + offset, data, count))
51 #define GBE_CONFIG_FLASH_READ(base, offset, count, data) \ argument
52 (ioread16_rep(base + (offset << 1), data, count))
62 #define E1000_WRITE_REG_ARRAY(a, reg, offset, value) ( \ argument
65 ((offset) << 2))))
67 #define E1000_READ_REG_ARRAY(a, reg, offset) ( \ argument
70 ((offset) << 2)))
75 #define E1000_WRITE_REG_ARRAY_WORD(a, reg, offset, value) ( \ argument
78 ((offset) << 1))))
[all …]
/linux-4.4.14/drivers/mtd/devices/
Dlart.c267 static __u8 read8 (__u32 offset) in read8() argument
269 volatile __u8 *data = (__u8 *) (FLASH_OFFSET + offset); in read8()
271 printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.2x\n", __func__, offset, *data); in read8()
276 static __u32 read32 (__u32 offset) in read32() argument
278 volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset); in read32()
280 printk (KERN_DEBUG "%s(): 0x%.8x -> 0x%.8x\n", __func__, offset, *data); in read32()
285 static void write32 (__u32 x,__u32 offset) in write32() argument
287 volatile __u32 *data = (__u32 *) (FLASH_OFFSET + offset); in write32()
290 printk (KERN_DEBUG "%s(): 0x%.8x <- 0x%.8x\n", __func__, offset, *data); in write32()
328 static inline int erase_block (__u32 offset) in erase_block() argument
[all …]
/linux-4.4.14/fs/ecryptfs/
Dread_write.c40 loff_t offset, size_t size) in ecryptfs_write_lower() argument
48 rc = kernel_write(lower_file, data, size, offset); in ecryptfs_write_lower()
74 loff_t offset; in ecryptfs_write_lower_page_segment() local
77 offset = ((((loff_t)page_for_lower->index) << PAGE_CACHE_SHIFT) in ecryptfs_write_lower_page_segment()
80 rc = ecryptfs_write_lower(ecryptfs_inode, virt, offset, size); in ecryptfs_write_lower_page_segment()
105 int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset, in ecryptfs_write() argument
121 if (offset > ecryptfs_file_size) in ecryptfs_write()
124 pos = offset; in ecryptfs_write()
125 while (pos < (offset + size)) { in ecryptfs_write()
129 loff_t total_remaining_bytes = ((offset + size) - pos); in ecryptfs_write()
[all …]
/linux-4.4.14/arch/m68k/coldfire/
Dgpio.c117 static int mcfgpio_direction_input(struct gpio_chip *chip, unsigned offset) in mcfgpio_direction_input() argument
119 return __mcfgpio_direction_input(offset); in mcfgpio_direction_input()
122 static int mcfgpio_get_value(struct gpio_chip *chip, unsigned offset) in mcfgpio_get_value() argument
124 return __mcfgpio_get_value(offset); in mcfgpio_get_value()
127 static int mcfgpio_direction_output(struct gpio_chip *chip, unsigned offset, in mcfgpio_direction_output() argument
130 return __mcfgpio_direction_output(offset, value); in mcfgpio_direction_output()
133 static void mcfgpio_set_value(struct gpio_chip *chip, unsigned offset, in mcfgpio_set_value() argument
136 __mcfgpio_set_value(offset, value); in mcfgpio_set_value()
139 static int mcfgpio_request(struct gpio_chip *chip, unsigned offset) in mcfgpio_request() argument
141 return __mcfgpio_request(offset); in mcfgpio_request()
[all …]
/linux-4.4.14/drivers/gpu/ipu-v3/
Dipu-cpmem.c297 ro = rgb->bits_per_pixel - rgb->red.length - rgb->red.offset; in ipu_cpmem_set_format_rgb()
298 go = rgb->bits_per_pixel - rgb->green.length - rgb->green.offset; in ipu_cpmem_set_format_rgb()
299 bo = rgb->bits_per_pixel - rgb->blue.length - rgb->blue.offset; in ipu_cpmem_set_format_rgb()
300 to = rgb->bits_per_pixel - rgb->transp.length - rgb->transp.offset; in ipu_cpmem_set_format_rgb()
456 .red = { .offset = 16, .length = 8, },
457 .green = { .offset = 8, .length = 8, },
458 .blue = { .offset = 0, .length = 8, },
459 .transp = { .offset = 24, .length = 8, },
464 .red = { .offset = 0, .length = 8, },
465 .green = { .offset = 8, .length = 8, },
[all …]
/linux-4.4.14/include/trace/events/
Dintel-sst.h53 TP_PROTO(unsigned int offset, unsigned int val),
55 TP_ARGS(offset, val),
58 __field( unsigned int, offset )
63 __entry->offset = offset;
68 (unsigned int)__entry->offset, (unsigned int)__entry->val)
73 TP_PROTO(unsigned int offset, unsigned int val),
75 TP_ARGS(offset, val)
81 TP_PROTO(unsigned int offset, unsigned int val),
83 TP_ARGS(offset, val)
89 TP_PROTO(unsigned int offset, unsigned int val),
[all …]
/linux-4.4.14/tools/testing/selftests/powerpc/stringloops/
Dmemcmp.c14 unsigned long offset, size; in test_one() local
16 for (offset = 0; offset < SIZE; offset++) { in test_one()
17 for (size = 0; size < (SIZE-offset); size++) { in test_one()
21 y = memcmp(s1+offset, s2+offset, size); in test_one()
22 x = test_memcmp(s1+offset, s2+offset, size); in test_one()
26 … printf("memcmp returned %d, should have returned %d (offset %ld size %ld)\n", x, y, offset, size); in test_one()
28 for (i = offset; i < offset+size; i++) in test_one()
32 for (i = offset; i < offset+size; i++) in test_one()
/linux-4.4.14/sound/soc/intel/common/
Dsst-dsp.c32 void sst_shim32_write(void __iomem *addr, u32 offset, u32 value) in sst_shim32_write() argument
34 writel(value, addr + offset); in sst_shim32_write()
38 u32 sst_shim32_read(void __iomem *addr, u32 offset) in sst_shim32_read() argument
40 return readl(addr + offset); in sst_shim32_read()
44 void sst_shim32_write64(void __iomem *addr, u32 offset, u64 value) in sst_shim32_write64() argument
46 memcpy_toio(addr + offset, &value, sizeof(value)); in sst_shim32_write64()
50 u64 sst_shim32_read64(void __iomem *addr, u32 offset) in sst_shim32_read64() argument
54 memcpy_fromio(&val, addr + offset, sizeof(val)); in sst_shim32_read64()
92 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write() argument
97 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write()
[all …]
Dsst-dsp.h227 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value);
228 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset);
229 int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset,
231 void sst_dsp_shim_write64(struct sst_dsp *sst, u32 offset, u64 value);
232 u64 sst_dsp_shim_read64(struct sst_dsp *sst, u32 offset);
233 int sst_dsp_shim_update_bits64(struct sst_dsp *sst, u32 offset,
235 void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset,
239 void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value);
240 u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset);
241 int sst_dsp_shim_update_bits_unlocked(struct sst_dsp *sst, u32 offset,
[all …]
/linux-4.4.14/arch/m68k/include/asm/
Dmac_psc.h222 static inline void psc_write_byte(int offset, __u8 data) in psc_write_byte() argument
224 *((volatile __u8 *)(psc + offset)) = data; in psc_write_byte()
227 static inline void psc_write_word(int offset, __u16 data) in psc_write_word() argument
229 *((volatile __u16 *)(psc + offset)) = data; in psc_write_word()
232 static inline void psc_write_long(int offset, __u32 data) in psc_write_long() argument
234 *((volatile __u32 *)(psc + offset)) = data; in psc_write_long()
237 static inline u8 psc_read_byte(int offset) in psc_read_byte() argument
239 return *((volatile __u8 *)(psc + offset)); in psc_read_byte()
242 static inline u16 psc_read_word(int offset) in psc_read_word() argument
244 return *((volatile __u16 *)(psc + offset)); in psc_read_word()
[all …]
Dbitops.h345 int offset) in find_next_zero_bit() argument
347 const unsigned long *p = vaddr + (offset >> 5); in find_next_zero_bit()
348 int bit = offset & 31UL, res; in find_next_zero_bit()
350 if (offset >= size) in find_next_zero_bit()
355 offset -= bit; in find_next_zero_bit()
361 offset += res ^ 31; in find_next_zero_bit()
362 return offset < size ? offset : size; in find_next_zero_bit()
364 offset += 32; in find_next_zero_bit()
366 if (offset >= size) in find_next_zero_bit()
370 return offset + find_first_zero_bit(p, size - offset); in find_next_zero_bit()
[all …]
/linux-4.4.14/drivers/staging/gs_fpgaboot/
Dgs_fpgaboot.c48 static void read_bitstream(char *bitdata, char *buf, int *offset, int rdsize) in read_bitstream() argument
50 memcpy(buf, bitdata + *offset, rdsize); in read_bitstream()
51 *offset += rdsize; in read_bitstream()
54 static void readinfo_bitstream(char *bitdata, char *buf, int *offset) in readinfo_bitstream() argument
60 read_bitstream(bitdata, tbuf, offset, 1); in readinfo_bitstream()
63 read_bitstream(bitdata, tbuf, offset, 2); in readinfo_bitstream()
67 read_bitstream(bitdata, buf, offset, len); in readinfo_bitstream()
74 static int readlength_bitstream(char *bitdata, int *lendata, int *offset) in readlength_bitstream() argument
79 read_bitstream(bitdata, tbuf, offset, 1); in readlength_bitstream()
88 read_bitstream(bitdata, tbuf, offset, 4); in readlength_bitstream()
[all …]
/linux-4.4.14/lib/
Dradix-tree.c89 int offset) in tag_set() argument
91 __set_bit(offset, node->tags[tag]); in tag_set()
95 int offset) in tag_clear() argument
97 __clear_bit(offset, node->tags[tag]); in tag_clear()
101 int offset) in tag_get() argument
103 return test_bit(offset, node->tags[tag]); in tag_get()
153 unsigned long size, unsigned long offset) in radix_tree_find_next_bit() argument
156 return find_next_bit(addr, size, offset); in radix_tree_find_next_bit()
158 if (offset < size) { in radix_tree_find_next_bit()
161 addr += offset / BITS_PER_LONG; in radix_tree_find_next_bit()
[all …]
/linux-4.4.14/arch/mips/include/asm/mach-loongson64/cs5536/
Dcs5536.h29 #define SB_MSR_REG(offset) (CS5536_SB_MSR_BASE | (offset)) argument
30 #define GLIU_MSR_REG(offset) (CS5536_GLIU_MSR_BASE | (offset)) argument
31 #define ILLEGAL_MSR_REG(offset) (CS5536_ILLEGAL_MSR_BASE | (offset)) argument
32 #define USB_MSR_REG(offset) (CS5536_USB_MSR_BASE | (offset)) argument
33 #define IDE_MSR_REG(offset) (CS5536_IDE_MSR_BASE | (offset)) argument
34 #define DIVIL_MSR_REG(offset) (CS5536_DIVIL_MSR_BASE | (offset)) argument
35 #define ACC_MSR_REG(offset) (CS5536_ACC_MSR_BASE | (offset)) argument
36 #define UNUSED_MSR_REG(offset) (CS5536_UNUSED_MSR_BASE | (offset)) argument
37 #define GLCP_MSR_REG(offset) (CS5536_GLCP_MSR_BASE | (offset)) argument
/linux-4.4.14/drivers/reset/
Dreset-zynq.c29 u32 offset; member
41 int offset = id % BITS_PER_LONG; in zynq_reset_assert() local
44 bank, offset); in zynq_reset_assert()
47 priv->offset + (bank * 4), in zynq_reset_assert()
48 BIT(offset), in zynq_reset_assert()
49 BIT(offset)); in zynq_reset_assert()
58 int offset = id % BITS_PER_LONG; in zynq_reset_deassert() local
61 bank, offset); in zynq_reset_deassert()
64 priv->offset + (bank * 4), in zynq_reset_deassert()
65 BIT(offset), in zynq_reset_deassert()
[all …]
/linux-4.4.14/arch/mips/rb532/
Dgpio.c61 unsigned offset, void __iomem *ioaddr) in rb532_set_bit() argument
69 val &= ~(!bitval << offset); /* unset bit if bitval == 0 */ in rb532_set_bit()
70 val |= (!!bitval << offset); /* set bit if bitval == 1 */ in rb532_set_bit()
80 static inline int rb532_get_bit(unsigned offset, void __iomem *ioaddr) in rb532_get_bit() argument
82 return readl(ioaddr) & (1 << offset); in rb532_get_bit()
87 static int rb532_gpio_get(struct gpio_chip *chip, unsigned offset) in rb532_gpio_get() argument
92 return rb532_get_bit(offset, gpch->regbase + GPIOD); in rb532_gpio_get()
99 unsigned offset, int value) in rb532_gpio_set() argument
104 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_set()
110 static int rb532_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in rb532_gpio_direction_input() argument
[all …]
/linux-4.4.14/mm/
Dreadahead.c153 pgoff_t offset, unsigned long nr_to_read, in __do_page_cache_readahead() argument
173 pgoff_t page_offset = offset + page_idx; in __do_page_cache_readahead()
211 pgoff_t offset, unsigned long nr_to_read) in force_page_cache_readahead() argument
225 offset, this_chunk, 0); in force_page_cache_readahead()
229 offset += this_chunk; in force_page_cache_readahead()
319 pgoff_t offset, unsigned long max) in count_history_pages() argument
324 head = page_cache_prev_hole(mapping, offset - 1, max); in count_history_pages()
327 return offset - 1 - head; in count_history_pages()
335 pgoff_t offset, in try_context_readahead() argument
341 size = count_history_pages(mapping, offset, max); in try_context_readahead()
[all …]
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c44 seq->offset, seq->xfer_len, seq->seq_send_order, in iscsit_dump_seq_list()
60 " pdu_send_order: %d, seq_no: %d\n", i, pdu->offset, in iscsit_dump_pdu_list()
218 u32 burstlength = 0, offset = 0; in iscsit_determine_counts_for_list() local
237 while (offset < cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list()
242 offset += bl->immediate_data_length; in iscsit_determine_counts_for_list()
250 if ((offset + mdsl) >= cmd->se_cmd.data_length) { in iscsit_determine_counts_for_list()
252 (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list()
253 offset += (cmd->se_cmd.data_length - offset); in iscsit_determine_counts_for_list()
256 if ((offset + mdsl) in iscsit_determine_counts_for_list()
260 offset); in iscsit_determine_counts_for_list()
[all …]
/linux-4.4.14/arch/x86/platform/ce4100/
Dce4100.c47 static unsigned int mem_serial_in(struct uart_port *p, int offset) in mem_serial_in() argument
49 offset = offset << p->regshift; in mem_serial_in()
50 return readl(p->membase + offset); in mem_serial_in()
63 static unsigned int ce4100_mem_serial_in(struct uart_port *p, int offset) in ce4100_mem_serial_in() argument
67 if (offset == UART_IIR) { in ce4100_mem_serial_in()
68 offset = offset << p->regshift; in ce4100_mem_serial_in()
69 ret = readl(p->membase + offset); in ce4100_mem_serial_in()
83 ret = mem_serial_in(p, offset); in ce4100_mem_serial_in()
87 static void ce4100_mem_serial_out(struct uart_port *p, int offset, int value) in ce4100_mem_serial_out() argument
89 offset = offset << p->regshift; in ce4100_mem_serial_out()
[all …]
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00usb.h104 const u16 offset, const u16 value,
127 const u16 offset, void *buffer,
145 const u16 offset, void *buffer,
162 const u16 offset, in rt2x00usb_vendor_request_sw() argument
167 USB_VENDOR_REQUEST_OUT, offset, in rt2x00usb_vendor_request_sw()
199 const unsigned int offset, in rt2x00usb_register_read() argument
204 USB_VENDOR_REQUEST_IN, offset, in rt2x00usb_register_read()
219 const unsigned int offset, in rt2x00usb_register_read_lock() argument
224 USB_VENDOR_REQUEST_IN, offset, in rt2x00usb_register_read_lock()
240 const unsigned int offset, in rt2x00usb_register_multiread() argument
[all …]
Drt2800lib.h25 const unsigned int offset, u32 *value);
27 const unsigned int offset, u32 *value);
29 const unsigned int offset, u32 value);
31 const unsigned int offset, u32 value);
34 const unsigned int offset,
37 const unsigned int offset,
41 const unsigned int offset,
54 const unsigned int offset, in rt2800_register_read() argument
59 rt2800ops->register_read(rt2x00dev, offset, value); in rt2800_register_read()
63 const unsigned int offset, in rt2800_register_read_lock() argument
[all …]
Drt2x00mmio.h33 const unsigned int offset, in rt2x00mmio_register_read() argument
36 *value = readl(rt2x00dev->csr.base + offset); in rt2x00mmio_register_read()
40 const unsigned int offset, in rt2x00mmio_register_multiread() argument
43 memcpy_fromio(value, rt2x00dev->csr.base + offset, length); in rt2x00mmio_register_multiread()
47 const unsigned int offset, in rt2x00mmio_register_write() argument
50 writel(value, rt2x00dev->csr.base + offset); in rt2x00mmio_register_write()
54 const unsigned int offset, in rt2x00mmio_register_multiwrite() argument
58 __iowrite32_copy(rt2x00dev->csr.base + offset, value, length >> 2); in rt2x00mmio_register_multiwrite()
75 const unsigned int offset,
/linux-4.4.14/arch/arm/boot/compressed/
Datags_to_fdt.c14 int offset = fdt_path_offset(fdt, node_path); in node_offset() local
15 if (offset == -FDT_ERR_NOTFOUND) in node_offset()
16 offset = fdt_add_subnode(fdt, 0, node_path); in node_offset()
17 return offset; in node_offset()
23 int offset = node_offset(fdt, node_path); in setprop() local
24 if (offset < 0) in setprop()
25 return offset; in setprop()
26 return fdt_setprop(fdt, offset, property, val_array, size); in setprop()
32 int offset = node_offset(fdt, node_path); in setprop_string() local
33 if (offset < 0) in setprop_string()
[all …]
/linux-4.4.14/arch/xtensa/include/asm/
Dio.h32 static inline void __iomem *ioremap_nocache(unsigned long offset, in ioremap_nocache() argument
35 if (offset >= XCHAL_KIO_PADDR in ioremap_nocache()
36 && offset - XCHAL_KIO_PADDR < XCHAL_KIO_SIZE) in ioremap_nocache()
37 return (void*)(offset-XCHAL_KIO_PADDR+XCHAL_KIO_BYPASS_VADDR); in ioremap_nocache()
42 static inline void __iomem *ioremap_cache(unsigned long offset, in ioremap_cache() argument
45 if (offset >= XCHAL_KIO_PADDR in ioremap_cache()
46 && offset - XCHAL_KIO_PADDR < XCHAL_KIO_SIZE) in ioremap_cache()
47 return (void*)(offset-XCHAL_KIO_PADDR+XCHAL_KIO_CACHED_VADDR); in ioremap_cache()
56 static inline void __iomem *ioremap(unsigned long offset, unsigned long size) in ioremap() argument
58 return ioremap_nocache(offset, size); in ioremap()
/linux-4.4.14/lib/lzo/
Dlzo1x_decompress_safe.c68 size_t offset; in lzo1x_decompress_safe() local
75 offset = ip - ip_last; in lzo1x_decompress_safe()
76 if (unlikely(offset > MAX_255_COUNT)) in lzo1x_decompress_safe()
79 offset = (offset << 8) - offset; in lzo1x_decompress_safe()
80 t += offset + 15 + *ip++; in lzo1x_decompress_safe()
136 size_t offset; in lzo1x_decompress_safe() local
143 offset = ip - ip_last; in lzo1x_decompress_safe()
144 if (unlikely(offset > MAX_255_COUNT)) in lzo1x_decompress_safe()
147 offset = (offset << 8) - offset; in lzo1x_decompress_safe()
148 t += offset + 31 + *ip++; in lzo1x_decompress_safe()
[all …]
/linux-4.4.14/arch/mips/kernel/
Dgpio_txx9.c22 static int txx9_gpio_get(struct gpio_chip *chip, unsigned int offset) in txx9_gpio_get() argument
24 return __raw_readl(&txx9_pioptr->din) & (1 << offset); in txx9_gpio_get()
27 static void txx9_gpio_set_raw(unsigned int offset, int value) in txx9_gpio_set_raw() argument
32 val |= 1 << offset; in txx9_gpio_set_raw()
34 val &= ~(1 << offset); in txx9_gpio_set_raw()
38 static void txx9_gpio_set(struct gpio_chip *chip, unsigned int offset, in txx9_gpio_set() argument
43 txx9_gpio_set_raw(offset, value); in txx9_gpio_set()
48 static int txx9_gpio_dir_in(struct gpio_chip *chip, unsigned int offset) in txx9_gpio_dir_in() argument
52 __raw_writel(__raw_readl(&txx9_pioptr->dir) & ~(1 << offset), in txx9_gpio_dir_in()
59 static int txx9_gpio_dir_out(struct gpio_chip *chip, unsigned int offset, in txx9_gpio_dir_out() argument
[all …]
Dspram.c47 static void ispram_store_tag(unsigned int offset, unsigned int data) in ispram_store_tag() argument
58 cache_op(Index_Store_Tag_I, CKSEG0|offset); in ispram_store_tag()
66 static unsigned int ispram_load_tag(unsigned int offset) in ispram_load_tag() argument
74 cache_op(Index_Load_Tag_I, CKSEG0 | offset); in ispram_load_tag()
84 static void dspram_store_tag(unsigned int offset, unsigned int data) in dspram_store_tag() argument
93 cache_op(Index_Store_Tag_D, CKSEG0 | offset); in dspram_store_tag()
100 static unsigned int dspram_load_tag(unsigned int offset) in dspram_load_tag() argument
107 cache_op(Index_Load_Tag_D, CKSEG0 | offset); in dspram_load_tag()
124 unsigned int offset = 0; in probe_spram() local
135 tag0 = read(offset); in probe_spram()
[all …]
/linux-4.4.14/arch/score/kernel/
Dmodule.c74 unsigned long hi16_offset, offset; in apply_relocate() local
82 offset = ((temp >> 16 & 0x03) << 15) | in apply_relocate()
84 offset = (hi16_offset << 16) | (offset & 0xffff); in apply_relocate()
85 uvalue = sym->st_value + offset; in apply_relocate()
93 offset = (uvalue & 0xffff) << 1; in apply_relocate()
94 temp = (temp & (~(0x37fff))) | (offset & 0x7fff) | in apply_relocate()
95 ((offset << 1) & 0x30000); in apply_relocate()
100 unsigned long hi16_offset, offset; in apply_relocate() local
105 offset = (temp & 0x03FF7FFE); in apply_relocate()
106 hi16_offset = (offset & 0xFFFF0000); in apply_relocate()
[all …]
/linux-4.4.14/drivers/mtd/maps/
Dtsunami_flash.c17 static inline map_word tsunami_flash_read8(struct map_info *map, unsigned long offset) in tsunami_flash_read8() argument
20 val.x[0] = tsunami_tig_readb(offset); in tsunami_flash_read8()
24 static void tsunami_flash_write8(struct map_info *map, map_word value, unsigned long offset) in tsunami_flash_write8() argument
26 tsunami_tig_writeb(value.x[0], offset); in tsunami_flash_write8()
30 struct map_info *map, void *addr, unsigned long offset, ssize_t len) in tsunami_flash_copy_from() argument
34 while(len && (offset < MAX_TIG_FLASH_SIZE)) { in tsunami_flash_copy_from()
35 *dest = tsunami_tig_readb(offset); in tsunami_flash_copy_from()
36 offset++; in tsunami_flash_copy_from()
43 struct map_info *map, unsigned long offset, in tsunami_flash_copy_to() argument
48 while(len && (offset < MAX_TIG_FLASH_SIZE)) { in tsunami_flash_copy_to()
[all …]
/linux-4.4.14/arch/powerpc/platforms/pasemi/
Dpci.c38 static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset) in pa_pxp_offset_valid() argument
45 return offset < 8192; in pa_pxp_offset_valid()
47 return offset < 4096; in pa_pxp_offset_valid()
51 u8 bus, u8 devfn, int offset) in pa_pxp_cfg_addr() argument
53 return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset); in pa_pxp_cfg_addr()
69 int offset, int len, u32 *val) in workaround_5945() argument
76 if (!is_root_port(bus->number, devfn) || !is_5945_reg(offset)) in workaround_5945()
81 addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset & ~0x3); in workaround_5945()
82 byte = offset & 0x3; in workaround_5945()
112 int offset, int len, u32 *val) in pa_pxp_read_config() argument
[all …]
/linux-4.4.14/fs/jffs2/
Dread.c56 je32_to_cpu(ri->offset), buf); in jffs2_read_dnode()
158 unsigned char *buf, uint32_t offset, uint32_t len) in jffs2_read_inode_range() argument
160 uint32_t end = offset + len; in jffs2_read_inode_range()
165 __func__, f->inocache->ino, offset, offset + len); in jffs2_read_inode_range()
167 frag = jffs2_lookup_node_frag(&f->fragtree, offset); in jffs2_read_inode_range()
174 while(offset < end) { in jffs2_read_inode_range()
176 __func__, offset, end); in jffs2_read_inode_range()
177 if (unlikely(!frag || frag->ofs > offset || in jffs2_read_inode_range()
178 frag->ofs + frag->size <= offset)) { in jffs2_read_inode_range()
179 uint32_t holesize = end - offset; in jffs2_read_inode_range()
[all …]
/linux-4.4.14/arch/s390/pci/
Dpci_insn.c16 static inline void zpci_err_insn(u8 cc, u8 status, u64 req, u64 offset) in zpci_err_insn() argument
20 u64 offset; in zpci_err_insn() member
23 } __packed data = {req, offset, cc, status}; in zpci_err_insn()
102 static inline int __pcilg(u64 *data, u64 req, u64 offset, u8 *status) in __pcilg() argument
105 register u64 __offset asm("3") = offset; in __pcilg()
125 int zpci_load(u64 *data, u64 req, u64 offset) in zpci_load() argument
131 cc = __pcilg(data, req, offset, &status); in zpci_load()
137 zpci_err_insn(cc, status, req, offset); in zpci_load()
144 static inline int __pcistg(u64 data, u64 req, u64 offset, u8 *status) in __pcistg() argument
147 register u64 __offset asm("3") = offset; in __pcistg()
[all …]
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Dusb.c96 const u8 direction, const u16 val, const u16 offset, in mt7601u_vendor_request() argument
107 val, offset, buf, buflen, in mt7601u_vendor_request()
109 trace_mt_vend_req(dev, pipe, req, req_type, val, offset, in mt7601u_vendor_request()
121 req, offset, ret); in mt7601u_vendor_request()
132 u32 mt7601u_rr(struct mt7601u_dev *dev, u32 offset) in mt7601u_rr() argument
137 WARN_ONCE(offset > USHRT_MAX, "read high off:%08x", offset); in mt7601u_rr()
142 0, offset, dev->vend_buf, MT_VEND_BUF); in mt7601u_rr()
147 ret, offset); in mt7601u_rr()
151 trace_reg_read(dev, offset, val); in mt7601u_rr()
156 const u16 offset, const u32 val) in mt7601u_vendor_single_wr() argument
[all …]
/linux-4.4.14/arch/powerpc/platforms/maple/
Dpci.c100 u8 bus, u8 dev_fn, u8 offset) in u3_agp_cfg_access() argument
107 caddr = u3_agp_cfa0(dev_fn, offset); in u3_agp_cfg_access()
109 caddr = u3_agp_cfa1(bus, dev_fn, offset); in u3_agp_cfg_access()
116 offset &= 0x07; in u3_agp_cfg_access()
117 return hose->cfg_data + offset; in u3_agp_cfg_access()
121 int offset, int len, u32 *val) in u3_agp_read_config() argument
130 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); in u3_agp_read_config()
152 int offset, int len, u32 val) in u3_agp_write_config() argument
161 addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); in u3_agp_write_config()
199 u8 bus, u8 devfn, u8 offset) in u3_ht_cfg_access() argument
[all …]
/linux-4.4.14/drivers/bcma/
Dhost_soc.c16 static u8 bcma_host_soc_read8(struct bcma_device *core, u16 offset) in bcma_host_soc_read8() argument
18 return readb(core->io_addr + offset); in bcma_host_soc_read8()
21 static u16 bcma_host_soc_read16(struct bcma_device *core, u16 offset) in bcma_host_soc_read16() argument
23 return readw(core->io_addr + offset); in bcma_host_soc_read16()
26 static u32 bcma_host_soc_read32(struct bcma_device *core, u16 offset) in bcma_host_soc_read32() argument
28 return readl(core->io_addr + offset); in bcma_host_soc_read32()
31 static void bcma_host_soc_write8(struct bcma_device *core, u16 offset, in bcma_host_soc_write8() argument
34 writeb(value, core->io_addr + offset); in bcma_host_soc_write8()
37 static void bcma_host_soc_write16(struct bcma_device *core, u16 offset, in bcma_host_soc_write16() argument
40 writew(value, core->io_addr + offset); in bcma_host_soc_write16()
[all …]
Dhost_pci.c42 static u8 bcma_host_pci_read8(struct bcma_device *core, u16 offset) in bcma_host_pci_read8() argument
44 offset += bcma_host_pci_provide_access_to_core(core); in bcma_host_pci_read8()
45 return ioread8(core->bus->mmio + offset); in bcma_host_pci_read8()
48 static u16 bcma_host_pci_read16(struct bcma_device *core, u16 offset) in bcma_host_pci_read16() argument
50 offset += bcma_host_pci_provide_access_to_core(core); in bcma_host_pci_read16()
51 return ioread16(core->bus->mmio + offset); in bcma_host_pci_read16()
54 static u32 bcma_host_pci_read32(struct bcma_device *core, u16 offset) in bcma_host_pci_read32() argument
56 offset += bcma_host_pci_provide_access_to_core(core); in bcma_host_pci_read32()
57 return ioread32(core->bus->mmio + offset); in bcma_host_pci_read32()
60 static void bcma_host_pci_write8(struct bcma_device *core, u16 offset, in bcma_host_pci_write8() argument
[all …]
/linux-4.4.14/drivers/oprofile/
Doprofile_files.c31 size_t count, loff_t *offset) in timeout_read() argument
34 buf, count, offset); in timeout_read()
39 size_t count, loff_t *offset) in timeout_write() argument
44 if (*offset) in timeout_write()
68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in depth_read() argument
71 offset); in depth_read()
75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in depth_write() argument
80 if (*offset) in depth_write()
105 static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in pointer_size_read() argument
107 return oprofilefs_ulong_to_user(sizeof(void *), buf, count, offset); in pointer_size_read()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/
Dgpuobj.c33 nvkm_gpuobj_rd32_fast(struct nvkm_gpuobj *gpuobj, u32 offset) in nvkm_gpuobj_rd32_fast() argument
35 return ioread32_native(gpuobj->map + offset); in nvkm_gpuobj_rd32_fast()
39 nvkm_gpuobj_wr32_fast(struct nvkm_gpuobj *gpuobj, u32 offset, u32 data) in nvkm_gpuobj_wr32_fast() argument
41 iowrite32_native(data, gpuobj->map + offset); in nvkm_gpuobj_wr32_fast()
46 nvkm_gpuobj_heap_rd32(struct nvkm_gpuobj *gpuobj, u32 offset) in nvkm_gpuobj_heap_rd32() argument
48 return nvkm_ro32(gpuobj->memory, offset); in nvkm_gpuobj_heap_rd32()
52 nvkm_gpuobj_heap_wr32(struct nvkm_gpuobj *gpuobj, u32 offset, u32 data) in nvkm_gpuobj_heap_wr32() argument
54 nvkm_wo32(gpuobj->memory, offset, data); in nvkm_gpuobj_heap_wr32()
97 nvkm_gpuobj_rd32(struct nvkm_gpuobj *gpuobj, u32 offset) in nvkm_gpuobj_rd32() argument
99 return nvkm_ro32(gpuobj->parent, gpuobj->node->offset + offset); in nvkm_gpuobj_rd32()
[all …]
Dmm.c38 node->offset, node->length, node->type); in nvkm_mm_dump()
43 node->offset, node->length, node->type); in nvkm_mm_dump()
63 next->offset = this->offset; in nvkm_mm_free()
73 if (this->offset < prev->offset) in nvkm_mm_free()
97 b->offset = a->offset; in region_head()
101 a->offset += size; in region_head()
126 e = this->offset + this->length; in nvkm_mm_head()
127 s = this->offset; in nvkm_mm_head()
142 splitoff = s - this->offset; in nvkm_mm_head()
172 b->offset = a->offset + a->length; in region_tail()
[all …]
/linux-4.4.14/fs/hfsplus/
Dbitmap.c19 u32 offset, u32 *max) in hfsplus_block_allocate() argument
33 hfs_dbg(BITMAP, "block_allocate: %u,%u,%u\n", size, offset, len); in hfsplus_block_allocate()
36 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL); in hfsplus_block_allocate()
42 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
43 i = offset % 32; in hfsplus_block_allocate()
44 offset &= ~(PAGE_CACHE_BITS - 1); in hfsplus_block_allocate()
45 if ((size ^ offset) / PAGE_CACHE_BITS) in hfsplus_block_allocate()
77 offset += PAGE_CACHE_BITS; in hfsplus_block_allocate()
78 if (offset >= size) in hfsplus_block_allocate()
80 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Ditem.h44 unsigned short offset; /* bytes in container */ member
62 if (item->offset % typesize != 0 || in __mlxsw_item_offset()
66 item->name, item->offset, item->step, in __mlxsw_item_offset()
71 return ((item->offset + item->step * index + item->in_step_offset) / in __mlxsw_item_offset()
78 unsigned int offset = __mlxsw_item_offset(item, index, sizeof(u16)); in __mlxsw_item_get16() local
82 tmp = be16_to_cpu(b[offset]); in __mlxsw_item_get16()
93 unsigned int offset = __mlxsw_item_offset(item, index, in __mlxsw_item_set16() local
102 tmp = be16_to_cpu(b[offset]); in __mlxsw_item_set16()
105 b[offset] = cpu_to_be16(tmp); in __mlxsw_item_set16()
111 unsigned int offset = __mlxsw_item_offset(item, index, sizeof(u32)); in __mlxsw_item_get32() local
[all …]
/linux-4.4.14/arch/powerpc/platforms/powermac/
Dpfunc_base.c119 unsigned long offset; in macio_gpio_init_one() local
122 offset = *reg; in macio_gpio_init_one()
126 if (offset < 0x50) in macio_gpio_init_one()
127 offset += 0x50; in macio_gpio_init_one()
128 offset += (unsigned long)macio->base; in macio_gpio_init_one()
129 pmf_register_driver(gp, &macio_gpio_handlers, (void *)offset); in macio_gpio_init_one()
144 static int macio_do_write_reg32(PMF_STD_ARGS, u32 offset, u32 value, u32 mask) in macio_do_write_reg32() argument
150 MACIO_OUT32(offset, (MACIO_IN32(offset) & ~mask) | (value & mask)); in macio_do_write_reg32()
155 static int macio_do_read_reg32(PMF_STD_ARGS, u32 offset) in macio_do_read_reg32() argument
163 *args->u[0].p = MACIO_IN32(offset); in macio_do_read_reg32()
[all …]
/linux-4.4.14/fs/xfs/
Dxfs_aops.c138 xfs_off_t offset, in xfs_setfilesize() argument
144 isize = xfs_new_eof(ip, offset + size); in xfs_setfilesize()
151 trace_xfs_setfilesize(ip, offset, size); in xfs_setfilesize()
284 loff_t offset, in xfs_map_blocks() argument
311 ASSERT(offset <= mp->m_super->s_maxbytes); in xfs_map_blocks()
313 if (offset + count > mp->m_super->s_maxbytes) in xfs_map_blocks()
314 count = mp->m_super->s_maxbytes - offset; in xfs_map_blocks()
315 end_fsb = XFS_B_TO_FSB(mp, (xfs_ufsize_t)offset + count); in xfs_map_blocks()
316 offset_fsb = XFS_B_TO_FSBT(mp, offset); in xfs_map_blocks()
326 error = xfs_iomap_write_allocate(ip, offset, imap); in xfs_map_blocks()
[all …]
/linux-4.4.14/drivers/net/dsa/
Dmv88e6352.c128 int offset; in mv88e6352_get_eeprom() local
132 offset = eeprom->offset; in mv88e6352_get_eeprom()
142 if (offset & 1) { in mv88e6352_get_eeprom()
145 word = mv88e6352_read_eeprom_word(ds, offset >> 1); in mv88e6352_get_eeprom()
151 offset++; in mv88e6352_get_eeprom()
159 word = mv88e6352_read_eeprom_word(ds, offset >> 1); in mv88e6352_get_eeprom()
166 offset += 2; in mv88e6352_get_eeprom()
174 word = mv88e6352_read_eeprom_word(ds, offset >> 1); in mv88e6352_get_eeprom()
180 offset++; in mv88e6352_get_eeprom()
229 int offset; in mv88e6352_set_eeprom() local
[all …]
/linux-4.4.14/drivers/mtd/tests/
Dmtd_nandecctest.c49 unsigned int offset = prandom_u32() % (size * BITS_PER_BYTE); in single_bit_error_data() local
52 __change_bit_le(offset, error_data); in single_bit_error_data()
58 unsigned int offset[2]; in double_bit_error_data() local
60 offset[0] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
62 offset[1] = prandom_u32() % (size * BITS_PER_BYTE); in double_bit_error_data()
63 } while (offset[0] == offset[1]); in double_bit_error_data()
67 __change_bit_le(offset[0], error_data); in double_bit_error_data()
68 __change_bit_le(offset[1], error_data); in double_bit_error_data()
73 unsigned int offset = prandom_u32() % (3 * BITS_PER_BYTE); in random_ecc_bit() local
80 while (offset == 16 || offset == 17) in random_ecc_bit()
[all …]
/linux-4.4.14/drivers/net/ethernet/natsemi/
Dsonic.h345 int offset, __u16 val) in sonic_buf_put() argument
349 ((__u16 *) base + (offset*2))[1] = val; in sonic_buf_put()
351 ((__u16 *) base + (offset*2))[0] = val; in sonic_buf_put()
354 ((__u16 *) base)[offset] = val; in sonic_buf_put()
358 int offset) in sonic_buf_get() argument
362 return ((volatile __u16 *) base + (offset*2))[1]; in sonic_buf_get()
364 return ((volatile __u16 *) base + (offset*2))[0]; in sonic_buf_get()
367 return ((volatile __u16 *) base)[offset]; in sonic_buf_get()
372 int offset, __u16 val) in sonic_cda_put() argument
376 (entry * SIZEOF_SONIC_CD) + offset, val); in sonic_cda_put()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Deeprom.c77 u32 cksum, offset, eep_max = AR5K_EEPROM_INFO_MAX; in ath5k_eeprom_init_header() local
118 for (cksum = 0, offset = 0; offset < eep_max; offset++) { in ath5k_eeprom_init_header()
119 AR5K_EEPROM_READ(AR5K_EEPROM_INFO(offset), val); in ath5k_eeprom_init_header()
189 static int ath5k_eeprom_read_ants(struct ath5k_hw *ah, u32 *offset, in ath5k_eeprom_read_ants() argument
193 u32 o = *offset; in ath5k_eeprom_read_ants()
240 *offset = o; in ath5k_eeprom_read_ants()
249 static int ath5k_eeprom_read_modes(struct ath5k_hw *ah, u32 *offset, in ath5k_eeprom_read_modes() argument
253 u32 o = *offset; in ath5k_eeprom_read_modes()
460 *offset = o; in ath5k_eeprom_read_modes()
472 u32 offset; in ath5k_eeprom_init_modes() local
[all …]
/linux-4.4.14/drivers/iio/adc/
Dxilinx-xadc-events.c74 unsigned int offset; in xadc_get_threshold_offset() local
77 offset = XADC_THRESHOLD_OT_MAX; in xadc_get_threshold_offset()
80 offset = chan->channel + 1; in xadc_get_threshold_offset()
82 offset = chan->channel + 6; in xadc_get_threshold_offset()
86 offset += 4; in xadc_get_threshold_offset()
88 return offset; in xadc_get_threshold_offset()
169 unsigned int offset = xadc_get_threshold_offset(chan, dir); in xadc_read_event_value() local
174 *val = xadc->threshold[offset]; in xadc_read_event_value()
193 unsigned int offset = xadc_get_threshold_offset(chan, dir); in xadc_write_event_value() local
206 xadc->threshold[offset] = val; in xadc_write_event_value()
[all …]
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_vnic.c99 int i, j, offset; in usnic_vnic_dump() local
101 offset = 0; in usnic_vnic_dump()
103 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
109 offset += printtitle(hdr_obj, buf + offset, buf_sz - offset); in usnic_vnic_dump()
110 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump()
111 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
114 offset += printcols(buf + offset, buf_sz - offset); in usnic_vnic_dump()
115 offset += scnprintf(buf + offset, buf_sz - offset, "\n"); in usnic_vnic_dump()
122 offset += scnprintf(buf + offset, buf_sz - offset, in usnic_vnic_dump()
127 offset += printrow(res->owner, buf + offset, in usnic_vnic_dump()
[all …]
/linux-4.4.14/arch/ia64/kernel/
Dminstate.h99 .mem.offset 0,0; st8.spill [r16]=r8,16; \
100 .mem.offset 8,0; st8.spill [r17]=r9,16; \
102 .mem.offset 0,0; st8.spill [r16]=r10,24; \
103 .mem.offset 8,0; st8.spill [r17]=r11,24; \
129 .mem.offset 0,0; st8.spill [r16]=r20,16; /* save original r1 */ \
130 .mem.offset 8,0; st8.spill [r17]=r12,16; \
133 .mem.offset 0,0; st8.spill [r16]=r13,16; \
134 .mem.offset 8,0; st8.spill [r17]=r21,16; /* save ar.fpsr */ \
137 .mem.offset 0,0; st8.spill [r16]=r15,16; \
138 .mem.offset 8,0; st8.spill [r17]=r14,16; \
[all …]
/linux-4.4.14/sound/pci/emu10k1/
Demu10k1_patch.c42 int offset; in snd_emu10k1_sample_new() local
105 offset = 0; in snd_emu10k1_sample_new()
109 if (offset + size > blocksize) in snd_emu10k1_sample_new()
111 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new()
112 offset += size; in snd_emu10k1_sample_new()
118 if (offset + size > blocksize) in snd_emu10k1_sample_new()
120 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
125 offset += size; in snd_emu10k1_sample_new()
135 woffset = offset / 2; in snd_emu10k1_sample_new()
136 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
[all …]
/linux-4.4.14/tools/testing/nvdimm/test/
Diomap.c54 void __iomem *__nfit_test_ioremap(resource_size_t offset, unsigned long size, in __nfit_test_ioremap() argument
60 nfit_res = get_nfit_res(offset); in __nfit_test_ioremap()
63 return (void __iomem *) nfit_res->buf + offset in __nfit_test_ioremap()
65 return fallback_fn(offset, size); in __nfit_test_ioremap()
69 resource_size_t offset, unsigned long size) in __wrap_devm_ioremap_nocache() argument
74 nfit_res = get_nfit_res(offset); in __wrap_devm_ioremap_nocache()
77 return (void __iomem *) nfit_res->buf + offset in __wrap_devm_ioremap_nocache()
79 return devm_ioremap_nocache(dev, offset, size); in __wrap_devm_ioremap_nocache()
83 void *__wrap_devm_memremap(struct device *dev, resource_size_t offset, in __wrap_devm_memremap() argument
89 nfit_res = get_nfit_res(offset); in __wrap_devm_memremap()
[all …]
/linux-4.4.14/drivers/pinctrl/nomadik/
Dpinctrl-abx500.c122 unsigned offset, bool *bit) in abx500_gpio_get_bit() argument
125 u8 pos = offset % 8; in abx500_gpio_get_bit()
129 reg += offset / 8; in abx500_gpio_get_bit()
138 __func__, reg, offset, ret); in abx500_gpio_get_bit()
144 unsigned offset, int val) in abx500_gpio_set_bits() argument
147 u8 pos = offset % 8; in abx500_gpio_set_bits()
150 reg += offset / 8; in abx500_gpio_set_bits()
155 __func__, reg, offset, ret); in abx500_gpio_set_bits()
165 static int abx500_gpio_get(struct gpio_chip *chip, unsigned offset) in abx500_gpio_get() argument
170 u8 gpio_offset = offset - 1; in abx500_gpio_get()
[all …]
/linux-4.4.14/drivers/crypto/marvell/
Dcesa.h164 #define CESA_SA_DESC_CRYPT_DATA(offset) \ argument
165 cpu_to_le32((CESA_SA_DATA_SRAM_OFFSET + (offset)) | \
166 ((CESA_SA_DATA_SRAM_OFFSET + (offset)) << 16))
168 #define CESA_SA_DESC_CRYPT_IV(offset) \ argument
169 cpu_to_le32((CESA_SA_CRYPT_IV_SRAM_OFFSET + (offset)) | \
170 ((CESA_SA_CRYPT_IV_SRAM_OFFSET + (offset)) << 16))
172 #define CESA_SA_DESC_CRYPT_KEY(offset) \ argument
173 cpu_to_le32(CESA_SA_CRYPT_KEY_SRAM_OFFSET + (offset))
175 #define CESA_SA_DESC_MAC_DATA(offset) \ argument
176 cpu_to_le32(CESA_SA_DATA_SRAM_OFFSET + (offset))
[all …]
/linux-4.4.14/fs/coda/
Dupcall.c136 int offset; in venus_lookup() local
138 offset = INSIZE(lookup); in venus_lookup()
139 insize = max_t(unsigned int, offset + length +1, OUTSIZE(lookup)); in venus_lookup()
143 inp->coda_lookup.name = offset; in venus_lookup()
146 memcpy((char *)(inp) + offset, name, length); in venus_lookup()
147 *((char *)inp + offset + length) = '\0'; in venus_lookup()
207 int offset; in venus_mkdir() local
209 offset = INSIZE(mkdir); in venus_mkdir()
210 insize = max_t(unsigned int, offset + length + 1, OUTSIZE(mkdir)); in venus_mkdir()
215 inp->coda_mkdir.name = offset; in venus_mkdir()
[all …]
/linux-4.4.14/drivers/pci/
Dhost-bridge.c53 resource_size_t offset = 0; in pcibios_resource_to_bus() local
57 offset = window->offset; in pcibios_resource_to_bus()
62 region->start = res->start - offset; in pcibios_resource_to_bus()
63 region->end = res->end - offset; in pcibios_resource_to_bus()
78 resource_size_t offset = 0; in pcibios_bus_to_resource() local
86 bus_region.start = window->res->start - window->offset; in pcibios_bus_to_resource()
87 bus_region.end = window->res->end - window->offset; in pcibios_bus_to_resource()
90 offset = window->offset; in pcibios_bus_to_resource()
95 res->start = region->start + offset; in pcibios_bus_to_resource()
96 res->end = region->end + offset; in pcibios_bus_to_resource()
/linux-4.4.14/arch/s390/oprofile/
Dinit.c125 size_t count, loff_t *offset) in hwsampler_read() argument
127 return oprofilefs_ulong_to_user(hwsampler_enabled, buf, count, offset); in hwsampler_read()
131 size_t count, loff_t *offset) in hwsampler_write() argument
136 if (*offset) in hwsampler_write()
173 size_t count, loff_t *offset) in hw_interval_read() argument
176 count, offset); in hw_interval_read()
180 size_t count, loff_t *offset) in hw_interval_write() argument
185 if (*offset) in hw_interval_write()
216 size_t count, loff_t *offset) in hwsampler_zero_read() argument
218 return oprofilefs_ulong_to_user(0, buf, count, offset); in hwsampler_zero_read()
[all …]
/linux-4.4.14/drivers/rtc/
Drtc-snvs.c45 int offset; member
56 regmap_read(data->regmap, data->offset + SNVS_LPSRTCMR, &val); in rtc_read_lp_counter()
59 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &val); in rtc_read_lp_counter()
62 regmap_read(data->regmap, data->offset + SNVS_LPSRTCMR, &val); in rtc_read_lp_counter()
65 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &val); in rtc_read_lp_counter()
81 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &count1); in rtc_write_sync_lp()
82 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &count2); in rtc_write_sync_lp()
88 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &count2); in rtc_write_sync_lp()
89 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &count3); in rtc_write_sync_lp()
100 regmap_update_bits(data->regmap, data->offset + SNVS_LPCR, SNVS_LPCR_SRTC_ENV, in snvs_rtc_enable()
[all …]
/linux-4.4.14/include/linux/gpio/
Ddriver.h98 unsigned offset);
100 unsigned offset);
102 unsigned offset);
104 unsigned offset);
106 unsigned offset, int value);
108 unsigned offset);
110 unsigned offset, int value);
115 unsigned offset,
119 unsigned offset);
166 unsigned offset);
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Dsmp-tbsync.c77 static int start_contest(int cmd, long offset, int num) in start_contest() argument
88 tbsync->tb = tb + offset; in start_contest()
114 int i, score, score2, old, min=0, max=5000, offset=1000; in smp_generic_give_timebase() local
129 for (old = -1; old != offset ; offset = (min+max) / 2) { in smp_generic_give_timebase()
130 score = start_contest(kSetAndTest, offset, NUM_ITER); in smp_generic_give_timebase()
132 pr_debug("score %d, offset %d\n", score, offset ); in smp_generic_give_timebase()
135 max = offset; in smp_generic_give_timebase()
137 min = offset; in smp_generic_give_timebase()
138 old = offset; in smp_generic_give_timebase()
147 offset = (score < score2) ? min : max; in smp_generic_give_timebase()
[all …]
/linux-4.4.14/arch/mips/include/asm/mach-bcm63xx/
Dioremap.h11 static inline int is_bcm63xx_internal_registers(phys_addr_t offset) in is_bcm63xx_internal_registers() argument
15 if (offset >= 0xfff80000) in is_bcm63xx_internal_registers()
22 if (offset >= 0xfff00000) in is_bcm63xx_internal_registers()
28 if (offset >= 0xb0000000 && offset < 0xb1000000) in is_bcm63xx_internal_registers()
35 static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size, in plat_ioremap() argument
38 if (is_bcm63xx_internal_registers(offset)) in plat_ioremap()
39 return (void __iomem *)offset; in plat_ioremap()
/linux-4.4.14/drivers/video/fbdev/
D68328fb.c192 var->red.offset = 0; in mc68x328fb_check_var()
194 var->green.offset = 0; in mc68x328fb_check_var()
196 var->blue.offset = 0; in mc68x328fb_check_var()
198 var->transp.offset = 0; in mc68x328fb_check_var()
202 var->red.offset = 0; in mc68x328fb_check_var()
204 var->green.offset = 0; in mc68x328fb_check_var()
206 var->blue.offset = 0; in mc68x328fb_check_var()
208 var->transp.offset = 0; in mc68x328fb_check_var()
213 var->red.offset = 0; in mc68x328fb_check_var()
215 var->green.offset = 5; in mc68x328fb_check_var()
[all …]
Docfb.c87 static inline u32 ocfb_readreg(struct ocfb_dev *fbdev, loff_t offset) in ocfb_readreg() argument
90 return ioread32(fbdev->regs + offset); in ocfb_readreg()
92 return ioread32be(fbdev->regs + offset); in ocfb_readreg()
95 static void ocfb_writereg(struct ocfb_dev *fbdev, loff_t offset, u32 data) in ocfb_writereg() argument
98 iowrite32(data, fbdev->regs + offset); in ocfb_writereg()
100 iowrite32be(data, fbdev->regs + offset); in ocfb_writereg()
202 (red << info->var.red.offset) | in ocfb_setcolreg()
203 (green << info->var.green.offset) | in ocfb_setcolreg()
204 (blue << info->var.blue.offset) | in ocfb_setcolreg()
205 (transp << info->var.transp.offset); in ocfb_setcolreg()
[all …]
/linux-4.4.14/arch/sh/include/asm/
Dio_trapped.h24 unsigned long offset,
31 __ioremap_trapped(unsigned long offset, unsigned long size) in __ioremap_trapped() argument
33 return match_trapped_io_handler(&trapped_mem, offset, size); in __ioremap_trapped()
36 #define __ioremap_trapped(offset, size) NULL argument
43 __ioport_map_trapped(unsigned long offset, unsigned long size) in __ioport_map_trapped() argument
45 return match_trapped_io_handler(&trapped_io, offset, size); in __ioport_map_trapped()
48 #define __ioport_map_trapped(offset, size) NULL argument
54 #define __ioremap_trapped(offset, size) NULL argument
55 #define __ioport_map_trapped(offset, size) NULL argument
/linux-4.4.14/arch/powerpc/include/asm/
Dpmac_pfunc.h66 int (*write_reg32)(PMF_STD_ARGS, u32 offset, u32 value, u32 mask);
67 int (*read_reg32)(PMF_STD_ARGS, u32 offset);
68 int (*write_reg16)(PMF_STD_ARGS, u32 offset, u16 value, u16 mask);
69 int (*read_reg16)(PMF_STD_ARGS, u32 offset);
70 int (*write_reg8)(PMF_STD_ARGS, u32 offset, u8 value, u8 mask);
71 int (*read_reg8)(PMF_STD_ARGS, u32 offset);
75 int (*wait_reg32)(PMF_STD_ARGS, u32 offset, u32 value, u32 mask);
76 int (*wait_reg16)(PMF_STD_ARGS, u32 offset, u16 value, u16 mask);
77 int (*wait_reg8)(PMF_STD_ARGS, u32 offset, u8 value, u8 mask);
84 int (*read_cfg)(PMF_STD_ARGS, u32 offset, u32 len);
[all …]
/linux-4.4.14/drivers/base/regmap/
Dregmap-mmio.c64 static inline void regmap_mmio_count_check(size_t count, u32 offset) in regmap_mmio_count_check() argument
66 BUG_ON(count <= offset); in regmap_mmio_count_check()
93 unsigned int offset; in regmap_mmio_gather_write() local
104 offset = regmap_mmio_get_offset(reg, reg_size); in regmap_mmio_gather_write()
109 writeb(*(u8 *)val, ctx->regs + offset); in regmap_mmio_gather_write()
112 writew(*(u16 *)val, ctx->regs + offset); in regmap_mmio_gather_write()
115 writel(*(u32 *)val, ctx->regs + offset); in regmap_mmio_gather_write()
119 writeq(*(u64 *)val, ctx->regs + offset); in regmap_mmio_gather_write()
128 offset += ctx->val_bytes; in regmap_mmio_gather_write()
140 unsigned int offset = ctx->reg_bytes + ctx->pad_bytes; in regmap_mmio_write() local
[all …]
/linux-4.4.14/arch/microblaze/lib/
Duaccess_old.S106 #define COPY(offset) \ argument
107 1: lwi r4 , r6, 0x0000 + offset; \
108 2: lwi r19, r6, 0x0004 + offset; \
109 3: lwi r20, r6, 0x0008 + offset; \
110 4: lwi r21, r6, 0x000C + offset; \
111 5: lwi r22, r6, 0x0010 + offset; \
112 6: lwi r23, r6, 0x0014 + offset; \
113 7: lwi r24, r6, 0x0018 + offset; \
114 8: lwi r25, r6, 0x001C + offset; \
115 9: swi r4 , r5, 0x0000 + offset; \
[all …]
/linux-4.4.14/arch/cris/arch-v32/drivers/
Daxisflashmap.c139 .offset = 0
144 .offset = 0
149 .offset = 0
154 .offset = 0
159 .offset = 0
164 .offset = 0
169 .offset = 0
183 .offset = 0
188 .offset = CONFIG_ETRAX_PTABLE_SECTOR
195 .offset = FILESYSTEM_SECTOR
[all …]
/linux-4.4.14/drivers/clk/bcm/
Dclk-kona.h48 #define ccu_policy_exists(ccu_policy) ((ccu_policy)->enable.offset != 0)
52 #define policy_exists(policy) ((policy)->offset != 0)
63 #define hyst_exists(hyst) ((hyst)->offset != 0)
73 #define policy_lvm_en_exists(enable) ((enable)->offset != 0)
74 #define policy_ctl_exists(control) ((control)->offset != 0)
93 u32 offset; /* first policy mask register offset */ member
101 .offset = (_offset), \
130 u32 offset; /* gate register offset */ member
161 .offset = (_offset), \
173 .offset = (_offset), \
[all …]
/linux-4.4.14/crypto/
Dscatterwalk.c39 walk->offset = sg->offset; in scatterwalk_start()
46 offset_in_page(walk->offset); in scatterwalk_map()
56 page = sg_page(walk->sg) + ((walk->offset - 1) >> PAGE_SHIFT); in scatterwalk_pagedone()
66 walk->offset += PAGE_SIZE - 1; in scatterwalk_pagedone()
67 walk->offset &= PAGE_MASK; in scatterwalk_pagedone()
68 if (walk->offset >= walk->sg->offset + walk->sg->length) in scatterwalk_pagedone()
119 sg->offset == offset_in_page(buf)) in scatterwalk_map_and_copy()
130 int offset = 0, n = 0; in scatterwalk_bytes_sglen() local
137 offset += sg->length; in scatterwalk_bytes_sglen()
142 if (unlikely(!sg && (num_bytes < offset))) in scatterwalk_bytes_sglen()
[all …]
/linux-4.4.14/kernel/
Dmemremap.c21 __weak void __iomem *ioremap_cache(resource_size_t offset, unsigned long size) in ioremap_cache() argument
23 return ioremap(offset, size); in ioremap_cache()
27 static void *try_ram_remap(resource_size_t offset, size_t size) in try_ram_remap() argument
29 struct page *page = pfn_to_page(offset >> PAGE_SHIFT); in try_ram_remap()
33 return __va(offset); in try_ram_remap()
58 void *memremap(resource_size_t offset, size_t size, unsigned long flags) in memremap() argument
60 int is_ram = region_intersects(offset, size, "System RAM"); in memremap()
65 &offset, (unsigned long) size); in memremap()
79 addr = try_ram_remap(offset, size); in memremap()
81 addr = ioremap_cache(offset, size); in memremap()
[all …]
/linux-4.4.14/arch/avr32/mach-at32ap/
Dhmatrix.c16 static inline void __hmatrix_write_reg(unsigned long offset, u32 value) in __hmatrix_write_reg() argument
18 __raw_writel(value, (void __iomem __force *)(HMATRIX_BASE + offset)); in __hmatrix_write_reg()
21 static inline u32 __hmatrix_read_reg(unsigned long offset) in __hmatrix_read_reg() argument
23 return __raw_readl((void __iomem __force *)(HMATRIX_BASE + offset)); in __hmatrix_read_reg()
31 void hmatrix_write_reg(unsigned long offset, u32 value) in hmatrix_write_reg() argument
34 __hmatrix_write_reg(offset, value); in hmatrix_write_reg()
35 __hmatrix_read_reg(offset); in hmatrix_write_reg()
45 u32 hmatrix_read_reg(unsigned long offset) in hmatrix_read_reg() argument
50 value = __hmatrix_read_reg(offset); in hmatrix_read_reg()
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Dosunixmap.c100 acpi_physical_address offset; in acpi_os_map_memory() local
113 offset = where % page_size; in acpi_os_map_memory()
117 mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS, in acpi_os_map_memory()
118 fd, (where - offset)); in acpi_os_map_memory()
126 return (ACPI_CAST8(mapped_memory + offset)); in acpi_os_map_memory()
145 acpi_physical_address offset; in acpi_os_unmap_memory() local
149 offset = ACPI_TO_INTEGER(where) % page_size; in acpi_os_unmap_memory()
150 munmap((u8 *)where - offset, (length + offset)); in acpi_os_unmap_memory()
/linux-4.4.14/tools/perf/ui/browsers/
Dheader.c18 unsigned long offset = (unsigned long)browser->priv; in ui_browser__argv_write() local
20 if (offset >= strlen(str)) in ui_browser__argv_write()
23 str = str + offset; in ui_browser__argv_write()
34 unsigned long offset; in list_menu__run() local
50 offset = (unsigned long)menu->priv; in list_menu__run()
51 offset += 10; in list_menu__run()
52 menu->priv = (void *)offset; in list_menu__run()
55 offset = (unsigned long)menu->priv; in list_menu__run()
56 if (offset >= 10) in list_menu__run()
57 offset -= 10; in list_menu__run()
[all …]
/linux-4.4.14/arch/arm/mach-imx/
Diomux-v1.c39 static inline unsigned long imx_iomuxv1_readl(unsigned offset) in imx_iomuxv1_readl() argument
41 return __raw_readl(imx_iomuxv1_baseaddr + offset); in imx_iomuxv1_readl()
44 static inline void imx_iomuxv1_writel(unsigned long val, unsigned offset) in imx_iomuxv1_writel() argument
46 __raw_writel(val, imx_iomuxv1_baseaddr + offset); in imx_iomuxv1_writel()
49 static inline void imx_iomuxv1_rmwl(unsigned offset, in imx_iomuxv1_rmwl() argument
52 unsigned long reg = imx_iomuxv1_readl(offset); in imx_iomuxv1_rmwl()
57 imx_iomuxv1_writel(reg, offset); in imx_iomuxv1_rmwl()
98 unsigned long offset = pin < 16 ? MXC_OCR1(port) : MXC_OCR2(port); in imx_iomuxv1_set_ocr() local
100 imx_iomuxv1_rmwl(offset, mask, value); in imx_iomuxv1_set_ocr()
109 unsigned long offset = pin < 16 ? MXC_ICONFA1(port) : MXC_ICONFA2(port); in imx_iomuxv1_set_iconfa() local
[all …]
Dpm-imx5.c60 u32 offset; member
80 {.offset = 0x584, .clear = MX53_DSE_HIGHZ_MASK}, /* DQM0 */
81 {.offset = 0x594, .clear = MX53_DSE_HIGHZ_MASK}, /* DQM1 */
82 {.offset = 0x560, .clear = MX53_DSE_HIGHZ_MASK}, /* DQM2 */
83 {.offset = 0x554, .clear = MX53_DSE_HIGHZ_MASK}, /* DQM3 */
84 {.offset = 0x574, .clear = MX53_DSE_HIGHZ_MASK}, /* CAS */
85 {.offset = 0x588, .clear = MX53_DSE_HIGHZ_MASK}, /* RAS */
86 {.offset = 0x578, .clear = MX53_DSE_HIGHZ_MASK}, /* SDCLK_0 */
87 {.offset = 0x570, .clear = MX53_DSE_HIGHZ_MASK}, /* SDCLK_1 */
89 {.offset = 0x580, .clear = MX53_DSE_HIGHZ_MASK}, /* SDODT0 */
[all …]
/linux-4.4.14/arch/arm/mach-gemini/
Dgpio.c154 static void _set_gpio_direction(struct gpio_chip *chip, unsigned offset, in _set_gpio_direction() argument
157 void __iomem *base = GPIO_BASE(offset / 32); in _set_gpio_direction()
162 reg |= 1 << (offset % 32); in _set_gpio_direction()
164 reg &= ~(1 << (offset % 32)); in _set_gpio_direction()
168 static void gemini_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in gemini_gpio_set() argument
170 void __iomem *base = GPIO_BASE(offset / 32); in gemini_gpio_set()
173 __raw_writel(1 << (offset % 32), base + GPIO_DATA_SET); in gemini_gpio_set()
175 __raw_writel(1 << (offset % 32), base + GPIO_DATA_CLR); in gemini_gpio_set()
178 static int gemini_gpio_get(struct gpio_chip *chip, unsigned offset) in gemini_gpio_get() argument
180 void __iomem *base = GPIO_BASE(offset / 32); in gemini_gpio_get()
[all …]
/linux-4.4.14/drivers/tty/serial/8250/
D8250_uniphier.c41 static unsigned int uniphier_serial_in(struct uart_port *p, int offset) in uniphier_serial_in() argument
45 switch (offset) { in uniphier_serial_in()
50 offset = UNIPHIER_UART_LCR_MCR; in uniphier_serial_in()
56 offset <<= p->regshift; in uniphier_serial_in()
63 return (readl(p->membase + offset) >> valshift) & 0xff; in uniphier_serial_in()
66 static void uniphier_serial_out(struct uart_port *p, int offset, int value) in uniphier_serial_out() argument
71 switch (offset) { in uniphier_serial_out()
73 offset = UNIPHIER_UART_CHAR_FCR; in uniphier_serial_out()
81 offset = UNIPHIER_UART_LCR_MCR; in uniphier_serial_out()
88 offset <<= p->regshift; in uniphier_serial_out()
[all …]
/linux-4.4.14/arch/cris/arch-v10/drivers/
Daxisflashmap.c127 .offset = 0
132 .offset = CONFIG_ETRAX_PTABLE_SECTOR
137 .offset = 0x200000 - (5 * CONFIG_ETRAX_PTABLE_SECTOR)
146 .offset = 0
151 .offset = 0
156 .offset = 0
161 .offset = 0
166 .offset = 0
171 .offset = 0
176 .offset = 0
[all …]
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c49 gss_krb5_add_padding(struct xdr_buf *buf, int offset, int blocksize) in gss_krb5_add_padding() argument
51 int padding = gss_krb5_padding(blocksize, buf->len - offset); in gss_krb5_add_padding()
83 unsigned int offset = (buf->page_base + len - 1) in gss_krb5_remove_padding() local
86 pad = *(ptr + offset); in gss_krb5_remove_padding()
158 gss_wrap_kerberos_v1(struct krb5_ctx *kctx, int offset, in gss_wrap_kerberos_v1() argument
178 gss_krb5_add_padding(buf, offset, blocksize); in gss_wrap_kerberos_v1()
179 BUG_ON((buf->len - offset) % blocksize); in gss_wrap_kerberos_v1()
180 plainlen = conflen + buf->len - offset; in gss_wrap_kerberos_v1()
184 (buf->len - offset); in gss_wrap_kerberos_v1()
186 ptr = buf->head[0].iov_base + offset; in gss_wrap_kerberos_v1()
[all …]
/linux-4.4.14/drivers/gpu/host1x/
Djob.c101 u32 words, u32 offset) in host1x_job_add_gather() argument
107 cur_gather->offset = offset; in host1x_job_add_gather()
120 struct host1x_bo *h, u32 offset) in host1x_syncpt_patch_offset() argument
125 patch_addr = host1x_bo_kmap(h, offset >> PAGE_SHIFT); in host1x_syncpt_patch_offset()
128 patch_addr + (offset & ~PAGE_MASK)); in host1x_syncpt_patch_offset()
129 host1x_bo_kunmap(h, offset >> PAGE_SHIFT, patch_addr); in host1x_syncpt_patch_offset()
158 trace_host1x_syncpt_wait_check(wait->bo, wait->offset, in do_waitchks()
168 host1x_syncpt_patch_offset(sp, patch, wait->offset); in do_waitchks()
238 reloc->target.offset) >> reloc->shift; in do_relocs()
245 if (last_page != reloc->cmdbuf.offset >> PAGE_SHIFT) { in do_relocs()
[all …]
/linux-4.4.14/drivers/pinctrl/sirf/
Dpinctrl-sirf.c70 struct seq_file *s, unsigned offset) in sirfsoc_pin_dbg_show() argument
205 struct pinctrl_gpio_range *range, unsigned offset) in sirfsoc_pinmux_request_gpio() argument
217 muxval = muxval | (1 << (offset - range->pin_base)); in sirfsoc_pinmux_request_gpio()
408 sirfsoc_gpio_to_bank(struct sirfsoc_gpio_chip *sgpio, unsigned int offset) in sirfsoc_gpio_to_bank() argument
410 return &sgpio->sgpio_bank[offset / SIRFSOC_GPIO_BANK_SIZE]; in sirfsoc_gpio_to_bank()
413 static inline int sirfsoc_gpio_to_bankoff(unsigned int offset) in sirfsoc_gpio_to_bankoff() argument
415 return offset % SIRFSOC_GPIO_BANK_SIZE; in sirfsoc_gpio_to_bankoff()
424 u32 val, offset; in sirfsoc_gpio_irq_ack() local
427 offset = SIRFSOC_GPIO_CTRL(bank->id, idx); in sirfsoc_gpio_irq_ack()
431 val = readl(sgpio->chip.regs + offset); in sirfsoc_gpio_irq_ack()
[all …]
/linux-4.4.14/net/core/
Ddatagram.c355 int skb_copy_datagram_iter(const struct sk_buff *skb, int offset, in skb_copy_datagram_iter() argument
359 int i, copy = start - offset; in skb_copy_datagram_iter()
368 if (copy_to_iter(skb->data + offset, copy, to) != copy) in skb_copy_datagram_iter()
372 offset += copy; in skb_copy_datagram_iter()
380 WARN_ON(start > offset + len); in skb_copy_datagram_iter()
383 if ((copy = end - offset) > 0) { in skb_copy_datagram_iter()
387 frag->page_offset + offset - in skb_copy_datagram_iter()
392 offset += copy; in skb_copy_datagram_iter()
400 WARN_ON(start > offset + len); in skb_copy_datagram_iter()
403 if ((copy = end - offset) > 0) { in skb_copy_datagram_iter()
[all …]
/linux-4.4.14/fs/romfs/
Dsuper.c104 loff_t offset, size; in romfs_readpage() local
114 offset = page_offset(page); in romfs_readpage()
118 if (offset < size) { in romfs_readpage()
119 size -= offset; in romfs_readpage()
122 pos = ROMFS_I(inode)->i_dataoffset + offset; in romfs_readpage()
154 unsigned long offset, maxoff; in romfs_readdir() local
161 offset = ctx->pos; in romfs_readdir()
162 if (!offset) { in romfs_readdir()
163 offset = i->i_ino & ROMFH_MASK; in romfs_readdir()
164 ret = romfs_dev_read(i->i_sb, offset, &ri, ROMFH_SIZE); in romfs_readdir()
[all …]
/linux-4.4.14/net/rds/
Dinfo.c67 unsigned long offset; member
75 int offset = optname - RDS_INFO_FIRST; in rds_info_register_func() local
80 BUG_ON(rds_info_funcs[offset]); in rds_info_register_func()
81 rds_info_funcs[offset] = func; in rds_info_register_func()
88 int offset = optname - RDS_INFO_FIRST; in rds_info_deregister_func() local
93 BUG_ON(rds_info_funcs[offset] != func); in rds_info_deregister_func()
94 rds_info_funcs[offset] = NULL; in rds_info_deregister_func()
124 this = min(bytes, PAGE_SIZE - iter->offset); in rds_info_copy()
128 iter->offset, this, data, bytes); in rds_info_copy()
130 memcpy(iter->addr + iter->offset, data, this); in rds_info_copy()
[all …]
/linux-4.4.14/arch/powerpc/sysdev/
Dindirect_pci.c25 int offset, int len, u32 *val) in __indirect_read_config() argument
50 reg = ((offset & 0xf00) << 16) | (offset & 0xfc); in __indirect_read_config()
52 reg = offset & 0xfc; in __indirect_read_config()
65 cfg_data = hose->cfg_data + (offset & 3); in __indirect_read_config()
81 int offset, int len, u32 *val) in indirect_read_config() argument
85 return __indirect_read_config(hose, bus->number, devfn, offset, len, in indirect_read_config()
90 int offset, int len, u32 val) in indirect_write_config() argument
116 reg = ((offset & 0xf00) << 16) | (offset & 0xfc); in indirect_write_config()
118 reg = offset & 0xfc; in indirect_write_config()
129 if ((offset == PCI_PRIMARY_BUS) && in indirect_write_config()
[all …]
/linux-4.4.14/arch/ia64/hp/common/
Daml_nfw.c79 static void aml_nfw_read_arg(u8 *offset, u32 bit_width, u64 *value) in aml_nfw_read_arg() argument
83 *value = *(u8 *)offset; in aml_nfw_read_arg()
86 *value = *(u16 *)offset; in aml_nfw_read_arg()
89 *value = *(u32 *)offset; in aml_nfw_read_arg()
92 *value = *(u64 *)offset; in aml_nfw_read_arg()
97 static void aml_nfw_write_arg(u8 *offset, u32 bit_width, u64 *value) in aml_nfw_write_arg() argument
101 *(u8 *) offset = *value; in aml_nfw_write_arg()
104 *(u16 *) offset = *value; in aml_nfw_write_arg()
107 *(u32 *) offset = *value; in aml_nfw_write_arg()
110 *(u64 *) offset = *value; in aml_nfw_write_arg()
[all …]
/linux-4.4.14/fs/qnx4/
Dnamei.c26 struct buffer_head *bh, unsigned long *offset) in qnx4_match() argument
35 de = (struct qnx4_inode_entry *) (bh->b_data + *offset); in qnx4_match()
36 *offset += QNX4_DIR_ENTRY_SIZE; in qnx4_match()
59 unsigned long block, offset, blkofs; in qnx4_find_entry() local
64 block = offset = blkofs = 0; in qnx4_find_entry()
65 while (blkofs * QNX4_BLOCK_SIZE + offset < dir->i_size) { in qnx4_find_entry()
75 *res_dir = (struct qnx4_inode_entry *) (bh->b_data + offset); in qnx4_find_entry()
76 if (qnx4_match(len, name, bh, &offset)) { in qnx4_find_entry()
78 (offset / QNX4_DIR_ENTRY_SIZE) - 1; in qnx4_find_entry()
81 if (offset < bh->b_size) { in qnx4_find_entry()
[all …]
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-tpg.c903 unsigned offset = odd * tpg->twopixelsize[0] / 2; in gen_twopix() local
919 buf[0][offset] = r_y; in gen_twopix()
928 buf[0][offset] = r_y == 0xff ? r_y : 0; in gen_twopix()
929 buf[0][offset+1] = r_y; in gen_twopix()
933 buf[0][offset] = r_y; in gen_twopix()
934 buf[0][offset+1] = r_y == 0xff ? r_y : 0; in gen_twopix()
939 buf[0][offset] = r_y; in gen_twopix()
952 buf[0][offset] = r_y; in gen_twopix()
968 buf[0][offset] = r_y; in gen_twopix()
981 buf[0][offset] = r_y; in gen_twopix()
[all …]
/linux-4.4.14/arch/arm/mach-omap2/
Dcontrol.c147 u8 omap_ctrl_readb(u16 offset) in omap_ctrl_readb() argument
150 u8 byte_offset = offset & 0x3; in omap_ctrl_readb()
152 val = omap_ctrl_readl(offset); in omap_ctrl_readb()
157 u16 omap_ctrl_readw(u16 offset) in omap_ctrl_readw() argument
160 u16 byte_offset = offset & 0x2; in omap_ctrl_readw()
162 val = omap_ctrl_readl(offset); in omap_ctrl_readw()
167 u32 omap_ctrl_readl(u16 offset) in omap_ctrl_readl() argument
171 offset &= 0xfffc; in omap_ctrl_readl()
173 val = readl_relaxed(omap2_ctrl_base + offset); in omap_ctrl_readl()
175 regmap_read(omap2_ctrl_syscon, omap2_ctrl_offset + offset, in omap_ctrl_readl()
[all …]
/linux-4.4.14/drivers/scsi/pm8001/
Dpm8001_chips.h49 static inline void pm8001_write_32(void *addr, u32 offset, __le32 val) in pm8001_write_32() argument
51 *((__le32 *)(addr + offset)) = val; in pm8001_write_32()
55 u32 offset) in pm8001_cr32() argument
57 return readl(pm8001_ha->io_mem[bar].memvirtaddr + offset); in pm8001_cr32()
65 static inline u32 pm8001_mr32(void __iomem *addr, u32 offset) in pm8001_mr32() argument
67 return readl(addr + offset); in pm8001_mr32()
69 static inline void pm8001_mw32(void __iomem *addr, u32 offset, u32 val) in pm8001_mw32() argument
71 writel(val, addr + offset); in pm8001_mw32()

12345678910>>...30