Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 1827) sorted by relevance

12345678910>>...74

/Linux-v4.19/arch/mips/mm/
Dpage.c105 pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) in pg_addiu() argument
108 if (off > 0x7fff) { in pg_addiu()
109 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu()
110 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu()
112 uasm_i_addiu(buf, T9, ZERO, off); in pg_addiu()
115 if (off > 0x7fff) { in pg_addiu()
116 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu()
117 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu()
120 UASM_i_ADDIU(buf, reg1, reg2, off); in pg_addiu()
233 static void build_clear_store(u32 **buf, int off) in build_clear_store() argument
[all …]
/Linux-v4.19/drivers/scsi/
Dscsi_logging.c81 size_t off = 0; in sdev_format_header() local
84 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header()
87 if (WARN_ON(off >= logbuf_len)) in sdev_format_header()
88 return off; in sdev_format_header()
91 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header()
93 return off; in sdev_format_header()
101 size_t off = 0, logbuf_len; in sdev_prefix_printk() local
111 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_prefix_printk()
113 if (!WARN_ON(off >= logbuf_len)) { in sdev_prefix_printk()
115 off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); in sdev_prefix_printk()
[all …]
/Linux-v4.19/drivers/ntb/hw/intel/
Dntb_hw_gen3.c262 ssize_t ret, off; in ndev_ntb3_debugfs_read() local
274 off = 0; in ndev_ntb3_debugfs_read()
276 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read()
279 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read()
283 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read()
285 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read()
289 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read()
292 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read()
294 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read()
297 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read()
[all …]
Dntb_hw_gen1.c500 ssize_t ret, off; in ndev_ntb_debugfs_read() local
513 off = 0; in ndev_ntb_debugfs_read()
515 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read()
518 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read()
523 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read()
525 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read()
529 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read()
533 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read()
535 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read()
539 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read()
[all …]
/Linux-v4.19/arch/ia64/kernel/
Dentry.h28 #define PT_REGS_SAVES(off) \ argument
30 .fframe IA64_PT_REGS_SIZE+16+(off); \
31 .spillsp rp, PT(CR_IIP)+16+(off); \
32 .spillsp ar.pfs, PT(CR_IFS)+16+(off); \
33 .spillsp ar.unat, PT(AR_UNAT)+16+(off); \
34 .spillsp ar.fpsr, PT(AR_FPSR)+16+(off); \
35 .spillsp pr, PT(PR)+16+(off);
37 #define PT_REGS_UNWIND_INFO(off) \ argument
39 PT_REGS_SAVES(off); \
42 #define SWITCH_STACK_SAVES(off) \ argument
[all …]
/Linux-v4.19/arch/powerpc/boot/
Daddnote.c68 #define GET_16BE(off) ((buf[off] << 8) + (buf[(off)+1])) argument
69 #define GET_32BE(off) ((GET_16BE(off) << 16U) + GET_16BE((off)+2U)) argument
70 #define GET_64BE(off) ((((unsigned long long)GET_32BE(off)) << 32ULL) + \ argument
71 ((unsigned long long)GET_32BE((off)+4ULL)))
72 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ argument
73 buf[(off) + 1] = (v) & 0xff)
74 #define PUT_32BE(off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) argument
75 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \ argument
76 PUT_32BE((off) + 4, (v))))
78 #define GET_16LE(off) ((buf[off]) + (buf[(off)+1] << 8)) argument
[all …]
/Linux-v4.19/drivers/rapidio/
Drio-sysfs.c122 char *buf, loff_t off, size_t count) in rio_read_config() argument
126 loff_t init_off = off; in rio_read_config()
133 if (off >= size) in rio_read_config()
135 if (off + count > size) { in rio_read_config()
136 size -= off; in rio_read_config()
142 if ((off & 1) && size) { in rio_read_config()
144 rio_read_config_8(dev, off, &val); in rio_read_config()
145 data[off - init_off] = val; in rio_read_config()
146 off++; in rio_read_config()
150 if ((off & 3) && size > 2) { in rio_read_config()
[all …]
/Linux-v4.19/arch/arm/plat-samsung/include/plat/
Dgpio-cfg-helpers.h24 unsigned int off, unsigned int config) in samsung_gpio_do_setcfg() argument
26 return (chip->config->set_config)(chip, off, config); in samsung_gpio_do_setcfg()
30 unsigned int off) in samsung_gpio_do_getcfg() argument
32 return (chip->config->get_config)(chip, off); in samsung_gpio_do_getcfg()
36 unsigned int off, samsung_gpio_pull_t pull) in samsung_gpio_do_setpull() argument
38 return (chip->config->set_pull)(chip, off, pull); in samsung_gpio_do_setpull()
42 unsigned int off) in samsung_gpio_do_getpull() argument
44 return chip->config->get_pull(chip, off); in samsung_gpio_do_getpull()
65 unsigned int off, samsung_gpio_pull_t pull);
77 unsigned int off, samsung_gpio_pull_t pull);
[all …]
/Linux-v4.19/drivers/acpi/
Dec_sys.c32 size_t count, loff_t *off) in acpi_ec_read_io() argument
38 loff_t init_off = *off; in acpi_ec_read_io()
41 if (*off >= size) in acpi_ec_read_io()
43 if (*off + count >= size) { in acpi_ec_read_io()
44 size -= *off; in acpi_ec_read_io()
51 err = ec_read(*off, &byte_read); in acpi_ec_read_io()
54 if (put_user(byte_read, buf + *off - init_off)) { in acpi_ec_read_io()
55 if (*off - init_off) in acpi_ec_read_io()
56 return *off - init_off; /* partial read */ in acpi_ec_read_io()
59 *off += 1; in acpi_ec_read_io()
[all …]
/Linux-v4.19/drivers/isdn/hardware/mISDN/
Diohelper.h39 static u8 Read##name##_IO(void *p, u8 off) { \
41 return inb(hw->ap.port + off); \
43 static void Write##name##_IO(void *p, u8 off, u8 val) { \
45 outb(val, hw->ap.port + off); \
47 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
49 insb(hw->ap.port + off, dp, size); \
51 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
53 outsb(hw->ap.port + off, dp, size); \
57 static u8 Read##name##_IND(void *p, u8 off) { \
59 outb(off, hw->ap.ale); \
[all …]
/Linux-v4.19/arch/mips/include/asm/
Dmips-gic.h34 #define GIC_ACCESSOR_RO(sz, off, name) \ argument
35 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_SHARED_OFS + off, name)
38 #define GIC_ACCESSOR_RW(sz, off, name) \ argument
39 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_SHARED_OFS + off, name)
42 #define GIC_VX_ACCESSOR_RO(sz, off, name) \ argument
43 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \
44 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name)
47 #define GIC_VX_ACCESSOR_RW(sz, off, name) \ argument
48 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \
49 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name)
[all …]
Dmips-cpc.h68 #define CPC_ACCESSOR_RO(sz, off, name) \ argument
69 CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_GCB_OFS + off, name) \
70 CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_COCB_OFS + off, redir_##name)
72 #define CPC_ACCESSOR_RW(sz, off, name) \ argument
73 CPS_ACCESSOR_RW(cpc, sz, MIPS_CPC_GCB_OFS + off, name) \
74 CPS_ACCESSOR_RW(cpc, sz, MIPS_CPC_COCB_OFS + off, redir_##name)
76 #define CPC_CX_ACCESSOR_RO(sz, off, name) \ argument
77 CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_CLCB_OFS + off, cl_##name) \
78 CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_COCB_OFS + off, co_##name)
80 #define CPC_CX_ACCESSOR_RW(sz, off, name) \ argument
[all …]
/Linux-v4.19/drivers/target/
Dtarget_core_fabric_lib.c72 u32 off = 8; in fc_get_pr_transport_id() local
84 ret = hex2bin(&buf[off++], &ptr[i], 1); in fc_get_pr_transport_id()
147 u32 off = 4, padding = 0; in iscsi_get_pr_transport_id() local
162 len = sprintf(&buf[off], "%s", se_nacl->initiatorname); in iscsi_get_pr_transport_id()
195 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id()
196 buf[off+len] = 0x69; off++; /* ASCII Character: "i" */ in iscsi_get_pr_transport_id()
197 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id()
198 buf[off+len] = 0x30; off++; /* ASCII Character: "0" */ in iscsi_get_pr_transport_id()
199 buf[off+len] = 0x78; off++; /* ASCII Character: "x" */ in iscsi_get_pr_transport_id()
201 buf[off+len] = pr_reg->pr_reg_isid[0]; off++; in iscsi_get_pr_transport_id()
[all …]
Dtarget_core_spc.c183 u32 unit_serial_len, off = 0; in spc_emulate_evpd_83() local
186 off = 4; in spc_emulate_evpd_83()
200 buf[off++] = 0x1; in spc_emulate_evpd_83()
203 buf[off] = 0x00; in spc_emulate_evpd_83()
206 buf[off++] |= 0x3; in spc_emulate_evpd_83()
207 off++; in spc_emulate_evpd_83()
210 buf[off++] = 0x10; in spc_emulate_evpd_83()
215 buf[off++] = (0x6 << 4); in spc_emulate_evpd_83()
220 buf[off++] = 0x01; in spc_emulate_evpd_83()
221 buf[off++] = 0x40; in spc_emulate_evpd_83()
[all …]
/Linux-v4.19/tools/include/linux/
Dfilter.h39 .off = 0, \
47 .off = 0, \
57 .off = 0, \
65 .off = 0, \
75 .off = 0, \
85 .off = 0, \
93 .off = 0, \
103 .off = 0, \
111 .off = 0, \
121 .off = 0, \
[all …]
/Linux-v4.19/samples/bpf/
Dbpf_insn.h15 .off = 0, \
23 .off = 0, \
33 .off = 0, \
41 .off = 0, \
51 .off = 0, \
59 .off = 0, \
69 .off = 0, \
77 .off = 0, \
89 .off = 0, \
95 .off = 0, \
[all …]
/Linux-v4.19/drivers/w1/slaves/
Dw1_ds2433.c51 static inline size_t w1_f23_fix_count(loff_t off, size_t count, size_t size) in w1_f23_fix_count() argument
53 if (off > size) in w1_f23_fix_count()
56 if ((off + count) > size) in w1_f23_fix_count()
57 return (size - off); in w1_f23_fix_count()
67 int off = block * W1_PAGE_SIZE; in w1_f23_refresh_block() local
78 wrbuf[1] = off & 0xff; in w1_f23_refresh_block()
79 wrbuf[2] = off >> 8; in w1_f23_refresh_block()
81 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f23_refresh_block()
84 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f23_refresh_block()
93 loff_t off, size_t count) in eeprom_read() argument
[all …]
Dw1_ds28e04.c62 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) in w1_f1C_fix_count() argument
64 if (off > size) in w1_f1C_fix_count()
67 if ((off + count) > size) in w1_f1C_fix_count()
68 return size - off; in w1_f1C_fix_count()
77 int off = block * W1_PAGE_SIZE; in w1_f1C_refresh_block() local
88 wrbuf[1] = off & 0xff; in w1_f1C_refresh_block()
89 wrbuf[2] = off >> 8; in w1_f1C_refresh_block()
91 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f1C_refresh_block()
94 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f1C_refresh_block()
118 loff_t off, size_t count) in eeprom_read() argument
[all …]
/Linux-v4.19/drivers/net/dsa/
Dbcm_sf2.h125 static inline u32 bcm_sf2_mangle_addr(struct bcm_sf2_priv *priv, u32 off) in bcm_sf2_mangle_addr() argument
127 return off << priv->core_reg_align; in bcm_sf2_mangle_addr()
131 static inline u32 name##_readl(struct bcm_sf2_priv *priv, u32 off) \
133 return readl_relaxed(priv->name + off); \
136 u32 val, u32 off) \
138 writel_relaxed(val, priv->name + off); \
147 static inline u64 name##_readq(struct bcm_sf2_priv *priv, u32 off) \
151 dir = name##_readl(priv, off); \
157 u32 off) \
161 name##_writel(priv, lower_32_bits(val), off); \
[all …]
/Linux-v4.19/drivers/ntb/hw/amd/
Dntb_hw_amd.c718 ssize_t ret, off; in ndev_debugfs_read() local
730 off = 0; in ndev_debugfs_read()
732 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
735 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
739 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
743 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
746 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
748 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
751 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
756 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
[all …]
/Linux-v4.19/drivers/gpio/
Dgpio-raspberrypi-exp.c54 static int rpi_exp_gpio_get_polarity(struct gpio_chip *gc, unsigned int off) in rpi_exp_gpio_get_polarity() argument
62 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get_polarity()
68 off, ret, get.gpio); in rpi_exp_gpio_get_polarity()
74 static int rpi_exp_gpio_dir_in(struct gpio_chip *gc, unsigned int off) in rpi_exp_gpio_dir_in() argument
82 set_in.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_dir_in()
88 ret = rpi_exp_gpio_get_polarity(gc, off); in rpi_exp_gpio_dir_in()
97 off, ret, set_in.gpio); in rpi_exp_gpio_dir_in()
103 static int rpi_exp_gpio_dir_out(struct gpio_chip *gc, unsigned int off, int val) in rpi_exp_gpio_dir_out() argument
111 set_out.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_dir_out()
117 ret = rpi_exp_gpio_get_polarity(gc, off); in rpi_exp_gpio_dir_out()
[all …]
/Linux-v4.19/net/netfilter/
Dnft_set_bitmap.c56 u32 *idx, u32 *off) in nft_bitmap_location() argument
67 *off = k % BITS_PER_BYTE; in nft_bitmap_location()
74 nft_bitmap_active(const u8 *bitmap, u32 idx, u32 off, u8 genmask) in nft_bitmap_active() argument
76 return (bitmap[idx] & (0x3 << off)) & (genmask << off); in nft_bitmap_active()
84 u32 idx, off; in nft_bitmap_lookup() local
86 nft_bitmap_location(set, key, &idx, &off); in nft_bitmap_lookup()
88 return nft_bitmap_active(priv->bitmap, idx, off, genmask); in nft_bitmap_lookup()
133 u32 idx, off; in nft_bitmap_insert() local
141 nft_bitmap_location(set, nft_set_ext_key(&new->ext), &idx, &off); in nft_bitmap_insert()
143 priv->bitmap[idx] |= (genmask << off); in nft_bitmap_insert()
[all …]
/Linux-v4.19/arch/sparc/kernel/
Djump_label.c21 s32 off = (s32)entry->target - (s32)entry->code; in arch_jump_label_transform() local
24 BUG_ON(off & 3); in arch_jump_label_transform()
27 if (off <= 0xfffff && off >= -0x100000) in arch_jump_label_transform()
33 val = 0x10680000 | (((u32) off >> 2) & 0x7ffff); in arch_jump_label_transform()
36 BUG_ON(off > 0x7fffff); in arch_jump_label_transform()
37 BUG_ON(off < -0x800000); in arch_jump_label_transform()
39 val = 0x10800000 | (((u32) off >> 2) & 0x3fffff); in arch_jump_label_transform()
/Linux-v4.19/drivers/ntb/hw/idt/
Dntb_hw_idt.c2127 ssize_t ret = 0, off = 0; in idt_dbgfs_info_read() local
2144 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2148 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2152 off += scnprintf(strbuf + off, size - off, "Peers:\n"); in idt_dbgfs_info_read()
2154 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2161 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2163 off += scnprintf(strbuf + off, size - off, "PCIe Gen %d x%d lanes\n", in idt_dbgfs_info_read()
2167 off += scnprintf(strbuf + off, size - off, "NTB Mapping Table:\n"); in idt_dbgfs_info_read()
2176 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2182 off += scnprintf(strbuf + off, size - off, "\n"); in idt_dbgfs_info_read()
[all …]
/Linux-v4.19/include/trace/events/
Dpercpu.h13 size_t align, void *base_addr, int off, void __percpu *ptr),
15 TP_ARGS(reserved, is_atomic, size, align, base_addr, off, ptr),
23 __field( int, off )
33 __entry->off = off;
40 __entry->base_addr, __entry->off, __entry->ptr)
45 TP_PROTO(void *base_addr, int off, void __percpu *ptr),
47 TP_ARGS(base_addr, off, ptr),
51 __field( int, off )
57 __entry->off = off;
62 __entry->base_addr, __entry->off, __entry->ptr)

12345678910>>...74