| /linux/drivers/scsi/ |
| H A D | scsi_logging.c | 41 size_t off = 0; in sdev_format_header() local 44 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header() 47 if (WARN_ON(off >= logbuf_len)) in sdev_format_header() 48 return off; in sdev_format_header() 51 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header() 53 return off; in sdev_format_header() 61 size_t off = 0, logbuf_len; in sdev_prefix_printk() local 71 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_prefix_printk() 73 if (!WARN_ON(off >= logbuf_len)) { in sdev_prefix_printk() 75 off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); in sdev_prefix_printk() [all …]
|
| /linux/arch/mips/mm/ |
| H A D | page.c | 91 pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) in pg_addiu() argument 96 if (off > 0x7fff) { in pg_addiu() 97 uasm_i_lui(buf, GPR_T9, uasm_rel_hi(off)); in pg_addiu() 98 uasm_i_addiu(buf, GPR_T9, GPR_T9, uasm_rel_lo(off)); in pg_addiu() 100 uasm_i_addiu(buf, GPR_T9, GPR_ZERO, off); in pg_addiu() 103 if (off > 0x7fff) { in pg_addiu() 104 uasm_i_lui(buf, GPR_T9, uasm_rel_hi(off)); in pg_addiu() 105 uasm_i_addiu(buf, GPR_T9, GPR_T9, uasm_rel_lo(off)); in pg_addiu() 108 UASM_i_ADDIU(buf, reg1, reg2, off); in pg_addiu() 221 static void build_clear_store(u32 **buf, int off) in build_clear_store() argument [all …]
|
| /linux/drivers/ntb/hw/intel/ |
| H A D | ntb_hw_gen3.c | 265 ssize_t ret, off; in ndev_ntb3_debugfs_read() local 277 off = 0; in ndev_ntb3_debugfs_read() 279 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 282 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 286 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() 288 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() 295 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() 300 off += scnprintf(buf + off, buf_size - off, in ndev_ntb3_debugfs_read() [all …]
|
| H A D | ntb_hw_gen4.c | 236 ssize_t ret, off; in ndev_ntb4_debugfs_read() local 248 off = 0; in ndev_ntb4_debugfs_read() 250 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 253 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 257 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 259 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 263 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 266 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 268 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() 271 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read() [all …]
|
| H A D | ntb_hw_gen1.c | 499 ssize_t ret, off; in ndev_ntb_debugfs_read() local 512 off = 0; in ndev_ntb_debugfs_read() 514 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 517 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 522 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 524 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 528 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 532 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 534 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 538 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() [all …]
|
| /linux/arch/powerpc/boot/ |
| H A D | addnote.c | 64 #define GET_16BE(off) ((buf[off] << 8) + (buf[(off)+1])) argument 65 #define GET_32BE(off) ((GET_16BE(off) << 16U) + GET_16BE((off)+2U)) argument 66 #define GET_64BE(off) ((((unsigned long long)GET_32BE(off)) << 32ULL) + \ argument 67 ((unsigned long long)GET_32BE((off)+4ULL))) 68 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ argument 69 buf[(off) + 1] = (v) & 0xff) 70 #define PUT_32BE(off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) argument 71 #define PUT_64BE(off, v)((PUT_32BE((off), (unsigned long long)(v) >> 32L), \ argument 72 PUT_32BE((off) + 4, (unsigned long long)(v)))) 74 #define GET_16LE(off) ((buf[off]) + (buf[(off)+1] << 8)) argument [all …]
|
| /linux/drivers/rapidio/ |
| H A D | rio-sysfs.c | 118 char *buf, loff_t off, size_t count) in rio_read_config() argument 122 loff_t init_off = off; in rio_read_config() 129 if (off >= size) in rio_read_config() 131 if (off + count > size) { in rio_read_config() 132 size -= off; in rio_read_config() 138 if ((off & 1) && size) { in rio_read_config() 140 rio_read_config_8(dev, off, &val); in rio_read_config() 141 data[off - init_off] = val; in rio_read_config() 142 off++; in rio_read_config() 146 if ((off & 3) && size > 2) { in rio_read_config() [all …]
|
| /linux/arch/mips/include/asm/ |
| H A D | mips-gic.h | 30 #define GIC_ACCESSOR_RO(sz, off, name) \ argument 31 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_SHARED_OFS + off, name) \ 32 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_REDIR_OFS + off, redir_##name) 35 #define GIC_ACCESSOR_RW(sz, off, name) \ argument 36 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_SHARED_OFS + off, name) \ 37 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_REDIR_OFS + off, redir_##name) 40 #define GIC_VX_ACCESSOR_RO(sz, off, name) \ argument 41 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \ 42 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name) 45 #define GIC_VX_ACCESSOR_RW(sz, off, name) \ argument [all …]
|
| /linux/drivers/gpio/ |
| H A D | gpio-ltc4283.c | 36 static int ltc4283_pgio_get_direction(const struct ltc4283_gpio *st, unsigned int off) in ltc4283_pgio_get_direction() argument 45 val = field_get(LTC4283_PGIO_CFG_MASK(off), val); in ltc4283_pgio_get_direction() 52 static int ltc4283_gpio_get_direction(struct gpio_chip *gc, unsigned int off) in ltc4283_gpio_get_direction() argument 58 if (off >= LTC4283_PGIOX_START_NR) in ltc4283_gpio_get_direction() 59 return ltc4283_pgio_get_direction(st, off); in ltc4283_gpio_get_direction() 65 if (val & LTC4283_ADIOX_CONFIG_MASK(off)) in ltc4283_gpio_get_direction() 72 unsigned int off, bool input) in ltc4283_gpio_direction_set() argument 74 if (off >= LTC4283_PGIOX_START_NR) { in ltc4283_gpio_direction_set() 80 val = field_prep(LTC4283_PGIO_CFG_MASK(off), val); in ltc4283_gpio_direction_set() 82 LTC4283_PGIO_CFG_MASK(off), val); in ltc4283_gpio_direction_set() [all …]
|
| H A D | gpio-raspberrypi-exp.c | 54 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/tools/testing/selftests/net/mptcp/ |
| H A D | pm_nl_ctl.c | 52 int off = 0; in init_genl_req() local 57 off += NLMSG_ALIGN(sizeof(*nh)); in init_genl_req() 59 gh = (void *)(data + off); in init_genl_req() 62 off += NLMSG_ALIGN(sizeof(*gh)); in init_genl_req() 63 return off; in init_genl_req() 70 uint32_t off; in nl_error() local 90 memcpy(&off, RTA_DATA(attrs), 4); in nl_error() 91 fprintf(stderr, "netlink err off %d\n", in nl_error() 92 (int)off); in nl_error() 330 int off in resolve_mptcp_pm_netlink() 332 int off = 0; resolve_mptcp_pm_netlink() local 359 int off = 0; dsf() local 476 int off = 0; csf() local 604 int off = 0; remove_addr() local 656 int off = 0; announce_addr() local 782 int off = 0; add_addr() local 916 int off = 0; del_addr() local 1121 int off = 0; get_addr() local 1172 int off = 0; dump_addrs() local 1208 int off = 0; flush_addrs() local 1262 int off = 0; get_set_limits() local 1365 int off = 0; set_flags() local [all...] |
| /linux/drivers/acpi/ |
| H A D | ec_sys.c | 31 size_t count, loff_t *off) in acpi_ec_read_io() argument 37 loff_t init_off = *off; in acpi_ec_read_io() 40 if (*off >= size) in acpi_ec_read_io() 42 if (*off + count >= size) { in acpi_ec_read_io() 43 size -= *off; in acpi_ec_read_io() 50 err = ec_read(*off, &byte_read); in acpi_ec_read_io() 53 if (put_user(byte_read, buf + *off - init_off)) { in acpi_ec_read_io() 54 if (*off - init_off) in acpi_ec_read_io() 55 return *off - init_off; /* partial read */ in acpi_ec_read_io() 58 *off += 1; in acpi_ec_read_io() [all …]
|
| /linux/tools/include/linux/ |
| H A D | filter.h | 40 .off = 0, \ 48 .off = 0, \ 58 .off = 0, \ 66 .off = 0, \ 76 .off = 0, \ 86 .off = 0, \ 94 .off = 0, \ 104 .off = 0, \ 112 .off = 0, \ 122 .off [all...] |
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | task_local_data.bpf.h | 75 __s16 off; member 176 int i, cnt, start, off = 0; in __tld_fetch_key() local 190 return start + off; in __tld_fetch_key() 192 off += TLD_ROUND_UP(metadata[i].size, 8); in __tld_fetch_key() 193 if (off > TLD_DATA_SIZE) in __tld_fetch_key() 215 long off = (tld_obj)->key_map->key.off; \ 219 if (likely(off > 0)) { \ 220 barrier_var(off); \ 221 if (likely(off < __PAGE_SIZE - size)) \ 222 data = _data + off; \ [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | dmesg.py | 41 off = printk_ringbuffer_type.get_type()['desc_ring'].bitpos // 8 42 addr = prb_addr + off 47 off = prb_desc_ring_type.get_type()['count_bits'].bitpos // 8 48 desc_ring_count = 1 << utils.read_u32(desc_ring, off) 50 off = prb_desc_ring_type.get_type()['descs'].bitpos // 8 51 desc_addr = utils.read_ulong(desc_ring, off) 55 off = prb_desc_ring_type.get_type()['infos'].bitpos // 8 56 info_addr = utils.read_ulong(desc_ring, off) 59 off = printk_ringbuffer_type.get_type()['text_data_ring'].bitpos // 8 60 addr = prb_addr + off [all …]
|
| /linux/fs/hfs/ |
| H A D | bnode.c | 18 void hfs_bnode_read(struct hfs_bnode *node, void *buf, u32 off, u32 len) in hfs_bnode_read() argument 27 if (!is_bnode_offset_valid(node, off)) in hfs_bnode_read() 35 node->tree->node_size, off, len); in hfs_bnode_read() 39 len = check_and_correct_requested_length(node, off, len); in hfs_bnode_read() 41 off += node->page_offset; in hfs_bnode_read() 42 pagenum = off >> PAGE_SHIFT; in hfs_bnode_read() 43 off &= ~PAGE_MASK; /* compute page offset for the first page */ in hfs_bnode_read() 49 bytes_to_read = min_t(u32, len - bytes_read, PAGE_SIZE - off); in hfs_bnode_read() 51 memcpy_from_page(buf + bytes_read, page, off, bytes_to_read); in hfs_bnode_read() 54 off = 0; /* page offset only applies to the first page */ in hfs_bnode_read() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_tc_u32_parse.h | 39 int off; /* Offset from the beginning of the header to match */ member 104 { .off = 0, .val = cxgb4_fill_ipv4_tos }, 105 { .off = 4, .val = cxgb4_fill_ipv4_frag }, 106 { .off = 8, .val = cxgb4_fill_ipv4_proto }, 107 { .off = 12, .val = cxgb4_fill_ipv4_src_ip }, 108 { .off = 16, .val = cxgb4_fill_ipv4_dst_ip }, 204 { .off = 0, .val = cxgb4_fill_ipv6_tos }, 205 { .off = 4, .val = cxgb4_fill_ipv6_proto }, 206 { .off = 8, .val = cxgb4_fill_ipv6_src_ip0 }, 207 { .off = 12, .val = cxgb4_fill_ipv6_src_ip1 }, [all …]
|
| /linux/samples/bpf/ |
| H A D | bpf_insn.h | 15 .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/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_rtsym.c | 227 u8 action, u8 token, u64 off, u32 *cpp_id, u64 *addr) in nfp_rtsym_to_dest() argument 235 *addr = sym->addr + off; in nfp_rtsym_to_dest() 258 u8 action, u8 token, u64 off, void *buf, size_t len) in __nfp_rtsym_read() argument 265 if (off > sym_size) { in __nfp_rtsym_read() 267 sym->name, off, len, sym_size); in __nfp_rtsym_read() 270 len = min_t(size_t, len, sym_size - off); in __nfp_rtsym_read() 276 memcpy(buf, &tmp[off], len); in __nfp_rtsym_read() 281 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_read() 288 int nfp_rtsym_read(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_read() argument 291 return __nfp_rtsym_read(cpp, sym, NFP_CPP_ACTION_RW, 0, off, buf, len); in nfp_rtsym_read() [all …]
|
| /linux/drivers/vdpa/solidrun/ |
| H A D | snet_main.c | 320 u32 off, i, tmp; in snet_write_conf() local 345 off = snet->psnet->cfg.host_cfg_off; in snet_write_conf() 348 off += 4; in snet_write_conf() 349 snet_write32(snet, off, snet->psnet->negotiated_cfg_ver); in snet_write_conf() 350 off += 4; in snet_write_conf() 351 snet_write32(snet, off, snet->sid); in snet_write_conf() 352 off += 4; in snet_write_conf() 353 snet_write32(snet, off, snet->cfg->vq_num); in snet_write_conf() 354 off += 4; in snet_write_conf() 355 snet_write32(snet, off, snet->cfg_irq_idx); in snet_write_conf() [all …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fbcvt.c | 218 int off = 0; in fb_cvt_print_name() local 229 off += scnprintf(buf + off, size - off, "fbcvt: %dx%d@%d: CVT Name - ", in fb_cvt_print_name() 233 off += scnprintf(buf + off, size - off, in fb_cvt_print_name() 238 off += scnprintf(buf + off, size - off, "%d", pixcount); in fb_cvt_print_name() 240 off += scnprintf(buf + off, size - off, ".%03dM", pixcount_mod); in fb_cvt_print_name() 243 off += scnprintf(buf + off, size - off, "3"); in fb_cvt_print_name() 245 off += scnprintf(buf + off, size - off, "4"); in fb_cvt_print_name() 247 off += scnprintf(buf + off, size - off, "9"); in fb_cvt_print_name() 249 off += scnprintf(buf + off, size - off, "A"); in fb_cvt_print_name() 252 off += scnprintf(buf + off, size - off, "-R"); in fb_cvt_print_name()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_legacy.h | 10 #define load_byte(skb, off) __builtin_bpf_load_byte(off) argument 11 #define load_half(skb, off) __builtin_bpf_load_half(off) argument 12 #define load_word(skb, off) __builtin_bpf_load_word(off) argument 17 unsigned long long load_byte(void *skb, unsigned long long off) asm("llvm.bpf.load.byte"); 18 unsigned long long load_half(void *skb, unsigned long long off) asm("llvm.bpf.load.half"); 19 unsigned long long load_word(void *skb, unsigned long long off) asm("llvm.bpf.load.word");
|
| /linux/drivers/dma/dw-edma/ |
| H A D | dw-edma-pcie.c | 51 .off = b, \ 57 off_t off; member 100 .rg.off = 0x00001000, /* 4 Kbytes */ 138 .rg.off = SZ_4K, /* 4 Kbytes */ 151 .rg.off = SZ_4K, /* 4 Kbytes */ 168 off_t off; in dw_edma_set_chan_region_offset() local 171 off = start_off; in dw_edma_set_chan_region_offset() 176 pdata->ll_wr[i].off = off; in dw_edma_set_chan_region_offset() 178 off += ll_off_gap; in dw_edma_set_chan_region_offset() 184 pdata->ll_rd[i].off = off; in dw_edma_set_chan_region_offset() [all …]
|
| /linux/drivers/w1/slaves/ |
| H A D | w1_ds28e04.c | 60 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) in w1_f1C_fix_count() argument 62 if (off > size) in w1_f1C_fix_count() 65 if ((off + count) > size) in w1_f1C_fix_count() 66 return size - off; in w1_f1C_fix_count() 75 int off = block * W1_PAGE_SIZE; in w1_f1C_refresh_block() local 86 wrbuf[1] = off & 0xff; in w1_f1C_refresh_block() 87 wrbuf[2] = off >> 8; in w1_f1C_refresh_block() 89 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f1C_refresh_block() 92 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f1C_refresh_block() 116 loff_t off, size_t count) in eeprom_read() argument [all …]
|
| /linux/arch/s390/include/asm/ |
| H A D | boot_data.h | 27 size_t off = boot_rb_off + strlen(boot_rb + boot_rb_off) + 1; \ 29 for (; off < sizeof(boot_rb) && (len = strlen(boot_rb + off)); off += len + 1) \ 30 cb(boot_rb + off); \ 31 for (off = 0; off < boot_rb_off && (len = strlen(boot_rb + off)); off += len + 1) \ 32 cb(boot_rb + off); \
|