Home
last modified time | relevance | path

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

12345678910>>...27

/drivers/scsi/
Dscsi_logging.c39 size_t off = 0; in sdev_format_header() local
42 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header()
45 if (WARN_ON(off >= logbuf_len)) in sdev_format_header()
46 return off; in sdev_format_header()
49 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header()
51 return off; in sdev_format_header()
59 size_t off = 0, logbuf_len; in sdev_prefix_printk() local
69 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_prefix_printk()
71 if (!WARN_ON(off >= logbuf_len)) { in sdev_prefix_printk()
73 off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); in sdev_prefix_printk()
[all …]
/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_gen4.c226 ssize_t ret, off; in ndev_ntb4_debugfs_read() local
238 off = 0; in ndev_ntb4_debugfs_read()
240 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
243 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
247 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
249 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()
256 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
258 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
261 off += scnprintf(buf + off, buf_size - off, in ndev_ntb4_debugfs_read()
[all …]
Dntb_hw_gen1.c499 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 …]
/drivers/mtd/
Dmtdpstore.c27 static int mtdpstore_block_isbad(struct mtdpstore_context *cxt, loff_t off) in mtdpstore_block_isbad() argument
33 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_block_isbad()
34 blknum = div_u64(off, mtd->erasesize); in mtdpstore_block_isbad()
38 ret = mtd_block_isbad(mtd, off); in mtdpstore_block_isbad()
50 loff_t off) in mtdpstore_panic_block_isbad() argument
55 off = ALIGN_DOWN(off, mtd->erasesize); in mtdpstore_panic_block_isbad()
56 blknum = div_u64(off, mtd->erasesize); in mtdpstore_panic_block_isbad()
61 loff_t off) in mtdpstore_mark_used() argument
64 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_used()
71 loff_t off) in mtdpstore_mark_unused() argument
[all …]
/drivers/rapidio/
Drio-sysfs.c118 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 …]
/drivers/acpi/
Dec_sys.c31 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 …]
/drivers/isdn/hardware/mISDN/
Diohelper.h26 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 …]
/drivers/target/
Dtarget_core_spc.c172 int cnt, off = 0; in spc_gen_naa_6h_vendor_specific() local
178 buf[off] = 0x6 << 4; in spc_gen_naa_6h_vendor_specific()
181 buf[off++] |= (company_id >> 20) & 0xf; in spc_gen_naa_6h_vendor_specific()
182 buf[off++] = (company_id >> 12) & 0xff; in spc_gen_naa_6h_vendor_specific()
183 buf[off++] = (company_id >> 4) & 0xff; in spc_gen_naa_6h_vendor_specific()
184 buf[off] = (company_id & 0xf) << 4; in spc_gen_naa_6h_vendor_specific()
194 for (cnt = off + 13; *p && off < cnt; p++) { in spc_gen_naa_6h_vendor_specific()
202 buf[off++] |= val; in spc_gen_naa_6h_vendor_specific()
205 buf[off] = val << 4; in spc_gen_naa_6h_vendor_specific()
224 u32 unit_serial_len, off = 0; in spc_emulate_evpd_83() local
[all …]
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c323 int off; in dpaa2_eth_prep_eth_rule() local
326 off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_TYPE); in dpaa2_eth_prep_eth_rule()
327 *(__be16 *)(key + off) = eth_value->h_proto; in dpaa2_eth_prep_eth_rule()
328 *(__be16 *)(mask + off) = eth_mask->h_proto; in dpaa2_eth_prep_eth_rule()
333 off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_SA); in dpaa2_eth_prep_eth_rule()
334 ether_addr_copy(key + off, eth_value->h_source); in dpaa2_eth_prep_eth_rule()
335 ether_addr_copy(mask + off, eth_mask->h_source); in dpaa2_eth_prep_eth_rule()
340 off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_DA); in dpaa2_eth_prep_eth_rule()
341 ether_addr_copy(key + off, eth_value->h_dest); in dpaa2_eth_prep_eth_rule()
342 ether_addr_copy(mask + off, eth_mask->h_dest); in dpaa2_eth_prep_eth_rule()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_tc_u32_parse.h39 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 …]
/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_rtsym.c227 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 …]
/drivers/w1/slaves/
Dw1_ds2433.c49 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 …]
Dw1_ds28e04.c60 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 …]
Dw1_ds2408.c68 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() argument
73 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read()
74 if (count != 1 || off != 0) in state_read()
81 loff_t off, size_t count) in output_read() argument
85 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in output_read()
86 if (count != 1 || off != 0) in output_read()
94 loff_t off, size_t count) in activity_read() argument
98 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in activity_read()
99 if (count != 1 || off != 0) in activity_read()
107 loff_t off, size_t count) in cond_search_mask_read() argument
[all …]
/drivers/mtd/parsers/
Dafs.c78 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 …]
/drivers/video/fbdev/core/
Dfbcvt.c218 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()
/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c54 off, enumerator
83 {off, off, off, high, high, high, high},
84 {off, in_A, off, high, high, high, low},
85 {off, out_A, off, high, low, high, high},
86 {off, in_B, off, high, high, high, low},
87 {off, out_B, off, high, low, high, high},
88 {in_A, off, off, high, high, high, low},
89 {in_A, in_B, off, high, high, high, low},
90 {in_A, out_B, off, high, low, high, high},
91 {out_A, off, off, high, low, high, high},
[all …]
/drivers/pci/controller/mobiveil/
Dpcie-mobiveil.h131 #define OFFSET_TO_PAGE_ADDR(off) \ argument
132 ((off & PAGE_LO_MASK) | PAGED_ADDR_BNDRY)
133 #define OFFSET_TO_PAGE_IDX(off) \ argument
134 ((off >> PAGE_SEL_OFFSET_SHIFT) & PAGE_SEL_MASK)
187 u32 mobiveil_csr_read(struct mobiveil_pcie *pcie, u32 off, size_t size);
188 void mobiveil_csr_write(struct mobiveil_pcie *pcie, u32 val, u32 off,
191 static inline u32 mobiveil_csr_readl(struct mobiveil_pcie *pcie, u32 off) in mobiveil_csr_readl() argument
193 return mobiveil_csr_read(pcie, off, 0x4); in mobiveil_csr_readl()
196 static inline u16 mobiveil_csr_readw(struct mobiveil_pcie *pcie, u32 off) in mobiveil_csr_readw() argument
198 return mobiveil_csr_read(pcie, off, 0x2); in mobiveil_csr_readw()
[all …]
/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 …]
/drivers/net/dsa/
Dbcm_sf2.h128 static inline u32 bcm_sf2_mangle_addr(struct bcm_sf2_priv *priv, u32 off) in bcm_sf2_mangle_addr() argument
130 return off << priv->core_reg_align; in bcm_sf2_mangle_addr()
134 static inline u32 name##_readl(struct bcm_sf2_priv *priv, u32 off) \
136 return readl_relaxed(priv->name + off); \
139 u32 val, u32 off) \
141 writel_relaxed(val, priv->name + off); \
150 static inline u64 name##_readq(struct bcm_sf2_priv *priv, u32 off) \
154 dir = name##_readl(priv, off); \
160 u32 off) \
164 name##_writel(priv, lower_32_bits(val), off); \
[all …]
/drivers/ntb/hw/amd/
Dntb_hw_amd.c845 ssize_t ret, off; in ndev_debugfs_read() local
857 off = 0; in ndev_debugfs_read()
859 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
862 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
866 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
870 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
873 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
875 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
878 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
883 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
[all …]
/drivers/ntb/hw/idt/
Dntb_hw_idt.c2340 ssize_t ret = 0, off = 0; in idt_dbgfs_info_read() local
2356 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2360 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2364 off += scnprintf(strbuf + off, size - off, "Peers:\n"); in idt_dbgfs_info_read()
2366 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2373 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2375 off += scnprintf(strbuf + off, size - off, "PCIe Gen %d x%d lanes\n", in idt_dbgfs_info_read()
2379 off += scnprintf(strbuf + off, size - off, "NTB Mapping Table:\n"); in idt_dbgfs_info_read()
2388 off += scnprintf(strbuf + off, size - off, in idt_dbgfs_info_read()
2394 off += scnprintf(strbuf + off, size - off, "\n"); in idt_dbgfs_info_read()
[all …]
/drivers/pci/
Dpci-sysfs.c667 loff_t off, size_t count) in pci_read_config() argument
671 loff_t init_off = off; in pci_read_config()
680 if (off > size) in pci_read_config()
682 if (off + count > size) { in pci_read_config()
683 size -= off; in pci_read_config()
691 if ((off & 1) && size) { in pci_read_config()
693 pci_user_read_config_byte(dev, off, &val); in pci_read_config()
694 data[off - init_off] = val; in pci_read_config()
695 off++; in pci_read_config()
699 if ((off & 3) && size > 2) { in pci_read_config()
[all …]
/drivers/net/wireless/broadcom/b43/
Dppr.c74 u8 maxpwr, off; in b43_ppr_load_max_from_sprom() local
120 off = ((sprom->cck2gpo >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
121 rates->cck[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
127 off = ((sprom_ofdm_po >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
128 rates->ofdm[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
143 off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
144 rates->mcs_20_cdd[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
149 off = ((sprom_mcs_po[1] >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
150 rates->mcs_20_cdd[4 + i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
167 off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
[all …]

12345678910>>...27