/Linux-v5.4/drivers/scsi/ |
D | scsi_logging.c | 38 size_t off = 0; in sdev_format_header() local 41 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header() 44 if (WARN_ON(off >= logbuf_len)) in sdev_format_header() 45 return off; in sdev_format_header() 48 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header() 50 return off; in sdev_format_header() 58 size_t off = 0, logbuf_len; in sdev_prefix_printk() local 68 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_prefix_printk() 70 if (!WARN_ON(off >= logbuf_len)) { in sdev_prefix_printk() 72 off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); in sdev_prefix_printk() [all …]
|
/Linux-v5.4/arch/mips/mm/ |
D | page.c | 105 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-v5.4/drivers/ntb/hw/intel/ |
D | ntb_hw_gen3.c | 262 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 …]
|
D | ntb_hw_gen1.c | 498 ssize_t ret, off; in ndev_ntb_debugfs_read() local 511 off = 0; in ndev_ntb_debugfs_read() 513 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 516 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 521 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() 527 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() 531 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() 537 off += scnprintf(buf + off, buf_size - off, in ndev_ntb_debugfs_read() [all …]
|
/Linux-v5.4/arch/ia64/kernel/ |
D | entry.h | 28 #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-v5.4/arch/powerpc/boot/ |
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), (v) >> 32L), \ argument 72 PUT_32BE((off) + 4, (v)))) 74 #define GET_16LE(off) ((buf[off]) + (buf[(off)+1] << 8)) argument [all …]
|
/Linux-v5.4/drivers/rapidio/ |
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-v5.4/arch/arm/plat-samsung/include/plat/ |
D | gpio-cfg-helpers.h | 24 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-v5.4/drivers/acpi/ |
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-v5.4/drivers/isdn/hardware/mISDN/ |
D | iohelper.h | 26 static u8 Read##name##_IO(void *p, u8 off) { \ 28 return inb(hw->ap.port + off); \ 30 static void Write##name##_IO(void *p, u8 off, u8 val) { \ 32 outb(val, hw->ap.port + off); \ 34 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 36 insb(hw->ap.port + off, dp, size); \ 38 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 40 outsb(hw->ap.port + off, dp, size); \ 44 static u8 Read##name##_IND(void *p, u8 off) { \ 46 outb(off, hw->ap.ale); \ [all …]
|
/Linux-v5.4/arch/mips/include/asm/ |
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) 34 #define GIC_ACCESSOR_RW(sz, off, name) \ argument 35 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_SHARED_OFS + off, name) 38 #define GIC_VX_ACCESSOR_RO(sz, off, name) \ argument 39 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \ 40 CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name) 43 #define GIC_VX_ACCESSOR_RW(sz, off, name) \ argument 44 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \ 45 CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name) [all …]
|
/Linux-v5.4/drivers/target/ |
D | target_core_fabric_lib.c | 59 u32 off = 8; in fc_get_pr_transport_id() local 71 ret = hex2bin(&buf[off++], &ptr[i], 1); in fc_get_pr_transport_id() 134 u32 off = 4, padding = 0; in iscsi_get_pr_transport_id() local 149 len = sprintf(&buf[off], "%s", se_nacl->initiatorname); in iscsi_get_pr_transport_id() 182 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id() 183 buf[off+len] = 0x69; off++; /* ASCII Character: "i" */ in iscsi_get_pr_transport_id() 184 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id() 185 buf[off+len] = 0x30; off++; /* ASCII Character: "0" */ in iscsi_get_pr_transport_id() 186 buf[off+len] = 0x78; off++; /* ASCII Character: "x" */ in iscsi_get_pr_transport_id() 188 buf[off+len] = pr_reg->pr_reg_isid[0]; off++; in iscsi_get_pr_transport_id() [all …]
|
D | target_core_spc.c | 177 u32 unit_serial_len, off = 0; in spc_emulate_evpd_83() local 180 off = 4; in spc_emulate_evpd_83() 194 buf[off++] = 0x1; in spc_emulate_evpd_83() 197 buf[off] = 0x00; in spc_emulate_evpd_83() 200 buf[off++] |= 0x3; in spc_emulate_evpd_83() 201 off++; in spc_emulate_evpd_83() 204 buf[off++] = 0x10; in spc_emulate_evpd_83() 209 buf[off++] = (0x6 << 4); in spc_emulate_evpd_83() 214 buf[off++] = 0x01; in spc_emulate_evpd_83() 215 buf[off++] = 0x40; in spc_emulate_evpd_83() [all …]
|
/Linux-v5.4/tools/include/linux/ |
D | filter.h | 39 .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-v5.4/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 277 int off; in prep_eth_rule() local 280 off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_TYPE); in prep_eth_rule() 281 *(__be16 *)(key + off) = eth_value->h_proto; in prep_eth_rule() 282 *(__be16 *)(mask + off) = eth_mask->h_proto; in prep_eth_rule() 287 off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_SA); in prep_eth_rule() 288 ether_addr_copy(key + off, eth_value->h_source); in prep_eth_rule() 289 ether_addr_copy(mask + off, eth_mask->h_source); in prep_eth_rule() 294 off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_DA); in prep_eth_rule() 295 ether_addr_copy(key + off, eth_value->h_dest); in prep_eth_rule() 296 ether_addr_copy(mask + off, eth_mask->h_dest); in prep_eth_rule() [all …]
|
/Linux-v5.4/samples/bpf/ |
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-v5.4/drivers/w1/slaves/ |
D | w1_ds2433.c | 49 static inline size_t w1_f23_fix_count(loff_t off, size_t count, size_t size) in w1_f23_fix_count() argument 51 if (off > size) in w1_f23_fix_count() 54 if ((off + count) > size) in w1_f23_fix_count() 55 return (size - off); in w1_f23_fix_count() 65 int off = block * W1_PAGE_SIZE; in w1_f23_refresh_block() local 76 wrbuf[1] = off & 0xff; in w1_f23_refresh_block() 77 wrbuf[2] = off >> 8; in w1_f23_refresh_block() 79 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f23_refresh_block() 82 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f23_refresh_block() 91 loff_t off, size_t count) in eeprom_read() argument [all …]
|
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-v5.4/drivers/net/ethernet/netronome/nfp/nfpcore/ |
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-v5.4/drivers/mtd/parsers/ |
D | afs.c | 78 static bool afs_is_v1(struct mtd_info *mtd, u_int off) in afs_is_v1() argument 81 u_int ptr = off + mtd->erasesize - 12; in afs_is_v1() 98 static bool afs_is_v2(struct mtd_info *mtd, u_int off) in afs_is_v2() argument 101 u_int ptr = off + mtd->erasesize - 8; in afs_is_v2() 120 u_int off, struct mtd_partition *part) in afs_parse_v1_partition() argument 142 ptr = off + mtd->erasesize - sizeof(fs); in afs_parse_v1_partition() 177 if (img_ptr > off) in afs_parse_v1_partition() 217 u_int off, struct mtd_partition *part) in afs_parse_v2_partition() argument 236 off, off + mtd->erasesize); in afs_parse_v2_partition() 239 ptr = off + mtd->erasesize - sizeof(footer); in afs_parse_v2_partition() [all …]
|
/Linux-v5.4/drivers/net/dsa/ |
D | bcm_sf2.h | 119 static inline u32 bcm_sf2_mangle_addr(struct bcm_sf2_priv *priv, u32 off) in bcm_sf2_mangle_addr() argument 121 return off << priv->core_reg_align; in bcm_sf2_mangle_addr() 125 static inline u32 name##_readl(struct bcm_sf2_priv *priv, u32 off) \ 127 return readl_relaxed(priv->name + off); \ 130 u32 val, u32 off) \ 132 writel_relaxed(val, priv->name + off); \ 141 static inline u64 name##_readq(struct bcm_sf2_priv *priv, u32 off) \ 145 dir = name##_readl(priv, off); \ 151 u32 off) \ 155 name##_writel(priv, lower_32_bits(val), off); \ [all …]
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | am572x-idk-common.dtsi | 21 default-state = "off"; 28 default-state = "off"; 34 default-state = "off"; 41 default-state = "off"; 48 default-state = "off"; 54 default-state = "off"; 65 default-state = "off"; 71 default-state = "off"; 77 default-state = "off"; 83 default-state = "off"; [all …]
|
D | am571x-idk.dts | 28 default-state = "off"; 35 default-state = "off"; 41 default-state = "off"; 48 default-state = "off"; 54 default-state = "off"; 60 default-state = "off"; 71 default-state = "off"; 77 default-state = "off"; 83 default-state = "off"; 89 default-state = "off"; [all …]
|
/Linux-v5.4/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.c | 718 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-v5.4/drivers/gpio/ |
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 …]
|