sl 8 arch/alpha/math-emu/sfp-util.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 9 arch/alpha/math-emu/sfp-util.h ((sl) = (al) + (bl), (sh) = (ah) + (bh) + ((sl) < (al))) sl 11 arch/alpha/math-emu/sfp-util.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 12 arch/alpha/math-emu/sfp-util.h ((sl) = (al) - (bl), (sh) = (ah) - (bh) - ((al) < (bl))) sl 35 arch/arm/include/asm/thread_info.h __u32 sl; sl 97 arch/arm/kernel/kgdb.c gdb_regs[_R10] = ti->cpu_context.sl; sl 344 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t sl:7; sl 364 arch/mips/include/asm/octeon/cvmx-sriox-defs.h uint64_t sl:7; sl 112 arch/nds32/include/asm/sfp-machine.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 117 arch/nds32/include/asm/sfp-machine.h (sl) = __x; \ sl 120 arch/nds32/include/asm/sfp-machine.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 125 arch/nds32/include/asm/sfp-machine.h (sl) = __x; \ sl 19 arch/parisc/include/asm/asmregs.h sl: .reg %r29 sl 216 arch/powerpc/include/asm/sfp-machine.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 220 arch/powerpc/include/asm/sfp-machine.h : "=r" (sh), "=&r" (sl) : "r" (ah), "%r" (al), "rI" (bl));\ sl 223 arch/powerpc/include/asm/sfp-machine.h : "=r" (sh), "=&r" (sl) : "r" (ah), "%r" (al), "rI" (bl));\ sl 226 arch/powerpc/include/asm/sfp-machine.h : "=r" (sh), "=&r" (sl) \ sl 239 arch/powerpc/include/asm/sfp-machine.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 243 arch/powerpc/include/asm/sfp-machine.h : "=r" (sh), "=&r" (sl) : "r" (bh), "rI" (al), "r" (bl));\ sl 246 arch/powerpc/include/asm/sfp-machine.h : "=r" (sh), "=&r" (sl) : "r" (bh), "rI" (al), "r" (bl));\ sl 249 arch/powerpc/include/asm/sfp-machine.h : "=r" (sh), "=&r" (sl) : "r" (ah), "rI" (al), "r" (bl));\ sl 252 arch/powerpc/include/asm/sfp-machine.h : "=r" (sh), "=&r" (sl) : "r" (ah), "rI" (al), "r" (bl));\ sl 255 arch/powerpc/include/asm/sfp-machine.h : "=r" (sh), "=&r" (sl) \ sl 2258 arch/powerpc/kernel/prom_init.c int sl = prom_strlen(p); sl 2259 arch/powerpc/kernel/prom_init.c if (sl == 0) sl 2273 arch/powerpc/kernel/prom_init.c i += sl + 1; sl 205 arch/s390/kernel/perf_event.c struct service_level *sl) sl 6 arch/sh/math-emu/sfp-util.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 11 arch/sh/math-emu/sfp-util.h (sl) = __x; \ sl 14 arch/sh/math-emu/sfp-util.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 19 arch/sh/math-emu/sfp-util.h (sl) = __x; \ sl 7 arch/sparc/math-emu/sfp-util_32.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 11 arch/sparc/math-emu/sfp-util_32.h "=&r" (sl) \ sl 17 arch/sparc/math-emu/sfp-util_32.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 21 arch/sparc/math-emu/sfp-util_32.h "=&r" (sl) \ sl 15 arch/sparc/math-emu/sfp-util_64.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 22 arch/sparc/math-emu/sfp-util_64.h "=&r" (sl) \ sl 29 arch/sparc/math-emu/sfp-util_64.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 36 arch/sparc/math-emu/sfp-util_64.h "=&r" (sl) \ sl 84 arch/unicore32/include/asm/assembler.h .else; .ifc \cond, sl sl 83 arch/x86/kernel/apic/x2apic_uv_x.c u64 sl = start & gru_dist_lmask; /* Base offset bits */ sl 88 arch/x86/kernel/apic/x2apic_uv_x.c return (sl == gru_dist_base && el == gru_dist_base && sl 2956 block/bfq-iosched.c u32 sl; sl 2965 block/bfq-iosched.c sl = bfqd->bfq_slice_idle; sl 2978 block/bfq-iosched.c sl = min_t(u64, sl, BFQ_MIN_TT); sl 2980 block/bfq-iosched.c sl = max_t(u32, sl, 20ULL * NSEC_PER_MSEC); sl 2985 block/bfq-iosched.c hrtimer_start(&bfqd->idle_slice_timer, ns_to_ktime(sl), sl 495 crypto/twofish_common.c ctx->s[3][i] = mds[3][q1[q1[(a) ^ sd] ^ sh] ^ sl]; sl 503 crypto/twofish_common.c ctx->s[3][i] = mds[3][q1[q1[q0[(b) ^ sd] ^ sh] ^ sl] ^ sp]; sl 580 crypto/twofish_common.c u8 si = 0, sj = 0, sk = 0, sl = 0, sm = 0, sn = 0, so = 0, sp = 0; sl 615 crypto/twofish_common.c CALC_S (si, sj, sk, sl, 16, 0x00, 0x2D, 0x01, 0x2D); /* 01 A4 02 A4 */ sl 616 crypto/twofish_common.c CALC_S (si, sj, sk, sl, 17, 0x2D, 0xA4, 0x44, 0x8A); /* A4 56 A1 55 */ sl 617 crypto/twofish_common.c CALC_S (si, sj, sk, sl, 18, 0x8A, 0xD5, 0xBF, 0xD1); /* 55 82 FC 87 */ sl 618 crypto/twofish_common.c CALC_S (si, sj, sk, sl, 19, 0xD1, 0x7F, 0x3D, 0x99); /* 87 F3 C1 5A */ sl 619 crypto/twofish_common.c CALC_S (si, sj, sk, sl, 20, 0x99, 0x46, 0x66, 0x96); /* 5A 1E 47 58 */ sl 620 crypto/twofish_common.c CALC_S (si, sj, sk, sl, 21, 0x96, 0x3C, 0x5B, 0xED); /* 58 C6 AE DB */ sl 621 crypto/twofish_common.c CALC_S (si, sj, sk, sl, 22, 0xED, 0x37, 0x4F, 0xE0); /* DB 68 3D 9E */ sl 622 crypto/twofish_common.c CALC_S (si, sj, sk, sl, 23, 0xE0, 0xD0, 0x8C, 0x17); /* 9E E5 19 03 */ sl 24 drivers/base/regmap/regmap-w1.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 30 drivers/base/regmap/regmap-w1.c mutex_lock(&sl->master->bus_mutex); sl 31 drivers/base/regmap/regmap-w1.c if (!w1_reset_select_slave(sl)) { sl 32 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, W1_CMD_READ_DATA); sl 33 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, reg); sl 34 drivers/base/regmap/regmap-w1.c *val = w1_read_8(sl->master); sl 38 drivers/base/regmap/regmap-w1.c mutex_unlock(&sl->master->bus_mutex); sl 46 drivers/base/regmap/regmap-w1.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 52 drivers/base/regmap/regmap-w1.c mutex_lock(&sl->master->bus_mutex); sl 53 drivers/base/regmap/regmap-w1.c if (!w1_reset_select_slave(sl)) { sl 54 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, W1_CMD_WRITE_DATA); sl 55 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, reg); sl 56 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, val); sl 60 drivers/base/regmap/regmap-w1.c mutex_unlock(&sl->master->bus_mutex); sl 73 drivers/base/regmap/regmap-w1.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 79 drivers/base/regmap/regmap-w1.c mutex_lock(&sl->master->bus_mutex); sl 80 drivers/base/regmap/regmap-w1.c if (!w1_reset_select_slave(sl)) { sl 81 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, W1_CMD_READ_DATA); sl 82 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, reg); sl 83 drivers/base/regmap/regmap-w1.c *val = w1_read_8(sl->master); sl 84 drivers/base/regmap/regmap-w1.c *val |= w1_read_8(sl->master)<<8; sl 88 drivers/base/regmap/regmap-w1.c mutex_unlock(&sl->master->bus_mutex); sl 97 drivers/base/regmap/regmap-w1.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 103 drivers/base/regmap/regmap-w1.c mutex_lock(&sl->master->bus_mutex); sl 104 drivers/base/regmap/regmap-w1.c if (!w1_reset_select_slave(sl)) { sl 105 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, W1_CMD_WRITE_DATA); sl 106 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, reg); sl 107 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, val & 0x00FF); sl 108 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, val>>8 & 0x00FF); sl 112 drivers/base/regmap/regmap-w1.c mutex_unlock(&sl->master->bus_mutex); sl 125 drivers/base/regmap/regmap-w1.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 131 drivers/base/regmap/regmap-w1.c mutex_lock(&sl->master->bus_mutex); sl 132 drivers/base/regmap/regmap-w1.c if (!w1_reset_select_slave(sl)) { sl 133 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, W1_CMD_READ_DATA); sl 134 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, reg & 0x00FF); sl 135 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, reg>>8 & 0x00FF); sl 136 drivers/base/regmap/regmap-w1.c *val = w1_read_8(sl->master); sl 137 drivers/base/regmap/regmap-w1.c *val |= w1_read_8(sl->master)<<8; sl 141 drivers/base/regmap/regmap-w1.c mutex_unlock(&sl->master->bus_mutex); sl 150 drivers/base/regmap/regmap-w1.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 156 drivers/base/regmap/regmap-w1.c mutex_lock(&sl->master->bus_mutex); sl 157 drivers/base/regmap/regmap-w1.c if (!w1_reset_select_slave(sl)) { sl 158 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, W1_CMD_WRITE_DATA); sl 159 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, reg & 0x00FF); sl 160 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, reg>>8 & 0x00FF); sl 161 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, val & 0x00FF); sl 162 drivers/base/regmap/regmap-w1.c w1_write_8(sl->master, val>>8 & 0x00FF); sl 166 drivers/base/regmap/regmap-w1.c mutex_unlock(&sl->master->bus_mutex); sl 1532 drivers/block/aoe/aoecmd.c struct sk_buff *sl; sl 1536 drivers/block/aoe/aoecmd.c sl = NULL; sl 1594 drivers/block/aoe/aoecmd.c sl = aoecmd_ata_id(d); sl 1599 drivers/block/aoe/aoecmd.c if (sl) { sl 1601 drivers/block/aoe/aoecmd.c __skb_queue_tail(&queue, sl); sl 1477 drivers/block/drbd/drbd_bitmap.c unsigned long sl = ALIGN(s,BITS_PER_LONG); sl 1498 drivers/block/drbd/drbd_bitmap.c if (sl) sl 1499 drivers/block/drbd/drbd_bitmap.c __bm_change_bits_to(device, s, sl-1, 1); sl 1501 drivers/block/drbd/drbd_bitmap.c first_page = sl >> (3 + PAGE_SHIFT); sl 1506 drivers/block/drbd/drbd_bitmap.c first_word = MLPP(sl >> LN2_BPL); sl 2376 drivers/crypto/atmel-aes.c struct at_dma_slave *sl = slave; sl 2378 drivers/crypto/atmel-aes.c if (sl && sl->dma_dev == chan->device->dev) { sl 2379 drivers/crypto/atmel-aes.c chan->private = sl; sl 2608 drivers/crypto/atmel-sha.c struct at_dma_slave *sl = slave; sl 2610 drivers/crypto/atmel-sha.c if (sl && sl->dma_dev == chan->device->dev) { sl 2611 drivers/crypto/atmel-sha.c chan->private = sl; sl 707 drivers/crypto/atmel-tdes.c struct at_dma_slave *sl = slave; sl 709 drivers/crypto/atmel-tdes.c if (sl && sl->dma_dev == chan->device->dev) { sl 710 drivers/crypto/atmel-tdes.c chan->private = sl; sl 164 drivers/crypto/nx/nx-842-pseries.c struct nx842_scatterlist *sl) sl 166 drivers/crypto/nx/nx-842-pseries.c return sl->entry_nr * sizeof(struct nx842_slentry); sl 170 drivers/crypto/nx/nx-842-pseries.c struct nx842_scatterlist *sl) sl 175 drivers/crypto/nx/nx-842-pseries.c sl->entry_nr = 0; sl 177 drivers/crypto/nx/nx-842-pseries.c entry = sl->entries; sl 187 drivers/crypto/nx/nx-842-pseries.c sl->entry_nr++; sl 252 drivers/crypto/qat/qat_common/icp_qat_fw_la.h } sl; sl 55 drivers/dma-buf/selftest.c char *sl; sl 65 drivers/dma-buf/selftest.c sl = strchr(tok, '/'); sl 66 drivers/dma-buf/selftest.c if (sl) { sl 67 drivers/dma-buf/selftest.c *sl++ = '\0'; sl 73 drivers/dma-buf/selftest.c tok = sl; sl 198 drivers/dma/ipu/ipu_idmac.c u32 sl:14; sl 246 drivers/dma/ipu/ipu_idmac.c u32 sl:14; sl 292 drivers/dma/ipu/ipu_idmac.c params->pp.sl = stride - 1; sl 210 drivers/gpu/drm/i915/selftests/i915_selftest.c char *sl; sl 220 drivers/gpu/drm/i915/selftests/i915_selftest.c sl = strchr(tok, '/'); sl 221 drivers/gpu/drm/i915/selftests/i915_selftest.c if (sl) { sl 222 drivers/gpu/drm/i915/selftests/i915_selftest.c *sl++ = '\0'; sl 228 drivers/gpu/drm/i915/selftests/i915_selftest.c tok = sl; sl 1332 drivers/infiniband/core/cm.c cm_req_set_primary_sl(req_msg, pri_path->sl); sl 1367 drivers/infiniband/core/cm.c cm_req_set_alt_sl(req_msg, alt_path->sl); sl 1592 drivers/infiniband/core/cm.c primary_path->sl = cm_req_get_primary_sl(req_msg); sl 1613 drivers/infiniband/core/cm.c alt_path->sl = cm_req_get_alt_sl(req_msg); sl 1913 drivers/infiniband/core/cm.c cm_req_set_primary_sl(req_msg, wc->sl); sl 1923 drivers/infiniband/core/cm.c cm_req_set_alt_sl(req_msg, wc->sl); sl 3113 drivers/infiniband/core/cm.c cm_lap_set_sl(lap_msg, alternate_path->sl); sl 3205 drivers/infiniband/core/cm.c path->sl = cm_lap_get_sl(lap_msg); sl 315 drivers/infiniband/core/cm_msgs.h static inline void cm_req_set_primary_sl(struct cm_req_msg *req_msg, u8 sl) sl 318 drivers/infiniband/core/cm_msgs.h (sl << 4)); sl 377 drivers/infiniband/core/cm_msgs.h static inline void cm_req_set_alt_sl(struct cm_req_msg *req_msg, u8 sl) sl 380 drivers/infiniband/core/cm_msgs.h (sl << 4)); sl 747 drivers/infiniband/core/cm_msgs.h static inline void cm_lap_set_sl(struct cm_lap_msg *lap_msg, u8 sl) sl 749 drivers/infiniband/core/cm_msgs.h lap_msg->offset62 = (sl << 4) | (lap_msg->offset62 & 0x0F); sl 2893 drivers/infiniband/core/cma.c route->path_rec->sl = iboe_tos_to_sl(ndev, tos); sl 71 drivers/infiniband/core/mad.c entry->sl = attr.sl; sl 772 drivers/infiniband/core/mad.c wc->sl = 0; sl 314 drivers/infiniband/core/multicast.c if (comp_mask & IB_SA_MCMEMBER_REC_SL && src->sl != dst->sl) sl 759 drivers/infiniband/core/multicast.c rdma_ah_set_sl(ah_attr, rec->sl); sl 253 drivers/infiniband/core/sa_query.c { PATH_REC_FIELD(sl), sl 383 drivers/infiniband/core/sa_query.c { OPA_PATH_REC_FIELD(sl), sl 475 drivers/infiniband/core/sa_query.c { MCMEMBER_REC_FIELD(sl), sl 1267 drivers/infiniband/core/sa_query.c rdma_ah_set_sl(ah_attr, rec->sl); sl 257 drivers/infiniband/core/user_mad.c packet->mad.hdr.sl = mad_recv_wc->wc->sl; sl 535 drivers/infiniband/core/user_mad.c rdma_ah_set_sl(&ah_attr, packet->mad.hdr.sl); sl 1158 drivers/infiniband/core/uverbs_cmd.c tmp.sl = wc->sl; sl 1631 drivers/infiniband/core/uverbs_cmd.c uverb_attr->sl = rdma_ah_get_sl(rdma_attr); sl 1753 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_sl(rdma_attr, uverb_attr->sl); sl 2424 drivers/infiniband/core/uverbs_cmd.c rdma_ah_set_sl(&attr, cmd.attr.sl); sl 77 drivers/infiniband/core/uverbs_marshall.c dst->sl = rdma_ah_get_sl(src); sl 151 drivers/infiniband/core/uverbs_marshall.c dst->sl = src->sl; sl 203 drivers/infiniband/core/uverbs_marshall.c dst->sl = src->sl; sl 795 drivers/infiniband/core/verbs.c rdma_ah_set_sl(ah_attr, wc->sl); sl 685 drivers/infiniband/hw/bnxt_re/ib_verbs.c ah->qplib_ah.sl = rdma_ah_get_sl(ah_attr); sl 727 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_sl(ah_attr, ah->qplib_ah.sl); sl 920 drivers/infiniband/hw/bnxt_re/ib_verbs.c ah->qplib_ah.sl = 0; sl 1631 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.ah.sl = rdma_ah_get_sl(&qp_attr->ah_attr); sl 1806 drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_ah_set_sl(&qp_attr->ah_attr, qplib_qp->ah.sl); sl 2977 drivers/infiniband/hw/bnxt_re/ib_verbs.c u16 *vid, u8 *sl) sl 2992 drivers/infiniband/hw/bnxt_re/ib_verbs.c *sl = (metadata & sl 3028 drivers/infiniband/hw/bnxt_re/ib_verbs.c u8 sl; sl 3043 drivers/infiniband/hw/bnxt_re/ib_verbs.c if (bnxt_re_is_vlan_pkt(orig_cqe, &vlan_id, &sl)) { sl 3045 drivers/infiniband/hw/bnxt_re/ib_verbs.c wc->sl = sl; sl 102 drivers/infiniband/hw/bnxt_re/qplib_sp.h u8 sl; sl 367 drivers/infiniband/hw/hfi1/driver.c u8 svc_type, sl, sc5; sl 370 drivers/infiniband/hw/hfi1/driver.c sl = ibp->sc_to_sl[sc5]; sl 396 drivers/infiniband/hw/hfi1/driver.c process_becn(ppd, sl, rlid, lqpn, rqpn, svc_type); sl 528 drivers/infiniband/hw/hfi1/driver.c u8 sl = ibp->sc_to_sl[sc]; sl 530 drivers/infiniband/hw/hfi1/driver.c process_becn(ppd, sl, rlid, lqpn, rqpn, svc_type); sl 1483 drivers/infiniband/hw/hfi1/driver.c packet->sl = ib_get_sl(hdr); sl 1565 drivers/infiniband/hw/hfi1/driver.c packet->sl = ibp->sc_to_sl[packet->sc]; sl 391 drivers/infiniband/hw/hfi1/hfi.h u8 sl; sl 738 drivers/infiniband/hw/hfi1/hfi.h int sl; /* read-only */ sl 1615 drivers/infiniband/hw/hfi1/hfi.h void process_becn(struct hfi1_pportdata *ppd, u8 sl, u32 rlid, u32 lqpn, sl 593 drivers/infiniband/hw/hfi1/init.c int sl; sl 601 drivers/infiniband/hw/hfi1/init.c sl = cca_timer->sl; sl 618 drivers/infiniband/hw/hfi1/init.c ccti_min = cc_state->cong_setting.entries[sl].ccti_min; sl 619 drivers/infiniband/hw/hfi1/init.c ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; sl 700 drivers/infiniband/hw/hfi1/init.c ppd->cca_timer[i].sl = i; sl 451 drivers/infiniband/hw/hfi1/mad.c void hfi1_bad_pkey(struct hfi1_ibport *ibp, u32 key, u32 sl, sl 469 drivers/infiniband/hw/hfi1/mad.c trap->data.ntc_257_258.sl = sl << 3; sl 3905 drivers/infiniband/hw/hfi1/mad.c ((cce->sl & 0x1f) << 3) | (cce->svc_type & 0x7); sl 142 drivers/infiniband/hw/hfi1/mad.h u8 sl; /* SL: high 5 bits */ sl 155 drivers/infiniband/hw/hfi1/mad.h u8 sl; /* SL: high 5 bits */ sl 248 drivers/infiniband/hw/hfi1/mad.h u8 sl; sl 938 drivers/infiniband/hw/hfi1/qp.c u8 sl = (u8)v; sl 943 drivers/infiniband/hw/hfi1/qp.c rdma_ah_get_sl(&qp->remote_ah_attr) != sl || sl 971 drivers/infiniband/hw/hfi1/qp.c void hfi1_error_port_qps(struct hfi1_ibport *ibp, u8 sl) sl 976 drivers/infiniband/hw/hfi1/qp.c rvt_qp_iter(&dev->rdi, sl, hfi1_qp_iter_cb); sl 161 drivers/infiniband/hw/hfi1/qp.h void hfi1_error_port_qps(struct hfi1_ibport *ibp, u8 sl); sl 1898 drivers/infiniband/hw/hfi1/rc.c u8 sl = rdma_ah_get_sl(&qp->remote_ah_attr); sl 1902 drivers/infiniband/hw/hfi1/rc.c sc5 = ibp->sl_to_sc[sl]; sl 2714 drivers/infiniband/hw/hfi1/rc.c static void log_cca_event(struct hfi1_pportdata *ppd, u8 sl, u32 rlid, sl 2720 drivers/infiniband/hw/hfi1/rc.c if (sl >= OPA_MAX_SLS) sl 2725 drivers/infiniband/hw/hfi1/rc.c ppd->threshold_cong_event_map[sl / 8] |= 1 << (sl % 8); sl 2733 drivers/infiniband/hw/hfi1/rc.c cc_event->sl = sl; sl 2742 drivers/infiniband/hw/hfi1/rc.c void process_becn(struct hfi1_pportdata *ppd, u8 sl, u32 rlid, u32 lqpn, sl 2751 drivers/infiniband/hw/hfi1/rc.c if (sl >= OPA_MAX_SLS) sl 2765 drivers/infiniband/hw/hfi1/rc.c ccti_incr = cc_state->cong_setting.entries[sl].ccti_increase; sl 2766 drivers/infiniband/hw/hfi1/rc.c ccti_timer = cc_state->cong_setting.entries[sl].ccti_timer; sl 2768 drivers/infiniband/hw/hfi1/rc.c cc_state->cong_setting.entries[sl].trigger_threshold; sl 2772 drivers/infiniband/hw/hfi1/rc.c cca_timer = &ppd->cca_timer[sl]; sl 2794 drivers/infiniband/hw/hfi1/rc.c log_cca_event(ppd, sl, rlid, lqpn, rqpn, svc_type); sl 3001 drivers/infiniband/hw/hfi1/rc.c wc.sl = rdma_ah_get_sl(&qp->remote_ah_attr); sl 77 drivers/infiniband/hw/hfi1/ruc.c u32 sl = packet->sl; sl 106 drivers/infiniband/hw/hfi1/ruc.c hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, sl 143 drivers/infiniband/hw/hfi1/ruc.c hfi1_bad_pkey(ibp, pkey, sl, 0, qp->ibqp.qp_num, sl 318 drivers/infiniband/hw/hfi1/sysfs.c .sl = N \ sl 323 drivers/infiniband/hw/hfi1/sysfs.c int sl; sl 404 drivers/infiniband/hw/hfi1/sysfs.c return sprintf(buf, "%u\n", ibp->sl_to_sc[sattr->sl]); sl 191 drivers/infiniband/hw/hfi1/trace.c u8 *lnh, u8 *lver, u8 *sl, u8 *sc, sl 196 drivers/infiniband/hw/hfi1/trace.c *sl = ib_get_sl(hdr); sl 229 drivers/infiniband/hw/hfi1/trace.c u8 rc, u8 sc, u8 sl, u16 entropy, sl 242 drivers/infiniband/hw/hfi1/trace.c lnh, lnh_name, lver, sl); sl 120 drivers/infiniband/hw/hfi1/trace_ibhdrs.h u8 *lnh, u8 *lver, u8 *sl, u8 *sc, sl 135 drivers/infiniband/hw/hfi1/trace_ibhdrs.h u8 rc, u8 sc, u8 sl, u16 entropy, sl 177 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __field(u8, sl) sl 233 drivers/infiniband/hw/hfi1/trace_ibhdrs.h &__entry->sl, sl 276 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __entry->sl, sl 336 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __field(u8, sl) sl 398 drivers/infiniband/hw/hfi1/trace_ibhdrs.h &__entry->sl, sl 440 drivers/infiniband/hw/hfi1/trace_ibhdrs.h __entry->sl, sl 472 drivers/infiniband/hw/hfi1/uc.c wc.sl = rdma_ah_get_sl(&qp->remote_ah_attr); sl 254 drivers/infiniband/hw/hfi1/ud.c wc.sl = rdma_ah_get_sl(ah_attr); sl 701 drivers/infiniband/hw/hfi1/ud.c u8 sl = ibp->sc_to_sl[sc5]; sl 726 drivers/infiniband/hw/hfi1/ud.c lrh0 |= (sc5 & 0xf) << 12 | sl << 4; sl 869 drivers/infiniband/hw/hfi1/ud.c u8 sl = packet->sl; sl 928 drivers/infiniband/hw/hfi1/ud.c pkey, sl, sl 1055 drivers/infiniband/hw/hfi1/ud.c wc.sl = sl_from_sc; sl 1527 drivers/infiniband/hw/hfi1/verbs.c u8 sl; sl 1538 drivers/infiniband/hw/hfi1/verbs.c sl = rdma_ah_get_sl(ah_attr); sl 1539 drivers/infiniband/hw/hfi1/verbs.c if (sl >= ARRAY_SIZE(ibp->sl_to_sc)) sl 1541 drivers/infiniband/hw/hfi1/verbs.c sl = array_index_nospec(sl, ARRAY_SIZE(ibp->sl_to_sc)); sl 1543 drivers/infiniband/hw/hfi1/verbs.c sc5 = ibp->sl_to_sc[sl]; sl 1982 drivers/infiniband/hw/hfi1/verbs.c u8 sl, sc5, svc_type; sl 2006 drivers/infiniband/hw/hfi1/verbs.c sl = ibp->sc_to_sl[sc5]; sl 2009 drivers/infiniband/hw/hfi1/verbs.c process_becn(ppd, sl, rlid, lqpn, rqpn, svc_type); sl 326 drivers/infiniband/hw/hfi1/verbs.h void hfi1_bad_pkey(struct hfi1_ibport *ibp, u32 key, u32 sl, sl 80 drivers/infiniband/hw/hns/hns_roce_ah.c ah->av.sl = rdma_ah_get_sl(ah_attr); sl 91 drivers/infiniband/hw/hns/hns_roce_ah.c rdma_ah_set_sl(ah_attr, ah->av.sl); sl 581 drivers/infiniband/hw/hns/hns_roce_device.h u8 sl; sl 677 drivers/infiniband/hw/hns/hns_roce_device.h u8 sl; sl 183 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ah->av.sl); sl 327 drivers/infiniband/hw/hns/hns_roce_hw_v1.c SQ_DOORBELL_U32_4_SL_S, qp->sl); sl 718 drivers/infiniband/hw/hns/hns_roce_hw_v1.c u8 sl; sl 783 drivers/infiniband/hw/hns/hns_roce_hw_v1.c sl = i / HNS_ROCE_MAX_PORTS; sl 815 drivers/infiniband/hw/hns/hns_roce_hw_v1.c rdma_ah_set_sl(&attr.ah_attr, sl); sl 2371 drivers/infiniband/hw/hns/hns_roce_hw_v1.c wc->sl = (u8)roce_get_field(cqe->cqe_byte_20, CQE_BYTE_20_SL_M, sl 3069 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); sl 3182 drivers/infiniband/hw/hns/hns_roce_hw_v1.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); sl 417 drivers/infiniband/hw/hns/hns_roce_hw_v2.c ah->av.sl); sl 592 drivers/infiniband/hw/hns/hns_roce_hw_v2.c V2_DB_PARAMETER_SL_S, qp->sl); sl 2934 drivers/infiniband/hw/hns/hns_roce_hw_v2.c wc->sl = (u8)roce_get_field(cqe->byte_32, V2_CQE_BYTE_32_SL_M, sl 4153 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_qp->sl = rdma_ah_get_sl(&attr->ah_attr); sl 608 drivers/infiniband/hw/mlx4/cq.c wc->sl = (u8) (be16_to_cpu(hdr->tun.sl_vid) >> 12); sl 861 drivers/infiniband/hw/mlx4/cq.c wc->sl = be16_to_cpu(cqe->sl_vid) >> 13; sl 873 drivers/infiniband/hw/mlx4/cq.c wc->sl = be16_to_cpu(cqe->sl_vid) >> 12; sl 149 drivers/infiniband/hw/mlx4/mad.c u8 sl; sl 162 drivers/infiniband/hw/mlx4/mad.c ext_info->sl = in_wc->sl << 4; sl 189 drivers/infiniband/hw/mlx4/mad.c static void update_sm_ah(struct mlx4_ib_dev *dev, u8 port_num, u16 lid, u8 sl) sl 201 drivers/infiniband/hw/mlx4/mad.c rdma_ah_set_sl(&ah_attr, sl); sl 627 drivers/infiniband/hw/mlx4/mad.c tun_mad->hdr.sl_vid = cpu_to_be16(((u16)(wc->sl)) << 12); sl 1203 drivers/infiniband/hw/mlx4/mad.c u8 sl = eqe->event.port_mgmt_change.params.port_info.mstr_sm_sl & 0xf; sl 1204 drivers/infiniband/hw/mlx4/mad.c update_sm_ah(dev, port, lid, sl); sl 1337 drivers/infiniband/hw/mlx4/main.c #define LAST_IB_FIELD sl sl 244 drivers/infiniband/hw/mlx4/mcg.c wc.sl = 0; sl 2996 drivers/infiniband/hw/mlx4/qp.c static u8 sl_to_vl(struct mlx4_ib_dev *dev, u8 sl, int port_num) sl 3001 drivers/infiniband/hw/mlx4/qp.c if (sl > 15) sl 3004 drivers/infiniband/hw/mlx4/qp.c vl = tmp_vltab.sl8[sl >> 1]; sl 3005 drivers/infiniband/hw/mlx4/qp.c if (sl & 1) sl 239 drivers/infiniband/hw/mlx5/cq.c wc->sl = (be32_to_cpu(cqe->flags_rqpn) >> 24) & 0xf; sl 248 drivers/infiniband/hw/mlx5/cq.c wc->sl = (be16_to_cpu(cqe->vlan_info) >> 13) & 0x7; sl 251 drivers/infiniband/hw/mlx5/cq.c wc->sl = 0; sl 2610 drivers/infiniband/hw/mlx5/main.c #define LAST_IB_FIELD sl sl 2854 drivers/infiniband/hw/mlx5/qp.c struct mlx5_ib_sq *sq, u8 sl, sl 2871 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(tisc, tisc, prio, ((sl & 0x7) << 1)); sl 2917 drivers/infiniband/hw/mlx5/qp.c u8 sl = rdma_ah_get_sl(ah); sl 2944 drivers/infiniband/hw/mlx5/qp.c path->dci_cfi_prio_sl = (sl & 0x7) << 4; sl 2956 drivers/infiniband/hw/mlx5/qp.c path->dci_cfi_prio_sl = sl & 0xf; sl 2980 drivers/infiniband/hw/mlx5/qp.c sl & 0xf, qp->ibqp.pd); sl 1911 drivers/infiniband/hw/mthca/mthca_cmd.c val = in_wc->sl << 4; sl 631 drivers/infiniband/hw/mthca/mthca_cq.c entry->sl = cqe->sl_ipok >> 4; sl 76 drivers/infiniband/hw/mthca/mthca_mad.c u8 port_num, u16 lid, u8 sl) sl 88 drivers/infiniband/hw/mthca/mthca_mad.c rdma_ah_set_sl(&ah_attr, sl); sl 290 drivers/infiniband/hw/ocrdma/ocrdma.h u8 sl; /* service level */ sl 110 drivers/infiniband/hw/ocrdma/ocrdma_ah.c vlan_tag |= (dev->sl & 0x07) << OCRDMA_VID_PCP_SHIFT; sl 2565 drivers/infiniband/hw/ocrdma/ocrdma_hw.c (dev->sl & 0x07) << OCRDMA_QP_PARAMS_SL_SHIFT; sl 3035 drivers/infiniband/hw/ocrdma/ocrdma_hw.c dev->sl = srvc_lvl; sl 703 drivers/infiniband/hw/qedr/qedr_roce_cm.c wc[i].sl = (qp->rqe_wr_id[qp->rq.cons].vlan & sl 139 drivers/infiniband/hw/qib/qib_mad.c void qib_bad_pkey(struct qib_ibport *ibp, u32 key, u32 sl, sl 158 drivers/infiniband/hw/qib/qib_mad.c data.details.ntc_257_258.sl_qp1 = cpu_to_be32((sl << 28) | qp1); sl 1881 drivers/infiniband/hw/qib/qib_rc.c wc.sl = rdma_ah_get_sl(&qp->remote_ah_attr); sl 341 drivers/infiniband/hw/qib/qib_sysfs.c .sl = N \ sl 346 drivers/infiniband/hw/qib/qib_sysfs.c int sl; sl 395 drivers/infiniband/hw/qib/qib_sysfs.c return sprintf(buf, "%u\n", qibp->sl_to_vl[sattr->sl]); sl 396 drivers/infiniband/hw/qib/qib_uc.c wc.sl = rdma_ah_get_sl(&qp->remote_ah_attr); sl 210 drivers/infiniband/hw/qib/qib_ud.c wc.sl = rdma_ah_get_sl(ah_attr); sl 568 drivers/infiniband/hw/qib/qib_ud.c wc.sl = (be16_to_cpu(hdr->lrh[0]) >> 4) & 0xF; sl 241 drivers/infiniband/hw/qib/qib_verbs.h void qib_bad_pkey(struct qib_ibport *ibp, u32 key, u32 sl, sl 362 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cq.c wc->sl = cqe->sl; sl 281 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c rdma_ah_set_sl(dst, src->sl); sl 294 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c dst->sl = rdma_ah_get_sl(src); sl 231 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h u8 sl; sl 133 drivers/infiniband/sw/rdmavt/cq.c uqueue[head].sl = entry->sl; sl 3184 drivers/infiniband/sw/rdmavt/qp.c wc.sl = rdma_ah_get_sl(&qp->remote_ah_attr); sl 1456 drivers/infiniband/sw/siw/siw_verbs.c int siw_map_mr_sg(struct ib_mr *base_mr, struct scatterlist *sl, int num_sle, sl 1478 drivers/infiniband/sw/siw/siw_verbs.c for_each_sg(sl, slp, num_sle, i) { sl 1507 drivers/infiniband/sw/siw/siw_verbs.c rv = ib_sg_to_pages(base_mr, sl, num_sle, sg_off, siw_set_pbl_page); sl 74 drivers/infiniband/sw/siw/siw_verbs.h int siw_map_mr_sg(struct ib_mr *base_mr, struct scatterlist *sl, int num_sle, sl 223 drivers/infiniband/ulp/ipoib/ipoib_fs.c path.pathrec.sl, sl 801 drivers/infiniband/ulp/ipoib/ipoib_main.c pathrec->sl); sl 239 drivers/infiniband/ulp/ipoib/ipoib_multicast.c priv->broadcast->mcmember.sl = mcmember->sl; sl 281 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rdma_ah_set_sl(&av, mcast->mcmember.sl); sl 304 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.sl); sl 526 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.sl = priv->broadcast->mcmember.sl; sl 891 drivers/iommu/io-pgtable-arm.c u64 reg, sl; sl 922 drivers/iommu/io-pgtable-arm.c sl = ARM_LPAE_START_LVL(data); sl 927 drivers/iommu/io-pgtable-arm.c sl++; /* SL0 format is different for 4K granule size */ sl 964 drivers/iommu/io-pgtable-arm.c reg |= (~sl & ARM_LPAE_TCR_SL0_MASK) << ARM_LPAE_TCR_SL0_SHIFT; sl 59 drivers/isdn/mISDN/stack.c send_socklist(struct mISDN_sock_list *sl, struct sk_buff *skb) sl 64 drivers/isdn/mISDN/stack.c read_lock(&sl->lock); sl 65 drivers/isdn/mISDN/stack.c sk_for_each(sk, &sl->head) { sl 77 drivers/isdn/mISDN/stack.c read_unlock(&sl->lock); sl 3180 drivers/md/dm-integrity.c static void dm_integrity_free_journal_scatterlist(struct dm_integrity_c *ic, struct scatterlist **sl) sl 3184 drivers/md/dm-integrity.c kvfree(sl[i]); sl 3185 drivers/md/dm-integrity.c kvfree(sl); sl 3191 drivers/md/dm-integrity.c struct scatterlist **sl; sl 3194 drivers/md/dm-integrity.c sl = kvmalloc_array(ic->journal_sections, sl 3197 drivers/md/dm-integrity.c if (!sl) sl 3216 drivers/md/dm-integrity.c dm_integrity_free_journal_scatterlist(ic, sl); sl 3231 drivers/md/dm-integrity.c sl[i] = s; sl 3234 drivers/md/dm-integrity.c return sl; sl 400 drivers/md/dm-snap.c struct list_head *sl = &_origins[origin_hash(o->bdev)]; sl 401 drivers/md/dm-snap.c list_add_tail(&o->hash_list, sl); sl 419 drivers/md/dm-snap.c struct list_head *sl = &_dm_origins[origin_hash(o->dev->bdev)]; sl 420 drivers/md/dm-snap.c list_add_tail(&o->hash_list, sl); sl 2366 drivers/md/raid10.c int sl = r10_bio->read_slot; sl 2378 drivers/md/raid10.c d = r10_bio->devs[sl].devnum; sl 2383 drivers/md/raid10.c is_badblock(rdev, r10_bio->devs[sl].addr + sect, s, sl 2388 drivers/md/raid10.c r10_bio->devs[sl].addr + sl 2398 drivers/md/raid10.c sl++; sl 2399 drivers/md/raid10.c if (sl == conf->copies) sl 2400 drivers/md/raid10.c sl = 0; sl 2401 drivers/md/raid10.c } while (!success && sl != r10_bio->read_slot); sl 2424 drivers/md/raid10.c start = sl; sl 2427 drivers/md/raid10.c while (sl != r10_bio->read_slot) { sl 2430 drivers/md/raid10.c if (sl==0) sl 2431 drivers/md/raid10.c sl = conf->copies; sl 2432 drivers/md/raid10.c sl--; sl 2433 drivers/md/raid10.c d = r10_bio->devs[sl].devnum; sl 2443 drivers/md/raid10.c r10_bio->devs[sl].addr + sl 2462 drivers/md/raid10.c sl = start; sl 2463 drivers/md/raid10.c while (sl != r10_bio->read_slot) { sl 2466 drivers/md/raid10.c if (sl==0) sl 2467 drivers/md/raid10.c sl = conf->copies; sl 2468 drivers/md/raid10.c sl--; sl 2469 drivers/md/raid10.c d = r10_bio->devs[sl].devnum; sl 2479 drivers/md/raid10.c r10_bio->devs[sl].addr + sl 224 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 231 drivers/media/dvb-core/dvb_ca_en50221.c return (atomic_read(&sl->camchange_count) != 0); sl 239 drivers/media/dvb-core/dvb_ca_en50221.c int cam_present_old = (sl->slot_state != DVB_CA_SLOTSTATE_NONE); sl 246 drivers/media/dvb-core/dvb_ca_en50221.c sl->camchange_type = DVB_CA_EN50221_CAMCHANGE_REMOVED; sl 248 drivers/media/dvb-core/dvb_ca_en50221.c sl->camchange_type = DVB_CA_EN50221_CAMCHANGE_INSERTED; sl 249 drivers/media/dvb-core/dvb_ca_en50221.c atomic_set(&sl->camchange_count, 1); sl 251 drivers/media/dvb-core/dvb_ca_en50221.c if ((sl->slot_state == DVB_CA_SLOTSTATE_WAITREADY) && sl 254 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_VALIDATE; sl 322 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 330 drivers/media/dvb-core/dvb_ca_en50221.c sl->da_irq_supported = 0; sl 336 drivers/media/dvb-core/dvb_ca_en50221.c sl->link_buf_size = 2; sl 360 drivers/media/dvb-core/dvb_ca_en50221.c sl->link_buf_size = buf_size; sl 452 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl; sl 516 drivers/media/dvb-core/dvb_ca_en50221.c sl = &ca->slot_info[slot]; sl 517 drivers/media/dvb-core/dvb_ca_en50221.c sl->config_base = 0; sl 519 drivers/media/dvb-core/dvb_ca_en50221.c sl->config_base |= (tuple[2 + i] << (8 * i)); sl 553 drivers/media/dvb-core/dvb_ca_en50221.c sl->config_option = tuple[0] & 0x3f; sl 583 drivers/media/dvb-core/dvb_ca_en50221.c manfid, devid, sl->config_base, sl->config_option); sl 597 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 603 drivers/media/dvb-core/dvb_ca_en50221.c ca->pub->write_attribute_mem(ca->pub, slot, sl->config_base, sl 604 drivers/media/dvb-core/dvb_ca_en50221.c sl->config_option); sl 608 drivers/media/dvb-core/dvb_ca_en50221.c sl->config_base); sl 610 drivers/media/dvb-core/dvb_ca_en50221.c sl->config_option, configoption & 0x3f); sl 634 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 646 drivers/media/dvb-core/dvb_ca_en50221.c if (!sl->rx_buffer.data) { sl 650 drivers/media/dvb-core/dvb_ca_en50221.c buf_free = dvb_ringbuffer_free(&sl->rx_buffer); sl 652 drivers/media/dvb-core/dvb_ca_en50221.c if (buf_free < (sl->link_buf_size + sl 660 drivers/media/dvb-core/dvb_ca_en50221.c (sl->slot_state != DVB_CA_SLOTSTATE_LINKINIT)) { sl 697 drivers/media/dvb-core/dvb_ca_en50221.c if (bytes_read > sl->link_buf_size) { sl 700 drivers/media/dvb-core/dvb_ca_en50221.c sl->link_buf_size); sl 701 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_LINKINIT; sl 708 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_LINKINIT; sl 739 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_LINKINIT; sl 750 drivers/media/dvb-core/dvb_ca_en50221.c if (!sl->rx_buffer.data) { sl 754 drivers/media/dvb-core/dvb_ca_en50221.c dvb_ringbuffer_pkt_write(&sl->rx_buffer, buf, bytes_read); sl 787 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 794 drivers/media/dvb-core/dvb_ca_en50221.c if (bytes_write > sl->link_buf_size) sl 798 drivers/media/dvb-core/dvb_ca_en50221.c (sl->slot_state != DVB_CA_SLOTSTATE_LINKINIT)) sl 880 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_LINKINIT; sl 935 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 948 drivers/media/dvb-core/dvb_ca_en50221.c sl->camchange_type = change_type; sl 949 drivers/media/dvb-core/dvb_ca_en50221.c atomic_inc(&sl->camchange_count); sl 963 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 967 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->slot_state == DVB_CA_SLOTSTATE_WAITREADY) { sl 968 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_VALIDATE; sl 983 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 988 drivers/media/dvb-core/dvb_ca_en50221.c switch (sl->slot_state) { sl 993 drivers/media/dvb-core/dvb_ca_en50221.c sl->da_irq_supported = 1; sl 1038 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 1040 drivers/media/dvb-core/dvb_ca_en50221.c switch (sl->slot_state) { sl 1066 drivers/media/dvb-core/dvb_ca_en50221.c if ((!sl->da_irq_supported) || sl 1120 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 1125 drivers/media/dvb-core/dvb_ca_en50221.c mutex_lock(&sl->slot_lock); sl 1130 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->slot_state != DVB_CA_SLOTSTATE_NONE) sl 1134 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->camchange_type == DVB_CA_EN50221_CAMCHANGE_INSERTED) sl 1135 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_UNINITIALISED; sl 1139 drivers/media/dvb-core/dvb_ca_en50221.c atomic_dec(&sl->camchange_count); sl 1143 drivers/media/dvb-core/dvb_ca_en50221.c switch (sl->slot_state) { sl 1150 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_WAITREADY; sl 1152 drivers/media/dvb-core/dvb_ca_en50221.c sl->timeout = jiffies + (INIT_TIMEOUT_SECS * HZ); sl 1156 drivers/media/dvb-core/dvb_ca_en50221.c if (time_after(jiffies, sl->timeout)) { sl 1159 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_INVALID; sl 1176 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_INVALID; sl 1183 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_INVALID; sl 1192 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_INVALID; sl 1198 drivers/media/dvb-core/dvb_ca_en50221.c sl->timeout = jiffies + (INIT_TIMEOUT_SECS * HZ); sl 1199 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_WAITFR; sl 1204 drivers/media/dvb-core/dvb_ca_en50221.c if (time_after(jiffies, sl->timeout)) { sl 1207 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_INVALID; sl 1214 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_LINKINIT; sl 1226 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_UNINITIALISED; sl 1231 drivers/media/dvb-core/dvb_ca_en50221.c if (!sl->rx_buffer.data) { sl 1236 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_INVALID; sl 1240 drivers/media/dvb-core/dvb_ca_en50221.c dvb_ringbuffer_init(&sl->rx_buffer, rxbuf, sl 1245 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_RUNNING; sl 1287 drivers/media/dvb-core/dvb_ca_en50221.c mutex_unlock(&sl->slot_lock); sl 1352 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 1354 drivers/media/dvb-core/dvb_ca_en50221.c mutex_lock(&sl->slot_lock); sl 1355 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->slot_state != DVB_CA_SLOTSTATE_NONE) { sl 1362 drivers/media/dvb-core/dvb_ca_en50221.c mutex_unlock(&sl->slot_lock); sl 1380 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl; sl 1390 drivers/media/dvb-core/dvb_ca_en50221.c sl = &ca->slot_info[slot]; sl 1391 drivers/media/dvb-core/dvb_ca_en50221.c if ((sl->slot_state != DVB_CA_SLOTSTATE_NONE) && sl 1392 drivers/media/dvb-core/dvb_ca_en50221.c (sl->slot_state != DVB_CA_SLOTSTATE_INVALID)) { sl 1395 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->slot_state == DVB_CA_SLOTSTATE_RUNNING) sl 1441 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl; sl 1470 drivers/media/dvb-core/dvb_ca_en50221.c sl = &ca->slot_info[slot]; sl 1473 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->slot_state != DVB_CA_SLOTSTATE_RUNNING) sl 1478 drivers/media/dvb-core/dvb_ca_en50221.c fraglen = sl->link_buf_size - 2; sl 1501 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->slot_state != DVB_CA_SLOTSTATE_RUNNING) { sl 1506 drivers/media/dvb-core/dvb_ca_en50221.c mutex_lock(&sl->slot_lock); sl 1509 drivers/media/dvb-core/dvb_ca_en50221.c mutex_unlock(&sl->slot_lock); sl 1548 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[slot]; sl 1550 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->slot_state != DVB_CA_SLOTSTATE_RUNNING) sl 1553 drivers/media/dvb-core/dvb_ca_en50221.c if (!sl->rx_buffer.data) sl 1556 drivers/media/dvb-core/dvb_ca_en50221.c idx = dvb_ringbuffer_pkt_next(&sl->rx_buffer, -1, &fraglen); sl 1558 drivers/media/dvb-core/dvb_ca_en50221.c dvb_ringbuffer_pkt_read(&sl->rx_buffer, idx, 0, hdr, 2); sl 1568 drivers/media/dvb-core/dvb_ca_en50221.c idx = dvb_ringbuffer_pkt_next(&sl->rx_buffer, idx, sl 1596 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl; sl 1635 drivers/media/dvb-core/dvb_ca_en50221.c sl = &ca->slot_info[slot]; sl 1636 drivers/media/dvb-core/dvb_ca_en50221.c idx = dvb_ringbuffer_pkt_next(&sl->rx_buffer, -1, &fraglen); sl 1646 drivers/media/dvb-core/dvb_ca_en50221.c dvb_ringbuffer_pkt_read(&sl->rx_buffer, idx, 0, hdr, 2); sl 1657 drivers/media/dvb-core/dvb_ca_en50221.c dvb_ringbuffer_pkt_read_user(&sl->rx_buffer, sl 1672 drivers/media/dvb-core/dvb_ca_en50221.c idx2 = dvb_ringbuffer_pkt_next(&sl->rx_buffer, idx, &fraglen); sl 1674 drivers/media/dvb-core/dvb_ca_en50221.c dvb_ringbuffer_pkt_dispose(&sl->rx_buffer, idx); sl 1719 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[i]; sl 1721 drivers/media/dvb-core/dvb_ca_en50221.c if (sl->slot_state == DVB_CA_SLOTSTATE_RUNNING) { sl 1722 drivers/media/dvb-core/dvb_ca_en50221.c if (!sl->rx_buffer.data) { sl 1728 drivers/media/dvb-core/dvb_ca_en50221.c dvb_ringbuffer_flush(&sl->rx_buffer); sl 1881 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_slot *sl = &ca->slot_info[i]; sl 1883 drivers/media/dvb-core/dvb_ca_en50221.c memset(sl, 0, sizeof(struct dvb_ca_slot)); sl 1884 drivers/media/dvb-core/dvb_ca_en50221.c sl->slot_state = DVB_CA_SLOTSTATE_NONE; sl 1885 drivers/media/dvb-core/dvb_ca_en50221.c atomic_set(&sl->camchange_count, 0); sl 1886 drivers/media/dvb-core/dvb_ca_en50221.c sl->camchange_type = DVB_CA_EN50221_CAMCHANGE_REMOVED; sl 1887 drivers/media/dvb-core/dvb_ca_en50221.c mutex_init(&sl->slot_lock); sl 672 drivers/media/firewire/firedtv-avc.c int ret, sl; sl 680 drivers/media/firewire/firedtv-avc.c sl = fdtv->type == FIREDTV_DVB_T ? 0x0c : 0x11; sl 688 drivers/media/firewire/firedtv-avc.c c->operand[6] = sl; /* system_specific_multiplex selection_length */ sl 143 drivers/net/can/slcan.c static void slc_bump(struct slcan *sl) sl 149 drivers/net/can/slcan.c char *cmd = sl->rbuff; sl 159 drivers/net/can/slcan.c cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_SFF_ID_LEN]; sl 160 drivers/net/can/slcan.c sl->rbuff[SLC_CMD_LEN + SLC_SFF_ID_LEN] = 0; sl 170 drivers/net/can/slcan.c cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_EFF_ID_LEN]; sl 171 drivers/net/can/slcan.c sl->rbuff[SLC_CMD_LEN + SLC_EFF_ID_LEN] = 0; sl 179 drivers/net/can/slcan.c if (kstrtou32(sl->rbuff + SLC_CMD_LEN, 16, &tmpid)) sl 209 drivers/net/can/slcan.c skb->dev = sl->dev; sl 215 drivers/net/can/slcan.c can_skb_prv(skb)->ifindex = sl->dev->ifindex; sl 220 drivers/net/can/slcan.c sl->dev->stats.rx_packets++; sl 221 drivers/net/can/slcan.c sl->dev->stats.rx_bytes += cf.can_dlc; sl 226 drivers/net/can/slcan.c static void slcan_unesc(struct slcan *sl, unsigned char s) sl 229 drivers/net/can/slcan.c if (!test_and_clear_bit(SLF_ERROR, &sl->flags) && sl 230 drivers/net/can/slcan.c (sl->rcount > 4)) { sl 231 drivers/net/can/slcan.c slc_bump(sl); sl 233 drivers/net/can/slcan.c sl->rcount = 0; sl 235 drivers/net/can/slcan.c if (!test_bit(SLF_ERROR, &sl->flags)) { sl 236 drivers/net/can/slcan.c if (sl->rcount < SLC_MTU) { sl 237 drivers/net/can/slcan.c sl->rbuff[sl->rcount++] = s; sl 240 drivers/net/can/slcan.c sl->dev->stats.rx_over_errors++; sl 241 drivers/net/can/slcan.c set_bit(SLF_ERROR, &sl->flags); sl 252 drivers/net/can/slcan.c static void slc_encaps(struct slcan *sl, struct can_frame *cf) sl 259 drivers/net/can/slcan.c pos = sl->xbuff; sl 303 drivers/net/can/slcan.c set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 304 drivers/net/can/slcan.c actual = sl->tty->ops->write(sl->tty, sl->xbuff, pos - sl->xbuff); sl 305 drivers/net/can/slcan.c sl->xleft = (pos - sl->xbuff) - actual; sl 306 drivers/net/can/slcan.c sl->xhead = sl->xbuff + actual; sl 307 drivers/net/can/slcan.c sl->dev->stats.tx_bytes += cf->can_dlc; sl 313 drivers/net/can/slcan.c struct slcan *sl = container_of(work, struct slcan, tx_work); sl 316 drivers/net/can/slcan.c spin_lock_bh(&sl->lock); sl 318 drivers/net/can/slcan.c if (!sl->tty || sl->magic != SLCAN_MAGIC || !netif_running(sl->dev)) { sl 319 drivers/net/can/slcan.c spin_unlock_bh(&sl->lock); sl 323 drivers/net/can/slcan.c if (sl->xleft <= 0) { sl 326 drivers/net/can/slcan.c sl->dev->stats.tx_packets++; sl 327 drivers/net/can/slcan.c clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 328 drivers/net/can/slcan.c spin_unlock_bh(&sl->lock); sl 329 drivers/net/can/slcan.c netif_wake_queue(sl->dev); sl 333 drivers/net/can/slcan.c actual = sl->tty->ops->write(sl->tty, sl->xhead, sl->xleft); sl 334 drivers/net/can/slcan.c sl->xleft -= actual; sl 335 drivers/net/can/slcan.c sl->xhead += actual; sl 336 drivers/net/can/slcan.c spin_unlock_bh(&sl->lock); sl 345 drivers/net/can/slcan.c struct slcan *sl; sl 348 drivers/net/can/slcan.c sl = rcu_dereference(tty->disc_data); sl 349 drivers/net/can/slcan.c if (!sl) sl 352 drivers/net/can/slcan.c schedule_work(&sl->tx_work); sl 360 drivers/net/can/slcan.c struct slcan *sl = netdev_priv(dev); sl 365 drivers/net/can/slcan.c spin_lock(&sl->lock); sl 367 drivers/net/can/slcan.c spin_unlock(&sl->lock); sl 371 drivers/net/can/slcan.c if (sl->tty == NULL) { sl 372 drivers/net/can/slcan.c spin_unlock(&sl->lock); sl 376 drivers/net/can/slcan.c netif_stop_queue(sl->dev); sl 377 drivers/net/can/slcan.c slc_encaps(sl, (struct can_frame *) skb->data); /* encaps & send */ sl 378 drivers/net/can/slcan.c spin_unlock(&sl->lock); sl 393 drivers/net/can/slcan.c struct slcan *sl = netdev_priv(dev); sl 395 drivers/net/can/slcan.c spin_lock_bh(&sl->lock); sl 396 drivers/net/can/slcan.c if (sl->tty) { sl 398 drivers/net/can/slcan.c clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 401 drivers/net/can/slcan.c sl->rcount = 0; sl 402 drivers/net/can/slcan.c sl->xleft = 0; sl 403 drivers/net/can/slcan.c spin_unlock_bh(&sl->lock); sl 411 drivers/net/can/slcan.c struct slcan *sl = netdev_priv(dev); sl 413 drivers/net/can/slcan.c if (sl->tty == NULL) sl 416 drivers/net/can/slcan.c sl->flags &= (1 << SLF_INUSE); sl 475 drivers/net/can/slcan.c struct slcan *sl = (struct slcan *) tty->disc_data; sl 477 drivers/net/can/slcan.c if (!sl || sl->magic != SLCAN_MAGIC || !netif_running(sl->dev)) sl 483 drivers/net/can/slcan.c if (!test_and_set_bit(SLF_ERROR, &sl->flags)) sl 484 drivers/net/can/slcan.c sl->dev->stats.rx_errors++; sl 488 drivers/net/can/slcan.c slcan_unesc(sl, *cp++); sl 501 drivers/net/can/slcan.c struct slcan *sl; sl 508 drivers/net/can/slcan.c sl = netdev_priv(dev); sl 509 drivers/net/can/slcan.c if (sl->tty) sl 522 drivers/net/can/slcan.c struct slcan *sl; sl 537 drivers/net/can/slcan.c size = ALIGN(sizeof(*sl), NETDEV_ALIGN) + sizeof(struct can_ml_priv); sl 543 drivers/net/can/slcan.c sl = netdev_priv(dev); sl 544 drivers/net/can/slcan.c dev->ml_priv = (void *)sl + ALIGN(sizeof(*sl), NETDEV_ALIGN); sl 547 drivers/net/can/slcan.c sl->magic = SLCAN_MAGIC; sl 548 drivers/net/can/slcan.c sl->dev = dev; sl 549 drivers/net/can/slcan.c spin_lock_init(&sl->lock); sl 550 drivers/net/can/slcan.c INIT_WORK(&sl->tx_work, slcan_transmit); sl 553 drivers/net/can/slcan.c return sl; sl 568 drivers/net/can/slcan.c struct slcan *sl; sl 586 drivers/net/can/slcan.c sl = tty->disc_data; sl 590 drivers/net/can/slcan.c if (sl && sl->magic == SLCAN_MAGIC) sl 595 drivers/net/can/slcan.c sl = slc_alloc(); sl 596 drivers/net/can/slcan.c if (sl == NULL) sl 599 drivers/net/can/slcan.c sl->tty = tty; sl 600 drivers/net/can/slcan.c tty->disc_data = sl; sl 602 drivers/net/can/slcan.c if (!test_bit(SLF_INUSE, &sl->flags)) { sl 604 drivers/net/can/slcan.c sl->rcount = 0; sl 605 drivers/net/can/slcan.c sl->xleft = 0; sl 607 drivers/net/can/slcan.c set_bit(SLF_INUSE, &sl->flags); sl 609 drivers/net/can/slcan.c err = register_netdevice(sl->dev); sl 622 drivers/net/can/slcan.c sl->tty = NULL; sl 624 drivers/net/can/slcan.c clear_bit(SLF_INUSE, &sl->flags); sl 625 drivers/net/can/slcan.c slc_free_netdev(sl->dev); sl 628 drivers/net/can/slcan.c free_netdev(sl->dev); sl 648 drivers/net/can/slcan.c struct slcan *sl = (struct slcan *) tty->disc_data; sl 651 drivers/net/can/slcan.c if (!sl || sl->magic != SLCAN_MAGIC || sl->tty != tty) sl 654 drivers/net/can/slcan.c spin_lock_bh(&sl->lock); sl 656 drivers/net/can/slcan.c sl->tty = NULL; sl 657 drivers/net/can/slcan.c spin_unlock_bh(&sl->lock); sl 660 drivers/net/can/slcan.c flush_work(&sl->tx_work); sl 663 drivers/net/can/slcan.c unregister_netdev(sl->dev); sl 677 drivers/net/can/slcan.c struct slcan *sl = (struct slcan *) tty->disc_data; sl 681 drivers/net/can/slcan.c if (!sl || sl->magic != SLCAN_MAGIC) sl 686 drivers/net/can/slcan.c tmp = strlen(sl->dev->name) + 1; sl 687 drivers/net/can/slcan.c if (copy_to_user((void __user *)arg, sl->dev->name, tmp)) sl 738 drivers/net/can/slcan.c struct slcan *sl; sl 756 drivers/net/can/slcan.c sl = netdev_priv(dev); sl 757 drivers/net/can/slcan.c spin_lock_bh(&sl->lock); sl 758 drivers/net/can/slcan.c if (sl->tty) { sl 760 drivers/net/can/slcan.c tty_hangup(sl->tty); sl 762 drivers/net/can/slcan.c spin_unlock_bh(&sl->lock); sl 775 drivers/net/can/slcan.c sl = netdev_priv(dev); sl 776 drivers/net/can/slcan.c if (sl->tty) { sl 696 drivers/net/can/usb/peak_usb/pcan_usb.c u8 sl = *mc.ptr++; sl 699 drivers/net/can/usb/peak_usb/pcan_usb.c if (sl & PCAN_USB_STATUSLEN_INTERNAL) { sl 700 drivers/net/can/usb/peak_usb/pcan_usb.c err = pcan_usb_decode_status(&mc, sl); sl 703 drivers/net/can/usb/peak_usb/pcan_usb.c err = pcan_usb_decode_data(&mc, sl); sl 429 drivers/net/ethernet/cavium/liquidio/liquidio_common.h u64 sl:8; sl 464 drivers/net/ethernet/cavium/liquidio/liquidio_common.h u64 sl:8; sl 218 drivers/net/ethernet/cavium/liquidio/octeon_nic.h pki_ih3->sl = 8; /* sl will be sizeof(pki_ih3)*/ sl 623 drivers/net/ethernet/cavium/liquidio/request_manager.c pki_ih3->sl = 8; sl 3049 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c u32 sl; sl 3120 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c sl = dsaf_read_dev(dsaf_dev, DSAF_ROCE_SL_MAP_REG); sl 3122 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c dsaf_set_field(sl, 3 << i * 2, i * 2, sl 3124 drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c dsaf_write_dev(dsaf_dev, DSAF_ROCE_SL_MAP_REG, sl); sl 189 drivers/net/ethernet/ti/cpsw_sl.c u32 cpsw_sl_reg_read(struct cpsw_sl *sl, enum cpsw_sl_regs reg) sl 193 drivers/net/ethernet/ti/cpsw_sl.c if (sl->regs[reg] == CPSW_SL_REG_NOTUSED) { sl 194 drivers/net/ethernet/ti/cpsw_sl.c dev_err(sl->dev, "cpsw_sl: not sup r reg: %04X\n", sl 195 drivers/net/ethernet/ti/cpsw_sl.c sl->regs[reg]); sl 199 drivers/net/ethernet/ti/cpsw_sl.c val = readl(sl->sl_base + sl->regs[reg]); sl 200 drivers/net/ethernet/ti/cpsw_sl.c dev_dbg(sl->dev, "cpsw_sl: reg: %04X r 0x%08X\n", sl->regs[reg], val); sl 204 drivers/net/ethernet/ti/cpsw_sl.c void cpsw_sl_reg_write(struct cpsw_sl *sl, enum cpsw_sl_regs reg, u32 val) sl 206 drivers/net/ethernet/ti/cpsw_sl.c if (sl->regs[reg] == CPSW_SL_REG_NOTUSED) { sl 207 drivers/net/ethernet/ti/cpsw_sl.c dev_err(sl->dev, "cpsw_sl: not sup w reg: %04X\n", sl 208 drivers/net/ethernet/ti/cpsw_sl.c sl->regs[reg]); sl 212 drivers/net/ethernet/ti/cpsw_sl.c dev_dbg(sl->dev, "cpsw_sl: reg: %04X w 0x%08X\n", sl->regs[reg], val); sl 213 drivers/net/ethernet/ti/cpsw_sl.c writel(val, sl->sl_base + sl->regs[reg]); sl 235 drivers/net/ethernet/ti/cpsw_sl.c struct cpsw_sl *sl; sl 237 drivers/net/ethernet/ti/cpsw_sl.c sl = devm_kzalloc(dev, sizeof(struct cpsw_sl), GFP_KERNEL); sl 238 drivers/net/ethernet/ti/cpsw_sl.c if (!sl) sl 240 drivers/net/ethernet/ti/cpsw_sl.c sl->dev = dev; sl 241 drivers/net/ethernet/ti/cpsw_sl.c sl->sl_base = sl_base; sl 245 drivers/net/ethernet/ti/cpsw_sl.c dev_err(sl->dev, "cpsw_sl: dev_id %s not found.\n", device_id); sl 248 drivers/net/ethernet/ti/cpsw_sl.c sl->regs = sl_dev_id->regs; sl 249 drivers/net/ethernet/ti/cpsw_sl.c sl->control_features = sl_dev_id->control_features; sl 250 drivers/net/ethernet/ti/cpsw_sl.c sl->idle_mask = sl_dev_id->idle_mask; sl 251 drivers/net/ethernet/ti/cpsw_sl.c sl->sl_base += sl_dev_id->regs_offset; sl 253 drivers/net/ethernet/ti/cpsw_sl.c return sl; sl 256 drivers/net/ethernet/ti/cpsw_sl.c void cpsw_sl_reset(struct cpsw_sl *sl, unsigned long tmo) sl 261 drivers/net/ethernet/ti/cpsw_sl.c cpsw_sl_reg_write(sl, CPSW_SL_SOFT_RESET, CPSW_SL_SOFT_RESET_BIT); sl 266 drivers/net/ethernet/ti/cpsw_sl.c } while ((cpsw_sl_reg_read(sl, CPSW_SL_SOFT_RESET) & sl 270 drivers/net/ethernet/ti/cpsw_sl.c if (cpsw_sl_reg_read(sl, CPSW_SL_SOFT_RESET) & CPSW_SL_SOFT_RESET_BIT) sl 271 drivers/net/ethernet/ti/cpsw_sl.c dev_err(sl->dev, "cpsw_sl failed to soft-reset.\n"); sl 274 drivers/net/ethernet/ti/cpsw_sl.c u32 cpsw_sl_ctl_set(struct cpsw_sl *sl, u32 ctl_funcs) sl 278 drivers/net/ethernet/ti/cpsw_sl.c if (ctl_funcs & ~sl->control_features) { sl 279 drivers/net/ethernet/ti/cpsw_sl.c dev_err(sl->dev, "cpsw_sl: unsupported func 0x%08X\n", sl 280 drivers/net/ethernet/ti/cpsw_sl.c ctl_funcs & (~sl->control_features)); sl 284 drivers/net/ethernet/ti/cpsw_sl.c val = cpsw_sl_reg_read(sl, CPSW_SL_MACCONTROL); sl 286 drivers/net/ethernet/ti/cpsw_sl.c cpsw_sl_reg_write(sl, CPSW_SL_MACCONTROL, val); sl 291 drivers/net/ethernet/ti/cpsw_sl.c u32 cpsw_sl_ctl_clr(struct cpsw_sl *sl, u32 ctl_funcs) sl 295 drivers/net/ethernet/ti/cpsw_sl.c if (ctl_funcs & ~sl->control_features) { sl 296 drivers/net/ethernet/ti/cpsw_sl.c dev_err(sl->dev, "cpsw_sl: unsupported func 0x%08X\n", sl 297 drivers/net/ethernet/ti/cpsw_sl.c ctl_funcs & (~sl->control_features)); sl 301 drivers/net/ethernet/ti/cpsw_sl.c val = cpsw_sl_reg_read(sl, CPSW_SL_MACCONTROL); sl 303 drivers/net/ethernet/ti/cpsw_sl.c cpsw_sl_reg_write(sl, CPSW_SL_MACCONTROL, val); sl 308 drivers/net/ethernet/ti/cpsw_sl.c void cpsw_sl_ctl_reset(struct cpsw_sl *sl) sl 310 drivers/net/ethernet/ti/cpsw_sl.c cpsw_sl_reg_write(sl, CPSW_SL_MACCONTROL, 0); sl 313 drivers/net/ethernet/ti/cpsw_sl.c int cpsw_sl_wait_for_idle(struct cpsw_sl *sl, unsigned long tmo) sl 319 drivers/net/ethernet/ti/cpsw_sl.c } while (!(cpsw_sl_reg_read(sl, CPSW_SL_MACSTATUS) & sl 320 drivers/net/ethernet/ti/cpsw_sl.c sl->idle_mask) && time_after(timeout, jiffies)); sl 322 drivers/net/ethernet/ti/cpsw_sl.c if (!(cpsw_sl_reg_read(sl, CPSW_SL_MACSTATUS) & sl->idle_mask)) { sl 323 drivers/net/ethernet/ti/cpsw_sl.c dev_err(sl->dev, "cpsw_sl failed to soft-reset.\n"); sl 63 drivers/net/ethernet/ti/cpsw_sl.h void cpsw_sl_reset(struct cpsw_sl *sl, unsigned long tmo); sl 65 drivers/net/ethernet/ti/cpsw_sl.h u32 cpsw_sl_ctl_set(struct cpsw_sl *sl, u32 ctl_funcs); sl 66 drivers/net/ethernet/ti/cpsw_sl.h u32 cpsw_sl_ctl_clr(struct cpsw_sl *sl, u32 ctl_funcs); sl 67 drivers/net/ethernet/ti/cpsw_sl.h void cpsw_sl_ctl_reset(struct cpsw_sl *sl); sl 68 drivers/net/ethernet/ti/cpsw_sl.h int cpsw_sl_wait_for_idle(struct cpsw_sl *sl, unsigned long tmo); sl 70 drivers/net/ethernet/ti/cpsw_sl.h u32 cpsw_sl_reg_read(struct cpsw_sl *sl, enum cpsw_sl_regs reg); sl 71 drivers/net/ethernet/ti/cpsw_sl.h void cpsw_sl_reg_write(struct cpsw_sl *sl, enum cpsw_sl_regs reg, u32 val); sl 103 drivers/net/slip/slip.c static void slip_unesc(struct slip *sl, unsigned char c); sl 106 drivers/net/slip/slip.c static void slip_unesc6(struct slip *sl, unsigned char c); sl 129 drivers/net/slip/slip.c static int sl_alloc_bufs(struct slip *sl, int mtu) sl 170 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 171 drivers/net/slip/slip.c if (sl->tty == NULL) { sl 172 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 176 drivers/net/slip/slip.c sl->mtu = mtu; sl 177 drivers/net/slip/slip.c sl->buffsize = len; sl 178 drivers/net/slip/slip.c sl->rcount = 0; sl 179 drivers/net/slip/slip.c sl->xleft = 0; sl 180 drivers/net/slip/slip.c rbuff = xchg(&sl->rbuff, rbuff); sl 181 drivers/net/slip/slip.c xbuff = xchg(&sl->xbuff, xbuff); sl 183 drivers/net/slip/slip.c cbuff = xchg(&sl->cbuff, cbuff); sl 184 drivers/net/slip/slip.c slcomp = xchg(&sl->slcomp, slcomp); sl 187 drivers/net/slip/slip.c sl->xdata = 0; sl 188 drivers/net/slip/slip.c sl->xbits = 0; sl 190 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 205 drivers/net/slip/slip.c static void sl_free_bufs(struct slip *sl) sl 208 drivers/net/slip/slip.c kfree(xchg(&sl->rbuff, NULL)); sl 209 drivers/net/slip/slip.c kfree(xchg(&sl->xbuff, NULL)); sl 211 drivers/net/slip/slip.c kfree(xchg(&sl->cbuff, NULL)); sl 212 drivers/net/slip/slip.c slhc_free(xchg(&sl->slcomp, NULL)); sl 220 drivers/net/slip/slip.c static int sl_realloc_bufs(struct slip *sl, int mtu) sl 223 drivers/net/slip/slip.c struct net_device *dev = sl->dev; sl 250 drivers/net/slip/slip.c if (mtu > sl->mtu) { sl 257 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 260 drivers/net/slip/slip.c if (sl->tty == NULL) sl 263 drivers/net/slip/slip.c xbuff = xchg(&sl->xbuff, xbuff); sl 264 drivers/net/slip/slip.c rbuff = xchg(&sl->rbuff, rbuff); sl 266 drivers/net/slip/slip.c cbuff = xchg(&sl->cbuff, cbuff); sl 268 drivers/net/slip/slip.c if (sl->xleft) { sl 269 drivers/net/slip/slip.c if (sl->xleft <= len) { sl 270 drivers/net/slip/slip.c memcpy(sl->xbuff, sl->xhead, sl->xleft); sl 272 drivers/net/slip/slip.c sl->xleft = 0; sl 276 drivers/net/slip/slip.c sl->xhead = sl->xbuff; sl 278 drivers/net/slip/slip.c if (sl->rcount) { sl 279 drivers/net/slip/slip.c if (sl->rcount <= len) { sl 280 drivers/net/slip/slip.c memcpy(sl->rbuff, rbuff, sl->rcount); sl 282 drivers/net/slip/slip.c sl->rcount = 0; sl 284 drivers/net/slip/slip.c set_bit(SLF_ERROR, &sl->flags); sl 287 drivers/net/slip/slip.c sl->mtu = mtu; sl 289 drivers/net/slip/slip.c sl->buffsize = len; sl 293 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 306 drivers/net/slip/slip.c static inline void sl_lock(struct slip *sl) sl 308 drivers/net/slip/slip.c netif_stop_queue(sl->dev); sl 313 drivers/net/slip/slip.c static inline void sl_unlock(struct slip *sl) sl 315 drivers/net/slip/slip.c netif_wake_queue(sl->dev); sl 319 drivers/net/slip/slip.c static void sl_bump(struct slip *sl) sl 321 drivers/net/slip/slip.c struct net_device *dev = sl->dev; sl 325 drivers/net/slip/slip.c count = sl->rcount; sl 327 drivers/net/slip/slip.c if (sl->mode & (SL_MODE_ADAPTIVE | SL_MODE_CSLIP)) { sl 328 drivers/net/slip/slip.c unsigned char c = sl->rbuff[0]; sl 331 drivers/net/slip/slip.c if (!(sl->mode & SL_MODE_CSLIP)) { sl 337 drivers/net/slip/slip.c if (count + 80 > sl->buffsize) { sl 341 drivers/net/slip/slip.c count = slhc_uncompress(sl->slcomp, sl->rbuff, count); sl 345 drivers/net/slip/slip.c if (!(sl->mode & SL_MODE_CSLIP)) { sl 347 drivers/net/slip/slip.c sl->mode |= SL_MODE_CSLIP; sl 348 drivers/net/slip/slip.c sl->mode &= ~SL_MODE_ADAPTIVE; sl 351 drivers/net/slip/slip.c sl->rbuff[0] &= 0x4f; sl 352 drivers/net/slip/slip.c if (slhc_remember(sl->slcomp, sl->rbuff, count) <= 0) sl 367 drivers/net/slip/slip.c skb_put_data(skb, sl->rbuff, count); sl 375 drivers/net/slip/slip.c static void sl_encaps(struct slip *sl, unsigned char *icp, int len) sl 380 drivers/net/slip/slip.c if (len > sl->mtu) { /* Sigh, shouldn't occur BUT ... */ sl 381 drivers/net/slip/slip.c printk(KERN_WARNING "%s: truncating oversized transmit packet!\n", sl->dev->name); sl 382 drivers/net/slip/slip.c sl->dev->stats.tx_dropped++; sl 383 drivers/net/slip/slip.c sl_unlock(sl); sl 389 drivers/net/slip/slip.c if (sl->mode & SL_MODE_CSLIP) sl 390 drivers/net/slip/slip.c len = slhc_compress(sl->slcomp, p, len, sl->cbuff, &p, 1); sl 393 drivers/net/slip/slip.c if (sl->mode & SL_MODE_SLIP6) sl 394 drivers/net/slip/slip.c count = slip_esc6(p, sl->xbuff, len); sl 397 drivers/net/slip/slip.c count = slip_esc(p, sl->xbuff, len); sl 407 drivers/net/slip/slip.c set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 408 drivers/net/slip/slip.c actual = sl->tty->ops->write(sl->tty, sl->xbuff, count); sl 410 drivers/net/slip/slip.c netif_trans_update(sl->dev); sl 412 drivers/net/slip/slip.c sl->xleft = count - actual; sl 413 drivers/net/slip/slip.c sl->xhead = sl->xbuff + actual; sl 416 drivers/net/slip/slip.c clear_bit(SLF_OUTWAIT, &sl->flags); /* reset outfill flag */ sl 423 drivers/net/slip/slip.c struct slip *sl = container_of(work, struct slip, tx_work); sl 426 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 428 drivers/net/slip/slip.c if (!sl->tty || sl->magic != SLIP_MAGIC || !netif_running(sl->dev)) { sl 429 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 433 drivers/net/slip/slip.c if (sl->xleft <= 0) { sl 436 drivers/net/slip/slip.c sl->dev->stats.tx_packets++; sl 437 drivers/net/slip/slip.c clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 438 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 439 drivers/net/slip/slip.c sl_unlock(sl); sl 443 drivers/net/slip/slip.c actual = sl->tty->ops->write(sl->tty, sl->xhead, sl->xleft); sl 444 drivers/net/slip/slip.c sl->xleft -= actual; sl 445 drivers/net/slip/slip.c sl->xhead += actual; sl 446 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 455 drivers/net/slip/slip.c struct slip *sl; sl 458 drivers/net/slip/slip.c sl = rcu_dereference(tty->disc_data); sl 459 drivers/net/slip/slip.c if (!sl) sl 462 drivers/net/slip/slip.c schedule_work(&sl->tx_work); sl 469 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 471 drivers/net/slip/slip.c spin_lock(&sl->lock); sl 487 drivers/net/slip/slip.c (tty_chars_in_buffer(sl->tty) || sl->xleft) ? sl 489 drivers/net/slip/slip.c sl->xleft = 0; sl 490 drivers/net/slip/slip.c clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 491 drivers/net/slip/slip.c sl_unlock(sl); sl 495 drivers/net/slip/slip.c spin_unlock(&sl->lock); sl 503 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 505 drivers/net/slip/slip.c spin_lock(&sl->lock); sl 507 drivers/net/slip/slip.c spin_unlock(&sl->lock); sl 512 drivers/net/slip/slip.c if (sl->tty == NULL) { sl 513 drivers/net/slip/slip.c spin_unlock(&sl->lock); sl 518 drivers/net/slip/slip.c sl_lock(sl); sl 520 drivers/net/slip/slip.c sl_encaps(sl, skb->data, skb->len); sl 521 drivers/net/slip/slip.c spin_unlock(&sl->lock); sl 537 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 539 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 540 drivers/net/slip/slip.c if (sl->tty) sl 542 drivers/net/slip/slip.c clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 544 drivers/net/slip/slip.c sl->rcount = 0; sl 545 drivers/net/slip/slip.c sl->xleft = 0; sl 546 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 555 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 557 drivers/net/slip/slip.c if (sl->tty == NULL) sl 560 drivers/net/slip/slip.c sl->flags &= (1 << SLF_INUSE); sl 569 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 571 drivers/net/slip/slip.c return sl_realloc_bufs(sl, new_mtu); sl 581 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 582 drivers/net/slip/slip.c struct slcompress *comp = sl->slcomp; sl 613 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 619 drivers/net/slip/slip.c dev->mtu = sl->mtu; sl 620 drivers/net/slip/slip.c dev->type = ARPHRD_SLIP + sl->mode; sl 630 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 632 drivers/net/slip/slip.c sl_free_bufs(sl); sl 693 drivers/net/slip/slip.c struct slip *sl = tty->disc_data; sl 695 drivers/net/slip/slip.c if (!sl || sl->magic != SLIP_MAGIC || !netif_running(sl->dev)) sl 701 drivers/net/slip/slip.c if (!test_and_set_bit(SLF_ERROR, &sl->flags)) sl 702 drivers/net/slip/slip.c sl->dev->stats.rx_errors++; sl 707 drivers/net/slip/slip.c if (sl->mode & SL_MODE_SLIP6) sl 708 drivers/net/slip/slip.c slip_unesc6(sl, *cp++); sl 711 drivers/net/slip/slip.c slip_unesc(sl, *cp++); sl 724 drivers/net/slip/slip.c struct slip *sl; sl 731 drivers/net/slip/slip.c sl = netdev_priv(dev); sl 732 drivers/net/slip/slip.c if (sl->tty || sl->leased) sl 746 drivers/net/slip/slip.c struct slip *sl; sl 758 drivers/net/slip/slip.c dev = alloc_netdev(sizeof(*sl), name, NET_NAME_UNKNOWN, sl_setup); sl 763 drivers/net/slip/slip.c sl = netdev_priv(dev); sl 766 drivers/net/slip/slip.c sl->magic = SLIP_MAGIC; sl 767 drivers/net/slip/slip.c sl->dev = dev; sl 768 drivers/net/slip/slip.c spin_lock_init(&sl->lock); sl 769 drivers/net/slip/slip.c INIT_WORK(&sl->tx_work, slip_transmit); sl 770 drivers/net/slip/slip.c sl->mode = SL_MODE_DEFAULT; sl 773 drivers/net/slip/slip.c timer_setup(&sl->keepalive_timer, sl_keepalive, 0); sl 774 drivers/net/slip/slip.c timer_setup(&sl->outfill_timer, sl_outfill, 0); sl 777 drivers/net/slip/slip.c return sl; sl 792 drivers/net/slip/slip.c struct slip *sl; sl 810 drivers/net/slip/slip.c sl = tty->disc_data; sl 814 drivers/net/slip/slip.c if (sl && sl->magic == SLIP_MAGIC) sl 819 drivers/net/slip/slip.c sl = sl_alloc(); sl 820 drivers/net/slip/slip.c if (sl == NULL) sl 823 drivers/net/slip/slip.c sl->tty = tty; sl 824 drivers/net/slip/slip.c tty->disc_data = sl; sl 825 drivers/net/slip/slip.c sl->pid = current->pid; sl 827 drivers/net/slip/slip.c if (!test_bit(SLF_INUSE, &sl->flags)) { sl 829 drivers/net/slip/slip.c err = sl_alloc_bufs(sl, SL_MTU); sl 833 drivers/net/slip/slip.c set_bit(SLF_INUSE, &sl->flags); sl 835 drivers/net/slip/slip.c err = register_netdevice(sl->dev); sl 841 drivers/net/slip/slip.c if (sl->keepalive) { sl 842 drivers/net/slip/slip.c sl->keepalive_timer.expires = jiffies + sl->keepalive * HZ; sl 843 drivers/net/slip/slip.c add_timer(&sl->keepalive_timer); sl 845 drivers/net/slip/slip.c if (sl->outfill) { sl 846 drivers/net/slip/slip.c sl->outfill_timer.expires = jiffies + sl->outfill * HZ; sl 847 drivers/net/slip/slip.c add_timer(&sl->outfill_timer); sl 859 drivers/net/slip/slip.c sl_free_bufs(sl); sl 862 drivers/net/slip/slip.c sl->tty = NULL; sl 864 drivers/net/slip/slip.c clear_bit(SLF_INUSE, &sl->flags); sl 865 drivers/net/slip/slip.c sl_free_netdev(sl->dev); sl 868 drivers/net/slip/slip.c free_netdev(sl->dev); sl 888 drivers/net/slip/slip.c struct slip *sl = tty->disc_data; sl 891 drivers/net/slip/slip.c if (!sl || sl->magic != SLIP_MAGIC || sl->tty != tty) sl 894 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 896 drivers/net/slip/slip.c sl->tty = NULL; sl 897 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 900 drivers/net/slip/slip.c flush_work(&sl->tx_work); sl 904 drivers/net/slip/slip.c del_timer_sync(&sl->keepalive_timer); sl 905 drivers/net/slip/slip.c del_timer_sync(&sl->outfill_timer); sl 908 drivers/net/slip/slip.c unregister_netdev(sl->dev); sl 958 drivers/net/slip/slip.c static void slip_unesc(struct slip *sl, unsigned char s) sl 965 drivers/net/slip/slip.c if (test_bit(SLF_KEEPTEST, &sl->flags)) sl 966 drivers/net/slip/slip.c clear_bit(SLF_KEEPTEST, &sl->flags); sl 969 drivers/net/slip/slip.c if (!test_and_clear_bit(SLF_ERROR, &sl->flags) && sl 970 drivers/net/slip/slip.c (sl->rcount > 2)) sl 971 drivers/net/slip/slip.c sl_bump(sl); sl 972 drivers/net/slip/slip.c clear_bit(SLF_ESCAPE, &sl->flags); sl 973 drivers/net/slip/slip.c sl->rcount = 0; sl 977 drivers/net/slip/slip.c set_bit(SLF_ESCAPE, &sl->flags); sl 980 drivers/net/slip/slip.c if (test_and_clear_bit(SLF_ESCAPE, &sl->flags)) sl 984 drivers/net/slip/slip.c if (test_and_clear_bit(SLF_ESCAPE, &sl->flags)) sl 988 drivers/net/slip/slip.c if (!test_bit(SLF_ERROR, &sl->flags)) { sl 989 drivers/net/slip/slip.c if (sl->rcount < sl->buffsize) { sl 990 drivers/net/slip/slip.c sl->rbuff[sl->rcount++] = s; sl 993 drivers/net/slip/slip.c sl->dev->stats.rx_over_errors++; sl 994 drivers/net/slip/slip.c set_bit(SLF_ERROR, &sl->flags); sl 1041 drivers/net/slip/slip.c static void slip_unesc6(struct slip *sl, unsigned char s) sl 1048 drivers/net/slip/slip.c if (test_bit(SLF_KEEPTEST, &sl->flags)) sl 1049 drivers/net/slip/slip.c clear_bit(SLF_KEEPTEST, &sl->flags); sl 1052 drivers/net/slip/slip.c if (!test_and_clear_bit(SLF_ERROR, &sl->flags) && sl 1053 drivers/net/slip/slip.c (sl->rcount > 2)) sl 1054 drivers/net/slip/slip.c sl_bump(sl); sl 1055 drivers/net/slip/slip.c sl->rcount = 0; sl 1056 drivers/net/slip/slip.c sl->xbits = 0; sl 1057 drivers/net/slip/slip.c sl->xdata = 0; sl 1059 drivers/net/slip/slip.c sl->xdata = (sl->xdata << 6) | ((s - 0x30) & 0x3F); sl 1060 drivers/net/slip/slip.c sl->xbits += 6; sl 1061 drivers/net/slip/slip.c if (sl->xbits >= 8) { sl 1062 drivers/net/slip/slip.c sl->xbits -= 8; sl 1063 drivers/net/slip/slip.c c = (unsigned char)(sl->xdata >> sl->xbits); sl 1064 drivers/net/slip/slip.c if (!test_bit(SLF_ERROR, &sl->flags)) { sl 1065 drivers/net/slip/slip.c if (sl->rcount < sl->buffsize) { sl 1066 drivers/net/slip/slip.c sl->rbuff[sl->rcount++] = c; sl 1069 drivers/net/slip/slip.c sl->dev->stats.rx_over_errors++; sl 1070 drivers/net/slip/slip.c set_bit(SLF_ERROR, &sl->flags); sl 1081 drivers/net/slip/slip.c struct slip *sl = tty->disc_data; sl 1086 drivers/net/slip/slip.c if (!sl || sl->magic != SLIP_MAGIC) sl 1091 drivers/net/slip/slip.c tmp = strlen(sl->dev->name) + 1; sl 1092 drivers/net/slip/slip.c if (copy_to_user((void __user *)arg, sl->dev->name, tmp)) sl 1097 drivers/net/slip/slip.c if (put_user(sl->mode, p)) sl 1117 drivers/net/slip/slip.c sl->mode = tmp; sl 1118 drivers/net/slip/slip.c sl->dev->type = ARPHRD_SLIP + sl->mode; sl 1132 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 1133 drivers/net/slip/slip.c if (!sl->tty) { sl 1134 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1137 drivers/net/slip/slip.c sl->keepalive = (u8)tmp; sl 1138 drivers/net/slip/slip.c if (sl->keepalive != 0) { sl 1139 drivers/net/slip/slip.c mod_timer(&sl->keepalive_timer, sl 1140 drivers/net/slip/slip.c jiffies + sl->keepalive * HZ); sl 1141 drivers/net/slip/slip.c set_bit(SLF_KEEPTEST, &sl->flags); sl 1143 drivers/net/slip/slip.c del_timer(&sl->keepalive_timer); sl 1144 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1148 drivers/net/slip/slip.c if (put_user(sl->keepalive, p)) sl 1157 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 1158 drivers/net/slip/slip.c if (!sl->tty) { sl 1159 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1162 drivers/net/slip/slip.c sl->outfill = (u8)tmp; sl 1163 drivers/net/slip/slip.c if (sl->outfill != 0) { sl 1164 drivers/net/slip/slip.c mod_timer(&sl->outfill_timer, sl 1165 drivers/net/slip/slip.c jiffies + sl->outfill * HZ); sl 1166 drivers/net/slip/slip.c set_bit(SLF_OUTWAIT, &sl->flags); sl 1168 drivers/net/slip/slip.c del_timer(&sl->outfill_timer); sl 1169 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1173 drivers/net/slip/slip.c if (put_user(sl->outfill, p)) sl 1191 drivers/net/slip/slip.c struct slip *sl = netdev_priv(dev); sl 1194 drivers/net/slip/slip.c if (sl == NULL) /* Allocation failed ?? */ sl 1197 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 1199 drivers/net/slip/slip.c if (!sl->tty) { sl 1200 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1208 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1211 drivers/net/slip/slip.c sl->keepalive = (u8)*p; sl 1212 drivers/net/slip/slip.c if (sl->keepalive != 0) { sl 1213 drivers/net/slip/slip.c sl->keepalive_timer.expires = sl 1214 drivers/net/slip/slip.c jiffies + sl->keepalive * HZ; sl 1215 drivers/net/slip/slip.c mod_timer(&sl->keepalive_timer, sl 1216 drivers/net/slip/slip.c jiffies + sl->keepalive * HZ); sl 1217 drivers/net/slip/slip.c set_bit(SLF_KEEPTEST, &sl->flags); sl 1219 drivers/net/slip/slip.c del_timer(&sl->keepalive_timer); sl 1223 drivers/net/slip/slip.c *p = sl->keepalive; sl 1228 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1231 drivers/net/slip/slip.c sl->outfill = (u8)*p; sl 1232 drivers/net/slip/slip.c if (sl->outfill != 0) { sl 1233 drivers/net/slip/slip.c mod_timer(&sl->outfill_timer, sl 1234 drivers/net/slip/slip.c jiffies + sl->outfill * HZ); sl 1235 drivers/net/slip/slip.c set_bit(SLF_OUTWAIT, &sl->flags); sl 1237 drivers/net/slip/slip.c del_timer(&sl->outfill_timer); sl 1241 drivers/net/slip/slip.c *p = sl->outfill; sl 1248 drivers/net/slip/slip.c if (sl->tty != current->signal->tty && sl 1249 drivers/net/slip/slip.c sl->pid != current->pid) { sl 1250 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1253 drivers/net/slip/slip.c sl->leased = 0; sl 1255 drivers/net/slip/slip.c sl->leased = 1; sl 1259 drivers/net/slip/slip.c *p = sl->leased; sl 1261 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1317 drivers/net/slip/slip.c struct slip *sl; sl 1335 drivers/net/slip/slip.c sl = netdev_priv(dev); sl 1336 drivers/net/slip/slip.c spin_lock_bh(&sl->lock); sl 1337 drivers/net/slip/slip.c if (sl->tty) { sl 1339 drivers/net/slip/slip.c tty_hangup(sl->tty); sl 1341 drivers/net/slip/slip.c spin_unlock_bh(&sl->lock); sl 1354 drivers/net/slip/slip.c sl = netdev_priv(dev); sl 1355 drivers/net/slip/slip.c if (sl->tty) { sl 1382 drivers/net/slip/slip.c struct slip *sl = from_timer(sl, t, outfill_timer); sl 1384 drivers/net/slip/slip.c spin_lock(&sl->lock); sl 1386 drivers/net/slip/slip.c if (sl->tty == NULL) sl 1389 drivers/net/slip/slip.c if (sl->outfill) { sl 1390 drivers/net/slip/slip.c if (test_bit(SLF_OUTWAIT, &sl->flags)) { sl 1393 drivers/net/slip/slip.c unsigned char s = (sl->mode & SL_MODE_SLIP6)?0x70:END; sl 1398 drivers/net/slip/slip.c if (!netif_queue_stopped(sl->dev)) { sl 1400 drivers/net/slip/slip.c sl->tty->ops->write(sl->tty, &s, 1); sl 1403 drivers/net/slip/slip.c set_bit(SLF_OUTWAIT, &sl->flags); sl 1405 drivers/net/slip/slip.c mod_timer(&sl->outfill_timer, jiffies+sl->outfill*HZ); sl 1408 drivers/net/slip/slip.c spin_unlock(&sl->lock); sl 1413 drivers/net/slip/slip.c struct slip *sl = from_timer(sl, t, keepalive_timer); sl 1415 drivers/net/slip/slip.c spin_lock(&sl->lock); sl 1417 drivers/net/slip/slip.c if (sl->tty == NULL) sl 1420 drivers/net/slip/slip.c if (sl->keepalive) { sl 1421 drivers/net/slip/slip.c if (test_bit(SLF_KEEPTEST, &sl->flags)) { sl 1423 drivers/net/slip/slip.c if (sl->outfill) sl 1425 drivers/net/slip/slip.c (void)del_timer(&sl->outfill_timer); sl 1426 drivers/net/slip/slip.c printk(KERN_DEBUG "%s: no packets received during keepalive timeout, hangup.\n", sl->dev->name); sl 1428 drivers/net/slip/slip.c tty_hangup(sl->tty); sl 1432 drivers/net/slip/slip.c set_bit(SLF_KEEPTEST, &sl->flags); sl 1434 drivers/net/slip/slip.c mod_timer(&sl->keepalive_timer, jiffies+sl->keepalive*HZ); sl 1437 drivers/net/slip/slip.c spin_unlock(&sl->lock); sl 48 drivers/net/wan/x25_asy.c static void x25_asy_unesc(struct x25_asy *sl, unsigned char c); sl 55 drivers/net/wan/x25_asy.c struct x25_asy *sl; sl 68 drivers/net/wan/x25_asy.c sl = netdev_priv(dev); sl 70 drivers/net/wan/x25_asy.c if (!test_and_set_bit(SLF_INUSE, &sl->flags)) sl 71 drivers/net/wan/x25_asy.c return sl; sl 90 drivers/net/wan/x25_asy.c sl = netdev_priv(dev); sl 96 drivers/net/wan/x25_asy.c set_bit(SLF_INUSE, &sl->flags); sl 98 drivers/net/wan/x25_asy.c return sl; sl 109 drivers/net/wan/x25_asy.c static void x25_asy_free(struct x25_asy *sl) sl 112 drivers/net/wan/x25_asy.c kfree(sl->rbuff); sl 113 drivers/net/wan/x25_asy.c sl->rbuff = NULL; sl 114 drivers/net/wan/x25_asy.c kfree(sl->xbuff); sl 115 drivers/net/wan/x25_asy.c sl->xbuff = NULL; sl 117 drivers/net/wan/x25_asy.c if (!test_and_clear_bit(SLF_INUSE, &sl->flags)) sl 118 drivers/net/wan/x25_asy.c netdev_err(sl->dev, "x25_asy_free for already free unit\n"); sl 123 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 137 drivers/net/wan/x25_asy.c spin_lock_bh(&sl->lock); sl 138 drivers/net/wan/x25_asy.c xbuff = xchg(&sl->xbuff, xbuff); sl 139 drivers/net/wan/x25_asy.c if (sl->xleft) { sl 140 drivers/net/wan/x25_asy.c if (sl->xleft <= len) { sl 141 drivers/net/wan/x25_asy.c memcpy(sl->xbuff, sl->xhead, sl->xleft); sl 143 drivers/net/wan/x25_asy.c sl->xleft = 0; sl 147 drivers/net/wan/x25_asy.c sl->xhead = sl->xbuff; sl 149 drivers/net/wan/x25_asy.c rbuff = xchg(&sl->rbuff, rbuff); sl 150 drivers/net/wan/x25_asy.c if (sl->rcount) { sl 151 drivers/net/wan/x25_asy.c if (sl->rcount <= len) { sl 152 drivers/net/wan/x25_asy.c memcpy(sl->rbuff, rbuff, sl->rcount); sl 154 drivers/net/wan/x25_asy.c sl->rcount = 0; sl 156 drivers/net/wan/x25_asy.c set_bit(SLF_ERROR, &sl->flags); sl 161 drivers/net/wan/x25_asy.c sl->buffsize = len; sl 163 drivers/net/wan/x25_asy.c spin_unlock_bh(&sl->lock); sl 173 drivers/net/wan/x25_asy.c static inline void x25_asy_lock(struct x25_asy *sl) sl 175 drivers/net/wan/x25_asy.c netif_stop_queue(sl->dev); sl 181 drivers/net/wan/x25_asy.c static inline void x25_asy_unlock(struct x25_asy *sl) sl 183 drivers/net/wan/x25_asy.c netif_wake_queue(sl->dev); sl 188 drivers/net/wan/x25_asy.c static void x25_asy_bump(struct x25_asy *sl) sl 190 drivers/net/wan/x25_asy.c struct net_device *dev = sl->dev; sl 195 drivers/net/wan/x25_asy.c count = sl->rcount; sl 200 drivers/net/wan/x25_asy.c netdev_warn(sl->dev, "memory squeeze, dropping packet\n"); sl 205 drivers/net/wan/x25_asy.c skb_put_data(skb, sl->rbuff, count); sl 206 drivers/net/wan/x25_asy.c skb->protocol = x25_type_trans(skb, sl->dev); sl 218 drivers/net/wan/x25_asy.c static void x25_asy_encaps(struct x25_asy *sl, unsigned char *icp, int len) sl 221 drivers/net/wan/x25_asy.c int actual, count, mtu = sl->dev->mtu; sl 227 drivers/net/wan/x25_asy.c sl->dev->name); sl 228 drivers/net/wan/x25_asy.c sl->dev->stats.tx_dropped++; sl 229 drivers/net/wan/x25_asy.c x25_asy_unlock(sl); sl 234 drivers/net/wan/x25_asy.c count = x25_asy_esc(p, sl->xbuff, len); sl 244 drivers/net/wan/x25_asy.c set_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 245 drivers/net/wan/x25_asy.c actual = sl->tty->ops->write(sl->tty, sl->xbuff, count); sl 246 drivers/net/wan/x25_asy.c sl->xleft = count - actual; sl 247 drivers/net/wan/x25_asy.c sl->xhead = sl->xbuff + actual; sl 249 drivers/net/wan/x25_asy.c clear_bit(SLF_OUTWAIT, &sl->flags); /* reset outfill flag */ sl 259 drivers/net/wan/x25_asy.c struct x25_asy *sl = tty->disc_data; sl 262 drivers/net/wan/x25_asy.c if (!sl || sl->magic != X25_ASY_MAGIC || !netif_running(sl->dev)) sl 265 drivers/net/wan/x25_asy.c if (sl->xleft <= 0) { sl 268 drivers/net/wan/x25_asy.c sl->dev->stats.tx_packets++; sl 270 drivers/net/wan/x25_asy.c x25_asy_unlock(sl); sl 274 drivers/net/wan/x25_asy.c actual = tty->ops->write(tty, sl->xhead, sl->xleft); sl 275 drivers/net/wan/x25_asy.c sl->xleft -= actual; sl 276 drivers/net/wan/x25_asy.c sl->xhead += actual; sl 281 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 283 drivers/net/wan/x25_asy.c spin_lock(&sl->lock); sl 289 drivers/net/wan/x25_asy.c (tty_chars_in_buffer(sl->tty) || sl->xleft) ? sl 291 drivers/net/wan/x25_asy.c sl->xleft = 0; sl 292 drivers/net/wan/x25_asy.c clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 293 drivers/net/wan/x25_asy.c x25_asy_unlock(sl); sl 295 drivers/net/wan/x25_asy.c spin_unlock(&sl->lock); sl 303 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 306 drivers/net/wan/x25_asy.c if (!netif_running(sl->dev)) { sl 376 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 378 drivers/net/wan/x25_asy.c spin_lock(&sl->lock); sl 379 drivers/net/wan/x25_asy.c if (netif_queue_stopped(sl->dev) || sl->tty == NULL) { sl 380 drivers/net/wan/x25_asy.c spin_unlock(&sl->lock); sl 387 drivers/net/wan/x25_asy.c x25_asy_lock(sl); sl 389 drivers/net/wan/x25_asy.c x25_asy_encaps(sl, skb->data, skb->len); sl 392 drivers/net/wan/x25_asy.c spin_unlock(&sl->lock); sl 401 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 414 drivers/net/wan/x25_asy.c skb->protocol = x25_type_trans(skb, sl->dev); sl 420 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 433 drivers/net/wan/x25_asy.c skb->protocol = x25_type_trans(skb, sl->dev); sl 450 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 454 drivers/net/wan/x25_asy.c if (sl->tty == NULL) sl 466 drivers/net/wan/x25_asy.c sl->rbuff = kmalloc(len + 4, GFP_KERNEL); sl 467 drivers/net/wan/x25_asy.c if (sl->rbuff == NULL) sl 469 drivers/net/wan/x25_asy.c sl->xbuff = kmalloc(len + 4, GFP_KERNEL); sl 470 drivers/net/wan/x25_asy.c if (sl->xbuff == NULL) sl 473 drivers/net/wan/x25_asy.c sl->buffsize = len; sl 474 drivers/net/wan/x25_asy.c sl->rcount = 0; sl 475 drivers/net/wan/x25_asy.c sl->xleft = 0; sl 476 drivers/net/wan/x25_asy.c sl->flags &= (1 << SLF_INUSE); /* Clear ESCAPE & ERROR flags */ sl 488 drivers/net/wan/x25_asy.c kfree(sl->xbuff); sl 489 drivers/net/wan/x25_asy.c sl->xbuff = NULL; sl 491 drivers/net/wan/x25_asy.c kfree(sl->rbuff); sl 492 drivers/net/wan/x25_asy.c sl->rbuff = NULL; sl 501 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 503 drivers/net/wan/x25_asy.c spin_lock(&sl->lock); sl 504 drivers/net/wan/x25_asy.c if (sl->tty) sl 505 drivers/net/wan/x25_asy.c clear_bit(TTY_DO_WRITE_WAKEUP, &sl->tty->flags); sl 508 drivers/net/wan/x25_asy.c sl->rcount = 0; sl 509 drivers/net/wan/x25_asy.c sl->xleft = 0; sl 510 drivers/net/wan/x25_asy.c spin_unlock(&sl->lock); sl 524 drivers/net/wan/x25_asy.c struct x25_asy *sl = tty->disc_data; sl 526 drivers/net/wan/x25_asy.c if (!sl || sl->magic != X25_ASY_MAGIC || !netif_running(sl->dev)) sl 533 drivers/net/wan/x25_asy.c if (!test_and_set_bit(SLF_ERROR, &sl->flags)) sl 534 drivers/net/wan/x25_asy.c sl->dev->stats.rx_errors++; sl 538 drivers/net/wan/x25_asy.c x25_asy_unesc(sl, *cp++); sl 552 drivers/net/wan/x25_asy.c struct x25_asy *sl; sl 559 drivers/net/wan/x25_asy.c sl = x25_asy_alloc(); sl 560 drivers/net/wan/x25_asy.c if (sl == NULL) sl 563 drivers/net/wan/x25_asy.c sl->tty = tty; sl 564 drivers/net/wan/x25_asy.c tty->disc_data = sl; sl 570 drivers/net/wan/x25_asy.c sl->dev->type = ARPHRD_X25; sl 573 drivers/net/wan/x25_asy.c err = x25_asy_open(sl->dev); sl 575 drivers/net/wan/x25_asy.c x25_asy_free(sl); sl 591 drivers/net/wan/x25_asy.c struct x25_asy *sl = tty->disc_data; sl 595 drivers/net/wan/x25_asy.c if (!sl || sl->magic != X25_ASY_MAGIC) sl 599 drivers/net/wan/x25_asy.c if (sl->dev->flags & IFF_UP) sl 600 drivers/net/wan/x25_asy.c dev_close(sl->dev); sl 603 drivers/net/wan/x25_asy.c err = lapb_unregister(sl->dev); sl 609 drivers/net/wan/x25_asy.c sl->tty = NULL; sl 610 drivers/net/wan/x25_asy.c x25_asy_free(sl); sl 654 drivers/net/wan/x25_asy.c static void x25_asy_unesc(struct x25_asy *sl, unsigned char s) sl 659 drivers/net/wan/x25_asy.c if (!test_and_clear_bit(SLF_ERROR, &sl->flags) && sl 660 drivers/net/wan/x25_asy.c sl->rcount > 2) sl 661 drivers/net/wan/x25_asy.c x25_asy_bump(sl); sl 662 drivers/net/wan/x25_asy.c clear_bit(SLF_ESCAPE, &sl->flags); sl 663 drivers/net/wan/x25_asy.c sl->rcount = 0; sl 666 drivers/net/wan/x25_asy.c set_bit(SLF_ESCAPE, &sl->flags); sl 670 drivers/net/wan/x25_asy.c if (test_and_clear_bit(SLF_ESCAPE, &sl->flags)) sl 674 drivers/net/wan/x25_asy.c if (!test_bit(SLF_ERROR, &sl->flags)) { sl 675 drivers/net/wan/x25_asy.c if (sl->rcount < sl->buffsize) { sl 676 drivers/net/wan/x25_asy.c sl->rbuff[sl->rcount++] = s; sl 679 drivers/net/wan/x25_asy.c sl->dev->stats.rx_over_errors++; sl 680 drivers/net/wan/x25_asy.c set_bit(SLF_ERROR, &sl->flags); sl 689 drivers/net/wan/x25_asy.c struct x25_asy *sl = tty->disc_data; sl 692 drivers/net/wan/x25_asy.c if (!sl || sl->magic != X25_ASY_MAGIC) sl 697 drivers/net/wan/x25_asy.c if (copy_to_user((void __user *)arg, sl->dev->name, sl 698 drivers/net/wan/x25_asy.c strlen(sl->dev->name) + 1)) sl 710 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 711 drivers/net/wan/x25_asy.c if (sl->tty == NULL) sl 727 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 729 drivers/net/wan/x25_asy.c sl->magic = X25_ASY_MAGIC; sl 730 drivers/net/wan/x25_asy.c sl->dev = dev; sl 731 drivers/net/wan/x25_asy.c spin_lock_init(&sl->lock); sl 732 drivers/net/wan/x25_asy.c set_bit(SLF_INUSE, &sl->flags); sl 788 drivers/net/wan/x25_asy.c struct x25_asy *sl = netdev_priv(dev); sl 790 drivers/net/wan/x25_asy.c spin_lock_bh(&sl->lock); sl 791 drivers/net/wan/x25_asy.c if (sl->tty) sl 792 drivers/net/wan/x25_asy.c tty_hangup(sl->tty); sl 794 drivers/net/wan/x25_asy.c spin_unlock_bh(&sl->lock); sl 1857 drivers/net/wireless/intersil/hostap/hostap_ioctl.c iwe.u.qual.level = le16_to_cpu(scan->sl); sl 1861 drivers/net/wireless/intersil/hostap/hostap_ioctl.c HFA384X_LEVEL_TO_dBm(le16_to_cpu(scan->sl)); sl 290 drivers/net/wireless/intersil/hostap/hostap_proc.c (s16) le16_to_cpu(scanres->sl), sl 233 drivers/net/wireless/intersil/hostap/hostap_wlan.h __le16 sl; sl 246 drivers/net/wireless/intersil/hostap/hostap_wlan.h __le16 sl; sl 267 drivers/of/device.c ssize_t sl = of_device_get_modalias(dev, str, len - 2); sl 268 drivers/of/device.c if (sl < 0) sl 269 drivers/of/device.c return sl; sl 270 drivers/of/device.c if (sl > len - 2) sl 273 drivers/of/device.c str[sl++] = '\n'; sl 274 drivers/of/device.c str[sl] = 0; sl 275 drivers/of/device.c return sl; sl 321 drivers/of/device.c int sl; sl 330 drivers/of/device.c sl = of_device_get_modalias(dev, &env->buf[env->buflen-1], sl 332 drivers/of/device.c if (sl >= (sizeof(env->buf) - env->buflen)) sl 334 drivers/of/device.c env->buflen += sl; sl 28 drivers/pci/hotplug/ibmphp_core.c #define attn_on(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_ATTNON) sl 29 drivers/pci/hotplug/ibmphp_core.c #define attn_off(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_ATTNOFF) sl 30 drivers/pci/hotplug/ibmphp_core.c #define attn_LED_blink(sl) ibmphp_hpc_writeslot(sl, HPC_SLOT_BLINKLED) sl 31 drivers/pci/hotplug/ibmphp_core.c #define get_ctrl_revision(sl, rev) ibmphp_hpc_readslot(sl, READ_REVLEVEL, rev) sl 32 drivers/pci/hotplug/ibmphp_core.c #define get_hpc_options(sl, opt) ibmphp_hpc_readslot(sl, READ_HPCOPTIONS, opt) sl 61 drivers/pci/hotplug/ibmphp_core.c static inline int get_cur_bus_info(struct slot **sl) sl 64 drivers/pci/hotplug/ibmphp_core.c struct slot *slot_cur = *sl; sl 87 drivers/pci/hotplug/ibmphp_core.c *sl = slot_cur; sl 91 drivers/pci/hotplug/ibmphp_core.c static inline int slot_update(struct slot **sl) sl 94 drivers/pci/hotplug/ibmphp_core.c rc = ibmphp_hpc_readslot(*sl, READ_ALLSTAT, NULL); sl 98 drivers/pci/hotplug/ibmphp_core.c rc = get_cur_bus_info(sl); sl 1538 drivers/pci/hotplug/ibmphp_pci.c struct slot *sl = *slot_cur; sl 1546 drivers/pci/hotplug/ibmphp_pci.c rc = unconfigure_boot_card(sl); sl 1553 drivers/pci/hotplug/ibmphp_pci.c if (sl->func) { sl 1554 drivers/pci/hotplug/ibmphp_pci.c cur_func = sl->func; sl 1591 drivers/pci/hotplug/ibmphp_pci.c sl->func = NULL; sl 1592 drivers/pci/hotplug/ibmphp_pci.c *slot_cur = sl; sl 35 drivers/power/supply/bq27xxx_battery_hdq.c static int w1_bq27000_read(struct w1_slave *sl, unsigned int reg) sl 39 drivers/power/supply/bq27xxx_battery_hdq.c mutex_lock(&sl->master->bus_mutex); sl 40 drivers/power/supply/bq27xxx_battery_hdq.c w1_write_8(sl->master, HDQ_CMD_READ | reg); sl 41 drivers/power/supply/bq27xxx_battery_hdq.c val = w1_read_8(sl->master); sl 42 drivers/power/supply/bq27xxx_battery_hdq.c mutex_unlock(&sl->master->bus_mutex); sl 50 drivers/power/supply/bq27xxx_battery_hdq.c struct w1_slave *sl = dev_to_w1_slave(di->dev); sl 60 drivers/power/supply/bq27xxx_battery_hdq.c upper = w1_bq27000_read(sl, reg + 1); sl 66 drivers/power/supply/bq27xxx_battery_hdq.c lower = w1_bq27000_read(sl, reg); sl 70 drivers/power/supply/bq27xxx_battery_hdq.c upper = w1_bq27000_read(sl, reg + 1); sl 79 drivers/power/supply/bq27xxx_battery_hdq.c return w1_bq27000_read(sl, reg); sl 82 drivers/power/supply/bq27xxx_battery_hdq.c static int bq27xxx_battery_hdq_add_slave(struct w1_slave *sl) sl 86 drivers/power/supply/bq27xxx_battery_hdq.c di = devm_kzalloc(&sl->dev, sizeof(*di), GFP_KERNEL); sl 90 drivers/power/supply/bq27xxx_battery_hdq.c dev_set_drvdata(&sl->dev, di); sl 92 drivers/power/supply/bq27xxx_battery_hdq.c di->dev = &sl->dev; sl 100 drivers/power/supply/bq27xxx_battery_hdq.c static void bq27xxx_battery_hdq_remove_slave(struct w1_slave *sl) sl 102 drivers/power/supply/bq27xxx_battery_hdq.c struct bq27xxx_device_info *di = dev_get_drvdata(&sl->dev); sl 122 drivers/power/supply/ds2760_battery.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 127 drivers/power/supply/ds2760_battery.c mutex_lock(&sl->master->bus_mutex); sl 136 drivers/power/supply/ds2760_battery.c if (!w1_reset_select_slave(sl)) { sl 138 drivers/power/supply/ds2760_battery.c w1_write_8(sl->master, W1_DS2760_READ_DATA); sl 139 drivers/power/supply/ds2760_battery.c w1_write_8(sl->master, addr); sl 140 drivers/power/supply/ds2760_battery.c count = w1_read_block(sl->master, buf, count); sl 142 drivers/power/supply/ds2760_battery.c w1_write_8(sl->master, W1_DS2760_WRITE_DATA); sl 143 drivers/power/supply/ds2760_battery.c w1_write_8(sl->master, addr); sl 144 drivers/power/supply/ds2760_battery.c w1_write_block(sl->master, buf, count); sl 150 drivers/power/supply/ds2760_battery.c mutex_unlock(&sl->master->bus_mutex); sl 171 drivers/power/supply/ds2760_battery.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 176 drivers/power/supply/ds2760_battery.c mutex_lock(&sl->master->bus_mutex); sl 178 drivers/power/supply/ds2760_battery.c if (w1_reset_select_slave(sl) == 0) { sl 179 drivers/power/supply/ds2760_battery.c w1_write_8(sl->master, cmd); sl 180 drivers/power/supply/ds2760_battery.c w1_write_8(sl->master, addr); sl 183 drivers/power/supply/ds2760_battery.c mutex_unlock(&sl->master->bus_mutex); sl 677 drivers/power/supply/ds2760_battery.c static int w1_ds2760_add_slave(struct w1_slave *sl) sl 681 drivers/power/supply/ds2760_battery.c struct device *dev = &sl->dev; sl 729 drivers/power/supply/ds2760_battery.c sl->family_data = di; sl 780 drivers/power/supply/ds2760_battery.c static void w1_ds2760_remove_slave(struct w1_slave *sl) sl 782 drivers/power/supply/ds2760_battery.c struct ds2760_device_info *di = sl->family_data; sl 323 drivers/power/supply/max1721x_battery.c static int devm_w1_max1721x_add_device(struct w1_slave *sl) sl 328 drivers/power/supply/max1721x_battery.c info = devm_kzalloc(&sl->dev, sizeof(*info), GFP_KERNEL); sl 332 drivers/power/supply/max1721x_battery.c sl->family_data = (void *)info; sl 333 drivers/power/supply/max1721x_battery.c info->w1_dev = &sl->dev; sl 342 drivers/power/supply/max1721x_battery.c "max1721x-%012X", (unsigned int)sl->reg_num.id); sl 424 drivers/power/supply/max1721x_battery.c info->bat = devm_power_supply_register(&sl->dev, &info->bat_desc, sl 5454 drivers/s390/block/dasd_eckd.c int len, sl, sct; sl 5478 drivers/s390/block/dasd_eckd.c for (sl = 0; sl < 4; sl++) { sl 5481 drivers/s390/block/dasd_eckd.c (8 * sl), ((8 * sl) + 7)); sl 5485 drivers/s390/block/dasd_eckd.c irb->ecw[8 * sl + sct]); sl 5556 drivers/s390/block/dasd_eckd.c int len, sl, sct, residual; sl 5625 drivers/s390/block/dasd_eckd.c for (sl = 0; sl < 2; sl++) { sl 5628 drivers/s390/block/dasd_eckd.c (8 * sl), ((8 * sl) + 7)); sl 5632 drivers/s390/block/dasd_eckd.c rcq[8 * sl + sct]); sl 5645 drivers/s390/block/dasd_eckd.c for (sl = 0; sl < 4; sl++) { sl 5648 drivers/s390/block/dasd_eckd.c (8 * sl), ((8 * sl) + 7)); sl 5651 drivers/s390/block/dasd_eckd.c sense[8 * sl + sct]); sl 673 drivers/s390/block/dasd_fba.c int len, sl, sct, count; sl 692 drivers/s390/block/dasd_fba.c for (sl = 0; sl < 4; sl++) { sl 695 drivers/s390/block/dasd_fba.c (8 * sl), ((8 * sl) + 7)); sl 699 drivers/s390/block/dasd_fba.c irb->ecw[8 * sl + sct]); sl 263 drivers/s390/cio/qdio.h struct sl *sl; sl 193 drivers/s390/cio/qdio_setup.c q->sl = (struct sl *)((char *)q->slib + PAGE_SIZE / 2); sl 206 drivers/s390/cio/qdio_setup.c q->slib->sla = (unsigned long)q->sl; sl 211 drivers/s390/cio/qdio_setup.c q->sl->element[j].sbal = virt_to_phys(q->sbal[j]); sl 405 drivers/s390/cio/qdio_setup.c (unsigned long)irq_ptr_qs[i]->sl; sl 293 drivers/s390/scsi/zfcp_aux.c static void zfcp_print_sl(struct seq_file *m, struct service_level *sl) sl 296 drivers/s390/scsi/zfcp_aux.c container_of(sl, struct zfcp_adapter, service_level); sl 1834 drivers/scsi/gdth.c struct scatterlist *sl; sl 1841 drivers/scsi/gdth.c scsi_for_each_sg(scp, sl, max_sg, i) { sl 1843 drivers/scsi/gdth.c cpnow = (u16)sl->length; sl 1849 drivers/scsi/gdth.c if (!sg_page(sl)) { sl 1855 drivers/scsi/gdth.c address = kmap_atomic(sg_page(sl)) + sl->offset; sl 1857 drivers/scsi/gdth.c flush_dcache_page(sg_page(sl)); sl 2072 drivers/scsi/gdth.c struct scatterlist *sl; sl 2076 drivers/scsi/gdth.c scsi_for_each_sg(scp, sl, sgcnt, i) { sl 2077 drivers/scsi/gdth.c cmdp->u.cache64.sg_lst[i].sg_ptr = sg_dma_address(sl); sl 2078 drivers/scsi/gdth.c cmdp->u.cache64.sg_lst[i].sg_len = sg_dma_len(sl); sl 2081 drivers/scsi/gdth.c struct scatterlist *sl; sl 2085 drivers/scsi/gdth.c scsi_for_each_sg(scp, sl, sgcnt, i) { sl 2086 drivers/scsi/gdth.c cmdp->u.cache.sg_lst[i].sg_ptr = sg_dma_address(sl); sl 2087 drivers/scsi/gdth.c cmdp->u.cache.sg_lst[i].sg_len = sg_dma_len(sl); sl 2231 drivers/scsi/gdth.c struct scatterlist *sl; sl 2235 drivers/scsi/gdth.c scsi_for_each_sg(scp, sl, sgcnt, i) { sl 2236 drivers/scsi/gdth.c cmdp->u.raw64.sg_lst[i].sg_ptr = sg_dma_address(sl); sl 2237 drivers/scsi/gdth.c cmdp->u.raw64.sg_lst[i].sg_len = sg_dma_len(sl); sl 2240 drivers/scsi/gdth.c struct scatterlist *sl; sl 2244 drivers/scsi/gdth.c scsi_for_each_sg(scp, sl, sgcnt, i) { sl 2245 drivers/scsi/gdth.c cmdp->u.raw.sg_lst[i].sg_ptr = sg_dma_address(sl); sl 2246 drivers/scsi/gdth.c cmdp->u.raw.sg_lst[i].sg_len = sg_dma_len(sl); sl 2676 drivers/scsi/megaraid/megaraid_sas_base.c int i, sl, outstanding; sl 2789 drivers/scsi/megaraid/megaraid_sas_base.c for (sl = 0; sl < 10; sl++) sl 772 drivers/scsi/scsi_debug.c int sl, asc; sl 793 drivers/scsi/scsi_debug.c sl = sbuff[7] + 8; sl 794 drivers/scsi/scsi_debug.c sbuff[7] = sl; sl 795 drivers/scsi/scsi_debug.c sbuff[sl] = 0x2; sl 796 drivers/scsi/scsi_debug.c sbuff[sl + 1] = 0x6; sl 797 drivers/scsi/scsi_debug.c memcpy(sbuff + sl + 4, sks, 3); sl 239 drivers/slimbus/messaging.c u16 sl; sl 248 drivers/slimbus/messaging.c sl = slim_slicesize(msg->num_bytes); sl 251 drivers/slimbus/messaging.c msg->start_offset, msg->num_bytes, mc, sl); sl 253 drivers/slimbus/messaging.c txn->ec = ((sl | (1 << 3)) | ((msg->start_offset & 0xFFF) << 4)); sl 653 drivers/staging/wlan-ng/hfa384x.h u16 sl; sl 688 drivers/staging/wlan-ng/hfa384x.h __le16 sl; sl 421 drivers/staging/wlan-ng/prism2mgmt.c req->signal.data = le16_to_cpu(item->sl); sl 1053 drivers/staging/wlan-ng/prism2sta.c sr->result[i].sl, sr->result[i].bcnint); sl 26 drivers/w1/slaves/w1_ds2405.c static int w1_ds2405_select(struct w1_slave *sl, bool only_active) sl 28 drivers/w1/slaves/w1_ds2405.c struct w1_master *dev = sl->master; sl 30 drivers/w1/slaves/w1_ds2405.c u64 dev_addr = le64_to_cpu(*(u64 *)&sl->reg_num); sl 60 drivers/w1/slaves/w1_ds2405.c static int w1_ds2405_read_pio(struct w1_slave *sl) sl 62 drivers/w1/slaves/w1_ds2405.c if (w1_ds2405_select(sl, true)) sl 65 drivers/w1/slaves/w1_ds2405.c if (w1_ds2405_select(sl, false)) sl 74 drivers/w1/slaves/w1_ds2405.c struct w1_slave *sl = dev_to_w1_slave(device); sl 75 drivers/w1/slaves/w1_ds2405.c struct w1_master *dev = sl->master; sl 85 drivers/w1/slaves/w1_ds2405.c if (!w1_ds2405_select(sl, false)) { sl 111 drivers/w1/slaves/w1_ds2405.c struct w1_slave *sl = dev_to_w1_slave(device); sl 112 drivers/w1/slaves/w1_ds2405.c struct w1_master *dev = sl->master; sl 121 drivers/w1/slaves/w1_ds2405.c ret = w1_ds2405_read_pio(sl); sl 141 drivers/w1/slaves/w1_ds2405.c struct w1_slave *sl = dev_to_w1_slave(device); sl 142 drivers/w1/slaves/w1_ds2405.c struct w1_master *dev = sl->master; sl 163 drivers/w1/slaves/w1_ds2405.c current_pio = w1_ds2405_read_pio(sl); sl 182 drivers/w1/slaves/w1_ds2405.c u64 dev_addr = le64_to_cpu(*(u64 *)&sl->reg_num); sl 31 drivers/w1/slaves/w1_ds2406.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 41 drivers/w1/slaves/w1_ds2406.c mutex_lock(&sl->master->bus_mutex); sl 43 drivers/w1/slaves/w1_ds2406.c if (w1_reset_select_slave(sl)) { sl 44 drivers/w1/slaves/w1_ds2406.c mutex_unlock(&sl->master->bus_mutex); sl 48 drivers/w1/slaves/w1_ds2406.c w1_write_block(sl->master, w1_buf, 3); sl 49 drivers/w1/slaves/w1_ds2406.c w1_read_block(sl->master, w1_buf+3, 3); sl 57 drivers/w1/slaves/w1_ds2406.c mutex_unlock(&sl->master->bus_mutex); sl 67 drivers/w1/slaves/w1_ds2406.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 76 drivers/w1/slaves/w1_ds2406.c mutex_lock(&sl->master->bus_mutex); sl 78 drivers/w1/slaves/w1_ds2406.c if (w1_reset_select_slave(sl)) { sl 79 drivers/w1/slaves/w1_ds2406.c mutex_unlock(&sl->master->bus_mutex); sl 84 drivers/w1/slaves/w1_ds2406.c w1_write_block(sl->master, w1_buf, 4); sl 85 drivers/w1/slaves/w1_ds2406.c w1_read_block(sl->master, w1_buf+4, 2); sl 89 drivers/w1/slaves/w1_ds2406.c w1_write_8(sl->master, 0xFF); sl 93 drivers/w1/slaves/w1_ds2406.c mutex_unlock(&sl->master->bus_mutex); sl 117 drivers/w1/slaves/w1_ds2406.c static int w1_f12_add_slave(struct w1_slave *sl) sl 124 drivers/w1/slaves/w1_ds2406.c &sl->dev.kobj, sl 128 drivers/w1/slaves/w1_ds2406.c sysfs_remove_bin_file(&sl->dev.kobj, sl 133 drivers/w1/slaves/w1_ds2406.c static void w1_f12_remove_slave(struct w1_slave *sl) sl 137 drivers/w1/slaves/w1_ds2406.c sysfs_remove_bin_file(&sl->dev.kobj, sl 38 drivers/w1/slaves/w1_ds2408.c static int _read_reg(struct w1_slave *sl, u8 address, unsigned char* buf) sl 41 drivers/w1/slaves/w1_ds2408.c dev_dbg(&sl->dev, sl 43 drivers/w1/slaves/w1_ds2408.c sl, (unsigned int)address, buf); sl 48 drivers/w1/slaves/w1_ds2408.c mutex_lock(&sl->master->bus_mutex); sl 49 drivers/w1/slaves/w1_ds2408.c dev_dbg(&sl->dev, "mutex locked"); sl 51 drivers/w1/slaves/w1_ds2408.c if (w1_reset_select_slave(sl)) { sl 52 drivers/w1/slaves/w1_ds2408.c mutex_unlock(&sl->master->bus_mutex); sl 59 drivers/w1/slaves/w1_ds2408.c w1_write_block(sl->master, wrbuf, 3); sl 60 drivers/w1/slaves/w1_ds2408.c *buf = w1_read_8(sl->master); sl 62 drivers/w1/slaves/w1_ds2408.c mutex_unlock(&sl->master->bus_mutex); sl 63 drivers/w1/slaves/w1_ds2408.c dev_dbg(&sl->dev, "mutex unlocked"); sl 140 drivers/w1/slaves/w1_ds2408.c static bool optional_read_back_valid(struct w1_slave *sl, u8 expected) sl 144 drivers/w1/slaves/w1_ds2408.c if (w1_reset_resume_command(sl->master)) sl 151 drivers/w1/slaves/w1_ds2408.c w1_write_block(sl->master, w1_buf, 3); sl 153 drivers/w1/slaves/w1_ds2408.c return (w1_read_8(sl->master) == expected); sl 156 drivers/w1/slaves/w1_ds2408.c static bool optional_read_back_valid(struct w1_slave *sl, u8 expected) sl 166 drivers/w1/slaves/w1_ds2408.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 174 drivers/w1/slaves/w1_ds2408.c dev_dbg(&sl->dev, "locking mutex for write_output"); sl 175 drivers/w1/slaves/w1_ds2408.c mutex_lock(&sl->master->bus_mutex); sl 176 drivers/w1/slaves/w1_ds2408.c dev_dbg(&sl->dev, "mutex locked"); sl 178 drivers/w1/slaves/w1_ds2408.c if (w1_reset_select_slave(sl)) sl 186 drivers/w1/slaves/w1_ds2408.c w1_write_block(sl->master, w1_buf, 3); sl 188 drivers/w1/slaves/w1_ds2408.c if (w1_read_8(sl->master) == W1_F29_SUCCESS_CONFIRM_BYTE && sl 189 drivers/w1/slaves/w1_ds2408.c optional_read_back_valid(sl, *buf)) { sl 194 drivers/w1/slaves/w1_ds2408.c if (w1_reset_resume_command(sl->master)) sl 200 drivers/w1/slaves/w1_ds2408.c mutex_unlock(&sl->master->bus_mutex); sl 202 drivers/w1/slaves/w1_ds2408.c dev_dbg(&sl->dev, "%s, mutex unlocked retries:%d\n", sl 216 drivers/w1/slaves/w1_ds2408.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 222 drivers/w1/slaves/w1_ds2408.c mutex_lock(&sl->master->bus_mutex); sl 224 drivers/w1/slaves/w1_ds2408.c if (w1_reset_select_slave(sl)) sl 228 drivers/w1/slaves/w1_ds2408.c w1_write_8(sl->master, W1_F29_FUNC_RESET_ACTIVITY_LATCHES); sl 229 drivers/w1/slaves/w1_ds2408.c if (w1_read_8(sl->master) == W1_F29_SUCCESS_CONFIRM_BYTE) { sl 230 drivers/w1/slaves/w1_ds2408.c mutex_unlock(&sl->master->bus_mutex); sl 233 drivers/w1/slaves/w1_ds2408.c if (w1_reset_resume_command(sl->master)) sl 238 drivers/w1/slaves/w1_ds2408.c mutex_unlock(&sl->master->bus_mutex); sl 246 drivers/w1/slaves/w1_ds2408.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 253 drivers/w1/slaves/w1_ds2408.c mutex_lock(&sl->master->bus_mutex); sl 255 drivers/w1/slaves/w1_ds2408.c if (w1_reset_select_slave(sl)) sl 264 drivers/w1/slaves/w1_ds2408.c w1_write_block(sl->master, w1_buf, 4); sl 265 drivers/w1/slaves/w1_ds2408.c if (w1_reset_resume_command(sl->master)) sl 272 drivers/w1/slaves/w1_ds2408.c w1_write_block(sl->master, w1_buf, 3); sl 273 drivers/w1/slaves/w1_ds2408.c if (w1_read_8(sl->master) == *buf) { sl 275 drivers/w1/slaves/w1_ds2408.c mutex_unlock(&sl->master->bus_mutex); sl 280 drivers/w1/slaves/w1_ds2408.c mutex_unlock(&sl->master->bus_mutex); sl 291 drivers/w1/slaves/w1_ds2408.c static int w1_f29_disable_test_mode(struct w1_slave *sl) sl 295 drivers/w1/slaves/w1_ds2408.c u64 rn = le64_to_cpu(*((u64*)&sl->reg_num)); sl 300 drivers/w1/slaves/w1_ds2408.c mutex_lock(&sl->master->bus_mutex); sl 302 drivers/w1/slaves/w1_ds2408.c res = w1_reset_bus(sl->master); sl 305 drivers/w1/slaves/w1_ds2408.c w1_write_block(sl->master, magic, ARRAY_SIZE(magic)); sl 307 drivers/w1/slaves/w1_ds2408.c res = w1_reset_bus(sl->master); sl 309 drivers/w1/slaves/w1_ds2408.c mutex_unlock(&sl->master->bus_mutex); sl 31 drivers/w1/slaves/w1_ds2413.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 36 drivers/w1/slaves/w1_ds2413.c dev_dbg(&sl->dev, sl 45 drivers/w1/slaves/w1_ds2413.c mutex_lock(&sl->master->bus_mutex); sl 46 drivers/w1/slaves/w1_ds2413.c dev_dbg(&sl->dev, "mutex locked"); sl 49 drivers/w1/slaves/w1_ds2413.c if (w1_reset_select_slave(sl)) sl 53 drivers/w1/slaves/w1_ds2413.c w1_write_8(sl->master, W1_F3A_FUNC_PIO_ACCESS_READ); sl 55 drivers/w1/slaves/w1_ds2413.c state = w1_read_8(sl->master); sl 63 drivers/w1/slaves/w1_ds2413.c dev_warn(&sl->dev, "slave device did not respond to PIO_ACCESS_READ, " \ sl 68 drivers/w1/slaves/w1_ds2413.c if (w1_reset_resume_command(sl->master)) sl 71 drivers/w1/slaves/w1_ds2413.c dev_warn(&sl->dev, "PIO_ACCESS_READ error, retries left: %d\n", retries); sl 75 drivers/w1/slaves/w1_ds2413.c mutex_unlock(&sl->master->bus_mutex); sl 76 drivers/w1/slaves/w1_ds2413.c dev_dbg(&sl->dev, "%s, mutex unlocked, retries: %d\n", sl 87 drivers/w1/slaves/w1_ds2413.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 95 drivers/w1/slaves/w1_ds2413.c dev_dbg(&sl->dev, "locking mutex for write_output"); sl 96 drivers/w1/slaves/w1_ds2413.c mutex_lock(&sl->master->bus_mutex); sl 97 drivers/w1/slaves/w1_ds2413.c dev_dbg(&sl->dev, "mutex locked"); sl 99 drivers/w1/slaves/w1_ds2413.c if (w1_reset_select_slave(sl)) sl 110 drivers/w1/slaves/w1_ds2413.c w1_write_block(sl->master, w1_buf, 3); sl 112 drivers/w1/slaves/w1_ds2413.c if (w1_read_8(sl->master) == W1_F3A_SUCCESS_CONFIRM_BYTE) { sl 116 drivers/w1/slaves/w1_ds2413.c if (w1_reset_resume_command(sl->master)) sl 119 drivers/w1/slaves/w1_ds2413.c dev_warn(&sl->dev, "PIO_ACCESS_WRITE error, retries left: %d\n", retries); sl 123 drivers/w1/slaves/w1_ds2413.c mutex_unlock(&sl->master->bus_mutex); sl 124 drivers/w1/slaves/w1_ds2413.c dev_dbg(&sl->dev, "%s, mutex unlocked, retries: %d\n", sl 33 drivers/w1/slaves/w1_ds2423.c struct w1_slave *sl = dev_to_w1_slave(device); sl 34 drivers/w1/slaves/w1_ds2423.c struct w1_master *dev = sl->master; sl 51 drivers/w1/slaves/w1_ds2423.c if (!w1_reset_select_slave(sl)) { sl 64 drivers/w1/slaves/w1_ds2431.c static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf) sl 75 drivers/w1/slaves/w1_ds2431.c if (w1_reset_select_slave(sl)) sl 78 drivers/w1/slaves/w1_ds2431.c w1_write_block(sl->master, wrbuf, 3); sl 79 drivers/w1/slaves/w1_ds2431.c w1_read_block(sl->master, buf, count); sl 81 drivers/w1/slaves/w1_ds2431.c if (w1_reset_select_slave(sl)) sl 84 drivers/w1/slaves/w1_ds2431.c w1_write_block(sl->master, wrbuf, 3); sl 85 drivers/w1/slaves/w1_ds2431.c w1_read_block(sl->master, cmp, count); sl 91 drivers/w1/slaves/w1_ds2431.c dev_err(&sl->dev, "proof reading failed %d times\n", sl 101 drivers/w1/slaves/w1_ds2431.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 108 drivers/w1/slaves/w1_ds2431.c mutex_lock(&sl->master->bus_mutex); sl 119 drivers/w1/slaves/w1_ds2431.c if (w1_f2d_readblock(sl, off, block_read, buf) < 0) sl 127 drivers/w1/slaves/w1_ds2431.c mutex_unlock(&sl->master->bus_mutex); sl 145 drivers/w1/slaves/w1_ds2431.c static int w1_f2d_write(struct w1_slave *sl, int addr, int len, const u8 *data) sl 155 drivers/w1/slaves/w1_ds2431.c if (w1_reset_select_slave(sl)) sl 162 drivers/w1/slaves/w1_ds2431.c w1_write_block(sl->master, wrbuf, 3); sl 163 drivers/w1/slaves/w1_ds2431.c w1_write_block(sl->master, data, len); sl 166 drivers/w1/slaves/w1_ds2431.c if (w1_reset_select_slave(sl)) sl 169 drivers/w1/slaves/w1_ds2431.c w1_write_8(sl->master, W1_F2D_READ_SCRATCH); sl 170 drivers/w1/slaves/w1_ds2431.c w1_read_block(sl->master, rdbuf, len + 3); sl 179 drivers/w1/slaves/w1_ds2431.c dev_err(&sl->dev, sl 187 drivers/w1/slaves/w1_ds2431.c if (w1_reset_select_slave(sl)) sl 192 drivers/w1/slaves/w1_ds2431.c w1_write_block(sl->master, wrbuf, 4); sl 198 drivers/w1/slaves/w1_ds2431.c w1_reset_bus(sl->master); sl 207 drivers/w1/slaves/w1_ds2431.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 215 drivers/w1/slaves/w1_ds2431.c mutex_lock(&sl->master->bus_mutex); sl 227 drivers/w1/slaves/w1_ds2431.c if (w1_f2d_readblock(sl, addr & ~W1_F2D_SCRATCH_MASK, sl 241 drivers/w1/slaves/w1_ds2431.c if (w1_f2d_write(sl, addr & ~W1_F2D_SCRATCH_MASK, sl 249 drivers/w1/slaves/w1_ds2431.c if (w1_f2d_write(sl, addr, copy, buf) < 0) { sl 260 drivers/w1/slaves/w1_ds2431.c mutex_unlock(&sl->master->bus_mutex); sl 61 drivers/w1/slaves/w1_ds2433.c static int w1_f23_refresh_block(struct w1_slave *sl, struct w1_f23_data *data, sl 70 drivers/w1/slaves/w1_ds2433.c if (w1_reset_select_slave(sl)) { sl 78 drivers/w1/slaves/w1_ds2433.c w1_write_block(sl->master, wrbuf, 3); sl 79 drivers/w1/slaves/w1_ds2433.c w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); sl 93 drivers/w1/slaves/w1_ds2433.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 95 drivers/w1/slaves/w1_ds2433.c struct w1_f23_data *data = sl->family_data; sl 104 drivers/w1/slaves/w1_ds2433.c mutex_lock(&sl->master->bus_mutex); sl 111 drivers/w1/slaves/w1_ds2433.c if (w1_f23_refresh_block(sl, data, i)) { sl 121 drivers/w1/slaves/w1_ds2433.c if (w1_reset_select_slave(sl)) { sl 129 drivers/w1/slaves/w1_ds2433.c w1_write_block(sl->master, wrbuf, 3); sl 130 drivers/w1/slaves/w1_ds2433.c w1_read_block(sl->master, buf, count); sl 135 drivers/w1/slaves/w1_ds2433.c mutex_unlock(&sl->master->bus_mutex); sl 152 drivers/w1/slaves/w1_ds2433.c static int w1_f23_write(struct w1_slave *sl, int addr, int len, const u8 *data) sl 155 drivers/w1/slaves/w1_ds2433.c struct w1_f23_data *f23 = sl->family_data; sl 162 drivers/w1/slaves/w1_ds2433.c if (w1_reset_select_slave(sl)) sl 169 drivers/w1/slaves/w1_ds2433.c w1_write_block(sl->master, wrbuf, 3); sl 170 drivers/w1/slaves/w1_ds2433.c w1_write_block(sl->master, data, len); sl 173 drivers/w1/slaves/w1_ds2433.c if (w1_reset_select_slave(sl)) sl 176 drivers/w1/slaves/w1_ds2433.c w1_write_8(sl->master, W1_F23_READ_SCRATCH); sl 177 drivers/w1/slaves/w1_ds2433.c w1_read_block(sl->master, rdbuf, len + 3); sl 185 drivers/w1/slaves/w1_ds2433.c if (w1_reset_select_slave(sl)) sl 190 drivers/w1/slaves/w1_ds2433.c w1_write_block(sl->master, wrbuf, 4); sl 196 drivers/w1/slaves/w1_ds2433.c w1_reset_bus(sl->master); sl 207 drivers/w1/slaves/w1_ds2433.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 216 drivers/w1/slaves/w1_ds2433.c dev_err(&sl->dev, "invalid offset/count off=%d cnt=%zd\n", sl 224 drivers/w1/slaves/w1_ds2433.c dev_err(&sl->dev, "bad CRC at offset %d\n", (int)off); sl 230 drivers/w1/slaves/w1_ds2433.c mutex_lock(&sl->master->bus_mutex); sl 240 drivers/w1/slaves/w1_ds2433.c if (w1_f23_write(sl, addr, len, &buf[idx]) < 0) { sl 248 drivers/w1/slaves/w1_ds2433.c mutex_unlock(&sl->master->bus_mutex); sl 269 drivers/w1/slaves/w1_ds2433.c static int w1_f23_add_slave(struct w1_slave *sl) sl 277 drivers/w1/slaves/w1_ds2433.c sl->family_data = data; sl 283 drivers/w1/slaves/w1_ds2433.c static void w1_f23_remove_slave(struct w1_slave *sl) sl 286 drivers/w1/slaves/w1_ds2433.c kfree(sl->family_data); sl 287 drivers/w1/slaves/w1_ds2433.c sl->family_data = NULL; sl 52 drivers/w1/slaves/w1_ds2438.c static int w1_ds2438_get_page(struct w1_slave *sl, int pageno, u8 *buf) sl 62 drivers/w1/slaves/w1_ds2438.c if (w1_reset_select_slave(sl)) sl 66 drivers/w1/slaves/w1_ds2438.c w1_write_block(sl->master, w1_buf, 2); sl 68 drivers/w1/slaves/w1_ds2438.c if (w1_reset_select_slave(sl)) sl 72 drivers/w1/slaves/w1_ds2438.c w1_write_block(sl->master, w1_buf, 2); sl 74 drivers/w1/slaves/w1_ds2438.c count = w1_read_block(sl->master, buf, DS2438_PAGE_SIZE + 1); sl 86 drivers/w1/slaves/w1_ds2438.c static int w1_ds2438_get_temperature(struct w1_slave *sl, int16_t *temperature) sl 94 drivers/w1/slaves/w1_ds2438.c mutex_lock(&sl->master->bus_mutex); sl 97 drivers/w1/slaves/w1_ds2438.c if (w1_reset_select_slave(sl)) sl 99 drivers/w1/slaves/w1_ds2438.c w1_write_8(sl->master, W1_DS2438_CONVERT_TEMP); sl 101 drivers/w1/slaves/w1_ds2438.c mutex_unlock(&sl->master->bus_mutex); sl 108 drivers/w1/slaves/w1_ds2438.c if (mutex_lock_interruptible(&sl->master->bus_mutex) != 0) { sl 116 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) { sl 122 drivers/w1/slaves/w1_ds2438.c mutex_unlock(&sl->master->bus_mutex); sl 128 drivers/w1/slaves/w1_ds2438.c static int w1_ds2438_change_config_bit(struct w1_slave *sl, u8 mask, u8 value) sl 136 drivers/w1/slaves/w1_ds2438.c if (w1_reset_select_slave(sl)) sl 140 drivers/w1/slaves/w1_ds2438.c w1_write_block(sl->master, w1_buf, 2); sl 142 drivers/w1/slaves/w1_ds2438.c if (w1_reset_select_slave(sl)) sl 146 drivers/w1/slaves/w1_ds2438.c w1_write_block(sl->master, w1_buf, 2); sl 149 drivers/w1/slaves/w1_ds2438.c status = w1_read_8(sl->master); sl 168 drivers/w1/slaves/w1_ds2438.c if (w1_reset_select_slave(sl)) sl 173 drivers/w1/slaves/w1_ds2438.c w1_write_block(sl->master, w1_buf, 3); sl 175 drivers/w1/slaves/w1_ds2438.c if (w1_reset_select_slave(sl)) sl 179 drivers/w1/slaves/w1_ds2438.c w1_write_block(sl->master, w1_buf, 2); sl 187 drivers/w1/slaves/w1_ds2438.c static int w1_ds2438_get_voltage(struct w1_slave *sl, sl 196 drivers/w1/slaves/w1_ds2438.c mutex_lock(&sl->master->bus_mutex); sl 198 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_change_config_bit(sl, DS2438_STATUS_AD, adc_input)) { sl 204 drivers/w1/slaves/w1_ds2438.c if (w1_reset_select_slave(sl)) sl 206 drivers/w1/slaves/w1_ds2438.c w1_write_8(sl->master, W1_DS2438_CONVERT_VOLTAGE); sl 208 drivers/w1/slaves/w1_ds2438.c mutex_unlock(&sl->master->bus_mutex); sl 215 drivers/w1/slaves/w1_ds2438.c if (mutex_lock_interruptible(&sl->master->bus_mutex) != 0) { sl 223 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) { sl 230 drivers/w1/slaves/w1_ds2438.c mutex_unlock(&sl->master->bus_mutex); sl 236 drivers/w1/slaves/w1_ds2438.c static int w1_ds2438_get_current(struct w1_slave *sl, int16_t *voltage) sl 241 drivers/w1/slaves/w1_ds2438.c mutex_lock(&sl->master->bus_mutex); sl 243 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) { sl 250 drivers/w1/slaves/w1_ds2438.c mutex_unlock(&sl->master->bus_mutex); sl 259 drivers/w1/slaves/w1_ds2438.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 265 drivers/w1/slaves/w1_ds2438.c mutex_lock(&sl->master->bus_mutex); sl 267 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_change_config_bit(sl, DS2438_STATUS_IAD, *buf & 0x01) == 0) sl 272 drivers/w1/slaves/w1_ds2438.c mutex_unlock(&sl->master->bus_mutex); sl 281 drivers/w1/slaves/w1_ds2438.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 290 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_get_current(sl, &voltage) == 0) { sl 302 drivers/w1/slaves/w1_ds2438.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 311 drivers/w1/slaves/w1_ds2438.c mutex_lock(&sl->master->bus_mutex); sl 317 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_get_page(sl, 0, w1_buf) == 0) { sl 323 drivers/w1/slaves/w1_ds2438.c mutex_unlock(&sl->master->bus_mutex); sl 332 drivers/w1/slaves/w1_ds2438.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 341 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_get_temperature(sl, &temp) == 0) { sl 353 drivers/w1/slaves/w1_ds2438.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 362 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_get_voltage(sl, DS2438_ADC_INPUT_VAD, &voltage) == 0) { sl 374 drivers/w1/slaves/w1_ds2438.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 383 drivers/w1/slaves/w1_ds2438.c if (w1_ds2438_get_voltage(sl, DS2438_ADC_INPUT_VDD, &voltage) == 0) { sl 40 drivers/w1/slaves/w1_ds250x.c int (*read)(struct w1_slave *sl, int pageno); sl 46 drivers/w1/slaves/w1_ds250x.c static int w1_ds2502_read_page(struct w1_slave *sl, int pageno) sl 48 drivers/w1/slaves/w1_ds250x.c struct w1_eprom_data *data = sl->family_data; sl 57 drivers/w1/slaves/w1_ds250x.c mutex_lock(&sl->master->bus_mutex); sl 59 drivers/w1/slaves/w1_ds250x.c if (w1_reset_select_slave(sl)) sl 65 drivers/w1/slaves/w1_ds250x.c w1_write_block(sl->master, buf, 3); sl 67 drivers/w1/slaves/w1_ds250x.c crc8 = w1_read_8(sl->master); sl 71 drivers/w1/slaves/w1_ds250x.c w1_read_block(sl->master, &data->eprom[pgoff], W1_PAGE_SIZE); sl 73 drivers/w1/slaves/w1_ds250x.c crc8 = w1_read_8(sl->master); sl 80 drivers/w1/slaves/w1_ds250x.c mutex_unlock(&sl->master->bus_mutex); sl 84 drivers/w1/slaves/w1_ds250x.c static int w1_ds2505_read_page(struct w1_slave *sl, int pageno) sl 86 drivers/w1/slaves/w1_ds250x.c struct w1_eprom_data *data = sl->family_data; sl 98 drivers/w1/slaves/w1_ds250x.c mutex_lock(&sl->master->bus_mutex); sl 101 drivers/w1/slaves/w1_ds250x.c if (w1_reset_select_slave(sl)) sl 107 drivers/w1/slaves/w1_ds250x.c w1_write_block(sl->master, buf, 3); sl 108 drivers/w1/slaves/w1_ds250x.c w1_read_block(sl->master, buf + 3, 3); /* redir, crc16 */ sl 125 drivers/w1/slaves/w1_ds250x.c w1_read_block(sl->master, &data->eprom[epoff], W1_PAGE_SIZE); sl 126 drivers/w1/slaves/w1_ds250x.c w1_read_block(sl->master, buf, 2); /* crc16 */ sl 136 drivers/w1/slaves/w1_ds250x.c mutex_unlock(&sl->master->bus_mutex); sl 142 drivers/w1/slaves/w1_ds250x.c struct w1_slave *sl = priv; sl 143 drivers/w1/slaves/w1_ds250x.c struct w1_eprom_data *data = sl->family_data; sl 156 drivers/w1/slaves/w1_ds250x.c ret = data->read(sl, i++); sl 165 drivers/w1/slaves/w1_ds250x.c static int w1_eprom_add_slave(struct w1_slave *sl) sl 170 drivers/w1/slaves/w1_ds250x.c .dev = &sl->dev, sl 175 drivers/w1/slaves/w1_ds250x.c .priv = sl, sl 179 drivers/w1/slaves/w1_ds250x.c data = devm_kzalloc(&sl->dev, sizeof(struct w1_eprom_data), GFP_KERNEL); sl 183 drivers/w1/slaves/w1_ds250x.c sl->family_data = data; sl 184 drivers/w1/slaves/w1_ds250x.c switch (sl->family->fid) { sl 200 drivers/w1/slaves/w1_ds250x.c if (sl->master->bus_master->dev_id) sl 203 drivers/w1/slaves/w1_ds250x.c sl->master->bus_master->dev_id, sl->reg_num.family, sl 204 drivers/w1/slaves/w1_ds250x.c (unsigned long long)sl->reg_num.id); sl 208 drivers/w1/slaves/w1_ds250x.c sl->reg_num.family, sl 209 drivers/w1/slaves/w1_ds250x.c (unsigned long long)sl->reg_num.id); sl 214 drivers/w1/slaves/w1_ds250x.c nvmem = devm_nvmem_register(&sl->dev, &nvmem_cfg); sl 29 drivers/w1/slaves/w1_ds2780.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 36 drivers/w1/slaves/w1_ds2780.c if (w1_reset_select_slave(sl) == 0) { sl 38 drivers/w1/slaves/w1_ds2780.c w1_write_8(sl->master, W1_DS2780_WRITE_DATA); sl 39 drivers/w1/slaves/w1_ds2780.c w1_write_8(sl->master, addr); sl 40 drivers/w1/slaves/w1_ds2780.c w1_write_block(sl->master, buf, count); sl 42 drivers/w1/slaves/w1_ds2780.c w1_write_8(sl->master, W1_DS2780_READ_DATA); sl 43 drivers/w1/slaves/w1_ds2780.c w1_write_8(sl->master, addr); sl 44 drivers/w1/slaves/w1_ds2780.c count = w1_read_block(sl->master, buf, count); sl 54 drivers/w1/slaves/w1_ds2780.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 60 drivers/w1/slaves/w1_ds2780.c mutex_lock(&sl->master->bus_mutex); sl 64 drivers/w1/slaves/w1_ds2780.c mutex_unlock(&sl->master->bus_mutex); sl 72 drivers/w1/slaves/w1_ds2780.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 77 drivers/w1/slaves/w1_ds2780.c mutex_lock(&sl->master->bus_mutex); sl 79 drivers/w1/slaves/w1_ds2780.c if (w1_reset_select_slave(sl) == 0) { sl 80 drivers/w1/slaves/w1_ds2780.c w1_write_8(sl->master, cmd); sl 81 drivers/w1/slaves/w1_ds2780.c w1_write_8(sl->master, addr); sl 84 drivers/w1/slaves/w1_ds2780.c mutex_unlock(&sl->master->bus_mutex); sl 113 drivers/w1/slaves/w1_ds2780.c static int w1_ds2780_add_slave(struct w1_slave *sl) sl 121 drivers/w1/slaves/w1_ds2780.c pdev->dev.parent = &sl->dev; sl 127 drivers/w1/slaves/w1_ds2780.c dev_set_drvdata(&sl->dev, pdev); sl 137 drivers/w1/slaves/w1_ds2780.c static void w1_ds2780_remove_slave(struct w1_slave *sl) sl 139 drivers/w1/slaves/w1_ds2780.c struct platform_device *pdev = dev_get_drvdata(&sl->dev); sl 26 drivers/w1/slaves/w1_ds2781.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 33 drivers/w1/slaves/w1_ds2781.c if (w1_reset_select_slave(sl) == 0) { sl 35 drivers/w1/slaves/w1_ds2781.c w1_write_8(sl->master, W1_DS2781_WRITE_DATA); sl 36 drivers/w1/slaves/w1_ds2781.c w1_write_8(sl->master, addr); sl 37 drivers/w1/slaves/w1_ds2781.c w1_write_block(sl->master, buf, count); sl 39 drivers/w1/slaves/w1_ds2781.c w1_write_8(sl->master, W1_DS2781_READ_DATA); sl 40 drivers/w1/slaves/w1_ds2781.c w1_write_8(sl->master, addr); sl 41 drivers/w1/slaves/w1_ds2781.c count = w1_read_block(sl->master, buf, count); sl 51 drivers/w1/slaves/w1_ds2781.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 57 drivers/w1/slaves/w1_ds2781.c mutex_lock(&sl->master->bus_mutex); sl 61 drivers/w1/slaves/w1_ds2781.c mutex_unlock(&sl->master->bus_mutex); sl 69 drivers/w1/slaves/w1_ds2781.c struct w1_slave *sl = container_of(dev, struct w1_slave, dev); sl 74 drivers/w1/slaves/w1_ds2781.c mutex_lock(&sl->master->bus_mutex); sl 76 drivers/w1/slaves/w1_ds2781.c if (w1_reset_select_slave(sl) == 0) { sl 77 drivers/w1/slaves/w1_ds2781.c w1_write_8(sl->master, cmd); sl 78 drivers/w1/slaves/w1_ds2781.c w1_write_8(sl->master, addr); sl 81 drivers/w1/slaves/w1_ds2781.c mutex_unlock(&sl->master->bus_mutex); sl 110 drivers/w1/slaves/w1_ds2781.c static int w1_ds2781_add_slave(struct w1_slave *sl) sl 118 drivers/w1/slaves/w1_ds2781.c pdev->dev.parent = &sl->dev; sl 124 drivers/w1/slaves/w1_ds2781.c dev_set_drvdata(&sl->dev, pdev); sl 134 drivers/w1/slaves/w1_ds2781.c static void w1_ds2781_remove_slave(struct w1_slave *sl) sl 136 drivers/w1/slaves/w1_ds2781.c struct platform_device *pdev = dev_get_drvdata(&sl->dev); sl 61 drivers/w1/slaves/w1_ds2805.c static int w1_f0d_readblock(struct w1_slave *sl, int off, int count, char *buf) sl 72 drivers/w1/slaves/w1_ds2805.c if (w1_reset_select_slave(sl)) sl 75 drivers/w1/slaves/w1_ds2805.c w1_write_block(sl->master, wrbuf, sizeof(wrbuf)); sl 76 drivers/w1/slaves/w1_ds2805.c w1_read_block(sl->master, buf, count); sl 78 drivers/w1/slaves/w1_ds2805.c if (w1_reset_select_slave(sl)) sl 81 drivers/w1/slaves/w1_ds2805.c w1_write_block(sl->master, wrbuf, sizeof(wrbuf)); sl 82 drivers/w1/slaves/w1_ds2805.c w1_read_block(sl->master, cmp, count); sl 88 drivers/w1/slaves/w1_ds2805.c dev_err(&sl->dev, "proof reading failed %d times\n", sl 98 drivers/w1/slaves/w1_ds2805.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 105 drivers/w1/slaves/w1_ds2805.c mutex_lock(&sl->master->mutex); sl 116 drivers/w1/slaves/w1_ds2805.c if (w1_f0d_readblock(sl, off, block_read, buf) < 0) { sl 126 drivers/w1/slaves/w1_ds2805.c mutex_unlock(&sl->master->mutex); sl 144 drivers/w1/slaves/w1_ds2805.c static int w1_f0d_write(struct w1_slave *sl, int addr, int len, const u8 *data) sl 152 drivers/w1/slaves/w1_ds2805.c dev_err(&sl->dev, "%s: bad addr/len - addr=%#x len=%d\n", sl 160 drivers/w1/slaves/w1_ds2805.c if (w1_reset_select_slave(sl)) sl 167 drivers/w1/slaves/w1_ds2805.c w1_write_block(sl->master, wrbuf, sizeof(wrbuf)); sl 168 drivers/w1/slaves/w1_ds2805.c w1_write_block(sl->master, data, len); sl 170 drivers/w1/slaves/w1_ds2805.c w1_read_block(sl->master, rdbuf, sizeof(rdbuf)); sl 177 drivers/w1/slaves/w1_ds2805.c dev_err(&sl->dev, sl 187 drivers/w1/slaves/w1_ds2805.c w1_write_8(sl->master, W1_F0D_RELEASE); sl 193 drivers/w1/slaves/w1_ds2805.c cs = w1_read_8(sl->master); sl 195 drivers/w1/slaves/w1_ds2805.c dev_err(&sl->dev, "save to eeprom failed = CS=%#x\n", cs); sl 206 drivers/w1/slaves/w1_ds2805.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 214 drivers/w1/slaves/w1_ds2805.c mutex_lock(&sl->master->mutex); sl 226 drivers/w1/slaves/w1_ds2805.c if (w1_f0d_readblock(sl, addr & ~W1_F0D_SCRATCH_MASK, sl 240 drivers/w1/slaves/w1_ds2805.c if (w1_f0d_write(sl, addr & ~W1_F0D_SCRATCH_MASK, sl 248 drivers/w1/slaves/w1_ds2805.c if (w1_f0d_write(sl, addr, copy, buf) < 0) { sl 259 drivers/w1/slaves/w1_ds2805.c mutex_unlock(&sl->master->mutex); sl 274 drivers/w1/slaves/w1_ds2805.c static int w1_f0d_add_slave(struct w1_slave *sl) sl 276 drivers/w1/slaves/w1_ds2805.c return sysfs_create_bin_file(&sl->dev.kobj, &w1_f0d_bin_attr); sl 279 drivers/w1/slaves/w1_ds2805.c static void w1_f0d_remove_slave(struct w1_slave *sl) sl 281 drivers/w1/slaves/w1_ds2805.c sysfs_remove_bin_file(&sl->dev.kobj, &w1_f0d_bin_attr); sl 71 drivers/w1/slaves/w1_ds28e04.c static int w1_f1C_refresh_block(struct w1_slave *sl, struct w1_f1C_data *data, sl 80 drivers/w1/slaves/w1_ds28e04.c if (w1_reset_select_slave(sl)) { sl 88 drivers/w1/slaves/w1_ds28e04.c w1_write_block(sl->master, wrbuf, 3); sl 89 drivers/w1/slaves/w1_ds28e04.c w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); sl 98 drivers/w1/slaves/w1_ds28e04.c static int w1_f1C_read(struct w1_slave *sl, int addr, int len, char *data) sl 103 drivers/w1/slaves/w1_ds28e04.c if (w1_reset_select_slave(sl)) sl 110 drivers/w1/slaves/w1_ds28e04.c w1_write_block(sl->master, wrbuf, sizeof(wrbuf)); sl 111 drivers/w1/slaves/w1_ds28e04.c return w1_read_block(sl->master, data, len); sl 118 drivers/w1/slaves/w1_ds28e04.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 119 drivers/w1/slaves/w1_ds28e04.c struct w1_f1C_data *data = sl->family_data; sl 126 drivers/w1/slaves/w1_ds28e04.c mutex_lock(&sl->master->mutex); sl 132 drivers/w1/slaves/w1_ds28e04.c if (w1_f1C_refresh_block(sl, data, i)) { sl 139 drivers/w1/slaves/w1_ds28e04.c count = w1_f1C_read(sl, off, count, buf); sl 143 drivers/w1/slaves/w1_ds28e04.c mutex_unlock(&sl->master->mutex); sl 160 drivers/w1/slaves/w1_ds28e04.c static int w1_f1C_write(struct w1_slave *sl, int addr, int len, const u8 *data) sl 167 drivers/w1/slaves/w1_ds28e04.c struct w1_f1C_data *f1C = sl->family_data; sl 170 drivers/w1/slaves/w1_ds28e04.c if (w1_reset_select_slave(sl)) sl 177 drivers/w1/slaves/w1_ds28e04.c w1_write_block(sl->master, wrbuf, 3); sl 178 drivers/w1/slaves/w1_ds28e04.c w1_write_block(sl->master, data, len); sl 181 drivers/w1/slaves/w1_ds28e04.c if (w1_reset_select_slave(sl)) sl 184 drivers/w1/slaves/w1_ds28e04.c w1_write_8(sl->master, W1_F1C_READ_SCRATCH); sl 185 drivers/w1/slaves/w1_ds28e04.c w1_read_block(sl->master, rdbuf, len + 3); sl 193 drivers/w1/slaves/w1_ds28e04.c if (w1_reset_select_slave(sl)) sl 203 drivers/w1/slaves/w1_ds28e04.c w1_next_pullup(sl->master, tm); sl 205 drivers/w1/slaves/w1_ds28e04.c w1_write_8(sl->master, wrbuf[i]); sl 217 drivers/w1/slaves/w1_ds28e04.c w1_reset_bus(sl->master); sl 227 drivers/w1/slaves/w1_ds28e04.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 237 drivers/w1/slaves/w1_ds28e04.c dev_err(&sl->dev, "invalid offset/count off=%d cnt=%zd\n", sl 246 drivers/w1/slaves/w1_ds28e04.c dev_err(&sl->dev, "bad CRC at offset %d\n", sl 253 drivers/w1/slaves/w1_ds28e04.c mutex_lock(&sl->master->mutex); sl 263 drivers/w1/slaves/w1_ds28e04.c if (w1_f1C_write(sl, addr, len, &buf[idx]) < 0) { sl 271 drivers/w1/slaves/w1_ds28e04.c mutex_unlock(&sl->master->mutex); sl 283 drivers/w1/slaves/w1_ds28e04.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 290 drivers/w1/slaves/w1_ds28e04.c mutex_lock(&sl->master->mutex); sl 291 drivers/w1/slaves/w1_ds28e04.c ret = w1_f1C_read(sl, W1_1C_REG_LOGIC_STATE, count, buf); sl 292 drivers/w1/slaves/w1_ds28e04.c mutex_unlock(&sl->master->mutex); sl 302 drivers/w1/slaves/w1_ds28e04.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 310 drivers/w1/slaves/w1_ds28e04.c mutex_lock(&sl->master->mutex); sl 313 drivers/w1/slaves/w1_ds28e04.c if (w1_reset_select_slave(sl)) { sl 314 drivers/w1/slaves/w1_ds28e04.c mutex_unlock(&sl->master->mutex); sl 324 drivers/w1/slaves/w1_ds28e04.c w1_write_block(sl->master, wrbuf, 3); sl 326 drivers/w1/slaves/w1_ds28e04.c w1_read_block(sl->master, &ack, sizeof(ack)); sl 328 drivers/w1/slaves/w1_ds28e04.c mutex_unlock(&sl->master->mutex); sl 393 drivers/w1/slaves/w1_ds28e04.c static int w1_f1C_add_slave(struct w1_slave *sl) sl 401 drivers/w1/slaves/w1_ds28e04.c sl->family_data = data; sl 407 drivers/w1/slaves/w1_ds28e04.c static void w1_f1C_remove_slave(struct w1_slave *sl) sl 409 drivers/w1/slaves/w1_ds28e04.c kfree(sl->family_data); sl 410 drivers/w1/slaves/w1_ds28e04.c sl->family_data = NULL; sl 85 drivers/w1/slaves/w1_ds28e17.c static int w1_f19_i2c_busy_wait(struct w1_slave *sl, size_t count) sl 88 drivers/w1/slaves/w1_ds28e17.c struct w1_f19_data *data = sl->family_data; sl 92 drivers/w1/slaves/w1_ds28e17.c if (w1_touch_bit(sl->master, 1) == 0) sl 108 drivers/w1/slaves/w1_ds28e17.c if (w1_touch_bit(sl->master, 1) == 0) sl 116 drivers/w1/slaves/w1_ds28e17.c dev_warn(&sl->dev, "busy timeout\n"); sl 122 drivers/w1/slaves/w1_ds28e17.c static size_t w1_f19_error(struct w1_slave *sl, u8 w1_buf[]) sl 126 drivers/w1/slaves/w1_ds28e17.c dev_warn(&sl->dev, "crc16 mismatch\n"); sl 128 drivers/w1/slaves/w1_ds28e17.c dev_warn(&sl->dev, "i2c device not responding\n"); sl 131 drivers/w1/slaves/w1_ds28e17.c dev_warn(&sl->dev, "i2c short write, %d bytes not acknowledged\n", sl 149 drivers/w1/slaves/w1_ds28e17.c static int __w1_f19_i2c_write(struct w1_slave *sl, sl 159 drivers/w1/slaves/w1_ds28e17.c w1_write_block(sl->master, command, command_count); sl 163 drivers/w1/slaves/w1_ds28e17.c w1_write_8(sl->master, w1_buf[0]); sl 166 drivers/w1/slaves/w1_ds28e17.c w1_write_block(sl->master, buffer, count); sl 170 drivers/w1/slaves/w1_ds28e17.c w1_write_block(sl->master, w1_buf, 2); sl 173 drivers/w1/slaves/w1_ds28e17.c if (w1_f19_i2c_busy_wait(sl, count + 1) < 0) sl 177 drivers/w1/slaves/w1_ds28e17.c w1_read_block(sl->master, w1_buf, 2); sl 180 drivers/w1/slaves/w1_ds28e17.c error = w1_f19_error(sl, w1_buf); sl 190 drivers/w1/slaves/w1_ds28e17.c static int w1_f19_i2c_write(struct w1_slave *sl, u16 i2c_address, sl 213 drivers/w1/slaves/w1_ds28e17.c result = __w1_f19_i2c_write(sl, command, 2, buffer, count); sl 221 drivers/w1/slaves/w1_ds28e17.c result = __w1_f19_i2c_write(sl, command, 2, p, sl 227 drivers/w1/slaves/w1_ds28e17.c if (w1_reset_resume_command(sl->master)) sl 237 drivers/w1/slaves/w1_ds28e17.c result = __w1_f19_i2c_write(sl, command, 1, p, sl 243 drivers/w1/slaves/w1_ds28e17.c if (w1_reset_resume_command(sl->master)) sl 254 drivers/w1/slaves/w1_ds28e17.c result = __w1_f19_i2c_write(sl, command, 1, p, remaining); sl 262 drivers/w1/slaves/w1_ds28e17.c static int w1_f19_i2c_read(struct w1_slave *sl, u16 i2c_address, sl 280 drivers/w1/slaves/w1_ds28e17.c w1_write_block(sl->master, w1_buf, 5); sl 283 drivers/w1/slaves/w1_ds28e17.c if (w1_f19_i2c_busy_wait(sl, count + 1) < 0) sl 287 drivers/w1/slaves/w1_ds28e17.c w1_buf[0] = w1_read_8(sl->master); sl 291 drivers/w1/slaves/w1_ds28e17.c error = w1_f19_error(sl, w1_buf); sl 296 drivers/w1/slaves/w1_ds28e17.c return w1_read_block(sl->master, buffer, count); sl 301 drivers/w1/slaves/w1_ds28e17.c static int w1_f19_i2c_write_read(struct w1_slave *sl, u16 i2c_address, sl 317 drivers/w1/slaves/w1_ds28e17.c w1_write_block(sl->master, w1_buf, 3); sl 320 drivers/w1/slaves/w1_ds28e17.c w1_write_block(sl->master, wbuffer, wcount); sl 326 drivers/w1/slaves/w1_ds28e17.c w1_write_block(sl->master, w1_buf, 3); sl 329 drivers/w1/slaves/w1_ds28e17.c if (w1_f19_i2c_busy_wait(sl, wcount + rcount + 2) < 0) sl 333 drivers/w1/slaves/w1_ds28e17.c w1_read_block(sl->master, w1_buf, 2); sl 336 drivers/w1/slaves/w1_ds28e17.c error = w1_f19_error(sl, w1_buf); sl 341 drivers/w1/slaves/w1_ds28e17.c return w1_read_block(sl->master, rbuffer, rcount); sl 349 drivers/w1/slaves/w1_ds28e17.c struct w1_slave *sl = (struct w1_slave *) adapter->algo_data; sl 354 drivers/w1/slaves/w1_ds28e17.c mutex_lock(&sl->master->bus_mutex); sl 357 drivers/w1/slaves/w1_ds28e17.c if (w1_reset_select_slave(sl)) { sl 377 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_i2c_write_read(sl, msgs[i].addr, sl 392 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_i2c_read(sl, msgs[i+1].addr, sl 404 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_i2c_read(sl, msgs[i].addr, sl 418 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_i2c_read(sl, sl 433 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_i2c_write(sl, sl 450 drivers/w1/slaves/w1_ds28e17.c if (w1_reset_resume_command(sl->master)) { sl 459 drivers/w1/slaves/w1_ds28e17.c mutex_unlock(&sl->master->bus_mutex); sl 500 drivers/w1/slaves/w1_ds28e17.c static int w1_f19_get_i2c_speed(struct w1_slave *sl) sl 502 drivers/w1/slaves/w1_ds28e17.c struct w1_f19_data *data = sl->family_data; sl 506 drivers/w1/slaves/w1_ds28e17.c mutex_lock(&sl->master->bus_mutex); sl 509 drivers/w1/slaves/w1_ds28e17.c if (w1_reset_select_slave(sl)) sl 513 drivers/w1/slaves/w1_ds28e17.c w1_write_8(sl->master, W1_F19_READ_CONFIGURATION); sl 514 drivers/w1/slaves/w1_ds28e17.c result = w1_read_8(sl->master); sl 525 drivers/w1/slaves/w1_ds28e17.c mutex_unlock(&sl->master->bus_mutex); sl 532 drivers/w1/slaves/w1_ds28e17.c static int __w1_f19_set_i2c_speed(struct w1_slave *sl, u8 speed) sl 534 drivers/w1/slaves/w1_ds28e17.c struct w1_f19_data *data = sl->family_data; sl 539 drivers/w1/slaves/w1_ds28e17.c if (w1_reset_select_slave(sl)) sl 544 drivers/w1/slaves/w1_ds28e17.c w1_write_block(sl->master, w1_buf, 2); sl 549 drivers/w1/slaves/w1_ds28e17.c dev_info(&sl->dev, "i2c speed set to %d kBaud\n", i2c_speeds[speed]); sl 554 drivers/w1/slaves/w1_ds28e17.c static int w1_f19_set_i2c_speed(struct w1_slave *sl, u8 speed) sl 559 drivers/w1/slaves/w1_ds28e17.c mutex_lock(&sl->master->bus_mutex); sl 562 drivers/w1/slaves/w1_ds28e17.c result = __w1_f19_set_i2c_speed(sl, speed); sl 565 drivers/w1/slaves/w1_ds28e17.c mutex_unlock(&sl->master->bus_mutex); sl 577 drivers/w1/slaves/w1_ds28e17.c struct w1_slave *sl = dev_to_w1_slave(dev); sl 581 drivers/w1/slaves/w1_ds28e17.c result = w1_f19_get_i2c_speed(sl); sl 592 drivers/w1/slaves/w1_ds28e17.c struct w1_slave *sl = dev_to_w1_slave(dev); sl 606 drivers/w1/slaves/w1_ds28e17.c error = w1_f19_set_i2c_speed(sl, 0); sl 609 drivers/w1/slaves/w1_ds28e17.c error = w1_f19_set_i2c_speed(sl, 1); sl 612 drivers/w1/slaves/w1_ds28e17.c error = w1_f19_set_i2c_speed(sl, 2); sl 632 drivers/w1/slaves/w1_ds28e17.c struct w1_slave *sl = dev_to_w1_slave(dev); sl 633 drivers/w1/slaves/w1_ds28e17.c struct w1_f19_data *data = sl->family_data; sl 642 drivers/w1/slaves/w1_ds28e17.c struct w1_slave *sl = dev_to_w1_slave(dev); sl 643 drivers/w1/slaves/w1_ds28e17.c struct w1_f19_data *data = sl->family_data; sl 681 drivers/w1/slaves/w1_ds28e17.c static int w1_f19_add_slave(struct w1_slave *sl) sl 686 drivers/w1/slaves/w1_ds28e17.c data = devm_kzalloc(&sl->dev, sizeof(*data), GFP_KERNEL); sl 689 drivers/w1/slaves/w1_ds28e17.c sl->family_data = data; sl 694 drivers/w1/slaves/w1_ds28e17.c __w1_f19_set_i2c_speed(sl, 0); sl 697 drivers/w1/slaves/w1_ds28e17.c __w1_f19_set_i2c_speed(sl, 1); sl 700 drivers/w1/slaves/w1_ds28e17.c __w1_f19_set_i2c_speed(sl, 2); sl 721 drivers/w1/slaves/w1_ds28e17.c data->adapter.algo_data = sl; sl 723 drivers/w1/slaves/w1_ds28e17.c strcat(data->adapter.name, sl->name); sl 724 drivers/w1/slaves/w1_ds28e17.c data->adapter.dev.parent = &sl->dev; sl 730 drivers/w1/slaves/w1_ds28e17.c static void w1_f19_remove_slave(struct w1_slave *sl) sl 732 drivers/w1/slaves/w1_ds28e17.c struct w1_f19_data *family_data = sl->family_data; sl 738 drivers/w1/slaves/w1_ds28e17.c devm_kfree(&sl->dev, family_data); sl 739 drivers/w1/slaves/w1_ds28e17.c sl->family_data = NULL; sl 59 drivers/w1/slaves/w1_therm.c static int w1_therm_add_slave(struct w1_slave *sl) sl 61 drivers/w1/slaves/w1_therm.c sl->family_data = kzalloc(sizeof(struct w1_therm_family_data), sl 63 drivers/w1/slaves/w1_therm.c if (!sl->family_data) sl 65 drivers/w1/slaves/w1_therm.c atomic_set(THERM_REFCNT(sl->family_data), 1); sl 69 drivers/w1/slaves/w1_therm.c static void w1_therm_remove_slave(struct w1_slave *sl) sl 71 drivers/w1/slaves/w1_therm.c int refcnt = atomic_sub_return(1, THERM_REFCNT(sl->family_data)); sl 75 drivers/w1/slaves/w1_therm.c refcnt = atomic_read(THERM_REFCNT(sl->family_data)); sl 77 drivers/w1/slaves/w1_therm.c kfree(sl->family_data); sl 78 drivers/w1/slaves/w1_therm.c sl->family_data = NULL; sl 251 drivers/w1/slaves/w1_therm.c struct w1_slave *sl = dev_to_w1_slave(device); sl 252 drivers/w1/slaves/w1_therm.c struct w1_master *dev = sl->master; sl 255 drivers/w1/slaves/w1_therm.c u8 *family_data = sl->family_data; sl 257 drivers/w1/slaves/w1_therm.c if (!sl->family_data) { sl 272 drivers/w1/slaves/w1_therm.c if (!w1_reset_select_slave(sl)) { sl 280 drivers/w1/slaves/w1_therm.c if (w1_reset_select_slave(sl)) sl 330 drivers/w1/slaves/w1_therm.c struct w1_slave *sl = dev_to_w1_slave(device); sl 331 drivers/w1/slaves/w1_therm.c struct w1_master *dev = sl->master; sl 334 drivers/w1/slaves/w1_therm.c u8 *family_data = sl->family_data; sl 344 drivers/w1/slaves/w1_therm.c if (!sl->family_data) { sl 378 drivers/w1/slaves/w1_therm.c if (!w1_reset_select_slave(sl)) { sl 391 drivers/w1/slaves/w1_therm.c if (!w1_reset_select_slave(sl)) { sl 453 drivers/w1/slaves/w1_therm.c struct w1_slave *sl = dev_to_w1_slave(device); sl 461 drivers/w1/slaves/w1_therm.c if (w1_therm_families[i].f->fid == sl->family->fid) { sl 474 drivers/w1/slaves/w1_therm.c struct w1_slave *sl, struct therm_info *info) sl 476 drivers/w1/slaves/w1_therm.c struct w1_master *dev = sl->master; sl 479 drivers/w1/slaves/w1_therm.c u8 *family_data = sl->family_data; sl 500 drivers/w1/slaves/w1_therm.c if (!w1_reset_select_slave(sl)) { sl 508 drivers/w1/slaves/w1_therm.c if (w1_reset_select_slave(sl)) sl 538 drivers/w1/slaves/w1_therm.c if (!w1_reset_select_slave(sl)) { sl 570 drivers/w1/slaves/w1_therm.c struct w1_slave *sl = dev_to_w1_slave(device); sl 572 drivers/w1/slaves/w1_therm.c u8 *family_data = sl->family_data; sl 575 drivers/w1/slaves/w1_therm.c u8 fid = sl->family->fid; sl 577 drivers/w1/slaves/w1_therm.c ret = read_therm(device, sl, &info); sl 604 drivers/w1/slaves/w1_therm.c struct w1_slave *sl = dev_get_drvdata(device); sl 606 drivers/w1/slaves/w1_therm.c u8 fid = sl->family->fid; sl 611 drivers/w1/slaves/w1_therm.c ret = read_therm(device, sl, &info); sl 645 drivers/w1/slaves/w1_therm.c struct w1_slave *sl = dev_to_w1_slave(device); sl 654 drivers/w1/slaves/w1_therm.c mutex_lock(&sl->master->bus_mutex); sl 656 drivers/w1/slaves/w1_therm.c if (w1_reset_bus(sl->master)) sl 658 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_SKIP_ROM); sl 659 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN); sl 660 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN_ON); sl 661 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN_ON_INV); sl 662 drivers/w1/slaves/w1_therm.c msleep(sl->master->pullup_duration); sl 665 drivers/w1/slaves/w1_therm.c ack = w1_read_8(sl->master); sl 671 drivers/w1/slaves/w1_therm.c if (w1_reset_bus(sl->master)) sl 674 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_COND_READ); sl 675 drivers/w1/slaves/w1_therm.c rv = w1_read_block(sl->master, (u8 *)&rn, 8); sl 679 drivers/w1/slaves/w1_therm.c if (sl->reg_num.id == reg_num->id) sl 682 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN); sl 683 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN_DONE); sl 684 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN_DONE_INV); sl 685 drivers/w1/slaves/w1_therm.c w1_read_block(sl->master, &ack, sizeof(ack)); sl 688 drivers/w1/slaves/w1_therm.c ack = w1_read_8(sl->master); sl 695 drivers/w1/slaves/w1_therm.c if (w1_reset_bus(sl->master)) sl 697 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_SKIP_ROM); sl 698 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN); sl 699 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN_OFF); sl 700 drivers/w1/slaves/w1_therm.c w1_write_8(sl->master, W1_42_CHAIN_OFF_INV); sl 703 drivers/w1/slaves/w1_therm.c ack = w1_read_8(sl->master); sl 706 drivers/w1/slaves/w1_therm.c mutex_unlock(&sl->master->bus_mutex); sl 711 drivers/w1/slaves/w1_therm.c mutex_unlock(&sl->master->bus_mutex); sl 80 drivers/w1/w1.c struct w1_slave *sl = dev_to_w1_slave(dev); sl 82 drivers/w1/w1.c dev_dbg(dev, "%s: Releasing %s [%p]\n", __func__, sl->name, sl); sl 84 drivers/w1/w1.c w1_family_put(sl->family); sl 85 drivers/w1/w1.c sl->master->slave_count--; sl 90 drivers/w1/w1.c struct w1_slave *sl = dev_to_w1_slave(dev); sl 92 drivers/w1/w1.c return sprintf(buf, "%s\n", sl->name); sl 99 drivers/w1/w1.c struct w1_slave *sl = dev_to_w1_slave(dev); sl 100 drivers/w1/w1.c ssize_t count = sizeof(sl->reg_num); sl 102 drivers/w1/w1.c memcpy(buf, (u8 *)&sl->reg_num, count); sl 120 drivers/w1/w1.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 122 drivers/w1/w1.c mutex_lock(&sl->master->mutex); sl 123 drivers/w1/w1.c if (w1_reset_select_slave(sl)) { sl 128 drivers/w1/w1.c w1_write_block(sl->master, buf, count); sl 131 drivers/w1/w1.c mutex_unlock(&sl->master->mutex); sl 139 drivers/w1/w1.c struct w1_slave *sl = kobj_to_w1_slave(kobj); sl 141 drivers/w1/w1.c mutex_lock(&sl->master->mutex); sl 142 drivers/w1/w1.c w1_read_block(sl->master, buf, count); sl 143 drivers/w1/w1.c mutex_unlock(&sl->master->mutex); sl 372 drivers/w1/w1.c struct w1_slave *sl = NULL; sl 377 drivers/w1/w1.c sl = list_entry(ent, struct w1_slave, w1_slave_entry); sl 379 drivers/w1/w1.c c -= snprintf(buf + PAGE_SIZE - c, c, "%s\n", sl->name); sl 381 drivers/w1/w1.c if (!sl) sl 443 drivers/w1/w1.c struct w1_slave *sl; sl 445 drivers/w1/w1.c list_for_each_entry(sl, &dev->slist, w1_slave_entry) { sl 446 drivers/w1/w1.c if (sl->reg_num.family == rn->family && sl 447 drivers/w1/w1.c sl->reg_num.id == rn->id && sl 448 drivers/w1/w1.c sl->reg_num.crc == rn->crc) { sl 450 drivers/w1/w1.c return sl; sl 463 drivers/w1/w1.c struct w1_slave *sl; sl 470 drivers/w1/w1.c sl = w1_slave_search_device(md, &rn); sl 475 drivers/w1/w1.c if (sl) { sl 476 drivers/w1/w1.c dev_info(dev, "Device %s already exists\n", sl->name); sl 501 drivers/w1/w1.c struct w1_slave *sl; sl 508 drivers/w1/w1.c sl = w1_slave_search_device(md, &rn); sl 509 drivers/w1/w1.c if (sl) { sl 510 drivers/w1/w1.c result = w1_slave_detach(sl); sl 581 drivers/w1/w1.c struct w1_slave *sl = NULL; sl 590 drivers/w1/w1.c sl = container_of(dev, struct w1_slave, dev); sl 592 drivers/w1/w1.c name = sl->name; sl 601 drivers/w1/w1.c if (dev->driver != &w1_slave_driver || !sl) sl 604 drivers/w1/w1.c err = add_uevent_var(env, "W1_FID=%02X", sl->reg_num.family); sl 609 drivers/w1/w1.c (unsigned long long)sl->reg_num.id); sl 614 drivers/w1/w1.c static int w1_family_notify(unsigned long action, struct w1_slave *sl) sl 619 drivers/w1/w1.c fops = sl->family->fops; sl 628 drivers/w1/w1.c err = fops->add_slave(sl); sl 630 drivers/w1/w1.c dev_err(&sl->dev, sl 637 drivers/w1/w1.c err = sysfs_create_groups(&sl->dev.kobj, fops->groups); sl 639 drivers/w1/w1.c dev_err(&sl->dev, sl 647 drivers/w1/w1.c = hwmon_device_register_with_info(&sl->dev, sl 648 drivers/w1/w1.c "w1_slave_temp", sl, sl 652 drivers/w1/w1.c dev_warn(&sl->dev, sl 655 drivers/w1/w1.c sl->hwmon = hwmon; sl 661 drivers/w1/w1.c sl->hwmon) sl 662 drivers/w1/w1.c hwmon_device_unregister(sl->hwmon); sl 664 drivers/w1/w1.c sl->family->fops->remove_slave(sl); sl 666 drivers/w1/w1.c sysfs_remove_groups(&sl->dev.kobj, fops->groups); sl 672 drivers/w1/w1.c static int __w1_attach_slave_device(struct w1_slave *sl) sl 676 drivers/w1/w1.c sl->dev.parent = &sl->master->dev; sl 677 drivers/w1/w1.c sl->dev.driver = &w1_slave_driver; sl 678 drivers/w1/w1.c sl->dev.bus = &w1_bus_type; sl 679 drivers/w1/w1.c sl->dev.release = &w1_slave_release; sl 680 drivers/w1/w1.c sl->dev.groups = w1_slave_groups; sl 681 drivers/w1/w1.c sl->dev.of_node = of_find_matching_node(sl->master->dev.of_node, sl 682 drivers/w1/w1.c sl->family->of_match_table); sl 684 drivers/w1/w1.c dev_set_name(&sl->dev, "%02x-%012llx", sl 685 drivers/w1/w1.c (unsigned int) sl->reg_num.family, sl 686 drivers/w1/w1.c (unsigned long long) sl->reg_num.id); sl 687 drivers/w1/w1.c snprintf(&sl->name[0], sizeof(sl->name), sl 689 drivers/w1/w1.c (unsigned int) sl->reg_num.family, sl 690 drivers/w1/w1.c (unsigned long long) sl->reg_num.id); sl 692 drivers/w1/w1.c dev_dbg(&sl->dev, "%s: registering %s as %p.\n", __func__, sl 693 drivers/w1/w1.c dev_name(&sl->dev), sl); sl 696 drivers/w1/w1.c dev_set_uevent_suppress(&sl->dev, true); sl 698 drivers/w1/w1.c err = device_register(&sl->dev); sl 700 drivers/w1/w1.c dev_err(&sl->dev, sl 702 drivers/w1/w1.c dev_name(&sl->dev), err); sl 703 drivers/w1/w1.c put_device(&sl->dev); sl 706 drivers/w1/w1.c w1_family_notify(BUS_NOTIFY_ADD_DEVICE, sl); sl 708 drivers/w1/w1.c dev_set_uevent_suppress(&sl->dev, false); sl 709 drivers/w1/w1.c kobject_uevent(&sl->dev.kobj, KOBJ_ADD); sl 711 drivers/w1/w1.c mutex_lock(&sl->master->list_mutex); sl 712 drivers/w1/w1.c list_add_tail(&sl->w1_slave_entry, &sl->master->slist); sl 713 drivers/w1/w1.c mutex_unlock(&sl->master->list_mutex); sl 720 drivers/w1/w1.c struct w1_slave *sl; sl 725 drivers/w1/w1.c sl = kzalloc(sizeof(struct w1_slave), GFP_KERNEL); sl 726 drivers/w1/w1.c if (!sl) { sl 734 drivers/w1/w1.c sl->owner = THIS_MODULE; sl 735 drivers/w1/w1.c sl->master = dev; sl 736 drivers/w1/w1.c set_bit(W1_SLAVE_ACTIVE, &sl->flags); sl 739 drivers/w1/w1.c memcpy(&sl->reg_num, rn, sizeof(sl->reg_num)); sl 740 drivers/w1/w1.c atomic_set(&sl->refcnt, 1); sl 741 drivers/w1/w1.c atomic_inc(&sl->master->refcnt); sl 762 drivers/w1/w1.c sl->family = f; sl 764 drivers/w1/w1.c err = __w1_attach_slave_device(sl); sl 767 drivers/w1/w1.c sl->name); sl 769 drivers/w1/w1.c w1_family_put(sl->family); sl 770 drivers/w1/w1.c atomic_dec(&sl->master->refcnt); sl 771 drivers/w1/w1.c kfree(sl); sl 775 drivers/w1/w1.c sl->ttl = dev->slave_ttl; sl 784 drivers/w1/w1.c int w1_unref_slave(struct w1_slave *sl) sl 786 drivers/w1/w1.c struct w1_master *dev = sl->master; sl 789 drivers/w1/w1.c refcnt = atomic_sub_return(1, &sl->refcnt); sl 793 drivers/w1/w1.c dev_dbg(&sl->dev, "%s: detaching %s [%p].\n", __func__, sl 794 drivers/w1/w1.c sl->name, sl); sl 796 drivers/w1/w1.c list_del(&sl->w1_slave_entry); sl 799 drivers/w1/w1.c memcpy(msg.id.id, &sl->reg_num, sizeof(msg.id)); sl 801 drivers/w1/w1.c w1_netlink_send(sl->master, &msg); sl 803 drivers/w1/w1.c w1_family_notify(BUS_NOTIFY_DEL_DEVICE, sl); sl 804 drivers/w1/w1.c device_unregister(&sl->dev); sl 806 drivers/w1/w1.c memset(sl, 0, sizeof(*sl)); sl 808 drivers/w1/w1.c kfree(sl); sl 815 drivers/w1/w1.c int w1_slave_detach(struct w1_slave *sl) sl 819 drivers/w1/w1.c mutex_lock(&sl->master->list_mutex); sl 820 drivers/w1/w1.c destroy_now = !test_bit(W1_SLAVE_DETACH, &sl->flags); sl 821 drivers/w1/w1.c set_bit(W1_SLAVE_DETACH, &sl->flags); sl 822 drivers/w1/w1.c mutex_unlock(&sl->master->list_mutex); sl 825 drivers/w1/w1.c destroy_now = !w1_unref_slave(sl); sl 850 drivers/w1/w1.c struct w1_slave *sl = NULL; sl 856 drivers/w1/w1.c list_for_each_entry(sl, &dev->slist, w1_slave_entry) { sl 857 drivers/w1/w1.c if (sl->reg_num.family == id->family && sl 858 drivers/w1/w1.c sl->reg_num.id == id->id && sl 859 drivers/w1/w1.c sl->reg_num.crc == id->crc) { sl 862 drivers/w1/w1.c atomic_inc(&sl->refcnt); sl 873 drivers/w1/w1.c return (found)?sl:NULL; sl 878 drivers/w1/w1.c struct w1_slave *sl, *sln; sl 887 drivers/w1/w1.c list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { sl 893 drivers/w1/w1.c if ((attach && sl->family->fid == W1_FAMILY_DEFAULT sl 894 drivers/w1/w1.c && sl->reg_num.family == f->fid) || sl 895 drivers/w1/w1.c (!attach && sl->family->fid == f->fid)) { sl 899 drivers/w1/w1.c memcpy(&rn, &sl->reg_num, sizeof(rn)); sl 903 drivers/w1/w1.c if (!w1_slave_detach(sl)) sl 918 drivers/w1/w1.c struct w1_slave *sl; sl 926 drivers/w1/w1.c sl = w1_slave_search_device(dev, tmp); sl 927 drivers/w1/w1.c if (sl) { sl 928 drivers/w1/w1.c set_bit(W1_SLAVE_ACTIVE, &sl->flags); sl 1065 drivers/w1/w1.c struct w1_slave *sl, *sln; sl 1068 drivers/w1/w1.c list_for_each_entry(sl, &dev->slist, w1_slave_entry) sl 1069 drivers/w1/w1.c clear_bit(W1_SLAVE_ACTIVE, &sl->flags); sl 1075 drivers/w1/w1.c list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { sl 1076 drivers/w1/w1.c if (!test_bit(W1_SLAVE_ACTIVE, &sl->flags) && !--sl->ttl) { sl 1078 drivers/w1/w1.c w1_slave_detach(sl); sl 1081 drivers/w1/w1.c else if (test_bit(W1_SLAVE_ACTIVE, &sl->flags)) sl 1082 drivers/w1/w1.c sl->ttl = dev->slave_ttl; sl 177 drivers/w1/w1_int.c struct w1_slave *sl, *sln; sl 188 drivers/w1/w1_int.c list_for_each_entry_safe(sl, sln, &dev->slist, w1_slave_entry) { sl 190 drivers/w1/w1_int.c w1_slave_detach(sl); sl 43 drivers/w1/w1_internal.h int w1_unref_slave(struct w1_slave *sl); sl 59 drivers/w1/w1_internal.h int w1_slave_detach(struct w1_slave *sl); sl 387 drivers/w1/w1_io.c int w1_reset_select_slave(struct w1_slave *sl) sl 389 drivers/w1/w1_io.c if (w1_reset_bus(sl->master)) sl 392 drivers/w1/w1_io.c if (sl->master->slave_count == 1) sl 393 drivers/w1/w1_io.c w1_write_8(sl->master, W1_SKIP_ROM); sl 396 drivers/w1/w1_io.c u64 rn = le64_to_cpu(*((u64*)&sl->reg_num)); sl 399 drivers/w1/w1_io.c w1_write_block(sl->master, match, 9); sl 43 drivers/w1/w1_netlink.c struct w1_slave *sl; sl 267 drivers/w1/w1_netlink.c struct w1_slave *sl; sl 275 drivers/w1/w1_netlink.c list_for_each_entry(sl, &dev->slist, w1_slave_entry) { sl 276 drivers/w1/w1_netlink.c memcpy(&rn, &sl->reg_num, sizeof(rn)); sl 316 drivers/w1/w1_netlink.c struct w1_slave *sl; sl 325 drivers/w1/w1_netlink.c sl = w1_slave_search_device(dev, id); sl 328 drivers/w1/w1_netlink.c if (sl) sl 334 drivers/w1/w1_netlink.c if (sl) sl 335 drivers/w1/w1_netlink.c w1_slave_detach(sl); sl 387 drivers/w1/w1_netlink.c static int w1_process_command_slave(struct w1_slave *sl, sl 390 drivers/w1/w1_netlink.c dev_dbg(&sl->master->dev, "%s: %02x.%012llx.%02x: cmd=%02x, len=%u.\n", sl 391 drivers/w1/w1_netlink.c __func__, sl->reg_num.family, (unsigned long long)sl->reg_num.id, sl 392 drivers/w1/w1_netlink.c sl->reg_num.crc, cmd->cmd, cmd->len); sl 394 drivers/w1/w1_netlink.c return w1_process_command_io(sl->master, cmd); sl 449 drivers/w1/w1_netlink.c struct w1_slave *sl = node->sl; sl 454 drivers/w1/w1_netlink.c if (sl && w1_reset_select_slave(sl)) sl 464 drivers/w1/w1_netlink.c if (sl) sl 465 drivers/w1/w1_netlink.c err = w1_process_command_slave(sl, cmd); sl 484 drivers/w1/w1_netlink.c if (sl) sl 485 drivers/w1/w1_netlink.c w1_unref_slave(sl); sl 538 drivers/w1/w1_netlink.c struct w1_slave *sl; sl 635 drivers/w1/w1_netlink.c sl = NULL; sl 660 drivers/w1/w1_netlink.c sl = w1_search_slave((struct w1_reg_num *)msg->id.id); sl 661 drivers/w1/w1_netlink.c if (sl) sl 662 drivers/w1/w1_netlink.c dev = sl->master; sl 683 drivers/w1/w1_netlink.c node->sl = sl; sl 585 fs/afs/rotate.c const struct afs_server_list *sl = fc->server_list; sl 587 fs/afs/rotate.c sl->nr_servers, sl->preferred, sl->vnovol_mask); sl 588 fs/afs/rotate.c for (i = 0; i < sl->nr_servers; i++) { sl 589 fs/afs/rotate.c const struct afs_server *s = sl->servers[i].server; sl 292 fs/afs/vl_rotate.c const struct afs_vlserver_list *sl = vc->server_list; sl 294 fs/afs/vl_rotate.c sl->nr_servers, sl->index); sl 295 fs/afs/vl_rotate.c for (i = 0; i < sl->nr_servers; i++) { sl 296 fs/afs/vl_rotate.c const struct afs_vlserver *s = sl->servers[i].server; sl 207 include/linux/dccp.h static inline bool dccp_list_has_service(const struct dccp_service_list *sl, sl 210 include/linux/dccp.h if (likely(sl != NULL)) { sl 211 include/linux/dccp.h u32 i = sl->dccpsl_nr; sl 213 include/linux/dccp.h if (sl->dccpsl_list[i] == service) sl 377 include/linux/hrtimer.h extern void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id, sl 383 include/linux/hrtimer.h extern void hrtimer_init_sleeper_on_stack(struct hrtimer_sleeper *sl, sl 396 include/linux/hrtimer.h static inline void hrtimer_init_sleeper_on_stack(struct hrtimer_sleeper *sl, sl 400 include/linux/hrtimer.h hrtimer_init_sleeper(sl, clock_id, mode); sl 438 include/linux/hrtimer.h void hrtimer_sleeper_start_expires(struct hrtimer_sleeper *sl, sl 669 include/linux/mlx5/mlx5_ifc.h u8 sl[0x4]; sl 431 include/linux/seqlock.h static inline unsigned read_seqbegin(const seqlock_t *sl) sl 433 include/linux/seqlock.h return read_seqcount_begin(&sl->seqcount); sl 436 include/linux/seqlock.h static inline unsigned read_seqretry(const seqlock_t *sl, unsigned start) sl 438 include/linux/seqlock.h return read_seqcount_retry(&sl->seqcount, start); sl 446 include/linux/seqlock.h static inline void write_seqlock(seqlock_t *sl) sl 448 include/linux/seqlock.h spin_lock(&sl->lock); sl 449 include/linux/seqlock.h write_seqcount_begin(&sl->seqcount); sl 452 include/linux/seqlock.h static inline void write_sequnlock(seqlock_t *sl) sl 454 include/linux/seqlock.h write_seqcount_end(&sl->seqcount); sl 455 include/linux/seqlock.h spin_unlock(&sl->lock); sl 458 include/linux/seqlock.h static inline void write_seqlock_bh(seqlock_t *sl) sl 460 include/linux/seqlock.h spin_lock_bh(&sl->lock); sl 461 include/linux/seqlock.h write_seqcount_begin(&sl->seqcount); sl 464 include/linux/seqlock.h static inline void write_sequnlock_bh(seqlock_t *sl) sl 466 include/linux/seqlock.h write_seqcount_end(&sl->seqcount); sl 467 include/linux/seqlock.h spin_unlock_bh(&sl->lock); sl 470 include/linux/seqlock.h static inline void write_seqlock_irq(seqlock_t *sl) sl 472 include/linux/seqlock.h spin_lock_irq(&sl->lock); sl 473 include/linux/seqlock.h write_seqcount_begin(&sl->seqcount); sl 476 include/linux/seqlock.h static inline void write_sequnlock_irq(seqlock_t *sl) sl 478 include/linux/seqlock.h write_seqcount_end(&sl->seqcount); sl 479 include/linux/seqlock.h spin_unlock_irq(&sl->lock); sl 482 include/linux/seqlock.h static inline unsigned long __write_seqlock_irqsave(seqlock_t *sl) sl 486 include/linux/seqlock.h spin_lock_irqsave(&sl->lock, flags); sl 487 include/linux/seqlock.h write_seqcount_begin(&sl->seqcount); sl 495 include/linux/seqlock.h write_sequnlock_irqrestore(seqlock_t *sl, unsigned long flags) sl 497 include/linux/seqlock.h write_seqcount_end(&sl->seqcount); sl 498 include/linux/seqlock.h spin_unlock_irqrestore(&sl->lock, flags); sl 506 include/linux/seqlock.h static inline void read_seqlock_excl(seqlock_t *sl) sl 508 include/linux/seqlock.h spin_lock(&sl->lock); sl 511 include/linux/seqlock.h static inline void read_sequnlock_excl(seqlock_t *sl) sl 513 include/linux/seqlock.h spin_unlock(&sl->lock); sl 545 include/linux/seqlock.h static inline void read_seqlock_excl_bh(seqlock_t *sl) sl 547 include/linux/seqlock.h spin_lock_bh(&sl->lock); sl 550 include/linux/seqlock.h static inline void read_sequnlock_excl_bh(seqlock_t *sl) sl 552 include/linux/seqlock.h spin_unlock_bh(&sl->lock); sl 555 include/linux/seqlock.h static inline void read_seqlock_excl_irq(seqlock_t *sl) sl 557 include/linux/seqlock.h spin_lock_irq(&sl->lock); sl 560 include/linux/seqlock.h static inline void read_sequnlock_excl_irq(seqlock_t *sl) sl 562 include/linux/seqlock.h spin_unlock_irq(&sl->lock); sl 565 include/linux/seqlock.h static inline unsigned long __read_seqlock_excl_irqsave(seqlock_t *sl) sl 569 include/linux/seqlock.h spin_lock_irqsave(&sl->lock, flags); sl 577 include/linux/seqlock.h read_sequnlock_excl_irqrestore(seqlock_t *sl, unsigned long flags) sl 579 include/linux/seqlock.h spin_unlock_irqrestore(&sl->lock, flags); sl 86 include/linux/slimbus.h int (*probe)(struct slim_device *sl); sl 87 include/linux/slimbus.h void (*remove)(struct slim_device *sl); sl 88 include/linux/slimbus.h void (*shutdown)(struct slim_device *sl); sl 89 include/linux/slimbus.h int (*device_status)(struct slim_device *sl, sl 95 include/linux/soc/qcom/apr.h int (*probe)(struct apr_device *sl); sl 96 include/linux/soc/qcom/apr.h int (*remove)(struct apr_device *sl); sl 254 include/linux/w1.h int (*add_slave)(struct w1_slave *sl); sl 255 include/linux/w1.h void (*remove_slave)(struct w1_slave *sl); sl 302 include/linux/w1.h int w1_reset_select_slave(struct w1_slave *sl); sl 97 include/net/cfg802154.h const struct ieee802154_llsec_seclevel *sl); sl 100 include/net/cfg802154.h const struct ieee802154_llsec_seclevel *sl); sl 293 include/net/ieee802154_netdev.h const struct ieee802154_llsec_seclevel *sl); sl 295 include/net/ieee802154_netdev.h const struct ieee802154_llsec_seclevel *sl); sl 202 include/rdma/ib_sa.h u8 sl; sl 347 include/rdma/ib_sa.h u8 sl; sl 900 include/rdma/ib_verbs.h u8 sl; sl 986 include/rdma/ib_verbs.h u8 sl; sl 1875 include/rdma/ib_verbs.h __u8 sl; sl 4385 include/rdma/ib_verbs.h static inline void rdma_ah_set_sl(struct rdma_ah_attr *attr, u8 sl) sl 4387 include/rdma/ib_verbs.h attr->sl = sl; sl 4392 include/rdma/ib_verbs.h return attr->sl; sl 35 include/trace/events/ib_mad.h __field(u8, sl) sl 103 include/trace/events/ib_mad.h be32_to_cpu(__entry->dlid), __entry->sl, __entry->pkey, sl 200 include/trace/events/ib_mad.h __field(u8, sl) sl 226 include/trace/events/ib_mad.h __entry->sl = wc->sl; sl 247 include/trace/events/ib_mad.h __entry->slid, __entry->src_qp, __entry->sl, __entry->pkey sl 23 include/trace/events/ib_umad.h __field(u8, sl) sl 64 include/trace/events/ib_umad.h __entry->sl = umad_hdr->sl; sl 96 include/trace/events/ib_umad.h __entry->sl, __entry->path_bits, __entry->grh_present, sl 253 include/uapi/linux/rds.h __u8 sl; sl 269 include/uapi/linux/rds.h __u8 sl; sl 82 include/uapi/rdma/ib_user_mad.h __u8 sl; sl 126 include/uapi/rdma/ib_user_mad.h __u8 sl; sl 68 include/uapi/rdma/ib_user_sa.h __u8 sl; sl 475 include/uapi/rdma/ib_user_verbs.h __u8 sl; sl 515 include/uapi/rdma/ib_user_verbs.h __u8 sl; sl 664 include/uapi/rdma/ib_user_verbs.h __u8 sl; sl 290 include/uapi/rdma/vmw_pvrdma-abi.h __u8 sl; sl 6875 kernel/bpf/verifier.c struct bpf_verifier_state_list *sl; sl 6878 kernel/bpf/verifier.c sl = *explored_state(env, insn); sl 6879 kernel/bpf/verifier.c while (sl) { sl 6880 kernel/bpf/verifier.c if (sl->state.branches) sl 6882 kernel/bpf/verifier.c if (sl->state.insn_idx != insn || sl 6883 kernel/bpf/verifier.c sl->state.curframe != cur->curframe) sl 6886 kernel/bpf/verifier.c if (sl->state.frame[i]->callsite != cur->frame[i]->callsite) sl 6888 kernel/bpf/verifier.c clean_verifier_state(env, &sl->state); sl 6890 kernel/bpf/verifier.c sl = sl->next; sl 7310 kernel/bpf/verifier.c struct bpf_verifier_state_list *sl, **pprev; sl 7335 kernel/bpf/verifier.c sl = *pprev; sl 7339 kernel/bpf/verifier.c while (sl) { sl 7341 kernel/bpf/verifier.c if (sl->state.insn_idx != insn_idx) sl 7343 kernel/bpf/verifier.c if (sl->state.branches) { sl 7344 kernel/bpf/verifier.c if (states_maybe_looping(&sl->state, cur) && sl 7345 kernel/bpf/verifier.c states_equal(env, &sl->state, cur)) { sl 7367 kernel/bpf/verifier.c if (states_equal(env, &sl->state, cur)) { sl 7368 kernel/bpf/verifier.c sl->hit_cnt++; sl 7379 kernel/bpf/verifier.c err = propagate_liveness(env, &sl->state, cur); sl 7387 kernel/bpf/verifier.c err = err ? : propagate_precision(env, &sl->state); sl 7400 kernel/bpf/verifier.c sl->miss_cnt++; sl 7406 kernel/bpf/verifier.c if (sl->miss_cnt > sl->hit_cnt * 3 + 3) { sl 7410 kernel/bpf/verifier.c *pprev = sl->next; sl 7411 kernel/bpf/verifier.c if (sl->state.frame[0]->regs[0].live & REG_LIVE_DONE) { sl 7412 kernel/bpf/verifier.c u32 br = sl->state.branches; sl 7417 kernel/bpf/verifier.c free_verifier_state(&sl->state, false); sl 7418 kernel/bpf/verifier.c kfree(sl); sl 7425 kernel/bpf/verifier.c sl->next = env->free_list; sl 7426 kernel/bpf/verifier.c env->free_list = sl; sl 7428 kernel/bpf/verifier.c sl = *pprev; sl 7432 kernel/bpf/verifier.c pprev = &sl->next; sl 7433 kernel/bpf/verifier.c sl = *pprev; sl 9241 kernel/bpf/verifier.c struct bpf_verifier_state_list *sl, *sln; sl 9244 kernel/bpf/verifier.c sl = env->free_list; sl 9245 kernel/bpf/verifier.c while (sl) { sl 9246 kernel/bpf/verifier.c sln = sl->next; sl 9247 kernel/bpf/verifier.c free_verifier_state(&sl->state, false); sl 9248 kernel/bpf/verifier.c kfree(sl); sl 9249 kernel/bpf/verifier.c sl = sln; sl 9256 kernel/bpf/verifier.c sl = env->explored_states[i]; sl 9258 kernel/bpf/verifier.c while (sl) { sl 9259 kernel/bpf/verifier.c sln = sl->next; sl 9260 kernel/bpf/verifier.c free_verifier_state(&sl->state, false); sl 9261 kernel/bpf/verifier.c kfree(sl); sl 9262 kernel/bpf/verifier.c sl = sln; sl 440 kernel/time/hrtimer.c static void __hrtimer_init_sleeper(struct hrtimer_sleeper *sl, sl 443 kernel/time/hrtimer.c void hrtimer_init_sleeper_on_stack(struct hrtimer_sleeper *sl, sl 446 kernel/time/hrtimer.c debug_object_init_on_stack(&sl->timer, &hrtimer_debug_descr); sl 447 kernel/time/hrtimer.c __hrtimer_init_sleeper(sl, clock_id, mode); sl 1782 kernel/time/hrtimer.c void hrtimer_sleeper_start_expires(struct hrtimer_sleeper *sl, sl 1792 kernel/time/hrtimer.c if (IS_ENABLED(CONFIG_PREEMPT_RT) && sl->timer.is_hard) sl 1795 kernel/time/hrtimer.c hrtimer_start_expires(&sl->timer, mode); sl 1799 kernel/time/hrtimer.c static void __hrtimer_init_sleeper(struct hrtimer_sleeper *sl, sl 1826 kernel/time/hrtimer.c __hrtimer_init(&sl->timer, clock_id, mode); sl 1827 kernel/time/hrtimer.c sl->timer.function = hrtimer_wakeup; sl 1828 kernel/time/hrtimer.c sl->task = current; sl 1837 kernel/time/hrtimer.c void hrtimer_init_sleeper(struct hrtimer_sleeper *sl, clockid_t clock_id, sl 1840 kernel/time/hrtimer.c debug_init(&sl->timer, clock_id, mode); sl 1841 kernel/time/hrtimer.c __hrtimer_init_sleeper(sl, clock_id, mode); sl 114 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 118 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 123 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 127 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 176 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 180 lib/mpi/longlong.h "=&r" (sl) \ sl 185 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 189 lib/mpi/longlong.h "=&r" (sl) \ sl 263 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 267 lib/mpi/longlong.h "=&g" ((USItype)(sl)) \ sl 272 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 276 lib/mpi/longlong.h "=&g" ((USItype)(sl)) \ sl 300 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 304 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 309 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 313 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 397 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 401 lib/mpi/longlong.h "=&r" (sl) \ sl 406 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 410 lib/mpi/longlong.h "=&r" (sl) \ sl 450 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 455 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 460 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 465 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 515 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 519 lib/mpi/longlong.h "=&d" ((USItype)(sl)) \ sl 524 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 528 lib/mpi/longlong.h "=&d" ((USItype)(sl)) \ sl 594 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 598 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 603 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 607 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 721 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 726 lib/mpi/longlong.h "=&r" (sl) \ sl 733 lib/mpi/longlong.h "=&r" (sl) \ sl 740 lib/mpi/longlong.h "=&r" (sl) \ sl 746 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 751 lib/mpi/longlong.h "=&r" (sl) \ sl 758 lib/mpi/longlong.h "=&r" (sl) \ sl 765 lib/mpi/longlong.h "=&r" (sl) \ sl 772 lib/mpi/longlong.h "=&r" (sl) \ sl 779 lib/mpi/longlong.h "=&r" (sl) \ sl 839 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 843 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 848 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 852 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 874 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 878 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 883 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 887 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 950 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 954 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 960 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 964 lib/mpi/longlong.h "=&r" ((USItype)(sl)) \ sl 1145 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 1149 lib/mpi/longlong.h "=&g" ((USItype)(sl)) \ sl 1154 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 1158 lib/mpi/longlong.h "=&g" ((USItype)(sl)) \ sl 1193 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 1196 lib/mpi/longlong.h "=&r" ((unsigned int)(sl)) \ sl 1201 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 1204 lib/mpi/longlong.h "=&r" ((unsigned int)(sl)) \ sl 1250 lib/mpi/longlong.h #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ sl 1255 lib/mpi/longlong.h (sl) = __x; \ sl 1260 lib/mpi/longlong.h #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ sl 1265 lib/mpi/longlong.h (sl) = __x; \ sl 408 net/dccp/proto.c struct dccp_service_list *sl = NULL; sl 415 net/dccp/proto.c sl = kmalloc(optlen, GFP_KERNEL); sl 416 net/dccp/proto.c if (sl == NULL) sl 419 net/dccp/proto.c sl->dccpsl_nr = optlen / sizeof(u32) - 1; sl 420 net/dccp/proto.c if (copy_from_user(sl->dccpsl_list, sl 423 net/dccp/proto.c dccp_list_has_service(sl, DCCP_SERVICE_INVALID_VALUE)) { sl 424 net/dccp/proto.c kfree(sl); sl 434 net/dccp/proto.c dp->dccps_service_list = sl; sl 596 net/dccp/proto.c const struct dccp_service_list *sl; sl 600 net/dccp/proto.c if ((sl = dp->dccps_service_list) != NULL) { sl 601 net/dccp/proto.c slen = sl->dccpsl_nr * sizeof(u32); sl 612 net/dccp/proto.c (sl != NULL && copy_to_user(optval + 1, sl->dccpsl_list, slen))) sl 1222 net/ieee802154/nl-mac.c struct ieee802154_llsec_seclevel *sl) sl 1224 net/ieee802154/nl-mac.c memset(sl, 0, sizeof(*sl)); sl 1231 net/ieee802154/nl-mac.c sl->frame_type = nla_get_u8(info->attrs[IEEE802154_ATTR_LLSEC_FRAME_TYPE]); sl 1232 net/ieee802154/nl-mac.c if (sl->frame_type == IEEE802154_FC_TYPE_MAC_CMD) { sl 1236 net/ieee802154/nl-mac.c sl->cmd_frame_id = nla_get_u8(info->attrs[IEEE802154_ATTR_LLSEC_CMD_FRAME_ID]); sl 1239 net/ieee802154/nl-mac.c sl->sec_levels = nla_get_u8(info->attrs[IEEE802154_ATTR_LLSEC_SECLEVELS]); sl 1240 net/ieee802154/nl-mac.c sl->device_override = nla_get_u8(info->attrs[IEEE802154_ATTR_LLSEC_DEV_OVERRIDE]); sl 1248 net/ieee802154/nl-mac.c struct ieee802154_llsec_seclevel sl; sl 1250 net/ieee802154/nl-mac.c if (llsec_parse_seclevel(info, &sl)) sl 1253 net/ieee802154/nl-mac.c return ops->llsec->add_seclevel(dev, &sl); sl 1268 net/ieee802154/nl-mac.c struct ieee802154_llsec_seclevel sl; sl 1270 net/ieee802154/nl-mac.c if (llsec_parse_seclevel(info, &sl)) sl 1273 net/ieee802154/nl-mac.c return ops->llsec->del_seclevel(dev, &sl); sl 1283 net/ieee802154/nl-mac.c const struct ieee802154_llsec_seclevel *sl, sl 1295 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_FRAME_TYPE, sl->frame_type) || sl 1296 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_SECLEVELS, sl->sec_levels) || sl 1298 net/ieee802154/nl-mac.c sl->device_override)) sl 1301 net/ieee802154/nl-mac.c if (sl->frame_type == IEEE802154_FC_TYPE_MAC_CMD && sl 1303 net/ieee802154/nl-mac.c sl->cmd_frame_id)) sl 1954 net/ieee802154/nl802154.c const struct ieee802154_llsec_seclevel *sl) sl 1970 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_SECLEVEL_ATTR_FRAME, sl->frame_type) || sl 1971 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_SECLEVEL_ATTR_LEVELS, sl->sec_levels) || sl 1973 net/ieee802154/nl802154.c sl->device_override)) sl 1976 net/ieee802154/nl802154.c if (sl->frame_type == NL802154_FRAME_CMD) { sl 1978 net/ieee802154/nl802154.c sl->cmd_frame_id)) sl 1996 net/ieee802154/nl802154.c struct ieee802154_llsec_seclevel *sl; sl 2017 net/ieee802154/nl802154.c list_for_each_entry(sl, &table->security_levels, list) { sl 2021 net/ieee802154/nl802154.c rdev, wpan_dev->netdev, sl) < 0) { sl 2048 net/ieee802154/nl802154.c llsec_parse_seclevel(struct nlattr *nla, struct ieee802154_llsec_seclevel *sl) sl 2055 net/ieee802154/nl802154.c memset(sl, 0, sizeof(*sl)); sl 2062 net/ieee802154/nl802154.c sl->sec_levels = nla_get_u8(attrs[NL802154_SECLEVEL_ATTR_LEVELS]); sl 2063 net/ieee802154/nl802154.c sl->frame_type = nla_get_u32(attrs[NL802154_SECLEVEL_ATTR_FRAME]); sl 2064 net/ieee802154/nl802154.c sl->device_override = nla_get_u8(attrs[NL802154_SECLEVEL_ATTR_DEV_OVERRIDE]); sl 2065 net/ieee802154/nl802154.c if (sl->frame_type > NL802154_FRAME_MAX || sl 2066 net/ieee802154/nl802154.c (sl->device_override != 0 && sl->device_override != 1)) sl 2069 net/ieee802154/nl802154.c if (sl->frame_type == NL802154_FRAME_CMD) { sl 2073 net/ieee802154/nl802154.c sl->cmd_frame_id = nla_get_u32(attrs[NL802154_SECLEVEL_ATTR_CMD_FRAME]); sl 2074 net/ieee802154/nl802154.c if (sl->cmd_frame_id > NL802154_CMD_FRAME_MAX) sl 2087 net/ieee802154/nl802154.c struct ieee802154_llsec_seclevel sl; sl 2090 net/ieee802154/nl802154.c &sl) < 0) sl 2093 net/ieee802154/nl802154.c return rdev_add_seclevel(rdev, wpan_dev, &sl); sl 2102 net/ieee802154/nl802154.c struct ieee802154_llsec_seclevel sl; sl 2106 net/ieee802154/nl802154.c &sl) < 0) sl 2109 net/ieee802154/nl802154.c return rdev_del_seclevel(rdev, wpan_dev, &sl); sl 274 net/ieee802154/rdev-ops.h const struct ieee802154_llsec_seclevel *sl) sl 276 net/ieee802154/rdev-ops.h return rdev->ops->add_seclevel(&rdev->wpan_phy, wpan_dev, sl); sl 282 net/ieee802154/rdev-ops.h const struct ieee802154_llsec_seclevel *sl) sl 284 net/ieee802154/rdev-ops.h return rdev->ops->del_seclevel(&rdev->wpan_phy, wpan_dev, sl); sl 361 net/mac802154/cfg.c const struct ieee802154_llsec_seclevel *sl) sl 368 net/mac802154/cfg.c res = mac802154_llsec_seclevel_add(&sdata->sec, sl); sl 376 net/mac802154/cfg.c const struct ieee802154_llsec_seclevel *sl) sl 383 net/mac802154/cfg.c res = mac802154_llsec_seclevel_del(&sdata->sec, sl); sl 158 net/mac802154/ieee802154_i.h const struct ieee802154_llsec_seclevel *sl); sl 160 net/mac802154/ieee802154_i.h const struct ieee802154_llsec_seclevel *sl); sl 43 net/mac802154/llsec.c struct ieee802154_llsec_seclevel *sl, *sn; sl 47 net/mac802154/llsec.c list_for_each_entry_safe(sl, sn, &sec->table.security_levels, list) { sl 50 net/mac802154/llsec.c msl = container_of(sl, struct mac802154_llsec_seclevel, level); sl 51 net/mac802154/llsec.c list_del(&sl->list); sl 468 net/mac802154/llsec.c const struct ieee802154_llsec_seclevel *sl) sl 473 net/mac802154/llsec.c if (pos->frame_type != sl->frame_type || sl 475 net/mac802154/llsec.c pos->cmd_frame_id != sl->cmd_frame_id) || sl 476 net/mac802154/llsec.c pos->device_override != sl->device_override || sl 477 net/mac802154/llsec.c pos->sec_levels != sl->sec_levels) sl 488 net/mac802154/llsec.c const struct ieee802154_llsec_seclevel *sl) sl 492 net/mac802154/llsec.c if (llsec_find_seclevel(sec, sl)) sl 499 net/mac802154/llsec.c entry->level = *sl; sl 507 net/mac802154/llsec.c const struct ieee802154_llsec_seclevel *sl) sl 511 net/mac802154/llsec.c pos = llsec_find_seclevel(sec, sl); sl 92 net/mac802154/llsec.h const struct ieee802154_llsec_seclevel *sl); sl 94 net/mac802154/llsec.h const struct ieee802154_llsec_seclevel *sl); sl 164 net/mac802154/mib.c const struct ieee802154_llsec_seclevel *sl) sl 172 net/mac802154/mib.c res = mac802154_llsec_seclevel_add(&sdata->sec, sl); sl 179 net/mac802154/mib.c const struct ieee802154_llsec_seclevel *sl) sl 187 net/mac802154/mib.c res = mac802154_llsec_seclevel_del(&sdata->sec, sl); sl 306 net/rds/ib.c iinfo->sl = ic->i_sl; sl 343 net/rds/ib.c iinfo6->sl = ic->i_sl; sl 156 net/rds/ib_cm.c ic->i_sl = ic->i_cm_id->route.path_rec->sl; sl 104 net/rds/rdma_transport.c cm_id->route.path_rec[0].sl = sl 48 samples/bpf/ibumad_kern.c u8 sl; sl 561 sound/pci/au88x0/au88x0_core.c int dirplay, int sl, unsigned int tr, int thsource) sl 617 sound/pci/au88x0/au88x0_core.c (sl << 0x9) | (sweep << 0x8) | ((esi & 0xf) << 4) | d); sl 139 tools/perf/util/probe-file.c struct strlist *sl; sl 144 tools/perf/util/probe-file.c sl = strlist__new(NULL, NULL); sl 145 tools/perf/util/probe-file.c if (sl == NULL) sl 164 tools/perf/util/probe-file.c ret = strlist__add(sl, buf); sl 172 tools/perf/util/probe-file.c return sl; sl 180 tools/perf/util/probe-file.c strlist__delete(sl); sl 187 tools/perf/util/probe-file.c struct strlist *sl, *rawlist; sl 196 tools/perf/util/probe-file.c sl = strlist__new(NULL, NULL); sl 205 tools/perf/util/probe-file.c ret = strlist__add(sl, buf); sl 207 tools/perf/util/probe-file.c ret = strlist__add(sl, tev.event); sl 218 tools/perf/util/probe-file.c strlist__delete(sl); sl 221 tools/perf/util/probe-file.c return sl; sl 157 tools/virtio/virtio_test.c struct scatterlist sl; sl 170 tools/virtio/virtio_test.c sg_init_one(&sl, dev->buf, dev->buf_size); sl 171 tools/virtio/virtio_test.c r = virtqueue_add_outbuf(vq->vq, &sl, 1,