| /linux/net/mac80211/tests/ |
| H A D | s1g_tim.c | 28 const struct ieee80211_tim_ie *tim, u8 tim_len) in dump_tim_bits() argument 30 const u8 *ptr = tim->virtual_map; in dump_tim_bits() 31 const u8 *end = (const u8 *)tim + tim_len; in dump_tim_bits() 119 static void tim_begin(struct ieee80211_tim_ie *tim, u8 **p) in tim_begin() argument 121 tim->dtim_count = 0; in tim_begin() 122 tim->dtim_period = 1; in tim_begin() 123 tim->bitmap_ctrl = 0; in tim_begin() 124 *p = tim->virtual_map; in tim_begin() 127 static u8 tim_end(struct ieee80211_tim_ie *tim, u8 *tail) in tim_end() argument 129 return tail - (u8 *)tim; in tim_end() [all …]
|
| /linux/drivers/memory/ |
| H A D | of_memory.c | 64 struct lpddr2_timings *tim) in of_do_get_timings() argument 68 ret = of_property_read_u32(np, "max-freq", &tim->max_freq); in of_do_get_timings() 69 ret |= of_property_read_u32(np, "min-freq", &tim->min_freq); in of_do_get_timings() 70 ret |= of_property_read_u32(np, "tRPab", &tim->tRPab); in of_do_get_timings() 71 ret |= of_property_read_u32(np, "tRCD", &tim->tRCD); in of_do_get_timings() 72 ret |= of_property_read_u32(np, "tWR", &tim->tWR); in of_do_get_timings() 73 ret |= of_property_read_u32(np, "tRAS-min", &tim->tRAS_min); in of_do_get_timings() 74 ret |= of_property_read_u32(np, "tRRD", &tim->tRRD); in of_do_get_timings() 75 ret |= of_property_read_u32(np, "tWTR", &tim->tWTR); in of_do_get_timings() 76 ret |= of_property_read_u32(np, "tXP", &tim->tXP); in of_do_get_timings() [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-mcp795.c | 183 static int mcp795_set_time(struct device *dev, struct rtc_time *tim) in mcp795_set_time() argument 200 data[0] = (data[0] & 0x80) | bin2bcd(tim->tm_sec); in mcp795_set_time() 201 data[1] = (data[1] & 0x80) | bin2bcd(tim->tm_min); in mcp795_set_time() 202 data[2] = bin2bcd(tim->tm_hour); in mcp795_set_time() 203 data[3] = (data[3] & 0xF8) | bin2bcd(tim->tm_wday + 1); in mcp795_set_time() 204 data[4] = bin2bcd(tim->tm_mday); in mcp795_set_time() 205 data[5] = (data[5] & MCP795_LP_BIT) | bin2bcd(tim->tm_mon + 1); in mcp795_set_time() 207 if (tim->tm_year > 100) in mcp795_set_time() 208 tim->tm_year -= 100; in mcp795_set_time() 210 data[6] = bin2bcd(tim->tm_year); in mcp795_set_time() [all …]
|
| /linux/include/linux/ |
| H A D | time_namespace.h | 102 ktime_t do_timens_ktime_to_host(clockid_t clockid, ktime_t tim, 105 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) in timens_ktime_to_host() argument 110 return tim; in timens_ktime_to_host() 112 return do_timens_ktime_to_host(clockid, tim, &ns->offsets); in timens_ktime_to_host() 172 static inline ktime_t timens_ktime_to_host(clockid_t clockid, ktime_t tim) in timens_ktime_to_host() argument 174 return tim; in timens_ktime_to_host()
|
| H A D | hrtimer.h | 230 extern void hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, 241 static inline void hrtimer_start(struct hrtimer *timer, ktime_t tim, in hrtimer_start() argument 244 hrtimer_start_range_ns(timer, tim, 0, mode); in hrtimer_start()
|
| H A D | ieee80211-s1g.h | 537 static inline bool ieee80211_s1g_check_tim(const struct ieee80211_tim_ie *tim, in ieee80211_s1g_check_tim() argument 558 tim->virtual_map, in ieee80211_s1g_check_tim() 559 (const u8 *)tim + tim_len + 2); in ieee80211_s1g_check_tim()
|
| H A D | ieee80211.h | 2546 static inline bool __ieee80211_check_tim(const struct ieee80211_tim_ie *tim, in __ieee80211_check_tim() argument 2552 if (unlikely(!tim || tim_len < sizeof(*tim))) in __ieee80211_check_tim() 2559 indexn1 = tim->bitmap_ctrl & 0xfe; in __ieee80211_check_tim() 2567 return !!(tim->virtual_map[index] & mask); in __ieee80211_check_tim() 2872 static inline bool ieee80211_check_tim(const struct ieee80211_tim_ie *tim, in ieee80211_check_tim() argument 2875 return s1g ? ieee80211_s1g_check_tim(tim, tim_len, aid) : in ieee80211_check_tim() 2876 __ieee80211_check_tim(tim, tim_len, aid); in ieee80211_check_tim()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_vmlinux.c | 73 int BPF_KPROBE(handle__kprobe, struct hrtimer *timer, ktime_t tim, u64 delta_ns, in BPF_KPROBE() argument 76 if (tim == MY_TV_NSEC) in BPF_KPROBE() 82 int BPF_PROG(handle__fentry, struct hrtimer *timer, ktime_t tim, u64 delta_ns, in BPF_PROG() argument 85 if (tim == MY_TV_NSEC) in BPF_PROG()
|
| /linux/kernel/time/ |
| H A D | namespace.c | 24 ktime_t do_timens_ktime_to_host(clockid_t clockid, ktime_t tim, in do_timens_ktime_to_host() argument 38 return tim; in do_timens_ktime_to_host() 45 if (tim < offset) { in do_timens_ktime_to_host() 50 tim = 0; in do_timens_ktime_to_host() 52 tim = ktime_sub(tim, offset); in do_timens_ktime_to_host() 53 if (unlikely(tim > KTIME_MAX)) in do_timens_ktime_to_host() 54 tim = KTIME_MAX; in do_timens_ktime_to_host() 57 return tim; in do_timens_ktime_to_host()
|
| H A D | hrtimer.c | 1177 static inline ktime_t hrtimer_update_lowres(struct hrtimer *timer, ktime_t tim, in hrtimer_update_lowres() argument 1188 tim = ktime_add_safe(tim, hrtimer_resolution); in hrtimer_update_lowres() 1190 return tim; in hrtimer_update_lowres() 1218 static int __hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, in __hrtimer_start_range_ns() argument 1257 tim = ktime_add_safe(tim, __hrtimer_cb_get_time(base->clockid)); in __hrtimer_start_range_ns() 1259 tim = hrtimer_update_lowres(timer, tim, mode); in __hrtimer_start_range_ns() 1261 hrtimer_set_expires_range_ns(timer, tim, delta_ns); in __hrtimer_start_range_ns() 1312 void hrtimer_start_range_ns(struct hrtimer *timer, ktime_t tim, in hrtimer_start_range_ns() argument 1330 if (__hrtimer_start_range_ns(timer, tim, delta_ns, mode, base)) in hrtimer_start_range_ns()
|
| /linux/drivers/video/fbdev/omap/ |
| H A D | sossi.c | 165 t->tim[0] = tw0 - 1; in calc_rd_timings() 166 t->tim[1] = tw1 - 1; in calc_rd_timings() 204 t->tim[2] = tw0 - 1; in calc_wr_timings() 205 t->tim[3] = tw1 - 1; in calc_wr_timings() 331 t->tim[4] = div; in sossi_convert_timings() 342 sossi.clk_tw0[RD_ACCESS] = t->tim[0]; in sossi_set_timings() 343 sossi.clk_tw1[RD_ACCESS] = t->tim[1]; in sossi_set_timings() 345 sossi.clk_tw0[WR_ACCESS] = t->tim[2]; in sossi_set_timings() 346 sossi.clk_tw1[WR_ACCESS] = t->tim[3]; in sossi_set_timings() 348 sossi.clk_div = t->tim[4]; in sossi_set_timings()
|
| /linux/drivers/net/wireless/intersil/p54/ |
| H A D | main.c | 103 u8 *tim; in p54_beacon_format_ie_tim() local 108 tim = p54_find_ie(skb, WLAN_EID_TIM); in p54_beacon_format_ie_tim() 109 if (!tim) in p54_beacon_format_ie_tim() 112 dtim_len = tim[1]; in p54_beacon_format_ie_tim() 113 dtim_period = tim[3]; in p54_beacon_format_ie_tim() 114 next = tim + 2 + dtim_len; in p54_beacon_format_ie_tim() 119 memmove(tim, next, skb_tail_pointer(skb) - next); in p54_beacon_format_ie_tim() 120 tim = skb_tail_pointer(skb) - (dtim_len + 2); in p54_beacon_format_ie_tim() 123 tim[0] = WLAN_EID_TIM; in p54_beacon_format_ie_tim() 124 tim[1] = 3; in p54_beacon_format_ie_tim() [all …]
|
| H A D | fwio.c | 265 struct p54_tim *tim; in p54_update_beacon_tim() local 267 skb = p54_alloc_skb(priv, P54_HDR_FLAG_CONTROL_OPSET, sizeof(*tim), in p54_update_beacon_tim() 272 tim = skb_put(skb, sizeof(*tim)); in p54_update_beacon_tim() 273 tim->count = 1; in p54_update_beacon_tim() 274 tim->entry[0] = cpu_to_le16(set ? (aid | 0x8000) : aid); in p54_update_beacon_tim()
|
| H A D | txrx.c | 298 u8 *tim; in p54_pspoll_workaround() local 313 tim = p54_find_ie(skb, WLAN_EID_TIM); in p54_pspoll_workaround() 314 if (!tim) in p54_pspoll_workaround() 317 tim_len = tim[1]; in p54_pspoll_workaround() 318 tim_ie = (struct ieee80211_tim_ie *) &tim[2]; in p54_pspoll_workaround()
|
| /linux/samples/vfs/ |
| H A D | test-statx.c | 57 time_t tim; in print_time() local 61 tim = ts->tv_sec; in print_time() 62 if (!localtime_r(&tim, &tm)) { in print_time()
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A D | cmd.c | 141 vbm->tim.bitmap_ctrl = bitmap_control; in wl1251_cmd_vbm() 147 memcpy(vbm->tim.pvb_field, bitmap, bitmap_len); in wl1251_cmd_vbm() 148 vbm->tim.identity = identity; in wl1251_cmd_vbm() 149 vbm->tim.length = bitmap_len + 3; in wl1251_cmd_vbm()
|
| /linux/drivers/net/wireless/ath/carl9170/ |
| H A D | rx.c | 523 u8 *tim; in carl9170_ps_beacon() local 541 tim = carl9170_find_ie(data, len - FCS_LEN, WLAN_EID_TIM); in carl9170_ps_beacon() 542 if (!tim) in carl9170_ps_beacon() 545 if (tim[1] < sizeof(*tim_ie)) in carl9170_ps_beacon() 548 tim_len = tim[1]; in carl9170_ps_beacon() 549 tim_ie = (struct ieee80211_tim_ie *) &tim[2]; in carl9170_ps_beacon()
|
| /linux/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | ps.c | 468 u8 *tim; in rtl_swlps_beacon() local 505 tim = rtl_find_ie(data, len - FCS_LEN, WLAN_EID_TIM); in rtl_swlps_beacon() 506 if (!tim) in rtl_swlps_beacon() 509 if (tim[1] < sizeof(*tim_ie)) in rtl_swlps_beacon() 512 tim_len = tim[1]; in rtl_swlps_beacon() 513 tim_ie = (struct ieee80211_tim_ie *) &tim[2]; in rtl_swlps_beacon()
|
| /linux/drivers/ata/ |
| H A D | pata_cs5536.c | 108 static void cs5536_program_dtc(struct ata_device *adev, u8 tim) in cs5536_program_dtc() argument 116 dtc |= tim << dshift; in cs5536_program_dtc()
|
| /linux/arch/mips/include/asm/mach-rc32434/ |
| H A D | timer.h | 44 struct timer_counter tim[TIMER_COUNT]; member
|
| /linux/drivers/net/wireless/ralink/rt2x00/ |
| H A D | rt2x00dev.c | 647 u8 *tim; in rt2x00lib_rxdone_check_ps() local 669 tim = rt2x00lib_find_ie(skb->data, skb->len - FCS_LEN, WLAN_EID_TIM); in rt2x00lib_rxdone_check_ps() 670 if (!tim) in rt2x00lib_rxdone_check_ps() 673 if (tim[1] < sizeof(*tim_ie)) in rt2x00lib_rxdone_check_ps() 676 tim_len = tim[1]; in rt2x00lib_rxdone_check_ps() 677 tim_ie = (struct ieee80211_tim_ie *) &tim[2]; in rt2x00lib_rxdone_check_ps()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | omap2.c | 317 unsigned long tim, limit; in omap_nand_data_out_pref() local 347 tim = 0; in omap_nand_data_out_pref() 354 } while (val && (tim++ < limit)); in omap_nand_data_out_pref() 386 unsigned long tim, limit; in omap_nand_dma_transfer() local 425 tim = 0; in omap_nand_dma_transfer() 432 } while (val && (tim++ < limit)); in omap_nand_dma_transfer() 595 unsigned long tim, limit; in omap_nand_data_out_irq_pref() local 625 tim = 0; in omap_nand_data_out_irq_pref() 631 } while (val && (tim++ < limit)); in omap_nand_data_out_irq_pref()
|
| /linux/drivers/net/ieee802154/ |
| H A D | at86rf230.c | 477 ktime_t tim; in at86rf230_async_state_delay() local 501 tim = c->t_off_to_aack * NSEC_PER_USEC; in at86rf230_async_state_delay() 510 tim = c->t_off_to_tx_on * NSEC_PER_USEC; in at86rf230_async_state_delay() 530 tim = (c->t_frame + c->t_p_ack) * NSEC_PER_USEC; in at86rf230_async_state_delay() 542 tim = c->t_reset_to_off * NSEC_PER_USEC; in at86rf230_async_state_delay() 558 hrtimer_start(&ctx->timer, tim, HRTIMER_MODE_REL); in at86rf230_async_state_delay()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | recv.c | 510 struct ieee80211_tim_ie *tim; in ath_beacon_dtim_pending_cab() local 523 if (elen < sizeof(*tim)) in ath_beacon_dtim_pending_cab() 525 tim = (struct ieee80211_tim_ie *) pos; in ath_beacon_dtim_pending_cab() 526 if (tim->dtim_count != 0) in ath_beacon_dtim_pending_cab() 528 return tim->bitmap_ctrl & 0x01; in ath_beacon_dtim_pending_cab()
|
| /linux/drivers/iio/adc/ |
| H A D | ti-tsc2046.c | 598 ktime_t tim; in tsc2046_adc_reenable_trigger() local 605 tim = us_to_ktime(priv->scan_interval_us - priv->time_per_scan_us); in tsc2046_adc_reenable_trigger() 606 hrtimer_start(&priv->trig_timer, tim, HRTIMER_MODE_REL_SOFT); in tsc2046_adc_reenable_trigger()
|