Home
last modified time | relevance | path

Searched refs:lc (Results 1 – 25 of 32) sorted by relevance

12

/drivers/md/
Ddm-log.c294 static int rw_header(struct log_c *lc, int rw) in rw_header() argument
296 lc->io_req.bi_rw = rw; in rw_header()
298 return dm_io(&lc->io_req, 1, &lc->header_location, NULL); in rw_header()
301 static int flush_header(struct log_c *lc) in flush_header() argument
304 .bdev = lc->header_location.bdev, in flush_header()
309 lc->io_req.bi_rw = WRITE_FLUSH; in flush_header()
311 return dm_io(&lc->io_req, 1, &null_location, NULL); in flush_header()
367 struct log_c *lc; in create_log_context() local
399 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in create_log_context()
400 if (!lc) { in create_log_context()
[all …]
Ddm-log-writes.c131 static void put_pending_block(struct log_writes_c *lc) in put_pending_block() argument
133 if (atomic_dec_and_test(&lc->pending_blocks)) { in put_pending_block()
135 if (waitqueue_active(&lc->wait)) in put_pending_block()
136 wake_up(&lc->wait); in put_pending_block()
140 static void put_io_block(struct log_writes_c *lc) in put_io_block() argument
142 if (atomic_dec_and_test(&lc->io_blocks)) { in put_io_block()
144 if (waitqueue_active(&lc->wait)) in put_io_block()
145 wake_up(&lc->wait); in put_io_block()
151 struct log_writes_c *lc = bio->bi_private; in log_end_io() local
159 spin_lock_irqsave(&lc->blocks_lock, flags); in log_end_io()
[all …]
Ddm-log-userspace-base.c84 static int userspace_do_request(struct log_c *lc, const char *uuid, in userspace_do_request() argument
96 r = dm_consult_userspace(uuid, lc->luid, request_type, data, in userspace_do_request()
107 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, in userspace_do_request()
108 lc->usr_argv_str, in userspace_do_request()
109 strlen(lc->usr_argv_str) + 1, in userspace_do_request()
115 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, in userspace_do_request()
159 struct log_c *lc = container_of(work, struct log_c, flush_log_work.work); in do_flush() local
161 atomic_set(&lc->sched_flush, 0); in do_flush()
163 r = userspace_do_request(lc, lc->uuid, DM_ULOG_FLUSH, NULL, 0, NULL, NULL); in do_flush()
166 dm_table_event(lc->ti->table); in do_flush()
[all …]
Ddm-linear.c30 struct linear_c *lc; in dm_linear_ctr() local
40 lc = kmalloc(sizeof(*lc), GFP_KERNEL); in dm_linear_ctr()
41 if (lc == NULL) { in dm_linear_ctr()
51 lc->start = tmp; in dm_linear_ctr()
53 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); in dm_linear_ctr()
62 ti->private = lc; in dm_linear_ctr()
66 kfree(lc); in dm_linear_ctr()
73 struct linear_c *lc = (struct linear_c *) ti->private; in dm_linear_dtr() local
75 dm_put_device(ti, lc->dev); in dm_linear_dtr()
76 kfree(lc); in dm_linear_dtr()
[all …]
/drivers/net/ethernet/chelsio/cxgb/
Dsubr.c154 struct link_config *lc = &adapter->port[port_id].link_config; in t1_link_changed() local
158 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t1_link_changed()
159 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; in t1_link_changed()
160 if (!(lc->requested_fc & PAUSE_AUTONEG)) in t1_link_changed()
161 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_changed()
163 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { in t1_link_changed()
168 lc->fc = (unsigned char)fc; in t1_link_changed()
623 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) in t1_link_start() argument
625 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t1_link_start()
627 if (lc->supported & SUPPORTED_Autoneg) { in t1_link_start()
[all …]
Dcxgb2.c635 struct link_config *lc = &p->link_config; in set_settings() local
637 if (!(lc->supported & SUPPORTED_Autoneg)) in set_settings()
644 if (!(lc->supported & cap) || (speed == SPEED_1000)) in set_settings()
646 lc->requested_speed = speed; in set_settings()
647 lc->requested_duplex = cmd->duplex; in set_settings()
648 lc->advertising = 0; in set_settings()
652 cmd->advertising = lc->supported; in set_settings()
653 cmd->advertising &= lc->supported; in set_settings()
656 lc->requested_speed = SPEED_INVALID; in set_settings()
657 lc->requested_duplex = DUPLEX_INVALID; in set_settings()
[all …]
Dcommon.h337 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c261 static void init_link_config(struct link_config *lc, unsigned int caps) in init_link_config() argument
263 lc->supported = caps; in init_link_config()
264 lc->requested_speed = 0; in init_link_config()
265 lc->speed = 0; in init_link_config()
266 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; in init_link_config()
267 if (lc->supported & FW_PORT_CAP_ANEG) { in init_link_config()
268 lc->advertising = lc->supported & ADVERT_MASK; in init_link_config()
269 lc->autoneg = AUTONEG_ENABLE; in init_link_config()
270 lc->requested_fc |= PAUSE_AUTONEG; in init_link_config()
272 lc->advertising = 0; in init_link_config()
[all …]
Dt4vf_common.h239 static inline bool is_10g_port(const struct link_config *lc) in is_10g_port() argument
241 return (lc->supported & FW_PORT_CAP_SPEED_10G) != 0; in is_10g_port()
244 static inline bool is_x_10g_port(const struct link_config *lc) in is_x_10g_port() argument
246 return (lc->supported & FW_PORT_CAP_SPEED_10G) != 0 || in is_x_10g_port()
247 (lc->supported & FW_PORT_CAP_SPEED_40G) != 0; in is_x_10g_port()
/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c1212 struct link_config *lc = &pi->link_config; in t3_link_changed() local
1216 if (!lc->link_ok && link_ok) { in t3_link_changed()
1233 if (lc->requested_fc & PAUSE_AUTONEG) in t3_link_changed()
1234 fc &= lc->requested_fc; in t3_link_changed()
1236 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t3_link_changed()
1238 if (link_ok == lc->link_ok && speed == lc->speed && in t3_link_changed()
1239 duplex == lc->duplex && fc == lc->fc) in t3_link_changed()
1242 if (link_ok != lc->link_ok && adapter->params.rev > 0 && in t3_link_changed()
1249 lc->link_ok = link_ok; in t3_link_changed()
1250 lc->speed = speed < 0 ? SPEED_INVALID : speed; in t3_link_changed()
[all …]
Dcxgb3_main.c1864 struct link_config *lc = &p->link_config; in set_settings() local
1866 if (!(lc->supported & SUPPORTED_Autoneg)) { in set_settings()
1874 if (lc->supported & cap) in set_settings()
1884 if (!(lc->supported & cap) || (speed == SPEED_1000)) in set_settings()
1886 lc->requested_speed = speed; in set_settings()
1887 lc->requested_duplex = cmd->duplex; in set_settings()
1888 lc->advertising = 0; in set_settings()
1891 cmd->advertising &= lc->supported; in set_settings()
1894 lc->requested_speed = SPEED_INVALID; in set_settings()
1895 lc->requested_duplex = DUPLEX_INVALID; in set_settings()
[all …]
Dcommon.h677 int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c616 struct link_config *lc = &p->link_cfg; in set_settings() local
624 if (!(lc->supported & FW_PORT_CAP_ANEG)) { in set_settings()
629 (lc->supported & speed_to_caps(speed))) in set_settings()
634 old_lc = *lc; in set_settings()
638 if (!(lc->supported & cap)) in set_settings()
640 lc->requested_speed = cap; in set_settings()
641 lc->advertising = 0; in set_settings()
644 if (!(lc->supported & cap)) in set_settings()
646 lc->requested_speed = 0; in set_settings()
647 lc->advertising = cap | FW_PORT_CAP_ANEG; in set_settings()
[all …]
Dt4_hw.c3578 struct link_config *lc) in t4_link_l1cfg() argument
3583 lc->link_ok = 0; in t4_link_l1cfg()
3584 if (lc->requested_fc & PAUSE_RX) in t4_link_l1cfg()
3586 if (lc->requested_fc & PAUSE_TX) in t4_link_l1cfg()
3597 if (!(lc->supported & FW_PORT_CAP_ANEG)) { in t4_link_l1cfg()
3598 c.u.l1cfg.rcap = cpu_to_be32((lc->supported & ADVERT_MASK) | in t4_link_l1cfg()
3600 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t4_link_l1cfg()
3601 } else if (lc->autoneg == AUTONEG_DISABLE) { in t4_link_l1cfg()
3602 c.u.l1cfg.rcap = cpu_to_be32(lc->requested_speed | fc | mdi); in t4_link_l1cfg()
3603 lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); in t4_link_l1cfg()
[all …]
/drivers/uwb/
DMakefile17 lc-dev.o \
18 lc-rc.o \
/drivers/staging/lustre/lnet/selftest/
Dframework.c88 #define sfw_unpack_lnet_counters(lc) \ argument
90 __swab32s(&(lc).errors); \
91 __swab32s(&(lc).msgs_max); \
92 __swab32s(&(lc).msgs_alloc); \
93 __swab32s(&(lc).send_count); \
94 __swab32s(&(lc).recv_count); \
95 __swab32s(&(lc).drop_count); \
96 __swab32s(&(lc).route_count); \
97 __swab64s(&(lc).send_length); \
98 __swab64s(&(lc).recv_length); \
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dlprocfs_status.c1263 __s64 lprocfs_read_helper(struct lprocfs_counter *lc, in lprocfs_read_helper() argument
1270 if (lc == NULL || header == NULL) in lprocfs_read_helper()
1278 ret = lc->lc_sum; in lprocfs_read_helper()
1280 ret += lc->lc_sum_irq; in lprocfs_read_helper()
1283 ret = lc->lc_min; in lprocfs_read_helper()
1286 ret = lc->lc_max; in lprocfs_read_helper()
1289 ret = (lc->lc_max - lc->lc_min) / 2; in lprocfs_read_helper()
1292 ret = lc->lc_sumsquare; in lprocfs_read_helper()
1295 ret = lc->lc_count; in lprocfs_read_helper()
/drivers/video/fbdev/matrox/
Dmatroxfb_misc.c192 unsigned int vd, vs, ve, vt, lc; in matroxfb_vgaHWinit() local
271 lc = vd; in matroxfb_vgaHWinit()
299 ((lc & 0x400) >> 3); in matroxfb_vgaHWinit()
314 ((lc & 0x100) >> 4) | in matroxfb_vgaHWinit()
320 ((lc & 0x200) >> 3); in matroxfb_vgaHWinit()
333 hw->CRTC[24] = lc; in matroxfb_vgaHWinit()
/drivers/s390/char/
Dtape_3590.h77 unsigned int lc:3; member
/drivers/net/ethernet/hisilicon/hns/
Dhns_ethtool.c504 int i, j, lc, good_cnt, ret_val = 0; in __lb_run_test() local
520 lc = 1; in __lb_run_test()
521 for (j = 0; j < lc; j++) { in __lb_run_test()
/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c1406 int i, j, k, l, lc, good_cnt, ret_val = 0; in e1000_run_loopback_test() local
1417 lc = ((txdr->count / 64) * 2) + 1; in e1000_run_loopback_test()
1419 lc = ((rxdr->count / 64) * 2) + 1; in e1000_run_loopback_test()
1422 for (j = 0; j <= lc; j++) { /* loop count loop */ in e1000_run_loopback_test()
/drivers/staging/lustre/lustre/ldlm/
Dldlm_request.c1624 struct ldlm_cli_cancel_arg *lc = arg; in ldlm_cli_hash_cancel_unused() local
1628 lc->lc_flags, lc->lc_opaque); in ldlm_cli_hash_cancel_unused()
/drivers/net/ethernet/intel/e1000e/
Dethtool.c1634 int lc; in e1000_run_loopback_test() local
1647 lc = ((tx_ring->count / 64) * 2) + 1; in e1000_run_loopback_test()
1649 lc = ((rx_ring->count / 64) * 2) + 1; in e1000_run_loopback_test()
1654 for (j = 0; j <= lc; j++) { in e1000_run_loopback_test()
/drivers/net/ethernet/intel/igb/
Digb_ethtool.c1855 u16 i, j, lc, good_cnt; in igb_run_loopback_test() local
1876 lc = ((tx_ring->count / 64) * 2) + 1; in igb_run_loopback_test()
1878 lc = ((rx_ring->count / 64) * 2) + 1; in igb_run_loopback_test()
1880 for (j = 0; j <= lc; j++) { /* loop count loop */ in igb_run_loopback_test()
/drivers/staging/lustre/lustre/include/
Dlprocfs_status.h511 __s64 lprocfs_read_helper(struct lprocfs_counter *lc,

12